-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(editor) Insert scoped map parameters. (#4826)
- Refactored `ReparentTargetForPaste` into the component types and created some typeguards for the subtypes. - Extracted out the checks for valid insertion from `pasteIntoParentOrGrandparent` into `canInsertIntoTarget`. - Added `applyElementCeilingToReparentTarget` which can take a potential reparent target and ensure that the target does not get applied to an element above a ceiling target. - Added `insertionCeiling` field to `VariableMetadata`. - Refactored `JSXAttributeOtherJavaScriptKeepDeepEqualityCall` into an instance specifically for the named type and created a new instance which combines those two types. - Added `valuesInScopeFromParameters` to `JSXMapExpression`, along with the necessary additions to the parser to extract those. - Implemented `getOtherJavaScriptTypeFromExpression` and `getOtherJavaScriptType` utility functions.
- Loading branch information
1 parent
cdd46df
commit dccfcdc
Showing
25 changed files
with
973 additions
and
384 deletions.
There are no files selected for viewing
603 changes: 348 additions & 255 deletions
603
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.