@dialpad/dialtone-vue 2.126.0 → 2.127.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 (279) hide show
  1. package/dist/chunks/_plugin-vue2_normalizer-ZK80B3OL.js +2 -0
  2. package/dist/chunks/_plugin-vue2_normalizer-ZK80B3OL.js.map +1 -0
  3. package/dist/chunks/dropdown-zhMEz3bn.js +2 -0
  4. package/dist/chunks/dropdown-zhMEz3bn.js.map +1 -0
  5. package/dist/chunks/dropdown_constants-KHFvVI2L.js +2 -0
  6. package/dist/chunks/dropdown_constants-KHFvVI2L.js.map +1 -0
  7. package/dist/chunks/icon_constants-2S_OSQ1t.js +2 -0
  8. package/dist/chunks/icon_constants-2S_OSQ1t.js.map +1 -0
  9. package/dist/chunks/index-2jPosQBn.js +3 -0
  10. package/dist/chunks/index-2jPosQBn.js.map +1 -0
  11. package/dist/chunks/index-sdfB7Aok.js +2 -0
  12. package/dist/chunks/index-sdfB7Aok.js.map +1 -0
  13. package/dist/chunks/input-o-fc1X4b.js +2 -0
  14. package/dist/chunks/input-o-fc1X4b.js.map +1 -0
  15. package/dist/chunks/input_group-j2gTtc1C.js +2 -0
  16. package/dist/chunks/input_group-j2gTtc1C.js.map +1 -0
  17. package/dist/chunks/keyboard_list_navigation-N74Bpdq7.js +2 -0
  18. package/dist/chunks/keyboard_list_navigation-N74Bpdq7.js.map +1 -0
  19. package/dist/chunks/link_constants-Kn6kP4i1.js +2 -0
  20. package/dist/chunks/link_constants-Kn6kP4i1.js.map +1 -0
  21. package/dist/chunks/list_item_constants-Tsz5CO1m.js +2 -0
  22. package/dist/chunks/list_item_constants-Tsz5CO1m.js.map +1 -0
  23. package/dist/chunks/modal-qEzlo0Sj.js +2 -0
  24. package/dist/chunks/modal-qEzlo0Sj.js.map +1 -0
  25. package/dist/chunks/notice_action-u3ZKIhit.js +2 -0
  26. package/dist/chunks/notice_action-u3ZKIhit.js.map +1 -0
  27. package/dist/chunks/notice_constants-mC6al2Dm.js +2 -0
  28. package/dist/chunks/notice_constants-mC6al2Dm.js.map +1 -0
  29. package/dist/chunks/popover_constants-hOEhklvr.js +2 -0
  30. package/dist/chunks/popover_constants-hOEhklvr.js.map +1 -0
  31. package/dist/chunks/sr_only_close_button-ErijKGYR.js +3 -0
  32. package/dist/chunks/sr_only_close_button-ErijKGYR.js.map +1 -0
  33. package/dist/chunks/stack_constants-m9Ickqw0.js +2 -0
  34. package/dist/chunks/stack_constants-m9Ickqw0.js.map +1 -0
  35. package/dist/chunks/tab-7hJQSLFx.js +2 -0
  36. package/dist/chunks/tab-7hJQSLFx.js.map +1 -0
  37. package/dist/component-documentation.json +1 -1
  38. package/dist/dialtone-vue.cjs +2 -0
  39. package/dist/dialtone-vue.cjs.map +1 -0
  40. package/dist/lib/attachment-carousel.cjs +2 -0
  41. package/dist/lib/attachment-carousel.cjs.map +1 -0
  42. package/dist/lib/attachment-carousel.js +2 -3
  43. package/dist/lib/attachment-carousel.js.map +1 -1
  44. package/dist/lib/avatar.cjs +2 -0
  45. package/dist/lib/avatar.cjs.map +1 -0
  46. package/dist/lib/avatar.js +2 -3
  47. package/dist/lib/avatar.js.map +1 -1
  48. package/dist/lib/badge.cjs +2 -0
  49. package/dist/lib/badge.cjs.map +1 -0
  50. package/dist/lib/badge.js +2 -3
  51. package/dist/lib/badge.js.map +1 -1
  52. package/dist/lib/banner.cjs +3 -0
  53. package/dist/lib/banner.cjs.map +1 -0
  54. package/dist/lib/banner.js +2 -3
  55. package/dist/lib/banner.js.map +1 -1
  56. package/dist/lib/breadcrumbs.cjs +2 -0
  57. package/dist/lib/breadcrumbs.cjs.map +1 -0
  58. package/dist/lib/button-group.cjs +2 -0
  59. package/dist/lib/button-group.cjs.map +1 -0
  60. package/dist/lib/button.cjs +2 -0
  61. package/dist/lib/button.cjs.map +1 -0
  62. package/dist/lib/callbar-button-with-popover.cjs +2 -0
  63. package/dist/lib/callbar-button-with-popover.cjs.map +1 -0
  64. package/dist/lib/callbar-button-with-popover.js +2 -3
  65. package/dist/lib/callbar-button-with-popover.js.map +1 -1
  66. package/dist/lib/callbar-button.cjs +2 -0
  67. package/dist/lib/callbar-button.cjs.map +1 -0
  68. package/dist/lib/callbox.cjs +2 -0
  69. package/dist/lib/callbox.cjs.map +1 -0
  70. package/dist/lib/callbox.js +2 -3
  71. package/dist/lib/callbox.js.map +1 -1
  72. package/dist/lib/card.cjs +2 -0
  73. package/dist/lib/card.cjs.map +1 -0
  74. package/dist/lib/checkbox-group.cjs +2 -0
  75. package/dist/lib/checkbox-group.cjs.map +1 -0
  76. package/dist/lib/checkbox.cjs +2 -0
  77. package/dist/lib/checkbox.cjs.map +1 -0
  78. package/dist/lib/chip.cjs +2 -0
  79. package/dist/lib/chip.cjs.map +1 -0
  80. package/dist/lib/chip.js +2 -3
  81. package/dist/lib/chip.js.map +1 -1
  82. package/dist/lib/codeblock.cjs +3 -0
  83. package/dist/lib/codeblock.cjs.map +1 -0
  84. package/dist/lib/collapsible.cjs +2 -0
  85. package/dist/lib/collapsible.cjs.map +1 -0
  86. package/dist/lib/collapsible.js +2 -3
  87. package/dist/lib/collapsible.js.map +1 -1
  88. package/dist/lib/combobox-multi-select.cjs +2 -0
  89. package/dist/lib/combobox-multi-select.cjs.map +1 -0
  90. package/dist/lib/combobox-with-popover.cjs +2 -0
  91. package/dist/lib/combobox-with-popover.cjs.map +1 -0
  92. package/dist/lib/combobox-with-popover.js +1 -1
  93. package/dist/lib/combobox.cjs +2 -0
  94. package/dist/lib/combobox.cjs.map +1 -0
  95. package/dist/lib/constants.cjs +2 -0
  96. package/dist/lib/constants.cjs.map +1 -0
  97. package/dist/lib/contact-info.cjs +2 -0
  98. package/dist/lib/contact-info.cjs.map +1 -0
  99. package/dist/lib/contact-info.js +2 -3
  100. package/dist/lib/contact-info.js.map +1 -1
  101. package/dist/lib/contact-row.cjs +2 -0
  102. package/dist/lib/contact-row.cjs.map +1 -0
  103. package/dist/lib/datepicker.cjs +2 -0
  104. package/dist/lib/datepicker.cjs.map +1 -0
  105. package/dist/lib/datepicker.js +12 -13
  106. package/dist/lib/datepicker.js.map +1 -1
  107. package/dist/lib/dates.cjs +2 -0
  108. package/dist/lib/dates.cjs.map +1 -0
  109. package/dist/lib/description-list.cjs +2 -0
  110. package/dist/lib/description-list.cjs.map +1 -0
  111. package/dist/lib/dropdown.cjs +2 -0
  112. package/dist/lib/dropdown.cjs.map +1 -0
  113. package/dist/lib/dropdown.js +6 -7
  114. package/dist/lib/dropdown.js.map +1 -1
  115. package/dist/lib/editor.cjs +2 -0
  116. package/dist/lib/editor.cjs.map +1 -0
  117. package/dist/lib/emoji-picker.cjs +2 -0
  118. package/dist/lib/emoji-picker.cjs.map +1 -0
  119. package/dist/lib/emoji-picker.js +2 -3
  120. package/dist/lib/emoji-picker.js.map +1 -1
  121. package/dist/lib/emoji-row.cjs +2 -0
  122. package/dist/lib/emoji-row.cjs.map +1 -0
  123. package/dist/lib/emoji-text-wrapper.cjs +2 -0
  124. package/dist/lib/emoji-text-wrapper.cjs.map +1 -0
  125. package/dist/lib/emoji.cjs +2 -0
  126. package/dist/lib/emoji.cjs.map +1 -0
  127. package/dist/lib/feed-item-row.cjs +2 -0
  128. package/dist/lib/feed-item-row.cjs.map +1 -0
  129. package/dist/lib/feed-item-row.js +2 -3
  130. package/dist/lib/feed-item-row.js.map +1 -1
  131. package/dist/lib/feed-pill.cjs +2 -0
  132. package/dist/lib/feed-pill.cjs.map +1 -0
  133. package/dist/lib/feed-pill.js +2 -3
  134. package/dist/lib/feed-pill.js.map +1 -1
  135. package/dist/lib/general-row.cjs +2 -0
  136. package/dist/lib/general-row.cjs.map +1 -0
  137. package/dist/lib/group-row.cjs +2 -0
  138. package/dist/lib/group-row.cjs.map +1 -0
  139. package/dist/lib/group-row.js +1 -1
  140. package/dist/lib/grouped-chip.cjs +2 -0
  141. package/dist/lib/grouped-chip.cjs.map +1 -0
  142. package/dist/lib/grouped-chip.js +6 -7
  143. package/dist/lib/grouped-chip.js.map +1 -1
  144. package/dist/lib/hovercard.cjs +2 -0
  145. package/dist/lib/hovercard.cjs.map +1 -0
  146. package/dist/lib/hovercard.js +6 -7
  147. package/dist/lib/hovercard.js.map +1 -1
  148. package/dist/lib/icon.cjs +2 -0
  149. package/dist/lib/icon.cjs.map +1 -0
  150. package/dist/lib/icon.js +14 -38
  151. package/dist/lib/icon.js.map +1 -1
  152. package/dist/lib/image-viewer.cjs +2 -0
  153. package/dist/lib/image-viewer.cjs.map +1 -0
  154. package/dist/lib/image-viewer.js +11 -12
  155. package/dist/lib/image-viewer.js.map +1 -1
  156. package/dist/lib/input-group.cjs +2 -0
  157. package/dist/lib/input-group.cjs.map +1 -0
  158. package/dist/lib/input.cjs +2 -0
  159. package/dist/lib/input.cjs.map +1 -0
  160. package/dist/lib/item-layout.cjs +2 -0
  161. package/dist/lib/item-layout.cjs.map +1 -0
  162. package/dist/lib/ivr-node.cjs +2 -0
  163. package/dist/lib/ivr-node.cjs.map +1 -0
  164. package/dist/lib/ivr-node.js +4 -5
  165. package/dist/lib/ivr-node.js.map +1 -1
  166. package/dist/lib/keyboard-shortcut.cjs +2 -0
  167. package/dist/lib/keyboard-shortcut.cjs.map +1 -0
  168. package/dist/lib/keyboard-shortcut.js +4 -5
  169. package/dist/lib/keyboard-shortcut.js.map +1 -1
  170. package/dist/lib/lazy-show.cjs +2 -0
  171. package/dist/lib/lazy-show.cjs.map +1 -0
  172. package/dist/lib/link.cjs +2 -0
  173. package/dist/lib/link.cjs.map +1 -0
  174. package/dist/lib/list-item-group.cjs +2 -0
  175. package/dist/lib/list-item-group.cjs.map +1 -0
  176. package/dist/lib/list-item.cjs +2 -0
  177. package/dist/lib/list-item.cjs.map +1 -0
  178. package/dist/lib/list-item.js +2 -3
  179. package/dist/lib/list-item.js.map +1 -1
  180. package/dist/lib/message-input.cjs +2 -0
  181. package/dist/lib/message-input.cjs.map +1 -0
  182. package/dist/lib/message-input.js +89 -47
  183. package/dist/lib/message-input.js.map +1 -1
  184. package/dist/lib/mixins.cjs +2 -0
  185. package/dist/lib/mixins.cjs.map +1 -0
  186. package/dist/lib/modal.cjs +3 -0
  187. package/dist/lib/modal.cjs.map +1 -0
  188. package/dist/lib/modal.js +10 -11
  189. package/dist/lib/modal.js.map +1 -1
  190. package/dist/lib/notice.cjs +2 -0
  191. package/dist/lib/notice.cjs.map +1 -0
  192. package/dist/lib/notice.js +2 -3
  193. package/dist/lib/notice.js.map +1 -1
  194. package/dist/lib/pagination.cjs +2 -0
  195. package/dist/lib/pagination.cjs.map +1 -0
  196. package/dist/lib/pagination.js +2 -3
  197. package/dist/lib/pagination.js.map +1 -1
  198. package/dist/lib/popover.cjs +2 -0
  199. package/dist/lib/popover.cjs.map +1 -0
  200. package/dist/lib/popover.js +4 -5
  201. package/dist/lib/popover.js.map +1 -1
  202. package/dist/lib/presence.cjs +2 -0
  203. package/dist/lib/presence.cjs.map +1 -0
  204. package/dist/lib/radio-group.cjs +2 -0
  205. package/dist/lib/radio-group.cjs.map +1 -0
  206. package/dist/lib/radio.cjs +2 -0
  207. package/dist/lib/radio.cjs.map +1 -0
  208. package/dist/lib/rich-text-editor.cjs +2 -0
  209. package/dist/lib/rich-text-editor.cjs.map +1 -0
  210. package/dist/lib/rich-text-editor.js +106 -74
  211. package/dist/lib/rich-text-editor.js.map +1 -1
  212. package/dist/lib/root-layout.cjs +2 -0
  213. package/dist/lib/root-layout.cjs.map +1 -0
  214. package/dist/lib/select-menu.cjs +2 -0
  215. package/dist/lib/select-menu.cjs.map +1 -0
  216. package/dist/lib/settings-menu-button.cjs +2 -0
  217. package/dist/lib/settings-menu-button.cjs.map +1 -0
  218. package/dist/lib/settings-menu-button.js +2 -3
  219. package/dist/lib/settings-menu-button.js.map +1 -1
  220. package/dist/lib/skeleton.cjs +2 -0
  221. package/dist/lib/skeleton.cjs.map +1 -0
  222. package/dist/lib/stack.cjs +2 -0
  223. package/dist/lib/stack.cjs.map +1 -0
  224. package/dist/lib/tabs.cjs +2 -0
  225. package/dist/lib/tabs.cjs.map +1 -0
  226. package/dist/lib/time-pill.cjs +2 -0
  227. package/dist/lib/time-pill.cjs.map +1 -0
  228. package/dist/lib/toast.cjs +2 -0
  229. package/dist/lib/toast.cjs.map +1 -0
  230. package/dist/lib/toast.js +2 -3
  231. package/dist/lib/toast.js.map +1 -1
  232. package/dist/lib/toggle.cjs +2 -0
  233. package/dist/lib/toggle.cjs.map +1 -0
  234. package/dist/lib/tooltip-directive.cjs +2 -0
  235. package/dist/lib/tooltip-directive.cjs.map +1 -0
  236. package/dist/lib/tooltip.cjs +2 -0
  237. package/dist/lib/tooltip.cjs.map +1 -0
  238. package/dist/lib/top-banner-info.cjs +2 -0
  239. package/dist/lib/top-banner-info.cjs.map +1 -0
  240. package/dist/lib/unread-pill.cjs +2 -0
  241. package/dist/lib/unread-pill.cjs.map +1 -0
  242. package/dist/lib/unread-pill.js +3 -4
  243. package/dist/lib/unread-pill.js.map +1 -1
  244. package/dist/lib/utils.cjs +2 -0
  245. package/dist/lib/utils.cjs.map +1 -0
  246. package/dist/lib/validation-messages.cjs +2 -0
  247. package/dist/lib/validation-messages.cjs.map +1 -0
  248. package/dist/lib/validators.cjs +2 -0
  249. package/dist/lib/validators.cjs.map +1 -0
  250. package/dist/style.css +1 -1
  251. package/dist/types/components/avatar/avatar.vue.d.ts +1 -1
  252. package/dist/types/components/button/button.vue.d.ts +2 -2
  253. package/dist/types/components/card/card.vue.d.ts +1 -1
  254. package/dist/types/components/chip/chip.vue.d.ts +1 -1
  255. package/dist/types/components/collapsible/collapsible.vue.d.ts +2 -2
  256. package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
  257. package/dist/types/components/dropdown/dropdown.vue.d.ts +1 -1
  258. package/dist/types/components/emoji/emoji.vue.d.ts +1 -1
  259. package/dist/types/components/icon/icon.vue.d.ts +2 -22
  260. package/dist/types/components/icon/icon.vue.d.ts.map +1 -1
  261. package/dist/types/components/list_item_group/list_item_group.vue.d.ts +1 -1
  262. package/dist/types/components/modal/modal.vue.d.ts +2 -2
  263. package/dist/types/components/popover/popover_header_footer.vue.d.ts +1 -1
  264. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +91 -1
  265. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  266. package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
  267. package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts +3 -3
  268. package/dist/types/components/skeleton/skeleton-shape.vue.d.ts +2 -2
  269. package/dist/types/components/skeleton/skeleton-text.vue.d.ts +2 -2
  270. package/dist/types/components/skeleton/skeleton.vue.d.ts +1 -1
  271. package/dist/types/components/tooltip/tooltip.vue.d.ts +2 -2
  272. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +1 -1
  273. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
  274. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +2 -2
  275. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +90 -0
  276. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  277. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
  278. package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -1
  279. package/package.json +10 -9
