Commit Graph
489 Commits
Author SHA1 Message Date
Oleg Isonen 0b7bdcdc9e Merge branch '68-move-content-editable-toolbar-to-workspace-tools' 2022-07-04 01:05:18 +02:00
Oleg Isonen 5cca7e4bfb handle correctly click outside to exit text editing mode 2022-07-04 01:04:03 +02:00
Oleg Isonen dd3d8b9ba9 catch esc on content editable and input tags 2022-07-04 00:16:17 +02:00
Oleg Isonen d34a9b9178 unset editing mode when selectedInstance changes 2022-07-04 00:09:45 +02:00
Oleg Isonen 2591bc2cb1 Merge pull request #93 from webstudio-is/68-move-content-editable-toolbar-to-workspace-tools
Move content editable toolbar to workspace tools and replace the text editor with Lexical
2022-07-03 23:48:18 +02:00
Oleg Isonen be8e7a2eba move double click handling for editable mode to the global element selectionn tracking along with enter/esc shortcuts 2022-07-03 22:45:46 +02:00
Oleg Isonen 89ace2b9dd don't show outline when editing text 2022-07-03 16:19:54 +02:00
natlusyht 1820a2ab51 Merge pull request #105 from webstudio-is/numeric-gesture-control-pointer-lock-abstraction
fix(numeric-gesture-control): abstract PointerLock API
2022-07-03 15:03:05 +03:00
Sultan d314690c5e nit: typescript undefined type 2022-07-03 14:56:48 +03:00
Sultan cd71346a68 contextual comment about implementation, code nits 2022-07-03 12:45:40 +03:00
Oleg Isonen 9e44588b35 use React.memo instead useMemo to improve the semantics 2022-07-03 01:08:46 +02:00
Oleg Isonen 4fa906f223 Merge branch 'main' into 68-move-content-editable-toolbar-to-workspace-tools 2022-07-03 00:49:59 +02:00
Sara Vieira 5f58c59c8a Merge pull request #104 from webstudio-is/env-check 2022-07-02 19:29:13 +02:00
Sara Vieira a0b8141558 fix prettier 2022-07-02 19:26:19 +02:00
Sara Vieira 3ad31f6e05 add coments 2022-07-02 19:20:27 +02:00
Sara Vieira 79bead419c fix actions 2022-07-02 15:27:34 +02:00
Sara Vieira 64214e1c1b require in prod too 2022-07-02 15:24:52 +02:00
Sara Vieira 543620e5db remove eslint disables 2022-07-02 12:40:21 +02:00
Sara Vieira cce5c3f8b2 add better comments 2022-07-02 12:39:45 +02:00
Sara Vieira 02c3cf4a39 MR fixes; remove zod 2022-07-02 12:36:25 +02:00
Sultan c70cf39f79 abstract requestPointerLock API
within the abstraction decide whether to use requestPointerLock or setPointerCapture based on browser type.
2022-07-02 00:23:30 +03:00
Sara Vieira 77ef3c787b chore(env) - Add env check before starting app 2022-07-01 23:08:50 +02:00
Oleg Isonen 6956da05f9 eslint 2022-07-01 15:47:27 +02:00
Oleg Isonen 711ee5935e only set margin on paragraphs inside content editable 2022-07-01 15:27:46 +02:00
Andrey Okonetchnikov 370817fa85 Merge pull request #100 from webstudio-is/storybook-webpack5
Use webpack5 and lazy compilation in Storybook
2022-07-01 15:14:02 +02:00
Oleg Isonen 385ab8b577 no need for page scroll calculation since rendering outside 2022-07-01 15:00:43 +02:00
Oleg Isonen e30267d0f3 1px outline looks better 2022-07-01 14:56:21 +02:00
Oleg Isonen 88fe5baffb clear selection rect when unmounting text editor
otherwise you can select a different element and previous selection rect will make toolbar render in the wrong position
2022-07-01 14:37:23 +02:00
Oleg Isonen 3e7303f267 improve typing perf by debouncing serialization and submition 2022-07-01 14:05:18 +02:00
Oleg Isonen 7bd53c22cb calc rect when selecting inline instance 2022-07-01 13:58:44 +02:00
Oleg Isonen c0be503323 exit editing mode when a different instance gets selected 2022-07-01 13:38:24 +02:00
Oleg Isonen 7238cba735 disable the outline when hovering an inline instance during parent text editing 2022-07-01 13:33:48 +02:00
Oleg Isonen e8714581f3 use ds 2022-07-01 13:15:51 +02:00
Oleg Isonen 35b45a1e96 inline create instance 2022-07-01 13:15:50 +02:00
Oleg IsonenandAndrey Okonetchnikov bc9853031a Update app/canvas/features/wrapper-component/text-editor/plugins/tree-view-plugin.tsx
Co-authored-by: Andrey Okonetchnikov <okonet@users.noreply.github.com>
2022-07-01 12:37:15 +02:00
Oleg Isonen c4a9d62eaf don't show outlines when editing text 2022-07-01 12:27:57 +02:00
Andrey Okonetchnikov f1babc1387 Use webpack5 and lazy compilation in Storybook 2022-07-01 11:48:26 +02:00
Oleg Isonen 0d45137f81 box shadow around content editable 2022-07-01 11:15:38 +02:00
Oleg Isonen 91e8c5f84f don't use the theme on canvas for helpers
because theme is going to be user controlled and currently doesn't have many values at all
2022-07-01 10:48:13 +02:00
Oleg Isonen d7b6a70a63 move inline wrapper component to wrapper component 2022-07-01 01:46:21 +02:00
Oleg Isonen 5f05d7e34a cleanup the story 2022-07-01 01:16:56 +02:00
Oleg Isonen 35c5475c00 move text editor to wrapper component 2022-06-30 23:25:29 +02:00
Oleg Isonen d5b4eefcc3 Merge branch 'main' into 68-move-content-editable-toolbar-to-workspace-tools 2022-06-30 22:49:46 +02:00
Oleg Isonen a6ee6db21e fix more ts errors and linter 2022-06-30 22:49:06 +02:00
Oleg Isonen 4b01518b92 Merge branch 'main' into 68-move-content-editable-toolbar-to-workspace-tools 2022-06-30 22:42:18 +02:00
Oleg Isonen 9482c037ea make the file names consistently kebab case 2022-06-30 22:41:17 +02:00
Oleg Isonen 3e09f577ac not using theme 2022-06-30 22:22:19 +02:00
Oleg Isonen b335b622f6 make sure paragraphs look same way as brakes 2022-06-30 22:18:01 +02:00
Oleg Isonen f0b370cb50 serializing/deserializing content editable 2022-06-30 21:57:58 +02:00
Oleg Isonen 5c7da8feeb Merge branch 'main' into 68-move-content-editable-toolbar-to-workspace-tools 2022-06-30 18:03:11 +02:00