Andras Bacsai
aa3aea369e
fix: type errors
2022-11-21 21:27:51 +01:00
Andras Bacsai
07e81efeef
fix: export type BuildParams
2022-11-21 14:07:11 +01:00
Andras Bacsai
c9ebf4c01a
fix: add page meta to published sites
2022-11-21 14:06:39 +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
Andras Bacsai
81ee8e974a
Merge pull request #489 from webstudio-is/fix/react-sdk
...
fix: missing dependency (detect-font) + github action
2022-11-21 11:37:43 +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
13e0a63014
do not run tests on main push
2022-11-21 11:31:24 +01:00
Andras Bacsai
9c2c0e6c42
fix: missing dependency (detect-font)
2022-11-21 11:30:01 +01:00
Andras Bacsai
a6493f93ca
fix: publish test on not main branches only (again)
2022-11-21 11:25:12 +01:00
Andras Bacsai
48c16ad1ea
fix: publish test on not main branches only
2022-11-21 11:21:56 +01:00
Andras Bacsai
921ec93fd8
Merge branch 'main' into feat/pages-updates
2022-11-21 11:16:42 +01:00
Andras Bacsai
1d60103849
Merge pull request #486 from webstudio-is/publish-new-packages
...
Publish `css-data` & `css-engine` to NPM
2022-11-21 11:15:15 +01:00
Andras Bacsai
f9dc77913d
publish new packages
2022-11-21 11:03:07 +01: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
50010c7f0d
Check all .ts and .tsx in packages src folder ( #476 )
...
Here "include" often have list of extensions and forgotten .tsx so such
modules are left unchecked. Replaced with just "src" which consider all
typescript extensions.
Ideally stop using tsc to build artifacts, switch to esbuild and remove
complex configuration from all tsconfig.json.
2022-11-19 21:21:38 +03: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
Bogdan Chadkin
1caa9432bb
Generate icons index.ts with after hook ( #466 )
...
Ref
https://github.com/svg/svgo-components/tree/main/packages/svgo-jsx#how-to-generate-indexjs-if-you-really-need-it
Use svgo/jsx "after" hook instead of custom script for index.ts
generation. This makes setup slightly simpler and more portable.
Use tsx as loader to run svgo-jsx instead of using .bin as entry point.
This is safer when use in various package managers.
2022-11-19 00:39:48 +03:00
Oleg Isonen
24bc6be20d
bump all updated package versions
2022-11-18 16:19:50 +01: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
a3e68d30c0
Merge pull request #464 from webstudio-is/fix-unit-font
...
Fix unit font
2022-11-18 16:05:45 +01:00
Roman Pominov
ecbd528a87
fix build
2022-11-18 18:53:03 +04: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
385ac6983b
use zod as peer and dev deps
2022-11-18 14:26:26 +01:00
Oleg Isonen
3cba420fc3
add fonts dep
2022-11-18 14:13:25 +01:00
Oleg Isonen
73d3eacad7
remove temp any
2022-11-18 14:09:49 +01:00
Oleg Isonen
061df0bc52
css-engine doesn't depend on react-sdk now
2022-11-18 14:02:42 +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
Roman Pominov
a81db43f44
Merge pull request #447 from webstudio-is/pages_ui_431
...
Pages UI fixes
2022-11-17 19:45:01 +04:00
Roman Pominov
7632102d6c
Merge pull request #459 from webstudio-is/page-settings-animation
...
Page settings animation
2022-11-17 19:33:01 +04: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