@instockng/storefront-ui 1.0.61 → 1.0.62

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 (123) hide show
  1. package/dist/index10.mjs +18 -18
  2. package/dist/index100.mjs +43 -2
  3. package/dist/index102.mjs +2 -21
  4. package/dist/index103.mjs +25 -53
  5. package/dist/index104.mjs +17 -28
  6. package/dist/index105.mjs +214 -6
  7. package/dist/index106.mjs +177 -49
  8. package/dist/index107.mjs +22 -6
  9. package/dist/index108.mjs +22 -11
  10. package/dist/index109.mjs +33 -7
  11. package/dist/index110.mjs +156 -28
  12. package/dist/index111.mjs +20 -2
  13. package/dist/index112.mjs +29 -68
  14. package/dist/index113.mjs +78 -161
  15. package/dist/index114.mjs +38 -2
  16. package/dist/index115.mjs +143 -26
  17. package/dist/index116.mjs +50 -13
  18. package/dist/index117.mjs +19 -211
  19. package/dist/index118.mjs +22 -175
  20. package/dist/index119.mjs +16 -15
  21. package/dist/index120.mjs +18 -16
  22. package/dist/index121.mjs +14 -26
  23. package/dist/index122.mjs +16 -150
  24. package/dist/index123.mjs +14 -13
  25. package/dist/index124.mjs +58 -24
  26. package/dist/index125.mjs +11 -77
  27. package/dist/index126.mjs +30 -29
  28. package/dist/index127.mjs +19 -140
  29. package/dist/index128.mjs +29 -50
  30. package/dist/index129.mjs +21 -17
  31. package/dist/index130.mjs +11 -19
  32. package/dist/index131.mjs +15 -17
  33. package/dist/index132.mjs +40 -18
  34. package/dist/index133.mjs +16 -14
  35. package/dist/index134.mjs +263 -17
  36. package/dist/index135.mjs +63 -14
  37. package/dist/index136.mjs +7 -64
  38. package/dist/index137.mjs +2 -18
  39. package/dist/index138.mjs +2 -39
  40. package/dist/index139.mjs +27 -18
  41. package/dist/index140.mjs +2 -34
  42. package/dist/index141.mjs +20 -26
  43. package/dist/index142.mjs +54 -17
  44. package/dist/index143.mjs +28 -20
  45. package/dist/index144.mjs +6 -46
  46. package/dist/index145.mjs +50 -21
  47. package/dist/index146.mjs +6 -268
  48. package/dist/index147.mjs +11 -69
  49. package/dist/index148.mjs +7 -8
  50. package/dist/index149.mjs +28 -2
  51. package/dist/index150.mjs +2 -2
  52. package/dist/index151.mjs +67 -30
  53. package/dist/index152.mjs +167 -2
  54. package/dist/index163.mjs +3 -3
  55. package/dist/index164.mjs +1 -1
  56. package/dist/index166.mjs +3 -3
  57. package/dist/index167.mjs +1 -1
  58. package/dist/index172.mjs +2 -2
  59. package/dist/index174.mjs +1 -1
  60. package/dist/index176.mjs +2 -2
  61. package/dist/index177.mjs +5 -5
  62. package/dist/index180.mjs +1 -1
  63. package/dist/index183.mjs +1 -1
  64. package/dist/index186.mjs +2 -2
  65. package/dist/index191.mjs +1 -1
  66. package/dist/index193.mjs +1 -1
  67. package/dist/index199.mjs +1 -1
  68. package/dist/index212.mjs +12 -30
  69. package/dist/index213.mjs +7 -11
  70. package/dist/index214.mjs +30 -3
  71. package/dist/index215.mjs +10 -3
  72. package/dist/index216.mjs +4 -13
  73. package/dist/index217.mjs +4 -7
  74. package/dist/index221.mjs +3 -3
  75. package/dist/index229.mjs +2 -2
  76. package/dist/index230.mjs +108 -2
  77. package/dist/index231.mjs +2 -2
  78. package/dist/index232.mjs +2 -108
  79. package/dist/index233.mjs +2 -2
  80. package/dist/index234.mjs +2 -2
  81. package/dist/index235.mjs +2 -244
  82. package/dist/index236.mjs +37 -2
  83. package/dist/index237.mjs +2 -33
  84. package/dist/index238.mjs +240 -61
  85. package/dist/index239.mjs +2 -25
  86. package/dist/index240.mjs +33 -2
  87. package/dist/index241.mjs +56 -28
  88. package/dist/index242.mjs +25 -2
  89. package/dist/index243.mjs +2 -2
  90. package/dist/index252.mjs +1 -1
  91. package/dist/index255.mjs +1 -1
  92. package/dist/index260.mjs +1 -1
  93. package/dist/index261.mjs +1 -1
  94. package/dist/index264.mjs +2 -2
  95. package/dist/index265.mjs +18 -2
  96. package/dist/index266.mjs +47 -2
  97. package/dist/index267.mjs +2 -91
  98. package/dist/index268.mjs +2 -2
  99. package/dist/index269.mjs +2 -18
  100. package/dist/index270.mjs +87 -43
  101. package/dist/index40.mjs +2 -2
  102. package/dist/index42.mjs +2 -2
  103. package/dist/index49.mjs +1 -1
  104. package/dist/index55.mjs +2 -2
  105. package/dist/index68.mjs +20 -21
  106. package/dist/index69.mjs +24 -2
  107. package/dist/index70.mjs +149 -19
  108. package/dist/index71.mjs +2 -153
  109. package/dist/index74.mjs +1 -1
  110. package/dist/index77.mjs +5 -5
  111. package/dist/index79.mjs +3 -3
  112. package/dist/index89.mjs +1 -1
  113. package/dist/index90.mjs +3 -3
  114. package/dist/index92.mjs +2 -34
  115. package/dist/index93.mjs +5 -42
  116. package/dist/index94.mjs +1134 -2
  117. package/dist/index95.mjs +19 -5
  118. package/dist/index96.mjs +40 -1119
  119. package/dist/index97.mjs +27 -14
  120. package/dist/index98.mjs +2 -55
  121. package/dist/index99.mjs +34 -33
  122. package/package.json +1 -1
  123. package/src/components/ProductAddOns.tsx +1 -1
