Commit Graph

113 Commits

Author SHA1 Message Date
Bowen Tan
6d06bb8514 refactor(*): beautify code 2022-08-23 15:22:02 +08:00
Bowen Tan
b2fb394031 build(dyamic-import): make some editor files dynamic import 2022-08-19 14:02:58 +08:00
Bowen Tan
1a084e115d build(dynamic-import): editor-sdk dynamic import succussfully 2022-08-18 16:28:05 +08:00
Bowen Tan
e76b1571a6 Merge branch 'develop' into build/visualize
* develop:
  refactor(runtime): remove full import of lodash
  fix: fix clicking outside can't close the popover widget
  fix(PopoverWidget): compatible with the React 16
  feat(Select): add title to select option
  fix(stateManager): don't console.error expression errors by default
  feat(booleanWidget): auto convert non-boolean value to boolean
  feat(numberWidget): auto convert non-number value to number
  feat(expressionWidget): don't auto convert string to other type
  feat(stateManager): don't auto convert string to number or boolean
  feat(ArrayWidget): arrayWidget will try to eval value before render it

# Conflicts:
#	yarn.lock
2022-08-16 14:50:27 +08:00
Bowen Tan
d272576087 build(chakra): split chakra widgets and lib 2022-08-16 10:49:17 +08:00
Bowen Tan
789058e1e3 refactor(runtime): remove full import of lodash 2022-08-15 18:30:04 +08:00
Bowen Tan
5c6db91554 chore(*): publish
- @sunmao-ui/arco-lib@0.3.3
 - @sunmao-ui/chakra-ui-lib@0.5.3
 - @sunmao-ui/core@0.7.3
 - @sunmao-ui/editor-sdk@0.3.3
 - @sunmao-ui/editor@0.7.3
 - @sunmao-ui/runtime@0.7.3
 - @sunmao-ui/shared@0.2.3
 - @sunmao-ui/vite-plugin-fs@0.0.3
 - @sunmao-ui/vite-plugins@1.0.5
2022-07-18 17:27:57 +08:00
Bowen Tan
9291609fb0 chore(*): publish
- @sunmao-ui/arco-lib@0.3.2
 - @sunmao-ui/chakra-ui-lib@0.5.2
 - @sunmao-ui/core@0.7.2
 - @sunmao-ui/editor-sdk@0.3.2
 - @sunmao-ui/editor@0.7.2
 - @sunmao-ui/runtime@0.7.2
 - @sunmao-ui/shared@0.2.2
 - @sunmao-ui/vite-plugin-fs@0.0.2
 - @sunmao-ui/vite-plugins@1.0.4
2022-07-15 13:58:25 +08:00
Bowen Tan
bf9911f67c docs(*): replace webzard-io with smartxworks 2022-07-13 14:59:19 +08:00
tanbowensg
43fb32713d
Merge pull request #484 from smartxworks/feat/module-spec
Dynamically add module spec
2022-07-13 10:07:27 +08:00
Bowen Tan
042c0b4b98 chore(*): publish
- @sunmao-ui/arco-lib@0.3.1
 - @sunmao-ui/chakra-ui-lib@0.5.1
 - @sunmao-ui/core@0.7.1
 - @sunmao-ui/editor-sdk@0.3.1
 - @sunmao-ui/editor@0.7.1
 - @sunmao-ui/runtime@0.7.1
 - @sunmao-ui/shared@0.2.1
 - @sunmao-ui/vite-plugin-fs@0.0.1
 - @sunmao-ui/vite-plugins@1.0.3
2022-07-11 18:02:12 +08:00
Bowen Tan
8aefa1104b chore(*): update license to apache 2.0 in package.json 2022-07-11 14:17:59 +08:00
xzdry
3400d5c783 docs(module): add comment 2022-07-11 11:51:57 +08:00
xzdry
1767423c6c refactor(module): move module exampleProperties to metadata 2022-07-11 11:12:45 +08:00
xzdry
b9381398f4 refactor: use spec.properties to save the module spec 2022-07-07 10:42:40 +08:00
xzdry
98c98547bc Merge branch 'develop' of github.com:webzard-io/sunmao-ui into feat/module-spec 2022-07-07 09:32:18 +08:00
MrWindlike
e70c2d5ea4 refactor: move the type definitions to the suitable packages 2022-07-05 10:00:44 +08:00
MrWindlike
3f57100abc feat(widget): complete the widget type detecting 2022-07-05 10:00:41 +08:00
MrWindlike
442c7711c3 feat: auto detect the raw properties types 2022-07-05 09:56:58 +08:00
MrWindlike
cd3f10c35e refactor: move the type definitions to the suitable packages 2022-07-05 09:51:54 +08:00
MrWindlike
9b54bd17cb feat(widget): complete the widget type detecting 2022-07-05 09:51:51 +08:00
MrWindlike
a25a86b48d feat: auto detect the raw properties types 2022-07-05 09:29:19 +08:00
xzdry
26caa7f1b3 feat(Module): dynamically add module spec 2022-06-28 15:51:26 +08:00
Bowen Tan
6652f9aa02 chore(package.json): update peerdependencies 2022-06-23 16:32:40 +08:00
Bowen Tan
492927864a chore(*): make runtime support ssr 2022-06-23 14:12:59 +08:00
Bowen Tan
fe68def8da feat(runtime): remove react-grid-layout
BREAKING CHANGE:
remove core/v1/grid-layout component

