@knime/scripting-editor 0.0.80 → 0.0.82

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.
Files changed (55) hide show
  1. package/dist/initial-data-service-browser-mock.js +22 -10
  2. package/dist/lib/main.d.ts +2 -2
  3. package/dist/main.js +11320 -11298
  4. package/dist/node_modules/@knime/components/src/components/Buttons/Button.vue.d.ts +131 -0
  5. package/dist/node_modules/@knime/components/src/components/Buttons/PlusButton.vue.d.ts +28 -0
  6. package/dist/node_modules/@knime/components/src/components/Buttons/SplitButton.vue.d.ts +9 -0
  7. package/dist/node_modules/@knime/components/src/components/Carousel/Carousel.vue.d.ts +22 -0
  8. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorer.vue.d.ts +216 -0
  9. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorerContextMenu.vue.d.ts +40 -0
  10. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorerItem.vue.d.ts +78 -0
  11. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorerItemBack.vue.d.ts +12 -0
  12. package/dist/node_modules/@knime/components/src/components/FileExplorer/components/FileExplorerItemBase.vue.d.ts +20 -0
  13. package/dist/node_modules/@knime/components/src/components/LinkList/LinkList.vue.d.ts +27 -0
  14. package/dist/node_modules/@knime/components/src/components/Modal/Modal.vue.d.ts +66 -0
  15. package/dist/node_modules/@knime/components/src/components/Pill/Pill.vue.d.ts +36 -0
  16. package/dist/node_modules/@knime/components/src/components/SubMenu/SubMenu.vue.d.ts +199 -0
  17. package/dist/node_modules/@knime/components/src/components/Tag/Tag.vue.d.ts +45 -0
  18. package/dist/node_modules/@knime/components/src/components/Tag/TagList.vue.d.ts +82 -0
  19. package/dist/node_modules/@knime/components/src/components/Toast/components/Toast.vue.d.ts +51 -0
  20. package/dist/node_modules/@knime/components/src/components/Toast/components/ToastButton.vue.d.ts +27 -0
  21. package/dist/node_modules/@knime/components/src/components/Toast/components/ToastStack.vue.d.ts +30 -0
  22. package/dist/node_modules/@knime/components/src/components/base/Button/BaseButton.vue.d.ts +90 -0
  23. package/dist/node_modules/@knime/components/src/components/base/MenuItem/BaseMenuItem.vue.d.ts +28 -0
  24. package/dist/node_modules/@knime/components/src/components/base/MenuItem/BaseMenuItemText.vue.d.ts +19 -0
  25. package/dist/node_modules/@knime/components/src/components/base/MenuItem/BaseMenuItems.vue.d.ts +123 -0
  26. package/dist/node_modules/@knime/components/src/components/base/MenuItem/MenuItems.vue.d.ts +96 -0
  27. package/dist/node_modules/@knime/components/src/components/base/Modal/BaseModal.vue.d.ts +66 -0
  28. package/dist/node_modules/@knime/components/src/components/forms/ComboBox/ComboBox.vue.d.ts +150 -0
  29. package/dist/node_modules/@knime/components/src/components/forms/Dropdown/Dropdown.vue.d.ts +203 -0
  30. package/dist/node_modules/@knime/components/src/components/forms/MultiModeTwinlist/MultiModeTwinlist.vue.d.ts +299 -0
  31. package/dist/node_modules/@knime/components/src/components/forms/MultiselectListBox/MultiselectListBox.vue.d.ts +279 -0
  32. package/dist/node_modules/@knime/components/src/components/forms/NumberInput/NumberInput.vue.d.ts +166 -0
  33. package/dist/node_modules/@knime/components/src/components/forms/QuantityInput/QuantityInput.vue.d.ts +45 -0
  34. package/dist/node_modules/@knime/components/src/components/forms/RadioButtons/BaseRadioButtons.vue.d.ts +66 -0
  35. package/dist/node_modules/@knime/components/src/components/forms/SearchableCheckboxes/SearchableCheckboxes.vue.d.ts +267 -0
  36. package/dist/node_modules/@knime/components/src/components/forms/SearchableList/SearchableList.vue.d.ts +285 -0
  37. package/dist/node_modules/@knime/components/src/components/forms/SortList/SortList.vue.d.ts +26 -0
  38. package/dist/node_modules/@knime/components/src/components/forms/Twinlist/Twinlist.vue.d.ts +381 -0
  39. package/dist/node_modules/@knime/components/src/components/forms/ValueSwitch/ValueSwitch.vue.d.ts +65 -0
  40. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtIFrame.vue.d.ts +27 -0
  41. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtShadowApp.vue.d.ts +41 -0
  42. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtension.vue.d.ts +49 -0
  43. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtensionAlerts.vue.d.ts +34 -0
  44. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtensionErrorOverlay.vue.d.ts +41 -0
  45. package/dist/node_modules/@knime/ui-extension-renderer/src/UIExtensionWarningButton.vue.d.ts +34 -0
  46. package/dist/src/components/CodeEditorControlBar.vue.d.ts +2 -20
  47. package/dist/src/components/InfinityLoadingBar.vue.d.ts +2 -0
  48. package/dist/src/components/ai-assistant/AiButton.vue.d.ts +22 -0
  49. package/dist/src/components/ai-assistant/AiDisclaimer.vue.d.ts +10 -0
  50. package/dist/src/components/ai-assistant/AiPopupContent.vue.d.ts +10 -0
  51. package/dist/src/editor.d.ts +2 -1
  52. package/dist/src/initial-data-service-browser-mock.d.ts +2 -1
  53. package/dist/src/initial-data-service.d.ts +14 -1
  54. package/package.json +2 -2
  55. package/dist/src/components/ai-assistant/AiBar.vue.d.ts +0 -40
