@fileverse-dev/ddoc 1.1.7 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -0
- package/dist/index.es.js +122 -110
- package/dist/index.umd.js +2 -2
- package/dist/packages/ddoc/ddoc-editor.d.ts +1 -1
- package/dist/packages/ddoc/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -2,7 +2,7 @@ var bw = Object.defineProperty;
|
|
2
2
|
var vw = (n, e, t) => e in n ? bw(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
3
3
|
var sr = (n, e, t) => (vw(n, typeof e != "symbol" ? e + "" : e, t), t);
|
4
4
|
import * as oe from "react";
|
5
|
-
import Oe, { forwardRef as ut, createContext as ms, useContext as qo, useRef as Re, useState as xe, useEffect as
|
5
|
+
import Oe, { forwardRef as ut, createContext as ms, useContext as qo, useRef as Re, useState as xe, useEffect as ke, createElement as Be, useCallback as Ot, useLayoutEffect as dc, useMemo as Ir, Children as rs, isValidElement as Zl, cloneElement as Ko, Fragment as ww, useReducer as xw } from "react";
|
6
6
|
import * as kw from "react-dom";
|
7
7
|
import Cw, { flushSync as sf, createPortal as Sw } from "react-dom";
|
8
8
|
var Ln = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
@@ -140,9 +140,9 @@ function Tw() {
|
|
140
140
|
return null;
|
141
141
|
}
|
142
142
|
var H = Object.assign, z = 0, K, J, re, Z, ve, Pe, $e;
|
143
|
-
function
|
143
|
+
function Ce() {
|
144
144
|
}
|
145
|
-
|
145
|
+
Ce.__reactDisabledLog = !0;
|
146
146
|
function me() {
|
147
147
|
{
|
148
148
|
if (z === 0) {
|
@@ -150,7 +150,7 @@ function Tw() {
|
|
150
150
|
var D = {
|
151
151
|
configurable: !0,
|
152
152
|
enumerable: !0,
|
153
|
-
value:
|
153
|
+
value: Ce,
|
154
154
|
writable: !0
|
155
155
|
};
|
156
156
|
Object.defineProperties(console, {
|
@@ -268,17 +268,17 @@ function Tw() {
|
|
268
268
|
}
|
269
269
|
} catch (Ut) {
|
270
270
|
if (Ut && de && typeof Ut.stack == "string") {
|
271
|
-
for (var
|
271
|
+
for (var Se = Ut.stack.split(`
|
272
272
|
`), Ft = de.stack.split(`
|
273
|
-
`), at =
|
273
|
+
`), at = Se.length - 1, ft = Ft.length - 1; at >= 1 && ft >= 0 && Se[at] !== Ft[ft]; )
|
274
274
|
ft--;
|
275
275
|
for (; at >= 1 && ft >= 0; at--, ft--)
|
276
|
-
if (
|
276
|
+
if (Se[at] !== Ft[ft]) {
|
277
277
|
if (at !== 1 || ft !== 1)
|
278
278
|
do
|
279
|
-
if (at--, ft--, ft < 0 ||
|
279
|
+
if (at--, ft--, ft < 0 || Se[at] !== Ft[ft]) {
|
280
280
|
var an = `
|
281
|
-
` +
|
281
|
+
` + Se[at].replace(" at new ", " at ");
|
282
282
|
return D.displayName && an.includes("<anonymous>") && (an = an.replace("<anonymous>", D.displayName)), typeof D == "function" && Ye.set(D, an), an;
|
283
283
|
}
|
284
284
|
while (at >= 1 && ft >= 0);
|
@@ -340,17 +340,17 @@ function Tw() {
|
|
340
340
|
var He = Function.call.bind($);
|
341
341
|
for (var Ae in D)
|
342
342
|
if (He(D, Ae)) {
|
343
|
-
var
|
343
|
+
var Se = void 0;
|
344
344
|
try {
|
345
345
|
if (typeof D[Ae] != "function") {
|
346
346
|
var Ft = Error((de || "React class") + ": " + X + " type `" + Ae + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof D[Ae] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
347
347
|
throw Ft.name = "Invariant Violation", Ft;
|
348
348
|
}
|
349
|
-
|
349
|
+
Se = D[Ae](q, Ae, de, X, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
350
350
|
} catch (at) {
|
351
|
-
|
351
|
+
Se = at;
|
352
352
|
}
|
353
|
-
|
353
|
+
Se && !(Se instanceof Error) && (M(Ie), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", de || "React class", X, Ae, typeof Se), M(null)), Se instanceof Error && !(Se.message in W) && (W[Se.message] = !0, M(Ie), S("Failed %s type: %s", X, Se.message), M(null));
|
354
354
|
}
|
355
355
|
}
|
356
356
|
}
|
@@ -430,7 +430,7 @@ function Tw() {
|
|
430
430
|
}
|
431
431
|
}
|
432
432
|
var De = function(D, q, X, de, Ie, He, Ae) {
|
433
|
-
var
|
433
|
+
var Se = {
|
434
434
|
// This tag allows us to uniquely identify this as a React Element
|
435
435
|
$$typeof: e,
|
436
436
|
// Built-in properties that belong on the element
|
@@ -441,27 +441,27 @@ function Tw() {
|
|
441
441
|
// Record the component responsible for creating this element.
|
442
442
|
_owner: He
|
443
443
|
};
|
444
|
-
return
|
444
|
+
return Se._store = {}, Object.defineProperty(Se._store, "validated", {
|
445
445
|
configurable: !1,
|
446
446
|
enumerable: !1,
|
447
447
|
writable: !0,
|
448
448
|
value: !1
|
449
|
-
}), Object.defineProperty(
|
449
|
+
}), Object.defineProperty(Se, "_self", {
|
450
450
|
configurable: !1,
|
451
451
|
enumerable: !1,
|
452
452
|
writable: !1,
|
453
453
|
value: de
|
454
|
-
}), Object.defineProperty(
|
454
|
+
}), Object.defineProperty(Se, "_source", {
|
455
455
|
configurable: !1,
|
456
456
|
enumerable: !1,
|
457
457
|
writable: !1,
|
458
458
|
value: Ie
|
459
|
-
}), Object.freeze && (Object.freeze(
|
459
|
+
}), Object.freeze && (Object.freeze(Se.props), Object.freeze(Se)), Se;
|
460
460
|
};
|
461
461
|
function Ee(D, q, X, de, Ie) {
|
462
462
|
{
|
463
|
-
var He, Ae = {},
|
464
|
-
X !== void 0 && (te(X),
|
463
|
+
var He, Ae = {}, Se = null, Ft = null;
|
464
|
+
X !== void 0 && (te(X), Se = "" + X), Dn(q) && (te(q.key), Se = "" + q.key), xn(q) && (Ft = q.ref, V(q, Ie));
|
465
465
|
for (He in q)
|
466
466
|
$.call(q, He) && !Ne.hasOwnProperty(He) && (Ae[He] = q[He]);
|
467
467
|
if (D && D.defaultProps) {
|
@@ -469,11 +469,11 @@ function Tw() {
|
|
469
469
|
for (He in at)
|
470
470
|
Ae[He] === void 0 && (Ae[He] = at[He]);
|
471
471
|
}
|
472
|
-
if (
|
472
|
+
if (Se || Ft) {
|
473
473
|
var ft = typeof D == "function" ? D.displayName || D.name || "Unknown" : D;
|
474
|
-
|
474
|
+
Se && Q(Ae, ft), Ft && se(Ae, ft);
|
475
475
|
}
|
476
|
-
return De(D,
|
476
|
+
return De(D, Se, Ft, Ie, de, ue.current, Ae);
|
477
477
|
}
|
478
478
|
}
|
479
479
|
var mt = w.ReactCurrentOwner, Pt = w.ReactDebugCurrentFrame;
|
@@ -591,12 +591,12 @@ Check the top-level render call using <` + X + ">.");
|
|
591
591
|
{
|
592
592
|
var Ae = A(D);
|
593
593
|
if (!Ae) {
|
594
|
-
var
|
595
|
-
(D === void 0 || typeof D == "object" && D !== null && Object.keys(D).length === 0) && (
|
594
|
+
var Se = "";
|
595
|
+
(D === void 0 || typeof D == "object" && D !== null && Object.keys(D).length === 0) && (Se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
596
596
|
var Ft = $i();
|
597
|
-
Ft ?
|
597
|
+
Ft ? Se += Ft : Se += Bi();
|
598
598
|
var at;
|
599
|
-
D === null ? at = "null" : k(D) ? at = "array" : D !== void 0 && D.$$typeof === e ? (at = "<" + (B(D.type) || "Unknown") + " />",
|
599
|
+
D === null ? at = "null" : k(D) ? at = "array" : D !== void 0 && D.$$typeof === e ? (at = "<" + (B(D.type) || "Unknown") + " />", Se = " Did you accidentally export a JSX literal instead of a component?") : at = typeof D, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", at, Se);
|
600
600
|
}
|
601
601
|
var ft = Ee(D, q, X, Ie, He);
|
602
602
|
if (ft == null)
|
@@ -13078,8 +13078,8 @@ function fE(n) {
|
|
13078
13078
|
if (Fe)
|
13079
13079
|
return O = Fe, "break";
|
13080
13080
|
}, $e = ve; $e > 0; $e--) {
|
13081
|
-
var
|
13082
|
-
if (
|
13081
|
+
var Ce = Pe($e);
|
13082
|
+
if (Ce === "break")
|
13083
13083
|
break;
|
13084
13084
|
}
|
13085
13085
|
e.placement !== O && (e.modifiersData[r]._skip = !0, e.placement = O, e.reset = !0);
|
@@ -13198,7 +13198,7 @@ function kE(n) {
|
|
13198
13198
|
};
|
13199
13199
|
if (E) {
|
13200
13200
|
if (s) {
|
13201
|
-
var B, H = y === "y" ? Jt : Gt, z = y === "y" ? bn : vn, K = y === "y" ? "height" : "width", J = E[y], re = J + v[H], Z = J - v[z], ve = h ? -R[K] / 2 : 0, Pe = S === xs ? T[K] : R[K], $e = S === xs ? -R[K] : -T[K],
|
13201
|
+
var B, H = y === "y" ? Jt : Gt, z = y === "y" ? bn : vn, K = y === "y" ? "height" : "width", J = E[y], re = J + v[H], Z = J - v[z], ve = h ? -R[K] / 2 : 0, Pe = S === xs ? T[K] : R[K], $e = S === xs ? -R[K] : -T[K], Ce = e.elements.arrow, me = h && Ce ? Nf(Ce) : {
|
13202
13202
|
width: 0,
|
13203
13203
|
height: 0
|
13204
13204
|
}, Le = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : My(), Fe = Le[H], nt = Le[z], rt = io(0, T[K], me[K]), Ge = x ? T[K] / 2 - ve - rt - Fe - A.mainAxis : Pe - rt - Fe - A.mainAxis, Ye = x ? -T[K] / 2 + ve + rt + nt + A.mainAxis : $e + rt + nt + A.mainAxis, Nt = e.elements.arrow && el(e.elements.arrow), yt = Nt ? y === "y" ? Nt.clientTop || 0 : Nt.clientLeft || 0 : 0, lt = (B = N == null ? void 0 : N[y]) != null ? B : 0, dt = J + Ge - lt - yt, F = J + Ye - lt, $ = io(h ? fa(re, dt) : re, J, h ? gi(Z, F) : Z);
|
@@ -13897,7 +13897,7 @@ function aT(n, e) {
|
|
13897
13897
|
}
|
13898
13898
|
}
|
13899
13899
|
}
|
13900
|
-
function
|
13900
|
+
function Ce() {
|
13901
13901
|
a = !0;
|
13902
13902
|
}
|
13903
13903
|
function me() {
|
@@ -13905,11 +13905,11 @@ function aT(n, e) {
|
|
13905
13905
|
}
|
13906
13906
|
function Le() {
|
13907
13907
|
var V = H();
|
13908
|
-
V.addEventListener("mousedown", $e, !0), V.addEventListener("touchend", $e, ri), V.addEventListener("touchstart", me, ri), V.addEventListener("touchmove",
|
13908
|
+
V.addEventListener("mousedown", $e, !0), V.addEventListener("touchend", $e, ri), V.addEventListener("touchstart", me, ri), V.addEventListener("touchmove", Ce, ri);
|
13909
13909
|
}
|
13910
13910
|
function Fe() {
|
13911
13911
|
var V = H();
|
13912
|
-
V.removeEventListener("mousedown", $e, !0), V.removeEventListener("touchend", $e, ri), V.removeEventListener("touchstart", me, ri), V.removeEventListener("touchmove",
|
13912
|
+
V.removeEventListener("mousedown", $e, !0), V.removeEventListener("touchend", $e, ri), V.removeEventListener("touchstart", me, ri), V.removeEventListener("touchmove", Ce, ri);
|
13913
13913
|
}
|
13914
13914
|
function nt(V, Q) {
|
13915
13915
|
Ge(V, function() {
|
@@ -14448,9 +14448,9 @@ class gT extends TS {
|
|
14448
14448
|
}
|
14449
14449
|
const yT = (n = {}, e = []) => {
|
14450
14450
|
const t = Re(null), [, r] = xe({}), { onBeforeCreate: i, onBlur: s, onCreate: o, onDestroy: l, onFocus: a, onSelectionUpdate: c, onTransaction: u, onUpdate: d } = n, f = Re(i), h = Re(s), p = Re(o), g = Re(l), v = Re(a), w = Re(c), S = Re(u), x = Re(d);
|
14451
|
-
return
|
14451
|
+
return ke(() => {
|
14452
14452
|
t.current && (i && (t.current.off("beforeCreate", f.current), t.current.on("beforeCreate", i), f.current = i), s && (t.current.off("blur", h.current), t.current.on("blur", s), h.current = s), o && (t.current.off("create", p.current), t.current.on("create", o), p.current = o), l && (t.current.off("destroy", g.current), t.current.on("destroy", l), g.current = l), a && (t.current.off("focus", v.current), t.current.on("focus", a), v.current = a), c && (t.current.off("selectionUpdate", w.current), t.current.on("selectionUpdate", c), w.current = c), u && (t.current.off("transaction", S.current), t.current.on("transaction", u), S.current = u), d && (t.current.off("update", x.current), t.current.on("update", d), x.current = d));
|
14453
|
-
}, [i, s, o, l, a, c, u, d, t.current]),
|
14453
|
+
}, [i, s, o, l, a, c, u, d, t.current]), ke(() => {
|
14454
14454
|
let y = !0;
|
14455
14455
|
const C = new gT(n);
|
14456
14456
|
return t.current = C, t.current.on("transaction", () => {
|
@@ -14469,7 +14469,7 @@ const yT = (n = {}, e = []) => {
|
|
14469
14469
|
Wy.Consumer;
|
14470
14470
|
const bT = () => qo(Wy), qy = (n) => {
|
14471
14471
|
const [e, t] = xe(null), { editor: r } = bT();
|
14472
|
-
return
|
14472
|
+
return ke(() => {
|
14473
14473
|
var i;
|
14474
14474
|
if (!e || !((i = n.editor) === null || i === void 0) && i.isDestroyed || r != null && r.isDestroyed)
|
14475
14475
|
return;
|
@@ -15325,7 +15325,7 @@ function qT(n) {
|
|
15325
15325
|
/* NONE */
|
15326
15326
|
);
|
15327
15327
|
};
|
15328
|
-
return
|
15328
|
+
return ke(() => (document.addEventListener("click", i, !0), () => {
|
15329
15329
|
document.removeEventListener("click", i, !0);
|
15330
15330
|
}), []), { ref: r, toolVisibilty: e, setToolVisibility: t };
|
15331
15331
|
}
|
@@ -16370,7 +16370,7 @@ const ya = Oe.forwardRef(
|
|
16370
16370
|
...l
|
16371
16371
|
}, a) => {
|
16372
16372
|
const c = Ve(
|
16373
|
-
"flex group items-center justify-center border border-transparent gap-2 text-sm font-semibold rounded
|
16373
|
+
"flex group items-center justify-center border border-transparent gap-2 text-sm font-semibold rounded disabled:opacity-50 whitespace-nowrap",
|
16374
16374
|
i === "primary" && Ve(
|
16375
16375
|
"text-white bg-black border-black dark:text-black dark:bg-white dark:border-white",
|
16376
16376
|
!r && !n && "hover:bg-neutral-800 active:bg-neutral-900 dark:hover:bg-neutral-200 dark:active:bg-neutral-300",
|
@@ -23128,7 +23128,7 @@ var j1 = { exports: {} };
|
|
23128
23128
|
P += a(L[j] + 256 * L[j + 1]);
|
23129
23129
|
return P;
|
23130
23130
|
}
|
23131
|
-
function
|
23131
|
+
function Ce(m, b, k) {
|
23132
23132
|
if (m % 1 != 0 || 0 > m)
|
23133
23133
|
throw new RangeError("offset is not uint");
|
23134
23134
|
if (m + b > k)
|
@@ -23403,57 +23403,57 @@ var j1 = { exports: {} };
|
|
23403
23403
|
var L = this.subarray(m, b);
|
23404
23404
|
return L.__proto__ = d.prototype, L;
|
23405
23405
|
}, d.prototype.readUIntLE = function(m, b, k) {
|
23406
|
-
m >>>= 0, b >>>= 0, k ||
|
23406
|
+
m >>>= 0, b >>>= 0, k || Ce(m, b, this.length);
|
23407
23407
|
for (var L = this[m], P = 1, j = 0; ++j < b && (P *= 256); )
|
23408
23408
|
L += this[m + j] * P;
|
23409
23409
|
return L;
|
23410
23410
|
}, d.prototype.readUIntBE = function(m, b, k) {
|
23411
|
-
m >>>= 0, b >>>= 0, k ||
|
23411
|
+
m >>>= 0, b >>>= 0, k || Ce(m, b, this.length);
|
23412
23412
|
for (var L = this[m + --b], P = 1; 0 < b && (P *= 256); )
|
23413
23413
|
L += this[m + --b] * P;
|
23414
23414
|
return L;
|
23415
23415
|
}, d.prototype.readUInt8 = function(m, b) {
|
23416
|
-
return m >>>= 0, b ||
|
23416
|
+
return m >>>= 0, b || Ce(m, 1, this.length), this[m];
|
23417
23417
|
}, d.prototype.readUInt16LE = function(m, b) {
|
23418
|
-
return m >>>= 0, b ||
|
23418
|
+
return m >>>= 0, b || Ce(m, 2, this.length), this[m] | this[m + 1] << 8;
|
23419
23419
|
}, d.prototype.readUInt16BE = function(m, b) {
|
23420
|
-
return m >>>= 0, b ||
|
23420
|
+
return m >>>= 0, b || Ce(m, 2, this.length), this[m] << 8 | this[m + 1];
|
23421
23421
|
}, d.prototype.readUInt32LE = function(m, b) {
|
23422
|
-
return m >>>= 0, b ||
|
23422
|
+
return m >>>= 0, b || Ce(m, 4, this.length), (this[m] | this[m + 1] << 8 | this[m + 2] << 16) + 16777216 * this[m + 3];
|
23423
23423
|
}, d.prototype.readUInt32BE = function(m, b) {
|
23424
|
-
return m >>>= 0, b ||
|
23424
|
+
return m >>>= 0, b || Ce(m, 4, this.length), 16777216 * this[m] + (this[m + 1] << 16 | this[m + 2] << 8 | this[m + 3]);
|
23425
23425
|
}, d.prototype.readIntLE = function(m, b, k) {
|
23426
|
-
m >>>= 0, b >>>= 0, k ||
|
23426
|
+
m >>>= 0, b >>>= 0, k || Ce(m, b, this.length);
|
23427
23427
|
for (var L = this[m], P = 1, j = 0; ++j < b && (P *= 256); )
|
23428
23428
|
L += this[m + j] * P;
|
23429
23429
|
return P *= 128, L >= P && (L -= i(2, 8 * b)), L;
|
23430
23430
|
}, d.prototype.readIntBE = function(m, b, k) {
|
23431
|
-
m >>>= 0, b >>>= 0, k ||
|
23431
|
+
m >>>= 0, b >>>= 0, k || Ce(m, b, this.length);
|
23432
23432
|
for (var L = b, P = 1, j = this[m + --L]; 0 < L && (P *= 256); )
|
23433
23433
|
j += this[m + --L] * P;
|
23434
23434
|
return P *= 128, j >= P && (j -= i(2, 8 * b)), j;
|
23435
23435
|
}, d.prototype.readInt8 = function(m, b) {
|
23436
|
-
return m >>>= 0, b ||
|
23436
|
+
return m >>>= 0, b || Ce(m, 1, this.length), 128 & this[m] ? -1 * (255 - this[m] + 1) : this[m];
|
23437
23437
|
}, d.prototype.readInt16LE = function(m, b) {
|
23438
|
-
m >>>= 0, b ||
|
23438
|
+
m >>>= 0, b || Ce(m, 2, this.length);
|
23439
23439
|
var k = this[m] | this[m + 1] << 8;
|
23440
23440
|
return 32768 & k ? 4294901760 | k : k;
|
23441
23441
|
}, d.prototype.readInt16BE = function(m, b) {
|
23442
|
-
m >>>= 0, b ||
|
23442
|
+
m >>>= 0, b || Ce(m, 2, this.length);
|
23443
23443
|
var k = this[m + 1] | this[m] << 8;
|
23444
23444
|
return 32768 & k ? 4294901760 | k : k;
|
23445
23445
|
}, d.prototype.readInt32LE = function(m, b) {
|
23446
|
-
return m >>>= 0, b ||
|
23446
|
+
return m >>>= 0, b || Ce(m, 4, this.length), this[m] | this[m + 1] << 8 | this[m + 2] << 16 | this[m + 3] << 24;
|
23447
23447
|
}, d.prototype.readInt32BE = function(m, b) {
|
23448
|
-
return m >>>= 0, b ||
|
23448
|
+
return m >>>= 0, b || Ce(m, 4, this.length), this[m] << 24 | this[m + 1] << 16 | this[m + 2] << 8 | this[m + 3];
|
23449
23449
|
}, d.prototype.readFloatLE = function(m, b) {
|
23450
|
-
return m >>>= 0, b ||
|
23450
|
+
return m >>>= 0, b || Ce(m, 4, this.length), ee.read(this, m, !0, 23, 4);
|
23451
23451
|
}, d.prototype.readFloatBE = function(m, b) {
|
23452
|
-
return m >>>= 0, b ||
|
23452
|
+
return m >>>= 0, b || Ce(m, 4, this.length), ee.read(this, m, !1, 23, 4);
|
23453
23453
|
}, d.prototype.readDoubleLE = function(m, b) {
|
23454
|
-
return m >>>= 0, b ||
|
23454
|
+
return m >>>= 0, b || Ce(m, 8, this.length), ee.read(this, m, !0, 52, 8);
|
23455
23455
|
}, d.prototype.readDoubleBE = function(m, b) {
|
23456
|
-
return m >>>= 0, b ||
|
23456
|
+
return m >>>= 0, b || Ce(m, 8, this.length), ee.read(this, m, !1, 52, 8);
|
23457
23457
|
}, d.prototype.writeUIntLE = function(m, b, k, L) {
|
23458
23458
|
if (m = +m, b >>>= 0, k >>>= 0, !L) {
|
23459
23459
|
var P = i(2, 8 * k) - 1;
|
@@ -24204,7 +24204,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
24204
24204
|
return $e.from(M);
|
24205
24205
|
}
|
24206
24206
|
function u(M) {
|
24207
|
-
return $e.isBuffer(M) || M instanceof
|
24207
|
+
return $e.isBuffer(M) || M instanceof Ce;
|
24208
24208
|
}
|
24209
24209
|
function d(M, m, b) {
|
24210
24210
|
return typeof M.prependListener == "function" ? M.prependListener(m, b) : void (M._events && M._events[m] ? Array.isArray(M._events[m]) ? M._events[m].unshift(b) : M._events[m] = [b, M._events[m]] : M.on(m, b));
|
@@ -24335,7 +24335,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
24335
24335
|
s("events").EventEmitter;
|
24336
24336
|
var ve = function(M, m) {
|
24337
24337
|
return M.listeners(m).length;
|
24338
|
-
}, Pe = s("./internal/streams/stream"), $e = s("buffer").Buffer,
|
24338
|
+
}, Pe = s("./internal/streams/stream"), $e = s("buffer").Buffer, Ce = a.Uint8Array || function() {
|
24339
24339
|
}, me = s("util");
|
24340
24340
|
Z = me && me.debuglog ? me.debuglog("stream") : function() {
|
24341
24341
|
};
|
@@ -24557,7 +24557,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
24557
24557
|
function f() {
|
24558
24558
|
}
|
24559
24559
|
function h(F, $, W) {
|
24560
|
-
K = K || s("./_stream_duplex"), F = F || {}, typeof W != "boolean" && (W = $ instanceof K), this.objectMode = !!F.objectMode, W && (this.objectMode = this.objectMode || !!F.writableObjectMode), this.highWaterMark =
|
24560
|
+
K = K || s("./_stream_duplex"), F = F || {}, typeof W != "boolean" && (W = $ instanceof K), this.objectMode = !!F.objectMode, W && (this.objectMode = this.objectMode || !!F.writableObjectMode), this.highWaterMark = Ce(this, F, "writableHighWaterMark", W), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
24561
24561
|
var ee = F.decodeStrings === !1;
|
24562
24562
|
this.decodeStrings = !ee, this.defaultEncoding = F.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(M) {
|
24563
24563
|
E($, M);
|
@@ -24673,7 +24673,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
24673
24673
|
var K;
|
24674
24674
|
p.WritableState = h;
|
24675
24675
|
var J = { deprecate: s("util-deprecate") }, re = s("./internal/streams/stream"), Z = s("buffer").Buffer, ve = a.Uint8Array || function() {
|
24676
|
-
}, Pe = s("./internal/streams/destroy"), $e = s("./internal/streams/state"),
|
24676
|
+
}, Pe = s("./internal/streams/destroy"), $e = s("./internal/streams/state"), Ce = $e.getHighWaterMark, me = s("../errors").codes, Le = me.ERR_INVALID_ARG_TYPE, Fe = me.ERR_METHOD_NOT_IMPLEMENTED, nt = me.ERR_MULTIPLE_CALLBACK, rt = me.ERR_STREAM_CANNOT_PIPE, Ge = me.ERR_STREAM_DESTROYED, Ye = me.ERR_STREAM_NULL_VALUES, Nt = me.ERR_STREAM_WRITE_AFTER_END, yt = me.ERR_UNKNOWN_ENCODING, lt = Pe.errorOrDestroy;
|
24677
24677
|
s("inherits")(p, re), h.prototype.getBuffer = function() {
|
24678
24678
|
for (var F = this.bufferedRequest, $ = []; F; )
|
24679
24679
|
$.push(F), F = F.next;
|
@@ -30201,7 +30201,7 @@ const j_ = Je.create({
|
|
30201
30201
|
},
|
30202
30202
|
[e, t, n]
|
30203
30203
|
);
|
30204
|
-
|
30204
|
+
ke(() => {
|
30205
30205
|
const l = ["ArrowUp", "ArrowDown", "Enter"], a = (c) => {
|
30206
30206
|
if (l.includes(c.key))
|
30207
30207
|
return c.preventDefault(), c.key === "ArrowUp" ? (i((r + n.length - 1) % n.length), !0) : c.key === "ArrowDown" ? (i((r + 1) % n.length), !0) : c.key === "Enter" ? (s(r), !0) : !1;
|
@@ -30209,7 +30209,7 @@ const j_ = Je.create({
|
|
30209
30209
|
return document.addEventListener("keydown", a), () => {
|
30210
30210
|
document.removeEventListener("keydown", a);
|
30211
30211
|
};
|
30212
|
-
}, [n, r, i, s]),
|
30212
|
+
}, [n, r, i, s]), ke(() => {
|
30213
30213
|
i(0);
|
30214
30214
|
}, [n]);
|
30215
30215
|
const o = Re(null);
|
@@ -30410,7 +30410,7 @@ const gv = ({
|
|
30410
30410
|
}, w = (I) => {
|
30411
30411
|
qi = I;
|
30412
30412
|
};
|
30413
|
-
|
30413
|
+
ke(() => {
|
30414
30414
|
v();
|
30415
30415
|
}, []);
|
30416
30416
|
const S = ({ width: I, height: B }) => I < 200 || B < 200, x = (I) => {
|
@@ -30448,7 +30448,7 @@ const gv = ({
|
|
30448
30448
|
E(z, Math.abs(H)), qi = B;
|
30449
30449
|
});
|
30450
30450
|
}, [R, O] = xe(), [A, N] = xe();
|
30451
|
-
return
|
30451
|
+
return ke(() => {
|
30452
30452
|
s(n.attrs["media-type"]), g(), O(n.attrs.dataFloat), N(n.attrs.dataAlign);
|
30453
30453
|
}, [n.attrs]), /* @__PURE__ */ _.jsx(
|
30454
30454
|
tl,
|
@@ -30627,7 +30627,7 @@ var X_ = "https://platform.twitter.com/widgets.js", Du = "createTweet", Q_ = fun
|
|
30627
30627
|
};
|
30628
30628
|
const eN = ({ node: n, editor: e }) => {
|
30629
30629
|
const [t, r] = xe(!0);
|
30630
|
-
return
|
30630
|
+
return ke(() => {
|
30631
30631
|
e == null || e.chain().focus();
|
30632
30632
|
}, []), /* @__PURE__ */ _.jsx(
|
30633
30633
|
tl,
|
@@ -31076,7 +31076,7 @@ const dN = [
|
|
31076
31076
|
], js = dN.reduce((n, e) => {
|
31077
31077
|
const t = /* @__PURE__ */ ut((r, i) => {
|
31078
31078
|
const { asChild: s, ...o } = r, l = s ? Th : e;
|
31079
|
-
return
|
31079
|
+
return ke(() => {
|
31080
31080
|
window[Symbol.for("radix-ui")] = !0;
|
31081
31081
|
}, []), /* @__PURE__ */ Be(l, _t({}, o, {
|
31082
31082
|
ref: i
|
@@ -31094,7 +31094,7 @@ function fN(n, e) {
|
|
31094
31094
|
}
|
31095
31095
|
function Jr(n) {
|
31096
31096
|
const e = Re(n);
|
31097
|
-
return
|
31097
|
+
return ke(() => {
|
31098
31098
|
e.current = n;
|
31099
31099
|
}), Ir(
|
31100
31100
|
() => (...t) => {
|
@@ -31106,7 +31106,7 @@ function Jr(n) {
|
|
31106
31106
|
}
|
31107
31107
|
function hN(n, e = globalThis == null ? void 0 : globalThis.document) {
|
31108
31108
|
const t = Jr(n);
|
31109
|
-
|
31109
|
+
ke(() => {
|
31110
31110
|
const r = (i) => {
|
31111
31111
|
i.key === "Escape" && t(i);
|
31112
31112
|
};
|
@@ -31146,7 +31146,7 @@ const gN = /* @__PURE__ */ ms({
|
|
31146
31146
|
}, h);
|
31147
31147
|
return hN((R) => {
|
31148
31148
|
x === u.layers.size - 1 && (i == null || i(R), !R.defaultPrevented && a && (R.preventDefault(), a()));
|
31149
|
-
}, h),
|
31149
|
+
}, h), ke(() => {
|
31150
31150
|
if (d)
|
31151
31151
|
return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (fg = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), hg(), () => {
|
31152
31152
|
r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = fg);
|
@@ -31156,12 +31156,12 @@ const gN = /* @__PURE__ */ ms({
|
|
31156
31156
|
h,
|
31157
31157
|
r,
|
31158
31158
|
u
|
31159
|
-
]),
|
31159
|
+
]), ke(() => () => {
|
31160
31160
|
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), hg());
|
31161
31161
|
}, [
|
31162
31162
|
d,
|
31163
31163
|
u
|
31164
|
-
]),
|
31164
|
+
]), ke(() => {
|
31165
31165
|
const R = () => p({});
|
31166
31166
|
return document.addEventListener(Jd, R), () => document.removeEventListener(Jd, R);
|
31167
31167
|
}, []), /* @__PURE__ */ Be(js.div, _t({}, c, {
|
@@ -31178,7 +31178,7 @@ const gN = /* @__PURE__ */ ms({
|
|
31178
31178
|
function bN(n, e = globalThis == null ? void 0 : globalThis.document) {
|
31179
31179
|
const t = Jr(n), r = Re(!1), i = Re(() => {
|
31180
31180
|
});
|
31181
|
-
return
|
31181
|
+
return ke(() => {
|
31182
31182
|
const s = (l) => {
|
31183
31183
|
if (l.target && !r.current) {
|
31184
31184
|
let c = function() {
|
@@ -31211,7 +31211,7 @@ function bN(n, e = globalThis == null ? void 0 : globalThis.document) {
|
|
31211
31211
|
}
|
31212
31212
|
function vN(n, e = globalThis == null ? void 0 : globalThis.document) {
|
31213
31213
|
const t = Jr(n), r = Re(!1);
|
31214
|
-
return
|
31214
|
+
return ke(() => {
|
31215
31215
|
const i = (s) => {
|
31216
31216
|
s.target && !r.current && wv(mN, t, {
|
31217
31217
|
originalEvent: s
|
@@ -31244,7 +31244,7 @@ function wv(n, e, t, { discrete: r }) {
|
|
31244
31244
|
}
|
31245
31245
|
let Lu = 0;
|
31246
31246
|
function wN() {
|
31247
|
-
|
31247
|
+
ke(() => {
|
31248
31248
|
var n, e;
|
31249
31249
|
const t = document.querySelectorAll("[data-radix-focus-guard]");
|
31250
31250
|
return document.body.insertAdjacentElement("afterbegin", (n = t[0]) !== null && n !== void 0 ? n : pg()), document.body.insertAdjacentElement("beforeend", (e = t[1]) !== null && e !== void 0 ? e : pg()), Lu++, () => {
|
@@ -31274,7 +31274,7 @@ const Iu = "focusScope.autoFocusOnMount", Pu = "focusScope.autoFocusOnUnmount",
|
|
31274
31274
|
this.paused = !1;
|
31275
31275
|
}
|
31276
31276
|
}).current;
|
31277
|
-
|
31277
|
+
ke(() => {
|
31278
31278
|
if (r) {
|
31279
31279
|
let g = function(x) {
|
31280
31280
|
if (h.paused || !l)
|
@@ -31308,7 +31308,7 @@ const Iu = "focusScope.autoFocusOnMount", Pu = "focusScope.autoFocusOnUnmount",
|
|
31308
31308
|
r,
|
31309
31309
|
l,
|
31310
31310
|
h.paused
|
31311
|
-
]),
|
31311
|
+
]), ke(() => {
|
31312
31312
|
if (l) {
|
31313
31313
|
yg.add(h);
|
31314
31314
|
const g = document.activeElement;
|
@@ -32513,7 +32513,7 @@ const hD = UN, pD = WN, mD = HN, gD = KN, yD = VN, Eg = jN, bD = qN, vD = (n, e,
|
|
32513
32513
|
platform: s
|
32514
32514
|
});
|
32515
32515
|
};
|
32516
|
-
var Kl = typeof document < "u" ? dc :
|
32516
|
+
var Kl = typeof document < "u" ? dc : ke;
|
32517
32517
|
function uc(n, e) {
|
32518
32518
|
if (n === e)
|
32519
32519
|
return !0;
|
@@ -32740,7 +32740,7 @@ const _v = "Popper", [Nv, Dv] = vv(_v), [RD, Lv] = Nv(_v), _D = (n) => {
|
|
32740
32740
|
}, t);
|
32741
32741
|
}, ND = "PopperAnchor", DD = /* @__PURE__ */ ut((n, e) => {
|
32742
32742
|
const { __scopePopper: t, virtualRef: r, ...i } = n, s = Lv(ND, t), o = Re(null), l = Pi(e, o);
|
32743
|
-
return
|
32743
|
+
return ke(() => {
|
32744
32744
|
s.onAnchorChange((r == null ? void 0 : r.current) || o.current);
|
32745
32745
|
}), r ? null : /* @__PURE__ */ Be(js.div, _t({}, i, {
|
32746
32746
|
ref: l
|
@@ -32763,7 +32763,7 @@ const _v = "Popper", [Nv, Dv] = vv(_v), [RD, Lv] = Nv(_v), _D = (n) => {
|
|
32763
32763
|
boundary: Z.filter(PD),
|
32764
32764
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
32765
32765
|
altBoundary: ve
|
32766
|
-
}, { refs: $e, floatingStyles:
|
32766
|
+
}, { refs: $e, floatingStyles: Ce, placement: me, isPositioned: Le, middlewareData: Fe } = wD({
|
32767
32767
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
32768
32768
|
strategy: "fixed",
|
32769
32769
|
placement: J,
|
@@ -32823,8 +32823,8 @@ const _v = "Popper", [Nv, Dv] = vv(_v), [RD, Lv] = Nv(_v), _D = (n) => {
|
|
32823
32823
|
ref: $e.setFloating,
|
32824
32824
|
"data-radix-popper-content-wrapper": "",
|
32825
32825
|
style: {
|
32826
|
-
...
|
32827
|
-
transform: Le ?
|
32826
|
+
...Ce,
|
32827
|
+
transform: Le ? Ce.transform : "translate(0, -200%)",
|
32828
32828
|
// keep off the page when measuring
|
32829
32829
|
minWidth: "max-content",
|
32830
32830
|
zIndex: lt,
|
@@ -32915,7 +32915,7 @@ function VD(n) {
|
|
32915
32915
|
MOUNT: "mounted"
|
32916
32916
|
}
|
32917
32917
|
});
|
32918
|
-
return
|
32918
|
+
return ke(() => {
|
32919
32919
|
const c = El(r.current);
|
32920
32920
|
s.current = l === "mounted" ? c : "none";
|
32921
32921
|
}, [
|
@@ -32984,7 +32984,7 @@ function zD({ prop: n, defaultProp: e, onChange: t = () => {
|
|
32984
32984
|
}
|
32985
32985
|
function UD({ defaultProp: n, onChange: e }) {
|
32986
32986
|
const t = xe(n), [r] = t, i = Re(r), s = Jr(e);
|
32987
|
-
return
|
32987
|
+
return ke(() => {
|
32988
32988
|
i.current !== r && (s(r), i.current = r);
|
32989
32989
|
}, [
|
32990
32990
|
r,
|
@@ -33566,7 +33566,7 @@ const Kv = "Popover", [Jv, x4] = vv(Kv, [
|
|
33566
33566
|
})));
|
33567
33567
|
}), F5 = /* @__PURE__ */ ut((n, e) => {
|
33568
33568
|
const t = Us(Uo, n.__scopePopover), r = Re(null), i = Pi(e, r), s = Re(!1);
|
33569
|
-
return
|
33569
|
+
return ke(() => {
|
33570
33570
|
const o = r.current;
|
33571
33571
|
if (o)
|
33572
33572
|
return JD(o);
|
@@ -33802,7 +33802,7 @@ const H5 = _5, V5 = D5, z5 = P5, Rl = j5, _l = ({
|
|
33802
33802
|
return;
|
33803
33803
|
}
|
33804
33804
|
}, 1e3);
|
33805
|
-
return
|
33805
|
+
return ke(() => {
|
33806
33806
|
u && R();
|
33807
33807
|
}, [u]), /* @__PURE__ */ _.jsxs(
|
33808
33808
|
tl,
|
@@ -35799,7 +35799,7 @@ function YL(n, e) {
|
|
35799
35799
|
})
|
35800
35800
|
});
|
35801
35801
|
}
|
35802
|
-
var zu = ow ? dc :
|
35802
|
+
var zu = ow ? dc : ke;
|
35803
35803
|
function ZL(n) {
|
35804
35804
|
var e = Re();
|
35805
35805
|
return e.current || (e.current = typeof n == "function" ? n() : n), e.current;
|
@@ -36069,7 +36069,7 @@ const n4 = [
|
|
36069
36069
|
const { from: u, to: d } = r.state.selection, f = e(), h = f + n.nodeSize;
|
36070
36070
|
s(f <= u && d <= h);
|
36071
36071
|
};
|
36072
|
-
|
36072
|
+
ke(() => (r.on("selectionUpdate", a), setTimeout(a, 100), () => {
|
36073
36073
|
r.off("selectionUpdate", a);
|
36074
36074
|
}));
|
36075
36075
|
const c = () => {
|
@@ -36453,13 +36453,13 @@ const c4 = Je.create({
|
|
36453
36453
|
break;
|
36454
36454
|
}
|
36455
36455
|
}, 500);
|
36456
|
-
|
36456
|
+
ke(() => {
|
36457
36457
|
r && f();
|
36458
|
-
}, [r]),
|
36458
|
+
}, [r]), ke(() => {
|
36459
36459
|
e == null || e.chain().focus();
|
36460
36460
|
}, []);
|
36461
36461
|
const h = Re(null);
|
36462
|
-
return
|
36462
|
+
return ke(() => {
|
36463
36463
|
var p;
|
36464
36464
|
(p = h.current) == null || p.focus();
|
36465
36465
|
}, []), /* @__PURE__ */ _.jsx(
|
@@ -36692,7 +36692,7 @@ const c4 = Je.create({
|
|
36692
36692
|
document: o
|
36693
36693
|
})
|
36694
36694
|
];
|
36695
|
-
|
36695
|
+
ke(() => {
|
36696
36696
|
if (r && t) {
|
36697
36697
|
const f = new _R(
|
36698
36698
|
r || "default-room",
|
@@ -36707,7 +36707,7 @@ const c4 = Je.create({
|
|
36707
36707
|
f.destroy(), o.destroy();
|
36708
36708
|
};
|
36709
36709
|
}
|
36710
|
-
}, [r, o]),
|
36710
|
+
}, [r, o]), ke(() => {
|
36711
36711
|
t && r && (a.some(
|
36712
36712
|
(h) => h.name === "collaborationCursor"
|
36713
36713
|
) || a.push(
|
@@ -36730,11 +36730,11 @@ const c4 = Je.create({
|
|
36730
36730
|
var h;
|
36731
36731
|
(h = u.current) != null && h.contains(f.target) || c == null || c.chain().focus().run();
|
36732
36732
|
};
|
36733
|
-
return
|
36733
|
+
return ke(() => {
|
36734
36734
|
c == null || c.chain().focus();
|
36735
|
-
}, []),
|
36735
|
+
}, []), ke(() => {
|
36736
36736
|
c == null || c.setEditable(!n);
|
36737
|
-
}, [n]),
|
36737
|
+
}, [n]), ke(() => {
|
36738
36738
|
e && c && (c == null || c.commands.setContent(e.editorJSONData), s(e.metaData));
|
36739
36739
|
}, [e, c]), {
|
36740
36740
|
editor: c,
|
@@ -36749,9 +36749,11 @@ const c4 = Je.create({
|
|
36749
36749
|
data: t,
|
36750
36750
|
togglePreviewMode: r,
|
36751
36751
|
enableCollaboration: i,
|
36752
|
-
collaborationId: s
|
36752
|
+
collaborationId: s,
|
36753
|
+
onAutoSave: o
|
36754
|
+
// Add this line
|
36753
36755
|
}) => {
|
36754
|
-
const { editor:
|
36756
|
+
const { editor: l, pluginMetaData: a, focusEditor: c, setPluginMetaData: u, ref: d } = h4({
|
36755
36757
|
isPreviewMode: n,
|
36756
36758
|
data: t,
|
36757
36759
|
enableCollaboration: i,
|
@@ -36759,18 +36761,28 @@ const c4 = Je.create({
|
|
36759
36761
|
onPublish: e,
|
36760
36762
|
togglePreviewMode: r
|
36761
36763
|
});
|
36762
|
-
return
|
36764
|
+
return ke(() => {
|
36765
|
+
if (l && o) {
|
36766
|
+
const f = setInterval(() => {
|
36767
|
+
o({
|
36768
|
+
metaData: a,
|
36769
|
+
editorJSONData: l.getJSON()
|
36770
|
+
});
|
36771
|
+
}, 1e4);
|
36772
|
+
return () => clearInterval(f);
|
36773
|
+
}
|
36774
|
+
}, [l, o, a]), l ? /* @__PURE__ */ _.jsx("div", { "data-cy": "single-webpage", className: "bg-[#f9fbfd]", children: /* @__PURE__ */ _.jsx("div", { className: "h-full flex flex-col overflow-scroll no-scrollbar", children: /* @__PURE__ */ _.jsxs("div", { className: "w-full h-screen", children: [
|
36763
36775
|
/* @__PURE__ */ _.jsx("div", { className: "h-fit relative bg-[#ffffff]", children: /* @__PURE__ */ _.jsxs("div", { className: "flex items-center justify-center pl-4 pr-4 border-b-1 border gap-2 h-16", children: [
|
36764
36776
|
/* @__PURE__ */ _.jsx("div", { className: "grow", children: /* @__PURE__ */ _.jsx(
|
36765
36777
|
Mw,
|
36766
36778
|
{
|
36767
36779
|
isPreviewMode: n,
|
36768
|
-
metaData:
|
36769
|
-
setMetaData:
|
36780
|
+
metaData: a,
|
36781
|
+
setMetaData: u
|
36770
36782
|
}
|
36771
36783
|
) }),
|
36772
|
-
!n && /* @__PURE__ */ _.jsx("div", { className: "grow relative", children: /* @__PURE__ */ _.jsx(CA, { editor:
|
36773
|
-
/* @__PURE__ */ _.jsx("div", { children: /* @__PURE__ */ _.jsxs(ya, { onClick: () => r(n), children: [
|
36784
|
+
!n && /* @__PURE__ */ _.jsx("div", { className: "grow relative", children: /* @__PURE__ */ _.jsx(CA, { editor: l }) }),
|
36785
|
+
/* @__PURE__ */ _.jsx("div", { children: /* @__PURE__ */ _.jsxs(ya, { variant: "secondary", onClick: () => r(n), children: [
|
36774
36786
|
n ? /* @__PURE__ */ _.jsx(PT, { size: 14 }) : /* @__PURE__ */ _.jsx($T, { size: 14 }),
|
36775
36787
|
" ",
|
36776
36788
|
n ? "Edit" : "Preview"
|
@@ -36779,8 +36791,8 @@ const c4 = Je.create({
|
|
36779
36791
|
ya,
|
36780
36792
|
{
|
36781
36793
|
onClick: () => e({
|
36782
|
-
metaData:
|
36783
|
-
editorJSONData:
|
36794
|
+
metaData: a,
|
36795
|
+
editorJSONData: l.getJSON()
|
36784
36796
|
}),
|
36785
36797
|
children: [
|
36786
36798
|
/* @__PURE__ */ _.jsx(jT, { size: 14 }),
|
@@ -36792,14 +36804,14 @@ const c4 = Je.create({
|
|
36792
36804
|
/* @__PURE__ */ _.jsx("main", { className: "h-screen lg:h-full w-full rounded-[8px] flex flex-col justify-start items-center gap-2", children: /* @__PURE__ */ _.jsx(
|
36793
36805
|
"div",
|
36794
36806
|
{
|
36795
|
-
onClick:
|
36807
|
+
onClick: c,
|
36796
36808
|
className: "w-full flex justify-center relative",
|
36797
|
-
children: /* @__PURE__ */ _.jsx("div", { className: "p-12 sm:p-[96px] mt-4 min-h-[900px] shadow-inner bg-white overflow-scroll no-scrollbar rounded-md w-full sm:w-[70%] max-w-[856px]", children: /* @__PURE__ */ _.jsxs("div", { ref:
|
36809
|
+
children: /* @__PURE__ */ _.jsx("div", { className: "p-12 sm:p-[96px] mt-4 min-h-[900px] shadow-inner bg-white overflow-scroll no-scrollbar rounded-md w-full sm:w-[70%] max-w-[856px]", children: /* @__PURE__ */ _.jsxs("div", { ref: d, className: "w-full pt-4 h-full", children: [
|
36798
36810
|
!n && /* @__PURE__ */ _.jsxs("div", { children: [
|
36799
|
-
/* @__PURE__ */ _.jsx(pA, { editor:
|
36800
|
-
/* @__PURE__ */ _.jsx(xA, { editor:
|
36811
|
+
/* @__PURE__ */ _.jsx(pA, { editor: l }),
|
36812
|
+
/* @__PURE__ */ _.jsx(xA, { editor: l, appendTo: d })
|
36801
36813
|
] }),
|
36802
|
-
/* @__PURE__ */ _.jsx(kA, { isPreviewMode: n, children: /* @__PURE__ */ _.jsx(mT, { editor:
|
36814
|
+
/* @__PURE__ */ _.jsx(kA, { isPreviewMode: n, children: /* @__PURE__ */ _.jsx(mT, { editor: l }) })
|
36803
36815
|
] }) })
|
36804
36816
|
}
|
36805
36817
|
) })
|