BREAKING CHANGE:
remove core/v1/grid-layout component (+1 squashed commit)
Squashed commits:
[549fea0] feat(remove react-grid-layout): wip

BREAKING CHANGE:
remove core/v1/grid-layout component
2022-06-20 18:30:30 +08:00
Bowen Tan
fd60c796db chore(*): publish
- @sunmao-ui/arco-lib@0.3.0
 - @sunmao-ui/chakra-ui-lib@0.5.0
 - @sunmao-ui/core@0.7.0
 - @sunmao-ui/editor-sdk@0.3.0
 - @sunmao-ui/editor@0.7.0
 - @sunmao-ui/runtime@0.7.0
 - @sunmao-ui/shared@0.2.0
2022-06-20 10:49:51 +08:00
Bowen Tan
59e1e213c7 refactor(slot): slotSchema -> SlotSpec 2022-06-01 16:16:28 +08:00
Bowen Tan
744e75cd03 Merge branch 'main' into yz-patch
* main:
  fix(editorMask): mask does'nt work because onHTMLElementsUpdated  doesn't run in init
  feat(PreviewModal): fix the length of the component in the PreviewModal exceeds the modal
  fix(ArrayTable): fix the problem of length exceeding the table
  feat(Select): add filter by text
  chore: fix typo
  feat(utilMethod): add spec to utilMethod

# Conflicts:
#	packages/core/src/index.ts
#	packages/editor-sdk/src/components/Widgets/EventWidget.tsx
2022-05-31 17:05:58 +08:00
Bowen Tan
a092fceda4 Merge branch 'yz-patch'
* yz-patch:
  update the collapse component impl
  refine slotElements interface to avoid re-mount
  memomize slotElements to avoid extra re-mount
  adapt new slots spec in editor
  migrate all in-tree components to the new slot spec
  impl #388, support slot props and apply to tabs component

# Conflicts:
#	packages/arco-lib/src/components/Descriptions.tsx
#	packages/arco-lib/src/components/Progress.tsx
#	packages/arco-lib/src/components/Tabs.tsx
#	packages/runtime/src/components/_internal/ImplWrapper/ImplWrapperMain.tsx
#	packages/runtime/src/services/StateManager.ts
2022-05-30 18:59:00 +08:00
MrWindlike
db6e26b067 chore: fix typo 2022-05-30 18:44:07 +08:00
MrWindlike
cc919a94a0 feat(utilMethod): add spec to utilMethod
ISSUES CLOSED: #354

BREAKING CHANGE:
use `type` to replace `name` when calling the method

ISSUES CLOSED: #248
2022-05-30 13:01:50 +08:00
MrWindlike
0537bb60dd chore: fix the type error 2022-05-25 13:49:21 +08:00
Bowen Tan
4761ee242e Publish
- @sunmao-ui/arco-lib@0.2.0
 - @sunmao-ui/chakra-ui-lib@0.4.0
 - @sunmao-ui/core@0.6.0
 - @sunmao-ui/editor-sdk@0.2.0
 - @sunmao-ui/editor@0.6.0
 - @sunmao-ui/runtime@0.6.0
 - @sunmao-ui/shared@0.1.0
2022-05-23 10:11:58 +08:00
Bowen Tan
c63a94509a Publish
- @sunmao-ui/arco-lib@0.2.0-alpha.3
 - @sunmao-ui/chakra-ui-lib@0.4.0-alpha.3
 - @sunmao-ui/core@0.6.0-alpha.3
 - @sunmao-ui/editor-sdk@0.2.0-alpha.3
 - @sunmao-ui/editor@0.6.0-alpha.3
 - @sunmao-ui/runtime@0.6.0-alpha.3
 - @sunmao-ui/shared@0.1.0-alpha.3
2022-05-18 16:11:17 +08:00
Bowen Tan
a6851b804d Publish
- @sunmao-ui/arco-lib@0.2.0-alpha.2
 - @sunmao-ui/chakra-ui-lib@0.4.0-alpha.2
 - @sunmao-ui/core@0.6.0-alpha.2
 - @sunmao-ui/editor-sdk@0.2.0-alpha.2
 - @sunmao-ui/editor@0.6.0-alpha.2
 - @sunmao-ui/runtime@0.6.0-alpha.2
 - @sunmao-ui/shared@0.1.0-alpha.2
