@bison-lab/payload-core 4.10.1 → 4.11.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/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { n as documentTitle, r as titleTemplate, t as SHARE_IMAGE_SIZE } from "./share-image-C4ILz4p2.mjs";
2
2
  import { A as THEME_DOCUMENT_CONTROLS, C as validateSourceIncluded, D as THEME_COLOR_FIELD, E as THEME_APPEARANCE_FIELD, F as THEME_PAIRING_FIELD, I as THEME_PUBLISH_FIELD, L as THEME_SAVE_BUTTON, M as THEME_GREY_SCALE_FIELD, N as THEME_IDENTITY_FALLBACK, O as THEME_COLOR_SCALE_FIELD, P as THEME_LIBRARY_FIELD, R as THEME_SECTION_HEADING, S as themeConfigFromDoc, T as LOOK_FIELD, _ as THEME_IDENTITY_SLUG, a as PAGE_EDITOR_SYSTEM_KEYS, b as docFromConfig, c as themeLibraryFromDoc, d as deleteLibraryColor, f as rewriteColorToken, g as THEME_COLORS_SLUG, h as THEME_APPEARANCE_SLUG, i as lookField, j as THEME_FONT_FIELD, k as THEME_CONTRAST_REPORT, l as findColorTokens, m as SYSTEM_COLOR_KEYS, n as THEME_PREVIEW_BREAKPOINTS, o as pageEditorLooks, p as themeColorKeys, r as colorTokenField, s as pageEditorTokens, t as resolveThemeIdentity, u as rewriteColorTokens, v as THEME_SLUG, w as validateThemeHex, y as THEME_TYPOGRAPHY_SLUG, z as headingSelectValue } from "./identity-DOGDpCgK.mjs";
3
- import { C as NAVIGATION_SLUG, S as NAVIGATION_FOOTER_SLUG, _ as validateExternalHref, a as FOOTER_MAX_LINK_COLUMNS, b as NAVIGATION_FEATURE, c as footerDesktopTracks, d as validateFooterColumns, f as validateFooterSocialUrl, g as linkField, h as isValidExternalHref, i as FOOTER_MAX_COLUMNS, l as footerFields, m as headerCtaEnabled, n as FOOTER_COLUMNS_FIELD, o as FOOTER_SOCIALS, p as EXTERNAL_HREF_MESSAGE, r as FOOTER_COLUMN_WIDTHS, s as FOOTER_TWELFTHS, t as getNavigation, u as normalizeFooterDesktop, v as validateHeaderCta, x as NAVIGATION_FOOTER_DB_NAME, y as NAVIGATION_DB_NAME } from "./published-BvTPQqAF.mjs";
3
+ import { _ as sectionControlsOf, a as sectionControlsFromLibrary, c as BLOCK_LIBRARY_CATEGORIES, d as DEFAULT_SECTION_CONTROLS, f as HERO_SECTION_CONTROLS, g as defaultSectionControls, h as SECTION_CONTROL_LABELS, i as defaultBlockLibraryValue, l as BLOCK_LIBRARY_SLUG, m as SECTION_CONTROL_KEYS, n as getSectionControls, o as stampBlockLibrary, p as NO_SECTION_CONTROLS, r as blockLibraryCatalogue, s as validateBlockLibrary, t as blockLibraryEntriesFromConfig, u as PACKAGE_BLOCK_SLUGS } from "./published-BjmUCpdY.mjs";
4
+ import { C as NAVIGATION_SLUG, S as NAVIGATION_FOOTER_SLUG, _ as validateExternalHref, a as FOOTER_MAX_LINK_COLUMNS, b as NAVIGATION_FEATURE, c as footerDesktopTracks, d as validateFooterColumns, f as validateFooterSocialUrl, g as linkField, h as isValidExternalHref, i as FOOTER_MAX_COLUMNS, l as footerFields, m as headerCtaEnabled, n as FOOTER_COLUMNS_FIELD, o as FOOTER_SOCIALS, p as EXTERNAL_HREF_MESSAGE, r as FOOTER_COLUMN_WIDTHS, s as FOOTER_TWELFTHS, t as getNavigation, u as normalizeFooterDesktop, v as validateHeaderCta, x as NAVIGATION_FOOTER_DB_NAME, y as NAVIGATION_DB_NAME } from "./published-CcW9bqLJ.mjs";
4
5
  import { seoPlugin as seoPlugin$1 } from "@payloadcms/plugin-seo";
