@vonage/vivid 5.30.0 → 5.32.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.
Files changed (184) hide show
  1. package/bundled/anchored.cjs +1 -1
  2. package/bundled/anchored.js +25 -26
  3. package/bundled/calendar-picker.template.cjs +1 -1
  4. package/bundled/calendar-picker.template.js +5 -5
  5. package/bundled/char-count.cjs +2 -2
  6. package/bundled/char-count.js +2 -3
  7. package/bundled/definition25.cjs +4 -4
  8. package/bundled/definition25.js +4 -4
  9. package/bundled/definition4.cjs +17 -10
  10. package/bundled/definition4.js +17 -10
  11. package/bundled/form-element.cjs +1 -1
  12. package/bundled/form-element.js +3 -4
  13. package/bundled/localized.cjs +1 -1
  14. package/bundled/localized.js +11 -10
  15. package/bundled/picker-field.template.cjs +1 -1
  16. package/bundled/picker-field.template.js +12 -17
  17. package/bundled/text-field.cjs +1 -1
  18. package/bundled/text-field.js +1 -1
  19. package/bundled/time-selection-picker.template.cjs +1 -1
  20. package/bundled/time-selection-picker.template.js +7 -9
  21. package/bundled/vivid-element.cjs +1 -1
  22. package/bundled/vivid-element.js +36 -8
  23. package/bundled/with-error-text.cjs +1 -1
  24. package/bundled/with-error-text.js +7 -9
  25. package/custom-elements.json +237 -1956
  26. package/lib/accordion-item/accordion-item.d.ts +13 -7
  27. package/lib/action-group/action-group.d.ts +13 -7
  28. package/lib/alert/alert.d.ts +26 -14
  29. package/lib/audio-player/audio-player.d.ts +13 -7
  30. package/lib/avatar/avatar.d.ts +13 -7
  31. package/lib/badge/badge.d.ts +13 -7
  32. package/lib/banner/banner.d.ts +39 -21
  33. package/lib/breadcrumb/breadcrumb.d.ts +13 -7
  34. package/lib/breadcrumb-item/breadcrumb-item.d.ts +13 -7
  35. package/lib/button/button.d.ts +39 -21
  36. package/lib/calendar-event/calendar-event.d.ts +13 -7
  37. package/lib/card/card.d.ts +13 -7
  38. package/lib/checkbox/checkbox.d.ts +84 -48
  39. package/lib/color-picker/color-picker.d.ts +98 -56
  40. package/lib/combobox/combobox.d.ts +98 -56
  41. package/lib/country-group/country-group.d.ts +26 -14
  42. package/lib/data-grid/data-grid-cell.d.ts +26 -14
  43. package/lib/data-grid/data-grid-row.d.ts +13 -7
  44. package/lib/date-picker/date-picker.d.ts +162 -114
  45. package/lib/date-range-picker/date-range-picker.d.ts +82 -58
  46. package/lib/date-time-picker/date-time-picker.d.ts +164 -116
  47. package/lib/dial-pad/dial-pad.d.ts +13 -7
  48. package/lib/dialog/dialog.d.ts +26 -14
  49. package/lib/divider/divider.d.ts +13 -7
  50. package/lib/fab/fab.d.ts +13 -7
  51. package/lib/file-picker/file-picker.d.ts +98 -56
  52. package/lib/header/header.d.ts +13 -7
  53. package/lib/listbox/listbox.d.ts +41 -23
  54. package/lib/menu/menu.d.ts +30 -18
  55. package/lib/menu-item/menu-item.d.ts +39 -21
  56. package/lib/nav/nav.d.ts +13 -7
  57. package/lib/nav-disclosure/nav-disclosure.d.ts +26 -14
  58. package/lib/nav-item/nav-item.d.ts +28 -16
  59. package/lib/note/note.d.ts +13 -7
  60. package/lib/number-field/number-field.d.ts +124 -70
  61. package/lib/optgroup/optgroup.d.ts +13 -7
  62. package/lib/option/option.d.ts +26 -14
  63. package/lib/pagination/pagination.d.ts +13 -7
  64. package/lib/popover/popover.d.ts +26 -14
  65. package/lib/progress/progress.d.ts +13 -7
  66. package/lib/progress-ring/progress-ring.d.ts +13 -7
  67. package/lib/radio/radio.d.ts +45 -27
  68. package/lib/radio-group/radio-group.d.ts +13 -7
  69. package/lib/range-slider/range-slider.d.ts +40 -22
  70. package/lib/rich-text-editor/rich-text-editor.d.ts +30 -18
  71. package/lib/rich-text-editor/rte/feature.d.ts +0 -1
  72. package/lib/rich-text-editor/rte/features/base.d.ts +9 -0
  73. package/lib/rich-text-editor/rte/features/bold.d.ts +5 -1
  74. package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +5 -1
  75. package/lib/rich-text-editor/rte/features/hard-break.d.ts +4 -0
  76. package/lib/rich-text-editor/rte/features/inline-image.d.ts +4 -0
  77. package/lib/rich-text-editor/rte/features/italic.d.ts +5 -1
  78. package/lib/rich-text-editor/rte/features/link.d.ts +5 -1
  79. package/lib/rich-text-editor/rte/features/list.d.ts +6 -0
  80. package/lib/rich-text-editor/rte/features/monospace.d.ts +5 -1
  81. package/lib/rich-text-editor/rte/features/strikethrough.d.ts +5 -1
  82. package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +4 -1
  83. package/lib/rich-text-editor/rte/features/underline.d.ts +5 -1
  84. package/lib/rich-text-editor/rte/public-interface.d.ts +1 -1
  85. package/lib/searchable-select/option-tag.d.ts +13 -7
  86. package/lib/searchable-select/searchable-select.d.ts +124 -70
  87. package/lib/select/select.d.ts +124 -70
  88. package/lib/selectable-box/selectable-box.d.ts +13 -7
  89. package/lib/simple-color-picker/simple-color-picker.d.ts +31 -19
  90. package/lib/slider/slider.d.ts +39 -21
  91. package/lib/split-button/split-button.d.ts +39 -21
  92. package/lib/status/status.d.ts +13 -7
  93. package/lib/switch/switch.d.ts +26 -14
  94. package/lib/tab/tab.d.ts +39 -21
  95. package/lib/tab-panel/tab-panel.d.ts +13 -7
  96. package/lib/table/table-cell.d.ts +13 -7
  97. package/lib/table/table-header-cell.d.ts +13 -7
  98. package/lib/table/table-row.d.ts +13 -7
  99. package/lib/table/table-sorting-button.d.ts +26 -14
  100. package/lib/tag/tag.d.ts +39 -21
  101. package/lib/tag-group/tag-group.d.ts +13 -7
  102. package/lib/text-area/text-area.d.ts +112 -64
  103. package/lib/text-field/text-field.d.ts +125 -71
  104. package/lib/time-picker/time-picker.d.ts +82 -58
  105. package/lib/toggletip/toggletip.d.ts +30 -18
  106. package/lib/tooltip/tooltip.d.ts +30 -18
  107. package/lib/tree-item/tree-item.d.ts +26 -14
  108. package/lib/tree-view/tree-view.d.ts +13 -7
  109. package/lib/video-player/video-player.d.ts +13 -7
  110. package/listbox/index.cjs +1 -1
  111. package/listbox/index.js +3 -4
  112. package/nav-item/index.cjs +1 -1
  113. package/nav-item/index.js +5 -1
  114. package/number-field/index.cjs +1 -1
  115. package/number-field/index.js +1 -1
  116. package/package.json +10 -10
  117. package/rich-text-editor/index.cjs +1 -1
  118. package/rich-text-editor/index.js +176 -160
  119. package/shared/aria/aria-mixin.d.ts +11 -5
  120. package/shared/aria/delegates-aria.d.ts +13 -7
  121. package/shared/aria/host-semantics.d.ts +13 -7
  122. package/shared/color-picker/base-color-picker.d.ts +14 -8
  123. package/shared/deprecation/replaced-props.d.ts +12 -6
  124. package/shared/feedback/feedback-message.d.ts +13 -7
  125. package/shared/feedback/mixins.d.ts +26 -14
  126. package/shared/foundation/button/button.d.ts +26 -14
  127. package/shared/foundation/form-associated/form-associated.d.ts +26 -14
  128. package/shared/foundation/vivid-element/vivid-element.d.ts +43 -25
  129. package/shared/framework/reactive-controller.d.ts +12 -6
  130. package/shared/listbox/with-options-filter.d.ts +14 -8
  131. package/shared/listbox/with-options.d.ts +28 -16
  132. package/shared/patterns/affix.d.ts +26 -14
  133. package/shared/patterns/anchored.d.ts +34 -22
  134. package/shared/patterns/char-count/char-count.d.ts +14 -8
  135. package/shared/patterns/form-elements/form-element.d.ts +14 -8
  136. package/shared/patterns/form-elements/with-contextual-help.d.ts +14 -8
  137. package/shared/patterns/form-elements/with-error-text.d.ts +18 -12
  138. package/shared/patterns/form-elements/with-success-text.d.ts +13 -7
  139. package/shared/patterns/kbd-shortcut.d.ts +13 -7
  140. package/shared/patterns/linkable.d.ts +13 -7
  141. package/shared/patterns/localized.d.ts +30 -18
  142. package/shared/patterns/trapped-focus.d.ts +13 -7
  143. package/shared/picker-field/mixins/calendar-picker.d.ts +41 -29
  144. package/shared/picker-field/mixins/calendar-picker.template.d.ts +41 -29
  145. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +13 -7
  146. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +41 -29
  147. package/shared/picker-field/mixins/single-date-picker.d.ts +41 -29
  148. package/shared/picker-field/mixins/single-value-picker.d.ts +39 -27
  149. package/shared/picker-field/mixins/time-selection-picker.d.ts +43 -31
  150. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +82 -58
  151. package/shared/picker-field/picker-field.d.ts +98 -57
  152. package/unbundled/anchored.cjs +39 -37
  153. package/unbundled/anchored.js +39 -37
  154. package/unbundled/calendar-picker.template.cjs +7 -5
  155. package/unbundled/calendar-picker.template.js +7 -5
  156. package/unbundled/char-count.cjs +3 -9
  157. package/unbundled/char-count.js +3 -9
  158. package/unbundled/definition2.cjs +4 -4
  159. package/unbundled/definition2.js +4 -4
  160. package/unbundled/definition5.cjs +17 -10
  161. package/unbundled/definition5.js +17 -10
  162. package/unbundled/definition50.cjs +3 -4
  163. package/unbundled/definition50.js +3 -4
  164. package/unbundled/definition52.cjs +6 -2
  165. package/unbundled/definition52.js +6 -2
  166. package/unbundled/definition55.cjs +1 -1
  167. package/unbundled/definition55.js +1 -1
  168. package/unbundled/definition63.cjs +73 -46
  169. package/unbundled/definition63.js +73 -46
  170. package/unbundled/form-element.cjs +3 -4
  171. package/unbundled/form-element.js +3 -4
  172. package/unbundled/localized.cjs +15 -11
  173. package/unbundled/localized.js +15 -11
  174. package/unbundled/picker-field.template.cjs +22 -24
  175. package/unbundled/picker-field.template.js +22 -24
  176. package/unbundled/text-field.cjs +1 -1
  177. package/unbundled/text-field.js +1 -1
  178. package/unbundled/time-selection-picker.template.cjs +10 -10
  179. package/unbundled/time-selection-picker.template.js +10 -10
  180. package/unbundled/vivid-element.cjs +65 -8
  181. package/unbundled/vivid-element.js +66 -9
  182. package/unbundled/with-error-text.cjs +11 -10
  183. package/unbundled/with-error-text.js +11 -10
  184. package/vivid.api.json +12 -12
