@dialpad/dialtone-vue 3.76.0 → 3.76.2
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/CHANGELOG.json +1 -1
- package/CHANGELOG.md +86 -0
- package/dist/{DtEmojiPicker-16507e3f.js → DtEmojiPicker-223fae54.js} +6399 -6378
- package/dist/DtEmojiPicker-bb3978a7.cjs +25 -0
- package/dist/dialtone-vue.cjs +6 -6
- package/dist/dialtone-vue.js +43 -39
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +22 -18
- package/dist/{emoji_text_wrapper-fae97675.cjs → emoji_text_wrapper-12f5067a.cjs} +1 -1
- package/dist/{emoji_text_wrapper-f04c64bb.js → emoji_text_wrapper-205bcb5e.js} +4 -4
- package/dist/message_input.cjs +1 -1
- package/dist/message_input.js +85 -85
- package/dist/{notice-eab06029.cjs → notice-219d286e.cjs} +1 -1
- package/dist/{notice-4b77480d.js → notice-3c67f080.js} +4 -4
- package/package.json +1 -1
- package/dist/DtEmojiPicker-becdf2a7.cjs +0 -25
package/dist/message_input.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as bi, Z as Xs, $ as Zs, _ as ki, c as Qs, Q as eo, D as to, o as no, p as ro } from "./DtEmojiPicker-223fae54.js";
|
|
2
2
|
import { defineComponent as xt, ref as Jn, onMounted as Si, onBeforeUnmount as qn, h as Pe, reactive as io, markRaw as so, getCurrentInstance as oo, watchEffect as lo, nextTick as ao, unref as co, Teleport as uo, customRef as fo, resolveComponent as ue, openBlock as Et, createBlock as xi, createElementBlock as cr, Fragment as ho, normalizeClass as en, withCtx as ie, createVNode as $, createTextVNode as po, toDisplayString as dr, createCommentVNode as ur, createElementVNode as de, mergeProps as mo, renderSlot as tn } from "vue";
|
|
3
|
-
import { f as go, c as yo, N as bo } from "./notice-
|
|
3
|
+
import { f as go, c as yo, N as bo } from "./notice-3c67f080.js";
|
|
4
4
|
function F(r) {
|
|
5
5
|
this.content = r;
|
|
6
6
|
}
|
|
@@ -3203,7 +3203,7 @@ class xe extends U {
|
|
|
3203
3203
|
return new xe(this.pos, this.mark);
|
|
3204
3204
|
}
|
|
3205
3205
|
}
|
|
3206
|
-
return new
|
|
3206
|
+
return new Ze(this.pos, this.mark);
|
|
3207
3207
|
}
|
|
3208
3208
|
map(e) {
|
|
3209
3209
|
let t = e.mapResult(this.pos, 1);
|
|
@@ -3222,7 +3222,7 @@ class xe extends U {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
}
|
|
3224
3224
|
U.jsonID("addNodeMark", xe);
|
|
3225
|
-
class
|
|
3225
|
+
class Ze extends U {
|
|
3226
3226
|
/**
|
|
3227
3227
|
Create a mark-removing step.
|
|
3228
3228
|
*/
|
|
@@ -3242,7 +3242,7 @@ class Qe extends U {
|
|
|
3242
3242
|
}
|
|
3243
3243
|
map(e) {
|
|
3244
3244
|
let t = e.mapResult(this.pos, 1);
|
|
3245
|
-
return t.deletedAfter ? null : new
|
|
3245
|
+
return t.deletedAfter ? null : new Ze(t.pos, this.mark);
|
|
3246
3246
|
}
|
|
3247
3247
|
toJSON() {
|
|
3248
3248
|
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -3253,10 +3253,10 @@ class Qe extends U {
|
|
|
3253
3253
|
static fromJSON(e, t) {
|
|
3254
3254
|
if (typeof t.pos != "number")
|
|
3255
3255
|
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
3256
|
-
return new
|
|
3256
|
+
return new Ze(t.pos, e.markFromJSON(t.mark));
|
|
3257
3257
|
}
|
|
3258
3258
|
}
|
|
3259
|
-
U.jsonID("removeNodeMark",
|
|
3259
|
+
U.jsonID("removeNodeMark", Ze);
|
|
3260
3260
|
class j extends U {
|
|
3261
3261
|
/**
|
|
3262
3262
|
The given `slice` should fit the 'gap' between `from` and
|
|
@@ -3516,7 +3516,7 @@ function Xo(r, e, t) {
|
|
|
3516
3516
|
let n = r.resolve(e), i = n.index();
|
|
3517
3517
|
return n.parent.canReplaceWith(i, i + 1, t);
|
|
3518
3518
|
}
|
|
3519
|
-
function
|
|
3519
|
+
function Zo(r, e, t, n, i) {
|
|
3520
3520
|
let s = r.doc.nodeAt(e);
|
|
3521
3521
|
if (!s)
|
|
3522
3522
|
throw new RangeError("No node at given position");
|
|
@@ -3543,7 +3543,7 @@ function _e(r, e, t = 1, n) {
|
|
|
3543
3543
|
let l = i.indexAfter(s), a = n && n[0];
|
|
3544
3544
|
return i.node(s).canReplaceWith(l, l, a ? a.type : i.node(s + 1).type);
|
|
3545
3545
|
}
|
|
3546
|
-
function
|
|
3546
|
+
function Qo(r, e, t = 1, n) {
|
|
3547
3547
|
let i = r.doc.resolve(e), s = y.empty, o = y.empty;
|
|
3548
3548
|
for (let l = i.depth, a = i.depth - t, c = t - 1; l > a; l--, c--) {
|
|
3549
3549
|
s = y.from(i.node(l).copy(s));
|
|
@@ -3934,15 +3934,15 @@ class Ge extends U {
|
|
|
3934
3934
|
}
|
|
3935
3935
|
}
|
|
3936
3936
|
U.jsonID("attr", Ge);
|
|
3937
|
-
let
|
|
3937
|
+
let Qe = class extends Error {
|
|
3938
3938
|
};
|
|
3939
|
-
|
|
3939
|
+
Qe = function r(e) {
|
|
3940
3940
|
let t = Error.call(this, e);
|
|
3941
3941
|
return t.__proto__ = r.prototype, t;
|
|
3942
3942
|
};
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3943
|
+
Qe.prototype = Object.create(Error.prototype);
|
|
3944
|
+
Qe.prototype.constructor = Qe;
|
|
3945
|
+
Qe.prototype.name = "TransformError";
|
|
3946
3946
|
class Yi {
|
|
3947
3947
|
/**
|
|
3948
3948
|
Create a transform that starts with the given document.
|
|
@@ -3963,7 +3963,7 @@ class Yi {
|
|
|
3963
3963
|
step(e) {
|
|
3964
3964
|
let t = this.maybeStep(e);
|
|
3965
3965
|
if (t.failed)
|
|
3966
|
-
throw new
|
|
3966
|
+
throw new Qe(t.failed);
|
|
3967
3967
|
return this;
|
|
3968
3968
|
}
|
|
3969
3969
|
/**
|
|
@@ -4092,7 +4092,7 @@ class Yi {
|
|
|
4092
4092
|
When `type` isn't given, the existing node type is preserved,
|
|
4093
4093
|
*/
|
|
4094
4094
|
setNodeMarkup(e, t, n = null, i) {
|
|
4095
|
-
return
|
|
4095
|
+
return Zo(this, e, t, n, i), this;
|
|
4096
4096
|
}
|
|
4097
4097
|
/**
|
|
4098
4098
|
Set a single attribute on a given node to a new value.
|
|
@@ -4118,7 +4118,7 @@ class Yi {
|
|
|
4118
4118
|
if (t = t.isInSet(n.marks), !t)
|
|
4119
4119
|
return this;
|
|
4120
4120
|
}
|
|
4121
|
-
return this.step(new
|
|
4121
|
+
return this.step(new Ze(e, t)), this;
|
|
4122
4122
|
}
|
|
4123
4123
|
/**
|
|
4124
4124
|
Split the node at the given position, and optionally, if `depth` is
|
|
@@ -4128,7 +4128,7 @@ class Yi {
|
|
|
4128
4128
|
use after the split.
|
|
4129
4129
|
*/
|
|
4130
4130
|
split(e, t = 1, n) {
|
|
4131
|
-
return
|
|
4131
|
+
return Qo(this, e, t, n), this;
|
|
4132
4132
|
}
|
|
4133
4133
|
/**
|
|
4134
4134
|
Add the given mark to the inline content between `from` and `to`.
|
|
@@ -4930,7 +4930,7 @@ class ee {
|
|
|
4930
4930
|
Create a plugin.
|
|
4931
4931
|
*/
|
|
4932
4932
|
constructor(e) {
|
|
4933
|
-
this.spec = e, this.props = {}, e.props && Xi(e.props, this, this.props), this.key = e.key ? e.key.key :
|
|
4933
|
+
this.spec = e, this.props = {}, e.props && Xi(e.props, this, this.props), this.key = e.key ? e.key.key : Zi("plugin");
|
|
4934
4934
|
}
|
|
4935
4935
|
/**
|
|
4936
4936
|
Extract the plugin's state field from an editor state.
|
|
@@ -4940,7 +4940,7 @@ class ee {
|
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
4942
|
const fn = /* @__PURE__ */ Object.create(null);
|
|
4943
|
-
function
|
|
4943
|
+
function Zi(r) {
|
|
4944
4944
|
return r in fn ? r + "$" + ++fn[r] : (fn[r] = 0, r + "$");
|
|
4945
4945
|
}
|
|
4946
4946
|
class me {
|
|
@@ -4948,7 +4948,7 @@ class me {
|
|
|
4948
4948
|
Create a plugin key.
|
|
4949
4949
|
*/
|
|
4950
4950
|
constructor(e = "key") {
|
|
4951
|
-
this.key =
|
|
4951
|
+
this.key = Zi(e);
|
|
4952
4952
|
}
|
|
4953
4953
|
/**
|
|
4954
4954
|
Get the active plugin with this key, if any, from an editor
|
|
@@ -5042,7 +5042,7 @@ function yl(r, e, t) {
|
|
|
5042
5042
|
return { node: n.startContainer, offset: n.startOffset };
|
|
5043
5043
|
}
|
|
5044
5044
|
}
|
|
5045
|
-
const ae = typeof navigator < "u" ? navigator : null, Ar = typeof document < "u" ? document : null, Ee = ae && ae.userAgent || "", Dn = /Edge\/(\d+)/.exec(Ee),
|
|
5045
|
+
const ae = typeof navigator < "u" ? navigator : null, Ar = typeof document < "u" ? document : null, Ee = ae && ae.userAgent || "", Dn = /Edge\/(\d+)/.exec(Ee), Qi = /MSIE \d/.exec(Ee), An = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ee), K = !!(Qi || An || Dn), Ce = Qi ? document.documentMode : An ? +An[1] : Dn ? +Dn[1] : 0, re = !K && /gecko\/(\d+)/i.test(Ee);
|
|
5046
5046
|
re && +(/Firefox\/(\d+)/.exec(Ee) || [0, 0])[1];
|
|
5047
5047
|
const vn = !K && /Chrome\/(\d+)/.exec(Ee), H = !!vn, bl = vn ? +vn[1] : 0, W = !K && !!ae && /Apple Computer/.test(ae.vendor), et = W && (/Mobile\/\w+/.test(Ee) || !!ae && ae.maxTouchPoints > 2), G = et || (ae ? /Mac/.test(ae.platform) : !1), kl = ae ? /Win/.test(ae.platform) : !1, te = /Android \d/.test(Ee), Kt = !!Ar && "webkitFontSmoothing" in Ar.documentElement.style, Sl = Kt ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5048
5048
|
function xl(r) {
|
|
@@ -5370,10 +5370,10 @@ let Pr = null, Rr = null, Br = !1;
|
|
|
5370
5370
|
function Bl(r, e, t) {
|
|
5371
5371
|
return Pr == e && Rr == t ? Br : (Pr = e, Rr = t, Br = t == "up" || t == "down" ? Il(r, e, t) : Rl(r, e, t));
|
|
5372
5372
|
}
|
|
5373
|
-
const
|
|
5373
|
+
const Z = 0, Fr = 1, ve = 2, ce = 3;
|
|
5374
5374
|
class Mt {
|
|
5375
5375
|
constructor(e, t, n, i) {
|
|
5376
|
-
this.parent = e, this.children = t, this.dom = n, this.contentDOM = i, this.dirty =
|
|
5376
|
+
this.parent = e, this.children = t, this.dom = n, this.contentDOM = i, this.dirty = Z, n.pmViewDesc = this;
|
|
5377
5377
|
}
|
|
5378
5378
|
// Used to check whether a given description corresponds to a
|
|
5379
5379
|
// widget/mark/node.
|
|
@@ -5721,7 +5721,7 @@ class ls extends Mt {
|
|
|
5721
5721
|
super(e, [], o, null), this.widget = t, this.widget = t, s = this;
|
|
5722
5722
|
}
|
|
5723
5723
|
matchesWidget(e) {
|
|
5724
|
-
return this.dirty ==
|
|
5724
|
+
return this.dirty == Z && e.type.eq(this.widget.type);
|
|
5725
5725
|
}
|
|
5726
5726
|
parseRule() {
|
|
5727
5727
|
return { ignore: !0 };
|
|
@@ -5775,11 +5775,11 @@ class He extends Mt {
|
|
|
5775
5775
|
return this.dirty != ce && this.mark.eq(e);
|
|
5776
5776
|
}
|
|
5777
5777
|
markDirty(e, t) {
|
|
5778
|
-
if (super.markDirty(e, t), this.dirty !=
|
|
5778
|
+
if (super.markDirty(e, t), this.dirty != Z) {
|
|
5779
5779
|
let n = this.parent;
|
|
5780
5780
|
for (; !n.node; )
|
|
5781
5781
|
n = n.parent;
|
|
5782
|
-
n.dirty < this.dirty && (n.dirty = this.dirty), this.dirty =
|
|
5782
|
+
n.dirty < this.dirty && (n.dirty = this.dirty), this.dirty = Z;
|
|
5783
5783
|
}
|
|
5784
5784
|
}
|
|
5785
5785
|
slice(e, t, n) {
|
|
@@ -5842,7 +5842,7 @@ class we extends Mt {
|
|
|
5842
5842
|
return e;
|
|
5843
5843
|
}
|
|
5844
5844
|
matchesNode(e, t, n) {
|
|
5845
|
-
return this.dirty ==
|
|
5845
|
+
return this.dirty == Z && e.eq(this.node) && Pn(t, this.outerDeco) && n.eq(this.innerDeco);
|
|
5846
5846
|
}
|
|
5847
5847
|
get size() {
|
|
5848
5848
|
return this.node.nodeSize;
|
|
@@ -5897,7 +5897,7 @@ class we extends Mt {
|
|
|
5897
5897
|
return this.dirty == ce || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, n, i), !0);
|
|
5898
5898
|
}
|
|
5899
5899
|
updateInner(e, t, n, i) {
|
|
5900
|
-
this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty =
|
|
5900
|
+
this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Z;
|
|
5901
5901
|
}
|
|
5902
5902
|
updateOuterDeco(e) {
|
|
5903
5903
|
if (Pn(e, this.outerDeco))
|
|
@@ -5933,7 +5933,7 @@ class Ut extends we {
|
|
|
5933
5933
|
return { skip: e || !0 };
|
|
5934
5934
|
}
|
|
5935
5935
|
update(e, t, n, i) {
|
|
5936
|
-
return this.dirty == ce || this.dirty !=
|
|
5936
|
+
return this.dirty == ce || this.dirty != Z && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Z || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Z, !0);
|
|
5937
5937
|
}
|
|
5938
5938
|
inParent() {
|
|
5939
5939
|
let e = this.parent.contentDOM;
|
|
@@ -5967,7 +5967,7 @@ class as extends Mt {
|
|
|
5967
5967
|
return { ignore: !0 };
|
|
5968
5968
|
}
|
|
5969
5969
|
matchesHack(e) {
|
|
5970
|
-
return this.dirty ==
|
|
5970
|
+
return this.dirty == Z && this.dom.nodeName == e;
|
|
5971
5971
|
}
|
|
5972
5972
|
get domAtom() {
|
|
5973
5973
|
return !0;
|
|
@@ -6126,7 +6126,7 @@ class Vl {
|
|
|
6126
6126
|
for (; i < o && (i == s - 1 ? this.top : this.stack[i + 1 << 1]).matchesMark(e[i]) && e[i].type.spec.spanning !== !1; )
|
|
6127
6127
|
i++;
|
|
6128
6128
|
for (; i < s; )
|
|
6129
|
-
this.destroyRest(), this.top.dirty =
|
|
6129
|
+
this.destroyRest(), this.top.dirty = Z, this.index = this.stack.pop(), this.top = this.stack.pop(), s--;
|
|
6130
6130
|
for (; s < e.length; ) {
|
|
6131
6131
|
this.stack.push(this.top, this.index + 1);
|
|
6132
6132
|
let l = -1;
|
|
@@ -6196,7 +6196,7 @@ class Vl {
|
|
|
6196
6196
|
if (!f && a.update(e, t, n, i))
|
|
6197
6197
|
return this.destroyBetween(this.index, l), a.dom != d && (this.changed = !0), this.index++, !0;
|
|
6198
6198
|
if (!f && (u = this.recreateWrapper(a, e, t, n, i, o)))
|
|
6199
|
-
return this.top.children[this.index] = u, u.dirty = ve, u.updateChildren(i, o + 1), u.dirty =
|
|
6199
|
+
return this.top.children[this.index] = u, u.dirty = ve, u.updateChildren(i, o + 1), u.dirty = Z, this.changed = !0, this.index++, !0;
|
|
6200
6200
|
break;
|
|
6201
6201
|
}
|
|
6202
6202
|
}
|
|
@@ -6683,7 +6683,7 @@ function Xl(r) {
|
|
|
6683
6683
|
let e = "";
|
|
6684
6684
|
return r.ctrlKey && (e += "c"), r.metaKey && (e += "m"), r.altKey && (e += "a"), r.shiftKey && (e += "s"), e;
|
|
6685
6685
|
}
|
|
6686
|
-
function
|
|
6686
|
+
function Zl(r, e) {
|
|
6687
6687
|
let t = e.keyCode, n = Xl(e);
|
|
6688
6688
|
if (t == 8 || G && t == 72 && n == "c")
|
|
6689
6689
|
return Ur(r, -1) || ot(r, -1);
|
|
@@ -6774,7 +6774,7 @@ function bs(r, e, t, n, i) {
|
|
|
6774
6774
|
preserveWhitespace: !!(a || d),
|
|
6775
6775
|
context: i,
|
|
6776
6776
|
ruleFromNode(f) {
|
|
6777
|
-
return f.nodeName == "BR" && !f.nextSibling && f.parentNode && !
|
|
6777
|
+
return f.nodeName == "BR" && !f.nextSibling && f.parentNode && !Ql.test(f.parentNode.nodeName) ? { ignore: !0 } : null;
|
|
6778
6778
|
}
|
|
6779
6779
|
})), d)
|
|
6780
6780
|
l = ra(Gr(l, +d[1], +d[2]), d[4]);
|
|
@@ -6790,7 +6790,7 @@ function bs(r, e, t, n, i) {
|
|
|
6790
6790
|
l = u(l, r);
|
|
6791
6791
|
}), l;
|
|
6792
6792
|
}
|
|
6793
|
-
const
|
|
6793
|
+
const Ql = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
|
|
6794
6794
|
function ea(r, e) {
|
|
6795
6795
|
if (r.childCount < 2)
|
|
6796
6796
|
return r;
|
|
@@ -6948,7 +6948,7 @@ q.keydown = (r, e) => {
|
|
|
6948
6948
|
r.input.lastIOSEnter == n && (r.someProp("handleKeyDown", (i) => i(r, De(13, "Enter"))), r.input.lastIOSEnter = 0);
|
|
6949
6949
|
}, 200);
|
|
6950
6950
|
} else
|
|
6951
|
-
r.someProp("handleKeyDown", (n) => n(r, t)) ||
|
|
6951
|
+
r.someProp("handleKeyDown", (n) => n(r, t)) || Zl(r, t) ? t.preventDefault() : Me(r, "key");
|
|
6952
6952
|
};
|
|
6953
6953
|
q.keyup = (r, e) => {
|
|
6954
6954
|
e.keyCode == 16 && (r.input.shiftKey = !1);
|
|
@@ -6974,7 +6974,7 @@ function da(r, e) {
|
|
|
6974
6974
|
let t = e.x - r.clientX, n = e.y - r.clientY;
|
|
6975
6975
|
return t * t + n * n < 100;
|
|
6976
6976
|
}
|
|
6977
|
-
function
|
|
6977
|
+
function Zn(r, e, t, n, i) {
|
|
6978
6978
|
if (n == -1)
|
|
6979
6979
|
return !1;
|
|
6980
6980
|
let s = r.state.doc.resolve(n);
|
|
@@ -7010,13 +7010,13 @@ function fa(r, e) {
|
|
|
7010
7010
|
return i != null ? (Ye(r, x.create(r.state.doc, i), "pointer"), !0) : !1;
|
|
7011
7011
|
}
|
|
7012
7012
|
function ha(r, e, t, n, i) {
|
|
7013
|
-
return
|
|
7013
|
+
return Zn(r, "handleClickOn", e, t, n) || r.someProp("handleClick", (s) => s(r, e, n)) || (i ? fa(r, t) : ua(r, t));
|
|
7014
7014
|
}
|
|
7015
7015
|
function pa(r, e, t, n) {
|
|
7016
|
-
return
|
|
7016
|
+
return Zn(r, "handleDoubleClickOn", e, t, n) || r.someProp("handleDoubleClick", (i) => i(r, e, n));
|
|
7017
7017
|
}
|
|
7018
7018
|
function ma(r, e, t, n) {
|
|
7019
|
-
return
|
|
7019
|
+
return Zn(r, "handleTripleClickOn", e, t, n) || r.someProp("handleTripleClick", (i) => i(r, e, n)) || ga(r, t, n);
|
|
7020
7020
|
}
|
|
7021
7021
|
function ga(r, e, t) {
|
|
7022
7022
|
if (t.button != 0)
|
|
@@ -7036,14 +7036,14 @@ function ga(r, e, t) {
|
|
|
7036
7036
|
return !0;
|
|
7037
7037
|
}
|
|
7038
7038
|
}
|
|
7039
|
-
function
|
|
7039
|
+
function Qn(r) {
|
|
7040
7040
|
return Lt(r);
|
|
7041
7041
|
}
|
|
7042
7042
|
const ws = G ? "metaKey" : "ctrlKey";
|
|
7043
7043
|
J.mousedown = (r, e) => {
|
|
7044
7044
|
let t = e;
|
|
7045
7045
|
r.input.shiftKey = t.shiftKey;
|
|
7046
|
-
let n =
|
|
7046
|
+
let n = Qn(r), i = Date.now(), s = "singleClick";
|
|
7047
7047
|
i - r.input.lastClick.time < 500 && da(t, r.input.lastClick) && !t[ws] && (r.input.lastClick.type == "singleClick" ? s = "doubleClick" : r.input.lastClick.type == "doubleClick" && (s = "tripleClick")), r.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s };
|
|
7048
7048
|
let o = r.posAtCoords(_t(t));
|
|
7049
7049
|
o && (s == "singleClick" ? (r.input.mouseDown && r.input.mouseDown.done(), r.input.mouseDown = new ya(r, o, t, !!n)) : (s == "doubleClick" ? pa : ma)(r, o.pos, o.inside, t) ? t.preventDefault() : Me(r, "pointer"));
|
|
@@ -7095,12 +7095,12 @@ class ya {
|
|
|
7095
7095
|
}
|
|
7096
7096
|
}
|
|
7097
7097
|
J.touchstart = (r) => {
|
|
7098
|
-
r.input.lastTouch = Date.now(),
|
|
7098
|
+
r.input.lastTouch = Date.now(), Qn(r), Me(r, "pointer");
|
|
7099
7099
|
};
|
|
7100
7100
|
J.touchmove = (r) => {
|
|
7101
7101
|
r.input.lastTouch = Date.now(), Me(r, "pointer");
|
|
7102
7102
|
};
|
|
7103
|
-
J.contextmenu = (r) =>
|
|
7103
|
+
J.contextmenu = (r) => Qn(r);
|
|
7104
7104
|
function Os(r, e) {
|
|
7105
7105
|
return r.composing ? !0 : W && Math.abs(e.timeStamp - r.input.compositionEndedAt) < 500 ? (r.input.compositionEndedAt = -2e8, !0) : !1;
|
|
7106
7106
|
}
|
|
@@ -7930,12 +7930,12 @@ class Da {
|
|
|
7930
7930
|
};
|
|
7931
7931
|
}
|
|
7932
7932
|
}
|
|
7933
|
-
let
|
|
7933
|
+
let Zr = /* @__PURE__ */ new WeakMap(), Qr = !1;
|
|
7934
7934
|
function Aa(r) {
|
|
7935
|
-
if (!
|
|
7936
|
-
if (r.requiresGeckoHackNode = re,
|
|
7935
|
+
if (!Zr.has(r) && (Zr.set(r, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace) !== -1)) {
|
|
7936
|
+
if (r.requiresGeckoHackNode = re, Qr)
|
|
7937
7937
|
return;
|
|
7938
|
-
console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),
|
|
7938
|
+
console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), Qr = !0;
|
|
7939
7939
|
}
|
|
7940
7940
|
}
|
|
7941
7941
|
function va(r) {
|
|
@@ -8632,12 +8632,12 @@ function Ya(r) {
|
|
|
8632
8632
|
};
|
|
8633
8633
|
}
|
|
8634
8634
|
const Xa = (r, e) => r.selection.empty ? !1 : (e && e(r.tr.deleteSelection().scrollIntoView()), !0);
|
|
8635
|
-
function
|
|
8635
|
+
function Za(r, e) {
|
|
8636
8636
|
let { $cursor: t } = r.selection;
|
|
8637
8637
|
return !t || (e ? !e.endOfTextblock("backward", r) : t.parentOffset > 0) ? null : t;
|
|
8638
8638
|
}
|
|
8639
|
-
const
|
|
8640
|
-
let n =
|
|
8639
|
+
const Qa = (r, e, t) => {
|
|
8640
|
+
let n = Za(r, t);
|
|
8641
8641
|
if (!n)
|
|
8642
8642
|
return !1;
|
|
8643
8643
|
let i = Is(n);
|
|
@@ -9661,13 +9661,13 @@ function Rc(r) {
|
|
|
9661
9661
|
function xn(r) {
|
|
9662
9662
|
return Rc(r) !== "Object" ? !1 : r.constructor === Object && Object.getPrototypeOf(r) === Object.prototype;
|
|
9663
9663
|
}
|
|
9664
|
-
function
|
|
9664
|
+
function Zt(r, e) {
|
|
9665
9665
|
const t = { ...r };
|
|
9666
9666
|
return xn(r) && xn(e) && Object.keys(e).forEach((n) => {
|
|
9667
|
-
xn(e[n]) ? n in r ? t[n] =
|
|
9667
|
+
xn(e[n]) ? n in r ? t[n] = Zt(r[n], e[n]) : Object.assign(t, { [n]: e[n] }) : Object.assign(t, { [n]: e[n] });
|
|
9668
9668
|
}), t;
|
|
9669
9669
|
}
|
|
9670
|
-
class
|
|
9670
|
+
class Q {
|
|
9671
9671
|
constructor(e = {}) {
|
|
9672
9672
|
this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
|
|
9673
9673
|
name: this.name,
|
|
@@ -9683,17 +9683,17 @@ class Z {
|
|
|
9683
9683
|
})) || {};
|
|
9684
9684
|
}
|
|
9685
9685
|
static create(e = {}) {
|
|
9686
|
-
return new
|
|
9686
|
+
return new Q(e);
|
|
9687
9687
|
}
|
|
9688
9688
|
configure(e = {}) {
|
|
9689
9689
|
const t = this.extend();
|
|
9690
|
-
return t.options =
|
|
9690
|
+
return t.options = Zt(this.options, e), t.storage = T(S(t, "addStorage", {
|
|
9691
9691
|
name: t.name,
|
|
9692
9692
|
options: t.options
|
|
9693
9693
|
})), t;
|
|
9694
9694
|
}
|
|
9695
9695
|
extend(e = {}) {
|
|
9696
|
-
const t = new
|
|
9696
|
+
const t = new Q(e);
|
|
9697
9697
|
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = T(S(t, "addOptions", {
|
|
9698
9698
|
name: t.name
|
|
9699
9699
|
})), t.storage = T(S(t, "addStorage", {
|
|
@@ -9722,7 +9722,7 @@ function Vs(r, e, t) {
|
|
|
9722
9722
|
function js(r) {
|
|
9723
9723
|
return Object.fromEntries(Object.entries(r.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
|
|
9724
9724
|
}
|
|
9725
|
-
const Bc =
|
|
9725
|
+
const Bc = Q.create({
|
|
9726
9726
|
name: "clipboardTextSerializer",
|
|
9727
9727
|
addProseMirrorPlugins() {
|
|
9728
9728
|
return [
|
|
@@ -9885,7 +9885,7 @@ const Yc = (r = null, e = {}) => ({ editor: t, view: n, tr: i, dispatch: s }) =>
|
|
|
9885
9885
|
return o(), !0;
|
|
9886
9886
|
const l = Hs(i.doc, r) || t.state.selection, a = t.state.selection.eq(l);
|
|
9887
9887
|
return s && (a || i.setSelection(l), a && i.storedMarks && i.setStoredMarks(i.storedMarks), o()), !0;
|
|
9888
|
-
}, Xc = (r, e) => (t) => r.every((n, i) => e(n, { ...t, index: i })),
|
|
9888
|
+
}, Xc = (r, e) => (t) => r.every((n, i) => e(n, { ...t, index: i })), Zc = (r, e) => ({ tr: t, commands: n }) => n.insertContentAt({ from: t.selection.from, to: t.selection.to }, r, e);
|
|
9889
9889
|
function ui(r) {
|
|
9890
9890
|
const e = `<body>${r}</body>`;
|
|
9891
9891
|
return new window.DOMParser().parseFromString(e, "text/html").body;
|
|
@@ -9907,7 +9907,7 @@ function Wt(r, e, t) {
|
|
|
9907
9907
|
}
|
|
9908
9908
|
return Wt("", e, t);
|
|
9909
9909
|
}
|
|
9910
|
-
function
|
|
9910
|
+
function Qc(r, e, t) {
|
|
9911
9911
|
const n = r.steps.length - 1;
|
|
9912
9912
|
if (n < e)
|
|
9913
9913
|
return;
|
|
@@ -9942,10 +9942,10 @@ const ed = (r) => r.toString().startsWith("<"), td = (r, e, t) => ({ tr: n, disp
|
|
|
9942
9942
|
const { parent: f } = n.doc.resolve(l);
|
|
9943
9943
|
f.isTextblock && !f.type.spec.code && !f.childCount && (l -= 1, a += 1);
|
|
9944
9944
|
}
|
|
9945
|
-
c ? Array.isArray(e) ? n.insertText(e.map((f) => f.text || "").join(""), l, a) : typeof e == "object" && e && e.text ? n.insertText(e.text, l, a) : n.insertText(e, l, a) : n.replaceWith(l, a, o), t.updateSelection &&
|
|
9945
|
+
c ? Array.isArray(e) ? n.insertText(e.map((f) => f.text || "").join(""), l, a) : typeof e == "object" && e && e.text ? n.insertText(e.text, l, a) : n.insertText(e, l, a) : n.replaceWith(l, a, o), t.updateSelection && Qc(n, n.steps.length - 1, -1);
|
|
9946
9946
|
}
|
|
9947
9947
|
return !0;
|
|
9948
|
-
}, nd = () => ({ state: r, dispatch: e }) => ic(r, e), rd = () => ({ state: r, dispatch: e }) => sc(r, e), id = () => ({ state: r, dispatch: e }) =>
|
|
9948
|
+
}, nd = () => ({ state: r, dispatch: e }) => ic(r, e), rd = () => ({ state: r, dispatch: e }) => sc(r, e), id = () => ({ state: r, dispatch: e }) => Qa(r, e), sd = () => ({ state: r, dispatch: e }) => nc(r, e);
|
|
9949
9949
|
function Ws() {
|
|
9950
9950
|
return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
|
|
9951
9951
|
}
|
|
@@ -10010,7 +10010,7 @@ const ad = (r, e = {}) => ({ state: t, dispatch: n }) => {
|
|
|
10010
10010
|
const n = B(r, e.schema);
|
|
10011
10011
|
return bc(n)(e, t);
|
|
10012
10012
|
}, ud = () => ({ state: r, dispatch: e }) => lc(r, e);
|
|
10013
|
-
function
|
|
10013
|
+
function Qt(r, e) {
|
|
10014
10014
|
return e.nodes[r] ? "node" : e.marks[r] ? "mark" : null;
|
|
10015
10015
|
}
|
|
10016
10016
|
function fi(r, e) {
|
|
@@ -10019,7 +10019,7 @@ function fi(r, e) {
|
|
|
10019
10019
|
}
|
|
10020
10020
|
const fd = (r, e) => ({ tr: t, state: n, dispatch: i }) => {
|
|
10021
10021
|
let s = null, o = null;
|
|
10022
|
-
const l =
|
|
10022
|
+
const l = Qt(typeof r == "string" ? r : r.name, n.schema);
|
|
10023
10023
|
return l ? (l === "node" && (s = B(r, n.schema)), l === "mark" && (o = Ne(r, n.schema)), i && t.selection.ranges.forEach((a) => {
|
|
10024
10024
|
n.doc.nodesBetween(a.$from.pos, a.$to.pos, (c, d) => {
|
|
10025
10025
|
s && s === c.type && t.setNodeMarkup(d, void 0, fi(c.attrs, e)), o && c.marks.length && c.marks.forEach((u) => {
|
|
@@ -10106,7 +10106,7 @@ function Ed(r, e) {
|
|
|
10106
10106
|
return o ? { ...o.attrs } : {};
|
|
10107
10107
|
}
|
|
10108
10108
|
function Nd(r, e) {
|
|
10109
|
-
const t =
|
|
10109
|
+
const t = Qt(typeof e == "string" ? e : e.name, r.schema);
|
|
10110
10110
|
return t === "node" ? Ed(r, e) : t === "mark" ? qs(r, e) : {};
|
|
10111
10111
|
}
|
|
10112
10112
|
function Dd(r, e = JSON.stringify) {
|
|
@@ -10197,7 +10197,7 @@ function Hn(r, e, t = {}) {
|
|
|
10197
10197
|
function Pd(r, e, t = {}) {
|
|
10198
10198
|
if (!e)
|
|
10199
10199
|
return kt(r, null, t) || Hn(r, null, t);
|
|
10200
|
-
const n =
|
|
10200
|
+
const n = Qt(e, r.schema);
|
|
10201
10201
|
return n === "node" ? kt(r, e, t) : n === "mark" ? Hn(r, e, t) : !1;
|
|
10202
10202
|
}
|
|
10203
10203
|
function hi(r, e) {
|
|
@@ -10461,9 +10461,9 @@ const Jd = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
10461
10461
|
t.removeMark(f.$from.pos, f.$to.pos, a);
|
|
10462
10462
|
});
|
|
10463
10463
|
return t.removeStoredMark(a), !0;
|
|
10464
|
-
},
|
|
10464
|
+
}, Zd = (r, e = {}) => ({ tr: t, state: n, dispatch: i }) => {
|
|
10465
10465
|
let s = null, o = null;
|
|
10466
|
-
const l =
|
|
10466
|
+
const l = Qt(typeof r == "string" ? r : r.name, n.schema);
|
|
10467
10467
|
return l ? (l === "node" && (s = B(r, n.schema)), l === "mark" && (o = Ne(r, n.schema)), i && t.selection.ranges.forEach((a) => {
|
|
10468
10468
|
const c = a.$from.pos, d = a.$to.pos;
|
|
10469
10469
|
n.doc.nodesBetween(c, d, (u, f) => {
|
|
@@ -10481,7 +10481,7 @@ const Jd = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
10481
10481
|
});
|
|
10482
10482
|
});
|
|
10483
10483
|
}), !0) : !1;
|
|
10484
|
-
},
|
|
10484
|
+
}, Qd = (r, e = {}) => ({ state: t, dispatch: n }) => {
|
|
10485
10485
|
const i = B(r, t.schema);
|
|
10486
10486
|
return mc(i, e)(t, n);
|
|
10487
10487
|
}, eu = (r, e = {}) => ({ state: t, dispatch: n }) => {
|
|
@@ -10505,7 +10505,7 @@ var tu = /* @__PURE__ */ Object.freeze({
|
|
|
10505
10505
|
first: Gc,
|
|
10506
10506
|
focus: Yc,
|
|
10507
10507
|
forEach: Xc,
|
|
10508
|
-
insertContent:
|
|
10508
|
+
insertContent: Zc,
|
|
10509
10509
|
insertContentAt: td,
|
|
10510
10510
|
joinUp: nd,
|
|
10511
10511
|
joinDown: rd,
|
|
@@ -10540,18 +10540,18 @@ var tu = /* @__PURE__ */ Object.freeze({
|
|
|
10540
10540
|
undoInputRule: Gd,
|
|
10541
10541
|
unsetAllMarks: Yd,
|
|
10542
10542
|
unsetMark: Xd,
|
|
10543
|
-
updateAttributes:
|
|
10544
|
-
wrapIn:
|
|
10543
|
+
updateAttributes: Zd,
|
|
10544
|
+
wrapIn: Qd,
|
|
10545
10545
|
wrapInList: eu
|
|
10546
10546
|
});
|
|
10547
|
-
const nu =
|
|
10547
|
+
const nu = Q.create({
|
|
10548
10548
|
name: "commands",
|
|
10549
10549
|
addCommands() {
|
|
10550
10550
|
return {
|
|
10551
10551
|
...tu
|
|
10552
10552
|
};
|
|
10553
10553
|
}
|
|
10554
|
-
}), ru =
|
|
10554
|
+
}), ru = Q.create({
|
|
10555
10555
|
name: "editable",
|
|
10556
10556
|
addProseMirrorPlugins() {
|
|
10557
10557
|
return [
|
|
@@ -10563,7 +10563,7 @@ const nu = Z.create({
|
|
|
10563
10563
|
})
|
|
10564
10564
|
];
|
|
10565
10565
|
}
|
|
10566
|
-
}), iu =
|
|
10566
|
+
}), iu = Q.create({
|
|
10567
10567
|
name: "focusEvents",
|
|
10568
10568
|
addProseMirrorPlugins() {
|
|
10569
10569
|
const { editor: r } = this;
|
|
@@ -10587,7 +10587,7 @@ const nu = Z.create({
|
|
|
10587
10587
|
})
|
|
10588
10588
|
];
|
|
10589
10589
|
}
|
|
10590
|
-
}), su =
|
|
10590
|
+
}), su = Q.create({
|
|
10591
10591
|
name: "keymap",
|
|
10592
10592
|
addKeyboardShortcuts() {
|
|
10593
10593
|
const r = () => this.editor.commands.first(({ commands: o }) => [
|
|
@@ -10662,7 +10662,7 @@ const nu = Z.create({
|
|
|
10662
10662
|
})
|
|
10663
10663
|
];
|
|
10664
10664
|
}
|
|
10665
|
-
}), ou =
|
|
10665
|
+
}), ou = Q.create({
|
|
10666
10666
|
name: "tabindex",
|
|
10667
10667
|
addProseMirrorPlugins() {
|
|
10668
10668
|
return [
|
|
@@ -11056,7 +11056,7 @@ class St {
|
|
|
11056
11056
|
}
|
|
11057
11057
|
configure(e = {}) {
|
|
11058
11058
|
const t = this.extend();
|
|
11059
|
-
return t.options =
|
|
11059
|
+
return t.options = Zt(this.options, e), t.storage = T(S(t, "addStorage", {
|
|
11060
11060
|
name: t.name,
|
|
11061
11061
|
options: t.options
|
|
11062
11062
|
})), t;
|
|
@@ -11102,7 +11102,7 @@ class rt {
|
|
|
11102
11102
|
}
|
|
11103
11103
|
configure(e = {}) {
|
|
11104
11104
|
const t = this.extend();
|
|
11105
|
-
return t.options =
|
|
11105
|
+
return t.options = Zt(this.options, e), t.storage = T(S(t, "addStorage", {
|
|
11106
11106
|
name: t.name,
|
|
11107
11107
|
options: t.options
|
|
11108
11108
|
})), t;
|
|
@@ -11212,7 +11212,7 @@ const Ks = (r) => new ee({
|
|
|
11212
11212
|
key: typeof r.pluginKey == "string" ? new me(r.pluginKey) : r.pluginKey,
|
|
11213
11213
|
view: (e) => new uu({ view: e, ...r })
|
|
11214
11214
|
});
|
|
11215
|
-
|
|
11215
|
+
Q.create({
|
|
11216
11216
|
name: "bubbleMenu",
|
|
11217
11217
|
addOptions() {
|
|
11218
11218
|
return {
|
|
@@ -11304,7 +11304,7 @@ const Us = (r) => new ee({
|
|
|
11304
11304
|
key: typeof r.pluginKey == "string" ? new me(r.pluginKey) : r.pluginKey,
|
|
11305
11305
|
view: (e) => new fu({ view: e, ...r })
|
|
11306
11306
|
});
|
|
11307
|
-
|
|
11307
|
+
Q.create({
|
|
11308
11308
|
name: "floatingMenu",
|
|
11309
11309
|
addOptions() {
|
|
11310
11310
|
return {
|
|
@@ -11572,7 +11572,7 @@ const mu = rt.create({
|
|
|
11572
11572
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
11573
11573
|
};
|
|
11574
11574
|
}
|
|
11575
|
-
}), yu =
|
|
11575
|
+
}), yu = Q.create({
|
|
11576
11576
|
name: "placeholder",
|
|
11577
11577
|
addOptions() {
|
|
11578
11578
|
return {
|
|
@@ -11687,7 +11687,7 @@ function yi(r, e, t, n, i, s) {
|
|
|
11687
11687
|
"right",
|
|
11688
11688
|
gi
|
|
11689
11689
|
), d = r.slice(a.from, c.to);
|
|
11690
|
-
ku(d,
|
|
11690
|
+
ku(d, Zs, Su).forEach((f) => {
|
|
11691
11691
|
const h = xu(f[0]), p = e + a.from + f.index + 1, m = p + h.length;
|
|
11692
11692
|
i.addMark(p, m, s.create());
|
|
11693
11693
|
});
|
|
@@ -11983,7 +11983,7 @@ const Du = /* @__PURE__ */ ki(Eu, [["render", Nu]]);
|
|
|
11983
11983
|
const Au = {
|
|
11984
11984
|
name: "DtRecipeMessageInput",
|
|
11985
11985
|
components: {
|
|
11986
|
-
DtButton:
|
|
11986
|
+
DtButton: Qs,
|
|
11987
11987
|
DtEmojiPicker: eo,
|
|
11988
11988
|
DtIcon: to,
|
|
11989
11989
|
DtInput: no,
|