@dialpad/dialtone 9.126.5 → 9.126.6
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/tokens/doc.json +32215 -32215
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +3 -3
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +34 -38
- package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +2 -2
- 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 +18 -22
- package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NodeViewWrapper as _, nodeViewProps as y, VueRenderer as w, VueNodeViewRenderer as
|
|
1
|
+
import { NodeViewWrapper as _, nodeViewProps as y, VueRenderer as w, VueNodeViewRenderer as x, EditorContent as H, BubbleMenu as j, Editor as F } from "../../node_modules/@tiptap/vue-2.js";
|
|
2
2
|
import { Node as N, mergeAttributes as m, InputRule as q, nodePasteRule as E, getMarksBetween as U, combineTransactionSteps as K, getChangedRanges as W, findChildrenInRange as V, Mark as z, nodeInputRule as X, Extension as J } from "@tiptap/core";
|
|
3
3
|
import Y from "@tiptap/extension-blockquote";
|
|
4
4
|
import G from "@tiptap/extension-code-block";
|
|
@@ -26,12 +26,12 @@ import _e from "@tiptap/suggestion";
|
|
|
26
26
|
import { emojiPattern as B } from "regex-combined-emojis";
|
|
27
27
|
import { n as c } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
|
|
28
28
|
import P from "../emoji/emoji.js";
|
|
29
|
-
import { stringToUnicode as ye, codeToEmojiData as L, emojiRegex as we, emojiShortCodeRegex as
|
|
30
|
-
import { emojisIndexed as
|
|
29
|
+
import { stringToUnicode as ye, codeToEmojiData as L, emojiRegex as we, emojiShortCodeRegex as xe } from "../../common/emoji/index.js";
|
|
30
|
+
import { emojisIndexed as ve } from "@dialpad/dialtone-emojis";
|
|
31
31
|
import be from "../list-item/list-item.js";
|
|
32
|
-
import
|
|
32
|
+
import v from "../stack/stack.js";
|
|
33
33
|
import b from "tippy.js";
|
|
34
|
-
import { linkRegex as
|
|
34
|
+
import { linkRegex as ke, getPhoneNumberRegex as Ce, warnIfUnmounted as Te } from "../../common/utils/index.js";
|
|
35
35
|
import Ee from "@tiptap/extension-image";
|
|
36
36
|
import R from "@tiptap/extension-mention";
|
|
37
37
|
import M from "../link/link.js";
|
|
@@ -148,11 +148,11 @@ var Ne = function() {
|
|
|
148
148
|
Ne,
|
|
149
149
|
qe
|
|
150
150
|
);
|
|
151
|
-
const
|
|
151
|
+
const k = Ue.exports, Ke = {
|
|
152
152
|
name: "EmojiSuggestion",
|
|
153
153
|
components: {
|
|
154
154
|
DtEmoji: P,
|
|
155
|
-
DtStack:
|
|
155
|
+
DtStack: v
|
|
156
156
|
},
|
|
157
157
|
props: {
|
|
158
158
|
item: {
|
|
@@ -169,7 +169,7 @@ var We = function() {
|
|
|
169
169
|
We,
|
|
170
170
|
Ve
|
|
171
171
|
);
|
|
172
|
-
const Xe = ze.exports,
|
|
172
|
+
const Xe = ze.exports, C = {
|
|
173
173
|
name: "hideOnEsc",
|
|
174
174
|
defaultValue: !0,
|
|
175
175
|
fn({ hide: e }) {
|
|
@@ -189,7 +189,7 @@ const Xe = ze.exports, k = {
|
|
|
189
189
|
items: ({ query: e }) => {
|
|
190
190
|
if (e.length < 2)
|
|
191
191
|
return [];
|
|
192
|
-
const t = Object.values(
|
|
192
|
+
const t = Object.values(ve);
|
|
193
193
|
return e = e.toLowerCase(), t.filter(
|
|
194
194
|
(r) => [
|
|
195
195
|
r.name,
|
|
@@ -212,7 +212,7 @@ const Xe = ze.exports, k = {
|
|
|
212
212
|
let e, t, n = !1;
|
|
213
213
|
return {
|
|
214
214
|
onStart: (r) => {
|
|
215
|
-
e = new w(
|
|
215
|
+
e = new w(k, {
|
|
216
216
|
parent: void 0,
|
|
217
217
|
propsData: {
|
|
218
218
|
itemComponent: Xe,
|
|
@@ -235,7 +235,7 @@ const Xe = ze.exports, k = {
|
|
|
235
235
|
trigger: "manual",
|
|
236
236
|
placement: "top-start",
|
|
237
237
|
zIndex: 650,
|
|
238
|
-
plugins: [
|
|
238
|
+
plugins: [C]
|
|
239
239
|
}), r.items.length > 0 && (t == null || t[0].show()));
|
|
240
240
|
},
|
|
241
241
|
onUpdate(r) {
|
|
@@ -256,7 +256,7 @@ const Xe = ze.exports, k = {
|
|
|
256
256
|
}, Ge = /(:\w+:)$/, Qe = new RegExp(B + "$"), Ze = (e) => {
|
|
257
257
|
if (e && L(e[0]))
|
|
258
258
|
return { text: e[2] || e[0] };
|
|
259
|
-
}, et = (e) => [...e.matchAll(
|
|
259
|
+
}, et = (e) => [...e.matchAll(xe)].filter((n) => L(n[0])).map((n) => ({
|
|
260
260
|
index: n.index,
|
|
261
261
|
text: n[0],
|
|
262
262
|
match: n
|
|
@@ -272,7 +272,7 @@ const Xe = ze.exports, k = {
|
|
|
272
272
|
selectable: !1,
|
|
273
273
|
atom: !0,
|
|
274
274
|
addNodeView() {
|
|
275
|
-
return
|
|
275
|
+
return x(je);
|
|
276
276
|
},
|
|
277
277
|
addAttributes() {
|
|
278
278
|
return {
|
|
@@ -404,7 +404,7 @@ function ot(e, t, n, r) {
|
|
|
404
404
|
for (const a of i)
|
|
405
405
|
a.mark.type === r && n.removeMark(a.from, a.to, r);
|
|
406
406
|
}
|
|
407
|
-
const I =
|
|
407
|
+
const I = Ce(1, 15);
|
|
408
408
|
function A(e, t, n, r, s, o) {
|
|
409
409
|
if (!e)
|
|
410
410
|
return;
|
|
@@ -421,7 +421,7 @@ function A(e, t, n, r, s, o) {
|
|
|
421
421
|
"right",
|
|
422
422
|
I
|
|
423
423
|
), u = e.slice(l.from, d.to);
|
|
424
|
-
nt(u,
|
|
424
|
+
nt(u, ke, rt).forEach((T) => {
|
|
425
425
|
const h = st(T[0]), g = t + l.from + T.index + 1, D = g + h.length;
|
|
426
426
|
s.addMark(g, D, o.create());
|
|
427
427
|
});
|
|
@@ -536,7 +536,7 @@ var ht = function() {
|
|
|
536
536
|
);
|
|
537
537
|
const gt = pt.exports, _t = R.extend({
|
|
538
538
|
addNodeView() {
|
|
539
|
-
return
|
|
539
|
+
return x(gt);
|
|
540
540
|
},
|
|
541
541
|
parseHTML() {
|
|
542
542
|
return [
|
|
@@ -585,15 +585,15 @@ const gt = pt.exports, _t = R.extend({
|
|
|
585
585
|
var wt = function() {
|
|
586
586
|
var t = this, n = t._self._c;
|
|
587
587
|
return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [n("dt-link", { attrs: { kind: "mention" } }, [t._v(" " + t._s(t.text) + " ")])], 1);
|
|
588
|
-
},
|
|
588
|
+
}, xt = [], vt = /* @__PURE__ */ c(
|
|
589
589
|
yt,
|
|
590
590
|
wt,
|
|
591
|
-
|
|
591
|
+
xt
|
|
592
592
|
);
|
|
593
|
-
const bt =
|
|
593
|
+
const bt = vt.exports, kt = R.extend({
|
|
594
594
|
name: "channel",
|
|
595
595
|
addNodeView() {
|
|
596
|
-
return
|
|
596
|
+
return x(bt);
|
|
597
597
|
},
|
|
598
598
|
parseHTML() {
|
|
599
599
|
return [
|
|
@@ -626,7 +626,7 @@ const bt = xt.exports, Ct = R.extend({
|
|
|
626
626
|
char: "#",
|
|
627
627
|
pluginKey: new f("channelSuggestion")
|
|
628
628
|
}
|
|
629
|
-
}),
|
|
629
|
+
}), Ct = {
|
|
630
630
|
name: "SlashCommandsComponent",
|
|
631
631
|
components: {
|
|
632
632
|
NodeViewWrapper: _
|
|
@@ -652,7 +652,7 @@ var Tt = function() {
|
|
|
652
652
|
var t = this, n = t._self._c;
|
|
653
653
|
return n("node-view-wrapper", { staticClass: "d-d-inline-block" }, [t._v(" " + t._s(t.text) + " ")]);
|
|
654
654
|
}, Et = [], St = /* @__PURE__ */ c(
|
|
655
|
-
|
|
655
|
+
Ct,
|
|
656
656
|
Tt,
|
|
657
657
|
Et
|
|
658
658
|
);
|
|
@@ -680,7 +680,7 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
|
|
|
680
680
|
};
|
|
681
681
|
},
|
|
682
682
|
addNodeView() {
|
|
683
|
-
return
|
|
683
|
+
return x(Lt);
|
|
684
684
|
},
|
|
685
685
|
parseHTML() {
|
|
686
686
|
return [
|
|
@@ -743,7 +743,7 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
|
|
|
743
743
|
name: "MentionSuggestion",
|
|
744
744
|
components: {
|
|
745
745
|
DtAvatar: Re,
|
|
746
|
-
DtStack:
|
|
746
|
+
DtStack: v
|
|
747
747
|
},
|
|
748
748
|
props: {
|
|
749
749
|
item: {
|
|
@@ -797,7 +797,7 @@ const Pt = Bt.exports, Mt = {
|
|
|
797
797
|
let e, t, n = !1;
|
|
798
798
|
return {
|
|
799
799
|
onStart: (r) => {
|
|
800
|
-
e = new w(
|
|
800
|
+
e = new w(k, {
|
|
801
801
|
parent: void 0,
|
|
802
802
|
propsData: {
|
|
803
803
|
itemComponent: Pt,
|
|
@@ -820,7 +820,7 @@ const Pt = Bt.exports, Mt = {
|
|
|
820
820
|
trigger: "manual",
|
|
821
821
|
placement: "top-start",
|
|
822
822
|
zIndex: 650,
|
|
823
|
-
plugins: [
|
|
823
|
+
plugins: [C]
|
|
824
824
|
}), r.items.length > 0 && (t == null || t[0].show()));
|
|
825
825
|
},
|
|
826
826
|
onUpdate(r) {
|
|
@@ -841,7 +841,7 @@ const Pt = Bt.exports, Mt = {
|
|
|
841
841
|
}, Dt = {
|
|
842
842
|
name: "ChannelSuggestion",
|
|
843
843
|
components: {
|
|
844
|
-
DtStack:
|
|
844
|
+
DtStack: v,
|
|
845
845
|
DtIconHash: $e,
|
|
846
846
|
DtIconLock: Ie
|
|
847
847
|
},
|
|
@@ -874,7 +874,7 @@ const Nt = Ft.exports, qt = {
|
|
|
874
874
|
let e, t, n = !1;
|
|
875
875
|
return {
|
|
876
876
|
onStart: (r) => {
|
|
877
|
-
e = new w(
|
|
877
|
+
e = new w(k, {
|
|
878
878
|
parent: void 0,
|
|
879
879
|
propsData: {
|
|
880
880
|
itemComponent: Nt,
|
|
@@ -897,7 +897,7 @@ const Nt = Ft.exports, qt = {
|
|
|
897
897
|
trigger: "manual",
|
|
898
898
|
placement: "top-start",
|
|
899
899
|
zIndex: 650,
|
|
900
|
-
plugins: [
|
|
900
|
+
plugins: [C]
|
|
901
901
|
}), r.items.length > 0 && (t == null || t[0].show()));
|
|
902
902
|
},
|
|
903
903
|
onUpdate(r) {
|
|
@@ -953,7 +953,7 @@ const zt = Vt.exports, Xt = {
|
|
|
953
953
|
let e, t, n = !1;
|
|
954
954
|
return {
|
|
955
955
|
onStart: (r) => {
|
|
956
|
-
e = new w(
|
|
956
|
+
e = new w(k, {
|
|
957
957
|
parent: void 0,
|
|
958
958
|
propsData: {
|
|
959
959
|
itemComponent: zt,
|
|
@@ -976,7 +976,7 @@ const zt = Vt.exports, Xt = {
|
|
|
976
976
|
trigger: "manual",
|
|
977
977
|
placement: "top-start",
|
|
978
978
|
zIndex: 650,
|
|
979
|
-
plugins: [
|
|
979
|
+
plugins: [C]
|
|
980
980
|
}), r.items.length > 0 && (t == null || t[0].show()));
|
|
981
981
|
},
|
|
982
982
|
onUpdate(r) {
|
|
@@ -1000,7 +1000,7 @@ const zt = Vt.exports, Xt = {
|
|
|
1000
1000
|
EditorContent: H,
|
|
1001
1001
|
BubbleMenu: j,
|
|
1002
1002
|
DtButton: Oe,
|
|
1003
|
-
DtStack:
|
|
1003
|
+
DtStack: v
|
|
1004
1004
|
},
|
|
1005
1005
|
mixins: [Be],
|
|
1006
1006
|
props: {
|
|
@@ -1400,7 +1400,7 @@ const zt = Vt.exports, Xt = {
|
|
|
1400
1400
|
}
|
|
1401
1401
|
if (this.channelSuggestion) {
|
|
1402
1402
|
const r = { ...this.channelSuggestion, ...qt };
|
|
1403
|
-
e.push(
|
|
1403
|
+
e.push(kt.configure({ suggestion: r }));
|
|
1404
1404
|
}
|
|
1405
1405
|
if (this.slashCommandSuggestion) {
|
|
1406
1406
|
const r = { ...this.slashCommandSuggestion, ...Xt };
|
|
@@ -1480,6 +1480,7 @@ ${r.textContent}
|
|
|
1480
1480
|
...this.inputAttrs,
|
|
1481
1481
|
class: this.inputClass
|
|
1482
1482
|
},
|
|
1483
|
+
handleKeyDown: (e, t) => !!(this.preventTyping && t.key !== "Backspace"),
|
|
1483
1484
|
handlePaste: (e, t, n) => {
|
|
1484
1485
|
const r = t.clipboardData || window.clipboardData, s = r.getData("text/plain"), o = r.getData("text/html");
|
|
1485
1486
|
return this.processPasteData(e, s, o);
|
|
@@ -1630,11 +1631,6 @@ ${r.textContent}
|
|
|
1630
1631
|
this.editor.on("create", () => {
|
|
1631
1632
|
this.triggerInputChangeEvents();
|
|
1632
1633
|
}), this.editor.on("update", () => {
|
|
1633
|
-
var e, t;
|
|
1634
|
-
if (this.preventTyping && ((t = (e = this.editor.view) == null ? void 0 : e.input) == null ? void 0 : t.lastKeyCode) !== 8) {
|
|
1635
|
-
this.editor.commands.setContent(this.value, !1);
|
|
1636
|
-
return;
|
|
1637
|
-
}
|
|
1638
1634
|
this.triggerInputChangeEvents();
|
|
1639
1635
|
}), this.editor.on("selectionUpdate", ({ editor: e }) => {
|
|
1640
1636
|
this.$emit("selected", this.getSelectedLinkText(e));
|