@knime/scripting-editor 0.0.77 → 0.0.79
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.
- package/dist/initial-data-service-browser-mock.d.ts +1 -0
- package/dist/initial-data-service-browser-mock.js +92 -0
- package/dist/lib/main.d.ts +5 -3
- package/dist/main.js +13167 -14277
- package/dist/scripting-service-browser-mock.js +20 -124
- package/dist/settings-service-browser-mock.d.ts +1 -0
- package/dist/settings-service-browser-mock.js +13 -0
- package/dist/src/components/InputPortTables.vue.d.ts +1 -1
- package/dist/src/components/MainEditorPane.vue.d.ts +5 -5
- package/dist/src/components/ScriptingEditor.vue.d.ts +5 -5
- package/dist/src/initial-data-service-browser-mock.d.ts +8 -0
- package/dist/src/initial-data-service.d.ts +38 -0
- package/dist/src/scripting-service-browser-mock.d.ts +1 -10
- package/dist/src/scripting-service.d.ts +1 -30
- package/dist/src/settings-helper.d.ts +19 -0
- package/dist/src/settings-service-browser-mock.d.ts +4 -0
- package/dist/src/settings-service.d.ts +11 -0
- package/package.json +6 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/initial-data-service-browser-mock'
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const o = [
|
|
2
|
+
{
|
|
3
|
+
name: "Input table 1",
|
|
4
|
+
portType: "table",
|
|
5
|
+
subItems: [
|
|
6
|
+
{
|
|
7
|
+
name: "Column 1",
|
|
8
|
+
type: "Number",
|
|
9
|
+
supported: !0
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: "Column 2",
|
|
13
|
+
type: "String",
|
|
14
|
+
supported: !0
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "Column 3",
|
|
18
|
+
type: "Something weird",
|
|
19
|
+
supported: !1
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
], r = [
|
|
24
|
+
{
|
|
25
|
+
name: "Output table 1",
|
|
26
|
+
portType: "table"
|
|
27
|
+
}
|
|
28
|
+
], n = {
|
|
29
|
+
name: "Flow Variables",
|
|
30
|
+
portType: "flowVariable",
|
|
31
|
+
subItems: [
|
|
32
|
+
{
|
|
33
|
+
name: "flowVar1",
|
|
34
|
+
type: "Number",
|
|
35
|
+
supported: !0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "flowVar2",
|
|
39
|
+
type: "String",
|
|
40
|
+
supported: !0
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "flowVar3",
|
|
44
|
+
type: "Bit Vector",
|
|
45
|
+
supported: !1
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}, a = {
|
|
49
|
+
inputPorts: [
|
|
50
|
+
{
|
|
51
|
+
nodeId: "root",
|
|
52
|
+
portName: "firstPort",
|
|
53
|
+
portIdx: 1,
|
|
54
|
+
portViewConfigs: [
|
|
55
|
+
{ portViewIdx: 0, label: "firstView" },
|
|
56
|
+
{ portViewIdx: 1, label: "secondView" }
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
nodeId: "notRoot",
|
|
61
|
+
portName: "firstPort",
|
|
62
|
+
portIdx: 1,
|
|
63
|
+
portViewConfigs: [
|
|
64
|
+
{ portViewIdx: 0, label: "firstView" },
|
|
65
|
+
{ portViewIdx: 1, label: "secondView" }
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}, i = {
|
|
70
|
+
inputObjects: o,
|
|
71
|
+
outputObjects: r,
|
|
72
|
+
flowVariables: n,
|
|
73
|
+
inputPortConfigs: a,
|
|
74
|
+
kAiConfig: {
|
|
75
|
+
codeAssistantEnabled: !0,
|
|
76
|
+
codeAssistantInstalled: !0,
|
|
77
|
+
hubId: "My Mocked KNIME Hub",
|
|
78
|
+
loggedIn: !0
|
|
79
|
+
},
|
|
80
|
+
inputsAvailable: !0
|
|
81
|
+
}, l = (e, ...t) => {
|
|
82
|
+
typeof consola > "u" ? console.log(e, ...t) : consola.log(e, ...t);
|
|
83
|
+
}, s = (e) => ({
|
|
84
|
+
getInitialData: () => (l("Called initial data service mock getInitialData"), Promise.resolve(e ?? i))
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
n as DEFAULT_FLOW_VARIABLE_INPUTS,
|
|
88
|
+
i as DEFAULT_INITIAL_DATA,
|
|
89
|
+
o as DEFAULT_INPUT_OBJECTS,
|
|
90
|
+
r as DEFAULT_OUTPUT_OBJECTS,
|
|
91
|
+
s as createInitialDataServiceMock
|
|
92
|
+
};
|
package/dist/lib/main.d.ts
CHANGED
|
@@ -8,10 +8,12 @@ import { InputOutputModel, COLUMN_INSERTION_EVENT } from '../src/components/Inpu
|
|
|
8
8
|
import { UseCodeEditorParams, UseCodeEditorReturn, UseDiffEditorParams, UseDiffEditorReturn, default as editor } from '../src/editor';
|
|
9
9
|
import { useReadonlyStore } from '../src/store/readOnly';
|
|
10
10
|
import { consoleHandler } from '../src/consoleHandler';
|
|
11
|
-
import { getScriptingService,
|
|
11
|
+
import { getScriptingService, ScriptingServiceType } from '../src/scripting-service';
|
|
12
12
|
import { setActiveEditorStoreForAi } from '../src/store/ai-bar';
|
|
13
13
|
import { insertionEventHelper, InsertionEvent } from '../src/components/utils/insertionEventHelper';
|
|
14
14
|
import { default as OutputTablePreview } from '../src/components/OutputTablePreview.vue';
|
|
15
|
+
import { getInitialDataService, InitialDataServiceType, GenericInitialData, KAIConfig, PortConfigs } from '../src/initial-data-service';
|
|
16
|
+
import { GenericNodeSettings, getSettingsService } from '../src/settings-service';
|
|
15
17
|
|
|
16
|
-
export { CompactTabBar, consoleHandler, editor, getScriptingService,
|
|
17
|
-
export type { ConsoleHandler, ConsoleText,
|
|
18
|
+
export { COLUMN_INSERTION_EVENT, CompactTabBar, consoleHandler, editor, getInitialDataService, getScriptingService, getSettingsService, insertionEventHelper, MIN_WIDTH_FOR_DISPLAYING_LEFT_PANE, MIN_WIDTH_FOR_DISPLAYING_PANES, OutputConsole, OutputTablePreview, ScriptingEditor, setActiveEditorStoreForAi, useShouldFocusBePainted, useReadonlyStore, };
|
|
19
|
+
export type { ConsoleHandler, ConsoleText, GenericInitialData, GenericNodeSettings, InitialDataServiceType, InputOutputModel, InsertionEvent, KAIConfig, PortConfigs, ScriptingServiceType, SettingsMenuItem, UseCodeEditorParams, UseCodeEditorReturn, UseDiffEditorParams, UseDiffEditorReturn, };
|