@knime/kds-code-editor 6.2.0 → 6.3.1
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 +25 -0
- package/README.md +11 -5
- package/dist/assets/{editor.worker-CLAZlRUj.js.map → editor.worker-e3drisr8.js.map} +1 -1
- package/dist/assets/{json.worker-CWsWF5cb.js.map → json.worker-BxEEOmOS.js.map} +1 -1
- package/dist/{editor.worker-CtYtPH8e.js → editor.worker-BaqEYUwK.js} +3 -3
- package/dist/editor.worker-BaqEYUwK.js.map +1 -0
- package/dist/index.css +51 -14
- package/dist/index.js +837 -134
- package/dist/index.js.map +1 -1
- package/dist/{json.worker-B5MqtfsC.js → json.worker-CzwQ13T2.js} +3 -3
- package/dist/json.worker-CzwQ13T2.js.map +1 -0
- package/dist/src/CodeDiffEditor/KdsCodeDiffEditor.vue.d.ts +28 -0
- package/dist/src/CodeDiffEditor/KdsCodeDiffEditor.vue.d.ts.map +1 -0
- package/dist/src/CodeDiffEditor/index.d.ts +3 -0
- package/dist/src/CodeDiffEditor/index.d.ts.map +1 -0
- package/dist/src/CodeDiffEditor/types.d.ts +79 -0
- package/dist/src/CodeDiffEditor/types.d.ts.map +1 -0
- package/dist/src/CodeEditor/KdsCodeEditor.vue.d.ts.map +1 -1
- package/dist/src/CodeEditor/monacoEnvironment.d.ts.map +1 -1
- package/dist/src/CodeEditor/tomlLanguage.d.ts +10 -1
- package/dist/src/CodeEditor/tomlLanguage.d.ts.map +1 -1
- package/dist/src/_helper/BaseCodeEditor.vue.d.ts +28 -0
- package/dist/src/_helper/BaseCodeEditor.vue.d.ts.map +1 -0
- package/dist/src/_helper/monacoCommon.d.ts +42 -0
- package/dist/src/_helper/monacoCommon.d.ts.map +1 -0
- package/dist/src/_helper/types.d.ts +49 -0
- package/dist/src/_helper/types.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 +3 -3
- package/patches/monaco-editor@0.55.1.patch +24 -0
- package/dist/editor.worker-CtYtPH8e.js.map +0 -1
- package/dist/json.worker-B5MqtfsC.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.worker-CzwQ13T2.js","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { editor } from 'monaco-editor';
|
|
2
|
+
import { KdsCodeDiffEditorProps } from './types';
|
|
3
|
+
type __VLS_Props = KdsCodeDiffEditorProps;
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
/** The modified content — the editable side of the diff. */
|
|
6
|
+
modelValue?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the editor is collapsed to just its change-summary header. Only
|
|
9
|
+
* effective when `changeSummary` is set (which renders the collapse toggle).
|
|
10
|
+
*
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
"collapsed"?: boolean;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
17
|
+
/** The underlying Monaco diff editor instance, available after mount. */
|
|
18
|
+
getEditor: () => editor.IStandaloneDiffEditor | undefined;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: string) => any;
|
|
21
|
+
"update:collapsed": (value: boolean) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
|
+
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=KdsCodeDiffEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsCodeDiffEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/CodeDiffEditor/KdsCodeDiffEditor.vue"],"names":[],"mappings":"AA+YA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAgBvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAItD,KAAK,WAAW,GAAG,sBAAsB,CAAC;AAuV1C,KAAK,gBAAgB,GAAG;IACxB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAsFxD,QAAA,MAAM,YAAY;IAhHhB,yEAAyE;;;;;;;;kFAoHzE,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/CodeDiffEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { KdsCodeEditorAction, KdsCodeEditorState } from '../CodeEditor/types';
|
|
2
|
+
export type KdsCodeDiffEditorProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The original content the modified content (`v-model`) is compared
|
|
5
|
+
* against. Shown on the left (side-by-side) or inline as removed lines.
|
|
6
|
+
* Always read-only.
|
|
7
|
+
*/
|
|
8
|
+
original?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Monaco language id used for syntax highlighting of both sides (e.g.
|
|
11
|
+
* `python`, `json`, `sql`). In addition to Monaco's built-in languages,
|
|
12
|
+
* `toml` is supported via a bundled custom grammar. Defaults to
|
|
13
|
+
* `plaintext`.
|
|
14
|
+
*/
|
|
15
|
+
language?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The label shown on the left of the header. Defaults to the uppercased
|
|
18
|
+
* `language` value.
|
|
19
|
+
*/
|
|
20
|
+
languageLabel?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Hides the entire header (language label, read-only hint, action
|
|
23
|
+
* buttons), leaving the bare diff editor. The editor's accessible name
|
|
24
|
+
* still announces the language. Defaults to `false`.
|
|
25
|
+
*/
|
|
26
|
+
hideHeader?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Visual state of the editor. `error` and `warning` tint the header and the
|
|
29
|
+
* sub-text below the editor.
|
|
30
|
+
*/
|
|
31
|
+
state?: KdsCodeEditorState;
|
|
32
|
+
/**
|
|
33
|
+
* Renders the two sides next to each other. When `false`, the diff is
|
|
34
|
+
* rendered inline as a single column of removed / inserted lines. Defaults
|
|
35
|
+
* to `true`.
|
|
36
|
+
*/
|
|
37
|
+
sideBySide?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Shows the overview ruler — the coloured diff / error / selection markers
|
|
40
|
+
* painted on the scrollbar. Defaults to `false`.
|
|
41
|
+
*/
|
|
42
|
+
overviewRuler?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Renders the modified side read-only too (still focusable, selectable and
|
|
45
|
+
* copyable). The original side is always read-only.
|
|
46
|
+
*/
|
|
47
|
+
readOnly?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Optional helper / validation message shown below the editor. Its colour
|
|
50
|
+
* follows the `state`.
|
|
51
|
+
*/
|
|
52
|
+
subText?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Header action buttons (e.g. an accept-changes button), rendered
|
|
55
|
+
* right-aligned at a fixed `small` size.
|
|
56
|
+
*/
|
|
57
|
+
editorActions?: KdsCodeEditorAction[];
|
|
58
|
+
/**
|
|
59
|
+
* Minimum number of visible rows the editor grows from. When neither
|
|
60
|
+
* `minRows` nor `maxRows` is set, the editor fills its container's height
|
|
61
|
+
* instead.
|
|
62
|
+
*/
|
|
63
|
+
minRows?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Maximum number of visible rows. When set, the editor caps at this height
|
|
66
|
+
* and scrolls past it. When unset (but `minRows` is set), the editor grows
|
|
67
|
+
* with its content to avoid nested scrollbars.
|
|
68
|
+
*/
|
|
69
|
+
maxRows?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Shows a change summary in the header instead of the language label: this
|
|
72
|
+
* text (e.g. `Edited my_script.py`) followed by the number of added and
|
|
73
|
+
* removed lines of the current diff, and a toggle button that collapses
|
|
74
|
+
* the editor to just this summary line (see the `collapsed` model). No
|
|
75
|
+
* effect when the header is hidden via `hideHeader`.
|
|
76
|
+
*/
|
|
77
|
+
changeSummary?: string;
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/CodeDiffEditor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
|
@@ -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":"AAgSA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAiBvC,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;AA0MF,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAyFxD,QAAA,MAAM,UAAU;IAzGd,oEAAoE;;;;;;kFA6GpE,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monacoEnvironment.d.ts","sourceRoot":"","sources":["../../../src/CodeEditor/monacoEnvironment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"monacoEnvironment.d.ts","sourceRoot":"","sources":["../../../src/CodeEditor/monacoEnvironment.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,sBAAsB,YAuBlC,CAAC"}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Registers the TOML language with Monaco. Idempotent — registering is
|
|
3
|
+
* page-global, so the first call wins and later calls return early.
|
|
4
|
+
*
|
|
5
|
+
* Called explicitly (from `setupMonacoEnvironment`) rather than as a
|
|
6
|
+
* module side effect: the package declares `sideEffects` in its
|
|
7
|
+
* package.json, so bundlers are allowed to drop bare side-effect imports
|
|
8
|
+
* of this module in production builds.
|
|
9
|
+
*/
|
|
10
|
+
export declare const registerTomlLanguage: () => void;
|
|
2
11
|
//# sourceMappingURL=tomlLanguage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tomlLanguage.d.ts","sourceRoot":"","sources":["../../../src/CodeEditor/tomlLanguage.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"tomlLanguage.d.ts","sourceRoot":"","sources":["../../../src/CodeEditor/tomlLanguage.ts"],"names":[],"mappings":"AAgBA;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,YAsMhC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseCodeEditorProps } from './types';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
/**
|
|
4
|
+
* Additional content rendered inside the editor frame, below the code
|
|
5
|
+
* area — e.g. the output-column controls of the KNIME expression nodes.
|
|
6
|
+
* The slot content brings its own padding and background.
|
|
7
|
+
*/
|
|
8
|
+
footer?(): unknown;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<BaseCodeEditorProps, {
|
|
11
|
+
/** The element Monaco should be mounted into. */
|
|
12
|
+
getCodeContainer: () => HTMLDivElement | null;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
copy: () => any;
|
|
15
|
+
collapsedToggle: () => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<BaseCodeEditorProps> & Readonly<{
|
|
17
|
+
onCopy?: (() => any) | undefined;
|
|
18
|
+
onCollapsedToggle?: (() => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=BaseCodeEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseCodeEditor.vue.d.ts","sourceRoot":"","sources":["../../../src/_helper/BaseCodeEditor.vue"],"names":[],"mappings":"AAkTA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAoCnD,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,MAAM,CAAC,IAAI,OAAO,CAAC;CACpB,CAAC;AAiUF,QAAA,MAAM,UAAU;IAxTd,iDAAiD;;;;;;;;kFA4TjD,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,42 @@
|
|
|
1
|
+
import { editor } from 'monaco-editor';
|
|
2
|
+
export declare const INITIAL_LINE_HEIGHT = 18;
|
|
3
|
+
export declare const EXTRA_PADDING = 3;
|
|
4
|
+
export declare const DEFAULT_OVERVIEW_RULER_LANES = 3;
|
|
5
|
+
/**
|
|
6
|
+
* Construction options shared by `KdsCodeEditor` and `KdsCodeDiffEditor`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const COMMON_EDITOR_OPTIONS: {
|
|
9
|
+
automaticLayout: true;
|
|
10
|
+
minimap: {
|
|
11
|
+
enabled: false;
|
|
12
|
+
};
|
|
13
|
+
scrollBeyondLastLine: false;
|
|
14
|
+
lineNumbersMinChars: number;
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
fontWeight: string;
|
|
17
|
+
fontSize: number;
|
|
18
|
+
fixedOverflowWidgets: true;
|
|
19
|
+
scrollbar: {
|
|
20
|
+
alwaysConsumeMouseWheel: false;
|
|
21
|
+
};
|
|
22
|
+
accessibilitySupport: "on";
|
|
23
|
+
};
|
|
24
|
+
export declare const MONACO_THEME_LIGHT = "vs-light";
|
|
25
|
+
export declare const MONACO_THEME_DARK = "vs-dark";
|
|
26
|
+
export declare const getMonacoTheme: (isDark: boolean) => "vs-light" | "vs-dark";
|
|
27
|
+
/**
|
|
28
|
+
* Monaco's overflow widgets (error tooltips, autocomplete) can clip or appear
|
|
29
|
+
* far away from the pointer in certain containers (such as stories in
|
|
30
|
+
* Storybook, or ancestors with a CSS `transform`). Hosting them in an
|
|
31
|
+
* external node on `document.body` avoids that; the node needs the
|
|
32
|
+
* `monaco-editor` class to keep the popover styling. The caller owns the
|
|
33
|
+
* returned node and must remove it on unmount.
|
|
34
|
+
*/
|
|
35
|
+
export declare const createOverflowWidgetsDomNode: () => HTMLElement;
|
|
36
|
+
/**
|
|
37
|
+
* Accessibility: Escape arms tab-focus mode on the given editor so the next
|
|
38
|
+
* Tab (or Shift+Tab) moves focus out of the editor instead of indenting;
|
|
39
|
+
* any other key press or re-entering the editor restores Tab-as-indentation.
|
|
40
|
+
*/
|
|
41
|
+
export declare const setupTabFocusHandling: (editorInstance: editor.ICodeEditor) => void;
|
|
42
|
+
//# sourceMappingURL=monacoCommon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monacoCommon.d.ts","sourceRoot":"","sources":["../../../src/_helper/monacoCommon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAK5C,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAM9C;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;CAmBW,CAAC;AAG9C,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAC7C,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,cAAc,GAAI,QAAQ,OAAO,2BACG,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,QAAO,WAK/C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,gBAAgB,MAAM,CAAC,WAAW,SA2BvE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { KdsCodeEditorAction, KdsCodeEditorState } from '../CodeEditor/types';
|
|
2
|
+
/**
|
|
3
|
+
* Props of the internal `BaseCodeEditor` shared by `KdsCodeEditor` and
|
|
4
|
+
* `KdsCodeDiffEditor`. Not part of the public API — deliberately not
|
|
5
|
+
* re-exported from any barrel.
|
|
6
|
+
*/
|
|
7
|
+
export type BaseCodeEditorProps = {
|
|
8
|
+
/** Label shown on the left of the header. */
|
|
9
|
+
headerLabel: string;
|
|
10
|
+
/** Id linking the sub-text to the editor input via `aria-describedby`. */
|
|
11
|
+
subTextId: string;
|
|
12
|
+
/** Hides the entire header strip. */
|
|
13
|
+
hideHeader?: boolean;
|
|
14
|
+
/** Visual state, tinting the header and the sub-text. */
|
|
15
|
+
state?: KdsCodeEditorState;
|
|
16
|
+
/** Shows the "(Read-only)" hint in the header. */
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
/** Optional helper / validation message shown below the editor. */
|
|
19
|
+
subText?: string;
|
|
20
|
+
/** Shows the built-in copy-to-clipboard button. */
|
|
21
|
+
copyable?: boolean;
|
|
22
|
+
/** Success state of the copy button. */
|
|
23
|
+
copied?: boolean;
|
|
24
|
+
/** Accessible name of the copy button. */
|
|
25
|
+
copyButtonAriaLabel?: string;
|
|
26
|
+
/** Header action buttons, rendered at a fixed `small` size. */
|
|
27
|
+
editorActions?: KdsCodeEditorAction[];
|
|
28
|
+
/** Whether the code area (Monaco) currently has focus. */
|
|
29
|
+
focused?: boolean;
|
|
30
|
+
/** Fill the container's width and height instead of sizing by content. */
|
|
31
|
+
fill?: boolean;
|
|
32
|
+
/** Explicit height of the code container (row-based sizing). */
|
|
33
|
+
codeHeight?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Change summary shown in place of `headerLabel`, together with the
|
|
36
|
+
* added / removed line counts and the collapse toggle (diff editor only).
|
|
37
|
+
*/
|
|
38
|
+
changeSummary?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Number of added lines shown next to the change summary. The counts stay
|
|
41
|
+
* hidden while `undefined` (diff not computed yet).
|
|
42
|
+
*/
|
|
43
|
+
addedLines?: number;
|
|
44
|
+
/** Number of removed lines shown next to the change summary. */
|
|
45
|
+
removedLines?: number;
|
|
46
|
+
/** Collapses the editor to just its header (change-summary mode only). */
|
|
47
|
+
collapsed?: boolean;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/_helper/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yDAAyD;IACzD,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,+DAA+D;IAC/D,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,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;AAClC,cAAc,kBAAkB,CAAC;AACjC,mBAAmB,kBAAkB,CAAC;AAEtC,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-code-editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.3.1",
|
|
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",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"@xterm/addon-fit": "^0.10.0",
|
|
10
10
|
"@xterm/addon-unicode11": "^0.9.0",
|
|
11
11
|
"@xterm/xterm": "^5.5.0",
|
|
12
|
-
"@knime/kds-components": "^6.
|
|
13
|
-
"@knime/kds-styles": "^6.
|
|
12
|
+
"@knime/kds-components": "^6.3.1",
|
|
13
|
+
"@knime/kds-styles": "^6.3.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@storybook/vue3-vite": "^10.4.6",
|
|
@@ -70,6 +70,30 @@ index ed1335210aceda06699ef061a8c23934222b5806..7519e203e37de4eaab8bdcd0afe1bc29
|
|
|
70
70
|
const info = this.widget.getLayoutInfo();
|
|
71
71
|
const defaultMinSize = new Dimension(220, 2 * info.lineHeight);
|
|
72
72
|
const defaultTop = anchorBox.top;
|
|
73
|
+
diff --git a/esm/vs/editor/standalone/browser/standaloneServices.js b/esm/vs/editor/standalone/browser/standaloneServices.js
|
|
74
|
+
index c8fa632ac1998d08b7ce61ef6910f958d295ce6d..a77d023a9a275560b923c6b07077eef5364d42df 100644
|
|
75
|
+
--- a/esm/vs/editor/standalone/browser/standaloneServices.js
|
|
76
|
+
+++ b/esm/vs/editor/standalone/browser/standaloneServices.js
|
|
77
|
+
@@ -23,6 +23,7 @@ import { Range } from '../../common/core/range.js';
|
|
78
|
+
import { IModelService } from '../../common/services/model.js';
|
|
79
|
+
import { ITextModelService } from '../../common/services/resolverService.js';
|
|
80
|
+
import { ITextResourceConfigurationService, ITextResourcePropertiesService } from '../../common/services/textResourceConfiguration.js';
|
|
81
|
+
+import { SnippetParser } from '../../contrib/snippet/browser/snippetParser.js';
|
|
82
|
+
import { ICommandService, CommandsRegistry } from '../../../platform/commands/common/commands.js';
|
|
83
|
+
import { IConfigurationService } from '../../../platform/configuration/common/configuration.js';
|
|
84
|
+
import { Configuration, ConfigurationModel, ConfigurationChangeEvent } from '../../../platform/configuration/common/configurationModels.js';
|
|
85
|
+
@@ -561,7 +562,10 @@ let StandaloneBulkEditService = class StandaloneBulkEditService {
|
|
86
|
+
array = [];
|
|
87
|
+
textEdits.set(model, array);
|
|
88
|
+
}
|
|
89
|
+
- array.push(EditOperation.replaceMove(Range.lift(edit.textEdit.range), edit.textEdit.text));
|
|
90
|
+
+ const text = edit.textEdit.insertAsSnippet
|
|
91
|
+
+ ? new SnippetParser().parse(edit.textEdit.text).toString()
|
|
92
|
+
+ : edit.textEdit.text;
|
|
93
|
+
+ array.push(EditOperation.replaceMove(Range.lift(edit.textEdit.range), text));
|
|
94
|
+
}
|
|
95
|
+
let totalEdits = 0;
|
|
96
|
+
let totalFiles = 0;
|
|
73
97
|
diff --git a/esm/vs/platform/actionWidget/browser/actionList.js b/esm/vs/platform/actionWidget/browser/actionList.js
|
|
74
98
|
index 414405319ded9b3671a070b7405b7150afaa8321..cd2b620945f5ac6a2fb4594e9394277296051018 100644
|
|
75
99
|
--- a/esm/vs/platform/actionWidget/browser/actionList.js
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor.worker-CtYtPH8e.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json.worker-B5MqtfsC.js","names":[],"sources":[],"mappings":""}
|