Commit Graph

628 Commits

Author SHA1 Message Date
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
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
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
Yanzhen Yu
6a63d08753 customize editor theme to a more compact style 2021-12-09 11:02:01 +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
Yanzhen Yu
4ceb2999af improve editor style 2021-12-08 23:02:36 +08:00
Yanzhen Yu
4724711b7c export Editor as component 2021-12-08 23:02:14 +08:00
Bowen Tan
6a697c0d33 fix keyboard event cannot trigger in tab bug 2021-12-08 09:58:27 +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
afd60ffba2 fix move to root bug 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
d315927842 divide components and datasources 2021-12-08 09:58:26 +08:00
Bowen Tan
8399579b1d add moveComponent Operation 2021-12-08 09:58:26 +08:00
Bowen Tan
d0df4c9259 add drag componentItem event 2021-12-08 09:58:26 +08:00
Bowen Tan
368a613223 fix mobx 'Dynamic observable objects cannot be frozen' bug 2021-12-08 09:58:26 +08:00
Bowen Tan
cbe43a0bef support creating component by dragging component to canvas 2021-12-08 09:58:26 +08:00
Bowen Tan
db9f77a576 complete copy cut paste 2021-12-08 09:58:13 +08:00
Bowen Tan
5cc864db4d add cut paste 2021-12-08 09:58:12 +08:00
Bowen Tan
bbe97dc486 can paste 2021-12-08 09:58:12 +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
c3f8a41827 fix explorerTree init selectedItemId bug 2021-12-03 15:51:49 +08:00
Bowen Tan
b2c08f1222 fix modify module stateMap having $moduleId bug 2021-12-03 15:51:49 +08:00
Bowen Tan
3a12ac2413 fix cannot redo bug 2021-12-03 15:51:49 +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
596229ae18 allow customize editor container 2021-12-02 18:46:17 +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
d5e0f02d8d fix explorer style 2021-12-01 17:34:34 +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
Bowen Tan
daf67f128b add app metaData Form 2021-12-01 16:15:11 +08:00
Bowen Tan
78946ff767 add ExplorerForm 2021-12-01 16:15:10 +08:00
Sczlog
1dfc80a627 fix rebase error, remove apiservice from editor's prop 2021-12-01 15:21:30 +08:00
Sczlog
5db2f6ad57 replace snapshot test by logic test and fix bug 2021-12-01 15:08:14 +08:00
Sczlog
898521e182 fix import path 2021-12-01 15:08:10 +08:00
Sczlog
61c96bc77a use function to generate component to avoid misunderstand 2021-12-01 15:07:15 +08:00
Sczlog
6fba9b81a0 Update createComponentLeafOperation.ts
fix create component leaf operation
2021-12-01 15:03:12 +08:00
Bowen Tan
c1d8211435 use mobx in ComponentWrapper 2021-12-01 13:51:13 +08:00
Bowen Tan
69504f008b appStorage mobx 2021-12-01 10:57:35 +08:00
Bowen Tan
dcd448965c refactor AppStorage 2021-11-30 15:44:04 +08:00
Bowen Tan
a1e998702f move appStorage in editorStore 2021-11-30 14:40:40 +08:00
Bowen Tan
772ca1d519 remove useAppModel 2021-11-30 14:09:33 +08:00
Bowen Tan
c85008204a add mobx 2021-11-30 13:59:54 +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
Bowen Tan
4671791e6a fix test 2021-11-30 11:01:12 +08:00
Bowen Tan
fab012460a fix moduleRenderer empty state bug 2021-11-29 17:25:25 +08:00
Bowen Tan
119d8e72ff Merge branch 'main' into feat/editor-module
# Conflicts:
#	packages/editor/src/operations/leaf/component/adjustComponentOrderLeafOperation.ts
2021-11-29 16:59:56 +08:00
Bowen Tan
95c18aa6b0 can remove Module 2021-11-29 15:56:23 +08:00
Sczlog
2d3a6de6fa fix adjust order operation
1. fix adjust order operation
2. add unit test for the operation.
2021-11-29 15:36:02 +08:00
Bowen Tan
b68f8939f3 exploere listen modules change 2021-11-29 15:34:49 +08:00
Bowen Tan
b18baa9aa4 application -> components in operation 2021-11-29 13:54:18 +08:00
Bowen Tan
50c2c89221 Merge branch 'main' into feat/editor-module
# Conflicts:
#	packages/editor/src/components/ComponentForm/ComponentForm.tsx
#	packages/editor/src/components/ComponentForm/EventTraitForm/EventTraitForm.tsx
#	packages/editor/src/components/ComponentForm/FetchTraitForm/FetchTraitForm.tsx
#	packages/editor/src/components/Editor.tsx
#	packages/editor/src/components/StructureTree/StructureTree.tsx
#	packages/editor/src/eventBus.ts
#	packages/editor/src/main.tsx
#	packages/editor/src/operations/AppModelManager.ts
2021-11-29 11:27:38 +08:00
tanbowensg
cfc88ac8e0
Merge pull request #141 from webzard-io/yinsw/operation
fix adjust order operation
2021-11-29 10:02:13 +08:00
Sczlog
94cbb49b04 fix redo 2021-11-26 18:32:41 +08:00
Sczlog
13f1712bc8 fix adjust order operation 2021-11-26 18:26:55 +08:00
tanbowensg
edc3a2d1c5
Merge pull request #139 from webzard-io/yinsw/operation
editor operation
2021-11-26 17:58:50 +08:00
Bowen Tan
0b1a485565 fix list exampleProperties 2021-11-26 17:55:24 +08:00
Sczlog
e50670bd8d fix bug
1. update redo to do.
2. for deleted element, use tryOriginal to get its raw value but not proxy target.
2021-11-26 17:44:53 +08:00
Bowen Tan
ec7956e8d5 can create module 2021-11-26 17:40:50 +08:00
Sczlog
548e7a52d0 use git mv to rename. 2021-11-26 17:27:26 +08:00
Sczlog
1ab4e6b589 1. update operation name
1. create entry for operation.
2. change name of operation
2021-11-26 16:56:26 +08:00
Bowen Tan
fb24f47b27 support use module in module 2021-11-26 16:47:43 +08:00
Bowen Tan
b13c1125e7 parse module before register 2021-11-26 15:44:17 +08:00
Sczlog
e89eb5a49d application operation 2021-11-26 10:41:09 +08:00
Bowen Tan
eb70ee6c09 reregister module after update 2021-11-25 18:24:28 +08:00
Bowen Tan
b108682f8c refactor appModalManager & appStorage 2021-11-25 17:03:45 +08:00
Bowen Tan
16faffde83 support edit & save module 2021-11-25 15:03:10 +08:00
Bowen Tan
fcb67990bc add explorer to change module or application 2021-11-25 11:33:36 +08:00
Bowen Tan
9401762333 remove array-to-tree 2021-11-24 17:28:49 +08:00
Bowen Tan
b2fae2b01d Publish
- @sunmao-ui/editor@0.3.3
 - @sunmao-ui/runtime@0.3.3
