@vtj/designer 0.11.6 → 0.11.8
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 +2317 -2218
- package/package.json +7 -7
- package/types/constants.d.ts +2 -0
- package/types/framework/engine.d.ts +2 -0
- package/types/framework/renderer.d.ts +3 -1
- package/types/framework/report.d.ts +33 -0
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/designer",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.11.
|
4
|
+
"version": "0.11.8",
|
5
5
|
"type": "module",
|
6
6
|
"keywords": [
|
7
7
|
"低代码引擎",
|
@@ -24,12 +24,12 @@
|
|
24
24
|
"html2canvas": "~1.4.1",
|
25
25
|
"mockjs": "~1.1.0",
|
26
26
|
"monaco-editor": "~0.52.0",
|
27
|
-
"@vtj/
|
28
|
-
"@vtj/
|
29
|
-
"@vtj/
|
30
|
-
"@vtj/
|
31
|
-
"@vtj/
|
32
|
-
"@vtj/
|
27
|
+
"@vtj/icons": "~0.11.8",
|
28
|
+
"@vtj/core": "~0.11.8",
|
29
|
+
"@vtj/renderer": "~0.11.8",
|
30
|
+
"@vtj/uni": "~0.11.8",
|
31
|
+
"@vtj/utils": "~0.11.8",
|
32
|
+
"@vtj/ui": "~0.11.8"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
35
|
"@types/mockjs": "~1.0.10",
|
package/types/constants.d.ts
CHANGED
@@ -4,6 +4,7 @@ import { Context, Provider, Access, ProvideAdapter } from '@vtj/renderer';
|
|
4
4
|
import { SkeletonWrapperInstance } from '../wrappers';
|
5
5
|
import { Simulator } from './simulator';
|
6
6
|
import { Assets } from './assets';
|
7
|
+
import { Report } from './report';
|
7
8
|
export declare const engineKey: InjectionKey<ShallowReactive<Engine>>;
|
8
9
|
export interface EngineOptions {
|
9
10
|
container: MaybeRef<HTMLElement | undefined>;
|
@@ -49,6 +50,7 @@ export declare class Engine extends Base {
|
|
49
50
|
changed: Ref<symbol>;
|
50
51
|
access?: Access;
|
51
52
|
remote: string;
|
53
|
+
report: Report;
|
52
54
|
constructor(options: EngineOptions);
|
53
55
|
private init;
|
54
56
|
private render;
|
@@ -3,10 +3,12 @@ import { BlockSchema, NodeSchema, BlockModel, Service, PageFile, BlockFile, Proj
|
|
3
3
|
import { SimulatorEnv } from './simulator';
|
4
4
|
import { Provider, Context } from '@vtj/renderer';
|
5
5
|
import { Designer } from './designer';
|
6
|
+
import { Report } from './report';
|
6
7
|
export declare class Renderer {
|
7
8
|
env: SimulatorEnv;
|
8
9
|
service: Service;
|
9
10
|
provider: Provider;
|
11
|
+
private report;
|
10
12
|
project: ProjectModel | null;
|
11
13
|
designer: Designer | null;
|
12
14
|
app: App | null;
|
@@ -15,7 +17,7 @@ export declare class Renderer {
|
|
15
17
|
private blockChange;
|
16
18
|
context: Context | null;
|
17
19
|
private file?;
|
18
|
-
constructor(env: SimulatorEnv, service: Service, provider: Provider, project?: ProjectModel | null, designer?: Designer | null);
|
20
|
+
constructor(env: SimulatorEnv, service: Service, provider: Provider, report: Report, project?: ProjectModel | null, designer?: Designer | null);
|
19
21
|
private install;
|
20
22
|
createUniApp(platform: PlatformType, file: PageFile | BlockFile, renderer: any): App<any>;
|
21
23
|
createApp(platform: PlatformType, file: PageFile | BlockFile, renderer: any): App<any>;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { Access } from '@vtj/renderer';
|
2
|
+
import { Service } from '@vtj/core';
|
3
|
+
export type ReportType = 'init' | 'online' | 'event' | 'error';
|
4
|
+
export interface ReportData {
|
5
|
+
sessionId?: string;
|
6
|
+
userId?: string;
|
7
|
+
userName?: string;
|
8
|
+
type: ReportType;
|
9
|
+
engineVersion?: string;
|
10
|
+
host?: string;
|
11
|
+
url?: string;
|
12
|
+
referrer?: string;
|
13
|
+
os?: string;
|
14
|
+
osVersion?: string;
|
15
|
+
browser?: string;
|
16
|
+
browserVersion?: string;
|
17
|
+
message?: string;
|
18
|
+
stack?: string;
|
19
|
+
source?: string;
|
20
|
+
}
|
21
|
+
export declare class Report {
|
22
|
+
private remote;
|
23
|
+
private access;
|
24
|
+
private service?;
|
25
|
+
private api;
|
26
|
+
constructor(remote: string, access: Access, service?: Service | undefined);
|
27
|
+
private getSessionId;
|
28
|
+
private send;
|
29
|
+
init(): Promise<void>;
|
30
|
+
online(): Promise<void>;
|
31
|
+
event(message: string): void;
|
32
|
+
error(e: any, source?: any): void;
|
33
|
+
}
|
package/types/version.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/designer
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.11.
|
5
|
+
* @version 0.11.7
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.11.
|
8
|
+
export declare const version = "0.11.7";
|