@stripe/stripe-js 2.1.10 → 2.2.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.
package/dist/pure.esm.js CHANGED
@@ -54,7 +54,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
54
54
 
55
55
  stripe._registerWrapper({
56
56
  name: 'stripe-js',
57
- version: "2.1.10",
57
+ version: "2.2.0",
58
58
  startTime: startTime
59
59
  });
60
60
  };
package/dist/pure.js CHANGED
@@ -58,7 +58,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
58
58
 
59
59
  stripe._registerWrapper({
60
60
  name: 'stripe-js',
61
- version: "2.1.10",
61
+ version: "2.2.0",
62
62
  startTime: startTime
63
63
  });
64
64
  };
@@ -38,7 +38,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
38
38
 
39
39
  stripe._registerWrapper({
40
40
  name: 'stripe-js',
41
- version: "2.1.10",
41
+ version: "2.2.0",
42
42
  startTime: startTime
43
43
  });
44
44
  };
package/dist/stripe.js CHANGED
@@ -42,7 +42,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
42
42
 
43
43
  stripe._registerWrapper({
44
44
  name: 'stripe-js',
45
- version: "2.1.10",
45
+ version: "2.2.0",
46
46
  startTime: startTime
47
47
  });
48
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "2.1.10",
3
+ "version": "2.2.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "dist/stripe.js",
@@ -230,10 +230,12 @@ export type ShippingRate = {
230
230
  id: string;
231
231
  amount: number;
232
232
  displayName: string;
233
- deliveryEstimate?: {
234
- maximum?: DeliveryEstimate;
235
- minimum?: DeliveryEstimate;
236
- };
233
+ deliveryEstimate?:
234
+ | string
235
+ | {
236
+ maximum?: DeliveryEstimate;
237
+ minimum?: DeliveryEstimate;
238
+ };
237
239
  };
238
240
 
