@instockng/storefront-ui 1.0.70 → 1.0.72

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.
Files changed (180) hide show
  1. package/dist/contexts/CartContext.d.ts.map +1 -1
  2. package/dist/hooks/usePageTracking.d.ts +1 -1
  3. package/dist/hooks/usePageTracking.d.ts.map +1 -1
  4. package/dist/index.mjs +65 -63
  5. package/dist/index100.mjs +174 -28
  6. package/dist/index101.mjs +53 -2
  7. package/dist/index102.mjs +69 -2
  8. package/dist/index106.mjs +2 -2
  9. package/dist/index107.mjs +2 -2
  10. package/dist/index140.mjs +1 -1
  11. package/dist/index142.mjs +2 -21
  12. package/dist/index143.mjs +19 -54
  13. package/dist/index144.mjs +55 -28
  14. package/dist/index145.mjs +28 -6
  15. package/dist/index146.mjs +6 -51
  16. package/dist/index147.mjs +51 -5
  17. package/dist/index148.mjs +6 -12
  18. package/dist/index149.mjs +12 -7
  19. package/dist/index15.mjs +1 -1
  20. package/dist/index150.mjs +6 -27
  21. package/dist/index151.mjs +28 -2
  22. package/dist/index152.mjs +2 -70
  23. package/dist/index153.mjs +67 -164
  24. package/dist/index154.mjs +167 -2
  25. package/dist/index158.mjs +1 -1
  26. package/dist/index159.mjs +1 -1
  27. package/dist/index160.mjs +1 -1
  28. package/dist/index161.mjs +1 -1
  29. package/dist/index162.mjs +1 -1
  30. package/dist/index164.mjs +3 -3
  31. package/dist/index165.mjs +1 -1
  32. package/dist/index167.mjs +2 -2
  33. package/dist/index168.mjs +1 -1
  34. package/dist/index173.mjs +2 -2
  35. package/dist/index175.mjs +1 -1
  36. package/dist/index177.mjs +2 -2
  37. package/dist/index178.mjs +5 -5
  38. package/dist/index181.mjs +1 -1
  39. package/dist/index184.mjs +1 -1
  40. package/dist/index187.mjs +1 -1
  41. package/dist/index188.mjs +1 -1
  42. package/dist/index192.mjs +1 -1
  43. package/dist/index194.mjs +1 -1
  44. package/dist/index198.mjs +1 -1
  45. package/dist/index2.mjs +1 -1
  46. package/dist/index200.mjs +1 -1
  47. package/dist/index213.mjs +2 -13
  48. package/dist/index214.mjs +2 -7
  49. package/dist/index215.mjs +2 -31
  50. package/dist/index216.mjs +2 -11
  51. package/dist/index217.mjs +2 -4
  52. package/dist/index218.mjs +2 -4
  53. package/dist/index219.mjs +2 -12
  54. package/dist/index22.mjs +10 -6
  55. package/dist/index220.mjs +2 -5
  56. package/dist/index221.mjs +108 -33
  57. package/dist/index222.mjs +2 -31
  58. package/dist/index223.mjs +2 -28
  59. package/dist/index224.mjs +34 -58
  60. package/dist/index225.mjs +2 -2
  61. package/dist/index226.mjs +2 -2
  62. package/dist/index227.mjs +244 -2
  63. package/dist/index228.mjs +2 -2
  64. package/dist/index229.mjs +28 -103
  65. package/dist/index23.mjs +13 -14
  66. package/dist/index230.mjs +65 -2
  67. package/dist/index231.mjs +25 -2
  68. package/dist/index232.mjs +2 -2
  69. package/dist/index233.mjs +2 -2
  70. package/dist/index234.mjs +2 -2
  71. package/dist/index236.mjs +2 -37
  72. package/dist/index237.mjs +2 -2
  73. package/dist/index238.mjs +2 -244
  74. package/dist/index239.mjs +2 -2
  75. package/dist/index240.mjs +30 -32
  76. package/dist/index241.mjs +10 -64
  77. package/dist/index242.mjs +3 -24
  78. package/dist/index243.mjs +4 -2
  79. package/dist/index244.mjs +13 -2
  80. package/dist/index245.mjs +7 -2
  81. package/dist/index246.mjs +12 -2
  82. package/dist/index247.mjs +5 -2
  83. package/dist/index248.mjs +33 -2
  84. package/dist/index249.mjs +31 -2
  85. package/dist/index250.mjs +28 -2
  86. package/dist/index251.mjs +61 -2
  87. package/dist/index253.mjs +2 -2
  88. package/dist/index256.mjs +2 -3
  89. package/dist/index257.mjs +2 -2
  90. package/dist/index258.mjs +18 -2
  91. package/dist/index259.mjs +46 -16
  92. package/dist/index260.mjs +2 -13
  93. package/dist/index261.mjs +2 -6
  94. package/dist/index262.mjs +2 -30
  95. package/dist/index264.mjs +91 -2
  96. package/dist/index265.mjs +2 -2
  97. package/dist/index266.mjs +3 -2
  98. package/dist/index267.mjs +2 -2
  99. package/dist/index268.mjs +2 -91
  100. package/dist/index269.mjs +17 -2
  101. package/dist/index27.mjs +17 -17
  102. package/dist/index270.mjs +12 -17
  103. package/dist/index271.mjs +6 -47
  104. package/dist/index272.mjs +30 -2
  105. package/dist/index273.mjs +2 -2
  106. package/dist/index275.mjs +2 -2
  107. package/dist/index28.mjs +58 -47
  108. package/dist/index29.mjs +11 -11
  109. package/dist/index3.mjs +141 -123
  110. package/dist/index30.mjs +4 -4
  111. package/dist/index31.mjs +5 -5
  112. package/dist/index33.mjs +21 -20
  113. package/dist/index35.mjs +36 -29
  114. package/dist/index36.mjs +8 -25
  115. package/dist/index37.mjs +1 -1
  116. package/dist/index38.mjs +26 -9
  117. package/dist/index39.mjs +9 -9
  118. package/dist/index4.mjs +59 -46
  119. package/dist/index40.mjs +2 -2
  120. package/dist/index42.mjs +2 -2
  121. package/dist/index45.mjs +3 -3
  122. package/dist/index46.mjs +1 -1
  123. package/dist/index49.mjs +1 -1
  124. package/dist/index54.mjs +17 -17
  125. package/dist/index55.mjs +2 -2
  126. package/dist/index56.mjs +1 -1
  127. package/dist/index57.mjs +1 -1
  128. package/dist/index58.mjs +1 -1
  129. package/dist/index59.mjs +1 -1
  130. package/dist/index6.mjs +7 -7
  131. package/dist/index60.mjs +1 -1
  132. package/dist/index61.mjs +1 -1
  133. package/dist/index62.mjs +1 -1
  134. package/dist/index63.mjs +1 -1
  135. package/dist/index64.mjs +1 -1
  136. package/dist/index65.mjs +1 -1
  137. package/dist/index66.mjs +1 -1
  138. package/dist/index67.mjs +1 -1
  139. package/dist/index68.mjs +23 -4
  140. package/dist/index69.mjs +149 -19
  141. package/dist/index7.mjs +1 -1
  142. package/dist/index70.mjs +2 -24
  143. package/dist/index71.mjs +19 -149
  144. package/dist/index72.mjs +75 -2
  145. package/dist/index73.mjs +14 -74
  146. package/dist/index74.mjs +62 -14
  147. package/dist/index75.mjs +4 -62
  148. package/dist/index76.mjs +2 -34
  149. package/dist/index77.mjs +5 -42
  150. package/dist/index78.mjs +1129 -230
  151. package/dist/index79.mjs +19 -5
  152. package/dist/index80.mjs +48 -127
  153. package/dist/index81.mjs +32 -67
  154. package/dist/index82.mjs +2 -87
  155. package/dist/index83.mjs +2 -29
  156. package/dist/index84.mjs +34 -9
  157. package/dist/index85.mjs +39 -71
  158. package/dist/index86.mjs +234 -3
  159. package/dist/index87.mjs +6 -2
  160. package/dist/index88.mjs +128 -77
  161. package/dist/index89.mjs +67 -53
  162. package/dist/index90.mjs +86 -5
  163. package/dist/index91.mjs +28 -4
  164. package/dist/index92.mjs +7 -177
  165. package/dist/index93.mjs +72 -50
  166. package/dist/index94.mjs +4 -69
  167. package/dist/index95.mjs +2 -2
  168. package/dist/index96.mjs +82 -5
  169. package/dist/index97.mjs +53 -1133
  170. package/dist/index98.mjs +5 -19
  171. package/dist/index99.mjs +4 -54
  172. package/dist/lib/utils.d.ts +5 -0
  173. package/dist/lib/utils.d.ts.map +1 -1
  174. package/dist/providers/MetaPixelProvider.d.ts +3 -2
  175. package/dist/providers/MetaPixelProvider.d.ts.map +1 -1
  176. package/package.json +2 -2
  177. package/src/contexts/CartContext.tsx +50 -22
  178. package/src/hooks/usePageTracking.ts +3 -3
  179. package/src/lib/utils.ts +11 -0
  180. package/src/providers/MetaPixelProvider.tsx +20 -6
