@knime/scripting-editor 0.0.58 → 0.0.60

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.
@@ -29,9 +29,13 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
29
29
  toggleExpansion: () => void;
30
30
  setExpanded: (b: boolean) => void;
31
31
  isExpanded: () => any;
32
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
32
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ "input-output-item-clicked": (...args: any[]) => void;
34
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
33
35
  inputOutputItem: InputOutputModel;
34
- }>>>, {}, {}>;
36
+ }>>> & {
37
+ "onInput-output-item-clicked"?: ((...args: any[]) => any) | undefined;
38
+ }, {}, {}>;
35
39
  export default _default;
36
40
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
41
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,6 +1,8 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
2
  "drop-event-handler-created": (dropEventHandler: (payload: DragEvent) => void) => void;
3
+ "input-output-item-insertion": (codeToInsert: string, requiredImport: string | undefined) => void;
3
4
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
5
  "onDrop-event-handler-created"?: ((dropEventHandler: (payload: DragEvent) => void) => any) | undefined;
6
+ "onInput-output-item-insertion"?: ((codeToInsert: string, requiredImport: string | undefined) => any) | undefined;
5
7
  }, {}, {}>;
6
8
  export default _default;
@@ -26,6 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
26
26
  rightPaneMinimumWidthInPixel: () => 0;
27
27
  toSettings: (settings: NodeSettings) => NodeSettings;
28
28
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
+ "input-output-item-insertion": (...args: any[]) => void;
29
30
  "menu-item-clicked": (...args: any[]) => void;
30
31
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
31
32
  fileName: null;
@@ -40,6 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
40
41
  rightPaneMinimumWidthInPixel: () => 0;
41
42
  toSettings: (settings: NodeSettings) => NodeSettings;
42
43
  }>>> & {
44
+ "onInput-output-item-insertion"?: ((...args: any[]) => any) | undefined;
43
45
  "onMenu-item-clicked"?: ((...args: any[]) => any) | undefined;
44
46
  }, {
45
47
  menuItems: MenuItem[];
@@ -33,6 +33,11 @@ export type UseCodeEditorReturn = {
33
33
  * @param text the text to set
34
34
  */
35
35
  setInitialText: (text: string) => void;
36
+ /**
37
+ * Inserts the specified text at the current cursor position in the editor.
38
+ * @param text the text to insert.
39
+ */
40
+ insertText: (text: string) => void;
36
41
  };
37
42
  export type UseDiffEditorParams = ContainerParams & {
38
43
  originalModel: monaco.editor.ITextModel;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.58",
4
+ "version": "0.0.60",
5
5
  "description": "Shared Scripting Editor components for KNIME",
6
6
  "author": "KNIME AG, Zurich, Switzerland",
7
7
  "license": "See the file license.txt",