@knime/scripting-editor 0.0.12 → 0.0.13

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.
@@ -0,0 +1,6 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ "accept-suggestion": (value: boolean) => void;
3
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
+ "onAccept-suggestion"?: ((value: boolean) => any) | undefined;
5
+ }, {}, {}>;
6
+ export default _default;
@@ -15,4 +15,11 @@ export declare class EditorService {
15
15
  * Returns null if monaco has not yet been initialized.
16
16
  */
17
17
  getSelectedLines(): string | null;
18
+ /**
19
+ * Set a new script which will replace the full editor content.
20
+ * Can be undone via Ctrl+Z.
21
+ *
22
+ * @param newScript the new script
23
+ */
24
+ setScript(newScript: string): void;
18
25
  }
@@ -26,6 +26,7 @@ declare class ScriptingService {
26
26
  getSelectedLines(): string | null;
27
27
  connectToLanguageServer(): Promise<void>;
28
28
  configureLanguageServer(settings: any): Promise<void>;
29
+ setScript(newScript: string): void;
29
30
  }
30
31
  export type ScriptingServiceType = Pick<ScriptingService, keyof ScriptingService>;
31
32
  declare const getScriptingService: (mock?: ScriptingServiceType) => ScriptingServiceType;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.12",
4
+ "version": "0.0.13",
5
5
  "description": "Shared Scripting Editor components for KNIME",
6
6
  "author": "KNIME AG, Zurich, Switzerland",
7
7
  "license": "See the file license.txt",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@knime/ui-extension-service": "0.16.0",
28
+ "@vueuse/core": "10.4.1",
28
29
  "eslint-import-resolver-typescript": "3.5.5",
29
30
  "monaco-editor": "0.41.0",
30
- "pinia": "2.1.4",
31
31
  "splitpanes": "3.1.5",
32
32
  "vscode-languageserver-protocol": "3.17.3",
33
33
  "vue": "3.x",