2021-11-24 16:39:51 +08:00
Bowen Tan
6593050a5c allow add custom dependencies for eval 2021-11-24 15:59:03 +08:00
Bowen Tan
14e1b0256c remove antd tree select from runtime 2021-11-24 15:02:02 +08:00
Bowen Tan
28623964d9 update all components' spec and example 2021-11-24 15:02:02 +08:00
Bowen Tan
b5a2a7eba2 update table and form example 2021-11-24 15:02:01 +08:00
Yanzhen Yu
df53808ba2 support unmount component when hidden 2021-11-24 11:04:44 +08:00
Bowen Tan
d767784feb refactor parseExpression function 2021-11-23 18:10:39 +08:00
Bowen Tan
83b559d913 small refactor 2021-11-23 14:31:57 +08:00
Bowen Tan
84aa6e98c5 Publish
- @sunmao-ui/editor@0.3.2
 - @sunmao-ui/runtime@0.3.2
2021-11-22 15:25:34 +08:00
Bowen Tan
70ccef32a8 fix ObjectField bug & support formControl multiSelect style 2021-11-22 14:44:49 +08:00
Yanzhen Yu
494a936516 Publish
- @sunmao-ui/editor@0.3.1
 - @sunmao-ui/runtime@0.3.1
2021-11-21 15:47:34 +08:00
Yanzhen Yu
649c7dde1f allow override box styles 2021-11-21 15:44:46 +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
bfabfdeea0 refactor runtime variables to sunmao 2021-11-21 14:42:50 +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
69c3462d6c impl embed schema editor 2021-11-16 18:50:22 +08:00
Yanzhen Yu
2b81c67f48 remove legacy props form 2021-11-16 17:43:50 +08:00
tanbowensg
64271dc59d
Merge pull request #118 from webzard-io/runtime
Introduce JSON schema form as the default component properties form
2021-11-15 17:28:35 +08:00
Yanzhen Yu
51248a9b6c improve parseTypeBox utils: support enum and union 2021-11-15 16:41:10 +08:00
Yanzhen Yu
942523da42 impl NullField and MultiSchemaField 2021-11-15 16:40:49 +08:00
Yanzhen Yu
7f83129e0c impl NumberField 2021-11-15 15:47:47 +08:00
Yanzhen Yu
79d5821080 impl BooleanField 2021-11-15 15:39:09 +08:00
Yanzhen Yu
94c697f22c impl ArrayField 2021-11-15 15:30:44 +08:00
Bowen Tan
65bc14c982 Publish
- @meta-ui/editor@0.2.13
 - @meta-ui/runtime@0.2.10