5
6
  import { catalog } from "@bison-lab/fonts";
6
7
  import { DESTRUCTIVE_SCALE_HEX, SHADE_STEPS, SUCCESS_SCALE_HEX, presetHints } from "@bison-lab/tokens";
@@ -1627,202 +1628,6 @@ async function seedRoles(payload, extras = []) {
1627
1628
  });
1628
1629
  }
1629
1630
  //#endregion
1630
- //#region src/block-library/types.ts
1631
- const BLOCK_LIBRARY_SLUG = "block-library";
1632
- const BLOCK_LIBRARY_CATEGORIES = [
1633
- {
1634
- id: "hero",
1635
- label: "Hero"
1636
- },
1637
- {
1638
- id: "feature",
1639
- label: "Feature"
1640
- },
1641
- {
1642
- id: "process",
1643
- label: "Process"
1644
- },
1645
- {
1646
- id: "faq",
1647
- label: "FAQ"
1648
- },
1649
- {
1650
- id: "testimonials",
1651
- label: "Testimonials"
1652
- },
1653
- {
1654
- id: "stats",
1655
- label: "Stats"
1656
- },
1657
- {
1658
- id: "content",
1659
- label: "Content"
1660
- },
1661
- {
1662
- id: "contact",
1663
- label: "Contact"
1664
- },
1665
- {
1666
- id: "cta",
1667
- label: "CTA"
1668
- },
1669
- {
1670
- id: "navigation",
1671
- label: "Navigation"
1672
- }
1673
- ];
1674
- /**
1675
- * Package catalogue. `megaMenu` and `navLink` are header item blocks, not
1676
- * cards. Navigation's card is `floatingNav`. CTA is a category for a site
1677
- * extra; the package ships no CTA slug. The preview route is SPI-53.
1678
- */
1679
- const PACKAGE_BLOCK_SLUGS = [
1680
- "hero",
1681
- "heroSweep",
1682
- "heroCompact",
1683
- "showcasePanels",
1684
- "processSteps",
1685
- "faqColumns",
1686
- "testimonialMasonry",
1687
- "statsBand",
1688
- "richText",
1689
- "nap",
1690
- "floatingNav"
1691
- ];
1692
- //#endregion
1693
- //#region src/block-library/catalogue.ts
1694
- const NOT_CATALOGUE = new Set(["megaMenu", "navLink"]);
1695
- const PACKAGE_BLOCKS = [
1696
- {
1697
- slug: "hero",
1698
- label: "Hero",
1699
- category: "hero",
1700
- kind: "hero"
1701
- },
1702
- {
1703
- slug: "heroSweep",
1704
- label: "Sweep hero",
1705
- category: "hero",
1706
- kind: "hero"
1707
- },
1708
- {
1709
- slug: "heroCompact",
1710
- label: "Compact hero",
1711
- category: "hero",
1712
- kind: "hero"
1713
- },
1714
- {
1715
- slug: "showcasePanels",
1716
- label: "Showcase panels",
1717
- category: "feature",
1718
- kind: "section"
1719
- },
1720
- {
1721
- slug: "processSteps",
1722
- label: "Process steps",
1723
- category: "process",
1724
- kind: "section"
1725
- },
1726
- {
1727
- slug: "faqColumns",
1728
- label: "FAQ",
1729
- category: "faq",
1730
- kind: "section"
1731
- },
1732
- {
1733
- slug: "testimonialMasonry",
1734
- label: "Testimonials",
1735
- category: "testimonials",
1736
- kind: "section"
1737
- },
1738
- {
1739
- slug: "statsBand",
1740
- label: "Stats",
1741
- category: "stats",
1742
- kind: "section"
1743
- },
1744
- {
1745
- slug: "richText",
1746
- label: "Rich text",
1747
- category: "content",
1748
- kind: "section"
1749
- },
1750
- {
1751
- slug: "nap",
1752
- label: "Contact",
1753
- category: "contact",
1754
- kind: "section"
1755
- },
1756
- {
1757
- slug: "floatingNav",
1758
- label: "Floating navbar",
1759
- category: "navigation",
1760
- kind: "navbar",
1761
- supportsMega: true
1762
- }
1763
- ];
1764
- function blockLibraryCatalogue(extras = []) {
1765
- const extra = extras.filter((entry) => !NOT_CATALOGUE.has(entry.slug));
1766
- return [...PACKAGE_BLOCKS.map((entry) => ({ ...entry })), ...extra];
1767
- }
1768
- function defaultBlockLibraryValue(options) {
1769
- return blockLibraryCatalogue(options.blocks).map((entry) => toRow(entry, true));
1770
- }
1771
- function toRow(entry, enabled = true) {
1772
- const kind = entry.kind ?? (entry.category === "hero" ? "hero" : entry.category === "navigation" ? "navbar" : "section");
1773
- return {
1774
- id: entry.slug,
1775
- slug: entry.slug,
1776
- label: entry.label,
1777
- category: entry.category,
1778
- enabled,
1779
- kind
1780
- };
1781
- }
1782
- function stampBlockLibrary(value, options) {
1783
- const catalogue = blockLibraryCatalogue(options.blocks);
1784
- const incoming = /* @__PURE__ */ new Map();
1785
- if (Array.isArray(value)) for (const item of value) {
1786
- if (!item || typeof item !== "object" || !("slug" in item)) continue;
1787
- const slug = item.slug;
1788
- if (typeof slug !== "string" || NOT_CATALOGUE.has(slug)) continue;
1789
- if (!catalogue.some((entry) => entry.slug === slug)) continue;
1790
- if ("enabled" in item && typeof item.enabled === "boolean") incoming.set(slug, item.enabled);
1791
- }
1792
- return catalogue.map((entry) => toRow(entry, incoming.get(entry.slug) ?? true));
1793
- }
1794
- function enabledOf(rows, kind) {
1795
- return rows.filter((row) => row.kind === kind && row.enabled).length;
1796
- }
1797
- function holderLabel(holder) {
1798
- const title = holder.title?.trim() || "Untitled";
1799
- const slug = holder.slug?.trim();
1800
- return slug ? `${title} (${slug})` : title;
1801
- }
1802
- /**
1803
- * Refuses a disable: the last hero, the last navbar, or a slug a published
1804
- * document holds. Drafts alone never refuse; the Save that turns the slug
1805
- * off strips them (`stripDrafts`). Pure — writes nothing.
1806
- */
1807
- async function validateBlockLibrary(value, options, check = {}) {
1808
- const next = stampBlockLibrary(value, options);
1809
- const previous = check.originals ?? defaultBlockLibraryValue(options);
1810
- const turningOff = next.filter((row) => {
1811
- return previous.find((entry) => entry.slug === row.slug)?.enabled !== false && row.enabled === false;
1812
- });
1813
- if (turningOff.length === 0) return true;
1814
- if (turningOff.some((row) => row.kind === "hero") && enabledOf(next, "hero") === 0) return "Cannot disable the last hero.";
1815
- if (turningOff.some((row) => row.kind === "navbar") && enabledOf(next, "navbar") === 0) return "Cannot disable the last navbar.";
1816
- const holders = check.holders ?? [];
1817
- if (holders.length > 0) {
1818
- const names = holders.map(holderLabel).join(", ");
1819
- const slugs = turningOff.map((row) => row.label).join(", ");
1820
- const drafts = check.drafts ?? [];
1821
- return `Cannot disable ${slugs}. Still published on: ${names}. Remove it from those first.${drafts.length > 0 ? ` Drafts also use it and were left as they are: ${drafts.map(holderLabel).join(", ")}.` : ""}`;
1822
- }
1823
- return true;
1824
- }
1825
- //#endregion
1826
1631
  //#region src/block-library/fields.ts
