@salesforce/retail-react-app 3.0.0-preview.0 → 3.0.0
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/CHANGELOG.md
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
## v3.0.0
|
|
1
|
+
## v3.0.0 (Jun 25, 2024)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Improvements
|
|
4
4
|
|
|
5
5
|
- Product Tile Revamp
|
|
6
6
|
- Display different pricing for various products on Product tiles and PDP [#1760](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1760)
|
|
7
7
|
- Display pricing for cart, checkout and wishlist page [#1796](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1796)
|
|
8
8
|
- Shows promotional callout message on Product List and Product Detail pages [#1786](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1786) [#1804](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1804)
|
|
9
|
-
- [a11y] Added live region support to components [#1825](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1825)
|
|
10
9
|
- Display selectable swatch groups for attributes like color [#1773](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1773)
|
|
11
10
|
- Show badges [#1791](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1791)
|
|
12
11
|
|
|
13
12
|
- Lazy basket creation [#1677](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1677)
|
|
14
|
-
|
|
15
|
-
### Performance improvements
|
|
13
|
+
- Use `stale-while-revalidate` cache control directive [#1744](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1744)
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
### Accessibility Improvements
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
- Added live region support to components [#1825](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1825)
|
|
18
|
+
- Replace p tag with heading tags in cart page [#1818](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1818)
|
|
19
|
+
- Fix product tile img alt text [#1769](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1769)
|
|
20
|
+
- Add aria-hidden to search icon [#1809](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1809)
|
|
21
|
+
- Add explicit headers to cart modal [#1811](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1811)
|
|
22
|
+
- Add autocomplete to text input fields [#1840](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1840)
|
|
23
|
+
- Add error icon to error messages [#1839](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1839)
|
|
24
|
+
|
|
25
|
+
### Performance Improvements
|
|
20
26
|
|
|
21
|
-
-
|
|
27
|
+
- Make navigation components lazy load their categories [#1656](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1656) [#1673](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1673)
|
|
22
28
|
|
|
23
29
|
### Bug Fixes
|
|
24
30
|
|
|
25
|
-
-
|
|
26
|
-
-
|
|
31
|
+
- Fix seo component not settings keywords meta tag [#1762](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1762)
|
|
32
|
+
- Fix RecommendedProducts' toggling of the favourite icon [#1861](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/1861)
|
|
27
33
|
|
|
28
34
|
|
|
29
35
|
## v2.4.1 (Apr 17, 2024)
|
|
@@ -197,8 +197,8 @@ const RecommendedProducts = ({zone, recommender, products, title, shouldFetch, .
|
|
|
197
197
|
isFavourite: wishlist?.customerProductListItems?.some(
|
|
198
198
|
(item) => item.productId === product?.productId
|
|
199
199
|
),
|
|
200
|
-
onFavouriteToggle: (
|
|
201
|
-
const action =
|
|
200
|
+
onFavouriteToggle: (toBeFavourite) => {
|
|
201
|
+
const action = toBeFavourite ? addItemToWishlist : removeItemFromWishlist
|
|
202
202
|
return action(product)
|
|
203
203
|
}
|
|
204
204
|
})}
|
|
@@ -582,8 +582,8 @@ const ProductList = (props) => {
|
|
|
582
582
|
)
|
|
583
583
|
}
|
|
584
584
|
}}
|
|
585
|
-
onFavouriteToggle={(
|
|
586
|
-
const action =
|
|
585
|
+
onFavouriteToggle={(toBeFavourite) => {
|
|
586
|
+
const action = toBeFavourite
|
|
587
587
|
? addItemToWishlist
|
|
588
588
|
: removeItemFromWishlist
|
|
589
589
|
return action(productSearchItem)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/retail-react-app",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"license": "See license in LICENSE",
|
|
5
5
|
"author": "cc-pwa-kit@salesforce.com",
|
|
6
6
|
"ccExtensibility": {
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@lhci/cli": "^0.11.0",
|
|
46
46
|
"@loadable/component": "^5.15.3",
|
|
47
47
|
"@peculiar/webcrypto": "^1.4.2",
|
|
48
|
-
"@salesforce/commerce-sdk-react": "2.0.0
|
|
49
|
-
"@salesforce/pwa-kit-dev": "3.6.0
|
|
50
|
-
"@salesforce/pwa-kit-react-sdk": "3.6.0
|
|
51
|
-
"@salesforce/pwa-kit-runtime": "3.6.0
|
|
48
|
+
"@salesforce/commerce-sdk-react": "2.0.0",
|
|
49
|
+
"@salesforce/pwa-kit-dev": "3.6.0",
|
|
50
|
+
"@salesforce/pwa-kit-react-sdk": "3.6.0",
|
|
51
|
+
"@salesforce/pwa-kit-runtime": "3.6.0",
|
|
52
52
|
"@tanstack/react-query": "^4.28.0",
|
|
53
53
|
"@tanstack/react-query-devtools": "^4.29.1",
|
|
54
54
|
"@testing-library/dom": "^9.0.1",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"maxSize": "320 kB"
|
|
101
101
|
}
|
|
102
102
|
],
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "6cb63ee29aabd0f93f5edde63d8688d6b009cf4a"
|
|
104
104
|
}
|