sykpcomposer 0.0.37 → 0.0.38
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/assets/icons/3-columns.svg +3 -0
- package/dist/assets/icons/LICENSE.md +5 -0
- package/dist/assets/icons/add-sign.svg +3 -0
- package/dist/assets/icons/arrow-clockwise.svg +1 -0
- package/dist/assets/icons/arrow-counterclockwise.svg +1 -0
- package/dist/assets/icons/bg-color.svg +1 -0
- package/dist/assets/icons/camera.svg +1 -0
- package/dist/assets/icons/card-checklist.svg +1 -0
- package/dist/assets/icons/caret-right-fill.svg +1 -0
- package/dist/assets/icons/chat-left-text.svg +1 -0
- package/dist/assets/icons/chat-right-dots.svg +1 -0
- package/dist/assets/icons/chat-right-text.svg +1 -0
- package/dist/assets/icons/chat-right.svg +1 -0
- package/dist/assets/icons/chat-square-quote.svg +1 -0
- package/dist/assets/icons/chevron-down.svg +1 -0
- package/dist/assets/icons/clipboard.svg +1 -0
- package/dist/assets/icons/close.svg +1 -0
- package/dist/assets/icons/code.svg +1 -0
- package/dist/assets/icons/comments.svg +1 -0
- package/dist/assets/icons/copy.svg +1 -0
- package/dist/assets/icons/diagram-2.svg +1 -0
- package/dist/assets/icons/download.svg +1 -0
- package/dist/assets/icons/draggable-block-menu.svg +1 -0
- package/dist/assets/icons/dropdown-more.svg +1 -0
- package/dist/assets/icons/figma.svg +1 -0
- package/dist/assets/icons/file-earmark-text.svg +4 -0
- package/dist/assets/icons/file-image.svg +1 -0
- package/dist/assets/icons/filetype-gif.svg +1 -0
- package/dist/assets/icons/font-color.svg +1 -0
- package/dist/assets/icons/font-family.svg +1 -0
- package/dist/assets/icons/gear.svg +1 -0
- package/dist/assets/icons/horizontal-rule.svg +1 -0
- package/dist/assets/icons/indent.svg +1 -0
- package/dist/assets/icons/journal-code.svg +1 -0
- package/dist/assets/icons/journal-text.svg +1 -0
- package/dist/assets/icons/justify.svg +1 -0
- package/dist/assets/icons/link.svg +1 -0
- package/dist/assets/icons/list-ol.svg +1 -0
- package/dist/assets/icons/list-ul.svg +1 -0
- package/dist/assets/icons/lock-fill.svg +1 -0
- package/dist/assets/icons/lock.svg +1 -0
- package/dist/assets/icons/markdown.svg +1 -0
- package/dist/assets/icons/mic.svg +1 -0
- package/dist/assets/icons/minus-sign.svg +3 -0
- package/dist/assets/icons/outdent.svg +1 -0
- package/dist/assets/icons/paint-bucket.svg +1 -0
- package/dist/assets/icons/palette.svg +1 -0
- package/dist/assets/icons/pencil-fill.svg +1 -0
- package/dist/assets/icons/plug-fill.svg +1 -0
- package/dist/assets/icons/plug.svg +1 -0
- package/dist/assets/icons/plus-slash-minus.svg +1 -0
- package/dist/assets/icons/plus.svg +1 -0
- package/dist/assets/icons/prettier-error.svg +1 -0
- package/dist/assets/icons/prettier.svg +1 -0
- package/dist/assets/icons/scissors.svg +3 -0
- package/dist/assets/icons/send.svg +1 -0
- package/dist/assets/icons/square-check.svg +1 -0
- package/dist/assets/icons/sticky.svg +1 -0
- package/dist/assets/icons/success-alt.svg +1 -0
- package/dist/assets/icons/success.svg +1 -0
- package/dist/assets/icons/table.svg +1 -0
- package/dist/assets/icons/text-center.svg +1 -0
- package/dist/assets/icons/text-left.svg +1 -0
- package/dist/assets/icons/text-paragraph.svg +1 -0
- package/dist/assets/icons/text-right.svg +1 -0
- package/dist/assets/icons/trash.svg +1 -0
- package/dist/assets/icons/trash3.svg +1 -0
- package/dist/assets/icons/tweet.svg +1 -0
- package/dist/assets/icons/type-bold.svg +1 -0
- package/dist/assets/icons/type-h1.svg +1 -0
- package/dist/assets/icons/type-h2.svg +1 -0
- package/dist/assets/icons/type-h3.svg +1 -0
- package/dist/assets/icons/type-h4.svg +1 -0
- package/dist/assets/icons/type-h5.svg +1 -0
- package/dist/assets/icons/type-h6.svg +1 -0
- package/dist/assets/icons/type-italic.svg +1 -0
- package/dist/assets/icons/type-strikethrough.svg +1 -0
- package/dist/assets/icons/type-subscript.svg +1 -0
- package/dist/assets/icons/type-superscript.svg +1 -0
- package/dist/assets/icons/type-underline.svg +1 -0
- package/dist/assets/icons/upload.svg +1 -0
- package/dist/assets/icons/user.svg +1 -0
- package/dist/assets/icons/youtube.svg +1 -0
- package/dist/index.es.js +139 -137
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Editor.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var ek = Object.defineProperty;
|
|
|
2
2
|
var tk = (c, t, n) => t in c ? ek(c, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : c[t] = n;
|
|
3
3
|
var td = (c, t, n) => (tk(c, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as gn from "react";
|
|
5
|
-
import iC, { createContext as Vh, useContext as Gh, useMemo as hi, useLayoutEffect as To, useEffect as
|
|
5
|
+
import iC, { createContext as Vh, useContext as Gh, useMemo as hi, useLayoutEffect as To, useEffect as Yn, useState as er, useCallback as Db, useRef as Yh, Suspense as Xh } from "react";
|
|
6
6
|
import * as nk from "react-dom";
|
|
7
7
|
import { flushSync as Zh, createPortal as Qh } from "react-dom";
|
|
8
8
|
function rk(c) {
|
|
@@ -868,7 +868,7 @@ function ux(c, t) {
|
|
|
868
868
|
return (n === null || n === r) && (e === null || e === o) && (s === null || s === i);
|
|
869
869
|
}
|
|
870
870
|
function dx(c, t) {
|
|
871
|
-
const n = c.mergeWithSibling(t), e =
|
|
871
|
+
const n = c.mergeWithSibling(t), e = tr()._normalizedNodes;
|
|
872
872
|
return e.add(c.__key), e.add(t.__key), n;
|
|
873
873
|
}
|
|
874
874
|
function DC(c) {
|
|
@@ -988,7 +988,7 @@ function BC(c, t) {
|
|
|
988
988
|
return;
|
|
989
989
|
}
|
|
990
990
|
Zr(), vE();
|
|
991
|
-
const n =
|
|
991
|
+
const n = tr(), e = Vi(), s = Dk();
|
|
992
992
|
e._nodeMap.set(s, c), At(c) ? n._dirtyElements.set(s, !0) : n._dirtyLeaves.add(s), n._cloneNotNeeded.add(s), n._dirtyType = NC, c.__key = s;
|
|
993
993
|
}
|
|
994
994
|
function Hk(c, t, n) {
|
|
@@ -1041,7 +1041,7 @@ function pl(c) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
function ch(c) {
|
|
1043
1043
|
vE();
|
|
1044
|
-
const t = c.getLatest(), n = t.__parent, e = Vi(), s =
|
|
1044
|
+
const t = c.getLatest(), n = t.__parent, e = Vi(), s = tr(), r = e._nodeMap, o = s._dirtyElements;
|
|
1045
1045
|
n !== null && Hk(n, r, o);
|
|
1046
1046
|
const i = t.__key;
|
|
1047
1047
|
s._dirtyType = NC, At(c) ? o.set(i, !0) : s._dirtyLeaves.add(i);
|
|
@@ -1052,7 +1052,7 @@ function Kk(c) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
function jr(c) {
|
|
1054
1054
|
Zr();
|
|
1055
|
-
const t =
|
|
1055
|
+
const t = tr(), n = t._compositionKey;
|
|
1056
1056
|
if (c !== n) {
|
|
1057
1057
|
if (t._compositionKey = c, n !== null) {
|
|
1058
1058
|
const e = Qr(n);
|
|
@@ -1065,14 +1065,14 @@ function jr(c) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
function ra() {
|
|
1068
|
-
return nu() ? null :
|
|
1068
|
+
return nu() ? null : tr()._compositionKey;
|
|
1069
1069
|
}
|
|
1070
1070
|
function Qr(c, t) {
|
|
1071
1071
|
const e = (t || Vi())._nodeMap.get(c);
|
|
1072
1072
|
return e === void 0 ? null : e;
|
|
1073
1073
|
}
|
|
1074
1074
|
function FC(c, t) {
|
|
1075
|
-
const n =
|
|
1075
|
+
const n = tr(), e = c[`__lexicalKey_${n._key}`];
|
|
1076
1076
|
return e !== void 0 ? Qr(e, t) : null;
|
|
1077
1077
|
}
|
|
1078
1078
|
function nf(c, t) {
|
|
@@ -1126,11 +1126,11 @@ function zi(c) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
function qk() {
|
|
1128
1128
|
Zr();
|
|
1129
|
-
const c =
|
|
1129
|
+
const c = tr();
|
|
1130
1130
|
RC(c);
|
|
1131
1131
|
}
|
|
1132
1132
|
function Mc(c) {
|
|
1133
|
-
const t =
|
|
1133
|
+
const t = tr(), n = Jk(c, t);
|
|
1134
1134
|
if (n === null) {
|
|
1135
1135
|
const e = t.getRootElement();
|
|
1136
1136
|
return c === e ? Qr("root") : null;
|
|
@@ -1197,7 +1197,7 @@ function cv(c, t, n, e, s) {
|
|
|
1197
1197
|
if (s || i !== u) {
|
|
1198
1198
|
if (i === "") {
|
|
1199
1199
|
if (jr(null), !Ub && !tg && !Hb) {
|
|
1200
|
-
const m =
|
|
1200
|
+
const m = tr();
|
|
1201
1201
|
setTimeout(() => {
|
|
1202
1202
|
m.update(() => {
|
|
1203
1203
|
r.isAttached() && r.remove();
|
|
@@ -1449,10 +1449,10 @@ function OA(c, t, n) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
1451
|
function TA(c) {
|
|
1452
|
-
return
|
|
1452
|
+
return tr()._updateTags.has(c);
|
|
1453
1453
|
}
|
|
1454
1454
|
function NA(c) {
|
|
1455
|
-
Zr(),
|
|
1455
|
+
Zr(), tr()._updateTags.add(c);
|
|
1456
1456
|
}
|
|
1457
1457
|
function kA(c) {
|
|
1458
1458
|
const t = Vn();
|
|
@@ -1503,7 +1503,7 @@ function YC(c) {
|
|
|
1503
1503
|
return BC(t, null), t;
|
|
1504
1504
|
}
|
|
1505
1505
|
function of(c) {
|
|
1506
|
-
const t =
|
|
1506
|
+
const t = tr(), n = c.constructor.getType(), e = t._nodes.get(n);
|
|
1507
1507
|
if (e === void 0)
|
|
1508
1508
|
throw Error('$initializeNode failed. Ensure node has been registered to the editor. You can do this by passing the node class via the "nodes" array in the editor config.');
|
|
1509
1509
|
const s = e.replace;
|
|
@@ -1605,7 +1605,7 @@ function w0(c, t) {
|
|
|
1605
1605
|
return t(n) ? n : null;
|
|
1606
1606
|
}
|
|
1607
1607
|
function DA() {
|
|
1608
|
-
return
|
|
1608
|
+
return tr();
|
|
1609
1609
|
}
|
|
1610
1610
|
function LA(c, t) {
|
|
1611
1611
|
const n = c._decorators;
|
|
@@ -1916,7 +1916,7 @@ let sf = 0, oE = 0, iE = 0, mc = null;
|
|
|
1916
1916
|
const ph = /* @__PURE__ */ new WeakMap();
|
|
1917
1917
|
let gy = !1, my = !1, wd = !1, ud = !1, sE = [0, "", 0, "root", 0];
|
|
1918
1918
|
function aE(c, t, n, e, s) {
|
|
1919
|
-
const r = c.anchor, o = c.focus, i = r.getNode(), u =
|
|
1919
|
+
const r = c.anchor, o = c.focus, i = r.getNode(), u = tr(), a = Ji(u._window), f = a !== null ? a.anchorNode : null, l = r.key, d = u.getElementByKey(l), p = n.length;
|
|
1920
1920
|
return l !== o.key || // If we're working with a non-text node.
|
|
1921
1921
|
!rn(i) || // If we are replacing a range with a single character or grapheme, and not composing.
|
|
1922
1922
|
(!s && (!rh || // We check to see if there has been
|
|
@@ -2726,7 +2726,7 @@ class ug {
|
|
|
2726
2726
|
*
|
|
2727
2727
|
*/
|
|
2728
2728
|
isDirty() {
|
|
2729
|
-
const n =
|
|
2729
|
+
const n = tr()._dirtyLeaves;
|
|
2730
2730
|
return n !== null && n.has(this.__key);
|
|
2731
2731
|
}
|
|
2732
2732
|
/**
|
|
@@ -2747,7 +2747,7 @@ class ug {
|
|
|
2747
2747
|
*/
|
|
2748
2748
|
getWritable() {
|
|
2749
2749
|
Zr();
|
|
2750
|
-
const t = Vi(), n =
|
|
2750
|
+
const t = Vi(), n = tr(), e = t._nodeMap, s = this.__key, r = this.getLatest(), o = r.__parent, i = n._cloneNotNeeded, u = Vn();
|
|
2751
2751
|
if (u !== null && u.setCachedNodes(null), i.has(s))
|
|
2752
2752
|
return ch(r), r;
|
|
2753
2753
|
const f = r.constructor.clone(r);
|
|
@@ -3024,7 +3024,7 @@ class ug {
|
|
|
3024
3024
|
}
|
|
3025
3025
|
}
|
|
3026
3026
|
function aP(c, t) {
|
|
3027
|
-
const n =
|
|
3027
|
+
const n = tr()._nodes.get(c);
|
|
3028
3028
|
if (n === void 0)
|
|
3029
3029
|
throw Error(`Create node: Attempted to create node ${t.name} that was not configured to be used on the editor.`);
|
|
3030
3030
|
const e = n.klass;
|
|
@@ -4072,7 +4072,7 @@ class Oa {
|
|
|
4072
4072
|
* @param range a DOM Selection range conforming to the StaticRange interface.
|
|
4073
4073
|
*/
|
|
4074
4074
|
applyDOMRange(t) {
|
|
4075
|
-
const n =
|
|
4075
|
+
const n = tr(), s = n.getEditorState()._selection, r = yE(t.startContainer, t.startOffset, t.endContainer, t.endOffset, n, s);
|
|
4076
4076
|
if (r === null)
|
|
4077
4077
|
return;
|
|
4078
4078
|
const [o, i] = r;
|
|
@@ -4433,7 +4433,7 @@ class Oa {
|
|
|
4433
4433
|
return;
|
|
4434
4434
|
}
|
|
4435
4435
|
}
|
|
4436
|
-
const u =
|
|
4436
|
+
const u = tr(), a = Ji(u._window);
|
|
4437
4437
|
if (!a)
|
|
4438
4438
|
return;
|
|
4439
4439
|
const f = u._blockCursorElement, l = u._rootElement;
|
|
@@ -4495,7 +4495,7 @@ class Oa {
|
|
|
4495
4495
|
const i = _y();
|
|
4496
4496
|
i.add(o.__key), zi(i);
|
|
4497
4497
|
} else
|
|
4498
|
-
o.remove(),
|
|
4498
|
+
o.remove(), tr().dispatchCommand(eg, void 0);
|
|
4499
4499
|
return;
|
|
4500
4500
|
} else if (!t && At(o) && At(s) && s.isEmpty()) {
|
|
4501
4501
|
s.remove(), o.selectStart();
|
|
@@ -4669,7 +4669,7 @@ function mE(c, t, n) {
|
|
|
4669
4669
|
if (c.type === "text" && t.type === "text") {
|
|
4670
4670
|
const e = c.isBefore(t), s = c.is(t);
|
|
4671
4671
|
Px(c, e, s), Px(t, !e, s), s && (t.key = c.key, t.offset = c.offset, t.type = c.type);
|
|
4672
|
-
const r =
|
|
4672
|
+
const r = tr();
|
|
4673
4673
|
if (r.isComposing() && r._compositionKey !== c.key && bn(n)) {
|
|
4674
4674
|
const o = n.anchor, i = n.focus;
|
|
4675
4675
|
oa(c, o.key, o.offset, o.type), oa(t, i.key, i.offset, i.type);
|
|
@@ -4733,7 +4733,7 @@ function Vn() {
|
|
|
4733
4733
|
return Vi()._selection;
|
|
4734
4734
|
}
|
|
4735
4735
|
function tu() {
|
|
4736
|
-
return
|
|
4736
|
+
return tr()._editorState._selection;
|
|
4737
4737
|
}
|
|
4738
4738
|
function hh(c, t, n, e = 1) {
|
|
4739
4739
|
const s = c.anchor, r = c.focus, o = s.getNode(), i = r.getNode();
|
|
@@ -4917,7 +4917,7 @@ function Vi() {
|
|
|
4917
4917
|
throw Error("Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read().");
|
|
4918
4918
|
return Lr;
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function tr() {
|
|
4921
4921
|
if (Br === null)
|
|
4922
4922
|
throw Error("Unable to find an active editor. This method can only be used synchronously during the callback of editor.update().");
|
|
4923
4923
|
return Br;
|
|
@@ -4972,7 +4972,7 @@ function jP(c, t) {
|
|
|
4972
4972
|
t._dirtyLeaves = n, t._dirtyElements = e;
|
|
4973
4973
|
}
|
|
4974
4974
|
function DP(c) {
|
|
4975
|
-
return bv(c,
|
|
4975
|
+
return bv(c, tr()._nodes);
|
|
4976
4976
|
}
|
|
4977
4977
|
function bv(c, t) {
|
|
4978
4978
|
const n = c.type, e = t.get(n);
|
|
@@ -5253,7 +5253,7 @@ let hg = class extends ug {
|
|
|
5253
5253
|
return this.getChildrenSize() === 0;
|
|
5254
5254
|
}
|
|
5255
5255
|
isDirty() {
|
|
5256
|
-
const n =
|
|
5256
|
+
const n = tr()._dirtyElements;
|
|
5257
5257
|
return n !== null && n.has(this.__key);
|
|
5258
5258
|
}
|
|
5259
5259
|
isLastChild() {
|
|
@@ -5570,7 +5570,7 @@ let gg = class SE extends hg {
|
|
|
5570
5570
|
}
|
|
5571
5571
|
getTextContent() {
|
|
5572
5572
|
const t = this.__cachedText;
|
|
5573
|
-
return (nu() ||
|
|
5573
|
+
return (nu() || tr()._dirtyType === xl) && t !== null ? t : super.getTextContent();
|
|
5574
5574
|
}
|
|
5575
5575
|
remove() {
|
|
5576
5576
|
throw Error("remove: cannot be called on root nodes");
|
|
@@ -10442,7 +10442,7 @@ const AI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10442
10442
|
LexicalComposerContext: t2,
|
|
10443
10443
|
createLexicalComposerContext: NI,
|
|
10444
10444
|
useLexicalComposerContext: kI
|
|
10445
|
-
}, Symbol.toStringTag, { value: "Module" })), Vv = process.env.NODE_ENV === "development" ? OI : AI, Gv = Vv.LexicalComposerContext, n2 = Vv.createLexicalComposerContext, mr = Vv.useLexicalComposerContext, r2 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", PI = r2 ? To :
|
|
10445
|
+
}, Symbol.toStringTag, { value: "Module" })), Vv = process.env.NODE_ENV === "development" ? OI : AI, Gv = Vv.LexicalComposerContext, n2 = Vv.createLexicalComposerContext, mr = Vv.useLexicalComposerContext, r2 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", PI = r2 ? To : Yn;
|
|
10446
10446
|
var MI = PI;
|
|
10447
10447
|
const yp = {
|
|
10448
10448
|
tag: "history-merge"
|
|
@@ -10523,7 +10523,7 @@ const jI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10523
10523
|
__proto__: null,
|
|
10524
10524
|
LexicalComposer: II
|
|
10525
10525
|
}, Symbol.toStringTag, { value: "Module" })), o2 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
10526
|
-
var DI = o2 ? To :
|
|
10526
|
+
var DI = o2 ? To : Yn;
|
|
10527
10527
|
const bp = { tag: "history-merge" };
|
|
10528
10528
|
function LI({ initialConfig: c, children: t }) {
|
|
10529
10529
|
const n = hi(() => {
|
|
@@ -10576,7 +10576,7 @@ function $I({
|
|
|
10576
10576
|
defaultSelection: c
|
|
10577
10577
|
}) {
|
|
10578
10578
|
const [t] = mr();
|
|
10579
|
-
return
|
|
10579
|
+
return Yn(() => {
|
|
10580
10580
|
t.focus(() => {
|
|
10581
10581
|
const n = document.activeElement, e = t.getRootElement();
|
|
10582
10582
|
e !== null && (n === null || !e.contains(n)) && e.focus({
|
|
@@ -10593,7 +10593,7 @@ const zI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10593
10593
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10594
10594
|
function UI({ defaultSelection: c }) {
|
|
10595
10595
|
const [t] = mr();
|
|
10596
|
-
return
|
|
10596
|
+
return Yn(() => {
|
|
10597
10597
|
t.focus(() => {
|
|
10598
10598
|
const n = document.activeElement, e = t.getRootElement();
|
|
10599
10599
|
e === null || n !== null && e.contains(n) || e.focus({ preventScroll: !0 });
|
|
@@ -10614,7 +10614,7 @@ function zy() {
|
|
|
10614
10614
|
return c;
|
|
10615
10615
|
}, zy.apply(this, arguments);
|
|
10616
10616
|
}
|
|
10617
|
-
const WI = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", qI = WI ? To :
|
|
10617
|
+
const WI = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", qI = WI ? To : Yn;
|
|
10618
10618
|
var JI = qI;
|
|
10619
10619
|
function VI({
|
|
10620
10620
|
ariaActiveDescendant: c,
|
|
@@ -10637,7 +10637,7 @@ function VI({
|
|
|
10637
10637
|
"data-testid": y,
|
|
10638
10638
|
...b
|
|
10639
10639
|
}) {
|
|
10640
|
-
const [v] = mr(), [_, w] =
|
|
10640
|
+
const [v] = mr(), [_, w] = er(!1), x = Db((S) => {
|
|
10641
10641
|
S && S.ownerDocument && S.ownerDocument.defaultView && v.setRootElement(S);
|
|
10642
10642
|
}, [v]);
|
|
10643
10643
|
return JI(() => (w(v.isEditable()), v.registerEditableListener((S) => {
|
|
@@ -10680,9 +10680,9 @@ function Uy() {
|
|
|
10680
10680
|
return c;
|
|
10681
10681
|
}, Uy.apply(this, arguments);
|
|
10682
10682
|
}
|
|
10683
|
-
var YI = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To :
|
|
10683
|
+
var YI = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To : Yn;
|
|
10684
10684
|
function XI({ ariaActiveDescendant: c, ariaAutoComplete: t, ariaControls: n, ariaDescribedBy: e, ariaExpanded: s, ariaLabel: r, ariaLabelledBy: o, ariaMultiline: i, ariaOwns: u, ariaRequired: a, autoCapitalize: f, className: l, id: d, role: p = "textbox", spellCheck: h = !0, style: m, tabIndex: g, "data-testid": y, ...b }) {
|
|
10685
|
-
const [v] = mr(), [_, w] =
|
|
10685
|
+
const [v] = mr(), [_, w] = er(!1), x = Db((S) => {
|
|
10686
10686
|
S && S.ownerDocument && S.ownerDocument.defaultView && v.setRootElement(S);
|
|
10687
10687
|
}, [v]);
|
|
10688
10688
|
return YI(() => (w(v.isEditable()), v.registerEditableListener((S) => {
|
|
@@ -12409,7 +12409,7 @@ const FR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12409
12409
|
}, Symbol.toStringTag, { value: "Module" })), N2 = process.env.NODE_ENV === "development" ? PR : FR, Yg = N2.createEmptyHistoryState, k2 = N2.registerHistory;
|
|
12410
12410
|
function $R(c, t, n = 1e3) {
|
|
12411
12411
|
const e = hi(() => t || Yg(), [t]);
|
|
12412
|
-
|
|
12412
|
+
Yn(() => k2(c, e, n), [n, c, e]);
|
|
12413
12413
|
}
|
|
12414
12414
|
function zR({
|
|
12415
12415
|
externalHistoryState: c
|
|
@@ -12426,17 +12426,17 @@ function HR({ externalHistoryState: c }) {
|
|
|
12426
12426
|
const [t] = mr();
|
|
12427
12427
|
return function(n, e, s = 1e3) {
|
|
12428
12428
|
const r = hi(() => e || Yg(), [e]);
|
|
12429
|
-
|
|
12429
|
+
Yn(() => k2(n, r, s), [s, n, r]);
|
|
12430
12430
|
}(t, c), null;
|
|
12431
12431
|
}
|
|
12432
12432
|
const KR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12433
12433
|
__proto__: null,
|
|
12434
12434
|
HistoryPlugin: HR,
|
|
12435
12435
|
createEmptyHistoryState: Yg
|
|
12436
|
-
}, Symbol.toStringTag, { value: "Module" })), WR = process.env.NODE_ENV === "development" ? UR : KR, A2 = WR.HistoryPlugin, qR = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", JR = qR ? To :
|
|
12436
|
+
}, Symbol.toStringTag, { value: "Module" })), WR = process.env.NODE_ENV === "development" ? UR : KR, A2 = WR.HistoryPlugin, qR = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", JR = qR ? To : Yn;
|
|
12437
12437
|
var VR = JR;
|
|
12438
12438
|
function GR(c) {
|
|
12439
|
-
const [t] = mr(), n = hi(() => c(t), [t, c]), e = Yh(n.initialValueFn()), [s, r] =
|
|
12439
|
+
const [t] = mr(), n = hi(() => c(t), [t, c]), e = Yh(n.initialValueFn()), [s, r] = er(e.current);
|
|
12440
12440
|
return VR(() => {
|
|
12441
12441
|
const {
|
|
12442
12442
|
initialValueFn: o,
|
|
@@ -12460,13 +12460,13 @@ const ZR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12460
12460
|
__proto__: null,
|
|
12461
12461
|
default: XR
|
|
12462
12462
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12463
|
-
var QR = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To :
|
|
12463
|
+
var QR = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To : Yn;
|
|
12464
12464
|
function ej(c) {
|
|
12465
12465
|
return { initialValueFn: () => c.isEditable(), subscribe: (t) => c.registerEditableListener(t) };
|
|
12466
12466
|
}
|
|
12467
12467
|
function tj() {
|
|
12468
12468
|
return function(c) {
|
|
12469
|
-
const [t] = mr(), n = hi(() => c(t), [t, c]), e = Yh(n.initialValueFn()), [s, r] =
|
|
12469
|
+
const [t] = mr(), n = hi(() => c(t), [t, c]), e = Yh(n.initialValueFn()), [s, r] = er(e.current);
|
|
12470
12470
|
return QR(() => {
|
|
12471
12471
|
const { initialValueFn: o, subscribe: i } = n, u = o();
|
|
12472
12472
|
return e.current !== u && (e.current = u, r(u)), i((a) => {
|
|
@@ -14211,13 +14211,13 @@ const uD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14211
14211
|
QuoteNode: wf,
|
|
14212
14212
|
eventFiles: hd,
|
|
14213
14213
|
registerRichText: cD
|
|
14214
|
-
}, Symbol.toStringTag, { value: "Module" })), dD = process.env.NODE_ENV === "development" ? Qj : uD, rT = dD.registerRichText, fD = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", pD = fD ? To :
|
|
14214
|
+
}, Symbol.toStringTag, { value: "Module" })), dD = process.env.NODE_ENV === "development" ? Qj : uD, rT = dD.registerRichText, fD = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", pD = fD ? To : Yn;
|
|
14215
14215
|
var n_ = pD;
|
|
14216
14216
|
function Uw(c) {
|
|
14217
14217
|
return c.getEditorState().read(Zg(c.isComposing()));
|
|
14218
14218
|
}
|
|
14219
14219
|
function hD(c) {
|
|
14220
|
-
const [t, n] =
|
|
14220
|
+
const [t, n] = er(() => Uw(c));
|
|
14221
14221
|
return n_(() => {
|
|
14222
14222
|
function e() {
|
|
14223
14223
|
const s = Uw(c);
|
|
@@ -14231,12 +14231,12 @@ function hD(c) {
|
|
|
14231
14231
|
}, [c]), t;
|
|
14232
14232
|
}
|
|
14233
14233
|
function gD(c, t) {
|
|
14234
|
-
const [n, e] =
|
|
14234
|
+
const [n, e] = er(() => c.getDecorators());
|
|
14235
14235
|
return n_(() => c.registerDecoratorListener((s) => {
|
|
14236
14236
|
Zh(() => {
|
|
14237
14237
|
e(s);
|
|
14238
14238
|
});
|
|
14239
|
-
}), [c]),
|
|
14239
|
+
}), [c]), Yn(() => {
|
|
14240
14240
|
e(c.getDecorators());
|
|
14241
14241
|
}, [c]), hi(() => {
|
|
14242
14242
|
const s = [], r = Object.keys(n);
|
|
@@ -14274,18 +14274,18 @@ const vD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14274
14274
|
__proto__: null,
|
|
14275
14275
|
RichTextPlugin: yD
|
|
14276
14276
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14277
|
-
var Xy = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To :
|
|
14277
|
+
var Xy = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To : Yn;
|
|
14278
14278
|
function Hw(c) {
|
|
14279
14279
|
return c.getEditorState().read(Zg(c.isComposing()));
|
|
14280
14280
|
}
|
|
14281
14281
|
function _D({ contentEditable: c, placeholder: t, ErrorBoundary: n }) {
|
|
14282
14282
|
const [e] = mr(), s = function(r, o) {
|
|
14283
|
-
const [i, u] =
|
|
14283
|
+
const [i, u] = er(() => r.getDecorators());
|
|
14284
14284
|
return Xy(() => r.registerDecoratorListener((a) => {
|
|
14285
14285
|
Zh(() => {
|
|
14286
14286
|
u(a);
|
|
14287
14287
|
});
|
|
14288
|
-
}), [r]),
|
|
14288
|
+
}), [r]), Yn(() => {
|
|
14289
14289
|
u(r.getDecorators());
|
|
14290
14290
|
}, [r]), hi(() => {
|
|
14291
14291
|
const a = [], f = Object.keys(i);
|
|
@@ -14302,7 +14302,7 @@ function _D({ contentEditable: c, placeholder: t, ErrorBoundary: n }) {
|
|
|
14302
14302
|
}
|
|
14303
14303
|
function xD({ content: c }) {
|
|
14304
14304
|
const [t] = mr(), n = function(s) {
|
|
14305
|
-
const [r, o] =
|
|
14305
|
+
const [r, o] = er(() => Hw(s));
|
|
14306
14306
|
return Xy(() => {
|
|
14307
14307
|
function i() {
|
|
14308
14308
|
const u = Hw(s);
|
|
@@ -18039,7 +18039,7 @@ const c4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18039
18039
|
__proto__: null,
|
|
18040
18040
|
CollaborationContext: CT,
|
|
18041
18041
|
useCollaborationContext: l4
|
|
18042
|
-
}, Symbol.toStringTag, { value: "Module" })), u4 = process.env.NODE_ENV === "development" ? a4 : c4, d4 = u4.useCollaborationContext, f4 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", p4 = f4 ? To :
|
|
18042
|
+
}, Symbol.toStringTag, { value: "Module" })), u4 = process.env.NODE_ENV === "development" ? a4 : c4, d4 = u4.useCollaborationContext, f4 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", p4 = f4 ? To : Yn;
|
|
18043
18043
|
var h4 = p4;
|
|
18044
18044
|
function g4({
|
|
18045
18045
|
onClear: c
|
|
@@ -18057,7 +18057,7 @@ const m4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18057
18057
|
__proto__: null,
|
|
18058
18058
|
ClearEditorPlugin: g4
|
|
18059
18059
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18060
|
-
var y4 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To :
|
|
18060
|
+
var y4 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To : Yn;
|
|
18061
18061
|
function b4({ onClear: c }) {
|
|
18062
18062
|
const [t] = mr();
|
|
18063
18063
|
return y4(() => t.registerCommand(mf, (n) => (t.update(() => {
|
|
@@ -18202,7 +18202,7 @@ function N4({ children: c, onError: t }) {
|
|
|
18202
18202
|
const k4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18203
18203
|
__proto__: null,
|
|
18204
18204
|
default: N4
|
|
18205
|
-
}, Symbol.toStringTag, { value: "Module" })), A4 = process.env.NODE_ENV === "development" ? O4 : k4, P4 = A4.default, M4 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", I4 = M4 ? To :
|
|
18205
|
+
}, Symbol.toStringTag, { value: "Module" })), A4 = process.env.NODE_ENV === "development" ? O4 : k4, P4 = A4.default, M4 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", I4 = M4 ? To : Yn;
|
|
18206
18206
|
var R4 = I4;
|
|
18207
18207
|
function j4({
|
|
18208
18208
|
ignoreHistoryMergeTagChange: c = !0,
|
|
@@ -18227,7 +18227,7 @@ const D4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18227
18227
|
__proto__: null,
|
|
18228
18228
|
OnChangePlugin: j4
|
|
18229
18229
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18230
|
-
var L4 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To :
|
|
18230
|
+
var L4 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To : Yn;
|
|
18231
18231
|
function B4({ ignoreHistoryMergeTagChange: c = !0, ignoreSelectionChange: t = !1, onChange: n }) {
|
|
18232
18232
|
const [e] = mr();
|
|
18233
18233
|
return L4(() => {
|
|
@@ -18458,13 +18458,13 @@ function oL(c) {
|
|
|
18458
18458
|
const iL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18459
18459
|
__proto__: null,
|
|
18460
18460
|
registerPlainText: oL
|
|
18461
|
-
}, Symbol.toStringTag, { value: "Module" })), sL = process.env.NODE_ENV === "development" ? X4 : iL, OT = sL.registerPlainText, aL = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", lL = aL ? To :
|
|
18461
|
+
}, Symbol.toStringTag, { value: "Module" })), sL = process.env.NODE_ENV === "development" ? X4 : iL, OT = sL.registerPlainText, aL = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", lL = aL ? To : Yn;
|
|
18462
18462
|
var g_ = lL;
|
|
18463
18463
|
function tS(c) {
|
|
18464
18464
|
return c.getEditorState().read(Zg(c.isComposing()));
|
|
18465
18465
|
}
|
|
18466
18466
|
function cL(c) {
|
|
18467
|
-
const [t, n] =
|
|
18467
|
+
const [t, n] = er(() => tS(c));
|
|
18468
18468
|
return g_(() => {
|
|
18469
18469
|
function e() {
|
|
18470
18470
|
const s = tS(c);
|
|
@@ -18478,12 +18478,12 @@ function cL(c) {
|
|
|
18478
18478
|
}, [c]), t;
|
|
18479
18479
|
}
|
|
18480
18480
|
function uL(c, t) {
|
|
18481
|
-
const [n, e] =
|
|
18481
|
+
const [n, e] = er(() => c.getDecorators());
|
|
18482
18482
|
return g_(() => c.registerDecoratorListener((s) => {
|
|
18483
18483
|
Zh(() => {
|
|
18484
18484
|
e(s);
|
|
18485
18485
|
});
|
|
18486
|
-
}), [c]),
|
|
18486
|
+
}), [c]), Yn(() => {
|
|
18487
18487
|
e(c.getDecorators());
|
|
18488
18488
|
}, [c]), hi(() => {
|
|
18489
18489
|
const s = [], r = Object.keys(n);
|
|
@@ -18521,18 +18521,18 @@ const hL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
18521
18521
|
__proto__: null,
|
|
18522
18522
|
PlainTextPlugin: fL
|
|
18523
18523
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18524
|
-
var ub = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To :
|
|
18524
|
+
var ub = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? To : Yn;
|
|
18525
18525
|
function nS(c) {
|
|
18526
18526
|
return c.getEditorState().read(Zg(c.isComposing()));
|
|
18527
18527
|
}
|
|
18528
18528
|
function gL({ contentEditable: c, placeholder: t, ErrorBoundary: n }) {
|
|
18529
18529
|
const [e] = mr(), s = function(r, o) {
|
|
18530
|
-
const [i, u] =
|
|
18530
|
+
const [i, u] = er(() => r.getDecorators());
|
|
18531
18531
|
return ub(() => r.registerDecoratorListener((a) => {
|
|
18532
18532
|
Zh(() => {
|
|
18533
18533
|
u(a);
|
|
18534
18534
|
});
|
|
18535
|
-
}), [r]),
|
|
18535
|
+
}), [r]), Yn(() => {
|
|
18536
18536
|
u(r.getDecorators());
|
|
18537
18537
|
}, [r]), hi(() => {
|
|
18538
18538
|
const a = [], f = Object.keys(i);
|
|
@@ -18549,7 +18549,7 @@ function gL({ contentEditable: c, placeholder: t, ErrorBoundary: n }) {
|
|
|
18549
18549
|
}
|
|
18550
18550
|
function mL({ content: c }) {
|
|
18551
18551
|
const [t] = mr(), n = function(s) {
|
|
18552
|
-
const [r, o] =
|
|
18552
|
+
const [r, o] = er(() => nS(s));
|
|
18553
18553
|
return ub(() => {
|
|
18554
18554
|
function i() {
|
|
18555
18555
|
const u = nS(s);
|
|
@@ -32299,7 +32299,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " "));
|
|
|
32299
32299
|
}
|
|
32300
32300
|
(0, u.unstable_now)();
|
|
32301
32301
|
var On = 8;
|
|
32302
|
-
function
|
|
32302
|
+
function Xn(C) {
|
|
32303
32303
|
if (1 & C)
|
|
32304
32304
|
return On = 15, 1;
|
|
32305
32305
|
if (2 & C)
|
|
@@ -32314,10 +32314,10 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " "));
|
|
|
32314
32314
|
if (q === 0)
|
|
32315
32315
|
return On = 0;
|
|
32316
32316
|
var ie, oe = 0, ae = 0, ue = C.expiredLanes, _e = C.suspendedLanes, me = C.pingedLanes;
|
|
32317
|
-
if (ue !== 0 ? (oe = ue, ae = On = 15) : (ue = 134217727 & q) != 0 ? (ie = ue & ~_e) != 0 ? (oe =
|
|
32317
|
+
if (ue !== 0 ? (oe = ue, ae = On = 15) : (ue = 134217727 & q) != 0 ? (ie = ue & ~_e) != 0 ? (oe = Xn(ie), ae = On) : (me &= ue) != 0 && (oe = Xn(me), ae = On) : (ue = q & ~_e) != 0 ? (oe = Xn(ue), ae = On) : me !== 0 && (oe = Xn(me), ae = On), oe === 0)
|
|
32318
32318
|
return 0;
|
|
32319
32319
|
if (oe = q & (((oe = 31 - ti(oe)) < 0 ? 0 : 1 << oe) << 1) - 1, P !== 0 && P !== oe && !(P & _e)) {
|
|
32320
|
-
if (
|
|
32320
|
+
if (Xn(P), ae <= On)
|
|
32321
32321
|
return P;
|
|
32322
32322
|
On = ae;
|
|
32323
32323
|
}
|
|
@@ -32677,7 +32677,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " "));
|
|
|
32677
32677
|
if (xe)
|
|
32678
32678
|
throw C = Be, xe = !1, Be = null, C;
|
|
32679
32679
|
}
|
|
32680
|
-
function
|
|
32680
|
+
function Zn(C, P) {
|
|
32681
32681
|
var q = q_(P), ie = C + "__bubble";
|
|
32682
32682
|
q.has(ie) || (F_(P, C, 2, !1), q.add(ie));
|
|
32683
32683
|
}
|
|
@@ -33479,12 +33479,12 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " "));
|
|
|
33479
33479
|
if (Jf(mt)) {
|
|
33480
33480
|
for (var mn = Ve, on = rt, tn = mt, Rn = Lt, Fn = null, zn = null, Cn = on, kn = on = 0, wn = null; Cn !== null && kn < tn.length; kn++) {
|
|
33481
33481
|
Cn.index > kn ? (wn = Cn, Cn = null) : wn = Cn.sibling;
|
|
33482
|
-
var
|
|
33483
|
-
if (
|
|
33482
|
+
var Qn = Dt(mn, Cn, tn[kn], Rn);
|
|
33483
|
+
if (Qn === null) {
|
|
33484
33484
|
Cn === null && (Cn = wn);
|
|
33485
33485
|
break;
|
|
33486
33486
|
}
|
|
33487
|
-
C && Cn &&
|
|
33487
|
+
C && Cn && Qn.alternate === null && P(mn, Cn), on = ae(Qn, on, kn), zn === null ? Fn = Qn : zn.sibling = Qn, zn = Qn, Cn = wn;
|
|
33488
33488
|
}
|
|
33489
33489
|
if (kn === tn.length)
|
|
33490
33490
|
return q(mn, Cn), Fn;
|
|
@@ -34206,7 +34206,7 @@ Error generating stack: ` + ae.message + `
|
|
|
34206
34206
|
} else
|
|
34207
34207
|
q || (ue = ue || []).push(He, q), q = me;
|
|
34208
34208
|
else
|
|
34209
|
-
He === "dangerouslySetInnerHTML" ? (me = me ? me.__html : void 0, _e = _e ? _e.__html : void 0, me != null && _e !== me && (ue = ue || []).push(He, me)) : He === "children" ? typeof me != "string" && typeof me != "number" || (ue = ue || []).push(He, "" + me) : He !== "suppressContentEditableWarning" && He !== "suppressHydrationWarning" && (l.hasOwnProperty(He) ? (me != null && He === "onScroll" &&
|
|
34209
|
+
He === "dangerouslySetInnerHTML" ? (me = me ? me.__html : void 0, _e = _e ? _e.__html : void 0, me != null && _e !== me && (ue = ue || []).push(He, me)) : He === "children" ? typeof me != "string" && typeof me != "number" || (ue = ue || []).push(He, "" + me) : He !== "suppressContentEditableWarning" && He !== "suppressHydrationWarning" && (l.hasOwnProperty(He) ? (me != null && He === "onScroll" && Zn("scroll", C), ue || _e === me || (ue = [])) : typeof me == "object" && me !== null && me.$$typeof === z ? me.toString() : (ue = ue || []).push(He, me));
|
|
34210
34210
|
}
|
|
34211
34211
|
q && (ue = ue || []).push("style", q);
|
|
34212
34212
|
var He = ue;
|
|
@@ -34591,7 +34591,7 @@ Error generating stack: ` + ae.message + `
|
|
|
34591
34591
|
function qo(C, P) {
|
|
34592
34592
|
for (var q = C.callbackNode, ie = C.suspendedLanes, oe = C.pingedLanes, ae = C.expirationTimes, ue = C.pendingLanes; 0 < ue; ) {
|
|
34593
34593
|
var _e, me = 31 - ti(ue), He = 1 << me, it = ae[me];
|
|
34594
|
-
it === -1 ? He & ie && !(He & oe) || (it = P,
|
|
34594
|
+
it === -1 ? He & ie && !(He & oe) || (it = P, Xn(He), _e = On, ae[me] = 10 <= _e ? it + 250 : 6 <= _e ? it + 5e3 : -1) : it <= P && (C.expiredLanes |= He), ue &= ~He;
|
|
34595
34595
|
}
|
|
34596
34596
|
if (ie = _i(C, C === lo ? Yr : 0), P = On, ie === 0)
|
|
34597
34597
|
q !== null && (q !== Om && Cm(q), C.callbackNode = null, C.callbackPriority = 0);
|
|
@@ -34917,40 +34917,40 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
34917
34917
|
var it, ft = ue.memoizedProps;
|
|
34918
34918
|
switch (me[js] = ue, me[Lf] = ft, _e) {
|
|
34919
34919
|
case "dialog":
|
|
34920
|
-
|
|
34920
|
+
Zn("cancel", me), Zn("close", me);
|
|
34921
34921
|
break;
|
|
34922
34922
|
case "iframe":
|
|
34923
34923
|
case "object":
|
|
34924
34924
|
case "embed":
|
|
34925
|
-
|
|
34925
|
+
Zn("load", me);
|
|
34926
34926
|
break;
|
|
34927
34927
|
case "video":
|
|
34928
34928
|
case "audio":
|
|
34929
34929
|
for (ae = 0; ae < Pu.length; ae++)
|
|
34930
|
-
|
|
34930
|
+
Zn(Pu[ae], me);
|
|
34931
34931
|
break;
|
|
34932
34932
|
case "source":
|
|
34933
|
-
|
|
34933
|
+
Zn("error", me);
|
|
34934
34934
|
break;
|
|
34935
34935
|
case "img":
|
|
34936
34936
|
case "image":
|
|
34937
34937
|
case "link":
|
|
34938
|
-
|
|
34938
|
+
Zn("error", me), Zn("load", me);
|
|
34939
34939
|
break;
|
|
34940
34940
|
case "details":
|
|
34941
|
-
|
|
34941
|
+
Zn("toggle", me);
|
|
34942
34942
|
break;
|
|
34943
34943
|
case "input":
|
|
34944
|
-
se(me, ft),
|
|
34944
|
+
se(me, ft), Zn("invalid", me);
|
|
34945
34945
|
break;
|
|
34946
34946
|
case "select":
|
|
34947
|
-
me._wrapperState = { wasMultiple: !!ft.multiple },
|
|
34947
|
+
me._wrapperState = { wasMultiple: !!ft.multiple }, Zn("invalid", me);
|
|
34948
34948
|
break;
|
|
34949
34949
|
case "textarea":
|
|
34950
|
-
ye(me, ft),
|
|
34950
|
+
ye(me, ft), Zn("invalid", me);
|
|
34951
34951
|
}
|
|
34952
34952
|
for (it in Oe(_e, ft), ae = null, ft)
|
|
34953
|
-
ft.hasOwnProperty(it) && (He = ft[it], it === "children" ? typeof He == "string" ? me.textContent !== He && (ae = ["children", He]) : typeof He == "number" && me.textContent !== "" + He && (ae = ["children", "" + He]) : l.hasOwnProperty(it) && He != null && it === "onScroll" &&
|
|
34953
|
+
ft.hasOwnProperty(it) && (He = ft[it], it === "children" ? typeof He == "string" ? me.textContent !== He && (ae = ["children", He]) : typeof He == "number" && me.textContent !== "" + He && (ae = ["children", "" + He]) : l.hasOwnProperty(it) && He != null && it === "onScroll" && Zn("scroll", me));
|
|
34954
34954
|
switch (_e) {
|
|
34955
34955
|
case "input":
|
|
34956
34956
|
Z(me), we(me, ft, !0);
|
|
@@ -34968,41 +34968,41 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
34968
34968
|
} else {
|
|
34969
34969
|
switch (it = He.nodeType === 9 ? He : He.ownerDocument, (ae = ae === Ie ? Te(_e) : ae) === Ie ? _e === "script" ? ((ae = it.createElement("div")).innerHTML = "<script><\/script>", ae = ae.removeChild(ae.firstChild)) : typeof me.is == "string" ? ae = it.createElement(_e, { is: me.is }) : (ae = it.createElement(_e), _e === "select" && (it = ae, me.multiple ? it.multiple = !0 : me.size && (it.size = me.size))) : ae = it.createElementNS(ae, _e), ae[js] = ue, ae[Lf] = me, UN(ae, ue), ue.stateNode = ae, it = tt(_e, me), _e) {
|
|
34970
34970
|
case "dialog":
|
|
34971
|
-
|
|
34971
|
+
Zn("cancel", ae), Zn("close", ae), He = me;
|
|
34972
34972
|
break;
|
|
34973
34973
|
case "iframe":
|
|
34974
34974
|
case "object":
|
|
34975
34975
|
case "embed":
|
|
34976
|
-
|
|
34976
|
+
Zn("load", ae), He = me;
|
|
34977
34977
|
break;
|
|
34978
34978
|
case "video":
|
|
34979
34979
|
case "audio":
|
|
34980
34980
|
for (He = 0; He < Pu.length; He++)
|
|
34981
|
-
|
|
34981
|
+
Zn(Pu[He], ae);
|
|
34982
34982
|
He = me;
|
|
34983
34983
|
break;
|
|
34984
34984
|
case "source":
|
|
34985
|
-
|
|
34985
|
+
Zn("error", ae), He = me;
|
|
34986
34986
|
break;
|
|
34987
34987
|
case "img":
|
|
34988
34988
|
case "image":
|
|
34989
34989
|
case "link":
|
|
34990
|
-
|
|
34990
|
+
Zn("error", ae), Zn("load", ae), He = me;
|
|
34991
34991
|
break;
|
|
34992
34992
|
case "details":
|
|
34993
|
-
|
|
34993
|
+
Zn("toggle", ae), He = me;
|
|
34994
34994
|
break;
|
|
34995
34995
|
case "input":
|
|
34996
|
-
se(ae, me), He = te(ae, me),
|
|
34996
|
+
se(ae, me), He = te(ae, me), Zn("invalid", ae);
|
|
34997
34997
|
break;
|
|
34998
34998
|
case "option":
|
|
34999
34999
|
He = je(ae, me);
|
|
35000
35000
|
break;
|
|
35001
35001
|
case "select":
|
|
35002
|
-
ae._wrapperState = { wasMultiple: !!me.multiple }, He = i({}, me, { value: void 0 }),
|
|
35002
|
+
ae._wrapperState = { wasMultiple: !!me.multiple }, He = i({}, me, { value: void 0 }), Zn("invalid", ae);
|
|
35003
35003
|
break;
|
|
35004
35004
|
case "textarea":
|
|
35005
|
-
ye(ae, me), He = Me(ae, me),
|
|
35005
|
+
ye(ae, me), He = Me(ae, me), Zn("invalid", ae);
|
|
35006
35006
|
break;
|
|
35007
35007
|
default:
|
|
35008
35008
|
He = me;
|
|
@@ -35010,7 +35010,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
35010
35010
|
Oe(_e, He);
|
|
35011
35011
|
var Dt, Nn = He;
|
|
35012
35012
|
for (ft in Nn)
|
|
35013
|
-
Nn.hasOwnProperty(ft) && (Dt = Nn[ft], ft === "style" ? Ze(ae, Dt) : ft === "dangerouslySetInnerHTML" ? (Dt = Dt ? Dt.__html : void 0) != null && he(ae, Dt) : ft === "children" ? typeof Dt == "string" ? _e === "textarea" && Dt === "" || de(ae, Dt) : typeof Dt == "number" && de(ae, "" + Dt) : ft !== "suppressContentEditableWarning" && ft !== "suppressHydrationWarning" && ft !== "autoFocus" && (l.hasOwnProperty(ft) ? Dt != null && ft === "onScroll" &&
|
|
35013
|
+
Nn.hasOwnProperty(ft) && (Dt = Nn[ft], ft === "style" ? Ze(ae, Dt) : ft === "dangerouslySetInnerHTML" ? (Dt = Dt ? Dt.__html : void 0) != null && he(ae, Dt) : ft === "children" ? typeof Dt == "string" ? _e === "textarea" && Dt === "" || de(ae, Dt) : typeof Dt == "number" && de(ae, "" + Dt) : ft !== "suppressContentEditableWarning" && ft !== "suppressHydrationWarning" && ft !== "autoFocus" && (l.hasOwnProperty(ft) ? Dt != null && ft === "onScroll" && Zn("scroll", ae) : Dt != null && x(ae, ft, Dt, it)));
|
|
35014
35014
|
switch (_e) {
|
|
35015
35015
|
case "input":
|
|
35016
35016
|
Z(ae), we(ae, me, !1);
|
|
@@ -35152,10 +35152,10 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
35152
35152
|
try {
|
|
35153
35153
|
(function() {
|
|
35154
35154
|
for (; Qt !== null; ) {
|
|
35155
|
-
var kn = Qt.alternate, wn = (lp || Zu === null || (8 & Qt.flags ? pe(Qt, Zu) && (lp = !0) : Qt.tag === 13 && function(
|
|
35156
|
-
return
|
|
35155
|
+
var kn = Qt.alternate, wn = (lp || Zu === null || (8 & Qt.flags ? pe(Qt, Zu) && (lp = !0) : Qt.tag === 13 && function(Qn, pr) {
|
|
35156
|
+
return Qn !== null && ((Qn = Qn.memoizedState) === null || Qn.dehydrated !== null) && (pr = pr.memoizedState) !== null && pr.dehydrated === null;
|
|
35157
35157
|
}(kn, Qt) && pe(Qt, Zu) && (lp = !0)), Qt.flags);
|
|
35158
|
-
256 & wn && function(
|
|
35158
|
+
256 & wn && function(Qn, pr) {
|
|
35159
35159
|
switch (pr.tag) {
|
|
35160
35160
|
case 0:
|
|
35161
35161
|
case 11:
|
|
@@ -35168,7 +35168,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
35168
35168
|
return;
|
|
35169
35169
|
case 1:
|
|
35170
35170
|
var Vo, Ii;
|
|
35171
|
-
return 256 & pr.flags &&
|
|
35171
|
+
return 256 & pr.flags && Qn !== null && (Vo = Qn.memoizedProps, Ii = Qn.memoizedState, pr = (Qn = pr.stateNode).getSnapshotBeforeUpdate(pr.elementType === pr.type ? Vo : oi(pr.type, Vo), Ii), Qn.__reactInternalSnapshotBeforeUpdate = pr);
|
|
35172
35172
|
case 3:
|
|
35173
35173
|
return 256 & pr.flags && bm(pr.stateNode.containerInfo);
|
|
35174
35174
|
}
|
|
@@ -35218,8 +35218,8 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
35218
35218
|
Js(Qt, kn), Qt = Qt.nextEffect;
|
|
35219
35219
|
}
|
|
35220
35220
|
while (Qt !== null);
|
|
35221
|
-
if (on = mm, mn = A_(), tn = on.focusedElem, He = on.selectionRange, mn !== tn && tn && tn.ownerDocument && function kn(wn,
|
|
35222
|
-
return !(!wn || !
|
|
35221
|
+
if (on = mm, mn = A_(), tn = on.focusedElem, He = on.selectionRange, mn !== tn && tn && tn.ownerDocument && function kn(wn, Qn) {
|
|
35222
|
+
return !(!wn || !Qn) && (wn === Qn || (!wn || wn.nodeType !== 3) && (Qn && Qn.nodeType === 3 ? kn(wn, Qn.parentNode) : "contains" in wn ? wn.contains(Qn) : !!wn.compareDocumentPosition && !!(16 & wn.compareDocumentPosition(Qn))));
|
|
35223
35223
|
}(tn.ownerDocument.documentElement, tn)) {
|
|
35224
35224
|
for (He !== null && dm(tn) && (mn = He.start, (on = He.end) === void 0 && (on = mn), "selectionStart" in tn ? (tn.selectionStart = mn, tn.selectionEnd = Math.min(on, tn.value.length)) : (on = (mn = tn.ownerDocument || document) && mn.defaultView || window).getSelection && (on = on.getSelection(), it = tn.textContent.length, Rn = Math.min(He.start, it), He = He.end === void 0 ? Rn : Math.min(He.end, it), !on.extend && He < Rn && (it = He, He = Rn, Rn = it), it = k_(tn, Rn), _e = k_(tn, He), it && _e && (on.rangeCount !== 1 || on.anchorNode !== it.node || on.anchorOffset !== it.offset || on.focusNode !== _e.node || on.focusOffset !== _e.offset) && ((mn = mn.createRange()).setStart(it.node, it.offset), on.removeAllRanges(), He < Rn ? (on.addRange(mn), on.extend(_e.node, _e.offset)) : (mn.setEnd(_e.node, _e.offset), on.addRange(mn))))), mn = [], on = tn; on = on.parentNode; )
|
|
35225
35225
|
on.nodeType === 1 && mn.push({ element: on, left: on.scrollLeft, top: on.scrollTop });
|
|
@@ -37067,10 +37067,10 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
37067
37067
|
var io, Ho, vo, Jr = _i;
|
|
37068
37068
|
for (io in Jr = w(Jr) ? Jr(yn) : Jr)
|
|
37069
37069
|
yn[io] = qn[io] = io === "className" ? (Ho = qn[io], vo = Jr[io], Ho && vo ? Ho + " " + vo : Ho || vo) : Jr[io];
|
|
37070
|
-
}), nr = (Sr = [yn, qn])[1], Sr = Sr[0], Mn = o.env.NODE_ENV !== "production" ? Mn.warnTooManyClasses : void 0, No = Pe(), ln = he(), wr = Jn ? wr.generateAndInjectStyles(_, No, ln) : wr.generateAndInjectStyles(Sr, No, ln), o.env.NODE_ENV !== "production" && a.useDebugValue(wr), o.env.NODE_ENV !== "production" && !Jn && Mn && Mn(wr), Sr = wr, Jt), jn = nr.$as || Pt.$as || nr.as || Pt.as || bo, As = Tt(jn), On = nr !== Pt ? g({}, Pt, {}, nr) : Pt,
|
|
37070
|
+
}), nr = (Sr = [yn, qn])[1], Sr = Sr[0], Mn = o.env.NODE_ENV !== "production" ? Mn.warnTooManyClasses : void 0, No = Pe(), ln = he(), wr = Jn ? wr.generateAndInjectStyles(_, No, ln) : wr.generateAndInjectStyles(Sr, No, ln), o.env.NODE_ENV !== "production" && a.useDebugValue(wr), o.env.NODE_ENV !== "production" && !Jn && Mn && Mn(wr), Sr = wr, Jt), jn = nr.$as || Pt.$as || nr.as || Pt.as || bo, As = Tt(jn), On = nr !== Pt ? g({}, Pt, {}, nr) : Pt, Xn = {};
|
|
37071
37071
|
for (xn in On)
|
|
37072
|
-
xn[0] !== "$" && xn !== "as" && (xn === "forwardedAs" ?
|
|
37073
|
-
return Pt.style && nr.style !== Pt.style && (
|
|
37072
|
+
xn[0] !== "$" && xn !== "as" && (xn === "forwardedAs" ? Xn.as = On[xn] : (ks ? ks(xn, h, jn) : !As || h(xn)) && (Xn[xn] = On[xn]));
|
|
37073
|
+
return Pt.style && nr.style !== Pt.style && (Xn.style = g({}, Pt.style, {}, nr.style)), Xn.className = Array.prototype.concat(Da, Uo, Sr !== Uo ? Sr : null, Pt.className, nr.className).filter(Boolean).join(" "), Xn.ref = No, a.createElement(jn, Xn);
|
|
37074
37074
|
}
|
|
37075
37075
|
Q = De.shouldForwardProp, Ke && pe.shouldForwardProp && (Q = De.shouldForwardProp ? function(Pt, Jt, ln) {
|
|
37076
37076
|
return pe.shouldForwardProp(Pt, Jt, ln) && De.shouldForwardProp(Pt, Jt, ln);
|
|
@@ -44778,7 +44778,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
44778
44778
|
Oe = $e;
|
|
44779
44779
|
}, 1), gt = 14, Bt = 16, $t = 20, qt = 21, Ut = 501, Rt = l, Wt = Ee.codoxLogger, En = Ee.startCb, Ne = Ee.sockOpenTimer, lt = Ee.editorInstance, pt = y.reportError.bind(y), wt = y.addBreadcrumb.bind(y), Tt = y.addTag.bind(y), Re = (this.breadCrumb = wt, console.log("codoxwave constructor (begin) codox4.0xxx--x-2024-6 new1draft-lex start ", Ee), this.editorInstance = lt, wt("[codoxi]* ccw: t = 0; CV=" + _t + "; seid = " + Ee.sid, b), Tt("clientVersion", _t), Ee.ver), ze = this, ct = (this.app = Ee).appType, be = Ee.sid, fe = Ee.domains, xe = Ee.cid, Be = (fe.b(), fe.c()), dt = (Be.sw && Be.sw(this), Ee.sysInfo), St = Ee.anyClient, Nt = Ee.founder, Mt = Te.Write, Zt = (Ee.role && (Mt = Ee.role), En), vt = { sid: Oe, jointime: /* @__PURE__ */ new Date(), userinfo: Object.assign({}, Ee.user), role: Mt, founder: Nt }, pe = (this.minfo = vt, null), De = null, Ue = null, Ke = (d || (this.rangy || (this.rangy = e("rangy/lib/rangy-selectionsaverestore")), this.rangy.initialized || this.rangy.init()), this.rangy = e("rangy/lib/rangy-selectionsaverestore"), this.rangy.init(), 0), qe = null, ot = null, Q = null, le = [], ve = null, Je = u.now(), et = 0, Xe = v, Ye = re.pmod(), yt = !1, Et = null, Ht = !1, Pt = (this.setSMC = function($e) {
|
|
44780
44780
|
Ht = $e;
|
|
44781
|
-
}, null), Jt = null, ln = null, yn = null, qn = null, xn = null, Mn = null, Jn = null, nr = null, wr = null, Sr = !0, Da = !0, ks = !0, Uo = !0, bo = !0, No = !0, jn = !0, As = !0, On = null,
|
|
44781
|
+
}, null), Jt = null, ln = null, yn = null, qn = null, xn = null, Mn = null, Jn = null, nr = null, wr = null, Sr = !0, Da = !0, ks = !0, Uo = !0, bo = !0, No = !0, jn = !0, As = !0, On = null, Xn = null, _i = null, io = null, Ho = null, vo = null, Jr = null, La = null, ti = null, ko = null, In = null, Pf = null, Cu = null, Ao = null, Mf = null, Eu = null, Ba = null;
|
|
44782
44782
|
function xi($e) {
|
|
44783
44783
|
return $e && $e !== "pt" && In.mbs.length, Xe !== x && In && In.mbs && In.mbs.length === 1;
|
|
44784
44784
|
}
|
|
@@ -44815,7 +44815,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
44815
44815
|
}
|
|
44816
44816
|
function Yi($e, nt) {
|
|
44817
44817
|
var ht;
|
|
44818
|
-
Xe != w && (Xe = w, 0 < le.length && (h(le), le = []), Ce && (Ce.onclose = null, Ce.onmessage = null, Ce.onerror = null, Ce.onopen = null), g(ve), g(ot), g(Q), g(Ne), Ya.clean(), ht = (u.now() - he) / 1e3, yt ? (wt("[codoxi]* cdxclose: t = " + ht + "; r=" + nt + "; hbc = " + Is + "; sid = " +
|
|
44818
|
+
Xe != w && (Xe = w, 0 < le.length && (h(le), le = []), Ce && (Ce.onclose = null, Ce.onmessage = null, Ce.onerror = null, Ce.onopen = null), g(ve), g(ot), g(Q), g(Ne), Ya.clean(), ht = (u.now() - he) / 1e3, yt ? (wt("[codoxi]* cdxclose: t = " + ht + "; r=" + nt + "; hbc = " + Is + "; sid = " + Xn && Oe, b), Ee.a.a($e, nt)) : ((0, i.default)(nt) !== "object" ? wt("[codoxi]* cdxcb(n): t = " + ht + "; r=" + nt, b) : nt.message, Zt(null, nt)), Ee.domains = null, vt = Be = fe = Xn = Zt = ze = null, ko && ko.clean(), ko = null);
|
|
44819
44819
|
}
|
|
44820
44820
|
function jl() {
|
|
44821
44821
|
return Mt === Te.Read;
|
|
@@ -44973,7 +44973,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
44973
44973
|
var an, Vt;
|
|
44974
44974
|
le.length != 0 && (Vt = u.now() - qe, Ye && !es() && Xe === _ && Vt < 250 && sn < 2e3 ? (g(ot), ot = setTimeout(function() {
|
|
44975
44975
|
pn(sn + 250), ot = null;
|
|
44976
|
-
}, 250)) : (le.length, Vt = le.shift(), Sr && (bo = !bo), bo || Xe === v || !Vt.context || Vt.context.sid === Oe || ze.bium() || Oi("ROH"), Vt.so ? M(Vt, ze) : z(Vt) || (Vt.hasOwnProperty("to") &&
|
|
44976
|
+
}, 250)) : (le.length, Vt = le.shift(), Sr && (bo = !bo), bo || Xe === v || !Vt.context || Vt.context.sid === Oe || ze.bium() || Oi("ROH"), Vt.so ? M(Vt, ze) : z(Vt) || (Vt.hasOwnProperty("to") && Xn && (Xn.rto = Vt.to, Vt.context && (Vt.context.to = Vt.to), Vt.to, Xn.rto), Vt.cmd ? Pf(Vt) : (an = {}, !Qi || Vt.t && Vt.t === "sl" ? an.op = Vt.op : (an.op = Vt.op[0].po, an.ao = Vt.op[0].ao), an.context = Vt.context, Vt.t && (an.t = Vt.t), bo || (se(Vt = an) ? Ee.a.j(xe, { coords: Vt.op, sid: Vt.context.sid }) : (Vt = _i(Vt)) != null && Vt.op.length !== 0 && (te(Vt) ? Tu(Vt) : !Bl() && !qa() || bo ? (Vt.context.CAID = !1, an = Me.ccp, In.DCPRops = an(In.DCPRops, Vt.op, ze, "ROHdmod"), In.DCPRopsN++, In.DCPRopsN, h(In.DCPRops)) : (ce(ze) ? B.roh(Vt, ze) : R(Vt, ze), !ze.bium() && Vt.context.CAID && (h(Vt), If(Fl(), Vt.context.caidinfo)))))), u.now()), 0 < le.length && pn(1500)));
|
|
44977
44977
|
}(0), u.now());
|
|
44978
44978
|
}, this.gls = function() {
|
|
44979
44979
|
if (Xe !== _)
|
|
@@ -45063,7 +45063,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45063
45063
|
return Xe === _;
|
|
45064
45064
|
}, this.dop2sm = B.plop, this.udoc = L, this.gop2sm = G, this.hacm = function($e) {
|
|
45065
45065
|
var nt;
|
|
45066
|
-
$e ? Xe !== _ || xi() || (Oi("cmv"),
|
|
45066
|
+
$e ? Xe !== _ || xi() || (Oi("cmv"), Xn.dmid = Be.dmid, io(nt = { t: "sl", op: $e }), Ps(nt, null)) : p($e);
|
|
45067
45067
|
}, this.slotimer = function($e) {
|
|
45068
45068
|
var nt = qe;
|
|
45069
45069
|
qe = u.now(), nt === null && (g(ve), ve = setTimeout(function() {
|
|
@@ -45171,7 +45171,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45171
45171
|
0 < nt.length && Be.updateContents(nt), Mf($e);
|
|
45172
45172
|
}, this.sjsloh = function($e, nt, ht) {
|
|
45173
45173
|
var Ot;
|
|
45174
|
-
nt === "e" ? (Ee.a.i({ source: "l" }), Xi.push($e), $e.data.n < $e.data.tn || (Ot = { op: [], ao: Xi, inverse: [] }, Xi = [], null(Ot) && B.plop(Ot, "loh", ze))) : nt === "c" ? $e.type === "set_selection" && ($e = { start: (Ot = Be.c()).anchor.offset, end: Ot.focus.offset, path: Ot.anchor.path, startpath: Ot.anchor.path, endpath: Ot.focus.path }, Ot = $e, Xe === _ && Ot.start !== null && Ot.end !== null && Ot.path !== null && (Oi("SJScmv"),
|
|
45174
|
+
nt === "e" ? (Ee.a.i({ source: "l" }), Xi.push($e), $e.data.n < $e.data.tn || (Ot = { op: [], ao: Xi, inverse: [] }, Xi = [], null(Ot) && B.plop(Ot, "loh", ze))) : nt === "c" ? $e.type === "set_selection" && ($e = { start: (Ot = Be.c()).anchor.offset, end: Ot.focus.offset, path: Ot.anchor.path, startpath: Ot.anchor.path, endpath: Ot.focus.path }, Ot = $e, Xe === _ && Ot.start !== null && Ot.end !== null && Ot.path !== null && (Oi("SJScmv"), Xn.dmid = Be.dmid, io(Ot = { t: "sl", op: Ot }), Ps(Ot, Fl()))) : nt == "u" && La();
|
|
45175
45175
|
}, this.subm = function() {
|
|
45176
45176
|
var $e, nt = Ee.waveId, ht = Ee.user, Ot = Ee.subId, pn = Ee.mid, sn = (Ee.sub, Ee.token, Ee.url), an = Ee.docId, Vt = Ee.prevAid;
|
|
45177
45177
|
if (5e7 <= ((nt = { a: E, c: ct, cx: lt ? lt.type : null, v: _t, u: { memberinfo: vt, waveid: nt, username: ht && ht.name, sysinfo: dt, f: Nt, any: St, subid: Ot, mid: pn, paid: Vt || "First", v: { token: Ee.token }, u: sn, d: an, tabId: m(), jsConf: Ee.jsonConfig, isBFM: !1 } }).u.jsConf, Xe == x && (ht = k(), nt.rjn = { offCaid: ht.offCaid, offTo: ht.offTo, sts: ht.sessiontimestamp }, nt.rjn), nt.gcs = (Ot = null, ct == "quilljs" ? ($e = Be.getContents(), p($e), Ot = Qe($e.ops, ["delete", "insert", "retain", "attributes"]), p(Ot)) : ct == "codemirror" ? ($e = Be.getContents(), p($e), p(Ot = [{ cr: $e }])) : ct == "json" && (ni || Ei) ? (Ot = Be.d(), p(Ot)) : (fe.a(), Ot = fe.e()), Ot), je(nt), pn = nt.gcs.length))
|
|
@@ -45225,7 +45225,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45225
45225
|
}
|
|
45226
45226
|
Ll = Ka || so || Ha || ri;
|
|
45227
45227
|
}
|
|
45228
|
-
if (ht.sot && (Pt = ht.sot, ze.jstp = Pt), ht.tmk && (ht.tmk, xn = ht.tmk.o, Mn = ht.tmk.c, wr = ht.tmk.tn, Jn = ht.tmk.m, nr = '<span id="' + Jn + "_"), ht.lmt && (ht.lmt, ht.lmt.mos, yn = ht.lmt.mms, qn = ht.lmt.dms, ze.lmt = ht.lmt), ht.dt && (ln = ht.dt, ze.dlttp = ln), No || (Ot = Oe, On = new T(ze, !1, No), (
|
|
45228
|
+
if (ht.sot && (Pt = ht.sot, ze.jstp = Pt), ht.tmk && (ht.tmk, xn = ht.tmk.o, Mn = ht.tmk.c, wr = ht.tmk.tn, Jn = ht.tmk.m, nr = '<span id="' + Jn + "_"), ht.lmt && (ht.lmt, ht.lmt.mos, yn = ht.lmt.mms, qn = ht.lmt.dms, ze.lmt = ht.lmt), ht.dt && (ln = ht.dt, ze.dlttp = ln), No || (Ot = Oe, On = new T(ze, !1, No), (Xn = On.gct()).sid = Ot, _i = On.pr, On.pl, io = On.sc, Ho = On.aptm, vo = On.rstm, On.satm, ze.pt = On, Jr = new I(ze, On, No, Pt), La = Jr.pu, Jr.prd, ti = Jr.gfdt, ze.pu = Jr), !Uo && !jn)
|
|
45229
45229
|
if (As || !lr && !Wa)
|
|
45230
45230
|
if (so || Ci) {
|
|
45231
45231
|
ht = { obf: jn, types: Pt }, Ae.type.init(ht), Ot = { obf: Uo, ob: xn, cb: Mn, tiny: ri, tinysc: wr };
|
|
@@ -45249,7 +45249,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45249
45249
|
}
|
|
45250
45250
|
!Pe && Zt && Zt(Oe), Ot = (u.now() - he) / 1e3, wt("[codoxi]* jnd1: t = " + Ot + "; s=" + Xe + "; ss=" + In.mbs.length + "; sid = " + Oe, b);
|
|
45251
45251
|
}
|
|
45252
|
-
} else if (
|
|
45252
|
+
} else if (Xn.sid, Xn.sid = Oe, h(Xn), g(Ne), Nt) {
|
|
45253
45253
|
Xe = _, yt = !0, p(In.mbs), In.mbs = [], In.mbs.push(vt), p(In.mbs), ht = ze.pt.stm, Ot = ze.pt.gtm, p(Ot()), ht([]), Ho(In.mbs), p(Ot()), Va(gt);
|
|
45254
45254
|
try {
|
|
45255
45255
|
Ir(S);
|
|
@@ -55600,13 +55600,13 @@ function X0() {
|
|
|
55600
55600
|
return /* @__PURE__ */ hn.jsx("div", { className: "divider" });
|
|
55601
55601
|
}
|
|
55602
55602
|
function JB() {
|
|
55603
|
-
const [c] = mr(), t = Yh(null), [n, e] =
|
|
55603
|
+
const [c] = mr(), t = Yh(null), [n, e] = er(!1), [s, r] = er(!1), [o, i] = er(!1), [u, a] = er(!1), [f, l] = er(!1), [d, p] = er(!1), [h, m] = er(!1), [g, y] = er(!1), [b, v] = er("11px"), [_, w] = er(() => c.isEditable()), x = Db(() => {
|
|
55604
55604
|
const S = st();
|
|
55605
55605
|
at(S) && (i(S.hasFormat("bold")), a(S.hasFormat("italic")), l(S.hasFormat("underline")), p(S.hasFormat("strikethrough")), m(S.hasFormat("subscript")), y(S.hasFormat("superscript")), v(
|
|
55606
55606
|
g2(S, "font-size", "11px")
|
|
55607
55607
|
));
|
|
55608
55608
|
}, []);
|
|
55609
|
-
return
|
|
55609
|
+
return Yn(() => oo(
|
|
55610
55610
|
c.registerUpdateListener(({ editorState: S }) => {
|
|
55611
55611
|
S.read(() => {
|
|
55612
55612
|
x();
|
|
@@ -58033,29 +58033,29 @@ const F$ = {
|
|
|
58033
58033
|
// The editor theme
|
|
58034
58034
|
theme: $B
|
|
58035
58035
|
}, $$ = () => /* @__PURE__ */ hn.jsx(hn.Fragment, { children: "hello" });
|
|
58036
|
-
function l9({ collabApiKey: c }) {
|
|
58037
|
-
const [
|
|
58038
|
-
docId:
|
|
58036
|
+
function l9({ collabApiKey: c, spfList: t }) {
|
|
58037
|
+
const [n, e] = er(!1), [s, r] = er("demo_docId_1"), [o, i] = er({ root: null }), u = Yh(), a = {
|
|
58038
|
+
docId: s,
|
|
58039
58039
|
apiKey: c,
|
|
58040
58040
|
// api key provided by codox
|
|
58041
58041
|
username: "demo_user",
|
|
58042
58042
|
// client user name
|
|
58043
58043
|
hooks: {
|
|
58044
|
-
contentChanged: ({ source:
|
|
58045
|
-
console.log("[Lexical Demo][contentChanged hook] hook invoked by Codox: ", { source:
|
|
58044
|
+
contentChanged: ({ source: p, content: h }) => {
|
|
58045
|
+
console.log("[Lexical Demo][contentChanged hook] hook invoked by Codox: ", { source: p, content: h });
|
|
58046
58046
|
},
|
|
58047
|
-
usersUpdate: (
|
|
58048
|
-
console.log("[Lexical Demo][usersUpdate hook] hook invoked by Codox: ",
|
|
58047
|
+
usersUpdate: (p) => {
|
|
58048
|
+
console.log("[Lexical Demo][usersUpdate hook] hook invoked by Codox: ", p);
|
|
58049
58049
|
}
|
|
58050
58050
|
}
|
|
58051
|
-
}, a = () => {
|
|
58052
|
-
i.current && i.current.start(u).then(() => {
|
|
58053
|
-
console.log("[Lexical Demo][codox.start] success"), n(!0);
|
|
58054
|
-
}).catch((d) => console.log("[Lexical Demo][codox.start] error", d));
|
|
58055
58051
|
}, f = () => {
|
|
58056
|
-
|
|
58052
|
+
u.current && u.current.start(a).then(() => {
|
|
58053
|
+
console.log("[Lexical Demo][codox.start] success"), e(!0);
|
|
58054
|
+
}).catch((p) => console.log("[Lexical Demo][codox.start] error", p));
|
|
58055
|
+
}, l = () => {
|
|
58056
|
+
u.current && u.current.stop(), e(!1);
|
|
58057
58057
|
};
|
|
58058
|
-
let
|
|
58058
|
+
let d = {
|
|
58059
58059
|
root: {
|
|
58060
58060
|
children: [
|
|
58061
58061
|
{
|
|
@@ -58075,34 +58075,36 @@ function l9({ collabApiKey: c }) {
|
|
|
58075
58075
|
version: 1
|
|
58076
58076
|
}
|
|
58077
58077
|
};
|
|
58078
|
-
return
|
|
58078
|
+
return Yn(() => {
|
|
58079
58079
|
(async () => {
|
|
58080
|
-
if (!
|
|
58080
|
+
if (!s)
|
|
58081
58081
|
return;
|
|
58082
|
-
|
|
58083
|
-
let
|
|
58084
|
-
if (
|
|
58082
|
+
n && l();
|
|
58083
|
+
let p = d;
|
|
58084
|
+
if (p)
|
|
58085
58085
|
try {
|
|
58086
|
-
FB(
|
|
58087
|
-
} catch (
|
|
58088
|
-
console.error("[APP] error: ",
|
|
58086
|
+
FB(p, oC), i(p);
|
|
58087
|
+
} catch (h) {
|
|
58088
|
+
console.error("[APP] error: ", h);
|
|
58089
58089
|
}
|
|
58090
58090
|
})();
|
|
58091
|
-
}, [
|
|
58092
|
-
|
|
58093
|
-
}, [
|
|
58091
|
+
}, [s]), Yn(() => {
|
|
58092
|
+
console.log("inside lexical package spfList is ", t);
|
|
58093
|
+
}, [t]), Yn(() => {
|
|
58094
|
+
o && s && !n && f();
|
|
58095
|
+
}, [o, s, n]), hi(
|
|
58094
58096
|
() => ({
|
|
58095
|
-
editorState:
|
|
58097
|
+
editorState: o ? JSON.stringify({ root: o.root }) : null,
|
|
58096
58098
|
namespace: "Playground",
|
|
58097
58099
|
nodes: oC,
|
|
58098
58100
|
//register nodes wrapped with codox meta-data
|
|
58099
|
-
onError: (
|
|
58100
|
-
throw
|
|
58101
|
+
onError: (p) => {
|
|
58102
|
+
throw p;
|
|
58101
58103
|
},
|
|
58102
58104
|
theme: {}
|
|
58103
58105
|
// css theme
|
|
58104
58106
|
}),
|
|
58105
|
-
[
|
|
58107
|
+
[o]
|
|
58106
58108
|
), /* @__PURE__ */ hn.jsx(i2, { initialConfig: F$, children: /* @__PURE__ */ hn.jsxs("div", { className: "editor-container", children: [
|
|
58107
58109
|
/* @__PURE__ */ hn.jsx(JB, {}),
|
|
58108
58110
|
/* @__PURE__ */ hn.jsxs("div", { className: "editor-inner", children: [
|
|
@@ -58117,7 +58119,7 @@ function l9({ collabApiKey: c }) {
|
|
|
58117
58119
|
/* @__PURE__ */ hn.jsx(
|
|
58118
58120
|
LB,
|
|
58119
58121
|
{
|
|
58120
|
-
ref:
|
|
58122
|
+
ref: u
|
|
58121
58123
|
}
|
|
58122
58124
|
),
|
|
58123
58125
|
/* @__PURE__ */ hn.jsx(A2, {}),
|