@bison-lab/payload-core 4.12.1 → 4.12.3
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 -3
- package/dist/admin.d.mts.map +1 -1
- package/dist/admin.mjs +33 -6
- package/dist/admin.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -12,8 +12,9 @@ pnpm add @bison-lab/payload-core @payloadcms/plugin-seo @payloadcms/plugin-redir
|
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Peers: `payload`, `@payloadcms/plugin-seo`, and `@payloadcms/plugin-redirects` are required. `@bison-lab/tokens`
|
|
15
|
-
and `@bison-lab/fonts` are required because Theme is required. `@payloadcms/ui
|
|
16
|
-
and `react` are needed for admin fields
|
|
15
|
+
and `@bison-lab/fonts` are required because Theme is required. `@payloadcms/ui`,
|
|
16
|
+
`next` and `react` are needed for admin fields (`./admin` refreshes the
|
|
17
|
+
Media list with `next/navigation`, which Payload's admin already loads); `@bison-lab/ui` and
|
|
17
18
|
`@payloadcms/live-preview-react` are peers of the legacy `./react` entry.
|
|
18
19
|
Pin the plugin to the same version as `payload`; Payload releases them in
|
|
19
20
|
lockstep.
|
|
@@ -394,7 +395,8 @@ Every page block carries the same four section settings (Background,
|
|
|
394
395
|
Spacing, Anchor, Hidden; `withSectionSettings` in payload-blocks). Which
|
|
395
396
|
of them a block *offers* is data, not code: four ticks under Enabled on
|
|
396
397
|
each card, stored on the row as `sectionControls`, so turning one control
|
|
397
|
-
off for one block is a Save, not a release. The words are the fold's
|
|
398
|
+
off for one block is a Save, not a release. The words are the fold's; a
|
|
399
|
+
legend above the cards says what each one does. A
|
|
398
400
|
tick off hides the control in the editor and the renderer ignores its
|
|
399
401
|
stored value (payload-blocks, BIS-138). The four columns on every page
|
|
400
402
|
block stay; no page schema moves when a tick changes.
|
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","../src/admin/preview-mode.tsx","../src/admin/identity-fallback.tsx","../src/admin/look-field.tsx","../src/admin/roles-matrix-field.tsx","../src/admin/roles-row-label.tsx","../src/admin/role-slug-field.tsx","../src/admin/slug-field.tsx","../src/admin/page-title-cell.tsx","../src/admin/page-slug-cell.tsx","../src/admin/required-page-cell.tsx","../src/admin/role-name-field.tsx","../src/admin/roles-field.tsx","../src/admin/roles-grants-field.tsx","../src/admin/features-matrix-field.tsx","../src/admin/block-library-field.tsx","../src/admin/document-title-actions.tsx","../src/admin/list-align-styles.tsx","../src/admin/document-create-new.tsx","../src/admin-nav/types.ts","../src/admin/admin-nav.tsx","../src/admin/admin-nav-row-label.tsx","../src/admin/admin-nav-item-row-label.tsx","../src/admin/admin-nav-entity-field.tsx","../src/taxonomy/facet-field.ts","../src/questions/types.ts","../src/admin/questions-list.tsx","../src/admin/media-alt-autofill.tsx","../src/admin/media-list-view.tsx"],"mappings":";;;;;;;;;;;cAWa,UAAA,EAAY,wBAAA;;;;;;;;cCuBZ,eAAA,EAAiB,yBAAA;;;;;;;;;cCMjB,YAAA,EAAc,yBAAA;;;;;;;;;cCtBd,SAAA,EAAW,0BAAA;;;;;;;cCNX,YAAA,EAAc,sBAAA;;;;;;;cCCd,eAAA,EAAiB,yBAAA;;;ALF9B;;;;AAAA,cM4Da,cAAA,EAAgB,0BAAA;;;;;;;cCnDhB,cAAA,EAAgB,sBAAA;;;;;;cCbhB,cAAA,EAAgB,sBAAA;;;cC0IhB,YAAA,EAAc,sBAAA;;;;;;;;iBCtIX,qBAAA,CAAA;;AVAhB;;;iBUQgB,eAAA,CAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;iBA0Bf,gBAAA,CAAA,GAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCpCpB,gBAAA;AAAA,iBAgDI,mBAAA,CAAoB,IAAA,EAAM,gBAAA;;;;;;;cCjD7B,gBAAA,EAAkB,sBAAA;;;;;;;cCIlB,SAAA,EAAW,wBAAA;;;;;;;;cCqBX,gBAAA,EAAkB,yBAAA;;;;;;iBC1Bf,aAAA,CAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;cCChB,aAAA,EAAe,wBAAA;;;;;;;;;cC4Bf,SAAA,EAAW,wBAAA;;;;;;;iBC3BR,aAAA,CAAc,KAAA,EAAO,yBAAA,GAAyB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;iBCJ9C,YAAA,CAAA;EAAe,QAAA;EAAU;AAAA,GAAW,yBAAA,GAAyB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;cCEhE,iBAAA,EAAmB,wBAAA;AAAA,iBAEhB,gBAAA,CAAA;EAAmB;AAAA,GAAW,yBAAA,GAAyB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;cCA1D,aAAA,EAAe,wBAAA;;;;;;;;cC8Cf,UAAA,EAAY,0BAAA;;;;;;;;cCpBZ,gBAAA,EAAkB,wBAAA;;;;;;;;;AvBxB/B;;cwB2Ca,mBAAA,EAAqB,yBAAA;;;;;;;;;AxB3ClC;;;;;;;
|
|
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/preview-mode.tsx","../src/admin/identity-fallback.tsx","../src/admin/look-field.tsx","../src/admin/roles-matrix-field.tsx","../src/admin/roles-row-label.tsx","../src/admin/role-slug-field.tsx","../src/admin/slug-field.tsx","../src/admin/page-title-cell.tsx","../src/admin/page-slug-cell.tsx","../src/admin/required-page-cell.tsx","../src/admin/role-name-field.tsx","../src/admin/roles-field.tsx","../src/admin/roles-grants-field.tsx","../src/admin/features-matrix-field.tsx","../src/admin/block-library-field.tsx","../src/admin/document-title-actions.tsx","../src/admin/list-align-styles.tsx","../src/admin/document-create-new.tsx","../src/admin-nav/types.ts","../src/admin/admin-nav.tsx","../src/admin/admin-nav-row-label.tsx","../src/admin/admin-nav-item-row-label.tsx","../src/admin/admin-nav-entity-field.tsx","../src/taxonomy/facet-field.ts","../src/questions/types.ts","../src/admin/questions-list.tsx","../src/admin/media-alt-autofill.tsx","../src/admin/media-list-view.tsx"],"mappings":"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"}
|
package/dist/admin.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import { createPortal } from "react-dom";
|
|
|
10
10
|
import { findFont, fontFaceCss, isFontId } from "@bison-lab/fonts";
|
|
11
11
|
import "payload";
|
|
12
12
|
import { RenderLexical } from "@payloadcms/richtext-lexical/client";
|
|
13
|
+
import { useRouter } from "next/navigation";
|
|
13
14
|
import { formatAdminURL, formatFilesize } from "payload/shared";
|
|
14
15
|
//#region src/admin/color-field.tsx
|
|
15
16
|
const HEX_ERROR = "Enter a six-digit hex colour like #1e3a5f";
|
|
@@ -3910,7 +3911,7 @@ const BLOCK_LIBRARY_CATEGORIES = [
|
|
|
3910
3911
|
];
|
|
3911
3912
|
//#endregion
|
|
3912
3913
|
//#region src/admin/block-library-field.tsx
|
|
3913
|
-
const LIST_CSS$1 = `.bl-block-library{display:grid;grid-template-columns:12rem 1fr;gap:1.5rem;align-items:start}.bl-block-library__rail{display:flex;flex-direction:column;gap:.25rem}.bl-block-library__rail button{text-align:left;background:transparent;border:0;padding:.4rem .6rem;border-radius:8px;cursor:pointer}.bl-block-library__rail button[aria-current=true]{background:var(--theme-elevation-100,#f1f5f9);font-weight:650}.bl-block-library__card{display:flex;flex-direction:column;gap:.5rem;margin-block-end:1.25rem}.bl-block-library__card header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.bl-block-library__controls{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem;margin:0;padding:0;border:0}.bl-block-library__controls legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.bl-block-library__control{display:inline-flex;align-items:center;gap:.5rem;font-size:13px}.bl-block-library__control[data-locked]{color:var(--theme-elevation-400,#94a3b8)}.bl-block-library__refusal{margin:0;color:var(--theme-error-500,#b91c1c)}.bl-block-library__drafts{margin:.5rem 0 0;padding-inline-start:1.25rem}.bl-block-library iframe{width:100%;height:720px;border:1px solid var(--theme-elevation-150,#e2e8f0);border-radius:12px;background:var(--theme-elevation-0,#fff)}`;
|
|
3914
|
+
const LIST_CSS$1 = `.bl-block-library{display:grid;grid-template-columns:12rem 1fr;gap:1.5rem;align-items:start}.bl-block-library__rail{display:flex;flex-direction:column;gap:.25rem}.bl-block-library__rail button{text-align:left;background:transparent;border:0;padding:.4rem .6rem;border-radius:8px;cursor:pointer}.bl-block-library__rail button[aria-current=true]{background:var(--theme-elevation-100,#f1f5f9);font-weight:650}.bl-block-library__card{display:flex;flex-direction:column;gap:.5rem;margin-block-end:1.25rem}.bl-block-library__card header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.bl-block-library__controls{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem;margin:0;padding:0;border:0}.bl-block-library__controls legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.bl-block-library__control{display:inline-flex;align-items:center;gap:.5rem;font-size:13px}.bl-block-library__control[data-locked]{color:var(--theme-elevation-400,#94a3b8)}.bl-block-library__legend{margin:0 0 1.5rem;padding:.75rem 1rem;border:1px solid var(--theme-elevation-150,#e2e8f0);border-radius:12px;font-size:13px;line-height:1.45}.bl-block-library__legend h2{margin:0 0 .25rem;font-size:13px;font-weight:650}.bl-block-library__legend p{margin:0 0 .5rem;color:var(--theme-elevation-600,#475569)}.bl-block-library__legend dl{display:grid;grid-template-columns:max-content 1fr;gap:.25rem 1rem;margin:0}.bl-block-library__legend dt{font-weight:600}.bl-block-library__legend dd{margin:0;color:var(--theme-elevation-600,#475569)}.bl-block-library__refusal{margin:0;color:var(--theme-error-500,#b91c1c)}.bl-block-library__drafts{margin:.5rem 0 0;padding-inline-start:1.25rem}.bl-block-library iframe{width:100%;height:720px;border:1px solid var(--theme-elevation-150,#e2e8f0);border-radius:12px;background:var(--theme-elevation-0,#fff)}@media (max-width:768px){.bl-block-library{grid-template-columns:minmax(0,1fr)}.bl-block-library__rail{flex-direction:row;overflow-x:auto;padding-block-end:.25rem}.bl-block-library__rail button{white-space:nowrap}.bl-block-library__legend dl{grid-template-columns:minmax(0,1fr);gap:0}.bl-block-library__legend dd{margin-block-end:.4rem}}`;
|
|
3914
3915
|
function holderLabel(holder) {
|
|
3915
3916
|
const title = holder.title?.trim() || "Untitled";
|
|
3916
3917
|
const slug = holder.slug?.trim();
|
|
@@ -3922,6 +3923,31 @@ function refusalOf(label, usage) {
|
|
|
3922
3923
|
function isUsage(value) {
|
|
3923
3924
|
return Boolean(value) && typeof value === "object" && Array.isArray(value.published) && Array.isArray(value.drafts);
|
|
3924
3925
|
}
|
|
3926
|
+
/** What each tick on a card does, in the order the cards draw them. */
|
|
3927
|
+
const SECTION_CONTROL_LEGEND = {
|
|
3928
|
+
background: "The surface the section sits on.",
|
|
3929
|
+
spacing: "The air above and below the section. Not the site-wide spacing in Theme → Appearance.",
|
|
3930
|
+
anchor: "An in-page link target, like #stories.",
|
|
3931
|
+
hidden: "Keeps the section in the editor and off the page. A hero cannot offer it: a page needs its hero."
|
|
3932
|
+
};
|
|
3933
|
+
/** One key for the whole screen, above the cards, so the ticks need no help text of their own. */
|
|
3934
|
+
function SectionControlLegend() {
|
|
3935
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
3936
|
+
className: "bl-block-library__legend",
|
|
3937
|
+
"aria-labelledby": "bl-block-library-legend",
|
|
3938
|
+
children: [
|
|
3939
|
+
/* @__PURE__ */ jsx("h2", {
|
|
3940
|
+
id: "bl-block-library-legend",
|
|
3941
|
+
children: "What the checkboxes do"
|
|
3942
|
+
}),
|
|
3943
|
+
/* @__PURE__ */ jsx("p", { children: "Each card's checkboxes choose which Block Settings editors get on that block. Unticked, the control leaves the editor and the page ignores whatever was saved in it." }),
|
|
3944
|
+
/* @__PURE__ */ jsx("dl", { children: SECTION_CONTROL_KEYS.map((key) => /* @__PURE__ */ jsxs("div", {
|
|
3945
|
+
style: { display: "contents" },
|
|
3946
|
+
children: [/* @__PURE__ */ jsx("dt", { children: SECTION_CONTROL_LABELS[key] }), /* @__PURE__ */ jsx("dd", { children: SECTION_CONTROL_LEGEND[key] })]
|
|
3947
|
+
}, key)) })
|
|
3948
|
+
]
|
|
3949
|
+
});
|
|
3950
|
+
}
|
|
3925
3951
|
/**
|
|
3926
3952
|
* The four ticks under Enabled: which section settings the block offers.
|
|
3927
3953
|
* Not drawn on a navbar. Hidden is locked off on a hero (a page cannot
|
|
@@ -4184,7 +4210,7 @@ const BlockLibraryField = (props) => {
|
|
|
4184
4210
|
const [category, setCategory] = useState("hero");
|
|
4185
4211
|
const navbarCount = rows.filter((row) => row.kind === "navbar").length;
|
|
4186
4212
|
const visible = rows.filter((row) => row.category === category);
|
|
4187
|
-
return /* @__PURE__ */ jsx(KitProvider, { children: /* @__PURE__ */
|
|
4213
|
+
return /* @__PURE__ */ jsx(KitProvider, { children: /* @__PURE__ */ jsxs("div", {
|
|
4188
4214
|
className: "bl-block-library",
|
|
4189
4215
|
children: [
|
|
4190
4216
|
/* @__PURE__ */ jsx("style", {
|
|
@@ -4203,15 +4229,15 @@ const BlockLibraryField = (props) => {
|
|
|
4203
4229
|
children: entry.label
|
|
4204
4230
|
}, entry.id))
|
|
4205
4231
|
}),
|
|
4206
|
-
/* @__PURE__ */
|
|
4232
|
+
/* @__PURE__ */ jsxs("div", { children: [visible.some((row) => row.kind !== "navbar") ? /* @__PURE__ */ jsx(SectionControlLegend, {}) : null, visible.map((row) => /* @__PURE__ */ jsx(LibraryCard, {
|
|
4207
4233
|
row,
|
|
4208
4234
|
write: loaded.some((entry) => entry.slug === row.slug) ? writeRow(row.slug) : null,
|
|
4209
4235
|
src: previews[row.slug] ?? "",
|
|
4210
4236
|
toggle: row.kind !== "navbar" || navbarCount > 1,
|
|
4211
4237
|
usageURL
|
|
4212
|
-
}, row.slug)) })
|
|
4238
|
+
}, row.slug))] })
|
|
4213
4239
|
]
|
|
4214
|
-
}) })
|
|
4240
|
+
}) });
|
|
4215
4241
|
};
|
|
4216
4242
|
//#endregion
|
|
4217
4243
|
//#region src/admin/theme-kit-accent.tsx
|
|
@@ -5788,6 +5814,7 @@ function MediaListPage({ collectionSlug, enableRowSelections, hasCreatePermissio
|
|
|
5788
5814
|
const { drawerSlug, setCollectionSlug, setOnSuccess } = useBulkUpload();
|
|
5789
5815
|
const { config: { routes: { admin: adminRoute, api }, serverURL }, getEntityConfig } = useConfig();
|
|
5790
5816
|
const { data, query, handleSearchChange, handlePageChange, handlePerPageChange, handleSortChange, handleWhereChange, refineListData } = useListQuery();
|
|
5817
|
+
const router = useRouter();
|
|
5791
5818
|
const collectionConfig = getEntityConfig({ collectionSlug });
|
|
5792
5819
|
const inUseEnabled = mediaInUseEnabled(collectionConfig);
|
|
5793
5820
|
const canDelete = hasDeletePermission !== false;
|
|
@@ -6004,7 +6031,7 @@ function MediaListPage({ collectionSlug, enableRowSelections, hasCreatePermissio
|
|
|
6004
6031
|
method: "DELETE",
|
|
6005
6032
|
credentials: "include"
|
|
6006
6033
|
})).ok) failed.push(String(id));
|
|
6007
|
-
|
|
6034
|
+
router.refresh();
|
|
6008
6035
|
if (failed.length > 0) {
|
|
6009
6036
|
setSelected(new Set(failed));
|
|
6010
6037
|
setSelectedLabels((current) => new Map([...current].filter(([id]) => failed.includes(id))));
|