Commit Graph

904 Commits

Author SHA1 Message Date
MrWindlike
d8dc5d4a6e chore: use the constants as the component names 2022-04-25 16:38:08 +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
134180ac95 fix: component does not change after its traits being modified in editor 2022-04-24 16:24:05 +08:00
Bowen Tan
05e0ad34aa add clear functions to componentDidUpdate and componentDidMount 2022-04-24 16:04:10 +08:00
Bowen Tan
63af70dccb improve code style 2022-04-22 18:30:00 +08:00
Bowen Tan
f74040cc50 add useUnmount and useUpdate 2022-04-22 18:00:55 +08:00
Bowen Tan
8964ffd45e improve merge trait result method 2022-04-22 17:14:52 +08:00
Bowen Tan
0edbfdb6e7 Merge branch 'main' into feat/new-trait
* main:
  Publish
  fix: fix changing wrong tab when drag the component
  feat: add refresh button

# Conflicts:
#	packages/runtime/src/components/_internal/ImplWrapper.tsx
#	packages/runtime/src/components/core/Dummy.tsx
#	packages/runtime/src/traits/core/State.tsx
#	packages/runtime/src/types/trait.ts
2022-04-22 16:33:36 +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
MrWindlike
a66f95cfc1 fix: fix changing wrong tab when drag the component 2022-04-21 10:25:10 +08:00
MrWindlike
b64777f1ca Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/windlike-patch 2022-04-21 10:23:27 +08:00
Bowen Tan
487d810156 refactor ImplWrapper 2022-04-20 18:56:29 +08:00
Bowen Tan
882581a8b6 wip: disable hidden trait wrapper 2022-04-20 16:50:09 +08:00
Bowen Tan
9542720895 move hooks into ImplWrapper 2022-04-20 11:18:51 +08:00
Bowen Tan
89777796c1 add lifecycle hooks 2022-04-18 17:25:29 +08:00
Bowen Tan
a14b6ed1e3 add HiddenImplWrapper 2022-04-15 17:19:37 +08:00
yz-yu
6051753393
Merge pull request #369 from webzard-io/feat/module
Recover explorer and fix module's bugs
2022-04-15 11:57:40 +08:00
tanbowensg
c6975f6a9e
Merge pull request #376 from webzard-io/feat/fetch-trait
Remove hasFetched in fetch trait and add disabled property
2022-04-15 10:28:35 +08:00
tanbowensg
f74b5bfccf
Merge pull request #378 from webzard-io/feat/arco
Feat/arco
2022-04-15 10:28:11 +08:00
xzdry
7267ad4992 add uiProps to initSunmaoEditor 2022-04-14 18:00:16 +08:00
Bowen Tan
f280d54fa8 Merge branch 'main' into feat/module
* main:
  fix: deep make value to be undefined when eval errors
  fix: Not evaled when it isn't an expression
  fix(sdk): display key when property spec has no title

# Conflicts:
#	packages/runtime/src/components/_internal/ModuleRenderer.tsx
#	packages/runtime/src/services/StateManager.ts
2022-04-14 17:34:00 +08:00
Bowen Tan
dfb86b3102 Merge branch 'main' into feat/fetch-trait
* main:
  fix: deep make value to be undefined when eval errors
  fix: Not evaled when it isn't an expression
  fix(sdk): display key when property spec has no title

# Conflicts:
#	packages/runtime/src/components/_internal/ImplWrapper.tsx
2022-04-14 17:06:10 +08:00
xzdry
af04c66ace format 2022-04-14 11:06:01 +08:00
Bowen Tan
13a5894be3 remove hasFetched in fetch trait and add disabled property 2022-04-13 17:58:41 +08:00
Bowen Tan
d4d3309c04 Merge branch 'main' into feat/module
* main:
  let tooltip show on top of modal
  fix schema editor width
  feat(table): add ellipsis and change column width functions
  pref: use re-resizable instead of react-resizable

