@zipify/wysiwyg 4.11.0 → 4.11.2
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/.release-it.json +2 -1
- package/dist/cli.js +28 -28
- package/dist/node.js +26 -26
- package/dist/types/Wysiwyg.vue.d.ts +7 -8
- package/dist/types/components/base/Button.vue.d.ts +5 -10
- package/dist/types/components/base/ButtonToggle.vue.d.ts +9 -14
- package/dist/types/components/base/Checkbox.vue.d.ts +1 -1
- package/dist/types/components/base/FieldLabel.vue.d.ts +5 -10
- package/dist/types/components/base/Icon.vue.d.ts +1 -1
- package/dist/types/components/base/Modal.vue.d.ts +5 -14
- package/dist/types/components/base/ModalFloating.vue.d.ts +5 -14
- 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 +5 -14
- package/dist/types/components/base/TextField.vue.d.ts +1 -1
- package/dist/types/components/base/colorPicker/ColorPicker.vue.d.ts +10 -517
- package/dist/types/components/base/dropdown/Dropdown.vue.d.ts +6 -15
- package/dist/types/components/base/dropdown/DropdownActivator.vue.d.ts +7 -12
- package/dist/types/components/base/dropdown/DropdownDivider.vue.d.ts +1 -1
- package/dist/types/components/base/dropdown/DropdownGroup.vue.d.ts +7 -12
- package/dist/types/components/base/dropdown/DropdownMenu.vue.d.ts +6 -12
- package/dist/types/components/base/dropdown/DropdownOption.vue.d.ts +5 -14
- package/dist/types/components/toolbar/ToolbarFloating.vue.d.ts +5 -14
- package/dist/types/components/toolbar/controls/AlignmentControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/CaseStyleControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/FontFamilyControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/FontSizeControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/FontWeightControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/ItalicControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/LineHeightControl.vue.d.ts +1 -3
- package/dist/types/components/toolbar/controls/ListControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/RemoveFormatControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/StrikeThroughControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/SuperscriptControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/UnderlineControl.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/LinkControl.vue.d.ts +1 -3
- package/dist/types/components/toolbar/controls/link/LinkControlHeader.vue.d.ts +1 -1
- package/dist/types/components/toolbar/controls/link/composables/useLink.d.ts +11 -9
- 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/types/components/toolbar/controls/stylePreset/StylePresetOption.vue.d.ts +2 -4
- package/dist/types/enums/Alignment.d.ts +7 -0
- package/dist/types/enums/CaseStyle.d.ts +5 -0
- package/dist/types/enums/Device.d.ts +7 -0
- package/dist/types/enums/LinkDestination.d.ts +4 -0
- package/dist/types/enums/LinkTarget.d.ts +4 -0
- package/dist/types/enums/ListType.d.ts +10 -0
- package/dist/types/enums/MarkGroup.d.ts +4 -0
- package/dist/types/enums/NodeType.d.ts +9 -0
- package/dist/types/enums/TextSetting.d.ts +19 -0
- package/dist/types/enums/index.d.ts +9 -9
- package/dist/types/extensions/Alignment.d.ts +2 -1
- package/dist/types/extensions/CaseStyle.d.ts +2 -1
- package/dist/types/models/Font.d.ts +1 -0
- package/dist/wysiwyg.css +27 -27
- package/dist/wysiwyg.mjs +135 -165
- package/example/fonts.js +111 -111
- package/lib/Wysiwyg.vue +3 -3
- package/lib/__tests__/utils/buildTestExtensions.js +6 -6
- package/lib/components/toolbar/Toolbar.vue +2 -2
- package/lib/components/toolbar/__tests__/Toolbar.test.js +5 -5
- package/lib/components/toolbar/controls/AlignmentControl.vue +7 -7
- package/lib/components/toolbar/controls/CaseStyleControl.vue +5 -5
- package/lib/components/toolbar/controls/FontColorControl.vue +2 -2
- package/lib/components/toolbar/controls/FontFamilyControl.vue +2 -2
- package/lib/components/toolbar/controls/FontSizeControl.vue +2 -2
- package/lib/components/toolbar/controls/FontWeightControl.vue +2 -2
- package/lib/components/toolbar/controls/ItalicControl.vue +2 -2
- package/lib/components/toolbar/controls/LineHeightControl.vue +2 -2
- package/lib/components/toolbar/controls/ListControl.vue +5 -5
- package/lib/components/toolbar/controls/__tests__/AlignmentControl.test.js +13 -13
- package/lib/components/toolbar/controls/__tests__/CaseStyleControl.test.js +4 -4
- package/lib/components/toolbar/controls/__tests__/ListControl.test.js +10 -10
- package/lib/components/toolbar/controls/__tests__/StylePresetControl.test.js +6 -6
- package/lib/components/toolbar/controls/link/LinkControl.vue +5 -5
- package/lib/components/toolbar/controls/link/composables/__tests__/useLink.test.js +20 -20
- package/lib/components/toolbar/controls/link/composables/useLink.js +10 -10
- package/lib/components/toolbar/controls/link/destination/LinkControlDestination.vue +10 -7
- package/lib/components/toolbar/controls/link/destination/LinkControlPageBlock.vue +1 -1
- package/lib/enums/{Alignments.ts → Alignment.ts} +0 -8
- package/lib/enums/{CaseStyles.ts → CaseStyle.ts} +0 -6
- package/lib/enums/{Devices.ts → Device.ts} +0 -8
- package/lib/enums/LinkDestination.ts +4 -0
- package/lib/enums/LinkTarget.ts +4 -0
- package/lib/enums/{ListTypes.ts → ListType.ts} +0 -9
- package/lib/enums/MarkGroup.ts +4 -0
- package/lib/enums/{NodeTypes.ts → NodeType.ts} +0 -8
- package/lib/enums/{TextSettings.ts → TextSetting.ts} +0 -11
- package/lib/enums/index.ts +9 -9
- package/lib/extensions/Alignment.js +13 -11
- package/lib/extensions/BackgroundColor.js +2 -2
- package/lib/extensions/CaseStyle.js +8 -6
- package/lib/extensions/FontColor.js +4 -4
- package/lib/extensions/FontFamily.js +8 -6
- package/lib/extensions/FontSize.js +3 -3
- package/lib/extensions/FontStyle.js +3 -3
- package/lib/extensions/FontWeight.js +3 -3
- package/lib/extensions/LineHeight.js +4 -4
- package/lib/extensions/Link.js +11 -11
- package/lib/extensions/Margin.js +4 -4
- package/lib/extensions/StylePreset.js +18 -12
- package/lib/extensions/Superscript.js +2 -2
- package/lib/extensions/TextDecoration.js +2 -2
- package/lib/extensions/__tests__/Alignment.test.js +21 -21
- package/lib/extensions/__tests__/BackgroundColor.test.js +4 -4
- package/lib/extensions/__tests__/CaseStyle.test.js +6 -6
- package/lib/extensions/__tests__/FontColor.test.js +4 -4
- package/lib/extensions/__tests__/FontFamily.test.js +10 -10
- package/lib/extensions/__tests__/FontSize.test.js +9 -9
- package/lib/extensions/__tests__/FontStyle.test.js +6 -6
- package/lib/extensions/__tests__/FontWeight.test.js +11 -11
- package/lib/extensions/__tests__/LineHeight.test.js +2 -2
- package/lib/extensions/__tests__/Link.test.js +13 -13
- package/lib/extensions/__tests__/StylePreset.test.js +29 -29
- package/lib/extensions/__tests__/Superscript.test.js +5 -5
- package/lib/extensions/__tests__/TextDecoration.test.js +14 -14
- package/lib/extensions/core/Document.js +3 -3
- package/lib/extensions/core/Heading.js +2 -2
- package/lib/extensions/core/NodeProcessor.js +8 -8
- package/lib/extensions/core/Paragraph.js +2 -2
- package/lib/extensions/core/__tests__/NodeProcessor.test.js +68 -68
- package/lib/extensions/core/__tests__/TextProcessor.test.js +13 -13
- package/lib/extensions/list/ListItem.js +5 -5
- package/lib/extensions/list/__tests__/List.test.js +11 -11
- package/lib/extensions/proseMirror/PasteLinkPlugin.js +4 -4
- package/lib/extensions/proseMirror/PastePlugin.js +2 -2
- package/lib/models/Font.ts +4 -0
- package/lib/services/ContentSerializer.js +3 -3
- package/lib/services/StylePresetRenderer.js +4 -4
- package/lib/services/__tests__/NodeFactory.test.js +11 -11
- package/lib/services/__tests__/NodeSelector.test.js +18 -18
- package/lib/services/normalizer/JsonNormalizer.js +5 -5
- package/lib/services/normalizer/__tests__/JsonNormalizer.test.js +15 -15
- package/lib/utils/__tests__/convertAlignment.test.js +3 -3
- package/lib/utils/convertAlignment.js +4 -4
- package/package.json +17 -17
- package/lib/enums/LinkDestinations.ts +0 -9
- package/lib/enums/LinkTargets.ts +0 -9
- package/lib/enums/MarkGroups.ts +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
2
|
export default _default;
|
|
3
|
-
type
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
4
|
$slots: S;
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
@@ -8,16 +8,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
8
8
|
$props: {
|
|
9
9
|
readonly option?: Record<string, any> | undefined;
|
|
10
10
|
};
|
|
11
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
type __VLS_TemplateResult = {
|
|
15
|
-
attrs: Partial<{}>;
|
|
16
|
-
slots: {
|
|
17
|
-
default?(_: {}): any;
|
|
18
|
-
};
|
|
19
|
-
refs: {
|
|
20
|
-
optionRef: any;
|
|
21
|
-
};
|
|
22
|
-
rootEl: any;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
default?: ((props: {}) => any) | undefined;
|
|
23
14
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
2
|
export default _default;
|
|
3
|
-
type
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
4
|
$slots: S;
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
@@ -10,16 +10,7 @@ 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, {
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
type __VLS_TemplateResult = {
|
|
17
|
-
attrs: Partial<{}>;
|
|
18
|
-
slots: {
|
|
19
|
-
default?(_: {}): any;
|
|
20
|
-
};
|
|
21
|
-
refs: {
|
|
22
|
-
floatingRef: HTMLDivElement;
|
|
23
|
-
};
|
|
24
|
-
rootEl: HTMLDivElement;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
type __VLS_Slots = {
|
|
15
|
+
default?: ((props: {}) => any) | undefined;
|
|
25
16
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
$emit: (event: "applied", ...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, {}, any>;
|
|
4
4
|
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, {}, any>;
|
|
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, {}, any>;
|
|
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, {}, any>;
|
|
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, {}, any>;
|
|
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, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +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, {
|
|
2
|
-
wrapperRef: HTMLDivElement;
|
|
3
|
-
}, HTMLDivElement>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
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, {}, any>;
|
|
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, {}, any>;
|
|
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, {}, any>;
|
|
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, {}, any>;
|
|
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, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +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, {
|
|
2
|
-
wrapperRef: HTMLDivElement;
|
|
3
|
-
}, HTMLDivElement>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
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, {}, any>;
|
|
4
4
|
export default _default;
|
|
@@ -2,16 +2,16 @@ export function useLink(): {
|
|
|
2
2
|
editor: any;
|
|
3
3
|
linkData: import("vue").Ref<{
|
|
4
4
|
text: string;
|
|
5
|
-
target:
|
|
6
|
-
destination:
|
|
5
|
+
target: LinkTarget;
|
|
6
|
+
destination: LinkDestination;
|
|
7
7
|
}, {
|
|
8
8
|
text: string;
|
|
9
|
-
target:
|
|
10
|
-
destination:
|
|
9
|
+
target: LinkTarget;
|
|
10
|
+
destination: LinkDestination;
|
|
11
11
|
} | {
|
|
12
12
|
text: string;
|
|
13
|
-
target:
|
|
14
|
-
destination:
|
|
13
|
+
target: LinkTarget;
|
|
14
|
+
destination: LinkDestination;
|
|
15
15
|
}>;
|
|
16
16
|
destinationHrefs: import("vue").Ref<{
|
|
17
17
|
block: any;
|
|
@@ -24,11 +24,11 @@ export function useLink(): {
|
|
|
24
24
|
url: string;
|
|
25
25
|
}>;
|
|
26
26
|
currentDestination: import("vue").Ref<{
|
|
27
|
-
id:
|
|
27
|
+
id: LinkDestination;
|
|
28
28
|
}, {
|
|
29
|
-
id:
|
|
29
|
+
id: LinkDestination;
|
|
30
30
|
} | {
|
|
31
|
-
id:
|
|
31
|
+
id: LinkDestination;
|
|
32
32
|
}>;
|
|
33
33
|
resetDestinations: () => void;
|
|
34
34
|
prepareInitialFields: () => void;
|
|
@@ -38,3 +38,5 @@ export function useLink(): {
|
|
|
38
38
|
removeLink: () => void;
|
|
39
39
|
updateText: (text: any) => void;
|
|
40
40
|
};
|
|
41
|
+
import { LinkTarget } from '@/enums';
|
|
42
|
+
import { LinkDestination } from '@/enums';
|
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, {}, any>;
|
|
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, {}, any>;
|
|
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, {}, any>;
|
|
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, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -25,9 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
25
|
$props: {
|
|
26
26
|
readonly option?: Record<string, any> | undefined;
|
|
27
27
|
};
|
|
28
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {
|
|
29
|
-
optionRef: any;
|
|
30
|
-
}, any, import("vue").ComponentProvideOptions, {
|
|
28
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
31
29
|
P: {};
|
|
32
30
|
B: {};
|
|
33
31
|
D: {};
|
|
@@ -50,7 +48,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
50
48
|
};
|
|
51
49
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
52
50
|
$slots: {
|
|
53
|
-
default
|
|
51
|
+
default?: ((props: {}) => any) | undefined;
|
|
54
52
|
};
|
|
55
53
|
});
|
|
56
54
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum TextSetting {
|
|
2
|
+
ALIGNMENT = "alignment",
|
|
3
|
+
BACKGROUND_COLOR = "background_color",
|
|
4
|
+
FONT_COLOR = "font_color",
|
|
5
|
+
FONT_FAMILY = "font_family",
|
|
6
|
+
FONT_SIZE = "font_size",
|
|
7
|
+
FONT_STYLE = "font_style",
|
|
8
|
+
FONT_WEIGHT = "font_weight",
|
|
9
|
+
LINE_HEIGHT = "line_height",
|
|
10
|
+
TEXT_DECORATION = "text_decoration",
|
|
11
|
+
SUPERSCRIPT = "superscript",
|
|
12
|
+
MARGIN = "margin",
|
|
13
|
+
LINK = "link",
|
|
14
|
+
STYLE_PRESET = "style_preset"
|
|
15
|
+
}
|
|
16
|
+
export declare const TextAttributeSettingList: TextSetting[];
|
|
17
|
+
export declare const TextPresetAttributeSettingList: TextSetting[];
|
|
18
|
+
export declare const TextInlineMarkList: TextSetting[];
|
|
19
|
+
export declare const TextBlockMarkList: TextSetting[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
1
|
+
export * from './Device';
|
|
2
|
+
export * from './CaseStyle';
|
|
3
|
+
export * from './Alignment';
|
|
4
|
+
export * from './NodeType';
|
|
5
|
+
export * from './ListType';
|
|
6
|
+
export * from './TextSetting';
|
|
7
|
+
export * from './MarkGroup';
|
|
8
|
+
export * from './LinkTarget';
|
|
9
|
+
export * from './LinkDestination';
|
|
@@ -10,6 +10,7 @@ export declare class Font {
|
|
|
10
10
|
weights: string[];
|
|
11
11
|
constructor({ name, category, styles }: IFontJson);
|
|
12
12
|
private getWeights;
|
|
13
|
+
get isItalicOnly(): boolean;
|
|
13
14
|
isWeightSupported(weight: string): boolean;
|
|
14
15
|
isItalicSupported(weight: string): boolean;
|
|
15
16
|
isWeightItalicOnly(weight: string): boolean;
|
package/dist/wysiwyg.css
CHANGED
|
@@ -546,48 +546,48 @@
|
|
|
546
546
|
line-height: var(--zw-line-height-xxs);
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
.zw-font-family-control[data-v-
|
|
549
|
+
.zw-font-family-control[data-v-e3657967] {
|
|
550
550
|
width: 96px;
|
|
551
551
|
}
|
|
552
|
-
.zw-font-family-control__option[data-v-
|
|
552
|
+
.zw-font-family-control__option[data-v-e3657967] {
|
|
553
553
|
font-weight: 400;
|
|
554
554
|
font-family: var(--zw-font-family-option);
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
.zw-font-weight-control[data-v-
|
|
557
|
+
.zw-font-weight-control[data-v-6c8237c7] {
|
|
558
558
|
width: 60px;
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
.zw-font-size-control[data-v-
|
|
561
|
+
.zw-font-size-control[data-v-779fe48e] {
|
|
562
562
|
width: 72px;
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
-
.zw-line-height-control__modal[data-v-
|
|
565
|
+
.zw-line-height-control__modal[data-v-643242a1] {
|
|
566
566
|
padding: var(--zw-offset-sm);
|
|
567
567
|
}
|
|
568
|
-
.zw-line-height-control__row[data-v-
|
|
568
|
+
.zw-line-height-control__row[data-v-643242a1] {
|
|
569
569
|
display: flex;
|
|
570
570
|
align-items: center;
|
|
571
571
|
}
|
|
572
|
-
.zw-line-height-control__range[data-v-
|
|
572
|
+
.zw-line-height-control__range[data-v-643242a1] {
|
|
573
573
|
width: 156px;
|
|
574
574
|
}
|
|
575
|
-
.zw-line-height-control__field[data-v-
|
|
575
|
+
.zw-line-height-control__field[data-v-643242a1] {
|
|
576
576
|
width: 64px;
|
|
577
577
|
margin-left: var(--zw-offset-sm);
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
.zpa-list-control[data-v-
|
|
580
|
+
.zpa-list-control[data-v-55962f5e] {
|
|
581
581
|
display: flex;
|
|
582
582
|
}
|
|
583
|
-
.zpa-list-control[data-v-
|
|
583
|
+
.zpa-list-control[data-v-55962f5e]:hover {
|
|
584
584
|
color: rgb(var(--zw-color-white));
|
|
585
585
|
background-color: rgb(var(--zw-color-n5));
|
|
586
586
|
}
|
|
587
|
-
.zw-list-control__activator[data-v-
|
|
587
|
+
.zw-list-control__activator[data-v-55962f5e] {
|
|
588
588
|
padding: 0 var(--zw-offset-xs);
|
|
589
589
|
}
|
|
590
|
-
.zw-list-control__option[data-v-
|
|
590
|
+
.zw-list-control__option[data-v-55962f5e] {
|
|
591
591
|
padding: 0 var(--zw-offset-xs);
|
|
592
592
|
display: flex;
|
|
593
593
|
}
|
|
@@ -623,17 +623,17 @@
|
|
|
623
623
|
color: rgb(var(--zw-color-white));
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
-
.zw-link-modal[data-v-
|
|
626
|
+
.zw-link-modal[data-v-ebae331e] {
|
|
627
627
|
width: 266px;
|
|
628
628
|
}
|
|
629
|
-
.zw-link-modal__body[data-v-
|
|
629
|
+
.zw-link-modal__body[data-v-ebae331e] {
|
|
630
630
|
padding: var(--zw-offset-sm);
|
|
631
631
|
}
|
|
632
|
-
.zw-link-modal__actions[data-v-
|
|
632
|
+
.zw-link-modal__actions[data-v-ebae331e] {
|
|
633
633
|
display: flex;
|
|
634
634
|
justify-content: flex-end;
|
|
635
635
|
}
|
|
636
|
-
[data-v-
|
|
636
|
+
[data-v-ebae331e] .zw-link-modal-dropdown__option {
|
|
637
637
|
width: 234px;
|
|
638
638
|
}
|
|
639
639
|
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
background-color: rgb(var(--zw-color-n30));
|
|
686
686
|
}
|
|
687
687
|
|
|
688
|
-
.zw-toolbar[data-v-
|
|
688
|
+
.zw-toolbar[data-v-da0b6f48] {
|
|
689
689
|
border: 1px solid rgba(var(--zw-color-white), 0.2);
|
|
690
690
|
border-radius: 2px;
|
|
691
691
|
background-color: rgba(var(--zw-color-n15), 0.9);
|
|
@@ -695,10 +695,10 @@
|
|
|
695
695
|
z-index: 999999;
|
|
696
696
|
text-align: left;
|
|
697
697
|
position: fixed;
|
|
698
|
-
--zw-toolbar-offset-y: calc(var(--
|
|
698
|
+
--zw-toolbar-offset-y: calc(var(--35f1c9c0) * 1px)
|
|
699
699
|
}
|
|
700
|
-
.zw-toolbar[data-v-
|
|
701
|
-
.zw-toolbar[data-v-
|
|
700
|
+
.zw-toolbar[data-v-da0b6f48]::before,
|
|
701
|
+
.zw-toolbar[data-v-da0b6f48]::after {
|
|
702
702
|
content: "";
|
|
703
703
|
display: block;
|
|
704
704
|
width: 100%;
|
|
@@ -706,21 +706,21 @@
|
|
|
706
706
|
position: absolute;
|
|
707
707
|
--zw-toolbar-safe-zone: calc(-1 * var(--zw-toolbar-offset-y));
|
|
708
708
|
}
|
|
709
|
-
.zw-toolbar[data-v-
|
|
709
|
+
.zw-toolbar[data-v-da0b6f48]::before {
|
|
710
710
|
top: var(--zw-toolbar-safe-zone);
|
|
711
711
|
}
|
|
712
|
-
.zw-toolbar[data-v-
|
|
712
|
+
.zw-toolbar[data-v-da0b6f48]::after {
|
|
713
713
|
bottom: var(--zw-toolbar-safe-zone);
|
|
714
714
|
}
|
|
715
|
-
.zw-toolbar--enter-active[data-v-
|
|
716
|
-
.zw-toolbar--leave-active[data-v-
|
|
715
|
+
.zw-toolbar--enter-active[data-v-da0b6f48],
|
|
716
|
+
.zw-toolbar--leave-active[data-v-da0b6f48] {
|
|
717
717
|
transition: opacity 150ms ease-out;
|
|
718
718
|
}
|
|
719
|
-
.zw-toolbar--leave-active[data-v-
|
|
719
|
+
.zw-toolbar--leave-active[data-v-da0b6f48] {
|
|
720
720
|
transition: opacity 0s ease-in;
|
|
721
721
|
}
|
|
722
|
-
.zw-toolbar--enter-from[data-v-
|
|
723
|
-
.zw-toolbar--leave-to[data-v-
|
|
722
|
+
.zw-toolbar--enter-from[data-v-da0b6f48],
|
|
723
|
+
.zw-toolbar--leave-to[data-v-da0b6f48] {
|
|
724
724
|
opacity: 0;
|
|
725
725
|
}
|
|
726
726
|
.zw-wysiwyg {
|