package/dist/index97.mjs CHANGED
@@ -1,23 +1,36 @@
1
1
  'use client';
2
- import { __exports as e } from "./index149.mjs";
3
- import "./index95.mjs";
4
- import u from "react";
5
- import { __exports as n } from "./index100.mjs";
6
- var o;
7
- function d() {
8
- return o ? e : (o = 1, function(t) {
9
- Object.defineProperty(t, "__esModule", {
2
+ import { __module as u } from "./index140.mjs";
3
+ import d from "react/jsx-runtime";
4
+ import "react";
5
+ import { __require as c } from "./index70.mjs";
6
+ var n;
7
+ function y() {
8
+ return n ? u.exports : (n = 1, function(a, e) {
9
+ Object.defineProperty(e, "__esModule", {
10
10
  value: !0
11
- }), Object.defineProperty(t, "RouterContext", {
11
+ }), Object.defineProperty(e, "default", {
12
12
  enumerable: !0,
13
13
  get: function() {
14
- return r;
14
+ return l;
15
15
  }
16
16
  });
17
- const r = (/* @__PURE__ */ n._(u)).default.createContext(null);
18
- process.env.NODE_ENV !== "production" && (r.displayName = "RouterContext");
19
- }(e), e);
17
+ const f = d, o = c();
18
+ function l(t) {
19
+ function r(i) {
20
+ return /* @__PURE__ */ (0, f.jsx)(t, {
21
+ router: (0, o.useRouter)(),
22
+ ...i
23
+ });
24
+ }
25
+ if (r.getInitialProps = t.getInitialProps, r.origGetInitialProps = t.origGetInitialProps, process.env.NODE_ENV !== "production") {
26
+ const i = t.displayName || t.name || "Unknown";
27
+ r.displayName = "withRouter(" + i + ")";
28
+ }
29
+ return r;
30
+ }
31
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
32
+ }(u, u.exports), u.exports);
20
33
  }
21
34
  export {
22
- d as __require
35
+ y as __require
23
36
  };
package/dist/index98.mjs CHANGED
@@ -1,58 +1,5 @@
1
1
  'use client';
2
- import { __exports as o } from "./index150.mjs";
3
- import { __require as p } from "./index151.mjs";
4
- var u;
5
- function m() {
6
- return u ? o : (u = 1, function(i) {
7
- Object.defineProperty(i, "__esModule", {
8
- value: !0
9
- });
10
- function f(e, r) {
11
- for (var t in r) Object.defineProperty(e, t, {
12
- enumerable: !0,
13
- get: r[t]
14
- });
15
- }
16
- f(i, {
17
- /**
18
- * Checks whether the given value is a NextError.
19
- * This can be used to print a more detailed error message with properties like `code` & `digest`.
20
- */
21
- default: function() {
22
- return s;
23
- },
24
- getProperError: function() {
25
- return a;
26
- }
27
- });
28
- const c = p();
29
- function s(e) {
30
- return typeof e == "object" && e !== null && "name" in e && "message" in e;
31
- }
32
- function d(e) {
33
- const r = /* @__PURE__ */ new WeakSet();
34
- return JSON.stringify(e, (t, n) => {
35
- if (typeof n == "object" && n !== null) {
36
- if (r.has(n))
37
- return "[Circular]";
38
- r.add(n);
39
- }
40
- return n;
41
- });
42
- }
43
- function a(e) {
44
- if (s(e))
45
- return e;
46
- if (process.env.NODE_ENV === "development") {
47
- if (typeof e > "u")
48
- return new Error("An undefined error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined");
49
- if (e === null)
50
- return new Error("A null error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined");
51
- }
52
- return new Error((0, c.isPlainObject)(e) ? d(e) : e + "");
53
- }
54
- }(o), o);
55
- }
2
+ var e = {};
56
3
  export {
57
- m as __require
4
+ e as __exports
58
5
  };
package/dist/index99.mjs CHANGED
@@ -1,36 +1,37 @@
1
1
  'use client';
2
- import { __module as u } from "./index152.mjs";
3
- import d from "react/jsx-runtime";
4
- import "react";
5
- import { __require as c } from "./index71.mjs";
6
- var n;
7
- function y() {
8
- return n ? u.exports : (n = 1, function(a, e) {
9
- Object.defineProperty(e, "__esModule", {
10
- value: !0
11
- }), Object.defineProperty(e, "default", {
12
- enumerable: !0,
13
- get: function() {
14
- return l;
15
- }
16
- });
17
- const f = d, o = c();
18
- function l(t) {
19
- function r(i) {
20
- return /* @__PURE__ */ (0, f.jsx)(t, {
21
- router: (0, o.useRouter)(),
22
- ...i
23
- });
24
- }
25
- if (r.getInitialProps = t.getInitialProps, r.origGetInitialProps = t.origGetInitialProps, process.env.NODE_ENV !== "production") {
26
- const i = t.displayName || t.name || "Unknown";
27
- r.displayName = "withRouter(" + i + ")";
28
- }
29
- return r;
30
- }
31
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
32
- }(u, u.exports), u.exports);
33
- }
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));
34
35
  export {
35
- y as __require
36
+ s as serialize
36
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instockng/storefront-ui",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
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",
@@ -116,7 +116,7 @@ export function ProductAddOns({
116
116
  }
117
117
 
118
118
  return (
119
- <div className={cn('w-full py-8', className)}>
119
+ <div className={className}>
120
120
  <div className="px-1 mb-3">
121
121
  <h3 className="text-lg font-bold tracking-tight text-gray-900">{title}</h3>
122
122
  </div>