@knime/kds-code-editor 2.6.3 → 2.8.0
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/CHANGELOG.md +31 -0
- package/dist/index.css +253 -13
- package/dist/index.js +4412 -35
- package/dist/index.js.map +1 -1
- package/dist/src/CodeEditor/KdsCodeEditor.vue.d.ts +15 -1
- package/dist/src/CodeEditor/KdsCodeEditor.vue.d.ts.map +1 -1
- package/dist/src/Console/KdsConsole.vue.d.ts +8 -0
- package/dist/src/Console/KdsConsole.vue.d.ts.map +1 -0
- package/dist/src/Console/index.d.ts +3 -0
- package/dist/src/Console/index.d.ts.map +1 -0
- package/dist/src/Console/types.d.ts +42 -0
- package/dist/src/Console/types.d.ts.map +1 -0
- package/dist/src/Console/utils/buildTheme.d.ts +9 -0
- package/dist/src/Console/utils/buildTheme.d.ts.map +1 -0
- package/dist/src/Console/utils/shouldFocusBePainted.d.ts +9 -0
- package/dist/src/Console/utils/shouldFocusBePainted.d.ts.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +8 -6
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { editor } from 'monaco-editor';
|
|
2
2
|
import { KdsCodeEditorProps } from './types';
|
|
3
3
|
type __VLS_Props = KdsCodeEditorProps;
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
/**
|
|
6
|
+
* Additional content rendered inside the editor frame, below the code
|
|
7
|
+
* area — e.g. the output-column controls of the KNIME expression nodes.
|
|
8
|
+
* The slot content brings its own padding and background.
|
|
9
|
+
*/
|
|
10
|
+
footer?(): unknown;
|
|
11
|
+
};
|
|
4
12
|
type __VLS_ModelProps = {
|
|
5
13
|
modelValue?: string;
|
|
6
14
|
};
|
|
7
15
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
-
declare const
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
9
17
|
/** The underlying Monaco editor instance, available after mount. */
|
|
10
18
|
getEditor: () => editor.IStandaloneCodeEditor | undefined;
|
|
11
19
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -13,6 +21,12 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
13
21
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
22
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
23
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
25
|
declare const _default: typeof __VLS_export;
|
|
17
26
|
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
18
32
|
//# sourceMappingURL=KdsCodeEditor.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsCodeEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/CodeEditor/KdsCodeEditor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsCodeEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/CodeEditor/KdsCodeEditor.vue"],"names":[],"mappings":"AAwcA,OAAO,EAAW,MAAM,EAAE,MAAM,eAAe,CAAC;AAchD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAIlD,KAAK,WAAW,GAAG,kBAAkB,CAAC;AAkBtC,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,MAAM,CAAC,IAAI,OAAO,CAAC;CACpB,CAAC;AAmPF,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAkOxD,QAAA,MAAM,UAAU;IAlPd,oEAAoE;;;;;;kFAsPpE,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
"console-created": (handler: import('./types').KdsConsoleHandler) => any;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
"onConsole-created"?: ((handler: import('./types').KdsConsoleHandler) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=KdsConsole.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsConsole.vue.d.ts","sourceRoot":"","sources":["../../../src/Console/KdsConsole.vue"],"names":[],"mappings":"AA6IA,OAAO,4BAA4B,CAAC;AAyIpC,QAAA,MAAM,YAAY;;;;iFAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Console/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A piece of text to write to the output console. Exactly one of `text`,
|
|
3
|
+
* `warning`, or `error` must be provided.
|
|
4
|
+
*
|
|
5
|
+
* - `{ text }` is written as-is.
|
|
6
|
+
* - `{ error }` is prefixed with `[ERROR]` and colored red.
|
|
7
|
+
* - `{ warning }` is prefixed with `[WARNING]` and colored yellow.
|
|
8
|
+
*/
|
|
9
|
+
export type KdsConsoleText = {
|
|
10
|
+
text: string;
|
|
11
|
+
warning?: never;
|
|
12
|
+
error?: never;
|
|
13
|
+
} | {
|
|
14
|
+
warning: string;
|
|
15
|
+
text?: never;
|
|
16
|
+
error?: never;
|
|
17
|
+
} | {
|
|
18
|
+
error: string;
|
|
19
|
+
text?: never;
|
|
20
|
+
warning?: never;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Handler for writing output to a `KdsConsole`. Returned via the
|
|
24
|
+
* `console-created` event after the terminal is opened.
|
|
25
|
+
*/
|
|
26
|
+
export type KdsConsoleHandler = {
|
|
27
|
+
/** Write text without a trailing newline. */
|
|
28
|
+
write: (text: KdsConsoleText) => void;
|
|
29
|
+
/** Write text followed by a newline. */
|
|
30
|
+
writeln: (text: KdsConsoleText) => void;
|
|
31
|
+
/** Clear all console output. */
|
|
32
|
+
clear: () => void;
|
|
33
|
+
};
|
|
34
|
+
export type KdsConsoleEmits = {
|
|
35
|
+
/**
|
|
36
|
+
* Fired once after the terminal is mounted and opened. The handler is the
|
|
37
|
+
* only way to write to or clear the console — store it and call
|
|
38
|
+
* `write` / `writeln` / `clear` from your application logic.
|
|
39
|
+
*/
|
|
40
|
+
"console-created": [handler: KdsConsoleHandler];
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Console/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GACtB;IACE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEN;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6CAA6C;IAC7C,KAAK,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IACtC,wCAAwC;IACxC,OAAO,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IACxC,gCAAgC;IAChC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;CACjD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ITheme } from '@xterm/xterm';
|
|
2
|
+
import { KdsMode } from '@knime/kds-styles/tokens';
|
|
3
|
+
/**
|
|
4
|
+
* Build the xterm.js `ITheme` from generated KDS color tokens for the given
|
|
5
|
+
* mode. Only colors with KDS semantic mappings are overridden; all other ANSI
|
|
6
|
+
* slots fall back to the xterm.js defaults.
|
|
7
|
+
*/
|
|
8
|
+
export declare const buildTheme: (mode: KdsMode) => ITheme;
|
|
9
|
+
//# sourceMappingURL=buildTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildTheme.d.ts","sourceRoot":"","sources":["../../../../src/Console/utils/buildTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAEL,KAAK,OAAO,EAEb,MAAM,0BAA0B,CAAC;AAmElC;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,OAAO,KAAG,MAiB1C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composable that returns whether focus is currently painted. It turns focus
|
|
3
|
+
* painting on when the document is navigated using key presses, and off again
|
|
4
|
+
* when the document is clicked — so that focus rings only appear for keyboard
|
|
5
|
+
* navigation, not for mouse interactions.
|
|
6
|
+
*/
|
|
7
|
+
declare const useShouldFocusBePainted: () => import('vue').Ref<boolean, boolean>;
|
|
8
|
+
export default useShouldFocusBePainted;
|
|
9
|
+
//# sourceMappingURL=shouldFocusBePainted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shouldFocusBePainted.d.ts","sourceRoot":"","sources":["../../../../src/Console/utils/shouldFocusBePainted.ts"],"names":[],"mappings":"AAaA;;;;;GAKG;AACH,QAAA,MAAM,uBAAuB,2CAwB5B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-code-editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.8.0",
|
|
5
5
|
"description": "Package containing the code editor component of the KNIME Design System",
|
|
6
6
|
"license": "See LICENSE file",
|
|
7
7
|
"author": "KNIME AG, Zurich, Switzerland",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@
|
|
10
|
-
"@
|
|
9
|
+
"@xterm/addon-fit": "^0.10.0",
|
|
10
|
+
"@xterm/addon-unicode11": "^0.8.0",
|
|
11
|
+
"@xterm/xterm": "^5.5.0",
|
|
12
|
+
"@knime/kds-components": "^2.8.0",
|
|
13
|
+
"@knime/kds-styles": "^2.8.0"
|
|
11
14
|
},
|
|
12
15
|
"devDependencies": {
|
|
13
16
|
"@storybook/vue3-vite": "^10.4.6",
|
|
14
17
|
"@tsconfig/node24": "^24.0.4",
|
|
15
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
18
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
16
19
|
"@vue/test-utils": "^2.4.11",
|
|
17
20
|
"@vueuse/core": "~14.3.0",
|
|
18
21
|
"monaco-editor": "^0.55.1",
|
|
@@ -44,8 +47,7 @@
|
|
|
44
47
|
}
|
|
45
48
|
},
|
|
46
49
|
"engines": {
|
|
47
|
-
"node": "24
|
|
48
|
-
"npm": "please-use-pnpm"
|
|
50
|
+
"node": ">=24"
|
|
49
51
|
},
|
|
50
52
|
"sideEffects": [
|
|
51
53
|
"dist/*.css"
|