@instockng/storefront-ui 1.0.108 → 1.0.109
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/components/ProductAssistantChips.d.ts +9 -8
- package/dist/components/ProductAssistantChips.d.ts.map +1 -1
- package/dist/index100.mjs +27 -52
- package/dist/index101.mjs +8 -5
- package/dist/index102.mjs +74 -4
- package/dist/index103.mjs +3 -178
- package/dist/index104.mjs +2 -53
- package/dist/index105.mjs +82 -68
- package/dist/index106.mjs +54 -2
- package/dist/index107.mjs +5 -5
- package/dist/index108.mjs +4 -1133
- package/dist/index109.mjs +177 -18
- package/dist/index110.mjs +50 -52
- package/dist/index111.mjs +69 -33
- package/dist/index112.mjs +2 -2
- package/dist/index113.mjs +28 -2
- package/dist/index114.mjs +18 -2
- package/dist/index115.mjs +213 -26
- package/dist/index116.mjs +175 -13
- package/dist/index117.mjs +17 -210
- package/dist/index118.mjs +17 -174
- package/dist/index119.mjs +25 -14
- package/dist/index120.mjs +150 -17
- package/dist/index121.mjs +13 -26
- package/dist/index122.mjs +24 -149
- package/dist/index123.mjs +77 -13
- package/dist/index124.mjs +27 -20
- package/dist/index125.mjs +137 -76
- package/dist/index126.mjs +50 -33
- package/dist/index127.mjs +19 -141
- package/dist/index128.mjs +22 -50
- package/dist/index129.mjs +14 -14
- package/dist/index130.mjs +18 -20
- package/dist/index131.mjs +14 -16
- package/dist/index132.mjs +14 -17
- package/dist/index133.mjs +12 -12
- package/dist/index134.mjs +58 -15
- package/dist/index135.mjs +11 -14
- package/dist/index136.mjs +30 -56
- package/dist/index137.mjs +15 -9
- package/dist/index138.mjs +26 -31
- package/dist/index139.mjs +16 -13
- package/dist/index140.mjs +11 -26
- package/dist/index141.mjs +12 -18
- package/dist/index142.mjs +40 -12
- package/dist/index143.mjs +16 -14
- package/dist/index144.mjs +263 -42
- package/dist/index145.mjs +62 -15
- package/dist/index146.mjs +7 -267
- package/dist/index147.mjs +2 -70
- package/dist/index148.mjs +2 -8
- package/dist/index149.mjs +33 -2
- package/dist/index150.mjs +2 -2
- package/dist/index151.mjs +37 -33
- package/dist/index152.mjs +43 -2
- package/dist/index153.mjs +2 -21
- package/dist/index154.mjs +19 -54
- package/dist/index155.mjs +55 -28
- package/dist/index156.mjs +28 -6
- package/dist/index157.mjs +6 -51
- package/dist/index158.mjs +51 -5
- package/dist/index159.mjs +6 -12
- package/dist/index160.mjs +12 -7
- package/dist/index161.mjs +6 -27
- package/dist/index162.mjs +28 -2
- package/dist/index163.mjs +2 -70
- package/dist/index164.mjs +67 -164
- package/dist/index165.mjs +167 -2
- package/dist/index169.mjs +1 -1
- package/dist/index170.mjs +1 -1
- package/dist/index171.mjs +1 -1
- package/dist/index172.mjs +1 -1
- package/dist/index173.mjs +1 -1
- package/dist/index175.mjs +3 -3
- package/dist/index176.mjs +1 -1
- package/dist/index178.mjs +3 -3
- package/dist/index179.mjs +1 -1
- package/dist/index184.mjs +2 -2
- package/dist/index186.mjs +1 -1
- package/dist/index188.mjs +2 -2
- package/dist/index189.mjs +5 -5
- package/dist/index192.mjs +1 -1
- package/dist/index195.mjs +1 -1
- package/dist/index198.mjs +3 -3
- package/dist/index199.mjs +1 -1
- package/dist/index203.mjs +2 -2
- package/dist/index205.mjs +2 -2
- package/dist/index209.mjs +1 -1
- package/dist/index211.mjs +2 -2
- package/dist/index22.mjs +1 -1
- package/dist/index220.mjs +2 -2
- package/dist/index224.mjs +2 -31
- package/dist/index225.mjs +107 -10
- package/dist/index226.mjs +2 -4
- package/dist/index227.mjs +2 -4
- package/dist/index228.mjs +2 -13
- package/dist/index229.mjs +2 -7
- package/dist/index23.mjs +13 -12
- package/dist/index230.mjs +2 -12
- package/dist/index231.mjs +2 -5
- package/dist/index232.mjs +2 -33
- package/dist/index233.mjs +2 -31
- package/dist/index234.mjs +2 -28
- package/dist/index235.mjs +34 -58
- package/dist/index236.mjs +2 -2
- package/dist/index237.mjs +233 -97
- package/dist/index238.mjs +2 -2
- package/dist/index239.mjs +33 -2
- package/dist/index240.mjs +65 -2
- package/dist/index241.mjs +25 -2
- package/dist/index243.mjs +2 -2
- package/dist/index245.mjs +2 -2
- package/dist/index246.mjs +2 -2
- package/dist/index247.mjs +2 -37
- package/dist/index248.mjs +2 -2
- package/dist/index249.mjs +2 -2
- package/dist/index250.mjs +2 -244
- package/dist/index251.mjs +13 -2
- package/dist/index252.mjs +7 -33
- package/dist/index253.mjs +30 -64
- package/dist/index254.mjs +10 -24
- package/dist/index255.mjs +4 -2
- package/dist/index256.mjs +4 -2
- package/dist/index257.mjs +2 -2
- package/dist/index258.mjs +4 -2
- package/dist/index259.mjs +12 -2
- package/dist/index260.mjs +5 -2
- package/dist/index261.mjs +33 -2
- package/dist/index262.mjs +31 -2
- package/dist/index263.mjs +28 -2
- package/dist/index264.mjs +61 -4
- package/dist/index267.mjs +2 -3
- package/dist/index268.mjs +2 -2
- package/dist/index269.mjs +18 -2
- package/dist/index270.mjs +46 -16
- package/dist/index271.mjs +2 -13
- package/dist/index272.mjs +2 -6
- package/dist/index273.mjs +2 -30
- package/dist/index275.mjs +91 -2
- package/dist/index276.mjs +2 -18
- package/dist/index277.mjs +3 -47
- package/dist/index278.mjs +2 -2
- package/dist/index279.mjs +2 -2
- package/dist/index280.mjs +17 -2
- package/dist/index281.mjs +13 -2
- package/dist/index282.mjs +6 -91
- package/dist/index283.mjs +30 -2
- package/dist/index43.mjs +1 -1
- package/dist/index44.mjs +1 -1
- package/dist/index45.mjs +1 -1
- package/dist/index46.mjs +1 -1
- package/dist/index47.mjs +1 -1
- package/dist/index48.mjs +2 -2
- package/dist/index50.mjs +1 -1
- package/dist/index54.mjs +3 -3
- package/dist/index58.mjs +1 -1
- package/dist/index63.mjs +17 -17
- package/dist/index64.mjs +2 -2
- package/dist/index65.mjs +1 -1
- package/dist/index66.mjs +1 -1
- package/dist/index67.mjs +1 -1
- package/dist/index68.mjs +1 -1
- package/dist/index69.mjs +1 -1
- package/dist/index70.mjs +1 -1
- package/dist/index71.mjs +1 -1
- package/dist/index72.mjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index74.mjs +1 -1
- package/dist/index75.mjs +1 -1
- package/dist/index76.mjs +1 -1
- package/dist/index77.mjs +1 -1
- package/dist/index78.mjs +1 -1
- package/dist/index79.mjs +23 -4
- package/dist/index80.mjs +2 -24
- package/dist/index81.mjs +23 -2
- package/dist/index82.mjs +7 -7
- package/dist/index83.mjs +73 -21
- package/dist/index84.mjs +14 -74
- package/dist/index85.mjs +62 -14
- package/dist/index86.mjs +4 -62
- package/dist/index87.mjs +2 -37
- package/dist/index88.mjs +5 -42
- package/dist/index89.mjs +1129 -230
- package/dist/index90.mjs +19 -5
- package/dist/index91.mjs +48 -127
- package/dist/index92.mjs +32 -67
- package/dist/index93.mjs +2 -87
- package/dist/index94.mjs +2 -29
- package/dist/index95.mjs +235 -9
- package/dist/index96.mjs +5 -74
- package/dist/index97.mjs +133 -3
- package/dist/index98.mjs +68 -2
- package/dist/index99.mjs +83 -79
- package/package.json +2 -2
- package/src/components/AssistantDrawer.stories.tsx +20 -41
- package/src/components/AssistantDrawer.tsx +1 -1
- package/src/components/ProductAssistantChips.stories.tsx +11 -6
- package/src/components/ProductAssistantChips.tsx +13 -8
package/dist/index86.mjs
CHANGED
|
@@ -1,66 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return g(m(n), n);
|
|
6
|
-
};
|
|
7
|
-
v.exports.array = g;
|
|
8
|
-
function g(n, r) {
|
|
9
|
-
var t = n.length, e = new Array(t), o = {}, u = t, c = y(r), f = E(n);
|
|
10
|
-
for (r.forEach(function(a) {
|
|
11
|
-
if (!f.has(a[0]) || !f.has(a[1]))
|
|
12
|
-
throw new Error("Unknown node. There is an unknown node in the supplied edges.");
|
|
13
|
-
}); u--; )
|
|
14
|
-
o[u] || l(n[u], u, /* @__PURE__ */ new Set());
|
|
15
|
-
return e;
|
|
16
|
-
function l(a, s, i) {
|
|
17
|
-
if (i.has(a)) {
|
|
18
|
-
var w;
|
|
19
|
-
try {
|
|
20
|
-
w = ", node was:" + JSON.stringify(a);
|
|
21
|
-
} catch {
|
|
22
|
-
w = "";
|
|
23
|
-
}
|
|
24
|
-
throw new Error("Cyclic dependency" + w);
|
|
25
|
-
}
|
|
26
|
-
if (!f.has(a))
|
|
27
|
-
throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(a));
|
|
28
|
-
if (!o[s]) {
|
|
29
|
-
o[s] = !0;
|
|
30
|
-
var h = c.get(a) || /* @__PURE__ */ new Set();
|
|
31
|
-
if (h = Array.from(h), s = h.length) {
|
|
32
|
-
i.add(a);
|
|
33
|
-
do {
|
|
34
|
-
var p = h[--s];
|
|
35
|
-
l(p, f.get(p), i);
|
|
36
|
-
} while (s);
|
|
37
|
-
i.delete(a);
|
|
38
|
-
}
|
|
39
|
-
e[--t] = a;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function m(n) {
|
|
44
|
-
for (var r = /* @__PURE__ */ new Set(), t = 0, e = n.length; t < e; t++) {
|
|
45
|
-
var o = n[t];
|
|
46
|
-
r.add(o[0]), r.add(o[1]);
|
|
47
|
-
}
|
|
48
|
-
return Array.from(r);
|
|
49
|
-
}
|
|
50
|
-
function y(n) {
|
|
51
|
-
for (var r = /* @__PURE__ */ new Map(), t = 0, e = n.length; t < e; t++) {
|
|
52
|
-
var o = n[t];
|
|
53
|
-
r.has(o[0]) || r.set(o[0], /* @__PURE__ */ new Set()), r.has(o[1]) || r.set(o[1], /* @__PURE__ */ new Set()), r.get(o[0]).add(o[1]);
|
|
54
|
-
}
|
|
55
|
-
return r;
|
|
56
|
-
}
|
|
57
|
-
function E(n) {
|
|
58
|
-
for (var r = /* @__PURE__ */ new Map(), t = 0, e = n.length; t < e; t++)
|
|
59
|
-
r.set(n[t], t);
|
|
60
|
-
return r;
|
|
2
|
+
import { useQuery as e } from "@tanstack/react-query";
|
|
3
|
+
function n(r) {
|
|
4
|
+
return e(r);
|
|
61
5
|
}
|
|
62
|
-
var k = v.exports;
|
|
63
|
-
const A = /* @__PURE__ */ d(k);
|
|
64
6
|
export {
|
|
65
|
-
|
|
7
|
+
n as useQueryUnwrapped
|
|
66
8
|
};
|
package/dist/index87.mjs
CHANGED
|
@@ -1,40 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
var
|
|
3
|
-
let r = `${i}=${t}`;
|
|
4
|
-
if (i.startsWith("__Secure-") && !e.secure)
|
|
5
|
-
throw new Error("__Secure- Cookie must have Secure attributes");
|
|
6
|
-
if (i.startsWith("__Host-")) {
|
|
7
|
-
if (!e.secure)
|
|
8
|
-
throw new Error("__Host- Cookie must have Secure attributes");
|
|
9
|
-
if (e.path !== "/")
|
|
10
|
-
throw new Error('__Host- Cookie must have Path attributes with "/"');
|
|
11
|
-
if (e.domain)
|
|
12
|
-
throw new Error("__Host- Cookie must not have Domain attributes");
|
|
13
|
-
}
|
|
14
|
-
for (const a of ["domain", "path"])
|
|
15
|
-
if (e[a] && /[;\r\n]/.test(e[a]))
|
|
16
|
-
throw new Error(`${a} must not contain ";", "\\r", or "\\n"`);
|
|
17
|
-
if (e && typeof e.maxAge == "number" && e.maxAge >= 0) {
|
|
18
|
-
if (e.maxAge > 3456e4)
|
|
19
|
-
throw new Error(
|
|
20
|
-
"Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration."
|
|
21
|
-
);
|
|
22
|
-
r += `; Max-Age=${e.maxAge | 0}`;
|
|
23
|
-
}
|
|
24
|
-
if (e.domain && e.prefix !== "host" && (r += `; Domain=${e.domain}`), e.path && (r += `; Path=${e.path}`), e.expires) {
|
|
25
|
-
if (e.expires.getTime() - Date.now() > 3456e7)
|
|
26
|
-
throw new Error(
|
|
27
|
-
"Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future."
|
|
28
|
-
);
|
|
29
|
-
r += `; Expires=${e.expires.toUTCString()}`;
|
|
30
|
-
}
|
|
31
|
-
if (e.httpOnly && (r += "; HttpOnly"), e.secure && (r += "; Secure"), e.sameSite && (r += `; SameSite=${e.sameSite.charAt(0).toUpperCase() + e.sameSite.slice(1)}`), e.priority && (r += `; Priority=${e.priority.charAt(0).toUpperCase() + e.priority.slice(1)}`), e.partitioned) {
|
|
32
|
-
if (!e.secure)
|
|
33
|
-
throw new Error("Partitioned Cookie must have Secure attributes");
|
|
34
|
-
r += "; Partitioned";
|
|
35
|
-
}
|
|
36
|
-
return r;
|
|
37
|
-
}, o = (i, t, e) => (t = encodeURIComponent(t), s(i, t, e));
|
|
2
|
+
var r = { exports: {} };
|
|
38
3
|
export {
|
|
39
|
-
|
|
4
|
+
r as __module
|
|
40
5
|
};
|
package/dist/index88.mjs
CHANGED
|
@@ -1,46 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
e = e.replace(c, t ? `/${t}` : "");
|
|
6
|
-
}
|
|
7
|
-
return e;
|
|
8
|
-
}, f = (e) => {
|
|
9
|
-
const r = new URLSearchParams();
|
|
10
|
-
for (const [n, t] of Object.entries(e))
|
|
11
|
-
if (t !== void 0)
|
|
12
|
-
if (Array.isArray(t))
|
|
13
|
-
for (const c of t)
|
|
14
|
-
r.append(n, c);
|
|
15
|
-
else
|
|
16
|
-
r.set(n, t);
|
|
17
|
-
return r;
|
|
18
|
-
}, i = (e, r) => {
|
|
19
|
-
switch (r) {
|
|
20
|
-
case "ws":
|
|
21
|
-
return e.replace(/^http/, "ws");
|
|
22
|
-
case "http":
|
|
23
|
-
return e.replace(/^ws/, "http");
|
|
24
|
-
}
|
|
25
|
-
}, l = (e) => /^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e) ? e.replace(/\/index(?=\?|$)/, "/") : e.replace(/\/index(?=\?|$)/, "");
|
|
26
|
-
function a(e) {
|
|
27
|
-
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
28
|
-
}
|
|
29
|
-
function o(e, r) {
|
|
30
|
-
if (!a(e) && !a(r))
|
|
31
|
-
return r;
|
|
32
|
-
const n = { ...e };
|
|
33
|
-
for (const t in r) {
|
|
34
|
-
const c = r[t];
|
|
35
|
-
a(n[t]) && a(c) ? n[t] = o(n[t], c) : n[t] = c;
|
|
36
|
-
}
|
|
37
|
-
return n;
|
|
2
|
+
import { __exports as r } from "./index93.mjs";
|
|
3
|
+
function t(e) {
|
|
4
|
+
return e && e.__esModule ? e : { default: e };
|
|
38
5
|
}
|
|
6
|
+
r._ = t;
|
|
39
7
|
export {
|
|
40
|
-
|
|
41
|
-
o as deepMerge,
|
|
42
|
-
s as mergePath,
|
|
43
|
-
l as removeIndexString,
|
|
44
|
-
p as replaceUrlParam,
|
|
45
|
-
i as replaceUrlProtocol
|
|
8
|
+
r as default
|
|
46
9
|
};
|