@betterstore/react 0.6.13 → 0.7.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/components/cart/useCart.d.ts +21 -2
- package/dist/components/cart/useCart.d.ts.map +1 -1
- package/dist/components/checkout-embed/checkout-form.d.ts +7 -7
- package/dist/components/checkout-embed/checkout-form.d.ts.map +1 -1
- package/dist/components/checkout-embed/checkout-schema.d.ts +28 -20
- package/dist/components/checkout-embed/checkout-schema.d.ts.map +1 -1
- package/dist/components/checkout-embed/index.d.ts +1 -1
- package/dist/components/checkout-embed/index.d.ts.map +1 -1
- package/dist/components/checkout-embed/steps/customer/form.d.ts +2 -2
- package/dist/components/checkout-embed/steps/customer/form.d.ts.map +1 -1
- package/dist/components/checkout-embed/steps/payment/form.d.ts +2 -1
- package/dist/components/checkout-embed/steps/payment/form.d.ts.map +1 -1
- package/dist/components/checkout-embed/steps/shipping/form.d.ts +3 -2
- package/dist/components/checkout-embed/steps/shipping/form.d.ts.map +1 -1
- package/dist/components/checkout-embed/steps/shipping/shipping-option-wrapper.d.ts +1 -1
- package/dist/components/checkout-embed/steps/shipping/shipping-option-wrapper.d.ts.map +1 -1
- package/dist/components/checkout-embed/steps/summary/index.d.ts +3 -3
- package/dist/components/checkout-embed/steps/summary/index.d.ts.map +1 -1
- package/dist/components/checkout-embed/useFormStore.d.ts +5 -3
- package/dist/components/checkout-embed/useFormStore.d.ts.map +1 -1
- package/dist/components/compounds/form/address-input/index.d.ts +2 -2
- package/dist/components/compounds/form/address-input/index.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/dev/dev-data.d.ts +5 -0
- package/dist/dev/dev-data.d.ts.map +1 -0
- package/dist/dev/generate-test-checkout.d.ts +2 -0
- package/dist/dev/generate-test-checkout.d.ts.map +1 -0
- package/dist/index.cjs.js +5800 -10141
- package/dist/index.mjs +5805 -10146
- package/package.json +6 -3
- package/dist/components/compounds/form/country-input/dropdown.d.ts +0 -26
- package/dist/components/compounds/form/country-input/dropdown.d.ts.map +0 -1
- package/dist/components/compounds/form/select-group/index.d.ts +0 -14
- package/dist/components/compounds/form/select-group/index.d.ts.map +0 -1
- package/dist/components/compounds/form/select-group/select.d.ts +0 -14
- package/dist/components/compounds/form/select-group/select.d.ts.map +0 -1
- package/dist/components/payment-element/betterstore-checkout-embed-payment-element.d.ts +0 -2
- package/dist/components/payment-element/betterstore-checkout-embed-payment-element.d.ts.map +0 -1
- package/dist/components/shadow-wrapper.d.ts +0 -8
- package/dist/components/shadow-wrapper.d.ts.map +0 -1
- package/dist/lib/betterstore.d.ts +0 -6
- package/dist/lib/betterstore.d.ts.map +0 -1
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateCheckoutParams, InferProduct } from "@betterstore/sdk";
|
|
2
|
+
type SDKLineItemCreate = CreateCheckoutParams["lineItems"][number];
|
|
3
|
+
type PickRequiredArguments<RequiredArgumentKeys extends string[], T extends object> = {
|
|
4
|
+
[K in keyof T as K extends RequiredArgumentKeys[number] ? K : never]: T[K];
|
|
5
|
+
} & {
|
|
6
|
+
[K in keyof T as K extends RequiredArgumentKeys[number] ? never : K]?: T[K];
|
|
7
|
+
};
|
|
8
|
+
type DefaultLineItemCreateProductType = PickRequiredArguments<[
|
|
9
|
+
"id"
|
|
10
|
+
], InferProduct> & {
|
|
11
|
+
productVariants?: PickRequiredArguments<[
|
|
12
|
+
"id"
|
|
13
|
+
], InferProduct<{
|
|
14
|
+
with: {
|
|
15
|
+
productVariants: true;
|
|
16
|
+
};
|
|
17
|
+
}>["productVariants"][number]>[];
|
|
18
|
+
};
|
|
2
19
|
type LineItemOptionalParams = {
|
|
3
20
|
quantity?: number;
|
|
4
21
|
variantOptions?: {
|
|
@@ -7,7 +24,9 @@ type LineItemOptionalParams = {
|
|
|
7
24
|
}[];
|
|
8
25
|
metadata?: Record<string, any>;
|
|
9
26
|
};
|
|
10
|
-
export interface CartLineItem<ProductType extends DefaultLineItemCreateProductType = DefaultLineItemCreateProductType> extends Pick<SDKLineItemCreate
|
|
27
|
+
export interface CartLineItem<ProductType extends DefaultLineItemCreateProductType = DefaultLineItemCreateProductType> extends Pick<SDKLineItemCreate & {
|
|
28
|
+
productData: ProductType;
|
|
29
|
+
}, "metadata" | "quantity" | "variantOptions" | "productId" | "productData"> {
|
|
11
30
|
id: string;
|
|
12
31
|
selectedVariant: NonNullable<NonNullable<ProductType["productVariants"]>[number]> | null;
|
|
13
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCart.d.ts","sourceRoot":"","sources":["../../../src/components/cart/useCart.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useCart.d.ts","sourceRoot":"","sources":["../../../src/components/cart/useCart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAItE,KAAK,iBAAiB,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,KAAK,qBAAqB,CACxB,oBAAoB,SAAS,MAAM,EAAE,EACrC,CAAC,SAAS,MAAM,IACd;KACD,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;CAC3E,GAAG;KACD,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,oBAAoB,CAAC,MAAM,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAC5E,CAAC;AAEF,KAAK,gCAAgC,GAAG,qBAAqB,CAC3D;IAAC,IAAI;CAAC,EACN,YAAY,CACb,GAAG;IACF,eAAe,CAAC,EAAE,qBAAqB,CACrC;QAAC,IAAI;KAAC,EACN,YAAY,CAAC;QAAE,IAAI,EAAE;YAAE,eAAe,EAAE,IAAI,CAAA;SAAE,CAAA;KAAE,CAAC,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAC7E,EAAE,CAAC;CACL,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,WAAW,YAAY,CAC3B,WAAW,SACT,gCAAgC,GAAG,gCAAgC,CACrE,SAAQ,IAAI,CACV,iBAAiB,GAAG;IAAE,WAAW,EAAE,WAAW,CAAA;CAAE,EAChD,UAAU,GAAG,UAAU,GAAG,gBAAgB,GAAG,WAAW,GAAG,aAAa,CACzE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,WAAW,CAC1B,WAAW,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CACpD,GAAG,IAAI,CAAC;CACV;AAED,MAAM,WAAW,IAAI,CACnB,WAAW,SACT,gCAAgC,GAAG,gCAAgC;IAErE,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC;IACvC,OAAO,EAAE,CACP,OAAO,EAAE,WAAW,EACpB,gBAAgB,CAAC,EAAE,sBAAsB,KACtC,IAAI,CAAC;IACV,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAClD,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AA8FD,eAAO,MAAM,OAAO,GAClB,WAAW,SACT,gCAAgC,GAAG,gCAAgC,wBAChC,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createStoreClient } from "@betterstore/sdk";
|
|
1
|
+
import { createBetterStoreClient, GetCheckoutResponse } from "@betterstore/sdk";
|
|
3
2
|
import { StripeElementLocale } from "@stripe/stripe-js";
|
|
4
3
|
import { AppearanceConfig, Fonts } from "./appearance";
|
|
5
4
|
interface CheckoutFormProps {
|
|
6
|
-
storeClient: ReturnType<typeof
|
|
5
|
+
storeClient: ReturnType<typeof createBetterStoreClient>;
|
|
7
6
|
checkoutId: string;
|
|
8
7
|
onSuccess: () => void;
|
|
9
8
|
onError: () => void;
|
|
10
9
|
cancelUrl: string;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
checkoutSecret: string;
|
|
11
|
+
customerData?: GetCheckoutResponse["customerData"];
|
|
12
|
+
customer?: GetCheckoutResponse["customer"];
|
|
13
13
|
currency: string;
|
|
14
14
|
checkoutAppearance?: AppearanceConfig;
|
|
15
15
|
fonts?: Fonts;
|
|
@@ -23,8 +23,8 @@ interface CheckoutFormProps {
|
|
|
23
23
|
latitude?: number;
|
|
24
24
|
longitude?: number;
|
|
25
25
|
currentAlpha3CountryCode?: string;
|
|
26
|
-
shipments:
|
|
26
|
+
shipments: GetCheckoutResponse["shipments"];
|
|
27
27
|
}
|
|
28
|
-
export default function CheckoutForm({ storeClient, checkoutId, onSuccess, onError, cancelUrl,
|
|
28
|
+
export default function CheckoutForm({ storeClient, checkoutId, onSuccess, onError, cancelUrl, checkoutSecret, customer, customerData, currency, checkoutAppearance, fonts, locale, setShippingCost, exchangeRate, paymentSecret, publicKey, paymentComponentKey, clientProxy, latitude, longitude, currentAlpha3CountryCode, shipments, }: CheckoutFormProps): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
30
30
|
//# sourceMappingURL=checkout-form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-form.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/checkout-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"checkout-form.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/checkout-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EAGpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAcvD,UAAU,iBAAiB;IACzB,WAAW,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,mBAAmB,CAAC,cAAc,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,SAAS,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;CAC7C;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,SAAS,EACT,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,KAAK,EACL,MAAM,EACN,eAAe,EACf,YAAY,EACZ,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,SAAS,EACT,wBAAwB,EACxB,SAAS,GACV,EAAE,iBAAiB,2CA4SnB"}
|
|
@@ -35,7 +35,8 @@ export declare const customerSchema: z.ZodObject<{
|
|
|
35
35
|
company?: string | null | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
phone: z.ZodString;
|
|
38
|
-
|
|
38
|
+
isSubscribedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
isSubscribedSMS: z.ZodOptional<z.ZodBoolean>;
|
|
39
40
|
}, "strip", z.ZodTypeAny, {
|
|
40
41
|
email: string;
|
|
41
42
|
firstName: string;
|
|
@@ -52,7 +53,8 @@ export declare const customerSchema: z.ZodObject<{
|
|
|
52
53
|
company?: string | null | undefined;
|
|
53
54
|
};
|
|
54
55
|
phone: string;
|
|
55
|
-
|
|
56
|
+
isSubscribedEmail?: boolean | undefined;
|
|
57
|
+
isSubscribedSMS?: boolean | undefined;
|
|
56
58
|
}, {
|
|
57
59
|
email: string;
|
|
58
60
|
firstName: string;
|
|
@@ -69,11 +71,12 @@ export declare const customerSchema: z.ZodObject<{
|
|
|
69
71
|
company?: string | null | undefined;
|
|
70
72
|
};
|
|
71
73
|
phone: string;
|
|
72
|
-
|
|
74
|
+
isSubscribedEmail?: boolean | undefined;
|
|
75
|
+
isSubscribedSMS?: boolean | undefined;
|
|
73
76
|
}>;
|
|
74
77
|
export declare const shipmentsFormSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
75
78
|
rateId: z.ZodString;
|
|
76
|
-
|
|
79
|
+
carrierId: z.ZodOptional<z.ZodString>;
|
|
77
80
|
priceInCents: z.ZodNumber;
|
|
78
81
|
pickupPointId: z.ZodOptional<z.ZodString>;
|
|
79
82
|
pickupPointDisplayName: z.ZodOptional<z.ZodString>;
|
|
@@ -82,28 +85,28 @@ export declare const shipmentsFormSchema: z.ZodEffects<z.ZodRecord<z.ZodString,
|
|
|
82
85
|
priceInCents: number;
|
|
83
86
|
displayName: string;
|
|
84
87
|
rateId: string;
|
|
85
|
-
|
|
88
|
+
carrierId?: string | undefined;
|
|
86
89
|
pickupPointId?: string | undefined;
|
|
87
90
|
pickupPointDisplayName?: string | undefined;
|
|
88
91
|
}, {
|
|
89
92
|
priceInCents: number;
|
|
90
93
|
displayName: string;
|
|
91
94
|
rateId: string;
|
|
92
|
-
|
|
95
|
+
carrierId?: string | undefined;
|
|
93
96
|
pickupPointId?: string | undefined;
|
|
94
97
|
pickupPointDisplayName?: string | undefined;
|
|
95
98
|
}>>, Record<string, {
|
|
96
99
|
priceInCents: number;
|
|
97
100
|
displayName: string;
|
|
98
101
|
rateId: string;
|
|
99
|
-
|
|
102
|
+
carrierId?: string | undefined;
|
|
100
103
|
pickupPointId?: string | undefined;
|
|
101
104
|
pickupPointDisplayName?: string | undefined;
|
|
102
105
|
}>, Record<string, {
|
|
103
106
|
priceInCents: number;
|
|
104
107
|
displayName: string;
|
|
105
108
|
rateId: string;
|
|
106
|
-
|
|
109
|
+
carrierId?: string | undefined;
|
|
107
110
|
pickupPointId?: string | undefined;
|
|
108
111
|
pickupPointDisplayName?: string | undefined;
|
|
109
112
|
}>>;
|
|
@@ -144,7 +147,8 @@ export declare const checkoutSchema: z.ZodObject<{
|
|
|
144
147
|
company?: string | null | undefined;
|
|
145
148
|
}>;
|
|
146
149
|
phone: z.ZodString;
|
|
147
|
-
|
|
150
|
+
isSubscribedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
isSubscribedSMS: z.ZodOptional<z.ZodBoolean>;
|
|
148
152
|
}, "strip", z.ZodTypeAny, {
|
|
149
153
|
email: string;
|
|
150
154
|
firstName: string;
|
|
@@ -161,7 +165,8 @@ export declare const checkoutSchema: z.ZodObject<{
|
|
|
161
165
|
company?: string | null | undefined;
|
|
162
166
|
};
|
|
163
167
|
phone: string;
|
|
164
|
-
|
|
168
|
+
isSubscribedEmail?: boolean | undefined;
|
|
169
|
+
isSubscribedSMS?: boolean | undefined;
|
|
165
170
|
}, {
|
|
166
171
|
email: string;
|
|
167
172
|
firstName: string;
|
|
@@ -178,11 +183,12 @@ export declare const checkoutSchema: z.ZodObject<{
|
|
|
178
183
|
company?: string | null | undefined;
|
|
179
184
|
};
|
|
180
185
|
phone: string;
|
|
181
|
-
|
|
186
|
+
isSubscribedEmail?: boolean | undefined;
|
|
187
|
+
isSubscribedSMS?: boolean | undefined;
|
|
182
188
|
}>;
|
|
183
189
|
shipping: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
184
190
|
rateId: z.ZodString;
|
|
185
|
-
|
|
191
|
+
carrierId: z.ZodOptional<z.ZodString>;
|
|
186
192
|
priceInCents: z.ZodNumber;
|
|
187
193
|
pickupPointId: z.ZodOptional<z.ZodString>;
|
|
188
194
|
pickupPointDisplayName: z.ZodOptional<z.ZodString>;
|
|
@@ -191,28 +197,28 @@ export declare const checkoutSchema: z.ZodObject<{
|
|
|
191
197
|
priceInCents: number;
|
|
192
198
|
displayName: string;
|
|
193
199
|
rateId: string;
|
|
194
|
-
|
|
200
|
+
carrierId?: string | undefined;
|
|
195
201
|
pickupPointId?: string | undefined;
|
|
196
202
|
pickupPointDisplayName?: string | undefined;
|
|
197
203
|
}, {
|
|
198
204
|
priceInCents: number;
|
|
199
205
|
displayName: string;
|
|
200
206
|
rateId: string;
|
|
201
|
-
|
|
207
|
+
carrierId?: string | undefined;
|
|
202
208
|
pickupPointId?: string | undefined;
|
|
203
209
|
pickupPointDisplayName?: string | undefined;
|
|
204
210
|
}>>, Record<string, {
|
|
205
211
|
priceInCents: number;
|
|
206
212
|
displayName: string;
|
|
207
213
|
rateId: string;
|
|
208
|
-
|
|
214
|
+
carrierId?: string | undefined;
|
|
209
215
|
pickupPointId?: string | undefined;
|
|
210
216
|
pickupPointDisplayName?: string | undefined;
|
|
211
217
|
}>, Record<string, {
|
|
212
218
|
priceInCents: number;
|
|
213
219
|
displayName: string;
|
|
214
220
|
rateId: string;
|
|
215
|
-
|
|
221
|
+
carrierId?: string | undefined;
|
|
216
222
|
pickupPointId?: string | undefined;
|
|
217
223
|
pickupPointDisplayName?: string | undefined;
|
|
218
224
|
}>>;
|
|
@@ -234,13 +240,14 @@ export declare const checkoutSchema: z.ZodObject<{
|
|
|
234
240
|
company?: string | null | undefined;
|
|
235
241
|
};
|
|
236
242
|
phone: string;
|
|
237
|
-
|
|
243
|
+
isSubscribedEmail?: boolean | undefined;
|
|
244
|
+
isSubscribedSMS?: boolean | undefined;
|
|
238
245
|
};
|
|
239
246
|
shipping: Record<string, {
|
|
240
247
|
priceInCents: number;
|
|
241
248
|
displayName: string;
|
|
242
249
|
rateId: string;
|
|
243
|
-
|
|
250
|
+
carrierId?: string | undefined;
|
|
244
251
|
pickupPointId?: string | undefined;
|
|
245
252
|
pickupPointDisplayName?: string | undefined;
|
|
246
253
|
}>;
|
|
@@ -262,13 +269,14 @@ export declare const checkoutSchema: z.ZodObject<{
|
|
|
262
269
|
company?: string | null | undefined;
|
|
263
270
|
};
|
|
264
271
|
phone: string;
|
|
265
|
-
|
|
272
|
+
isSubscribedEmail?: boolean | undefined;
|
|
273
|
+
isSubscribedSMS?: boolean | undefined;
|
|
266
274
|
};
|
|
267
275
|
shipping: Record<string, {
|
|
268
276
|
priceInCents: number;
|
|
269
277
|
displayName: string;
|
|
270
278
|
rateId: string;
|
|
271
|
-
|
|
279
|
+
carrierId?: string | undefined;
|
|
272
280
|
pickupPointId?: string | undefined;
|
|
273
281
|
pickupPointDisplayName?: string | undefined;
|
|
274
282
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-schema.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/checkout-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"checkout-schema.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/checkout-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBzB,CAAC;AAaH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAK5B,CAAC;AAGL,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzB,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,MAAM,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,MAAM,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,KAA4C,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAOvD,UAAU,kBAAkB;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE;QACN,cAAc,EAAE,MAAM,CAAC;QACvB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,gBAAgB,CAAC;QAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AAcD,iBAAS,sBAAsB,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,kBAAkB,2CAwVzE;AAED,QAAA,MAAM,aAAa,0DAA+B,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -3,12 +3,12 @@ interface CustomerFormProps {
|
|
|
3
3
|
initialData?: CustomerFormData;
|
|
4
4
|
onSubmit: (data: CustomerFormData) => void;
|
|
5
5
|
clientProxy?: string;
|
|
6
|
-
|
|
6
|
+
checkoutSecret: string;
|
|
7
7
|
latitude?: number;
|
|
8
8
|
longitude?: number;
|
|
9
9
|
currentAlpha3CountryCode?: string;
|
|
10
10
|
locale?: string;
|
|
11
11
|
}
|
|
12
|
-
export default function CustomerForm({ initialData, onSubmit, clientProxy,
|
|
12
|
+
export default function CustomerForm({ initialData, onSubmit, clientProxy, checkoutSecret, latitude, longitude, currentAlpha3CountryCode, locale, }: CustomerFormProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/customer/form.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,uBAAuB,CAAC;AAE9E,UAAU,iBAAiB;IACzB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/customer/form.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,uBAAuB,CAAC;AAE9E,UAAU,iBAAiB;IACzB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,QAAQ,EACR,WAAW,EACX,cAAc,EACd,QAAQ,EACR,SAAS,EACT,wBAAwB,EACxB,MAAM,GACP,EAAE,iBAAiB,2CA+EnB"}
|
|
@@ -16,7 +16,8 @@ interface PaymentFormProps {
|
|
|
16
16
|
publicKey: string | null;
|
|
17
17
|
paymentComponentKey: number;
|
|
18
18
|
currency: string;
|
|
19
|
+
exchangeRate: number;
|
|
19
20
|
}
|
|
20
|
-
export default function PaymentForm({ paymentSecret, onSuccess, onError, onBack, onDoubleBack, currency, contactEmail, shippingFormData, address, checkoutAppearance, fonts, locale, publicKey, paymentComponentKey, }: PaymentFormProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default function PaymentForm({ paymentSecret, onSuccess, onError, onBack, onDoubleBack, currency, contactEmail, shippingFormData, address, checkoutAppearance, fonts, locale, publicKey, paymentComponentKey, exchangeRate, }: PaymentFormProps): import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export {};
|
|
22
23
|
//# sourceMappingURL=form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/payment/form.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAIxD,OAAO,EACL,gBAAgB,EAEhB,KAAK,EACN,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,UAAU,gBAAgB;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,WAAW,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/payment/form.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAIxD,OAAO,EACL,gBAAgB,EAEhB,KAAK,EACN,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,UAAU,gBAAgB;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,WAAW,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,aAAa,EACb,SAAS,EACT,OAAO,EACP,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EAClB,KAAK,EACL,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,YAAY,GACb,EAAE,gBAAgB,2CAkIlB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetCheckoutResponse, GetShippingRatesResponse } from "@betterstore/sdk";
|
|
2
2
|
import { type ShipmentsFormData } from "../../checkout-schema";
|
|
3
3
|
import { FormStore } from "../../useFormStore";
|
|
4
|
+
export type ShippingRate = GetShippingRatesResponse["rates"][number];
|
|
4
5
|
interface ShipmentsFormProps {
|
|
5
6
|
shippingRates: GetShippingRatesResponse | undefined;
|
|
6
7
|
initialData?: ShipmentsFormData;
|
|
@@ -14,7 +15,7 @@ interface ShipmentsFormProps {
|
|
|
14
15
|
countryCode?: string;
|
|
15
16
|
setFormData: FormStore["setFormData"];
|
|
16
17
|
formData: FormStore["formData"];
|
|
17
|
-
shipments:
|
|
18
|
+
shipments: GetCheckoutResponse["shipments"];
|
|
18
19
|
}
|
|
19
20
|
export default function ShipmentsShippingMethodForm({ shippingRates, initialData, onSubmit, onBack, contactEmail, shippingAddress, currency, exchangeRate, locale, countryCode, setFormData, formData, shipments, }: ShipmentsFormProps): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/shipping/form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/shipping/form.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,MAAM,MAAM,YAAY,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,UAAU,kBAAkB;IAC1B,aAAa,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACpD,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACtC,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAChC,SAAS,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;CAC7C;AAED,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,EAClD,aAAa,EACb,WAAW,EACX,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,WAAW,EACX,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,kBAAkB,2CAoGpB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ShippingRate } from "@betterstore/bridge";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { ShippingRate } from "./form";
|
|
3
3
|
export default function ShippingOptionWrapper({ rate, children, onPickupPointSelected, locale, countryCode, }: {
|
|
4
4
|
rate: ShippingRate;
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipping-option-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/shipping/shipping-option-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shipping-option-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/shipping/shipping-option-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGtC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,IAAI,EACJ,QAAQ,EACR,qBAAqB,EACrB,MAAM,EACN,WAAW,GACZ,EAAE;IACD,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qBAAqB,CAAC,EAAE,CACtB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,KACpB,IAAI,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,2CAkBA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetCheckoutResponse } from "@betterstore/sdk";
|
|
2
2
|
export default function CheckoutSummary({ appliedDiscounts, lineItems, shipping, tax, currency, onCancel, exchangeRate, applyDiscountCode, removeDiscount, }: {
|
|
3
|
-
appliedDiscounts:
|
|
4
|
-
lineItems:
|
|
3
|
+
appliedDiscounts: GetCheckoutResponse["appliedDiscounts"];
|
|
4
|
+
lineItems: GetCheckoutResponse["lineItems"];
|
|
5
5
|
shipping?: number | null;
|
|
6
6
|
tax?: number | null;
|
|
7
7
|
currency: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/summary/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/summary/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,cAAc,GACf,EAAE;IACD,gBAAgB,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAC1D,SAAS,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C,2CAoSA"}
|
|
@@ -8,15 +8,17 @@ export interface FormStore {
|
|
|
8
8
|
checkoutId: string;
|
|
9
9
|
setCheckoutId: (checkoutId: string) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare const useFormStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<FormStore>, "persist"> & {
|
|
11
|
+
export declare const useFormStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<FormStore>, "setState" | "persist"> & {
|
|
12
|
+
setState(partial: FormStore | Partial<FormStore> | ((state: FormStore) => FormStore | Partial<FormStore>), replace?: false | undefined): unknown;
|
|
13
|
+
setState(state: FormStore | ((state: FormStore) => FormStore), replace: true): unknown;
|
|
12
14
|
persist: {
|
|
13
|
-
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<FormStore, FormStore>>) => void;
|
|
15
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<FormStore, FormStore, unknown>>) => void;
|
|
14
16
|
clearStorage: () => void;
|
|
15
17
|
rehydrate: () => Promise<void> | void;
|
|
16
18
|
hasHydrated: () => boolean;
|
|
17
19
|
onHydrate: (fn: (state: FormStore) => void) => () => void;
|
|
18
20
|
onFinishHydration: (fn: (state: FormStore) => void) => () => void;
|
|
19
|
-
getOptions: () => Partial<import("zustand/middleware").PersistOptions<FormStore, FormStore>>;
|
|
21
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<FormStore, FormStore, unknown>>;
|
|
20
22
|
};
|
|
21
23
|
}>;
|
|
22
24
|
export declare const resetFormStore: (formData: Partial<CheckoutFormData>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormStore.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/useFormStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACpC,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC3D,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"useFormStore.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/useFormStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACpC,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC3D,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;EAYxB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,UAAU,OAAO,CAAC,gBAAgB,CAAC,SAcjE,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
interface AddressInputProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
proxy?: string;
|
|
4
|
-
|
|
4
|
+
checkoutSecret: string;
|
|
5
5
|
latitude?: number;
|
|
6
6
|
longitude?: number;
|
|
7
7
|
currentAlpha3CountryCode?: string;
|
|
8
8
|
locale?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function AddressInput({ className, proxy,
|
|
10
|
+
export declare function AddressInput({ className, proxy, checkoutSecret, latitude, longitude, currentAlpha3CountryCode, locale, }: AddressInputProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/address-input/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/address-input/index.tsx"],"names":[],"mappings":"AAkBA,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAc,EACd,KAAK,EACL,cAAc,EACd,QAAQ,EACR,SAAS,EACT,wBAAwB,EACxB,MAAM,GACP,EAAE,iBAAiB,2CA6TnB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "
|
|
4
|
+
variant?: "link" | "outline" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "link" | "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AAOzB,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AAOzB,QAAA,MAAM,IAAI,2LA0EN,MAAO,GAAG,CAAC,OAAO,AA1EG,CAAC;AAa1B,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAUF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAYrE;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAYlD;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,2CAiBnE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAW1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,kDAuBtE;AAED,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,SAAS,EACT,QAAQ,EACR,SAAS,EACT,WAAW,EACX,YAAY,GACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-data.d.ts","sourceRoot":"","sources":["../../src/dev/dev-data.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;CAIV,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-test-checkout.d.ts","sourceRoot":"","sources":["../../src/dev/generate-test-checkout.ts"],"names":[],"mappings":""}
|