@instockng/storefront-ui 1.0.17 → 1.0.18
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/index100.mjs +1 -1
- package/dist/index101.mjs +3 -3
- package/dist/index102.mjs +3 -3
- package/dist/index110.mjs +1 -1
- package/dist/index41.mjs +17 -17
- package/dist/index42.mjs +2 -2
- package/dist/index59.mjs +30 -231
- package/dist/index60.mjs +42 -5
- package/dist/index61.mjs +228 -127
- package/dist/index62.mjs +4 -66
- package/dist/index63.mjs +124 -77
- package/dist/index64.mjs +65 -26
- package/dist/index65.mjs +84 -6
- package/dist/index66.mjs +26 -72
- package/dist/index67.mjs +8 -3
- package/dist/index68.mjs +75 -2
- package/dist/index69.mjs +3 -82
- package/dist/index70.mjs +2 -54
- package/dist/index71.mjs +82 -5
- package/dist/index72.mjs +53 -4
- package/dist/index73.mjs +5 -178
- package/dist/index74.mjs +5 -53
- package/dist/index75.mjs +178 -68
- package/dist/index76.mjs +50 -31
- package/dist/index77.mjs +69 -43
- package/dist/index80.mjs +1 -1
- package/dist/index81.mjs +1 -1
- package/dist/index82.mjs +5 -5
- package/dist/index84.mjs +2 -2
- package/dist/index86.mjs +2 -2
- package/dist/index88.mjs +1 -1
- package/dist/index90.mjs +4 -4
- package/dist/index91.mjs +3 -3
- package/dist/index92.mjs +1 -1
- package/dist/index93.mjs +3 -3
- package/dist/index98.mjs +1 -1
- package/package.json +6 -2
package/dist/index100.mjs
CHANGED
package/dist/index101.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import n from "./index87.mjs";
|
|
3
|
-
import m from "./
|
|
3
|
+
import m from "./index61.mjs";
|
|
4
4
|
import c from "./index109.mjs";
|
|
5
5
|
import h from "./index110.mjs";
|
|
6
6
|
import w from "./index83.mjs";
|
|
7
|
-
import b from "./
|
|
8
|
-
import C from "./
|
|
7
|
+
import b from "./index64.mjs";
|
|
8
|
+
import C from "./index75.mjs";
|
|
9
9
|
import g from "./index80.mjs";
|
|
10
10
|
const E = (a) => {
|
|
11
11
|
const e = b({}, a);
|
package/dist/index102.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import a from "./
|
|
3
|
-
import s from "./
|
|
4
|
-
import m from "./
|
|
2
|
+
import a from "./index67.mjs";
|
|
3
|
+
import s from "./index72.mjs";
|
|
4
|
+
import m from "./index61.mjs";
|
|
5
5
|
const h = (e, t) => {
|
|
6
6
|
const { length: l } = e = e ? e.filter(Boolean) : [];
|
|
7
7
|
if (t || l) {
|
package/dist/index110.mjs
CHANGED
package/dist/index41.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import a from "./
|
|
3
|
-
import p from "./
|
|
4
|
-
import m from "./
|
|
5
|
-
import i from "./
|
|
6
|
-
import f from "./
|
|
7
|
-
import l from "./
|
|
8
|
-
import c from "./
|
|
9
|
-
import d from "./
|
|
10
|
-
import u from "./
|
|
11
|
-
import { VERSION as x } from "./
|
|
12
|
-
import C from "./
|
|
13
|
-
import A from "./
|
|
14
|
-
import E from "./
|
|
15
|
-
import O from "./
|
|
16
|
-
import S from "./
|
|
17
|
-
import H from "./
|
|
18
|
-
import T from "./
|
|
2
|
+
import a from "./index61.mjs";
|
|
3
|
+
import p from "./index62.mjs";
|
|
4
|
+
import m from "./index63.mjs";
|
|
5
|
+
import i from "./index64.mjs";
|
|
6
|
+
import f from "./index65.mjs";
|
|
7
|
+
import l from "./index66.mjs";
|
|
8
|
+
import c from "./index67.mjs";
|
|
9
|
+
import d from "./index68.mjs";
|
|
10
|
+
import u from "./index69.mjs";
|
|
11
|
+
import { VERSION as x } from "./index70.mjs";
|
|
12
|
+
import C from "./index71.mjs";
|
|
13
|
+
import A from "./index72.mjs";
|
|
14
|
+
import E from "./index73.mjs";
|
|
15
|
+
import O from "./index74.mjs";
|
|
16
|
+
import S from "./index75.mjs";
|
|
17
|
+
import H from "./index76.mjs";
|
|
18
|
+
import T from "./index77.mjs";
|
|
19
19
|
function n(o) {
|
|
20
20
|
const t = new m(o), e = p(m.prototype.request, t);
|
|
21
21
|
return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
|
package/dist/index42.mjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
var p = Object.defineProperty;
|
|
3
3
|
var k = (r, e, i) => e in r ? p(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i;
|
|
4
4
|
var h = (r, e, i) => k(r, typeof e != "symbol" ? e + "" : e, i);
|
|
5
|
-
import { serialize as j } from "./
|
|
6
|
-
import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./
|
|
5
|
+
import { serialize as j } from "./index59.mjs";
|
|
6
|
+
import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index60.mjs";
|
|
7
7
|
var v = (r, e) => new Proxy(() => {
|
|
8
8
|
}, {
|
|
9
9
|
get(t, s) {
|
package/dist/index59.mjs
CHANGED
|
@@ -1,238 +1,37 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && B(e.buffer), t;
|
|
14
|
-
}
|
|
15
|
-
const k = O("string"), c = O("function"), E = O("number"), y = (e) => e !== null && typeof e == "object", N = (e) => e === !0 || e === !1, w = (e) => {
|
|
16
|
-
if (F(e) !== "object")
|
|
17
|
-
return !1;
|
|
18
|
-
const t = A(e);
|
|
19
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(S in e) && !(g in e);
|
|
20
|
-
}, U = (e) => {
|
|
21
|
-
if (!y(e) || d(e))
|
|
22
|
-
return !1;
|
|
23
|
-
try {
|
|
24
|
-
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
25
|
-
} catch {
|
|
26
|
-
return !1;
|
|
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");
|
|
27
13
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if (e === null || typeof e > "u")
|
|
35
|
-
return;
|
|
36
|
-
let r, s;
|
|
37
|
-
if (typeof e != "object" && (e = [e]), p(e))
|
|
38
|
-
for (r = 0, s = e.length; r < s; r++)
|
|
39
|
-
t.call(null, e[r], r, e);
|
|
40
|
-
else {
|
|
41
|
-
if (d(e))
|
|
42
|
-
return;
|
|
43
|
-
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
44
|
-
let l;
|
|
45
|
-
for (r = 0; r < i; r++)
|
|
46
|
-
l = o[r], t.call(null, e[l], l, e);
|
|
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}`;
|
|
47
20
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
let r = n.length, s;
|
|
55
|
-
for (; r-- > 0; )
|
|
56
|
-
if (s = n[r], t === s.toLowerCase())
|
|
57
|
-
return s;
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
const u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !a(e) && e !== u;
|
|
61
|
-
function h() {
|
|
62
|
-
const { caseless: e, skipUndefined: t } = L(this) && this || {}, n = {}, r = (s, o) => {
|
|
63
|
-
const i = e && P(n, o) || o;
|
|
64
|
-
w(n[i]) && w(s) ? n[i] = h(n[i], s) : w(s) ? n[i] = h({}, s) : p(s) ? n[i] = s.slice() : (!t || !a(s)) && (n[i] = s);
|
|
65
|
-
};
|
|
66
|
-
for (let s = 0, o = arguments.length; s < o; s++)
|
|
67
|
-
arguments[s] && m(arguments[s], r);
|
|
68
|
-
return n;
|
|
69
|
-
}
|
|
70
|
-
const X = (e, t, n, { allOwnKeys: r } = {}) => (m(t, (s, o) => {
|
|
71
|
-
n && c(s) ? e[o] = R(s, n) : e[o] = s;
|
|
72
|
-
}, { allOwnKeys: r }), e), Y = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Z = (e, t, n, r) => {
|
|
73
|
-
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
74
|
-
value: t.prototype
|
|
75
|
-
}), n && Object.assign(e.prototype, n);
|
|
76
|
-
}, j = (e, t, n, r) => {
|
|
77
|
-
let s, o, i;
|
|
78
|
-
const l = {};
|
|
79
|
-
if (t = t || {}, e == null) return t;
|
|
80
|
-
do {
|
|
81
|
-
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
82
|
-
i = s[o], (!r || r(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
|
|
83
|
-
e = n !== !1 && A(e);
|
|
84
|
-
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
85
|
-
return t;
|
|
86
|
-
}, v = (e, t, n) => {
|
|
87
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
88
|
-
const r = e.indexOf(t, n);
|
|
89
|
-
return r !== -1 && r === n;
|
|
90
|
-
}, ee = (e) => {
|
|
91
|
-
if (!e) return null;
|
|
92
|
-
if (p(e)) return e;
|
|
93
|
-
let t = e.length;
|
|
94
|
-
if (!E(t)) return null;
|
|
95
|
-
const n = new Array(t);
|
|
96
|
-
for (; t-- > 0; )
|
|
97
|
-
n[t] = e[t];
|
|
98
|
-
return n;
|
|
99
|
-
}, te = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && A(Uint8Array)), ne = (e, t) => {
|
|
100
|
-
const r = (e && e[g]).call(e);
|
|
101
|
-
let s;
|
|
102
|
-
for (; (s = r.next()) && !s.done; ) {
|
|
103
|
-
const o = s.value;
|
|
104
|
-
t.call(e, o[0], o[1]);
|
|
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()}`;
|
|
105
27
|
}
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
r.push(n);
|
|
111
|
-
return r;
|
|
112
|
-
}, se = f("HTMLFormElement"), oe = (e) => e.toLowerCase().replace(
|
|
113
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
114
|
-
function(n, r, s) {
|
|
115
|
-
return r.toUpperCase() + s;
|
|
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";
|
|
116
32
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
m(n, (s, o) => {
|
|
120
|
-
let i;
|
|
121
|
-
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
122
|
-
}), Object.defineProperties(e, r);
|
|
123
|
-
}, ce = (e) => {
|
|
124
|
-
C(e, (t, n) => {
|
|
125
|
-
if (c(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
126
|
-
return !1;
|
|
127
|
-
const r = e[n];
|
|
128
|
-
if (c(r)) {
|
|
129
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
130
|
-
t.writable = !1;
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
t.set || (t.set = () => {
|
|
134
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}, fe = (e, t) => {
|
|
139
|
-
const n = {}, r = (s) => {
|
|
140
|
-
s.forEach((o) => {
|
|
141
|
-
n[o] = !0;
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
return p(e) ? r(e) : r(String(e).split(t)), n;
|
|
145
|
-
}, le = () => {
|
|
146
|
-
}, ue = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
147
|
-
function ae(e) {
|
|
148
|
-
return !!(e && c(e.append) && e[S] === "FormData" && e[g]);
|
|
149
|
-
}
|
|
150
|
-
const pe = (e) => {
|
|
151
|
-
const t = new Array(10), n = (r, s) => {
|
|
152
|
-
if (y(r)) {
|
|
153
|
-
if (t.indexOf(r) >= 0)
|
|
154
|
-
return;
|
|
155
|
-
if (d(r))
|
|
156
|
-
return r;
|
|
157
|
-
if (!("toJSON" in r)) {
|
|
158
|
-
t[s] = r;
|
|
159
|
-
const o = p(r) ? [] : {};
|
|
160
|
-
return m(r, (i, l) => {
|
|
161
|
-
const b = n(i, s + 1);
|
|
162
|
-
!a(b) && (o[l] = b);
|
|
163
|
-
}), t[s] = void 0, o;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
return r;
|
|
167
|
-
};
|
|
168
|
-
return n(e, 0);
|
|
169
|
-
}, de = f("AsyncFunction"), ye = (e) => e && (y(e) || c(e)) && c(e.then) && c(e.catch), D = ((e, t) => e ? setImmediate : t ? ((n, r) => (u.addEventListener("message", ({ source: s, data: o }) => {
|
|
170
|
-
s === u && o === n && r.length && r.shift()();
|
|
171
|
-
}, !1), (s) => {
|
|
172
|
-
r.push(s), u.postMessage(n, "*");
|
|
173
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
174
|
-
typeof setImmediate == "function",
|
|
175
|
-
c(u.postMessage)
|
|
176
|
-
), me = typeof queueMicrotask < "u" ? queueMicrotask.bind(u) : typeof process < "u" && process.nextTick || D, we = (e) => e != null && c(e[g]), Fe = {
|
|
177
|
-
isArray: p,
|
|
178
|
-
isArrayBuffer: B,
|
|
179
|
-
isBuffer: d,
|
|
180
|
-
isFormData: z,
|
|
181
|
-
isArrayBufferView: M,
|
|
182
|
-
isString: k,
|
|
183
|
-
isNumber: E,
|
|
184
|
-
isBoolean: N,
|
|
185
|
-
isObject: y,
|
|
186
|
-
isPlainObject: w,
|
|
187
|
-
isEmptyObject: U,
|
|
188
|
-
isReadableStream: K,
|
|
189
|
-
isRequest: $,
|
|
190
|
-
isResponse: W,
|
|
191
|
-
isHeaders: G,
|
|
192
|
-
isUndefined: a,
|
|
193
|
-
isDate: I,
|
|
194
|
-
isFile: V,
|
|
195
|
-
isBlob: _,
|
|
196
|
-
isRegExp: ie,
|
|
197
|
-
isFunction: c,
|
|
198
|
-
isStream: H,
|
|
199
|
-
isURLSearchParams: J,
|
|
200
|
-
isTypedArray: te,
|
|
201
|
-
isFileList: q,
|
|
202
|
-
forEach: m,
|
|
203
|
-
merge: h,
|
|
204
|
-
extend: X,
|
|
205
|
-
trim: Q,
|
|
206
|
-
stripBOM: Y,
|
|
207
|
-
inherits: Z,
|
|
208
|
-
toFlatObject: j,
|
|
209
|
-
kindOf: F,
|
|
210
|
-
kindOfTest: f,
|
|
211
|
-
endsWith: v,
|
|
212
|
-
toArray: ee,
|
|
213
|
-
forEachEntry: ne,
|
|
214
|
-
matchAll: re,
|
|
215
|
-
isHTMLForm: se,
|
|
216
|
-
hasOwnProperty: x,
|
|
217
|
-
hasOwnProp: x,
|
|
218
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
219
|
-
reduceDescriptors: C,
|
|
220
|
-
freezeMethods: ce,
|
|
221
|
-
toObjectSet: fe,
|
|
222
|
-
toCamelCase: oe,
|
|
223
|
-
noop: le,
|
|
224
|
-
toFiniteNumber: ue,
|
|
225
|
-
findKey: P,
|
|
226
|
-
global: u,
|
|
227
|
-
isContextDefined: L,
|
|
228
|
-
isSpecCompliantForm: ae,
|
|
229
|
-
toJSONObject: pe,
|
|
230
|
-
isAsyncFn: de,
|
|
231
|
-
isThenable: ye,
|
|
232
|
-
setImmediate: D,
|
|
233
|
-
asap: me,
|
|
234
|
-
isIterable: we
|
|
235
|
-
};
|
|
33
|
+
return r;
|
|
34
|
+
}, s = (i, t, e) => (t = encodeURIComponent(t), a(i, t, e));
|
|
236
35
|
export {
|
|
237
|
-
|
|
36
|
+
s as serialize
|
|
238
37
|
};
|
package/dist/index60.mjs
CHANGED
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
38
|
}
|
|
7
39
|
export {
|
|
8
|
-
|
|
40
|
+
f as buildSearchParams,
|
|
41
|
+
o as deepMerge,
|
|
42
|
+
s as mergePath,
|
|
43
|
+
l as removeIndexString,
|
|
44
|
+
p as replaceUrlParam,
|
|
45
|
+
i as replaceUrlProtocol
|
|
9
46
|
};
|