@knime/scripting-editor 0.0.79 → 0.0.81

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.
@@ -5,7 +5,7 @@ const t = 100, l = 2e3, s = (n, ...r) => {
5
5
  typeof consola > "u" ? console.log(n, ...r) : consola.log(n, ...r);
6
6
  }, S = (n, ...r) => {
7
7
  typeof consola > "u" ? console.error(n, ...r) : consola.error(n, ...r);
8
- }, a = (n) => {
8
+ }, u = (n) => {
9
9
  const r = /* @__PURE__ */ new Map(), i = {
10
10
  suggestCode: async () => {
11
11
  await c(l);
@@ -28,6 +28,9 @@ const t = 100, l = 2e3, s = (n, ...r) => {
28
28
  isCallKnimeUiApiAvailable() {
29
29
  return s("Called scriptingService.isCallKnimeUiApiAvailable"), Promise.resolve(!0);
30
30
  },
31
+ isLoggedIntoHub() {
32
+ return s("Called scriptingService.isLoggedIntoHub"), Promise.resolve(!0);
33
+ },
31
34
  // Event handler
32
35
  registerEventHandler(e, o) {
33
36
  s("Called scriptingService.registerEventHandler", e), r.set(e, o);
@@ -41,5 +44,5 @@ const t = 100, l = 2e3, s = (n, ...r) => {
41
44
  };
42
45
  };
43
46
  export {
44
- a as createScriptingServiceMock
47
+ u as createScriptingServiceMock
45
48
  };
@@ -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;
@@ -20,7 +20,6 @@ export type KAIConfig = {
20
20
  codeAssistantEnabled: boolean;
21
21
  codeAssistantInstalled: boolean;
22
22
  hubId: string;
23
- loggedIn: boolean;
24
23
  };
25
24
  export type GenericInitialData = {
26
25
  inputPortConfigs: PortConfigs;
@@ -6,6 +6,7 @@ declare const scriptingService: {
6
6
  registerEventHandler(type: string, handler: (args: any) => void): void;
7
7
  connectToLanguageServer(): Promise<MonacoLSPConnection>;
8
8
  isCallKnimeUiApiAvailable(portToTestFor: PortConfig): Promise<boolean>;
9
+ isLoggedIntoHub(): Promise<any>;
9
10
  };
10
11
  export type ScriptingServiceType = typeof scriptingService;
11
12
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.79",
4
+ "version": "0.0.81",
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;