@@ -1,12 +1,12 @@
1
- import { NodeViewWrapper as R, nodeViewProps as w, VueRenderer as k, VueNodeViewRenderer as T, EditorContent as O, Editor as $ } from "@tiptap/vue-2";
1
+ import { NodeViewWrapper as E, nodeViewProps as k, VueRenderer as R, VueNodeViewRenderer as T, EditorContent as O, Editor as $ } from "@tiptap/vue-2";
2
2
  import M from "@tiptap/extension-blockquote";
3
- import D from "@tiptap/extension-code-block";
4
- import H from "@tiptap/extension-document";
5
- import q from "@tiptap/extension-hard-break";
6
- import N from "@tiptap/extension-paragraph";
7
- import B from "@tiptap/extension-placeholder";
8
- import F from "@tiptap/extension-bold";
9
- import U from "@tiptap/extension-bullet-list";
3
+ import B from "@tiptap/extension-code-block";
4
+ import D from "@tiptap/extension-document";
5
+ import H from "@tiptap/extension-hard-break";
6
+ import q from "@tiptap/extension-paragraph";
7
+ import N from "@tiptap/extension-placeholder";
8
+ import U from "@tiptap/extension-bold";
9
+ import F from "@tiptap/extension-bullet-list";
10
10
  import K from "@tiptap/extension-italic";
