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
Bowen Tan
4ac96e3d66
remove editor @emotion/react
2021-12-20 11:33:54 +08:00
Bowen Tan
7b8d7da796
decouple preview modal
2021-12-20 11:33:32 +08:00
Bowen Tan
7f9e2d0e7c
Merge branch 'main' into feat/drag-to-reorder
...
* main:
update module examples
rename module components -> impl
# Conflicts:
# packages/editor/src/AppStorage.ts
2021-12-20 10:05:07 +08:00
Bowen Tan
1343a8d246
Merge branch 'main' into feat/drag-to-reorder
...
* main:
improve the Slot component 1. bypass props to children 2. render null when slot not set
# Conflicts:
# packages/runtime/src/components/_internal/Slot.tsx
# packages/runtime/src/components/chakra-ui/Tabs.tsx
2021-12-16 16:21:33 +08:00
Bowen Tan
99e80768a6
rename module components -> impl
2021-12-16 15:57:43 +08:00
Bowen Tan
15d48fd8c8
remove console
2021-12-16 11:25:56 +08:00
Yanzhen Yu
9c5bc4a0ac
improve the Slot component
...
1. bypass props to children
2. render null when slot not set
2021-12-15 16:51:28 +08:00
Bowen Tan
a87f746c24
Merge branch 'main' into feat/drag-to-reorder
...
* main:
introduce widgets and impl module widget
# Conflicts:
# packages/editor/src/components/ComponentForm/ComponentForm.tsx
2021-12-15 16:25:44 +08:00
Yanzhen Yu
abbddda5e4
introduce widgets and impl module widget
2021-12-14 15:54:00 +08:00