-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle Some Function Wrapped Components (#5808)
- Added `functionWrapping` to `UtopiaJSXComponent`, which is an array of `FunctionWrap` elements. - Added utility functions to clear `FunctionWrap` values of unique IDs and source maps. - `looksLikeCanvasElements` has been modified to capture the functions wrapping the components alongside identifying the parameters. - `createExecutionScope` now handles the wrapping of components for execution. - `printUtopiaJSXComponent` now handles printing out the components with their function wrappers. - Reordered the logic in `createExecutionScope` and extracted out the logic for adding a component to the scope. The new function is used for both arbitrary blocks to make components available to their scope and also for their original purpose of adding the components otherwise when created.
- Loading branch information
1 parent
edab1e3
commit 65a732b
Showing
27 changed files
with
1,951 additions
and
75 deletions.
There are no files selected for viewing
1,326 changes: 1,326 additions & 0 deletions
1,326
editor/src/components/canvas/__snapshots__/ui-jsx-canvas.spec.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.