@guihz/trading-vue-editor-tes 0.0.60 → 0.0.62
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/lib/assets/{parserTccWorker-CHJsIhut.js → parserTccWorker-Bw7LmssX.js} +46 -46
- package/lib/assets/{scriptsRunWorker-CWty4DVS.js → scriptsRunWorker-B9aWCoDC.js} +2 -2
- package/lib/components/editor/parseScript/buildInFuncNamespace/input.d.ts +0 -2
- package/lib/components/editor/parseScript/constants.d.ts +1 -0
- package/lib/components/editor/parseScript/parseToJs.d.ts +1 -0
- package/lib/components/editor/parseScript/parseToLibJs.d.ts +1 -0
- package/lib/components/editor/parseScript/visitorParser.d.ts +1 -0
- package/lib/components/editor/type/index.d.ts +1 -0
- package/lib/components/editor/utils/parserTcc.d.ts +29 -0
- package/lib/components/editor/utils/scriptsRunWorker.d.ts +15 -0
- package/lib/trading-vue-editor.js +271 -265
- package/lib/trading-vue-editor.umd.cjs +20 -20
- package/package.json +1 -1
@@ -263,6 +263,7 @@ export default class ParserVisitor extends ParserUtils {
|
|
263
263
|
private _setCopyMethod;
|
264
264
|
private _setFunc;
|
265
265
|
private _setMethod;
|
266
|
+
private _verifyFuncRepeat;
|
266
267
|
private _getMethodTypes;
|
267
268
|
private _globalFuncVerify;
|
268
269
|
private _hasMemberIndexVerify;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { IKeyObjectValue } from '../type';
|
2
|
+
export declare function parseTcc(val: string, hasTranscoding?: boolean): Promise<{
|
3
|
+
errors: any[];
|
4
|
+
functions: {
|
5
|
+
[k: string]: import("../type").IDocValue[];
|
6
|
+
};
|
7
|
+
variables: {
|
8
|
+
[k: string]: import("../type").IDocValue[];
|
9
|
+
};
|
10
|
+
types: {
|
11
|
+
[k: string]: import("../type").IDocValue[];
|
12
|
+
};
|
13
|
+
methods: {
|
14
|
+
[k: string]: import("../type").IDocValue[];
|
15
|
+
};
|
16
|
+
overloadsFuncs: import("../type").IKeyValue[];
|
17
|
+
codeStr: string;
|
18
|
+
preParserCode: string | undefined;
|
19
|
+
}>;
|
20
|
+
export declare function scriptsRun(strJs: string, data: IKeyObjectValue, isNew?: boolean): Promise<{
|
21
|
+
status: number;
|
22
|
+
errors: any;
|
23
|
+
options?: undefined;
|
24
|
+
} | {
|
25
|
+
status: number;
|
26
|
+
options: any;
|
27
|
+
errors?: undefined;
|
28
|
+
}>;
|
29
|
+
export declare function removeScript(id: string): Promise<void>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { IKeyObjectValue } from '../type';
|
2
|
+
export declare function runScript(strJs: string, options: IKeyObjectValue, isNew: boolean): {
|
3
|
+
status: number;
|
4
|
+
errors: any;
|
5
|
+
options?: undefined;
|
6
|
+
} | {
|
7
|
+
status: number;
|
8
|
+
options: any;
|
9
|
+
errors?: undefined;
|
10
|
+
};
|
11
|
+
export declare function removeScript(id: string): void;
|
12
|
+
export interface IScriptWorker {
|
13
|
+
runScript: typeof runScript;
|
14
|
+
removeScript: typeof removeScript;
|
15
|
+
}
|