@paypal/checkout-components 5.0.422-alpha-04293bf.0 → 5.0.422

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypal/checkout-components",
3
- "version": "5.0.422-alpha-04293bf.0",
3
+ "version": "5.0.422",
4
4
  "description": "PayPal Checkout components, for integrating checkout products.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -117,7 +117,7 @@
117
117
  "@krakenjs/jsx-pragmatic": "^3",
118
118
  "@krakenjs/post-robot": "^11.0.0",
119
119
  "@krakenjs/zalgo-promise": "^2.0.0",
120
- "@krakenjs/zoid": "^10.3.1",
120
+ "@krakenjs/zoid": "^10.5.3",
121
121
  "@paypal/fastlane-sdk-loader": "^1.2.1",
122
122
  "@paypal/common-components": "^1.0.35",
123
123
  "@paypal/funding-components": "^1.0.31",
@@ -116,3 +116,12 @@ export const MARK_VARIATIONS = {
116
116
  WORDMARK: ("wordmark": "wordmark"),
117
117
  MONOGRAM: ("monogram": "monogram"),
118
118
  };
119
+
120
+ export const BROWSER_CONTEXT = {
121
+ BROWSER: ("browser": "browser"),
122
+ WEBVIEW: ("webview": "webview"),
123
+ ANDROID_CUSTOM_TAB: ("custom_tab": "custom_tab"),
124
+ AS_WEB_AUTH_SESSION: ("as_web_auth_session": "as_web_auth_session"),
125
+ SAFARI_VIEW_CONTROLLER: ("safari_view_controller": "safari_view_controller"),
126
+ UNKNOWN: ("unknown": "unknown"),
127
+ };
@@ -36,13 +36,6 @@ function getLabelText(
36
36
  labelText = "Später Bezahlen";
37
37
  }
38
38
 
39
- if (
40
- paylater?.products?.paylater?.eligible &&
41
- paylater?.products?.paylater?.variant === "AT"
42
- ) {
43
- labelText = "Später Bezahlen";
44
- }
45
-
46
39
  if (
47
40
  (paylater?.products?.payIn3?.eligible &&
48
41
  paylater?.products?.payIn3?.variant === "ES") ||
@@ -661,6 +661,7 @@ export type ButtonProps = {|
661
661
  messageMarkup?: string,
662
662
  hideSubmitButtonForCardForm?: boolean,
663
663
  userAgent: string,
664
+ browserContext?: string,
664
665
  buttonColor: ButtonColor,
665
666
  |};
666
667
 
@@ -717,6 +718,7 @@ export type ButtonPropsInputs = {
717
718
  buttonColor: ButtonColor,
718
719
  storageState?: StateGetSet,
719
720
  userAgent: string,
721
+ browserContext?: string,
720
722
  };
721
723
 
722
724
  export const DEFAULT_STYLE = {
@@ -229,7 +229,6 @@ export function getResponsiveStyleVariables({
229
229
 
230
230
  const shouldResizeLabel =
231
231
  paylater?.products?.paylater?.variant === "DE" ||
232
- paylater?.products?.paylater?.variant === "AT" ||
233
232
  paylater?.products?.payIn3?.variant === "IT" ||
234
233
  paylater?.products?.paylater?.variant === "IT" ||
235
234
  paylater?.products?.payIn3?.variant === "ES" ||
@@ -332,7 +331,6 @@ export function getDisableMaxHeightResponsiveStyleVariables({
332
331
 
333
332
  const shouldResizeLabel =
334
333
  paylater?.products?.paylater?.variant === "DE" ||
335
- paylater?.products?.paylater?.variant === "AT" ||
336
334
  paylater?.products?.payIn3?.variant === "IT" ||
337
335
  paylater?.products?.paylater?.variant === "IT" ||
338
336
  paylater?.products?.payIn3?.variant === "ES" ||