@knime/scripting-editor 0.0.39 → 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/lib/main.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import OutputConsole from "../src/components/OutputConsole.vue";
|
|
|
4
4
|
import { EditorService } from "../src/editor-service";
|
|
5
5
|
import { type SettingsMenuItem } from "../src/components/SettingsPage.vue";
|
|
6
6
|
import type { NodeSettings, ScriptingServiceType } from "../src/scripting-service";
|
|
7
|
+
import { useEditorStore } from "../src/store/editor";
|
|
7
8
|
declare const getScriptingService: (mock?: Partial<ScriptingServiceType>) => ScriptingServiceType;
|
|
8
|
-
export { ScriptingEditor, CodeEditor, OutputConsole, getScriptingService, EditorService, };
|
|
9
|
+
export { ScriptingEditor, CodeEditor, OutputConsole, getScriptingService, useEditorStore, EditorService, };
|
|
9
10
|
export type { NodeSettings, ScriptingServiceType, SettingsMenuItem };
|
|
@@ -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