Skip to content

Commit e5d194d

Browse files
committed
feat: libs
1 parent 3eb5f49 commit e5d194d

File tree

8 files changed

+14
-21
lines changed

8 files changed

+14
-21
lines changed

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,5 @@
5555
"dependencies": {
5656
"@aws-sdk/client-cloudwatch": "^3.962.0",
5757
"node-fetch": "^2.6.9"
58-
},
59-
"volta": {
60-
"node": "24.0.0",
61-
"npm": "11.0.0"
6258
}
6359
}

packages/commerce-sdk-react/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## v5.1.0-dev
2+
- Add Page Designer Support
23
- Bump commerce-sdk-isomorphic to 5.1.0
34
- Add Node 24 support. Drop Node 16 support. [#3652](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3652)
45
- Add Shopper Consents API support [#3674](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3674)

packages/commerce-sdk-react/src/hooks/ShopperExperience/query.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ export const usePages = (
5959
// we must merge them in order to generate the correct query key.
6060
const netOptions = omitNullableParameters(mergeOptions(client, apiOptionsWithPDParams))
6161
const parameters = {
62-
...pickValidParams(
63-
netOptions.parameters,
64-
ShopperExperience.paramKeys[methodName]
65-
),
62+
...pickValidParams(netOptions.parameters, ShopperExperience.paramKeys[methodName]),
6663
// Add Page Designer params after filtering - these are not officially part of the oas spec, since they are meant to be internal
6764
...(mode && {mode}),
6865
...(pdToken && {pdToken}),
@@ -126,18 +123,15 @@ export const usePage = (
126123
const apiOptionsWithPDParams = {
127124
...apiOptions,
128125
parameters: {
129-
...apiOptions.parameters,
126+
...apiOptions.parameters
130127
}
131128
}
132129

133130
// Parameters can be set in `apiOptions` or `client.clientConfig`;
134131
// we must merge them in order to generate the correct query key.
135132
const netOptions = omitNullableParameters(mergeOptions(client, apiOptionsWithPDParams))
136133
const parameters = {
137-
...pickValidParams(
138-
netOptions.parameters,
139-
ShopperExperience.paramKeys[methodName]
140-
),
134+
...pickValidParams(netOptions.parameters, ShopperExperience.paramKeys[methodName]),
141135
// Add Page Designer params after filtering - these are not officially part of the oas spec, since they are meant to be internal
142136
...(mode && {mode}),
143137
...(pdToken && {pdToken}),

packages/pwa-kit-dev/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## v3.17.0-dev
2+
- Add Page Designer Design CSS Support
23
- Update jest, archiver and remove rimraf dependencies [#3663](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3663)
34
- Add Node 24 support, remove legacy `url` module import. Drop Node 16 support [#3652](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3652)
45

packages/template-retail-react-app/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## v9.1.0-dev
2+
- Add Page Designer Support
23
- [Feature] Add Salesforce Payments support in checkout
34
- Update jest-fetch-mock and Jest 29 dependencies [#3663](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3663)
45
- Add Node 24 support. Drop Node 16 support [#3652](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3652)

packages/template-retail-react-app/app/pages/product-list/partials/page-designer-promotional-banner.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77
import React from 'react'
8-
import {useUsid, useShopperContext} from '@salesforce/commerce-sdk-react'
9-
import {usePage, Page} from '@salesforce/commerce-sdk-react/page-designer'
8+
import {usePage, useUsid, useShopperContext} from '@salesforce/commerce-sdk-react'
9+
import {Page} from '@salesforce/commerce-sdk-react/page-designer'
1010

1111
// Components
1212
import {Box} from '@salesforce/retail-react-app/app/components/shared/ui'

packages/template-retail-react-app/jest.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ module.exports = {
2222
'^@salesforce/cc-datacloud-typescript$':
2323
'<rootDir>/node_modules/@salesforce/cc-datacloud-typescript/dist/index.js',
2424
'^@salesforce/storefront-next-runtime/design/react/core$':
25-
'@salesforce/storefront-next-runtime/dist/design-react-core.js',
25+
'<rootDir>/node_modules/@salesforce/storefront-next-runtime/dist/design-react-core.js',
2626
'^@salesforce/storefront-next-runtime/design/react$':
27-
'@salesforce/storefront-next-runtime/dist/design-react.js',
27+
'<rootDir>/node_modules/@salesforce/storefront-next-runtime/dist/design-react.js',
2828
'^@salesforce/storefront-next-runtime/design$':
29-
'@salesforce/storefront-next-runtime/dist/design.js',
29+
'<rootDir>/node_modules/@salesforce/storefront-next-runtime/dist/design.js',
3030
'^@salesforce/storefront-next-runtime/design/mode$':
31-
'@salesforce/storefront-next-runtime/dist/design-mode.js',
31+
'<rootDir>/node_modules/@salesforce/storefront-next-runtime/dist/design-mode.js',
3232
'^@salesforce/storefront-next-runtime/scapi$':
33-
'@salesforce/storefront-next-runtime/dist/scapi.js',
33+
'<rootDir>/node_modules/@salesforce/storefront-next-runtime/dist/scapi.js',
3434
'^@salesforce/storefront-next-runtime/design/styles\\.css$':
3535
'<rootDir>/app/mocks/empty-mock.js'
3636
},

packages/template-retail-react-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
},
111111
{
112112
"path": "build/vendor.js",
113-
"maxSize": "388 kB"
113+
"maxSize": "391 kB"
114114
}
115115
]
116116
}

0 commit comments

Comments
 (0)