package/dist/index74.mjs CHANGED
@@ -1,18 +1,66 @@
1
1
  'use client';
2
- const c = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g, x = (u) => u.match(c) || [], d = (u) => u[0].toUpperCase() + u.slice(1), a = (u, f) => x(u).join(f).toLowerCase(), b = (u) => x(u).reduce(
3
- (f, e) => `${f}${f ? e[0].toUpperCase() + e.slice(1).toLowerCase() : e.toLowerCase()}`,
4
- ""
5
- ), s = (u) => d(b(u)), t = (u) => a(u, "_"), o = (u) => a(u, "-"), n = (u) => d(a(u, " ")), r = (u) => x(u).map(d).join(" ");
6
- var C = {
7
- words: x,
8
- upperFirst: d,
9
- camelCase: b,
10
- pascalCase: s,
11
- snakeCase: t,
12
- kebabCase: o,
13
- sentenceCase: n,
14
- titleCase: r
2
+ import { getDefaultExportFromCjs as d } from "./index68.mjs";
3
+ import { __module as v } from "./index83.mjs";
4
+ v.exports = function(n) {
5
+ return g(m(n), n);
15
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;
61
+ }
62
+ var k = v.exports;
63
+ const A = /* @__PURE__ */ d(k);
16
64
  export {
17
- C as t
65
+ A as default
18
66
  };
package/dist/index75.mjs CHANGED
@@ -1,66 +1,8 @@
1
1
  'use client';
2
- import { getDefaultExportFromCjs as d } from "./index70.mjs";
3
- import { __module as v } from "./index102.mjs";
4
- v.exports = function(n) {
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
- A as default
7
+ n as useQueryUnwrapped
66
8
  };
package/dist/index76.mjs CHANGED
@@ -1,37 +1,5 @@
1
1
  'use client';
2
- var a = (i, t, e = {}) => {
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
- if (e && typeof e.maxAge == "number" && e.maxAge >= 0) {
15
- if (e.maxAge > 3456e4)
16
- throw new Error(
17
- "Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration."
18
- );
19
- r += `; Max-Age=${e.maxAge | 0}`;
20
- }
21
- if (e.domain && e.prefix !== "host" && (r += `; Domain=${e.domain}`), e.path && (r += `; Path=${e.path}`), e.expires) {
22
- if (e.expires.getTime() - Date.now() > 3456e7)
23
- throw new Error(
24
- "Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future."
25
- );
26
- r += `; Expires=${e.expires.toUTCString()}`;
27
- }
28
- 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) {
29
- if (!e.secure)
30
- throw new Error("Partitioned Cookie must have Secure attributes");
31
- r += "; Partitioned";
32
- }
33
- return r;
34
- }, s = (i, t, e) => (t = encodeURIComponent(t), a(i, t, e));
2
+ var r = { exports: {} };
35
3
  export {
36
- s as serialize
4
+ r as __module
37
5
  };
package/dist/index77.mjs CHANGED
@@ -1,46 +1,9 @@
1
1
  'use client';
2
- var s = (e, r) => (e = e.replace(/\/+$/, ""), e = e + "/", r = r.replace(/^\/+/, ""), e + r), p = (e, r) => {
3
- for (const [n, t] of Object.entries(r)) {
4
- const c = new RegExp("/:" + n + "(?:{[^/]+})?\\??");
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 "./index82.mjs";
3
+ function t(e) {
4
+ return e && e.__esModule ? e : { default: e };
38
5
  }
6
+ r._ = t;
39
7
  export {
40
- f as buildSearchParams,
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
  };