@instockng/storefront-ui 1.0.91 → 1.0.93
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/AddOnsDiscountScreen.d.ts +10 -0
- package/dist/components/AddOnsDiscountScreen.d.ts.map +1 -0
- package/dist/components/FreeShippingProgress.d.ts +2 -0
- package/dist/components/FreeShippingProgress.d.ts.map +1 -0
- package/dist/components/ShoppingCart.d.ts.map +1 -1
- package/dist/components/VariantPickerModal.d.ts +3 -1
- package/dist/components/VariantPickerModal.d.ts.map +1 -1
- package/dist/contexts/CartContext.d.ts +1 -1
- package/dist/contexts/CartContext.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +119 -115
- package/dist/index10.mjs +3 -3
- package/dist/index100.mjs +8 -3
- package/dist/index101.mjs +75 -2
- package/dist/index102.mjs +3 -82
- package/dist/index103.mjs +2 -54
- package/dist/index104.mjs +82 -5
- package/dist/index105.mjs +53 -4
- package/dist/index106.mjs +5 -178
- package/dist/index107.mjs +5 -53
- package/dist/index108.mjs +178 -68
- package/dist/index109.mjs +53 -2
- package/dist/index11.mjs +5 -5
- package/dist/index110.mjs +69 -28
- package/dist/index111.mjs +2 -18
- package/dist/index112.mjs +26 -213
- package/dist/index113.mjs +13 -175
- package/dist/index114.mjs +210 -17
- package/dist/index115.mjs +174 -17
- package/dist/index116.mjs +14 -25
- package/dist/index117.mjs +17 -150
- package/dist/index118.mjs +26 -13
- package/dist/index119.mjs +149 -24
- package/dist/index12.mjs +4 -4
- package/dist/index120.mjs +13 -77
- package/dist/index121.mjs +20 -27
- package/dist/index122.mjs +76 -137
- package/dist/index123.mjs +33 -50
- package/dist/index124.mjs +141 -19
- package/dist/index125.mjs +50 -22
- package/dist/index126.mjs +14 -14
- package/dist/index127.mjs +20 -18
- package/dist/index128.mjs +16 -14
- package/dist/index129.mjs +17 -14
- package/dist/index13.mjs +49 -42
- package/dist/index130.mjs +12 -12
- package/dist/index131.mjs +15 -58
- package/dist/index132.mjs +14 -11
- package/dist/index133.mjs +56 -30
- package/dist/index134.mjs +9 -15
- package/dist/index135.mjs +31 -26
- package/dist/index136.mjs +13 -16
- package/dist/index137.mjs +26 -11
- package/dist/index138.mjs +17 -11
- package/dist/index139.mjs +12 -40
- package/dist/index14.mjs +1 -1
- package/dist/index140.mjs +14 -16
- package/dist/index141.mjs +42 -263
- package/dist/index142.mjs +15 -62
- package/dist/index143.mjs +267 -7
- package/dist/index144.mjs +70 -2
- package/dist/index145.mjs +8 -2
- package/dist/index146.mjs +2 -33
- package/dist/index147.mjs +2 -2
- package/dist/index148.mjs +33 -2
- package/dist/index149.mjs +2 -2
- package/dist/index15.mjs +1 -1
- package/dist/index150.mjs +2 -2
- package/dist/index151.mjs +2 -2
- package/dist/index152.mjs +2 -18
- package/dist/index153.mjs +2 -32
- package/dist/index154.mjs +14 -34
- package/dist/index155.mjs +25 -11
- package/dist/index156.mjs +34 -14
- package/dist/index157.mjs +18 -2
- package/dist/index158.mjs +11 -13
- package/dist/index159.mjs +2 -46
- package/dist/index16.mjs +118 -131
- package/dist/index160.mjs +20 -2
- package/dist/index161.mjs +41 -25
- package/dist/index162.mjs +2 -18
- package/dist/index163.mjs +30 -2
- package/dist/index164.mjs +18 -2
- package/dist/index165.mjs +2 -2
- package/dist/index166.mjs +2 -2
- package/dist/index167.mjs +2 -72
- package/dist/index168.mjs +2 -2
- package/dist/index169.mjs +59 -40
- package/dist/index17.mjs +4 -4
- package/dist/index171.mjs +48 -31
- package/dist/index172.mjs +2 -152
- package/dist/index173.mjs +36 -2
- package/dist/index174.mjs +152 -2
- package/dist/index175.mjs +2 -19
- package/dist/index176.mjs +2 -2
- package/dist/index177.mjs +19 -2
- package/dist/index178.mjs +2 -26
- package/dist/index179.mjs +2 -2
- package/dist/index18.mjs +151 -86
- package/dist/index180.mjs +26 -2
- package/dist/index181.mjs +2 -24
- package/dist/index182.mjs +2 -23
- package/dist/index183.mjs +24 -2
- package/dist/index184.mjs +23 -2
- package/dist/index185.mjs +2 -2
- package/dist/index186.mjs +2 -23
- package/dist/index188.mjs +16 -16
- package/dist/index189.mjs +2 -2
- package/dist/index19.mjs +82 -733
- package/dist/index190.mjs +23 -2
- package/dist/index191.mjs +2 -2
- package/dist/index192.mjs +2 -23
- package/dist/index193.mjs +2 -2
- package/dist/index194.mjs +15 -15
- package/dist/index196.mjs +23 -2
- package/dist/index197.mjs +2 -2
- package/dist/index198.mjs +2 -2
- package/dist/index199.mjs +2 -2
- package/dist/index2.mjs +2 -2
- package/dist/index20.mjs +742 -53
- package/dist/index201.mjs +2 -2
- package/dist/index203.mjs +2 -127
- package/dist/index204.mjs +2 -2
- package/dist/index205.mjs +123 -70
- package/dist/index206.mjs +2 -74
- package/dist/index207.mjs +72 -19
- package/dist/index208.mjs +73 -55
- package/dist/index209.mjs +18 -26
- package/dist/index21.mjs +58 -60
- package/dist/index210.mjs +55 -6
- package/dist/index211.mjs +28 -51
- package/dist/index212.mjs +7 -6
- package/dist/index213.mjs +51 -11
- package/dist/index214.mjs +5 -6
- package/dist/index215.mjs +12 -28
- package/dist/index216.mjs +7 -2
- package/dist/index217.mjs +27 -69
- package/dist/index218.mjs +2 -167
- package/dist/index219.mjs +70 -2
- package/dist/index22.mjs +60 -22
- package/dist/index220.mjs +161 -102
- package/dist/index221.mjs +2 -2
- package/dist/index222.mjs +108 -2
- package/dist/index223.mjs +2 -2
- package/dist/index224.mjs +2 -2
- package/dist/index225.mjs +2 -2
- package/dist/index226.mjs +2 -2
- package/dist/index228.mjs +2 -2
- package/dist/index229.mjs +2 -2
- package/dist/index23.mjs +22 -107
- package/dist/index230.mjs +37 -2
- package/dist/index231.mjs +2 -37
- package/dist/index232.mjs +244 -2
- package/dist/index234.mjs +33 -2
- package/dist/index235.mjs +65 -2
- package/dist/index236.mjs +25 -2
- package/dist/index237.mjs +2 -244
- package/dist/index238.mjs +2 -2
- package/dist/index239.mjs +2 -33
- package/dist/index24.mjs +105 -38
- package/dist/index240.mjs +2 -65
- package/dist/index241.mjs +2 -25
- package/dist/index242.mjs +2 -2
- package/dist/index243.mjs +2 -2
- package/dist/index246.mjs +2 -2
- package/dist/index247.mjs +2 -4
- package/dist/index25.mjs +37 -37
- package/dist/index250.mjs +2 -13
- package/dist/index251.mjs +4 -7
- package/dist/index252.mjs +12 -30
- package/dist/index253.mjs +7 -11
- package/dist/index254.mjs +30 -3
- package/dist/index255.mjs +10 -3
- package/dist/index256.mjs +3 -11
- package/dist/index257.mjs +3 -4
- package/dist/index258.mjs +12 -33
- package/dist/index259.mjs +5 -31
- package/dist/index26.mjs +42 -89
- package/dist/index260.mjs +32 -27
- package/dist/index261.mjs +28 -58
- package/dist/index262.mjs +28 -2
- package/dist/index263.mjs +61 -2
- package/dist/index264.mjs +2 -18
- package/dist/index265.mjs +2 -47
- package/dist/index266.mjs +18 -2
- package/dist/index267.mjs +47 -2
- package/dist/index269.mjs +2 -2
- package/dist/index27.mjs +86 -29
- package/dist/index270.mjs +2 -91
- package/dist/index271.mjs +2 -2
- package/dist/index272.mjs +91 -3
- package/dist/index273.mjs +2 -2
- package/dist/index274.mjs +3 -2
- package/dist/index275.mjs +2 -17
- package/dist/index276.mjs +2 -13
- package/dist/index277.mjs +17 -6
- package/dist/index278.mjs +13 -30
- package/dist/index279.mjs +6 -2
- package/dist/index28.mjs +29 -6
- package/dist/index280.mjs +30 -2
- package/dist/index281.mjs +2 -2
- package/dist/index282.mjs +5 -0
- package/dist/index283.mjs +5 -0
- package/dist/index29.mjs +8 -21
- package/dist/index3.mjs +40 -38
- package/dist/index30.mjs +19 -35
- package/dist/index31.mjs +35 -37
- package/dist/index32.mjs +28 -103
- package/dist/index33.mjs +107 -32
- package/dist/index34.mjs +47 -9
- package/dist/index35.mjs +9 -9
- package/dist/index36.mjs +11 -121
- package/dist/index37.mjs +123 -27
- package/dist/index38.mjs +28 -90
- package/dist/index39.mjs +91 -112
- package/dist/index4.mjs +1 -1
- package/dist/index40.mjs +118 -8
- package/dist/index41.mjs +9 -33
- package/dist/index42.mjs +23 -34
- package/dist/index43.mjs +42 -7
- package/dist/index44.mjs +10 -122
- package/dist/index45.mjs +114 -380
- package/dist/index46.mjs +384 -20
- package/dist/index47.mjs +24 -31
- package/dist/index48.mjs +32 -7
- package/dist/index49.mjs +27 -1432
- package/dist/index5.mjs +1 -1
- package/dist/index50.mjs +6 -69
- package/dist/index51.mjs +1433 -2
- package/dist/index52.mjs +68 -58
- package/dist/index53.mjs +2 -51
- package/dist/index54.mjs +60 -33
- package/dist/index55.mjs +49 -13
- package/dist/index56.mjs +32 -2262
- package/dist/index57.mjs +15 -36
- package/dist/index58.mjs +2261 -42
- package/dist/index59.mjs +36 -99
- package/dist/index6.mjs +1 -1
- package/dist/index60.mjs +43 -80
- package/dist/index61.mjs +102 -18
- package/dist/index62.mjs +52 -100
- package/dist/index63.mjs +13 -119
- package/dist/index64.mjs +102 -52
- package/dist/index65.mjs +83 -119
- package/dist/index66.mjs +52 -80
- package/dist/index67.mjs +167 -28
- package/dist/index68.mjs +79 -67
- package/dist/index69.mjs +30 -75
- package/dist/index7.mjs +9 -9
- package/dist/index70.mjs +71 -39
- package/dist/index71.mjs +65 -46
- package/dist/index72.mjs +45 -117
- package/dist/index73.mjs +45 -53
- package/dist/index74.mjs +133 -22
- package/dist/index75.mjs +70 -2
- package/dist/index76.mjs +21 -150
- package/dist/index77.mjs +2 -75
- package/dist/index78.mjs +153 -15
- package/dist/index79.mjs +21 -61
- package/dist/index8.mjs +9 -9
- package/dist/index80.mjs +73 -21
- package/dist/index81.mjs +15 -5
- package/dist/index82.mjs +63 -2
- package/dist/index83.mjs +4 -5
- package/dist/index84.mjs +2 -1134
- package/dist/index85.mjs +5 -19
- package/dist/index86.mjs +1119 -40
- package/dist/index87.mjs +14 -27
- package/dist/index88.mjs +55 -2
- package/dist/index89.mjs +33 -2
- package/dist/index9.mjs +4 -4
- package/dist/index90.mjs +2 -34
- package/dist/index91.mjs +34 -40
- package/dist/index92.mjs +38 -230
- package/dist/index93.mjs +2 -6
- package/dist/index94.mjs +228 -127
- package/dist/index95.mjs +4 -66
- package/dist/index96.mjs +124 -77
- package/dist/index97.mjs +65 -26
- package/dist/index98.mjs +84 -6
- package/dist/index99.mjs +26 -72
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/AddOnsDiscountScreen.stories.tsx +290 -0
- package/src/components/AddOnsDiscountScreen.tsx +255 -0
- package/src/components/Checkout.stories.tsx +1 -0
- package/src/components/DeliveryConfirmation.tsx +3 -3
- package/src/components/FreeShippingProgress.tsx +50 -0
- package/src/components/OrderConfirmation.tsx +3 -3
- package/src/components/ShoppingCart.stories.tsx +1 -0
- package/src/components/ShoppingCart.tsx +53 -45
- package/src/components/VariantPickerModal.tsx +17 -2
- package/src/contexts/CartContext.tsx +5 -3
- package/src/index.ts +3 -0
- package/src/test-utils/MockCartProvider.tsx +4 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface AddOnsDiscountScreenProps {
|
|
2
|
+
/** Callback when user skips to continue to checkout */
|
|
3
|
+
onSkip: () => void;
|
|
4
|
+
/** Custom class name */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Custom class for the checkout button */
|
|
7
|
+
checkoutButtonClassName?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function AddOnsDiscountScreen({ onSkip, className, checkoutButtonClassName, }: AddOnsDiscountScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=AddOnsDiscountScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddOnsDiscountScreen.d.ts","sourceRoot":"","sources":["../../src/components/AddOnsDiscountScreen.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,yBAAyB;IACxC,uDAAuD;IACvD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,SAAS,EACT,uBAAuB,GACxB,EAAE,yBAAyB,2CA+N3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FreeShippingProgress.d.ts","sourceRoot":"","sources":["../../src/components/FreeShippingProgress.tsx"],"names":[],"mappings":"AAYA,wBAAgB,oBAAoB,mDAqCnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShoppingCart.d.ts","sourceRoot":"","sources":["../../src/components/ShoppingCart.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ShoppingCart.d.ts","sourceRoot":"","sources":["../../src/components/ShoppingCart.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAenD,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,sCAAsC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC3C,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oCAAoC;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oCAAoC;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uCAAuC;IACvC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gDAAgD;IAChD,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,uBAAuB;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,OAAO,EACP,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,gBAAuB,EACvB,oBAA2B,EAC3B,kBAAwC,EACxC,oBAA0C,EAC1C,uBAAuB,EACvB,+BAA+B,EAC/B,eAAuB,EACvB,YAAmC,GACpC,EAAE,iBAAiB,2CAgTnB"}
|
|
@@ -23,6 +23,8 @@ export interface VariantPickerModalProps {
|
|
|
23
23
|
onConfirm: (product: VariantPickerProduct, variant: Variant) => void;
|
|
24
24
|
/** Whether add operation is in progress */
|
|
25
25
|
isLoading?: boolean;
|
|
26
|
+
/** Optional discount percentage to show discounted prices */
|
|
27
|
+
discountPercent?: number | null;
|
|
26
28
|
}
|
|
27
|
-
export declare function VariantPickerModal({ isOpen, onClose, product, onConfirm, isLoading, }: VariantPickerModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
29
|
+
export declare function VariantPickerModal({ isOpen, onClose, product, onConfirm, isLoading, discountPercent, }: VariantPickerModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
28
30
|
//# sourceMappingURL=VariantPickerModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariantPickerModal.d.ts","sourceRoot":"","sources":["../../src/components/VariantPickerModal.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,OAAO,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACpC,gCAAgC;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,uCAAuC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oCAAoC;IACpC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrC,sDAAsD;IACtD,SAAS,EAAE,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrE,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"VariantPickerModal.d.ts","sourceRoot":"","sources":["../../src/components/VariantPickerModal.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,OAAO,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACpC,gCAAgC;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,uCAAuC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oCAAoC;IACpC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrC,sDAAsD;IACtD,SAAS,EAAE,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrE,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,wBAAgB,kBAAkB,CAAC,EAC/B,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,eAAe,GAClB,EAAE,uBAAuB,kDAmHzB"}
|
|
@@ -21,7 +21,7 @@ interface CartContextValue {
|
|
|
21
21
|
/** Checkout mutation (from useCheckoutCart) */
|
|
22
22
|
checkoutMutation: ReturnType<typeof useCheckoutCart>;
|
|
23
23
|
/** Add item to cart by SKU with Meta Pixel tracking */
|
|
24
|
-
addItem: (productSlug: string, productName: string, price: number, sku: string, quantity: number) => Promise<void>;
|
|
24
|
+
addItem: (productSlug: string, productName: string, price: number, sku: string, quantity: number, fromUpsell?: boolean, upsellDiscountPercent?: number) => Promise<void>;
|
|
25
25
|
/** Update item quantity */
|
|
26
26
|
updateItem: (itemId: string, quantity: number) => Promise<void>;
|
|
27
27
|
/** Remove item from cart */
|
|
@@ -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,EAGf,KAAK,IAAI,EACV,MAAM,uBAAuB,CAAC;AAS/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,KAA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
@@ -32,6 +32,8 @@ export { ShoppingCart } from './components/ShoppingCart';
|
|
|
32
32
|
export type { ShoppingCartProps } from './components/ShoppingCart';
|
|
33
33
|
export { CartUpsellScreen } from './components/CartUpsellScreen';
|
|
34
34
|
export type { CartUpsellScreenProps } from './components/CartUpsellScreen';
|
|
35
|
+
export { AddOnsDiscountScreen } from './components/AddOnsDiscountScreen';
|
|
36
|
+
export type { AddOnsDiscountScreenProps } from './components/AddOnsDiscountScreen';
|
|
35
37
|
export { DiscountCodeInput } from './components/DiscountCodeInput';
|
|
36
38
|
export type { DiscountCodeInputProps } from './components/DiscountCodeInput';
|
|
37
39
|
export { Checkout } from './components/Checkout';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,YAAY,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAG9E,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAG/D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAChF,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG1F,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,YAAY,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,C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AY,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG7E,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7G,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,YAAY,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGnE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC3I,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,cAAc,uBAAuB,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,140 +1,144 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { StorefrontProvider as m } from "./index2.mjs";
|
|
3
3
|
import { CartProvider as a, useCart as d } from "./index3.mjs";
|
|
4
|
-
import { MetaPixelProvider as n, useMetaPixel as
|
|
5
|
-
import { TikTokPixelProvider as
|
|
4
|
+
import { MetaPixelProvider as n, useMetaPixel as s } from "./index4.mjs";
|
|
5
|
+
import { TikTokPixelProvider as c, useTikTokPixel as f } from "./index5.mjs";
|
|
6
6
|
import { usePageTracking as x } from "./index6.mjs";
|
|
7
7
|
import { OrderConfirmation as P } from "./index7.mjs";
|
|
8
|
-
import { DeliveryConfirmation as
|
|
9
|
-
import { ProductCard as
|
|
10
|
-
import { ProductGrid as
|
|
8
|
+
import { DeliveryConfirmation as h } from "./index8.mjs";
|
|
9
|
+
import { ProductCard as v } from "./index9.mjs";
|
|
10
|
+
import { ProductGrid as G } from "./index10.mjs";
|
|
11
11
|
import { ProductAddOns as R } from "./index11.mjs";
|
|
12
12
|
import { RecommendedProducts as I } from "./index12.mjs";
|
|
13
|
-
import { VariantPickerModal as
|
|
13
|
+
import { VariantPickerModal as S } from "./index13.mjs";
|
|
14
14
|
import { CartItem as T } from "./index14.mjs";
|
|
15
|
-
import { QuantitySelector as
|
|
15
|
+
import { QuantitySelector as M } from "./index15.mjs";
|
|
16
16
|
import { ShoppingCart as H } from "./index16.mjs";
|
|
17
17
|
import { CartUpsellScreen as b } from "./index17.mjs";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import * as
|
|
39
|
-
import
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
18
|
+
import { AddOnsDiscountScreen as z } from "./index18.mjs";
|
|
19
|
+
import { DiscountCodeInput as Q } from "./index19.mjs";
|
|
20
|
+
import { Checkout as $ } from "./index20.mjs";
|
|
21
|
+
import { Button as w } from "./index21.mjs";
|
|
22
|
+
import { Card as J, CardContent as L, CardDescription as N, CardFooter as W, CardHeader as X, CardTitle as Y } from "./index22.mjs";
|
|
23
|
+
import { Badge as ee } from "./index23.mjs";
|
|
24
|
+
import { Modal as te } from "./index24.mjs";
|
|
25
|
+
import { FormInput as me } from "./index25.mjs";
|
|
26
|
+
import { FormSelect as ae } from "./index26.mjs";
|
|
27
|
+
import { calculateDiscountedPrice as pe, cn as ne, formatCurrency as se, formatDate as ue, formatDateTime as ce, getDiscountPercent as fe, getStatusColor as Ce } from "./index27.mjs";
|
|
28
|
+
import { ApiClientProvider as le, useApiClientContext as Pe } from "./index28.mjs";
|
|
29
|
+
import { useApiConfig as he } from "./index29.mjs";
|
|
30
|
+
import { getApiClient as ve, initializeApiClient as ye, resetApiClient as Ge } from "./index30.mjs";
|
|
31
|
+
import { authHeaders as Re, createAdminRpcClients as ge, createRpcClients as Ie } from "./index31.mjs";
|
|
32
|
+
import { fetchProductAddons as Se, fetchProductBySlug as Be, fetchProductRecommendations as Te, fetchProductsByBrand as Ue } from "./index32.mjs";
|
|
33
|
+
import { addCartItem as Fe, applyDiscount as He, checkoutCart as Ze, createCart as be, fetchCart as qe, fetchCartRecommendations as ze, fetchCartUpsellAddons as Ke, initiateCheckout as Qe, removeCartItem as Ve, removeDiscount as $e, updateCart as je, updateCartItem as we } from "./index33.mjs";
|
|
34
|
+
import { confirmDelivery as Je, confirmOrder as Le, fetchOrder as Ne, fetchOrderRecommendations as We, updateDeliveryAddress as Xe } from "./index34.mjs";
|
|
35
|
+
import { fetchDeliveryZones as _e } from "./index35.mjs";
|
|
36
|
+
import { fetchBrandBySlug as rr } from "./index36.mjs";
|
|
37
|
+
import { queryKeys as or } from "./index37.mjs";
|
|
38
|
+
import * as e from "./index38.mjs";
|
|
39
|
+
import * as r from "./index39.mjs";
|
|
40
|
+
import { useAddCartItem as ir, useApplyDiscount as ar, useCheckoutCart as dr, useCreateCart as pr, useGetCart as nr, useGetCartRecommendations as sr, useGetCartUpsellAddons as ur, useInitiateCheckout as cr, useRemoveCartItem as fr, useRemoveDiscount as Cr, useUpdateCart as xr, useUpdateCartItem as lr } from "./index40.mjs";
|
|
41
|
+
import { useGetBrand as Ar } from "./index41.mjs";
|
|
42
|
+
import { useGetProduct as Dr, useGetProductAddOns as vr, useGetProductRecommendations as yr, useGetProducts as Gr } from "./index42.mjs";
|
|
43
|
+
import { useConfirmDelivery as Rr, useConfirmOrder as gr, useGetOrder as Ir, useGetOrderRecommendations as Or, useUpdateDeliveryAddress as Sr } from "./index43.mjs";
|
|
44
|
+
import { useGetDeliveryZones as Tr } from "./index44.mjs";
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
w as
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
z as AddOnsDiscountScreen,
|
|
47
|
+
le as ApiClientProvider,
|
|
48
|
+
ee as Badge,
|
|
49
|
+
w as Button,
|
|
50
|
+
J as Card,
|
|
51
|
+
L as CardContent,
|
|
52
|
+
N as CardDescription,
|
|
53
|
+
W as CardFooter,
|
|
54
|
+
X as CardHeader,
|
|
55
|
+
Y as CardTitle,
|
|
54
56
|
T as CartItem,
|
|
55
57
|
a as CartProvider,
|
|
56
58
|
b as CartUpsellScreen,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
$ as Checkout,
|
|
60
|
+
h as DeliveryConfirmation,
|
|
61
|
+
Q as DiscountCodeInput,
|
|
62
|
+
me as FormInput,
|
|
63
|
+
ae as FormSelect,
|
|
62
64
|
n as MetaPixelProvider,
|
|
63
|
-
|
|
65
|
+
te as Modal,
|
|
64
66
|
P as OrderConfirmation,
|
|
65
67
|
R as ProductAddOns,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
v as ProductCard,
|
|
69
|
+
G as ProductGrid,
|
|
70
|
+
M as QuantitySelector,
|
|
69
71
|
I as RecommendedProducts,
|
|
70
72
|
H as ShoppingCart,
|
|
71
73
|
m as StorefrontProvider,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
c as TikTokPixelProvider,
|
|
75
|
+
S as VariantPickerModal,
|
|
76
|
+
Fe as addCartItem,
|
|
75
77
|
r as adminApi,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
Be as
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
ue as
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
fe as
|
|
102
|
-
|
|
103
|
-
|
|
78
|
+
He as applyDiscount,
|
|
79
|
+
Re as authHeaders,
|
|
80
|
+
pe as calculateDiscountedPrice,
|
|
81
|
+
Ze as checkoutCart,
|
|
82
|
+
ne as cn,
|
|
83
|
+
Je as confirmDelivery,
|
|
84
|
+
Le as confirmOrder,
|
|
85
|
+
ge as createAdminRpcClients,
|
|
86
|
+
be as createCart,
|
|
87
|
+
Ie as createRpcClients,
|
|
88
|
+
rr as fetchBrandBySlug,
|
|
89
|
+
qe as fetchCart,
|
|
90
|
+
ze as fetchCartRecommendations,
|
|
91
|
+
Ke as fetchCartUpsellAddons,
|
|
92
|
+
_e as fetchDeliveryZones,
|
|
93
|
+
Ne as fetchOrder,
|
|
94
|
+
We as fetchOrderRecommendations,
|
|
95
|
+
Se as fetchProductAddons,
|
|
96
|
+
Be as fetchProductBySlug,
|
|
97
|
+
Te as fetchProductRecommendations,
|
|
98
|
+
Ue as fetchProductsByBrand,
|
|
99
|
+
se as formatCurrency,
|
|
100
|
+
ue as formatDate,
|
|
101
|
+
ce as formatDateTime,
|
|
102
|
+
ve as getApiClient,
|
|
103
|
+
fe as getDiscountPercent,
|
|
104
|
+
Ce as getStatusColor,
|
|
105
|
+
ye as initializeApiClient,
|
|
106
|
+
Qe as initiateCheckout,
|
|
104
107
|
e as publicApi,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
or as queryKeys,
|
|
109
|
+
Ve as removeCartItem,
|
|
110
|
+
$e as removeDiscount,
|
|
111
|
+
Ge as resetApiClient,
|
|
112
|
+
je as updateCart,
|
|
113
|
+
we as updateCartItem,
|
|
114
|
+
Xe as updateDeliveryAddress,
|
|
115
|
+
ir as useAddCartItem,
|
|
116
|
+
Pe as useApiClientContext,
|
|
117
|
+
he as useApiConfig,
|
|
118
|
+
ar as useApplyDiscount,
|
|
116
119
|
d as useCart,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
120
|
+
dr as useCheckoutCart,
|
|
121
|
+
Rr as useConfirmDelivery,
|
|
122
|
+
gr as useConfirmOrder,
|
|
123
|
+
pr as useCreateCart,
|
|
124
|
+
Ar as useGetBrand,
|
|
125
|
+
nr as useGetCart,
|
|
126
|
+
sr as useGetCartRecommendations,
|
|
127
|
+
ur as useGetCartUpsellAddons,
|
|
128
|
+
Tr as useGetDeliveryZones,
|
|
129
|
+
Ir as useGetOrder,
|
|
130
|
+
Or as useGetOrderRecommendations,
|
|
131
|
+
Dr as useGetProduct,
|
|
132
|
+
vr as useGetProductAddOns,
|
|
133
|
+
yr as useGetProductRecommendations,
|
|
134
|
+
Gr as useGetProducts,
|
|
135
|
+
cr as useInitiateCheckout,
|
|
136
|
+
s as useMetaPixel,
|
|
133
137
|
x as usePageTracking,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
fr as useRemoveCartItem,
|
|
139
|
+
Cr as useRemoveDiscount,
|
|
140
|
+
f as useTikTokPixel,
|
|
141
|
+
xr as useUpdateCart,
|
|
142
|
+
lr as useUpdateCartItem,
|
|
143
|
+
Sr as useUpdateDeliveryAddress
|
|
140
144
|
};
|
package/dist/index10.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
3
|
-
import "./
|
|
3
|
+
import "./index28.mjs";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
import { useGetProducts as C } from "./
|
|
5
|
+
import { useGetProducts as C } from "./index42.mjs";
|
|
6
6
|
import { ProductCard as k } from "./index9.mjs";
|
|
7
7
|
import { Loader2 as j, Package as d } from "lucide-react";
|
|
8
|
-
import { cn as P } from "./
|
|
8
|
+
import { cn as P } from "./index27.mjs";
|
|
9
9
|
function q({
|
|
10
10
|
brandId: l,
|
|
11
11
|
onAddToCart: n,
|
package/dist/index100.mjs
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import r from "./index105.mjs";
|
|
3
|
+
import i from "./index94.mjs";
|
|
4
|
+
function l(o, t, e) {
|
|
5
|
+
r.call(this, o ?? "canceled", r.ERR_CANCELED, t, e), this.name = "CanceledError";
|
|
4
6
|
}
|
|
7
|
+
i.inherits(l, r, {
|
|
8
|
+
__CANCEL__: !0
|
|
9
|
+
});
|
|
5
10
|
export {
|
|
6
|
-
|
|
11
|
+
l as default
|
|
7
12
|
};
|
package/dist/index101.mjs
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
import u from "./index100.mjs";
|
|
3
|
+
class c {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
if (typeof e != "function")
|
|
6
|
+
throw new TypeError("executor must be a function.");
|
|
7
|
+
let t;
|
|
8
|
+
this.promise = new Promise(function(r) {
|
|
9
|
+
t = r;
|
|
10
|
+
});
|
|
11
|
+
const s = this;
|
|
12
|
+
this.promise.then((n) => {
|
|
13
|
+
if (!s._listeners) return;
|
|
14
|
+
let r = s._listeners.length;
|
|
15
|
+
for (; r-- > 0; )
|
|
16
|
+
s._listeners[r](n);
|
|
17
|
+
s._listeners = null;
|
|
18
|
+
}), this.promise.then = (n) => {
|
|
19
|
+
let r;
|
|
20
|
+
const o = new Promise((i) => {
|
|
21
|
+
s.subscribe(i), r = i;
|
|
22
|
+
}).then(n);
|
|
23
|
+
return o.cancel = function() {
|
|
24
|
+
s.unsubscribe(r);
|
|
25
|
+
}, o;
|
|
26
|
+
}, e(function(r, o, i) {
|
|
27
|
+
s.reason || (s.reason = new u(r, o, i), t(s.reason));
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
32
|
+
*/
|
|
33
|
+
throwIfRequested() {
|
|
34
|
+
if (this.reason)
|
|
35
|
+
throw this.reason;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Subscribe to the cancel signal
|
|
39
|
+
*/
|
|
40
|
+
subscribe(e) {
|
|
41
|
+
if (this.reason) {
|
|
42
|
+
e(this.reason);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Unsubscribe from the cancel signal
|
|
49
|
+
*/
|
|
50
|
+
unsubscribe(e) {
|
|
51
|
+
if (!this._listeners)
|
|
52
|
+
return;
|
|
53
|
+
const t = this._listeners.indexOf(e);
|
|
54
|
+
t !== -1 && this._listeners.splice(t, 1);
|
|
55
|
+
}
|
|
56
|
+
toAbortSignal() {
|
|
57
|
+
const e = new AbortController(), t = (s) => {
|
|
58
|
+
e.abort(s);
|
|
59
|
+
};
|
|
60
|
+
return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
64
|
+
* cancels the `CancelToken`.
|
|
65
|
+
*/
|
|
66
|
+
static source() {
|
|
67
|
+
let e;
|
|
68
|
+
return {
|
|
69
|
+
token: new c(function(n) {
|
|
70
|
+
e = n;
|
|
71
|
+
}),
|
|
72
|
+
cancel: e
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
3
76
|
export {
|
|
4
|
-
|
|
77
|
+
c as default
|
|
5
78
|
};
|
package/dist/index102.mjs
CHANGED
|
@@ -1,86 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function B(i) {
|
|
5
|
-
return t.isPlainObject(i) || t.isArray(i);
|
|
6
|
-
}
|
|
7
|
-
function h(i) {
|
|
8
|
-
return t.endsWith(i, "[]") ? i.slice(0, -2) : i;
|
|
9
|
-
}
|
|
10
|
-
function O(i, e, s) {
|
|
11
|
-
return i ? i.concat(e).map(function(o, d) {
|
|
12
|
-
return o = h(o), !s && d ? "[" + o + "]" : o;
|
|
13
|
-
}).join(s ? "." : "") : e;
|
|
14
|
-
}
|
|
15
|
-
function T(i) {
|
|
16
|
-
return t.isArray(i) && !i.some(B);
|
|
17
|
-
}
|
|
18
|
-
const S = t.toFlatObject(t, {}, null, function(e) {
|
|
19
|
-
return /^is[A-Z]/.test(e);
|
|
20
|
-
});
|
|
21
|
-
function W(i, e, s) {
|
|
22
|
-
if (!t.isObject(i))
|
|
23
|
-
throw new TypeError("target must be an object");
|
|
24
|
-
e = e || new FormData(), s = t.toFlatObject(s, {
|
|
25
|
-
metaTokens: !0,
|
|
26
|
-
dots: !1,
|
|
27
|
-
indexes: !1
|
|
28
|
-
}, !1, function(n, u) {
|
|
29
|
-
return !t.isUndefined(u[n]);
|
|
30
|
-
});
|
|
31
|
-
const p = s.metaTokens, o = s.visitor || j, d = s.dots, m = s.indexes, w = (s.Blob || typeof Blob < "u" && Blob) && t.isSpecCompliantForm(e);
|
|
32
|
-
if (!t.isFunction(o))
|
|
33
|
-
throw new TypeError("visitor must be a function");
|
|
34
|
-
function l(r) {
|
|
35
|
-
if (r === null) return "";
|
|
36
|
-
if (t.isDate(r))
|
|
37
|
-
return r.toISOString();
|
|
38
|
-
if (t.isBoolean(r))
|
|
39
|
-
return r.toString();
|
|
40
|
-
if (!w && t.isBlob(r))
|
|
41
|
-
throw new E("Blob is not supported. Use a Buffer instead.");
|
|
42
|
-
return t.isArrayBuffer(r) || t.isTypedArray(r) ? w && typeof Blob == "function" ? new Blob([r]) : Buffer.from(r) : r;
|
|
43
|
-
}
|
|
44
|
-
function j(r, n, u) {
|
|
45
|
-
let f = r;
|
|
46
|
-
if (r && !u && typeof r == "object") {
|
|
47
|
-
if (t.endsWith(n, "{}"))
|
|
48
|
-
n = p ? n : n.slice(0, -2), r = JSON.stringify(r);
|
|
49
|
-
else if (t.isArray(r) && T(r) || (t.isFileList(r) || t.endsWith(n, "[]")) && (f = t.toArray(r)))
|
|
50
|
-
return n = h(n), f.forEach(function(b, x) {
|
|
51
|
-
!(t.isUndefined(b) || b === null) && e.append(
|
|
52
|
-
// eslint-disable-next-line no-nested-ternary
|
|
53
|
-
m === !0 ? O([n], x, d) : m === null ? n : n + "[]",
|
|
54
|
-
l(b)
|
|
55
|
-
);
|
|
56
|
-
}), !1;
|
|
57
|
-
}
|
|
58
|
-
return B(r) ? !0 : (e.append(O(u, n, d), l(r)), !1);
|
|
59
|
-
}
|
|
60
|
-
const a = [], F = Object.assign(S, {
|
|
61
|
-
defaultVisitor: j,
|
|
62
|
-
convertValue: l,
|
|
63
|
-
isVisitable: B
|
|
64
|
-
});
|
|
65
|
-
function A(r, n) {
|
|
66
|
-
if (!t.isUndefined(r)) {
|
|
67
|
-
if (a.indexOf(r) !== -1)
|
|
68
|
-
throw Error("Circular reference detected in " + n.join("."));
|
|
69
|
-
a.push(r), t.forEach(r, function(f, c) {
|
|
70
|
-
(!(t.isUndefined(f) || f === null) && o.call(
|
|
71
|
-
e,
|
|
72
|
-
f,
|
|
73
|
-
t.isString(c) ? c.trim() : c,
|
|
74
|
-
n,
|
|
75
|
-
F
|
|
76
|
-
)) === !0 && A(f, n ? n.concat(c) : [c]);
|
|
77
|
-
}), a.pop();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (!t.isObject(i))
|
|
81
|
-
throw new TypeError("data must be an object");
|
|
82
|
-
return A(i), e;
|
|
2
|
+
function t(n) {
|
|
3
|
+
return !!(n && n.__CANCEL__);
|
|
83
4
|
}
|
|
84
5
|
export {
|
|
85
|
-
|
|
6
|
+
t as default
|
|
86
7
|
};
|
package/dist/index103.mjs
CHANGED
|
@@ -1,57 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
function r(t, i, o, a, e) {
|
|
4
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", i && (this.code = i), o && (this.config = o), a && (this.request = a), e && (this.response = e, this.status = e.status ? e.status : null);
|
|
5
|
-
}
|
|
6
|
-
c.inherits(r, Error, {
|
|
7
|
-
toJSON: function() {
|
|
8
|
-
return {
|
|
9
|
-
// Standard
|
|
10
|
-
message: this.message,
|
|
11
|
-
name: this.name,
|
|
12
|
-
// Microsoft
|
|
13
|
-
description: this.description,
|
|
14
|
-
number: this.number,
|
|
15
|
-
// Mozilla
|
|
16
|
-
fileName: this.fileName,
|
|
17
|
-
lineNumber: this.lineNumber,
|
|
18
|
-
columnNumber: this.columnNumber,
|
|
19
|
-
stack: this.stack,
|
|
20
|
-
// Axios
|
|
21
|
-
config: c.toJSONObject(this.config),
|
|
22
|
-
code: this.code,
|
|
23
|
-
status: this.status
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
const u = r.prototype, R = {};
|
|
28
|
-
[
|
|
29
|
-
"ERR_BAD_OPTION_VALUE",
|
|
30
|
-
"ERR_BAD_OPTION",
|
|
31
|
-
"ECONNABORTED",
|
|
32
|
-
"ETIMEDOUT",
|
|
33
|
-
"ERR_NETWORK",
|
|
34
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
35
|
-
"ERR_DEPRECATED",
|
|
36
|
-
"ERR_BAD_RESPONSE",
|
|
37
|
-
"ERR_BAD_REQUEST",
|
|
38
|
-
"ERR_CANCELED",
|
|
39
|
-
"ERR_NOT_SUPPORT",
|
|
40
|
-
"ERR_INVALID_URL"
|
|
41
|
-
// eslint-disable-next-line func-names
|
|
42
|
-
].forEach((t) => {
|
|
43
|
-
R[t] = { value: t };
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperties(r, R);
|
|
46
|
-
Object.defineProperty(u, "isAxiosError", { value: !0 });
|
|
47
|
-
r.from = (t, i, o, a, e, E) => {
|
|
48
|
-
const s = Object.create(u);
|
|
49
|
-
c.toFlatObject(t, s, function(m) {
|
|
50
|
-
return m !== Error.prototype;
|
|
51
|
-
}, (n) => n !== "isAxiosError");
|
|
52
|
-
const l = t && t.message ? t.message : "Error", h = i == null && t ? t.code : i;
|
|
53
|
-
return r.call(s, l, h, o, a, e), t && s.cause == null && Object.defineProperty(s, "cause", { value: t, configurable: !0 }), s.name = t && t.name || "Error", E && Object.assign(s, E), s;
|
|
54
|
-
};
|
|
2
|
+
const o = "1.12.2";
|
|
55
3
|
export {
|
|
56
|
-
|
|
4
|
+
o as VERSION
|
|
57
5
|
};
|