@faststore/ui 1.6.20 → 1.6.23
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 +30 -0
- package/dist/ui.cjs.development.js +2 -3
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +2 -3
- package/dist/ui.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/molecules/Breadcrumb/Breadcrumb.test.tsx +14 -0
- package/src/molecules/Breadcrumb/Breadcrumb.tsx +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 1.6.23 (2022-03-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fix breadcrumb component bug ([#1193](https://github.com/vtex/faststore/issues/1193)) ([f36ba81](https://github.com/vtex/faststore/commit/f36ba814ed679523d8c1f030c31a086a9e5bb190))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 1.6.22 (2022-03-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **sdk:** Improve useStorage and Optimistic revalidate effect ([#1186](https://github.com/vtex/faststore/issues/1186)) ([08c616b](https://github.com/vtex/faststore/commit/08c616be4c6bc5a215da7ab0c37ff2731aa09f9a))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## 1.6.21 (2022-03-25)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @faststore/ui
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
## 1.6.20 (2022-03-24)
|
|
7
37
|
|
|
8
38
|
|
|
@@ -1148,7 +1148,6 @@ const Breadcrumb = /*#__PURE__*/React.forwardRef(function Breadcrumb({
|
|
|
1148
1148
|
testId = 'store-breadcrumb',
|
|
1149
1149
|
...otherProps
|
|
1150
1150
|
}, ref) {
|
|
1151
|
-
const lastIndex = React__default.Children.count(children);
|
|
1152
1151
|
return React__default.createElement("nav", Object.assign({
|
|
1153
1152
|
"aria-label": "Breadcrumb",
|
|
1154
1153
|
role: "navigation",
|
|
@@ -1158,8 +1157,8 @@ const Breadcrumb = /*#__PURE__*/React.forwardRef(function Breadcrumb({
|
|
|
1158
1157
|
}, otherProps), React__default.createElement(List, {
|
|
1159
1158
|
"data-breadcrumb-list": true,
|
|
1160
1159
|
variant: "ordered"
|
|
1161
|
-
}, React__default.Children.
|
|
1162
|
-
const isLastItem = index ===
|
|
1160
|
+
}, React__default.Children.toArray(children).map((child, index, childrenArray) => {
|
|
1161
|
+
const isLastItem = index === childrenArray.length - 1;
|
|
1163
1162
|
return React__default.createElement(ListItem, {
|
|
1164
1163
|
isLastItem: isLastItem,
|
|
1165
1164
|
divider: rawDivider,
|