@nocode-factory/sanity-kit 2.23.0 → 2.24.0

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/bin/ncf-kit.mjs CHANGED
@@ -373,6 +373,10 @@ async function doctor() {
373
373
  }
374
374
  const ci = walk(join(root, '.github', 'workflows')).some((f) => /check-translations/.test(read(f)))
375
375
  ci ? ok('Langues : contrôle des données', 'check-translations en CI') : warn('Langues : contrôle des données', need('un contrôle des données en CI', 'pages sans traduction reliée, liens vers une autre langue', 'studio/scripts/check-translations.ts et son étape dans .github/workflows/ci.yml (voir le starter).'))
376
+ // Presentation : le panneau de droite suit la page affichée DANS SA LANGUE.
377
+ config.includes('ncfMainDocuments(')
378
+ ? ok('Langues : panneau de Presentation', 'ncfMainDocuments')
379
+ : ko('Langues : panneau de Presentation', need('ncfMainDocuments dans presentationTool', 'en changeant de langue dans l\'aperçu, le panneau de droite doit éditer le document de cette langue', 'resolve: {mainDocuments: defineDocuments(ncfMainDocuments(ncfOptions, {siteRoutes: routes}))} (voir sanity.config.ts du starter).'))
376
380
  const rules = read(join(root, 'CLAUDE.md'))
377
381
  rules && !/trois règles/i.test(rules) && warn('Langues : consignes', need('les trois règles des langues dans CLAUDE.md', 'Claude ne les connaîtrait pas dans ce projet', 'recopier le bloc « LANGUES » du CLAUDE.md du starter.'))
378
382
  }
package/dist/index.d.ts CHANGED
@@ -676,6 +676,7 @@ interface SiteRoutesRegistry {
676
676
  homePage?: boolean;
677
677
  system?: boolean;
678
678
  notFound?: boolean;
679
+ pageSlug?: string;
679
680
  }[];
