@guihz/trading-vue-editor-tes 0.1.75 → 0.1.76
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-Dax2JsYQ.js → parserTccWorker-BZEGONbX.js} +3 -3
- package/lib/assets/{scriptsRunWorker-Dyhnh62s.js → scriptsRunWorker-CMhv6vxF.js} +1 -3
- package/lib/components/diffEditor/index.d.ts +5 -3
- package/lib/components/editor/constants/locals.d.ts +3 -3
- package/lib/trading-vue-editor.es.packages.js +2121 -2115
- package/lib/trading-vue-editor.umd.packages.mjs +24 -24
- package/package.json +1 -1
|
@@ -80405,7 +80405,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${_})
|
|
|
80405
80405
|
}
|
|
80406
80406
|
_getExpressionContext(e) {
|
|
80407
80407
|
const t = [], n = [];
|
|
80408
|
-
return
|
|
80408
|
+
return this._getDependsCode(e, t, n);
|
|
80409
80409
|
}
|
|
80410
80410
|
_getDependsCode(e, t, n) {
|
|
80411
80411
|
const i = [];
|
|
@@ -99238,10 +99238,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${_})
|
|
|
99238
99238
|
_getStmtFuncDepends(e, t, n) {
|
|
99239
99239
|
const i = this._codesCol[0];
|
|
99240
99240
|
for (const s of e) {
|
|
99241
|
-
const o = i.filter((p) => p.
|
|
99241
|
+
const o = i.filter((p) => p.depends.some((b) => b.isFunc && b.name === s.funcName));
|
|
99242
99242
|
for (const p of o)
|
|
99243
99243
|
if (!t.includes(p)) {
|
|
99244
|
-
t.push(p);
|
|
99244
|
+
p.funcName && this._getStmtFuncDepends([p], t, n), t.push(p);
|
|
99245
99245
|
const b = p.depends;
|
|
99246
99246
|
b.length && this._getDependsCode(b, n, t), n.push({
|
|
99247
99247
|
scope: 0,
|
|
@@ -37002,9 +37002,7 @@ ${Mf}`);
|
|
|
37002
37002
|
const p = `${o}--${a}`, b = `${c.length ? i : ""}${t}_${p}`, M = this._getRequestData(e, b);
|
|
37003
37003
|
if (r?.has(b))
|
|
37004
37004
|
return M?.result?.[b];
|
|
37005
|
-
const l = this._parseExprCode(e);
|
|
37006
|
-
console.log("security", l);
|
|
37007
|
-
const u = this._runScriptHandle(l, b, c, Object.assign(M || {}, { interval: a }), !0, "security");
|
|
37005
|
+
const l = this._parseExprCode(e), u = this._runScriptHandle(l, b, c, Object.assign(M || {}, { interval: a }), !0, "security");
|
|
37008
37006
|
return r?.set(b, {
|
|
37009
37007
|
id: b,
|
|
37010
37008
|
isRun: !1,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Theme } from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { Theme } from "@monaco-editor/react";
|
|
2
|
+
import { editor } from "monaco-editor";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import "../../i18n";
|
|
4
5
|
interface IProps {
|
|
5
6
|
height?: string | number;
|
|
6
7
|
width?: string | number;
|
|
@@ -9,6 +10,7 @@ interface IProps {
|
|
|
9
10
|
original?: string;
|
|
10
11
|
renderSideBySide?: boolean;
|
|
11
12
|
version?: number;
|
|
13
|
+
onDidLayoutChange?: (modified: editor.EditorLayoutInfo, original: editor.EditorLayoutInfo) => void;
|
|
12
14
|
}
|
|
13
15
|
declare const TradingDiffEditor: FC<IProps>;
|
|
14
16
|
export default TradingDiffEditor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const LAST_EDITED_SCRIPT = "
|
|
2
|
-
export declare const ORIGINAL_SCRIPT = "
|
|
3
|
-
export declare const CURSOR_POSITION = "
|
|
1
|
+
export declare const LAST_EDITED_SCRIPT = "tv__last_edited_script";
|
|
2
|
+
export declare const ORIGINAL_SCRIPT = "tv__original_script";
|
|
3
|
+
export declare const CURSOR_POSITION = "tv__cursor_position";
|
|
4
4
|
export declare const REMOVE_ACTIONS: string[];
|
|
5
5
|
export declare const DEFAULT_VERSION = 3;
|