@crimson-education/helios-editor-renderer 1.1.5 → 1.1.6
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/index.mjs +106 -103
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as oe, jsxs as
|
|
1
|
+
import { jsx as oe, jsxs as At, Fragment as wA } from "react/jsx-runtime";
|
|
2
2
|
import * as bt from "react";
|
|
3
3
|
import $, { forwardRef as gl, useCallback as Et, useState as Cr, useRef as Lt, useReducer as nf, useMemo as rn, useEffect as mr, useLayoutEffect as hy, createContext as pn, useContext as Ea, Component as xA, memo as MA, useDebugValue as by, useId as LA, createElement as Xm } from "react";
|
|
4
4
|
import PA from "react-dom";
|
|
@@ -1665,7 +1665,7 @@ function Yg(e, t) {
|
|
|
1665
1665
|
}
|
|
1666
1666
|
return r;
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function Dt(e) {
|
|
1669
1669
|
for (var t = 1; t < arguments.length; t++) {
|
|
1670
1670
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1671
1671
|
t % 2 ? Yg(Object(r), !0).forEach(function(n) {
|
|
@@ -1718,15 +1718,15 @@ var mi = {
|
|
|
1718
1718
|
inverse(e) {
|
|
1719
1719
|
switch (e.type) {
|
|
1720
1720
|
case "insert_node":
|
|
1721
|
-
return
|
|
1721
|
+
return Dt(Dt({}, e), {}, {
|
|
1722
1722
|
type: "remove_node"
|
|
1723
1723
|
});
|
|
1724
1724
|
case "insert_text":
|
|
1725
|
-
return
|
|
1725
|
+
return Dt(Dt({}, e), {}, {
|
|
1726
1726
|
type: "remove_text"
|
|
1727
1727
|
});
|
|
1728
1728
|
case "merge_node":
|
|
1729
|
-
return
|
|
1729
|
+
return Dt(Dt({}, e), {}, {
|
|
1730
1730
|
type: "split_node",
|
|
1731
1731
|
path: H.previous(e.path)
|
|
1732
1732
|
});
|
|
@@ -1738,22 +1738,22 @@ var mi = {
|
|
|
1738
1738
|
if (H.equals(t, r))
|
|
1739
1739
|
return e;
|
|
1740
1740
|
if (H.isSibling(r, t))
|
|
1741
|
-
return
|
|
1741
|
+
return Dt(Dt({}, e), {}, {
|
|
1742
1742
|
path: t,
|
|
1743
1743
|
newPath: r
|
|
1744
1744
|
});
|
|
1745
1745
|
var n = H.transform(r, e), a = H.transform(H.next(r), e);
|
|
1746
|
-
return
|
|
1746
|
+
return Dt(Dt({}, e), {}, {
|
|
1747
1747
|
path: n,
|
|
1748
1748
|
newPath: a
|
|
1749
1749
|
});
|
|
1750
1750
|
}
|
|
1751
1751
|
case "remove_node":
|
|
1752
|
-
return
|
|
1752
|
+
return Dt(Dt({}, e), {}, {
|
|
1753
1753
|
type: "insert_node"
|
|
1754
1754
|
});
|
|
1755
1755
|
case "remove_text":
|
|
1756
|
-
return
|
|
1756
|
+
return Dt(Dt({}, e), {}, {
|
|
1757
1757
|
type: "insert_text"
|
|
1758
1758
|
});
|
|
1759
1759
|
case "set_node": {
|
|
@@ -1761,7 +1761,7 @@ var mi = {
|
|
|
1761
1761
|
properties: i,
|
|
1762
1762
|
newProperties: o
|
|
1763
1763
|
} = e;
|
|
1764
|
-
return
|
|
1764
|
+
return Dt(Dt({}, e), {}, {
|
|
1765
1765
|
properties: o,
|
|
1766
1766
|
newProperties: i
|
|
1767
1767
|
});
|
|
@@ -1771,19 +1771,19 @@ var mi = {
|
|
|
1771
1771
|
properties: s,
|
|
1772
1772
|
newProperties: l
|
|
1773
1773
|
} = e;
|
|
1774
|
-
return s == null ?
|
|
1774
|
+
return s == null ? Dt(Dt({}, e), {}, {
|
|
1775
1775
|
properties: l,
|
|
1776
1776
|
newProperties: null
|
|
1777
|
-
}) : l == null ?
|
|
1777
|
+
}) : l == null ? Dt(Dt({}, e), {}, {
|
|
1778
1778
|
properties: null,
|
|
1779
1779
|
newProperties: s
|
|
1780
|
-
}) :
|
|
1780
|
+
}) : Dt(Dt({}, e), {}, {
|
|
1781
1781
|
properties: l,
|
|
1782
1782
|
newProperties: s
|
|
1783
1783
|
});
|
|
1784
1784
|
}
|
|
1785
1785
|
case "split_node":
|
|
1786
|
-
return
|
|
1786
|
+
return Dt(Dt({}, e), {}, {
|
|
1787
1787
|
type: "merge_node",
|
|
1788
1788
|
path: H.next(e.path)
|
|
1789
1789
|
});
|
|
@@ -5841,34 +5841,34 @@ var UI = function(t) {
|
|
|
5841
5841
|
deleteWordBackward: "ctrl+shift?+backspace",
|
|
5842
5842
|
deleteWordForward: "ctrl+shift?+delete",
|
|
5843
5843
|
redo: ["ctrl+y", "ctrl+shift+z"]
|
|
5844
|
-
},
|
|
5844
|
+
}, It = (e) => {
|
|
5845
5845
|
var t = YI[e], r = zI[e], n = qI[e], a = t && yn.isHotkey(t), i = r && yn.isHotkey(r), o = n && yn.isHotkey(n);
|
|
5846
5846
|
return (s) => !!(a && a(s) || mE && i && i(s) || !mE && o && o(s));
|
|
5847
5847
|
}, Bt = {
|
|
5848
|
-
isBold:
|
|
5849
|
-
isCompose:
|
|
5850
|
-
isMoveBackward:
|
|
5851
|
-
isMoveForward:
|
|
5852
|
-
isDeleteBackward:
|
|
5853
|
-
isDeleteForward:
|
|
5854
|
-
isDeleteLineBackward:
|
|
5855
|
-
isDeleteLineForward:
|
|
5856
|
-
isDeleteWordBackward:
|
|
5857
|
-
isDeleteWordForward:
|
|
5858
|
-
isExtendBackward:
|
|
5859
|
-
isExtendForward:
|
|
5860
|
-
isExtendLineBackward:
|
|
5861
|
-
isExtendLineForward:
|
|
5862
|
-
isItalic:
|
|
5863
|
-
isMoveLineBackward:
|
|
5864
|
-
isMoveLineForward:
|
|
5865
|
-
isMoveWordBackward:
|
|
5866
|
-
isMoveWordForward:
|
|
5867
|
-
isRedo:
|
|
5868
|
-
isSoftBreak:
|
|
5869
|
-
isSplitBlock:
|
|
5870
|
-
isTransposeCharacter:
|
|
5871
|
-
isUndo:
|
|
5848
|
+
isBold: It("bold"),
|
|
5849
|
+
isCompose: It("compose"),
|
|
5850
|
+
isMoveBackward: It("moveBackward"),
|
|
5851
|
+
isMoveForward: It("moveForward"),
|
|
5852
|
+
isDeleteBackward: It("deleteBackward"),
|
|
5853
|
+
isDeleteForward: It("deleteForward"),
|
|
5854
|
+
isDeleteLineBackward: It("deleteLineBackward"),
|
|
5855
|
+
isDeleteLineForward: It("deleteLineForward"),
|
|
5856
|
+
isDeleteWordBackward: It("deleteWordBackward"),
|
|
5857
|
+
isDeleteWordForward: It("deleteWordForward"),
|
|
5858
|
+
isExtendBackward: It("extendBackward"),
|
|
5859
|
+
isExtendForward: It("extendForward"),
|
|
5860
|
+
isExtendLineBackward: It("extendLineBackward"),
|
|
5861
|
+
isExtendLineForward: It("extendLineForward"),
|
|
5862
|
+
isItalic: It("italic"),
|
|
5863
|
+
isMoveLineBackward: It("moveLineBackward"),
|
|
5864
|
+
isMoveLineForward: It("moveLineForward"),
|
|
5865
|
+
isMoveWordBackward: It("moveWordBackward"),
|
|
5866
|
+
isMoveWordForward: It("moveWordForward"),
|
|
5867
|
+
isRedo: It("redo"),
|
|
5868
|
+
isSoftBreak: It("insertSoftBreak"),
|
|
5869
|
+
isSplitBlock: It("splitBlock"),
|
|
5870
|
+
isTransposeCharacter: It("transposeCharacter"),
|
|
5871
|
+
isUndo: It("undo")
|
|
5872
5872
|
};
|
|
5873
5873
|
function HI(e, t) {
|
|
5874
5874
|
if (e == null) return {};
|
|
@@ -17939,7 +17939,7 @@ function Om(e, ...t) {
|
|
|
17939
17939
|
}
|
|
17940
17940
|
);
|
|
17941
17941
|
}
|
|
17942
|
-
function
|
|
17942
|
+
function Mt(e = {}) {
|
|
17943
17943
|
let t, r;
|
|
17944
17944
|
ii(e) ? (t = { key: "" }, r = (i) => e(i)) : t = e;
|
|
17945
17945
|
const n = t.key ?? "", a = Om(
|
|
@@ -17969,13 +17969,13 @@ function xt(e = {}) {
|
|
|
17969
17969
|
);
|
|
17970
17970
|
return a.configure = (i) => {
|
|
17971
17971
|
const o = { ...a };
|
|
17972
|
-
return o.__configuration = (s) => ii(i) ? i(s) : i,
|
|
17972
|
+
return o.__configuration = (s) => ii(i) ? i(s) : i, Mt(o);
|
|
17973
17973
|
}, a.configurePlugin = (i, o) => {
|
|
17974
17974
|
const s = { ...a }, l = (u) => {
|
|
17975
17975
|
let d = !1;
|
|
17976
17976
|
const _ = u.map((m) => {
|
|
17977
17977
|
if (m.key === i.key)
|
|
17978
|
-
return d = !0,
|
|
17978
|
+
return d = !0, Mt({
|
|
17979
17979
|
...m,
|
|
17980
17980
|
__configuration: (f) => ii(o) ? o(f) : o
|
|
17981
17981
|
});
|
|
@@ -17991,37 +17991,37 @@ function xt(e = {}) {
|
|
|
17991
17991
|
});
|
|
17992
17992
|
return { found: d, plugins: _ };
|
|
17993
17993
|
}, c = l(s.plugins);
|
|
17994
|
-
return s.plugins = c.plugins,
|
|
17994
|
+
return s.plugins = c.plugins, Mt(s);
|
|
17995
17995
|
}, a.extendEditorApi = (i) => {
|
|
17996
17996
|
const o = { ...a };
|
|
17997
17997
|
return o.__apiExtensions = [
|
|
17998
17998
|
...o.__apiExtensions,
|
|
17999
17999
|
{ extension: i, isPluginSpecific: !1 }
|
|
18000
|
-
],
|
|
18000
|
+
], Mt(o);
|
|
18001
18001
|
}, a.extendSelectors = (i) => {
|
|
18002
18002
|
const o = { ...a };
|
|
18003
18003
|
return o.__selectorExtensions = [
|
|
18004
18004
|
...o.__selectorExtensions,
|
|
18005
18005
|
i
|
|
18006
|
-
],
|
|
18006
|
+
], Mt(o);
|
|
18007
18007
|
}, a.extendApi = (i) => {
|
|
18008
18008
|
const o = { ...a };
|
|
18009
18009
|
return o.__apiExtensions = [
|
|
18010
18010
|
...o.__apiExtensions,
|
|
18011
18011
|
{ extension: i, isPluginSpecific: !0 }
|
|
18012
|
-
],
|
|
18012
|
+
], Mt(o);
|
|
18013
18013
|
}, a.extendEditorTransforms = (i) => {
|
|
18014
18014
|
const o = { ...a };
|
|
18015
18015
|
return o.__apiExtensions = [
|
|
18016
18016
|
...o.__apiExtensions,
|
|
18017
18017
|
{ extension: i, isPluginSpecific: !1, isTransform: !0 }
|
|
18018
|
-
],
|
|
18018
|
+
], Mt(o);
|
|
18019
18019
|
}, a.extendTransforms = (i) => {
|
|
18020
18020
|
const o = { ...a };
|
|
18021
18021
|
return o.__apiExtensions = [
|
|
18022
18022
|
...o.__apiExtensions,
|
|
18023
18023
|
{ extension: i, isPluginSpecific: !0, isTransform: !0 }
|
|
18024
|
-
],
|
|
18024
|
+
], Mt(o);
|
|
18025
18025
|
}, a.overrideEditor = (i) => {
|
|
18026
18026
|
const o = { ...a };
|
|
18027
18027
|
return o.__apiExtensions = [
|
|
@@ -18032,19 +18032,19 @@ function xt(e = {}) {
|
|
|
18032
18032
|
isPluginSpecific: !1,
|
|
18033
18033
|
isTransform: !0
|
|
18034
18034
|
}
|
|
18035
|
-
],
|
|
18035
|
+
], Mt(o);
|
|
18036
18036
|
}, a.extend = (i) => {
|
|
18037
18037
|
let o = { ...a };
|
|
18038
18038
|
return ii(i) ? o.__extensions = [
|
|
18039
18039
|
...o.__extensions,
|
|
18040
18040
|
i
|
|
18041
|
-
] : o = Om(o, i),
|
|
18041
|
+
] : o = Om(o, i), Mt(o);
|
|
18042
18042
|
}, a.clone = () => Om(a), a.extendPlugin = (i, o) => {
|
|
18043
18043
|
const s = { ...a }, l = (u) => {
|
|
18044
18044
|
let d = !1;
|
|
18045
18045
|
const _ = u.map((m) => {
|
|
18046
18046
|
if (m.key === i.key)
|
|
18047
|
-
return d = !0,
|
|
18047
|
+
return d = !0, Mt({
|
|
18048
18048
|
...m,
|
|
18049
18049
|
__extensions: [
|
|
18050
18050
|
...m.__extensions,
|
|
@@ -18064,17 +18064,17 @@ function xt(e = {}) {
|
|
|
18064
18064
|
return { found: d, plugins: _ };
|
|
18065
18065
|
}, c = l(s.plugins);
|
|
18066
18066
|
return s.plugins = c.plugins, c.found || s.plugins.push(
|
|
18067
|
-
|
|
18067
|
+
Mt({
|
|
18068
18068
|
key: i.key,
|
|
18069
18069
|
__extensions: [
|
|
18070
18070
|
(u) => ii(o) ? o(u) : o
|
|
18071
18071
|
]
|
|
18072
18072
|
})
|
|
18073
|
-
),
|
|
18073
|
+
), Mt(s);
|
|
18074
18074
|
}, a;
|
|
18075
18075
|
}
|
|
18076
18076
|
function nO(e = {}) {
|
|
18077
|
-
return
|
|
18077
|
+
return Mt(e);
|
|
18078
18078
|
}
|
|
18079
18079
|
function kr(e, t) {
|
|
18080
18080
|
const r = e.getPlugin(t);
|
|
@@ -18090,7 +18090,7 @@ function kr(e, t) {
|
|
|
18090
18090
|
getOptions: () => e.getOptions(r)
|
|
18091
18091
|
};
|
|
18092
18092
|
}
|
|
18093
|
-
|
|
18093
|
+
Mt({
|
|
18094
18094
|
key: "ast",
|
|
18095
18095
|
parser: {
|
|
18096
18096
|
format: "application/x-slate-fragment",
|
|
@@ -18105,11 +18105,11 @@ xt({
|
|
|
18105
18105
|
}
|
|
18106
18106
|
}
|
|
18107
18107
|
});
|
|
18108
|
-
|
|
18108
|
+
Mt({
|
|
18109
18109
|
key: "dom"
|
|
18110
18110
|
});
|
|
18111
18111
|
var D7 = ({ editor: e }) => kf(e);
|
|
18112
|
-
|
|
18112
|
+
Mt({
|
|
18113
18113
|
key: "history",
|
|
18114
18114
|
extendEditor: D7
|
|
18115
18115
|
});
|
|
@@ -18137,7 +18137,7 @@ var I7 = ({
|
|
|
18137
18137
|
}
|
|
18138
18138
|
};
|
|
18139
18139
|
};
|
|
18140
|
-
|
|
18140
|
+
Mt({
|
|
18141
18141
|
key: "inlineVoid"
|
|
18142
18142
|
}).overrideEditor(I7);
|
|
18143
18143
|
var w7 = (e, t, { fragment: r, ...n }) => {
|
|
@@ -18604,11 +18604,11 @@ var uO = (e) => e.dataset.slateVoid === "true", K7 = (e) => e.dataset.slateNode
|
|
|
18604
18604
|
deleteWordBackward: "ctrl+shift?+backspace",
|
|
18605
18605
|
deleteWordForward: "ctrl+shift?+delete",
|
|
18606
18606
|
redo: ["ctrl+y", "ctrl+shift+z"]
|
|
18607
|
-
},
|
|
18607
|
+
}, wt = (e) => {
|
|
18608
18608
|
const t = eB[e], r = tB[e], n = rB[e], a = t && yn.isKeyHotkey(t), i = r && yn.isKeyHotkey(r), o = n && yn.isKeyHotkey(n);
|
|
18609
18609
|
return (s) => !!(a != null && a(s) || Io && (i != null && i(s)) || !Io && (o != null && o(s)));
|
|
18610
18610
|
};
|
|
18611
|
-
|
|
18611
|
+
wt("bold"), wt("compose"), wt("deleteBackward"), wt("deleteForward"), wt("deleteLineBackward"), wt("deleteLineForward"), wt("deleteWordBackward"), wt("deleteWordForward"), wt("extendBackward"), wt("extendForward"), wt("extendLineBackward"), wt("extendLineForward"), wt("italic"), wt("moveBackward"), wt("moveForward"), wt("moveLineBackward"), wt("moveLineForward"), wt("moveWordBackward"), wt("moveWordForward"), wt("redo"), wt("insertSoftBreak"), wt("splitBlock"), wt("transposeCharacter"), wt("undo");
|
|
18612
18612
|
var nB = (e) => {
|
|
18613
18613
|
aO({ ...e, apply: gr });
|
|
18614
18614
|
}, aB = class extends Error {
|
|
@@ -19023,7 +19023,7 @@ var Wl = (e) => e.nodeType === Node.ELEMENT_NODE, _O = (e) => e.nodeType === Nod
|
|
|
19023
19023
|
descendants: a
|
|
19024
19024
|
});
|
|
19025
19025
|
}, OB = (e) => new DOMParser().parseFromString(e, "text/html");
|
|
19026
|
-
|
|
19026
|
+
Mt({
|
|
19027
19027
|
key: "html"
|
|
19028
19028
|
}).extendApi(({ editor: e }) => ({
|
|
19029
19029
|
deserialize: Z(RB, e)
|
|
@@ -19061,7 +19061,7 @@ nO({
|
|
|
19061
19061
|
}
|
|
19062
19062
|
}
|
|
19063
19063
|
}));
|
|
19064
|
-
var wa =
|
|
19064
|
+
var wa = Mt({
|
|
19065
19065
|
key: "p",
|
|
19066
19066
|
node: {
|
|
19067
19067
|
isElement: !0
|
|
@@ -19079,7 +19079,7 @@ var wa = xt({
|
|
|
19079
19079
|
}
|
|
19080
19080
|
}
|
|
19081
19081
|
});
|
|
19082
|
-
|
|
19082
|
+
Mt({
|
|
19083
19083
|
key: "slateExtension"
|
|
19084
19084
|
}).overrideEditor(
|
|
19085
19085
|
({
|
|
@@ -19193,7 +19193,7 @@ var NB = (e) => (t) => lt.isText(t) || tt.isElement(t) && e.api.isInline(t), AB
|
|
|
19193
19193
|
dataTransfer: n
|
|
19194
19194
|
});
|
|
19195
19195
|
});
|
|
19196
|
-
|
|
19196
|
+
Mt({
|
|
19197
19197
|
key: "parser"
|
|
19198
19198
|
}).overrideEditor(({ editor: e, tf: { insertData: t } }) => ({
|
|
19199
19199
|
transforms: {
|
|
@@ -19918,11 +19918,11 @@ var CO = (e) => e.dataset.slateVoid === "true", JB = (e) => e.dataset.slateNode
|
|
|
19918
19918
|
deleteWordBackward: "ctrl+shift?+backspace",
|
|
19919
19919
|
deleteWordForward: "ctrl+shift?+delete",
|
|
19920
19920
|
redo: ["ctrl+y", "ctrl+shift+z"]
|
|
19921
|
-
},
|
|
19921
|
+
}, xt = (e) => {
|
|
19922
19922
|
const t = i8[e], r = o8[e], n = s8[e], a = t && yn.isKeyHotkey(t), i = r && yn.isKeyHotkey(r), o = n && yn.isKeyHotkey(n);
|
|
19923
19923
|
return (s) => !!(a != null && a(s) || Io && (i != null && i(s)) || !Io && (o != null && o(s)));
|
|
19924
19924
|
};
|
|
19925
|
-
|
|
19925
|
+
xt("bold"), xt("compose"), xt("deleteBackward"), xt("deleteForward"), xt("deleteLineBackward"), xt("deleteLineForward"), xt("deleteWordBackward"), xt("deleteWordForward"), xt("extendBackward"), xt("extendForward"), xt("extendLineBackward"), xt("extendLineForward"), xt("italic"), xt("moveBackward"), xt("moveForward"), xt("moveLineBackward"), xt("moveLineForward"), xt("moveWordBackward"), xt("moveWordForward"), xt("redo"), xt("insertSoftBreak"), xt("splitBlock"), xt("transposeCharacter"), xt("undo");
|
|
19926
19926
|
var l8 = (e) => {
|
|
19927
19927
|
hO({ ...e, apply: gr });
|
|
19928
19928
|
}, c8 = class extends Error {
|
|
@@ -31774,7 +31774,7 @@ var EU = (e, t) => {
|
|
|
31774
31774
|
},
|
|
31775
31775
|
t
|
|
31776
31776
|
);
|
|
31777
|
-
}, xN =
|
|
31777
|
+
}, xN = Mt({
|
|
31778
31778
|
key: "inline_equation",
|
|
31779
31779
|
node: { isElement: !0, isInline: !0, isVoid: !0 }
|
|
31780
31780
|
}).extendEditorTransforms(({ editor: e }) => ({
|
|
@@ -31790,7 +31790,7 @@ var EU = (e, t) => {
|
|
|
31790
31790
|
},
|
|
31791
31791
|
r
|
|
31792
31792
|
);
|
|
31793
|
-
}, MN =
|
|
31793
|
+
}, MN = Mt({
|
|
31794
31794
|
key: "equation",
|
|
31795
31795
|
node: { isElement: !0, isVoid: !0 }
|
|
31796
31796
|
}).extendEditorTransforms(({ editor: e }) => ({
|
|
@@ -85806,7 +85806,7 @@ const WV = ({
|
|
|
85806
85806
|
children: e,
|
|
85807
85807
|
className: t,
|
|
85808
85808
|
...r
|
|
85809
|
-
}) => /* @__PURE__ */
|
|
85809
|
+
}) => /* @__PURE__ */ At(
|
|
85810
85810
|
Pt,
|
|
85811
85811
|
{
|
|
85812
85812
|
as: "blockquote",
|
|
@@ -85848,9 +85848,9 @@ const WV = ({
|
|
|
85848
85848
|
).join(`
|
|
85849
85849
|
`).trim();
|
|
85850
85850
|
o(l || "");
|
|
85851
|
-
}, [r]), /* @__PURE__ */
|
|
85851
|
+
}, [r]), /* @__PURE__ */ At("div", { className: "relative h-auto w-full rounded bg-[#F9F9F9] px-6 pt-12 slate-code_block", ...t, children: [
|
|
85852
85852
|
/* @__PURE__ */ oe("pre", { className: "m-0 size-full bg-transparent p-0 pb-6 font-body-single text-base font-normal text-primary01-100", children: /* @__PURE__ */ oe("code", { children: e }) }),
|
|
85853
|
-
/* @__PURE__ */
|
|
85853
|
+
/* @__PURE__ */ At(
|
|
85854
85854
|
"button",
|
|
85855
85855
|
{
|
|
85856
85856
|
"aria-label": n ? "Copied to clipboard" : "Copy to clipboard",
|
|
@@ -85946,7 +85946,7 @@ function r$({
|
|
|
85946
85946
|
...r
|
|
85947
85947
|
}) {
|
|
85948
85948
|
const { element: n } = r;
|
|
85949
|
-
return /* @__PURE__ */
|
|
85949
|
+
return /* @__PURE__ */ At(Pt, { className: rt(t, "inline-block"), ...r, children: [
|
|
85950
85950
|
/* @__PURE__ */ oe(
|
|
85951
85951
|
"span",
|
|
85952
85952
|
{
|
|
@@ -86016,7 +86016,7 @@ function i$({
|
|
|
86016
86016
|
nodeProps: r,
|
|
86017
86017
|
...n
|
|
86018
86018
|
}) {
|
|
86019
|
-
return /* @__PURE__ */
|
|
86019
|
+
return /* @__PURE__ */ At(Pt, { className: t, nodeProps: r, ...n, children: [
|
|
86020
86020
|
/* @__PURE__ */ oe("div", { className: "cursor-text py-6", contentEditable: !1, children: /* @__PURE__ */ oe(
|
|
86021
86021
|
"hr",
|
|
86022
86022
|
{
|
|
@@ -86041,14 +86041,14 @@ function o$({
|
|
|
86041
86041
|
url: o,
|
|
86042
86042
|
width: s
|
|
86043
86043
|
} = n.element;
|
|
86044
|
-
return /* @__PURE__ */
|
|
86044
|
+
return /* @__PURE__ */ At(
|
|
86045
86045
|
Pt,
|
|
86046
86046
|
{
|
|
86047
86047
|
className: rt(t, "py-2.5"),
|
|
86048
86048
|
...n,
|
|
86049
86049
|
nodeProps: r,
|
|
86050
86050
|
children: [
|
|
86051
|
-
/* @__PURE__ */ oe("figure", { className: "group relative m-0 inline-block", children: /* @__PURE__ */
|
|
86051
|
+
/* @__PURE__ */ oe("figure", { className: "group relative m-0 inline-block", children: /* @__PURE__ */ At(
|
|
86052
86052
|
"div",
|
|
86053
86053
|
{
|
|
86054
86054
|
className: "relative max-w-full min-w-[92px]",
|
|
@@ -86272,7 +86272,7 @@ function R$({
|
|
|
86272
86272
|
...r
|
|
86273
86273
|
}) {
|
|
86274
86274
|
const { url: n } = r.element;
|
|
86275
|
-
return /* @__PURE__ */
|
|
86275
|
+
return /* @__PURE__ */ At(Pt, { className: rt(t, "mb-1"), ...r, children: [
|
|
86276
86276
|
/* @__PURE__ */ oe("figure", { className: "group relative cursor-default", children: /* @__PURE__ */ oe("div", { className: "h-16", children: /* @__PURE__ */ oe("audio", { className: "size-full", src: n, controls: !0 }) }) }),
|
|
86277
86277
|
e
|
|
86278
86278
|
] });
|
|
@@ -86283,7 +86283,7 @@ const O$ = ({
|
|
|
86283
86283
|
...r
|
|
86284
86284
|
}) => {
|
|
86285
86285
|
const { name: n, url: a } = r.element;
|
|
86286
|
-
return /* @__PURE__ */
|
|
86286
|
+
return /* @__PURE__ */ At(Pt, { className: rt(t, "my-px rounded-sm"), ...r, children: [
|
|
86287
86287
|
/* @__PURE__ */ oe(
|
|
86288
86288
|
"a",
|
|
86289
86289
|
{
|
|
@@ -86294,7 +86294,7 @@ const O$ = ({
|
|
|
86294
86294
|
rel: "noopener noreferrer",
|
|
86295
86295
|
role: "button",
|
|
86296
86296
|
target: "_blank",
|
|
86297
|
-
children: /* @__PURE__ */
|
|
86297
|
+
children: /* @__PURE__ */ At("div", { className: "flex items-center gap-1 p-1", children: [
|
|
86298
86298
|
/* @__PURE__ */ oe(b$, { className: "size-5" }),
|
|
86299
86299
|
/* @__PURE__ */ oe("div", { children: n })
|
|
86300
86300
|
] })
|
|
@@ -86314,8 +86314,8 @@ function N$({
|
|
|
86314
86314
|
url: i,
|
|
86315
86315
|
width: o
|
|
86316
86316
|
} = r.element;
|
|
86317
|
-
return /* @__PURE__ */
|
|
86318
|
-
/* @__PURE__ */ oe("div", { style: { textAlign: n }, children: /* @__PURE__ */
|
|
86317
|
+
return /* @__PURE__ */ At(Pt, { className: rt(t, "py-2.5"), ...r, children: [
|
|
86318
|
+
/* @__PURE__ */ oe("div", { style: { textAlign: n }, children: /* @__PURE__ */ At(
|
|
86319
86319
|
"figure",
|
|
86320
86320
|
{
|
|
86321
86321
|
className: "group relative m-0 inline-block cursor-default",
|
|
@@ -86357,14 +86357,14 @@ function A$({
|
|
|
86357
86357
|
...n,
|
|
86358
86358
|
children: Io ? (
|
|
86359
86359
|
// Mac OS IME https://github.com/ianstormtaylor/slate/issues/3490
|
|
86360
|
-
/* @__PURE__ */
|
|
86360
|
+
/* @__PURE__ */ At($.Fragment, { children: [
|
|
86361
86361
|
e,
|
|
86362
86362
|
r,
|
|
86363
86363
|
a.value
|
|
86364
86364
|
] })
|
|
86365
86365
|
) : (
|
|
86366
86366
|
// Others like Android https://github.com/ianstormtaylor/slate/pull/5360
|
|
86367
|
-
/* @__PURE__ */
|
|
86367
|
+
/* @__PURE__ */ At($.Fragment, { children: [
|
|
86368
86368
|
r,
|
|
86369
86369
|
a.value,
|
|
86370
86370
|
e
|
|
@@ -86442,23 +86442,26 @@ const w$ = ({
|
|
|
86442
86442
|
className: t,
|
|
86443
86443
|
...r
|
|
86444
86444
|
}) => {
|
|
86445
|
-
const { disableMarginLeft: n } = r.editor.getOptions(yt), a = n ? 0 : r.element.marginLeft, i = r.element.tableType === "matrix";
|
|
86445
|
+
const { disableMarginLeft: n } = r.editor.getOptions(yt), a = n ? 0 : r.element.marginLeft, i = r.element.tableType === "matrix", o = r.element.source;
|
|
86446
86446
|
return /* @__PURE__ */ oe(
|
|
86447
86447
|
Pt,
|
|
86448
86448
|
{
|
|
86449
86449
|
className: rt(t, "overflow-x-auto py-5"),
|
|
86450
86450
|
style: { paddingLeft: a },
|
|
86451
86451
|
...r,
|
|
86452
|
-
children: /* @__PURE__ */
|
|
86453
|
-
|
|
86454
|
-
|
|
86455
|
-
|
|
86456
|
-
|
|
86457
|
-
|
|
86458
|
-
|
|
86459
|
-
|
|
86460
|
-
|
|
86461
|
-
|
|
86452
|
+
children: /* @__PURE__ */ At("div", { className: "group/table relative w-full helios-table", children: [
|
|
86453
|
+
/* @__PURE__ */ oe(
|
|
86454
|
+
"table",
|
|
86455
|
+
{
|
|
86456
|
+
className: rt(
|
|
86457
|
+
"mr-0 ml-px table h-px table-fixed border-collapse",
|
|
86458
|
+
i && "matrix-table"
|
|
86459
|
+
),
|
|
86460
|
+
children: /* @__PURE__ */ oe("tbody", { className: "min-w-full", children: e })
|
|
86461
|
+
}
|
|
86462
|
+
),
|
|
86463
|
+
o && /* @__PURE__ */ oe("p", { className: "mt-1 text-right text-sm text-black opacity-40", children: o })
|
|
86464
|
+
] })
|
|
86462
86465
|
}
|
|
86463
86466
|
);
|
|
86464
86467
|
};
|
|
@@ -86524,7 +86527,7 @@ function k$({
|
|
|
86524
86527
|
...r
|
|
86525
86528
|
}) {
|
|
86526
86529
|
const { editor: n } = r, a = F$(n);
|
|
86527
|
-
return /* @__PURE__ */
|
|
86530
|
+
return /* @__PURE__ */ At(Pt, { className: rt(t, "mb-1 p-0"), ...r, children: [
|
|
86528
86531
|
/* @__PURE__ */ oe("div", { children: a.length > 0 ? a.map((i) => /* @__PURE__ */ oe(
|
|
86529
86532
|
L$,
|
|
86530
86533
|
{
|
|
@@ -86563,7 +86566,7 @@ function U$({
|
|
|
86563
86566
|
className: t,
|
|
86564
86567
|
...r
|
|
86565
86568
|
}) {
|
|
86566
|
-
return /* @__PURE__ */
|
|
86569
|
+
return /* @__PURE__ */ At(Pt, { className: rt(t, "pl-6"), ...r, children: [
|
|
86567
86570
|
/* @__PURE__ */ oe(
|
|
86568
86571
|
"div",
|
|
86569
86572
|
{
|
|
@@ -86807,7 +86810,7 @@ const G$ = ({
|
|
|
86807
86810
|
}), X;
|
|
86808
86811
|
});
|
|
86809
86812
|
};
|
|
86810
|
-
return /* @__PURE__ */
|
|
86813
|
+
return /* @__PURE__ */ At(
|
|
86811
86814
|
"div",
|
|
86812
86815
|
{
|
|
86813
86816
|
...e,
|
|
@@ -86830,7 +86833,7 @@ const G$ = ({
|
|
|
86830
86833
|
children: G(p)
|
|
86831
86834
|
}
|
|
86832
86835
|
),
|
|
86833
|
-
a && l && /* @__PURE__ */
|
|
86836
|
+
a && l && /* @__PURE__ */ At(
|
|
86834
86837
|
"div",
|
|
86835
86838
|
{
|
|
86836
86839
|
ref: u,
|
|
@@ -86842,7 +86845,7 @@ const G$ = ({
|
|
|
86842
86845
|
${o ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"}`,
|
|
86843
86846
|
style: { top: l.top, left: l.left },
|
|
86844
86847
|
children: [
|
|
86845
|
-
/* @__PURE__ */
|
|
86848
|
+
/* @__PURE__ */ At(
|
|
86846
86849
|
"div",
|
|
86847
86850
|
{
|
|
86848
86851
|
className: `comment-tooltip-title mb-2 flex gap-2 ${a.color}`,
|
|
@@ -86862,7 +86865,7 @@ const G$ = ({
|
|
|
86862
86865
|
{
|
|
86863
86866
|
className: "mt-4 essay-excerpt-expand-button",
|
|
86864
86867
|
contentEditable: !1,
|
|
86865
|
-
children: /* @__PURE__ */
|
|
86868
|
+
children: /* @__PURE__ */ At(
|
|
86866
86869
|
"button",
|
|
86867
86870
|
{
|
|
86868
86871
|
className: "transition-colors duration-200 flex items-center gap-2 m-auto",
|
|
@@ -86939,14 +86942,14 @@ function fW({
|
|
|
86939
86942
|
if (!pW(a))
|
|
86940
86943
|
return console.warn("⚠️ Invalid media embed element structure:", a), null;
|
|
86941
86944
|
const i = a, { url: o, caption: s, width: l, align: c = "center" } = i, u = mW(o), d = (s == null ? void 0 : s.map((_) => Ue.string(_)).join("").trim()) ?? "";
|
|
86942
|
-
return u ? /* @__PURE__ */
|
|
86945
|
+
return u ? /* @__PURE__ */ At(
|
|
86943
86946
|
Pt,
|
|
86944
86947
|
{
|
|
86945
86948
|
className: rt(t, "py-2.5"),
|
|
86946
86949
|
...n,
|
|
86947
86950
|
nodeProps: r,
|
|
86948
86951
|
children: [
|
|
86949
|
-
/* @__PURE__ */ oe("figure", { className: "group relative m-0 block w-full", children: /* @__PURE__ */
|
|
86952
|
+
/* @__PURE__ */ oe("figure", { className: "group relative m-0 block w-full", children: /* @__PURE__ */ At(
|
|
86950
86953
|
"div",
|
|
86951
86954
|
{
|
|
86952
86955
|
className: "relative w-full",
|
|
@@ -87089,14 +87092,14 @@ const NA = "table_heading_special", gW = Oe({
|
|
|
87089
87092
|
t();
|
|
87090
87093
|
}, e;
|
|
87091
87094
|
}
|
|
87092
|
-
}), RW = (e) => /* @__PURE__ */ oe("svg", { width: "19", height: "19", viewBox: "0 0 19 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ oe("g", { id: "Icon", children: /* @__PURE__ */
|
|
87095
|
+
}), RW = (e) => /* @__PURE__ */ oe("svg", { width: "19", height: "19", viewBox: "0 0 19 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ oe("g", { id: "Icon", children: /* @__PURE__ */ At("g", { id: "Group 1234423", children: [
|
|
87093
87096
|
/* @__PURE__ */ oe("path", { id: "Vector", d: "M8.55 14.25H10.45V8.55H8.55V14.25ZM9.5 0C4.25125 0 0 4.25125 0 9.5C0 14.7488 4.25125 19 9.5 19C14.7488 19 19 14.7488 19 9.5C19 4.25125 14.7488 0 9.5 0ZM9.5 17.1C5.3105 17.1 1.9 13.6895 1.9 9.5C1.9 5.3105 5.3105 1.9 9.5 1.9C13.6895 1.9 17.1 5.3105 17.1 9.5C17.1 13.6895 13.6895 17.1 9.5 17.1ZM8.55 6.65H10.45V4.75H8.55V6.65Z", fill: "#3A0407" }),
|
|
87094
87097
|
/* @__PURE__ */ oe("path", { id: "Vector_2", d: "M9.5 4.26937e-06C4.25125 4.26937e-06 0 4.25125 0 9.5C0 14.7488 4.25125 19 9.5 19C14.7488 19 19 14.7488 19 9.5C19 4.25125 14.7488 4.26937e-06 9.5 4.26937e-06ZM9.5 17.1C5.3105 17.1 1.9 13.6895 1.9 9.5C1.9 5.3105 5.3105 1.9 9.5 1.9C13.6895 1.9 17.1 5.3105 17.1 9.5C17.1 13.6895 13.6895 17.1 9.5 17.1Z", fill: "#74070E" })
|
|
87095
87098
|
] }) }) }), OW = ({
|
|
87096
87099
|
children: e,
|
|
87097
87100
|
className: t,
|
|
87098
87101
|
...r
|
|
87099
|
-
}) => /* @__PURE__ */
|
|
87102
|
+
}) => /* @__PURE__ */ At(
|
|
87100
87103
|
Pt,
|
|
87101
87104
|
{
|
|
87102
87105
|
className: "callout-title text-xl font-bold pb-[12.5px] flex gap-2 ",
|