@eqtylab/equality 5.1.0 → 5.1.1
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 +9 -0
- package/dist/banner.module.module.css.module.css +1 -0
- package/dist/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
4
|
|
|
5
|
+
## 5.1.1 - 2026-11-02
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- A `Banner` message breaks a long unbroken token, such as a URL in an error, where it ran out of
|
|
10
|
+
the strip.
|
|
11
|
+
- A `NavSwitcher` with `error` and options already loaded reads "Some {collection} couldn't be
|
|
12
|
+
loaded." where it read "Couldn't load {collection}." above the options it had.
|
|
13
|
+
|
|
5
14
|
## 5.1.0 - 2026-11-02
|
|
6
15
|
|
|
7
16
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -3566,11 +3566,12 @@ var NavSwitcherSelect = React16__namespace.forwardRef(
|
|
|
3566
3566
|
const keepOpen = React16__namespace.useRef(false);
|
|
3567
3567
|
const [announcement, setAnnouncement] = React16__namespace.useState("");
|
|
3568
3568
|
const [listState, setListState] = React16__namespace.useState({ error, retrying });
|
|
3569
|
+
const errorMessage = options.length > 0 ? `Some ${collection} couldn't be loaded.` : `Couldn't load ${collection}.`;
|
|
3569
3570
|
if (listState.error !== error || listState.retrying !== retrying) {
|
|
3570
3571
|
setListState({ error, retrying });
|
|
3571
3572
|
if (error || listState.error) {
|
|
3572
3573
|
setAnnouncement(
|
|
3573
|
-
error ? retrying ? "Retrying..." :
|
|
3574
|
+
error ? retrying ? "Retrying..." : errorMessage : options.length > 0 ? `Loaded ${collection}.` : `No ${collection} found.`
|
|
3574
3575
|
);
|
|
3575
3576
|
}
|
|
3576
3577
|
}
|
|
@@ -3653,7 +3654,7 @@ var NavSwitcherSelect = React16__namespace.forwardRef(
|
|
|
3653
3654
|
SelectItem,
|
|
3654
3655
|
{
|
|
3655
3656
|
value: retryValue,
|
|
3656
|
-
textValue:
|
|
3657
|
+
textValue: `${errorMessage} ${retrying ? "Retrying" : "Retry"}`,
|
|
3657
3658
|
persistent: true,
|
|
3658
3659
|
"aria-disabled": retrying || void 0,
|
|
3659
3660
|
className: styles41__default.default["nav-switcher-retry"],
|
|
@@ -3666,9 +3667,7 @@ var NavSwitcherSelect = React16__namespace.forwardRef(
|
|
|
3666
3667
|
"aria-hidden": "true"
|
|
3667
3668
|
}
|
|
3668
3669
|
),
|
|
3669
|
-
|
|
3670
|
-
collection,
|
|
3671
|
-
"."
|
|
3670
|
+
errorMessage
|
|
3672
3671
|
] }),
|
|
3673
3672
|
retrying ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles41__default.default["nav-switcher-error-message"], children: [
|
|
3674
3673
|
/* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: "xs", variant: "neutral" }),
|