@knime/kds-rich-text-editor 2.3.0 → 2.5.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 +18 -0
- package/dist/index.css +19 -19
- package/dist/index.js +3283 -3338
- package/dist/index.js.map +1 -1
- package/dist/src/KdsRichTextEditor.vue.d.ts +16 -18
- package/dist/src/KdsRichTextEditor.vue.d.ts.map +1 -1
- package/dist/src/KdsRichTextInput.vue.d.ts +8 -109
- package/dist/src/KdsRichTextInput.vue.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/toolbar/KdsCreateLinkModal.vue.d.ts +4 -453
- package/dist/src/toolbar/KdsCreateLinkModal.vue.d.ts.map +1 -1
- package/dist/src/toolbar/RichTextEditorBaseToolbar.vue.d.ts +27 -30
- package/dist/src/toolbar/RichTextEditorBaseToolbar.vue.d.ts.map +1 -1
- package/dist/src/toolbar/RichTextEditorToolbar.vue.d.ts +2 -1
- package/dist/src/toolbar/RichTextEditorToolbar.vue.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { KdsRichTextEditorProps } from './types';
|
|
2
2
|
type __VLS_Props = KdsRichTextEditorProps;
|
|
3
|
-
type
|
|
3
|
+
type __VLS_ModelProps = {
|
|
4
|
+
/** The current rich text value. */
|
|
4
5
|
modelValue?: string;
|
|
5
|
-
} & __VLS_Props;
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
customToolbar?(_: {
|
|
10
|
-
editor: import('@tiptap/vue-3').Editor;
|
|
11
|
-
tools: import('./toolbar/types').EditorTools;
|
|
12
|
-
hotkeyFormatter: (hotkeys: Array<import('@knime/utils').Hotkey>, getSeparator?: () => " " | "+") => string;
|
|
13
|
-
}): any;
|
|
14
|
-
};
|
|
15
|
-
refs: {};
|
|
16
|
-
rootEl: HTMLDivElement;
|
|
17
6
|
};
|
|
18
|
-
type
|
|
19
|
-
declare
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare var __VLS_8: {
|
|
9
|
+
editor: import('@tiptap/vue-3').Editor;
|
|
10
|
+
tools: import('.').EditorTools;
|
|
11
|
+
hotkeyFormatter: (hotkeys: Array<import('@knime/utils').Hotkey>, getSeparator?: () => " " | "+") => string;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
customToolbar?: (props: typeof __VLS_8) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
20
17
|
focus: () => void;
|
|
21
18
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
19
|
"update:modelValue": (value: string) => any;
|
|
@@ -24,10 +21,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
24
21
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
22
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
23
|
onBlur?: (() => any) | undefined;
|
|
27
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
28
|
-
declare const
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
29
27
|
export default _default;
|
|
30
|
-
type
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
29
|
new (): {
|
|
32
30
|
$slots: S;
|
|
33
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsRichTextEditor.vue.d.ts","sourceRoot":"","sources":["../../src/KdsRichTextEditor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsRichTextEditor.vue.d.ts","sourceRoot":"","sources":["../../src/KdsRichTextEditor.vue"],"names":[],"mappings":"AAkmBA,OAAO,KAAK,EAA2B,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAW/E,KAAK,WAAW,GAAG,sBAAsB,CAAC;AAkP1C,KAAK,gBAAgB,GAAG;IACxB,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAyKxD,QAAA,IAAI,OAAO;;;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAKrD,QAAA,MAAM,UAAU;;;;;;;;kFAId,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,119 +1,18 @@
|
|
|
1
|
+
import { KdsFormFieldExpose } from '@knime/kds-components';
|
|
1
2
|
import { KdsRichTextInputProps } from './types';
|
|
2
3
|
type __VLS_Props = KdsRichTextInputProps;
|
|
3
|
-
type
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
/** The current rich text value. */
|
|
4
6
|
modelValue?: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, KdsFormFieldExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
10
|
"update:modelValue": (value: string) => any;
|
|
10
11
|
blur: () => any;
|
|
11
12
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
13
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
13
14
|
onBlur?: (() => any) | undefined;
|
|
14
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
-
|
|
16
|
-
$: import('vue').ComponentInternalInstance;
|
|
17
|
-
$data: {};
|
|
18
|
-
$props: {
|
|
19
|
-
readonly modelValue?: string | undefined;
|
|
20
|
-
readonly editable?: boolean | undefined;
|
|
21
|
-
readonly minHeight?: number | null | undefined;
|
|
22
|
-
readonly maxHeight?: number | null | undefined;
|
|
23
|
-
readonly baseExtensions?: (import('./types').KdsBaseExtensionsConfig | ({
|
|
24
|
-
bold?: undefined;
|
|
25
|
-
italic?: undefined;
|
|
26
|
-
underline?: undefined;
|
|
27
|
-
textAlign?: undefined;
|
|
28
|
-
bulletList?: undefined;
|
|
29
|
-
orderedList?: undefined;
|
|
30
|
-
heading?: undefined;
|
|
31
|
-
paragraphTextStyle?: undefined;
|
|
32
|
-
blockquote?: undefined;
|
|
33
|
-
code?: undefined;
|
|
34
|
-
codeBlock?: undefined;
|
|
35
|
-
horizontalRule?: undefined;
|
|
36
|
-
strike?: undefined;
|
|
37
|
-
link?: undefined;
|
|
38
|
-
} & {
|
|
39
|
-
all: boolean;
|
|
40
|
-
})) | undefined;
|
|
41
|
-
readonly hotkeyFormatter?: ((hotkey: Array<import('packages/utils/dist/src').Hotkey>) => string) | undefined;
|
|
42
|
-
readonly customExtensions?: Array<import('@tiptap/core').AnyExtension> | undefined;
|
|
43
|
-
readonly autofocus?: boolean | undefined;
|
|
44
|
-
readonly withBorder?: boolean | undefined;
|
|
45
|
-
readonly disabled?: boolean | undefined;
|
|
46
|
-
readonly linkToolOptions?: import('.').KdsLinkToolOptions | undefined;
|
|
47
|
-
readonly characterLimit?: import('./types').KdsCharacterLimit | undefined;
|
|
48
|
-
readonly subText?: string | undefined;
|
|
49
|
-
readonly error?: boolean | undefined;
|
|
50
|
-
readonly validating?: boolean | undefined;
|
|
51
|
-
readonly preserveSubTextSpace?: boolean | undefined;
|
|
52
|
-
readonly customEscapeHandler?: (() => boolean) | undefined;
|
|
53
|
-
readonly ariaLabel?: string | undefined;
|
|
54
|
-
readonly ariaLabelledby?: string | undefined;
|
|
55
|
-
readonly wrapperFocusRing?: boolean | undefined;
|
|
56
|
-
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
57
|
-
readonly onBlur?: (() => any) | undefined;
|
|
58
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
59
|
-
$attrs: import('vue').Attrs;
|
|
60
|
-
$refs: {
|
|
61
|
-
[x: string]: unknown;
|
|
62
|
-
};
|
|
63
|
-
$slots: Readonly<{
|
|
64
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
65
|
-
}>;
|
|
66
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
67
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
68
|
-
$host: Element | null;
|
|
69
|
-
$emit: ((event: "update:modelValue", value: string) => void) & ((event: "blur") => void);
|
|
70
|
-
$el: HTMLDivElement;
|
|
71
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
72
|
-
modelValue?: string;
|
|
73
|
-
} & import('./types').KdsRichTextEditorProps> & Readonly<{
|
|
74
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
75
|
-
onBlur?: (() => any) | undefined;
|
|
76
|
-
}>, {
|
|
77
|
-
focus: () => void;
|
|
78
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
|
-
"update:modelValue": (value: string) => any;
|
|
80
|
-
blur: () => any;
|
|
81
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
82
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
83
|
-
created?: (() => void) | (() => void)[];
|
|
84
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
85
|
-
mounted?: (() => void) | (() => void)[];
|
|
86
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
87
|
-
updated?: (() => void) | (() => void)[];
|
|
88
|
-
activated?: (() => void) | (() => void)[];
|
|
89
|
-
deactivated?: (() => void) | (() => void)[];
|
|
90
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
91
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
92
|
-
destroyed?: (() => void) | (() => void)[];
|
|
93
|
-
unmounted?: (() => void) | (() => void)[];
|
|
94
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
95
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
96
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
97
|
-
};
|
|
98
|
-
$forceUpdate: () => void;
|
|
99
|
-
$nextTick: typeof import('vue').nextTick;
|
|
100
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
101
|
-
} & Readonly<{}> & Omit<Readonly<{
|
|
102
|
-
modelValue?: string;
|
|
103
|
-
} & import('./types').KdsRichTextEditorProps> & Readonly<{
|
|
104
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
105
|
-
onBlur?: (() => any) | undefined;
|
|
106
|
-
}>, "focus"> & {
|
|
107
|
-
focus: () => void;
|
|
108
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
109
|
-
$slots: {
|
|
110
|
-
customToolbar?(_: {
|
|
111
|
-
editor: import('@tiptap/vue-3').Editor;
|
|
112
|
-
tools: import('./toolbar/types').EditorTools;
|
|
113
|
-
hotkeyFormatter: (hotkeys: Array<import('packages/utils/dist/src').Hotkey>, getSeparator?: () => " " | "+") => string;
|
|
114
|
-
}): any;
|
|
115
|
-
};
|
|
116
|
-
}) | null;
|
|
117
|
-
}, HTMLDivElement>;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
118
17
|
export default _default;
|
|
119
18
|
//# sourceMappingURL=KdsRichTextInput.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsRichTextInput.vue.d.ts","sourceRoot":"","sources":["../../src/KdsRichTextInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsRichTextInput.vue.d.ts","sourceRoot":"","sources":["../../src/KdsRichTextInput.vue"],"names":[],"mappings":"AA4EA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,WAAW,GAAG,qBAAqB,CAAC;AAoCzC,KAAK,gBAAgB,GAAG;IACxB,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAkGxD,QAAA,MAAM,YAAY;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export { default as KdsCreateLinkModal } from './toolbar/KdsCreateLinkModal.vue'
|
|
|
4
4
|
export { kdsCharacterCountDisplay, kdsCharacterCountDisplays } from './enums';
|
|
5
5
|
export { kdsDefaultLinkToolOptions } from './utils/custom-link';
|
|
6
6
|
export type { KdsLinkToolOptions } from './utils/custom-link';
|
|
7
|
+
export type { EditorTools } from './toolbar/types';
|
|
7
8
|
export type * from './types';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
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,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,mBAAmB,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,mBAAmB,SAAS,CAAC"}
|