@nocode-factory/sanity-kit 2.65.0-rc.1 → 2.65.0-rc.2

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
@@ -1483,7 +1483,7 @@ export declare function ActorName(props: {
1483
1483
  * quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
1484
1484
  * le vérifie.
1485
1485
  */
1486
- export declare const KIT_VERSION = "2.65.0-rc.1";
1486
+ export declare const KIT_VERSION = "2.65.0-rc.2";
1487
1487
  /**
1488
1488
  * Données de la page proposées comme colonnes.
1489
1489
  *
package/dist/index.js CHANGED
@@ -1423,7 +1423,7 @@ function explainGrantError(error) {
1423
1423
  * quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
1424
1424
  * le vérifie.
1425
1425
  */
1426
- const KIT_VERSION = "2.65.0-rc.1";
1426
+ const KIT_VERSION = "2.65.0-rc.2";
1427
1427
  /**
1428
1428
  * Signale ce Studio au service du kit, une fois par montage.
1429
1429
  *
@@ -1931,7 +1931,7 @@ function useKitUpdate() {
1931
1931
  !controller.signal.aborted && body?.version && setLatest(body.version);
1932
1932
  }).catch(() => {}), () => controller.abort();
1933
1933
  }, []);
1934
- let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.65.0-rc.1") > 0);
1934
+ let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.65.0-rc.2") > 0);
1935
1935
  return {
1936
1936
  current: KIT_VERSION,
1937
1937
  latest,
@@ -4370,8 +4370,8 @@ function LanguagesSync() {
4370
4370
  language,
4371
4371
  docs: sources.filter((d) => !langsOf.get(d._id)?.has(language))
4372
4372
  })), unfinished = await client.fetch(`*[_type == $todo && count(paths) > 0]{documentId, sourceId, sourceLanguage, paths,
4373
- "language": coalesce(*[_id == "drafts." + ^.documentId][0].${field}, *[_id == ^.documentId][0].${field}),
4374
- "title": coalesce(*[_id == "drafts." + ^.documentId][0].${TITLE}, *[_id == ^.documentId][0].${TITLE})}`, { todo: TRANSLATION_TODO_TYPE }), draftOnly = await client.fetch(`*[_id in path("drafts.**") && ${field} in $others && !(_type in $excluded) && !defined(*[_id == string::split(^._id, "drafts.")[1]][0]._id)]{"language": ${field}}`, {
4373
+ "version": coalesce(*[_id == "drafts." + ^.documentId][0], *[_id == ^.documentId][0]){"language": ${field}, "title": ${TITLE}}}
4374
+ {documentId, sourceId, sourceLanguage, paths, "language": version.language, "title": version.title}`, { todo: TRANSLATION_TODO_TYPE }), draftOnly = await client.fetch(`*[_id in path("drafts.**") && ${field} in $others && !(_type in $excluded) && !defined(*[_id == string::split(^._id, "drafts.")[1]][0]._id)]{"language": ${field}}`, {
4375
4375
  others,
4376
4376
  excluded: EXCLUDED
4377
4377
  }), drafts = others.map((language) => ({