2022-05-17 13:48:33 +08:00
Bowen Tan
d251c480c8 Publish
- @sunmao-ui/arco-lib@0.2.0-alpha.1
 - @sunmao-ui/chakra-ui-lib@0.4.0-alpha.1
 - @sunmao-ui/core@0.6.0-alpha.1
 - @sunmao-ui/editor-sdk@0.2.0-alpha.1
 - @sunmao-ui/editor@0.6.0-alpha.1
 - @sunmao-ui/runtime@0.6.0-alpha.1
 - @sunmao-ui/shared@0.1.0-alpha.1
2022-05-12 12:23:10 +08:00
Yanzhen Yu
74bfc5ebf4 migrate all in-tree components to the new slot spec 2022-05-12 11:52:22 +08:00
Yanzhen Yu
9b4cf9be0c impl #388, support slot props and apply to tabs component 2022-05-12 11:51:26 +08:00
Bowen Tan
56712f18ad Publish
- @sunmao-ui/arco-lib@0.2.0-alpha.0
 - @sunmao-ui/chakra-ui-lib@0.4.0-alpha.0
 - @sunmao-ui/core@0.6.0-alpha.0
 - @sunmao-ui/editor-sdk@0.2.0-alpha.0
 - @sunmao-ui/editor@0.6.0-alpha.0
 - @sunmao-ui/runtime@0.6.0-alpha.0
 - @sunmao-ui/shared@0.1.0-alpha.0
2022-05-10 17:50:20 +08:00
Bowen Tan
67f7f683c6 Merge branch 'main' into publish
* main: (24 commits)
  set the default value of debugStore and debugEvent to be false
  fix test
  feat: scroll the tree item into view when select the component
  fix: switch the scale buttons
  fix: improve the expression result display
  refactor init functions parameters
  feat: add the `clear` method to the fetch trait
  feat(tree): add onSelect events
  fix: correct splicing url
  fix(module): change the widget of property to display correct
  fix: select component to add non-empty judgement
  fix: change the import path
  fix: fix the changing api form's tab problem
  fix: fix the datasource update problems
  chore: make the data type datasource informations as constants
  chore: use the enum to replace the constants
  chore: change `GLOBAL_UTILS_ID` to `GLOBAL_UTIL_METHOD_ID`
  feat: add transformer trait
  chore: use the constant as the widget name
  chore: export `RegistryInterface` instead of `Registry`
  ...

# Conflicts:
#	packages/arco-lib/package.json
#	packages/editor-sdk/package.json
#	packages/editor/package.json
#	packages/runtime/package.json
2022-05-10 17:33:42 +08:00
Bowen Tan
3b14a36148 Publish
- @sunmao-ui/arco-lib@0.1.9
 - @sunmao-ui/chakra-ui-lib@0.3.9
 - @sunmao-ui/core@0.5.6
 - @sunmao-ui/editor-sdk@0.1.10
 - @sunmao-ui/editor@0.5.10
 - @sunmao-ui/runtime@0.5.8
2022-04-29 17:16:17 +08:00
MrWindlike
f304529899 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/shared 2022-04-26 14:09:17 +08:00
Bowen Tan
aad0600d92 fix tests && hasUnmount -> beforeRender 2022-04-26 11:35:53 +08:00
Bowen Tan
68fb739ed3 add unmount trait annotation 2022-04-25 17:32:51 +08:00
MrWindlike
bc2b9ae154 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/shared 2022-04-25 16:36:08 +08:00
MrWindlike
3903fdc6f7 feat: add @sunmao-ui/shared 2022-04-25 16:15:46 +08:00
Bowen Tan
2a9fc72c59 Publish
- @sunmao-ui/arco-lib@0.1.8
 - @sunmao-ui/chakra-ui-lib@0.3.8
 - @sunmao-ui/core@0.5.5
 - @sunmao-ui/editor-sdk@0.1.9
 - @sunmao-ui/editor@0.5.9
 - @sunmao-ui/runtime@0.5.7
2022-04-21 17:53:12 +08:00
Bowen Tan
9efee4e512 fix module bug in list 2022-04-07 15:13:57 +08:00
Yanzhen Yu
aaaf553a65 Publish
- @sunmao-ui/arco-lib@0.1.6
 - @sunmao-ui/chakra-ui-lib@0.3.6
 - @sunmao-ui/core@0.5.4
 - @sunmao-ui/editor-sdk@0.1.7
 - @sunmao-ui/editor@0.5.7
 - @sunmao-ui/runtime@0.5.5
2022-03-28 12:22:41 +08:00