@@ -0,0 +1,65 @@
1
+ import { PropType } from 'vue';
2
+ import { BaseRadioButtonItem } from '../RadioButtons/BaseRadioButtons.vue';
3
+
4
+ export type ValueSwitchItem = BaseRadioButtonItem;
5
+ declare const _default: import('vue').DefineComponent<{
6
+ id: {
7
+ type: StringConstructor;
8
+ default: null;
9
+ };
10
+ modelValue: {
11
+ type: StringConstructor;
12
+ default: null;
13
+ };
14
+ name: {
15
+ type: StringConstructor;
16
+ default: null;
17
+ };
18
+ disabled: {
19
+ default: boolean;
20
+ type: BooleanConstructor;
21
+ };
22
+ possibleValues: {
23
+ type: PropType<BaseRadioButtonItem[]>;
24
+ default: () => never[];
25
+ };
26
+ compact: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ }, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
+ id: {
32
+ type: StringConstructor;
33
+ default: null;
34
+ };
35
+ modelValue: {
36
+ type: StringConstructor;
37
+ default: null;
38
+ };
39
+ name: {
40
+ type: StringConstructor;
41
+ default: null;
42
+ };
43
+ disabled: {
44
+ default: boolean;
45
+ type: BooleanConstructor;
46
+ };
47
+ possibleValues: {
48
+ type: PropType<BaseRadioButtonItem[]>;
49
+ default: () => never[];
50
+ };
51
+ compact: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ }>> & {
56
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
57
+ }, {
58
+ disabled: boolean;
59
+ id: string;
60
+ name: string;
61
+ compact: boolean;
62
+ possibleValues: BaseRadioButtonItem[];
63
+ modelValue: string;
64
+ }, {}>;
65
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { UIExtensionPushEvents, UIExtensionServiceAPILayer } from '@knime/ui-extension-service';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ resourceLocation: string;
5
+ apiLayer: UIExtensionServiceAPILayer;
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ serviceCreated: (service: {
8
+ dispatchPushEvent: (event: UIExtensionPushEvents.PushEvent<any, any>) => void;
9
+ }) => void;
10
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ resourceLocation: string;
12
+ apiLayer: UIExtensionServiceAPILayer;
13
+ }>>> & {
14
+ onServiceCreated?: ((service: {
15
+ dispatchPushEvent: (event: UIExtensionPushEvents.PushEvent<any, any>) => void;
16
+ }) => any) | undefined;
17
+ }, {}, {}>;
18
+ export default _default;
19
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: import('vue').PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
@@ -0,0 +1,41 @@
1
+ import { UIExtensionServiceAPILayer, UIExtensionPushEvents } from '@knime/ui-extension-service';
2
+ import { StyleValue } from 'vue';
3
+
4
+ interface Props {
5
+ resourceLocation: string;
6
+ apiLayer: UIExtensionServiceAPILayer;
7
+ style?: StyleValue;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ style: null;
11
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ serviceCreated: (_service: {
13
+ dispatchPushEvent: (event: UIExtensionPushEvents.PushEvent<any, any>) => void;
14
+ }) => void;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
16
+ style: null;
17
+ }>>> & {
18
+ onServiceCreated?: ((_service: {
19
+ dispatchPushEvent: (event: UIExtensionPushEvents.PushEvent<any, any>) => void;
20
+ }) => any) | undefined;
21
+ }, {
22
+ style: string | false | import('vue').CSSProperties | StyleValue[] | null;
23
+ }, {}>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<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_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -0,0 +1,49 @@
1
+ import { StyleValue } from 'vue';
2
+ import { UIExtensionAPILayer } from './types/UIExtensionAPILayer';
3
+ import { ExtensionConfig } from './types/ExtensionConfig';
4
+
5
+ /**
6
+ * Wrapper for all UIExtensions. Determines the type of component to render (either native/Vue-based or iframe-based).
7
+ * Also detects changes to it's configuration and increments a local counter to help with re-renders of iframe-based
8
+ * components.
9
+ */
10
+ type Props = {
11
+ apiLayer: UIExtensionAPILayer;
12
+ extensionConfig: ExtensionConfig;
13
+ resourceLocation: string;
14
+ /**
15
+ * See ExtensionConfig.initialSharedData
16
+ */
17
+ initialSharedData?: any;
18
+ isReporting?: boolean;
19
+ isDialogLayout?: boolean;
20
+ shadowAppStyle?: StyleValue | null;
21
+ };
22
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
23
+ initialSharedData: null;
24
+ shadowAppStyle: null;
25
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
26
+ initialSharedData: null;
27
+ shadowAppStyle: null;
28
+ }>>>, {
29
+ initialSharedData: any;
30
+ shadowAppStyle: string | false | import('vue').CSSProperties | StyleValue[] | null;
31
+ }, {}>;
32
+ export default _default;
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToRuntimeProps<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
@@ -0,0 +1,34 @@
1
+ import { Alert } from '@knime/ui-extension-service';
2
+
3
+ type Props = {
4
+ alert?: Alert | null;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ alert: null;
8
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ display: () => void;
10
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ alert: null;
12
+ }>>> & {
13
+ onDisplay?: (() => any) | undefined;
14
+ }, {
15
+ alert: Alert | null;
16
+ }, {}>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,41 @@
1
+ import { Alert } from '@knime/ui-extension-service';
2
+
3
+ /**
4
+ * This is the local alert/error management component created for use with the NodeViewIFrame. Its main use is to
5
+ * replace the native browser `alert`. It is composed of a full screen overlay which blocks mouse events and an
6
+ * icon with a tooltip to show more details. When active, this component uses a @see Popover to cover 100% of the
7
+ * parent container. If parent container lacks dimensions, you must assign a min-width/height conditionally when
8
+ * this component is active for proper display.
9
+ */
10
+ type Props = {
11
+ alert?: Alert | null;
12
+ };
13
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ alert: null;
15
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ display: () => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ alert: null;
19
+ }>>> & {
20
+ onDisplay?: (() => any) | undefined;
21
+ }, {
22
+ alert: Alert | null;
23
+ }, {}>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<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_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -0,0 +1,34 @@
1
+ import { Alert } from '@knime/ui-extension-service';
2
+
3
+ type Props = {
4
+ alert?: Alert | null;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ alert: null;
8
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ display: () => void;
10
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ alert: null;
12
+ }>>> & {
13
+ onDisplay?: (() => any) | undefined;
14
+ }, {
15
+ alert: Alert | null;
16
+ }, {}>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -4,15 +4,7 @@ import { PaneSizes } from './utils/paneSizes';
4
4
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
5
5
  currentPaneSizes: {
6
6
  type: PropType<PaneSizes>;
7
- default: () => {
8
- left: number;
9
- right: number;
10
- bottom: number;
11
- };
12
- };
13
- language: {
14
- type: StringConstructor;
15
- default: null;
7
+ required: true;
16
8
  };
