Skip to content

Commit 720b33e

Browse files
authored
chore: cut release (#1201)
2 parents 8aace77 + 63d9691 commit 720b33e

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

src/components/modal/v2/lib/hooks/calculator.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ export default function useCalculator({ autoSubmit = false } = {}) {
7070
devTouchpoint,
7171
disableSetCookie,
7272
features,
73-
language
73+
language,
74+
integrationIdentifier
7475
} = useXProps();
7576

7677
const [state, dispatch] = useReducer(reducer, {
@@ -101,7 +102,8 @@ export default function useCalculator({ autoSubmit = false } = {}) {
101102
deviceID: getOrCreateDeviceID(),
102103
disableSetCookie,
103104
features,
104-
language
105+
language,
106+
integrationIdentifier
105107
})
106108
.then(data => {
107109
setServerData(data);

src/components/modal/v2/lib/utils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export const getContent = memoize(
2525
devTouchpoint,
2626
disableSetCookie,
2727
features,
28-
buttonSessionId
28+
buttonSessionId,
29+
integrationIdentifier
2930
}) => {
3031
const query = objectEntries({
3132
currency,
@@ -47,7 +48,8 @@ export const getContent = memoize(
4748
devTouchpoint,
4849
disableSetCookie,
4950
features,
50-
buttonSessionId
51+
buttonSessionId,
52+
integrationIdentifier
5153
})
5254
.filter(([, val]) => Boolean(val))
5355
.reduce(

src/components/modal/v2/parts/Container.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const Container = ({ children }) => {
3636
ecToken,
3737
contextualComponents,
3838
disableSetCookie,
39-
features
39+
features,
40+
integrationIdentifier
4041
} = useXProps();
4142
const [transitionState] = useTransitionState();
4243
const [loading, setLoading] = useState(false);
@@ -80,7 +81,8 @@ const Container = ({ children }) => {
8081
contextualComponents,
8182
deviceID: getOrCreateDeviceID(),
8283
disableSetCookie,
83-
features
84+
features,
85+
integrationIdentifier
8486
}).then(data => {
8587
setServerData(data);
8688
setLoading(false);

tests/unit/spec/src/components/modal/v2/lib/zoid-polyfill.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('zoidPollyfill', () => {
9999
describe('sets up xprops for browser', () => {
100100
beforeAll(() => {
101101
mockLoadUrl(
102-
'https://localhost.paypal.com:8080/credit-presentment/lander/modal?client_id=client_1&logo_type=inline&amount=500&devTouchpoint=true'
102+
'https://localhost.paypal.com:8080/credit-presentment/lander/modal?client_id=client_1&logo_type=inline&amount=500&devTouchpoint=true&integration_identifier=messagesModal'
103103
);
104104

105105
zoidPolyfill();
@@ -122,7 +122,8 @@ describe('zoidPollyfill', () => {
122122
clientId: 'client_1',
123123
logoType: 'inline',
124124
amount: '500',
125-
devTouchpoint: 'true'
125+
devTouchpoint: 'true',
126+
integrationIdentifier: 'messagesModal'
126127
})
127128
);
128129
});

0 commit comments

Comments
 (0)