@paypal/checkout-components 5.0.224 → 5.0.225

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## <small>5.0.225 (2022-06-02)</small>
2
+
3
+ * Inline XO: Force Eligibility ([3f56a06](https://github.com/paypal/paypal-checkout-components/commit/3f56a06))
4
+
5
+
6
+
1
7
  ## <small>5.0.224 (2022-06-01)</small>
2
8
 
3
9
  * Inline XO: Production Alpha eligibility ([7bcf14c](https://github.com/paypal/paypal-checkout-components/commit/7bcf14c))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypal/checkout-components",
3
- "version": "5.0.224",
3
+ "version": "5.0.225",
4
4
  "description": "PayPal Checkout components, for integrating checkout products.",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -671,7 +671,11 @@ export const getButtonsComponent : () => ButtonsComponent = memoize(() => {
671
671
  required: false,
672
672
  type: 'string',
673
673
  value: ({ props }) => {
674
- const { env, clientID, merchantID, commit, createBillingAgreement, currency, disableFunding = [], fundingEligibility, locale, style: { layout }, vault } = props || {};
674
+ const { env, clientID, merchantID, commit, createBillingAgreement, currency, disableFunding = [], experience, fundingEligibility, locale, style: { layout }, vault } = props || {};
675
+
676
+ if (experience === 'inline') {
677
+ return EXPERIENCE.INLINE;
678
+ }
675
679
 
676
680
  const inlineCheckoutEligibility : InlineXOEligibilityType = __INLINE_CHECKOUT_ELIGIBILITY__ || {
677
681
  eligible: false