@guihz/trading-vue-editor-tes 0.0.45 → 0.0.47

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: monaco.Uri) => void;
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, Uri, editor } from "monaco-editor";
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: Uri) => void): void;
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, _: Uri, selectionOrPosition: IRange): boolean;
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;
@@ -3,6 +3,7 @@ import { IKeyObjectValue } from "../../editor/type";
3
3
  interface IProps {
4
4
  group: IKeyObjectValue | null;
5
5
  itemKey: string;
6
+ currentIndex: number;
6
7
  onItemClick: (key: string) => void;
7
8
  }
8
9
  declare const ContentItem: FC<IProps>;
@@ -4,6 +4,7 @@ import { Theme } from "@monaco-editor/react";
4
4
  interface IProps {
5
5
  theme?: Theme;
6
6
  currentKey?: string;
7
+ currentIndex?: number;
7
8
  }
8
9
  declare const ReferenceManual: FC<IProps>;
9
10
  export default ReferenceManual;