mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 10:49:51 +08:00 
			
		
		
		
	feat(ui,runtime): vue-runtime-help中添加use-app方法
This commit is contained in:
		
							parent
							
								
									7ee7f53938
								
							
						
					
					
						commit
						948c194a60
					
				@ -190,6 +190,18 @@ const getAssertionTokenByTraverse = (ast: any) => {
 | 
			
		||||
      variableDeclarations.push(p.node);
 | 
			
		||||
      this.traverse(p);
 | 
			
		||||
    },
 | 
			
		||||
    visitExportNamedDeclaration(p) {
 | 
			
		||||
      const { node } = p;
 | 
			
		||||
      const { specifiers } = node;
 | 
			
		||||
 | 
			
		||||
      const specifier = specifiers?.find((specifier) => specifier.exported.name === 'default');
 | 
			
		||||
 | 
			
		||||
      if (specifier?.local) {
 | 
			
		||||
        exportDefaultName = `${specifier.local.name}`;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      this.traverse(p);
 | 
			
		||||
    },
 | 
			
		||||
    visitExportDefaultDeclaration(p) {
 | 
			
		||||
      const { node } = p;
 | 
			
		||||
      const { declaration } = node;
 | 
			
		||||
 | 
			
		||||
@ -27,6 +27,17 @@ import PageFragmentContainer from './page-fragment-container';
 | 
			
		||||
import QRcode from './qrcode';
 | 
			
		||||
import Text from './text';
 | 
			
		||||
 | 
			
		||||
export { default as TMagicUiButton } from './button';
 | 
			
		||||
export { default as TMagicUiContainer } from './container';
 | 
			
		||||
export { default as TMagicUiImg } from './img';
 | 
			
		||||
export { default as TMagicUiIteratorContainer } from './iterator-container';
 | 
			
		||||
export { default as TMagicUiPage } from './page';
 | 
			
		||||
export { default as TMagicUiPageFragment } from './page-fragment';
 | 
			
		||||
export { default as TMagicUiPageFragmentContainer } from './page-fragment-container';
 | 
			
		||||
export { default as TMagicUiPageText } from './text';
 | 
			
		||||
 | 
			
		||||
export { default as useApp } from './useApp';
 | 
			
		||||
 | 
			
		||||
const ui: Record<string, any> = {
 | 
			
		||||
  page: Page,
 | 
			
		||||
  container: Container,
 | 
			
		||||
 | 
			
		||||
@ -3,9 +3,21 @@
 | 
			
		||||
  "name": "@tmagic/ui",
 | 
			
		||||
  "type": "module",
 | 
			
		||||
  "main": "src/index.ts",
 | 
			
		||||
  "types": "types/index.d.ts",
 | 
			
		||||
  "exports": {
 | 
			
		||||
    "./*": "./*"
 | 
			
		||||
  },
 | 
			
		||||
  "files": [
 | 
			
		||||
    "src"
 | 
			
		||||
    "src",
 | 
			
		||||
    "dist",
 | 
			
		||||
    "types"
 | 
			
		||||
  ],
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "build": "rimraf ./dist && npm run build:type && node scripts/build.mjs",
 | 
			
		||||
    "build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
 | 
			
		||||
    "clear:type": "rimraf ./types",
 | 
			
		||||
    "check:type": "vue-tsc --noEmit --project tsconfig.build.json"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": ">=18"
 | 
			
		||||
  },
 | 
			
		||||
@ -15,14 +27,13 @@
 | 
			
		||||
    "url": "https://github.com/Tencent/tmagic-editor.git"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "delegate": "^3.2.0",
 | 
			
		||||
    "qrcode": "^1.5.0",
 | 
			
		||||
    "tiny-emitter": "^2.1.0"
 | 
			
		||||
    "qrcode": "^1.5.0"
 | 
			
		||||
  },
 | 
			
		||||
  "peerDependencies": {
 | 
			
		||||
    "@tmagic/core": "workspace:*",
 | 
			
		||||
    "@tmagic/schema": "workspace:*",
 | 
			
		||||
    "@tmagic/utils": "workspace:*",
 | 
			
		||||
    "@tmagic/vue-runtime-help": ">=0.0.5",
 | 
			
		||||
    "vue": ">=3.4.27",
 | 
			
		||||
    "typescript": "*"
 | 
			
		||||
  },
 | 
			
		||||
@ -32,9 +43,10 @@
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@testing-library/vue": "^6.4.2",
 | 
			
		||||
    "@types/qrcode": "^1.4.2",
 | 
			
		||||
    "@vue/compiler-sfc": "^3.4.27",
 | 
			
		||||
    "@vue/test-utils": "^2.4.6"
 | 
			
		||||
    "rimraf": "^3.0.2",
 | 
			
		||||
    "vite": "^5.2.12",
 | 
			
		||||
    "vue-tsc": "^2.0.19"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										120
									
								
								packages/ui/scripts/build.mjs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										120
									
								
								packages/ui/scripts/build.mjs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,120 @@
 | 
			
		||||
import { build } from 'vite';
 | 
			
		||||
import vue from '@vitejs/plugin-vue';
 | 
			
		||||
import path from 'node:path';
 | 
			
		||||
import { fileURLToPath } from 'node:url';
 | 
			
		||||
 | 
			
		||||
import pkg from '../package.json' assert { type: 'json' };
 | 
			
		||||
 | 
			
		||||
const __dirname = fileURLToPath(new URL('.', import.meta.url));
 | 
			
		||||
 | 
			
		||||
const packages = [
 | 
			
		||||
  'button',
 | 
			
		||||
  'container',
 | 
			
		||||
  'img',
 | 
			
		||||
  'iterator-container',
 | 
			
		||||
  'overlay',
 | 
			
		||||
  'page',
 | 
			
		||||
  'page-fragment',
 | 
			
		||||
  'page-fragment-container',
 | 
			
		||||
  'qrcode',
 | 
			
		||||
  'text',
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
const commonConfig = {
 | 
			
		||||
  optimizeDeps: {
 | 
			
		||||
    esbuildOptions: {
 | 
			
		||||
      define: {
 | 
			
		||||
        global: 'globalThis',
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  build: {
 | 
			
		||||
    cssCodeSplit: false,
 | 
			
		||||
    sourcemap: false,
 | 
			
		||||
    minify: false,
 | 
			
		||||
    target: 'esnext',
 | 
			
		||||
 | 
			
		||||
    rollupOptions: {
 | 
			
		||||
      output: {
 | 
			
		||||
        // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
 | 
			
		||||
        globals: {
 | 
			
		||||
          vue: 'Vue',
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const main = async () => {
 | 
			
		||||
  await build({
 | 
			
		||||
    ...commonConfig,
 | 
			
		||||
 | 
			
		||||
    root: path.resolve(__dirname, `../`),
 | 
			
		||||
 | 
			
		||||
    build: {
 | 
			
		||||
      ...commonConfig.build,
 | 
			
		||||
      outDir: `./dist`,
 | 
			
		||||
      lib: {
 | 
			
		||||
        entry: './src/index.ts',
 | 
			
		||||
        name: 'ui',
 | 
			
		||||
        fileName: 'index',
 | 
			
		||||
        formats: ['es'],
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      rollupOptions: {
 | 
			
		||||
        ...commonConfig.build.rollupOptions,
 | 
			
		||||
 | 
			
		||||
        // 确保外部化处理那些你不想打包进库的依赖
 | 
			
		||||
        external(id) {
 | 
			
		||||
          return (
 | 
			
		||||
            Object.keys({
 | 
			
		||||
              ...(pkg.devDependencies || {}),
 | 
			
		||||
              ...(pkg.peerDependencies || {}),
 | 
			
		||||
            }).some((k) => new RegExp(`^${k}`).test(id)) ||
 | 
			
		||||
            `${id}`.startsWith('.') ||
 | 
			
		||||
            (`${id}`.startsWith('/') && !id.endsWith('/index.ts'))
 | 
			
		||||
          );
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  packages.map((packageName) => {
 | 
			
		||||
    const config = {
 | 
			
		||||
      ...commonConfig,
 | 
			
		||||
 | 
			
		||||
      plugins: [vue()],
 | 
			
		||||
 | 
			
		||||
      root: path.resolve(__dirname, `../src/${packageName}`),
 | 
			
		||||
 | 
			
		||||
      build: {
 | 
			
		||||
        ...commonConfig.build,
 | 
			
		||||
        outDir: `../../dist/${packageName}`,
 | 
			
		||||
        lib: {
 | 
			
		||||
          entry: './index.ts',
 | 
			
		||||
          name: packageName,
 | 
			
		||||
          fileName: 'index',
 | 
			
		||||
          formats: ['es'],
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
        rollupOptions: {
 | 
			
		||||
          ...commonConfig.build.rollupOptions,
 | 
			
		||||
 | 
			
		||||
          // 确保外部化处理那些你不想打包进库的依赖
 | 
			
		||||
          external(id) {
 | 
			
		||||
            return (
 | 
			
		||||
              Object.keys({
 | 
			
		||||
                ...(pkg.devDependencies || {}),
 | 
			
		||||
                ...(pkg.peerDependencies || {}),
 | 
			
		||||
              }).some((k) => new RegExp(`^${k}`).test(id)) || `${id}`.endsWith('./container')
 | 
			
		||||
            );
 | 
			
		||||
          },
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    };
 | 
			
		||||
    return build(config);
 | 
			
		||||
  });
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
main();
 | 
			
		||||
@ -8,8 +8,7 @@
 | 
			
		||||
 | 
			
		||||
<script lang="ts" setup>
 | 
			
		||||
import type { MComponent } from '@tmagic/schema';
 | 
			
		||||
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
interface ButtonSchema extends MComponent {
 | 
			
		||||
  type: 'button';
 | 
			
		||||
 | 
			
		||||
@ -21,8 +21,7 @@ import { computed } from 'vue';
 | 
			
		||||
 | 
			
		||||
import type { MContainer } from '@tmagic/schema';
 | 
			
		||||
import { toLine } from '@tmagic/utils';
 | 
			
		||||
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
const props = withDefaults(
 | 
			
		||||
  defineProps<{
 | 
			
		||||
 | 
			
		||||
@ -4,8 +4,7 @@
 | 
			
		||||
 | 
			
		||||
<script lang="ts" setup>
 | 
			
		||||
import type { MComponent } from '@tmagic/schema';
 | 
			
		||||
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
interface ImgSchema extends MComponent {
 | 
			
		||||
  type: 'img';
 | 
			
		||||
 | 
			
		||||
@ -27,6 +27,17 @@ import PageFragmentContainer from './page-fragment-container';
 | 
			
		||||
import QRcode from './qrcode';
 | 
			
		||||
import Text from './text';
 | 
			
		||||
 | 
			
		||||
export { default as TMagicUiButton } from './button';
 | 
			
		||||
export { default as TMagicUiContainer } from './container';
 | 
			
		||||
export { default as TMagicUiImg } from './img';
 | 
			
		||||
export { default as TMagicUiIteratorContainer } from './iterator-container';
 | 
			
		||||
export { default as TMagicUiOverlay } from './overlay';
 | 
			
		||||
export { default as TMagicUiPage } from './page';
 | 
			
		||||
export { default as TMagicUiPageFragment } from './page-fragment';
 | 
			
		||||
export { default as TMagicUiPageFragmentContainer } from './page-fragment-container';
 | 
			
		||||
export { default as TMagicUiQRcode } from './qrcode';
 | 
			
		||||
export { default as TMagicUiText } from './text';
 | 
			
		||||
 | 
			
		||||
const ui: Record<string, any> = {
 | 
			
		||||
  page: Page,
 | 
			
		||||
  container: Container,
 | 
			
		||||
 | 
			
		||||
@ -8,9 +8,9 @@
 | 
			
		||||
import { computed } from 'vue';
 | 
			
		||||
 | 
			
		||||
import { type MContainer, NodeType } from '@tmagic/schema';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
import Container from '../../container';
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
 | 
			
		||||
const props = withDefaults(
 | 
			
		||||
  defineProps<{
 | 
			
		||||
 | 
			
		||||
@ -8,8 +8,7 @@
 | 
			
		||||
import { onBeforeUnmount, ref } from 'vue';
 | 
			
		||||
 | 
			
		||||
import type { MContainer, MNode, MPage } from '@tmagic/schema';
 | 
			
		||||
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
interface OverlaySchema extends MContainer {
 | 
			
		||||
  type: 'overlay';
 | 
			
		||||
 | 
			
		||||
@ -8,9 +8,9 @@
 | 
			
		||||
import { computed } from 'vue';
 | 
			
		||||
 | 
			
		||||
import { type MComponent, type MNode, NodeType } from '@tmagic/schema';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
import Container from '../../container';
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
 | 
			
		||||
const props = withDefaults(
 | 
			
		||||
  defineProps<{
 | 
			
		||||
 | 
			
		||||
@ -4,9 +4,9 @@
 | 
			
		||||
 | 
			
		||||
<script lang="ts" setup>
 | 
			
		||||
import type { MPageFragment } from '@tmagic/schema';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
import MContainer from '../../container';
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
 | 
			
		||||
const props = withDefaults(
 | 
			
		||||
  defineProps<{
 | 
			
		||||
 | 
			
		||||
@ -4,9 +4,9 @@
 | 
			
		||||
 | 
			
		||||
<script lang="ts" setup>
 | 
			
		||||
import type { MPage } from '@tmagic/schema';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
import MContainer from '../../container';
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
 | 
			
		||||
const props = withDefaults(
 | 
			
		||||
  defineProps<{
 | 
			
		||||
 | 
			
		||||
@ -7,8 +7,7 @@ import { ref, watch } from 'vue';
 | 
			
		||||
import QRCode from 'qrcode';
 | 
			
		||||
 | 
			
		||||
import type { MComponent } from '@tmagic/schema';
 | 
			
		||||
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
const props = withDefaults(
 | 
			
		||||
  defineProps<{
 | 
			
		||||
 | 
			
		||||
@ -4,8 +4,7 @@
 | 
			
		||||
 | 
			
		||||
<script lang="ts" setup>
 | 
			
		||||
import type { MComponent } from '@tmagic/schema';
 | 
			
		||||
 | 
			
		||||
import useApp from '../../useApp';
 | 
			
		||||
import { useApp } from '@tmagic/vue-runtime-help';
 | 
			
		||||
 | 
			
		||||
const props = withDefaults(
 | 
			
		||||
  defineProps<{
 | 
			
		||||
 | 
			
		||||
@ -1,72 +0,0 @@
 | 
			
		||||
/*
 | 
			
		||||
 * Tencent is pleased to support the open source community by making TMagicEditor available.
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (C) 2023 THL A29 Limited, a Tencent company.  All rights reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
 * you may not use this file except in compliance with the License.
 | 
			
		||||
 * You may obtain a copy of the License at
 | 
			
		||||
 *
 | 
			
		||||
 *   http://www.apache.org/licenses/LICENSE-2.0
 | 
			
		||||
 *
 | 
			
		||||
 * Unless required by applicable law or agreed to in writing, software
 | 
			
		||||
 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
			
		||||
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
import { describe, expect, test } from 'vitest';
 | 
			
		||||
import { config, mount } from '@vue/test-utils';
 | 
			
		||||
 | 
			
		||||
import Button from '../../src/button/index';
 | 
			
		||||
import initValue from '../../src/button/src/initValue';
 | 
			
		||||
import Text from '../../src/text/index';
 | 
			
		||||
 | 
			
		||||
config.global.provide = {
 | 
			
		||||
  hoc: {
 | 
			
		||||
    disabled: false,
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
config.global.components = {
 | 
			
		||||
  MagicUiText: Text,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
describe('ui:button', () => {
 | 
			
		||||
  test.skip('ui:button:默认', async () => {
 | 
			
		||||
    const wrapper = mount(Button, {
 | 
			
		||||
      props: {
 | 
			
		||||
        config: {
 | 
			
		||||
          id: '1',
 | 
			
		||||
          ...initValue,
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
    expect(wrapper.find('.magic-ui-text').exists()).toBe(true);
 | 
			
		||||
    const vm = wrapper.vm as any;
 | 
			
		||||
    vm.pushAction((vm: any) => {
 | 
			
		||||
      vm.flag = true;
 | 
			
		||||
    });
 | 
			
		||||
    await wrapper.find('.magic-ui-button').trigger('click');
 | 
			
		||||
    expect(vm.flag).toBe(true);
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  test.skip('ui:button:preAction失败', async () => {
 | 
			
		||||
    const wrapper = mount(Button, {
 | 
			
		||||
      props: {
 | 
			
		||||
        config: {
 | 
			
		||||
          id: '2',
 | 
			
		||||
          ...initValue,
 | 
			
		||||
          preAction: () => false,
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
    const vm = wrapper.vm as any;
 | 
			
		||||
    vm.pushAction((vm: any) => {
 | 
			
		||||
      vm.flag = true;
 | 
			
		||||
    });
 | 
			
		||||
    await wrapper.find('.magic-ui-button').trigger('click');
 | 
			
		||||
    expect(vm.flag).toBe(undefined);
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
@ -1,120 +0,0 @@
 | 
			
		||||
/*
 | 
			
		||||
 * Tencent is pleased to support the open source community by making TMagicEditor available.
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (C) 2023 THL A29 Limited, a Tencent company.  All rights reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
 * you may not use this file except in compliance with the License.
 | 
			
		||||
 * You may obtain a copy of the License at
 | 
			
		||||
 *
 | 
			
		||||
 *   http://www.apache.org/licenses/LICENSE-2.0
 | 
			
		||||
 *
 | 
			
		||||
 * Unless required by applicable law or agreed to in writing, software
 | 
			
		||||
 * distributed under the License is distributed on an "AS IS" BASIS,
 | 
			
		||||
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
			
		||||
 * See the License for the specific language governing permissions and
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
import { describe, expect, test } from 'vitest';
 | 
			
		||||
import { config, mount } from '@vue/test-utils';
 | 
			
		||||
 | 
			
		||||
import Text from '../../src/text/index';
 | 
			
		||||
import initValue from '../../src/text/src/initValue';
 | 
			
		||||
 | 
			
		||||
config.global.provide = {
 | 
			
		||||
  hoc: {
 | 
			
		||||
    disabled: false,
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
describe('ui:text', () => {
 | 
			
		||||
  test.skip('ui:text:默认状态', () => {
 | 
			
		||||
    const wrapper = mount(Text, {
 | 
			
		||||
      props: {
 | 
			
		||||
        config: {
 | 
			
		||||
          id: '1',
 | 
			
		||||
          ...initValue,
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
    expect(wrapper.find('.magic-ui-text').text()).toBe(initValue.text);
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  test.skip('ui:text:置灰状态', () => {
 | 
			
		||||
    const wrapper = mount(Text, {
 | 
			
		||||
      props: {
 | 
			
		||||
        config: {
 | 
			
		||||
          id: '2',
 | 
			
		||||
          ...initValue,
 | 
			
		||||
          disabledText: '置灰状态',
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
      global: {
 | 
			
		||||
        provide: {
 | 
			
		||||
          hoc: {
 | 
			
		||||
            disabled: true,
 | 
			
		||||
          },
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
    expect(wrapper.find('.magic-ui-text').text()).toBe('置灰状态');
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  test.skip('ui:text:变量', () => {
 | 
			
		||||
    const wrapper = mount(Text, {
 | 
			
		||||
      props: {
 | 
			
		||||
        config: {
 | 
			
		||||
          id: '3',
 | 
			
		||||
          ...initValue,
 | 
			
		||||
          text: '{{var1}}',
 | 
			
		||||
        },
 | 
			
		||||
        vars: {
 | 
			
		||||
          var1: '变量',
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
    expect(wrapper.find('.magic-ui-text').text()).toBe('变量');
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  test.skip('ui:text:text函数', () => {
 | 
			
		||||
    const wrapper = mount(Text, {
 | 
			
		||||
      props: {
 | 
			
		||||
        config: {
 | 
			
		||||
          id: '4',
 | 
			
		||||
          ...initValue,
 | 
			
		||||
          text: () => '函数返回文字',
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
    expect(wrapper.find('.magic-ui-text').text()).toBe('函数返回文字');
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  test.skip('ui:text:multiple', () => {
 | 
			
		||||
    const wrapper = mount(Text, {
 | 
			
		||||
      props: {
 | 
			
		||||
        config: {
 | 
			
		||||
          id: '5',
 | 
			
		||||
          ...initValue,
 | 
			
		||||
          multiple: false,
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
    expect(wrapper.find('.magic-ui-text.magic-ui-text--single-line').exists()).toBe(true);
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  test.skip('ui:text:slot', () => {
 | 
			
		||||
    const wrapper = mount(Text, {
 | 
			
		||||
      props: {
 | 
			
		||||
        config: {
 | 
			
		||||
          id: '6',
 | 
			
		||||
          ...initValue,
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
      slots: {
 | 
			
		||||
        default: 'Default',
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
    expect(wrapper.find('.magic-ui-text').text()).toBe('Default');
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										14
									
								
								packages/ui/tsconfig.build.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								packages/ui/tsconfig.build.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": "../../tsconfig.json",
 | 
			
		||||
  "compilerOptions": {
 | 
			
		||||
    "rootDir": "./src",
 | 
			
		||||
    "sourceMap": false,
 | 
			
		||||
    "baseUrl": ".",
 | 
			
		||||
    "declaration": true,
 | 
			
		||||
    "declarationDir": "types",
 | 
			
		||||
    "forceConsistentCasingInFileNames": true,
 | 
			
		||||
    "outDir": "./types",
 | 
			
		||||
    "paths": {},
 | 
			
		||||
  },
 | 
			
		||||
  "include": ["./src"],
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										272
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										272
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							@ -632,15 +632,12 @@ importers:
 | 
			
		||||
      '@tmagic/utils':
 | 
			
		||||
        specifier: workspace:*
 | 
			
		||||
        version: link:../utils
 | 
			
		||||
      delegate:
 | 
			
		||||
        specifier: ^3.2.0
 | 
			
		||||
        version: 3.2.0
 | 
			
		||||
      '@tmagic/vue-runtime-help':
 | 
			
		||||
        specifier: '>=0.0.5'
 | 
			
		||||
        version: 0.0.5(@tmagic/core@packages+core)(@tmagic/data-source@1.4.7(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5))(@tmagic/schema@packages+schema)(@tmagic/stage@1.4.7(@tmagic/core@packages+core)(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5))(@tmagic/utils@packages+utils)(@vue/composition-api@1.7.2(vue@3.4.27(typescript@5.4.5)))(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5))
 | 
			
		||||
      qrcode:
 | 
			
		||||
        specifier: ^1.5.0
 | 
			
		||||
        version: 1.5.3
 | 
			
		||||
      tiny-emitter:
 | 
			
		||||
        specifier: ^2.1.0
 | 
			
		||||
        version: 2.1.0
 | 
			
		||||
      typescript:
 | 
			
		||||
        specifier: '*'
 | 
			
		||||
        version: 5.4.5
 | 
			
		||||
@ -648,18 +645,21 @@ importers:
 | 
			
		||||
        specifier: '>=3.4.27'
 | 
			
		||||
        version: 3.4.27(typescript@5.4.5)
 | 
			
		||||
    devDependencies:
 | 
			
		||||
      '@testing-library/vue':
 | 
			
		||||
        specifier: ^6.4.2
 | 
			
		||||
        version: 6.6.1(@vue/compiler-sfc@3.4.27)(vue@3.4.27(typescript@5.4.5))
 | 
			
		||||
      '@types/qrcode':
 | 
			
		||||
        specifier: ^1.4.2
 | 
			
		||||
        version: 1.5.5
 | 
			
		||||
      '@vue/compiler-sfc':
 | 
			
		||||
        specifier: ^3.4.27
 | 
			
		||||
        version: 3.4.27
 | 
			
		||||
      '@vue/test-utils':
 | 
			
		||||
        specifier: ^2.4.6
 | 
			
		||||
        version: 2.4.6
 | 
			
		||||
      rimraf:
 | 
			
		||||
        specifier: ^3.0.2
 | 
			
		||||
        version: 3.0.2
 | 
			
		||||
      vite:
 | 
			
		||||
        specifier: ^5.2.12
 | 
			
		||||
        version: 5.2.12(@types/node@18.19.34)(sass@1.77.4)(terser@5.31.0)
 | 
			
		||||
      vue-tsc:
 | 
			
		||||
        specifier: ^2.0.19
 | 
			
		||||
        version: 2.0.19(typescript@5.4.5)
 | 
			
		||||
 | 
			
		||||
  packages/ui-react:
 | 
			
		||||
    dependencies:
 | 
			
		||||
@ -1065,8 +1065,8 @@ importers:
 | 
			
		||||
        specifier: 1.4.7
 | 
			
		||||
        version: 1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5)
 | 
			
		||||
      '@tmagic/vue-runtime-help':
 | 
			
		||||
        specifier: ^0.0.3
 | 
			
		||||
        version: 0.0.3(@tmagic/core@1.4.7(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/stage@1.4.7(@tmagic/core@1.4.7(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(scenejs@1.10.3)(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(@vue/composition-api@1.7.2(vue@3.4.27(typescript@5.4.5)))(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5))
 | 
			
		||||
        specifier: ^0.0.5
 | 
			
		||||
        version: 0.0.5(@tmagic/core@1.4.7(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/stage@1.4.7(@tmagic/core@1.4.7(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(scenejs@1.10.3)(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(@vue/composition-api@1.7.2(vue@3.4.27(typescript@5.4.5)))(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5))
 | 
			
		||||
      axios:
 | 
			
		||||
        specifier: ^0.25.0
 | 
			
		||||
        version: 0.25.0
 | 
			
		||||
@ -2458,17 +2458,6 @@ packages:
 | 
			
		||||
  '@sxzz/popperjs-es@2.11.7':
 | 
			
		||||
    resolution: {integrity: sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==}
 | 
			
		||||
 | 
			
		||||
  '@testing-library/dom@8.20.1':
 | 
			
		||||
    resolution: {integrity: sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==}
 | 
			
		||||
    engines: {node: '>=12'}
 | 
			
		||||
 | 
			
		||||
  '@testing-library/vue@6.6.1':
 | 
			
		||||
    resolution: {integrity: sha512-vpyBPrHzKTwEGS7ehUC8/IXgnqTBEMk6jd52Gouf51arG2jUorPhmkbsxUwJOyxz6L0gj2ZcmWnznG1OJcTCDQ==}
 | 
			
		||||
    engines: {node: '>=12'}
 | 
			
		||||
    peerDependencies:
 | 
			
		||||
      '@vue/compiler-sfc': '>= 3'
 | 
			
		||||
      vue: '>= 3'
 | 
			
		||||
 | 
			
		||||
  '@tmagic/cli@1.4.5':
 | 
			
		||||
    resolution: {integrity: sha512-k+NMTXrQsuP+DZyxghCsh0fBkBVibu2pHquhfR9FW1lb9AkB4fHYwDmoxQo3vgenFXR3CeQQPrdLBX6tTtc9dg==}
 | 
			
		||||
    engines: {node: '>=18'}
 | 
			
		||||
@ -2684,13 +2673,32 @@ packages:
 | 
			
		||||
      typescript:
 | 
			
		||||
        optional: true
 | 
			
		||||
 | 
			
		||||
  '@tmagic/vue-runtime-help@0.0.5':
 | 
			
		||||
    resolution: {integrity: sha512-9fgy55/zq/aWywUWNXI3NqCxQtosoqCBrMZrO7mE09QNn3A0QJqAri9P9JOpHG3SVfweRm6SUAIFuWv3t9BzCA==}
 | 
			
		||||
    engines: {node: '>=18'}
 | 
			
		||||
    peerDependencies:
 | 
			
		||||
      '@tmagic/core': 1.4.7
 | 
			
		||||
      '@tmagic/data-source': 1.4.7
 | 
			
		||||
      '@tmagic/schema': 1.4.7
 | 
			
		||||
      '@tmagic/stage': 1.4.7
 | 
			
		||||
      '@tmagic/utils': 1.4.7
 | 
			
		||||
      '@vue/composition-api': '>=1.7.2'
 | 
			
		||||
      typescript: '*'
 | 
			
		||||
      vue: '>=2.0.0 || >=3.0.0'
 | 
			
		||||
    peerDependenciesMeta:
 | 
			
		||||
      '@tmagic/schema':
 | 
			
		||||
        optional: true
 | 
			
		||||
      '@tmagic/stage':
 | 
			
		||||
        optional: true
 | 
			
		||||
      '@vue/composition-api':
 | 
			
		||||
        optional: true
 | 
			
		||||
      typescript:
 | 
			
		||||
        optional: true
 | 
			
		||||
 | 
			
		||||
  '@tootallnate/once@2.0.0':
 | 
			
		||||
    resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}
 | 
			
		||||
    engines: {node: '>= 10'}
 | 
			
		||||
 | 
			
		||||
  '@types/aria-query@5.0.4':
 | 
			
		||||
    resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}
 | 
			
		||||
 | 
			
		||||
  '@types/conventional-commits-parser@5.0.0':
 | 
			
		||||
    resolution: {integrity: sha512-loB369iXNmAZglwWATL+WRe+CRMmmBPtpolYzIebFaX4YA3x+BEfLqhUAV9WanycKI3TG1IMr5bMJDajDKLlUQ==}
 | 
			
		||||
 | 
			
		||||
@ -3135,9 +3143,6 @@ packages:
 | 
			
		||||
  argparse@2.0.1:
 | 
			
		||||
    resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
 | 
			
		||||
 | 
			
		||||
  aria-query@5.1.3:
 | 
			
		||||
    resolution: {integrity: sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==}
 | 
			
		||||
 | 
			
		||||
  array-buffer-byte-length@1.0.1:
 | 
			
		||||
    resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
@ -3656,10 +3661,6 @@ packages:
 | 
			
		||||
    resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==}
 | 
			
		||||
    engines: {node: '>=6'}
 | 
			
		||||
 | 
			
		||||
  deep-equal@2.2.3:
 | 
			
		||||
    resolution: {integrity: sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  deep-is@0.1.4:
 | 
			
		||||
    resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
 | 
			
		||||
 | 
			
		||||
@ -3711,9 +3712,6 @@ packages:
 | 
			
		||||
    resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==}
 | 
			
		||||
    engines: {node: '>=6.0.0'}
 | 
			
		||||
 | 
			
		||||
  dom-accessibility-api@0.5.16:
 | 
			
		||||
    resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==}
 | 
			
		||||
 | 
			
		||||
  domexception@4.0.0:
 | 
			
		||||
    resolution: {integrity: sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==}
 | 
			
		||||
    engines: {node: '>=12'}
 | 
			
		||||
@ -3786,9 +3784,6 @@ packages:
 | 
			
		||||
    resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  es-get-iterator@1.1.3:
 | 
			
		||||
    resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==}
 | 
			
		||||
 | 
			
		||||
  es-object-atoms@1.0.0:
 | 
			
		||||
    resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
@ -4376,10 +4371,6 @@ packages:
 | 
			
		||||
    resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==}
 | 
			
		||||
    engines: {node: '>= 0.10'}
 | 
			
		||||
 | 
			
		||||
  is-arguments@1.1.1:
 | 
			
		||||
    resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  is-array-buffer@3.0.4:
 | 
			
		||||
    resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
@ -4432,10 +4423,6 @@ packages:
 | 
			
		||||
    resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==}
 | 
			
		||||
    engines: {node: '>=8'}
 | 
			
		||||
 | 
			
		||||
  is-map@2.0.3:
 | 
			
		||||
    resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  is-negative-zero@2.0.3:
 | 
			
		||||
    resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
@ -4478,10 +4465,6 @@ packages:
 | 
			
		||||
    resolution: {integrity: sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==}
 | 
			
		||||
    engines: {node: '>=0.10.0'}
 | 
			
		||||
 | 
			
		||||
  is-set@2.0.3:
 | 
			
		||||
    resolution: {integrity: sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  is-shared-array-buffer@1.0.3:
 | 
			
		||||
    resolution: {integrity: sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
@ -4517,17 +4500,9 @@ packages:
 | 
			
		||||
  is-utf8@0.2.1:
 | 
			
		||||
    resolution: {integrity: sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==}
 | 
			
		||||
 | 
			
		||||
  is-weakmap@2.0.2:
 | 
			
		||||
    resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  is-weakref@1.0.2:
 | 
			
		||||
    resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==}
 | 
			
		||||
 | 
			
		||||
  is-weakset@2.0.3:
 | 
			
		||||
    resolution: {integrity: sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  is-windows@1.0.2:
 | 
			
		||||
    resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==}
 | 
			
		||||
    engines: {node: '>=0.10.0'}
 | 
			
		||||
@ -4773,10 +4748,6 @@ packages:
 | 
			
		||||
    resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}
 | 
			
		||||
    engines: {node: '>=10'}
 | 
			
		||||
 | 
			
		||||
  lz-string@1.5.0:
 | 
			
		||||
    resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}
 | 
			
		||||
    hasBin: true
 | 
			
		||||
 | 
			
		||||
  magic-string@0.27.0:
 | 
			
		||||
    resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==}
 | 
			
		||||
    engines: {node: '>=12'}
 | 
			
		||||
@ -4973,10 +4944,6 @@ packages:
 | 
			
		||||
  object-inspect@1.13.1:
 | 
			
		||||
    resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==}
 | 
			
		||||
 | 
			
		||||
  object-is@1.1.6:
 | 
			
		||||
    resolution: {integrity: sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  object-keys@1.1.1:
 | 
			
		||||
    resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
@ -5173,10 +5140,6 @@ packages:
 | 
			
		||||
    engines: {node: '>=10.13.0'}
 | 
			
		||||
    hasBin: true
 | 
			
		||||
 | 
			
		||||
  pretty-format@27.5.1:
 | 
			
		||||
    resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}
 | 
			
		||||
    engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
 | 
			
		||||
 | 
			
		||||
  pretty-format@29.7.0:
 | 
			
		||||
    resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==}
 | 
			
		||||
    engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
 | 
			
		||||
@ -5224,9 +5187,6 @@ packages:
 | 
			
		||||
    peerDependencies:
 | 
			
		||||
      react: ^18.3.1
 | 
			
		||||
 | 
			
		||||
  react-is@17.0.2:
 | 
			
		||||
    resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
 | 
			
		||||
 | 
			
		||||
  react-is@18.3.1:
 | 
			
		||||
    resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}
 | 
			
		||||
 | 
			
		||||
@ -5545,10 +5505,6 @@ packages:
 | 
			
		||||
  std-env@3.7.0:
 | 
			
		||||
    resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==}
 | 
			
		||||
 | 
			
		||||
  stop-iteration-iterator@1.0.0:
 | 
			
		||||
    resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  string-argv@0.3.1:
 | 
			
		||||
    resolution: {integrity: sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==}
 | 
			
		||||
    engines: {node: '>=0.6.19'}
 | 
			
		||||
@ -6052,10 +6008,6 @@ packages:
 | 
			
		||||
  which-boxed-primitive@1.0.2:
 | 
			
		||||
    resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==}
 | 
			
		||||
 | 
			
		||||
  which-collection@1.0.2:
 | 
			
		||||
    resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==}
 | 
			
		||||
    engines: {node: '>= 0.4'}
 | 
			
		||||
 | 
			
		||||
  which-module@2.0.1:
 | 
			
		||||
    resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==}
 | 
			
		||||
 | 
			
		||||
@ -7597,25 +7549,6 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  '@sxzz/popperjs-es@2.11.7': {}
 | 
			
		||||
 | 
			
		||||
  '@testing-library/dom@8.20.1':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@babel/code-frame': 7.24.6
 | 
			
		||||
      '@babel/runtime': 7.24.6
 | 
			
		||||
      '@types/aria-query': 5.0.4
 | 
			
		||||
      aria-query: 5.1.3
 | 
			
		||||
      chalk: 4.1.2
 | 
			
		||||
      dom-accessibility-api: 0.5.16
 | 
			
		||||
      lz-string: 1.5.0
 | 
			
		||||
      pretty-format: 27.5.1
 | 
			
		||||
 | 
			
		||||
  '@testing-library/vue@6.6.1(@vue/compiler-sfc@3.4.27)(vue@3.4.27(typescript@5.4.5))':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@babel/runtime': 7.24.6
 | 
			
		||||
      '@testing-library/dom': 8.20.1
 | 
			
		||||
      '@vue/compiler-sfc': 3.4.27
 | 
			
		||||
      '@vue/test-utils': 2.4.6
 | 
			
		||||
      vue: 3.4.27(typescript@5.4.5)
 | 
			
		||||
 | 
			
		||||
  '@tmagic/cli@1.4.5':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      cac: 6.7.14
 | 
			
		||||
@ -7659,6 +7592,17 @@ snapshots:
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      typescript: 5.4.5
 | 
			
		||||
 | 
			
		||||
  '@tmagic/data-source@1.4.7(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5)':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@tmagic/dep': 1.4.7(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5)
 | 
			
		||||
      '@tmagic/schema': link:packages/schema
 | 
			
		||||
      '@tmagic/utils': link:packages/utils
 | 
			
		||||
      deep-state-observer: 5.5.13
 | 
			
		||||
      events: 3.3.0
 | 
			
		||||
      lodash-es: 4.17.21
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      typescript: 5.4.5
 | 
			
		||||
 | 
			
		||||
  '@tmagic/dep@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5)':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@tmagic/schema': 1.4.7(typescript@5.4.5)
 | 
			
		||||
@ -7666,6 +7610,13 @@ snapshots:
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      typescript: 5.4.5
 | 
			
		||||
 | 
			
		||||
  '@tmagic/dep@1.4.7(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5)':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@tmagic/schema': link:packages/schema
 | 
			
		||||
      '@tmagic/utils': link:packages/utils
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      typescript: 5.4.5
 | 
			
		||||
 | 
			
		||||
  '@tmagic/design@1.4.7(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5))':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      vue: 3.4.27(typescript@5.4.5)
 | 
			
		||||
@ -7735,6 +7686,23 @@ snapshots:
 | 
			
		||||
    transitivePeerDependencies:
 | 
			
		||||
      - scenejs
 | 
			
		||||
 | 
			
		||||
  '@tmagic/stage@1.4.7(@tmagic/core@packages+core)(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5)':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@scena/guides': 0.29.2
 | 
			
		||||
      '@tmagic/core': link:packages/core
 | 
			
		||||
      '@tmagic/schema': link:packages/schema
 | 
			
		||||
      '@tmagic/utils': link:packages/utils
 | 
			
		||||
      events: 3.3.0
 | 
			
		||||
      keycon: 1.4.0
 | 
			
		||||
      lodash-es: 4.17.21
 | 
			
		||||
      moveable: 0.53.0
 | 
			
		||||
      moveable-helper: 0.4.0(scenejs@1.10.3)
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      typescript: 5.4.5
 | 
			
		||||
    transitivePeerDependencies:
 | 
			
		||||
      - scenejs
 | 
			
		||||
    optional: true
 | 
			
		||||
 | 
			
		||||
  '@tmagic/table@1.4.7(@tmagic/design@1.4.7(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5)))(@tmagic/form@1.4.7(@tmagic/design@1.4.7(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5)))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5)))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5))':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@tmagic/design': 1.4.7(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5))
 | 
			
		||||
@ -7812,7 +7780,7 @@ snapshots:
 | 
			
		||||
      '@vue/composition-api': 1.7.2(vue@2.7.16)
 | 
			
		||||
      typescript: 5.4.5
 | 
			
		||||
 | 
			
		||||
  ? '@tmagic/vue-runtime-help@0.0.3(@tmagic/core@1.4.7(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/stage@1.4.7(@tmagic/core@1.4.7(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(scenejs@1.10.3)(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(@vue/composition-api@1.7.2(vue@3.4.27(typescript@5.4.5)))(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5))'
 | 
			
		||||
  ? '@tmagic/vue-runtime-help@0.0.5(@tmagic/core@1.4.7(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/stage@1.4.7(@tmagic/core@1.4.7(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(scenejs@1.10.3)(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(@vue/composition-api@1.7.2(vue@3.4.27(typescript@5.4.5)))(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5))'
 | 
			
		||||
  : dependencies:
 | 
			
		||||
      '@tmagic/core': 1.4.7(@tmagic/data-source@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5))(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5)
 | 
			
		||||
      '@tmagic/data-source': 1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(@tmagic/utils@1.4.7(@tmagic/schema@1.4.7(typescript@5.4.5))(typescript@5.4.5))(typescript@5.4.5)
 | 
			
		||||
@ -7825,9 +7793,20 @@ snapshots:
 | 
			
		||||
      '@vue/composition-api': 1.7.2(vue@3.4.27(typescript@5.4.5))
 | 
			
		||||
      typescript: 5.4.5
 | 
			
		||||
 | 
			
		||||
  '@tootallnate/once@2.0.0': {}
 | 
			
		||||
  '@tmagic/vue-runtime-help@0.0.5(@tmagic/core@packages+core)(@tmagic/data-source@1.4.7(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5))(@tmagic/schema@packages+schema)(@tmagic/stage@1.4.7(@tmagic/core@packages+core)(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5))(@tmagic/utils@packages+utils)(@vue/composition-api@1.7.2(vue@3.4.27(typescript@5.4.5)))(typescript@5.4.5)(vue@3.4.27(typescript@5.4.5))':
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@tmagic/core': link:packages/core
 | 
			
		||||
      '@tmagic/data-source': 1.4.7(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5)
 | 
			
		||||
      '@tmagic/utils': link:packages/utils
 | 
			
		||||
      vue: 3.4.27(typescript@5.4.5)
 | 
			
		||||
      vue-demi: 0.14.8(@vue/composition-api@1.7.2(vue@3.4.27(typescript@5.4.5)))(vue@3.4.27(typescript@5.4.5))
 | 
			
		||||
    optionalDependencies:
 | 
			
		||||
      '@tmagic/schema': link:packages/schema
 | 
			
		||||
      '@tmagic/stage': 1.4.7(@tmagic/core@packages+core)(@tmagic/schema@packages+schema)(@tmagic/utils@packages+utils)(typescript@5.4.5)
 | 
			
		||||
      '@vue/composition-api': 1.7.2(vue@3.4.27(typescript@5.4.5))
 | 
			
		||||
      typescript: 5.4.5
 | 
			
		||||
 | 
			
		||||
  '@types/aria-query@5.0.4': {}
 | 
			
		||||
  '@tootallnate/once@2.0.0': {}
 | 
			
		||||
 | 
			
		||||
  '@types/conventional-commits-parser@5.0.0':
 | 
			
		||||
    dependencies:
 | 
			
		||||
@ -8391,10 +8370,6 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  argparse@2.0.1: {}
 | 
			
		||||
 | 
			
		||||
  aria-query@5.1.3:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      deep-equal: 2.2.3
 | 
			
		||||
 | 
			
		||||
  array-buffer-byte-length@1.0.1:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      call-bind: 1.0.7
 | 
			
		||||
@ -9021,27 +8996,6 @@ snapshots:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      type-detect: 4.0.8
 | 
			
		||||
 | 
			
		||||
  deep-equal@2.2.3:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      array-buffer-byte-length: 1.0.1
 | 
			
		||||
      call-bind: 1.0.7
 | 
			
		||||
      es-get-iterator: 1.1.3
 | 
			
		||||
      get-intrinsic: 1.2.4
 | 
			
		||||
      is-arguments: 1.1.1
 | 
			
		||||
      is-array-buffer: 3.0.4
 | 
			
		||||
      is-date-object: 1.0.5
 | 
			
		||||
      is-regex: 1.1.4
 | 
			
		||||
      is-shared-array-buffer: 1.0.3
 | 
			
		||||
      isarray: 2.0.5
 | 
			
		||||
      object-is: 1.1.6
 | 
			
		||||
      object-keys: 1.1.1
 | 
			
		||||
      object.assign: 4.1.5
 | 
			
		||||
      regexp.prototype.flags: 1.5.2
 | 
			
		||||
      side-channel: 1.0.6
 | 
			
		||||
      which-boxed-primitive: 1.0.2
 | 
			
		||||
      which-collection: 1.0.2
 | 
			
		||||
      which-typed-array: 1.1.15
 | 
			
		||||
 | 
			
		||||
  deep-is@0.1.4: {}
 | 
			
		||||
 | 
			
		||||
  deep-state-observer@5.5.13: {}
 | 
			
		||||
@ -9086,8 +9040,6 @@ snapshots:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      esutils: 2.0.3
 | 
			
		||||
 | 
			
		||||
  dom-accessibility-api@0.5.16: {}
 | 
			
		||||
 | 
			
		||||
  domexception@4.0.0:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      webidl-conversions: 7.0.0
 | 
			
		||||
@ -9217,18 +9169,6 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  es-errors@1.3.0: {}
 | 
			
		||||
 | 
			
		||||
  es-get-iterator@1.1.3:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      call-bind: 1.0.7
 | 
			
		||||
      get-intrinsic: 1.2.4
 | 
			
		||||
      has-symbols: 1.0.3
 | 
			
		||||
      is-arguments: 1.1.1
 | 
			
		||||
      is-map: 2.0.3
 | 
			
		||||
      is-set: 2.0.3
 | 
			
		||||
      is-string: 1.0.7
 | 
			
		||||
      isarray: 2.0.5
 | 
			
		||||
      stop-iteration-iterator: 1.0.0
 | 
			
		||||
 | 
			
		||||
  es-object-atoms@1.0.0:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      es-errors: 1.3.0
 | 
			
		||||
@ -9946,11 +9886,6 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  interpret@1.4.0: {}
 | 
			
		||||
 | 
			
		||||
  is-arguments@1.1.1:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      call-bind: 1.0.7
 | 
			
		||||
      has-tostringtag: 1.0.2
 | 
			
		||||
 | 
			
		||||
  is-array-buffer@3.0.4:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      call-bind: 1.0.7
 | 
			
		||||
@ -9997,8 +9932,6 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  is-interactive@1.0.0: {}
 | 
			
		||||
 | 
			
		||||
  is-map@2.0.3: {}
 | 
			
		||||
 | 
			
		||||
  is-negative-zero@2.0.3: {}
 | 
			
		||||
 | 
			
		||||
  is-number-object@1.0.7:
 | 
			
		||||
@ -10028,8 +9961,6 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  is-regexp@1.0.0: {}
 | 
			
		||||
 | 
			
		||||
  is-set@2.0.3: {}
 | 
			
		||||
 | 
			
		||||
  is-shared-array-buffer@1.0.3:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      call-bind: 1.0.7
 | 
			
		||||
@ -10058,17 +9989,10 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  is-utf8@0.2.1: {}
 | 
			
		||||
 | 
			
		||||
  is-weakmap@2.0.2: {}
 | 
			
		||||
 | 
			
		||||
  is-weakref@1.0.2:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      call-bind: 1.0.7
 | 
			
		||||
 | 
			
		||||
  is-weakset@2.0.3:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      call-bind: 1.0.7
 | 
			
		||||
      get-intrinsic: 1.2.4
 | 
			
		||||
 | 
			
		||||
  is-windows@1.0.2: {}
 | 
			
		||||
 | 
			
		||||
  isarray@2.0.5: {}
 | 
			
		||||
@ -10327,8 +10251,6 @@ snapshots:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      yallist: 4.0.0
 | 
			
		||||
 | 
			
		||||
  lz-string@1.5.0: {}
 | 
			
		||||
 | 
			
		||||
  magic-string@0.27.0:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@jridgewell/sourcemap-codec': 1.4.15
 | 
			
		||||
@ -10515,11 +10437,6 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  object-inspect@1.13.1: {}
 | 
			
		||||
 | 
			
		||||
  object-is@1.1.6:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      call-bind: 1.0.7
 | 
			
		||||
      define-properties: 1.2.1
 | 
			
		||||
 | 
			
		||||
  object-keys@1.1.1: {}
 | 
			
		||||
 | 
			
		||||
  object.assign@4.1.5:
 | 
			
		||||
@ -10716,12 +10633,6 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  prettier@2.8.8: {}
 | 
			
		||||
 | 
			
		||||
  pretty-format@27.5.1:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      ansi-regex: 5.0.1
 | 
			
		||||
      ansi-styles: 5.2.0
 | 
			
		||||
      react-is: 17.0.2
 | 
			
		||||
 | 
			
		||||
  pretty-format@29.7.0:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      '@jest/schemas': 29.6.3
 | 
			
		||||
@ -10769,8 +10680,6 @@ snapshots:
 | 
			
		||||
      react: 18.3.1
 | 
			
		||||
      scheduler: 0.23.2
 | 
			
		||||
 | 
			
		||||
  react-is@17.0.2: {}
 | 
			
		||||
 | 
			
		||||
  react-is@18.3.1: {}
 | 
			
		||||
 | 
			
		||||
  react-moveable@0.56.0:
 | 
			
		||||
@ -11150,10 +11059,6 @@ snapshots:
 | 
			
		||||
 | 
			
		||||
  std-env@3.7.0: {}
 | 
			
		||||
 | 
			
		||||
  stop-iteration-iterator@1.0.0:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      internal-slot: 1.0.7
 | 
			
		||||
 | 
			
		||||
  string-argv@0.3.1: {}
 | 
			
		||||
 | 
			
		||||
  string-width@4.2.3:
 | 
			
		||||
@ -11738,13 +11643,6 @@ snapshots:
 | 
			
		||||
      is-string: 1.0.7
 | 
			
		||||
      is-symbol: 1.0.4
 | 
			
		||||
 | 
			
		||||
  which-collection@1.0.2:
 | 
			
		||||
    dependencies:
 | 
			
		||||
      is-map: 2.0.3
 | 
			
		||||
      is-set: 2.0.3
 | 
			
		||||
      is-weakmap: 2.0.2
 | 
			
		||||
      is-weakset: 2.0.3
 | 
			
		||||
 | 
			
		||||
  which-module@2.0.1: {}
 | 
			
		||||
 | 
			
		||||
  which-typed-array@1.1.15:
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  "version": "0.0.3",
 | 
			
		||||
  "version": "0.0.5",
 | 
			
		||||
  "name": "@tmagic/vue-runtime-help",
 | 
			
		||||
  "type": "module",
 | 
			
		||||
  "sideEffects": false,
 | 
			
		||||
 | 
			
		||||
@ -1,2 +1,3 @@
 | 
			
		||||
export * from './hooks/use-editor-dsl';
 | 
			
		||||
export * from './hooks/use-dsl';
 | 
			
		||||
export { default as useApp } from './useApp';
 | 
			
		||||
 | 
			
		||||
@ -16,9 +16,9 @@
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
import { computed, inject, onBeforeUnmount, onMounted } from 'vue';
 | 
			
		||||
import { computed, inject, onBeforeUnmount, onMounted } from 'vue-demi';
 | 
			
		||||
 | 
			
		||||
import Core from '@tmagic/core';
 | 
			
		||||
import type Core from '@tmagic/core';
 | 
			
		||||
import type { MNode } from '@tmagic/schema';
 | 
			
		||||
 | 
			
		||||
interface UseAppOptions<T extends MNode = MNode> {
 | 
			
		||||
@ -24,7 +24,7 @@
 | 
			
		||||
    "@tmagic/stage": "1.4.7",
 | 
			
		||||
    "@tmagic/ui": "1.4.7",
 | 
			
		||||
    "@tmagic/utils": "1.4.7",
 | 
			
		||||
    "@tmagic/vue-runtime-help": "^0.0.3",
 | 
			
		||||
    "@tmagic/vue-runtime-help": "^0.0.5",
 | 
			
		||||
    "axios": "^0.25.0",
 | 
			
		||||
    "vue": "^3.4.27"
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
@ -21,6 +21,7 @@ const main = async () => {
 | 
			
		||||
    'stage',
 | 
			
		||||
    'editor',
 | 
			
		||||
    'cli',
 | 
			
		||||
    'ui',
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  for (const pkg of packages) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user