@paypal/checkout-components 5.0.334 → 5.0.335

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.334",
3
+ "version": "5.0.335",
4
4
  "description": "PayPal Checkout components, for integrating checkout products.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -949,6 +949,7 @@ export function normalizeButtonProps(
949
949
  fundingSource,
950
950
  fundingEligibility,
951
951
  enableFunding,
952
+ experiment,
952
953
  components,
953
954
  onShippingChange,
954
955
  onShippingAddressChange,
@@ -39,7 +39,6 @@ import {
39
39
  getVersion,
40
40
  getDisableSetCookie,
41
41
  getExperimentation,
42
- getFirstRenderExperiments,
43
42
  getSDKAttribute,
44
43
  getJsSdkLibrary,
45
44
  wasShopperInsightsUsed,
@@ -459,10 +458,7 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
459
458
  experiment: {
460
459
  type: "object",
461
460
  queryParam: true,
462
- value: () => ({
463
- ...getButtonExperiments(),
464
- ...getFirstRenderExperiments(),
465
- }),
461
+ value: getButtonExperiments,
466
462
  },
467
463
  // TODO first-render-experiment-cleanup
468
464
  // verify if this is needed/used now that were putting the first render experiments in experiment param above
@@ -512,6 +508,7 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
512
508
  style = {},
513
509
  fundingEligibility = getRefinedFundingEligibility(),
514
510
  enableFunding = getEnableFunding(),
511
+ experiment = getButtonExperiments(),
515
512
  applePaySupport,
516
513
  supportsPopups,
517
514
  supportedNativeBrowser,
@@ -539,6 +536,7 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
539
536
  fundingSource,
540
537
  fundingEligibility,
541
538
  enableFunding,
539
+ experiment,
542
540
  components,
543
541
  onShippingChange,
544
542
  onShippingAddressChange,
@@ -23,6 +23,7 @@ import {
23
23
  getComponents,
24
24
  getEnv,
25
25
  getNamespace,
26
+ getFirstRenderExperiments,
26
27
  } from "@paypal/sdk-client/src";
27
28
  import { FUNDING, FPTI_KEY } from "@paypal/sdk-constants/src";
28
29
  import { getRefinedFundingEligibility } from "@paypal/funding-components/src";
@@ -306,6 +307,7 @@ export function applePaySession(): ?ApplePaySessionConfigRequest {
306
307
  export function getButtonExperiments(): EligibilityExperiment {
307
308
  return {
308
309
  ...getVenmoExperiment(),
310
+ ...getFirstRenderExperiments(),
309
311
  };
310
312
  }
311
313