1
0
mirror of synced 2025-12-11 20:28:34 +08:00

Compare commits

...

8 Commits

Author SHA1 Message Date
roymondchen
11d790d245 chore: release v1.1.0-beta.4 2022-07-26 16:34:42 +08:00
roymondchen
c1fc6b8f94 feat(editor): editorService.add 的addNode参数对象中加上inputEvent 2022-07-26 16:28:37 +08:00
roymondchen
0450de481f refactor(stage): 将dragresize中的up down函数移到util中 2022-07-26 16:28:37 +08:00
roymondchen
bf95925878 fix(editor): 拖动组件到最右边会多出1px 2022-07-26 16:28:37 +08:00
roymondchen
9747e0f516 fix(editor): 画布大小与stageRect配置不相符 2022-07-26 16:28:37 +08:00
roymondchen
dd1ec53064 fix(editor): 水平居中 2022-07-26 13:25:56 +08:00
i33
940b08b2c5 fix(editor): 修正css sass变量
遇到浏览器报错
2022-07-26 13:17:11 +08:00
jia000
1f6c59ee41 Merge pull request #203 from jia000/release
chore: release v1.1.0-beta.3
2022-07-25 22:07:49 +08:00
28 changed files with 187 additions and 160 deletions

View File

@@ -1,3 +1,20 @@
# [1.1.0-beta.4](https://github.com/Tencent/tmagic-editor/compare/v1.1.0-beta.3...v1.1.0-beta.4) (2022-07-26)
### Bug Fixes
* **editor:** 修正css sass变量 ([940b08b](https://github.com/Tencent/tmagic-editor/commit/940b08b2c579564c3fea9a504b08237262de91a1))
* **editor:** 拖动组件到最右边会多出1px ([bf95925](https://github.com/Tencent/tmagic-editor/commit/bf9592587826fd429533de4456c82e5f7e657a94))
* **editor:** 水平居中 ([dd1ec53](https://github.com/Tencent/tmagic-editor/commit/dd1ec530642290224e7d339f14f8afa9467a62d0))
* **editor:** 画布大小与stageRect配置不相符 ([9747e0f](https://github.com/Tencent/tmagic-editor/commit/9747e0f51617f4fd440c66c4c48ada0dfbbd8ba0))
### Features
* **editor:** editorService.add 的addNode参数对象中加上inputEvent ([c1fc6b8](https://github.com/Tencent/tmagic-editor/commit/c1fc6b8f94721d00661ed7983ea1b49290f06b7d))
# [1.1.0-beta.3](https://github.com/Tencent/tmagic-editor/compare/v1.0.0-rc.7...v1.1.0-beta.3) (2022-07-25)

View File

@@ -1,7 +1,7 @@
{
"name": "docs",
"private": true,
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"scripts": {
"clean:top": "rimraf dist",
"dev": "vuepress dev src",
@@ -9,9 +9,9 @@
},
"dependencies": {
"@element-plus/icons-vue": "^2.0.6",
"@tmagic/form": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/utils": "1.1.0-beta.3",
"@tmagic/form": "1.1.0-beta.4",
"@tmagic/schema": "1.1.0-beta.4",
"@tmagic/utils": "1.1.0-beta.4",
"element-plus": "^2.2.6",
"highlight.js": "^11.2.0",
"lodash": "^4.17.21",

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "tmagic",
"private": true,
"packageManager": "pnpm@7.1.9",

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "@tmagic/core",
"sideEffects": [
"dist/*"
@@ -33,7 +33,7 @@
"vue"
],
"dependencies": {
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.4",
"events": "^3.3.0"
},
"devDependencies": {

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "@tmagic/editor",
"sideEffects": [
"dist/*",
@@ -43,11 +43,11 @@
"dependencies": {
"@babel/core": "^7.18.0",
"@element-plus/icons-vue": "^2.0.6",
"@tmagic/core": "1.1.0-beta.3",
"@tmagic/form": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/stage": "1.1.0-beta.3",
"@tmagic/utils": "1.1.0-beta.3",
"@tmagic/core": "1.1.0-beta.4",
"@tmagic/form": "1.1.0-beta.4",
"@tmagic/schema": "1.1.0-beta.4",
"@tmagic/stage": "1.1.0-beta.4",
"@tmagic/utils": "1.1.0-beta.4",
"buffer": "^6.0.3",
"color": "^3.1.3",
"element-plus": "^2.2.6",
@@ -60,7 +60,7 @@
"vue": "^3.2.0"
},
"peerDependencies": {
"@tmagic/form": "1.1.0-beta.3",
"@tmagic/form": "1.1.0-beta.4",
"element-plus": "^2.2.6",
"monaco-editor": "^0.32.1",
"vue": "^3.2.0"

View File

@@ -55,7 +55,7 @@ export default defineComponent({
style: computed(
() => `
width: ${props.width}px;
height: ${(props.height || 0) - 40}px;
height: ${props.height}px;
position: absolute;
margin-top: 30px;
`,

View File

@@ -264,6 +264,8 @@ export default defineComponent({
left,
};
config.inputEvent = e;
services?.editorService.add(config, parent);
}
},

View File

@@ -271,7 +271,8 @@ class Editor extends BaseService {
* @returns 添加后的节点
*/
public async add(addNode: AddMNode, parent?: MContainer | null): Promise<MNode> {
const { type, ...config } = addNode;
// 加入inputEvent是为给业务扩展时可以获取到更多的信息只有在使用拖拽添加组件时才有改对象
const { type, inputEvent, ...config } = addNode;
const curNode = this.get<MContainer>('node');
let parentNode: MContainer | undefined;
@@ -539,8 +540,8 @@ class Editor extends BaseService {
const doc = stage?.renderer.contentWindow?.document;
if (doc) {
const parentEl = doc.getElementById(`${parent.id}`);
const el = doc.getElementById(`${node.id}`);
const parentEl = el?.offsetParent;
if (parentEl && el) {
node.style.left = (parentEl.clientWidth - el.clientWidth) / 2;
}

View File

@@ -88,7 +88,7 @@ class Props extends BaseService {
* @param type 组件类型
* @returns 组件初始值
*/
public async getPropsValue(type: string, defaultValue: Record<string, any> = {}) {
public async getPropsValue(type: string, { inputEvent, ...defaultValue }: Record<string, any> = {}) {
if (type === 'area') {
const value = (await this.getPropsValue('button')) as MComponent;
value.className = 'action-area';

View File

@@ -155,10 +155,16 @@ class Ui extends BaseService {
const { stageRect, stageContainerRect } = state;
const { height, width } = stageContainerRect;
if (!width || !height) return 1;
if (width > stageRect.width && height > stageRect.height) {
// 30为标尺的大小
const stageWidth = stageRect.width + 30;
const stageHeight = stageRect.height + 30;
if (width > stageWidth && height > stageHeight) {
return 1;
}
return Math.min((width - 100) / stageRect.width || 1, (height - 100) / stageRect.height || 1);
// 60/80是为了不要让画布太过去贴住四周这样好看些
return Math.min((width - 60) / stageWidth || 1, (height - 80) / stageHeight || 1);
}
}

View File

@@ -35,7 +35,7 @@
justify-content: center;
align-items: center;
flex-direction: column;
height: calc(100% - $--page-bar-height);
height: calc(100% - #{$--page-bar-height});
}
&-content {

View File

@@ -1,7 +1,7 @@
.m-editor-stage {
position: relative;
width: 100%;
height: calc(100% - $--page-bar-height);
height: calc(100% - #{$--page-bar-height});
overflow: hidden;
display: flex;
justify-content: center;
@@ -13,9 +13,9 @@
height: 100%;
z-index: 0;
position: relative;
border: 1px solid $--border-color;
transition: transform 0.3s;
box-sizing: content-box;
box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
&::-webkit-scrollbar {
width: 0 !important;

View File

@@ -125,6 +125,7 @@ export interface EditorNodeInfo {
export interface AddMNode {
type: string;
name?: string;
inputEvent?: DragEvent;
[key: string]: any;
}

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "@tmagic/form",
"sideEffects": [
"dist/*",
@@ -33,7 +33,7 @@
},
"dependencies": {
"@element-plus/icons-vue": "^2.0.6",
"@tmagic/utils": "1.1.0-beta.3",
"@tmagic/utils": "1.1.0-beta.4",
"element-plus": "^2.2.6",
"lodash-es": "^4.17.21",
"moment": "^2.29.2",

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "@tmagic/schema",
"sideEffects": false,
"main": "dist/tmagic-schema.umd.js",

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "@tmagic/stage",
"sideEffects": [
"dist/*"
@@ -27,9 +27,9 @@
},
"dependencies": {
"@scena/guides": "^0.17.0",
"@tmagic/core": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/utils": "1.1.0-beta.3",
"@tmagic/core": "1.1.0-beta.4",
"@tmagic/schema": "1.1.0-beta.4",
"@tmagic/utils": "1.1.0-beta.4",
"events": "^3.3.0",
"keycon": "^1.1.2",
"lodash-es": "^4.17.21",

View File

@@ -28,8 +28,8 @@ import { removeClassNameByClassName } from '@tmagic/utils';
import { DRAG_EL_ID_PREFIX, GHOST_EL_ID_PREFIX, GuidesType, Mode, ZIndex } from './const';
import StageCore from './StageCore';
import StageMask from './StageMask';
import type { SortEventData, StageDragResizeConfig } from './types';
import { calcValueByFontsize, getAbsolutePosition, getMode, getOffset, getTargetElStyle } from './util';
import type { StageDragResizeConfig } from './types';
import { calcValueByFontsize, down, getAbsolutePosition, getMode, getOffset, getTargetElStyle, up } from './util';
/** 拖动状态 */
enum ActionStatus {
@@ -558,7 +558,7 @@ export default class StageDragResize extends EventEmitter {
top: 0,
// 设置0的话无法移动到left为0所以只能设置为-1
left: -1,
right: this.container.clientWidth,
right: this.container.clientWidth - 1,
bottom: this.container.clientHeight,
...(moveableOptions.bounds || {}),
},
@@ -567,73 +567,3 @@ export default class StageDragResize extends EventEmitter {
};
}
}
/**
* 下移组件位置
* @param {number} deltaTop 偏移量
* @param {Object} detail 当前选中的组件配置
*/
export const down = (deltaTop: number, target: HTMLElement | SVGElement): SortEventData | void => {
let swapIndex = 0;
let addUpH = target.clientHeight;
const brothers = Array.from(target.parentNode?.children || []).filter(
(node) => !node.id.startsWith(GHOST_EL_ID_PREFIX),
);
const index = brothers.indexOf(target);
// 往下移动
const downEls = brothers.slice(index + 1) as HTMLElement[];
for (let i = 0; i < downEls.length; i++) {
const ele = downEls[i];
// 是 fixed 不做处理
if (ele.style?.position === 'fixed') {
continue;
}
addUpH += ele.clientHeight / 2;
if (deltaTop <= addUpH) {
break;
}
addUpH += ele.clientHeight / 2;
swapIndex = i;
}
return {
src: target.id,
dist: downEls.length && swapIndex > -1 ? downEls[swapIndex].id : target.id,
};
};
/**
* 上移组件位置
* @param {Array} brothers 处于同一容器下的所有子组件配置
* @param {number} index 当前组件所处的位置
* @param {number} deltaTop 偏移量
* @param {Object} detail 当前选中的组件配置
*/
export const up = (deltaTop: number, target: HTMLElement | SVGElement): SortEventData | void => {
const brothers = Array.from(target.parentNode?.children || []).filter(
(node) => !node.id.startsWith(GHOST_EL_ID_PREFIX),
);
const index = brothers.indexOf(target);
// 往上移动
const upEls = brothers.slice(0, index) as HTMLElement[];
let addUpH = target.clientHeight;
let swapIndex = upEls.length - 1;
for (let i = upEls.length - 1; i >= 0; i--) {
const ele = upEls[i];
if (!ele) continue;
// 是 fixed 不做处理
if (ele.style.position === 'fixed') continue;
addUpH += ele.clientHeight / 2;
if (-deltaTop <= addUpH) break;
addUpH += ele.clientHeight / 2;
swapIndex = i;
}
return {
src: target.id,
dist: upEls.length && swapIndex > -1 ? upEls[swapIndex].id : target.id,
};
};

View File

@@ -17,8 +17,8 @@
*/
import { removeClassName } from '@tmagic/utils';
import { Mode, SELECTED_CLASS, ZIndex } from './const';
import type { Offset } from './types';
import { GHOST_EL_ID_PREFIX, Mode, SELECTED_CLASS, ZIndex } from './const';
import type { Offset, SortEventData } from './types';
const getParents = (el: Element, relative: Element) => {
let cur: Element | null = el.parentElement;
@@ -159,3 +159,73 @@ export const calcValueByFontsize = (doc: Document, value: number) => {
return value;
};
/**
* 下移组件位置
* @param {number} deltaTop 偏移量
* @param {Object} detail 当前选中的组件配置
*/
export const down = (deltaTop: number, target: HTMLElement | SVGElement): SortEventData | void => {
let swapIndex = 0;
let addUpH = target.clientHeight;
const brothers = Array.from(target.parentNode?.children || []).filter(
(node) => !node.id.startsWith(GHOST_EL_ID_PREFIX),
);
const index = brothers.indexOf(target);
// 往下移动
const downEls = brothers.slice(index + 1) as HTMLElement[];
for (let i = 0; i < downEls.length; i++) {
const ele = downEls[i];
// 是 fixed 不做处理
if (ele.style?.position === 'fixed') {
continue;
}
addUpH += ele.clientHeight / 2;
if (deltaTop <= addUpH) {
break;
}
addUpH += ele.clientHeight / 2;
swapIndex = i;
}
return {
src: target.id,
dist: downEls.length && swapIndex > -1 ? downEls[swapIndex].id : target.id,
};
};
/**
* 上移组件位置
* @param {Array} brothers 处于同一容器下的所有子组件配置
* @param {number} index 当前组件所处的位置
* @param {number} deltaTop 偏移量
* @param {Object} detail 当前选中的组件配置
*/
export const up = (deltaTop: number, target: HTMLElement | SVGElement): SortEventData | void => {
const brothers = Array.from(target.parentNode?.children || []).filter(
(node) => !node.id.startsWith(GHOST_EL_ID_PREFIX),
);
const index = brothers.indexOf(target);
// 往上移动
const upEls = brothers.slice(0, index) as HTMLElement[];
let addUpH = target.clientHeight;
let swapIndex = upEls.length - 1;
for (let i = upEls.length - 1; i >= 0; i--) {
const ele = upEls[i];
if (!ele) continue;
// 是 fixed 不做处理
if (ele.style.position === 'fixed') continue;
addUpH += ele.clientHeight / 2;
if (-deltaTop <= addUpH) break;
addUpH += ele.clientHeight / 2;
swapIndex = i;
}
return {
src: target.id,
dist: upEls.length && swapIndex > -1 ? upEls[swapIndex].id : target.id,
};
};

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "@tmagic/table",
"sideEffects": [
"dist/*"
@@ -30,13 +30,13 @@
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"dependencies": {
"@tmagic/form": "1.1.0-beta.3",
"@tmagic/form": "1.1.0-beta.4",
"element-plus": "^2.2.6",
"lodash-es": "^4.17.21",
"vue": "^3.2.0"
},
"peerDependencies": {
"@tmagic/form": "1.1.0-beta.3",
"@tmagic/form": "1.1.0-beta.4",
"element-plus": "^2.2.6",
"vue": "^3.2.0"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@tmagic/ui-react",
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"main": "src/index.ts",
"engines": {
"node": ">=14"
@@ -13,7 +13,7 @@
"react:build": "tsc && vite build"
},
"dependencies": {
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.4",
"qrcode": "^1.5.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "@tmagic/ui-vue2",
"main": "src/index.ts",
"engines": {
@@ -10,7 +10,7 @@
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"dependencies": {
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.4",
"qrcode": "^1.5.0",
"vue": "^2.7.4"
},

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "@tmagic/ui",
"main": "src/index.ts",
"engines": {
@@ -11,7 +11,7 @@
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"dependencies": {
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.4",
"delegate": "^3.2.0",
"qrcode": "^1.5.0",
"tiny-emitter": "^2.1.0",

View File

@@ -1,5 +1,5 @@
{
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"name": "@tmagic/utils",
"main": "dist/tmagic-utils.umd.js",
"module": "dist/tmagic-utils.es.js",
@@ -22,7 +22,7 @@
"url": "https://github.com/Tencent/tmagic-editor.git"
},
"dependencies": {
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.4",
"moment": "^2.29.2"
},
"devDependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "tmagic-playground",
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"private": true,
"scripts": {
"clean:top": "rimraf dist",
@@ -12,11 +12,11 @@
},
"dependencies": {
"@element-plus/icons-vue": "^2.0.6",
"@tmagic/editor": "1.1.0-beta.3",
"@tmagic/form": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/stage": "1.1.0-beta.3",
"@tmagic/utils": "1.1.0-beta.3",
"@tmagic/editor": "1.1.0-beta.4",
"@tmagic/form": "1.1.0-beta.4",
"@tmagic/schema": "1.1.0-beta.4",
"@tmagic/stage": "1.1.0-beta.4",
"@tmagic/utils": "1.1.0-beta.4",
"element-plus": "^2.2.6",
"monaco-editor": "^0.32.1",
"serialize-javascript": "^6.0.0",

58
pnpm-lock.yaml generated
View File

@@ -73,9 +73,9 @@ importers:
docs:
specifiers:
'@element-plus/icons-vue': ^2.0.6
'@tmagic/form': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/utils': 1.1.0-beta.3
'@tmagic/form': 1.1.0-beta.4
'@tmagic/schema': 1.1.0-beta.4
'@tmagic/utils': 1.1.0-beta.4
'@vuepress/bundler-vite': ^2.0.0-beta.48
'@vuepress/cli': ^2.0.0-beta.48
'@vuepress/client': ^2.0.0-beta.48
@@ -109,7 +109,7 @@ importers:
packages/core:
specifiers:
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.4
'@types/events': ^3.0.0
'@types/node': ^15.12.4
events: ^3.3.0
@@ -130,11 +130,11 @@ importers:
specifiers:
'@babel/core': ^7.18.0
'@element-plus/icons-vue': ^2.0.6
'@tmagic/core': 1.1.0-beta.3
'@tmagic/form': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/stage': 1.1.0-beta.3
'@tmagic/utils': 1.1.0-beta.3
'@tmagic/core': 1.1.0-beta.4
'@tmagic/form': 1.1.0-beta.4
'@tmagic/schema': 1.1.0-beta.4
'@tmagic/stage': 1.1.0-beta.4
'@tmagic/utils': 1.1.0-beta.4
'@types/events': ^3.0.0
'@types/lodash-es': ^4.17.4
'@types/node': ^15.12.4
@@ -193,7 +193,7 @@ importers:
specifiers:
'@babel/core': ^7.18.0
'@element-plus/icons-vue': ^2.0.6
'@tmagic/utils': 1.1.0-beta.3
'@tmagic/utils': 1.1.0-beta.4
'@types/lodash-es': ^4.17.4
'@types/node': ^15.12.4
'@types/sortablejs': ^1.10.7
@@ -247,9 +247,9 @@ importers:
packages/stage:
specifiers:
'@scena/guides': ^0.17.0
'@tmagic/core': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/utils': 1.1.0-beta.3
'@tmagic/core': 1.1.0-beta.4
'@tmagic/schema': 1.1.0-beta.4
'@tmagic/utils': 1.1.0-beta.4
'@types/events': ^3.0.0
'@types/lodash-es': ^4.17.4
'@types/node': ^15.12.4
@@ -283,7 +283,7 @@ importers:
packages/table:
specifiers:
'@tmagic/form': 1.1.0-beta.3
'@tmagic/form': 1.1.0-beta.4
'@types/color': ^3.0.1
'@types/lodash-es': ^4.17.4
'@types/node': ^15.12.4
@@ -319,7 +319,7 @@ importers:
packages/ui:
specifiers:
'@testing-library/vue': ^6.4.2
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.4
'@types/qrcode': ^1.4.2
'@vue/compiler-sfc': ^3.2.0
'@vue/test-utils': ^2.0.0
@@ -341,7 +341,7 @@ importers:
packages/ui-react:
specifiers:
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.4
'@types/react': ^17.0.37
'@types/react-dom': ^17.0.11
qrcode: ^1.5.0
@@ -360,7 +360,7 @@ importers:
packages/ui-vue2:
specifiers:
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.4
qrcode: ^1.5.0
vite: ^2.9.13
vite-plugin-vue2: ^2.0.1
@@ -377,7 +377,7 @@ importers:
packages/utils:
specifiers:
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.4
'@types/node': ^15.12.4
moment: ^2.29.2
typescript: ^4.3.4
@@ -395,11 +395,11 @@ importers:
playground:
specifiers:
'@element-plus/icons-vue': ^2.0.6
'@tmagic/editor': 1.1.0-beta.3
'@tmagic/form': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/stage': 1.1.0-beta.3
'@tmagic/utils': 1.1.0-beta.3
'@tmagic/editor': 1.1.0-beta.4
'@tmagic/form': 1.1.0-beta.4
'@tmagic/schema': 1.1.0-beta.4
'@tmagic/stage': 1.1.0-beta.4
'@tmagic/utils': 1.1.0-beta.4
'@types/node': ^15.12.4
'@types/serialize-javascript': ^5.0.1
'@vitejs/plugin-legacy': ^1.8.2
@@ -441,8 +441,8 @@ importers:
runtime/react:
specifiers:
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/stage': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.4
'@tmagic/stage': 1.1.0-beta.4
'@types/react': ^17.0.37
'@types/react-dom': ^17.0.11
'@vitejs/plugin-react-refresh': ^1.3.1
@@ -466,8 +466,8 @@ importers:
runtime/vue2:
specifiers:
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/stage': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.4
'@tmagic/stage': 1.1.0-beta.4
'@types/events': ^3.0.0
'@vitejs/plugin-vue2': ^1.1.2
axios: ^0.27.2
@@ -495,8 +495,8 @@ importers:
runtime/vue3:
specifiers:
'@tmagic/schema': 1.1.0-beta.3
'@tmagic/stage': 1.1.0-beta.3
'@tmagic/schema': 1.1.0-beta.4
'@tmagic/stage': 1.1.0-beta.4
'@types/node': ^15.12.4
'@vitejs/plugin-vue': ^2.3.3
'@vue/compiler-sfc': ^3.2.0

View File

@@ -1,6 +1,6 @@
{
"name": "runtime-react",
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"private": true,
"scripts": {
"dev:react": "npm run entry && npm run build:lib & npm run dev:html",
@@ -12,8 +12,8 @@
"dev:html": "vite --port 8078"
},
"dependencies": {
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/stage": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.4",
"@tmagic/stage": "1.1.0-beta.4",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},

View File

@@ -1,6 +1,6 @@
{
"name": "runtime-vue2",
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"private": true,
"scripts": {
"dev:vue2": "npm run entry && npm run build:lib & npm run dev:html",
@@ -12,8 +12,8 @@
"dev:html": "vite --port 8078"
},
"dependencies": {
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/stage": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.4",
"@tmagic/stage": "1.1.0-beta.4",
"vue": "^2.7.4"
},
"devDependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "runtime-vue3",
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"private": true,
"scripts": {
"dev": "npm run entry && npm run build:lib & npm run dev:html",
@@ -12,8 +12,8 @@
"dev:html": "vite --port 8078"
},
"dependencies": {
"@tmagic/schema": "1.1.0-beta.3",
"@tmagic/stage": "1.1.0-beta.3",
"@tmagic/schema": "1.1.0-beta.4",
"@tmagic/stage": "1.1.0-beta.4",
"axios": "^0.25.0",
"vue": "^3.2.0"
},