@vtj/designer 0.8.25 → 0.8.27
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.
- package/dist/index.mjs +1785 -1734
- package/package.json +6 -6
- package/types/components/hooks/useDataSources.d.ts +2 -1
- package/types/components/hooks/useDeps.d.ts +2 -1
- package/types/components/hooks/useDesigner.d.ts +2 -2
- package/types/framework/simulator.d.ts +2 -2
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/designer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"mockjs": "~1.1.0",
|
|
8
8
|
"monaco-editor": "~0.48.0",
|
|
9
|
-
"@vtj/
|
|
10
|
-
"@vtj/
|
|
11
|
-
"@vtj/
|
|
12
|
-
"@vtj/
|
|
13
|
-
"@vtj/
|
|
9
|
+
"@vtj/ui": "~0.8.27",
|
|
10
|
+
"@vtj/renderer": "~0.8.27",
|
|
11
|
+
"@vtj/icons": "~0.8.27",
|
|
12
|
+
"@vtj/utils": "~0.8.27",
|
|
13
|
+
"@vtj/core": "~0.8.27"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/mockjs": "~1.0.10",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ShallowReactive, ComputedRef } from 'vue';
|
|
2
2
|
import { Engine } from '../..';
|
|
3
|
-
import { ProjectModel, ApiSchema } from '@vtj/core';
|
|
3
|
+
import { ProjectModel, ApiSchema, MetaSchema } from '@vtj/core';
|
|
4
4
|
export declare function useDataSources(): {
|
|
5
5
|
engine: ShallowReactive<Engine>;
|
|
6
6
|
project: ComputedRef< ProjectModel | null>;
|
|
7
7
|
apis: ComputedRef< ApiSchema[]>;
|
|
8
|
+
meta: ComputedRef< MetaSchema[]>;
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ShallowReactive, ComputedRef } from 'vue';
|
|
2
2
|
import { Engine } from '../../framework';
|
|
3
|
-
import { Dependencie, ApiSchema } from '@vtj/core';
|
|
3
|
+
import { Dependencie, ApiSchema, MetaSchema } from '@vtj/core';
|
|
4
4
|
export declare function useDeps(): {
|
|
5
5
|
engine: ShallowReactive<Engine>;
|
|
6
6
|
dependencies: ComputedRef< Dependencie[]>;
|
|
7
7
|
apis: ComputedRef< ApiSchema[]>;
|
|
8
|
+
meta: ComputedRef< MetaSchema[]>;
|
|
8
9
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Ref, ComputedRef } from 'vue';
|
|
2
|
-
import { Dependencie, ApiSchema, ProjectConfig, NodeModel, BlockModel, DropPosition } from '@vtj/core';
|
|
2
|
+
import { Dependencie, ApiSchema, MetaSchema, ProjectConfig, NodeModel, BlockModel, DropPosition } from '@vtj/core';
|
|
3
3
|
import { Designer, VtjElement } from '../../framework';
|
|
4
4
|
|
|
5
|
-
export declare function useDesigner(iframe: Ref<HTMLIFrameElement | undefined>, dependencies: Ref<Dependencie[]>, apis: Ref<ApiSchema[]>, config: Ref<ProjectConfig>): {
|
|
5
|
+
export declare function useDesigner(iframe: Ref<HTMLIFrameElement | undefined>, dependencies: Ref<Dependencie[]>, apis: Ref<ApiSchema[]>, meta: Ref<MetaSchema[]>, config: Ref<ProjectConfig>): {
|
|
6
6
|
designer: ComputedRef< Designer | null>;
|
|
7
7
|
dropping: ComputedRef<{
|
|
8
8
|
style: Record<string, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref, ShallowRef } from 'vue';
|
|
2
|
-
import { Dependencie, Material, ApiSchema, ProjectConfig, Base } from '@vtj/core';
|
|
2
|
+
import { Dependencie, Material, ApiSchema, MetaSchema, ProjectConfig, Base } from '@vtj/core';
|
|
3
3
|
import { Renderer } from './renderer';
|
|
4
4
|
import { Designer } from './designer';
|
|
5
5
|
import { Engine } from './engine';
|
|
@@ -36,7 +36,7 @@ export declare class Simulator extends Base {
|
|
|
36
36
|
engine: Engine;
|
|
37
37
|
materialPath: string;
|
|
38
38
|
constructor(options: SimulatorOptions);
|
|
39
|
-
init(iframe: Ref<HTMLIFrameElement | undefined>, deps: Ref<Dependencie[]>, apis: Ref<ApiSchema[]>, config: Ref<ProjectConfig>): void;
|
|
39
|
+
init(iframe: Ref<HTMLIFrameElement | undefined>, deps: Ref<Dependencie[]>, apis: Ref<ApiSchema[]>, meta: Ref<MetaSchema[]>, config: Ref<ProjectConfig>): void;
|
|
40
40
|
private setup;
|
|
41
41
|
emitReady(libraryExports?: string[], materialExports?: string[], materialMapLibrary?: Record<string, string>, libraryLocaleMap?: Record<string, string>): Promise<void>;
|
|
42
42
|
createEnv(libraryExports?: string[], materialMapLibrary?: Record<string, string>, materials?: Material[], libraryLocaleMap?: Record<string, string>): SimulatorEnv;
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/designer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.8.
|
|
5
|
+
* @version 0.8.26
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.8.
|
|
8
|
+
export declare const version = "0.8.26";
|