@knime/scripting-editor 0.0.86 → 0.0.87

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,11 +1,26 @@
1
1
  import { Component } from 'vue';
2
2
  export type SubItem<PropType extends Record<string, any>> = {
3
3
  name: string;
4
+ /**
5
+ * The type of the subItem. Can be a string, in which case that is displayed as
6
+ * the type, or a component with optional props, in which case the component is
7
+ * responsible for displaying the type.
8
+ */
4
9
  type: string | {
5
10
  component: Component;
6
11
  props?: PropType;
7
12
  };
13
+ /**
14
+ * Whether the subItem is supported in the current editor or not. If not, it is
15
+ * displayed differently and does not support insertion.
16
+ */
8
17
  supported: boolean;
18
+ /**
19
+ * A text that is provided to the template when this sub item is inserted into
20
+ * the code. Note that this is optional. The template also has access to the name
21
+ * which can be enough.
22
+ */
23
+ insertionText?: string | null;
9
24
  };
10
25
  export type InputOutputModel = {
11
26
  name: string;
@@ -34,6 +49,9 @@ export type InputOutputModel = {
34
49
  * Whether multi selection of subItems is supported or not
35
50
  */
36
51
  multiSelection?: boolean;
52
+ /**
53
+ * List of SubItems for this I/O-Object
54
+ */
37
55
  subItems?: SubItem<Record<string, any>>[];
38
56
  };
39
57
  export declare const INPUT_OUTPUT_DRAG_EVENT_ID = "input_output_drag_event";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.86",
4
+ "version": "0.0.87",
5
5
  "description": "Shared Scripting Editor components for KNIME",
6
6
  "author": "KNIME AG, Zurich, Switzerland",
7
7
  "license": "See the file license.txt",