@paypal/checkout-components 5.0.409-alpha-cc8673c.0 → 5.0.409

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.409-alpha-cc8673c.0",
3
+ "version": "5.0.409",
4
4
  "description": "PayPal Checkout components, for integrating checkout products.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/types.js CHANGED
@@ -70,7 +70,6 @@ export type Experiment = {|
70
70
  paypalCreditButtonCreateVaultSetupTokenExists?: boolean,
71
71
  isPaylaterCobrandedLabelEnabled?: boolean,
72
72
  isPaylaterCobrandedLabelRandomizationEnabled?: boolean,
73
- isBfcacheEnabled?: boolean,
74
73
  |};
75
74
 
76
75
  export type Requires = {|
@@ -589,7 +589,9 @@ export type ButtonProps = {|
589
589
  hashChangeHandler: (event: any) => void,
590
590
  listenForVisibilityChange: () => void,
591
591
  removeListenerForVisibilityChanges: () => void,
592
+ // Not passed to child iframe
592
593
  visibilityChangeHandler: () => void,
594
+
593
595
  showPayPalAppSwitchOverlay: (args: ShowPayPalAppSwitchOverlay) => void,
594
596
  hidePayPalAppSwitchOverlay: (args: HidePayPalAppSwitchOverlay) => void,
595
597
 
@@ -107,8 +107,8 @@ import {
107
107
  getButtonSize,
108
108
  getButtonExperiments,
109
109
  getModal,
110
- isEagerOrderCreationEnabled,
111
110
  sendPostRobotMessageToButtonIframe,
111
+ isEagerOrderCreationEnabled,
112
112
  } from "./util";
113
113
 
114
114
  export type ButtonsComponent = ZoidComponent<
@@ -128,8 +128,6 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
128
128
  url: () => `${getPayPalDomain()}${__PAYPAL_CHECKOUT__.__URI__.__BUTTONS__}`,
129
129
 
130
130
  domain: getPayPalDomainRegex(),
131
- enableBfcache: Boolean(getButtonExperiments()?.isBfcacheEnabled),
132
-
133
131
  getExtensions: (parent) => {
134
132
  return {
135
133
  hasReturned: () => {
@@ -460,20 +458,6 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
460
458
  },
461
459
  },
462
460
 
463
- onBfcacheRestore: {
464
- type: "function",
465
- sendToChild: false,
466
- queryParam: false,
467
- value:
468
- () =>
469
- ({ cachedDurationMs } = {}) => {
470
- sendPostRobotMessageToButtonIframe({
471
- eventName: "bfcache_restore",
472
- payload: { cachedDurationMs },
473
- });
474
- },
475
- },
476
-
477
461
  // allowBillingPayments prop is used by Honey Extension to render the one-click button
478
462
  // with payment methods & to use the payment methods instead of the Billing Agreement
479
463
  allowBillingPayments: {
@@ -410,7 +410,6 @@ export const sendPostRobotMessageToButtonIframe = ({
410
410
  if (iframes[i].name.includes("zoid__paypal_buttons")) {
411
411
  postRobotSend(iframes[i].contentWindow, eventName, payload, {
412
412
  domain: getPayPalDomain(),
413
- fireAndForget: true,
414
413
  });
415
414
  }
416
415
  }
@@ -55,8 +55,6 @@ export function getCheckoutComponent(): CheckoutComponent {
55
55
  },
56
56
  },
57
57
 
58
- enableBfcache: false,
59
-
60
58
  defaultContext: supportsPopups() ? CONTEXT.POPUP : CONTEXT.IFRAME,
61
59
 
62
60
  domain: getPayPalDomainRegex(),