@tmagic/editor 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
1
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
+ import { PropType } from 'vue';
2
3
  import type { FormConfig } from '@tmagic/form';
3
4
  import type { MApp, MNode } from '@tmagic/schema';
4
5
  import type StageCore from '@tmagic/stage';
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, ComputedOptions, MethodOptions, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Component, PropType, toRaw } from 'vue';
1
+ import type { DefineComponent, ComputedOptions, MethodOptions, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
+ import { Component, PropType, toRaw } from 'vue';
2
3
  declare const _default: DefineComponent<{
3
4
  icon: {
4
5
  type: PropType<string | Component<any, any, any, ComputedOptions, MethodOptions>>;
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { Ref, ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  declare const _default: DefineComponent<{
3
4
  width: NumberConstructor;
4
5
  height: NumberConstructor;
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  declare const _default: DefineComponent<Readonly<{
3
4
  name?: any;
4
5
  config?: any;
@@ -1,4 +1,6 @@
1
- import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
1
+ import type { Ref, ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
+ import { PropType } from 'vue';
2
4
  interface CodeLinkConfig {
3
5
  type: 'code-link';
4
6
  name: string;
@@ -1,4 +1,4 @@
1
- import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
2
  declare const _default: DefineComponent<{}, {
3
3
  clickHandler(): void;
4
4
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { Ref } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  import * as monaco from 'monaco-editor';
3
4
  declare const _default: DefineComponent<{
4
5
  initValues: {
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  import type { MApp } from '@tmagic/schema';
3
4
  import { GetColumnWidth } from '../type';
4
5
  declare const _default: DefineComponent<{
@@ -1,4 +1,6 @@
1
- import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
1
+ import type { ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
+ import { PropType } from 'vue';
2
4
  import { GetColumnWidth, MenuBarData } from '../type';
3
5
  declare const _default: DefineComponent<{
4
6
  data: {
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { Ref, ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  import type { FormValue } from '@tmagic/form';
3
4
  declare const _default: DefineComponent<{}, {
4
5
  values: Ref<FormValue>;
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { Ref } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  declare const _default: DefineComponent<{
3
4
  type: {
4
5
  type: StringConstructor;
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { Ref, ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  import type { ComponentItem } from '../../type';
3
4
  declare const _default: DefineComponent<{}, {
4
5
  searchText: Ref<string>;
@@ -1,4 +1,6 @@
1
- import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
1
+ import type { Ref } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
+ import { PropType } from 'vue';
2
4
  import { SideBarData } from '../../type';
3
5
  declare const _default: DefineComponent<{
4
6
  data: {
@@ -1,4 +1,6 @@
1
- import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
1
+ import type { ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
3
+ import { PropType } from 'vue';
2
4
  import { SideComponent, SideItem } from '../../type';
3
5
  declare const _default: DefineComponent<{
4
6
  data: {
@@ -1,4 +1,5 @@
1
- import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
1
+ import type { Ref, ComputedRef } from '@vue/reactivity';
2
+ import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from '@vue/runtime-core';
2
3
  import type { MPage } from '@tmagic/schema';
3
4
  declare const _default: DefineComponent<{}, {
4
5
  workspace: Ref<HTMLDivElement | undefined>;
@@ -1,4 +1,4 @@
1
- import { Id, MPage } from '@tmagic/schema';
1
+ import type { Id, MPage } from '@tmagic/schema';
2
2
  import { UndoRedo } from '../utils/undo-redo';
3
3
  import BaseService from './BaseService';
4
4
  export interface StepValue {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.2",
2
+ "version": "1.0.3",
3
3
  "name": "@tmagic/editor",
4
4
  "sideEffects": [
5
5
  "dist/*",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "scripts": {
25
- "build": "vite build"
25
+ "build": "vue-tsc --noEmit && vite build"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=14"
@@ -43,14 +43,14 @@
43
43
  "dependencies": {
44
44
  "@babel/core": "^7.18.0",
45
45
  "@element-plus/icons": "0.0.11",
46
- "@tmagic/core": "1.0.2",
47
- "@tmagic/form": "1.0.2",
48
- "@tmagic/schema": "1.0.2",
49
- "@tmagic/stage": "1.0.2",
50
- "@tmagic/utils": "1.0.2",
46
+ "@tmagic/core": "1.0.3",
47
+ "@tmagic/form": "1.0.3",
48
+ "@tmagic/schema": "1.0.3",
49
+ "@tmagic/stage": "1.0.3",
50
+ "@tmagic/utils": "1.0.3",
51
51
  "buffer": "^6.0.3",
52
52
  "color": "^3.1.3",
53
- "element-plus": "^2.2.0",
53
+ "element-plus": "^2.2.6",
54
54
  "events": "^3.3.0",
55
55
  "gesto": "^1.7.0",
56
56
  "keycon": "^1.1.2",
@@ -60,8 +60,8 @@
60
60
  "vue": "^3.2.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@tmagic/form": "1.0.2",
64
- "element-plus": "^2.2.0",
63
+ "@tmagic/form": "1.0.3",
64
+ "element-plus": "^2.2.6",
65
65
  "monaco-editor": "^0.32.1",
66
66
  "vue": "^3.2.0"
67
67
  },
@@ -70,14 +70,13 @@
70
70
  "@types/lodash-es": "^4.17.4",
71
71
  "@types/node": "^15.12.4",
72
72
  "@types/serialize-javascript": "^5.0.1",
73
- "@vitejs/plugin-vue": "^1.2.3",
74
- "@vitejs/plugin-vue-jsx": "^1.1.6",
73
+ "@vitejs/plugin-vue": "^2.3.3",
75
74
  "@vue/compiler-sfc": "^3.2.0",
76
75
  "@vue/test-utils": "^2.0.0",
77
76
  "sass": "^1.35.1",
78
77
  "typescript": "^4.3.4",
79
- "vite": "^2.3.7",
78
+ "vite": "^2.9.13",
80
79
  "vite-plugin-dts": "^0.9.6",
81
- "vue-tsc": "^0.0.24"
80
+ "vue-tsc": "^0.38.2"
82
81
  }
83
82
  }
@@ -17,7 +17,7 @@ import { Plus } from '@element-plus/icons';
17
17
 
18
18
  import { NodeType } from '@tmagic/schema';
19
19
 
20
- import { Services } from '@editor/type';
20
+ import type { Services } from '@editor/type';
21
21
  import { generatePageNameByApp } from '@editor/utils';
22
22
 
23
23
  export default defineComponent({
@@ -18,7 +18,7 @@
18
18
 
19
19
  import { reactive } from 'vue';
20
20
 
21
- import { Id, MPage } from '@tmagic/schema';
21
+ import type { Id, MPage } from '@tmagic/schema';
22
22
 
23
23
  import { UndoRedo } from '@editor/utils/undo-redo';
24
24