@knime/scripting-editor 0.0.24 → 0.0.26
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
|
@@ -3,6 +3,7 @@ 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
5
|
import { getScriptingService } from "../src/scripting-service";
|
|
6
|
+
import { type SettingsMenuItem } from "../src/components/SettingsPage.vue";
|
|
6
7
|
import type { NodeSettings, ScriptingServiceType } from "../src/scripting-service";
|
|
7
8
|
export { ScriptingEditor, CodeEditor, OutputConsole, getScriptingService, EditorService, };
|
|
8
|
-
export type { NodeSettings, ScriptingServiceType };
|
|
9
|
+
export type { NodeSettings, ScriptingServiceType, SettingsMenuItem };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type PropType } from "vue";
|
|
2
|
+
import { type SettingsMenuItem } from "./SettingsPage.vue";
|
|
2
3
|
import type { MenuItem } from "webapps-common/ui/components/MenuItems.vue";
|
|
3
4
|
import type { editor } from "monaco-editor";
|
|
4
5
|
import type { ConsoleHandler } from "./OutputConsole.vue";
|
|
@@ -49,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
50
|
previousPaneSizes: PaneSizes;
|
|
50
51
|
commonMenuItems: MenuItem[];
|
|
51
52
|
editorModel: editor.ITextModel | null;
|
|
53
|
+
showSettingsPage: boolean;
|
|
52
54
|
}, {
|
|
53
55
|
usedMainPaneSize(): number;
|
|
54
56
|
usedHorizontalCodeEditorPaneSize(): number;
|
|
@@ -65,14 +67,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
67
|
editor: editor.IStandaloneCodeEditor;
|
|
66
68
|
editorModel: editor.ITextModel;
|
|
67
69
|
}): void;
|
|
68
|
-
saveSettings():
|
|
70
|
+
saveSettings(): void;
|
|
69
71
|
closeDialog(): void;
|
|
70
72
|
onMenuItemClicked(args: {
|
|
71
73
|
event: Event;
|
|
72
|
-
item:
|
|
74
|
+
item: SettingsMenuItem;
|
|
73
75
|
}): void;
|
|
74
76
|
onConsoleCreated(handler: ConsoleHandler): void;
|
|
75
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("monaco-created" | "menu-item-clicked")[], "monaco-created" | "menu-item-clicked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
77
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("monaco-created" | "menu-item-clicked" | "save-settings")[], "monaco-created" | "menu-item-clicked" | "save-settings", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
78
|
title: {
|
|
77
79
|
type: StringConstructor;
|
|
78
80
|
default: null;
|
|
@@ -113,6 +115,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
115
|
}>> & {
|
|
114
116
|
"onMonaco-created"?: ((...args: any[]) => any) | undefined;
|
|
115
117
|
"onMenu-item-clicked"?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
"onSave-settings"?: ((...args: any[]) => any) | undefined;
|
|
116
119
|
}, {
|
|
117
120
|
title: string;
|
|
118
121
|
language: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MenuItem } from "webapps-common/ui/components/MenuItems.vue";
|
|
2
|
+
export interface SettingsMenuItem extends MenuItem {
|
|
3
|
+
showSettingsPage?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"close-settings-page": () => void;
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
8
|
+
"onClose-settings-page"?: (() => any) | undefined;
|
|
9
|
+
}, {}, {}>, {
|
|
10
|
+
"settings-title"?(_: {}): any;
|
|
11
|
+
"settings-content"?(_: {}): any;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -12,6 +12,13 @@ export declare class MonacoLSPConnection {
|
|
|
12
12
|
*/
|
|
13
13
|
static create(editorModel: editor.ITextModel, reader: MessageReader, writer: MessageWriter): Promise<MonacoLSPConnection>;
|
|
14
14
|
private _connection;
|
|
15
|
+
/**
|
|
16
|
+
* Used to wait for the last change to be sent to the server. Monaco will
|
|
17
|
+
* always call onDidChangeContent first. While we send this change to the
|
|
18
|
+
* language server this promise is pending. Other requests that depend on
|
|
19
|
+
* the latest content must wait for this promise to resolve.
|
|
20
|
+
*/
|
|
21
|
+
private _onChangeLock;
|
|
15
22
|
private constructor();
|
|
16
23
|
/**
|
|
17
24
|
* Change the configuration of the language server.
|
package/package.json
CHANGED