@shipengine/elements 2.13.0 → 2.13.1
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/actions-menu.js +2 -2
- package/package.json +1 -1
- package/src/components/address-preference-context/address-preference-context.d.ts +2 -1
- package/src/components/edit-billing-form/edit-billing-form.d.ts +2 -1
- package/src/components/templates/wallet-form/wallet-schema.d.ts +9 -4
- package/use-unit-settings.js +1 -1
- package/wallet-form.js +1 -1
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ type WalletData = {
|
|
|
8
8
|
creditCard: WalletPayload["creditCard"];
|
|
9
9
|
iovationBlackbox: WalletPayload["iovationBlackbox"];
|
|
10
10
|
};
|
|
11
|
+
type WalletUpdateData = Omit<WalletData, "iovationBlackbox"> & Partial<Pick<WalletData, "iovationBlackbox">>;
|
|
11
12
|
type RegisterFundingSourceCarrierData = {
|
|
12
13
|
agreeToTerms: RegisterFundingSourceCarrierPayload["agreeToTerms"];
|
|
13
14
|
};
|
|
@@ -16,7 +17,7 @@ type InternalValidateAddressPayload = {
|
|
|
16
17
|
originAddress: SE.Address;
|
|
17
18
|
returnAddress?: SE.Address | undefined;
|
|
18
19
|
};
|
|
19
|
-
data?: WarehouseData | WalletData | RegisterFundingSourceCarrierData;
|
|
20
|
+
data?: WarehouseData | WalletData | WalletUpdateData | RegisterFundingSourceCarrierData;
|
|
20
21
|
onValid: (payload: {
|
|
21
22
|
originAddress: SE.Address;
|
|
22
23
|
returnAddress?: SE.Address;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SE } from "@shipengine/react-api";
|
|
2
2
|
export type EditBillingFormProps = {
|
|
3
|
+
isLoading?: boolean;
|
|
3
4
|
onCancel: () => void;
|
|
4
5
|
onSubmit: (billingInfo: SE.FundingSourceAddress, creditCardInfo: SE.CreditCardInfo) => void;
|
|
5
6
|
};
|
|
6
|
-
export declare const EditBillingForm: ({ onCancel, onSubmit }: EditBillingFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const EditBillingForm: ({ onCancel, onSubmit, isLoading }: EditBillingFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,12 @@ export declare const walletEmailSchemas: {
|
|
|
4
4
|
emailOptional: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
5
5
|
emailRequired: z.ZodString;
|
|
6
6
|
};
|
|
7
|
+
export declare const walletBlackboxSchemas: {
|
|
8
|
+
blackboxOptional: z.ZodOptional<z.ZodString>;
|
|
9
|
+
blackboxRequired: z.ZodString;
|
|
10
|
+
};
|
|
7
11
|
export type EmailRequirementOption = keyof typeof walletEmailSchemas;
|
|
12
|
+
export type BlackboxRequirementOption = keyof typeof walletBlackboxSchemas;
|
|
8
13
|
export declare const getBillingAddressSchema: (emailRequirement: EmailRequirementOption) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
|
|
9
14
|
addressLine1: z.ZodString;
|
|
10
15
|
addressLine2: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
@@ -136,7 +141,7 @@ export declare const getBillingAddressSchema: (emailRequirement: EmailRequiremen
|
|
|
136
141
|
type BillingAddressSchema = ReturnType<typeof getBillingAddressSchema>;
|
|
137
142
|
export type BillingAddressFields = z.input<BillingAddressSchema>;
|
|
138
143
|
export type BillingAddressPayload = z.output<BillingAddressSchema>;
|
|
139
|
-
export declare const getWalletSchema: (emailRequirement: EmailRequirementOption) => z.ZodObject<{
|
|
144
|
+
export declare const getWalletSchema: (emailRequirement: EmailRequirementOption, blackboxRequirement: BlackboxRequirementOption) => z.ZodObject<{
|
|
140
145
|
address: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
|
|
141
146
|
addressLine1: z.ZodString;
|
|
142
147
|
addressLine2: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
@@ -293,8 +298,9 @@ export declare const getWalletSchema: (emailRequirement: EmailRequirementOption)
|
|
|
293
298
|
cvv: string;
|
|
294
299
|
expiration: string;
|
|
295
300
|
}>;
|
|
296
|
-
iovationBlackbox: z.ZodString
|
|
301
|
+
iovationBlackbox: z.ZodString | z.ZodOptional<z.ZodString>;
|
|
297
302
|
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
iovationBlackbox?: string | undefined;
|
|
298
304
|
address: {
|
|
299
305
|
addressLine2?: string | undefined;
|
|
300
306
|
email?: string | undefined;
|
|
@@ -315,8 +321,8 @@ export declare const getWalletSchema: (emailRequirement: EmailRequirementOption)
|
|
|
315
321
|
name: string;
|
|
316
322
|
provider: Provider;
|
|
317
323
|
};
|
|
318
|
-
iovationBlackbox: string;
|
|
319
324
|
}, {
|
|
325
|
+
iovationBlackbox?: string | undefined;
|
|
320
326
|
address: {
|
|
321
327
|
addressLine2?: string | null | undefined;
|
|
322
328
|
email?: string | null | undefined;
|
|
@@ -335,7 +341,6 @@ export declare const getWalletSchema: (emailRequirement: EmailRequirementOption)
|
|
|
335
341
|
cvv: string;
|
|
336
342
|
expiration: string;
|
|
337
343
|
};
|
|
338
|
-
iovationBlackbox: string;
|
|
339
344
|
}>;
|
|
340
345
|
type WalletSchema = ReturnType<typeof getWalletSchema>;
|
|
341
346
|
export type WalletFormFields = z.input<WalletSchema>;
|