@zipify/wysiwyg 4.8.1 → 4.9.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/config/build/cli.config.js +2 -2
- package/config/build/example.config.ts +3 -1
- package/config/build/lib.config.ts +4 -2
- package/config/build/node.config.js +2 -2
- package/dist/cli.js +35 -35
- package/dist/node.js +25 -25
- package/dist/types/Wysiwyg.vue.d.ts +3 -1
- package/dist/types/components/base/Button.vue.d.ts +3 -2
- package/dist/types/components/base/ButtonToggle.vue.d.ts +3 -2
- package/dist/types/components/base/Checkbox.vue.d.ts +1 -1
- package/dist/types/components/base/FieldLabel.vue.d.ts +3 -2
- package/dist/types/components/base/Icon.vue.d.ts +1 -1
- package/dist/types/components/base/Modal.vue.d.ts +2 -1
- package/dist/types/components/base/ModalFloating.vue.d.ts +3 -2
- package/dist/types/components/base/NumberField.vue.d.ts +1 -1
- package/dist/types/components/base/Range.vue.d.ts +1 -1
- package/dist/types/components/base/ScrollView.vue.d.ts +3 -2
- package/dist/types/components/base/TextField.vue.d.ts +1 -1
- package/dist/types/components/base/colorPicker/ColorPicker.vue.d.ts +2 -1
- package/dist/types/components/base/dropdown/Dropdown.vue.d.ts +3 -2
- package/dist/types/components/base/dropdown/DropdownActivator.vue.d.ts +2 -1
- package/dist/types/components/base/dropdown/DropdownDivider.vue.d.ts +1 -1
- package/dist/types/components/base/dropdown/DropdownGroup.vue.d.ts +3 -2
- package/dist/types/components/base/dropdown/DropdownMenu.vue.d.ts +2 -1
- package/dist/types/components/base/dropdown/DropdownOption.vue.d.ts +2 -1
- package/dist/types/components/toolbar/ToolbarFloating.vue.d.ts +3 -2
- package/dist/types/components/toolbar/controls/LineHeightControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/ListControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/LinkControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/LinkControlHeader.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/destination/LinkControlDestination.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/destination/LinkControlPageBlock.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/destination/LinkControlUrl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/stylePreset/StylePresetControl.vue.d.ts +1 -1
- package/dist/wysiwyg.mjs +53 -3
- package/package.json +15 -15
|
@@ -88,6 +88,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
88
88
|
editor: import("@tiptap/vue-3").Editor;
|
|
89
89
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
90
90
|
"update-favorite-colors": (...args: any[]) => void;
|
|
91
|
+
"update:modelValue": (value: Content) => void;
|
|
91
92
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
93
|
presets: {
|
|
93
94
|
type: ArrayConstructor;
|
|
@@ -171,6 +172,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
171
172
|
};
|
|
172
173
|
}>> & Readonly<{
|
|
173
174
|
"onUpdate-favorite-colors"?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
"onUpdate:modelValue"?: ((value: Content) => any) | undefined;
|
|
174
176
|
}>, {
|
|
175
177
|
defaultFont: IFontJson;
|
|
176
178
|
device: string;
|
|
@@ -181,5 +183,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
181
183
|
popupMode: boolean;
|
|
182
184
|
window: Window & typeof globalThis;
|
|
183
185
|
aiComponent: Record<string, any>;
|
|
184
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
186
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
185
187
|
export default _default;
|
|
@@ -15,12 +15,13 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
15
15
|
readonly disabled?: boolean | undefined;
|
|
16
16
|
readonly icon?: boolean | undefined;
|
|
17
17
|
};
|
|
18
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
19
19
|
type __VLS_TemplateResult = {
|
|
20
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
20
21
|
slots: {
|
|
21
22
|
default?(_: {}): any;
|
|
22
23
|
};
|
|
23
24
|
refs: {};
|
|
24
|
-
|
|
25
|
+
rootEl: HTMLButtonElement;
|
|
25
26
|
};
|
|
26
27
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -11,8 +11,9 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
11
11
|
readonly value?: string | undefined;
|
|
12
12
|
readonly options?: unknown[] | undefined;
|
|
13
13
|
};
|
|
14
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
15
15
|
type __VLS_TemplateResult = {
|
|
16
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
16
17
|
slots: {
|
|
17
18
|
option?(_: {
|
|
18
19
|
option: unknown;
|
|
@@ -21,6 +22,6 @@ type __VLS_TemplateResult = {
|
|
|
21
22
|
}): any;
|
|
22
23
|
};
|
|
23
24
|
refs: {};
|
|
24
|
-
|
|
25
|
+
rootEl: HTMLDivElement;
|
|
25
26
|
};
|
|
26
27
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -6,5 +6,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
6
6
|
readonly value?: boolean | undefined;
|
|
7
7
|
readonly label?: string | undefined;
|
|
8
8
|
};
|
|
9
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLLabelElement>;
|
|
10
10
|
export default _default;
|
|
@@ -8,12 +8,13 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
8
8
|
$props: {
|
|
9
9
|
readonly fieldId?: string | undefined;
|
|
10
10
|
};
|
|
11
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLLabelElement>;
|
|
12
12
|
type __VLS_TemplateResult = {
|
|
13
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
13
14
|
slots: {
|
|
14
15
|
default?(_: {}): any;
|
|
15
16
|
};
|
|
16
17
|
refs: {};
|
|
17
|
-
|
|
18
|
+
rootEl: HTMLLabelElement;
|
|
18
19
|
};
|
|
19
20
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -7,5 +7,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
7
7
|
readonly size?: string | number | undefined;
|
|
8
8
|
readonly autoColor?: boolean | undefined;
|
|
9
9
|
};
|
|
10
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
11
|
export default _default;
|
|
@@ -26,12 +26,13 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
26
26
|
};
|
|
27
27
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
28
|
type __VLS_TemplateResult = {
|
|
29
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
29
30
|
slots: {
|
|
30
31
|
default?(_: {}): any;
|
|
31
32
|
};
|
|
32
33
|
refs: {
|
|
33
34
|
hostRef: any;
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
rootEl: any;
|
|
36
37
|
};
|
|
37
38
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -16,14 +16,15 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
16
16
|
readonly placementFlip?: boolean | unknown[] | undefined;
|
|
17
17
|
readonly offsets?: Function | unknown[] | undefined;
|
|
18
18
|
};
|
|
19
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
20
20
|
type __VLS_TemplateResult = {
|
|
21
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
21
22
|
slots: {
|
|
22
23
|
default?(_: {}): any;
|
|
23
24
|
};
|
|
24
25
|
refs: {
|
|
25
26
|
floatingRef: HTMLDivElement;
|
|
26
27
|
};
|
|
27
|
-
|
|
28
|
+
rootEl: HTMLDivElement;
|
|
28
29
|
};
|
|
29
30
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -18,5 +18,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
18
18
|
readonly fieldId?: string | undefined;
|
|
19
19
|
readonly units?: string | undefined;
|
|
20
20
|
};
|
|
21
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLLabelElement>;
|
|
22
22
|
export default _default;
|
|
@@ -12,5 +12,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
12
12
|
readonly step?: string | number | undefined;
|
|
13
13
|
readonly fieldId?: string | undefined;
|
|
14
14
|
};
|
|
15
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLInputElement>;
|
|
16
16
|
export default _default;
|
|
@@ -3,14 +3,15 @@ export default _default;
|
|
|
3
3
|
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
4
|
$slots: S;
|
|
5
5
|
});
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
7
7
|
type __VLS_TemplateResult = {
|
|
8
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
8
9
|
slots: {
|
|
9
10
|
default?(_: {}): any;
|
|
10
11
|
};
|
|
11
12
|
refs: {
|
|
12
13
|
hostRef: HTMLDivElement;
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
15
16
|
};
|
|
16
17
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -10,5 +10,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
10
10
|
readonly label?: string | undefined;
|
|
11
11
|
readonly placeholder?: string | undefined;
|
|
12
12
|
};
|
|
13
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
14
|
export default _default;
|
|
@@ -11,6 +11,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
11
11
|
};
|
|
12
12
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
13
|
type __VLS_TemplateResult = {
|
|
14
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
14
15
|
slots: {
|
|
15
16
|
activator?(_: {
|
|
16
17
|
isOpened: any;
|
|
@@ -22,6 +23,6 @@ type __VLS_TemplateResult = {
|
|
|
22
23
|
refs: {
|
|
23
24
|
pickerRef: any;
|
|
24
25
|
};
|
|
25
|
-
|
|
26
|
+
rootEl: any;
|
|
26
27
|
};
|
|
27
28
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -17,8 +17,9 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
17
17
|
readonly maxWidth?: number | undefined;
|
|
18
18
|
readonly isCustomized?: boolean | undefined;
|
|
19
19
|
};
|
|
20
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
20
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
21
21
|
type __VLS_TemplateResult = {
|
|
22
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
22
23
|
slots: {
|
|
23
24
|
activator?(_: any): any;
|
|
24
25
|
option?(_: any): any;
|
|
@@ -26,6 +27,6 @@ type __VLS_TemplateResult = {
|
|
|
26
27
|
refs: {
|
|
27
28
|
dropdownRef: HTMLDivElement;
|
|
28
29
|
};
|
|
29
|
-
|
|
30
|
+
rootEl: HTMLDivElement;
|
|
30
31
|
};
|
|
31
32
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -12,6 +12,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
12
12
|
};
|
|
13
13
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
type __VLS_TemplateResult = {
|
|
15
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
15
16
|
slots: {
|
|
16
17
|
default?(_: {
|
|
17
18
|
open: any;
|
|
@@ -19,6 +20,6 @@ type __VLS_TemplateResult = {
|
|
|
19
20
|
}): any;
|
|
20
21
|
};
|
|
21
22
|
refs: {};
|
|
22
|
-
|
|
23
|
+
rootEl: any;
|
|
23
24
|
};
|
|
24
25
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -8,14 +8,15 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
8
8
|
$props: {
|
|
9
9
|
readonly group?: Record<string, any> | undefined;
|
|
10
10
|
};
|
|
11
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
12
12
|
type __VLS_TemplateResult = {
|
|
13
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
13
14
|
slots: {
|
|
14
15
|
option?(_: {
|
|
15
16
|
option: any;
|
|
16
17
|
}): any;
|
|
17
18
|
};
|
|
18
19
|
refs: {};
|
|
19
|
-
|
|
20
|
+
rootEl: HTMLDivElement;
|
|
20
21
|
};
|
|
21
22
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -10,6 +10,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
10
10
|
};
|
|
11
11
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
type __VLS_TemplateResult = {
|
|
13
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
13
14
|
slots: {
|
|
14
15
|
option?(_: any): any;
|
|
15
16
|
option?(_: {
|
|
@@ -17,6 +18,6 @@ type __VLS_TemplateResult = {
|
|
|
17
18
|
}): any;
|
|
18
19
|
};
|
|
19
20
|
refs: {};
|
|
20
|
-
|
|
21
|
+
rootEl: any;
|
|
21
22
|
};
|
|
22
23
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -10,12 +10,13 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
10
10
|
};
|
|
11
11
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
type __VLS_TemplateResult = {
|
|
13
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
13
14
|
slots: {
|
|
14
15
|
default?(_: {}): any;
|
|
15
16
|
};
|
|
16
17
|
refs: {
|
|
17
18
|
optionRef: any;
|
|
18
19
|
};
|
|
19
|
-
|
|
20
|
+
rootEl: any;
|
|
20
21
|
};
|
|
21
22
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -10,14 +10,15 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
10
10
|
readonly referenceRef?: Record<string, any> | undefined;
|
|
11
11
|
readonly offsets?: unknown[] | undefined;
|
|
12
12
|
};
|
|
13
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
14
|
type __VLS_TemplateResult = {
|
|
15
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
15
16
|
slots: {
|
|
16
17
|
default?(_: {}): any;
|
|
17
18
|
};
|
|
18
19
|
refs: {
|
|
19
20
|
floatingRef: HTMLDivElement;
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
+
rootEl: HTMLDivElement;
|
|
22
23
|
};
|
|
23
24
|
declare var __VLS_inheritedAttrs: {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
$emit: (event: "remove-link", ...args: any[]) => void;
|
|
3
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
3
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
4
4
|
export default _default;
|
package/dist/types/components/toolbar/controls/link/destination/LinkControlDestination.vue.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
6
6
|
readonly link?: Record<string, any> | undefined;
|
|
7
7
|
readonly validator?: Record<string, any> | undefined;
|
|
8
8
|
};
|
|
9
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
10
10
|
export default _default;
|
package/dist/types/components/toolbar/controls/link/destination/LinkControlPageBlock.vue.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4
4
|
$props: {
|
|
5
5
|
readonly value?: number | undefined;
|
|
6
6
|
};
|
|
7
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
8
8
|
export default _default;
|
|
@@ -8,5 +8,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
8
8
|
readonly validator?: Record<string, any> | undefined;
|
|
9
9
|
readonly isTargetBlank?: boolean | undefined;
|
|
10
10
|
};
|
|
11
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
12
12
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
package/dist/wysiwyg.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import {
|
|
4
|
+
import { reactive, customRef, markRaw, defineComponent, h, Teleport, ref, getCurrentInstance, watchEffect, nextTick, unref, onBeforeUnmount, onMounted, openBlock, createElementBlock, renderSlot, normalizeClass, computed, toRef, watch, Fragment as Fragment$1, renderList, normalizeStyle, inject, onUnmounted, provide, createElementVNode, createVNode, toDisplayString, createCommentVNode, shallowRef, getCurrentScope, onScopeDispose, shallowReadonly, useCssVars, createBlock, Transition, withCtx, withDirectives, createTextVNode, mergeProps, normalizeProps, guardReactiveProps, withModifiers, resolveComponent, resolveDynamicComponent, KeepAlive, useModel, mergeModels } from "vue";
|
|
5
5
|
import { normalizeColor, ColorPicker } from "@zipify/colorpicker";
|
|
6
6
|
import SimpleBar from "simplebar";
|
|
7
7
|
function OrderedMap(content) {
|
|
@@ -10975,6 +10975,45 @@ const liftEmptyBlock$1 = (state, dispatch) => {
|
|
|
10975
10975
|
dispatch(state.tr.lift(range, target).scrollIntoView());
|
|
10976
10976
|
return true;
|
|
10977
10977
|
};
|
|
10978
|
+
function splitBlockAs(splitNode) {
|
|
10979
|
+
return (state, dispatch) => {
|
|
10980
|
+
let { $from, $to } = state.selection;
|
|
10981
|
+
if (state.selection instanceof NodeSelection && state.selection.node.isBlock) {
|
|
10982
|
+
if (!$from.parentOffset || !canSplit(state.doc, $from.pos))
|
|
10983
|
+
return false;
|
|
10984
|
+
if (dispatch)
|
|
10985
|
+
dispatch(state.tr.split($from.pos).scrollIntoView());
|
|
10986
|
+
return true;
|
|
10987
|
+
}
|
|
10988
|
+
if (!$from.parent.isBlock)
|
|
10989
|
+
return false;
|
|
10990
|
+
if (dispatch) {
|
|
10991
|
+
let atEnd = $to.parentOffset == $to.parent.content.size;
|
|
10992
|
+
let tr2 = state.tr;
|
|
10993
|
+
if (state.selection instanceof TextSelection || state.selection instanceof AllSelection)
|
|
10994
|
+
tr2.deleteSelection();
|
|
10995
|
+
let deflt = $from.depth == 0 ? null : defaultBlockAt$1($from.node(-1).contentMatchAt($from.indexAfter(-1)));
|
|
10996
|
+
let types = atEnd && deflt ? [{ type: deflt }] : void 0;
|
|
10997
|
+
let can = canSplit(tr2.doc, tr2.mapping.map($from.pos), 1, types);
|
|
10998
|
+
if (!types && !can && canSplit(tr2.doc, tr2.mapping.map($from.pos), 1, deflt ? [{ type: deflt }] : void 0)) {
|
|
10999
|
+
if (deflt)
|
|
11000
|
+
types = [{ type: deflt }];
|
|
11001
|
+
can = true;
|
|
11002
|
+
}
|
|
11003
|
+
if (can) {
|
|
11004
|
+
tr2.split(tr2.mapping.map($from.pos), 1, types);
|
|
11005
|
+
if (!atEnd && !$from.parentOffset && $from.parent.type != deflt) {
|
|
11006
|
+
let first2 = tr2.mapping.map($from.before()), $first = tr2.doc.resolve(first2);
|
|
11007
|
+
if (deflt && $from.node(-1).canReplaceWith($first.index(), $first.index() + 1, deflt))
|
|
11008
|
+
tr2.setNodeMarkup(tr2.mapping.map($from.before()), deflt);
|
|
11009
|
+
}
|
|
11010
|
+
}
|
|
11011
|
+
dispatch(tr2.scrollIntoView());
|
|
11012
|
+
}
|
|
11013
|
+
return true;
|
|
11014
|
+
};
|
|
11015
|
+
}
|
|
11016
|
+
const splitBlock$1 = splitBlockAs();
|
|
10978
11017
|
const selectParentNode$1 = (state, dispatch) => {
|
|
10979
11018
|
let { $from, to } = state.selection, pos;
|
|
10980
11019
|
let same = $from.sharedDepth(to);
|
|
@@ -11112,6 +11151,19 @@ function setBlockType(nodeType, attrs = null) {
|
|
|
11112
11151
|
return true;
|
|
11113
11152
|
};
|
|
11114
11153
|
}
|
|
11154
|
+
function chainCommands(...commands2) {
|
|
11155
|
+
return function(state, dispatch, view) {
|
|
11156
|
+
for (let i = 0; i < commands2.length; i++)
|
|
11157
|
+
if (commands2[i](state, dispatch, view))
|
|
11158
|
+
return true;
|
|
11159
|
+
return false;
|
|
11160
|
+
};
|
|
11161
|
+
}
|
|
11162
|
+
chainCommands(deleteSelection$1, joinBackward$1, selectNodeBackward$1);
|
|
11163
|
+
chainCommands(deleteSelection$1, joinForward$1, selectNodeForward$1);
|
|
11164
|
+
({
|
|
11165
|
+
"Enter": chainCommands(newlineInCode$1, createParagraphNear$1, liftEmptyBlock$1, splitBlock$1)
|
|
11166
|
+
});
|
|
11115
11167
|
typeof navigator != "undefined" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os != "undefined" && os.platform ? os.platform() == "darwin" : false;
|
|
11116
11168
|
function wrapInList$1(listType, attrs = null) {
|
|
11117
11169
|
return function(state, dispatch) {
|
|
@@ -15385,7 +15437,6 @@ function detectOverflow$1(state, options) {
|
|
|
15385
15437
|
var popperOffsets2 = computeOffsets({
|
|
15386
15438
|
reference: referenceClientRect,
|
|
15387
15439
|
element: popperRect,
|
|
15388
|
-
strategy: "absolute",
|
|
15389
15440
|
placement
|
|
15390
15441
|
});
|
|
15391
15442
|
var popperClientRect = rectToClientRect$1(Object.assign({}, popperRect, popperOffsets2));
|
|
@@ -15632,7 +15683,6 @@ function popperOffsets(_ref) {
|
|
|
15632
15683
|
state.modifiersData[name] = computeOffsets({
|
|
15633
15684
|
reference: state.rects.reference,
|
|
15634
15685
|
element: state.rects.popper,
|
|
15635
|
-
strategy: "absolute",
|
|
15636
15686
|
placement: state.placement
|
|
15637
15687
|
});
|
|
15638
15688
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zipify/wysiwyg",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"description": "Zipify modification of TipTap text editor",
|
|
5
5
|
"main": "dist/wysiwyg.mjs",
|
|
6
6
|
"types": "dist/wysiwyg.d.ts",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"lodash": "^4.17.21"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@zipify/colorpicker": "^4.
|
|
52
|
+
"@zipify/colorpicker": "^4.1",
|
|
53
53
|
"simplebar": "^6.2",
|
|
54
|
-
"vue": "^3.
|
|
54
|
+
"vue": "^3.5"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"@zipify/colorpicker": {
|
|
@@ -72,22 +72,22 @@
|
|
|
72
72
|
"@babel/runtime": "^7.25.7",
|
|
73
73
|
"@optimize-lodash/rollup-plugin": "^5.0.0",
|
|
74
74
|
"@rollup/plugin-alias": "^5.1.1",
|
|
75
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
75
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
76
76
|
"@rollup/plugin-json": "^6.1.0",
|
|
77
77
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
78
78
|
"@rollup/plugin-replace": "^6.0.1",
|
|
79
79
|
"@rushstack/eslint-patch": "^1.10.4",
|
|
80
|
-
"@types/jest": "^29.5.
|
|
81
|
-
"@types/node": "^
|
|
80
|
+
"@types/jest": "^29.5.14",
|
|
81
|
+
"@types/node": "^22.9.0",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
83
83
|
"@typescript-eslint/parser": "^7.18.0",
|
|
84
|
-
"@vitejs/plugin-vue": "^5.
|
|
84
|
+
"@vitejs/plugin-vue": "^5.2.0",
|
|
85
85
|
"@vue/eslint-config-typescript": "^13.0.0",
|
|
86
86
|
"@vue/test-utils": "^2.4.6",
|
|
87
87
|
"@vue/tsconfig": "^0.5.1",
|
|
88
88
|
"@vue/vue3-jest": "^29.2.6",
|
|
89
|
-
"@zipify/colorpicker": "^4.
|
|
90
|
-
"@zipify/eslint-config": "^1.
|
|
89
|
+
"@zipify/colorpicker": "^4.1.0",
|
|
90
|
+
"@zipify/eslint-config": "^1.6.0",
|
|
91
91
|
"babel-jest": "^29.7.0",
|
|
92
92
|
"esbuild-jest": "^0.5.0",
|
|
93
93
|
"eslint": "^8.57.1",
|
|
@@ -100,20 +100,20 @@
|
|
|
100
100
|
"jest-environment-jsdom": "^29.7.0",
|
|
101
101
|
"lint-staged": "^15.2.10",
|
|
102
102
|
"postcss-html": "^1.7.0",
|
|
103
|
-
"release-it": "^17.
|
|
104
|
-
"rollup": "^4.
|
|
103
|
+
"release-it": "^17.10.0",
|
|
104
|
+
"rollup": "^4.27.2",
|
|
105
105
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
106
106
|
"rollup-plugin-esbuild-minify": "^1.1.2",
|
|
107
107
|
"simplebar": "^6.2.7",
|
|
108
108
|
"stylelint": "^14.16.1",
|
|
109
109
|
"svgo": "^3.3.2",
|
|
110
110
|
"typescript": "^5.6.3",
|
|
111
|
-
"vite": "^5.4.
|
|
112
|
-
"vue": "3.5.
|
|
113
|
-
"vue-tsc": "^2.1.
|
|
111
|
+
"vite": "^5.4.11",
|
|
112
|
+
"vue": "3.5.13",
|
|
113
|
+
"vue-tsc": "^2.1.10"
|
|
114
114
|
},
|
|
115
115
|
"engines": {
|
|
116
|
-
"node": ">=
|
|
116
|
+
"node": ">=22.11.0"
|
|
117
117
|
},
|
|
118
118
|
"engineStrict": true,
|
|
119
119
|
"os": [
|