Commit Graph

526 Commits

Author SHA1 Message Date
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
tanbowensg
c910f635b3
Merge pull request #175 from webzard-io/lib-chakra
Lib chakra-ui
2021-12-22 10:58:11 +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
yz-yu
64a868799d
Merge pull request #173 from webzard-io/refactor/emotion-css
replace @emotion/react with @emotion/css
2021-12-20 14:36:25 +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
yz-yu
736ef98bd0
Merge pull request #165 from webzard-io/feat/drag-to-reorder
drag component into view & move components across level
2021-12-20 11:31:05 +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
yz-yu
1d0dd1a145
Merge pull request #169 from webzard-io/refactor/module-impl
rename module components -> impl
2021-12-19 22:46:30 +08:00
Bowen Tan
b6ee7b4d6e update module examples 2021-12-17 10:18:14 +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
tanbowensg
4c3d75daa3
Merge pull request #168 from webzard-io/editor-ex
improve the Slot component
2021-12-16 15:01:48 +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
tanbowensg
5b7b21655b
Merge pull request #167 from webzard-io/editor-ex
introduce widgets and impl module widget
2021-12-15 16:20:17 +08:00
Yanzhen Yu
abbddda5e4 introduce widgets and impl module widget 2021-12-14 15:54:00 +08:00
Bowen Tan
dae1197ce2 Merge branch 'main' into feat/drag-to-reorder
* main:
  improve json schema fields UX
  impl style trait form

# Conflicts:
#	packages/editor/src/components/ComponentForm/ComponentForm.tsx
2021-12-14 10:49:42 +08:00
tanbowensg
d6360422fc
Merge pull request #164 from webzard-io/editor-ex
improve component form
2021-12-14 10:41:14 +08:00
Bowen Tan
65dec7e5e3 Merge branch 'main' into feat/drag-to-reorder
* main:
  remove CutOperation
  complete copy cut paste
  add cut paste
  can paste
  customize editor theme to a more compact style
  change path to relative
  Revert "add vite-tsconfig-path plugin"
  Revert "replace runtime relative path to absolute"
  Revert "replace editor relative path to absolute"
  improve editor style
  export Editor as component

# Conflicts:
#	packages/editor/src/components/ComponentForm/ComponentForm.tsx
#	packages/editor/src/components/Editor.tsx
#	packages/editor/src/components/KeyboardEventWrapper.tsx
#	packages/editor/src/components/StructureTree/StructureTree.tsx
#	packages/editor/src/operations/index.ts
#	packages/editor/src/operations/leaf/component/pasteComponentLeafOperation.ts
2021-12-14 10:36:36 +08:00
tanbowensg
7d4c238758
Merge pull request #155 from webzard-io/feat/copy
Implement copy, cut and paste
2021-12-13 18:26:38 +08:00
Bowen Tan
d4a348619a remove CutOperation 2021-12-13 18:26:15 +08:00
Bowen Tan
cb5c6173c6 complete copy cut paste 2021-12-13 18:26:14 +08:00
Bowen Tan
e24d97b0aa add cut paste 2021-12-13 18:25:21 +08:00
Bowen Tan
42e955b40d can paste 2021-12-13 18:25:21 +08:00
Yanzhen Yu
e6c8cf1026 improve json schema fields UX 2021-12-12 20:25:48 +08:00
Yanzhen Yu
d508119e7f impl style trait form 2021-12-10 15:55:59 +08:00
tanbowensg
bc90fe70d3
Merge pull request #163 from webzard-io/editor-ex
customize editor theme to a more compact style
2021-12-10 10:07:22 +08:00
Yanzhen Yu
6a63d08753 customize editor theme to a more compact style 2021-12-09 11:02:01 +08:00
yz-yu
d428d3c12d
Merge pull request #162 from webzard-io/revert/ts-path
Revert absolute path change
2021-12-09 10:56:01 +08:00
Bowen Tan
b246663c5d change path to relative 2021-12-09 10:20:50 +08:00