2021-11-15 13:42:19 +08:00
Bowen Tan
22c8eef4e4 update chakra to 1.7.1 & close dark mode 2021-11-15 13:41:38 +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
Bowen Tan
a3ffe0af92 Publish
- @meta-ui/editor@0.2.12
 - @meta-ui/runtime@0.2.9
2021-11-12 18:22:26 +08:00
Bowen Tan
862ac6670d use div instead of p 2021-11-12 18:10:49 +08:00
Bowen Tan
91f6228969 Publish
- @meta-ui/editor@0.2.11
 - @meta-ui/runtime@0.2.8
2021-11-12 18:02:32 +08:00
Bowen Tan
8163243e8c markdown support style trait 2021-11-12 17:56:44 +08:00
Bowen Tan
8b883ba716 add lodash to eval scope 2021-11-12 17:47:42 +08:00
Bowen Tan
afc8d8d32f Publish
- @meta-ui/editor@0.2.10
 - @meta-ui/runtime@0.2.7
2021-11-12 11:19:42 +08:00
Bowen Tan
988c72d446 render treeSelect popup relatively 2021-11-12 10:42:37 +08:00
Bowen Tan
9629be23f3 modify button width 2021-11-12 10:09:08 +08:00
Bowen Tan
2789e96e3b disable drag in gridlayout in runtime 2021-11-11 18:10:51 +08:00
Bowen Tan
f0dabc001d Publish
- @meta-ui/editor@0.2.9
 - @meta-ui/runtime@0.2.6
