@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.
Files changed (141) hide show
  1. package/.release-it.json +2 -1
  2. package/dist/cli.js +28 -28
  3. package/dist/node.js +26 -26
  4. package/dist/types/Wysiwyg.vue.d.ts +7 -8
  5. package/dist/types/components/base/Button.vue.d.ts +5 -10
  6. package/dist/types/components/base/ButtonToggle.vue.d.ts +9 -14
  7. package/dist/types/components/base/Checkbox.vue.d.ts +1 -1
  8. package/dist/types/components/base/FieldLabel.vue.d.ts +5 -10
  9. package/dist/types/components/base/Icon.vue.d.ts +1 -1
  10. package/dist/types/components/base/Modal.vue.d.ts +5 -14
  11. package/dist/types/components/base/ModalFloating.vue.d.ts +5 -14
  12. package/dist/types/components/base/NumberField.vue.d.ts +1 -1
  13. package/dist/types/components/base/Range.vue.d.ts +1 -1
  14. package/dist/types/components/base/ScrollView.vue.d.ts +5 -14
  15. package/dist/types/components/base/TextField.vue.d.ts +1 -1
  16. package/dist/types/components/base/colorPicker/ColorPicker.vue.d.ts +10 -517
  17. package/dist/types/components/base/dropdown/Dropdown.vue.d.ts +6 -15
  18. package/dist/types/components/base/dropdown/DropdownActivator.vue.d.ts +7 -12
  19. package/dist/types/components/base/dropdown/DropdownDivider.vue.d.ts +1 -1
  20. package/dist/types/components/base/dropdown/DropdownGroup.vue.d.ts +7 -12
  21. package/dist/types/components/base/dropdown/DropdownMenu.vue.d.ts +6 -12
  22. package/dist/types/components/base/dropdown/DropdownOption.vue.d.ts +5 -14
  23. package/dist/types/components/toolbar/ToolbarFloating.vue.d.ts +5 -14
  24. package/dist/types/components/toolbar/controls/AlignmentControl.vue.d.ts +1 -1
  25. package/dist/types/components/toolbar/controls/CaseStyleControl.vue.d.ts +1 -1
  26. package/dist/types/components/toolbar/controls/FontFamilyControl.vue.d.ts +1 -1
  27. package/dist/types/components/toolbar/controls/FontSizeControl.vue.d.ts +1 -1
  28. package/dist/types/components/toolbar/controls/FontWeightControl.vue.d.ts +1 -1
  29. package/dist/types/components/toolbar/controls/ItalicControl.vue.d.ts +1 -1
  30. package/dist/types/components/toolbar/controls/LineHeightControl.vue.d.ts +1 -3
  31. package/dist/types/components/toolbar/controls/ListControl.vue.d.ts +1 -1
  32. package/dist/types/components/toolbar/controls/RemoveFormatControl.vue.d.ts +1 -1
  33. package/dist/types/components/toolbar/controls/StrikeThroughControl.vue.d.ts +1 -1
  34. package/dist/types/components/toolbar/controls/SuperscriptControl.vue.d.ts +1 -1
  35. package/dist/types/components/toolbar/controls/UnderlineControl.vue.d.ts +1 -1
  36. package/dist/types/components/toolbar/controls/link/LinkControl.vue.d.ts +1 -3
  37. package/dist/types/components/toolbar/controls/link/LinkControlHeader.vue.d.ts +1 -1
  38. package/dist/types/components/toolbar/controls/link/composables/useLink.d.ts +11 -9
  39. package/dist/types/components/toolbar/controls/link/destination/LinkControlDestination.vue.d.ts +1 -1
  40. package/dist/types/components/toolbar/controls/link/destination/LinkControlPageBlock.vue.d.ts +1 -1
  41. package/dist/types/components/toolbar/controls/link/destination/LinkControlUrl.vue.d.ts +1 -1
  42. package/dist/types/components/toolbar/controls/stylePreset/StylePresetControl.vue.d.ts +1 -1
  43. package/dist/types/components/toolbar/controls/stylePreset/StylePresetOption.vue.d.ts +2 -4
  44. package/dist/types/enums/Alignment.d.ts +7 -0
  45. package/dist/types/enums/CaseStyle.d.ts +5 -0
  46. package/dist/types/enums/Device.d.ts +7 -0
  47. package/dist/types/enums/LinkDestination.d.ts +4 -0
  48. package/dist/types/enums/LinkTarget.d.ts +4 -0
  49. package/dist/types/enums/ListType.d.ts +10 -0
  50. package/dist/types/enums/MarkGroup.d.ts +4 -0
  51. package/dist/types/enums/NodeType.d.ts +9 -0
  52. package/dist/types/enums/TextSetting.d.ts +19 -0
  53. package/dist/types/enums/index.d.ts +9 -9
  54. package/dist/types/extensions/Alignment.d.ts +2 -1
  55. package/dist/types/extensions/CaseStyle.d.ts +2 -1
  56. package/dist/types/models/Font.d.ts +1 -0
  57. package/dist/wysiwyg.css +27 -27
  58. package/dist/wysiwyg.mjs +135 -165
  59. package/example/fonts.js +111 -111
  60. package/lib/Wysiwyg.vue +3 -3
  61. package/lib/__tests__/utils/buildTestExtensions.js +6 -6
  62. package/lib/components/toolbar/Toolbar.vue +2 -2
  63. package/lib/components/toolbar/__tests__/Toolbar.test.js +5 -5
  64. package/lib/components/toolbar/controls/AlignmentControl.vue +7 -7
  65. package/lib/components/toolbar/controls/CaseStyleControl.vue +5 -5
  66. package/lib/components/toolbar/controls/FontColorControl.vue +2 -2
  67. package/lib/components/toolbar/controls/FontFamilyControl.vue +2 -2
  68. package/lib/components/toolbar/controls/FontSizeControl.vue +2 -2
  69. package/lib/components/toolbar/controls/FontWeightControl.vue +2 -2
  70. package/lib/components/toolbar/controls/ItalicControl.vue +2 -2
  71. package/lib/components/toolbar/controls/LineHeightControl.vue +2 -2
  72. package/lib/components/toolbar/controls/ListControl.vue +5 -5
  73. package/lib/components/toolbar/controls/__tests__/AlignmentControl.test.js +13 -13
  74. package/lib/components/toolbar/controls/__tests__/CaseStyleControl.test.js +4 -4
  75. package/lib/components/toolbar/controls/__tests__/ListControl.test.js +10 -10
  76. package/lib/components/toolbar/controls/__tests__/StylePresetControl.test.js +6 -6
  77. package/lib/components/toolbar/controls/link/LinkControl.vue +5 -5
  78. package/lib/components/toolbar/controls/link/composables/__tests__/useLink.test.js +20 -20
  79. package/lib/components/toolbar/controls/link/composables/useLink.js +10 -10
  80. package/lib/components/toolbar/controls/link/destination/LinkControlDestination.vue +10 -7
  81. package/lib/components/toolbar/controls/link/destination/LinkControlPageBlock.vue +1 -1
  82. package/lib/enums/{Alignments.ts → Alignment.ts} +0 -8
  83. package/lib/enums/{CaseStyles.ts → CaseStyle.ts} +0 -6
  84. package/lib/enums/{Devices.ts → Device.ts} +0 -8
  85. package/lib/enums/LinkDestination.ts +4 -0
  86. package/lib/enums/LinkTarget.ts +4 -0
  87. package/lib/enums/{ListTypes.ts → ListType.ts} +0 -9
  88. package/lib/enums/MarkGroup.ts +4 -0
  89. package/lib/enums/{NodeTypes.ts → NodeType.ts} +0 -8
  90. package/lib/enums/{TextSettings.ts → TextSetting.ts} +0 -11
  91. package/lib/enums/index.ts +9 -9
  92. package/lib/extensions/Alignment.js +13 -11
  93. package/lib/extensions/BackgroundColor.js +2 -2
  94. package/lib/extensions/CaseStyle.js +8 -6
  95. package/lib/extensions/FontColor.js +4 -4
  96. package/lib/extensions/FontFamily.js +8 -6
  97. package/lib/extensions/FontSize.js +3 -3
  98. package/lib/extensions/FontStyle.js +3 -3
  99. package/lib/extensions/FontWeight.js +3 -3
  100. package/lib/extensions/LineHeight.js +4 -4
  101. package/lib/extensions/Link.js +11 -11
  102. package/lib/extensions/Margin.js +4 -4
  103. package/lib/extensions/StylePreset.js +18 -12
  104. package/lib/extensions/Superscript.js +2 -2
  105. package/lib/extensions/TextDecoration.js +2 -2
  106. package/lib/extensions/__tests__/Alignment.test.js +21 -21
  107. package/lib/extensions/__tests__/BackgroundColor.test.js +4 -4
  108. package/lib/extensions/__tests__/CaseStyle.test.js +6 -6
  109. package/lib/extensions/__tests__/FontColor.test.js +4 -4
  110. package/lib/extensions/__tests__/FontFamily.test.js +10 -10
  111. package/lib/extensions/__tests__/FontSize.test.js +9 -9
  112. package/lib/extensions/__tests__/FontStyle.test.js +6 -6
  113. package/lib/extensions/__tests__/FontWeight.test.js +11 -11
  114. package/lib/extensions/__tests__/LineHeight.test.js +2 -2
  115. package/lib/extensions/__tests__/Link.test.js +13 -13
  116. package/lib/extensions/__tests__/StylePreset.test.js +29 -29
  117. package/lib/extensions/__tests__/Superscript.test.js +5 -5
  118. package/lib/extensions/__tests__/TextDecoration.test.js +14 -14
  119. package/lib/extensions/core/Document.js +3 -3
  120. package/lib/extensions/core/Heading.js +2 -2
  121. package/lib/extensions/core/NodeProcessor.js +8 -8
  122. package/lib/extensions/core/Paragraph.js +2 -2
  123. package/lib/extensions/core/__tests__/NodeProcessor.test.js +68 -68
  124. package/lib/extensions/core/__tests__/TextProcessor.test.js +13 -13
  125. package/lib/extensions/list/ListItem.js +5 -5
  126. package/lib/extensions/list/__tests__/List.test.js +11 -11
  127. package/lib/extensions/proseMirror/PasteLinkPlugin.js +4 -4
  128. package/lib/extensions/proseMirror/PastePlugin.js +2 -2
  129. package/lib/models/Font.ts +4 -0
  130. package/lib/services/ContentSerializer.js +3 -3
  131. package/lib/services/StylePresetRenderer.js +4 -4
  132. package/lib/services/__tests__/NodeFactory.test.js +11 -11
  133. package/lib/services/__tests__/NodeSelector.test.js +18 -18
  134. package/lib/services/normalizer/JsonNormalizer.js +5 -5
  135. package/lib/services/normalizer/__tests__/JsonNormalizer.test.js +15 -15
  136. package/lib/utils/__tests__/convertAlignment.test.js +3 -3
  137. package/lib/utils/convertAlignment.js +4 -4
  138. package/package.json +17 -17
  139. package/lib/enums/LinkDestinations.ts +0 -9
  140. package/lib/enums/LinkTargets.ts +0 -9
  141. package/lib/enums/MarkGroups.ts +0 -9
