@instockng/storefront-ui 1.0.20 → 1.0.22
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/components/ui/modal.d.ts +1 -1
- package/dist/components/ui/modal.d.ts.map +1 -1
- package/dist/contexts/CartContext.d.ts +2 -0
- package/dist/contexts/CartContext.d.ts.map +1 -1
- package/dist/index134.mjs +2 -2
- package/dist/index135.mjs +1 -1
- package/dist/index136.mjs +6 -6
- package/dist/index137.mjs +2 -2
- package/dist/index138.mjs +2 -2
- package/dist/index140.mjs +2 -2
- package/dist/index141.mjs +2 -2
- package/dist/index142.mjs +1 -1
- package/dist/index144.mjs +8 -8
- package/dist/index145.mjs +8 -8
- package/dist/index150.mjs +1 -1
- package/dist/index151.mjs +1 -1
- package/dist/index152.mjs +1 -1
- package/dist/index153.mjs +1 -1
- package/dist/index154.mjs +1 -1
- package/dist/index156.mjs +1 -1
- package/dist/index157.mjs +1 -1
- package/dist/index159.mjs +2 -2
- package/dist/index160.mjs +1 -1
- package/dist/index167.mjs +1 -1
- package/dist/index169.mjs +2 -2
- package/dist/index170.mjs +5 -5
- package/dist/index173.mjs +1 -1
- package/dist/index186.mjs +1 -1
- package/dist/index190.mjs +1 -1
- package/dist/index192.mjs +1 -1
- package/dist/index203.mjs +1 -1
- package/dist/index204.mjs +1 -1
- package/dist/index205.mjs +2 -2
- package/dist/index206.mjs +2 -108
- package/dist/index207.mjs +2 -2
- package/dist/index208.mjs +2 -2
- package/dist/index209.mjs +2 -2
- package/dist/index210.mjs +2 -2
- package/dist/index211.mjs +2 -2
- package/dist/index212.mjs +2 -2
- package/dist/index213.mjs +108 -2
- package/dist/index214.mjs +2 -2
- package/dist/index216.mjs +3 -3
- package/dist/index217.mjs +2 -2
- package/dist/index218.mjs +244 -2
- package/dist/index219.mjs +2 -244
- package/dist/index220.mjs +33 -2
- package/dist/index221.mjs +60 -28
- package/dist/index222.mjs +20 -60
- package/dist/index223.mjs +2 -25
- package/dist/index224.mjs +2 -2
- package/dist/index229.mjs +2 -2
- package/dist/index230.mjs +2 -2
- package/dist/index234.mjs +2 -31
- package/dist/index235.mjs +2 -11
- package/dist/index236.mjs +30 -3
- package/dist/index237.mjs +10 -3
- package/dist/index238.mjs +4 -13
- package/dist/index239.mjs +4 -7
- package/dist/index240.mjs +13 -12
- package/dist/index241.mjs +7 -5
- package/dist/index242.mjs +12 -33
- package/dist/index243.mjs +5 -31
- package/dist/index244.mjs +32 -27
- package/dist/index245.mjs +28 -58
- package/dist/index246.mjs +28 -2
- package/dist/index247.mjs +61 -2
- package/dist/index248.mjs +2 -2
- package/dist/index249.mjs +18 -2
- package/dist/index25.mjs +48 -48
- package/dist/index250.mjs +42 -13
- package/dist/index251.mjs +2 -47
- package/dist/index252.mjs +2 -2
- package/dist/index253.mjs +2 -2
- package/dist/index254.mjs +2 -2
- package/dist/index255.mjs +91 -2
- package/dist/index256.mjs +2 -91
- package/dist/index258.mjs +1 -1
- package/dist/index264.mjs +1 -1
- package/dist/index3.mjs +133 -102
- package/dist/index32.mjs +26 -26
- package/dist/index37.mjs +72 -52
- package/dist/index38.mjs +1 -1
- package/dist/index4.mjs +53 -48
- package/dist/index42.mjs +1 -1
- package/dist/index47.mjs +17 -17
- package/dist/index48.mjs +2 -2
- package/dist/index62.mjs +19 -149
- package/dist/index63.mjs +149 -19
- package/dist/index66.mjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index75.mjs +2 -235
- package/dist/index76.mjs +233 -4
- package/dist/index77.mjs +5 -133
- package/dist/index78.mjs +129 -63
- package/dist/index79.mjs +67 -86
- package/dist/index80.mjs +85 -27
- package/dist/index81.mjs +28 -8
- package/dist/index82.mjs +8 -74
- package/dist/index83.mjs +74 -3
- package/dist/index84.mjs +4 -2
- package/dist/index85.mjs +2 -83
- package/dist/index86.mjs +81 -52
- package/dist/index87.mjs +53 -5
- package/dist/index88.mjs +5 -4
- package/dist/index89.mjs +4 -178
- package/dist/index90.mjs +174 -48
- package/dist/index91.mjs +51 -67
- package/dist/index92.mjs +69 -34
- package/dist/index93.mjs +31 -40
- package/dist/index94.mjs +43 -2
- package/dist/providers/MetaPixelProvider.d.ts +10 -5
- package/dist/providers/MetaPixelProvider.d.ts.map +1 -1
- package/package.json +9 -10
- package/src/components/ui/modal.tsx +1 -1
- package/src/contexts/CartContext.tsx +69 -6
- package/src/providers/MetaPixelProvider.tsx +46 -30
|
@@ -27,5 +27,5 @@ export interface ModalProps {
|
|
|
27
27
|
/** Whether to show the close button */
|
|
28
28
|
showCloseButton?: boolean;
|
|
29
29
|
}
|
|
30
|
-
export declare function Modal({ isOpen, onClose, title, children, footer, className, contentClassName, size, closeOnOverlayClick, showCloseButton, }: ModalProps):
|
|
30
|
+
export declare function Modal({ isOpen, onClose, title, children, footer, className, contentClassName, size, closeOnOverlayClick, showCloseButton, }: ModalProps): React.ReactElement | null;
|
|
31
31
|
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/ui/modal.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,MAAM,WAAW,UAAU;IACzB,gCAAgC;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,uCAAuC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mDAAmD;IACnD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,oBAAoB;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,yCAAyC;IACzC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wBAAwB;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAA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,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAoIxC"}
|
|
@@ -30,6 +30,8 @@ interface CartContextValue {
|
|
|
30
30
|
applyDiscount: (code: string) => Promise<void>;
|
|
31
31
|
/** Remove discount code */
|
|
32
32
|
removeDiscount: () => Promise<void>;
|
|
33
|
+
/** Track InitiateCheckout event (call when user starts checkout flow) */
|
|
34
|
+
trackCheckoutInitiated: () => void;
|
|
33
35
|
/** Clear cart (removes from localStorage) */
|
|
34
36
|
clearCart: () => void;
|
|
35
37
|
/** Clear cart and create a new one immediately */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartContext.d.ts","sourceRoot":"","sources":["../../src/contexts/CartContext.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,EAAkD,SAAS,EAAuB,MAAM,OAAO,CAAC;AACvG,OAAO,EAGL,aAAa,EAMb,eAAe,EACf,KAAK,IAAI,EACV,MAAM,uBAAuB,CAAC;AAM/B,UAAU,gBAAgB;IACxB,wBAAwB;IACxB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,mDAAmD;IACnD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oBAAoB;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,kBAAkB;IAClB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,gDAAgD;IAChD,kBAAkB,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IACrD,+CAA+C;IAC/C,gBAAgB,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IACrD,uDAAuD;IACvD,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnH,2BAA2B;IAC3B,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EA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OAAO,CAAC;IAChB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,2BAA2B;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,kDAA+C,CAAC;AAExE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,4BAA4B,EAAE,iBAAiB,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC;CACxG;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,EAAE,iBAAiB,2CAyUxG;AAED;;GAEG;AACH,wBAAgB,OAAO,qBAMtB"}
|
package/dist/index134.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import f from "./
|
|
3
|
-
import d from "./
|
|
2
|
+
import f from "./index76.mjs";
|
|
3
|
+
import d from "./index236.mjs";
|
|
4
4
|
function l(e) {
|
|
5
5
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
6
6
|
}
|
package/dist/index135.mjs
CHANGED
package/dist/index136.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import r from "./
|
|
3
|
-
import p from "./
|
|
4
|
-
import l from "./
|
|
5
|
-
import m from "./
|
|
6
|
-
import a from "./
|
|
7
|
-
import o from "./
|
|
2
|
+
import r from "./index237.mjs";
|
|
3
|
+
import p from "./index84.mjs";
|
|
4
|
+
import l from "./index80.mjs";
|
|
5
|
+
import m from "./index82.mjs";
|
|
6
|
+
import a from "./index90.mjs";
|
|
7
|
+
import o from "./index91.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/index137.mjs
CHANGED
package/dist/index138.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { VERSION as w } from "./
|
|
3
|
-
import s from "./
|
|
2
|
+
import { VERSION as w } from "./index85.mjs";
|
|
3
|
+
import s from "./index87.mjs";
|
|
4
4
|
const l = {};
|
|
5
5
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
|
|
6
6
|
l[n] = function(o) {
|
package/dist/index140.mjs
CHANGED
package/dist/index141.mjs
CHANGED
package/dist/index142.mjs
CHANGED
package/dist/index144.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import H from "./
|
|
3
|
-
import D from "./
|
|
2
|
+
import H from "./index76.mjs";
|
|
3
|
+
import D from "./index242.mjs";
|
|
4
4
|
import L from "./index139.mjs";
|
|
5
|
-
import n from "./
|
|
6
|
-
import y from "./
|
|
7
|
-
import O from "./
|
|
5
|
+
import n from "./index87.mjs";
|
|
6
|
+
import y from "./index82.mjs";
|
|
7
|
+
import O from "./index243.mjs";
|
|
8
8
|
import U from "./index141.mjs";
|
|
9
|
-
import q from "./
|
|
10
|
-
import { progressEventReducer as A } from "./
|
|
11
|
-
import v from "./
|
|
9
|
+
import q from "./index90.mjs";
|
|
10
|
+
import { progressEventReducer as A } from "./index244.mjs";
|
|
11
|
+
import v from "./index245.mjs";
|
|
12
12
|
const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
|
|
13
13
|
return new Promise(function(C, i) {
|
|
14
14
|
const t = v(s);
|
package/dist/index145.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import K from "./index141.mjs";
|
|
3
|
-
import t from "./
|
|
4
|
-
import b from "./
|
|
5
|
-
import ee from "./
|
|
6
|
-
import { trackStream as z } from "./
|
|
7
|
-
import te from "./
|
|
8
|
-
import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./
|
|
9
|
-
import se from "./
|
|
10
|
-
import re from "./
|
|
3
|
+
import t from "./index76.mjs";
|
|
4
|
+
import b from "./index87.mjs";
|
|
5
|
+
import ee from "./index246.mjs";
|
|
6
|
+
import { trackStream as z } from "./index247.mjs";
|
|
7
|
+
import te from "./index90.mjs";
|
|
8
|
+
import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./index244.mjs";
|
|
9
|
+
import se from "./index245.mjs";
|
|
10
|
+
import re from "./index242.mjs";
|
|
11
11
|
const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: r, Response: n }) => ({
|
|
12
12
|
Request: r,
|
|
13
13
|
Response: n
|
package/dist/index150.mjs
CHANGED
package/dist/index151.mjs
CHANGED
package/dist/index152.mjs
CHANGED
package/dist/index153.mjs
CHANGED
package/dist/index154.mjs
CHANGED
package/dist/index156.mjs
CHANGED
package/dist/index157.mjs
CHANGED
package/dist/index159.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as e } from "./
|
|
3
|
-
import { __require as f } from "./
|
|
2
|
+
import { __exports as e } from "./index212.mjs";
|
|
3
|
+
import { __require as f } from "./index213.mjs";
|
|
4
4
|
import { __require as _ } from "./index104.mjs";
|
|
5
5
|
var i;
|
|
6
6
|
function R() {
|
package/dist/index160.mjs
CHANGED
package/dist/index167.mjs
CHANGED
package/dist/index169.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as n } from "./
|
|
3
|
-
import { __require as d } from "./
|
|
2
|
+
import { __exports as n } from "./index217.mjs";
|
|
3
|
+
import { __require as d } from "./index218.mjs";
|
|
4
4
|
var o;
|
|
5
5
|
function p() {
|
|
6
6
|
return o ? n : (o = 1, function(i) {
|
package/dist/index170.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as A } from "./
|
|
3
|
-
import { __require as T } from "./
|
|
2
|
+
import { __exports as A } from "./index219.mjs";
|
|
3
|
+
import { __require as T } from "./index218.mjs";
|
|
4
4
|
import { __require as L } from "./index173.mjs";
|
|
5
|
-
import { __require as N } from "./
|
|
5
|
+
import { __require as N } from "./index220.mjs";
|
|
6
6
|
import { __require as U } from "./index165.mjs";
|
|
7
|
-
import { __require as j } from "./
|
|
8
|
-
import { __require as v } from "./
|
|
7
|
+
import { __require as j } from "./index221.mjs";
|
|
8
|
+
import { __require as v } from "./index222.mjs";
|
|
9
9
|
var S;
|
|
10
10
|
function W() {
|
|
11
11
|
return S ? A : (S = 1, function(R) {
|
package/dist/index173.mjs
CHANGED
package/dist/index186.mjs
CHANGED
package/dist/index190.mjs
CHANGED
package/dist/index192.mjs
CHANGED
package/dist/index203.mjs
CHANGED
package/dist/index204.mjs
CHANGED
package/dist/index205.mjs
CHANGED
package/dist/index206.mjs
CHANGED
|
@@ -1,111 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
var p;
|
|
4
|
-
function S() {
|
|
5
|
-
return p ? m : (p = 1, function(d) {
|
|
6
|
-
Object.defineProperty(d, "__esModule", {
|
|
7
|
-
value: !0
|
|
8
|
-
});
|
|
9
|
-
function g(o, e) {
|
|
10
|
-
for (var r in e) Object.defineProperty(o, r, {
|
|
11
|
-
enumerable: !0,
|
|
12
|
-
get: e[r]
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
g(d, {
|
|
16
|
-
getSortedRouteObjects: function() {
|
|
17
|
-
return w;
|
|
18
|
-
},
|
|
19
|
-
getSortedRoutes: function() {
|
|
20
|
-
return f;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
class h {
|
|
24
|
-
insert(e) {
|
|
25
|
-
this._insert(e.split("/").filter(Boolean), [], !1);
|
|
26
|
-
}
|
|
27
|
-
smoosh() {
|
|
28
|
-
return this._smoosh();
|
|
29
|
-
}
|
|
30
|
-
_smoosh(e) {
|
|
31
|
-
e === void 0 && (e = "/");
|
|
32
|
-
const r = [
|
|
33
|
-
...this.children.keys()
|
|
34
|
-
].sort();
|
|
35
|
-
this.slugName !== null && r.splice(r.indexOf("[]"), 1), this.restSlugName !== null && r.splice(r.indexOf("[...]"), 1), this.optionalRestSlugName !== null && r.splice(r.indexOf("[[...]]"), 1);
|
|
36
|
-
const n = r.map((s) => this.children.get(s)._smoosh("" + e + s + "/")).reduce((s, t) => [
|
|
37
|
-
...s,
|
|
38
|
-
...t
|
|
39
|
-
], []);
|
|
40
|
-
if (this.slugName !== null && n.push(...this.children.get("[]")._smoosh(e + "[" + this.slugName + "]/")), !this.placeholder) {
|
|
41
|
-
const s = e === "/" ? "/" : e.slice(0, -1);
|
|
42
|
-
if (this.optionalRestSlugName != null)
|
|
43
|
-
throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + s + '" and "' + s + "[[..." + this.optionalRestSlugName + ']]").');
|
|
44
|
-
n.unshift(s);
|
|
45
|
-
}
|
|
46
|
-
return this.restSlugName !== null && n.push(...this.children.get("[...]")._smoosh(e + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && n.push(...this.children.get("[[...]]")._smoosh(e + "[[..." + this.optionalRestSlugName + "]]/")), n;
|
|
47
|
-
}
|
|
48
|
-
_insert(e, r, n) {
|
|
49
|
-
if (e.length === 0) {
|
|
50
|
-
this.placeholder = !1;
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
if (n)
|
|
54
|
-
throw new Error("Catch-all must be the last part of the URL.");
|
|
55
|
-
let s = e[0];
|
|
56
|
-
if (s.startsWith("[") && s.endsWith("]")) {
|
|
57
|
-
let l = function(u, a) {
|
|
58
|
-
if (u !== null && u !== a)
|
|
59
|
-
throw new Error("You cannot use different slug names for the same dynamic path ('" + u + "' !== '" + a + "').");
|
|
60
|
-
r.forEach((c) => {
|
|
61
|
-
if (c === a)
|
|
62
|
-
throw new Error('You cannot have the same slug name "' + a + '" repeat within a single dynamic path');
|
|
63
|
-
if (c.replace(/\W/g, "") === s.replace(/\W/g, ""))
|
|
64
|
-
throw new Error('You cannot have the slug names "' + c + '" and "' + a + '" differ only by non-word symbols within a single dynamic path');
|
|
65
|
-
}), r.push(a);
|
|
66
|
-
}, t = s.slice(1, -1), i = !1;
|
|
67
|
-
if (t.startsWith("[") && t.endsWith("]") && (t = t.slice(1, -1), i = !0), t.startsWith("…"))
|
|
68
|
-
throw new Error("Detected a three-dot character ('…') at ('" + t + "'). Did you mean ('...')?");
|
|
69
|
-
if (t.startsWith("...") && (t = t.substring(3), n = !0), t.startsWith("[") || t.endsWith("]"))
|
|
70
|
-
throw new Error("Segment names may not start or end with extra brackets ('" + t + "').");
|
|
71
|
-
if (t.startsWith("."))
|
|
72
|
-
throw new Error("Segment names may not start with erroneous periods ('" + t + "').");
|
|
73
|
-
if (n)
|
|
74
|
-
if (i) {
|
|
75
|
-
if (this.restSlugName != null)
|
|
76
|
-
throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + e[0] + '" ).');
|
|
77
|
-
l(this.optionalRestSlugName, t), this.optionalRestSlugName = t, s = "[[...]]";
|
|
78
|
-
} else {
|
|
79
|
-
if (this.optionalRestSlugName != null)
|
|
80
|
-
throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + e[0] + '").');
|
|
81
|
-
l(this.restSlugName, t), this.restSlugName = t, s = "[...]";
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
if (i)
|
|
85
|
-
throw new Error('Optional route parameters are not yet supported ("' + e[0] + '").');
|
|
86
|
-
l(this.slugName, t), this.slugName = t, s = "[]";
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
this.children.has(s) || this.children.set(s, new h()), this.children.get(s)._insert(e.slice(1), r, n);
|
|
90
|
-
}
|
|
91
|
-
constructor() {
|
|
92
|
-
this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
function f(o) {
|
|
96
|
-
const e = new h();
|
|
97
|
-
return o.forEach((r) => e.insert(r)), e.smoosh();
|
|
98
|
-
}
|
|
99
|
-
function w(o, e) {
|
|
100
|
-
const r = {}, n = [];
|
|
101
|
-
for (let t = 0; t < o.length; t++) {
|
|
102
|
-
const i = e(o[t]);
|
|
103
|
-
r[i] = t, n[t] = i;
|
|
104
|
-
}
|
|
105
|
-
return f(n).map((t) => o[r[t]]);
|
|
106
|
-
}
|
|
107
|
-
}(m), m);
|
|
108
|
-
}
|
|
2
|
+
var r = { exports: {} };
|
|
109
3
|
export {
|
|
110
|
-
|
|
4
|
+
r as __module
|
|
111
5
|
};
|
package/dist/index207.mjs
CHANGED
package/dist/index208.mjs
CHANGED
package/dist/index209.mjs
CHANGED
package/dist/index210.mjs
CHANGED
package/dist/index211.mjs
CHANGED
package/dist/index212.mjs
CHANGED
package/dist/index213.mjs
CHANGED
|
@@ -1,5 +1,111 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
import { __exports as m } from "./index256.mjs";
|
|
3
|
+
var p;
|
|
4
|
+
function S() {
|
|
5
|
+
return p ? m : (p = 1, function(d) {
|
|
6
|
+
Object.defineProperty(d, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
});
|
|
9
|
+
function g(o, e) {
|
|
10
|
+
for (var r in e) Object.defineProperty(o, r, {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: e[r]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
g(d, {
|
|
16
|
+
getSortedRouteObjects: function() {
|
|
17
|
+
return w;
|
|
18
|
+
},
|
|
19
|
+
getSortedRoutes: function() {
|
|
20
|
+
return f;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
class h {
|
|
24
|
+
insert(e) {
|
|
25
|
+
this._insert(e.split("/").filter(Boolean), [], !1);
|
|
26
|
+
}
|
|
27
|
+
smoosh() {
|
|
28
|
+
return this._smoosh();
|
|
29
|
+
}
|
|
30
|
+
_smoosh(e) {
|
|
31
|
+
e === void 0 && (e = "/");
|
|
32
|
+
const r = [
|
|
33
|
+
...this.children.keys()
|
|
34
|
+
].sort();
|
|
35
|
+
this.slugName !== null && r.splice(r.indexOf("[]"), 1), this.restSlugName !== null && r.splice(r.indexOf("[...]"), 1), this.optionalRestSlugName !== null && r.splice(r.indexOf("[[...]]"), 1);
|
|
36
|
+
const n = r.map((s) => this.children.get(s)._smoosh("" + e + s + "/")).reduce((s, t) => [
|
|
37
|
+
...s,
|
|
38
|
+
...t
|
|
39
|
+
], []);
|
|
40
|
+
if (this.slugName !== null && n.push(...this.children.get("[]")._smoosh(e + "[" + this.slugName + "]/")), !this.placeholder) {
|
|
41
|
+
const s = e === "/" ? "/" : e.slice(0, -1);
|
|
42
|
+
if (this.optionalRestSlugName != null)
|
|
43
|
+
throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + s + '" and "' + s + "[[..." + this.optionalRestSlugName + ']]").');
|
|
44
|
+
n.unshift(s);
|
|
45
|
+
}
|
|
46
|
+
return this.restSlugName !== null && n.push(...this.children.get("[...]")._smoosh(e + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && n.push(...this.children.get("[[...]]")._smoosh(e + "[[..." + this.optionalRestSlugName + "]]/")), n;
|
|
47
|
+
}
|
|
48
|
+
_insert(e, r, n) {
|
|
49
|
+
if (e.length === 0) {
|
|
50
|
+
this.placeholder = !1;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (n)
|
|
54
|
+
throw new Error("Catch-all must be the last part of the URL.");
|
|
55
|
+
let s = e[0];
|
|
56
|
+
if (s.startsWith("[") && s.endsWith("]")) {
|
|
57
|
+
let l = function(u, a) {
|
|
58
|
+
if (u !== null && u !== a)
|
|
59
|
+
throw new Error("You cannot use different slug names for the same dynamic path ('" + u + "' !== '" + a + "').");
|
|
60
|
+
r.forEach((c) => {
|
|
61
|
+
if (c === a)
|
|
62
|
+
throw new Error('You cannot have the same slug name "' + a + '" repeat within a single dynamic path');
|
|
63
|
+
if (c.replace(/\W/g, "") === s.replace(/\W/g, ""))
|
|
64
|
+
throw new Error('You cannot have the slug names "' + c + '" and "' + a + '" differ only by non-word symbols within a single dynamic path');
|
|
65
|
+
}), r.push(a);
|
|
66
|
+
}, t = s.slice(1, -1), i = !1;
|
|
67
|
+
if (t.startsWith("[") && t.endsWith("]") && (t = t.slice(1, -1), i = !0), t.startsWith("…"))
|
|
68
|
+
throw new Error("Detected a three-dot character ('…') at ('" + t + "'). Did you mean ('...')?");
|
|
69
|
+
if (t.startsWith("...") && (t = t.substring(3), n = !0), t.startsWith("[") || t.endsWith("]"))
|
|
70
|
+
throw new Error("Segment names may not start or end with extra brackets ('" + t + "').");
|
|
71
|
+
if (t.startsWith("."))
|
|
72
|
+
throw new Error("Segment names may not start with erroneous periods ('" + t + "').");
|
|
73
|
+
if (n)
|
|
74
|
+
if (i) {
|
|
75
|
+
if (this.restSlugName != null)
|
|
76
|
+
throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + e[0] + '" ).');
|
|
77
|
+
l(this.optionalRestSlugName, t), this.optionalRestSlugName = t, s = "[[...]]";
|
|
78
|
+
} else {
|
|
79
|
+
if (this.optionalRestSlugName != null)
|
|
80
|
+
throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + e[0] + '").');
|
|
81
|
+
l(this.restSlugName, t), this.restSlugName = t, s = "[...]";
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
if (i)
|
|
85
|
+
throw new Error('Optional route parameters are not yet supported ("' + e[0] + '").');
|
|
86
|
+
l(this.slugName, t), this.slugName = t, s = "[]";
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
this.children.has(s) || this.children.set(s, new h()), this.children.get(s)._insert(e.slice(1), r, n);
|
|
90
|
+
}
|
|
91
|
+
constructor() {
|
|
92
|
+
this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function f(o) {
|
|
96
|
+
const e = new h();
|
|
97
|
+
return o.forEach((r) => e.insert(r)), e.smoosh();
|
|
98
|
+
}
|
|
99
|
+
function w(o, e) {
|
|
100
|
+
const r = {}, n = [];
|
|
101
|
+
for (let t = 0; t < o.length; t++) {
|
|
102
|
+
const i = e(o[t]);
|
|
103
|
+
r[i] = t, n[t] = i;
|
|
104
|
+
}
|
|
105
|
+
return f(n).map((t) => o[r[t]]);
|
|
106
|
+
}
|
|
107
|
+
}(m), m);
|
|
108
|
+
}
|
|
3
109
|
export {
|
|
4
|
-
|
|
110
|
+
S as __require
|
|
5
111
|
};
|
package/dist/index214.mjs
CHANGED