# Conflicts:
#	packages/editor/src/components/Editor.tsx
2022-04-13 17:44:40 +08:00
Bowen Tan
b36927778c remove move fetch component to the end logic 2022-04-13 17:36:39 +08:00
xzdry
b738f85cc6 feat(badge): use conditional rendering 2022-04-13 17:18:40 +08:00
xzdry
f1ea2edbd2 refactor: refactor the alert component and add events to the alert and avatar components 2022-04-13 16:34:50 +08:00
MrWindlike
99c5c9abcb Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch 2022-04-13 16:14:37 +08:00
MrWindlike
6fe611bbaa Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/windlike-patch 2022-04-13 15:48:09 +08:00
MrWindlike
2ffb4cc84b feat: add refresh button 2022-04-13 15:43:50 +08:00
xzdry
dc463c2651 keep mounted of tab panels' content when not active 2022-04-13 13:18:39 +08:00
Bowen Tan
40466ce565 fix can not delete module bug 2022-04-13 11:23:02 +08:00
Yanzhen Yu
d2b6b189a0 let tooltip show on top of modal 2022-04-13 00:59:11 +08:00
Yanzhen Yu
4579029dd6 fix schema editor width 2022-04-13 00:58:57 +08:00
MrWindlike
62a7932a37 Merge branch 'fix/windlike-patch' of https://github.com/webzard-io/sunmao-ui into fix/windlike-patch 2022-04-11 10:26:04 +08:00
MrWindlike
462db2b8d5 fix: deep make value to be undefined when eval errors 2022-04-11 10:12:57 +08:00
xzdry
178de9c1f3 Merge branch 'main' of github.com:webzard-io/sunmao-ui into feat/arco 2022-04-11 09:33:58 +08:00
Bowen Tan
370ca60d52 add ignoreError param to evalExp function 2022-04-08 12:12:45 +08:00
Bowen Tan
dfce6b7594 Merge branch 'main' into feat/module
* main:
  fix: fix the `CategoryWidget` errors
  refactor avatar component
  Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/windlike-patch
  chore: fix the eslint errors
  feat: improve the event form performance
  feat: make event handlers collapsable
  feat: add handlers sort
  chore: rename variable
  chore: change widgets' name
  chore(arco): change var names from `schema` to `spec`
  chore: change some var names from `schema` to `spec`
  feat(expression): improve the codes
  feat: console the expression errors in `deepEval`
  feat: console the expression errors
  fix: remove the stateManager from the schema validator
  feat: improve the form performance
  style: fix the KeyValueWidth style when string too long
  feat: handle the expression errors

# Conflicts:
#	packages/runtime/src/components/_internal/ModuleRenderer.tsx
#	packages/runtime/src/services/StateManager.ts
2022-04-08 11:17:22 +08:00
MrWindlike
b9da57c8ad fix: Not evaled when it isn't an expression 2022-04-08 11:09:03 +08:00
tanbowensg
e3f7c4ea62
Merge pull request #370 from webzard-io/feat/handler-sort
Feat/handler sort
2022-04-08 10:59:21 +08:00
MrWindlike
1850625d98 fix: fix the CategoryWidget errors 2022-04-08 10:57:18 +08:00
tanbowensg
da07bd7c84
Merge pull request #371 from webzard-io/feat/avatar
refactor avatar component
2022-04-08 10:45:01 +08:00
MrWindlike
1bedbfdf02 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/handler-sort 2022-04-08 10:42:25 +08:00
xzdry
f802302f5a Merge branch 'main' of github.com:webzard-io/sunmao-ui into feat/avatar 2022-04-08 10:08:58 +08:00
xzdry
49cbe94781 refactor avatar component 2022-04-08 10:02:46 +08:00
MrWindlike
bb93949b8e Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/handler-sort 2022-04-08 09:35:04 +08:00
MrWindlike
203b78d086 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/windlike-patch 2022-04-07 18:06:47 +08:00