@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/index80.mjs CHANGED
@@ -1,71 +1,45 @@
1
- const e = {
2
- Continue: 100,
3
- SwitchingProtocols: 101,
4
- Processing: 102,
5
- EarlyHints: 103,
6
- Ok: 200,
7
- Created: 201,
8
- Accepted: 202,
9
- NonAuthoritativeInformation: 203,
10
- NoContent: 204,
11
- ResetContent: 205,
12
- PartialContent: 206,
13
- MultiStatus: 207,
14
- AlreadyReported: 208,
15
- ImUsed: 226,
16
- MultipleChoices: 300,
17
- MovedPermanently: 301,
18
- Found: 302,
19
- SeeOther: 303,
20
- NotModified: 304,
21
- UseProxy: 305,
22
- Unused: 306,
23
- TemporaryRedirect: 307,
24
- PermanentRedirect: 308,
25
- BadRequest: 400,
26
- Unauthorized: 401,
27
- PaymentRequired: 402,
28
- Forbidden: 403,
29
- NotFound: 404,
30
- MethodNotAllowed: 405,
31
- NotAcceptable: 406,
32
- ProxyAuthenticationRequired: 407,
33
- RequestTimeout: 408,
34
- Conflict: 409,
35
- Gone: 410,
36
- LengthRequired: 411,
37
- PreconditionFailed: 412,
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
- e as default
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
@@ -1,4 +1,4 @@
1
- import f from "./index64.mjs";
1
+ import f from "./index62.mjs";
2
2
  import d from "./index95.mjs";
3
3
  function l(e) {
4
4
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
package/dist/index82.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index64.mjs";
1
+ import n from "./index62.mjs";
2
2
  class a {
3
3
  constructor() {
4
4
  this.handlers = [];
package/dist/index83.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import r from "./index96.mjs";
2
- import p from "./index72.mjs";
3
- import l from "./index68.mjs";
4
- import m from "./index70.mjs";
5
- import a from "./index78.mjs";
6
- import o from "./index79.mjs";
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 "./index73.mjs";
2
- import s from "./index75.mjs";
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
@@ -1,5 +1,5 @@
1
- import s from "./index64.mjs";
2
- import f from "./index74.mjs";
1
+ import s from "./index62.mjs";
2
+ import f from "./index72.mjs";
3
3
  import r from "./index88.mjs";
4
4
  function d(o, i) {
5
5
  return f(o, new r.classes.URLSearchParams(), {
package/dist/index89.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index64.mjs";
1
+ import n from "./index62.mjs";
2
2
  const a = n.toObjectSet([
3
3
  "age",
4
4
  "authorization",
package/dist/index91.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import H from "./index64.mjs";
1
+ import H from "./index62.mjs";
2
2
  import D from "./index99.mjs";
3
3
  import L from "./index86.mjs";
4
- import n from "./index75.mjs";
5
- import y from "./index70.mjs";
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 "./index78.mjs";
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 "./index64.mjs";
3
- import b from "./index75.mjs";
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 "./index78.mjs";
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
@@ -1,4 +1,4 @@
1
- import p from "./index74.mjs";
1
+ import p from "./index72.mjs";
2
2
  function i(n) {
3
3
  const t = {
4
4
  "!": "%21",
package/dist/index96.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import i from "./index64.mjs";
2
- import m from "./index68.mjs";
3
- import s from "./index78.mjs";
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
@@ -1,4 +1,4 @@
1
- import a from "./index75.mjs";
1
+ import a from "./index73.mjs";
2
2
  function E(i, f, t) {
3
3
  const u = t.config.validateStatus;
4
4
  !t.status || !u || u(t.status) ? i(t) : f(new a(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instockng/storefront-ui",
3
- "version": "1.0.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.309.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
+ }