@bison-lab/payload-core 3.18.0 → 3.19.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/README.md +67 -11
- package/dist/admin.d.mts +41 -1
- package/dist/admin.d.mts.map +1 -1
- package/dist/admin.mjs +276 -2
- package/dist/admin.mjs.map +1 -1
- package/dist/index.d.mts +106 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +429 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{looks-Dk0l0mif.d.mts → looks-CQ_DiSQO.d.mts} +1 -1
- package/dist/{looks-Dk0l0mif.d.mts.map → looks-CQ_DiSQO.d.mts.map} +1 -1
- package/dist/metadata.d.mts +1 -1
- package/dist/navigation.d.mts +2 -0
- package/dist/navigation.mjs +2 -0
- package/dist/published-ByS86dhW.mjs +43 -0
- package/dist/published-ByS86dhW.mjs.map +1 -0
- package/dist/published-C49gmzAL.d.mts +68 -0
- package/dist/published-C49gmzAL.d.mts.map +1 -0
- package/dist/theme.d.mts +1 -1
- package/dist/{title-B2-gWQZd.d.mts → title-sWwcCqHT.d.mts} +1 -1
- package/dist/{title-B2-gWQZd.d.mts.map → title-sWwcCqHT.d.mts.map} +1 -1
- package/package.json +5 -1
|
@@ -326,4 +326,4 @@ declare function pageEditorLooks(doc: ThemeDoc | null | undefined): LookOption[]
|
|
|
326
326
|
declare function pageEditorTokens(doc: ThemeDoc | null | undefined): LookOption[];
|
|
327
327
|
//#endregion
|
|
328
328
|
export { ThemeLibraryColorDoc as A, THEME_IDENTITY_SLUG as C, ThemeDoc as D, ThemeColorDoc as E, ColorUsage as F, ColorUsagesList as I, ColorUsagesOption as L, ResolvedThemeIdentity as M, ThemeIdentityFallback as N, ThemeHead as O, resolveThemeIdentity as P, findColorUsages as R, THEME_COLORS_SLUG as S, THEME_TYPOGRAPHY_SLUG as T, CreateThemeOptions as _, pageEditorTokens as a, SystemColorKey as b, LookFieldOptions as c, ColorTokenHit as d, findColorTokens as f, themeColorKeys as g, rewriteColorToken as h, pageEditorLooks as i, ThemeUploadDoc as j, ThemeHeadOptions as k, colorTokenField as l, deleteLibraryColor as m, PAGE_EDITOR_SYSTEM_KEYS as n, themeLibraryFromDoc as o, rewriteColorTokens as p, PageEditorSystemKey as r, LookFieldMode as s, LookOption as t, lookField as u, EditableTheme as v, THEME_SLUG as w, THEME_APPEARANCE_SLUG as x, SYSTEM_COLOR_KEYS as y, rewriteColorUsages as z };
|
|
329
|
-
//# sourceMappingURL=looks-
|
|
329
|
+
//# sourceMappingURL=looks-CQ_DiSQO.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"looks-
|
|
1
|
+
{"version":3,"file":"looks-CQ_DiSQO.d.mts","names":[],"sources":["../src/theme/color-usages.ts","../src/theme/identity.ts","../src/theme/types.ts","../src/theme/library.ts","../src/theme/color-tokens.ts","../src/theme/look-field.ts","../src/theme/looks.ts"],"mappings":";;;;;UAOiB,eAAA;EACf,WAAA;EACA,OAAA;AAAA;;;;AAQF;;KAAY,iBAAA,UAA2B,eAAA;AAAA,UAEtB,UAAA;EACf,UAAA;EACA,MAAA;EACA,EAAA;EACA,IAAA;EACA,KAAA;AAAA;AAAA,KAGG,UAAA;EAAe,IAAA,EAAM,MAAA;EAA2B,UAAA;EAAqB,IAAA;AAAA;AAAA,KAErE,OAAA;EAAY,IAAA;AAAA;AAAA,UAEA,iBAAA;EACf,IAAA,GAAO,IAAA;IACL,UAAA;IACA,KAAA;IACA,KAAA;IACA,KAAA;IACA,IAAA;IACA,cAAA;EAAA,MACI,OAAA,CAAQ,UAAA;EACd,UAAA,GAAa,IAAA;IACX,IAAA;IACA,KAAA;IACA,KAAA;IACA,cAAA;EAAA,MACI,OAAA,CAAQ,MAAA,oBAA0B,QAAA;EACxC,MAAA,GAAS,IAAA;IACP,UAAA;IACA,EAAA;IACA,IAAA,EAAM,MAAA;IACN,KAAA;IACA,cAAA;EAAA,MACI,OAAA;EACN,YAAA,G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;;iBAmBnD,gBAAA,CAAiB,GAAA,EAAK,QAAA,sBAA8B,UAAA"}
|
package/dist/metadata.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SeoImageSize, i as SeoImageDoc, n as titleTemplate, o as SeoImageValue, r as MediaId, s as SeoMeta, t as documentTitle } from "./title-
|
|
1
|
+
import { a as SeoImageSize, i as SeoImageDoc, n as titleTemplate, o as SeoImageValue, r as MediaId, s as SeoMeta, t as documentTitle } from "./title-sWwcCqHT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/seo/metadata.d.ts
|
|
4
4
|
/** A page as the reader needs it; a site's generated `Page` is assignable. */
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as NAVIGATION_FOOTER_DB_NAME, c as NavigationDoc, l as NavigationFooter, o as NAVIGATION_FOOTER_SLUG, r as NAVIGATION_DB_NAME, s as NAVIGATION_SLUG, t as getNavigation, u as NavigationHeader } from "./published-C49gmzAL.mjs";
|
|
2
|
+
export { NAVIGATION_DB_NAME, NAVIGATION_FOOTER_DB_NAME, NAVIGATION_FOOTER_SLUG, NAVIGATION_SLUG, type NavigationDoc, type NavigationFooter, type NavigationHeader, getNavigation };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as NAVIGATION_FOOTER_SLUG, i as NAVIGATION_FOOTER_DB_NAME, n as NAVIGATION_DB_NAME, o as NAVIGATION_SLUG, t as getNavigation } from "./published-ByS86dhW.mjs";
|
|
2
|
+
export { NAVIGATION_DB_NAME, NAVIGATION_FOOTER_DB_NAME, NAVIGATION_FOOTER_SLUG, NAVIGATION_SLUG, getNavigation };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region src/navigation/types.ts
|
|
2
|
+
const NAVIGATION_SLUG = "navigation";
|
|
3
|
+
const NAVIGATION_DB_NAME = "nav";
|
|
4
|
+
const NAVIGATION_FOOTER_SLUG = "navigation-footer";
|
|
5
|
+
const NAVIGATION_FOOTER_DB_NAME = "navf";
|
|
6
|
+
const NAVIGATION_FEATURE = "navigation";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/navigation/published.ts
|
|
9
|
+
function asRecord(value) {
|
|
10
|
+
return value && typeof value === "object" ? value : null;
|
|
11
|
+
}
|
|
12
|
+
function headerOf(doc) {
|
|
13
|
+
const record = asRecord(doc);
|
|
14
|
+
return (record && "header" in record ? asRecord(record.header) : null) ?? {};
|
|
15
|
+
}
|
|
16
|
+
function footerOf(doc) {
|
|
17
|
+
const record = asRecord(doc);
|
|
18
|
+
return (record && "footer" in record ? asRecord(record.footer) : null) ?? {};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Reads Header and Footer and returns one `{ header, footer }`. A site
|
|
22
|
+
* header does not learn two slugs. `draft: true` reads the newest
|
|
23
|
+
* version; omit it (or pass false) for the published documents.
|
|
24
|
+
*/
|
|
25
|
+
async function getNavigation({ payload, draft = false }) {
|
|
26
|
+
const [headerDoc, footerDoc] = await Promise.all([payload.findGlobal({
|
|
27
|
+
slug: NAVIGATION_SLUG,
|
|
28
|
+
draft,
|
|
29
|
+
depth: 1
|
|
30
|
+
}), payload.findGlobal({
|
|
31
|
+
slug: NAVIGATION_FOOTER_SLUG,
|
|
32
|
+
draft,
|
|
33
|
+
depth: 1
|
|
34
|
+
})]);
|
|
35
|
+
return {
|
|
36
|
+
header: headerOf(headerDoc),
|
|
37
|
+
footer: footerOf(footerDoc)
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { NAVIGATION_FOOTER_SLUG as a, NAVIGATION_FOOTER_DB_NAME as i, NAVIGATION_DB_NAME as n, NAVIGATION_SLUG as o, NAVIGATION_FEATURE as r, getNavigation as t };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=published-ByS86dhW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"published-ByS86dhW.mjs","names":[],"sources":["../src/navigation/types.ts","../src/navigation/published.ts"],"sourcesContent":["/**\n * Public Header and Footer as two Globals so each has its own Save /\n * Publish / drafts. Bar behaviour stays on BIS-64. A consuming site waits\n * for SPI-97 after this and BIS-109 publish.\n */\n\nimport type { Block, GlobalConfig } from \"payload\";\n\nexport const NAVIGATION_SLUG = \"navigation\";\nexport const NAVIGATION_DB_NAME = \"nav\";\nexport const NAVIGATION_FOOTER_SLUG = \"navigation-footer\";\nexport const NAVIGATION_FOOTER_DB_NAME = \"navf\";\n\nexport const NAVIGATION_FEATURE = \"navigation\";\n\nexport interface CreateNavigationOptions {\n /**\n * Header bar blocks this site offers. The field stays a blocks array —\n * a later nav block is appended here, not a mega-menu-only shape.\n */\n blocks: Block[];\n /** Accordion title for each footer column. */\n footerColumnRowLabel?: string;\n /** Accordion title for each footer link row. */\n footerLinkRowLabel?: string;\n /**\n * Preview URL for both documents. The site owns the path — this factory\n * does not invent a route.\n */\n preview?: NonNullable<NonNullable<GlobalConfig[\"admin\"]>[\"preview\"]>;\n livePreview?: NonNullable<NonNullable<GlobalConfig[\"admin\"]>[\"livePreview\"]>;\n /**\n * Component path for Payload's Preview button, as a key into the site's\n * committed `importMap.js`.\n */\n previewButton?: string;\n /** The collection a page link points into. Defaults to `pages`. */\n pagesCollection?: string;\n}\n\nexport interface NavigationHeader {\n items?: unknown;\n cta?: unknown;\n}\n\nexport interface NavigationFooter {\n columns?: unknown;\n}\n\nexport interface NavigationDoc {\n header: NavigationHeader;\n footer: NavigationFooter;\n}\n\nexport interface GetNavigationArgs {\n payload: {\n findGlobal: (args: {\n slug: string;\n draft?: boolean;\n overrideAccess?: boolean;\n depth?: number;\n }) => Promise<unknown>;\n };\n draft?: boolean;\n}\n","import {\n NAVIGATION_FOOTER_SLUG,\n NAVIGATION_SLUG,\n type GetNavigationArgs,\n type NavigationDoc,\n type NavigationFooter,\n type NavigationHeader,\n} from \"./types\";\n\nfunction asRecord(value: unknown): Record<string, unknown> | null {\n return value && typeof value === \"object\" ? (value as Record<string, unknown>) : null;\n}\n\nfunction headerOf(doc: unknown): NavigationHeader {\n const record = asRecord(doc);\n const header = record && \"header\" in record ? asRecord(record.header) : null;\n return header ?? {};\n}\n\nfunction footerOf(doc: unknown): NavigationFooter {\n const record = asRecord(doc);\n const footer = record && \"footer\" in record ? asRecord(record.footer) : null;\n return footer ?? {};\n}\n\n/**\n * Reads Header and Footer and returns one `{ header, footer }`. A site\n * header does not learn two slugs. `draft: true` reads the newest\n * version; omit it (or pass false) for the published documents.\n */\nexport async function getNavigation({ payload, draft = false }: GetNavigationArgs): Promise<NavigationDoc> {\n const [headerDoc, footerDoc] = await Promise.all([\n payload.findGlobal({ slug: NAVIGATION_SLUG, draft, depth: 1 }),\n payload.findGlobal({ slug: NAVIGATION_FOOTER_SLUG, draft, depth: 1 }),\n ]);\n return { header: headerOf(headerDoc), footer: footerOf(footerDoc) };\n}\n"],"mappings":";AAQA,MAAa,kBAAkB;AAC/B,MAAa,qBAAqB;AAClC,MAAa,yBAAyB;AACtC,MAAa,4BAA4B;AAEzC,MAAa,qBAAqB;;;ACJlC,SAAS,SAAS,OAAgD;AAChE,QAAO,SAAS,OAAO,UAAU,WAAY,QAAoC;;AAGnF,SAAS,SAAS,KAAgC;CAChD,MAAM,SAAS,SAAS,IAAI;AAE5B,SADe,UAAU,YAAY,SAAS,SAAS,OAAO,OAAO,GAAG,SACvD,EAAE;;AAGrB,SAAS,SAAS,KAAgC;CAChD,MAAM,SAAS,SAAS,IAAI;AAE5B,SADe,UAAU,YAAY,SAAS,SAAS,OAAO,OAAO,GAAG,SACvD,EAAE;;;;;;;AAQrB,eAAsB,cAAc,EAAE,SAAS,QAAQ,SAAoD;CACzG,MAAM,CAAC,WAAW,aAAa,MAAM,QAAQ,IAAI,CAC/C,QAAQ,WAAW;EAAE,MAAM;EAAiB;EAAO,OAAO;EAAG,CAAC,EAC9D,QAAQ,WAAW;EAAE,MAAM;EAAwB;EAAO,OAAO;EAAG,CAAC,CACtE,CAAC;AACF,QAAO;EAAE,QAAQ,SAAS,UAAU;EAAE,QAAQ,SAAS,UAAU;EAAE"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Block, GlobalConfig } from "payload";
|
|
2
|
+
|
|
3
|
+
//#region src/navigation/types.d.ts
|
|
4
|
+
declare const NAVIGATION_SLUG = "navigation";
|
|
5
|
+
declare const NAVIGATION_DB_NAME = "nav";
|
|
6
|
+
declare const NAVIGATION_FOOTER_SLUG = "navigation-footer";
|
|
7
|
+
declare const NAVIGATION_FOOTER_DB_NAME = "navf";
|
|
8
|
+
declare const NAVIGATION_FEATURE = "navigation";
|
|
9
|
+
interface CreateNavigationOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Header bar blocks this site offers. The field stays a blocks array —
|
|
12
|
+
* a later nav block is appended here, not a mega-menu-only shape.
|
|
13
|
+
*/
|
|
14
|
+
blocks: Block[];
|
|
15
|
+
/** Accordion title for each footer column. */
|
|
16
|
+
footerColumnRowLabel?: string;
|
|
17
|
+
/** Accordion title for each footer link row. */
|
|
18
|
+
footerLinkRowLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Preview URL for both documents. The site owns the path — this factory
|
|
21
|
+
* does not invent a route.
|
|
22
|
+
*/
|
|
23
|
+
preview?: NonNullable<NonNullable<GlobalConfig["admin"]>["preview"]>;
|
|
24
|
+
livePreview?: NonNullable<NonNullable<GlobalConfig["admin"]>["livePreview"]>;
|
|
25
|
+
/**
|
|
26
|
+
* Component path for Payload's Preview button, as a key into the site's
|
|
27
|
+
* committed `importMap.js`.
|
|
28
|
+
*/
|
|
29
|
+
previewButton?: string;
|
|
30
|
+
/** The collection a page link points into. Defaults to `pages`. */
|
|
31
|
+
pagesCollection?: string;
|
|
32
|
+
}
|
|
33
|
+
interface NavigationHeader {
|
|
34
|
+
items?: unknown;
|
|
35
|
+
cta?: unknown;
|
|
36
|
+
}
|
|
37
|
+
interface NavigationFooter {
|
|
38
|
+
columns?: unknown;
|
|
39
|
+
}
|
|
40
|
+
interface NavigationDoc {
|
|
41
|
+
header: NavigationHeader;
|
|
42
|
+
footer: NavigationFooter;
|
|
43
|
+
}
|
|
44
|
+
interface GetNavigationArgs {
|
|
45
|
+
payload: {
|
|
46
|
+
findGlobal: (args: {
|
|
47
|
+
slug: string;
|
|
48
|
+
draft?: boolean;
|
|
49
|
+
overrideAccess?: boolean;
|
|
50
|
+
depth?: number;
|
|
51
|
+
}) => Promise<unknown>;
|
|
52
|
+
};
|
|
53
|
+
draft?: boolean;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/navigation/published.d.ts
|
|
57
|
+
/**
|
|
58
|
+
* Reads Header and Footer and returns one `{ header, footer }`. A site
|
|
59
|
+
* header does not learn two slugs. `draft: true` reads the newest
|
|
60
|
+
* version; omit it (or pass false) for the published documents.
|
|
61
|
+
*/
|
|
62
|
+
declare function getNavigation({
|
|
63
|
+
payload,
|
|
64
|
+
draft
|
|
65
|
+
}: GetNavigationArgs): Promise<NavigationDoc>;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { NAVIGATION_FOOTER_DB_NAME as a, NavigationDoc as c, NAVIGATION_FEATURE as i, NavigationFooter as l, CreateNavigationOptions as n, NAVIGATION_FOOTER_SLUG as o, NAVIGATION_DB_NAME as r, NAVIGATION_SLUG as s, getNavigation as t, NavigationHeader as u };
|
|
68
|
+
//# sourceMappingURL=published-C49gmzAL.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"published-C49gmzAL.d.mts","names":[],"sources":["../src/navigation/types.ts","../src/navigation/published.ts"],"mappings":";;;cAQa,eAAA;AAAA,cACA,kBAAA;AAAA,cACA,sBAAA;AAAA,cACA,yBAAA;AAAA,cAEA,kBAAA;AAAA,UAEI,uBAAA;EANc;AAC/B;;;EAUE,MAAA,EAAQ,KAAA;EAVyB;EAYjC,oBAAA;EAXoC;EAapC,kBAAA;EAboC;;AAEtC;;EAgBE,OAAA,GAAU,WAAA,CAAY,WAAA,CAAY,YAAA;EAClC,WAAA,GAAc,WAAA,CAAY,WAAA,CAAY,YAAA;EAjBT;AAE/B;;;EAoBE,aAAA;EANkC;EAQlC,eAAA;AAAA;AAAA,UAGe,gBAAA;EACf,KAAA;EACA,GAAA;AAAA;AAAA,UAGe,gBAAA;EACf,OAAA;AAAA;AAAA,UAGe,aAAA;EACf,MAAA,EAAQ,gBAAA;EACR,MAAA,EAAQ,gBAAA;AAAA;AAAA,UAGO,iBAAA;EACf,OAAA;IACE,UAAA,GAAa,IAAA;MACX,IAAA;MACA,KAAA;MACA,cAAA;MACA,KAAA;IAAA,MACI,OAAA;EAAA;EAER,KAAA;AAAA;;;;;AAvDF;;;iBCsBsB,aAAA,CAAA;EAAgB,OAAA;EAAS;AAAA,GAAiB,iBAAA,GAAoB,OAAA,CAAQ,aAAA"}
|
package/dist/theme.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ThemeLibraryColorDoc, D as ThemeDoc, E as ThemeColorDoc, M as ResolvedThemeIdentity, N as ThemeIdentityFallback, O as ThemeHead, P as resolveThemeIdentity, _ as CreateThemeOptions, a as pageEditorTokens, b as SystemColorKey, d as ColorTokenHit, f as findColorTokens, g as themeColorKeys, h as rewriteColorToken, i as pageEditorLooks, j as ThemeUploadDoc, k as ThemeHeadOptions, l as colorTokenField, m as deleteLibraryColor, n as PAGE_EDITOR_SYSTEM_KEYS, o as themeLibraryFromDoc, p as rewriteColorTokens, r as PageEditorSystemKey, t as LookOption, u as lookField, v as EditableTheme, w as THEME_SLUG, y as SYSTEM_COLOR_KEYS } from "./looks-
|
|
1
|
+
import { A as ThemeLibraryColorDoc, D as ThemeDoc, E as ThemeColorDoc, M as ResolvedThemeIdentity, N as ThemeIdentityFallback, O as ThemeHead, P as resolveThemeIdentity, _ as CreateThemeOptions, a as pageEditorTokens, b as SystemColorKey, d as ColorTokenHit, f as findColorTokens, g as themeColorKeys, h as rewriteColorToken, i as pageEditorLooks, j as ThemeUploadDoc, k as ThemeHeadOptions, l as colorTokenField, m as deleteLibraryColor, n as PAGE_EDITOR_SYSTEM_KEYS, o as themeLibraryFromDoc, p as rewriteColorTokens, r as PageEditorSystemKey, t as LookOption, u as lookField, v as EditableTheme, w as THEME_SLUG, y as SYSTEM_COLOR_KEYS } from "./looks-CQ_DiSQO.mjs";
|
|
2
2
|
import { ShadeStep, ThemeConfig } from "@bison-lab/tokens";
|
|
3
3
|
|
|
4
4
|
//#region src/theme/published.d.ts
|
|
@@ -52,4 +52,4 @@ declare function documentTitle(siteName: string, pageTitle: string): string;
|
|
|
52
52
|
declare function titleTemplate(siteName: string): string;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { SeoImageSize as a, SeoImageDoc as i, titleTemplate as n, SeoImageValue as o, MediaId as r, SeoMeta as s, documentTitle as t };
|
|
55
|
-
//# sourceMappingURL=title-
|
|
55
|
+
//# sourceMappingURL=title-sWwcCqHT.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title-
|
|
1
|
+
{"version":3,"file":"title-sWwcCqHT.d.mts","names":[],"sources":["../src/seo/types.ts","../src/seo/title.ts"],"mappings":";;KACY,OAAA;;UAGK,YAAA;EACf,GAAA;EACA,KAAA;EACA,MAAA;AAAA;;;;;;;;AAWF;UAAiB,WAAA;EACf,GAAA;EACA,GAAA;EACA,KAAA;EACA,MAAA;EACA,KAAA;IAAA,CAAW,IAAA,WAAe,YAAA;EAAA;AAAA;;KAIhB,aAAA,GAAgB,OAAA,GAAU,WAAA;;AAAtC;;;UAMiB,OAAA;EACf,KAAA;EACA,WAAA;EACA,KAAA,GAAQ,aAAA;EACR,OAAA;AAAA;;;;AApCF;;;;;iBCKgB,aAAA,CAAc,QAAA,UAAkB,SAAA;;;;;iBAQhC,aAAA,CAAc,QAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bison-lab/payload-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.1",
|
|
4
4
|
"description": "Site-agnostic Payload CMS configuration for Bison Lab sites: the SEO tab, the Theme global, the Roles Global, the brand-assets cupboard, and the metadata and theme readers for the pages they describe",
|
|
5
5
|
"homepage": "https://components.bisonlab.ai",
|
|
6
6
|
"repository": {
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
"import": "./dist/theme.mjs",
|
|
28
28
|
"types": "./dist/theme.d.mts"
|
|
29
29
|
},
|
|
30
|
+
"./navigation": {
|
|
31
|
+
"import": "./dist/navigation.mjs",
|
|
32
|
+
"types": "./dist/navigation.d.mts"
|
|
33
|
+
},
|
|
30
34
|
"./admin": {
|
|
31
35
|
"import": "./dist/admin.mjs",
|
|
32
36
|
"types": "./dist/admin.d.mts"
|