@instockng/storefront-ui 1.0.1 → 1.0.2

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,45 +1,71 @@
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
- }
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
+ });
38
69
  export {
39
- f as buildSearchParams,
40
- o as deepMerge,
41
- s as mergePath,
42
- l as removeIndexString,
43
- p as replaceUrlParam,
44
- i as replaceUrlProtocol
70
+ e as default
45
71
  };
package/dist/index81.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import f from "./index62.mjs";
2
- import d from "./index95.mjs";
1
+ import f from "./index64.mjs";
2
+ import d from "./index93.mjs";
3
3
  function l(e) {
4
4
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
5
5
  }
package/dist/index82.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index62.mjs";
1
+ import n from "./index64.mjs";
2
2
  class a {
3
3
  constructor() {
4
4
  this.handlers = [];
package/dist/index83.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import r from "./index96.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";
1
+ import r from "./index94.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";
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/index84.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import r from "./index97.mjs";
2
- import f from "./index98.mjs";
1
+ import r from "./index95.mjs";
2
+ import f from "./index96.mjs";
3
3
  function u(l, i, t) {
4
4
  let o = !r(i);
5
5
  return l && (o || t == !1) ? f(l, i) : i;
package/dist/index85.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { VERSION as w } from "./index71.mjs";
2
- import s from "./index73.mjs";
1
+ import { VERSION as w } from "./index73.mjs";
2
+ import s from "./index75.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 "./index62.mjs";
2
- import f from "./index72.mjs";
1
+ import s from "./index64.mjs";
2
+ import f from "./index74.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/index88.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import o from "./index93.mjs";
2
- import * as t from "./index94.mjs";
1
+ import o from "./index97.mjs";
2
+ import * as t from "./index98.mjs";
3
3
  const m = {
4
4
  ...t,
5
5
  ...o
package/dist/index89.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import n from "./index62.mjs";
1
+ import n from "./index64.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 "./index62.mjs";
1
+ import H from "./index64.mjs";
2
2
  import D from "./index99.mjs";
3
3
  import L from "./index86.mjs";
4
- import n from "./index73.mjs";
5
- import y from "./index68.mjs";
4
+ import n from "./index75.mjs";
5
+ import y from "./index70.mjs";
6
6
  import O from "./index100.mjs";
7
7
  import U from "./index88.mjs";
8
- import q from "./index76.mjs";
8
+ import q from "./index78.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 "./index62.mjs";
3
- import b from "./index73.mjs";
2
+ import t from "./index64.mjs";
3
+ import b from "./index75.mjs";
4
4
  import ee from "./index103.mjs";
5
5
  import { trackStream as z } from "./index104.mjs";
6
- import te from "./index76.mjs";
6
+ import te from "./index78.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/index93.mjs CHANGED
@@ -1,15 +1,33 @@
1
- import o from "./index105.mjs";
2
- import r from "./index106.mjs";
3
- import t from "./index107.mjs";
4
- const l = {
5
- isBrowser: !0,
6
- classes: {
7
- URLSearchParams: o,
8
- FormData: r,
9
- Blob: t
10
- },
11
- protocols: ["http", "https", "file", "blob", "url", "data"]
1
+ import p from "./index74.mjs";
2
+ function i(n) {
3
+ const t = {
4
+ "!": "%21",
5
+ "'": "%27",
6
+ "(": "%28",
7
+ ")": "%29",
8
+ "~": "%7E",
9
+ "%20": "+",
10
+ "%00": "\0"
11
+ };
12
+ return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g, function(r) {
13
+ return t[r];
14
+ });
15
+ }
16
+ function a(n, t) {
17
+ this._pairs = [], n && p(n, this, t);
18
+ }
19
+ const c = a.prototype;
20
+ c.append = function(t, o) {
21
+ this._pairs.push([t, o]);
22
+ };
23
+ c.toString = function(t) {
24
+ const o = t ? function(r) {
25
+ return t.call(this, r, i);
26
+ } : i;
27
+ return this._pairs.map(function(e) {
28
+ return o(e[0]) + "=" + o(e[1]);
29
+ }, "").join("&");
12
30
  };
13
31
  export {
14
- l as default
32
+ a as default
15
33
  };
package/dist/index94.mjs CHANGED
@@ -1,9 +1,13 @@
1
- const e = typeof window < "u" && typeof document < "u", o = typeof navigator == "object" && navigator || void 0, n = e && (!o || ["ReactNative", "NativeScript", "NS"].indexOf(o.product) < 0), t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", r = e && window.location.href || "http://localhost";
1
+ import i from "./index64.mjs";
2
+ import m from "./index68.mjs";
3
+ import s from "./index78.mjs";
4
+ function h(f, t) {
5
+ const o = this || m, r = t || o, n = s.from(r.headers);
6
+ let a = r.data;
7
+ return i.forEach(f, function(e) {
8
+ a = e.call(o, a, n.normalize(), t ? t.status : void 0);
9
+ }), n.normalize(), a;
10
+ }
3
11
  export {
4
- e as hasBrowserEnv,
5
- n as hasStandardBrowserEnv,
6
- t as hasStandardBrowserWebWorkerEnv,
7
- o as navigator,
8
- r as origin
12
+ h as default
9
13
  };
package/dist/index95.mjs CHANGED
@@ -1,33 +1,6 @@
1
- import p from "./index72.mjs";
2
- function i(n) {
3
- const t = {
4
- "!": "%21",
5
- "'": "%27",
6
- "(": "%28",
7
- ")": "%29",
8
- "~": "%7E",
9
- "%20": "+",
10
- "%00": "\0"
11
- };
12
- return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g, function(r) {
13
- return t[r];
14
- });
1
+ function e(t) {
2
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
15
3
  }
16
- function a(n, t) {
17
- this._pairs = [], n && p(n, this, t);
18
- }
19
- const c = a.prototype;
20
- c.append = function(t, o) {
21
- this._pairs.push([t, o]);
22
- };
23
- c.toString = function(t) {
24
- const o = t ? function(r) {
25
- return t.call(this, r, i);
26
- } : i;
27
- return this._pairs.map(function(e) {
28
- return o(e[0]) + "=" + o(e[1]);
29
- }, "").join("&");
30
- };
31
4
  export {
32
- a as default
5
+ e as default
33
6
  };
package/dist/index96.mjs CHANGED
@@ -1,13 +1,6 @@
1
- import i from "./index62.mjs";
2
- import m from "./index66.mjs";
3
- import s from "./index76.mjs";
4
- function h(f, t) {
5
- const o = this || m, r = t || o, n = s.from(r.headers);
6
- let a = r.data;
7
- return i.forEach(f, function(e) {
8
- a = e.call(o, a, n.normalize(), t ? t.status : void 0);
9
- }), n.normalize(), a;
1
+ function n(e, c) {
2
+ return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
10
3
  }
11
4
  export {
12
- h as default
5
+ n as default
13
6
  };
package/dist/index97.mjs CHANGED
@@ -1,6 +1,15 @@
1
- function e(t) {
2
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
3
- }
1
+ import o from "./index105.mjs";
2
+ import r from "./index106.mjs";
3
+ import t from "./index107.mjs";
4
+ const l = {
5
+ isBrowser: !0,
6
+ classes: {
7
+ URLSearchParams: o,
8
+ FormData: r,
9
+ Blob: t
10
+ },
11
+ protocols: ["http", "https", "file", "blob", "url", "data"]
12
+ };
4
13
  export {
5
- e as default
14
+ l as default
6
15
  };
package/dist/index98.mjs CHANGED
@@ -1,6 +1,9 @@
1
- function n(e, c) {
2
- return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
3
- }
1
+ const e = typeof window < "u" && typeof document < "u", o = typeof navigator == "object" && navigator || void 0, n = e && (!o || ["ReactNative", "NativeScript", "NS"].indexOf(o.product) < 0), t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", r = e && window.location.href || "http://localhost";
4
3
  export {
5
- n as default
4
+ e as hasBrowserEnv,
5
+ n as hasStandardBrowserEnv,
6
+ t as hasStandardBrowserWebWorkerEnv,
7
+ o as navigator,
8
+ r as origin
6
9
  };
package/dist/index99.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import a from "./index73.mjs";
1
+ import a from "./index75.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.1",
3
+ "version": "1.0.2",
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",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@tanstack/react-query": "^5.0.0",
49
- "lucide-react": "^0.300.0",
49
+ "lucide-react": "^0.536.0",
50
50
  "react": "^18.0.0 || ^19.0.0",
51
51
  "react-dom": "^18.0.0 || ^19.0.0"
52
52
  },