@paypal/checkout-components 5.0.249 → 5.0.250

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.249",
3
+ "version": "5.0.250",
4
4
  "description": "PayPal Checkout components, for integrating checkout products.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  /* @flow */
2
2
  /** @jsx node */
3
3
 
4
- import { PLATFORM } from '@paypal/sdk-constants/src';
4
+ import { PLATFORM, FUNDING } from '@paypal/sdk-constants/src';
5
5
  import { ApplePayLogo, LOGO_COLOR } from '@paypal/sdk-logos/src';
6
6
 
7
7
  import { BUTTON_COLOR, BUTTON_LAYOUT } from '../../constants';
@@ -18,6 +18,12 @@ export function getApplePayConfig() : FundingSourceConfig {
18
18
  applepay: true
19
19
  };
20
20
  },
21
+ eligible: ({components}) => {
22
+ /** If the JS SDK Script Includes Standalone ApplePay Component the Exclude the ApplePay Button From the Vertical Stack
23
+ * https://paypal.atlassian.net/browse/DTALTPAY-1232
24
+ */
25
+ return !components?.includes(FUNDING.APPLEPAY);
26
+ },
21
27
 
22
28
  platforms: [
23
29
  PLATFORM.DESKTOP,
@@ -167,6 +167,18 @@ export function getPaymentFieldsComponent() : PaymentFieldsComponent {
167
167
  value: getLocale
168
168
  },
169
169
 
170
+ country: {
171
+ type: 'object',
172
+ queryParam: 'country.x',
173
+ allowDelegate: true,
174
+ queryValue({ value }) : string {
175
+ // $FlowFixMe
176
+ const { country } = value;
177
+ return country;
178
+ },
179
+ value: getLocale
180
+ },
181
+
170
182
  storageState: {
171
183
  type: 'object',
172
184
  value: () => storageState