@guihz/trading-vue-editor-tes 0.1.74 → 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-Cr_kCJPf.js → parserTccWorker-BZEGONbX.js} +4 -4
- 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 +2120 -2114
- package/lib/trading-vue-editor.umd.packages.mjs +21 -21
- package/package.json +1 -1
|
@@ -80434,10 +80434,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${_})
|
|
|
80434
80434
|
_getStmtFuncDepends(e, t, n) {
|
|
80435
80435
|
const i = this._codesCol[0];
|
|
80436
80436
|
for (const s of e) {
|
|
80437
|
-
const o = i.filter((p) => p.
|
|
80437
|
+
const o = i.filter((p) => p.depends.some((b) => b.isFunc && b.name === s.funcName));
|
|
80438
80438
|
for (const p of o)
|
|
80439
80439
|
if (!t.includes(p)) {
|
|
80440
|
-
t.push(p);
|
|
80440
|
+
p.funcName && this._getStmtFuncDepends([p], t, n), t.push(p);
|
|
80441
80441
|
const b = p.depends;
|
|
80442
80442
|
b.length && this._getDependsCode(b, n, t), n.push({
|
|
80443
80443
|
scope: 0,
|
|
@@ -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,
|
|
@@ -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;
|