2021-11-11 17:19:55 +08:00
Bowen Tan
9da27aca3d fix tree select & wrapper style bug 2021-11-11 17:06:05 +08:00
Bowen Tan
ba4297c3d6 add autoSelectAncestors to treeSelect 2021-11-11 14:32:37 +08:00
Bowen Tan
d223ec748a fix text emotion css 2021-11-11 11:53:29 +08:00
Bowen Tan
2bf2ae1517 make some changes for add for user center 2021-11-11 10:03:50 +08:00
Yanzhen Yu
d86dfc79ef Publish
- @meta-ui/editor@0.2.8
2021-11-10 21:48:15 +08:00
Yanzhen Yu
32dc0baa0f remove duplicate render 2021-11-10 21:47:56 +08:00
Yanzhen Yu
de3124f1c8 Publish
- @meta-ui/editor@0.2.7
2021-11-10 21:35:31 +08:00
Yanzhen Yu
db3d6dd213 allow pass-in external component, trait and module 2021-11-10 21:35:15 +08:00
Yanzhen Yu
c8d9fcd8b2 Publish
- @meta-ui/editor@0.2.6
2021-11-10 21:27:12 +08:00
Yanzhen Yu
111f1d062e fix editor typings and add bundle scripts 2021-11-10 21:26:14 +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
Yanzhen Yu
9d8c905d9e fix event trait form 2021-11-07 14:57:44 +08:00
Yanzhen Yu
8835e93a34 build playground either 2021-11-06 15:35:57 +08:00
Yanzhen Yu
cdfbc49cd8 add playground to editor 2021-11-06 15:28:28 +08:00
Yanzhen Yu
b7207db8b0 refactor global variables to instance 2021-11-06 14:26:43 +08:00
Yanzhen Yu
196922d9f8 move virtual example plugin to a standalone package 2021-11-06 13:43:17 +08:00
Yanzhen Yu
9fe48f6159 migrate html examples to json 2021-11-06 11:22:01 +08:00
Yanzhen Yu
ace258079e implement virtual example plugin
This vite plugin will read from the examples directory and compose
all the example manifests into a JSON.
2021-11-06 10:08:21 +08:00
Bowen Tan
7ef978a677 modify module spec 2021-11-04 18:16:51 +08:00
Bowen Tan
4424b5281a add moduleContainer component 2021-11-04 16:00:13 +08:00
Bowen Tan
d73276546c refactor module renderer 2021-11-03 10:02:53 +08:00
Bowen Tan
264a90b0be fix component tree overflow style 2021-11-02 14:55:47 +08:00
Bowen Tan
2da6130d6f td support module 2021-11-02 14:43:02 +08:00
Bowen Tan
47b8fa120d modify module schema 2021-11-02 11:40:18 +08:00
Bowen Tan
d885b3672d improve module demo 2021-11-02 11:40:18 +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
aee0af21db add module renderer 2021-11-02 11:40:18 +08:00
Bowen Tan
c682e3b360 add basic module 2021-11-02 11:40:18 +08:00
Bowen Tan
c9efa513e6 update vite version 2021-11-01 17:16:18 +08:00
Bowen Tan
ee41abef8c update default schema 2021-11-01 15:50:53 +08:00
Bowen Tan
309b689cc9 add link component 2021-11-01 15:50:53 +08:00
Bowen Tan
46b0483a0b change tabs to static slot name 2021-11-01 15:50:53 +08:00
Bowen Tan
ae90ca1675 add dayjs 2021-11-01 15:50:51 +08:00
Bowen Tan
21ef34082b use string to set style trait 2021-11-01 15:50:22 +08:00
Bowen Tan
8fe946fcf0 hide stack border 2021-11-01 15:50:22 +08:00
Bowen Tan
52ccb12c93 add divider 2021-11-01 15:50:22 +08:00
Bowen Tan
b24b46f251 add link td type 2021-11-01 15:50:22 +08:00
Bowen Tan
1d4b05942d fix table crash bug 2021-11-01 15:50:20 +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
23af6c4c35 add unique name to react plugin, corret me if this is not the best practise 2021-10-31 12:13:40 +08:00
Yanzhen Yu
6b35a56110 fix typings config and runtime error 2021-10-31 12:11:01 +08:00
Yanzhen Yu
ccaac9b9ae Publish
- @meta-ui/editor@0.2.4
 - @meta-ui/runtime@0.2.4
2021-10-27 14:15:18 +08:00
Yanzhen Yu
fd86d9cc0e fork @vue-reactivity/watch to fix bundler issue
@vue-reactivity/watch use tsup as its bundler, which create .mjs
file as the ES module output.
But webpack4 do not like .mjs extension which cause tools like
create-react-app failed when using meta-ui. Even users can add some
trick to let webpack4 bundle .mjs file, the watch function still
not working.

