@knime/scripting-editor 0.0.39 → 0.0.41

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.
@@ -1,9 +1,11 @@
1
1
  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
+ import CompactTabBar from '../src/components/CompactTabBar.vue';
4
5
  import { EditorService } from "../src/editor-service";
5
6
  import { type SettingsMenuItem } from "../src/components/SettingsPage.vue";
6
7
  import type { NodeSettings, ScriptingServiceType } from "../src/scripting-service";
8
+ import { useEditorStore } from "../src/store/editor";
7
9
  declare const getScriptingService: (mock?: Partial<ScriptingServiceType>) => ScriptingServiceType;
8
- export { ScriptingEditor, CodeEditor, OutputConsole, getScriptingService, EditorService, };
10
+ export { ScriptingEditor, CodeEditor, OutputConsole, CompactTabBar, getScriptingService, useEditorStore, EditorService, };
9
11
  export type { NodeSettings, ScriptingServiceType, SettingsMenuItem };
@@ -0,0 +1,43 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ disabled: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ modelValue: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ name: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ possibleValues: {
15
+ type: ArrayConstructor;
16
+ default: () => never[];
17
+ };
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ disabled: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ modelValue: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ name: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ possibleValues: {
32
+ type: ArrayConstructor;
33
+ default: () => never[];
34
+ };
35
+ }>> & {
36
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
37
+ }, {
38
+ disabled: boolean;
39
+ name: string;
40
+ modelValue: string;
41
+ possibleValues: unknown[];
42
+ }, {}>;
43
+ export default _default;
@@ -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;
@@ -0,0 +1,11 @@
1
+ import type { InputOutputModel } from '../components/InputOutputItem.vue';
2
+ /**
3
+ * Stores the current selection of input/output items
4
+ */
5
+ export interface InputOutputSelectionStore {
6
+ selectedItem?: InputOutputModel;
7
+ }
8
+ /**
9
+ * @returns the store that is used to store the current selection for drag/drop of input/output objects into the code editor
10
+ */
11
+ export declare const useInputOutputSelectionStore: () => InputOutputSelectionStore;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.39",
4
+ "version": "0.0.41",
5
5
  "description": "Shared Scripting Editor components for KNIME",
6
6
  "author": "KNIME AG, Zurich, Switzerland",
7
7
  "license": "See the file license.txt",
@@ -1,36 +0,0 @@
1
- import type { InputOutputModel } from "./components/InputOutputItem.vue";
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>;
16
- /**
17
- * Stores the current selection of input/output items
18
- */
19
- export interface InputOutputSelectionStore {
20
- selectedItem?: InputOutputModel;
21
- selectedIndices?: Set<number>;
22
- /**
23
- *
24
- * @param item The InputOutputModel that was clicked on
25
- * @param rangeSelectKeyPressed Whether to do a range selection
26
- * @param multiSelectKeyPressed Whether to do a multi selection
27
- * @param index The index of the subitem that was clicked on, undefined if collapser header is clicked
28
- * @returns
29
- */
30
- handleSelection: (item: InputOutputModel, rangeSelectKeyPressed: boolean, multiSelectKeyPressed: boolean, index?: number) => void;
31
- clearSelection: () => void;
32
- }
33
- /**
34
- * @returns the store that is used to store the current selection for drag/drop of input/output objects into the code editor
35
- */
36
- export declare const useInputOutputSelectionStore: () => InputOutputSelectionStore;