@instockng/storefront-ui 1.0.3 → 1.0.4

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 (63) hide show
  1. package/dist/index.mjs +17 -17
  2. package/dist/index101.mjs +1 -1
  3. package/dist/index102.mjs +3 -3
  4. package/dist/index103.mjs +3 -3
  5. package/dist/index111.mjs +1 -1
  6. package/dist/index20.mjs +2 -2
  7. package/dist/index21.mjs +1 -1
  8. package/dist/index28.mjs +11 -11
  9. package/dist/index29.mjs +1 -1
  10. package/dist/index30.mjs +1 -1
  11. package/dist/index31.mjs +1 -1
  12. package/dist/index32.mjs +1 -1
  13. package/dist/index37.mjs +1 -1
  14. package/dist/index41.mjs +36 -23
  15. package/dist/index42.mjs +44 -36
  16. package/dist/index43.mjs +99 -44
  17. package/dist/index44.mjs +112 -99
  18. package/dist/index45.mjs +44 -80
  19. package/dist/index46.mjs +64 -53
  20. package/dist/index47.mjs +66 -49
  21. package/dist/index48.mjs +54 -73
  22. package/dist/index49.mjs +52 -63
  23. package/dist/index50.mjs +14 -70
  24. package/dist/index51.mjs +13 -14
  25. package/dist/index52.mjs +58 -13
  26. package/dist/index53.mjs +101 -34
  27. package/dist/index54.mjs +99 -95
  28. package/dist/index55.mjs +22 -132
  29. package/dist/index58.mjs +2 -2
  30. package/dist/index59.mjs +4 -3
  31. package/dist/index60.mjs +4 -2
  32. package/dist/index61.mjs +2 -5
  33. package/dist/index62.mjs +30 -231
  34. package/dist/index63.mjs +42 -5
  35. package/dist/index64.mjs +228 -127
  36. package/dist/index65.mjs +4 -66
  37. package/dist/index66.mjs +124 -77
  38. package/dist/index67.mjs +65 -26
  39. package/dist/index68.mjs +84 -6
  40. package/dist/index69.mjs +26 -72
  41. package/dist/index70.mjs +8 -3
  42. package/dist/index71.mjs +75 -2
  43. package/dist/index72.mjs +3 -82
  44. package/dist/index73.mjs +2 -54
  45. package/dist/index74.mjs +82 -5
  46. package/dist/index75.mjs +53 -4
  47. package/dist/index76.mjs +5 -178
  48. package/dist/index77.mjs +5 -53
  49. package/dist/index78.mjs +178 -68
  50. package/dist/index79.mjs +50 -31
  51. package/dist/index80.mjs +69 -43
  52. package/dist/index81.mjs +1 -1
  53. package/dist/index82.mjs +1 -1
  54. package/dist/index83.mjs +5 -5
  55. package/dist/index85.mjs +2 -2
  56. package/dist/index87.mjs +2 -2
  57. package/dist/index89.mjs +1 -1
  58. package/dist/index91.mjs +4 -4
  59. package/dist/index92.mjs +3 -3
  60. package/dist/index93.mjs +1 -1
  61. package/dist/index94.mjs +3 -3
  62. package/dist/index99.mjs +1 -1
  63. package/package.json +1 -1
package/dist/index80.mjs CHANGED
@@ -1,46 +1,72 @@
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;
38
- }
2
+ const e = {
3
+ Continue: 100,
4
+ SwitchingProtocols: 101,
5
+ Processing: 102,
6
+ EarlyHints: 103,
7
+ Ok: 200,
8
+ Created: 201,
9
+ Accepted: 202,
10
+ NonAuthoritativeInformation: 203,
11
+ NoContent: 204,
12
+ ResetContent: 205,
13
+ PartialContent: 206,
14
+ MultiStatus: 207,
15
+ AlreadyReported: 208,
16
+ ImUsed: 226,
17
+ MultipleChoices: 300,
18
+ MovedPermanently: 301,
19
+ Found: 302,
20
+ SeeOther: 303,
21
+ NotModified: 304,
22
+ UseProxy: 305,
23
+ Unused: 306,
24
+ TemporaryRedirect: 307,
25
+ PermanentRedirect: 308,
26
+ BadRequest: 400,
27
+ Unauthorized: 401,
28
+ PaymentRequired: 402,
29
+ Forbidden: 403,
30
+ NotFound: 404,
31
+ MethodNotAllowed: 405,
32
+ NotAcceptable: 406,
33
+ ProxyAuthenticationRequired: 407,
34
+ RequestTimeout: 408,
35
+ Conflict: 409,
36
+ Gone: 410,
37
+ LengthRequired: 411,
38
+ PreconditionFailed: 412,
39
+ PayloadTooLarge: 413,
40
+ UriTooLong: 414,
41
+ UnsupportedMediaType: 415,
42
+ RangeNotSatisfiable: 416,
43
+ ExpectationFailed: 417,
44
+ ImATeapot: 418,
45
+ MisdirectedRequest: 421,
46
+ UnprocessableEntity: 422,
47
+ Locked: 423,
48
+ FailedDependency: 424,
49
+ TooEarly: 425,
50
+ UpgradeRequired: 426,
51
+ PreconditionRequired: 428,
52
+ TooManyRequests: 429,
53
+ RequestHeaderFieldsTooLarge: 431,
54
+ UnavailableForLegalReasons: 451,
55
+ InternalServerError: 500,
56
+ NotImplemented: 501,
57
+ BadGateway: 502,
58
+ ServiceUnavailable: 503,
59
+ GatewayTimeout: 504,
60
+ HttpVersionNotSupported: 505,
61
+ VariantAlsoNegotiates: 506,
62
+ InsufficientStorage: 507,
63
+ LoopDetected: 508,
64
+ NotExtended: 510,
65
+ NetworkAuthenticationRequired: 511
66
+ };
67
+ Object.entries(e).forEach(([t, o]) => {
68
+ e[o] = t;
69
+ });
39
70
  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
