Commit Graph

58 Commits

Author SHA1 Message Date
Yanzhen Yu
28f556de09 fix tsconfig to emit declaration files 2022-02-22 11:14:08 +08:00
Bowen Tan
7ca0781393 Publish
- @sunmao-ui/chakra-ui-lib@0.2.0
 - @sunmao-ui/core@0.4.0
 - @sunmao-ui/editor@0.4.0
 - @sunmao-ui/runtime@0.4.0
2022-02-17 18:04:31 +08:00
Yanzhen Yu
a722dcc34a extend metadata and set category annotation to core components 2022-02-09 12:50:51 +08:00
Bowen Tan
7c7dca7834 Publish
- @sunmao-ui/chakra-ui-lib@0.1.4
 - @sunmao-ui/core@0.3.6
 - @sunmao-ui/editor@0.3.10
 - @sunmao-ui/runtime@0.3.10
2022-01-26 17:24:58 +08:00
Bowen Tan
dff5ba60c9 move addModuleId to editor 2022-01-20 17:52:49 +08:00
Bowen Tan
9182bb61f4 Publish
- @sunmao-ui/chakra-ui-lib@0.1.3
 - @sunmao-ui/core@0.3.5
 - @sunmao-ui/editor@0.3.9
 - @sunmao-ui/runtime@0.3.9
2022-01-11 16:38:26 +08:00
Bowen Tan
3c78ac2116 Publish
- @sunmao-ui/chakra-ui-lib@0.1.2
 - @sunmao-ui/core@0.3.4
 - @sunmao-ui/editor@0.3.8
 - @sunmao-ui/runtime@0.3.8
2022-01-11 16:38:01 +08:00
Bowen Tan
c5be99ffcf rename types in core and runtime 2022-01-07 14:05:57 +08:00
yz-yu
432314c61e
Merge pull request #203 from webzard-io/refactor/slot
refactor slot and ImplWrapper to cache render result
2022-01-07 08:49:26 +08:00
yz-yu
a3af4b8252
Merge pull request #202 from webzard-io/revert/es5
revert build to es5
2022-01-07 08:47:11 +08:00
Bowen Tan
1f6090868e revert build to es5 2022-01-06 16:31:57 +08:00
Yanzhen Yu
8ab13e3c66 Publish
- @sunmao-ui/chakra-ui-lib@0.1.1
 - @sunmao-ui/core@0.3.3
 - @sunmao-ui/editor@0.3.7
 - @sunmao-ui/runtime@0.3.7
2022-01-05 15:09:01 +08:00
Bowen Tan
fae2591088 add RuntimeAppSchemaManager 2022-01-05 11:05:28 +08:00
Bowen Tan
02dc6e979e remove version 2 2021-12-31 14:53:55 +08:00
Yanzhen Yu
c3834ae3ef type safe component: types and migrate one component 2021-12-30 17:44:21 +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
Bowen Tan
2362940bb5 make spec of create functions optional 2021-12-22 11:00:38 +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
Bowen Tan
80aacaacfe Publish
- @sunmao-ui/core@0.3.1
 - @sunmao-ui/editor@0.3.4
 - @sunmao-ui/runtime@0.3.4
2021-12-07 17:28:21 +08:00
Bowen Tan
4671791e6a fix test 2021-11-30 11:01:12 +08:00
Yanzhen Yu
b291d5968b Publish
- @sunmao-ui/core@0.3.0
 - @sunmao-ui/editor@0.3.0
 - @sunmao-ui/runtime@0.3.0
 - @sunmao-ui/vite-plugins@1.0.2
2021-11-21 15:21:54 +08:00
Yanzhen Yu
09211db07b refactor code namings to sunmao-ui
also upgrade typescript and typebox to latest version
2021-11-21 14:38:33 +08:00
Yanzhen Yu
66f3169bd6 init JSON schema form as the default editor form
1. fields: SchemaField, ObjectField, StringField, UnsupportedField
2. operations: ReplaceComponentProperty
2021-11-15 01:43:44 +08:00
Yanzhen Yu
545eb25f95 Publish
- @meta-ui/core@0.2.2
 - @meta-ui/editor@0.2.5
 - @meta-ui/runtime@0.2.5
 - @meta-ui/vite-plugins@1.0.1
2021-11-09 08:46:34 +08:00
Bowen Tan
7ef978a677 modify module spec 2021-11-04 18:16:51 +08:00
Bowen Tan
4949903976 implement module event 2021-11-02 11:40:18 +08:00
Bowen Tan
a0a75aca02 module can expose state 2021-11-02 11:40:18 +08:00
Bowen Tan
c682e3b360 add basic module 2021-11-02 11:40:18 +08:00
Yanzhen Yu
16db03786d update dependencies
1. update react-markdown to fix https://github.com/vitejs/vite/issues/3592
2. use lodash-es to replace lodash
2021-10-31 16:33:56 +08:00
Yanzhen Yu
6b35a56110 fix typings config and runtime error 2021-10-31 12:11:01 +08:00
Yanzhen Yu
ba6cdf7cda Publish
- @meta-ui/core@0.2.1
 - @meta-ui/editor@0.2.2
 - @meta-ui/runtime@0.2.2
2021-10-27 11:45:51 +08:00
Yanzhen Yu
53c71b05b0 use tsup to bundle core and runtime packages 2021-10-27 11:45:19 +08:00
Yanzhen Yu
d68f2e3cf9 Publish
- @meta-ui/core@0.2.0
 - @meta-ui/editor@0.2.0
 - @meta-ui/runtime@0.2.0
2021-10-27 00:27:49 +08:00
Yanzhen Yu
01f356a215 switch to general release 2021-10-27 00:25:44 +08:00
Yanzhen Yu
eef445a320 test release canary version 2021-10-27 00:20:51 +08:00
Yanzhen Yu
87b0552ff3 add release dev version script 2021-10-27 00:12:19 +08:00
Bowen Tan
f3d6d9b76e add exampleSize metadata 2021-10-15 10:17:57 +08:00
Bowen Tan
111ebf79de update spec 2021-10-15 10:17:57 +08:00
Bowen Tan
6da304e286 decouple use appModel 2021-10-12 10:57:26 +08:00
Bowen Tan
f131a5e3b7 defaultProperties -> exampleProperties 2021-10-11 17:37:14 +08:00
Bowen Tan
141af3ffd6 add defaultProperties for components 2021-10-11 17:07:26 +08:00
Bowen Tan
90f6fc6c2d add metadata 2021-10-11 17:07:26 +08:00
Bowen Tan
f0052aab11 impletement create and undo 2021-09-27 18:00:34 +08:00
Bowen Tan
92a11a1458 support cross package import @mata-io/runtime 2021-09-24 10:06:09 +08:00
ShenWen Yin
06d8f66f7e update ci test configuration 2021-09-23 09:38:28 +08:00
Yanzhen Yu
2bcb02491b update component and trait props type to JSONSchemaObject
related to #54
2021-09-20 16:02:17 +08:00
Yanzhen Yu
57c46027e8 update the spec of component ids in the spec
related to #54
If users naming component with id 'input-1', it may be hard to be
used in the expression, because 'input-1' is not a valid JS variable
name.

So we update the spec to make sure component ids are valid JS variable
names.
According to https://stackoverflow.com/a/1661249, valid JS variable
name can be a big set. In this patch, we just force users to pass
a simple and limited RegExp, which keep application simple and readable.

TODO: validate component ids are not keywords.
2021-09-18 00:57:40 +08:00
Bowen Tan
36cbe2ae25 add eslint 2021-09-17 09:48:40 +08:00