@knime/scripting-editor 0.0.83 → 0.0.85

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,3 +1,12 @@
1
+ import { Component } from 'vue';
2
+ export type SubItem<PropType extends Record<string, any>> = {
3
+ name: string;
4
+ type: string | {
5
+ component: Component;
6
+ props?: PropType;
7
+ };
8
+ supported: boolean;
9
+ };
1
10
  export type InputOutputModel = {
2
11
  name: string;
3
12
  /**
@@ -25,11 +34,7 @@ export type InputOutputModel = {
25
34
  * Whether multi selection of subItems is supported or not
26
35
  */
27
36
  multiSelection?: boolean;
28
- subItems?: {
29
- name: string;
30
- type: string;
31
- supported: boolean;
32
- }[];
37
+ subItems?: SubItem<Record<string, any>>[];
33
38
  };
34
39
  export declare const INPUT_OUTPUT_DRAG_EVENT_ID = "input_output_drag_event";
35
40
  export declare const COLUMN_INSERTION_EVENT = "columnInsertion";
@@ -1,8 +1,36 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ import { InputOutputModel } from './InputOutputItem.vue';
2
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
+ inputOutputItems: InputOutputModel[];
4
+ }>, {
5
+ inputOutputItems: () => never[];
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
7
  "drop-event-handler-created": (dropEventHandler: (payload: DragEvent) => void) => void;
3
8
  "input-output-item-insertion": (codeToInsert: string, requiredImport: string | undefined) => void;
4
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
9
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
10
+ inputOutputItems: InputOutputModel[];
11
+ }>, {
12
+ inputOutputItems: () => never[];
13
+ }>>> & {
5
14
  "onDrop-event-handler-created"?: ((dropEventHandler: (payload: DragEvent) => void) => any) | undefined;
6
15
  "onInput-output-item-insertion"?: ((codeToInsert: string, requiredImport: string | undefined) => any) | undefined;
7
- }, {}, {}>;
16
+ }, {
17
+ inputOutputItems: InputOutputModel[];
18
+ }, {}>;
8
19
  export default _default;
20
+ type __VLS_WithDefaults<P, D> = {
21
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
22
+ default: D[K];
23
+ }> : P[K];
24
+ };
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToOption<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
34
+ type __VLS_PrettifyLocal<T> = {
35
+ [K in keyof T]: T[K];
36
+ } & {};
@@ -1,6 +1,9 @@
1
- type SlottedTab = {
1
+ export type BottomPaneTabSlotName = `bottomPaneTabSlot:${string}`;
2
+ export type BottomPaneTabControlsSlotName = `bottomPaneControlsTabSlot:${string}`;
3
+ export type SlottedTab = {
2
4
  label: string;
3
- value: string;
5
+ slotName: BottomPaneTabSlotName;
6
+ associatedControlsSlotName?: BottomPaneTabControlsSlotName;
4
7
  };
5
8
  type PropsType = {
6
9
  slottedTabs: SlottedTab[];
@@ -10,10 +13,10 @@ type __VLS_PublicProps = {
10
13
  modelValue?: string;
11
14
  } & typeof __VLS_typeProps;
12
15
  declare function __VLS_template(): {
13
- slots: Partial<Record<string, (_: {
16
+ slots: Partial<Record<`bottomPaneControlsTabSlot:${string}`, (_: {}) => any>> & Partial<Record<`bottomPaneTabSlot:${string}`, (_: {
14
17
  grabFocus: () => void;
15
18
  }) => any>> & {
16
- "console-status"?(_: {}): any;
19
+ "status-label"?(_: {}): any;
17
20
  };
18
21
  refs: {};
19
22
  attrs: Partial<{}>;
@@ -1,5 +1,4 @@
1
- export declare const createDragGhost: ({ width, elements, numSelectedItems, font, }: {
2
- width: string;
1
+ export declare const createDragGhost: ({ elements, numSelectedItems, font, }: {
3
2
  elements: {
4
3
  text: string;
5
4
  }[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.83",
4
+ "version": "0.0.85",
5
5
  "description": "Shared Scripting Editor components for KNIME",
6
6
  "author": "KNIME AG, Zurich, Switzerland",
7
7
  "license": "See the file license.txt",
@@ -30,12 +30,12 @@
30
30
  "@knime/ui-extension-renderer": "^1.1.13",
31
31
  "@knime/utils": "^1.0.14",
32
32
  "@vueuse/core": "10.09.0",
33
+ "@xterm/addon-fit": "^0.10.0",
34
+ "@xterm/addon-unicode11": "^0.8.0",
35
+ "@xterm/xterm": "^5.5.0",
33
36
  "handlebars": "4.7.8",
34
37
  "splitpanes": "3.1.5",
35
- "vscode-languageserver-protocol": "3.17.5",
36
- "xterm": "5.3.0",
37
- "xterm-addon-fit": "0.8.0",
38
- "xterm-addon-unicode11": "0.6.0"
38
+ "vscode-languageserver-protocol": "3.17.5"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@knime/eslint-config": "8.1.0",
@@ -70,9 +70,9 @@
70
70
  "vue-tsc": "2.1.6"
71
71
  },
72
72
  "peerDependencies": {
73
+ "@knime/ui-extension-service": "0.39.0",
73
74
  "monaco-editor": "0.45.x",
74
- "vue": "3.4.27",
75
- "@knime/ui-extension-service": "0.39.0"
75
+ "vue": "3.4.27"
76
76
  },
77
77
  "files": [
78
78
  "dist"