@bigcommerce/checkout-sdk 1.359.0 → 1.361.0

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.
@@ -1459,6 +1459,12 @@ declare interface BraintreeError extends Error {
1459
1459
  details?: unknown;
1460
1460
  }
1461
1461
 
1462
+ declare type BraintreeFormErrorData = Omit<BraintreeFormFieldState, 'isFocused'>;
1463
+
1464
+ declare type BraintreeFormErrorDataKeys = 'number' | 'expirationDate' | 'expirationMonth' | 'expirationYear' | 'cvv' | 'postalCode';
1465
+
1466
+ declare type BraintreeFormErrorsData = Partial<Record<BraintreeFormErrorDataKeys, BraintreeFormErrorData>>;
1467
+
1462
1468
  declare type BraintreeFormFieldBlurEventData = BraintreeFormFieldKeyboardEventData;
1463
1469
 
1464
1470
  declare interface BraintreeFormFieldCardTypeChangeEventData {
@@ -1471,6 +1477,7 @@ declare type BraintreeFormFieldFocusEventData = BraintreeFormFieldKeyboardEventD
1471
1477
 
1472
1478
  declare interface BraintreeFormFieldKeyboardEventData {
1473
1479
  fieldType: string;
1480
+ errors?: BraintreeFormErrorsData;
1474
1481
  }
1475
1482
 
1476
1483
  declare interface BraintreeFormFieldOptions {
@@ -1479,6 +1486,13 @@ declare interface BraintreeFormFieldOptions {
1479
1486
  placeholder?: string;
1480
1487
  }
1481
1488
 
1489
+ declare interface BraintreeFormFieldState {
1490
+ isFocused: boolean;
1491
+ isEmpty: boolean;
1492
+ isPotentiallyValid: boolean;
1493
+ isValid: boolean;
1494
+ }
1495
+
1482
1496
  declare type BraintreeFormFieldStyles = Partial<Pick<CSSStyleDeclaration, 'color' | 'fontFamily' | 'fontSize' | 'fontWeight'>>;
1483
1497
 
1484
1498
  declare interface BraintreeFormFieldStylesMap {
@@ -3949,6 +3963,13 @@ declare interface CheckoutStoreStatusSelector {
3949
3963
  * @returns True if the customer step is initializing, otherwise false.
3950
3964
  */
3951
3965
  isInitializingCustomer(methodId?: string): boolean;
3966
+ /**
3967
+ * Checks whether a wallet button is initialized.
3968
+ *
3969
+ * @param methodId - The identifier of the payment method to check.
3970
+ * @returns True if the wallet button method is initialized, otherwise false.
3971
+ */
3972
+ isInitializedCustomer(methodId?: string): boolean;
3952
3973
  /**
3953
3974
  * Checks whether the current customer is executing payment method checkout.
3954
3975
  *