sykpcomposer 0.0.46 → 0.0.47
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 +86 -82
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var av = Object.defineProperty;
|
|
|
2
2
|
var sv = (y, d, g) => d in y ? av(y, d, { enumerable: !0, configurable: !0, writable: !0, value: g }) : y[d] = g;
|
|
3
3
|
var zl = (y, d, g) => (sv(y, typeof d != "symbol" ? d + "" : d, g), g);
|
|
4
4
|
import * as er from "react";
|
|
5
|
-
import P0, { createContext as I0, useContext as R0, useMemo as el, useLayoutEffect as Wa, useEffect as
|
|
5
|
+
import P0, { createContext as I0, useContext as R0, useMemo as el, useLayoutEffect as Wa, useEffect as sr, useState as Ln, useCallback as M0, useRef as Cp, Suspense as D0 } from "react";
|
|
6
6
|
import * as lv from "react-dom";
|
|
7
7
|
import { flushSync as L0, createPortal as B0 } from "react-dom";
|
|
8
8
|
var qf = { exports: {} }, _s = {};
|
|
@@ -779,7 +779,7 @@ function G0(y, d, g) {
|
|
|
779
779
|
}
|
|
780
780
|
g.takeRecords();
|
|
781
781
|
}
|
|
782
|
-
f !== null && (i && (f.dirty = !0,
|
|
782
|
+
f !== null && (i && (f.dirty = !0, lr(f)), Gi && ly(y) && f.insertRawText(l));
|
|
783
783
|
});
|
|
784
784
|
} finally {
|
|
785
785
|
Wf = !1;
|
|
@@ -1006,7 +1006,7 @@ function Bn() {
|
|
|
1006
1006
|
function ny(y) {
|
|
1007
1007
|
return y._nodeMap.get("root");
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function lr(y) {
|
|
1010
1010
|
jr();
|
|
1011
1011
|
const d = zo();
|
|
1012
1012
|
y !== null && (y.dirty = !0, y.setCachedNodes(null)), d._selection = y;
|
|
@@ -1130,7 +1130,7 @@ function Qg(y, d, g) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
function ay() {
|
|
1132
1132
|
const y = Bn();
|
|
1133
|
-
|
|
1133
|
+
lr($p(y.select(0, y.getChildrenSize())));
|
|
1134
1134
|
}
|
|
1135
1135
|
function Zl(y, d) {
|
|
1136
1136
|
y.__lexicalClassNameCache === void 0 && (y.__lexicalClassNameCache = {});
|
|
@@ -1703,7 +1703,7 @@ const ni = Object.freeze({}), tp = 30, ep = [["keydown", function(y, d) {
|
|
|
1703
1703
|
const r = t.anchorNode;
|
|
1704
1704
|
if (r !== null) {
|
|
1705
1705
|
const n = r.nodeType;
|
|
1706
|
-
(n === mc || n === ea) &&
|
|
1706
|
+
(n === mc || n === ea) && lr(fd(f, t, d, y));
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
@@ -1719,7 +1719,7 @@ Ru && ep.push(["beforeinput", (y, d) => function(g, t) {
|
|
|
1719
1719
|
const c = Ja();
|
|
1720
1720
|
if (!xe(c))
|
|
1721
1721
|
return;
|
|
1722
|
-
|
|
1722
|
+
lr(c.clone());
|
|
1723
1723
|
}
|
|
1724
1724
|
if (xe(n)) {
|
|
1725
1725
|
const c = n.anchor.key === n.focus.key;
|
|
@@ -1840,7 +1840,7 @@ function rm(y, d, g) {
|
|
|
1840
1840
|
const { anchorNode: t, anchorOffset: f, focusNode: r, focusOffset: n } = y;
|
|
1841
1841
|
np && (np = !1, nm(t, f) && nm(r, n)) || Kr(d, () => {
|
|
1842
1842
|
if (!g)
|
|
1843
|
-
return void
|
|
1843
|
+
return void lr(null);
|
|
1844
1844
|
if (!yc(d, t, r))
|
|
1845
1845
|
return;
|
|
1846
1846
|
const e = Ae();
|
|
@@ -1912,7 +1912,7 @@ function wy(y) {
|
|
|
1912
1912
|
if (l === null)
|
|
1913
1913
|
return;
|
|
1914
1914
|
const o = l.nodeType;
|
|
1915
|
-
o !== mc && o !== ea ||
|
|
1915
|
+
o !== mc && o !== ea || lr(fd(i, g, t, y));
|
|
1916
1916
|
}));
|
|
1917
1917
|
const f = qp(t), r = f[f.length - 1], n = r._key, e = Vs.get(n), s = e || r;
|
|
1918
1918
|
s !== t && rm(g, s, !1), rm(g, t, !0), t !== r ? Vs.set(n, t) : e && Vs.delete(n);
|
|
@@ -2215,7 +2215,7 @@ class ud {
|
|
|
2215
2215
|
if (op(f, !1, !0), l === null ? s.__first = n : l.getWritable().__next = n, e.__prev = a, o === null ? s.__last = n : o.getWritable().__prev = n, e.__next = c, e.__parent = u, s.__size = i, g && (ge(this) && ge(e) || qe(139), this.getChildren().forEach((h) => {
|
|
2216
2216
|
e.append(h);
|
|
2217
2217
|
})), xe(t)) {
|
|
2218
|
-
|
|
2218
|
+
lr(t);
|
|
2219
2219
|
const h = t.anchor, p = t.focus;
|
|
2220
2220
|
h.key === r && um(h, e), p.key === r && um(p, e);
|
|
2221
2221
|
}
|
|
@@ -3242,7 +3242,7 @@ class ra {
|
|
|
3242
3242
|
if (Tn(e) && !e.isIsolated()) {
|
|
3243
3243
|
if (n && e.isKeyboardSelectable()) {
|
|
3244
3244
|
const c = sp();
|
|
3245
|
-
return c.add(e.__key), void
|
|
3245
|
+
return c.add(e.__key), void lr(c);
|
|
3246
3246
|
}
|
|
3247
3247
|
const a = g ? e.getPreviousSibling() : e.getNextSibling();
|
|
3248
3248
|
if (Pe(a)) {
|
|
@@ -3305,7 +3305,7 @@ class ra {
|
|
|
3305
3305
|
if (n.isKeyboardSelectable() && ge(f) && f.getChildrenSize() === 0) {
|
|
3306
3306
|
f.remove();
|
|
3307
3307
|
const e = sp();
|
|
3308
|
-
e.add(n.__key),
|
|
3308
|
+
e.add(n.__key), lr(e);
|
|
3309
3309
|
} else
|
|
3310
3310
|
n.remove(), Vn().dispatchCommand(li, void 0);
|
|
3311
3311
|
return;
|
|
@@ -3683,10 +3683,10 @@ function p1(y, d) {
|
|
|
3683
3683
|
}
|
|
3684
3684
|
return [g, y.getIndexWithinParent() + 1];
|
|
3685
3685
|
}
|
|
3686
|
-
let
|
|
3686
|
+
let dr = null, fr = null, zr = !1, Mf = !1, vu = 0;
|
|
3687
3687
|
const ym = { characterData: !0, childList: !0, subtree: !0 };
|
|
3688
3688
|
function rl() {
|
|
3689
|
-
return zr ||
|
|
3689
|
+
return zr || dr !== null && dr._readOnly;
|
|
3690
3690
|
}
|
|
3691
3691
|
function jr() {
|
|
3692
3692
|
zr && qe(13);
|
|
@@ -3695,13 +3695,13 @@ function Ty() {
|
|
|
3695
3695
|
vu > 99 && qe(14);
|
|
3696
3696
|
}
|
|
3697
3697
|
function zo() {
|
|
3698
|
-
return
|
|
3698
|
+
return dr === null && qe(15), dr;
|
|
3699
3699
|
}
|
|
3700
3700
|
function Vn() {
|
|
3701
|
-
return
|
|
3701
|
+
return fr === null && qe(16), fr;
|
|
3702
3702
|
}
|
|
3703
3703
|
function h1() {
|
|
3704
|
-
return
|
|
3704
|
+
return fr;
|
|
3705
3705
|
}
|
|
3706
3706
|
function bm(y, d, g) {
|
|
3707
3707
|
const t = d.__type, f = function(e, s) {
|
|
@@ -3734,22 +3734,22 @@ function Zp(y, d) {
|
|
|
3734
3734
|
return r;
|
|
3735
3735
|
}
|
|
3736
3736
|
function _m(y, d) {
|
|
3737
|
-
const g =
|
|
3738
|
-
|
|
3737
|
+
const g = dr, t = zr, f = fr;
|
|
3738
|
+
dr = y, zr = !0, fr = null;
|
|
3739
3739
|
try {
|
|
3740
3740
|
return d();
|
|
3741
3741
|
} finally {
|
|
3742
|
-
|
|
3742
|
+
dr = g, zr = t, fr = f;
|
|
3743
3743
|
}
|
|
3744
3744
|
}
|
|
3745
3745
|
function La(y, d) {
|
|
3746
3746
|
const g = y._pendingEditorState, t = y._rootElement, f = y._headless || t === null;
|
|
3747
3747
|
if (g === null)
|
|
3748
3748
|
return;
|
|
3749
|
-
const r = y._editorState, n = r._selection, e = g._selection, s = y._dirtyType !== Ua, i =
|
|
3749
|
+
const r = y._editorState, n = r._selection, e = g._selection, s = y._dirtyType !== Ua, i = dr, l = zr, o = fr, a = y._updating, c = y._observer;
|
|
3750
3750
|
let u = null;
|
|
3751
3751
|
if (y._pendingEditorState = null, y._editorState = g, !f && s && c !== null) {
|
|
3752
|
-
|
|
3752
|
+
fr = y, dr = g, zr = !1, y._updating = !0;
|
|
3753
3753
|
try {
|
|
3754
3754
|
const x = y._dirtyType, S = y._dirtyElements, C = y._dirtyLeaves;
|
|
3755
3755
|
c.disconnect(), u = t1(r, g, y, x, S, C);
|
|
@@ -3758,7 +3758,7 @@ function La(y, d) {
|
|
|
3758
3758
|
throw x;
|
|
3759
3759
|
return Iy(y, null, t, g), Z0(y), y._dirtyType = Ys, Mf = !0, La(y, r), void (Mf = !1);
|
|
3760
3760
|
} finally {
|
|
3761
|
-
c.observe(t, ym), y._updating = a,
|
|
3761
|
+
c.observe(t, ym), y._updating = a, dr = i, zr = l, fr = o;
|
|
3762
3762
|
}
|
|
3763
3763
|
}
|
|
3764
3764
|
g._readOnly || (g._readOnly = !0);
|
|
@@ -3773,7 +3773,7 @@ function La(y, d) {
|
|
|
3773
3773
|
}(y, g);
|
|
3774
3774
|
const v = f ? null : Fo(y._window);
|
|
3775
3775
|
if (y._editable && v !== null && (s || e === null || e.dirty)) {
|
|
3776
|
-
|
|
3776
|
+
fr = y, dr = g;
|
|
3777
3777
|
try {
|
|
3778
3778
|
if (c !== null && c.disconnect(), s || e === null || e.dirty) {
|
|
3779
3779
|
const x = y._blockCursorElement;
|
|
@@ -3781,7 +3781,7 @@ function La(y, d) {
|
|
|
3781
3781
|
}
|
|
3782
3782
|
Vv(y, t, e), c !== null && c.observe(t, ym);
|
|
3783
3783
|
} finally {
|
|
3784
|
-
|
|
3784
|
+
fr = o, dr = i;
|
|
3785
3785
|
}
|
|
3786
3786
|
}
|
|
3787
3787
|
u !== null && function(x, S, C, k, D) {
|
|
@@ -3829,7 +3829,7 @@ function tc(y, d, g, ...t) {
|
|
|
3829
3829
|
}
|
|
3830
3830
|
}
|
|
3831
3831
|
function Ay(y, d, g) {
|
|
3832
|
-
if (y._updating === !1 ||
|
|
3832
|
+
if (y._updating === !1 || fr !== y) {
|
|
3833
3833
|
let f = !1;
|
|
3834
3834
|
return y.update(() => {
|
|
3835
3835
|
f = Ay(y, d, g);
|
|
@@ -3871,8 +3871,8 @@ function jy(y, d, g) {
|
|
|
3871
3871
|
const s = y._editorState;
|
|
3872
3872
|
let i = y._pendingEditorState, l = !1;
|
|
3873
3873
|
(i === null || i._readOnly) && (i = y._pendingEditorState = new pd(new Map((i || s)._nodeMap)), l = !0), i._flushSync = e;
|
|
3874
|
-
const o =
|
|
3875
|
-
|
|
3874
|
+
const o = dr, a = zr, c = fr, u = y._updating;
|
|
3875
|
+
dr = i, zr = !1, y._updating = !0, fr = y;
|
|
3876
3876
|
try {
|
|
3877
3877
|
l && (y._headless ? s._selection !== null && (i._selection = s._selection.clone()) : i._selection = function(b) {
|
|
3878
3878
|
const _ = b.getEditorState()._selection, v = Fo(b._window);
|
|
@@ -3943,7 +3943,7 @@ function jy(y, d, g) {
|
|
|
3943
3943
|
} catch (p) {
|
|
3944
3944
|
return p instanceof Error && y._onError(p), y._pendingEditorState = s, y._dirtyType = Ys, y._cloneNotNeeded.clear(), y._dirtyLeaves = /* @__PURE__ */ new Set(), y._dirtyElements.clear(), void La(y);
|
|
3945
3945
|
} finally {
|
|
3946
|
-
|
|
3946
|
+
dr = o, zr = a, fr = c, y._updating = u, vu = 0;
|
|
3947
3947
|
}
|
|
3948
3948
|
y._dirtyType !== Ua || function(p, m) {
|
|
3949
3949
|
const b = m.getEditorState()._selection, _ = p._selection;
|
|
@@ -4664,15 +4664,15 @@ class y1 {
|
|
|
4664
4664
|
}
|
|
4665
4665
|
parseEditorState(d, g) {
|
|
4666
4666
|
return function(t, f, r) {
|
|
4667
|
-
const n = Xp(), e =
|
|
4668
|
-
f._dirtyElements = /* @__PURE__ */ new Map(), f._dirtyLeaves = /* @__PURE__ */ new Set(), f._cloneNotNeeded = /* @__PURE__ */ new Set(), f._dirtyType = 0,
|
|
4667
|
+
const n = Xp(), e = dr, s = zr, i = fr, l = f._dirtyElements, o = f._dirtyLeaves, a = f._cloneNotNeeded, c = f._dirtyType;
|
|
4668
|
+
f._dirtyElements = /* @__PURE__ */ new Map(), f._dirtyLeaves = /* @__PURE__ */ new Set(), f._cloneNotNeeded = /* @__PURE__ */ new Set(), f._dirtyType = 0, dr = n, zr = !1, fr = f;
|
|
4669
4669
|
try {
|
|
4670
4670
|
const u = f._nodes;
|
|
4671
4671
|
Zp(t.root, u), r && r(), n._readOnly = !0;
|
|
4672
4672
|
} catch (u) {
|
|
4673
4673
|
u instanceof Error && f._onError(u);
|
|
4674
4674
|
} finally {
|
|
4675
|
-
f._dirtyElements = l, f._dirtyLeaves = o, f._cloneNotNeeded = a, f._dirtyType = c,
|
|
4675
|
+
f._dirtyElements = l, f._dirtyLeaves = o, f._cloneNotNeeded = a, f._dirtyType = c, dr = e, zr = s, fr = i;
|
|
4676
4676
|
}
|
|
4677
4677
|
return n;
|
|
4678
4678
|
}(typeof d == "string" ? JSON.parse(d) : d, this, g);
|
|
@@ -4726,7 +4726,7 @@ function Ir() {
|
|
|
4726
4726
|
const y = R0(th);
|
|
4727
4727
|
return y == null && v1(8), y;
|
|
4728
4728
|
}
|
|
4729
|
-
const My = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, x1 = My ? Wa :
|
|
4729
|
+
const My = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, x1 = My ? Wa : sr, su = { tag: "history-merge" };
|
|
4730
4730
|
function Dy({ initialConfig: y, children: d }) {
|
|
4731
4731
|
const g = el(() => {
|
|
4732
4732
|
const { theme: t, namespace: f, editor__DEPRECATED: r, nodes: n, onError: e, editorState: s, html: i } = y, l = _1(null, t);
|
|
@@ -4772,14 +4772,14 @@ function Dy({ initialConfig: y, children: d }) {
|
|
|
4772
4772
|
}
|
|
4773
4773
|
function Ly({ defaultSelection: y }) {
|
|
4774
4774
|
const [d] = Ir();
|
|
4775
|
-
return
|
|
4775
|
+
return sr(() => {
|
|
4776
4776
|
d.focus(() => {
|
|
4777
4777
|
const g = document.activeElement, t = d.getRootElement();
|
|
4778
4778
|
t === null || g !== null && t.contains(g) || t.focus({ preventScroll: !0 });
|
|
4779
4779
|
}, { defaultSelection: y });
|
|
4780
4780
|
}, [y, d]), null;
|
|
4781
4781
|
}
|
|
4782
|
-
const w1 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa :
|
|
4782
|
+
const w1 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
|
|
4783
4783
|
function By({ ariaActiveDescendant: y, ariaAutoComplete: d, ariaControls: g, ariaDescribedBy: t, ariaExpanded: f, ariaLabel: r, ariaLabelledBy: n, ariaMultiline: e, ariaOwns: s, ariaRequired: i, autoCapitalize: l, className: o, id: a, role: c = "textbox", spellCheck: u = !0, style: h, tabIndex: p, "data-testid": m, ...b }) {
|
|
4784
4784
|
const [_] = Ir(), [v, w] = Ln(!1), x = M0((S) => {
|
|
4785
4785
|
S && S.ownerDocument && S.ownerDocument.defaultView && _.setRootElement(S);
|
|
@@ -5184,10 +5184,10 @@ function Ky({ externalHistoryState: y }) {
|
|
|
5184
5184
|
const [d] = Ir();
|
|
5185
5185
|
return function(g, t, f = 1e3) {
|
|
5186
5186
|
const r = el(() => t || U1(), [t]);
|
|
5187
|
-
|
|
5187
|
+
sr(() => z1(g, r, f), [f, g, r]);
|
|
5188
5188
|
}(d, y), null;
|
|
5189
5189
|
}
|
|
5190
|
-
const $1 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa :
|
|
5190
|
+
const $1 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
|
|
5191
5191
|
function H1(y) {
|
|
5192
5192
|
return { initialValueFn: () => y.isEditable(), subscribe: (d) => y.registerEditableListener(d) };
|
|
5193
5193
|
}
|
|
@@ -5738,7 +5738,7 @@ function a_(y) {
|
|
|
5738
5738
|
s.anchor.set(l, o, "element"), s.focus.set(l, o, "element");
|
|
5739
5739
|
}
|
|
5740
5740
|
const i = $p(s);
|
|
5741
|
-
|
|
5741
|
+
lr(i);
|
|
5742
5742
|
}
|
|
5743
5743
|
y.dispatchCommand(Rm, g);
|
|
5744
5744
|
}
|
|
@@ -5774,7 +5774,7 @@ function a_(y) {
|
|
|
5774
5774
|
}(d, y), !0);
|
|
5775
5775
|
}, on));
|
|
5776
5776
|
}
|
|
5777
|
-
const up = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa :
|
|
5777
|
+
const up = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
|
|
5778
5778
|
function Dm(y) {
|
|
5779
5779
|
return y.getEditorState().read(Xy(y.isComposing()));
|
|
5780
5780
|
}
|
|
@@ -5785,7 +5785,7 @@ function s_({ contentEditable: y, placeholder: d, ErrorBoundary: g }) {
|
|
|
5785
5785
|
L0(() => {
|
|
5786
5786
|
s(i);
|
|
5787
5787
|
});
|
|
5788
|
-
}), [r]),
|
|
5788
|
+
}), [r]), sr(() => {
|
|
5789
5789
|
s(r.getDecorators());
|
|
5790
5790
|
}, [r]), el(() => {
|
|
5791
5791
|
const i = [], l = Object.keys(e);
|
|
@@ -6525,7 +6525,7 @@ class w_ {
|
|
|
6525
6525
|
if (!g)
|
|
6526
6526
|
throw new Error("Expected to find TableElement in DOM");
|
|
6527
6527
|
const t = ec(g);
|
|
6528
|
-
du(d, t, null),
|
|
6528
|
+
du(d, t, null), lr(null), d.dispatchCommand(li, void 0);
|
|
6529
6529
|
});
|
|
6530
6530
|
}
|
|
6531
6531
|
enableHighlightStyle() {
|
|
@@ -6575,7 +6575,7 @@ class w_ {
|
|
|
6575
6575
|
const e = Er(d.elem);
|
|
6576
6576
|
if (this.tableSelection != null && this.anchorCellNodeKey != null && rn(e) && f.is(Ws(e))) {
|
|
6577
6577
|
const s = e.getKey();
|
|
6578
|
-
this.tableSelection = this.tableSelection.clone() || Xu(), this.focusCellNodeKey = s, this.tableSelection.set(this.tableNodeKey, this.anchorCellNodeKey, this.focusCellNodeKey),
|
|
6578
|
+
this.tableSelection = this.tableSelection.clone() || Xu(), this.focusCellNodeKey = s, this.tableSelection.set(this.tableNodeKey, this.anchorCellNodeKey, this.focusCellNodeKey), lr(this.tableSelection), t.dispatchCommand(li, void 0), du(t, this.table, this.tableSelection);
|
|
6579
6579
|
}
|
|
6580
6580
|
}
|
|
6581
6581
|
});
|
|
@@ -6596,7 +6596,7 @@ class w_ {
|
|
|
6596
6596
|
const t = Yp(), f = t.anchor, r = t.focus;
|
|
6597
6597
|
g.getNodes().forEach((n) => {
|
|
6598
6598
|
rn(n) && n.getTextContentSize() !== 0 && (f.set(n.getKey(), 0, "element"), r.set(n.getKey(), n.getChildrenSize(), "element"), t.formatText(d));
|
|
6599
|
-
}),
|
|
6599
|
+
}), lr(g), this.editor.dispatchCommand(li, void 0);
|
|
6600
6600
|
});
|
|
6601
6601
|
}
|
|
6602
6602
|
clearText() {
|
|
@@ -6615,7 +6615,7 @@ class w_ {
|
|
|
6615
6615
|
s !== n && s.remove();
|
|
6616
6616
|
});
|
|
6617
6617
|
}
|
|
6618
|
-
}), du(d, this.table, null),
|
|
6618
|
+
}), du(d, this.table, null), lr(null), d.dispatchCommand(li, void 0)) : (g.selectPrevious(), g.remove(), Bn().selectStart());
|
|
6619
6619
|
});
|
|
6620
6620
|
}
|
|
6621
6621
|
}
|
|
@@ -6810,7 +6810,7 @@ function E_(y, d, g, t) {
|
|
|
6810
6810
|
}
|
|
6811
6811
|
if (M && W) {
|
|
6812
6812
|
const P = Xu();
|
|
6813
|
-
P.set(a[0].getKey(), M, W),
|
|
6813
|
+
P.set(a[0].getKey(), M, W), lr(P);
|
|
6814
6814
|
}
|
|
6815
6815
|
return !0;
|
|
6816
6816
|
}, no)), r.listenersToRemove.add(g.registerCommand(li, () => {
|
|
@@ -6824,7 +6824,7 @@ function E_(y, d, g, t) {
|
|
|
6824
6824
|
C.focus.set(S ? D.getKey() : N.getKey(), S ? D.getChildrenSize() : N.getChildrenSize(), "element");
|
|
6825
6825
|
} else
|
|
6826
6826
|
C.anchor.set(y.getParentOrThrow().getKey(), S ? y.getIndexWithinParent() + 1 : y.getIndexWithinParent(), "element");
|
|
6827
|
-
|
|
6827
|
+
lr(C), zm(g, r);
|
|
6828
6828
|
} else
|
|
6829
6829
|
x && (m.is(b) || (r.setAnchorCellForSelection(l(m)), r.setFocusCellForSelection(l(b), !0), r.isSelecting || setTimeout(() => {
|
|
6830
6830
|
const { onMouseUp: C, onMouseMove: k } = e();
|
|
@@ -6836,7 +6836,7 @@ function E_(y, d, g, t) {
|
|
|
6836
6836
|
const u = Er(c.focusNode), h = u && !y.is(Ws(u)), p = Er(c.anchorNode), m = p && y.is(Ws(p));
|
|
6837
6837
|
if (h && m && c.rangeCount > 0) {
|
|
6838
6838
|
const b = u1(c, g);
|
|
6839
|
-
b && (b.anchor.set(y.getKey(), o.isBackward() ? y.getChildrenSize() : 0, "element"), c.removeAllRanges(),
|
|
6839
|
+
b && (b.anchor.set(y.getKey(), o.isBackward() ? y.getChildrenSize() : 0, "element"), c.removeAllRanges(), lr(b));
|
|
6840
6840
|
}
|
|
6841
6841
|
}
|
|
6842
6842
|
}
|
|
@@ -7026,7 +7026,7 @@ function Kl(y, d, g, t, f) {
|
|
|
7026
7026
|
if (!i || !l)
|
|
7027
7027
|
return !1;
|
|
7028
7028
|
const [o] = qs(i), [a] = qs(l), c = r.clone();
|
|
7029
|
-
return c.focus.set((g === "up" ? o : a).getKey(), g === "up" ? 0 : a.getChildrenSize(), "element"),
|
|
7029
|
+
return c.focus.set((g === "up" ? o : a).getKey(), g === "up" ? 0 : a.getChildrenSize(), "element"), lr(c), !0;
|
|
7030
7030
|
}
|
|
7031
7031
|
}
|
|
7032
7032
|
}
|
|
@@ -7261,7 +7261,7 @@ function T_(y, d) {
|
|
|
7261
7261
|
const g = R0(O_);
|
|
7262
7262
|
return y != null && (g.name = y), d != null && (g.color = d), g;
|
|
7263
7263
|
}
|
|
7264
|
-
const A_ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa :
|
|
7264
|
+
const A_ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
|
|
7265
7265
|
function j_({ onClear: y }) {
|
|
7266
7266
|
const [d] = Ir();
|
|
7267
7267
|
return A_(() => d.registerCommand(Np, (g) => (d.update(() => {
|
|
@@ -7320,7 +7320,7 @@ var Wm = { error: null }, N_ = function(y) {
|
|
|
7320
7320
|
function P_({ children: y, onError: d }) {
|
|
7321
7321
|
return Ee.jsx(N_, { fallback: Ee.jsx("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: d, children: y });
|
|
7322
7322
|
}
|
|
7323
|
-
const I_ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa :
|
|
7323
|
+
const I_ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
|
|
7324
7324
|
function R_({ ignoreHistoryMergeTagChange: y = !0, ignoreSelectionChange: d = !1, onChange: g }) {
|
|
7325
7325
|
const [t] = Ir();
|
|
7326
7326
|
return I_(() => {
|
|
@@ -7433,7 +7433,7 @@ function U_(y) {
|
|
|
7433
7433
|
return !!xe(g) && (d.preventDefault(), !0);
|
|
7434
7434
|
}, on));
|
|
7435
7435
|
}
|
|
7436
|
-
const pp = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa :
|
|
7436
|
+
const pp = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Wa : sr;
|
|
7437
7437
|
function Vm(y) {
|
|
7438
7438
|
return y.getEditorState().read(Xy(y.isComposing()));
|
|
7439
7439
|
}
|
|
@@ -7444,7 +7444,7 @@ function $_({ contentEditable: y, placeholder: d, ErrorBoundary: g }) {
|
|
|
7444
7444
|
L0(() => {
|
|
7445
7445
|
s(i);
|
|
7446
7446
|
});
|
|
7447
|
-
}), [r]),
|
|
7447
|
+
}), [r]), sr(() => {
|
|
7448
7448
|
s(r.getDecorators());
|
|
7449
7449
|
}, [r]), el(() => {
|
|
7450
7450
|
const i = [], l = Object.keys(e);
|
|
@@ -21379,13 +21379,13 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
|
|
|
21379
21379
|
se = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(E) {
|
|
21380
21380
|
return E.timeStamp || Date.now();
|
|
21381
21381
|
}, defaultPrevented: 0, isTrusted: 0 };
|
|
21382
|
-
var da, fa, qo, Wo = pr(se), Za = pr(
|
|
21382
|
+
var da, fa, qo, Wo = pr(se), Za = pr(cr = e({}, se, { view: 0, detail: 0 })), Fn = e({}, cr, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: _i, button: 0, buttons: 0, relatedTarget: function(E) {
|
|
21383
21383
|
return E.relatedTarget === void 0 ? E.fromElement === E.srcElement ? E.toElement : E.fromElement : E.relatedTarget;
|
|
21384
21384
|
}, movementX: function(E) {
|
|
21385
21385
|
return "movementX" in E ? E.movementX : (E !== qo && (fa = qo && E.type === "mousemove" ? (da = E.screenX - qo.screenX, E.screenY - qo.screenY) : da = 0, qo = E), da);
|
|
21386
21386
|
}, movementY: function(E) {
|
|
21387
21387
|
return "movementY" in E ? E.movementY : fa;
|
|
21388
|
-
} }), Jo = pr(Fn), pa = pr(e({}, Fn, { dataTransfer: 0 })), kr = pr(e({},
|
|
21388
|
+
} }), Jo = pr(Fn), pa = pr(e({}, Fn, { dataTransfer: 0 })), kr = pr(e({}, cr, { relatedTarget: 0 })), ha = pr(e({}, se, { animationName: 0, elapsedTime: 0, pseudoElement: 0 })), Co = pr(e({}, se, { clipboardData: function(E) {
|
|
21389
21389
|
return ("clipboardData" in E ? E : window).clipboardData;
|
|
21390
21390
|
} })), lo = pr(e({}, se, { data: 0 })), ko = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, ga = { 8: "Backspace", 9: "Tab", 12: "Clear", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 224: "Meta" }, co = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
|
|
21391
21391
|
function Oo(E) {
|
|
@@ -21395,7 +21395,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
|
|
|
21395
21395
|
function _i() {
|
|
21396
21396
|
return Oo;
|
|
21397
21397
|
}
|
|
21398
|
-
var xi = pr(e({},
|
|
21398
|
+
var xi = pr(e({}, cr, { key: function(E) {
|
|
21399
21399
|
if (E.key) {
|
|
21400
21400
|
var A = ko[E.key] || E.key;
|
|
21401
21401
|
if (A !== "Unidentified")
|
|
@@ -21408,11 +21408,11 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
|
|
|
21408
21408
|
return E.type === "keydown" || E.type === "keyup" ? E.keyCode : 0;
|
|
21409
21409
|
}, which: function(E) {
|
|
21410
21410
|
return E.type === "keypress" ? Ya(E) : E.type === "keydown" || E.type === "keyup" ? E.keyCode : 0;
|
|
21411
|
-
} })), ma = pr(e({}, Fn, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 })), Xa = pr(e({},
|
|
21411
|
+
} })), ma = pr(e({}, Fn, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 })), Xa = pr(e({}, cr, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: _i })), Vo = pr(e({}, se, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 })), Qa = pr(e({}, Fn, { deltaX: function(E) {
|
|
21412
21412
|
return "deltaX" in E ? E.deltaX : "wheelDeltaX" in E ? -E.wheelDeltaX : 0;
|
|
21413
21413
|
}, deltaY: function(E) {
|
|
21414
21414
|
return "deltaY" in E ? E.deltaY : "wheelDeltaY" in E ? -E.wheelDeltaY : "wheelDelta" in E ? -E.wheelDelta : 0;
|
|
21415
|
-
}, deltaZ: 0, deltaMode: 0 })), Ec = [9, 13, 27, 32], ya = t && "CompositionEvent" in window,
|
|
21415
|
+
}, deltaZ: 0, deltaMode: 0 })), Ec = [9, 13, 27, 32], ya = t && "CompositionEvent" in window, cr = null, ba = (t && "documentMode" in document && (cr = document.documentMode), t && "TextEvent" in window && !cr), wi = t && (!ya || cr && 8 < cr && cr <= 11), va = String.fromCharCode(32), dl = !1;
|
|
21416
21416
|
function fl(E, A) {
|
|
21417
21417
|
switch (E) {
|
|
21418
21418
|
case "keyup":
|
|
@@ -21484,7 +21484,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
|
|
|
21484
21484
|
if (E === "input" || E === "change")
|
|
21485
21485
|
return ke(A);
|
|
21486
21486
|
}
|
|
21487
|
-
t && (
|
|
21487
|
+
t && (cr = t && ((se = "oninput" in document) || ((Fn = document.createElement("div")).setAttribute("oninput", "return;"), se = typeof Fn.oninput == "function"), se), Qe = cr && (!document.documentMode || 9 < document.documentMode));
|
|
21488
21488
|
var Xn = typeof Object.is == "function" ? Object.is : function(E, A) {
|
|
21489
21489
|
return E === A && (E !== 0 || 1 / E == 1 / A) || E != E && A != A;
|
|
21490
21490
|
}, Db = Object.prototype.hasOwnProperty;
|
|
@@ -22413,25 +22413,25 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " "));
|
|
|
22413
22413
|
throw Error(i(150));
|
|
22414
22414
|
if ((Ro = Qo.call(Ro)) == null)
|
|
22415
22415
|
throw Error(i(151));
|
|
22416
|
-
for (var ti = Qo = null,
|
|
22417
|
-
|
|
22418
|
-
var vs = Me(qn,
|
|
22416
|
+
for (var ti = Qo = null, ur = eo, ei = eo = 0, iu = null, Un = Ro.next(); ur !== null && !Un.done; ei++, Un = Ro.next()) {
|
|
22417
|
+
ur.index > ei ? (iu = ur, ur = null) : iu = ur.sibling;
|
|
22418
|
+
var vs = Me(qn, ur, Un.value, xf);
|
|
22419
22419
|
if (vs === null) {
|
|
22420
|
-
|
|
22420
|
+
ur === null && (ur = iu);
|
|
22421
22421
|
break;
|
|
22422
22422
|
}
|
|
22423
|
-
E &&
|
|
22423
|
+
E && ur && vs.alternate === null && A(qn, ur), eo = st(vs, eo, ei), ti === null ? Qo = vs : ti.sibling = vs, ti = vs, ur = iu;
|
|
22424
22424
|
}
|
|
22425
22425
|
if (Un.done)
|
|
22426
|
-
return J(qn,
|
|
22427
|
-
if (
|
|
22426
|
+
return J(qn, ur), Qo;
|
|
22427
|
+
if (ur === null) {
|
|
22428
22428
|
for (; !Un.done; ei++, Un = Ro.next())
|
|
22429
22429
|
(Un = ue(qn, Un.value, xf)) !== null && (eo = st(Un, eo, ei), ti === null ? Qo = Un : ti.sibling = Un, ti = Un);
|
|
22430
22430
|
return Qo;
|
|
22431
22431
|
}
|
|
22432
|
-
for (
|
|
22433
|
-
(Un = gn(
|
|
22434
|
-
return E &&
|
|
22432
|
+
for (ur = it(qn, ur); !Un.done; ei++, Un = Ro.next())
|
|
22433
|
+
(Un = gn(ur, qn, ei, Un.value, xf)) !== null && (E && Un.alternate !== null && ur.delete(Un.key === null ? ei : Un.key), eo = st(Un, eo, ei), ti === null ? Qo = Un : ti.sibling = Un, ti = Un);
|
|
22434
|
+
return E && ur.forEach(function(wf) {
|
|
22435
22435
|
return A(qn, wf);
|
|
22436
22436
|
}), Qo;
|
|
22437
22437
|
}
|
|
@@ -24631,7 +24631,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
24631
24631
|
(dn = J) === 0 && (hs(), Ao());
|
|
24632
24632
|
}
|
|
24633
24633
|
};
|
|
24634
|
-
if (
|
|
24634
|
+
if (cr = { Events: [bl, is, Ac, Ie, $e, Mi, { current: !(ae = function() {
|
|
24635
24635
|
var E;
|
|
24636
24636
|
!(49 & dn) && (Xo !== null && (E = Xo, Xo = null, E.forEach(function(A) {
|
|
24637
24637
|
A.expiredLanes |= 24 & A.pendingLanes, Qr(A, _r());
|
|
@@ -24645,7 +24645,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
24645
24645
|
Od = Fn.inject(xn), Sa = Fn;
|
|
24646
24646
|
} catch {
|
|
24647
24647
|
}
|
|
24648
|
-
r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
|
|
24648
|
+
r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = cr, r.createPortal = Bg, r.findDOMNode = function(E) {
|
|
24649
24649
|
if (E == null)
|
|
24650
24650
|
return null;
|
|
24651
24651
|
if (E.nodeType === 1)
|
|
@@ -33804,7 +33804,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33804
33804
|
function ya(zt, ne) {
|
|
33805
33805
|
W(zt, ne, Ut);
|
|
33806
33806
|
}
|
|
33807
|
-
function
|
|
33807
|
+
function cr(zt, ne, fe) {
|
|
33808
33808
|
K(zt, ne, fe, $e, Ut);
|
|
33809
33809
|
}
|
|
33810
33810
|
function ba(zt) {
|
|
@@ -33961,7 +33961,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33961
33961
|
ne[ke].sid !== kt && fe.push(ne[ke]);
|
|
33962
33962
|
0 < fe.length && Ct.a.e(xt, zt, fe);
|
|
33963
33963
|
}
|
|
33964
|
-
}, this.nsm =
|
|
33964
|
+
}, this.nsm = cr, this.ihb = function() {
|
|
33965
33965
|
return ++wi;
|
|
33966
33966
|
}, this.ghb = function() {
|
|
33967
33967
|
return wi;
|
|
@@ -34151,7 +34151,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34151
34151
|
if (Te) {
|
|
34152
34152
|
Zt = v, me = !0, bn.mbs.push(be), Yr(bn.mbs), ba(pe);
|
|
34153
34153
|
try {
|
|
34154
|
-
|
|
34154
|
+
cr(S);
|
|
34155
34155
|
} catch (tn) {
|
|
34156
34156
|
console.error(tn);
|
|
34157
34157
|
}
|
|
@@ -34160,7 +34160,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34160
34160
|
} else if (Nn.sid, Nn.sid = kt, u(Nn), p(Tt), Te) {
|
|
34161
34161
|
Zt = v, me = !0, c(bn.mbs), bn.mbs = [], bn.mbs.push(be), c(bn.mbs), fe = Ut.pt.stm, ke = Ut.pt.gtm, c(ke()), fe([]), Yr(bn.mbs), c(ke()), ba(pe);
|
|
34162
34162
|
try {
|
|
34163
|
-
|
|
34163
|
+
cr(S);
|
|
34164
34164
|
} catch (tn) {
|
|
34165
34165
|
console.error(tn);
|
|
34166
34166
|
}
|
|
@@ -40972,7 +40972,7 @@ var W_ = (y) => {
|
|
|
40972
40972
|
var d = {};
|
|
40973
40973
|
return nn.d(d, y), d;
|
|
40974
40974
|
};
|
|
40975
|
-
const ye = W_({ $addUpdateTag: () => qv, $createNodeSelection: () => sp, $createParagraphNode: () => rr, $createRangeSelection: () => Yp, $getNodeByKey: () => Wn, $getRoot: () => Bn, $getSelection: () => Ae, $isDecoratorNode: () => Tn, $isElementNode: () => ge, $isLineBreakNode: () => Da, $isNodeSelection: () => oo, $isParagraphNode: () => Ha, $isRangeSelection: () => xe, $isTextNode: () => Pe, $nodesOfType: () => sy, $setSelection: () =>
|
|
40975
|
+
const ye = W_({ $addUpdateTag: () => qv, $createNodeSelection: () => sp, $createParagraphNode: () => rr, $createRangeSelection: () => Yp, $getNodeByKey: () => Wn, $getRoot: () => Bn, $getSelection: () => Ae, $isDecoratorNode: () => Tn, $isElementNode: () => ge, $isLineBreakNode: () => Da, $isNodeSelection: () => oo, $isParagraphNode: () => Ha, $isRangeSelection: () => xe, $isTextNode: () => Pe, $nodesOfType: () => sy, $setSelection: () => lr, CAN_REDO_COMMAND: () => Us, CAN_UNDO_COMMAND: () => $s, CLEAR_EDITOR_COMMAND: () => Np, COMMAND_PRIORITY_CRITICAL: () => no, COMMAND_PRIORITY_EDITOR: () => on, CUT_COMMAND: () => gc, DecoratorNode: () => Ny, ElementNode: () => Uo, KEY_BACKSPACE_COMMAND: () => fc, KEY_DELETE_COMMAND: () => pc, KEY_ESCAPE_COMMAND: () => nd, LineBreakNode: () => nl, PASTE_COMMAND: () => cc, ParagraphNode: () => Va, REDO_COMMAND: () => dc, RootNode: () => ol, TextNode: () => na, UNDO_COMMAND: () => uc, createCommand: () => kp, createEditor: () => Ry });
|
|
40976
40976
|
var J_ = (y) => {
|
|
40977
40977
|
var d = {};
|
|
40978
40978
|
return nn.d(d, y), d;
|
|
@@ -44336,7 +44336,7 @@ var yu = u2(function(y) {
|
|
|
44336
44336
|
});
|
|
44337
44337
|
function d2({ hasCellMerge: y = !0, hasCellBackgroundColor: d = !0, hasTabHandler: g = !0 }) {
|
|
44338
44338
|
const [t] = Ir();
|
|
44339
|
-
return
|
|
44339
|
+
return sr(() => (t.hasNodes([Do, Lo, Ka]) || yu(10), $o(t.registerCommand(g_, ({ columns: f, rows: r, includeHeaders: n }) => {
|
|
44340
44340
|
const e = ub(Number(r), Number(f), n);
|
|
44341
44341
|
Vy(e);
|
|
44342
44342
|
const s = e.getFirstDescendant();
|
|
@@ -44353,7 +44353,7 @@ function d2({ hasCellMerge: y = !0, hasCellBackgroundColor: d = !0, hasTabHandle
|
|
|
44353
44353
|
o.append(rr()), i !== null ? i.insertAfter(o) : Cm(i, o);
|
|
44354
44354
|
}
|
|
44355
44355
|
}
|
|
44356
|
-
}))), [t]),
|
|
44356
|
+
}))), [t]), sr(() => {
|
|
44357
44357
|
const f = /* @__PURE__ */ new Map(), r = (e) => {
|
|
44358
44358
|
const s = e.getKey(), i = t.getElementByKey(s);
|
|
44359
44359
|
if (i && !f.has(s)) {
|
|
@@ -44383,7 +44383,7 @@ function d2({ hasCellMerge: y = !0, hasCellBackgroundColor: d = !0, hasTabHandle
|
|
|
44383
44383
|
for (const [, e] of f)
|
|
44384
44384
|
e.removeListeners();
|
|
44385
44385
|
};
|
|
44386
|
-
}, [t, g]),
|
|
44386
|
+
}, [t, g]), sr(() => {
|
|
44387
44387
|
if (!y)
|
|
44388
44388
|
return t.registerNodeTransform(Lo, (f) => {
|
|
44389
44389
|
if (f.getColSpan() > 1 || f.getRowSpan() > 1) {
|
|
@@ -44409,7 +44409,7 @@ function d2({ hasCellMerge: y = !0, hasCellBackgroundColor: d = !0, hasTabHandle
|
|
|
44409
44409
|
o.setColSpan(1), o.setRowSpan(1);
|
|
44410
44410
|
}
|
|
44411
44411
|
});
|
|
44412
|
-
}, [t, y]),
|
|
44412
|
+
}, [t, y]), sr(() => {
|
|
44413
44413
|
if (!d)
|
|
44414
44414
|
return t.registerNodeTransform(Lo, (f) => {
|
|
44415
44415
|
f.getBackgroundColor() !== null && f.setBackgroundColor(null);
|
|
@@ -44706,7 +44706,7 @@ function E2() {
|
|
|
44706
44706
|
Hy(S, "font-size", "11px")
|
|
44707
44707
|
));
|
|
44708
44708
|
}, []);
|
|
44709
|
-
return
|
|
44709
|
+
return sr(() => $o(
|
|
44710
44710
|
y.registerUpdateListener(({ editorState: S }) => {
|
|
44711
44711
|
S.read(() => {
|
|
44712
44712
|
x();
|
|
@@ -44932,7 +44932,7 @@ function P2({ collabApiKey: y, spfList: d, userObj: g }) {
|
|
|
44932
44932
|
version: 1
|
|
44933
44933
|
}
|
|
44934
44934
|
};
|
|
44935
|
-
|
|
44935
|
+
sr(() => {
|
|
44936
44936
|
(async () => {
|
|
44937
44937
|
if (!e)
|
|
44938
44938
|
return;
|
|
@@ -44945,7 +44945,7 @@ function P2({ collabApiKey: y, spfList: d, userObj: g }) {
|
|
|
44945
44945
|
console.error("[APP] error: ", x);
|
|
44946
44946
|
}
|
|
44947
44947
|
})();
|
|
44948
|
-
}, [e]),
|
|
44948
|
+
}, [e]), sr(() => {
|
|
44949
44949
|
i && e && !t && m();
|
|
44950
44950
|
}, [i, e, t]), el(
|
|
44951
44951
|
() => ({
|
|
@@ -44970,7 +44970,11 @@ function P2({ collabApiKey: y, spfList: d, userObj: g }) {
|
|
|
44970
44970
|
));
|
|
44971
44971
|
}), /* @__PURE__ */ Ee.jsx("div", { className: "flexContainer", children: w });
|
|
44972
44972
|
};
|
|
44973
|
-
return console.log("iam user object", g), console.log("i am
|
|
44973
|
+
return console.log("iam user object", g), console.log("i am CodoxStarted", t), sr(() => {
|
|
44974
|
+
setTimeout(() => {
|
|
44975
|
+
(!u || !u.current) && m();
|
|
44976
|
+
}, 5e3);
|
|
44977
|
+
}, []), /* @__PURE__ */ Ee.jsx("div", { children: t && /* @__PURE__ */ Ee.jsxs(Dy, { initialConfig: O2, children: [
|
|
44974
44978
|
v(),
|
|
44975
44979
|
/* @__PURE__ */ Ee.jsxs("div", { className: "editor-container", children: [
|
|
44976
44980
|
/* @__PURE__ */ Ee.jsx(E2, {}),
|