71
+ e as default
46
72
  };
package/dist/index81.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import f from "./index62.mjs";
2
+ import f from "./index64.mjs";
3
3
  import d from "./index93.mjs";
4
4
  function l(e) {
5
5
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
package/dist/index82.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import n from "./index62.mjs";
2
+ import n from "./index64.mjs";
3
3
  class a {
4
4
  constructor() {
5
5
  this.handlers = [];
package/dist/index83.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import r from "./index94.mjs";
3
- import p from "./index70.mjs";
4
- import l from "./index66.mjs";
5
- import m from "./index68.mjs";
6
- import a from "./index76.mjs";
7
- import o from "./index77.mjs";
3
+ import p from "./index72.mjs";
4
+ import l from "./index68.mjs";
5
+ import m from "./index70.mjs";
6
+ import a from "./index78.mjs";
7
+ import o from "./index79.mjs";
8
8
  function d(e) {
9
9
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
10
10
  throw new m(null, e);
package/dist/index85.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { VERSION as w } from "./index71.mjs";
3
- import s from "./index73.mjs";
2
+ import { VERSION as w } from "./index73.mjs";
3
+ import s from "./index75.mjs";
4
4
  const l = {};
5
5
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
6
6
  l[n] = function(o) {
package/dist/index87.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import s from "./index62.mjs";
3
- import f from "./index72.mjs";
2
+ import s from "./index64.mjs";
3
+ import f from "./index74.mjs";
4
4
  import r from "./index88.mjs";
5
5
  function d(o, i) {
6
6
  return f(o, new r.classes.URLSearchParams(), {
package/dist/index89.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import n from "./index62.mjs";
2
+ import n from "./index64.mjs";
3
3
  const a = n.toObjectSet([
4
4
  "age",
5
5
  "authorization",
package/dist/index91.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use client';
2
- import H from "./index62.mjs";
2
+ import H from "./index64.mjs";
3
3
  import D from "./index99.mjs";
4
4
  import L from "./index86.mjs";
5
- import n from "./index73.mjs";
6
- import y from "./index68.mjs";
5
+ import n from "./index75.mjs";
6
+ import y from "./index70.mjs";
7
7
  import O from "./index100.mjs";
8
8
  import U from "./index88.mjs";
9
- import q from "./index76.mjs";
9
+ import q from "./index78.mjs";
10
10
  import { progressEventReducer as A } from "./index101.mjs";
11
11
  import v from "./index102.mjs";
12
12
  const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
package/dist/index92.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import K from "./index88.mjs";
3
- import t from "./index62.mjs";
4
- import b from "./index73.mjs";
3
+ import t from "./index64.mjs";
4
+ import b from "./index75.mjs";
5
5
  import ee from "./index103.mjs";
6
6
  import { trackStream as z } from "./index104.mjs";
7
- import te from "./index76.mjs";
7
+ import te from "./index78.mjs";
8
8
  import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./index101.mjs";
9
9
  import se from "./index102.mjs";
10
10
  import re from "./index99.mjs";
package/dist/index93.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import p from "./index72.mjs";
2
+ import p from "./index74.mjs";
3
3
  function i(n) {
4
4
  const t = {
5
5
  "!": "%21",
package/dist/index94.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import i from "./index62.mjs";
3
- import m from "./index66.mjs";
4
- import s from "./index76.mjs";
2
+ import i from "./index64.mjs";
3
+ import m from "./index68.mjs";
4
+ import s from "./index78.mjs";
5
5
  function h(f, t) {
6
6
  const o = this || m, r = t || o, n = s.from(r.headers);
7
7
  let a = r.data;
package/dist/index99.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import a from "./index73.mjs";
2
+ import a from "./index75.mjs";
3
3
  function E(i, f, t) {
4
4
  const u = t.config.validateStatus;
5
5
  !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.3",
3
+ "version": "1.0.4",
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",