11
11
  import V from "@tiptap/extension-link";
12
12
  import z from "@tiptap/extension-list-item";
@@ -24,8 +24,8 @@ import { emojisIndexed as at } from "@dialpad/dialtone-emojis";
24
24
  import { DtListItem as ut } from "./list-item.js";
25
25
  import { DtStack as A } from "./stack.js";
26
26
  import j from "tippy.js";
27
- import { linkRegex as ct, getPhoneNumberRegex as dt } from "./utils.js";
28
- import lt from "@tiptap/extension-mention";
27
+ import { linkRegex as lt, getPhoneNumberRegex as ct } from "./utils.js";
28
+ import dt from "@tiptap/extension-mention";
29
29
  import { DtLink as mt } from "./link.js";
30
30
  import { DtAvatar as pt } from "./avatar.js";
31
31
  import "emoji-regex";
@@ -45,10 +45,10 @@ import "./presence.js";
45
45
  const ft = {
46
46
  name: "EmojiComponent",
47
47
  components: {
48
- NodeViewWrapper: R,
48
+ NodeViewWrapper: E,
49
49
  DtEmoji: C
50
50
  },
51
- props: w
51
+ props: k
52
52
  };
53
53
  var ht = function() {
54
54
  var e = this, r = e._self._c;
@@ -129,7 +129,7 @@ const yt = _t.exports, vt = {
129
129
  }
130
130
  }
