@bigcommerce/checkout-sdk 1.358.1 → 1.360.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 {