Commit Graph
5224 Commits
Author SHA1 Message Date
Oleg Isonen 71289e7915 better validation - validate on change if there are erorrs 2022-11-25 16:21:00 +01:00
Oleg Isonen df0ecc0173 naming 2022-11-25 16:08:57 +01:00
Oleg Isonen de64e6a80a we are not using that tokens format 2022-11-25 16:08:03 +01:00
Oleg Isonen edad49148a render tokens (make breakpoint optional for CssRule) 2022-11-25 15:41:35 +01:00
Oleg Isonen 7439926c9b Merge branch 'main' into 494-primitive-tokens 2022-11-25 14:52:56 +01:00
Oleg Isonen 48f66a0dc2 use any temporarily 2022-11-25 14:13:35 +01:00
Bogdan Chadkin c2f895bc6b Use corepack to setup yarn (#377)
See https://nodejs.org/api/corepack.html

Corepack is a way to setup specific yarn/pnpm version on the fly.
Builtin with Node 16.9+

Requires to run `corepack enable`

Replaces https://github.com/webstudio-is/webstudio-designer/pull/370
2022-11-25 12:46:42 +03:00
Ivan Starkov 843467a691 Image (#502)
- [x] - Image optimization component moved into standalone package
- [x] - generate-arg-types moved into standalone package - one issue
with current yarn https://github.com/yarnpkg/yarn/issues/4964 (you need
to delete root node_modules, then yarn and yarn build to make
generate-arg-types to work)
- [x] - move json into `__generated__` folder, (allow import json from
__generated__ folders only)
- [x] - Icons moved all gen into `__generated__`
- [x] - css-data generated content moved to `__generated__`
2022-11-25 12:27:44 +04:00
Oleg Isonen b321ed216b render tokens on canvas as css vars 2022-11-25 03:30:18 +01:00
Oleg Isonen 99e4f1898b new data structure 2022-11-25 01:42:10 +01:00
Bogdan Chadkin 002e4c06e2 Merge pull request #511 from webstudio-is/bump-sass-deps
Bump saas deps
2022-11-24 21:19:06 +03:00
Bogdan Chadkin 7dbbfeb6b3 Fix sdk 2022-11-24 21:02:19 +03:00
Bogdan Chadkin 18d28b50cb Bump sass deps
We need to bump all sass deps to get esm support
and treeshake bundled code.
2022-11-24 20:59:41 +03:00
Bogdan Chadkin ddf4f6f41d Merge pull request #374 from webstudio-is/main
Release
2022-11-24 18:24:23 +03:00
Bogdan Chadkin 16984b8bf7 Improve packages auto publish (#508)
Current solution often fails with

> You cannot publish over the previously published versions

Here I added small script which compares committed version and version
on npm and publish if do not match.

All scripts are run by turbo. So publishing new package is just changing
package script now.
2022-11-24 16:00:24 +03:00
Oleg Isonen e09808a19d Merge branch 'main' into 494-primitive-tokens 2022-11-24 01:46:39 +01:00
Oleg Isonen d4055f3b21 design tokens left panel and new token popover 2022-11-24 01:46:33 +01:00
Bogdan Chadkin 7f44d78279 Improve text editor styling and enable auto focus (#504)
Ref https://github.com/webstudio-is/webstudio-designer/issues/107

- fixed bold italic styling
- populate default style for instances created from text editor
- added unmount support to css engine
- auto focus text editor when start editing
2022-11-24 00:07:45 +03:00
Bogdan Chadkin 9b0d7f25b2 Output cjs in font package (#506)
Designer tests fail because of missing cjs in fonts package. Also fixed
iso string timezone in one test, was failing for me.
2022-11-23 22:55:31 +03:00
Oleg Isonen e57cc96808 fix eslint 2022-11-23 20:44:20 +01:00
Oleg Isonen 63ded04e13 fix currentIndex in font manager when new fonts are added 2022-11-23 20:23:14 +01:00
Bogdan Chadkin ac03e0b3b1 Fix esm in prisma migrations (#505)
Missed __dirname while migrating to esm. Works locally.
2022-11-23 20:59:53 +03:00
natlusyht b4f981f683 don't display empty unitless dropdown (#478)
don't display chevron if there are no items to display in the dropdown
and fix the bg on chevron's/unit text-field suffix button.

## Before requesting a review

- [ ] if the PR is WIP - use draft mode
- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")
- [ ] what kind of review is needed?
  - [ ] conceptual
  - [ ] detailed
  - [ ] with testing

## Test cases

- [ ] step by step interaction description and what is expected to
happen

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory
2022-11-23 17:04:07 +01:00
Andras Bacsai 1cf0151366 Merge pull request #500 from webstudio-is/fix/canvasdata-type
fix: type CanvasData
2022-11-23 15:37:30 +01:00
Andras Bacsai 13e2e6bf56 remove error 2022-11-23 15:17:24 +01:00
Andras Bacsai 91239ef9d0 no need to double check string 2022-11-23 15:11:55 +01:00
Andras Bacsai aacfbd9eaf version++ 2022-11-23 15:02:04 +01:00
Andras Bacsai dae9e6de38 fix: type + tests 2022-11-23 15:00:39 +01:00
Andras Bacsai e12b3c0753 fix: type CanvasData 2022-11-23 14:50:38 +01:00
Andras Bacsai b48d551e64 Merge pull request #491 from webstudio-is/feat/pages-updates
Pages update for Edge version
2022-11-23 13:49:44 +01:00
Ivan Starkov e08aa99c43 [designer] Assets picker (#444)
ref #196



- Image reverted to ordinary Image
- Added supports of "ordinary" Image `src` selection with the Asset
manager. (The Idea that we save asset + prop value simultaneously, so
"ordinary" controls will work without issues, i.e. in case of the image
we save `prop="src" value="/imagpath" asset={...tonof info here...}`)
- Image optimizations removed (will be created in standalone package in
next PR)
- Now UserProps has type
https://github.com/webstudio-is/webstudio-designer/blob/c36519540c9d3493acfe0dcdd1c118ac4b6196be/packages/react-sdk/src/user-props/schema.ts#L33-L39
- Db type is:
https://github.com/webstudio-is/webstudio-designer/blob/6d5cc571cb4e3bf00ec95f166a0daf9420ef50ac/packages/react-sdk/src/user-props/schema.ts#L4-L10


Next PRs:
1. Restore the Image component with optimizations at standalone package
2. Pass the Image component to SDK and use it instead of the original in
case of optimizations are needed.
2022-11-23 16:15:22 +04:00
Andras Bacsai 3da21ede0e bump version 2022-11-23 09:38:03 +01:00
Andras Bacsai 9ac21be7f4 bump versions 2022-11-23 09:37:14 +01:00
Andras Bacsai b2363b7e2d move cssengine dependency to package 2022-11-23 09:31:02 +01:00
Bogdan Chadkin ad04473f26 Migrate packages to native ESM (#493)
Our designer bundle heavily bloated with not analyzable commonjs
generated by typescript.

The biggest problem comes from bundled icons library which esbuild
cannot tree shake because of cjs.

Another issue is broken code splitting. Packages in one piece are appear
in chunks and always loaded even with dynamic import and React.lazy.

To solve this I migrated each package to native node es modules.
Storybook and jest work almost without changes. Though it's not possible
to run remix in esm project (while still esm packages can be bundled for
ssr). And as a result designer jest failed because of cjs tests requires
from esm packages. As a solution I generated additional commonjs
artifacts in lib/cjs.

du -ck public/build
2336
1736
2022-11-23 10:12:58 +03:00
Bogdan Chadkin 983c3a60e8 Bump lost-pixel (#497)
Need to fix esm packages
2022-11-22 22:46:31 +03:00
Bogdan Chadkin 719f8a4d03 Fix dev in prisma-client (#496)
Had to add concurrently to run two watch commands in parallel
2022-11-22 20:37:17 +03:00
Andras Bacsai c7c31b14f6 fixes 2022-11-22 15:53:06 +01:00
Andras Bacsai af41705e61 fix issues 2022-11-22 14:35:28 +01:00
Andras Bacsai cefd76d9b7 fix issues 2022-11-22 14:25:09 +01:00
Andras Bacsai d7db67e461 fix: BuildParams type 2022-11-22 12:08:51 +01:00
Andras Bacsai fe8f25db33 remove package tests 2022-11-22 12:06:15 +01:00
Andras Bacsai af1fe83f77 fix types 2022-11-22 11:18:40 +01:00
Andras Bacsai d8e264d136 fix: types 2022-11-22 11:08:10 +01:00
Andras Bacsai 81ee438a81 fix projects endpoint 2022-11-22 10:39:23 +01:00
Andras Bacsai 4dfe5d1b84 fix: tests + types 2022-11-22 10:29:38 +01:00
Andras Bacsai 6cf7c35439 simplify http-client & single rest endpoint for publishing 2022-11-22 10:12:43 +01:00
Andras Bacsai 90019fdd63 Merge branch 'main' into feat/pages-updates 2022-11-22 08:50:44 +01:00
Oleg Isonen 42b4ceea77 Stop flicker when hovering instances (#477)
## Before


https://user-images.githubusercontent.com/52824/202865326-2d8f1c4c-8843-40c9-837d-fd678dbacdaa.mp4



## After



https://user-images.githubusercontent.com/52824/202865322-3ff488c8-eb36-4d4a-9c6f-591a84332ebc.mp4





## Before requesting a review

- [ ] if the PR is WIP - use draft mode
- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")
- [ ] what kind of review is needed?
  - [ ] conceptual
  - [ ] detailed
  - [ ] with testing

## Test cases

- [ ] step by step interaction description and what is expected to
happen

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory
2022-11-22 00:40:47 +01:00
Andras Bacsai 1b72e93d3a Merge branch 'main' into feat/pages-updates 2022-11-21 21:42:10 +01:00