@scbt-ecom/ui 0.7.18 → 0.7.20
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/client.js +36 -33
- package/dist/client.js.map +1 -1
- package/dist/hybrid.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{style-B2uhcWlW.js → utils-tailwind-Bh4Yv0Ys.js} +706 -718
- package/dist/utils-tailwind-Bh4Yv0Ys.js.map +1 -0
- package/dist/utils-tailwind.css +55 -0
- package/package.json +10 -8
- package/dist/style-B2uhcWlW.js.map +0 -1
package/dist/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Jn, e as ri, f as JS, h as xh, m as US, k as $b, l as KS, n as qS, o as QS, q as eI, r as tI, i as nI, s as rI, v as iI, w as oI, x as sI, y as _u, j as C, A as kt, S as Ch, C as Un, E as Nn, F as ps, G as Ze, J as _e, K as hs, M as aI, c as O, I as Fe, O as Xb, Q as lI, R as cI, T as uI, U as dI, V as fI, W as pI, b as hI, u as mI, X as gI, H as vI, Y as bI, _ as yI, Z as xI, B as CI, a as mf, $ as wI, a0 as Co, a1 as SI, a2 as Yb, a3 as wc, a4 as Sc, a5 as II, a6 as EI, a7 as AI, a8 as TI, a9 as kI, aa as Zb, D as wh, d as MI, ab as kl, ac as Ic, ad as co, ae as OI, af as uo, p as PI, g as RI, ag as di, N as Mo, L as DI, P as Jb, z as NI } from "./
|
|
1
|
+
import { t as Jn, e as ri, f as JS, h as xh, m as US, k as $b, l as KS, n as qS, o as QS, q as eI, r as tI, i as nI, s as rI, v as iI, w as oI, x as sI, y as _u, j as C, A as kt, S as Ch, C as Un, E as Nn, F as ps, G as Ze, J as _e, K as hs, M as aI, c as O, I as Fe, O as Xb, Q as lI, R as cI, T as uI, U as dI, V as fI, W as pI, b as hI, u as mI, X as gI, H as vI, Y as bI, _ as yI, Z as xI, B as CI, a as mf, $ as wI, a0 as Co, a1 as SI, a2 as Yb, a3 as wc, a4 as Sc, a5 as II, a6 as EI, a7 as AI, a8 as TI, a9 as kI, aa as Zb, D as wh, d as MI, ab as kl, ac as Ic, ad as co, ae as OI, af as uo, p as PI, g as RI, ag as di, N as Mo, L as DI, P as Jb, z as NI } from "./utils-tailwind-Bh4Yv0Ys.js";
|
|
2
2
|
import * as I from "react";
|
|
3
3
|
import $, { useCallback as fe, createContext as qe, useContext as Me, useId as Fn, useEffect as Pe, Component as Ub, useLayoutEffect as Qi, useRef as de, useInsertionEffect as Kb, useMemo as we, forwardRef as fi, Fragment as Ht, createElement as qb, Children as FI, isValidElement as Qb, useState as Oe, cloneElement as VI, useReducer as gf, useSyncExternalStore as BI, createRef as LI, useImperativeHandle as jI, useDebugValue as ey } from "react";
|
|
4
4
|
import * as Hu from "react-dom";
|
|
@@ -15910,7 +15910,7 @@ function cC(t) {
|
|
|
15910
15910
|
}
|
|
15911
15911
|
function Bg(t, e) {
|
|
15912
15912
|
var n;
|
|
15913
|
-
if (typeof t.getAsFileSystemHandle == "function")
|
|
15913
|
+
if (globalThis.isSecureContext && typeof t.getAsFileSystemHandle == "function")
|
|
15914
15914
|
return t.getAsFileSystemHandle().then((o) => di(this, void 0, void 0, function* () {
|
|
15915
15915
|
const s = yield o.getFile();
|
|
15916
15916
|
return s.handle = o, $i(s);
|
|
@@ -26802,53 +26802,53 @@ class Os {
|
|
|
26802
26802
|
// case we just use whatever domFromPos produces as a best effort.
|
|
26803
26803
|
setSelection(e, n, r, i = !1) {
|
|
26804
26804
|
let o = Math.min(e, n), s = Math.max(e, n);
|
|
26805
|
-
for (let
|
|
26806
|
-
let
|
|
26807
|
-
if (o >
|
|
26808
|
-
return
|
|
26809
|
-
|
|
26805
|
+
for (let p = 0, h = 0; p < this.children.length; p++) {
|
|
26806
|
+
let m = this.children[p], g = h + m.size;
|
|
26807
|
+
if (o > h && s < g)
|
|
26808
|
+
return m.setSelection(e - h - m.border, n - h - m.border, r, i);
|
|
26809
|
+
h = g;
|
|
26810
26810
|
}
|
|
26811
|
-
let a = this.domFromPos(e, e ? -1 : 1), l = n == e ? a : this.domFromPos(n, n ? -1 : 1), c = r.getSelection(), u = !1;
|
|
26811
|
+
let a = this.domFromPos(e, e ? -1 : 1), l = n == e ? a : this.domFromPos(n, n ? -1 : 1), c = r.root.getSelection(), u = r.domSelectionRange(), d = !1;
|
|
26812
26812
|
if ((dn || Nt) && e == n) {
|
|
26813
|
-
let { node:
|
|
26814
|
-
if (
|
|
26815
|
-
if (
|
|
26816
|
-
`),
|
|
26817
|
-
for (let
|
|
26818
|
-
if (
|
|
26819
|
-
|
|
26813
|
+
let { node: p, offset: h } = a;
|
|
26814
|
+
if (p.nodeType == 3) {
|
|
26815
|
+
if (d = !!(h && p.nodeValue[h - 1] == `
|
|
26816
|
+
`), d && h == p.nodeValue.length)
|
|
26817
|
+
for (let m = p, g; m; m = m.parentNode) {
|
|
26818
|
+
if (g = m.nextSibling) {
|
|
26819
|
+
g.nodeName == "BR" && (a = l = { node: g.parentNode, offset: bt(g) + 1 });
|
|
26820
26820
|
break;
|
|
26821
26821
|
}
|
|
26822
|
-
let
|
|
26823
|
-
if (
|
|
26822
|
+
let v = m.pmViewDesc;
|
|
26823
|
+
if (v && v.node && v.node.isBlock)
|
|
26824
26824
|
break;
|
|
26825
26825
|
}
|
|
26826
26826
|
} else {
|
|
26827
|
-
let
|
|
26828
|
-
|
|
26827
|
+
let m = p.childNodes[h - 1];
|
|
26828
|
+
d = m && (m.nodeName == "BR" || m.contentEditable == "false");
|
|
26829
26829
|
}
|
|
26830
26830
|
}
|
|
26831
|
-
if (dn &&
|
|
26832
|
-
let
|
|
26833
|
-
|
|
26831
|
+
if (dn && u.focusNode && u.focusNode != l.node && u.focusNode.nodeType == 1) {
|
|
26832
|
+
let p = u.focusNode.childNodes[u.focusOffset];
|
|
26833
|
+
p && p.contentEditable == "false" && (i = !0);
|
|
26834
26834
|
}
|
|
26835
|
-
if (!(i ||
|
|
26835
|
+
if (!(i || d && Nt) && li(a.node, a.offset, u.anchorNode, u.anchorOffset) && li(l.node, l.offset, u.focusNode, u.focusOffset))
|
|
26836
26836
|
return;
|
|
26837
|
-
let
|
|
26838
|
-
if ((c.extend || e == n) && !
|
|
26837
|
+
let f = !1;
|
|
26838
|
+
if ((c.extend || e == n) && !d) {
|
|
26839
26839
|
c.collapse(a.node, a.offset);
|
|
26840
26840
|
try {
|
|
26841
|
-
e != n && c.extend(l.node, l.offset),
|
|
26841
|
+
e != n && c.extend(l.node, l.offset), f = !0;
|
|
26842
26842
|
} catch {
|
|
26843
26843
|
}
|
|
26844
26844
|
}
|
|
26845
|
-
if (!
|
|
26845
|
+
if (!f) {
|
|
26846
26846
|
if (e > n) {
|
|
26847
|
-
let
|
|
26848
|
-
a = l, l =
|
|
26847
|
+
let h = a;
|
|
26848
|
+
a = l, l = h;
|
|
26849
26849
|
}
|
|
26850
|
-
let
|
|
26851
|
-
|
|
26850
|
+
let p = document.createRange();
|
|
26851
|
+
p.setEnd(l.node, l.offset), p.setStart(a.node, a.offset), c.removeAllRanges(), c.addRange(p);
|
|
26852
26852
|
}
|
|
26853
26853
|
}
|
|
26854
26854
|
ignoreMutation(e) {
|
|
@@ -26977,6 +26977,9 @@ class ci extends Os {
|
|
|
26977
26977
|
o[a].parent = i;
|
|
26978
26978
|
return i.children = o, i;
|
|
26979
26979
|
}
|
|
26980
|
+
ignoreMutation(e) {
|
|
26981
|
+
return this.spec.ignoreMutation ? this.spec.ignoreMutation(e) : super.ignoreMutation(e);
|
|
26982
|
+
}
|
|
26980
26983
|
destroy() {
|
|
26981
26984
|
this.spec.destroy && this.spec.destroy(), super.destroy();
|
|
26982
26985
|
}
|
|
@@ -27191,7 +27194,7 @@ class sG extends br {
|
|
|
27191
27194
|
this.spec.deselectNode ? this.spec.deselectNode() : super.deselectNode();
|
|
27192
27195
|
}
|
|
27193
27196
|
setSelection(e, n, r, i) {
|
|
27194
|
-
this.spec.setSelection ? this.spec.setSelection(e, n, r) : super.setSelection(e, n, r, i);
|
|
27197
|
+
this.spec.setSelection ? this.spec.setSelection(e, n, r.root) : super.setSelection(e, n, r, i);
|
|
27195
27198
|
}
|
|
27196
27199
|
destroy() {
|
|
27197
27200
|
this.spec.destroy && this.spec.destroy(), super.destroy();
|
|
@@ -27615,7 +27618,7 @@ function Yn(t, e = !1) {
|
|
|
27615
27618
|
mG(t);
|
|
27616
27619
|
else {
|
|
27617
27620
|
let { anchor: r, head: i } = n, o, s;
|
|
27618
|
-
Zv && !(n instanceof Ce) && (n.$from.parent.inlineContent || (o = Jv(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = Jv(t, n.to))), t.docView.setSelection(r, i, t
|
|
27621
|
+
Zv && !(n instanceof Ce) && (n.$from.parent.inlineContent || (o = Jv(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = Jv(t, n.to))), t.docView.setSelection(r, i, t, e), Zv && (o && Uv(o), s && Uv(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && hG(t));
|
|
27619
27622
|
}
|
|
27620
27623
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
27621
27624
|
}
|