Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Core] Named form exports for Form.js #8880

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Conversation

driusan
Copy link
Collaborator

@driusan driusan commented Sep 6, 2023

This adds the export keyword for the classes defined in jsx/Form.js so that they can be imported with a more standard (ie) import {SelectElement, StaticElement} from 'jsx/Form';. It removes the globals on window and replaces all references in the code with an explicit import.

This allows the element types to be imported from TypeScript strict mode without complaining about them not being defined.

Export Elements from Form.js, do not implicitly load them on window.
@driusan
Copy link
Collaborator Author

driusan commented Oct 17, 2023

@kongtiaowang can you review and test this?

@driusan driusan added Priority: High PR or issue should be prioritised over others for review and testing Cleanup PR or issue introducing/requiring at least one clean-up operation Critical to release PR or issue is key for the release to which it has been assigned labels Oct 17, 2023
Copy link
Contributor

@kongtiaowang kongtiaowang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kongtiaowang kongtiaowang added the Passed Manual Tests PR has undergone proper testing by at least one peer label Nov 13, 2023
@driusan driusan merged commit 6fcdb6f into aces:main Nov 13, 2023
19 checks passed
@ridz1208 ridz1208 added this to the 26.0.0 milestone Apr 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Cleanup PR or issue introducing/requiring at least one clean-up operation Critical to release PR or issue is key for the release to which it has been assigned Passed Manual Tests PR has undergone proper testing by at least one peer Priority: High PR or issue should be prioritised over others for review and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants