@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.
- package/dist/chunks/_plugin-vue2_normalizer-ZK80B3OL.js +2 -0
- package/dist/chunks/_plugin-vue2_normalizer-ZK80B3OL.js.map +1 -0
- package/dist/chunks/dropdown-zhMEz3bn.js +2 -0
- package/dist/chunks/dropdown-zhMEz3bn.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-2jPosQBn.js +3 -0
- package/dist/chunks/index-2jPosQBn.js.map +1 -0
- package/dist/chunks/index-sdfB7Aok.js +2 -0
- package/dist/chunks/index-sdfB7Aok.js.map +1 -0
- package/dist/chunks/input-o-fc1X4b.js +2 -0
- package/dist/chunks/input-o-fc1X4b.js.map +1 -0
- package/dist/chunks/input_group-j2gTtc1C.js +2 -0
- package/dist/chunks/input_group-j2gTtc1C.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-u3ZKIhit.js +2 -0
- package/dist/chunks/notice_action-u3ZKIhit.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-ErijKGYR.js +3 -0
- package/dist/chunks/sr_only_close_button-ErijKGYR.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-7hJQSLFx.js +2 -0
- package/dist/chunks/tab-7hJQSLFx.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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +2 -3
- 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-with-popover.js +1 -1
- 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 +2 -3
- 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 +6 -7
- 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 +6 -7
- 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 +14 -38
- 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 +11 -12
- 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 +89 -47
- 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 +10 -11
- 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 +106 -74
- 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/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 +3 -4
- 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 +2 -22
- 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/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 +10 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { NodeViewWrapper as
|
|
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
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
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
|
|
28
|
-
import
|
|
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:
|
|
48
|
+
NodeViewWrapper: E,
|
|
49
49
|
DtEmoji: C
|
|
50
50
|
},
|
|
51
|
-
props:
|
|
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
|
|
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
|
-
},
|
|
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 =
|
|
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
|
|
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
|
-
},
|
|
171
|
-
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
358
|
+
function Bt(t, e) {
|
|
359
359
|
return !["#", "@"].includes(t.charAt(e.index)) && !["#", "@"].includes(t.charAt(e.index - 1));
|
|
360
360
|
}
|
|
361
|
-
function
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
400
|
-
function
|
|
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,
|
|
405
|
+
const a = n - e, d = h(
|
|
406
406
|
t,
|
|
407
407
|
s,
|
|
408
408
|
"left",
|
|
409
|
-
|
|
409
|
+
b
|
|
410
410
|
), _ = h(
|
|
411
411
|
t,
|
|
412
412
|
a,
|
|
413
413
|
"right",
|
|
414
|
-
|
|
415
|
-
),
|
|
416
|
-
Mt(
|
|
417
|
-
const
|
|
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
|
|
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((
|
|
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 ||
|
|
431
|
-
const
|
|
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(
|
|
436
|
-
|
|
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
|
-
(
|
|
440
|
-
).forEach(({ node:
|
|
441
|
-
|
|
442
|
-
|
|
439
|
+
(c) => c.isTextblock
|
|
440
|
+
).forEach(({ node: c, pos: p }) => {
|
|
441
|
+
x(
|
|
442
|
+
c.textContent,
|
|
443
443
|
p,
|
|
444
|
-
|
|
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
|
|
454
|
+
const Ut = {
|
|
455
455
|
class: "d-link d-c-text d-d-inline-block",
|
|
456
456
|
rel: "noopener noreferrer nofollow"
|
|
457
|
-
},
|
|
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
|
-
|
|
465
|
+
Ut
|
|
466
466
|
),
|
|
467
467
|
0
|
|
468
468
|
];
|
|
@@ -472,16 +472,16 @@ const Ft = {
|
|
|
472
472
|
},
|
|
473
473
|
addProseMirrorPlugins() {
|
|
474
474
|
return [
|
|
475
|
-
|
|
475
|
+
Nt({ type: this.type })
|
|
476
476
|
];
|
|
477
477
|
}
|
|
478
478
|
}), Kt = {
|
|
479
479
|
name: "MentionComponent",
|
|
480
480
|
components: {
|
|
481
|
-
NodeViewWrapper:
|
|
481
|
+
NodeViewWrapper: E,
|
|
482
482
|
DtLink: mt
|
|
483
483
|
},
|
|
484
|
-
props:
|
|
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 =
|
|
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
|
|
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
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
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
|
-
|
|
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(
|
|
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() {
|