@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 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
@@ -84,6 +84,7 @@
84
84
  --tw-font-weight: 500;
85
85
  font-weight: 500;
86
86
  text-wrap: balance;
87
+ overflow-wrap: anywhere;
87
88
  color: var(--banner-fg-color);
88
89
  }
89
90
  .banner-action {
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..." : `Couldn't load ${collection}.` : options.length > 0 ? `Loaded ${collection}.` : `No ${collection} found.`
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: `Couldn't load ${collection}. ${retrying ? "Retrying" : "Retry"}`,
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
- "Couldn't load ",
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" }),