@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
|
@@ -24,7 +24,7 @@ import ve from "@tiptap/extension-font-family";
|
|
|
24
24
|
import { PluginKey as T, Plugin as Re } from "@tiptap/pm/state";
|
|
25
25
|
import $e from "@tiptap/suggestion";
|
|
26
26
|
import { emojiPattern as W } from "regex-combined-emojis";
|
|
27
|
-
import { resolveComponent as d, openBlock as l, createBlock as m, withCtx as u, createVNode as f, createElementBlock as _, withDirectives as Me, createElementVNode as w, Fragment as Oe, renderList as Ie, normalizeClass as z, withModifiers as
|
|
27
|
+
import { resolveComponent as d, openBlock as l, createBlock as m, withCtx as u, createVNode as f, createElementBlock as _, withDirectives as Me, createElementVNode as w, Fragment as Oe, renderList as Ie, normalizeClass as z, withModifiers as Be, resolveDynamicComponent as Pe, vShow as Ae, createTextVNode as k, toDisplayString as p, markRaw as M, createCommentVNode as x, mergeProps as De } from "vue";
|
|
28
28
|
import { _ as g } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
29
29
|
import X from "../emoji/emoji.js";
|
|
30
30
|
import { stringToUnicode as je, codeToEmojiData as H, emojiRegex as He, emojiShortCodeRegex as Ne } from "../../common/emoji/index.js";
|
|
@@ -152,10 +152,10 @@ function st(e, t, o, n, r, i) {
|
|
|
152
152
|
]),
|
|
153
153
|
"navigation-type": "arrow-keys",
|
|
154
154
|
onClick: (h) => i.selectItem(c),
|
|
155
|
-
onKeydown:
|
|
155
|
+
onKeydown: Be(i.onKeyDown, ["prevent"])
|
|
156
156
|
}, {
|
|
157
157
|
default: u(() => [
|
|
158
|
-
(l(), m(
|
|
158
|
+
(l(), m(Pe(o.itemComponent), { item: a }, null, 8, ["item"]))
|
|
159
159
|
]),
|
|
160
160
|
_: 2
|
|
161
161
|
}, 1032, ["class", "onClick", "onKeydown"]))), 128))
|
|
@@ -164,7 +164,7 @@ function st(e, t, o, n, r, i) {
|
|
|
164
164
|
])
|
|
165
165
|
]);
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const B = /* @__PURE__ */ g(ot, [["render", st]]), at = {
|
|
168
168
|
compatConfig: { MODE: 3 },
|
|
169
169
|
name: "EmojiSuggestion",
|
|
170
170
|
components: {
|
|
@@ -194,7 +194,7 @@ function lt(e, t, o, n, r, i) {
|
|
|
194
194
|
_: 1
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
const ct = /* @__PURE__ */ g(at, [["render", lt]]),
|
|
197
|
+
const ct = /* @__PURE__ */ g(at, [["render", lt]]), P = {
|
|
198
198
|
name: "hideOnEsc",
|
|
199
199
|
defaultValue: !0,
|
|
200
200
|
fn({ hide: e }) {
|
|
@@ -237,7 +237,7 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
237
237
|
let e, t, o = !1;
|
|
238
238
|
return {
|
|
239
239
|
onStart: (n) => {
|
|
240
|
-
e = new R(
|
|
240
|
+
e = new R(B, {
|
|
241
241
|
props: {
|
|
242
242
|
itemComponent: M(ct),
|
|
243
243
|
itemType: "emoji",
|
|
@@ -259,7 +259,7 @@ const ct = /* @__PURE__ */ g(at, [["render", lt]]), B = {
|
|
|
259
259
|
trigger: "manual",
|
|
260
260
|
placement: "top-start",
|
|
261
261
|
zIndex: 650,
|
|
262
|
-
plugins: [
|
|
262
|
+
plugins: [P]
|
|
263
263
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
264
264
|
},
|
|
265
265
|
onUpdate(n) {
|
|
@@ -628,7 +628,7 @@ function Ot(e, t, o, n, r, i) {
|
|
|
628
628
|
_: 1
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
const It = /* @__PURE__ */ g(Mt, [["render", Ot]]),
|
|
631
|
+
const It = /* @__PURE__ */ g(Mt, [["render", Ot]]), Bt = N.extend({
|
|
632
632
|
name: "channel",
|
|
633
633
|
addNodeView() {
|
|
634
634
|
return $(It);
|
|
@@ -664,7 +664,7 @@ const It = /* @__PURE__ */ g(Mt, [["render", Ot]]), Pt = N.extend({
|
|
|
664
664
|
char: "#",
|
|
665
665
|
pluginKey: new T("channelSuggestion")
|
|
666
666
|
}
|
|
667
|
-
}),
|
|
667
|
+
}), Pt = {
|
|
668
668
|
compatConfig: { MODE: 3 },
|
|
669
669
|
name: "SlashCommandsComponent",
|
|
670
670
|
components: {
|
|
@@ -696,7 +696,7 @@ function At(e, t, o, n, r, i) {
|
|
|
696
696
|
_: 1
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
|
-
const Dt = /* @__PURE__ */ g(
|
|
699
|
+
const Dt = /* @__PURE__ */ g(Pt, [["render", At]]), jt = (e, t) => [...e.matchAll(t)].map((n) => {
|
|
700
700
|
let r = n[2];
|
|
701
701
|
return r.endsWith(" ") || (r += " "), {
|
|
702
702
|
index: n.index,
|
|
@@ -881,7 +881,7 @@ const Ut = /* @__PURE__ */ g(Nt, [["render", Kt]]), Wt = {
|
|
|
881
881
|
let e, t, o = !1;
|
|
882
882
|
return {
|
|
883
883
|
onStart: (n) => {
|
|
884
|
-
e = new R(
|
|
884
|
+
e = new R(B, {
|
|
885
885
|
props: {
|
|
886
886
|
itemComponent: M(Ut),
|
|
887
887
|
itemType: "mention",
|
|
@@ -903,7 +903,7 @@ const Ut = /* @__PURE__ */ g(Nt, [["render", Kt]]), Wt = {
|
|
|
903
903
|
trigger: "manual",
|
|
904
904
|
placement: "top-start",
|
|
905
905
|
zIndex: 650,
|
|
906
|
-
plugins: [
|
|
906
|
+
plugins: [P]
|
|
907
907
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
908
908
|
},
|
|
909
909
|
onUpdate(n) {
|
|
@@ -969,7 +969,7 @@ const Jt = /* @__PURE__ */ g(zt, [["render", Xt]]), Yt = {
|
|
|
969
969
|
let e, t, o = !1;
|
|
970
970
|
return {
|
|
971
971
|
onStart: (n) => {
|
|
972
|
-
e = new R(
|
|
972
|
+
e = new R(B, {
|
|
973
973
|
props: {
|
|
974
974
|
itemComponent: M(Jt),
|
|
975
975
|
itemType: "channel",
|
|
@@ -991,7 +991,7 @@ const Jt = /* @__PURE__ */ g(zt, [["render", Xt]]), Yt = {
|
|
|
991
991
|
trigger: "manual",
|
|
992
992
|
placement: "top-start",
|
|
993
993
|
zIndex: 650,
|
|
994
|
-
plugins: [
|
|
994
|
+
plugins: [P]
|
|
995
995
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
996
996
|
},
|
|
997
997
|
onUpdate(n) {
|
|
@@ -1049,7 +1049,7 @@ const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
|
1049
1049
|
let e, t, o = !1;
|
|
1050
1050
|
return {
|
|
1051
1051
|
onStart: (n) => {
|
|
1052
|
-
e = new R(
|
|
1052
|
+
e = new R(B, {
|
|
1053
1053
|
parent: void 0,
|
|
1054
1054
|
props: {
|
|
1055
1055
|
itemComponent: M(nn),
|
|
@@ -1072,7 +1072,7 @@ const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
|
1072
1072
|
trigger: "manual",
|
|
1073
1073
|
placement: "top-start",
|
|
1074
1074
|
zIndex: 650,
|
|
1075
|
-
plugins: [
|
|
1075
|
+
plugins: [P]
|
|
1076
1076
|
}), n.items.length > 0 && (t == null || t[0].show()));
|
|
1077
1077
|
},
|
|
1078
1078
|
onUpdate(n) {
|
|
@@ -1496,7 +1496,7 @@ const nn = /* @__PURE__ */ g(Gt, [["render", tn]]), on = {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
if (this.channelSuggestion) {
|
|
1498
1498
|
const n = { ...this.channelSuggestion, ...Yt };
|
|
1499
|
-
e.push(
|
|
1499
|
+
e.push(Bt.configure({ suggestion: n }));
|
|
1500
1500
|
}
|
|
1501
1501
|
if (this.slashCommandSuggestion) {
|
|
1502
1502
|
const n = { ...this.slashCommandSuggestion, ...on };
|
|
@@ -1576,6 +1576,7 @@ ${n.textContent}
|
|
|
1576
1576
|
...this.inputAttrs,
|
|
1577
1577
|
class: this.inputClass
|
|
1578
1578
|
},
|
|
1579
|
+
handleKeyDown: (e, t) => !!(this.preventTyping && t.key !== "Backspace"),
|
|
1579
1580
|
handlePaste: (e, t, o) => {
|
|
1580
1581
|
const n = t.clipboardData || window.clipboardData, r = n.getData("text/plain"), i = n.getData("text/html");
|
|
1581
1582
|
return this.processPasteData(e, r, i);
|
|
@@ -1726,11 +1727,6 @@ ${n.textContent}
|
|
|
1726
1727
|
this.editor.on("create", () => {
|
|
1727
1728
|
this.triggerInputChangeEvents();
|
|
1728
1729
|
}), this.editor.on("update", () => {
|
|
1729
|
-
var e, t;
|
|
1730
|
-
if (this.preventTyping && ((t = (e = this.editor.view) == null ? void 0 : e.input) == null ? void 0 : t.lastKeyCode) !== 8) {
|
|
1731
|
-
this.editor.commands.setContent(this.modelValue, !1);
|
|
1732
|
-
return;
|
|
1733
|
-
}
|
|
1734
1730
|
this.triggerInputChangeEvents();
|
|
1735
1731
|
}), this.editor.on("selectionUpdate", ({ editor: e }) => {
|
|
1736
1732
|
this.$emit("selected", this.getSelectedLinkText(e));
|