@dialpad/dialtone 9.151.0 → 9.153.9
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/README.md +1 -34
- package/dist/css/dialtone-default-theme.css +8 -2
- package/dist/css/dialtone-default-theme.min.css +1 -1
- package/dist/css/dialtone.css +8 -2
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/css/tokens-botany-dark.css +1 -1
- package/dist/tokens/css/tokens-buttercream-dark.css +1 -1
- package/dist/tokens/css/tokens-deca-light.css +3 -3
- package/dist/tokens/css/tokens-dp-dark.css +1 -1
- package/dist/tokens/css/tokens-expressive-dark.css +1 -1
- package/dist/tokens/css/tokens-expressive-sm-dark.css +1 -1
- package/dist/tokens/css/tokens-high-desert-dark.css +1 -1
- package/dist/tokens/css/tokens-plum-dark.css +1 -1
- package/dist/tokens/css/tokens-sunflower-dark.css +1 -1
- package/dist/tokens/css/tokens-tmo-dark.css +2 -2
- package/dist/tokens/doc.json +78308 -78308
- package/dist/tokens/themes/botany-dark.cjs +1 -1
- package/dist/tokens/themes/botany-dark.js +1 -1
- package/dist/tokens/themes/buttercream-dark.cjs +1 -1
- package/dist/tokens/themes/buttercream-dark.js +1 -1
- package/dist/tokens/themes/dp-dark.cjs +1 -1
- package/dist/tokens/themes/dp-dark.js +1 -1
- package/dist/tokens/themes/dp-deca-light.cjs +1 -1
- package/dist/tokens/themes/dp-deca-light.js +1 -1
- package/dist/tokens/themes/expressive-dark.cjs +1 -1
- package/dist/tokens/themes/expressive-dark.js +1 -1
- package/dist/tokens/themes/high-desert-dark.cjs +1 -1
- package/dist/tokens/themes/high-desert-dark.js +1 -1
- package/dist/tokens/themes/plum-dark.cjs +1 -1
- package/dist/tokens/themes/plum-dark.js +1 -1
- package/dist/tokens/themes/sunflower-dark.cjs +1 -1
- package/dist/tokens/themes/sunflower-dark.js +1 -1
- package/dist/tokens/themes/tmo-dark.cjs +1 -1
- package/dist/tokens/themes/tmo-dark.js +1 -1
- package/dist/vue2/lib/tab/tab-group.cjs +1 -1
- package/dist/vue2/lib/tab/tab-group.cjs.map +1 -1
- package/dist/vue2/lib/tab/tab-group.js +4 -4
- package/dist/vue2/lib/tab/tab-group.js.map +1 -1
- package/dist/vue2/localization/index.cjs +1 -1
- package/dist/vue2/localization/index.cjs.map +1 -1
- package/dist/vue2/localization/index.js +46 -42
- package/dist/vue2/localization/index.js.map +1 -1
- package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +2 -3
- package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -2
- package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/button/button.vue.d.ts +1 -2
- package/dist/vue2/types/components/button/button.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/chip/chip.vue.d.ts +2 -3
- package/dist/vue2/types/components/chip/chip.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +1 -2
- package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +1 -2
- package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +2 -3
- package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/loader/loader.vue.d.ts +1 -2
- package/dist/vue2/types/components/loader/loader.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/modal/modal.vue.d.ts +2 -3
- package/dist/vue2/types/components/modal/modal.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/notice/notice_action.vue.d.ts +2 -3
- package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/pagination/pagination.vue.d.ts +3 -4
- package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +2 -3
- package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +1 -2
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +2 -3
- package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +2 -3
- package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +3 -4
- package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +1 -2
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -3
- package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -15
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -3
- package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +2 -3
- package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -6
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +8 -9
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +9 -10
- package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -3
- package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -3
- package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -2
- package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -3
- package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js +100 -93
- package/dist/vue3/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/dist/vue3/lib/radio/radio.cjs +1 -1
- package/dist/vue3/lib/radio/radio.cjs.map +1 -1
- package/dist/vue3/lib/radio/radio.js +7 -14
- package/dist/vue3/lib/radio/radio.js.map +1 -1
- package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs +1 -1
- package/dist/vue3/lib/rich-text-editor/mention-suggestion.cjs.map +1 -1
- package/dist/vue3/lib/rich-text-editor/mention-suggestion.js +12 -2
- package/dist/vue3/lib/rich-text-editor/mention-suggestion.js.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +4 -4
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +95 -73
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue3/lib/tab/tab-group.cjs +1 -1
- package/dist/vue3/lib/tab/tab-group.cjs.map +1 -1
- package/dist/vue3/lib/tab/tab-group.js +1 -1
- package/dist/vue3/lib/tab/tab-group.js.map +1 -1
- package/dist/vue3/lib/tooltip-directive/tooltip.cjs +1 -1
- package/dist/vue3/lib/tooltip-directive/tooltip.cjs.map +1 -1
- package/dist/vue3/lib/tooltip-directive/tooltip.js +21 -21
- package/dist/vue3/lib/tooltip-directive/tooltip.js.map +1 -1
- package/dist/vue3/localization/index.cjs +1 -1
- package/dist/vue3/localization/index.cjs.map +1 -1
- package/dist/vue3/localization/index.js +48 -46
- package/dist/vue3/localization/index.js.map +1 -1
- package/dist/vue3/types/common/sr_only_close_button.vue.d.ts +2 -3
- package/dist/vue3/types/common/sr_only_close_button.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts +1 -2
- package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/button/button.vue.d.ts +1 -2
- package/dist/vue3/types/components/button/button.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/chip/chip.vue.d.ts +2 -3
- package/dist/vue3/types/components/chip/chip.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts +2 -3
- package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/modal/modal.vue.d.ts +2 -3
- package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/notice/notice_action.vue.d.ts +2 -3
- package/dist/vue3/types/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/pagination/pagination.vue.d.ts +3 -4
- package/dist/vue3/types/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +2 -3
- package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/radio/radio.vue.d.ts +1 -2
- package/dist/vue3/types/components/radio/radio.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +3 -1
- package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts +3 -0
- package/dist/vue3/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +3 -3
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +2 -3
- package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +2 -3
- package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +3 -4
- package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +1 -2
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +2 -3
- package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -15
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts +2 -0
- package/dist/vue3/types/recipes/conversation_view/emoji_row/composables/useMockReactions.d.ts.map +1 -0
- package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +2 -3
- package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +2 -3
- package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +2 -3
- package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -6
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +8 -9
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +9 -10
- package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +2 -3
- package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts +2 -3
- package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts +1 -2
- package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +2 -3
- package/dist/vue3/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { nodeViewProps as $, NodeViewWrapper as
|
|
2
|
-
import { Node as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { nodeViewProps as $, NodeViewWrapper as v, VueRenderer as R, VueNodeViewRenderer as I, BubbleMenu as Q, EditorContent as Z, Editor as ee } from "../../node_modules/@tiptap/vue-3.js";
|
|
2
|
+
import { Node as te, nodePasteRule as A, InputRule as ne, mergeAttributes as b, getMarksBetween as oe, combineTransactionSteps as re, getChangedRanges as se, findChildrenInRange as ie, Mark as ae, nodeInputRule as ce, Extension as de } from "@tiptap/core";
|
|
3
|
+
import le from "@tiptap/extension-blockquote";
|
|
4
|
+
import ue from "@tiptap/extension-code-block";
|
|
5
|
+
import me from "@tiptap/extension-code";
|
|
6
|
+
import he from "@tiptap/extension-document";
|
|
7
|
+
import pe from "@tiptap/extension-hard-break";
|
|
8
8
|
import U from "@tiptap/extension-paragraph";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
9
|
+
import fe from "@tiptap/extension-placeholder";
|
|
10
|
+
import ge from "@tiptap/extension-bold";
|
|
11
|
+
import _e from "@tiptap/extension-bullet-list";
|
|
12
|
+
import ke from "@tiptap/extension-italic";
|
|
13
|
+
import ye from "@tiptap/extension-link";
|
|
14
|
+
import we from "@tiptap/extension-list-item";
|
|
15
|
+
import Ce from "@tiptap/extension-ordered-list";
|
|
16
|
+
import be from "@tiptap/extension-strike";
|
|
17
|
+
import xe from "@tiptap/extension-underline";
|
|
18
|
+
import Te from "@tiptap/extension-text";
|
|
19
|
+
import Ee from "@tiptap/extension-text-align";
|
|
20
|
+
import Se from "@tiptap/extension-history";
|
|
21
|
+
import Le from "@tiptap/extension-text-style";
|
|
22
|
+
import $e from "@tiptap/extension-color";
|
|
23
|
+
import ve from "@tiptap/extension-font-family";
|
|
24
24
|
import { PluginKey as T, Plugin as Re } from "@tiptap/pm/state";
|
|
25
|
-
import
|
|
25
|
+
import Ie from "@tiptap/suggestion";
|
|
26
26
|
import { emojiPattern as W } from "regex-combined-emojis";
|
|
27
|
-
import { resolveComponent as l, createBlock as m, openBlock as d, withCtx as u, createVNode as f, createElementBlock as _, withDirectives as
|
|
27
|
+
import { resolveComponent as l, createBlock as m, openBlock as d, withCtx as u, createVNode as f, createElementBlock as _, withDirectives as Me, createElementVNode as k, Fragment as Be, renderList as Ne, withModifiers as z, normalizeClass as X, resolveDynamicComponent as Oe, vShow as De, createTextVNode as C, toDisplayString as h, markRaw as M, createCommentVNode as w, mergeProps as Ae } from "vue";
|
|
28
28
|
import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
29
|
-
import
|
|
29
|
+
import J from "../emoji/emoji.js";
|
|
30
30
|
import { getEmojiData as Pe, emojiRegex as je, stringToUnicode as He, codeToEmojiData as j, emojiShortCodeRegex as Ke } from "../../common/emoji/index.js";
|
|
31
31
|
import Fe from "../list-item/list-item.js";
|
|
32
32
|
import E from "../stack/stack.js";
|
|
@@ -34,7 +34,7 @@ import B from "tippy.js";
|
|
|
34
34
|
import { getPhoneNumberRegex as Ve, linkRegex as qe, warnIfUnmounted as Ue, returnFirstEl as K } from "../../common/utils/index.js";
|
|
35
35
|
import We from "@tiptap/extension-image";
|
|
36
36
|
import H from "@tiptap/extension-mention";
|
|
37
|
-
import
|
|
37
|
+
import Y from "../link/link.js";
|
|
38
38
|
import { DtIconLock as ze } from "@dialpad/dialtone-icons/vue3";
|
|
39
39
|
import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as F, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Xe, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Je } from "./rich-text-editor-constants.js";
|
|
40
40
|
import Ye from "../avatar/avatar.js";
|
|
@@ -47,8 +47,8 @@ const nt = {
|
|
|
47
47
|
compatConfig: { MODE: 3 },
|
|
48
48
|
name: "EmojiComponent",
|
|
49
49
|
components: {
|
|
50
|
-
NodeViewWrapper:
|
|
51
|
-
DtEmoji:
|
|
50
|
+
NodeViewWrapper: v,
|
|
51
|
+
DtEmoji: J
|
|
52
52
|
},
|
|
53
53
|
props: $
|
|
54
54
|
};
|
|
@@ -126,7 +126,7 @@ const rt = /* @__PURE__ */ g(nt, [["render", ot]]), st = {
|
|
|
126
126
|
this.command(t);
|
|
127
127
|
return;
|
|
128
128
|
case "mention":
|
|
129
|
-
this.command({ name: t.name, id: t.id, avatarSrc: t.avatarSrc });
|
|
129
|
+
this.command({ name: t.name, id: t.id, avatarSrc: t.avatarSrc, contactKey: t.contactKey });
|
|
130
130
|
break;
|
|
131
131
|
case "channel":
|
|
132
132
|
this.command({ name: t.name, id: t.id, locked: t.locked });
|
|
@@ -144,16 +144,16 @@ const rt = /* @__PURE__ */ g(nt, [["render", ot]]), st = {
|
|
|
144
144
|
function ct(e, t, o, n, r, s) {
|
|
145
145
|
const i = l("dt-list-item");
|
|
146
146
|
return d(), _("div", it, [
|
|
147
|
-
|
|
148
|
-
(d(!0), _(
|
|
147
|
+
Me(k("ul", at, [
|
|
148
|
+
(d(!0), _(Be, null, Ne(o.items, (a, c) => (d(), m(i, {
|
|
149
149
|
key: a.id,
|
|
150
|
-
class:
|
|
150
|
+
class: X([
|
|
151
151
|
"d-suggestion-list__item",
|
|
152
152
|
{ "d-list-item--highlighted": c === r.selectedIndex }
|
|
153
153
|
]),
|
|
154
154
|
"navigation-type": "arrow-keys",
|
|
155
155
|
onClick: (p) => s.selectItem(c),
|
|
156
|
-
onKeydown:
|
|
156
|
+
onKeydown: z(s.onKeyDown, ["prevent"])
|
|
157
157
|
}, {
|
|
158
158
|
default: u(() => [
|
|
159
159
|
(d(), m(Oe(o.itemComponent), { item: a }, null, 8, ["item"]))
|
|
@@ -169,7 +169,7 @@ const N = /* @__PURE__ */ g(st, [["render", ct]]), dt = {
|
|
|
169
169
|
compatConfig: { MODE: 3 },
|
|
170
170
|
name: "EmojiSuggestion",
|
|
171
171
|
components: {
|
|
172
|
-
DtEmoji:
|
|
172
|
+
DtEmoji: J,
|
|
173
173
|
DtStack: E
|
|
174
174
|
},
|
|
175
175
|
props: {
|
|
@@ -245,7 +245,7 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
|
|
|
245
245
|
let e, t, o = !1;
|
|
246
246
|
return {
|
|
247
247
|
onStart: (n) => {
|
|
248
|
-
e = new
|
|
248
|
+
e = new R(N, {
|
|
249
249
|
props: {
|
|
250
250
|
itemComponent: M(ut),
|
|
251
251
|
itemType: "emoji",
|
|
@@ -292,7 +292,7 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
|
|
|
292
292
|
index: o.index,
|
|
293
293
|
text: o[0],
|
|
294
294
|
match: o
|
|
295
|
-
})), yt =
|
|
295
|
+
})), yt = te.create({
|
|
296
296
|
name: "emoji",
|
|
297
297
|
addOptions() {
|
|
298
298
|
return {
|
|
@@ -328,7 +328,7 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
|
|
|
328
328
|
},
|
|
329
329
|
addInputRules() {
|
|
330
330
|
return [
|
|
331
|
-
new
|
|
331
|
+
new ne({
|
|
332
332
|
find: (e) => {
|
|
333
333
|
const t = e.match(ft) || e.match(gt);
|
|
334
334
|
if (t)
|
|
@@ -365,7 +365,7 @@ const ut = /* @__PURE__ */ g(dt, [["render", lt]]), O = {
|
|
|
365
365
|
},
|
|
366
366
|
addProseMirrorPlugins() {
|
|
367
367
|
return [
|
|
368
|
-
|
|
368
|
+
Ie({
|
|
369
369
|
char: ":",
|
|
370
370
|
pluginKey: new T("emoji"),
|
|
371
371
|
editor: this.editor,
|
|
@@ -432,7 +432,7 @@ function P(e, t, o, n) {
|
|
|
432
432
|
return s <= 0 || s >= e.length || s === t ? r : P(e, s, o, n);
|
|
433
433
|
}
|
|
434
434
|
function Tt(e, t, o, n) {
|
|
435
|
-
const r = Math.max(e.from - 1, 0), s = Math.min(e.to + 1, t.content.size), i =
|
|
435
|
+
const r = Math.max(e.from - 1, 0), s = Math.min(e.to + 1, t.content.size), i = oe(r, s, t);
|
|
436
436
|
for (const a of i)
|
|
437
437
|
a.mark.type === n && o.removeMark(a.from, a.to, n);
|
|
438
438
|
}
|
|
@@ -454,8 +454,8 @@ function q(e, t, o, n, r, s) {
|
|
|
454
454
|
V
|
|
455
455
|
), y = e.slice(c.from, p.to);
|
|
456
456
|
wt(y, qe, Ct).forEach((D) => {
|
|
457
|
-
const x = bt(D[0]), L = t + c.from + D.index + 1,
|
|
458
|
-
r.addMark(L,
|
|
457
|
+
const x = bt(D[0]), L = t + c.from + D.index + 1, G = L + x.length;
|
|
458
|
+
r.addMark(L, G, s.create());
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
function Et(e) {
|
|
@@ -468,12 +468,12 @@ function Et(e) {
|
|
|
468
468
|
return;
|
|
469
469
|
const { tr: i } = r, { textContent: a } = r.doc;
|
|
470
470
|
t || q(a, 0, 0, a.length, i, e.type), t = !0;
|
|
471
|
-
const c =
|
|
471
|
+
const c = re(
|
|
472
472
|
n.doc,
|
|
473
473
|
[...o]
|
|
474
474
|
);
|
|
475
|
-
return
|
|
476
|
-
Tt(S, r.doc, i, e.type),
|
|
475
|
+
return se(c).forEach(({ oldRange: y, newRange: S }) => {
|
|
476
|
+
Tt(S, r.doc, i, e.type), ie(
|
|
477
477
|
r.doc,
|
|
478
478
|
S,
|
|
479
479
|
(x) => x.isTextblock
|
|
@@ -494,7 +494,7 @@ function Et(e) {
|
|
|
494
494
|
const St = {
|
|
495
495
|
class: "d-link d-c-text d-d-inline-block d-wb-break-all",
|
|
496
496
|
rel: "noopener noreferrer nofollow"
|
|
497
|
-
}, Lt =
|
|
497
|
+
}, Lt = ae.create({
|
|
498
498
|
name: "CustomLink",
|
|
499
499
|
renderHTML({ HTMLAttributes: e }) {
|
|
500
500
|
return [
|
|
@@ -538,42 +538,56 @@ const St = {
|
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
}).configure({ inline: !0, allowBase64: !0 }),
|
|
541
|
+
}).configure({ inline: !0, allowBase64: !0 }), vt = U.extend({
|
|
542
542
|
parseHTML() {
|
|
543
543
|
return [{ tag: "div" }];
|
|
544
544
|
},
|
|
545
545
|
renderHTML({ HTMLAttributes: e }) {
|
|
546
546
|
return ["div", b(this.options.HTMLAttributes, e), 0];
|
|
547
547
|
}
|
|
548
|
-
}),
|
|
548
|
+
}), Rt = {
|
|
549
549
|
compatConfig: { MODE: 3 },
|
|
550
550
|
name: "MentionComponent",
|
|
551
551
|
components: {
|
|
552
|
-
NodeViewWrapper:
|
|
553
|
-
DtLink:
|
|
552
|
+
NodeViewWrapper: v,
|
|
553
|
+
DtLink: Y
|
|
554
554
|
},
|
|
555
555
|
props: $,
|
|
556
556
|
computed: {
|
|
557
557
|
text() {
|
|
558
558
|
return "@" + this.$props.node.attrs.name;
|
|
559
559
|
}
|
|
560
|
+
},
|
|
561
|
+
methods: {
|
|
562
|
+
handleClick() {
|
|
563
|
+
const e = {
|
|
564
|
+
name: this.$props.node.attrs.name,
|
|
565
|
+
id: this.$props.node.attrs.id,
|
|
566
|
+
avatarSrc: this.$props.node.attrs.avatarSrc,
|
|
567
|
+
contactKey: this.$props.node.attrs.contactKey
|
|
568
|
+
};
|
|
569
|
+
this.$props.editor.emit("mention-click", e);
|
|
570
|
+
}
|
|
560
571
|
}
|
|
561
572
|
};
|
|
562
573
|
function It(e, t, o, n, r, s) {
|
|
563
574
|
const i = l("dt-link"), a = l("node-view-wrapper");
|
|
564
575
|
return d(), m(a, { class: "d-d-inline-block" }, {
|
|
565
576
|
default: u(() => [
|
|
566
|
-
f(i, {
|
|
577
|
+
f(i, {
|
|
578
|
+
kind: "mention",
|
|
579
|
+
onClick: z(s.handleClick, ["prevent"])
|
|
580
|
+
}, {
|
|
567
581
|
default: u(() => [
|
|
568
582
|
C(h(s.text), 1)
|
|
569
583
|
]),
|
|
570
584
|
_: 1
|
|
571
|
-
})
|
|
585
|
+
}, 8, ["onClick"])
|
|
572
586
|
]),
|
|
573
587
|
_: 1
|
|
574
588
|
});
|
|
575
589
|
}
|
|
576
|
-
const Mt = /* @__PURE__ */ g(
|
|
590
|
+
const Mt = /* @__PURE__ */ g(Rt, [["render", It]]), Bt = H.extend({
|
|
577
591
|
addNodeView() {
|
|
578
592
|
return I(Mt);
|
|
579
593
|
},
|
|
@@ -615,8 +629,8 @@ const Mt = /* @__PURE__ */ g(vt, [["render", It]]), Bt = H.extend({
|
|
|
615
629
|
compatConfig: { MODE: 3 },
|
|
616
630
|
name: "ChannelComponent",
|
|
617
631
|
components: {
|
|
618
|
-
NodeViewWrapper:
|
|
619
|
-
DtLink:
|
|
632
|
+
NodeViewWrapper: v,
|
|
633
|
+
DtLink: Y,
|
|
620
634
|
DtIconLock: ze,
|
|
621
635
|
DtStack: E
|
|
622
636
|
},
|
|
@@ -693,7 +707,7 @@ const Dt = /* @__PURE__ */ g(Nt, [["render", Ot]]), At = H.extend({
|
|
|
693
707
|
compatConfig: { MODE: 3 },
|
|
694
708
|
name: "SlashCommandsComponent",
|
|
695
709
|
components: {
|
|
696
|
-
NodeViewWrapper:
|
|
710
|
+
NodeViewWrapper: v
|
|
697
711
|
},
|
|
698
712
|
props: {
|
|
699
713
|
...$
|
|
@@ -777,7 +791,7 @@ const Ht = /* @__PURE__ */ g(Pt, [["render", jt]]), Kt = (e, t) => [...e.matchAl
|
|
|
777
791
|
var o;
|
|
778
792
|
const e = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), t = new RegExp(`^((?:\\/)(${e.join("|")})) $`);
|
|
779
793
|
return [
|
|
780
|
-
|
|
794
|
+
ce({
|
|
781
795
|
find: t,
|
|
782
796
|
type: this.type,
|
|
783
797
|
getAttributes(n) {
|
|
@@ -883,7 +897,7 @@ function zt(e, t, o, n, r, s) {
|
|
|
883
897
|
default: u(() => [
|
|
884
898
|
s.presenceText ? (d(), _("span", {
|
|
885
899
|
key: 0,
|
|
886
|
-
class:
|
|
900
|
+
class: X(["d-mention-suggestion__presence", [s.presenceFontColorClass]])
|
|
887
901
|
}, h(s.presenceText), 3)) : w("", !0),
|
|
888
902
|
s.status && s.presenceText ? (d(), _("div", Ut, " • ")) : w("", !0),
|
|
889
903
|
s.status ? (d(), _("div", Wt, h(s.status), 1)) : w("", !0)
|
|
@@ -906,7 +920,7 @@ const Xt = /* @__PURE__ */ g(Vt, [["render", zt]]), Jt = {
|
|
|
906
920
|
let e, t, o = !1;
|
|
907
921
|
return {
|
|
908
922
|
onStart: (n) => {
|
|
909
|
-
e = new
|
|
923
|
+
e = new R(N, {
|
|
910
924
|
props: {
|
|
911
925
|
itemComponent: M(Xt),
|
|
912
926
|
itemType: "mention",
|
|
@@ -994,7 +1008,7 @@ const Qt = /* @__PURE__ */ g(Yt, [["render", Gt]]), Zt = {
|
|
|
994
1008
|
let e, t, o = !1;
|
|
995
1009
|
return {
|
|
996
1010
|
onStart: (n) => {
|
|
997
|
-
e = new
|
|
1011
|
+
e = new R(N, {
|
|
998
1012
|
props: {
|
|
999
1013
|
itemComponent: M(Qt),
|
|
1000
1014
|
itemType: "channel",
|
|
@@ -1074,7 +1088,7 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
|
|
|
1074
1088
|
let e, t, o = !1;
|
|
1075
1089
|
return {
|
|
1076
1090
|
onStart: (n) => {
|
|
1077
|
-
e = new
|
|
1091
|
+
e = new R(N, {
|
|
1078
1092
|
parent: void 0,
|
|
1079
1093
|
props: {
|
|
1080
1094
|
itemComponent: M(sn),
|
|
@@ -1119,8 +1133,8 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
|
|
|
1119
1133
|
compatConfig: { MODE: 3 },
|
|
1120
1134
|
name: "DtRichTextEditor",
|
|
1121
1135
|
components: {
|
|
1122
|
-
EditorContent:
|
|
1123
|
-
BubbleMenu:
|
|
1136
|
+
EditorContent: Z,
|
|
1137
|
+
BubbleMenu: Q,
|
|
1124
1138
|
DtButton: tt,
|
|
1125
1139
|
DtStack: E
|
|
1126
1140
|
},
|
|
@@ -1464,7 +1478,13 @@ const sn = /* @__PURE__ */ g(en, [["render", rn]]), an = {
|
|
|
1464
1478
|
* @event selected-command
|
|
1465
1479
|
* @type {String}
|
|
1466
1480
|
*/
|
|
1467
|
-
"selected-command"
|
|
1481
|
+
"selected-command",
|
|
1482
|
+
/**
|
|
1483
|
+
* Event fired when a mention is clicked
|
|
1484
|
+
* @event mention-click
|
|
1485
|
+
* @type {Object}
|
|
1486
|
+
*/
|
|
1487
|
+
"mention-click"
|
|
1468
1488
|
],
|
|
1469
1489
|
data() {
|
|
1470
1490
|
return {
|
|
@@ -1610,15 +1630,15 @@ ${this.processNodeContent(e)}
|
|
|
1610
1630
|
},
|
|
1611
1631
|
// eslint-disable-next-line complexity
|
|
1612
1632
|
extensions() {
|
|
1613
|
-
const e = [
|
|
1614
|
-
e.push(this.useDivTags ?
|
|
1633
|
+
const e = [he, Te, Se, pe];
|
|
1634
|
+
e.push(this.useDivTags ? vt : U), this.allowBold && e.push(ge), this.allowBlockquote && e.push(le), this.allowBulletList && (e.push(_e), e.push(we.extend({
|
|
1615
1635
|
renderText({ node: n }) {
|
|
1616
1636
|
return n.textContent;
|
|
1617
1637
|
}
|
|
1618
|
-
})), e.push(
|
|
1619
|
-
|
|
1638
|
+
})), e.push(Ce)), this.allowItalic && e.push(ke), this.allowStrike && e.push(be), this.allowUnderline && e.push(xe), this.placeholder && e.push(
|
|
1639
|
+
fe.configure({ placeholder: this.placeholder })
|
|
1620
1640
|
);
|
|
1621
|
-
const t = this, o =
|
|
1641
|
+
const t = this, o = de.create({
|
|
1622
1642
|
addKeyboardShortcuts() {
|
|
1623
1643
|
return {
|
|
1624
1644
|
"Shift-Enter": ({ editor: n }) => t.allowLineBreaks ? !1 : (n.commands.first(({ commands: r }) => [
|
|
@@ -1632,7 +1652,7 @@ ${this.processNodeContent(e)}
|
|
|
1632
1652
|
};
|
|
1633
1653
|
}
|
|
1634
1654
|
});
|
|
1635
|
-
if (e.push(o), this.link && e.push(
|
|
1655
|
+
if (e.push(o), this.link && e.push(ye.extend({
|
|
1636
1656
|
inclusive: !1,
|
|
1637
1657
|
addKeyboardShortcuts() {
|
|
1638
1658
|
return {
|
|
@@ -1663,9 +1683,9 @@ ${this.processNodeContent(e)}
|
|
|
1663
1683
|
}
|
|
1664
1684
|
}));
|
|
1665
1685
|
}
|
|
1666
|
-
return e.push(yt), e.push(
|
|
1686
|
+
return e.push(yt), e.push(Ee.configure({
|
|
1667
1687
|
types: ["paragraph"]
|
|
1668
|
-
})), this.allowCode && e.push(
|
|
1688
|
+
})), this.allowCode && e.push(me), this.allowCodeblock && e.push(ue.extend({
|
|
1669
1689
|
renderText({ node: n }) {
|
|
1670
1690
|
return `\`\`\`
|
|
1671
1691
|
${n.textContent}
|
|
@@ -1675,7 +1695,7 @@ ${n.textContent}
|
|
|
1675
1695
|
HTMLAttributes: {
|
|
1676
1696
|
class: "d-rich-text-editor__code-block"
|
|
1677
1697
|
}
|
|
1678
|
-
})), this.allowInlineImages && e.push($t), (this.allowFontFamily || this.allowFontColor) && (e.push(
|
|
1698
|
+
})), this.allowInlineImages && e.push($t), (this.allowFontFamily || this.allowFontColor) && (e.push(Le), this.allowFontColor && e.push($e), this.allowFontFamily && e.push(ve)), this.additionalExtensions.length && e.push(...this.additionalExtensions), e;
|
|
1679
1699
|
},
|
|
1680
1700
|
inputAttrs() {
|
|
1681
1701
|
const e = {
|
|
@@ -1719,7 +1739,7 @@ ${n.textContent}
|
|
|
1719
1739
|
},
|
|
1720
1740
|
methods: {
|
|
1721
1741
|
createEditor() {
|
|
1722
|
-
this.editor = new
|
|
1742
|
+
this.editor = new ee({
|
|
1723
1743
|
autofocus: this.autoFocus,
|
|
1724
1744
|
content: this.modelValue,
|
|
1725
1745
|
editable: this.editable,
|
|
@@ -1894,6 +1914,8 @@ ${n.textContent}
|
|
|
1894
1914
|
this.$emit("focus", e);
|
|
1895
1915
|
}), this.editor.on("blur", ({ event: e }) => {
|
|
1896
1916
|
this.$emit("blur", e);
|
|
1917
|
+
}), this.editor.on("mention-click", (e) => {
|
|
1918
|
+
this.$emit("mention-click", e);
|
|
1897
1919
|
});
|
|
1898
1920
|
},
|
|
1899
1921
|
getOutput() {
|