@scbt-ecom/ui 0.59.0 → 0.59.1
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/hooks.js +2 -2
- package/dist/{index-Bnb3sS3q.js → index-mSNqlGXI.js} +45 -42
- package/dist/{index-Bnb3sS3q.js.map → index-mSNqlGXI.js.map} +1 -1
- package/dist/ui.js +3 -3
- package/dist/{useDebounce-CK7Ghu8F.js → useDebounce-QgEEiWs9.js} +7 -7
- package/dist/{useDebounce-CK7Ghu8F.js.map → useDebounce-QgEEiWs9.js.map} +1 -1
- package/dist/{useFieldsProgress-BeFcsVuB.js → useFieldsProgress-BXzIWmGP.js} +7 -7
- package/dist/{useFieldsProgress-BeFcsVuB.js.map → useFieldsProgress-BXzIWmGP.js.map} +1 -1
- package/dist/utils.js +10 -11
- package/dist/utils.js.map +1 -1
- package/dist/uuid-2wKG15vy.js +25 -0
- package/dist/uuid-2wKG15vy.js.map +1 -0
- package/dist/widget.js +900 -580
- package/dist/widget.js.map +1 -1
- package/dist/widgets/index.d.ts +1 -0
- package/dist/widgets/seoHeader/SeoHeader.d.ts +1 -2
- package/dist/widgets/seoHeader/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/uuid-DQgafI7K.js +0 -24
- package/dist/uuid-DQgafI7K.js.map +0 -1
package/dist/hooks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as I,
|
|
1
|
+
import { d as I, b as R, c as A, e as L, f as O, a as V } from "./useDebounce-QgEEiWs9.js";
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import { useState as m, useEffect as b } from "react";
|
|
4
|
-
import { u as F } from "./useFieldsProgress-
|
|
4
|
+
import { u as F } from "./useFieldsProgress-BXzIWmGP.js";
|
|
5
5
|
const f = (o = !1) => {
|
|
6
6
|
const [s, e] = p.useState(o);
|
|
7
7
|
return [s, (a) => e((t) => a ?? !t)];
|
|
@@ -6,7 +6,7 @@ var ge = (t, e, n) => (_u(t, e, "read from private field"), n ? n.call(t) : e.ge
|
|
|
6
6
|
import { c as te, a as DT, T as af } from "./typeGuards-Bhdr9KYW.js";
|
|
7
7
|
import * as R from "react";
|
|
8
8
|
import ie, { forwardRef as ut, createContext as vt, useContext as We, useCallback as Ce, useRef as Se, useLayoutEffect as di, useState as je, useEffect as _e, useMemo as Ie, useId as ln, useInsertionEffect as J0, Children as Lo, isValidElement as Yo, Fragment as An, createElement as Jp, Component as RT, cloneElement as Xp, useReducer as Qp, useSyncExternalStore as NT, createRef as IT, memo as X0, useImperativeHandle as jT, useDebugValue as Q0 } from "react";
|
|
9
|
-
import {
|
|
9
|
+
import { a as LT, b as Uc, g as hn, f as _T, c as FT } from "./useDebounce-QgEEiWs9.js";
|
|
10
10
|
import { g as BT } from "./_commonjsHelpers-C6fGbg64.js";
|
|
11
11
|
import * as sa from "react-dom";
|
|
12
12
|
import Z0, { createPortal as Kc, flushSync as Ii } from "react-dom";
|
|
@@ -17783,35 +17783,38 @@ function rB(t, e) {
|
|
|
17783
17783
|
let iB = zn(rB), oB = Object.assign(iB, {});
|
|
17784
17784
|
function So(t, e, n) {
|
|
17785
17785
|
let r = n.initialDeps ?? [], i;
|
|
17786
|
-
|
|
17787
|
-
var
|
|
17788
|
-
let
|
|
17789
|
-
n.key && ((
|
|
17790
|
-
const
|
|
17791
|
-
if (!(
|
|
17786
|
+
function o() {
|
|
17787
|
+
var s, a, l, c;
|
|
17788
|
+
let u;
|
|
17789
|
+
n.key && ((s = n.debug) != null && s.call(n)) && (u = Date.now());
|
|
17790
|
+
const d = t();
|
|
17791
|
+
if (!(d.length !== r.length || d.some((h, m) => r[m] !== h)))
|
|
17792
17792
|
return i;
|
|
17793
|
-
r =
|
|
17794
|
-
let
|
|
17795
|
-
if (n.key && ((
|
|
17796
|
-
const
|
|
17797
|
-
for (
|
|
17798
|
-
|
|
17799
|
-
return
|
|
17793
|
+
r = d;
|
|
17794
|
+
let p;
|
|
17795
|
+
if (n.key && ((a = n.debug) != null && a.call(n)) && (p = Date.now()), i = e(...d), n.key && ((l = n.debug) != null && l.call(n))) {
|
|
17796
|
+
const h = Math.round((Date.now() - u) * 100) / 100, m = Math.round((Date.now() - p) * 100) / 100, g = m / 16, v = (y, S) => {
|
|
17797
|
+
for (y = String(y); y.length < S; )
|
|
17798
|
+
y = " " + y;
|
|
17799
|
+
return y;
|
|
17800
17800
|
};
|
|
17801
17801
|
console.info(
|
|
17802
|
-
`%c⏱ ${
|
|
17802
|
+
`%c⏱ ${v(m, 5)} /${v(h, 5)} ms`,
|
|
17803
17803
|
`
|
|
17804
17804
|
font-size: .6rem;
|
|
17805
17805
|
font-weight: bold;
|
|
17806
17806
|
color: hsl(${Math.max(
|
|
17807
17807
|
0,
|
|
17808
|
-
Math.min(120 - 120 *
|
|
17808
|
+
Math.min(120 - 120 * g, 120)
|
|
17809
17809
|
)}deg 100% 31%);`,
|
|
17810
17810
|
n == null ? void 0 : n.key
|
|
17811
17811
|
);
|
|
17812
17812
|
}
|
|
17813
|
-
return (
|
|
17814
|
-
}
|
|
17813
|
+
return (c = n == null ? void 0 : n.onChange) == null || c.call(n, i), i;
|
|
17814
|
+
}
|
|
17815
|
+
return o.updateDeps = (s) => {
|
|
17816
|
+
r = s;
|
|
17817
|
+
}, o;
|
|
17815
17818
|
}
|
|
17816
17819
|
function md(t, e) {
|
|
17817
17820
|
if (t === void 0)
|
|
@@ -17959,7 +17962,7 @@ class hB {
|
|
|
17959
17962
|
isScrollingResetDelay: 150,
|
|
17960
17963
|
enabled: !0,
|
|
17961
17964
|
isRtl: !1,
|
|
17962
|
-
useScrollendEvent: !
|
|
17965
|
+
useScrollendEvent: !1,
|
|
17963
17966
|
useAnimationFrameWithResizeObserver: !1,
|
|
17964
17967
|
...n
|
|
17965
17968
|
};
|
|
@@ -18091,7 +18094,7 @@ class hB {
|
|
|
18091
18094
|
() => {
|
|
18092
18095
|
let n = null, r = null;
|
|
18093
18096
|
const i = this.calculateRange();
|
|
18094
|
-
return i && (n = i.startIndex, r = i.endIndex), [
|
|
18097
|
+
return i && (n = i.startIndex, r = i.endIndex), this.maybeNotify.updateDeps([this.isScrolling, n, r]), [
|
|
18095
18098
|
this.options.rangeExtractor,
|
|
18096
18099
|
this.options.overscan,
|
|
18097
18100
|
this.options.count,
|
|
@@ -42230,40 +42233,40 @@ const wT = xT(!1, !0), kT = xT(!0, !0), M9 = Xt.create({
|
|
|
42230
42233
|
export {
|
|
42231
42234
|
PI as A,
|
|
42232
42235
|
AO as B,
|
|
42233
|
-
|
|
42236
|
+
Fh as C,
|
|
42234
42237
|
q_ as D,
|
|
42235
42238
|
IG as H,
|
|
42236
|
-
|
|
42239
|
+
L_ as I,
|
|
42237
42240
|
DF as K,
|
|
42238
42241
|
dx as L,
|
|
42239
42242
|
dd as N,
|
|
42240
42243
|
NG as O,
|
|
42241
|
-
|
|
42244
|
+
dt as P,
|
|
42242
42245
|
TG as R,
|
|
42243
42246
|
w1 as S,
|
|
42244
42247
|
Bt as U,
|
|
42245
42248
|
Ff as V,
|
|
42246
|
-
|
|
42247
|
-
|
|
42249
|
+
po as a,
|
|
42250
|
+
cr as b,
|
|
42248
42251
|
fi as c,
|
|
42249
|
-
|
|
42250
|
-
|
|
42251
|
-
|
|
42252
|
-
|
|
42253
|
-
|
|
42254
|
-
$
|
|
42252
|
+
$h as d,
|
|
42253
|
+
f1 as e,
|
|
42254
|
+
j_ as f,
|
|
42255
|
+
Xe as g,
|
|
42256
|
+
ys as h,
|
|
42257
|
+
$e as i,
|
|
42255
42258
|
P as j,
|
|
42256
|
-
|
|
42257
|
-
|
|
42258
|
-
|
|
42259
|
-
|
|
42260
|
-
|
|
42261
|
-
|
|
42262
|
-
|
|
42263
|
-
|
|
42264
|
-
|
|
42265
|
-
|
|
42259
|
+
Ox as k,
|
|
42260
|
+
OG as l,
|
|
42261
|
+
pa as m,
|
|
42262
|
+
DO as n,
|
|
42263
|
+
$k as o,
|
|
42264
|
+
fu as p,
|
|
42265
|
+
RG as q,
|
|
42266
|
+
jG as r,
|
|
42267
|
+
LG as s,
|
|
42268
|
+
lo as t,
|
|
42266
42269
|
tm as u,
|
|
42267
42270
|
pV as v
|
|
42268
42271
|
};
|
|
42269
|
-
//# sourceMappingURL=index-
|
|
42272
|
+
//# sourceMappingURL=index-mSNqlGXI.js.map
|