@paypal/checkout-components 5.0.425 → 5.0.426-alpha-ea5d1e6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypal/checkout-components",
3
- "version": "5.0.425",
3
+ "version": "5.0.426-alpha-ea5d1e6.0",
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.5.3",
120
+ "@krakenjs/zoid": "10.6.0-alpha.2",
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",
package/src/types.js CHANGED
@@ -70,6 +70,7 @@ export type Experiment = {|
70
70
  paypalCreditButtonCreateVaultSetupTokenExists?: boolean,
71
71
  isPaylaterCobrandedLabelEnabled?: boolean,
72
72
  isPaylaterCobrandedLabelRandomizationEnabled?: boolean,
73
+ isBfcacheEnabled?: boolean,
73
74
  |};
74
75
 
75
76
  export type Requires = {|
@@ -129,6 +129,8 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
129
129
  url: () => `${getPayPalDomain()}${__PAYPAL_CHECKOUT__.__URI__.__BUTTONS__}`,
130
130
 
131
131
  domain: getPayPalDomainRegex(),
132
+ enableBfcache: Boolean(getButtonExperiments()?.isBfcacheEnabled),
133
+
132
134
  getExtensions: (parent) => {
133
135
  return {
134
136
  hasReturned: () => {
@@ -55,6 +55,8 @@ export function getCheckoutComponent(): CheckoutComponent {
55
55
  },
56
56
  },
57
57
 
58
+ enableBfcache: false,
59
+
58
60
  defaultContext: supportsPopups() ? CONTEXT.POPUP : CONTEXT.IFRAME,
59
61
 
60
62
  domain: getPayPalDomainRegex(),