Skip to content

Commit 34e811a

Browse files
authored
Rename sdkIntegrationSource buttons zoid prop (#2334)
* sdkIntegrationSource -> jsSdkLibrary * Alphabetize * Set jsSdkLibrary value to getJsSdkLibrary * Bump sdk-client version
1 parent 82af8b4 commit 34e811a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"@paypal/common-components": "^1.0.35",
114114
"@paypal/connect-loader-component": "1.1.1",
115115
"@paypal/funding-components": "^1.0.31",
116-
"@paypal/sdk-client": "^4.0.181",
116+
"@paypal/sdk-client": "^4.0.184",
117117
"@paypal/sdk-constants": "^1.0.141",
118118
"@paypal/sdk-logos": "^2.2.6"
119119
},

Diff for: src/zoid/buttons/component.jsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
getDisableSetCookie,
4040
getExperimentation,
4141
getSDKAttribute,
42-
getSDKIntegrationSource,
42+
getJsSdkLibrary,
4343
} from "@paypal/sdk-client/src";
4444
import {
4545
rememberFunding,
@@ -610,6 +610,13 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
610610
value: getIntent,
611611
},
612612

613+
jsSdkLibrary: {
614+
type: "string",
615+
queryParam: true,
616+
required: false,
617+
value: getJsSdkLibrary,
618+
},
619+
613620
locale: {
614621
type: "object",
615622
queryParam: true,
@@ -776,13 +783,6 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
776783
queryParam: true,
777784
},
778785

779-
sdkIntegrationSource: {
780-
type: "string",
781-
queryParam: true,
782-
required: false,
783-
value: getSDKIntegrationSource,
784-
},
785-
786786
sdkMeta: {
787787
type: "string",
788788
queryParam: true,

0 commit comments

Comments
 (0)