Commit Graph

296 Commits

Author SHA1 Message Date
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
yz-yu
3d51429240
Merge pull request #171 from webzard-io/validate
Schema Validator
2021-12-24 15:21:35 +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
29c5054b6e refactor validator 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
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
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
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
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
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
Bowen Tan
b246663c5d change path to relative 2021-12-09 10:20:50 +08:00
Bowen Tan
7ed3712125 Revert "add vite-tsconfig-path plugin"
This reverts commit 504f8118ea.
2021-12-09 10:10:37 +08:00
Bowen Tan
56db5e7a7a Revert "replace runtime relative path to absolute"
This reverts commit f6144477be.
2021-12-09 10:10:10 +08:00
Bowen Tan
8722f4af54 Revert "replace editor relative path to absolute"
This reverts commit 8aff310bf5.
2021-12-09 10:09:34 +08:00
Bowen Tan
b6ca418880 add componentWrapper id label 2021-12-08 09:58:27 +08:00
Bowen Tan
987b749b97 add empty slot placeholder 2021-12-08 09:58:27 +08:00
Bowen Tan
12a43325fd add error boundary in editor 2021-12-08 09:58:27 +08:00
Bowen Tan
8399579b1d add moveComponent Operation 2021-12-08 09:58:26 +08:00
yz-yu
ee058a7b0b
Merge pull request #151 from webzard-io/fix/module-bug
fix module bugs
2021-12-07 18:46:28 +08:00
Bowen Tan
f725f61dfe Publish
- @sunmao-ui/editor@0.3.5
 - @sunmao-ui/runtime@0.3.5
2021-12-07 18:07:50 +08:00
Bowen Tan
02c255e492 fix registry path bug 2021-12-07 18:07:14 +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
92572025cc clear stateStore after change app or module 2021-12-03 15:51:49 +08:00
Bowen Tan
87bcd1435b fix moduleRenderer number of hooks change bug 2021-12-03 15:51:49 +08:00
Bowen Tan
8aff310bf5 replace editor relative path to absolute 2021-12-03 10:21:18 +08:00
Bowen Tan
f6144477be replace runtime relative path to absolute 2021-12-03 09:52:23 +08:00
Bowen Tan
504f8118ea add vite-tsconfig-path plugin 2021-12-03 09:52:23 +08:00
yz-yu
ec39d53fb7
Merge pull request #148 from webzard-io/feat/edit-metadata
Support edit app's and module's metadata in editor
2021-12-02 19:50:32 +08:00
Yanzhen Yu
fe29d74294 allow call methods from $utils 2021-12-02 17:40:51 +08:00
Yanzhen Yu
ab99a041df export module renderer from runtime 2021-12-02 17:40:51 +08:00
Yanzhen Yu
fbbcfa23e6 export Slot from runtime 2021-12-02 17:40:51 +08:00
Bowen Tan
bc896233ad fix module examples 2021-12-01 17:20:00 +08:00
Bowen Tan
5bfea34423 add module metaData form 2021-12-01 17:16:04 +08:00
yz-yu
51c33c24fd
Merge pull request #143 from webzard-io/feat/editor-module
Support edit module in editor
2021-11-30 12:55:38 +08:00
Yanzhen Yu
dbd5571204 add canary release script 2021-11-30 11:15:51 +08:00
Yanzhen Yu
b031fa228b Publish
- @sunmao-ui/editor@0.3.4-alpha.0
 - @sunmao-ui/runtime@0.3.4-alpha.0
2021-11-30 11:05:58 +08:00