Refs:
1. https://github.com/facebook/create-react-app/issues/10356
2. https://github.com/formatjs/formatjs/issues/1395#issuecomment-518823361
2021-10-27 14:11:02 +08:00
Yanzhen Yu
aa6a643bf3 Publish
- @meta-ui/editor@0.2.3
 - @meta-ui/runtime@0.2.3
2021-10-27 11:52:03 +08:00
Yanzhen Yu
fc7c46d7a5 inject react jsx runtime 2021-10-27 11:51:46 +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
883a8983eb Publish
- @meta-ui/editor@0.2.1
 - @meta-ui/runtime@0.2.1
2021-10-27 00:39:46 +08:00
Yanzhen Yu
ac1cb05c8b target ES6 for better compatibility 2021-10-27 00:39:28 +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
Shengjie Yang
403871e35e feat: component tree sorting is supported 2021-10-26 10:48:17 +08:00
Bowen Tan
4ea4b9f8dc add fetch trait form 2021-10-25 18:04:29 +08:00
Bowen Tan
2c7efc149c add keyValue editor 2021-10-25 14:04:30 +08:00
Bowen Tan
9f40f29cf6 fix: cannot focus input when dialog open 2021-10-22 13:33:50 +08:00
Bowen Tan
112aa2daff fix scroll bug 2021-10-22 13:33:50 +08:00
Bowen Tan
7e66e01ea2 can remove trait 2021-10-22 13:33:50 +08:00
Bowen Tan
5d9963a963 can add trait 2021-10-22 13:33:50 +08:00
Bowen Tan
b3ad91c4b7 fix drag component compatibility bug 2021-10-22 11:56:02 +08:00
Bowen Tan
2f946090a6 get handlers in EventTraitForm 2021-10-21 10:08:10 +08:00
Bowen Tan
13bde96f1a fix empty traits fields bug 2021-10-20 17:44:43 +08:00
Bowen Tan
818e4e7f84 can edit event wait and disabled 2021-10-20 17:06:09 +08:00
Bowen Tan
e63971fca7 edit parameters as JSON string 2021-10-20 16:40:54 +08:00
Bowen Tan
a259fbd729 add remove event trait 2021-10-20 16:14:24 +08:00
Bowen Tan
8a5a57d335 improve component form style 2021-10-20 15:32:44 +08:00
Bowen Tan
bba8919c6b use formik implement event form 2021-10-20 14:46:24 +08:00
Bowen Tan
3763fbe46e fix style bug 2021-10-20 10:43:34 +08:00
Bowen Tan
abb0a9d175 can add event trait 2021-10-20 10:28:48 +08:00
Chu Bin
a99262d1ea fix: replace initProps to render field 2021-10-19 18:33:40 +08:00
Chu Bin
0b66372bec feat: modify nested properties & traits 2021-10-19 15:50:36 +08:00
tanbowensg
61d86f6cc8
Merge pull request #92 from Yuyz0112/main
introduce CodeMirror to implement code editors
2021-10-19 10:21:41 +08:00
Bowen Tan
454e8b8c43 add placeholder when drag component to grid 2021-10-19 10:15:24 +08:00
Yanzhen Yu
52359f7d29 make state editor read only 2021-10-19 00:20:05 +08:00
Yanzhen Yu
3be10c22a7 introduce CodeMirror to implement code editors 2021-10-19 00:14:44 +08:00
Bowen Tan
81f2239076 render modal in custom container in editor 2021-10-18 18:06:41 +08:00
Bowen Tan
be279c0079 can drop component on root 2021-10-18 15:46:48 +08:00
Bowen Tan
e7e479f32d change default slot name to 'content' 2021-10-18 13:58:40 +08:00
Bowen Tan
7198022b1e add drop style 2021-10-18 13:40:44 +08:00
Bowen Tan
7ab90ca6ec structure tree can toggle show children & hide slotName 2021-10-18 11:22:58 +08:00