Commit Graph

445 Commits

Author SHA1 Message Date
Bowen Tan
1f6090868e revert build to es5 2022-01-06 16:31:57 +08:00
tanbowensg
4a1b2bc5f4
Merge pull request #196 from webzard-io/bundle
manage editor styles in a single CSS
2022-01-04 17:04:27 +08:00
Yanzhen Yu
262c212015 extract styles in runtime package 2022-01-04 15:37:28 +08:00
xzdry
3f60e5ba12 add key to SchemaField component to keep input state independent 2022-01-04 14:25:10 +08:00
Yanzhen Yu
be72b98f24 manage editor styles in a single CSS
Some frameworks like Next.js does not like global CSS from node
modules, so we are going to bundle CSS into a single file with
postcss.

ref: https://github.com/vercel/next.js/discussions/27953
2022-01-04 13:44:30 +08:00
Bowen Tan
02dc6e979e remove version 2 2021-12-31 14:53:55 +08:00
Bowen Tan
b698e1e5d2 update chakra-ui-lib slot 2021-12-31 10:54:19 +08:00
Bowen Tan
cca2930a2c fix chakra-ui-lib hooks lint 2021-12-30 17:56:24 +08:00
Bowen Tan
93fa2244d4 refactor chakra-ui-lib 2021-12-30 17:44:22 +08:00
Bowen Tan
70dad17dee refactor core components 2021-12-30 17:44:22 +08:00
Yanzhen Yu
c3834ae3ef type safe component: types and migrate one component 2021-12-30 17:44:21 +08:00
Bowen Tan
959d3049b5 add react hooks lint 2021-12-30 13:54:19 +08:00
tanbowensg
9752aa03c2
Merge pull request #178 from webzard-io/module-parse-bug
fix module parsing bug
2021-12-29 10:45:45 +08:00
Bowen Tan
5b805b715a fix code 2021-12-28 15:19:16 +08:00
Bowen Tan
70d4a1587f fix code style 2021-12-28 11:18:18 +08:00
Bowen Tan
27b5a3eb60 add validator tests 2021-12-27 17:32:55 +08:00
Bowen Tan
6bcee65a54 move appModel to root dir 2021-12-27 15:26:46 +08:00
Bowen Tan
26300bff0c refactor validator 2021-12-27 15:13:44 +08:00
Bowen Tan
3cbf92b720 add unit tests 2021-12-24 17:14:33 +08:00
Bowen Tan
97caa02d9e reactor model name 2021-12-24 17:06:16 +08:00
Bowen Tan
22ef4d12b9 refactor oprationmanager 2021-12-24 17:06:16 +08:00
Bowen Tan
c7cec729c0 add model operations 2021-12-24 17:06:16 +08:00
Bowen Tan
5c59f7d88c add some operations 2021-12-24 17:06:16 +08:00
Bowen Tan
3a505db5e2 add AppModel 2021-12-24 17:06:16 +08:00
yz-yu
3d51429240
Merge pull request #171 from webzard-io/validate
Schema Validator
2021-12-24 15:21:35 +08:00
Bowen Tan
38803c634a fix test 2021-12-23 10:25:44 +08:00
Yanzhen Yu
d4957b0096 upgrade tsup and compile to es5 2021-12-22 14:38:34 +08:00
Yanzhen Yu
3e7dab1bf9 add test case 2021-12-22 13:55:24 +08:00
Bowen Tan
b65cf04880 format code 2021-12-22 11:00:39 +08:00
Bowen Tan
b3497a8faf add "Save anyway" button 2021-12-22 11:00:39 +08:00
Bowen Tan
50614ab04a add module validator 2021-12-22 11:00:39 +08:00
Bowen Tan
c56de04500 split validator rules file 2021-12-22 11:00:38 +08:00
Bowen Tan
04dcdd9f8c fix cannot change event type bug 2021-12-22 11:00:38 +08:00
Bowen Tan
45e5d478fb add eventHandler validator rule 2021-12-22 11:00:38 +08:00
Bowen Tan
29c5054b6e refactor validator 2021-12-22 11:00:38 +08:00
Bowen Tan
15f0d704aa add error list ui 2021-12-22 11:00:38 +08:00
Bowen Tan
71e0d79095 make some components property option 2021-12-22 11:00:38 +08:00
Bowen Tan
2364e7aee6 make trait spec optional 2021-12-22 11:00:38 +08:00
Bowen Tan
2362940bb5 make spec of create functions optional 2021-12-22 11:00:38 +08:00
Bowen Tan
451590b581 change some components' property to optional 2021-12-22 11:00:38 +08:00
Bowen Tan
30d1932d2e add schema validator 2021-12-22 11:00:36 +08:00
Yanzhen Yu
52d2534948 remove chakra-ui dependencies from runtime package 2021-12-21 21:04:39 +08:00
Yanzhen Yu
4faa578f0d move chakra-ui lib to a single package 2021-12-21 20:42:44 +08:00
Yanzhen Yu
9e6ddccbef add lib interface 2021-12-21 19:44:23 +08:00
Yanzhen Yu
8ea979f234 Publish
- @sunmao-ui/core@0.3.2
 - @sunmao-ui/editor@0.3.6
 - @sunmao-ui/runtime@0.3.6
2021-12-21 19:37:16 +08:00
yz-yu
968be3744f
Merge pull request #174 from webzard-io/refactor/style-trait
refactor style trait
2021-12-20 23:07:57 +08:00
yz-yu
498d3dab29
Merge pull request #172 from webzard-io/preview-modal
decouple the sunmao runtime instance in preview modal and editor view
2021-12-20 14:57:16 +08:00
Bowen Tan
af7e2c74a4 refactor style trait form 2021-12-20 14:18:58 +08:00
Bowen Tan
9ae0623a7a change style trait params to array 2021-12-20 11:36:33 +08:00
Bowen Tan
668fd07c99 remove runtime emotion/react 2021-12-20 11:35:43 +08:00