Commit Graph

204 Commits

Author SHA1 Message Date
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
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
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
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
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
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
5d9963a963 can add trait 2021-10-22 13:33:50 +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
Bowen Tan
454e8b8c43 add placeholder when drag component to grid 2021-10-19 10:15:24 +08:00
Bowen Tan
81f2239076 render modal in custom container in editor 2021-10-18 18:06:41 +08:00
Bowen Tan
e7e479f32d change default slot name to 'content' 2021-10-18 13:58:40 +08:00
Bowen Tan
45753ee0af refactor structureTree 2021-10-18 11:22:13 +08:00
Bowen Tan
ef869d5ad6 Merge branch 'main' into feat/style
# Conflicts:
#	packages/editor/src/components/ComponentForm/ComponentForm.tsx
#	packages/editor/src/components/Editor.tsx
#	packages/editor/src/operations/AppModelManager.ts
2021-10-18 11:06:09 +08:00
Yanzhen Yu
d210160c21 improve component list UI 2021-10-17 16:04:38 +08:00
Yanzhen Yu
9f6724ff91 fix property generation and improve default id format 2021-10-16 20:45:24 +08:00
Bowen Tan
8244bb122f fix form checkboxGroup and radioGroup bug 2021-10-15 18:00:43 +08:00
Bowen Tan
7489707c08 improve form style 2021-10-15 18:00:43 +08:00