@scbt-ecom/ui 0.90.0 → 0.90.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-Bu5RfW_Z.js → index-Cj4n5Vtu.js} +2 -2
- package/dist/{index-Bu5RfW_Z.js.map → index-Cj4n5Vtu.js.map} +1 -1
- package/dist/{index-DM5UjNZl.js → index-ZIlUQVOW.js} +1812 -1861
- package/dist/index-ZIlUQVOW.js.map +1 -0
- package/dist/lib/shared/utils/sessionStorage.d.ts +5 -2
- package/dist/lib/widgets/userFeedback/UserFeedback.d.ts +2 -2
- package/dist/ui.js +3 -3
- package/dist/{utils-BAhmwXLC.js → utils-U4W3nat7.js} +1 -48
- package/dist/{utils-BAhmwXLC.js.map → utils-U4W3nat7.js.map} +1 -1
- package/dist/utils.js +48 -41
- package/dist/utils.js.map +1 -1
- package/dist/validation.js +2 -2
- package/dist/widget.js +3 -5
- package/dist/widget.js.map +1 -1
- package/package.json +3 -2
- package/dist/index-DM5UjNZl.js.map +0 -1
package/dist/utils.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { T as
|
|
3
|
-
import { c as
|
|
4
|
-
import { i as
|
|
5
|
-
import { m as
|
|
1
|
+
import { a as w, c as R, l as D, r as N, s as E } from "./renderImage-ViVSYcgG.js";
|
|
2
|
+
import { T as i } from "./typeGuards-BHbj394R.js";
|
|
3
|
+
import { c as V } from "./typeGuards-BHbj394R.js";
|
|
4
|
+
import { i as a } from "./isClient-C9aZtt2Q.js";
|
|
5
|
+
import { m as A } from "./mergeRefs-Danc3mp8.js";
|
|
6
6
|
const t = [];
|
|
7
7
|
for (let e = 0; e < 256; ++e)
|
|
8
8
|
t.push((e + 256).toString(16).slice(1));
|
|
@@ -10,58 +10,65 @@ function l(e, n = 0) {
|
|
|
10
10
|
return (t[e[n + 0]] + t[e[n + 1]] + t[e[n + 2]] + t[e[n + 3]] + "-" + t[e[n + 4]] + t[e[n + 5]] + "-" + t[e[n + 6]] + t[e[n + 7]] + "-" + t[e[n + 8]] + t[e[n + 9]] + "-" + t[e[n + 10]] + t[e[n + 11]] + t[e[n + 12]] + t[e[n + 13]] + t[e[n + 14]] + t[e[n + 15]]).toLowerCase();
|
|
11
11
|
}
|
|
12
12
|
let o;
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const m = new Uint8Array(16);
|
|
14
|
+
function d() {
|
|
15
15
|
if (!o) {
|
|
16
16
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
17
17
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
18
18
|
o = crypto.getRandomValues.bind(crypto);
|
|
19
19
|
}
|
|
20
|
-
return o(
|
|
20
|
+
return o(m);
|
|
21
21
|
}
|
|
22
|
-
const g = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
22
|
+
const g = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), u = { randomUUID: g };
|
|
23
23
|
function y(e, n, s) {
|
|
24
24
|
var c;
|
|
25
|
-
if (
|
|
26
|
-
return
|
|
25
|
+
if (u.randomUUID && !e)
|
|
26
|
+
return u.randomUUID();
|
|
27
27
|
e = e || {};
|
|
28
|
-
const r = e.random ?? ((c = e.rng) == null ? void 0 : c.call(e)) ??
|
|
28
|
+
const r = e.random ?? ((c = e.rng) == null ? void 0 : c.call(e)) ?? d();
|
|
29
29
|
if (r.length < 16)
|
|
30
30
|
throw new Error("Random bytes length must be >= 16");
|
|
31
31
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, l(r);
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const h = () => y(), I = (e, n) => {
|
|
34
34
|
console.error(n ?? "process all the cases");
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
}, S = {
|
|
36
|
+
setItem: (e, n) => {
|
|
37
|
+
if (!a)
|
|
38
|
+
return console.warn("Session storage can be used only in client side");
|
|
39
|
+
if (i.isNil(n)) return;
|
|
40
|
+
const s = JSON.stringify(n);
|
|
41
|
+
sessionStorage.setItem(e, s);
|
|
42
|
+
},
|
|
43
|
+
getItem: (e) => {
|
|
44
|
+
if (!a)
|
|
45
|
+
return console.warn("Session storage can be used only in client side"), null;
|
|
46
|
+
const n = sessionStorage.getItem(e);
|
|
47
|
+
if (i.isNull(n)) return null;
|
|
48
|
+
try {
|
|
49
|
+
return JSON.parse(n);
|
|
50
|
+
} catch {
|
|
51
|
+
return n;
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
clearItems: (...e) => {
|
|
55
|
+
e.forEach((n) => {
|
|
56
|
+
sessionStorage.removeItem(n);
|
|
57
|
+
});
|
|
50
58
|
}
|
|
51
59
|
};
|
|
52
60
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
h as setSessionStorage
|
|
61
|
+
i as TypeGuards,
|
|
62
|
+
I as assertUnreachable,
|
|
63
|
+
w as capitalize,
|
|
64
|
+
V as cn,
|
|
65
|
+
R as createPhoneNumber,
|
|
66
|
+
h as getUuid,
|
|
67
|
+
a as isClient,
|
|
68
|
+
D as localStorageActions,
|
|
69
|
+
A as mergeRefs,
|
|
70
|
+
N as renderImage,
|
|
71
|
+
E as scrollToElement,
|
|
72
|
+
S as sessionStorageActions
|
|
66
73
|
};
|
|
67
74
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../node_modules/uuid/dist/esm-browser/stringify.js","../node_modules/uuid/dist/esm-browser/rng.js","../node_modules/uuid/dist/esm-browser/native.js","../node_modules/uuid/dist/esm-browser/v4.js","../lib/shared/utils/uuid.ts","../lib/shared/utils/assertUnreachable.ts","../lib/shared/utils/sessionStorage.ts"],"sourcesContent":["import validate from './validate.js';\nconst byteToHex = [];\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n return (byteToHex[arr[offset + 0]] +\n byteToHex[arr[offset + 1]] +\n byteToHex[arr[offset + 2]] +\n byteToHex[arr[offset + 3]] +\n '-' +\n byteToHex[arr[offset + 4]] +\n byteToHex[arr[offset + 5]] +\n '-' +\n byteToHex[arr[offset + 6]] +\n byteToHex[arr[offset + 7]] +\n '-' +\n byteToHex[arr[offset + 8]] +\n byteToHex[arr[offset + 9]] +\n '-' +\n byteToHex[arr[offset + 10]] +\n byteToHex[arr[offset + 11]] +\n byteToHex[arr[offset + 12]] +\n byteToHex[arr[offset + 13]] +\n byteToHex[arr[offset + 14]] +\n byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset);\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;\n","let getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n if (!getRandomValues) {\n if (typeof crypto === 'undefined' || !crypto.getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n getRandomValues = crypto.getRandomValues.bind(crypto);\n }\n return getRandomValues(rnds8);\n}\n","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default { randomUUID };\n","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n const rnds = options.random ?? options.rng?.() ?? rng();\n if (rnds.length < 16) {\n throw new Error('Random bytes length must be >= 16');\n }\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n if (buf) {\n offset = offset || 0;\n if (offset < 0 || offset + 16 > buf.length) {\n throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);\n }\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;\n","import { v4 as uuid } from 'uuid'\n\nexport const getUuid = () => uuid()\n","// @ts-expect-error - x\nexport const assertUnreachable = (x: never, msg?: string): never => {\n console.error(msg ?? 'process all the cases')\n}\n","import { TypeGuards } from './typeGuards'\nimport { isClient } from '$/shared/utils/isClient'\n\nexport const
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../node_modules/uuid/dist/esm-browser/stringify.js","../node_modules/uuid/dist/esm-browser/rng.js","../node_modules/uuid/dist/esm-browser/native.js","../node_modules/uuid/dist/esm-browser/v4.js","../lib/shared/utils/uuid.ts","../lib/shared/utils/assertUnreachable.ts","../lib/shared/utils/sessionStorage.ts"],"sourcesContent":["import validate from './validate.js';\nconst byteToHex = [];\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n return (byteToHex[arr[offset + 0]] +\n byteToHex[arr[offset + 1]] +\n byteToHex[arr[offset + 2]] +\n byteToHex[arr[offset + 3]] +\n '-' +\n byteToHex[arr[offset + 4]] +\n byteToHex[arr[offset + 5]] +\n '-' +\n byteToHex[arr[offset + 6]] +\n byteToHex[arr[offset + 7]] +\n '-' +\n byteToHex[arr[offset + 8]] +\n byteToHex[arr[offset + 9]] +\n '-' +\n byteToHex[arr[offset + 10]] +\n byteToHex[arr[offset + 11]] +\n byteToHex[arr[offset + 12]] +\n byteToHex[arr[offset + 13]] +\n byteToHex[arr[offset + 14]] +\n byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset);\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;\n","let getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n if (!getRandomValues) {\n if (typeof crypto === 'undefined' || !crypto.getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n getRandomValues = crypto.getRandomValues.bind(crypto);\n }\n return getRandomValues(rnds8);\n}\n","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default { randomUUID };\n","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n const rnds = options.random ?? options.rng?.() ?? rng();\n if (rnds.length < 16) {\n throw new Error('Random bytes length must be >= 16');\n }\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n if (buf) {\n offset = offset || 0;\n if (offset < 0 || offset + 16 > buf.length) {\n throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);\n }\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;\n","import { v4 as uuid } from 'uuid'\n\nexport const getUuid = () => uuid()\n","// @ts-expect-error - x\nexport const assertUnreachable = (x: never, msg?: string): never => {\n console.error(msg ?? 'process all the cases')\n}\n","import { TypeGuards } from './typeGuards'\nimport { isClient } from '$/shared/utils/isClient'\n\nexport const sessionStorageActions = {\n setItem: <T>(key: string, value: T): void => {\n if (!isClient) {\n return console.warn('Session storage can be used only in client side')\n }\n\n if (TypeGuards.isNil(value)) return\n\n const payload = JSON.stringify(value)\n\n sessionStorage.setItem(key, payload)\n },\n getItem: <T>(key: string): T | null => {\n if (!isClient) {\n console.warn('Session storage can be used only in client side')\n return null\n }\n\n const item = sessionStorage.getItem(key)\n\n if (TypeGuards.isNull(item)) return null\n\n try {\n return JSON.parse(item) as T\n } catch {\n return item as T\n }\n },\n clearItems: (...keys: string[]): void => {\n keys.forEach((key) => {\n sessionStorage.removeItem(key)\n })\n }\n}\n"],"names":["byteToHex","i","unsafeStringify","arr","offset","getRandomValues","rnds8","rng","randomUUID","native","v4","options","buf","rnds","_a","getUuid","uuid","assertUnreachable","x","msg","sessionStorageActions","key","value","isClient","TypeGuards","payload","item","keys"],"mappings":"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","x_google_ignoreList":[0,1,2,3]}
|
package/dist/validation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as l, b as y, a as F, z as R } from "./index-
|
|
2
|
-
import { s as i, Z as a, p as u, i as r, c as I } from "./utils-
|
|
1
|
+
import { Z as l, b as y, a as F, z as R } from "./index-Cj4n5Vtu.js";
|
|
2
|
+
import { s as i, Z as a, p as u, i as r, c as I } from "./utils-U4W3nat7.js";
|
|
3
3
|
const E = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, m = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, _ = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, t = {
|
|
4
4
|
REQUIRED: "Поле обязательно к заполнению",
|
|
5
5
|
MIN_LENGTH: "Минимальная длина символов должна быть не менее",
|
package/dist/widget.js
CHANGED
|
@@ -14,15 +14,15 @@ var yt = (e, t, r, n) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import { j as o } from "./mergeRefs-Danc3mp8.js";
|
|
17
|
-
import { Y as ve, Z as Ne, _ as Le, $ as T, a0 as Ut, a1 as Qe, a2 as $e, a3 as qt, a4 as W, a5 as Ve, a6 as We, a7 as Ae, a8 as Ue, a9 as Kt, aa as Zt, ab as qe, ac as Yt, ad as Xt, ae as Ke, B as pt, c as D, R as F, n as Ce, F as Ze, E as R, i as c, Q as ft, r as Ye, t as Xe, p as Ct, L as Je, o as Rt, A as at, U as Dt, af as Ge, q as se, W as St, z as tr, ag as zt, ah as er, M as rr } from "./index-
|
|
17
|
+
import { Y as ve, Z as Ne, _ as Le, $ as T, a0 as Ut, a1 as Qe, a2 as $e, a3 as qt, a4 as W, a5 as Ve, a6 as We, a7 as Ae, a8 as Ue, a9 as Kt, aa as Zt, ab as qe, ac as Yt, ad as Xt, ae as Ke, B as pt, c as D, R as F, n as Ce, F as Ze, E as R, i as c, Q as ft, r as Ye, t as Xe, p as Ct, L as Je, o as Rt, A as at, U as Dt, af as Ge, q as se, W as St, z as tr, ag as zt, ah as er, M as rr } from "./index-ZIlUQVOW.js";
|
|
18
18
|
import { c as a, T as _ } from "./typeGuards-BHbj394R.js";
|
|
19
19
|
import * as mt from "react";
|
|
20
20
|
import { lazy as B, useCallback as Se, useState as O, memo as ct, useMemo as gt, createElement as It, useRef as Ht, useReducer as nr, forwardRef as or, useEffect as vt } from "react";
|
|
21
21
|
import { i as Jt } from "./isClient-C9aZtt2Q.js";
|
|
22
22
|
import { s as ir, c as Mt, r as it, a as dr, l as ar } from "./renderImage-ViVSYcgG.js";
|
|
23
23
|
import { u as lt, b as _t, a as lr, g as Ot, F as ur } from "./useDebounce-5MeprqTX.js";
|
|
24
|
-
import { z as Lt, Z as Tt } from "./index-
|
|
25
|
-
import { au as Qt } from "./utils-
|
|
24
|
+
import { z as Lt, Z as Tt } from "./index-Cj4n5Vtu.js";
|
|
25
|
+
import { au as Qt } from "./utils-U4W3nat7.js";
|
|
26
26
|
import { b as mr, u as xr, a as hr } from "./useFieldsProgress-C918amw-.js";
|
|
27
27
|
import { createPortal as Ie } from "react-dom";
|
|
28
28
|
var Q, je, pr = (je = class extends ve {
|
|
@@ -2030,7 +2030,6 @@ class Ln {
|
|
|
2030
2030
|
traverse(t, r = "string", n) {
|
|
2031
2031
|
const { includeSolidText: i, recursive: d, element: l } = this.options || {};
|
|
2032
2032
|
switch (t.nodeType) {
|
|
2033
|
-
// если узел - элемент
|
|
2034
2033
|
case this.ELEMENT_NODE:
|
|
2035
2034
|
const u = t, x = u.tagName.toLowerCase();
|
|
2036
2035
|
if (x === "script") {
|
|
@@ -2049,7 +2048,6 @@ class Ln {
|
|
|
2049
2048
|
for (const m of t.childNodes)
|
|
2050
2049
|
this.traverse(m, r, n);
|
|
2051
2050
|
break;
|
|
2052
|
-
// если узел - текстовый и требуется его добавить, добавляем
|
|
2053
2051
|
case this.TEXT_NODE:
|
|
2054
2052
|
if (!i)
|
|
2055
2053
|
break;
|