@guihz/trading-vue-editor-tes 0.0.25 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/assets/{parserTccWorker-Tgc_MECY.js → parserTccWorker-CZf29GR5.js} +16 -16
- package/lib/assets/{scriptsRunWorker-COxpWbV9.js → scriptsRunWorker-BJ1wp5To.js} +14 -14
- package/lib/components/editor/constants/locals.d.ts +1 -0
- package/lib/components/editor/index.d.ts +1 -0
- package/lib/components/editor/tokenizer/config.d.ts +5 -0
- package/lib/components/editor/utils/initEditor.d.ts +3 -2
- package/lib/components/editor/utils/tools.d.ts +2 -0
- package/lib/packages/index.d.ts +2 -1
- package/lib/trading-vue-editor.js +2305 -2268
- package/lib/trading-vue-editor.umd.cjs +31 -31
- package/package.json +1 -1
- package/lib/components/editor/utils/test.d.ts +0 -22
@@ -13,6 +13,7 @@ interface IProps {
|
|
13
13
|
onCursorPositionChange?: (position: IPosition) => void;
|
14
14
|
onChange?: (value: string) => void;
|
15
15
|
onDeclareConfigChange?: (value: IKeyObjectValue) => void;
|
16
|
+
onActionTrigger?: (actionId: string) => void;
|
16
17
|
}
|
17
18
|
export interface IRefs {
|
18
19
|
saveScript: () => void;
|
@@ -5,7 +5,8 @@ export default class InitEditor {
|
|
5
5
|
private _monaco;
|
6
6
|
private _decorations?;
|
7
7
|
private _changPositionListener?;
|
8
|
-
|
8
|
+
private _onActionTrigger?;
|
9
|
+
constructor(editor: editor.IStandaloneCodeEditor, monaco: Monaco, onActionTrigger?: (actionId: string) => void);
|
9
10
|
setModelMarkers(markers: editor.IMarkerData[]): void;
|
10
11
|
addDiffDecorations(): void;
|
11
12
|
removeDiffDecorations(): void;
|
@@ -23,7 +24,7 @@ export default class InitEditor {
|
|
23
24
|
private _setOptions;
|
24
25
|
private _addCommands;
|
25
26
|
private _addActions;
|
27
|
+
openFind(): void;
|
26
28
|
gotoLine(): void;
|
27
29
|
onChangeCursorPosition(_callback?: (postion: IPosition) => void): void;
|
28
|
-
private _addListening;
|
29
30
|
}
|
package/lib/packages/index.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
export { Actions } from '../components/editor/tokenizer/config';
|
1
2
|
export { default as TradingVueEditor } from '../components/editor/index';
|
2
3
|
export { default as TradingVueDiffEditor } from '../components/diffEditor/index';
|
3
4
|
export type { IRefs as IEditorRefs } from '../components/editor/index';
|
4
|
-
export { parseTcc, scriptsRun } from '../components/editor/utils/parserTcc';
|
5
|
+
export { parseTcc, scriptsRun, removeScript } from '../components/editor/utils/parserTcc';
|
5
6
|
export type { IError, IPosition } from '../components/editor/parseScript/type';
|
6
7
|
export { VMarkerSeverity } from '../components/editor/parseScript/type';
|