@@ -7824,14 +7824,21 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
7824
7824
  return !1;
7825
7825
  } }), ve.highest)), n;
7826
7826
  }
7827
- }, zu = y(class extends C {
7827
+ }, zu = {
7828
+ doc: "doc",
7829
+ text: "text",
7830
+ paragraph: "paragraph",
7831
+ heading1: "heading1",
7832
+ heading2: "heading2",
7833
+ heading3: "heading3"
7834
+ }, Bu = Object.assign(y(class extends C {
7828
7835
  constructor(e) {
7829
7836
  super(), this.config = e, this.name = "RteBase";
7830
7837
  }
7831
7838
  getSchema() {
7832
7839
  return [this.contribution({ nodes: {
7833
- doc: { content: this.config?.singleBlock ? "block" : "block+" },
7834
- text: { group: "inline" }
7840
+ [zu.doc]: { content: this.config?.singleBlock ? "block" : "block+" },
7841
+ [zu.text]: { group: "inline" }
7835
7842
  } })];
7836
7843
  }
7837
7844
  getPlugins(e) {
@@ -7874,7 +7881,7 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
7874
7881
  }
7875
7882
  };
7876
7883
  }
7877
- }), Bu = y(class extends C {
7884
+ }), { nodes: zu }), Vu = y(class extends C {
7878
7885
  constructor(e) {
7879
7886
  super(), this.config = e, this.name = "RteTextBlockPickerFeature";
7880
7887
  }
@@ -7897,12 +7904,12 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
7897
7904
  })
7898
7905
  }, 1)];
7899
7906
  }
7900
- }), Vu = ".toolbar{background-color:var(--vvd-color-neutral-50);flex-wrap:wrap;align-items:center;gap:8px;padding:4px;display:flex}.toolbar--hidden{display:none}", Hu = y(class extends C {
7907
+ }), Hu = ".toolbar{background-color:var(--vvd-color-neutral-50);flex-wrap:wrap;align-items:center;gap:8px;padding:4px;display:flex}.toolbar--hidden{display:none}", Uu = y(class extends C {
7901
7908
  constructor(e) {
7902
7909
  super(), this.config = e, this.name = "RteToolbarFeature", this.hidden = new Ps(!1);
7903
7910
  }
7904
7911
  getStyles() {
7905
- return [this.contribution(Vu)];
7912
+ return [this.contribution(Hu)];
7906
7913
  }
7907
7914
  getPlugins(e) {
7908
7915
  let t = [
@@ -7957,12 +7964,12 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
7957
7964
  }
7958
7965
  };
7959
7966
  }
7960
- }), Uu = ".placeholder{display:contents}.placeholder:before{color:var(--vvd-color-neutral-600);content:attr(data-placeholder);font-size:var(--placeholder-font-size,inherit);inset-inline:var(--editor-padding-inline);line-height:inherit;pointer-events:none;position:absolute}.editor--disabled .placeholder:before{color:var(--vvd-color-neutral-300)}", Wu = y(class extends C {
7967
+ }), Wu = ".placeholder{display:contents}.placeholder:before{color:var(--vvd-color-neutral-600);content:attr(data-placeholder);font-size:var(--placeholder-font-size,inherit);inset-inline:var(--editor-padding-inline);line-height:inherit;pointer-events:none;position:absolute}.editor--disabled .placeholder:before{color:var(--vvd-color-neutral-300)}", Gu = y(class extends C {
7961
7968
  constructor(e) {
7962
7969
  super(), this.config = e, this.name = "RtePlaceholderFeature";
7963
7970
  }
7964
7971
  getStyles() {
7965
- return [this.contribution(Uu)];
7972
+ return [this.contribution(Wu)];
7966
7973
  }
7967
7974
  getPlugins() {
7968
7975
  let e = new F({ props: { decorations: (e) => {
@@ -7977,12 +7984,12 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
7977
7984
  } } });
7978
7985
  return [this.contribution(e)];
7979
7986
  }
7980
- }), Gu = y(class extends C {
7987
+ }), Ku = { hardBreak: "hardBreak" }, qu = Object.assign(y(class extends C {
7981
7988
  constructor(...e) {
7982
7989
  super(...e), this.name = "RteHardBreakFeature";
7983
7990
  }
7984
7991
  getSchema() {
7985
- return [this.contribution({ nodes: { hardBreak: {
7992
+ return [this.contribution({ nodes: { [Ku.hardBreak]: {
7986
7993
  inline: !0,
7987
7994
  group: "inline",
7988
7995
  selectable: !1,
@@ -7998,7 +8005,7 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
7998
8005
  return n.length && r.setStoredMarks(n), t?.(r), !0;
7999
8006
  } }), ve.high)];
8000
8007
  }
8001
- }), Ku = Symbol("mixedFontSize"), qu = y(class extends C {
8008
+ }), { nodes: Ku }), Ju = Symbol("mixedFontSize"), Yu = { fontSize: "fontSize" }, Xu = Object.assign(y(class extends C {
8002
8009
  constructor(e) {
8003
8010
  if (super(), this.config = e, this.name = "RteFontSizePickerFeature", this.fontSizes = e.options, e.onBlocks) {
8004
8011
  this.defaultFontSizeForNode = {};
@@ -8007,12 +8014,12 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
8007
8014
  }
8008
8015
  getTextblockMarks() {
8009
8016
  return this.config?.onBlocks ? this.config.onBlocks.map((e) => this.contribution({
8010
- markName: "fontSize",
8017
+ markName: Yu.fontSize,
8011
8018
  onNodeName: e.node
8012
- })) : [this.contribution({ markName: "fontSize" })];
8019
+ })) : [this.contribution({ markName: Yu.fontSize })];
8013
8020
  }
8014
8021
  getSchema() {
8015
- return [this.contribution({ marks: { fontSize: {
8022
+ let e = {
8016
8023
  attrs: { size: { validate: "string" } },
8017
8024
  parseDOM: [{
8018
8025
  tag: "span[style*='font-size']",
@@ -8039,7 +8046,8 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
8039
8046
  }
8040
8047
  return null;
8041
8048
  }
8042
- } } })];
8049
+ };
8050
+ return [this.contribution({ marks: { [Yu.fontSize]: e } })];
8043
8051
  }
8044
8052
  getPlugins() {
8045
8053
  return [this.contribution(G({
@@ -8075,9 +8083,9 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
8075
8083
  return a.isInSet(e.storedMarks || r.marks())?.attrs.size ?? t;
8076
8084
  }
8077
8085
  let o = null, s = (e) => {
8078
- o === null ? o = e ?? null : e !== o && (o = Ku);
8086
+ o === null ? o = e ?? null : e !== o && (o = Ju);
8079
8087
  };
8080
- return e.doc.nodesBetween(t, n, (e, t, n) => o === Ku ? !1 : e.isLeaf ? (s(a.isInSet(e.marks)?.attrs.size ?? (n && this.defaultFontSizeForNode?.[n.type.name])), !0) : (e.type.allowsMarkType(a) && e.childCount === 0 && s(this.defaultFontSizeForNode?.[e.type.name]), !0)), o;
8088
+ return e.doc.nodesBetween(t, n, (e, t, n) => o === Ju ? !1 : e.isLeaf ? (s(a.isInSet(e.marks)?.attrs.size ?? (n && this.defaultFontSizeForNode?.[n.type.name])), !0) : (e.type.allowsMarkType(a) && e.childCount === 0 && s(this.defaultFontSizeForNode?.[e.type.name]), !0)), o;
8081
8089
  }
8082
8090
  setFontSize(e) {
8083
8091
  return (t, n) => {
@@ -8098,19 +8106,19 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
8098
8106
  adjustFontSize(e) {
8099
8107
  return (t, n) => {
8100
8108
  let r = this.getFontSizeFromSelection(t);
8101
- if (r === null || r === Ku) return !1;
8109
+ if (r === null || r === Ju) return !1;
8102
8110
  let i = this.fontSizes.findIndex((e) => e.size === r) + e;
8103
8111
  return i < 0 || i >= this.fontSizes.length ? !1 : this.setFontSize(this.fontSizes[i].size)(t, n);
8104
8112
  };
8105
8113
  }
8106
- }), Ju = ["p", 0], Yu = ["blockquote", 0], Xu = ["hr"], Zu = ["pre", ["code", 0]], Qu = ["br"], $u = {
8114
+ }), { marks: Yu }), Zu = ["p", 0], Qu = ["blockquote", 0], $u = ["hr"], ed = ["pre", ["code", 0]], td = ["br"], nd = {
8107
8115
  doc: { content: "block+" },
8108
8116
  paragraph: {
8109
8117
  content: "inline*",
8110
8118
  group: "block",
8111
8119
  parseDOM: [{ tag: "p" }],
8112
8120
  toDOM() {
8113
- return Ju;
8121
+ return Zu;
8114
8122
  }
8115
8123
  },
8116
8124
  blockquote: {
@@ -8119,14 +8127,14 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
8119
8127
  defining: !0,
8120
8128
  parseDOM: [{ tag: "blockquote" }],
8121
8129
  toDOM() {
8122
- return Yu;
8130
+ return Qu;
8123
8131
  }
8124
8132
  },
8125
8133
  horizontal_rule: {
8126
8134
  group: "block",
8127
8135
  parseDOM: [{ tag: "hr" }],
8128
8136
  toDOM() {
8129
- return Xu;
8137
+ return $u;
8130
8138
  }
8131
8139
  },
8132
8140
  heading: {
@@ -8178,7 +8186,7 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
8178
8186
  preserveWhitespace: "full"
8179
8187
  }],
8180
8188
  toDOM() {
8181
- return Zu;
8189
+ return ed;
8182
8190
  }
8183
8191
  },
8184
8192
  text: { group: "inline" },
@@ -8222,10 +8230,10 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
8222
8230
  selectable: !1,
8223
8231
  parseDOM: [{ tag: "br" }],
8224
8232
  toDOM() {
8225
- return Qu;
8233
+ return td;
8226
8234
  }
8227
8235
  }
8228
- }, ed = ["em", 0], td = ["strong", 0], nd = ["code", 0], rd = {
8236
+ }, rd = ["em", 0], id = ["strong", 0], ad = ["code", 0], od = {
8229
8237
  link: {
8230
8238
  attrs: {
8231
8239
  href: { validate: "string" },
@@ -8267,7 +8275,7 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
8267
8275
  }
8268
8276
  ],
8269
8277
  toDOM() {
8270
- return ed;
8278
+ return rd;
8271
8279
  }
8272
8280
  },
8273
8281
  strong: {
@@ -8287,24 +8295,24 @@ var Lu = (e) => e.parent.textBetween(0, e.parentOffset, void 0, ""), Ru = cla
8287
8295
  }
8288
8296
  ],
8289
8297
  toDOM() {
8290
- return td;
8298
+ return id;
8291
8299
  }
8292
8300
  },
8293
8301
  code: {
8294
8302
  code: !0,
8295
8303
  parseDOM: [{ tag: "code" }],
8296
8304
  toDOM() {
8297
- return nd;
8305
+ return ad;
8298
8306
  }
8299
8307
  }
8300
8308
  };
8301
8309
  new he({
8302
- nodes: $u,
8303
- marks: rd
8310
+ nodes: nd,
8311
+ marks: od
8304
8312
  });
8305
8313
  //#endregion
8306
8314
  //#region src/lib/rich-text-editor/rte/features/internal/text-style.ts
8307
- var id = class extends C {
8315
+ var sd = class extends C {
8308
8316
  constructor(e) {
8309
8317
  super(), this.config = e;
8310
8318
  }
@@ -8314,12 +8322,12 @@ var id = class extends C {
8314
8322
  onNodeName: e.node
8315
8323
  })) : [this.contribution({ markName: this.markName })];
8316
8324
  }
