@instructure/platform-institutional-tagging 7.1.3 → 7.1.4

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.
@@ -8,6 +8,10 @@ import { default as React } from 'react';
8
8
  * Pass `isActive={true}` for a counter that's always mounted (id is added
9
9
  * once and never removed); pass a toggling condition (e.g. `count > 0`) for
10
10
  * one that appears/disappears as a selection count changes.
11
+ *
12
+ * Survives InstUI re-rendering the trigger because React only writes an attribute
13
+ * whose value changed, and Selectable's `aria-describedby` is stable. Does not
14
+ * survive the input remounting — that needs a callback ref, not another dep.
11
15
  */
12
16
  export declare function useDescribedByCounter(inputRef: React.RefObject<HTMLInputElement | null>, isActive: boolean): string;
13
17
  //# sourceMappingURL=useDescribedByCounter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDescribedByCounter.d.ts","sourceRoot":"","sources":["../../src/hooks/useDescribedByCounter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,EAClD,QAAQ,EAAE,OAAO,GAChB,MAAM,CAiBR"}
1
+ {"version":3,"file":"useDescribedByCounter.d.ts","sourceRoot":"","sources":["../../src/hooks/useDescribedByCounter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,EAClD,QAAQ,EAAE,OAAO,GAChB,MAAM,CAiBR"}
package/dist/index.js CHANGED
@@ -11992,7 +11992,7 @@ function yi(e, t) {
11992
11992
  if (!r) return;
11993
11993
  const o = (r.getAttribute("aria-describedby") ?? "").split(" ").filter(Boolean).filter((a) => a !== n), i = t ? [...o, n] : o;
11994
11994
  i.length > 0 ? r.setAttribute("aria-describedby", i.join(" ")) : r.removeAttribute("aria-describedby");
11995
- }, [t, n]), n;
11995
+ }, [t, n, e]), n;
11996
11996
  }
11997
11997
  const ws = (e) => {
11998
11998
  const {
@@ -12121,7 +12121,7 @@ const ws = (e) => {
12121
12121
  S._id
12122
12122
  )) }) : null;
12123
12123
  return /* @__PURE__ */ D(mv, { children: [
12124
- k && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, children: o.noResultsFound }),
12124
+ k && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children: o.noResultsFound }),
12125
12125
  /* @__PURE__ */ u(
12126
12126
  $e,
12127
12127
  {
@@ -13486,10 +13486,10 @@ const tw = /* @__PURE__ */ zv(ew), ec = E.div`
13486
13486
  }, z = !!v && !t && e === 0;
13487
13487
  return /* @__PURE__ */ D(Bn, { children: [
13488
13488
  /* @__PURE__ */ D(gw, { role: "group", "aria-label": n.searchAndFilter, children: [
13489
- v && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, children: t ? n.loadingData : r({ key: "searchResults", vars: { resultCount: e } }) }),
13490
- x && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, children: x }),
13491
- k && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, children: k }),
13492
- R && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, children: R }),
13489
+ v && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children: t ? n.loadingData : r({ key: "searchResults", vars: { resultCount: e } }) }),
13490
+ x && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children: x }),
13491
+ k && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children: k }),
13492
+ R && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children: R }),
13493
13493
  c && /* @__PURE__ */ u(hw, { children: /* @__PURE__ */ u(
13494
13494
  ys,
13495
13495
  {
@@ -13910,8 +13910,8 @@ const tw = /* @__PURE__ */ zv(ew), ec = E.div`
13910
13910
  });
13911
13911
  }, L = !!i && !t && !a, O = L && e.length === 0, z = o === "none" ? g.assignedUsers : o === "ascending" ? g.userTableCaptionAscending : g.userTableCaptionDescending;
13912
13912
  return /* @__PURE__ */ D(Bn, { children: [
13913
- C && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, children: C }),
13914
- L && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, children: v({ key: "searchResults", vars: { resultCount: s } }) }),
13913
+ C && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children: C }),
13914
+ L && /* @__PURE__ */ u(mt, { screenReaderOnly: !0, liveRegion: _t, liveRegionPoliteness: "polite", children: v({ key: "searchResults", vars: { resultCount: s } }) }),
13915
13915
  /* @__PURE__ */ D(Ow, { children: [
13916
13916
  /* @__PURE__ */ D(Dw, { children: [
13917
13917
  /* @__PURE__ */ u(Zt, { id: I, children: g.searchUsersDescription }),
@@ -1 +1 @@
1
- {"version":3,"file":"ManualUserSearch.d.ts","sourceRoot":"","sources":["../../../src/modals/AddPeopleModal/ManualUserSearch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAaxD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,UAAU,qBAAqB;IAC7B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC5B,aAAa,EAAE,WAAW,EAAE,CAAA;IAC5B,QAAQ,EAAE,WAAW,EAAE,CAAA;IACvB,YAAY,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;IACzC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoJ5D,CAAA"}
1
+ {"version":3,"file":"ManualUserSearch.d.ts","sourceRoot":"","sources":["../../../src/modals/AddPeopleModal/ManualUserSearch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAYxD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,UAAU,qBAAqB;IAC7B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC5B,aAAa,EAAE,WAAW,EAAE,CAAA;IAC5B,QAAQ,EAAE,WAAW,EAAE,CAAA;IACvB,YAAY,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;IACzC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoJ5D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"AssignTagsModal.d.ts","sourceRoot":"","sources":["../../../src/modals/AssignTagsModal/AssignTagsModal.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,oBAAoB;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC,CAAA;CAC5D;AAQD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgK1D,CAAA"}
1
+ {"version":3,"file":"AssignTagsModal.d.ts","sourceRoot":"","sources":["../../../src/modals/AssignTagsModal/AssignTagsModal.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,oBAAoB;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC,CAAA;CAC5D;AAQD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkK1D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CategorySkeleton.d.ts","sourceRoot":"","sources":["../../src/skeletons/CategorySkeleton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAgEpC,CAAA"}
1
+ {"version":3,"file":"CategorySkeleton.d.ts","sourceRoot":"","sources":["../../src/skeletons/CategorySkeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAgEpC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-institutional-tagging",
3
- "version": "7.1.3",
3
+ "version": "7.1.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",