@instockng/storefront-ui 1.0.0 → 1.0.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/index101.mjs +1 -1
- package/dist/index102.mjs +3 -3
- package/dist/index103.mjs +3 -3
- package/dist/index111.mjs +1 -1
- package/dist/index43.mjs +17 -17
- package/dist/index44.mjs +2 -2
- package/dist/index62.mjs +231 -30
- package/dist/index63.mjs +5 -42
- package/dist/index64.mjs +127 -228
- package/dist/index65.mjs +66 -4
- package/dist/index66.mjs +77 -124
- package/dist/index67.mjs +26 -65
- package/dist/index68.mjs +6 -84
- package/dist/index69.mjs +72 -26
- package/dist/index70.mjs +3 -8
- package/dist/index71.mjs +2 -75
- package/dist/index72.mjs +82 -3
- package/dist/index73.mjs +54 -2
- package/dist/index74.mjs +5 -82
- package/dist/index75.mjs +4 -53
- package/dist/index76.mjs +178 -5
- package/dist/index77.mjs +53 -5
- package/dist/index78.mjs +68 -178
- package/dist/index79.mjs +31 -50
- package/dist/index80.mjs +43 -69
- package/dist/index81.mjs +1 -1
- package/dist/index82.mjs +1 -1
- package/dist/index83.mjs +5 -5
- package/dist/index85.mjs +2 -2
- package/dist/index87.mjs +2 -2
- package/dist/index89.mjs +1 -1
- package/dist/index91.mjs +4 -4
- package/dist/index92.mjs +3 -3
- package/dist/index95.mjs +1 -1
- package/dist/index96.mjs +3 -3
- package/dist/index99.mjs +1 -1
- package/package.json +3 -3
package/dist/index80.mjs
CHANGED
|
@@ -1,71 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
PayloadTooLarge: 413,
|
|
39
|
-
UriTooLong: 414,
|
|
40
|
-
UnsupportedMediaType: 415,
|
|
41
|
-
RangeNotSatisfiable: 416,
|
|
42
|
-
ExpectationFailed: 417,
|
|
43
|
-
ImATeapot: 418,
|
|
44
|
-
MisdirectedRequest: 421,
|
|
45
|
-
UnprocessableEntity: 422,
|
|
46
|
-
Locked: 423,
|
|
47
|
-
FailedDependency: 424,
|
|
48
|
-
TooEarly: 425,
|
|
49
|
-
UpgradeRequired: 426,
|
|
50
|
-
PreconditionRequired: 428,
|
|
51
|
-
TooManyRequests: 429,
|
|
52
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
53
|
-
UnavailableForLegalReasons: 451,
|
|
54
|
-
InternalServerError: 500,
|
|
55
|
-
NotImplemented: 501,
|
|
56
|
-
BadGateway: 502,
|
|
57
|
-
ServiceUnavailable: 503,
|
|
58
|
-
GatewayTimeout: 504,
|
|
59
|
-
HttpVersionNotSupported: 505,
|
|
60
|
-
VariantAlsoNegotiates: 506,
|
|
61
|
-
InsufficientStorage: 507,
|
|
62
|
-
LoopDetected: 508,
|
|
63
|
-
NotExtended: 510,
|
|
64
|
-
NetworkAuthenticationRequired: 511
|
|
65
|
-
};
|
|
66
|
-
Object.entries(e).forEach(([t, o]) => {
|
|
67
|
-
e[o] = t;
|
|
68
|
-
});
|
|
1
|
+
var s = (e, r) => (e = e.replace(/\/+$/, ""), e = e + "/", r = r.replace(/^\/+/, ""), e + r), p = (e, r) => {
|
|
2
|
+
for (const [n, t] of Object.entries(r)) {
|
|
3
|
+
const c = new RegExp("/:" + n + "(?:{[^/]+})?\\??");
|
|
4
|
+
e = e.replace(c, t ? `/${t}` : "");
|
|
5
|
+
}
|
|
6
|
+
return e;
|
|
7
|
+
}, f = (e) => {
|
|
8
|
+
const r = new URLSearchParams();
|
|
9
|
+
for (const [n, t] of Object.entries(e))
|
|
10
|
+
if (t !== void 0)
|
|
11
|
+
if (Array.isArray(t))
|
|
12
|
+
for (const c of t)
|
|
13
|
+
r.append(n, c);
|
|
14
|
+
else
|
|
15
|
+
r.set(n, t);
|
|
16
|
+
return r;
|
|
17
|
+
}, i = (e, r) => {
|
|
18
|
+
switch (r) {
|
|
19
|
+
case "ws":
|
|
20
|
+
return e.replace(/^http/, "ws");
|
|
21
|
+
case "http":
|
|
22
|
+
return e.replace(/^ws/, "http");
|
|
23
|
+
}
|
|
24
|
+
}, l = (e) => /^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e) ? e.replace(/\/index(?=\?|$)/, "/") : e.replace(/\/index(?=\?|$)/, "");
|
|
25
|
+
function a(e) {
|
|
26
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
27
|
+
}
|
|
28
|
+
function o(e, r) {
|
|
29
|
+
if (!a(e) && !a(r))
|
|
30
|
+
return r;
|
|
31
|
+
const n = { ...e };
|
|
32
|
+
for (const t in r) {
|
|
33
|
+
const c = r[t];
|
|
34
|
+
a(n[t]) && a(c) ? n[t] = o(n[t], c) : n[t] = c;
|
|
35
|
+
}
|
|
36
|
+
return n;
|
|
37
|
+
}
|
|
69
38
|
export {
|
|
70
|
-
|
|
39
|
+
f as buildSearchParams,
|
|
40
|
+
o as deepMerge,
|
|
41
|
+
s as mergePath,
|
|
42
|
+
l as removeIndexString,
|
|
43
|
+
p as replaceUrlParam,
|
|
44
|
+
i as replaceUrlProtocol
|
|
71
45
|
};
|
package/dist/index81.mjs
CHANGED
package/dist/index82.mjs
CHANGED
package/dist/index83.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import r from "./index96.mjs";
|
|
2
|
-
import p from "./
|
|
3
|
-
import l from "./
|
|
4
|
-
import m from "./
|
|
5
|
-
import a from "./
|
|
6
|
-
import o from "./
|
|
2
|
+
import p from "./index70.mjs";
|
|
3
|
+
import l from "./index66.mjs";
|
|
4
|
+
import m from "./index68.mjs";
|
|
5
|
+
import a from "./index76.mjs";
|
|
6
|
+
import o from "./index77.mjs";
|
|
7
7
|
function d(e) {
|
|
8
8
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
9
9
|
throw new m(null, e);
|
package/dist/index85.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VERSION as w } from "./
|
|
2
|
-
import s from "./
|
|
1
|
+
import { VERSION as w } from "./index71.mjs";
|
|
2
|
+
import s from "./index73.mjs";
|
|
3
3
|
const l = {};
|
|
4
4
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
|
|
5
5
|
l[n] = function(o) {
|
package/dist/index87.mjs
CHANGED
package/dist/index89.mjs
CHANGED
package/dist/index91.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import H from "./
|
|
1
|
+
import H from "./index62.mjs";
|
|
2
2
|
import D from "./index99.mjs";
|
|
3
3
|
import L from "./index86.mjs";
|
|
4
|
-
import n from "./
|
|
5
|
-
import y from "./
|
|
4
|
+
import n from "./index73.mjs";
|
|
5
|
+
import y from "./index68.mjs";
|
|
6
6
|
import O from "./index100.mjs";
|
|
7
7
|
import U from "./index88.mjs";
|
|
8
|
-
import q from "./
|
|
8
|
+
import q from "./index76.mjs";
|
|
9
9
|
import { progressEventReducer as A } from "./index101.mjs";
|
|
10
10
|
import v from "./index102.mjs";
|
|
11
11
|
const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
|
package/dist/index92.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import K from "./index88.mjs";
|
|
2
|
-
import t from "./
|
|
3
|
-
import b from "./
|
|
2
|
+
import t from "./index62.mjs";
|
|
3
|
+
import b from "./index73.mjs";
|
|
4
4
|
import ee from "./index103.mjs";
|
|
5
5
|
import { trackStream as z } from "./index104.mjs";
|
|
6
|
-
import te from "./
|
|
6
|
+
import te from "./index76.mjs";
|
|
7
7
|
import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./index101.mjs";
|
|
8
8
|
import se from "./index102.mjs";
|
|
9
9
|
import re from "./index99.mjs";
|
package/dist/index95.mjs
CHANGED
package/dist/index96.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import i from "./
|
|
2
|
-
import m from "./
|
|
3
|
-
import s from "./
|
|
1
|
+
import i from "./index62.mjs";
|
|
2
|
+
import m from "./index66.mjs";
|
|
3
|
+
import s from "./index76.mjs";
|
|
4
4
|
function h(f, t) {
|
|
5
5
|
const o = this || m, r = t || o, n = s.from(r.headers);
|
|
6
6
|
let a = r.data;
|
package/dist/index99.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instockng/storefront-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Pre-built UI components for OMS e-commerce sites",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@types/react-dom": "npm:types-react-dom@^19.0.0-rc.1",
|
|
64
64
|
"@vitejs/plugin-react": "^4.7.0",
|
|
65
65
|
"autoprefixer": "^10.4.21",
|
|
66
|
-
"lucide-react": "^0.
|
|
66
|
+
"lucide-react": "^0.536.0",
|
|
67
67
|
"msw": "^2.11.5",
|
|
68
68
|
"msw-storybook-addon": "^2.0.6",
|
|
69
69
|
"postcss": "^8.5.6",
|
|
@@ -74,4 +74,4 @@
|
|
|
74
74
|
"typescript": "^5.3.3",
|
|
75
75
|
"vite": "^5.4.20"
|
|
76
76
|
}
|
|
77
|
-
}
|
|
77
|
+
}
|