@@ -1,6 +1,6 @@
1
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
2
2
  export default _default;
3
- type __VLS_WithTemplateSlots<T, S> = T & (new () => {
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
- optionRef: any;
13
- }, any>;
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: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
2
2
  export default _default;
3
- type __VLS_WithTemplateSlots<T, S> = T & (new () => {
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
- floatingRef: HTMLDivElement;
15
- }, HTMLDivElement>;
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, {}, HTMLDivElement>;
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, {}, 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>;
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, {}, 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>;
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, {}, 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>;
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, {}, 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>;
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, {}, HTMLButtonElement>;
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, {}, 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>;
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, {}, HTMLButtonElement>;
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, {}, HTMLButtonElement>;
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, {}, HTMLButtonElement>;
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, {}, HTMLButtonElement>;
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, {}, HTMLDivElement>;
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: import("../../../../../enums").LinkTarget;
6
- destination: import("../../../../../enums").LinkDestination;
5
+ target: LinkTarget;
6
+ destination: LinkDestination;
7
7
  }, {
8
8
  text: string;
9
- target: import("../../../../../enums").LinkTarget;
10
- destination: import("../../../../../enums").LinkDestination;
9
+ target: LinkTarget;
10
+ destination: LinkDestination;
11
11
  } | {
12
12
  text: string;
13
- target: import("../../../../../enums").LinkTarget;
14
- destination: import("../../../../../enums").LinkDestination;
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: import("../../../../../enums").LinkDestination;
27
+ id: LinkDestination;
28
28
  }, {
29
- id: import("../../../../../enums").LinkDestination;
29
+ id: LinkDestination;
30
30
  } | {
31
- id: import("../../../../../enums").LinkDestination;
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';
@@ -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, {}, HTMLDivElement>;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
10
  export default _default;
@@ -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, {}, HTMLDivElement>;
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, {}, HTMLDivElement>;
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, {}, 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>;
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?(_: {}): any;
51
+ default?: ((props: {}) => any) | undefined;
54
52
  };
55
53
  });