1827
1632
  const BLOCK_LIBRARY_FIELD = "@bison-lab/payload-core/admin#BlockLibraryField";
1828
1633
  //#endregion
@@ -2067,9 +1872,9 @@ function createBlockLibrary({ access, blocks = [], previewPath }) {
2067
1872
  const turningOff = stamped.filter((row) => {
2068
1873
  return originals.find((entry) => entry.slug === row.slug)?.enabled !== false && row.enabled === false;
2069
1874
  });
2070
- if (turningOff.length === 0) return stamped;
2071
1875
  const counted = await validateBlockLibrary(stamped, options, { originals });
2072
1876
  if (counted !== true) throw new APIError(counted, 400);
1877
+ if (turningOff.length === 0) return stamped;
2073
1878
  const payload = req?.payload;
2074
1879
  if (!payload) return stamped;
2075
1880
  const drafts = [];
@@ -2127,6 +1932,16 @@ function createBlockLibrary({ access, blocks = [], previewPath }) {
2127
1932
  name: "kind",
2128
1933
  type: "text",
2129
1934
  admin: { hidden: true }
1935
+ },
1936
+ {
1937
+ name: "sectionControls",
1938
+ type: "group",
1939
+ admin: { hidden: true },
1940
+ fields: SECTION_CONTROL_KEYS.map((key) => ({
1941
+ name: key,
1942
+ type: "checkbox",
1943
+ label: SECTION_CONTROL_LABELS[key]
1944
+ }))
2130
1945
  }
2131
1946
  ]