8317
- }, ad = y(class extends id {
8325
+ }, cd = { bold: "bold" }, ld = Object.assign(y(class extends sd {
8318
8326
  constructor(...e) {
8319
- super(...e), this.name = "RteBoldFeature", this.markName = "bold";
8327
+ super(...e), this.name = "RteBoldFeature", this.markName = cd.bold;
8320
8328
  }
8321
8329
  getSchema() {
8322
- return [this.contribution({ marks: { bold: rd.strong } })];
8330
+ return [this.contribution({ marks: { [cd.bold]: od.strong } })];
8323
8331
  }
8324
8332
  getPlugins(e) {
8325
8333
  return [this.contribution(G({ "Mod-b": us(e.schema.marks.bold) }))];
@@ -8334,12 +8342,12 @@ var id = class extends C {
8334
8342
  })
8335
8343
  }, 1)];
8336
8344
  }
8337
- }), od = y(class extends id {
8345
+ }), { marks: cd }), ud = { italic: "italic" }, dd = Object.assign(y(class extends sd {
8338
8346
  constructor(...e) {
8339
- super(...e), this.name = "RteItalicFeature", this.markName = "italic";
8347
+ super(...e), this.name = "RteItalicFeature", this.markName = ud.italic;
8340
8348
  }
8341
8349
  getSchema() {
8342
- return [this.contribution({ marks: { italic: rd.em } })];
8350
+ return [this.contribution({ marks: { [ud.italic]: od.em } })];
8343
8351
  }
8344
8352
  getPlugins(e) {
8345
8353
  return [this.contribution(G({ "Mod-i": us(e.schema.marks.italic) }))];
@@ -8354,12 +8362,12 @@ var id = class extends C {
8354
8362
  })
8355
8363
  }, 2)];
8356
8364
  }