680
681
  collections?: {
681
682
  type: string;
@@ -1339,7 +1340,7 @@ export declare function ActorName(props: {
1339
1340
  * quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
1340
1341
  * le vérifie.
1341
1342
  */
1342
- export declare const KIT_VERSION = "2.23.0";
1343
+ export declare const KIT_VERSION = "2.24.0";
1343
1344
  /**
1344
1345
  * Données de la page proposées comme colonnes.
1345
1346
  *
@@ -1803,6 +1804,31 @@ export declare function blockName(type: string, namespace: string): string;
1803
1804
  export declare function fillTemplate(template: string, type: string, namespace: string): string;
1804
1805
  /** Libellé lisible par défaut : 'imageText' -> 'Image text'. */
1805
1806
  export declare function humanizeBlockName(type: string, namespace: string): string;
1807
+ /** Une entrée de `presentationTool({resolve: {mainDocuments: defineDocuments([...])}})`. */
1808
+ interface MainDocumentRoute {
1809
+ route: string;
1810
+ filter: string;
1811
+ }
1812
+ /**
1813
+ * Presentation : le document du panneau de droite est TOUJOURS celui de la page
1814
+ * affichée, DANS SA LANGUE. Sans cette liste, changer de langue (ou de page) dans
1815
+ * l'aperçu laisse le panneau sur l'ancien document : on modifie le français en
1816
+ * regardant l'anglais.
1817
+ *
1818
+ * Une route par adresse et par langue (langue principale sans préfixe, les autres
1819
+ * sous /<langue>) : accueil, pages codées du registre (`pageSlug`), collections
1820
+ * (`<préfixe>/:slug`), design system (valeurs par défaut des composants). Ordre :
1821
+ * langues préfixées d'abord, puis du plus précis au plus général (`/:slug` en
1822
+ * dernier), pour que `/en` ne soit pas lu comme la page de slug « en ».
1823
+ *
1824
+ * ```ts
1825
+ * presentationTool({resolve: {mainDocuments: defineDocuments(ncfMainDocuments(ncfOptions, {siteRoutes: routes}))}})
1826
+ * ```
1827
+ */
1828
+ export declare function ncfMainDocuments(options: NcfKitConfig, extra?: {
1829
+ siteRoutes?: SiteRoutesRegistry;
1830
+ designSystemRoutes?: string[];
1831
+ }): MainDocumentRoute[];
1806
1832
  /** Noms des outils dans la barre du Studio. Exportés pour filtrer `tools`. */
1807
1833
  export declare const NCF_PAGES_TOOL = "ncf-pages";
1808
1834
  export declare const NCF_COMPONENTS_TOOL = "ncf-components";
@@ -1810,5 +1836,5 @@ export declare const NCF_HISTORY_TOOL = "ncf-history";
1810
1836
  export declare const NCF_DESIGN_SYSTEM_TOOL = "ncf-design-system";
1811
1837
  export declare const NCF_TOOL_NAMES: readonly ["ncf-pages", "ncf-components", "ncf-history", "ncf-design-system"];
1812
1838
  export declare const ncfKit: import("sanity").Plugin<NcfKitConfig>;
1813
- export { type AddColumnInput, type Annotation, type AnnotationsState, type BlockOccurrence, type BlockTypeInfo, type BoardEdge, type BoardGraph, type BoardLayoutState, type BoardNode, CONTENT_SCAN_LIMIT as OCCURRENCE_SCAN_LIMIT, type Change, type ChangeKind, type CollectedLinks, type ColorBy, type ColorOptions, type ConfigIssue, DEFAULT_COMPONENT_DEFAULTS_TYPE, type DeriveOptions, type GroupBy, type GroupOptions, type HistoryDetail, type HistoryEvent, type IssueLevel, type KitContextValue, type KitUpdate, type LayoutMode, type MergedDoc, type NcfBoardTag, type NcfComponentPreviewConfig, type NcfDocumentColumn, type NcfEnvironment, type NcfHistoryConfig, type NcfI18nConfig, type NcfInternalField, type NcfInternalFieldOption, type NcfKitConfig, type NcfPageTypeConfig, type NcfPageTypeInput, type NcfToolName, type NcfToolsConfig, type NodeLayout, type NodePosition, type OccurrenceInput, type OccurrencePage, type OccurrencesState, type PageContent, type PageContentsState, type PageDoc, type PageFilters, type PageRow, type PageStatus, type PagesState, type PathInput, type Positioned, type PresentationOptions, type PreviewGrant, type PreviewPerspective, type PreviewTargetState, type ProjectStatus, type Registration, type ResolvedComponentPreview, type ResolvedDocumentColumn, type ResolvedHistory, type ResolvedI18n, type ResolvedKitConfig, type ResolvedPageType, type RowColor, type RowGroup, type SchemaFieldLike, type SchemaTypeLike, type SectionLayout, type SectionMapNode, type SectionOrder, type SectionsMapOptions, type Segment, type SiteRoutesRegistry, type SortDirection, type SortKey, type ThumbnailInput, type VersionedDoc, componentDefaultsMainDocument, componentDefaultsMainDocuments, defaultsFieldName, defineComponentDefaults, requiredUnlessDefault, requiredUnlessDefaultFor };
1839
+ export { type AddColumnInput, type Annotation, type AnnotationsState, type BlockOccurrence, type BlockTypeInfo, type BoardEdge, type BoardGraph, type BoardLayoutState, type BoardNode, CONTENT_SCAN_LIMIT as OCCURRENCE_SCAN_LIMIT, type Change, type ChangeKind, type CollectedLinks, type ColorBy, type ColorOptions, type ConfigIssue, DEFAULT_COMPONENT_DEFAULTS_TYPE, type DeriveOptions, type GroupBy, type GroupOptions, type HistoryDetail, type HistoryEvent, type IssueLevel, type KitContextValue, type KitUpdate, type LayoutMode, type MainDocumentRoute, type MergedDoc, type NcfBoardTag, type NcfComponentPreviewConfig, type NcfDocumentColumn, type NcfEnvironment, type NcfHistoryConfig, type NcfI18nConfig, type NcfInternalField, type NcfInternalFieldOption, type NcfKitConfig, type NcfPageTypeConfig, type NcfPageTypeInput, type NcfToolName, type NcfToolsConfig, type NodeLayout, type NodePosition, type OccurrenceInput, type OccurrencePage, type OccurrencesState, type PageContent, type PageContentsState, type PageDoc, type PageFilters, type PageRow, type PageStatus, type PagesState, type PathInput, type Positioned, type PresentationOptions, type PreviewGrant, type PreviewPerspective, type PreviewTargetState, type ProjectStatus, type Registration, type ResolvedComponentPreview, type ResolvedDocumentColumn, type ResolvedHistory, type ResolvedI18n, type ResolvedKitConfig, type ResolvedPageType, type RowColor, type RowGroup, type SchemaFieldLike, type SchemaTypeLike, type SectionLayout, type SectionMapNode, type SectionOrder, type SectionsMapOptions, type Segment, type SiteRoutesRegistry, type SortDirection, type SortKey, type ThumbnailInput, type VersionedDoc, componentDefaultsMainDocument, componentDefaultsMainDocuments, defaultsFieldName, defineComponentDefaults, requiredUnlessDefault, requiredUnlessDefaultFor };
1814
1840
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as defineComponentDefaults, i as defaultsFieldName, n as componentDefaultsMainDocument, o as requiredUnlessDefault, r as componentDefaultsMainDocuments, s as requiredUnlessDefaultFor, t as DEFAULT_COMPONENT_DEFAULTS_TYPE } from "./componentDefaults-BY3hQ6aD.js";
2
2
  import { createContext, createElement, forwardRef, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
3
- import { ToolLink, defineField, definePlugin, defineType, pathToString, set, unset, useClient, useCurrentUser, useFormValue, useSchema, useUser, useWorkspace } from "sanity";
3
+ import { ToolLink, defineField, definePlugin, defineType, pathToString, set, unset, useClient, useCurrentUser, useFormValue, usePerspective, useSchema, useSetPerspective, useUser, useWorkspace } from "sanity";
4
4
  import { ClockIcon } from "@sanity/icons/Clock";
5
5
  import { ComponentIcon } from "@sanity/icons/Component";
6
6
  import { DocumentsIcon } from "@sanity/icons/Documents";
@@ -1418,7 +1418,7 @@ function explainGrantError(error) {
1418
1418
  * quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
1419
1419
  * le vérifie.
1420
1420
  */
1421
- const KIT_VERSION = "2.23.0";
1421
+ const KIT_VERSION = "2.24.0";
1422
1422
  /**
1423
1423
  * Signale ce Studio au service du kit, une fois par montage.
1424
1424
  *
@@ -1584,6 +1584,22 @@ function createToolComponent(args) {
1584
1584
  });
1585
1585
  };
1586
1586
  }
1587
+ let checked = !1;
1588
+ /**
1589
+ * À l'ouverture du Studio, on édite : vue « Drafts », jamais « Published ». Un lien
1590
+ * « Prod · En ligne » (perspective=published dans l'adresse) ou un Studio rechargé
1591
+ * sur cette vue rouvrait sinon en lecture seule. Ensuite, le choix de l'utilisateur
1592
+ * est respecté jusqu'au prochain chargement.
1593
+ */
1594
+ function DraftsOnLoad() {
1595
+ let { selectedPerspectiveName } = usePerspective(), setPerspective = useSetPerspective();
1596
+ return useEffect(() => {
1597
+ if (checked) return;
1598
+ checked = !0;
1599
+ let fromUrl = typeof window < "u" && new URLSearchParams(window.location.search).get("perspective") === "published";
1600
+ (selectedPerspectiveName === "published" || fromUrl) && setPerspective("drafts");
1601
+ }, [selectedPerspectiveName, setPerspective]), null;
1602
+ }
1587
1603
  /**
1588
1604
  * Petit panneau ancré à son déclencheur.
1589
1605
  *
@@ -1745,7 +1761,7 @@ function useKitUpdate() {
1745
1761
  !controller.signal.aborted && body?.version && setLatest(body.version);
1746
1762
  }).catch(() => {}), () => controller.abort();
1747
1763
  }, []);
1748
- let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.23.0") > 0);
1764
+ let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.24.0") > 0);
1749
1765
  return {
1750
1766
  current: KIT_VERSION,
1751
1767
  latest,
@@ -2109,10 +2125,10 @@ function NcfPreviewLauncher(props) {
2109
2125
  */
2110
2126
  function createPreviewLauncher(config, issues) {
2111
2127
  return function NcfToolMenu(props) {
2112
- return /* @__PURE__ */ jsx(KitProvider, {
2128
+ return /* @__PURE__ */ jsxs(KitProvider, {
2113
2129
  config,
2114
2130
  issues,
2115
- children: /* @__PURE__ */ jsx(NcfPreviewLauncher, { ...props })
2131
+ children: [/* @__PURE__ */ jsx(DraftsOnLoad, {}), /* @__PURE__ */ jsx(NcfPreviewLauncher, { ...props })]
2116
2132
  });
2117
2133
  };
2118
2134
  }
@@ -8117,6 +8133,34 @@ function withTranslationTodo(Inner, config) {
8117
8133
  }
8118
8134
  return TranslationTodoInput;
8119
8135
  }
8136
+ const LEAF = /* @__PURE__ */ new Set([
8137
+ "string",
8138
+ "number",
8139
+ "boolean"
8140
+ ]);
8141
+ /**
8142
+ * Vue « Published » : le formulaire est en lecture seule et rien ne dit pourquoi.
8143
+ * Au survol d'un champ : « Switch to Drafts to edit ». La structure ne change
8144
+ * qu'avec la vue (jamais pendant la frappe : le champ n'est pas recréé).
8145
+ */
8146
+ function withPublishedHint(Inner) {
8147
+ function PublishedHint(props) {
8148
+ let { selectedPerspectiveName } = usePerspective(), inner = createElement(Inner, props);
8149
+ return selectedPerspectiveName !== "published" || !LEAF.has(props.schemaType.jsonType) ? inner : /* @__PURE__ */ jsx(Tooltip, {
8150
+ portal: !0,
8151
+ placement: "top",
8152
+ content: /* @__PURE__ */ jsx(Box, {
8153
+ padding: 2,
8154
+ children: /* @__PURE__ */ jsx(Text, {
8155
+ size: 1,
8156
+ children: "Switch to Drafts to edit"
8157
+ })
8158
+ }),
8159
+ children: /* @__PURE__ */ jsx("div", { children: inner })
8160
+ });
8161
+ }
8162
+ return PublishedHint;
8163
+ }
8120
8164
  const VALUE_TYPE_NAMES = /* @__PURE__ */ new Set([
8121
8165
  "image",
8122
8166
  "file",
@@ -8570,6 +8614,55 @@ function NcfPreviewHeader(props) {
8570
8614
  function ncfPreviewComponents() {
8571
8615
  return { unstable_header: { component: NcfPreviewHeader } };
8572
8616
  }
8617
+ const SAFE = /^[A-Za-z0-9_.-]+$/, quote = (value) => JSON.stringify(value);
8618
+ /**
8619
+ * Presentation : le document du panneau de droite est TOUJOURS celui de la page
8620
+ * affichée, DANS SA LANGUE. Sans cette liste, changer de langue (ou de page) dans
8621
+ * l'aperçu laisse le panneau sur l'ancien document : on modifie le français en
8622
+ * regardant l'anglais.
8623
+ *
8624
+ * Une route par adresse et par langue (langue principale sans préfixe, les autres
8625
+ * sous /<langue>) : accueil, pages codées du registre (`pageSlug`), collections
8626
+ * (`<préfixe>/:slug`), design system (valeurs par défaut des composants). Ordre :
8627
+ * langues préfixées d'abord, puis du plus précis au plus général (`/:slug` en
8628
+ * dernier), pour que `/en` ne soit pas lu comme la page de slug « en ».
8629
+ *
8630
+ * ```ts
8631
+ * presentationTool({resolve: {mainDocuments: defineDocuments(ncfMainDocuments(ncfOptions, {siteRoutes: routes}))}})
8632
+ * ```
8633
+ */
8634
+ function ncfMainDocuments(options, extra = {}) {
8635
+ let config = resolveConfig(options), i18n = config.i18n, field = i18n?.field ?? "language", locales = i18n ? [...i18n.locales.filter((l) => l !== i18n.defaultLocale), i18n.defaultLocale] : [null], slugTypes = config.pageTypes.filter((t) => t.slugField && !t.path), defaultsType = config.componentPreview.defaultsType, designSystem = extra.designSystemRoutes ?? ["/design-system/composant", "/design-system"], out = [];
8636
+ for (let locale of locales) {
8637
+ if (locale !== null && !SAFE.test(locale)) continue;
8638
+ let prefix = locale === null || locale === i18n?.defaultLocale ? "" : `/${locale}`, lang = locale === null ? "" : ` && ${field} == ${quote(locale)}`, at = (path) => path === "/" || path === "" ? prefix || "/" : `${prefix}${path}`;
8639
+ for (let route of designSystem) out.push({
8640
+ route: at(route),
8641
+ filter: `_type == ${quote(defaultsType)}${lang}`
8642
+ });
8643
+ for (let fixed of extra.siteRoutes?.fixed ?? []) {
8644
+ if (!fixed.pageSlug || fixed.system || fixed.notFound || !SAFE.test(fixed.pageSlug)) continue;
8645
+ let types = slugTypes.filter((t) => !t.pathPrefix || t.pathPrefix === "/").map((t) => quote(t.type)).join(", ");
8646
+ types && out.push({
8647
+ route: at(fixed.path),
8648
+ filter: `_type in [${types}] && slug.current == ${quote(fixed.pageSlug)}${lang}`
8649
+ });
8650
+ }
8651
+ for (let t of config.pageTypes) t.path && out.push({
8652
+ route: at(t.path),
8653
+ filter: `_type == ${quote(t.type)}${lang}`
8654
+ });
8655
+ let collections = [...slugTypes].sort((a, b) => (b.pathPrefix ?? "").length - (a.pathPrefix ?? "").length);
8656
+ for (let t of collections) {
8657
+ let base = t.pathPrefix && t.pathPrefix !== "/" ? t.pathPrefix : "";
8658
+ out.push({
8659
+ route: at(`${base}/:slug`),
8660
+ filter: `_type == ${quote(t.type)} && ${t.slugField}.current == $slug${lang}`
8661
+ });
8662
+ }
8663
+ }
8664
+ return out;
8665
+ }
8573
8666
  /**
8574
8667
  * Plugin Studio de NoCode Factory : Pages, Composants, Historique.
8575
8668
  *
@@ -8593,7 +8686,7 @@ function createKitInput(config) {
8593
8686
  function KitInput(props) {
8594
8687
  return isSlugInput(props) ? createElement(SlugUrl, props) : createElement(Override, props);
8595
8688
  }
8596
- return config.i18n ? withTranslationTodo(KitInput, config) : KitInput;
8689
+ return withPublishedHint(config.i18n ? withTranslationTodo(KitInput, config) : KitInput);
8597
8690
  }
8598
8691
  const ncfKit = definePlugin((options) => {
8599
8692
  let config = resolveConfig(options), issues = validateConfig(config);
@@ -8673,6 +8766,6 @@ const ncfKit = definePlugin((options) => {
8673
8766
  form: { components: { input: createKitInput(config) } }
8674
8767
  };
8675
8768
  });
8676
- export { ANNOTATION_TYPE, ActorName, BOARD_LAYOUT_ID, BOARD_LAYOUT_TYPE, BRAIN_NODE_SIZE, BoardLayoutProvider, COLUMN_TYPE, CONTENT_SCAN_LIMIT, CONTENT_SCAN_LIMIT as OCCURRENCE_SCAN_LIMIT, CUSTOM_ENVIRONMENT_ID, DATA_PREFIX, DEFAULT_BOARD_TAGS, DEFAULT_COMPONENT_DEFAULTS_TYPE, DEFAULT_COMPONENT_PREVIEW, DEFAULT_I18N, DEFAULT_INTERNAL_FIELDS, DEFAULT_MORE_TOOLS, DEFAULT_PAGE_BUILDER_FIELD, DEFAULT_SLUG_FIELD, DEFAULT_TITLE_FIELD, KIT_API_VERSION, KIT_VERSION, NCF_COMPONENTS_TOOL, NCF_DESIGN_SYSTEM_TOOL, NCF_HIDDEN_TYPES, NCF_HISTORY_TOOL, NCF_MORE_TOOL, NCF_PAGES_TOOL, NCF_TOOL_NAMES, NODE_FIELD_TYPE, NODE_HEIGHT, NODE_WIDTH, NcfKitUpdate, NcfPreviewHeader, NcfPreviewLauncher, PERSPECTIVES, PROJECTION, SECTION_NODE_TYPE, STATUS_COLORS, STATUS_LABELS, SharePreview, UNSET_LABEL, addColumn, addColumnOption, announce, applySavedPositions, baseId, blockName, blockTypesFromSchema, buildContentsQuery, buildLinkGraph, buildPageRows, buildPagesQuery, collectLinks, collectOccurrences, colorForRow, colorFromString, columnId, compareVersions, componentDefaultsMainDocument, componentDefaultsMainDocuments, createPreviewLauncher, customEnvironment, defaultNodeSize, defaultsFieldName, defineComponentDefaults, depth, deriveDocumentColumns, diffDocuments, diffWords, editIntentPath, explainGrantError, fallbackLayout, fetchDetail, fetchTimeline, fillTemplate, filterRows, flatten, formatDocumentValue, groupPageRows, groupValue, hasBlockingIssue, humanizeBlockName, isDraftId, isKitType, isPrerelease, isSafeColumnKey, isSafeFieldPath, isTextChange, isVersionId, issuesForTool, keyForPath, kitSchemaTypes, layoutGraph, layoutSectionsMap, localesInRows, mergeVersions, missingPageTypes, moveColumn, ncfAllowedOrigins, ncfKit, ncfPreviewComponents, normalizeInternalPath, normalizePath, occurrencesForTypes, pageThumbnailUrl, pageTypeFor, pageTypesFromSiteRoutes, pageTypesWithoutBuilder, parentPath, presentationPath, pruneSavedPositions, releaseId, removeColumn, renameColumn, requestPreviewGrant, requiredUnlessDefault, requiredUnlessDefaultFor, resolveColorBy, resolveConfig, segments, slugKey, sortRows, summarize, toKebabCase, toPath, toUrl, topLevelBlockCount, uniqueColumnId, upsertLayout, urlOn, useAnnotations, useBoardLayout, useDocumentColumns, useHistory, useInternalColumns, useKitClient, useKitConfig, useKitContext, useKitUpdate, useOccurrences, usePageContents, usePages, usePreviewTarget, useRegistration, validateConfig, withAlpha, withMoreTool };
8769
+ export { ANNOTATION_TYPE, ActorName, BOARD_LAYOUT_ID, BOARD_LAYOUT_TYPE, BRAIN_NODE_SIZE, BoardLayoutProvider, COLUMN_TYPE, CONTENT_SCAN_LIMIT, CONTENT_SCAN_LIMIT as OCCURRENCE_SCAN_LIMIT, CUSTOM_ENVIRONMENT_ID, DATA_PREFIX, DEFAULT_BOARD_TAGS, DEFAULT_COMPONENT_DEFAULTS_TYPE, DEFAULT_COMPONENT_PREVIEW, DEFAULT_I18N, DEFAULT_INTERNAL_FIELDS, DEFAULT_MORE_TOOLS, DEFAULT_PAGE_BUILDER_FIELD, DEFAULT_SLUG_FIELD, DEFAULT_TITLE_FIELD, KIT_API_VERSION, KIT_VERSION, NCF_COMPONENTS_TOOL, NCF_DESIGN_SYSTEM_TOOL, NCF_HIDDEN_TYPES, NCF_HISTORY_TOOL, NCF_MORE_TOOL, NCF_PAGES_TOOL, NCF_TOOL_NAMES, NODE_FIELD_TYPE, NODE_HEIGHT, NODE_WIDTH, NcfKitUpdate, NcfPreviewHeader, NcfPreviewLauncher, PERSPECTIVES, PROJECTION, SECTION_NODE_TYPE, STATUS_COLORS, STATUS_LABELS, SharePreview, UNSET_LABEL, addColumn, addColumnOption, announce, applySavedPositions, baseId, blockName, blockTypesFromSchema, buildContentsQuery, buildLinkGraph, buildPageRows, buildPagesQuery, collectLinks, collectOccurrences, colorForRow, colorFromString, columnId, compareVersions, componentDefaultsMainDocument, componentDefaultsMainDocuments, createPreviewLauncher, customEnvironment, defaultNodeSize, defaultsFieldName, defineComponentDefaults, depth, deriveDocumentColumns, diffDocuments, diffWords, editIntentPath, explainGrantError, fallbackLayout, fetchDetail, fetchTimeline, fillTemplate, filterRows, flatten, formatDocumentValue, groupPageRows, groupValue, hasBlockingIssue, humanizeBlockName, isDraftId, isKitType, isPrerelease, isSafeColumnKey, isSafeFieldPath, isTextChange, isVersionId, issuesForTool, keyForPath, kitSchemaTypes, layoutGraph, layoutSectionsMap, localesInRows, mergeVersions, missingPageTypes, moveColumn, ncfAllowedOrigins, ncfKit, ncfMainDocuments, ncfPreviewComponents, normalizeInternalPath, normalizePath, occurrencesForTypes, pageThumbnailUrl, pageTypeFor, pageTypesFromSiteRoutes, pageTypesWithoutBuilder, parentPath, presentationPath, pruneSavedPositions, releaseId, removeColumn, renameColumn, requestPreviewGrant, requiredUnlessDefault, requiredUnlessDefaultFor, resolveColorBy, resolveConfig, segments, slugKey, sortRows, summarize, toKebabCase, toPath, toUrl, topLevelBlockCount, uniqueColumnId, upsertLayout, urlOn, useAnnotations, useBoardLayout, useDocumentColumns, useHistory, useInternalColumns, useKitClient, useKitConfig, useKitContext, useKitUpdate, useOccurrences, usePageContents, usePages, usePreviewTarget, useRegistration, validateConfig, withAlpha, withMoreTool };
8677
8770
 
8678
8771
  //# sourceMappingURL=index.js.map