@dialpad/dialtone-vue 2.193.5 → 2.194.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/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +7 -7
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js +5 -5
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
- package/dist/lib/datepicker/datepicker.cjs +1 -1
- package/dist/lib/datepicker/datepicker.cjs.map +1 -1
- package/dist/lib/datepicker/datepicker.js +10 -10
- package/dist/lib/datepicker/datepicker.js.map +1 -1
- package/dist/lib/dropdown/dropdown.cjs +1 -1
- package/dist/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown.js +24 -26
- package/dist/lib/dropdown/dropdown.js.map +1 -1
- package/dist/lib/emoji-picker/emoji-picker.cjs.map +1 -1
- package/dist/lib/emoji-picker/emoji-picker.js +1 -0
- package/dist/lib/emoji-picker/emoji-picker.js.map +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +2 -2
- package/dist/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +33 -29
- package/dist/lib/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/lib/toast/toast.cjs.map +1 -1
- package/dist/lib/toast/toast.js.map +1 -1
- package/dist/localization/de-DE.cjs +1 -13
- package/dist/localization/de-DE.cjs.map +1 -1
- package/dist/localization/de-DE.js +1 -13
- package/dist/localization/de-DE.js.map +1 -1
- package/dist/localization/es-LA.cjs +1 -13
- package/dist/localization/es-LA.cjs.map +1 -1
- package/dist/localization/es-LA.js +1 -13
- package/dist/localization/es-LA.js.map +1 -1
- package/dist/localization/fr-FR.cjs +1 -13
- package/dist/localization/fr-FR.cjs.map +1 -1
- package/dist/localization/fr-FR.js +1 -13
- package/dist/localization/fr-FR.js.map +1 -1
- package/dist/localization/it-IT.cjs +1 -13
- package/dist/localization/it-IT.cjs.map +1 -1
- package/dist/localization/it-IT.js +1 -13
- package/dist/localization/it-IT.js.map +1 -1
- package/dist/localization/ja-JP.cjs +1 -8
- package/dist/localization/ja-JP.cjs.map +1 -1
- package/dist/localization/ja-JP.js +1 -8
- package/dist/localization/ja-JP.js.map +1 -1
- package/dist/localization/nl-NL.cjs +1 -13
- package/dist/localization/nl-NL.cjs.map +1 -1
- package/dist/localization/nl-NL.js +1 -13
- package/dist/localization/nl-NL.js.map +1 -1
- package/dist/localization/pt-BR.cjs +1 -13
- package/dist/localization/pt-BR.cjs.map +1 -1
- package/dist/localization/pt-BR.js +1 -13
- package/dist/localization/pt-BR.js.map +1 -1
- package/dist/localization/ru-RU.cjs +1 -23
- package/dist/localization/ru-RU.cjs.map +1 -1
- package/dist/localization/ru-RU.js +1 -23
- package/dist/localization/ru-RU.js.map +1 -1
- package/dist/localization/zh-CN.cjs +1 -8
- package/dist/localization/zh-CN.cjs.map +1 -1
- package/dist/localization/zh-CN.js +1 -8
- package/dist/localization/zh-CN.js.map +1 -1
- package/dist/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
- package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +1 -1
- package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +1 -1
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/package.json +4 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
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
|
-
import { Node as N, mergeAttributes as m, InputRule as
|
|
2
|
+
import { Node as N, mergeAttributes as m, InputRule as K, nodePasteRule as E, getMarksBetween as q, combineTransactionSteps as U, 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";
|
|
5
5
|
import Q from "@tiptap/extension-code";
|
|
6
6
|
import Z from "@tiptap/extension-document";
|
|
7
|
-
import
|
|
7
|
+
import B from "@tiptap/extension-paragraph";
|
|
8
8
|
import ee from "@tiptap/extension-placeholder";
|
|
9
9
|
import te from "@tiptap/extension-hard-break";
|
|
10
10
|
import ne from "@tiptap/extension-bold";
|
|
@@ -23,7 +23,7 @@ import fe from "@tiptap/extension-color";
|
|
|
23
23
|
import pe from "@tiptap/extension-font-family";
|
|
24
24
|
import { PluginKey as f, Plugin as ge } from "@tiptap/pm/state";
|
|
25
25
|
import _e from "@tiptap/suggestion";
|
|
26
|
-
import { emojiPattern as
|
|
26
|
+
import { emojiPattern as O } 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
29
|
import { stringToUnicode as ye, codeToEmojiData as L, emojiRegex as we, emojiShortCodeRegex as xe } from "../../common/emoji/index.js";
|
|
@@ -40,8 +40,8 @@ import Re from "../avatar/avatar.js";
|
|
|
40
40
|
import $e from "@dialpad/dialtone-icons/vue2/hash";
|
|
41
41
|
import Ie from "@dialpad/dialtone-icons/vue2/lock";
|
|
42
42
|
import Ae from "deep-equal";
|
|
43
|
-
import
|
|
44
|
-
import
|
|
43
|
+
import Be from "../button/button.js";
|
|
44
|
+
import Oe from "../../common/mixins/localization.js";
|
|
45
45
|
const Pe = {
|
|
46
46
|
name: "EmojiComponent",
|
|
47
47
|
components: {
|
|
@@ -143,12 +143,12 @@ var Ne = function() {
|
|
|
143
143
|
return o.preventDefault(), t.onKeyDown.apply(null, arguments);
|
|
144
144
|
} } }, [n(t.itemComponent, { tag: "component", attrs: { item: r } })], 1);
|
|
145
145
|
}), 1)]);
|
|
146
|
-
},
|
|
146
|
+
}, Ke = [], qe = /* @__PURE__ */ c(
|
|
147
147
|
Fe,
|
|
148
148
|
Ne,
|
|
149
|
-
|
|
149
|
+
Ke
|
|
150
150
|
);
|
|
151
|
-
const k =
|
|
151
|
+
const k = qe.exports, Ue = {
|
|
152
152
|
name: "EmojiSuggestion",
|
|
153
153
|
components: {
|
|
154
154
|
DtEmoji: P,
|
|
@@ -165,7 +165,7 @@ var We = function() {
|
|
|
165
165
|
var t = this, n = t._self._c;
|
|
166
166
|
return n("dt-stack", { attrs: { direction: "row", gap: "400" } }, [n("dt-emoji", { attrs: { size: "200", code: t.item.code } }), t._v(" " + t._s(t.item.code) + " ")], 1);
|
|
167
167
|
}, Ve = [], ze = /* @__PURE__ */ c(
|
|
168
|
-
|
|
168
|
+
Ue,
|
|
169
169
|
We,
|
|
170
170
|
Ve
|
|
171
171
|
);
|
|
@@ -253,7 +253,7 @@ const Xe = ze.exports, C = {
|
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
}, Ge = /(:\w+:)$/, Qe = new RegExp(
|
|
256
|
+
}, Ge = /(:\w+:)$/, Qe = new RegExp(O + "$"), Ze = (e) => {
|
|
257
257
|
if (e && L(e[0]))
|
|
258
258
|
return { text: e[2] || e[0] };
|
|
259
259
|
}, et = (e) => [...e.matchAll(xe)].filter((n) => L(n[0])).map((n) => ({
|
|
@@ -296,7 +296,7 @@ const Xe = ze.exports, C = {
|
|
|
296
296
|
},
|
|
297
297
|
addInputRules() {
|
|
298
298
|
return [
|
|
299
|
-
new
|
|
299
|
+
new K({
|
|
300
300
|
find: (e) => {
|
|
301
301
|
const t = e.match(Ge) || e.match(Qe);
|
|
302
302
|
if (t)
|
|
@@ -400,7 +400,7 @@ function S(e, t, n, r) {
|
|
|
400
400
|
return o <= 0 || o >= e.length || o === t ? s : S(e, o, n, r);
|
|
401
401
|
}
|
|
402
402
|
function ot(e, t, n, r) {
|
|
403
|
-
const s = Math.max(e.from - 1, 0), o = Math.min(e.to + 1, t.content.size), i =
|
|
403
|
+
const s = Math.max(e.from - 1, 0), o = Math.min(e.to + 1, t.content.size), i = q(s, o, t);
|
|
404
404
|
for (const a of i)
|
|
405
405
|
a.mark.type === r && n.removeMark(a.from, a.to, r);
|
|
406
406
|
}
|
|
@@ -436,7 +436,7 @@ function at(e) {
|
|
|
436
436
|
return;
|
|
437
437
|
const { tr: i } = s, { textContent: a } = s.doc;
|
|
438
438
|
t || A(a, 0, 0, a.length, i, e.type), t = !0;
|
|
439
|
-
const l =
|
|
439
|
+
const l = U(
|
|
440
440
|
r.doc,
|
|
441
441
|
[...n]
|
|
442
442
|
);
|
|
@@ -506,7 +506,7 @@ const lt = {
|
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
}).configure({ inline: !0, allowBase64: !0 }), ut =
|
|
509
|
+
}).configure({ inline: !0, allowBase64: !0 }), ut = B.extend({
|
|
510
510
|
parseHTML() {
|
|
511
511
|
return [{ tag: "div" }];
|
|
512
512
|
},
|
|
@@ -783,12 +783,12 @@ const Lt = St.exports, Rt = (e, t) => [...e.matchAll(t)].map((r) => {
|
|
|
783
783
|
var At = function() {
|
|
784
784
|
var t = this, n = t._self._c;
|
|
785
785
|
return n("dt-stack", { staticClass: "d-mention-suggestion__container", attrs: { direction: "row", gap: "400" } }, [n("dt-avatar", { attrs: { "full-name": t.name, "image-src": t.avatarSrc, "image-alt": t.name, "show-presence": t.showDetails, presence: t.presence, size: "sm" } }), n("dt-stack", { staticClass: "d-mention-suggestion__details-container", attrs: { gap: "100" } }, [n("span", { staticClass: "d-mention-suggestion__name" }, [t._v(" " + t._s(t.name) + " ")]), t.showDetails ? n("dt-stack", { staticClass: "d-label--sm-plain", attrs: { direction: "row", gap: "300" } }, [t.presenceText ? n("span", { staticClass: "d-mention-suggestion__presence", class: [t.presenceFontColorClass] }, [t._v(" " + t._s(t.presenceText) + " ")]) : t._e(), t.status && t.presenceText ? n("div", { staticClass: "d-mention-suggestion__divider" }, [t._v(" • ")]) : t._e(), t.status ? n("div", { staticClass: "d-mention-suggestion__status" }, [t._v(" " + t._s(t.status) + " ")]) : t._e()]) : t._e()], 1)], 1);
|
|
786
|
-
},
|
|
786
|
+
}, Bt = [], Ot = /* @__PURE__ */ c(
|
|
787
787
|
It,
|
|
788
788
|
At,
|
|
789
|
-
|
|
789
|
+
Bt
|
|
790
790
|
);
|
|
791
|
-
const Pt =
|
|
791
|
+
const Pt = Ot.exports, Mt = {
|
|
792
792
|
// This function comes from the user and passed to the editor directly.
|
|
793
793
|
// This will also activate the mention plugin on the editor
|
|
794
794
|
// items: ({ query }) => { return [] },
|
|
@@ -865,7 +865,7 @@ var Ht = function() {
|
|
|
865
865
|
Ht,
|
|
866
866
|
jt
|
|
867
867
|
);
|
|
868
|
-
const Nt = Ft.exports,
|
|
868
|
+
const Nt = Ft.exports, Kt = {
|
|
869
869
|
// This function comes from the user and passed to the editor directly.
|
|
870
870
|
// This will also activate the mention plugin on the editor
|
|
871
871
|
// items: ({ query }) => { return [] },
|
|
@@ -915,7 +915,7 @@ const Nt = Ft.exports, qt = {
|
|
|
915
915
|
}
|
|
916
916
|
};
|
|
917
917
|
}
|
|
918
|
-
},
|
|
918
|
+
}, qt = {
|
|
919
919
|
name: "SlashCommandSuggestion",
|
|
920
920
|
props: {
|
|
921
921
|
item: {
|
|
@@ -935,12 +935,12 @@ const Nt = Ft.exports, qt = {
|
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
|
-
var
|
|
938
|
+
var Ut = function() {
|
|
939
939
|
var t = this, n = t._self._c;
|
|
940
940
|
return n("div", [n("div", { staticClass: "d-body--md-compact" }, [n("span", [t._v("/" + t._s(t.command))]), t.parametersExample ? n("span", [t._v(" " + t._s(t.parametersExample))]) : t._e()]), n("div", { staticClass: "d-body--sm d-fc-tertiary" }, [t._v(" " + t._s(t.description) + " ")])]);
|
|
941
941
|
}, Wt = [], Vt = /* @__PURE__ */ c(
|
|
942
|
+
qt,
|
|
942
943
|
Ut,
|
|
943
|
-
Kt,
|
|
944
944
|
Wt
|
|
945
945
|
);
|
|
946
946
|
const zt = Vt.exports, Xt = {
|
|
@@ -999,10 +999,10 @@ const zt = Vt.exports, Xt = {
|
|
|
999
999
|
components: {
|
|
1000
1000
|
EditorContent: H,
|
|
1001
1001
|
BubbleMenu: j,
|
|
1002
|
-
DtButton:
|
|
1002
|
+
DtButton: Be,
|
|
1003
1003
|
DtStack: v
|
|
1004
1004
|
},
|
|
1005
|
-
mixins: [
|
|
1005
|
+
mixins: [Oe],
|
|
1006
1006
|
props: {
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Value of the input. The object format should match TipTap's JSON
|
|
@@ -1366,7 +1366,7 @@ const zt = Vt.exports, Xt = {
|
|
|
1366
1366
|
// eslint-disable-next-line complexity
|
|
1367
1367
|
extensions() {
|
|
1368
1368
|
const e = [Z, de, me, te];
|
|
1369
|
-
e.push(this.useDivTags ? ut :
|
|
1369
|
+
e.push(this.useDivTags ? ut : B), this.allowBlockquote && e.push(Y), this.allowBold && e.push(ne), this.allowBulletList && (e.push(re), e.push(oe.extend({
|
|
1370
1370
|
renderText({ node: r }) {
|
|
1371
1371
|
return r.textContent;
|
|
1372
1372
|
}
|
|
@@ -1399,7 +1399,7 @@ const zt = Vt.exports, Xt = {
|
|
|
1399
1399
|
e.push(_t.configure({ suggestion: r }));
|
|
1400
1400
|
}
|
|
1401
1401
|
if (this.channelSuggestion) {
|
|
1402
|
-
const r = { ...this.channelSuggestion, ...
|
|
1402
|
+
const r = { ...this.channelSuggestion, ...Kt };
|
|
1403
1403
|
e.push(kt.configure({ suggestion: r }));
|
|
1404
1404
|
}
|
|
1405
1405
|
if (this.slashCommandSuggestion) {
|
|
@@ -1480,7 +1480,11 @@ ${r.textContent}
|
|
|
1480
1480
|
...this.inputAttrs,
|
|
1481
1481
|
class: this.inputClass
|
|
1482
1482
|
},
|
|
1483
|
-
handleKeyDown: (e, t) =>
|
|
1483
|
+
handleKeyDown: (e, t) => {
|
|
1484
|
+
if (!this.preventTyping) return !1;
|
|
1485
|
+
const n = ["Backspace"];
|
|
1486
|
+
return !this.allowLineBreaks && !t.shiftKey && n.push("Enter"), !n.includes(t.key);
|
|
1487
|
+
},
|
|
1484
1488
|
handlePaste: (e, t, n) => {
|
|
1485
1489
|
const r = t.clipboardData || window.clipboardData, s = r.getData("text/plain"), o = r.getData("text/html");
|
|
1486
1490
|
return this.processPasteData(e, s, o);
|
|
@@ -1539,7 +1543,7 @@ ${r.textContent}
|
|
|
1539
1543
|
const n = this.getOutput();
|
|
1540
1544
|
if (!(t && Ae(e, n))) {
|
|
1541
1545
|
if (typeof e == "string" && this.outputFormat === "text") {
|
|
1542
|
-
const r = new RegExp(`(${
|
|
1546
|
+
const r = new RegExp(`(${O})`, "g");
|
|
1543
1547
|
e = e == null ? void 0 : e.replace(r, '<emoji-component code="$1"></emoji-component>');
|
|
1544
1548
|
}
|
|
1545
1549
|
this.editor.commands.setContent(e, !1, { preserveWhitespace: "full" });
|
|
@@ -1680,8 +1684,8 @@ var Yt = function() {
|
|
|
1680
1684
|
Yt,
|
|
1681
1685
|
Gt
|
|
1682
1686
|
);
|
|
1683
|
-
const
|
|
1687
|
+
const Un = Qt.exports;
|
|
1684
1688
|
export {
|
|
1685
|
-
|
|
1689
|
+
Un as default
|
|
1686
1690
|
};
|
|
1687
1691
|
//# sourceMappingURL=rich-text-editor.js.map
|