8357
- }), sd = y(class extends id {
8365
+ }), { marks: ud }), fd = { underline: "underline" }, pd = Object.assign(y(class extends sd {
8358
8366
  constructor(...e) {
8359
- super(...e), this.name = "RteUnderlineFeature", this.markName = "underline";
8367
+ super(...e), this.name = "RteUnderlineFeature", this.markName = fd.underline;
8360
8368
  }
8361
8369
  getSchema() {
8362
- return [this.contribution({ marks: { underline: {
8370
+ return [this.contribution({ marks: { [fd.underline]: {
8363
8371
  parseDOM: [{ tag: "u" }],
8364
8372
  toDOM() {
8365
8373
  return ["u", 0];
@@ -8379,12 +8387,12 @@ var id = class extends C {
8379
8387
  })
8380
8388
  }, 3)];
8381
8389
  }
8382
- }), cd = y(class extends id {
8390
+ }), { marks: fd }), md = { strikethrough: "strikethrough" }, hd = Object.assign(y(class extends sd {
8383
8391
  constructor(...e) {
8384
- super(...e), this.name = "RteStrikethroughFeature", this.markName = "strikethrough";
8392
+ super(...e), this.name = "RteStrikethroughFeature", this.markName = md.strikethrough;
8385
8393
  }
8386
8394
  getSchema() {
8387
- return [this.contribution({ marks: { strikethrough: {
8395
+ return [this.contribution({ marks: { [md.strikethrough]: {
8388
8396
  parseDOM: [{ tag: "s" }, { tag: "del" }],
8389
8397
  toDOM() {
8390
8398
  return ["s", 0];
@@ -8407,15 +8415,15 @@ var id = class extends C {
8407
8415
  })
8408
8416
  }, 4)];
8409
8417
  }
8410
- }), ld = "tt{font:var(--vvd-typography-base-code);font-variant-ligatures:unset;font-feature-settings:unset;font-size:unset;font-weight:unset;line-height:unset}", ud = y(class extends id {
8418
+ }), { marks: md }), gd = "tt{font:var(--vvd-typography-base-code);font-variant-ligatures:unset;font-feature-settings:unset;font-size:unset;font-weight:unset;line-height:unset}", _d = { monospace: "monospace" }, vd = Object.assign(y(class extends sd {
8411
8419
  constructor(...e) {
8412
- super(...e), this.name = "RteMonospaceFeature", this.markName = "monospace";
8420
+ super(...e), this.name = "RteMonospaceFeature", this.markName = _d.monospace;
8413
8421
  }
8414
8422
  getStyles() {
8415
- return [this.contribution(ld)];
8423
+ return [this.contribution(gd)];
8416
8424
  }
8417
8425
  getSchema() {
8418
- return [this.contribution({ marks: { monospace: {
8426
+ return [this.contribution({ marks: { [_d.monospace]: {
8419
8427
  parseDOM: [{ tag: "tt" }, { tag: "code" }],
8420
8428
  toDOM() {
8421
8429
  return ["tt", 0];
@@ -8435,20 +8443,20 @@ var id = class extends C {
8435
8443
  })
8436
8444
  }, 5)];
8437
8445
  }
8438
- }), dd = (e) => {
8446
+ }), { marks: _d }), yd = (e) => {
8439
8447
  let t = document.createElement("div");
8440
8448
  return t.style.color = e, t.style.color || null;
8441
8449
  };
8442
8450
  //#endregion
8443
8451
  //#region src/lib/rich-text-editor/rte/features/text-color-picker.ts
8444
- function fd(e, t, n) {
8452
+ function bd(e, t, n) {
8445
8453
  for (let r = 0; r < t.length; r++) {
8446
8454
  let { $from: i, $to: a } = t[r], o = i.depth == 0 && e.type.allowsMarkType(n);
8447
8455
  if (e.nodesBetween(i.pos, a.pos, (e) => !o && (o = e.inlineContent && e.type.allowsMarkType(n), !0)), o) return !0;
8448
8456
  }
8449
8457
  return !1;
8450
8458
  }
8451
- var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8459
+ var xd = Symbol("mixedColor"), Sd = { textColor: "textColor" }, Cd = Object.assign(y(class extends C {
8452
8460
  constructor(e) {
8453
8461
  if (super(), this.config = e, this.name = "RteTextColorPicker", e?.onBlocks) {
8454
8462
  this.defaultColorForNode = {};
@@ -8457,16 +8465,16 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8457
8465
  }
8458
8466
  getTextblockMarks() {
8459
8467
  return this.config?.onBlocks ? this.config.onBlocks.map((e) => this.contribution({
8460
- markName: "textColor",
8468
+ markName: Sd.textColor,
8461
8469
  onNodeName: e.node
8462
- })) : [this.contribution({ markName: "textColor" })];
8470
+ })) : [this.contribution({ markName: Sd.textColor })];
8463
8471
  }
8464
8472
  getSchema() {
8465
8473
  let e = (e) => {
8466
8474
  let t = this.config?.parseColorFromHtml ? this.config.parseColorFromHtml(e) : e;
8467
8475
  return t !== null && { color: t };
8468
8476
  };
8469
- return [this.contribution({ marks: { textColor: {
8477
+ return [this.contribution({ marks: { [Sd.textColor]: {
8470
8478
  attrs: { color: { validate: "string" } },
8471
8479
  parseDOM: [{
8472
8480
  tag: "span[data-text-color]",
@@ -8519,14 +8527,14 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8519
8527
  return n.isInSet(e.storedMarks || a.marks())?.attrs.color ?? t;
8520
8528
  }
8521
8529
  let s = null, c = (e) => {
8522
- s === null ? s = e ?? null : e !== s && (s = pd);
8530
+ s === null ? s = e ?? null : e !== s && (s = xd);
8523
8531
  };
8524
- return e.doc.nodesBetween(r, i, (e, t, r) => s === pd ? !1 : e.isLeaf ? (c(n.isInSet(e.marks)?.attrs.color ?? (r && this.defaultColorForNode?.[r.type.name])), !0) : (e.type.allowsMarkType(n) && e.childCount === 0 && c(this.defaultColorForNode?.[e.type.name]), !0)), s === pd ? null : s;
8532
+ return e.doc.nodesBetween(r, i, (e, t, r) => s === xd ? !1 : e.isLeaf ? (c(n.isInSet(e.marks)?.attrs.color ?? (r && this.defaultColorForNode?.[r.type.name])), !0) : (e.type.allowsMarkType(n) && e.childCount === 0 && c(this.defaultColorForNode?.[e.type.name]), !0)), s === xd ? null : s;
8525
8533
  }
8526
8534
  setColor(e) {
8527
8535
  return (t, n) => {
8528
8536
  let { textColor: r } = t.schema.marks, { from: i, to: a, empty: o, $from: s } = t.selection;
8529
- if (!fd(t.doc, t.selection.ranges, r)) return !1;
8537
+ if (!bd(t.doc, t.selection.ranges, r)) return !1;
8530
8538
  let c = t.tr;
8531
8539
  if (o) {
8532
8540
  let n = (t.storedMarks || []).filter((e) => e.type !== r);
@@ -8539,13 +8547,16 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8539
8547
  return n?.(c.scrollIntoView()), !0;
8540
8548
  };
8541
8549
  }
8542
- }), { normalizeCssColor: dd }), hd = ".rich-text ul,.rich-text ol{padding-inline-start:1.5em}.rich-text li{list-style-position:inside}", gd = (e) => e.parentOffset === 0, _d = (e) => e.nodeSize === 2, vd = (e) => e.depth - 1, yd = (e) => e.depth - 2, bd = (e) => e.parent, xd = (e) => e.node(vd(e)), Sd = (e) => e.depth > 2, Cd = (e, t) => e.index(t) === 0, wd = (e, t) => e.index(t) === e.node(t).childCount - 1, Td = (e, t) => {
8550
+ }), {
8551
+ marks: Sd,
8552
+ normalizeCssColor: yd
8553
+ }), wd = ".rich-text ul,.rich-text ol{padding-inline-start:1.5em}.rich-text li{list-style-position:inside}", Td = (e) => e.parentOffset === 0, Ed = (e) => e.nodeSize === 2, Dd = (e) => e.depth - 1, Od = (e) => e.depth - 2, kd = (e) => e.parent, Ad = (e) => e.node(Dd(e)), jd = (e) => e.depth > 2, Md = (e, t) => e.index(t) === 0, Nd = (e, t) => e.index(t) === e.node(t).childCount - 1, Pd = (e, t) => {
8543
8554
  let n = e.node(t), r = e.index(t);
8544
8555
  return n.maybeChild(r - 1);
8545
- }, Ed = (e, t) => {
8556
+ }, Fd = (e, t) => {
8546
8557
  let n = e.node(t), r = e.index(t);
8547
8558
  return n.maybeChild(r + 1);
8548
- }, Dd = (e) => {
8559
+ }, Id = (e) => {
8549
8560
  let { $from: t, $to: n } = e;
8550
8561
  if (e instanceof Kt) {
8551
8562
  let r = N.between(e.$from, e.$to);
@@ -8555,39 +8566,43 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8555
8566
  $from: t,
8556
8567
  $to: n
8557
8568
  };
8558
- }, Od = (e, t) => e.sameParent(t) ? e.node(-1) : e.node(e.sharedDepth(t.pos)), kd = (e) => {
8569
+ }, Ld = (e, t) => e.sameParent(t) ? e.node(-1) : e.node(e.sharedDepth(t.pos)), Rd = (e) => {
8559
8570
  let { $cursor: t } = e.selection;
8560
8571
  return t?.parent.type === e.schema.nodes.listItem ? t : null;
8561
- }, Ad = (e, t, n, r) => {
8572
+ }, zd = (e, t, n, r) => {
8562
8573
  let i, a = !0;
8563
8574
  return e.doc.nodesBetween(t.pos, n.pos, (t) => {
8564
8575
  t.type.isInGroup("list") && (i = t.type), t.type === e.schema.nodes.listItem && i !== r && (a = !1);
8565
8576
  }), a;
8566
- }, jd = (e, t, n) => Sd(t) ? (Md(t, n), !0) : Nd(e, t, n), Md = (e, t) => {
8577
+ }, Bd = (e, t, n) => jd(t) ? (Vd(t, n), !0) : Hd(e, t, n), Vd = (e, t) => {
8567
8578
  let n = new S(e.doc.resolve(e.before()), e.doc.resolve(e.after()), e.depth - 1);
8568
8579
  t.lift(n, e.depth - 2);
8569
- }, Nd = (e, t, n) => {
8570
- let r = xd(t), i = t.index(yd(t)), a = Ms(t.node(yd(t)).contentMatchAt(i + 1));
8580
+ }, Hd = (e, t, n) => {
8581
+ let r = Ad(t), i = t.index(Od(t)), a = Ms(t.node(Od(t)).contentMatchAt(i + 1));
8571
8582
  if (!a) return !1;
8572
- let o = Cd(t, vd(t)), s = wd(t, vd(t));
8573
- return n.step(new k(t.before() - +!!o, t.after() + +!!s, t.start(), t.end(), new T((o ? x.empty : x.from(r.copy(x.empty))).append(x.from(a.create(e.textblockAttrs.extractFromNode(bd(t))))).append(s ? x.empty : x.from(r.copy(x.empty))), +!o, +!s), +!o + 1)), !0;
8574
- }, Pd = (e, t, n, r) => {
8575
- n.parent.type === e.schema.nodes.listItem ? Fd(t, n, r) : Id(e, t, n, r);
8576
- }, Fd = (e, t, n) => {
8577
- let r = Td(t, vd(t))?.type === e, i = Ed(t, vd(t))?.type === e, a = +!!r, o = +!!i;
8583
+ let o = Md(t, Dd(t)), s = Nd(t, Dd(t));
8584
+ return n.step(new k(t.before() - +!!o, t.after() + +!!s, t.start(), t.end(), new T((o ? x.empty : x.from(r.copy(x.empty))).append(x.from(a.create(e.textblockAttrs.extractFromNode(kd(t))))).append(s ? x.empty : x.from(r.copy(x.empty))), +!o, +!s), +!o + 1)), !0;
8585
+ }, Ud = (e, t, n, r) => {
8586
+ n.parent.type === e.schema.nodes.listItem ? Wd(t, n, r) : Gd(e, t, n, r);
8587
+ }, Wd = (e, t, n) => {
8588
+ let r = Pd(t, Dd(t))?.type === e, i = Fd(t, Dd(t))?.type === e, a = +!!r, o = +!!i;
8578
8589
  n.step(new k(t.before() - +!!r, t.after() + +!!i, t.before(), t.after(), new T(x.from(e.create(null, [])), a, o), 1 - a));
8579
- }, Id = (e, t, n, r) => {
8590
+ }, Gd = (e, t, n, r) => {
8580
8591
  r.step(new k(n.before(), n.after(), n.start(), n.end(), new T(x.from(t.create(null, [e.schema.nodes.listItem.create(e.textblockAttrs.extractFromNode(n.parent))])), 0, 0), 2));
8581
- }, Ld = y(class extends C {
8592
+ }, Kd = {
8593
+ listItem: "listItem",
8594
+ bulletList: "bulletList",
8595
+ numberedList: "numberedList"
8596
+ }, qd = Object.assign(y(class extends C {
8582
8597
  constructor(e) {
8583
8598
  if (super(), this.config = e, this.name = "RteListFeature", !e.bulletList && !e.numberedList) throw Error("RteListFeature requires at least one of bulletList or numberedList to be enabled");
8584
8599
  }
8585
8600
  getStyles() {
8586
- return [this.contribution(hd)];
8601
+ return [this.contribution(wd)];
8587
8602
  }
8588
8603
  getSchema(e) {
8589
8604
  return [this.contribution({ nodes: {
8590
- listItem: {
8605
+ [Kd.listItem]: {
8591
8606
  content: "inline*",
8592
8607
  attrs: e.attrs,
8593
8608
  defining: !0,
@@ -8603,7 +8618,7 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8603
8618
  ];
8604
8619
  }
8605
8620
  },
8606
- ...this.config.bulletList ? { bulletList: {
8621
+ ...this.config.bulletList ? { [Kd.bulletList]: {
8607
8622
  group: "block list",
8608
8623
  content: "(listItem | list)+",
8609
8624
  parseDOM: [{ tag: "ul" }],
@@ -8611,7 +8626,7 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8611
8626
  return ["ul", 0];
8612
8627
  }
8613
8628
  } } : {},
8614
- ...this.config.numberedList ? { numberedList: {
8629
+ ...this.config.numberedList ? { [Kd.numberedList]: {
8615
8630
  group: "block list",
8616
8631
  content: "(listItem | list)+",
8617
8632
  parseDOM: [{ tag: "ol" }],
@@ -8624,35 +8639,35 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8624
8639
  getPlugins(e) {
8625
8640
  return this.rte = e, [this.contribution(G({
8626
8641
  Enter: (e, t) => {
8627
- let n = kd(e);
8628
- if (n && _d(bd(n))) {
8642
+ let n = Rd(e);
8643
+ if (n && Ed(kd(n))) {
8629
8644
  let r = e.tr;
8630
- return jd(this.rte, n, r) ? (t?.(r.scrollIntoView()), !0) : !1;
8645
+ return Bd(this.rte, n, r) ? (t?.(r.scrollIntoView()), !0) : !1;
8631
8646
  }
8632
8647
  return !1;
8633
8648
  },
8634
8649
  Backspace: (e, t) => {
8635
- let n = kd(e);
8636
- if (n && gd(n)) {
8637
- if (Cd(n, vd(n)) && Td(n, yd(n))?.type === xd(n).type) return !1;
8650
+ let n = Rd(e);
8651
+ if (n && Td(n)) {
8652
+ if (Md(n, Dd(n)) && Pd(n, Od(n))?.type === Ad(n).type) return !1;
8638
8653
  let r = e.tr;
8639
- return jd(this.rte, n, r) ? (t?.(r.scrollIntoView()), !0) : !1;
8654
+ return Bd(this.rte, n, r) ? (t?.(r.scrollIntoView()), !0) : !1;
8640
8655
  }
8641
8656
  return !1;
8642
8657
  },
8643
8658
  Tab: (e, t) => {
8644
- let n = kd(e);
8645
- if (n && gd(n)) {
8659
+ let n = Rd(e);
8660
+ if (n && Td(n)) {
8646
8661
  let r = e.tr;
8647
- return Fd(xd(n).type, n, r), t?.(r.scrollIntoView()), !0;
8662
+ return Wd(Ad(n).type, n, r), t?.(r.scrollIntoView()), !0;
8648
8663
  }
8649
8664
  return !1;
8650
8665
  },
8651
8666
  "Shift-Tab": (e, t) => {
8652
- let n = kd(e);
8653
- if (n && gd(n) && Sd(n)) {
8667
+ let n = Rd(e);
8668
+ if (n && Td(n) && jd(n)) {
8654
8669
  let r = e.tr;
8655
- return Md(n, r), t?.(r.scrollIntoView()), !0;
8670
+ return Vd(n, r), t?.(r.scrollIntoView()), !0;
8656
8671
  }
8657
8672
  return !1;
8658
8673
  },
@@ -8688,14 +8703,14 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8688
8703
  }
8689
8704
  toggleList(e) {
8690
8705
  return fs((t, n) => {
8691
- let { $from: r, $to: i } = Dd(t.selection);
8692
- if (Od(r, i).type.isInGroup("list")) {
8693
- if (Ad(t, r, i, e)) {
8706
+ let { $from: r, $to: i } = Id(t.selection);
8707
+ if (Ld(r, i).type.isInGroup("list")) {
8708
+ if (zd(t, r, i, e)) {
8694
8709
  let e = t.tr;
8695
8710
  return t.doc.nodesBetween(r.pos, i.pos, (n, r) => {
8696
8711
  if (n.type === t.schema.nodes.listItem) {
8697
8712
  let t = e.doc.resolve(e.mapping.map(r + 1));
8698
- jd(this.rte, t, e);
8713
+ Bd(this.rte, t, e);
8699
8714
  }
8700
8715
  }), n?.(e.scrollIntoView()), !0;
8701
8716
  }
@@ -8711,16 +8726,16 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8711
8726
  return t.doc.nodesBetween(r.pos, i.pos, (t, n) => {
8712
8727
  if (!t.isTextblock) return;
8713
8728
  let r = a.doc.resolve(a.mapping.map(n + 1));
8714
- Pd(this.rte, e, r, a);
8729
+ Ud(this.rte, e, r, a);
8715
8730
  }), n?.(a.scrollIntoView()), !0;
8716
8731
  }
8717
8732
  }, (t, n) => t.type === e && n.type === e);
8718
8733
  }
8719
8734
  isSelectionInList(e, t) {
8720
- let { $from: n, $to: r } = Dd(t.selection);
8721
- return Od(n, r).type.isInGroup("list") ? Ad(t, n, r, e) : !1;
8735
+ let { $from: n, $to: r } = Id(t.selection);
8736
+ return Ld(n, r).type.isInGroup("list") ? zd(t, n, r, e) : !1;
8722
8737
  }
8723
- }), Rd = [
8738
+ }), { nodes: Kd }), Jd = [
8724
8739
  {
8725
8740
  value: "left",
8726
8741
  icon: "align-left",
@@ -8736,7 +8751,7 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8736
8751
  icon: "align-right",
8737
8752
  label: "right"
8738
8753
  }
8739
- ], zd = (e) => Rd.find((t) => t.value === e)?.value ?? "left", Bd = y(class extends C {
8754
+ ], Yd = (e) => Jd.find((t) => t.value === e)?.value ?? "left", Xd = y(class extends C {
8740
8755
  constructor(...e) {
8741
8756
  super(...e), this.name = "RteAlignmentFeature";
8742
8757
  }
@@ -8745,10 +8760,10 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8745
8760
  name: "textAlign",
8746
8761
  default: "left",
8747
8762
  fromDOM(e) {
8748
- return zd(e.style.textAlign);
8763
+ return Yd(e.style.textAlign);
8749
8764
  },
8750
8765
  toStyles(e) {
8751
- return [`text-align: ${zd(e.attrs.textAlign)}`];
8766
+ return [`text-align: ${Yd(e.attrs.textAlign)}`];
8752
8767
  }
8753
8768
  })];
8754
8769
  }
@@ -8768,12 +8783,12 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8768
8783
  label: () => e.rte.getLocale().richTextEditor.alignment,
8769
8784
  icon: () => {
8770
8785
  let t = this.getAlignmentFromSelection(e.view.state);
8771
- return `${Rd.find((e) => e.value === t)?.icon ?? "align-left"}-line`;
8786
+ return `${Jd.find((e) => e.value === t)?.icon ?? "align-left"}-line`;
8772
8787
  }
8773
8788
  }),
8774
8789
  children: [yu(e, {
8775
8790
  slot: "header",
8776
- children: Rd.map((t, n) => $(e, {
8791
+ children: Jd.map((t, n) => $(e, {
8777
8792
  dynamicIcon: t.icon,
8778
8793
  label: () => e.rte.getLocale().richTextEditor.alignments[t.label],
8779
8794
  noTooltip: !0,
@@ -8810,13 +8825,13 @@ var pd = Symbol("mixedColor"), md = Object.assign(y(class extends C {
8810
8825
  }), t.storedMarks && r.setStoredMarks(t.storedMarks), n?.(r.scrollIntoView()), !0;
8811
8826
  };
8812
8827
  }
8813
- }), Vd = ".link-popover{flex-direction:column;gap:8px;inline-size:450px;padding:16px;display:flex}.link-popover-header{justify-content:space-between;align-items:center;display:flex}.link-popover-label{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base-condensed)}.link-popover-content{flex-direction:column;gap:16px;display:flex}.link,.rich-text a[href],.link:visited,.rich-text a[href]:visited{color:var(--vvd-color-cta-600)}.link:hover,.rich-text a[href]:hover{color:var(--vvd-color-cta-500)}.link:active,.rich-text a[href]:active{color:var(--vvd-color-cta-400)}.link-action-bar{justify-content:end;gap:8px;display:flex}.link-toolbar-menu{flex-direction:column;gap:16px;inline-size:368px;padding:8px;display:flex}", Hd = "(?:https?://|www\\.)[^\\s<]+";
8814
- function Ud(e, t, n, r) {
8828
+ }), Zd = ".link-popover{flex-direction:column;gap:8px;inline-size:450px;padding:16px;display:flex}.link-popover-header{justify-content:space-between;align-items:center;display:flex}.link-popover-label{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base-condensed)}.link-popover-content{flex-direction:column;gap:16px;display:flex}.link,.rich-text a[href],.link:visited,.rich-text a[href]:visited{color:var(--vvd-color-cta-600)}.link:hover,.rich-text a[href]:hover{color:var(--vvd-color-cta-500)}.link:active,.rich-text a[href]:active{color:var(--vvd-color-cta-400)}.link-action-bar{justify-content:end;gap:8px;display:flex}.link-toolbar-menu{flex-direction:column;gap:16px;inline-size:368px;padding:8px;display:flex}", Qd = "(?:https?://|www\\.)[^\\s<]+";
8829
+ function $d(e, t, n, r) {
8815
8830
  if (e.doc.rangeHasMark(n, n + 1, e.schema.marks.link)) return null;
8816
8831
  let i = t.replace(/[.,;:!?) ]+$/, ""), a = i.startsWith("www.") ? `https://${i}` : i, o = e.schema.marks.link.create({ href: a }), s = n + i.length, c = t.slice(i.length), l = e.tr.addMark(n, s, o);
8817
8832
  return c && l.replaceWith(s, r, e.schema.text(c)), l;
8818
8833
  }
8819
- var Wd = y(class extends C {
8834
+ var ef = { link: "link" }, tf = Object.assign(y(class extends C {
8820
8835
  constructor(...e) {
8821
8836
  super(...e), this.name = "RteLinkFeature", this.removeLink = (e, t) => {
8822
8837
  let n = e.tr, r = this.getCurrentLink(e);
@@ -8824,10 +8839,10 @@ var Wd = y(class extends C {
8824
8839
  };
8825
8840
  }
8826
8841
  getStyles() {
8827
- return [this.contribution(Vd)];
8842
+ return [this.contribution(Zd)];
8828
8843
  }
8829
8844
  getSchema() {
8830
- return [this.contribution({ marks: { link: {
8845
+ return [this.contribution({ marks: { [ef.link]: {
8831
8846
  attrs: { href: { validate: "string" } },
8832
8847
  inclusive: !1,
8833
8848
  parseDOM: [{
@@ -8847,15 +8862,15 @@ var Wd = y(class extends C {
8847
8862
  } } }, ve.high)];
8848
8863
  }
8849
8864
  getTextblockMarks() {
8850
- return [this.contribution({ markName: "link" })];
8865
+ return [this.contribution({ markName: ef.link })];
8851
8866
  }
8852
8867
  getInputRules() {
8853
- let e = RegExp(`${Hd}$`);
8868
+ let e = RegExp(`${Qd}$`);
8854
8869
  return [this.contribution({
8855
- rule: new ju(RegExp(`${Hd} $`), (e, t, n, r) => Ud(e, t[0], n, r)),
8870
+ rule: new ju(RegExp(`${Qd} $`), (e, t, n, r) => $d(e, t[0], n, r)),
8856
8871
  enterHandler: {
8857
8872
  regex: e,
8858
- handler: (e, t, n, r) => Ud(e, t[0], n, r)
8873
+ handler: (e, t, n, r) => $d(e, t[0], n, r)
8859
8874
  }
8860
8875
  })];
8861
8876
  }
@@ -9033,11 +9048,11 @@ var Wd = y(class extends C {
9033
9048
  return c && (a = c.start, o = c.end), s.insertText(n, a, o), s.addMark(a, a + n.length, e.schema.marks.link.create({ href: t })), i?.(s.scrollIntoView()), !0;
9034
9049
  };
9035
9050
  }
9036
- }), Gd = ".inline-image-wrapper{vertical-align:text-bottom;display:inline-block}.inline-image{block-size:auto;display:block}.inline-image-popover{align-items:center;gap:4px;padding:8px;display:flex}.inline-image-placeholder{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);font-feature-settings:normal;font-variant-ligatures:normal;overflow-wrap:normal;pointer-events:none;white-space:normal}", Kd = (e) => e !== null && !!e.next, qd = 1, Jd = () => qd++, Yd = class {
9051
+ }), { marks: ef }), nf = ".inline-image-wrapper{vertical-align:text-bottom;display:inline-block}.inline-image{block-size:auto;display:block}.inline-image-popover{align-items:center;gap:4px;padding:8px;display:flex}.inline-image-placeholder{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);font-feature-settings:normal;font-variant-ligatures:normal;overflow-wrap:normal;pointer-events:none;white-space:normal}", rf = (e) => e !== null && !!e.next, af = 1, of = () => af++, sf = class {
9037
9052
  constructor(e, t, n, r) {
9038
9053
  this.view = t, this.getPos = n, this.config = r, this.content = null, this.dom = document.createElement("div"), this.dom.className = "inline-image-wrapper", this.imageUrl = e.attrs.imageUrl, this.img = document.createElement("img"), this.initializeImg(e);
9039
- let i = this.config.resolveUrl ? this.config.resolveUrl(this.imageUrl) : this.imageUrl, a = Kd(i) ? null : i;
9040
- this.handleResolvedUrl(a), Kd(i) && this.handleResolvedUrlGenerator(i);
9054
+ let i = this.config.resolveUrl ? this.config.resolveUrl(this.imageUrl) : this.imageUrl, a = rf(i) ? null : i;
9055
+ this.handleResolvedUrl(a), rf(i) && this.handleResolvedUrlGenerator(i);
9041
9056
  }
9042
9057
  setContent(e, { onDestroy: t, allowPopover: n } = {}) {
9043
9058
  this.content?.remove(), this.onContentDestroy?.(), this.content = e, e && (this.onContentDestroy = t, this.dom.appendChild(e)), Pe.setBlockPopover(this.dom, !n);
@@ -9051,7 +9066,7 @@ var Wd = y(class extends C {
9051
9066
  handleResolvedUrl(e) {
9052
9067
  if (typeof e == "string") this.renderImg(e);
9053
9068
  else if (e?.type === "placeholder") {
9054
- let t = `inline-image-placeholder-${Jd()}`, n = document.createElement("slot");
9069
+ let t = `inline-image-placeholder-${of()}`, n = document.createElement("slot");
9055
9070
  n.className = "inline-image-placeholder", n.name = t;
9056
9071
  let r = e.create?.(t), i = this.view.dom.getRootNode().host;
9057
9072
  Te(i, "inline-image-placeholder", t, { url: this.imageUrl }), this.setContent(n, { onDestroy: () => {
@@ -9079,15 +9094,15 @@ var Wd = y(class extends C {
9079
9094
  destroy() {
9080
9095
  this.setContent(null);
9081
9096
  }
9082
- }, Xd = y(class extends C {
9097
+ }, cf = { inlineImage: "inlineImage" }, lf = Object.assign(y(class extends C {
9083
9098
  constructor(e = {}) {
9084
9099
  super(), this.config = e, this.name = "RteInlineImageFeature";
9085
9100
  }
9086
9101
  getStyles() {
9087
- return [this.contribution(Gd)];
9102
+ return [this.contribution(nf)];
9088
9103
  }
9089
9104
  getSchema() {
9090
- return [this.contribution({ nodes: { inlineImage: {
9105
+ let e = {
9091
9106
  inline: !0,
9092
9107
  group: "inline",
9093
9108
  selectable: !0,
@@ -9137,12 +9152,13 @@ var Wd = y(class extends C {
9137
9152
  };
9138
9153
  return r && (s.style = `max-width: ${Sl(r)}; height: auto;`), i && (s.width = i), a && (s.height = a), ["img", s];
9139
9154
  }
9140
- } } })];
9155
+ };
9156
+ return [this.contribution({ nodes: { [cf.inlineImage]: e } })];
9141
9157
  }
9142
9158
  getPlugins(e) {
9143
9159
  let t;
9144
9160
  return [this.contribution(new F({
9145
- props: { nodeViews: { inlineImage: (e, t, n) => new Yd(e, t, n, this.config) } },
9161
+ props: { nodeViews: { inlineImage: (e, t, n) => new sf(e, t, n, this.config) } },
9146
9162
  view: (n) => {
9147
9163
  let r = new fu(n, e, {
9148
9164
  popupPlacement: "bottom",
@@ -9219,7 +9235,7 @@ var Wd = y(class extends C {
9219
9235
  let { size: n, naturalWidth: r } = t.node.attrs;
9220
9236
  return r !== null && n === this.calculateSmallWidth(r) ? "small" : n === "100%" ? "fit" : n === null ? "original" : null;
9221
9237
  }
9222
- }), Zd = async (e) => {
9238
+ }), { nodes: cf }), uf = async (e) => {
9223
9239
  try {
9224
9240
  return {
9225
9241
  type: "ok",
@@ -9231,7 +9247,7 @@ var Wd = y(class extends C {
9231
9247
  error: e
9232
9248
  };
9233
9249
  }
9234
- }, Qd = y(class extends C {
9250
+ }, df = y(class extends C {
9235
9251
  constructor(e) {
9236
9252
  super(), this.config = e, this.name = "RteFileHandlerFeature";
9237
9253
  }
@@ -9290,7 +9306,7 @@ var Wd = y(class extends C {
9290
9306
  i.type === "selection" && !a.selection.empty && a.deleteSelection();
9291
9307
  let o = i.type === "selection" ? a.selection.from : i.pos, s = n(a, o);
9292
9308
  e.dispatchTransaction(a);
9293
- let c = await Zd(t), l = s.getPos(e.state), u = e.state.tr;
9309
+ let c = await uf(t), l = s.getPos(e.state), u = e.state.tr;
9294
9310
  s.remove(u), l !== null && c.type === "ok" && r(u, c.result, {
9295
9311
  type: "pos",
9296
9312
  pos: l
@@ -9319,7 +9335,7 @@ var Wd = y(class extends C {
9319
9335
  }
9320
9336
  } }))];
9321
9337
  }
9322
- }), $d = y(class extends C {
9338
+ }), ff = y(class extends C {
9323
9339
  constructor(e) {
9324
9340
  super(), this.config = e, this.name = "RteDebugFeature";
9325
9341
  }
@@ -9348,7 +9364,7 @@ var Wd = y(class extends C {
9348
9364
  drop: () => t
9349
9365
  } } }), ve.high)];
9350
9366
  }
9351
- }), ef = y(class extends C {
9367
+ }), pf = y(class extends C {
9352
9368
  constructor(e, t) {
9353
9369
  super(), this.featureId = e, this.options = t, this.name = `RteToolbarButtonFeature[${e}]`;
9354
9370
  }
@@ -9374,7 +9390,7 @@ var Wd = y(class extends C {
9374
9390
  }
9375
9391
  }
9376
9392
  }
9377
- }), tf = (e) => typeof e == "object" && !!e && "next" in e, nf = /^[a-zA-Z0-9-]+$/, rf = (e) => e == null ? {
9393
+ }), mf = (e) => typeof e == "object" && !!e && "next" in e, hf = /^[a-zA-Z0-9-]+$/, gf = (e) => e == null ? {
9378
9394
  text: "",
9379
9395
  variant: []
9380
9396
  } : typeof e == "string" ? {
@@ -9382,17 +9398,17 @@ var Wd = y(class extends C {
9382
9398
  variant: []
9383
9399
  } : {
9384
9400
  text: e.text,
9385
- variant: (e.variant ?? []).filter((e) => nf.test(e) ? !0 : (console.warn(`[rich-text-editor] Ignoring invalid atom variant "${e}".`), !1))
9386
- }, af = (e, t) => [`node--${e}`, ...t.map((e) => `atom-variant--${e}`)].join(" "), of = class {
9401
+ variant: (e.variant ?? []).filter((e) => hf.test(e) ? !0 : (console.warn(`[rich-text-editor] Ignoring invalid atom variant "${e}".`), !1))
9402
+ }, _f = (e, t) => [`node--${e}`, ...t.map((e) => `atom-variant--${e}`)].join(" "), vf = class {
9387
9403
  constructor(e, t, n) {
9388
9404
  this.atomName = n, this.dom = document.createElement("span"), this.dom.className = "atom-wrapper";
9389
9405
  let r = t.resolveValue ? t.resolveValue(e.attrs.value) : e.attrs.value;
9390
- tf(r) ? (this.render(null), this.handleResolvedGenerator(r)) : this.render(r);
9406
+ mf(r) ? (this.render(null), this.handleResolvedGenerator(r)) : this.render(r);
9391
9407
  }
9392
9408
  render(e) {
9393
- let { text: t, variant: n } = rf(e);
9409
+ let { text: t, variant: n } = gf(e);
9394
9410
  this.dom.textContent !== t && (this.dom.textContent = t);
9395
- let r = af(this.atomName, n);
9411
+ let r = _f(this.atomName, n);
9396
9412
  this.dom.getAttribute("part") !== r && this.dom.setAttribute("part", r);
9397
9413
  }
9398
9414
  async handleResolvedGenerator(e) {
@@ -9406,7 +9422,7 @@ var Wd = y(class extends C {
9406
9422
  this.render(null), console.warn("[rich-text-editor] Error while resolving atom value:", e);
9407
9423
  }
9408
9424
  }
9409
- }, sf = y(class extends C {
9425
+ }, yf = y(class extends C {
9410
9426
  constructor(e, t = {}) {
9411
9427
  super(), this.atomName = e, this.config = t, this.name = `RteAtomFeature[${e}]`;
9412
9428
  }
@@ -9425,7 +9441,7 @@ var Wd = y(class extends C {
9425
9441
  let t = this.config.serializeValueToHtml ? this.config.serializeValueToHtml(e.attrs.value) : e.attrs.value;
9426
9442
  return t === null ? document.createDocumentFragment() : [
9427
9443
  "span",
9428
- { part: af(this.atomName, []) },
9444
+ { part: _f(this.atomName, []) },
9429
9445
  t
9430
9446
  ];
9431
9447
  },
@@ -9444,9 +9460,9 @@ var Wd = y(class extends C {
9444
9460
  return [this.contribution({ nodes: { [this.atomName]: e } })];
9445
9461
  }
9446
9462
  getPlugins(e) {
9447
- return [this.contribution(new F({ props: { nodeViews: { [this.atomName]: (e) => new of(e, this.config, this.atomName) } } }))];
9463
+ return [this.contribution(new F({ props: { nodeViews: { [this.atomName]: (e) => new vf(e, this.config, this.atomName) } } }))];
9448
9464
  }
9449
- }), cf = y(class extends C {
9465
+ }), bf = y(class extends C {
9450
9466
  constructor(e, t) {
9451
9467
  super(), this.featureId = e, this.options = t, this.name = `RteInputRuleFeature[${e}]`;
9452
9468
  }
@@ -9463,20 +9479,20 @@ var Wd = y(class extends C {
9463
9479
  });
9464
9480
  //#endregion
9465
9481
  //#region src/lib/rich-text-editor/rte/features/keyboard-shortcuts.ts
9466
- function lf(e, t) {
9482
+ function xf(e, t) {
9467
9483
  return (n, r) => e(t);
9468
9484
  }
9469
- var uf = y(class extends C {
9485
+ var Sf = y(class extends C {
9470
9486
  constructor(e, t) {
9471
9487
  super(), this.featureId = e, this.options = t, this.name = `RteKeyboardShortcutsFeature[${e}]`;
9472
9488
  }
9473
9489
  getPlugins(e) {
9474
9490
  let t = {};
9475
- for (let [n, r] of Object.entries(this.options.shortcuts)) t[n] = lf(r, e.facade);
9491
+ for (let [n, r] of Object.entries(this.options.shortcuts)) t[n] = xf(r, e.facade);
9476
9492
  return [this.contribution(G(t), ve.high)];
9477
9493
  }
9478
- }), df = ".suggest-popover{flex-direction:column;gap:2px;max-block-size:408px;min-inline-size:128px;max-inline-size:248px;padding:4px;display:flex}.suggest-loading-widget{vertical-align:middle;white-space:normal;align-items:center;margin-inline-start:2px;display:inline-flex}.suggest-empty-message{color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);text-align:center;justify-content:center;align-items:center;min-block-size:40px;display:flex}", ff = (e) => "suggestions" in e, pf = (e) => !(!e?.suggestions || e.dismissed), mf = (e) => pf(e) && e.suggestions.items.length > 0;
9479
- function hf(e, t) {
9494
+ }), Cf = ".suggest-popover{flex-direction:column;gap:2px;max-block-size:408px;min-inline-size:128px;max-inline-size:248px;padding:4px;display:flex}.suggest-loading-widget{vertical-align:middle;white-space:normal;align-items:center;margin-inline-start:2px;display:inline-flex}.suggest-empty-message{color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);text-align:center;justify-content:center;align-items:center;min-block-size:40px;display:flex}", wf = (e) => "suggestions" in e, Tf = (e) => !(!e?.suggestions || e.dismissed), Ef = (e) => Tf(e) && e.suggestions.items.length > 0;
9495
+ function Df(e, t) {
9480
9496
  let { $cursor: n } = e.selection;
9481
9497
  if (!n) return null;
9482
9498
  let r = Lu(n), i = t.exec(r);
@@ -9489,17 +9505,17 @@ function hf(e, t) {
9489
9505
  end: a + i.index + i[0].length
9490
9506
  };
9491
9507
  }
9492
- var gf = (e, t, n) => {
9508
+ var Of = (e, t, n) => {
9493
9509
  let { state: r } = e;
9494
9510
  e.dispatch(ru(r.tr));
9495
9511
  let i = e.state.tr;
9496
9512
  i.replaceWith(t.start, t.end, x.fromJSON(e.state.schema, n));
9497
9513
  let a = i.mapping.map(t.end);
9498
9514
  i.setSelection(N.create(i.doc, a)), e.dispatch(i.scrollIntoView());
9499
- }, _f = y(class extends C {
9515
+ }, kf = y(class extends C {
9500
9516
  selectSuggestion(e, t, n) {
9501
9517
  let r = this.options.select(n);
9502
- gf(e, t.match, r), e.focus();
9518
+ Of(e, t.match, r), e.focus();
9503
9519
  }
9504
9520
  async startLoadingSuggestions(e, t) {
9505
9521
  let n = ++this.loadGeneration, r = await this.options.load(e);
@@ -9513,7 +9529,7 @@ var gf = (e, t, n) => {
9513
9529
  super(), this.featureId = e, this.options = t, this.pluginKey = new ln("suggest"), this.loadGeneration = 0, this.name = `RteSuggestFeature[${e}]`;
9514
9530
  }
9515
9531
  getStyles() {
9516
- return [this.contribution(df)];
9532
+ return [this.contribution(Cf)];
9517
9533
  }
9518
9534
  getPlugins(e) {
9519
9535
  let t = (t) => e.state.tr.setMeta(this.pluginKey, t), n = (n) => e.dispatchTransaction(t(n)), r = new F({
@@ -9521,7 +9537,7 @@ var gf = (e, t, n) => {
9521
9537
  state: {
9522
9538
  init: () => null,
9523
9539
  apply: (t, r, i, a) => {
9524
- let o = hf(a, this.options.pattern);
9540
+ let o = Df(a, this.options.pattern);
9525
9541
  if (!o || !r && !t.docChanged) return null;
9526
9542
  if (r?.dismissed) return r;
9527
9543
  let s = (n) => n ? r?.loadingDecoration.find().length ?? 0 ? r.loadingDecoration.map(t.mapping, t.doc) : H.create(t.doc, [V.widget(o.end, () => {
@@ -9535,13 +9551,13 @@ var gf = (e, t, n) => {
9535
9551
  })]) : H.empty, c = t.getMeta(this.pluginKey);
9536
9552
  if (r && c) switch (c.type) {
9537
9553
  case "load": {
9538
- let e = c.entries.filter((e) => !ff(e) || e.suggestions.length > 0);
9554
+ let e = c.entries.filter((e) => !wf(e) || e.suggestions.length > 0);
9539
9555
  return {
9540
9556
  ...r,
9541
9557
  suggestions: {
9542
9558
  generation: c.generation,
9543
9559
  entries: e,
9544
- items: e.flatMap((e) => ff(e) ? e.suggestions : [e]),
9560
+ items: e.flatMap((e) => wf(e) ? e.suggestions : [e]),
9545
9561
  selectedIndex: 0,
9546
9562
  visibleFocus: !1
9547
9563
  },
@@ -9631,7 +9647,7 @@ var gf = (e, t, n) => {
9631
9647
  }), s;
9632
9648
  }, u = 0;
9633
9649
  for (let t of o.entries) {
9634
- if (!ff(t)) {
9650
+ if (!wf(t)) {
9635
9651
  i.appendChild(l(t, u++));
9636
9652
  continue;
9637
9653
  }
@@ -9644,7 +9660,7 @@ var gf = (e, t, n) => {
9644
9660
  return {
9645
9661
  update: (e) => {
9646
9662
  n.updateBindings();
9647
- let t = this.pluginKey.getState(e.state), i = pf(t);
9663
+ let t = this.pluginKey.getState(e.state), i = Tf(t);
9648
9664
  r.requestOpenState(i), i ? l(t) : c(!1);
9649
9665
  },
9650
9666
  destroy: () => {
@@ -9654,24 +9670,24 @@ var gf = (e, t, n) => {
9654
9670
  }
9655
9671
  });
9656
9672
  return [this.contribution(r), this.contribution(G({
9657
- ArrowUp: (e, n) => mf(this.pluginKey.getState(e)) ? (n?.(t({
9673
+ ArrowUp: (e, n) => Ef(this.pluginKey.getState(e)) ? (n?.(t({
9658
9674
  type: "navigate",
9659
9675
  action: "up"
9660
9676
  })), !0) : !1,
9661
- ArrowDown: (e, n) => mf(this.pluginKey.getState(e)) ? (n?.(t({
9677
+ ArrowDown: (e, n) => Ef(this.pluginKey.getState(e)) ? (n?.(t({
9662
9678
  type: "navigate",
9663
9679
  action: "down"
9664
9680
  })), !0) : !1,
9665
9681
  Enter: (e, t, n) => {
9666
9682
  let r = this.pluginKey.getState(e);
9667
- if (!mf(r)) return !1;
9683
+ if (!Ef(r)) return !1;
9668
9684
  let i = r.suggestions.items[r.suggestions.selectedIndex];
9669
9685
  return n && this.selectSuggestion(n, r, i), !0;
9670
9686
  },
9671
- Escape: (e, n) => pf(this.pluginKey.getState(e)) ? (n?.(t({ type: "dismiss" })), !0) : !1
9687
+ Escape: (e, n) => Tf(this.pluginKey.getState(e)) ? (n?.(t({ type: "dismiss" })), !0) : !1
9672
9688
  }), ve.high)];
9673
9689
  }
9674
- }), vf = (e) => e.textBetween(0, e.content.size, void 0, " ").length, yf = y(class extends C {
9690
+ }), Af = (e) => e.textBetween(0, e.content.size, void 0, " ").length, jf = y(class extends C {
9675
9691
  constructor(e) {
9676
9692
  super(), this.config = e, this.name = "RteCharacterCountFeature";
9677
9693
  }
@@ -9679,26 +9695,26 @@ var gf = (e, t, n) => {
9679
9695
  let e = this.config?.limit;
9680
9696
  return e === void 0 ? [] : [this.contribution(new F({ filterTransaction: (t, n) => {
9681
9697
  if (!t.docChanged) return !0;
9682
- let r = vf(n.doc), i = vf(t.doc);
9698
+ let r = Af(n.doc), i = Af(t.doc);
9683
9699
  if (i <= e) return !0;
9684
9700
  if (r > e) return i <= r;
9685
9701
  if (!t.getMeta("paste")) return !1;
9686
9702
  let a = t.selection.$head.pos, o = a - (i - e), s = a;
9687
- return t.deleteRange(o, s), vf(t.doc) <= e;
9703
+ return t.deleteRange(o, s), Af(t.doc) <= e;
9688
9704
  } }))];
9689
9705
  }
9690
9706
  getPublicInterface(e) {
9691
9707
  let t = this.config?.limit;
9692
9708
  return {
9693
9709
  get characters() {
9694
- return vf(e.state.doc);
9710
+ return Af(e.state.doc);
9695
9711
  },
9696
9712
  get limit() {
9697
9713
  return t;
9698
9714
  }
9699
9715
  };
9700
9716
  }
9701
- }), bf = s("rich-text-editor", Ae, je, [
9717
+ }), Mf = s("rich-text-editor", Ae, je, [
9702
9718
  pe,
9703
9719
  de,
9704
9720
  ce,
@@ -9716,6 +9732,6 @@ var gf = (e, t, n) => {
9716
9732
  });
9717
9733
  //#endregion
9718
9734
  //#region src/lib/rich-text-editor/index.ts
9719
- n(bf)();
9735
+ n(Mf)();
9720
9736
  //#endregion
9721
- export { Bd as RteAlignmentFeature, sf as RteAtomFeature, zu as RteBase, ad as RteBoldFeature, yf as RteCharacterCountFeature, Il as RteConfig, $d as RteDropHandlerFeature, Qd as RteFileHandlerFeature, qu as RteFontSizePickerFeature, Gu as RteHardBreakFeature, Tl as RteHtmlParser, Ol as RteHtmlSerializer, Xd as RteInlineImageFeature, cf as RteInputRuleFeature, od as RteItalicFeature, uf as RteKeyboardShortcutsFeature, Wd as RteLinkFeature, Ld as RteListFeature, ud as RteMonospaceFeature, Wu as RtePlaceholderFeature, cd as RteStrikethroughFeature, _f as RteSuggestFeature, Bu as RteTextBlockPickerFeature, md as RteTextColorPickerFeature, ef as RteToolbarButtonFeature, Hu as RteToolbarFeature, sd as RteUnderlineFeature };
9737
+ export { Xd as RteAlignmentFeature, yf as RteAtomFeature, Bu as RteBase, ld as RteBoldFeature, jf as RteCharacterCountFeature, Il as RteConfig, ff as RteDropHandlerFeature, df as RteFileHandlerFeature, Xu as RteFontSizePickerFeature, qu as RteHardBreakFeature, Tl as RteHtmlParser, Ol as RteHtmlSerializer, lf as RteInlineImageFeature, bf as RteInputRuleFeature, dd as RteItalicFeature, Sf as RteKeyboardShortcutsFeature, tf as RteLinkFeature, qd as RteListFeature, vd as RteMonospaceFeature, Gu as RtePlaceholderFeature, hd as RteStrikethroughFeature, kf as RteSuggestFeature, Vu as RteTextBlockPickerFeature, Cd as RteTextColorPickerFeature, pf as RteToolbarButtonFeature, Uu as RteToolbarFeature, pd as RteUnderlineFeature };