56
54
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,7 @@
1
+ export declare enum Alignment {
2
+ LEFT = "left",
3
+ CENTER = "center",
4
+ RIGHT = "right",
5
+ JUSTIFY = "justify"
6
+ }
7
+ export declare const AlignmentList: Alignment[];
@@ -0,0 +1,5 @@
1
+ export declare enum CaseStyle {
2
+ UPPERCASE = "uppercase",
3
+ LOWERCASE = "lowercase",
4
+ CAPITALIZE = "capitalize"
5
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum Device {
2
+ COMMON = "common",
3
+ DESKTOP = "desktop",
4
+ TABLET = "tablet",
5
+ MOBILE = "mobile"
6
+ }
7
+ export declare const DeviceList: Device[];
@@ -0,0 +1,4 @@
1
+ export declare enum LinkDestination {
2
+ URL = "url",
3
+ BLOCK = "block"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum LinkTarget {
2
+ BLANK = "_blank",
3
+ SELF = "_self"
4
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum ListType {
2
+ DISC = "disc",
3
+ CIRCLE = "circle",
4
+ SQUARE = "square",
5
+ DECIMAL = "decimal",
6
+ ROMAN = "roman",
7
+ LATIN = "latin"
8
+ }
9
+ export declare const ListTypeList: ListType[];
10
+ export declare const ListOrderedTypeList: ListType[];
@@ -0,0 +1,4 @@
1
+ export declare enum MarkGroup {
2
+ SETTINGS = "settings",
3
+ ALL = "_"
4
+ }
@@ -0,0 +1,9 @@
1
+ export declare enum NodeType {
2
+ DOCUMENT = "doc",
3
+ PARAGRAPH = "paragraph",
4
+ HEADING = "heading",
5
+ LIST = "list",
6
+ LIST_ITEM = "listItem",
7
+ TEXT = "text"
8
+ }
9
+ export declare const NodeBlockTypeList: NodeType[];
@@ -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 './Devices';
2
- export * from './CaseStyles';
3
- export * from './Alignments';
4
- export * from './NodeTypes';
5
- export * from './ListTypes';
6
- export * from './TextSettings';
7
- export * from './MarkGroups';
8
- export * from './LinkTargets';
9
- export * from './LinkDestinations';
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';
@@ -1,2 +1,3 @@
1
- export const Alignment: Extension<any, any>;
1
+ export const AlignmentExtension: Extension<any, any>;
2
+ export { AlignmentExtension as Alignment };
2
3
  import { Extension } from '@tiptap/vue-3';
@@ -1,2 +1,3 @@
1
- export const CaseStyle: Extension<any, any>;
1
+ export const CaseStyleExtension: Extension<any, any>;
2
+ export { CaseStyleExtension as CaseStyle };
2
3
  import { Extension } from '@tiptap/vue-3';
@@ -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-3931975f] {
549
+ .zw-font-family-control[data-v-e3657967] {
550
550
  width: 96px;
551
551
  }
552
- .zw-font-family-control__option[data-v-3931975f] {
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-54f744a9] {
557
+ .zw-font-weight-control[data-v-6c8237c7] {
558
558
  width: 60px;
559
559
  }
560
560
 
561
- .zw-font-size-control[data-v-9452b945] {
561
+ .zw-font-size-control[data-v-779fe48e] {
562
562
  width: 72px;
563
563
  }
564
564
 
565
- .zw-line-height-control__modal[data-v-8eb86211] {
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-8eb86211] {
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-8eb86211] {
572
+ .zw-line-height-control__range[data-v-643242a1] {
573
573
  width: 156px;
574
574
  }
575
- .zw-line-height-control__field[data-v-8eb86211] {
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-923a86d6] {
580
+ .zpa-list-control[data-v-55962f5e] {
581
581
  display: flex;
582
582
  }
583
- .zpa-list-control[data-v-923a86d6]:hover {
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-923a86d6] {
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-923a86d6] {
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-5d6cf980] {
626
+ .zw-link-modal[data-v-ebae331e] {
627
627
  width: 266px;
628
628
  }
629
- .zw-link-modal__body[data-v-5d6cf980] {
629
+ .zw-link-modal__body[data-v-ebae331e] {
630
630
  padding: var(--zw-offset-sm);
631
631
  }
632
- .zw-link-modal__actions[data-v-5d6cf980] {
632
+ .zw-link-modal__actions[data-v-ebae331e] {
633
633
  display: flex;
634
634
  justify-content: flex-end;
635
635
  }
636
- [data-v-5d6cf980] .zw-link-modal-dropdown__option {
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-e9105a30] {
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(--7b6bf359) * 1px)
698
+ --zw-toolbar-offset-y: calc(var(--35f1c9c0) * 1px)
699
699
  }
700
- .zw-toolbar[data-v-e9105a30]::before,
701
- .zw-toolbar[data-v-e9105a30]::after {
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-e9105a30]::before {
709
+ .zw-toolbar[data-v-da0b6f48]::before {
710
710
  top: var(--zw-toolbar-safe-zone);
711
711
  }
712
- .zw-toolbar[data-v-e9105a30]::after {
712
+ .zw-toolbar[data-v-da0b6f48]::after {
713
713
  bottom: var(--zw-toolbar-safe-zone);
714
714
  }
715
- .zw-toolbar--enter-active[data-v-e9105a30],
716
- .zw-toolbar--leave-active[data-v-e9105a30] {
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-e9105a30] {
719
+ .zw-toolbar--leave-active[data-v-da0b6f48] {
720
720
  transition: opacity 0s ease-in;
721
721
  }
722
- .zw-toolbar--enter-from[data-v-e9105a30],
723
- .zw-toolbar--leave-to[data-v-e9105a30] {
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 {