@guihz/trading-vue-editor-tes 0.0.45 → 0.0.47
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/components/editor/index.d.ts +1 -2
- package/lib/components/editor/utils/initEditor.d.ts +2 -2
- package/lib/components/editor/utils/suggestions.d.ts +2 -2
- package/lib/components/referenceManual/components/ContentItem.d.ts +1 -0
- package/lib/components/referenceManual/index.d.ts +1 -0
- package/lib/trading-vue-editor.js +2376 -2352
- package/lib/trading-vue-editor.umd.cjs +35 -35
- package/package.json +1 -1
@@ -1,7 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Theme } from "@monaco-editor/react";
|
3
3
|
import { IPosition, editor } from "monaco-editor";
|
4
|
-
import * as monaco from "monaco-editor";
|
5
4
|
import "./style.css";
|
6
5
|
import { IKeyObjectValue } from "./type";
|
7
6
|
interface IProps {
|
@@ -17,7 +16,7 @@ interface IProps {
|
|
17
16
|
onChange?: (value: string) => void;
|
18
17
|
onDeclareConfigChange?: (value: IKeyObjectValue) => void;
|
19
18
|
onActionTrigger?: (actionId: string) => void;
|
20
|
-
onLinkOpen?: (source:
|
19
|
+
onLinkOpen?: (source: string, index?: number) => void;
|
21
20
|
}
|
22
21
|
export interface IRefs {
|
23
22
|
setOriginalScript: (val: string) => void;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Monaco } from "@monaco-editor/react";
|
2
|
-
import { IPosition,
|
2
|
+
import { IPosition, editor } from "monaco-editor";
|
3
3
|
export default class InitEditor {
|
4
4
|
private _editor;
|
5
5
|
private _monaco;
|
@@ -9,7 +9,7 @@ export default class InitEditor {
|
|
9
9
|
private _onActionTrigger?;
|
10
10
|
private _onLinkOpen?;
|
11
11
|
constructor(editor: editor.IStandaloneCodeEditor, monaco: Monaco, onActionTrigger?: (actionId: string) => void);
|
12
|
-
addLinkOpenFunc(onLinkOpen: (source:
|
12
|
+
addLinkOpenFunc(onLinkOpen: (source: string, index?: number) => void): void;
|
13
13
|
updateActionTrigger(onActionTrigger?: (actionId: string) => void): void;
|
14
14
|
setModelMarkers(markers: editor.IMarkerData[]): void;
|
15
15
|
addDiffDecorations(): void;
|
@@ -7,7 +7,7 @@ export declare function provideDocumentColors(model: editor.ITextModel): languag
|
|
7
7
|
export declare function provideColorPresentations(model: editor.ITextModel, colorInfo: languages.IColorInformation): {
|
8
8
|
label: string;
|
9
9
|
}[];
|
10
|
-
export declare function openCodeEditor(source: editor.ICodeEditor,
|
10
|
+
export declare function openCodeEditor(source: editor.ICodeEditor, selectionOrPosition: IRange): import("../type").IKeyObjectValue | undefined;
|
11
11
|
export declare function provideDefinition(model: editor.ITextModel, position: Position): {
|
12
12
|
uri: Uri;
|
13
13
|
range: {
|
@@ -16,4 +16,4 @@ export declare function provideDefinition(model: editor.ITextModel, position: Po
|
|
16
16
|
startColumn: number;
|
17
17
|
endColumn: number;
|
18
18
|
};
|
19
|
-
};
|
19
|
+
} | null;
|