239
241
  export type LayoutOption = {
@@ -967,48 +967,114 @@ export interface Appearance {
967
967
 
968
968
  // Spacing
969
969
  spacingUnit?: string;
970
+ gridRowSpacing?: string;
971
+ gridColumnSpacing?: string;
972
+ tabSpacing?: string;
973
+ accordionItemSpacing?: string;
974
+ /** @deprecated Use gridRowSpacing instead. */
970
975
  spacingGridRow?: string;
976
+ /** @deprecated Use gridColumnSpacing instead. */
971
977
  spacingGridColumn?: string;
978
+ /** @deprecated Use tabSpacing instead. */
972
979
  spacingTab?: string;
980
+ /** @deprecated Use accordionItemSpacing instead. */
973
981
  spacingAccordionItem?: string;
974
982
 
975
983
  // Colors
976
984
  colorPrimary?: string;
977
- colorPrimaryText?: string;
978
985
  colorBackground?: string;
979
- colorBackgroundText?: string;
980
986
  colorText?: string;
981
987
  colorSuccess?: string;
982
- colorSuccessText?: string;
983
988
  colorDanger?: string;
984
- colorDangerText?: string;
985
989
  colorWarning?: string;
986
- colorWarningText?: string;
987
990
 
988
991
  // Text variations
989
992
  colorTextSecondary?: string;
990
993
  colorTextPlaceholder?: string;
991
994
 
995
+ // Accessible text
996
+ accessibleColorOnColorPrimary?: string;
997
+ accessibleColorOnColorBackground?: string;
998
+ accessibleColorOnColorSuccess?: string;
999
+ accessibleColorOnColorDanger?: string;
1000
+ accessibleColorOnColorWarning?: string;
1001
+ /** @deprecated Use accessibleColorOnColorPrimary instead. */
1002
+ colorPrimaryText?: string;
1003
+ /** @deprecated Use accessibleColorOnColorBackground instead. */
1004
+ colorBackgroundText?: string;
1005
+ /** @deprecated Use accessibleColorOnColorSuccess instead. */
1006
+ colorSuccessText?: string;
1007
+ /** @deprecated Use accessibleColorOnColorDanger instead. */
1008
+ colorDangerText?: string;
1009
+ /** @deprecated Use accessibleColorOnColorWarning instead. */
1010
+ colorWarningText?: string;
1011
+
992
1012
  // Icons
1013
+ iconColor?: string;
1014
+ iconHoverColor?: string;
1015
+ iconCardErrorColor?: string;
1016
+ iconCardCvcColor?: string;
1017
+ iconCardCvcErrorColor?: string;
1018
+ iconCheckmarkColor?: string;
1019
+ iconChevronDownColor?: string;
1020
+ iconChevronDownHoverColor?: string;
1021
+ iconCloseColor?: string;
1022
+ iconCloseHoverColor?: string;
1023
+ iconLoadingIndicatorColor?: string;
1024
+ iconMenuColor?: string;
1025
+ iconMenuHoverColor?: string;
1026
+ iconPasscodeDeviceColor?: string;
1027
+ iconPasscodeDeviceHoverColor?: string;
1028
+ iconPasscodeDeviceNotificationColor?: string;
1029
+ iconRedirectColor?: string;
1030
+ /** @deprecated Use iconColor instead. */
993
1031
  colorIcon?: string;
1032
+ /** @deprecated Use iconHoverColor instead. */
994
1033
  colorIconHover?: string;
1034
+ /** @deprecated Use iconCardErrorColor instead. */
995
1035
  colorIconCardError?: string;
1036
+ /** @deprecated Use iconCardCvcColor instead. */
996
1037
  colorIconCardCvc?: string;
1038
+ /** @deprecated Use iconCardCvcErrorColor instead. */
997
1039
  colorIconCardCvcError?: string;
1040
+ /** @deprecated Use iconCheckmarkColor instead. */
998
1041
  colorIconCheckmark?: string;
1042
+ /** @deprecated Use iconChevronDownColor instead. */
999
1043
  colorIconChevronDown?: string;
1044
+ /** @deprecated Use iconChevronDownHoverColor instead. */
1000
1045
  colorIconChevronDownHover?: string;
1046
+ /** @deprecated Use iconRedirectColor instead. */
1001
1047
  colorIconRedirect?: string;
1048
+
1049
+ // TabIcons
1050
+ tabIconColor?: string;
1051
+ tabIconHoverColor?: string;
1052
+ tabIconSelectedColor?: string;
1053
+ tabIconMoreColor?: string;
1054
+ tabIconMoreHoverColor?: string;
1055
+ /** @deprecated Use tabIconColor instead. */
1002
1056
  colorIconTab?: string;
1057
+ /** @deprecated Use tabIconHoverColor instead. */
1003
1058
  colorIconTabHover?: string;
1059
+ /** @deprecated Use tabIconHoverColor instead. */
1004
1060
  colorIconTabSelected?: string;
1061
+ /** @deprecated Use tabIconMoreColor instead. */
1005
1062
  colorIconTabMore?: string;
1063
+ /** @deprecated Use tabIconMoreHoverColor instead. */
1006
1064
  colorIconTabMoreHover?: string;
1007
1065
 
1008
1066
  // Logos
1067
+ logoColor?: string;
1068
+ tabLogoColor?: string;
1069
+ tabLogoSelectedColor?: string;
1070
+ blockLogoColor?: string;
1071
+ /** @deprecated Use logoColor instead. */
1009
1072
  colorLogo?: string;
1073
+ /** @deprecated Use tabLogoColor instead. */
1010
1074
  colorLogoTab?: string;
1075
+ /** @deprecated Use tabLogoSelectedColor instead. */
1011
1076
  colorLogoTabSelected?: string;
1077
+ /** @deprecated Use blockLogoColor instead. */
1012
1078
  colorLogoBlock?: string;
1013
1079
 
1014
1080
  // Focus