131
131
  };
132
- var bt = function() {
132
+ var wt = function() {
133
133
  var e = this, r = e._self._c;
134
134
  return r("div", { staticClass: "d-popover__dialog" }, [r("ul", { directives: [{ name: "show", rawName: "v-show", value: e.items.length, expression: "items.length" }], ref: "suggestionList", staticClass: "dt-suggestion-list" }, e._l(e.items, function(n, o) {
135
135
  return r("dt-list-item", { key: n.id, class: [
@@ -141,17 +141,17 @@ var bt = function() {
141
141
  return i.preventDefault(), i.stopPropagation(), e.onKeyDown.apply(null, arguments);
142
142
  } } }, [r(e.itemComponent, { tag: "component", attrs: { item: n } })], 1);
143
143
  }), 1)]);
144
- }, xt = [], Et = /* @__PURE__ */ u(
144
+ }, bt = [], xt = /* @__PURE__ */ u(
145
145
  vt,
146
+ wt,
146
147
  bt,
147
- xt,
148
148
  !1,
149
149
  null,
150
150
  null,
151
151
  null,
152
152
  null
153
153
  );
154
- const L = Et.exports, Rt = {
154
+ const L = xt.exports, Et = {
155
155
  name: "EmojiSuggestion",
156
156
  components: {
157
157
  DtEmoji: C,
@@ -164,13 +164,13 @@ const L = Et.exports, Rt = {
164
164
  }
165
165
  }
166
166
  };
167
- var wt = function() {
167
+ var kt = function() {
168
168
  var e = this, r = e._self._c;
169
169
  return r("dt-stack", { attrs: { direction: "row", gap: "400" } }, [r("dt-emoji", { attrs: { size: "200", code: e.item.code } }), e._v(" " + e._s(e.item.code) + " ")], 1);
170
- }, kt = [], Tt = /* @__PURE__ */ u(
171
- Rt,
172
- wt,
170
+ }, Rt = [], Tt = /* @__PURE__ */ u(
171
+ Et,
173
172
  kt,
173
+ Rt,
174
174
  !1,
175
175
  null,
176
176
  null,
@@ -199,7 +199,7 @@ const Ct = Tt.exports, St = {
199
199
  let t, e;
200
200
  return {
201
201
  onStart: (r) => {
202
- t = new k(L, {
202
+ t = new R(L, {
203
203
  parent: void 0,
204
204
  propsData: {
205
205
  itemComponent: Ct,
@@ -233,7 +233,7 @@ const Ct = Tt.exports, St = {
233
233
  }
234
234
  };
235
235
  }
236
- }, It = new I("emoji"), At = /:\w+:$/, jt = /:\w+:/g, Lt = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/, Pt = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g, b = (t) => {
236
+ }, It = new I("emoji"), At = /:\w+:$/, jt = /:\w+:/g, Lt = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/, Pt = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g, w = (t) => {
237
237
  if (t && S(t[0]))
238
238
  return {
239
239
  index: t.index,
@@ -290,7 +290,7 @@ const Ct = Tt.exports, St = {
290
290
  y({
291
291
  find: (t) => {
292
292
  const e = t.match(At);
293
- return b(e);
293
+ return w(e);
294
294
  },
295
295
  type: this.type,
296
296
  getAttributes(t) {
@@ -302,7 +302,7 @@ const Ct = Tt.exports, St = {
302
302
  y({
303
303
  find: (t) => {
304
304
  const e = t.match(Lt);
305
- return b(e);
305
+ return w(e);
306
306
  },
307
307
  type: this.type,
308
308
  getAttributes(t) {
@@ -355,10 +355,10 @@ function Mt(t, e, r = () => !0) {
355
355
  r(t, o) && n.push(o);
356
356
  return n;
357
357
  }
358
- function Dt(t, e) {
358
+ function Bt(t, e) {
359
359
  return !["#", "@"].includes(t.charAt(e.index)) && !["#", "@"].includes(t.charAt(e.index - 1));
360
360
  }
361
- function Ht(t) {
361
+ function Dt(t) {
362
362
  const e = new RegExp(
363
363
  "(?:" + [
364
364
  `[!?.,:;'"]`,
@@ -368,7 +368,7 @@ function Ht(t) {
368
368
  );
369
369
  return t.replace(e, "");
370
370
  }
371
- function qt(t, e) {
371
+ function Ht(t, e) {
372
372
  const r = t.slice(0, e + 1).search(/\S+\s*$/), n = t.slice(e).search(/\s/);
373
373
  if (n < 0) {
374
374
  const o = t.slice(r);
@@ -385,63 +385,63 @@ function qt(t, e) {
385
385
  };
386
386
  }
387
387
  function h(t, e, r, n) {
388
- const o = qt(t, e);
388
+ const o = Ht(t, e);
389
389
  if (n.lastIndex = 0, !n.test(o.text))
390
390
  return o;
391
391
  const i = r === "left" ? o.from - 1 : o.to + 1;
392
392
  return i <= 0 || i >= t.length || i === e ? o : h(t, i, r, n);
393
393
  }
394
- function Nt(t, e, r, n) {
394
+ function qt(t, e, r, n) {
395
395
  const o = Math.max(t.from - 1, 0), i = Math.min(t.to + 1, e.content.size), s = Z(o, i, e);
396
396
  for (const a of s)
397
397
  a.mark.type === n && r.removeMark(a.from, a.to, n);
398
398
  }
399
- const x = dt(1, 15);
400
- function E(t, e, r, n, o, i) {
399
+ const b = ct(1, 15);
400
+ function x(t, e, r, n, o, i) {
401
401
  if (!t)
402
402
  return;
403
403
  let s = r - e - 1;
404
404
  s = s < 0 ? 0 : s;
405
- const a = n - e, l = h(
405
+ const a = n - e, d = h(
406
406
  t,
407
407
  s,
408
408
  "left",
409
- x
409
+ b
410
410
  ), _ = h(
411
411
  t,
412
412
  a,
413
413
  "right",
414
- x
415
- ), c = t.slice(l.from, _.to);
416
- Mt(c, ct, Dt).forEach((f) => {
417
- const d = Ht(f[0]), p = e + l.from + f.index + 1, P = p + d.length;
414
+ b
415
+ ), l = t.slice(d.from, _.to);
416
+ Mt(l, lt, Bt).forEach((f) => {
417
+ const c = Dt(f[0]), p = e + d.from + f.index + 1, P = p + c.length;
418
418
  o.addMark(p, P, i.create());
419
419
  });
420
420
  }
421
- function Bt(t) {
421
+ function Nt(t) {
422
422
  let e = !1;
423
423
  return new it({
424
424
  key: new I("autolink"),
425
425
  appendTransaction: (r, n, o) => {
426
- const i = r.some((c) => c.docChanged) && !n.doc.eq(o.doc);
426
+ const i = r.some((l) => l.docChanged) && !n.doc.eq(o.doc);
427
427
  if (e && !i)
428
428
  return;
429
429
  const { tr: s } = o, { textContent: a } = o.doc;
430
- e || E(a, 0, 0, a.length, s, t.type), e = !0;
431
- const l = tt(
430
+ e || x(a, 0, 0, a.length, s, t.type), e = !0;
431
+ const d = tt(
432
432
  n.doc,
433
433
  [...r]
434
434
  );
435
- return et(l).forEach(({ oldRange: c, newRange: m }) => {
436
- Nt(m, o.doc, s, t.type), rt(
435
+ return et(d).forEach(({ oldRange: l, newRange: m }) => {
436
+ qt(m, o.doc, s, t.type), rt(
437
437
  o.doc,
438
438
  m,
439
- (d) => d.isTextblock
440
- ).forEach(({ node: d, pos: p }) => {
441
- E(
442
- d.textContent,
439
+ (c) => c.isTextblock
440
+ ).forEach(({ node: c, pos: p }) => {
441
+ x(
442
+ c.textContent,
443
443
  p,
444
- c.from,
444
+ l.from,
445
445
  m.to,
446
446
  s,
447
447
  t.type
@@ -451,10 +451,10 @@ function Bt(t) {
451
451
  }
452
452
  });
453
453
  }
454
- const Ft = {
454
+ const Ut = {
455
455
  class: "d-link d-c-text d-d-inline-block",
456
456
  rel: "noopener noreferrer nofollow"
457
- }, Ut = nt.create({
457
+ }, Ft = nt.create({
458
458
  name: "Link",
459
459
  renderHTML({ HTMLAttributes: t }) {
460
460
  return [
@@ -462,7 +462,7 @@ const Ft = {
462
462
  g(
463
463
  this.options.HTMLAttributes,
464
464
  t,
465
- Ft
465
+ Ut
466
466
  ),
467
467
  0
468
468
  ];
@@ -472,16 +472,16 @@ const Ft = {
472
472
  },
473
473
  addProseMirrorPlugins() {
474
474
  return [
475
- Bt({ type: this.type })
475
+ Nt({ type: this.type })
476
476
  ];
477
477
  }
478
478
  }), Kt = {
479
479
  name: "MentionComponent",
480
480
  components: {
481
- NodeViewWrapper: R,
481
+ NodeViewWrapper: E,
482
482
  DtLink: mt
483
483
  },
484
- props: w,
484
+ props: k,
485
485
  computed: {
486
486
  text() {
487
487
  return "@" + this.$props.node.attrs.name;
@@ -501,7 +501,7 @@ var Vt = function() {
501
501
  null,
502
502
  null
503
503
  );
504
- const Jt = Wt.exports, Xt = lt.extend({
504
+ const Jt = Wt.exports, Xt = dt.extend({
505
505
  addNodeView() {
506
506
  return T(Jt);
507
507
  },
@@ -589,7 +589,7 @@ const ne = re.exports, oe = {
589
589
  let t, e;
590
590
  return {
591
591
  onStart: (r) => {
592
- t = new k(L, {
592
+ t = new R(L, {
593
593
  parent: void 0,
594
594
  propsData: {
595
595
  itemComponent: ne,
@@ -723,6 +723,48 @@ const ne = re.exports, oe = {
723
723
  mentionSuggestion: {
724
724
  type: Object,
725
725
  default: null
726
+ },
727
+ /**
728
+ * Whether the input allows for block quote.
729
+ */
730
+ allowBlockquote: {
731
+ type: Boolean,
732
+ default: !0
733
+ },
734
+ /**
735
+ * Whether the input allows for bold to be introduced in the text.
736
+ */
737
+ allowBold: {
738
+ type: Boolean,
739
+ default: !0
740
+ },
741
+ /**
742
+ * Whether the input allows for bullet list to be introduced in the text.
743
+ */
744
+ allowBulletList: {
745
+ type: Boolean,
746
+ default: !0
747
+ },
748
+ /**
749
+ * Whether the input allows for italic to be introduced in the text.
750
+ */
751
+ allowItalic: {
752
+ type: Boolean,
753
+ default: !0
754
+ },
755
+ /**
756
+ * Whether the input allows for strike to be introduced in the text.
757
+ */
758
+ allowStrike: {
759
+ type: Boolean,
760
+ default: !0
761
+ },
762
+ /**
763
+ * Whether the input allows for underline to be introduced in the text.
764
+ */
765
+ allowUnderline: {
766
+ type: Boolean,
767
+ default: !0
726
768
  }
727
769
  },
728
770
  emits: [
@@ -758,23 +800,15 @@ const ne = re.exports, oe = {
758
800
  };
759
801
  },
760
802
  computed: {
803
+ // eslint-disable-next-line complexity
761
804
  extensions() {
762
- const t = [
763
- M,
764
- F,
765
- U,
766
- H,
767
- K,
768
- z,
769
- N,
770
- J,
771
- Y,
772
- X
773
- ];
774
- if (this.link && t.push(this.getExtension(Ut, this.link)), t.push(
775
- B.configure({ placeholder: this.placeholder })
805
+ const t = [D, q, Y];
806
+ if (this.link && t.push(this.getExtension(Ft, this.link)), this.allowBlockquote && t.push(M), this.allowBold && t.push(U), this.allowBulletList && (t.push(F), t.push(z), t.push(W.configure({
807
+ itemTypeName: "listItem"
808
+ }))), this.allowItalic && t.push(K), this.allowStrike && t.push(J), this.allowUnderline && t.push(X), t.push(
809
+ N.configure({ placeholder: this.placeholder })
776
810
  ), this.allowLineBreaks || t.push(
777
- q.extend({
811
+ H.extend({
778
812
  addKeyboardShortcuts() {
779
813
  return {
780
814
  Enter: () => !0,
@@ -797,12 +831,10 @@ const ne = re.exports, oe = {
797
831
  return t.push($t), t.push(G.configure({
798
832
  types: ["paragraph"],
799
833
  defaultAlignment: "left"
800
- })), t.push(D.configure({
834
+ })), t.push(B.configure({
801
835
  HTMLAttributes: {
802
836
  class: "dt-rich-text-editor--code-block"
803
837
  }
804
- })), t.push(W.configure({
805
- itemTypeName: "listItem"
806
838
  })), t;
807
839
  },
808
840
  inputAttrs() {