@knime/scripting-editor 0.0.38 → 0.0.40
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/dist/knime-scripting-editor.js +7999 -8017
- package/dist/lib/main.d.ts +3 -2
- package/dist/src/scripting-service.d.ts +5 -3
- package/dist/src/store/ai-bar.d.ts +14 -0
- package/dist/src/store/editor.d.ts +8 -0
- package/dist/src/{store.d.ts → store/io-selection.d.ts} +1 -15
- package/package.json +1 -1
package/dist/lib/main.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import ScriptingEditor from "../src/components/ScriptingEditor.vue";
|
|
|
2
2
|
import CodeEditor from "../src/components/CodeEditor.vue";
|
|
3
3
|
import OutputConsole from "../src/components/OutputConsole.vue";
|
|
4
4
|
import { EditorService } from "../src/editor-service";
|
|
5
|
-
import { getScriptingService } from "../src/scripting-service";
|
|
6
5
|
import { type SettingsMenuItem } from "../src/components/SettingsPage.vue";
|
|
7
6
|
import type { NodeSettings, ScriptingServiceType } from "../src/scripting-service";
|
|
8
|
-
|
|
7
|
+
import { useEditorStore } from "../src/store/editor";
|
|
8
|
+
declare const getScriptingService: (mock?: Partial<ScriptingServiceType>) => ScriptingServiceType;
|
|
9
|
+
export { ScriptingEditor, CodeEditor, OutputConsole, getScriptingService, useEditorStore, EditorService, };
|
|
9
10
|
export type { NodeSettings, ScriptingServiceType, SettingsMenuItem };
|
|
@@ -12,7 +12,7 @@ declare class ScriptingService {
|
|
|
12
12
|
private _runEventPoller;
|
|
13
13
|
private _editorService;
|
|
14
14
|
private _monacoLSPConnection;
|
|
15
|
-
|
|
15
|
+
protected _clearConsoleCallback?: Function;
|
|
16
16
|
constructor();
|
|
17
17
|
private eventPoller;
|
|
18
18
|
stopEventPoller(): void;
|
|
@@ -37,9 +37,11 @@ declare class ScriptingService {
|
|
|
37
37
|
getFlowVariableInputs(): Promise<InputOutputModel>;
|
|
38
38
|
getInputObjects(): Promise<InputOutputModel[]>;
|
|
39
39
|
getOutputObjects(): Promise<InputOutputModel[]>;
|
|
40
|
-
initClearConsoleCallback(clearConsoleCallback: () => void): void;
|
|
41
40
|
clearConsole(): void;
|
|
42
41
|
}
|
|
42
|
+
export declare class ScriptingServiceInternal extends ScriptingService {
|
|
43
|
+
initClearConsoleCallback(clearConsoleCallback: () => void): void;
|
|
44
|
+
}
|
|
43
45
|
export type ScriptingServiceType = Pick<ScriptingService, keyof ScriptingService>;
|
|
44
|
-
declare const getScriptingService: (mock?: ScriptingServiceType) =>
|
|
46
|
+
declare const getScriptingService: (mock?: Partial<ScriptingServiceType>) => ScriptingServiceInternal;
|
|
45
47
|
export { getScriptingService };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Message {
|
|
2
|
+
role: "reply" | "request";
|
|
3
|
+
content: string;
|
|
4
|
+
}
|
|
5
|
+
export type PromptResponse = {
|
|
6
|
+
suggestedCode: string;
|
|
7
|
+
message: Message;
|
|
8
|
+
};
|
|
9
|
+
export type PromptResponseStore = {
|
|
10
|
+
promptResponse?: PromptResponse;
|
|
11
|
+
};
|
|
12
|
+
export declare const usePromptResponseStore: () => PromptResponseStore;
|
|
13
|
+
export declare const clearPromptResponseStore: () => void;
|
|
14
|
+
export declare const showDisclaimer: import("vue").Ref<boolean>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as monaco from "monaco-editor";
|
|
2
|
+
export declare const useEditorStore: () => {
|
|
3
|
+
selection: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const initEditorStore: ({ editor, editorModel, }: {
|
|
6
|
+
editor: monaco.editor.IStandaloneCodeEditor;
|
|
7
|
+
editorModel: monaco.editor.ITextModel;
|
|
8
|
+
}) => void;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import type { InputOutputModel } from
|
|
2
|
-
export interface Message {
|
|
3
|
-
role: "reply" | "request";
|
|
4
|
-
content: string;
|
|
5
|
-
}
|
|
6
|
-
export type PromptResponse = {
|
|
7
|
-
suggestedCode: string;
|
|
8
|
-
message: Message;
|
|
9
|
-
};
|
|
10
|
-
export type PromptResponseStore = {
|
|
11
|
-
promptResponse?: PromptResponse;
|
|
12
|
-
};
|
|
13
|
-
export declare const usePromptResponseStore: () => PromptResponseStore;
|
|
14
|
-
export declare const clearPromptResponseStore: () => void;
|
|
15
|
-
export declare const showDisclaimer: import("vue").Ref<boolean>;
|
|
1
|
+
import type { InputOutputModel } from '../components/InputOutputItem.vue';
|
|
16
2
|
/**
|
|
17
3
|
* Stores the current selection of input/output items
|
|
18
4
|
*/
|
package/package.json
CHANGED