@bison-lab/payload-core 3.14.0 → 3.15.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.
@@ -1 +1 @@
1
- {"version":3,"file":"share-image-BlFAJLnd.mjs","names":[],"sources":["../src/seo/title.ts","../src/seo/share-image.ts"],"sourcesContent":["/**\n * A document title from a page title: the one place the `| Site Name` suffix\n * is spelled. The frontend layout's title template, the admin's Generate\n * button and a CMS page's Open Graph title are all built from it, since Next\n * applies a title template to `<title>` alone.\n */\nexport function documentTitle(siteName: string, pageTitle: string): string {\n return `${pageTitle} | ${siteName}`;\n}\n\n/**\n * The same format as Next's `title.template` wants it, for the root layout:\n * `%s` is Next's placeholder for the page's own title.\n */\nexport function titleTemplate(siteName: string): string {\n return documentTitle(siteName, \"%s\");\n}\n","import type { ImageSize } from \"payload\";\n\n/**\n * The rendition a media collection cuts for social share cards: 1.91:1 at the\n * size Open Graph consumers ask for, cropped to shape rather than letterboxed\n * so a portrait upload still fills the card. Add it to the upload\n * collection's `imageSizes`; `pageMetadata` reads `sizes.share` off a page's\n * meta image and falls back to the original for a file uploaded before the\n * size existed, or one too small to cut (Payload does not upscale).\n */\nexport const SHARE_IMAGE_SIZE = {\n name: \"share\",\n width: 1200,\n height: 630,\n position: \"centre\",\n} satisfies ImageSize;\n"],"mappings":";;;;;;;AAMA,SAAgB,cAAc,UAAkB,WAA2B;AACzE,QAAO,GAAG,UAAU,KAAK;;;;;;AAO3B,SAAgB,cAAc,UAA0B;AACtD,QAAO,cAAc,UAAU,KAAK;;;;;;;;;;;;ACLtC,MAAa,mBAAmB;CAC9B,MAAM;CACN,OAAO;CACP,QAAQ;CACR,UAAU;CACX"}
1
+ {"version":3,"file":"share-image-C4ILz4p2.mjs","names":[],"sources":["../src/seo/title.ts","../src/seo/share-image.ts"],"sourcesContent":["/**\n * A document title from a page title: the one place the `| Site Name` suffix\n * is spelled. The frontend layout's title template, the admin's Generate\n * button and a CMS page's Open Graph title are all built from it, since Next\n * applies a title template to `<title>` alone.\n */\nexport function documentTitle(siteName: string, pageTitle: string): string {\n return `${pageTitle} | ${siteName}`;\n}\n\n/**\n * The same format as Next's `title.template` wants it, for the root layout:\n * `%s` is Next's placeholder for the page's own title.\n */\nexport function titleTemplate(siteName: string): string {\n return documentTitle(siteName, \"%s\");\n}\n","import type { ImageSize } from \"payload\";\n\n/**\n * The rendition a media collection cuts for social share cards: 1.91:1 at the\n * size Open Graph consumers ask for, cropped to shape rather than letterboxed\n * so a portrait upload still fills the card. Add it to the upload\n * collection's `imageSizes`; `pageMetadata` reads `sizes.share` off a page's\n * meta image and falls back to the original for a file uploaded before the\n * size existed, or one too small to cut (Payload does not upscale).\n */\nexport const SHARE_IMAGE_SIZE = {\n name: \"share\",\n width: 1200,\n height: 630,\n position: \"centre\",\n} satisfies ImageSize;\n"],"mappings":";;;;;;;AAMA,SAAgB,cAAc,UAAkB,WAA2B;AACzE,QAAO,GAAG,UAAU,KAAK;;;;;;AAO3B,SAAgB,cAAc,UAA0B;AACtD,QAAO,cAAc,UAAU,KAAK;;;;;;;;;;;;ACLtC,MAAa,mBAAmB;CAC9B,MAAM;CACN,OAAO;CACP,QAAQ;CACR,UAAU;CACX"}
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-Xs6v5vYU.mjs";
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-C6kTjvk3.mjs";
2
2
  import { ShadeStep, ThemeConfig } from "@bison-lab/tokens";
3
3
 
4
4
  //#region src/theme/published.d.ts
package/dist/theme.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as THEME_SLUG, a as pageEditorLooks, b as stateFromColorDoc, c as findColorTokens, d as rewriteColorToken, f as themeColorKeys, i as PAGE_EDITOR_SYSTEM_KEYS, l as rewriteColorTokens, n as colorTokenField, o as pageEditorTokens, p as SYSTEM_COLOR_KEYS, r as lookField, s as themeLibraryFromDoc, t as resolveThemeIdentity, u as deleteLibraryColor, x as themeConfigFromDoc } from "./identity-Dwyq8519.mjs";
1
+ import { _ as THEME_SLUG, a as pageEditorLooks, b as stateFromColorDoc, c as findColorTokens, d as rewriteColorToken, f as themeColorKeys, i as PAGE_EDITOR_SYSTEM_KEYS, l as rewriteColorTokens, n as colorTokenField, o as pageEditorTokens, p as SYSTEM_COLOR_KEYS, r as lookField, s as themeLibraryFromDoc, t as resolveThemeIdentity, u as deleteLibraryColor, x as themeConfigFromDoc } from "./identity-LAzSeorC.mjs";
2
2
  import { fontFaceCss, fontPreloads } from "@bison-lab/fonts";
3
3
  import { buildThemeCss, generateNamedScaleCSS, lookBindingCss, themeFontIds } from "@bison-lab/tokens";
4
4
  //#region src/theme/published.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-sWwcCqHT.d.mts.map
55
+ //# sourceMappingURL=title-B2-gWQZd.d.mts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"title-B2-gWQZd.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.14.0",
3
+ "version": "3.15.0",
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": {
@@ -85,8 +85,8 @@
85
85
  "typescript": "^5.9.3",
86
86
  "vitest": "^4.1.2",
87
87
  "@bison-lab/fonts": "3.6.0",
88
- "@bison-lab/ui": "3.11.0",
89
- "@bison-lab/tokens": "3.11.0"
88
+ "@bison-lab/tokens": "3.11.0",
89
+ "@bison-lab/ui": "3.11.0"
90
90
  },
91
91
  "publishConfig": {
92
92
  "access": "public"