@dialpad/dialtone-vue 3.119.0 → 3.120.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js +2 -0
- package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js.map +1 -0
- package/dist/chunks/dropdown-UO3UJalk.js +2 -0
- package/dist/chunks/dropdown-UO3UJalk.js.map +1 -0
- package/dist/chunks/dropdown_constants-KHFvVI2L.js +2 -0
- package/dist/chunks/dropdown_constants-KHFvVI2L.js.map +1 -0
- package/dist/chunks/icon_constants-2S_OSQ1t.js +2 -0
- package/dist/chunks/icon_constants-2S_OSQ1t.js.map +1 -0
- package/dist/chunks/index-6tYeqbgP.js +3 -0
- package/dist/chunks/index-6tYeqbgP.js.map +1 -0
- package/dist/chunks/index-IBtQ5jRJ.js +2 -0
- package/dist/chunks/index-IBtQ5jRJ.js.map +1 -0
- package/dist/chunks/input-0Uksk4DP.js +2 -0
- package/dist/chunks/input-0Uksk4DP.js.map +1 -0
- package/dist/chunks/input_group-AS760Cp7.js +2 -0
- package/dist/chunks/input_group-AS760Cp7.js.map +1 -0
- package/dist/chunks/keyboard_list_navigation-N74Bpdq7.js +2 -0
- package/dist/chunks/keyboard_list_navigation-N74Bpdq7.js.map +1 -0
- package/dist/chunks/link_constants-Kn6kP4i1.js +2 -0
- package/dist/chunks/link_constants-Kn6kP4i1.js.map +1 -0
- package/dist/chunks/list_item_constants-Tsz5CO1m.js +2 -0
- package/dist/chunks/list_item_constants-Tsz5CO1m.js.map +1 -0
- package/dist/chunks/modal-qEzlo0Sj.js +2 -0
- package/dist/chunks/modal-qEzlo0Sj.js.map +1 -0
- package/dist/chunks/notice_action-jO199emq.js +2 -0
- package/dist/chunks/notice_action-jO199emq.js.map +1 -0
- package/dist/chunks/notice_constants-mC6al2Dm.js +2 -0
- package/dist/chunks/notice_constants-mC6al2Dm.js.map +1 -0
- package/dist/chunks/popover_constants-hOEhklvr.js +2 -0
- package/dist/chunks/popover_constants-hOEhklvr.js.map +1 -0
- package/dist/chunks/sr_only_close_button-iD7s1Pbj.js +3 -0
- package/dist/chunks/sr_only_close_button-iD7s1Pbj.js.map +1 -0
- package/dist/chunks/stack_constants-m9Ickqw0.js +2 -0
- package/dist/chunks/stack_constants-m9Ickqw0.js.map +1 -0
- package/dist/chunks/tab-at7WWglk.js +2 -0
- package/dist/chunks/tab-at7WWglk.js.map +1 -0
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +2 -0
- package/dist/dialtone-vue.cjs.map +1 -0
- package/dist/lib/attachment-carousel.cjs +2 -0
- package/dist/lib/attachment-carousel.cjs.map +1 -0
- package/dist/lib/attachment-carousel.js +2 -3
- package/dist/lib/attachment-carousel.js.map +1 -1
- package/dist/lib/avatar.cjs +2 -0
- package/dist/lib/avatar.cjs.map +1 -0
- package/dist/lib/avatar.js +2 -3
- package/dist/lib/avatar.js.map +1 -1
- package/dist/lib/badge.cjs +2 -0
- package/dist/lib/badge.cjs.map +1 -0
- package/dist/lib/badge.js +2 -3
- package/dist/lib/badge.js.map +1 -1
- package/dist/lib/banner.cjs +3 -0
- package/dist/lib/banner.cjs.map +1 -0
- package/dist/lib/banner.js +6 -7
- package/dist/lib/banner.js.map +1 -1
- package/dist/lib/breadcrumbs.cjs +2 -0
- package/dist/lib/breadcrumbs.cjs.map +1 -0
- package/dist/lib/button-group.cjs +2 -0
- package/dist/lib/button-group.cjs.map +1 -0
- package/dist/lib/button.cjs +2 -0
- package/dist/lib/button.cjs.map +1 -0
- package/dist/lib/callbar-button-with-popover.cjs +2 -0
- package/dist/lib/callbar-button-with-popover.cjs.map +1 -0
- package/dist/lib/callbar-button-with-popover.js +9 -10
- package/dist/lib/callbar-button-with-popover.js.map +1 -1
- package/dist/lib/callbar-button.cjs +2 -0
- package/dist/lib/callbar-button.cjs.map +1 -0
- package/dist/lib/callbox.cjs +2 -0
- package/dist/lib/callbox.cjs.map +1 -0
- package/dist/lib/callbox.js +2 -3
- package/dist/lib/callbox.js.map +1 -1
- package/dist/lib/card.cjs +2 -0
- package/dist/lib/card.cjs.map +1 -0
- package/dist/lib/checkbox-group.cjs +2 -0
- package/dist/lib/checkbox-group.cjs.map +1 -0
- package/dist/lib/checkbox.cjs +2 -0
- package/dist/lib/checkbox.cjs.map +1 -0
- package/dist/lib/chip.cjs +2 -0
- package/dist/lib/chip.cjs.map +1 -0
- package/dist/lib/chip.js +10 -11
- package/dist/lib/chip.js.map +1 -1
- package/dist/lib/codeblock.cjs +3 -0
- package/dist/lib/codeblock.cjs.map +1 -0
- package/dist/lib/collapsible.cjs +2 -0
- package/dist/lib/collapsible.cjs.map +1 -0
- package/dist/lib/collapsible.js +7 -8
- package/dist/lib/collapsible.js.map +1 -1
- package/dist/lib/combobox-multi-select.cjs +2 -0
- package/dist/lib/combobox-multi-select.cjs.map +1 -0
- package/dist/lib/combobox-with-popover.cjs +2 -0
- package/dist/lib/combobox-with-popover.cjs.map +1 -0
- package/dist/lib/combobox.cjs +2 -0
- package/dist/lib/combobox.cjs.map +1 -0
- package/dist/lib/constants.cjs +2 -0
- package/dist/lib/constants.cjs.map +1 -0
- package/dist/lib/contact-info.cjs +2 -0
- package/dist/lib/contact-info.cjs.map +1 -0
- package/dist/lib/contact-info.js +2 -3
- package/dist/lib/contact-info.js.map +1 -1
- package/dist/lib/contact-row.cjs +2 -0
- package/dist/lib/contact-row.cjs.map +1 -0
- package/dist/lib/datepicker.cjs +2 -0
- package/dist/lib/datepicker.cjs.map +1 -0
- package/dist/lib/datepicker.js +12 -13
- package/dist/lib/datepicker.js.map +1 -1
- package/dist/lib/dates.cjs +2 -0
- package/dist/lib/dates.cjs.map +1 -0
- package/dist/lib/description-list.cjs +2 -0
- package/dist/lib/description-list.cjs.map +1 -0
- package/dist/lib/dropdown.cjs +2 -0
- package/dist/lib/dropdown.cjs.map +1 -0
- package/dist/lib/dropdown.js +6 -7
- package/dist/lib/dropdown.js.map +1 -1
- package/dist/lib/editor.cjs +2 -0
- package/dist/lib/editor.cjs.map +1 -0
- package/dist/lib/emoji-picker.cjs +2 -0
- package/dist/lib/emoji-picker.cjs.map +1 -0
- package/dist/lib/emoji-picker.js +2 -3
- package/dist/lib/emoji-picker.js.map +1 -1
- package/dist/lib/emoji-row.cjs +2 -0
- package/dist/lib/emoji-row.cjs.map +1 -0
- package/dist/lib/emoji-text-wrapper.cjs +2 -0
- package/dist/lib/emoji-text-wrapper.cjs.map +1 -0
- package/dist/lib/emoji.cjs +2 -0
- package/dist/lib/emoji.cjs.map +1 -0
- package/dist/lib/feed-item-row.cjs +2 -0
- package/dist/lib/feed-item-row.cjs.map +1 -0
- package/dist/lib/feed-item-row.js +11 -12
- package/dist/lib/feed-item-row.js.map +1 -1
- package/dist/lib/feed-pill.cjs +2 -0
- package/dist/lib/feed-pill.cjs.map +1 -0
- package/dist/lib/feed-pill.js +2 -3
- package/dist/lib/feed-pill.js.map +1 -1
- package/dist/lib/general-row.cjs +2 -0
- package/dist/lib/general-row.cjs.map +1 -0
- package/dist/lib/group-row.cjs +2 -0
- package/dist/lib/group-row.cjs.map +1 -0
- package/dist/lib/group-row.js +1 -1
- package/dist/lib/grouped-chip.cjs +2 -0
- package/dist/lib/grouped-chip.cjs.map +1 -0
- package/dist/lib/grouped-chip.js +5 -6
- package/dist/lib/grouped-chip.js.map +1 -1
- package/dist/lib/hovercard.cjs +2 -0
- package/dist/lib/hovercard.cjs.map +1 -0
- package/dist/lib/hovercard.js +7 -8
- package/dist/lib/hovercard.js.map +1 -1
- package/dist/lib/icon.cjs +2 -0
- package/dist/lib/icon.cjs.map +1 -0
- package/dist/lib/icon.js +20 -51
- package/dist/lib/icon.js.map +1 -1
- package/dist/lib/image-viewer.cjs +2 -0
- package/dist/lib/image-viewer.cjs.map +1 -0
- package/dist/lib/image-viewer.js +9 -10
- package/dist/lib/image-viewer.js.map +1 -1
- package/dist/lib/input-group.cjs +2 -0
- package/dist/lib/input-group.cjs.map +1 -0
- package/dist/lib/input.cjs +2 -0
- package/dist/lib/input.cjs.map +1 -0
- package/dist/lib/item-layout.cjs +2 -0
- package/dist/lib/item-layout.cjs.map +1 -0
- package/dist/lib/ivr-node.cjs +2 -0
- package/dist/lib/ivr-node.cjs.map +1 -0
- package/dist/lib/ivr-node.js +4 -5
- package/dist/lib/ivr-node.js.map +1 -1
- package/dist/lib/keyboard-shortcut.cjs +2 -0
- package/dist/lib/keyboard-shortcut.cjs.map +1 -0
- package/dist/lib/keyboard-shortcut.js +4 -5
- package/dist/lib/keyboard-shortcut.js.map +1 -1
- package/dist/lib/lazy-show.cjs +2 -0
- package/dist/lib/lazy-show.cjs.map +1 -0
- package/dist/lib/link.cjs +2 -0
- package/dist/lib/link.cjs.map +1 -0
- package/dist/lib/list-item-group.cjs +2 -0
- package/dist/lib/list-item-group.cjs.map +1 -0
- package/dist/lib/list-item.cjs +2 -0
- package/dist/lib/list-item.cjs.map +1 -0
- package/dist/lib/list-item.js +2 -3
- package/dist/lib/list-item.js.map +1 -1
- package/dist/lib/message-input.cjs +2 -0
- package/dist/lib/message-input.cjs.map +1 -0
- package/dist/lib/message-input.js +148 -100
- package/dist/lib/message-input.js.map +1 -1
- package/dist/lib/mixins.cjs +2 -0
- package/dist/lib/mixins.cjs.map +1 -0
- package/dist/lib/modal.cjs +3 -0
- package/dist/lib/modal.cjs.map +1 -0
- package/dist/lib/modal.js +11 -12
- package/dist/lib/modal.js.map +1 -1
- package/dist/lib/notice.cjs +2 -0
- package/dist/lib/notice.cjs.map +1 -0
- package/dist/lib/notice.js +2 -3
- package/dist/lib/notice.js.map +1 -1
- package/dist/lib/pagination.cjs +2 -0
- package/dist/lib/pagination.cjs.map +1 -0
- package/dist/lib/pagination.js +2 -3
- package/dist/lib/pagination.js.map +1 -1
- package/dist/lib/popover.cjs +2 -0
- package/dist/lib/popover.cjs.map +1 -0
- package/dist/lib/popover.js +4 -5
- package/dist/lib/popover.js.map +1 -1
- package/dist/lib/presence.cjs +2 -0
- package/dist/lib/presence.cjs.map +1 -0
- package/dist/lib/radio-group.cjs +2 -0
- package/dist/lib/radio-group.cjs.map +1 -0
- package/dist/lib/radio.cjs +2 -0
- package/dist/lib/radio.cjs.map +1 -0
- package/dist/lib/rich-text-editor.cjs +2 -0
- package/dist/lib/rich-text-editor.cjs.map +1 -0
- package/dist/lib/rich-text-editor.js +174 -142
- package/dist/lib/rich-text-editor.js.map +1 -1
- package/dist/lib/root-layout.cjs +2 -0
- package/dist/lib/root-layout.cjs.map +1 -0
- package/dist/lib/scroller.cjs +2 -0
- package/dist/lib/scroller.cjs.map +1 -0
- package/dist/lib/select-menu.cjs +2 -0
- package/dist/lib/select-menu.cjs.map +1 -0
- package/dist/lib/settings-menu-button.cjs +2 -0
- package/dist/lib/settings-menu-button.cjs.map +1 -0
- package/dist/lib/settings-menu-button.js +2 -3
- package/dist/lib/settings-menu-button.js.map +1 -1
- package/dist/lib/skeleton.cjs +2 -0
- package/dist/lib/skeleton.cjs.map +1 -0
- package/dist/lib/stack.cjs +2 -0
- package/dist/lib/stack.cjs.map +1 -0
- package/dist/lib/tabs.cjs +2 -0
- package/dist/lib/tabs.cjs.map +1 -0
- package/dist/lib/time-pill.cjs +2 -0
- package/dist/lib/time-pill.cjs.map +1 -0
- package/dist/lib/toast.cjs +2 -0
- package/dist/lib/toast.cjs.map +1 -0
- package/dist/lib/toast.js +2 -3
- package/dist/lib/toast.js.map +1 -1
- package/dist/lib/toggle.cjs +2 -0
- package/dist/lib/toggle.cjs.map +1 -0
- package/dist/lib/tooltip-directive.cjs +2 -0
- package/dist/lib/tooltip-directive.cjs.map +1 -0
- package/dist/lib/tooltip.cjs +2 -0
- package/dist/lib/tooltip.cjs.map +1 -0
- package/dist/lib/top-banner-info.cjs +2 -0
- package/dist/lib/top-banner-info.cjs.map +1 -0
- package/dist/lib/unread-pill.cjs +2 -0
- package/dist/lib/unread-pill.cjs.map +1 -0
- package/dist/lib/unread-pill.js +2 -3
- package/dist/lib/unread-pill.js.map +1 -1
- package/dist/lib/utils.cjs +2 -0
- package/dist/lib/utils.cjs.map +1 -0
- package/dist/lib/validation-messages.cjs +2 -0
- package/dist/lib/validation-messages.cjs.map +1 -0
- package/dist/lib/validators.cjs +2 -0
- package/dist/lib/validators.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/types/components/avatar/avatar.vue.d.ts +1 -1
- package/dist/types/components/button/button.vue.d.ts +2 -2
- package/dist/types/components/card/card.vue.d.ts +1 -1
- package/dist/types/components/chip/chip.vue.d.ts +1 -1
- package/dist/types/components/collapsible/collapsible.vue.d.ts +2 -2
- package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.vue.d.ts +1 -1
- package/dist/types/components/emoji/emoji.vue.d.ts +1 -1
- package/dist/types/components/icon/icon.vue.d.ts +1 -19
- package/dist/types/components/icon/icon.vue.d.ts.map +1 -1
- package/dist/types/components/list_item_group/list_item_group.vue.d.ts +1 -1
- package/dist/types/components/modal/modal.vue.d.ts +2 -2
- package/dist/types/components/popover/popover_header_footer.vue.d.ts +1 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +91 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/types/components/root_layout/root_layout.vue.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts +3 -3
- package/dist/types/components/skeleton/skeleton-shape.vue.d.ts +2 -2
- package/dist/types/components/skeleton/skeleton-text.vue.d.ts +2 -2
- package/dist/types/components/skeleton/skeleton.vue.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.vue.d.ts +2 -2
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +1 -1
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
- package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +2 -2
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +90 -0
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -1
- package/package.json +9 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NodeViewWrapper as A, nodeViewProps as L, VueRenderer as P, VueNodeViewRenderer as $, EditorContent as
|
|
1
|
+
import { NodeViewWrapper as A, nodeViewProps as L, VueRenderer as P, VueNodeViewRenderer as $, EditorContent as U, Editor as K } from "@tiptap/vue-3";
|
|
2
2
|
import F from "@tiptap/extension-blockquote";
|
|
3
3
|
import z from "@tiptap/extension-code-block";
|
|
4
4
|
import W from "@tiptap/extension-document";
|
|
@@ -10,22 +10,22 @@ import Q from "@tiptap/extension-bullet-list";
|
|
|
10
10
|
import Z from "@tiptap/extension-italic";
|
|
11
11
|
import tt from "@tiptap/extension-link";
|
|
12
12
|
import et from "@tiptap/extension-list-item";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
13
|
+
import ot from "@tiptap/extension-ordered-list";
|
|
14
|
+
import nt from "@tiptap/extension-strike";
|
|
15
|
+
import rt from "@tiptap/extension-underline";
|
|
16
16
|
import it from "@tiptap/extension-text";
|
|
17
17
|
import st from "@tiptap/extension-text-align";
|
|
18
|
-
import { Node as at, mergeAttributes as
|
|
19
|
-
import { resolveComponent as c, openBlock as d, createBlock as l, withCtx as m, createVNode as y, createElementBlock as
|
|
18
|
+
import { Node as at, mergeAttributes as x, nodeInputRule as R, nodePasteRule as S, getMarksBetween as ct, combineTransactionSteps as dt, getChangedRanges as ut, findChildrenInRange as lt, Mark as mt } from "@tiptap/core";
|
|
19
|
+
import { resolveComponent as c, openBlock as d, createBlock as l, withCtx as m, createVNode as y, createElementBlock as C, withDirectives as pt, createElementVNode as ft, Fragment as ht, renderList as gt, normalizeClass as _t, withModifiers as yt, resolveDynamicComponent as wt, vShow as bt, createTextVNode as E, toDisplayString as T, markRaw as M } from "vue";
|
|
20
20
|
import { _ as p } from "../chunks/_plugin-vue_export-helper-hUChTQA_.js";
|
|
21
|
-
import { D as O, m as
|
|
22
|
-
import { PluginKey as
|
|
21
|
+
import { D as O, m as kt, o as B } from "../chunks/index-mRmwpCBG.js";
|
|
22
|
+
import { PluginKey as D, Plugin as xt } from "@tiptap/pm/state";
|
|
23
23
|
import Et from "@tiptap/suggestion";
|
|
24
24
|
import { emojisIndexed as Tt } from "@dialpad/dialtone-emojis";
|
|
25
25
|
import { DtListItem as Rt } from "./list-item.js";
|
|
26
|
-
import { DtStack as
|
|
27
|
-
import
|
|
28
|
-
import { linkRegex as
|
|
26
|
+
import { DtStack as H } from "./stack.js";
|
|
27
|
+
import V from "tippy.js";
|
|
28
|
+
import { linkRegex as St, getPhoneNumberRegex as Ct } from "./utils.js";
|
|
29
29
|
import It from "@tiptap/extension-mention";
|
|
30
30
|
import { DtLink as jt } from "./link.js";
|
|
31
31
|
import { DtAvatar as vt } from "./avatar.js";
|
|
@@ -49,7 +49,7 @@ const At = {
|
|
|
49
49
|
},
|
|
50
50
|
props: L
|
|
51
51
|
};
|
|
52
|
-
function Lt(t, e, n, r,
|
|
52
|
+
function Lt(t, e, o, n, r, i) {
|
|
53
53
|
const s = c("dt-emoji"), a = c("node-view-wrapper");
|
|
54
54
|
return d(), l(a, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
|
|
55
55
|
default: m(() => [
|
|
@@ -130,35 +130,35 @@ const Pt = /* @__PURE__ */ p(At, [["render", Lt]]), $t = {
|
|
|
130
130
|
ref: "suggestionList",
|
|
131
131
|
class: "dt-suggestion-list"
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function Bt(t, e, o, n, r, i) {
|
|
134
134
|
const s = c("dt-list-item");
|
|
135
|
-
return d(),
|
|
135
|
+
return d(), C("div", Mt, [
|
|
136
136
|
pt(ft("ul", Ot, [
|
|
137
|
-
(d(!0),
|
|
137
|
+
(d(!0), C(ht, null, gt(o.items, (a, u) => (d(), l(s, {
|
|
138
138
|
key: a.id,
|
|
139
139
|
class: _t([
|
|
140
140
|
"dt-suggestion-list--item",
|
|
141
|
-
{ "dt-list-item--highlighted": u ===
|
|
141
|
+
{ "dt-list-item--highlighted": u === r.selectedIndex }
|
|
142
142
|
]),
|
|
143
143
|
"navigation-type": "arrow-keys",
|
|
144
|
-
onClick: (
|
|
144
|
+
onClick: (w) => i.selectItem(u),
|
|
145
145
|
onKeydown: yt(i.onKeyDown, ["prevent", "stop"])
|
|
146
146
|
}, {
|
|
147
147
|
default: m(() => [
|
|
148
|
-
(d(), l(
|
|
148
|
+
(d(), l(wt(o.itemComponent), { item: a }, null, 8, ["item"]))
|
|
149
149
|
]),
|
|
150
150
|
_: 2
|
|
151
151
|
}, 1032, ["class", "onClick", "onKeydown"]))), 128))
|
|
152
152
|
], 512), [
|
|
153
|
-
[
|
|
153
|
+
[bt, o.items.length]
|
|
154
154
|
])
|
|
155
155
|
]);
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const q = /* @__PURE__ */ p($t, [["render", Bt]]), Dt = {
|
|
158
158
|
name: "EmojiSuggestion",
|
|
159
159
|
components: {
|
|
160
160
|
DtEmoji: O,
|
|
161
|
-
DtStack:
|
|
161
|
+
DtStack: H
|
|
162
162
|
},
|
|
163
163
|
props: {
|
|
164
164
|
item: {
|
|
@@ -167,7 +167,7 @@ const N = /* @__PURE__ */ p($t, [["render", Dt]]), Ht = {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
|
-
function
|
|
170
|
+
function Ht(t, e, o, n, r, i) {
|
|
171
171
|
const s = c("dt-emoji"), a = c("dt-stack");
|
|
172
172
|
return d(), l(a, {
|
|
173
173
|
direction: "row",
|
|
@@ -176,24 +176,24 @@ function Vt(t, e, n, r, o, i) {
|
|
|
176
176
|
default: m(() => [
|
|
177
177
|
y(s, {
|
|
178
178
|
size: "200",
|
|
179
|
-
code:
|
|
179
|
+
code: o.item.code
|
|
180
180
|
}, null, 8, ["code"]),
|
|
181
|
-
E(" " + T(
|
|
181
|
+
E(" " + T(o.item.code), 1)
|
|
182
182
|
]),
|
|
183
183
|
_: 1
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
items: ({ query: t }) => t.length < 2 ? [] : Object.values(Tt).filter(function(
|
|
188
|
-
return !!
|
|
189
|
-
}).map((
|
|
190
|
-
command: ({ editor: t, range: e, props:
|
|
186
|
+
const Vt = /* @__PURE__ */ p(Dt, [["render", Ht]]), qt = {
|
|
187
|
+
items: ({ query: t }) => t.length < 2 ? [] : Object.values(Tt).filter(function(n) {
|
|
188
|
+
return !!n.shortname.substring(1, n.shortname.length - 1).startsWith(t.toLowerCase());
|
|
189
|
+
}).map((n) => ({ id: n.unicode_character, code: n.shortname })),
|
|
190
|
+
command: ({ editor: t, range: e, props: o }) => {
|
|
191
191
|
var i, s;
|
|
192
|
-
const
|
|
193
|
-
((i =
|
|
192
|
+
const n = t.view.state.selection.$to.nodeAfter;
|
|
193
|
+
((i = n == null ? void 0 : n.text) == null ? void 0 : i.startsWith(" ")) && (e.to += 1), t.chain().focus().insertContentAt(e, [
|
|
194
194
|
{
|
|
195
195
|
type: "emoji",
|
|
196
|
-
attrs:
|
|
196
|
+
attrs: o
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
type: "text",
|
|
@@ -204,16 +204,16 @@ const Bt = /* @__PURE__ */ p(Ht, [["render", Vt]]), Nt = {
|
|
|
204
204
|
render: () => {
|
|
205
205
|
let t, e;
|
|
206
206
|
return {
|
|
207
|
-
onStart: (
|
|
208
|
-
t = new P(
|
|
207
|
+
onStart: (o) => {
|
|
208
|
+
t = new P(q, {
|
|
209
209
|
props: {
|
|
210
|
-
itemComponent: M(
|
|
210
|
+
itemComponent: M(Vt),
|
|
211
211
|
itemType: "emoji",
|
|
212
|
-
...
|
|
212
|
+
...o
|
|
213
213
|
},
|
|
214
|
-
editor:
|
|
215
|
-
}),
|
|
216
|
-
getReferenceClientRect:
|
|
214
|
+
editor: o.editor
|
|
215
|
+
}), o.clientRect && (e = V("body", {
|
|
216
|
+
getReferenceClientRect: o.clientRect,
|
|
217
217
|
appendTo: () => document.body,
|
|
218
218
|
content: t.element,
|
|
219
219
|
showOnCreate: !0,
|
|
@@ -224,38 +224,38 @@ const Bt = /* @__PURE__ */ p(Ht, [["render", Vt]]), Nt = {
|
|
|
224
224
|
zIndex: 650
|
|
225
225
|
}));
|
|
226
226
|
},
|
|
227
|
-
onUpdate(
|
|
228
|
-
t.updateProps(
|
|
229
|
-
getReferenceClientRect:
|
|
227
|
+
onUpdate(o) {
|
|
228
|
+
t.updateProps(o), o.clientRect && e[0].setProps({
|
|
229
|
+
getReferenceClientRect: o.clientRect
|
|
230
230
|
});
|
|
231
231
|
},
|
|
232
|
-
onKeyDown(
|
|
233
|
-
var
|
|
234
|
-
return
|
|
232
|
+
onKeyDown(o) {
|
|
233
|
+
var n;
|
|
234
|
+
return o.event.key === "Escape" ? (e[0].hide(), !0) : (n = t.ref) == null ? void 0 : n.onKeyDown(o);
|
|
235
235
|
},
|
|
236
236
|
onExit() {
|
|
237
237
|
e[0].destroy(), t.destroy();
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
},
|
|
242
|
-
if (t &&
|
|
241
|
+
}, Nt = new D("emoji"), Ut = /:\w+:$/, Kt = /:\w+:/g, Ft = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/, zt = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g, I = (t) => {
|
|
242
|
+
if (t && B(t[0]))
|
|
243
243
|
return {
|
|
244
244
|
index: t.index,
|
|
245
245
|
text: t[0],
|
|
246
246
|
match: t
|
|
247
247
|
};
|
|
248
|
-
}, Wt = (t) => [...t.matchAll(
|
|
249
|
-
index:
|
|
250
|
-
text:
|
|
251
|
-
match:
|
|
248
|
+
}, Wt = (t) => [...t.matchAll(Kt)].filter((o) => B(o[0])).map((o) => ({
|
|
249
|
+
index: o.index,
|
|
250
|
+
text: o[0],
|
|
251
|
+
match: o
|
|
252
252
|
})), Jt = at.create({
|
|
253
253
|
addOptions() {
|
|
254
254
|
return {
|
|
255
255
|
HTMLAttributes: {},
|
|
256
256
|
suggestion: {
|
|
257
257
|
char: ":",
|
|
258
|
-
pluginKey:
|
|
258
|
+
pluginKey: Nt
|
|
259
259
|
}
|
|
260
260
|
};
|
|
261
261
|
},
|
|
@@ -287,14 +287,14 @@ const Bt = /* @__PURE__ */ p(Ht, [["render", Vt]]), Nt = {
|
|
|
287
287
|
return t.attrs.code;
|
|
288
288
|
},
|
|
289
289
|
renderHTML({ HTMLAttributes: t }) {
|
|
290
|
-
return ["emoji-component",
|
|
290
|
+
return ["emoji-component", x(this.options.HTMLAttributes, t)];
|
|
291
291
|
},
|
|
292
292
|
addInputRules() {
|
|
293
293
|
return [
|
|
294
294
|
// shortcode input
|
|
295
295
|
R({
|
|
296
296
|
find: (t) => {
|
|
297
|
-
const e = t.match(
|
|
297
|
+
const e = t.match(Ut);
|
|
298
298
|
return I(e);
|
|
299
299
|
},
|
|
300
300
|
type: this.type,
|
|
@@ -311,7 +311,7 @@ const Bt = /* @__PURE__ */ p(Ht, [["render", Vt]]), Nt = {
|
|
|
311
311
|
},
|
|
312
312
|
type: this.type,
|
|
313
313
|
getAttributes(t) {
|
|
314
|
-
const e =
|
|
314
|
+
const e = kt(t[0]).unicode_output;
|
|
315
315
|
return {
|
|
316
316
|
code: String.fromCodePoint(parseInt(e, 16)),
|
|
317
317
|
label: "emoji"
|
|
@@ -322,7 +322,7 @@ const Bt = /* @__PURE__ */ p(Ht, [["render", Vt]]), Nt = {
|
|
|
322
322
|
},
|
|
323
323
|
addPasteRules() {
|
|
324
324
|
return [
|
|
325
|
-
|
|
325
|
+
S({
|
|
326
326
|
find: Wt,
|
|
327
327
|
type: this.type,
|
|
328
328
|
getAttributes(t) {
|
|
@@ -331,7 +331,7 @@ const Bt = /* @__PURE__ */ p(Ht, [["render", Vt]]), Nt = {
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
}),
|
|
334
|
-
|
|
334
|
+
S({
|
|
335
335
|
find: zt,
|
|
336
336
|
type: this.type,
|
|
337
337
|
getAttributes(t) {
|
|
@@ -347,18 +347,18 @@ const Bt = /* @__PURE__ */ p(Ht, [["render", Vt]]), Nt = {
|
|
|
347
347
|
Et({
|
|
348
348
|
editor: this.editor,
|
|
349
349
|
...this.options.suggestion,
|
|
350
|
-
...
|
|
350
|
+
...qt
|
|
351
351
|
})
|
|
352
352
|
];
|
|
353
353
|
}
|
|
354
354
|
});
|
|
355
|
-
function Xt(t, e,
|
|
356
|
-
const
|
|
355
|
+
function Xt(t, e, o = () => !0) {
|
|
356
|
+
const n = [];
|
|
357
357
|
e.lastIndex = 0;
|
|
358
|
-
let
|
|
359
|
-
for (;
|
|
360
|
-
|
|
361
|
-
return
|
|
358
|
+
let r;
|
|
359
|
+
for (; r = e.exec(t); )
|
|
360
|
+
o(t, r) && n.push(r);
|
|
361
|
+
return n;
|
|
362
362
|
}
|
|
363
363
|
function Yt(t, e) {
|
|
364
364
|
return !["#", "@"].includes(t.charAt(e.index)) && !["#", "@"].includes(t.charAt(e.index - 1));
|
|
@@ -374,72 +374,72 @@ function Gt(t) {
|
|
|
374
374
|
return t.replace(e, "");
|
|
375
375
|
}
|
|
376
376
|
function Qt(t, e) {
|
|
377
|
-
const
|
|
378
|
-
if (
|
|
379
|
-
const
|
|
377
|
+
const o = t.slice(0, e + 1).search(/\S+\s*$/), n = t.slice(e).search(/\s/);
|
|
378
|
+
if (n < 0) {
|
|
379
|
+
const r = t.slice(o);
|
|
380
380
|
return {
|
|
381
|
-
text:
|
|
382
|
-
from:
|
|
383
|
-
to:
|
|
381
|
+
text: r,
|
|
382
|
+
from: o,
|
|
383
|
+
to: o + r.length
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
return {
|
|
387
|
-
text: t.slice(
|
|
388
|
-
from:
|
|
389
|
-
to:
|
|
387
|
+
text: t.slice(o, n + e),
|
|
388
|
+
from: o,
|
|
389
|
+
to: n + e
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
const
|
|
394
|
-
if (
|
|
395
|
-
return
|
|
396
|
-
const i =
|
|
397
|
-
return i <= 0 || i >= t.length || i === e ?
|
|
392
|
+
function k(t, e, o, n) {
|
|
393
|
+
const r = Qt(t, e);
|
|
394
|
+
if (n.lastIndex = 0, !n.test(r.text))
|
|
395
|
+
return r;
|
|
396
|
+
const i = o === "left" ? r.from - 1 : r.to + 1;
|
|
397
|
+
return i <= 0 || i >= t.length || i === e ? r : k(t, i, o, n);
|
|
398
398
|
}
|
|
399
|
-
function Zt(t, e,
|
|
400
|
-
const
|
|
399
|
+
function Zt(t, e, o, n) {
|
|
400
|
+
const r = Math.max(t.from - 1, 0), i = Math.min(t.to + 1, e.content.size), s = ct(r, i, e);
|
|
401
401
|
for (const a of s)
|
|
402
|
-
a.mark.type ===
|
|
402
|
+
a.mark.type === n && o.removeMark(a.from, a.to, n);
|
|
403
403
|
}
|
|
404
|
-
const j =
|
|
405
|
-
function v(t, e, n, r,
|
|
404
|
+
const j = Ct(1, 15);
|
|
405
|
+
function v(t, e, o, n, r, i) {
|
|
406
406
|
if (!t)
|
|
407
407
|
return;
|
|
408
|
-
let s =
|
|
408
|
+
let s = o - e - 1;
|
|
409
409
|
s = s < 0 ? 0 : s;
|
|
410
|
-
const a =
|
|
410
|
+
const a = n - e, u = k(
|
|
411
411
|
t,
|
|
412
412
|
s,
|
|
413
413
|
"left",
|
|
414
414
|
j
|
|
415
|
-
),
|
|
415
|
+
), w = k(
|
|
416
416
|
t,
|
|
417
417
|
a,
|
|
418
418
|
"right",
|
|
419
419
|
j
|
|
420
|
-
), f = t.slice(u.from,
|
|
421
|
-
Xt(f,
|
|
422
|
-
const h = Gt(
|
|
423
|
-
|
|
420
|
+
), f = t.slice(u.from, w.to);
|
|
421
|
+
Xt(f, St, Yt).forEach((b) => {
|
|
422
|
+
const h = Gt(b[0]), _ = e + u.from + b.index + 1, N = _ + h.length;
|
|
423
|
+
r.addMark(_, N, i.create());
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
function te(t) {
|
|
427
427
|
let e = !1;
|
|
428
|
-
return new
|
|
429
|
-
key: new
|
|
430
|
-
appendTransaction: (n, r
|
|
431
|
-
const i =
|
|
428
|
+
return new xt({
|
|
429
|
+
key: new D("autolink"),
|
|
430
|
+
appendTransaction: (o, n, r) => {
|
|
431
|
+
const i = o.some((f) => f.docChanged) && !n.doc.eq(r.doc);
|
|
432
432
|
if (e && !i)
|
|
433
433
|
return;
|
|
434
|
-
const { tr: s } =
|
|
434
|
+
const { tr: s } = r, { textContent: a } = r.doc;
|
|
435
435
|
e || v(a, 0, 0, a.length, s, t.type), e = !0;
|
|
436
436
|
const u = dt(
|
|
437
|
-
|
|
438
|
-
[...
|
|
437
|
+
n.doc,
|
|
438
|
+
[...o]
|
|
439
439
|
);
|
|
440
440
|
return ut(u).forEach(({ oldRange: f, newRange: g }) => {
|
|
441
|
-
Zt(g,
|
|
442
|
-
|
|
441
|
+
Zt(g, r.doc, s, t.type), lt(
|
|
442
|
+
r.doc,
|
|
443
443
|
g,
|
|
444
444
|
(h) => h.isTextblock
|
|
445
445
|
).forEach(({ node: h, pos: _ }) => {
|
|
@@ -459,12 +459,12 @@ function te(t) {
|
|
|
459
459
|
const ee = {
|
|
460
460
|
class: "d-link d-c-text d-d-inline-block",
|
|
461
461
|
rel: "noopener noreferrer nofollow"
|
|
462
|
-
},
|
|
462
|
+
}, oe = mt.create({
|
|
463
463
|
name: "Link",
|
|
464
464
|
renderHTML({ HTMLAttributes: t }) {
|
|
465
465
|
return [
|
|
466
466
|
"a",
|
|
467
|
-
|
|
467
|
+
x(
|
|
468
468
|
this.options.HTMLAttributes,
|
|
469
469
|
t,
|
|
470
470
|
ee
|
|
@@ -480,7 +480,7 @@ const ee = {
|
|
|
480
480
|
te({ type: this.type })
|
|
481
481
|
];
|
|
482
482
|
}
|
|
483
|
-
}),
|
|
483
|
+
}), ne = {
|
|
484
484
|
name: "MentionComponent",
|
|
485
485
|
components: {
|
|
486
486
|
NodeViewWrapper: A,
|
|
@@ -493,7 +493,7 @@ const ee = {
|
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
|
-
function
|
|
496
|
+
function re(t, e, o, n, r, i) {
|
|
497
497
|
const s = c("dt-link"), a = c("node-view-wrapper");
|
|
498
498
|
return d(), l(a, { class: "d-d-inline-block" }, {
|
|
499
499
|
default: m(() => [
|
|
@@ -507,7 +507,7 @@ function oe(t, e, n, r, o, i) {
|
|
|
507
507
|
_: 1
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
const ie = /* @__PURE__ */ p(
|
|
510
|
+
const ie = /* @__PURE__ */ p(ne, [["render", re]]), se = It.extend({
|
|
511
511
|
addNodeView() {
|
|
512
512
|
return $(ie);
|
|
513
513
|
},
|
|
@@ -535,7 +535,7 @@ const ie = /* @__PURE__ */ p(re, [["render", oe]]), se = It.extend({
|
|
|
535
535
|
return `@${t.attrs.id}`;
|
|
536
536
|
},
|
|
537
537
|
renderHTML({ HTMLAttributes: t }) {
|
|
538
|
-
return ["mention-component",
|
|
538
|
+
return ["mention-component", x(this.options.HTMLAttributes, t), 0];
|
|
539
539
|
}
|
|
540
540
|
}), ae = [
|
|
541
541
|
"text",
|
|
@@ -556,7 +556,7 @@ const ie = /* @__PURE__ */ p(re, [["render", oe]]), se = It.extend({
|
|
|
556
556
|
name: "MentionSuggestion",
|
|
557
557
|
components: {
|
|
558
558
|
DtAvatar: vt,
|
|
559
|
-
DtStack:
|
|
559
|
+
DtStack: H
|
|
560
560
|
},
|
|
561
561
|
props: {
|
|
562
562
|
item: {
|
|
@@ -573,7 +573,7 @@ const ie = /* @__PURE__ */ p(re, [["render", oe]]), se = It.extend({
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
|
-
function le(t, e, n, r,
|
|
576
|
+
function le(t, e, o, n, r, i) {
|
|
577
577
|
const s = c("dt-avatar"), a = c("dt-stack");
|
|
578
578
|
return d(), l(a, {
|
|
579
579
|
direction: "row",
|
|
@@ -599,16 +599,16 @@ const me = /* @__PURE__ */ p(ue, [["render", le]]), pe = {
|
|
|
599
599
|
render: () => {
|
|
600
600
|
let t, e;
|
|
601
601
|
return {
|
|
602
|
-
onStart: (
|
|
603
|
-
t = new P(
|
|
602
|
+
onStart: (o) => {
|
|
603
|
+
t = new P(q, {
|
|
604
604
|
props: {
|
|
605
605
|
itemComponent: M(me),
|
|
606
606
|
itemType: "mention",
|
|
607
|
-
...
|
|
607
|
+
...o
|
|
608
608
|
},
|
|
609
|
-
editor:
|
|
610
|
-
}),
|
|
611
|
-
getReferenceClientRect:
|
|
609
|
+
editor: o.editor
|
|
610
|
+
}), o.clientRect && (e = V("body", {
|
|
611
|
+
getReferenceClientRect: o.clientRect,
|
|
612
612
|
appendTo: () => document.body,
|
|
613
613
|
content: t.element,
|
|
614
614
|
showOnCreate: !0,
|
|
@@ -617,13 +617,13 @@ const me = /* @__PURE__ */ p(ue, [["render", le]]), pe = {
|
|
|
617
617
|
placement: "top-start"
|
|
618
618
|
}));
|
|
619
619
|
},
|
|
620
|
-
onUpdate(
|
|
621
|
-
t.updateProps(
|
|
622
|
-
getReferenceClientRect:
|
|
620
|
+
onUpdate(o) {
|
|
621
|
+
t.updateProps(o), o.clientRect && e[0].setProps({
|
|
622
|
+
getReferenceClientRect: o.clientRect
|
|
623
623
|
});
|
|
624
624
|
},
|
|
625
|
-
onKeyDown(
|
|
626
|
-
return
|
|
625
|
+
onKeyDown(o) {
|
|
626
|
+
return o.event.key === "Escape" ? (e[0].hide(), !0) : t == null ? void 0 : t.ref.onKeyDown(o);
|
|
627
627
|
},
|
|
628
628
|
onExit() {
|
|
629
629
|
e[0].destroy(), t.destroy();
|
|
@@ -633,7 +633,7 @@ const me = /* @__PURE__ */ p(ue, [["render", le]]), pe = {
|
|
|
633
633
|
}, fe = {
|
|
634
634
|
name: "DtRichTextEditor",
|
|
635
635
|
components: {
|
|
636
|
-
EditorContent:
|
|
636
|
+
EditorContent: U
|
|
637
637
|
},
|
|
638
638
|
props: {
|
|
639
639
|
/**
|
|
@@ -733,6 +733,48 @@ const me = /* @__PURE__ */ p(ue, [["render", le]]), pe = {
|
|
|
733
733
|
mentionSuggestion: {
|
|
734
734
|
type: Object,
|
|
735
735
|
default: null
|
|
736
|
+
},
|
|
737
|
+
/**
|
|
738
|
+
* Whether the input allows for block quote.
|
|
739
|
+
*/
|
|
740
|
+
allowBlockquote: {
|
|
741
|
+
type: Boolean,
|
|
742
|
+
default: !0
|
|
743
|
+
},
|
|
744
|
+
/**
|
|
745
|
+
* Whether the input allows for bold to be introduced in the text.
|
|
746
|
+
*/
|
|
747
|
+
allowBold: {
|
|
748
|
+
type: Boolean,
|
|
749
|
+
default: !0
|
|
750
|
+
},
|
|
751
|
+
/**
|
|
752
|
+
* Whether the input allows for bullet list to be introduced in the text.
|
|
753
|
+
*/
|
|
754
|
+
allowBulletList: {
|
|
755
|
+
type: Boolean,
|
|
756
|
+
default: !0
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
* Whether the input allows for italic to be introduced in the text.
|
|
760
|
+
*/
|
|
761
|
+
allowItalic: {
|
|
762
|
+
type: Boolean,
|
|
763
|
+
default: !0
|
|
764
|
+
},
|
|
765
|
+
/**
|
|
766
|
+
* Whether the input allows for strike to be introduced in the text.
|
|
767
|
+
*/
|
|
768
|
+
allowStrike: {
|
|
769
|
+
type: Boolean,
|
|
770
|
+
default: !0
|
|
771
|
+
},
|
|
772
|
+
/**
|
|
773
|
+
* Whether the input allows for underline to be introduced in the text.
|
|
774
|
+
*/
|
|
775
|
+
allowUnderline: {
|
|
776
|
+
type: Boolean,
|
|
777
|
+
default: !0
|
|
736
778
|
}
|
|
737
779
|
},
|
|
738
780
|
emits: [
|
|
@@ -768,20 +810,12 @@ const me = /* @__PURE__ */ p(ue, [["render", le]]), pe = {
|
|
|
768
810
|
};
|
|
769
811
|
},
|
|
770
812
|
computed: {
|
|
813
|
+
// eslint-disable-next-line complexity
|
|
771
814
|
extensions() {
|
|
772
|
-
const t = [
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
W,
|
|
777
|
-
Z,
|
|
778
|
-
et,
|
|
779
|
-
X,
|
|
780
|
-
rt,
|
|
781
|
-
it,
|
|
782
|
-
ot
|
|
783
|
-
];
|
|
784
|
-
if (this.link && t.push(this.getExtension(ne, this.link)), t.push(
|
|
815
|
+
const t = [W, X, it];
|
|
816
|
+
if (this.link && t.push(this.getExtension(oe, this.link)), this.allowBlockquote && t.push(F), this.allowBold && t.push(G), this.allowBulletList && (t.push(Q), t.push(et), t.push(ot.configure({
|
|
817
|
+
itemTypeName: "listItem"
|
|
818
|
+
}))), this.allowItalic && t.push(Z), this.allowStrike && t.push(nt), this.allowUnderline && t.push(rt), t.push(
|
|
785
819
|
Y.configure({ placeholder: this.placeholder })
|
|
786
820
|
), this.allowLineBreaks || t.push(
|
|
787
821
|
J.extend({
|
|
@@ -811,8 +845,6 @@ const me = /* @__PURE__ */ p(ue, [["render", le]]), pe = {
|
|
|
811
845
|
HTMLAttributes: {
|
|
812
846
|
class: "dt-rich-text-editor--code-block"
|
|
813
847
|
}
|
|
814
|
-
})), t.push(nt.configure({
|
|
815
|
-
itemTypeName: "listItem"
|
|
816
848
|
})), t;
|
|
817
849
|
},
|
|
818
850
|
inputAttrs() {
|
|
@@ -855,7 +887,7 @@ const me = /* @__PURE__ */ p(ue, [["render", le]]), pe = {
|
|
|
855
887
|
},
|
|
856
888
|
methods: {
|
|
857
889
|
createEditor() {
|
|
858
|
-
this.editor = new
|
|
890
|
+
this.editor = new K({
|
|
859
891
|
autofocus: this.autoFocus,
|
|
860
892
|
content: this.modelValue,
|
|
861
893
|
editable: this.editable,
|
|
@@ -897,8 +929,8 @@ const me = /* @__PURE__ */ p(ue, [["render", le]]), pe = {
|
|
|
897
929
|
}
|
|
898
930
|
},
|
|
899
931
|
getExtension(t, e) {
|
|
900
|
-
var
|
|
901
|
-
return typeof e == "boolean" ? t : (
|
|
932
|
+
var o;
|
|
933
|
+
return typeof e == "boolean" ? t : (o = t.configure) == null ? void 0 : o.call(t, e);
|
|
902
934
|
},
|
|
903
935
|
updateEditorAttributes(t) {
|
|
904
936
|
this.editor.setOptions({ editorProps: { attributes: t } });
|
|
@@ -908,17 +940,17 @@ const me = /* @__PURE__ */ p(ue, [["render", le]]), pe = {
|
|
|
908
940
|
}
|
|
909
941
|
}
|
|
910
942
|
};
|
|
911
|
-
function he(t, e, n, r,
|
|
943
|
+
function he(t, e, o, n, r, i) {
|
|
912
944
|
const s = c("editor-content");
|
|
913
945
|
return d(), l(s, {
|
|
914
|
-
editor:
|
|
946
|
+
editor: r.editor,
|
|
915
947
|
"data-qa": "dt-rich-text-editor",
|
|
916
948
|
class: "dt-rich-text-editor"
|
|
917
949
|
}, null, 8, ["editor"]);
|
|
918
950
|
}
|
|
919
|
-
const
|
|
951
|
+
const io = /* @__PURE__ */ p(fe, [["render", he]]);
|
|
920
952
|
export {
|
|
921
|
-
|
|
953
|
+
io as DtRichTextEditor,
|
|
922
954
|
ce as RICH_TEXT_EDITOR_AUTOFOCUS_TYPES,
|
|
923
955
|
ae as RICH_TEXT_EDITOR_OUTPUT_FORMATS
|
|
924
956
|
};
|