@nocode-factory/sanity-kit 2.32.0 → 2.32.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/dist/index.d.ts CHANGED
@@ -1376,7 +1376,7 @@ export declare function ActorName(props: {
1376
1376
  * quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
1377
1377
  * le vérifie.
1378
1378
  */
1379
- export declare const KIT_VERSION = "2.32.0";
1379
+ export declare const KIT_VERSION = "2.32.1";
1380
1380
  /**
1381
1381
  * Données de la page proposées comme colonnes.
1382
1382
  *
package/dist/index.js CHANGED
@@ -1381,7 +1381,7 @@ function explainGrantError(error) {
1381
1381
  * quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
1382
1382
  * le vérifie.
1383
1383
  */
1384
- const KIT_VERSION = "2.32.0";
1384
+ const KIT_VERSION = "2.32.1";
1385
1385
  /**
1386
1386
  * Signale ce Studio au service du kit, une fois par montage.
1387
1387
  *
@@ -1724,7 +1724,7 @@ function useKitUpdate() {
1724
1724
  !controller.signal.aborted && body?.version && setLatest(body.version);
1725
1725
  }).catch(() => {}), () => controller.abort();
1726
1726
  }, []);
1727
- let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.32.0") > 0);
1727
+ let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.32.1") > 0);
1728
1728
  return {
1729
1729
  current: KIT_VERSION,
1730
1730
  latest,
@@ -9463,9 +9463,9 @@ const pathOf = (preview) => {
9463
9463
  * titre ou adresse ; un clic ouvre la page dans l'aperçu ET son document à côté.
9464
9464
  */
9465
9465
  function PagesNavigator() {
9466
- let config = useKitConfig(), { rows, loading } = usePages(), params = usePresentationParams(!1), navigate = usePresentationNavigate(), i18n = config.i18n, shownLocale = localeOfPreview(params?.preview, i18n), [locale, setLocale] = useState(null), [search, setSearch] = useState(""), activeLocale = locale ?? shownLocale ?? "", current = pathOf(params?.preview), visible = useMemo(() => {
9466
+ let config = useKitConfig(), { rows, loading } = usePages(), params = usePresentationParams(!1), navigate = usePresentationNavigate(), i18n = config.i18n, shownLocale = localeOfPreview(params?.preview, i18n), [locale, setLocale] = useState(null), [search, setSearch] = useState(""), activeLocale = locale ?? shownLocale ?? i18n?.defaultLocale ?? "", current = pathOf(params?.preview), visible = useMemo(() => {
9467
9467
  let q = search.trim().toLowerCase();
9468
- return rows.filter((r) => r.path !== null).filter((r) => !i18n || !activeLocale || r.locale === activeLocale).filter((r) => !q || r.title.toLowerCase().includes(q) || (r.path ?? "").toLowerCase().includes(q)).sort((a, b) => (a.path ?? "").localeCompare(b.path ?? ""));
9468
+ return rows.filter((r) => r.path !== null).filter((r) => !i18n || !activeLocale || !r.locale || r.locale === activeLocale).filter((r) => !q || r.title.toLowerCase().includes(q) || (r.path ?? "").toLowerCase().includes(q)).sort((a, b) => (a.path ?? "").localeCompare(b.path ?? ""));
9469
9469
  }, [
9470
9470
  rows,
9471
9471
  search,
@@ -9505,7 +9505,7 @@ function PagesNavigator() {
9505
9505
  padding: 2,
9506
9506
  value: activeLocale,
9507
9507
  onChange: (e) => setLocale(e.currentTarget.value),
9508
- style: { width: 72 },
9508
+ style: { width: 88 },
9509
9509
  children: i18n.locales.map((code) => /* @__PURE__ */ jsx("option", {
9510
9510
  value: code,
9511
9511
  children: code.toUpperCase()