17
9
  showButtonText: {
18
10
  type: BooleanConstructor;
@@ -21,23 +13,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
21
13
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
14
  currentPaneSizes: {
23
15
  type: PropType<PaneSizes>;
24
- default: () => {
25
- left: number;
26
- right: number;
27
- bottom: number;
28
- };
29
- };
30
- language: {
31
- type: StringConstructor;
32
- default: null;
16
+ required: true;
33
17
  };
34
18
  showButtonText: {
35
19
  type: BooleanConstructor;
36
20
  default: boolean;
37
21
  };
38
22
  }>>, {
39
- language: string;
40
- currentPaneSizes: PaneSizes;
41
23
  showButtonText: boolean;
42
24
  }, {}>, {
43
25
  controls?(_: {}): any;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { PaneSizes } from '../utils/paneSizes';
2
+
3
+ /**
4
+ * Component that includes the button that pops up the AI, and also holds the AI popup container.
5
+ */
6
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
7
+ currentPaneSizes: PaneSizes;
8
+ showButtonText: boolean;
9
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
+ currentPaneSizes: PaneSizes;
11
+ showButtonText: boolean;
12
+ }>>>, {}, {}>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Component that contains the KAi disclaimer text and a button to accept it.
3
+ * Saves quite a lot of lines of code in the AiPopupContent!
4
+ */
5
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "accept-disclaimer": (...args: any[]) => void;
7
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
8
+ "onAccept-disclaimer"?: ((...args: any[]) => any) | undefined;
9
+ }, {}, {}>;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Content for the popup that contains the prompt for the KAi, as well as holding the components
3
+ * that show the diff and disclaimer.
4
+ */
5
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "request-close": (...args: any[]) => void;
7
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
8
+ "onRequest-close"?: ((...args: any[]) => any) | undefined;
9
+ }, {}, {}>;
10
+ export default _default;
@@ -6,7 +6,7 @@ type ContainerParams = {
6
6
  container: Ref<HTMLDivElement | undefined>;
7
7
  };
