Tags: charkour-labs/utopia
Tags
Fix Code Editor Highlighting Synchronisation Bug (concrete-utopia#1635) * partial(editor) Partial work towards fixing the synchronisation issues during insertion * fix(vscode-extension) Ensure we update highlight bounds and selection after updating file contents * chore(vscode-extension) Increment version number
feature(canvas) Interactive resize controls. (concrete-utopia#1625) - Fixes concrete-utopia#1603. - Resurrects concrete-utopia#530. - Reworked the interface `FlexMoveChange`, replacing `newSize` and `edgePosition` with `targetProperty` and `delta`. - Added `PropertyTargetSelector` component for displaying the various fields to change when resizing. - Added `targetProperty` to `ResizeDragState`. - `ResizeRectangle` gained a few more properties to handle the selected field to operate on and what should be available for each axis. - The left and top edge resize handles have been removed from `ResizeRectangle`. - Fixed `usePrevious` hook. - Brought the code up to date with our usage of `betterReactMemo`, appropriate use of `useCallback` and even the new `when` function. - Changed the resize options to use `flexBasis` and retire the use of `FlexCrossBasis`, using `Width` or `Height` in its place as appropriate. - Reworked `PropertyTargetSelector` to take more responsibility, including handling the shift key presses. - Added `allowsInteractiveResize` and `shiftPropertyTargetSelectorAxis` utility functions, using the latter to centralise the positioning of the selector. - Bound the mouse event handlers in `ResizeEdge`. - Only display the property selector for certain layout systems. - Added `IncrementResizeOptionsSelectedIndex` and `SetResizeOptionsTargetOptions` actions to replace the hooks previously used. - Added `ResizeOptions` to hold the state of the property target selector.
feature(canvas) Add parent highlighting. (concrete-utopia#1610) - Fixes concrete-utopia#1604. - Partly resurrects concrete-utopia#514. - Added `layoutSectionHovered` property to `EditorState.inspector`. - Added action for updating `layoutSectionHovered`. - Added a div around the layout section to capture mouse over and out. - Added parent highlights to the `OutlineControl` component, optionally depending on if `cmd` is pressed or if the layout section is hovered.
Feature/inspector layout section toggle (concrete-utopia#1601) * feature(inspector) layout section can be toggled * hide section when it has no set value
Make inspector text options more widely available. (concrete-utopia#1573 ) * feature(inspector) Make the text options available nearly everywhere. - Fixes concrete-utopia#1562. - Reworked `StyleSubSectionForType` to support permit, deny or allow all options. - Updated `useIsSubSectionVisible` with the above changes. - Put `img` and `video` in as deny options for the `text` and `textShadow` inspector sections. - Put `img` in for the permit list of the `img` inspector section. - Every other inspector section set with the allow all option. * chore(pr) Added exhaustive check to `useIsSubSectionVisible`. * chore(pr) Bumped regression test figures. Co-authored-by: Balazs Bajorics <[email protected]>
Feature/inspector layout section new (concrete-utopia#1552) * feature(inspector) show new layout subsection when featureswitch is enabled * feature(inspector) show content and rendered children * fix(tests) update snapshot with the new metadata field
PreviousNext