@bison-lab/payload-core 3.9.0 → 3.10.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/README.md +5 -5
- package/dist/admin.d.mts +20 -11
- package/dist/admin.d.mts.map +1 -1
- package/dist/admin.mjs +213 -137
- package/dist/admin.mjs.map +1 -1
- package/dist/{identity-D1X0Om4Z.mjs → identity-Bg-G05mb.mjs} +5 -4
- package/dist/identity-Bg-G05mb.mjs.map +1 -0
- package/dist/index.d.mts +6 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +92 -99
- package/dist/index.mjs.map +1 -1
- package/dist/theme.mjs +1 -1
- package/package.json +4 -3
- package/dist/identity-D1X0Om4Z.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -125,11 +125,11 @@ The sitemap is the site's: filter `meta.noIndex` out of it.
|
|
|
125
125
|
|
|
126
126
|
## Adopting the Theme global
|
|
127
127
|
|
|
128
|
-
Settings → Theme
|
|
129
|
-
|
|
130
|
-
no draft mode and no preview pane. Contrast is the automatic label
|
|
131
|
-
fills at 7:1; it is never enforced. `bison.config.json` is the seed
|
|
132
|
-
starts from, not the source of truth. Pass `destructive` (or
|
|
128
|
+
Settings → Theme is one Global with field tabs: Colors, Typography, Appearance,
|
|
129
|
+
and Identity. Publish in the document Save slot writes the open tab only.
|
|
130
|
+
Theme has no draft mode and no preview pane. Contrast is the automatic label
|
|
131
|
+
on editable fills at 7:1; it is never enforced. `bison.config.json` is the seed
|
|
132
|
+
a site starts from, not the source of truth. Pass `destructive` (or
|
|
133
133
|
`seed.brandDestructive`); there is no package default.
|
|
134
134
|
|
|
135
135
|
**1. Register the Global.** Access is required — the predicates live in the
|
package/dist/admin.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
|
|
2
|
+
import { ThemeConfig } from "@bison-lab/tokens";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
4
|
import { ArrayFieldClientComponent, GroupFieldClientComponent, SelectFieldClientComponent, TextFieldClientComponent, UIFieldClientComponent } from "payload";
|
|
3
5
|
|
|
4
6
|
//#region src/admin/color-field.d.ts
|
|
@@ -54,8 +56,9 @@ declare const GreyScaleField: SelectFieldClientComponent;
|
|
|
54
56
|
//#endregion
|
|
55
57
|
//#region src/admin/contrast-report.d.ts
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
+
* Contrast used to be a Colors-tab list. Readability now lives on each
|
|
60
|
+
* color card: Needs attention opens a popup. This field stays in the
|
|
61
|
+
* schema so `contrastTarget` is still a Theme option; it paints nothing.
|
|
59
62
|
*/
|
|
60
63
|
declare const ContrastReport: UIFieldClientComponent;
|
|
61
64
|
//#endregion
|
|
@@ -66,19 +69,25 @@ declare const ContrastReport: UIFieldClientComponent;
|
|
|
66
69
|
declare const SectionHeading: UIFieldClientComponent;
|
|
67
70
|
//#endregion
|
|
68
71
|
//#region src/admin/publish-child.d.ts
|
|
69
|
-
/**
|
|
70
|
-
* Per-child Publish. Sets `publishChild` then submits; `beforeChange`
|
|
71
|
-
* writes only that slice. Confirmation lists this child's changes and,
|
|
72
|
-
* on Colors, remaining automatic-label shorts.
|
|
73
|
-
*/
|
|
72
|
+
/** @deprecated Theme publish is the document Save button */
|
|
74
73
|
declare const PublishChild: UIFieldClientComponent;
|
|
75
74
|
//#endregion
|
|
76
75
|
//#region src/admin/save-button.d.ts
|
|
77
76
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
77
|
+
* Payload's document Save slot — the same control row as Pages'
|
|
78
|
+
* "Publish changes". Theme has no drafts; this publishes only the
|
|
79
|
+
* open field tab. The tab is read after mount so SSR matches.
|
|
80
|
+
*/
|
|
81
|
+
declare function ThemeSaveButton(): react_jsx_runtime0.JSX.Element;
|
|
82
|
+
/** Import-map alias — Theme still points `SaveButton` at this name. */
|
|
83
|
+
declare const HiddenSaveButton: typeof ThemeSaveButton;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/admin/identity-fallback.d.ts
|
|
86
|
+
/**
|
|
87
|
+
* Identity child when the site has not registered a cupboard yet.
|
|
88
|
+
* Shows the fallback lockup and mark; uploads wait on `logo.collection`.
|
|
80
89
|
*/
|
|
81
|
-
declare
|
|
90
|
+
declare const IdentityFallback: UIFieldClientComponent;
|
|
82
91
|
//#endregion
|
|
83
|
-
export { AppearanceField, ColorField, ColorScaleField, ContrastReport, FontField, GreyScaleField, HiddenSaveButton, LibraryField, PairingField, PublishChild, SectionHeading };
|
|
92
|
+
export { AppearanceField, ColorField, ColorScaleField, ContrastReport, FontField, GreyScaleField, HiddenSaveButton, IdentityFallback, LibraryField, PairingField, PublishChild, SectionHeading, ThemeSaveButton };
|
|
84
93
|
//# sourceMappingURL=admin.d.mts.map
|
package/dist/admin.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.mts","names":[],"sources":["../src/admin/color-field.tsx","../src/admin/color-scale-field.tsx","../src/admin/library-field.tsx","../src/admin/font-field.tsx","../src/admin/pairing-field.tsx","../src/admin/appearance-field.tsx","../src/admin/grey-scale-field.tsx","../src/admin/contrast-report.tsx","../src/admin/section-heading.tsx","../src/admin/publish-child.tsx","../src/admin/save-button.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"admin.d.mts","names":[],"sources":["../src/admin/color-field.tsx","../src/admin/color-scale-field.tsx","../src/admin/library-field.tsx","../src/admin/font-field.tsx","../src/admin/pairing-field.tsx","../src/admin/appearance-field.tsx","../src/admin/grey-scale-field.tsx","../src/admin/contrast-report.tsx","../src/admin/section-heading.tsx","../src/admin/publish-child.tsx","../src/admin/save-button.tsx","../src/admin/identity-fallback.tsx"],"mappings":";;;;;;;;;;cAWa,UAAA,EAAY,wBAAA;;;;;;;cCGZ,eAAA,EAAiB,yBAAA;;;;;;;cCQjB,YAAA,EAAc,yBAAA;;;;;;;;AFX3B;cGMa,SAAA,EAAW,0BAAA;;;;;;;cCNX,YAAA,EAAc,sBAAA;;;;;;;cCCd,eAAA,EAAiB,yBAAA;;;;;;;cCiDjB,cAAA,EAAgB,0BAAA;;;;;;;;cCtDhB,cAAA,EAAgB,sBAAA;;;;;;cCFhB,cAAA,EAAgB,sBAAA;;;;cCmIhB,YAAA,EAAc,sBAAA;;;;;;;;iBC7HX,eAAA,CAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;AVA/B;AAAA,cU0Ba,gBAAA,SAAgB,eAAA;;;;;;;cC7BhB,gBAAA,EAAkB,sBAAA"}
|