8
8
  export type UseCodeEditorParams = ContainerParams & {
9
- hideOverviewRulerLanes?: boolean;
9
+ extraEditorOptions?: monaco.editor.IStandaloneEditorConstructionOptions;
10
10
  } & ({
11
11
  language: string;
12
12
  fileName: string;
@@ -61,6 +61,7 @@ export type UseCodeEditorReturn = {
61
61
  export type UseDiffEditorParams = ContainerParams & {
62
62
  originalModel: monaco.editor.ITextModel;
63
63
  modifiedFileName: string;
64
+ extraEditorOptions?: monaco.editor.IDiffEditorConstructionOptions;
64
65
  };
65
66
  export type UseDiffEditorReturn = {
66
67
  editorModel: monaco.editor.IDiffEditorModel;
@@ -1,7 +1,8 @@
1
- import { GenericInitialData, InitialDataServiceType } from './initial-data-service';
1
+ import { GenericInitialData, InitialDataServiceType, InputConnectionInfo } from './initial-data-service';
2
2
  import { InputOutputModel } from 'lib/main';
3
3
 
4
4
  export declare const DEFAULT_INPUT_OBJECTS: InputOutputModel[];
5
+ export declare const DEFAULT_PORT_INFORMATION: InputConnectionInfo[];
5
6
  export declare const DEFAULT_OUTPUT_OBJECTS: InputOutputModel[];
6
7
  export declare const DEFAULT_FLOW_VARIABLE_INPUTS: InputOutputModel;
7
8
  export declare const DEFAULT_INITIAL_DATA: GenericInitialData;
@@ -16,6 +16,19 @@ export type PortConfig = {
16
16
  export type PortConfigs = {
17
17
  inputPorts: PortConfig[];
18
18
  };
19
+ export type ConnectionStatus =
20
+ /** The input is not connected */
21
+ "MISSING_CONNECTION"
22
+ /** The input is connected, but the predecessor is not configured */
23
+ | "UNCONFIGURED_CONNECTION"
24
+ /** The input is connected and configured, but the predecessor is not executed */
25
+ | "UNEXECUTED_CONNECTION"
26
+ /** The input is connected, configured, and executed */
27
+ | "OK";
28
+ export type InputConnectionInfo = {
29
+ status: ConnectionStatus;
30
+ isOptional: boolean;
31
+ };
19
32
  export type KAIConfig = {
20
33
  codeAssistantEnabled: boolean;
21
34
  codeAssistantInstalled: boolean;
@@ -25,7 +38,7 @@ export type GenericInitialData = {
25
38
  inputPortConfigs: PortConfigs;
26
39
  inputObjects: InputOutputModel[];
27
40
  flowVariables: InputOutputModel;
28
- inputsAvailable: boolean;
41
+ inputConnectionInfo: InputConnectionInfo[];
29
42
  outputObjects?: InputOutputModel[];
30
43
  kAiConfig: KAIConfig;
31
44
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.80",
4
+ "version": "0.0.82",
5
5
  "description": "Shared Scripting Editor components for KNIME",
6
6
  "author": "KNIME AG, Zurich, Switzerland",
7
7
  "license": "See the file license.txt",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@knime/components": "^1.0.5",
29
29
  "@knime/styles": "^1.0.0",
30
- "@knime/ui-extensions-renderer": "^1.0.11",
30
+ "@knime/ui-extension-renderer": "^1.1.0",
31
31
  "@knime/utils": "^1.0.4",
32
32
  "@vueuse/core": "10.09.0",
33
33
  "handlebars": "4.7.8",
@@ -1,40 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { PaneSizes } from '../utils/paneSizes';
3
-
4
- declare const _default: import('vue').DefineComponent<{
5
- currentPaneSizes: {
6
- type: PropType<PaneSizes>;
7
- default: () => {
8
- left: number;
9
- right: number;
10
- bottom: number;
11
- };
12
- };
13
- language: {
14
- type: StringConstructor;
15
- default: null;
16
- };
17
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
- "accept-suggestion": () => void;
19
- "close-ai-bar": () => void;
20
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
- currentPaneSizes: {
22
- type: PropType<PaneSizes>;
23
- default: () => {
24
- left: number;
25
- right: number;
26
- bottom: number;
27
- };
28
- };
29
- language: {
30
- type: StringConstructor;
31
- default: null;
32
- };
33
- }>> & {
34
- "onAccept-suggestion"?: (() => any) | undefined;
35
- "onClose-ai-bar"?: (() => any) | undefined;
36
- }, {
37
- language: string;
38
- currentPaneSizes: PaneSizes;
39
- }, {}>;
40
- export default _default;