Commit Graph
1254 Commits
Author SHA1 Message Date
Andras Bacsai 07e81efeef fix: export type BuildParams 2022-11-21 14:07:11 +01:00
Andras Bacsai 76a89f58bd feat: add rest api for /s/css 2022-11-21 14:05:57 +01:00
Andras Bacsai 2e39bbfd27 feat: move css engine loader to shared folder 2022-11-21 14:05:08 +01:00
Andras Bacsai 43a5889481 merge main 2022-11-21 11:42:38 +01:00
Roman Pominov 559318bd22 Fix a security issue with eval() (#485)
In the current main if you enter `1+1,alert("hello")` as a value into a
CSS input, you'll see an alert. This PR fixes it.
2022-11-21 13:37:15 +03:00
Andras Bacsai 03583078cb feat: redesigner loadProject + add new rest api for CSS 2022-11-21 11:00:03 +01:00
Bogdan Chadkin 6719c51f2d Remove components meta data unused in app (#481)
Generated .props.json in react-sdk added huge amount of unused data to
app bundle.

Here I loaded only what's used, validated generated data and covered
meta with strict types.

As you can see this heavily reduced app size

du -ck public/build
2800
2336
2022-11-20 19:07:54 +03:00
Oleg Isonen a2822bcc94 fix uploading indicator position 2022-11-19 20:42:45 +01:00
Bogdan Chadkin f6e92f2f1b Find unused variables with typescript (#474)
Eslint always had issues finding unused variables. And it's usually
required two more plugins beside builtin functionality to handle this
case.

Typescript has this builtin and handles all cases out of the box. Also
it works faster and more responsive in ide than eslint.
2022-11-19 18:45:49 +03:00
Ivan Starkov 0b37ccdefe [release-fix] Change align-items onto align-self (#470)
Fixes label align-items onto align-self

Probably in the future this should be used.
`sectionStyle.alignSelf?.styleConfig.label`
2022-11-19 13:52:05 +01:00
Oleg Isonen 669416b732 Merge pull request #471 from webstudio-is/fix_align_content_vis
[release-fix] Show align-content only if wrap enabled
2022-11-19 13:51:48 +01:00
Oleg Isonen fa9129f4aa Merge pull request #472 from webstudio-is/fix_gray
[release-fix] Flex gap icon is not button
2022-11-19 13:51:33 +01:00
Bogdan Chadkin f4f2a08eb1 Fix styles when enter editor mode (#469)
Styles were lost when refactored with new css engine. Here used the same
way as with className before but instead set data-ws-id attribute. Did
not add data-ws-component to avoid selecting.

Fixed text toolbar background for dark mode.
2022-11-19 15:22:31 +03:00
istarkov 489b752d38 Flex gap icon is not button 2022-11-19 10:41:19 +00:00
istarkov c57bebfae8 Show align-content only if wrap enabled 2022-11-19 10:25:02 +00:00
Bogdan Chadkin b163fdfa76 Use floating-ui to position text toolbar (#467)
Ref https://github.com/webstudio-is/webstudio-designer/issues/107

Text toolbar is badly positioned when flipped up. Keeping it too close
to cursor makes text selection harder.

Here I replaced custom logic with computed rect from toolbar parent and
state from canvas. A few middlewares polished offsets. Flip no longer
overlap text.

Also fixed toolbar background.

Hide toolbar while selecting text with mouse.
2022-11-19 10:51:31 +03:00
Oleg Isonen f327c46526 Merge pull request #461 from webstudio-is/move-css-data
Move css-data to a package
2022-11-18 16:06:17 +01:00
Oleg Isonen 2d849e3093 refix without additional text node 2022-11-18 15:31:32 +01:00
Oleg Isonen 8434b39d79 lint 2022-11-18 15:18:32 +01:00
Oleg Isonen 74876bd9ad fix unit font 2022-11-18 15:05:28 +01:00
Oleg Isonen c018c57487 Merge branch 'main' into move-css-data 2022-11-18 14:01:31 +01:00
Oleg Isonen bda114b4e3 move tree utils again back to project
someone merged them back into app after they were moved to project
2022-11-18 14:01:19 +01:00
Roman Pominov 6542a20e47 Restrict some prefixes for page paths (#462)
Fixes #449
2022-11-18 14:53:28 +03:00
Oleg Isonen 06d5658b01 Merge branch 'main' into move-css-data 2022-11-17 22:25:08 +01:00
Oleg Isonen 33160e6632 move css-data to a package 2022-11-17 21:12:39 +01:00
Oleg Isonen 1c51ea0da0 Merge pull request #460 from webstudio-is/remove-width-constant
Remove PANEL_WIDTH constant, use token
2022-11-17 16:47:42 +01:00
Oleg Isonen 05a70c95a8 remove PANEL_WIDTH constant, use token 2022-11-17 15:40:22 +01:00
Oleg Isonen df334caeb6 use loContrast for color 2022-11-17 15:22:20 +01:00
Oleg Isonen 87f8687776 tweak page settings animation 2022-11-17 15:19:20 +01:00
Roman Pominov a0363cb899 create -> create page (as in figma) 2022-11-17 16:44:43 +04:00
Roman Pominov 53dccae7ec minor 2022-11-17 16:27:43 +04:00
Roman Pominov e8ac151b62 better animation 2022-11-17 16:13:14 +04:00
Roman Pominov 8c4db3a774 don't show path in the home page settings 2022-11-17 16:13:14 +04:00
Roman Pominov 7a14cf84c1 use focus-visible instead of focus in icon-button 2022-11-17 16:13:14 +04:00
Roman Pominov 671d131224 move focus to menu button on settigns close 2022-11-17 16:13:14 +04:00
Roman Pominov b3bcb079ee menu button toggles page settings 2022-11-17 16:13:14 +04:00
Roman Pominov 04a7e22e7a move nameToPath out of component 2022-11-17 16:13:14 +04:00
Roman Pominov 6e5e5e6ecb fix tab navigation 2022-11-17 16:13:14 +04:00
Roman Pominov 4deba54299 move "create" button to the header 2022-11-17 16:13:14 +04:00
Roman Pominov 91f6840c53 fix header layout according to figma 2022-11-17 16:13:14 +04:00
Roman Pominov 24057310ff fix findByPath 2022-11-17 16:13:14 +04:00
Roman Pominov 133f08c6f1 remove unnecessary useCallback 2022-11-17 16:13:14 +04:00
Roman Pominov a055e63cfa fix tooltips alignment 2022-11-17 16:13:14 +04:00
Roman Pominov b8a23a5e79 pre-fill, autoselect, autogenerate 2022-11-17 16:13:14 +04:00
Roman Pominov f49e7da428 autofocus name field 2022-11-17 16:13:14 +04:00
Roman Pominov c5e7160e70 add placeholders 2022-11-17 16:13:14 +04:00
Oleg Isonen 4ffe1cdba5 use GlobalStyles component to render layout effect early 2022-11-17 12:25:12 +01:00
Oleg Isonen 4e9a88ecfc Merge branch 'main' into css-engine 2022-11-17 04:00:09 +01:00
Oleg Isonen b2b9e7d095 Merge pull request #455 from webstudio-is/fix-style-panel-search-error
fix style panel search error
2022-11-17 03:41:59 +01:00
Oleg Isonen 7d74fb51ef emove stitches from sdk 2022-11-17 03:39:37 +01:00