2132
1947
  };
@@ -4060,6 +3875,6 @@ const listAlign = definePlugin({
4060
3875
  }
4061
3876
  });
4062
3877
  //#endregion
4063
- export { ADMIN_NAV, ADMIN_NAV_ENTITY_FIELD, ADMIN_NAV_ITEM_ROW_LABEL, ADMIN_NAV_ROW_LABEL, ADMIN_NAV_SLUG, BLOCK_LIBRARY_CATEGORIES, BLOCK_LIBRARY_FIELD, BLOCK_LIBRARY_SLUG, BRAND_ASSETS_MIME_TYPES, BRAND_ASSETS_SLUG, CAPABILITIES, CAPABILITY_FEATURES, DEFAULT_ROLE_GRANTS, DEFAULT_ROLE_MATRIX, DESCRIPTION_LENGTH, DEVELOPER_DESCRIPTION, DOCUMENT_CREATE_NEW, DOCUMENT_TITLE_ACTIONS, DUPLICATE_ROLE_NAME_MESSAGE, DUPLICATE_ROLE_SLUG_MESSAGE, EXISTING_PARENT_MESSAGE, EXTERNAL_HREF_MESSAGE, FEATURES_MATRIX_FIELD, FEATURES_SLUG, FEATURE_GROUPS, FEATURE_GROUP_LABELS, FOOTER_COLUMNS_FIELD, FOOTER_COLUMN_WIDTHS, FOOTER_MAX_COLUMNS, FOOTER_MAX_LINK_COLUMNS, FOOTER_SOCIALS, FOOTER_TWELFTHS, INVALID_ROLE_NAME_MESSAGE, LAST_ADMIN_DELETE_MESSAGE, LAST_ADMIN_DEMOTE_MESSAGE, LAST_USERS_TICK_MESSAGE, LAYOUT_DESCRIPTION, LAYOUT_REQUIRED_LABEL, LAYOUT_REQUIRED_MESSAGE, LIST_ALIGN, LOOK_FIELD, MEDIA_ALT_AUTOFILL, MEDIA_IN_USE_PATH, MEDIA_LIST, MISSING_PACKAGE_FEATURES_MESSAGE, MISSING_SEED_ROLES_MESSAGE, NAVIGATION_DB_NAME, NAVIGATION_FEATURE, NAVIGATION_FOOTER_DB_NAME, NAVIGATION_FOOTER_SLUG, NAVIGATION_SLUG, NEW_FOLDER_PARENT, PACKAGE_BLOCK_SLUGS, PACKAGE_FEATURES, PACKAGE_FEATURE_SLUGS, PAGE_EDITOR_SYSTEM_KEYS, PAGE_SLUG_CELL, PAGE_TITLE_CELL, QUESTIONS_FEATURE, QUESTIONS_LIST, QUESTIONS_SLUG, REDIRECTS_SLUG, REQUIRED_PAGE_CELL, REQUIRED_PAGE_DELETE_MESSAGE, REQUIRED_PAGE_FIELD, REQUIRED_PAGE_UNPUBLISH_MESSAGE, ROLES, ROLES_FIELD, ROLES_FIELD_DESCRIPTION, ROLES_GLOBAL_DESCRIPTION, ROLES_GRANTS_FIELD, ROLES_MATRIX_FIELD, ROLES_ROW_LABEL, ROLES_SLUG, ROLE_LABELS, ROLE_NAME_FIELD, ROLE_SLUG_FIELD, ROOT_PAGE_KEY, ROOT_PAGE_SLUG, SHARE_IMAGE_SIZE, SLUG_FIELD, SLUG_UNLOCK_WARNING, SYSTEM_COLOR_KEYS, THEME_APPEARANCE_FIELD, THEME_APPEARANCE_SLUG, THEME_COLORS_SLUG, THEME_COLOR_FIELD, THEME_COLOR_SCALE_FIELD, THEME_CONTRAST_REPORT, THEME_DOCUMENT_CONTROLS, THEME_FEATURE_SLUGS, THEME_FONT_FIELD, THEME_GREY_SCALE_FIELD, THEME_IDENTITY_FALLBACK, THEME_IDENTITY_SLUG, THEME_LIBRARY_FIELD, THEME_PAIRING_FIELD, THEME_PREVIEW_BREAKPOINTS, THEME_PUBLISH_FIELD, THEME_SAVE_BUTTON, THEME_SECTION_HEADING, THEME_SLUG, THEME_TYPOGRAPHY_SLUG, adminNav, adminOnlyApiTab, allowedFeaturesForUser, altFromFilename, applyRoleSlugsFromNames, authenticatedOrPublished, blockLibraryCatalogue, blockUsage, canManageBrand, canManageContent, canPublish, canUseFeature, colorTokenField, composeSlug, createAdminNav, createBlockLibrary, createBrandAssets, createFeatures, createMedia, createNavigation, createPages, createQuestions, createRedirects, createRoles, createTaxonomy, createTheme, createUsers, defaultBlockLibraryValue, defaultFeaturesFieldValue, defaultRolesFieldValue, deleteLibraryColor, developerOnlyAccess, documentCreateNew, documentTitle, documentTitleActions, ensureRootPage, featureCatalogue, featureGroupLabel, fillBlankAltFromFilename, findColorTokens, findColorUsages, firstImageIn, footerDesktopTracks, getFeaturesMatrix, getNavigation, getRolesMatrix, hasCapability, hasFeature, hasGrant, hasRole, headerCtaEnabled, hideUnlessDeveloper, hideUnlessFeature, inferredFolders, isAdmin, isAdminOrSelf, isAuthenticated, isDeveloper, isDeveloperTab, isFeatureGroupId, isFeatureSlug, isLockedFeature, isPackageFeatureSlug, isPrivilegedRole, isRole, isRoleName, isRoleSlug, isRootPageKey, isValidExternalHref, lexicalPlainText, listAlign, listAlignColumns, listAlignCss, lockSlugOnPublish, lookField, noIndexField, normalizeFooterDesktop, normalizeSlug, normalizeStoredRoles, pageEditorLooks, pageEditorTokens, parentPrefix, parseFeaturesMatrix, parseRolesMatrix, persistThemeChild, publishThemeChild, recordPublishedSlugRedirect, redirectPath, replaceClientOriginalWithResizedFile, requireLayoutOnPublish, resetRolesMatrix, resolveAdminNav, resolveThemeIdentity, rewriteColorToken, rewriteColorTokens, rewriteColorUsages, roleDescription, roleLabel, roleSelectOptions, sanitizeRoleNameInput, sanitizeSvg, seedFeatures, seedRoleRows, seedRoles, seedTheme, seoPlugin, slugDepth, slugField, slugLeaf, slugifyRoleName, stampBlockLibrary, stampFeatureCatalogue, storedRoles, stripDrafts, syncAnswerText, themeColorKeys, themeLibraryFromDoc, titleTemplate, truncateAtWord, validateBlockLibrary, validateExternalHref, validateFeaturesMatrix, validateFooterColumns, validateFooterSocialUrl, validateHeaderCta, validateRolesMatrix, writePublishedSlugRedirect };
3878
+ export { ADMIN_NAV, ADMIN_NAV_ENTITY_FIELD, ADMIN_NAV_ITEM_ROW_LABEL, ADMIN_NAV_ROW_LABEL, ADMIN_NAV_SLUG, BLOCK_LIBRARY_CATEGORIES, BLOCK_LIBRARY_FIELD, BLOCK_LIBRARY_SLUG, BRAND_ASSETS_MIME_TYPES, BRAND_ASSETS_SLUG, CAPABILITIES, CAPABILITY_FEATURES, DEFAULT_ROLE_GRANTS, DEFAULT_ROLE_MATRIX, DEFAULT_SECTION_CONTROLS, DESCRIPTION_LENGTH, DEVELOPER_DESCRIPTION, DOCUMENT_CREATE_NEW, DOCUMENT_TITLE_ACTIONS, DUPLICATE_ROLE_NAME_MESSAGE, DUPLICATE_ROLE_SLUG_MESSAGE, EXISTING_PARENT_MESSAGE, EXTERNAL_HREF_MESSAGE, FEATURES_MATRIX_FIELD, FEATURES_SLUG, FEATURE_GROUPS, FEATURE_GROUP_LABELS, FOOTER_COLUMNS_FIELD, FOOTER_COLUMN_WIDTHS, FOOTER_MAX_COLUMNS, FOOTER_MAX_LINK_COLUMNS, FOOTER_SOCIALS, FOOTER_TWELFTHS, HERO_SECTION_CONTROLS, INVALID_ROLE_NAME_MESSAGE, LAST_ADMIN_DELETE_MESSAGE, LAST_ADMIN_DEMOTE_MESSAGE, LAST_USERS_TICK_MESSAGE, LAYOUT_DESCRIPTION, LAYOUT_REQUIRED_LABEL, LAYOUT_REQUIRED_MESSAGE, LIST_ALIGN, LOOK_FIELD, MEDIA_ALT_AUTOFILL, MEDIA_IN_USE_PATH, MEDIA_LIST, MISSING_PACKAGE_FEATURES_MESSAGE, MISSING_SEED_ROLES_MESSAGE, NAVIGATION_DB_NAME, NAVIGATION_FEATURE, NAVIGATION_FOOTER_DB_NAME, NAVIGATION_FOOTER_SLUG, NAVIGATION_SLUG, NEW_FOLDER_PARENT, NO_SECTION_CONTROLS, PACKAGE_BLOCK_SLUGS, PACKAGE_FEATURES, PACKAGE_FEATURE_SLUGS, PAGE_EDITOR_SYSTEM_KEYS, PAGE_SLUG_CELL, PAGE_TITLE_CELL, QUESTIONS_FEATURE, QUESTIONS_LIST, QUESTIONS_SLUG, REDIRECTS_SLUG, REQUIRED_PAGE_CELL, REQUIRED_PAGE_DELETE_MESSAGE, REQUIRED_PAGE_FIELD, REQUIRED_PAGE_UNPUBLISH_MESSAGE, ROLES, ROLES_FIELD, ROLES_FIELD_DESCRIPTION, ROLES_GLOBAL_DESCRIPTION, ROLES_GRANTS_FIELD, ROLES_MATRIX_FIELD, ROLES_ROW_LABEL, ROLES_SLUG, ROLE_LABELS, ROLE_NAME_FIELD, ROLE_SLUG_FIELD, ROOT_PAGE_KEY, ROOT_PAGE_SLUG, SECTION_CONTROL_KEYS, SECTION_CONTROL_LABELS, SHARE_IMAGE_SIZE, SLUG_FIELD, SLUG_UNLOCK_WARNING, SYSTEM_COLOR_KEYS, THEME_APPEARANCE_FIELD, THEME_APPEARANCE_SLUG, THEME_COLORS_SLUG, THEME_COLOR_FIELD, THEME_COLOR_SCALE_FIELD, THEME_CONTRAST_REPORT, THEME_DOCUMENT_CONTROLS, THEME_FEATURE_SLUGS, THEME_FONT_FIELD, THEME_GREY_SCALE_FIELD, THEME_IDENTITY_FALLBACK, THEME_IDENTITY_SLUG, THEME_LIBRARY_FIELD, THEME_PAIRING_FIELD, THEME_PREVIEW_BREAKPOINTS, THEME_PUBLISH_FIELD, THEME_SAVE_BUTTON, THEME_SECTION_HEADING, THEME_SLUG, THEME_TYPOGRAPHY_SLUG, adminNav, adminOnlyApiTab, allowedFeaturesForUser, altFromFilename, applyRoleSlugsFromNames, authenticatedOrPublished, blockLibraryCatalogue, blockLibraryEntriesFromConfig, blockUsage, canManageBrand, canManageContent, canPublish, canUseFeature, colorTokenField, composeSlug, createAdminNav, createBlockLibrary, createBrandAssets, createFeatures, createMedia, createNavigation, createPages, createQuestions, createRedirects, createRoles, createTaxonomy, createTheme, createUsers, defaultBlockLibraryValue, defaultFeaturesFieldValue, defaultRolesFieldValue, defaultSectionControls, deleteLibraryColor, developerOnlyAccess, documentCreateNew, documentTitle, documentTitleActions, ensureRootPage, featureCatalogue, featureGroupLabel, fillBlankAltFromFilename, findColorTokens, findColorUsages, firstImageIn, footerDesktopTracks, getFeaturesMatrix, getNavigation, getRolesMatrix, getSectionControls, hasCapability, hasFeature, hasGrant, hasRole, headerCtaEnabled, hideUnlessDeveloper, hideUnlessFeature, inferredFolders, isAdmin, isAdminOrSelf, isAuthenticated, isDeveloper, isDeveloperTab, isFeatureGroupId, isFeatureSlug, isLockedFeature, isPackageFeatureSlug, isPrivilegedRole, isRole, isRoleName, isRoleSlug, isRootPageKey, isValidExternalHref, lexicalPlainText, listAlign, listAlignColumns, listAlignCss, lockSlugOnPublish, lookField, noIndexField, normalizeFooterDesktop, normalizeSlug, normalizeStoredRoles, pageEditorLooks, pageEditorTokens, parentPrefix, parseFeaturesMatrix, parseRolesMatrix, persistThemeChild, publishThemeChild, recordPublishedSlugRedirect, redirectPath, replaceClientOriginalWithResizedFile, requireLayoutOnPublish, resetRolesMatrix, resolveAdminNav, resolveThemeIdentity, rewriteColorToken, rewriteColorTokens, rewriteColorUsages, roleDescription, roleLabel, roleSelectOptions, sanitizeRoleNameInput, sanitizeSvg, sectionControlsFromLibrary, sectionControlsOf, seedFeatures, seedRoleRows, seedRoles, seedTheme, seoPlugin, slugDepth, slugField, slugLeaf, slugifyRoleName, stampBlockLibrary, stampFeatureCatalogue, storedRoles, stripDrafts, syncAnswerText, themeColorKeys, themeLibraryFromDoc, titleTemplate, truncateAtWord, validateBlockLibrary, validateExternalHref, validateFeaturesMatrix, validateFooterColumns, validateFooterSocialUrl, validateHeaderCta, validateRolesMatrix, writePublishedSlugRedirect };
4064
3879
 
4065
3880
  //# sourceMappingURL=index.mjs.map