@fileverse-dev/ddoc 2.1.3-patch-33 → 2.1.3-patch-34
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/index.es.js +100 -105
- package/dist/package/hooks/use-headless-editor.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -12346,7 +12346,7 @@ function $ce(t, e, n) {
|
|
12346
12346
|
const i = document.createElement("style");
|
12347
12347
|
return e && i.setAttribute("nonce", e), i.setAttribute("data-tiptap-style", ""), i.innerHTML = t, document.getElementsByTagName("head")[0].appendChild(i), i;
|
12348
12348
|
}
|
12349
|
-
class
|
12349
|
+
class gA extends vle {
|
12350
12350
|
constructor(e = {}) {
|
12351
12351
|
super(), this.isFocused = !1, this.isInitialized = !1, this.extensionStorage = {}, this.options = {
|
12352
12352
|
element: document.createElement("div"),
|
@@ -12932,9 +12932,9 @@ function Ou(t) {
|
|
12932
12932
|
function tue(t) {
|
12933
12933
|
return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
12934
12934
|
}
|
12935
|
-
var ca = "top", xs = "bottom", Ms = "right", ua = "left",
|
12935
|
+
var ca = "top", xs = "bottom", Ms = "right", ua = "left", vA = "auto", ty = [ca, xs, Ms, ua], Ch = "start", Am = "end", nue = "clippingParents", w_ = "viewport", U2 = "popper", rue = "reference", Dj = /* @__PURE__ */ ty.reduce(function(t, e) {
|
12936
12936
|
return t.concat([e + "-" + Ch, e + "-" + Am]);
|
12937
|
-
}, []),
|
12937
|
+
}, []), k_ = /* @__PURE__ */ [].concat(ty, [vA]).reduce(function(t, e) {
|
12938
12938
|
return t.concat([e, e + "-" + Ch, e + "-" + Am]);
|
12939
12939
|
}, []), iue = "beforeRead", aue = "read", sue = "afterRead", oue = "beforeMain", lue = "main", cue = "afterMain", uue = "beforeWrite", fue = "write", due = "afterWrite", hue = [iue, aue, sue, oue, lue, cue, uue, fue, due];
|
12940
12940
|
function Qo(t) {
|
@@ -12957,7 +12957,7 @@ function ks(t) {
|
|
12957
12957
|
var e = Ha(t).HTMLElement;
|
12958
12958
|
return t instanceof e || t instanceof HTMLElement;
|
12959
12959
|
}
|
12960
|
-
function
|
12960
|
+
function bA(t) {
|
12961
12961
|
if (typeof ShadowRoot > "u")
|
12962
12962
|
return !1;
|
12963
12963
|
var e = Ha(t).ShadowRoot;
|
@@ -12997,7 +12997,7 @@ function mue(t) {
|
|
12997
12997
|
});
|
12998
12998
|
};
|
12999
12999
|
}
|
13000
|
-
const
|
13000
|
+
const x_ = {
|
13001
13001
|
name: "applyStyles",
|
13002
13002
|
enabled: !0,
|
13003
13003
|
phase: "write",
|
@@ -13015,14 +13015,14 @@ function Nk() {
|
|
13015
13015
|
return e.brand + "/" + e.version;
|
13016
13016
|
}).join(" ") : navigator.userAgent;
|
13017
13017
|
}
|
13018
|
-
function
|
13018
|
+
function M_() {
|
13019
13019
|
return !/^((?!chrome|android).)*safari/i.test(Nk());
|
13020
13020
|
}
|
13021
13021
|
function Sh(t, e, n) {
|
13022
13022
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
13023
13023
|
var r = t.getBoundingClientRect(), i = 1, a = 1;
|
13024
13024
|
e && ks(t) && (i = t.offsetWidth > 0 && Ah(r.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && Ah(r.height) / t.offsetHeight || 1);
|
13025
|
-
var s = _1(t) ? Ha(t) : window, o = s.visualViewport, l = !
|
13025
|
+
var s = _1(t) ? Ha(t) : window, o = s.visualViewport, l = !M_() && n, c = (r.left + (l && o ? o.offsetLeft : 0)) / i, u = (r.top + (l && o ? o.offsetTop : 0)) / a, f = r.width / i, d = r.height / a;
|
13026
13026
|
return {
|
13027
13027
|
width: f,
|
13028
13028
|
height: d,
|
@@ -13034,7 +13034,7 @@ function Sh(t, e, n) {
|
|
13034
13034
|
y: u
|
13035
13035
|
};
|
13036
13036
|
}
|
13037
|
-
function
|
13037
|
+
function wA(t) {
|
13038
13038
|
var e = Sh(t), n = t.offsetWidth, r = t.offsetHeight;
|
13039
13039
|
return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
13040
13040
|
x: t.offsetLeft,
|
@@ -13043,11 +13043,11 @@ function bA(t) {
|
|
13043
13043
|
height: r
|
13044
13044
|
};
|
13045
13045
|
}
|
13046
|
-
function
|
13046
|
+
function C_(t, e) {
|
13047
13047
|
var n = e.getRootNode && e.getRootNode();
|
13048
13048
|
if (t.contains(e))
|
13049
13049
|
return !0;
|
13050
|
-
if (n &&
|
13050
|
+
if (n && bA(n)) {
|
13051
13051
|
var r = e;
|
13052
13052
|
do {
|
13053
13053
|
if (r && t.isSameNode(r))
|
@@ -13076,7 +13076,7 @@ function V8(t) {
|
|
13076
13076
|
// $FlowFixMe[prop-missing]
|
13077
13077
|
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
13078
13078
|
t.parentNode || // DOM Element detected
|
13079
|
-
(
|
13079
|
+
(bA(t) ? t.host : null) || // ShadowRoot detected
|
13080
13080
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
13081
13081
|
r0(t)
|
13082
13082
|
);
|
@@ -13093,7 +13093,7 @@ function gue(t) {
|
|
13093
13093
|
return null;
|
13094
13094
|
}
|
13095
13095
|
var i = V8(t);
|
13096
|
-
for (
|
13096
|
+
for (bA(i) && (i = i.host); ks(i) && ["html", "body"].indexOf(Qo(i)) < 0; ) {
|
13097
13097
|
var a = cc(i);
|
13098
13098
|
if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none")
|
13099
13099
|
return i;
|
@@ -13106,7 +13106,7 @@ function ny(t) {
|
|
13106
13106
|
n = Ij(n);
|
13107
13107
|
return n && (Qo(n) === "html" || Qo(n) === "body" && cc(n).position === "static") ? e : n || gue(t) || e;
|
13108
13108
|
}
|
13109
|
-
function
|
13109
|
+
function kA(t) {
|
13110
13110
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
13111
13111
|
}
|
13112
13112
|
function Bp(t, e, n) {
|
@@ -13116,7 +13116,7 @@ function vue(t, e, n) {
|
|
13116
13116
|
var r = Bp(t, e, n);
|
13117
13117
|
return r > n ? n : r;
|
13118
13118
|
}
|
13119
|
-
function
|
13119
|
+
function A_() {
|
13120
13120
|
return {
|
13121
13121
|
top: 0,
|
13122
13122
|
right: 0,
|
@@ -13124,10 +13124,10 @@ function S_() {
|
|
13124
13124
|
left: 0
|
13125
13125
|
};
|
13126
13126
|
}
|
13127
|
-
function
|
13128
|
-
return Object.assign({},
|
13127
|
+
function S_(t) {
|
13128
|
+
return Object.assign({}, A_(), t);
|
13129
13129
|
}
|
13130
|
-
function
|
13130
|
+
function L_(t, e) {
|
13131
13131
|
return e.reduce(function(n, r) {
|
13132
13132
|
return n[r] = t, n;
|
13133
13133
|
}, {});
|
@@ -13135,18 +13135,18 @@ function E_(t, e) {
|
|
13135
13135
|
var bue = function(e, n) {
|
13136
13136
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
13137
13137
|
placement: n.placement
|
13138
|
-
})) : e,
|
13138
|
+
})) : e, S_(typeof e != "number" ? e : L_(e, ty));
|
13139
13139
|
};
|
13140
13140
|
function wue(t) {
|
13141
|
-
var e, n = t.state, r = t.name, i = t.options, a = n.elements.arrow, s = n.modifiersData.popperOffsets, o = Fo(n.placement), l =
|
13141
|
+
var e, n = t.state, r = t.name, i = t.options, a = n.elements.arrow, s = n.modifiersData.popperOffsets, o = Fo(n.placement), l = kA(o), c = [ua, Ms].indexOf(o) >= 0, u = c ? "height" : "width";
|
13142
13142
|
if (!(!a || !s)) {
|
13143
|
-
var f = bue(i.padding, n), d =
|
13143
|
+
var f = bue(i.padding, n), d = wA(a), h = l === "y" ? ca : ua, p = l === "y" ? xs : Ms, m = n.rects.reference[u] + n.rects.reference[l] - s[l] - n.rects.popper[u], g = s[l] - n.rects.reference[l], v = ny(a), k = v ? l === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, b = m / 2 - g / 2, w = f[h], x = k - d[u] - f[p], C = k / 2 - d[u] / 2 + b, L = Bp(w, C, x), S = l;
|
13144
13144
|
n.modifiersData[r] = (e = {}, e[S] = L, e.centerOffset = L - C, e);
|
13145
13145
|
}
|
13146
13146
|
}
|
13147
13147
|
function kue(t) {
|
13148
13148
|
var e = t.state, n = t.options, r = n.element, i = r === void 0 ? "[data-popper-arrow]" : r;
|
13149
|
-
i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) ||
|
13149
|
+
i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || C_(e.elements.popper, i) && (e.elements.arrow = i));
|
13150
13150
|
}
|
13151
13151
|
const xue = {
|
13152
13152
|
name: "arrow",
|
@@ -13289,32 +13289,32 @@ function Rj(t) {
|
|
13289
13289
|
return Nue[e];
|
13290
13290
|
});
|
13291
13291
|
}
|
13292
|
-
function
|
13292
|
+
function xA(t) {
|
13293
13293
|
var e = Ha(t), n = e.pageXOffset, r = e.pageYOffset;
|
13294
13294
|
return {
|
13295
13295
|
scrollLeft: n,
|
13296
13296
|
scrollTop: r
|
13297
13297
|
};
|
13298
13298
|
}
|
13299
|
-
function
|
13300
|
-
return Sh(r0(t)).left +
|
13299
|
+
function MA(t) {
|
13300
|
+
return Sh(r0(t)).left + xA(t).scrollLeft;
|
13301
13301
|
}
|
13302
13302
|
function jue(t, e) {
|
13303
13303
|
var n = Ha(t), r = r0(t), i = n.visualViewport, a = r.clientWidth, s = r.clientHeight, o = 0, l = 0;
|
13304
13304
|
if (i) {
|
13305
13305
|
a = i.width, s = i.height;
|
13306
|
-
var c =
|
13306
|
+
var c = M_();
|
13307
13307
|
(c || !c && e === "fixed") && (o = i.offsetLeft, l = i.offsetTop);
|
13308
13308
|
}
|
13309
13309
|
return {
|
13310
13310
|
width: a,
|
13311
13311
|
height: s,
|
13312
|
-
x: o +
|
13312
|
+
x: o + MA(t),
|
13313
13313
|
y: l
|
13314
13314
|
};
|
13315
13315
|
}
|
13316
13316
|
function Due(t) {
|
13317
|
-
var e, n = r0(t), r =
|
13317
|
+
var e, n = r0(t), r = xA(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, a = T1(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), s = T1(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), o = -r.scrollLeft + MA(t), l = -r.scrollTop;
|
13318
13318
|
return cc(i || n).direction === "rtl" && (o += T1(n.clientWidth, i ? i.clientWidth : 0) - a), {
|
13319
13319
|
width: a,
|
13320
13320
|
height: s,
|
@@ -13322,17 +13322,17 @@ function Due(t) {
|
|
13322
13322
|
y: l
|
13323
13323
|
};
|
13324
13324
|
}
|
13325
|
-
function
|
13325
|
+
function CA(t) {
|
13326
13326
|
var e = cc(t), n = e.overflow, r = e.overflowX, i = e.overflowY;
|
13327
13327
|
return /auto|scroll|overlay|hidden/.test(n + i + r);
|
13328
13328
|
}
|
13329
|
-
function
|
13330
|
-
return ["html", "body", "#document"].indexOf(Qo(t)) >= 0 ? t.ownerDocument.body : ks(t) &&
|
13329
|
+
function E_(t) {
|
13330
|
+
return ["html", "body", "#document"].indexOf(Qo(t)) >= 0 ? t.ownerDocument.body : ks(t) && CA(t) ? t : E_(V8(t));
|
13331
13331
|
}
|
13332
13332
|
function Hp(t, e) {
|
13333
13333
|
var n;
|
13334
13334
|
e === void 0 && (e = []);
|
13335
|
-
var r =
|
13335
|
+
var r = E_(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), a = Ha(r), s = i ? [a].concat(a.visualViewport || [], CA(r) ? r : []) : r, o = e.concat(s);
|
13336
13336
|
return i ? o : (
|
13337
13337
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
13338
13338
|
o.concat(Hp(V8(s)))
|
@@ -13351,12 +13351,12 @@ function Iue(t, e) {
|
|
13351
13351
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
13352
13352
|
}
|
13353
13353
|
function Oj(t, e, n) {
|
13354
|
-
return e ===
|
13354
|
+
return e === w_ ? jk(jue(t, n)) : _1(e) ? Iue(e, n) : jk(Due(r0(t)));
|
13355
13355
|
}
|
13356
13356
|
function Pue(t) {
|
13357
13357
|
var e = Hp(V8(t)), n = ["absolute", "fixed"].indexOf(cc(t).position) >= 0, r = n && ks(t) ? ny(t) : t;
|
13358
13358
|
return _1(r) ? e.filter(function(i) {
|
13359
|
-
return _1(i) &&
|
13359
|
+
return _1(i) && C_(i, r) && Qo(i) !== "body";
|
13360
13360
|
}) : [];
|
13361
13361
|
}
|
13362
13362
|
function Rue(t, e, n, r) {
|
@@ -13366,7 +13366,7 @@ function Rue(t, e, n, r) {
|
|
13366
13366
|
}, Oj(t, s, r));
|
13367
13367
|
return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
13368
13368
|
}
|
13369
|
-
function
|
13369
|
+
function T_(t) {
|
13370
13370
|
var e = t.reference, n = t.element, r = t.placement, i = r ? Fo(r) : null, a = r ? Lh(r) : null, s = e.x + e.width / 2 - n.width / 2, o = e.y + e.height / 2 - n.height / 2, l;
|
13371
13371
|
switch (i) {
|
13372
13372
|
case ca:
|
@@ -13399,7 +13399,7 @@ function N_(t) {
|
|
13399
13399
|
y: e.y
|
13400
13400
|
};
|
13401
13401
|
}
|
13402
|
-
var c = i ?
|
13402
|
+
var c = i ? kA(i) : null;
|
13403
13403
|
if (c != null) {
|
13404
13404
|
var u = c === "y" ? "height" : "width";
|
13405
13405
|
switch (a) {
|
@@ -13415,7 +13415,7 @@ function N_(t) {
|
|
13415
13415
|
}
|
13416
13416
|
function Sm(t, e) {
|
13417
13417
|
e === void 0 && (e = {});
|
13418
|
-
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.strategy, s = a === void 0 ? t.strategy : a, o = n.boundary, l = o === void 0 ? nue : o, c = n.rootBoundary, u = c === void 0 ?
|
13418
|
+
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.strategy, s = a === void 0 ? t.strategy : a, o = n.boundary, l = o === void 0 ? nue : o, c = n.rootBoundary, u = c === void 0 ? w_ : c, f = n.elementContext, d = f === void 0 ? U2 : f, h = n.altBoundary, p = h === void 0 ? !1 : h, m = n.padding, g = m === void 0 ? 0 : m, v = S_(typeof g != "number" ? g : L_(g, ty)), k = d === U2 ? rue : U2, b = t.rects.popper, w = t.elements[p ? k : d], x = Rue(_1(w) ? w : w.contextElement || r0(t.elements.popper), l, u, s), C = Sh(t.elements.reference), L = T_({
|
13419
13419
|
reference: C,
|
13420
13420
|
element: b,
|
13421
13421
|
placement: i
|
@@ -13436,7 +13436,7 @@ function Sm(t, e) {
|
|
13436
13436
|
}
|
13437
13437
|
function Oue(t, e) {
|
13438
13438
|
e === void 0 && (e = {});
|
13439
|
-
var n = e, r = n.placement, i = n.boundary, a = n.rootBoundary, s = n.padding, o = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ?
|
13439
|
+
var n = e, r = n.placement, i = n.boundary, a = n.rootBoundary, s = n.padding, o = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? k_ : l, u = Lh(r), f = u ? o ? Dj : Dj.filter(function(p) {
|
13440
13440
|
return Lh(p) === u;
|
13441
13441
|
}) : ty, d = f.filter(function(p) {
|
13442
13442
|
return c.indexOf(p) >= 0;
|
@@ -13455,7 +13455,7 @@ function Oue(t, e) {
|
|
13455
13455
|
});
|
13456
13456
|
}
|
13457
13457
|
function zue(t) {
|
13458
|
-
if (Fo(t) ===
|
13458
|
+
if (Fo(t) === vA)
|
13459
13459
|
return [];
|
13460
13460
|
var e = L3(t);
|
13461
13461
|
return [Rj(t), e, Rj(e)];
|
@@ -13464,7 +13464,7 @@ function Bue(t) {
|
|
13464
13464
|
var e = t.state, n = t.options, r = t.name;
|
13465
13465
|
if (!e.modifiersData[r]._skip) {
|
13466
13466
|
for (var i = n.mainAxis, a = i === void 0 ? !0 : i, s = n.altAxis, o = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, f = n.rootBoundary, d = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, g = e.options.placement, v = Fo(g), k = v === g, b = l || (k || !p ? [L3(g)] : zue(g)), w = [g].concat(b).reduce(function(fe, be) {
|
13467
|
-
return fe.concat(Fo(be) ===
|
13467
|
+
return fe.concat(Fo(be) === vA ? Oue(e, {
|
13468
13468
|
placement: be,
|
13469
13469
|
boundary: u,
|
13470
13470
|
rootBoundary: f,
|
@@ -13570,7 +13570,7 @@ function _ue(t, e, n) {
|
|
13570
13570
|
};
|
13571
13571
|
}
|
13572
13572
|
function que(t) {
|
13573
|
-
var e = t.state, n = t.options, r = t.name, i = n.offset, a = i === void 0 ? [0, 0] : i, s =
|
13573
|
+
var e = t.state, n = t.options, r = t.name, i = n.offset, a = i === void 0 ? [0, 0] : i, s = k_.reduce(function(u, f) {
|
13574
13574
|
return u[f] = _ue(f, e.rects, a), u;
|
13575
13575
|
}, {}), o = s[e.placement], l = o.x, c = o.y;
|
13576
13576
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = s;
|
@@ -13584,7 +13584,7 @@ const Uue = {
|
|
13584
13584
|
};
|
13585
13585
|
function Gue(t) {
|
13586
13586
|
var e = t.state, n = t.name;
|
13587
|
-
e.modifiersData[n] =
|
13587
|
+
e.modifiersData[n] = T_({
|
13588
13588
|
reference: e.rects.reference,
|
13589
13589
|
element: e.rects.popper,
|
13590
13590
|
placement: e.placement
|
@@ -13606,7 +13606,7 @@ function Yue(t) {
|
|
13606
13606
|
rootBoundary: c,
|
13607
13607
|
padding: f,
|
13608
13608
|
altBoundary: u
|
13609
|
-
}), v = Fo(e.placement), k = Lh(e.placement), b = !k, w =
|
13609
|
+
}), v = Fo(e.placement), k = Lh(e.placement), b = !k, w = kA(v), x = Zue(w), C = e.modifiersData.popperOffsets, L = e.rects.reference, S = e.rects.popper, I = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
13610
13610
|
placement: e.placement
|
13611
13611
|
})) : m, D = typeof I == "number" ? {
|
13612
13612
|
mainAxis: I,
|
@@ -13620,10 +13620,10 @@ function Yue(t) {
|
|
13620
13620
|
};
|
13621
13621
|
if (C) {
|
13622
13622
|
if (a) {
|
13623
|
-
var _, W = w === "y" ? ca : ua, U = w === "y" ? xs : Ms, q = w === "y" ? "height" : "width", Z = C[w], re = Z + g[W], Y = Z - g[U], se = h ? -S[q] / 2 : 0, de = k === Ch ? L[q] : S[q], ae = k === Ch ? -S[q] : -L[q], pe = e.elements.arrow, fe = h && pe ?
|
13623
|
+
var _, W = w === "y" ? ca : ua, U = w === "y" ? xs : Ms, q = w === "y" ? "height" : "width", Z = C[w], re = Z + g[W], Y = Z - g[U], se = h ? -S[q] / 2 : 0, de = k === Ch ? L[q] : S[q], ae = k === Ch ? -S[q] : -L[q], pe = e.elements.arrow, fe = h && pe ? wA(pe) : {
|
13624
13624
|
width: 0,
|
13625
13625
|
height: 0
|
13626
|
-
}, be = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding :
|
13626
|
+
}, be = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : A_(), J = be[W], ge = be[U], ke = Bp(0, L[q], fe[q]), ze = b ? L[q] / 2 - se - ke - J - D.mainAxis : de - ke - J - D.mainAxis, Oe = b ? -L[q] / 2 + se + ke + ge + D.mainAxis : ae + ke + ge + D.mainAxis, Se = e.elements.arrow && ny(e.elements.arrow), Te = Se ? w === "y" ? Se.clientTop || 0 : Se.clientLeft || 0 : 0, je = (_ = O == null ? void 0 : O[w]) != null ? _ : 0, le = Z + ze - je - Te, X = Z + Oe - je, Q = Bp(h ? M6(re, le) : re, Z, h ? T1(Y, X) : Y);
|
13627
13627
|
C[w] = Q, F[w] = Q - Z;
|
13628
13628
|
}
|
13629
13629
|
if (o) {
|
@@ -13647,7 +13647,7 @@ function Jue(t) {
|
|
13647
13647
|
};
|
13648
13648
|
}
|
13649
13649
|
function Que(t) {
|
13650
|
-
return t === Ha(t) || !ks(t) ?
|
13650
|
+
return t === Ha(t) || !ks(t) ? xA(t) : Jue(t);
|
13651
13651
|
}
|
13652
13652
|
function Xue(t) {
|
13653
13653
|
var e = t.getBoundingClientRect(), n = Ah(e.width) / t.offsetWidth || 1, r = Ah(e.height) / t.offsetHeight || 1;
|
@@ -13663,7 +13663,7 @@ function $ue(t, e, n) {
|
|
13663
13663
|
y: 0
|
13664
13664
|
};
|
13665
13665
|
return (r || !r && !n) && ((Qo(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
13666
|
-
|
13666
|
+
CA(a)) && (o = Que(e)), ks(e) ? (l = Sh(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : a && (l.x = MA(a))), {
|
13667
13667
|
x: s.left + o.scrollLeft - l.x,
|
13668
13668
|
y: s.top + o.scrollTop - l.y,
|
13669
13669
|
width: s.width,
|
@@ -13771,7 +13771,7 @@ function i0e(t) {
|
|
13771
13771
|
if (Fj(k, b)) {
|
13772
13772
|
u.rects = {
|
13773
13773
|
reference: $ue(k, ny(b), u.options.strategy === "fixed"),
|
13774
|
-
popper:
|
13774
|
+
popper: wA(b)
|
13775
13775
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(D) {
|
13776
13776
|
return u.modifiersData[D.name] = Object.assign({}, D.data);
|
13777
13777
|
});
|
@@ -13830,12 +13830,12 @@ function i0e(t) {
|
|
13830
13830
|
return h;
|
13831
13831
|
};
|
13832
13832
|
}
|
13833
|
-
var a0e = [Eue, Wue, Sue,
|
13833
|
+
var a0e = [Eue, Wue, Sue, x_, Uue, Hue, Kue, xue, Vue], s0e = /* @__PURE__ */ i0e({
|
13834
13834
|
defaultModifiers: a0e
|
13835
|
-
}), o0e = "tippy-box",
|
13835
|
+
}), o0e = "tippy-box", N_ = "tippy-content", l0e = "tippy-backdrop", j_ = "tippy-arrow", D_ = "tippy-svg-arrow", S0 = {
|
13836
13836
|
passive: !0,
|
13837
13837
|
capture: !0
|
13838
|
-
},
|
13838
|
+
}, I_ = function() {
|
13839
13839
|
return document.body;
|
13840
13840
|
};
|
13841
13841
|
function c0e(t, e) {
|
@@ -13848,11 +13848,11 @@ function ub(t, e, n) {
|
|
13848
13848
|
}
|
13849
13849
|
return t;
|
13850
13850
|
}
|
13851
|
-
function
|
13851
|
+
function AA(t, e) {
|
13852
13852
|
var n = {}.toString.call(t);
|
13853
13853
|
return n.indexOf("[object") === 0 && n.indexOf(e + "]") > -1;
|
13854
13854
|
}
|
13855
|
-
function
|
13855
|
+
function P_(t, e) {
|
13856
13856
|
return typeof t == "function" ? t.apply(void 0, e) : t;
|
13857
13857
|
}
|
13858
13858
|
function Vj(t, e) {
|
@@ -13901,14 +13901,14 @@ function Fp() {
|
|
13901
13901
|
}
|
13902
13902
|
function Lm(t) {
|
13903
13903
|
return ["Element", "Fragment"].some(function(e) {
|
13904
|
-
return
|
13904
|
+
return AA(t, e);
|
13905
13905
|
});
|
13906
13906
|
}
|
13907
13907
|
function p0e(t) {
|
13908
|
-
return
|
13908
|
+
return AA(t, "NodeList");
|
13909
13909
|
}
|
13910
13910
|
function m0e(t) {
|
13911
|
-
return
|
13911
|
+
return AA(t, "MouseEvent");
|
13912
13912
|
}
|
13913
13913
|
function y0e(t) {
|
13914
13914
|
return !!(t && t._tippy && t._tippy.reference === t);
|
@@ -13959,11 +13959,11 @@ var To = {
|
|
13959
13959
|
isTouch: !1
|
13960
13960
|
}, Wj = 0;
|
13961
13961
|
function w0e() {
|
13962
|
-
To.isTouch || (To.isTouch = !0, window.performance && document.addEventListener("mousemove",
|
13962
|
+
To.isTouch || (To.isTouch = !0, window.performance && document.addEventListener("mousemove", R_));
|
13963
13963
|
}
|
13964
|
-
function
|
13964
|
+
function R_() {
|
13965
13965
|
var t = performance.now();
|
13966
|
-
t - Wj < 20 && (To.isTouch = !1, document.removeEventListener("mousemove",
|
13966
|
+
t - Wj < 20 && (To.isTouch = !1, document.removeEventListener("mousemove", R_)), Wj = t;
|
13967
13967
|
}
|
13968
13968
|
function k0e() {
|
13969
13969
|
var t = document.activeElement;
|
@@ -13996,7 +13996,7 @@ function A0e(t) {
|
|
13996
13996
|
%c👷 This is a development-only message. It will be removed in production.
|
13997
13997
|
`);
|
13998
13998
|
}
|
13999
|
-
function
|
13999
|
+
function O_(t) {
|
14000
14000
|
return [
|
14001
14001
|
A0e(t),
|
14002
14002
|
// title
|
@@ -14015,20 +14015,20 @@ function S0e() {
|
|
14015
14015
|
function xl(t, e) {
|
14016
14016
|
if (t && !Em.has(e)) {
|
14017
14017
|
var n;
|
14018
|
-
Em.add(e), (n = console).warn.apply(n,
|
14018
|
+
Em.add(e), (n = console).warn.apply(n, O_(e));
|
14019
14019
|
}
|
14020
14020
|
}
|
14021
14021
|
function Dk(t, e) {
|
14022
14022
|
if (t && !Em.has(e)) {
|
14023
14023
|
var n;
|
14024
|
-
Em.add(e), (n = console).error.apply(n,
|
14024
|
+
Em.add(e), (n = console).error.apply(n, O_(e));
|
14025
14025
|
}
|
14026
14026
|
}
|
14027
14027
|
function L0e(t) {
|
14028
14028
|
var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
|
14029
14029
|
Dk(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Dk(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
14030
14030
|
}
|
14031
|
-
var
|
14031
|
+
var z_ = {
|
14032
14032
|
animateFill: !1,
|
14033
14033
|
followCursor: !1,
|
14034
14034
|
inlinePositioning: !1,
|
@@ -14044,7 +14044,7 @@ var B_ = {
|
|
14044
14044
|
theme: "",
|
14045
14045
|
zIndex: 9999
|
14046
14046
|
}, Da = Object.assign({
|
14047
|
-
appendTo:
|
14047
|
+
appendTo: I_,
|
14048
14048
|
aria: {
|
14049
14049
|
content: "auto",
|
14050
14050
|
expanded: "auto"
|
@@ -14091,14 +14091,14 @@ var B_ = {
|
|
14091
14091
|
touch: !0,
|
14092
14092
|
trigger: "mouseenter focus",
|
14093
14093
|
triggerTarget: null
|
14094
|
-
},
|
14095
|
-
process.env.NODE_ENV !== "production" &&
|
14094
|
+
}, z_, E0e), T0e = Object.keys(Da), N0e = function(e) {
|
14095
|
+
process.env.NODE_ENV !== "production" && H_(e, []);
|
14096
14096
|
var n = Object.keys(e);
|
14097
14097
|
n.forEach(function(r) {
|
14098
14098
|
Da[r] = e[r];
|
14099
14099
|
});
|
14100
14100
|
};
|
14101
|
-
function
|
14101
|
+
function B_(t) {
|
14102
14102
|
var e = t.plugins || [], n = e.reduce(function(r, i) {
|
14103
14103
|
var a = i.name, s = i.defaultValue;
|
14104
14104
|
if (a) {
|
@@ -14110,7 +14110,7 @@ function H_(t) {
|
|
14110
14110
|
return Object.assign({}, t, n);
|
14111
14111
|
}
|
14112
14112
|
function j0e(t, e) {
|
14113
|
-
var n = e ? Object.keys(
|
14113
|
+
var n = e ? Object.keys(B_(Object.assign({}, Da, {
|
14114
14114
|
plugins: e
|
14115
14115
|
}))) : T0e, r = n.reduce(function(i, a) {
|
14116
14116
|
var s = (t.getAttribute("data-tippy-" + a) || "").trim();
|
@@ -14130,18 +14130,18 @@ function j0e(t, e) {
|
|
14130
14130
|
}
|
14131
14131
|
function Yj(t, e) {
|
14132
14132
|
var n = Object.assign({}, e, {
|
14133
|
-
content:
|
14133
|
+
content: P_(e.content, [t])
|
14134
14134
|
}, e.ignoreAttributes ? {} : j0e(t, e.plugins));
|
14135
14135
|
return n.aria = Object.assign({}, Da.aria, n.aria), n.aria = {
|
14136
14136
|
expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
|
14137
14137
|
content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
|
14138
14138
|
}, n;
|
14139
14139
|
}
|
14140
|
-
function
|
14140
|
+
function H_(t, e) {
|
14141
14141
|
t === void 0 && (t = {}), e === void 0 && (e = []);
|
14142
14142
|
var n = Object.keys(t);
|
14143
14143
|
n.forEach(function(r) {
|
14144
|
-
var i = u0e(Da, Object.keys(
|
14144
|
+
var i = u0e(Da, Object.keys(z_)), a = !c0e(i, r);
|
14145
14145
|
a && (a = e.filter(function(s) {
|
14146
14146
|
return s.name === r;
|
14147
14147
|
}).length === 0), xl(a, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
@@ -14158,7 +14158,7 @@ function Ik(t, e) {
|
|
14158
14158
|
}
|
14159
14159
|
function Kj(t) {
|
14160
14160
|
var e = Fp();
|
14161
|
-
return t === !0 ? e.className =
|
14161
|
+
return t === !0 ? e.className = j_ : (e.className = D_, Lm(t) ? e.appendChild(t) : Ik(e, t)), e;
|
14162
14162
|
}
|
14163
14163
|
function Jj(t, e) {
|
14164
14164
|
Lm(e.content) ? (Ik(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? Ik(t, e.content) : t.textContent = e.content);
|
@@ -14168,21 +14168,21 @@ function Pk(t) {
|
|
14168
14168
|
return {
|
14169
14169
|
box: e,
|
14170
14170
|
content: n.find(function(r) {
|
14171
|
-
return r.classList.contains(
|
14171
|
+
return r.classList.contains(N_);
|
14172
14172
|
}),
|
14173
14173
|
arrow: n.find(function(r) {
|
14174
|
-
return r.classList.contains(
|
14174
|
+
return r.classList.contains(j_) || r.classList.contains(D_);
|
14175
14175
|
}),
|
14176
14176
|
backdrop: n.find(function(r) {
|
14177
14177
|
return r.classList.contains(l0e);
|
14178
14178
|
})
|
14179
14179
|
};
|
14180
14180
|
}
|
14181
|
-
function
|
14181
|
+
function F_(t) {
|
14182
14182
|
var e = Fp(), n = Fp();
|
14183
14183
|
n.className = o0e, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
14184
14184
|
var r = Fp();
|
14185
|
-
r.className =
|
14185
|
+
r.className = N_, r.setAttribute("data-state", "hidden"), Jj(r, t.props), e.appendChild(n), n.appendChild(r), i(t.props, t.props);
|
14186
14186
|
function i(a, s) {
|
14187
14187
|
var o = Pk(e), l = o.box, c = o.content, u = o.arrow;
|
14188
14188
|
s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (a.content !== s.content || a.allowHTML !== s.allowHTML) && Jj(c, t.props), s.arrow ? u ? a.arrow !== s.arrow && (l.removeChild(u), l.appendChild(Kj(s.arrow))) : l.appendChild(Kj(s.arrow)) : u && l.removeChild(u);
|
@@ -14192,10 +14192,10 @@ function V_(t) {
|
|
14192
14192
|
onUpdate: i
|
14193
14193
|
};
|
14194
14194
|
}
|
14195
|
-
|
14195
|
+
F_.$$tippy = !0;
|
14196
14196
|
var I0e = 1, ig = [], hb = [];
|
14197
14197
|
function P0e(t, e) {
|
14198
|
-
var n = Yj(t, Object.assign({}, Da,
|
14198
|
+
var n = Yj(t, Object.assign({}, Da, B_(qj(e)))), r, i, a, s = !1, o = !1, l = !1, c = !1, u, f, d, h = [], p = Vj(le, n.interactiveDebounce), m, g = I0e++, v = null, k = d0e(n.plugins), b = {
|
14199
14199
|
// Is the instance currently enabled?
|
14200
14200
|
isEnabled: !0,
|
14201
14201
|
// Is the tippy currently showing and not transitioning out?
|
@@ -14489,7 +14489,7 @@ function P0e(t, e) {
|
|
14489
14489
|
}
|
14490
14490
|
function M() {
|
14491
14491
|
var Ae = w.props.appendTo, qe, lt = _();
|
14492
|
-
w.props.interactive && Ae ===
|
14492
|
+
w.props.interactive && Ae === I_ || Ae === "parent" ? qe = lt.parentNode : qe = P_(Ae, [lt]), qe.contains(C) || qe.appendChild(C), w.state.isMounted = !0, Ie(), process.env.NODE_ENV !== "production" && xl(w.props.interactive && Ae === Da.appendTo && lt.nextElementSibling !== C, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
14493
14493
|
|
14494
14494
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
14495
14495
|
|
@@ -14598,7 +14598,7 @@ function P0e(t, e) {
|
|
14598
14598
|
function hf(t, e) {
|
14599
14599
|
e === void 0 && (e = {});
|
14600
14600
|
var n = Da.plugins.concat(e.plugins || []);
|
14601
|
-
process.env.NODE_ENV !== "production" && (L0e(t),
|
14601
|
+
process.env.NODE_ENV !== "production" && (L0e(t), H_(e, n)), x0e();
|
14602
14602
|
var r = Object.assign({}, e, {
|
14603
14603
|
plugins: n
|
14604
14604
|
}), i = g0e(t);
|
@@ -14620,7 +14620,7 @@ function hf(t, e) {
|
|
14620
14620
|
hf.defaultProps = Da;
|
14621
14621
|
hf.setDefaultProps = N0e;
|
14622
14622
|
hf.currentInput = To;
|
14623
|
-
Object.assign({},
|
14623
|
+
Object.assign({}, x_, {
|
14624
14624
|
effect: function(e) {
|
14625
14625
|
var n = e.state, r = {
|
14626
14626
|
popper: {
|
@@ -14664,7 +14664,7 @@ function Qj(t, e) {
|
|
14664
14664
|
return t && e ? t.top !== e.top || t.right !== e.right || t.bottom !== e.bottom || t.left !== e.left : !0;
|
14665
14665
|
}
|
14666
14666
|
hf.setDefaultProps({
|
14667
|
-
render:
|
14667
|
+
render: F_
|
14668
14668
|
});
|
14669
14669
|
class O0e {
|
14670
14670
|
constructor({ editor: e, element: n, view: r, tippyOptions: i = {}, updateDelay: a = 250, shouldShow: s }) {
|
@@ -14760,7 +14760,7 @@ class O0e {
|
|
14760
14760
|
!((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (n = this.tippy) === null || n === void 0 || n.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
14761
14761
|
}
|
14762
14762
|
}
|
14763
|
-
const
|
14763
|
+
const V_ = (t) => new pn({
|
14764
14764
|
key: typeof t.pluginKey == "string" ? new Cn(t.pluginKey) : t.pluginKey,
|
14765
14765
|
view: (e) => new O0e({ view: e, ...t })
|
14766
14766
|
});
|
@@ -14777,7 +14777,7 @@ un.create({
|
|
14777
14777
|
},
|
14778
14778
|
addProseMirrorPlugins() {
|
14779
14779
|
return this.options.element ? [
|
14780
|
-
|
14780
|
+
V_({
|
14781
14781
|
pluginKey: this.options.pluginKey,
|
14782
14782
|
editor: this.editor,
|
14783
14783
|
element: this.options.element,
|
@@ -15219,7 +15219,7 @@ function X0e(t) {
|
|
15219
15219
|
return J0e(() => n.watch(t.editor), [t.editor, n]), LF(r), r;
|
15220
15220
|
}
|
15221
15221
|
const nD = process.env.NODE_ENV !== "production", zk = typeof window > "u", $0e = zk || !!(typeof window < "u" && window.next);
|
15222
|
-
class
|
15222
|
+
class SA {
|
15223
15223
|
constructor(e) {
|
15224
15224
|
this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = e, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
|
15225
15225
|
}
|
@@ -15285,7 +15285,7 @@ class AA {
|
|
15285
15285
|
return (a = (i = this.options.current).onPaste) === null || a === void 0 ? void 0 : a.call(i, ...r);
|
15286
15286
|
}
|
15287
15287
|
};
|
15288
|
-
return new
|
15288
|
+
return new gA(e);
|
15289
15289
|
}
|
15290
15290
|
/**
|
15291
15291
|
* Get the current editor instance.
|
@@ -15319,7 +15319,7 @@ class AA {
|
|
15319
15319
|
* @returns A cleanup function
|
15320
15320
|
*/
|
15321
15321
|
onRender(e) {
|
15322
|
-
return () => (this.isComponentMounted = !0, clearTimeout(this.scheduledDestructionTimeout), this.editor && !this.editor.isDestroyed && e.length === 0 ?
|
15322
|
+
return () => (this.isComponentMounted = !0, clearTimeout(this.scheduledDestructionTimeout), this.editor && !this.editor.isDestroyed && e.length === 0 ? SA.compareOptions(this.options.current, this.editor.options) || this.editor.setOptions({
|
15323
15323
|
...this.options.current,
|
15324
15324
|
editable: this.editor.isEditable
|
15325
15325
|
}) : this.refreshEditorInstance(e), () => {
|
@@ -15356,10 +15356,10 @@ class AA {
|
|
15356
15356
|
}, 1);
|
15357
15357
|
}
|
15358
15358
|
}
|
15359
|
-
function
|
15359
|
+
function __(t = {}, e = []) {
|
15360
15360
|
const n = Xe(t);
|
15361
15361
|
n.current = t;
|
15362
|
-
const [r] = Re(() => new
|
15362
|
+
const [r] = Re(() => new SA(n)), i = _8.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
15363
15363
|
return LF(i), He(r.onRender(e)), X0e({
|
15364
15364
|
editor: i,
|
15365
15365
|
selector: ({ transactionNumber: a }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && a === 0 ? 0 : a + 1
|
@@ -15380,7 +15380,7 @@ const e1e = () => Et(q_), LA = (t) => {
|
|
15380
15380
|
console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");
|
15381
15381
|
return;
|
15382
15382
|
}
|
15383
|
-
const f =
|
15383
|
+
const f = V_({
|
15384
15384
|
updateDelay: l,
|
15385
15385
|
editor: u,
|
15386
15386
|
element: e,
|
@@ -140132,7 +140132,7 @@ const Gw = CC.getInstance(), Dzt = (t) => ({
|
|
140132
140132
|
}
|
140133
140133
|
}
|
140134
140134
|
}
|
140135
|
-
}, fe =
|
140135
|
+
}, fe = __(
|
140136
140136
|
{
|
140137
140137
|
extensions: W,
|
140138
140138
|
editorProps: {
|
@@ -145867,7 +145867,7 @@ const MF = ({
|
|
145867
145867
|
}) => {
|
145868
145868
|
const [d, h] = Re(!1), [p, m] = Re(0), [g, v] = Re({}), [k, b] = Re(!0), { isNativeMobile: w } = E2(), [x, C] = Re(null), [L, S] = Re(null), I = 50, [D, O] = Re(
|
145869
145869
|
"forward"
|
145870
|
-
), F =
|
145870
|
+
), F = __(
|
145871
145871
|
{
|
145872
145872
|
extensions: t.extensionManager.extensions.filter(
|
145873
145873
|
(Y) => Y.name !== "collaboration"
|
@@ -145916,7 +145916,7 @@ const MF = ({
|
|
145916
145916
|
}, [t]), He(() => {
|
145917
145917
|
const Y = {};
|
145918
145918
|
return u.forEach((se, de) => {
|
145919
|
-
Y[de] = new
|
145919
|
+
Y[de] = new gA({
|
145920
145920
|
extensions: t.extensionManager.extensions.filter(
|
145921
145921
|
(ae) => ae.name !== "collaboration"
|
145922
145922
|
),
|
@@ -147519,26 +147519,21 @@ const MF = ({
|
|
147519
147519
|
Fee.configure({
|
147520
147520
|
document: t
|
147521
147521
|
})
|
147522
|
-
]), n =
|
147523
|
-
|
147524
|
-
|
147525
|
-
|
147526
|
-
shouldRerenderOnTransaction: !0,
|
147527
|
-
immediatelyRender: !1
|
147528
|
-
},
|
147529
|
-
[e]
|
147530
|
-
), r = (s) => Array.isArray(s) || typeof s == "string" && !Dre(s), i = (s) => {
|
147522
|
+
]), n = () => new gA({
|
147523
|
+
extensions: e,
|
147524
|
+
autofocus: !1
|
147525
|
+
}), r = (s) => Array.isArray(s) || typeof s == "string" && !Dre(s), i = (s) => {
|
147531
147526
|
const o = s.map((l) => j4(l));
|
147532
147527
|
of(t, g7(o));
|
147533
147528
|
};
|
147534
|
-
return {
|
147535
|
-
if (!
|
147536
|
-
r(s) ? Array.isArray(s) ? i(s) : of(t, j4(s)) :
|
147529
|
+
return { setContent: (s, o) => {
|
147530
|
+
if (!o) throw new Error("cannot set content without editor");
|
147531
|
+
r(s) ? Array.isArray(s) ? i(s) : of(t, j4(s)) : o.commands.setContent(
|
147537
147532
|
Ire({
|
147538
147533
|
data: s
|
147539
147534
|
})
|
147540
147535
|
);
|
147541
|
-
} };
|
147536
|
+
}, getEditor: n };
|
147542
147537
|
};
|
147543
147538
|
export {
|
147544
147539
|
hqt as DdocEditor,
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { JSONContent } from '@tiptap/react';
|
1
|
+
import { Editor, JSONContent } from '@tiptap/react';
|
2
2
|
|
3
3
|
export declare const useHeadlessEditor: () => {
|
4
|
-
|
5
|
-
|
4
|
+
setContent: (initialContent: string | string[] | JSONContent, editor: Editor) => void;
|
5
|
+
getEditor: () => Editor;
|
6
6
|
};
|