@bison-lab/payload-core 5.9.2 → 5.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 +53 -0
- package/dist/admin.d.mts +27 -3
- package/dist/admin.d.mts.map +1 -1
- package/dist/admin.mjs +218 -12
- package/dist/admin.mjs.map +1 -1
- package/dist/{capability-B3Mk0KRh.mjs → capability-Kd5LgQpm.mjs} +80 -9
- package/dist/capability-Kd5LgQpm.mjs.map +1 -0
- package/dist/index.d.mts +70 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +163 -82
- package/dist/index.mjs.map +1 -1
- package/dist/translate.mjs +1 -1
- package/package.json +1 -1
- package/dist/capability-B3Mk0KRh.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -402,6 +402,49 @@ document. Nav hiding follows `user.allowedFeatures` on the JWT
|
|
|
402
402
|
(computed at user read from the live Features and Roles Globals) so
|
|
403
403
|
Payload's `admin.hidden({ user })` matches the API.
|
|
404
404
|
|
|
405
|
+
### Release-only rows
|
|
406
|
+
|
|
407
|
+
A **release-only row** is a site extra passed with `releaseOnly: true`: a
|
|
408
|
+
launch switch, not a permission. It stays on Settings → Features as a
|
|
409
|
+
release switch, with the copy `RELEASE_ONLY_NOTE` ("Releasing turns this
|
|
410
|
+
on for everyone."), but it is never a tick on Settings → Roles, for any
|
|
411
|
+
role, Developer included, released or not. A Roles save drops any grant
|
|
412
|
+
on its slug and keeps every other grant. Released, `hasFeature` /
|
|
413
|
+
`canUseFeature` on it is true for every login; off, only for a Developer.
|
|
414
|
+
It does not count toward its group slug (`pages`).
|
|
415
|
+
|
|
416
|
+
```ts
|
|
417
|
+
createFeatures({
|
|
418
|
+
extras: [
|
|
419
|
+
{ slug: "doctors", label: "Doctors", group: "pages" },
|
|
420
|
+
{ slug: "find-a-doctor", label: "Find a Doctor", group: "pages", releaseOnly: true },
|
|
421
|
+
],
|
|
422
|
+
});
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
The mark lives in the code catalogue, never in a column, so adding one
|
|
426
|
+
needs no migration and leaves generated types alone. `createFeatures`
|
|
427
|
+
stamps `releaseOnly: true` onto that row when the Global is read (an
|
|
428
|
+
`afterRead` hook, added only when a site passes a release-only extra) and
|
|
429
|
+
lists the slugs in the Global's `custom` for the Roles save
|
|
430
|
+
(`releaseOnlySlugsFromConfig`). A site that passes none gets the same
|
|
431
|
+
config, rows and access results as before. A site's own Features matrix
|
|
432
|
+
field reads `row.releaseOnly` from the fetched Global and shows
|
|
433
|
+
`RELEASE_ONLY_NOTE` (also exported from `./admin`).
|
|
434
|
+
|
|
435
|
+
Whether a row is released, for every visitor rather than one login, is
|
|
436
|
+
`readFeatureReleased(payload, slug, req?)`: it reads the saved Global with
|
|
437
|
+
override access, matches the slug exactly, and answers `false` for a
|
|
438
|
+
missing row, an empty or unreadable Global, or a read that throws (no
|
|
439
|
+
table yet). `featureReleased(rows, slug)` is the same answer from rows
|
|
440
|
+
already in hand.
|
|
441
|
+
|
|
442
|
+
```ts
|
|
443
|
+
import { readFeatureReleased } from "@bison-lab/payload-core";
|
|
444
|
+
|
|
445
|
+
const launched = await readFeatureReleased(payload, "find-a-doctor");
|
|
446
|
+
```
|
|
447
|
+
|
|
405
448
|
## Block library
|
|
406
449
|
|
|
407
450
|
Settings → Block library is one card per installed option. Editors browse
|
|
@@ -677,6 +720,16 @@ a document drawer (Create New from an upload or relationship field)
|
|
|
677
720
|
keeps its own Save in the drawer, and the page behind keeps its own.
|
|
678
721
|
One-list Globals pass `documentCreateNew("roles")` (or a site field
|
|
679
722
|
path) so Create New uses those same words, with no icon.
|
|
723
|
+
It also keeps a refused publish refused on screen (#357): the provider
|
|
724
|
+
wraps Payload's `getFormState`, and the plugin adds `REFUSED_SUBMIT_GUARD`
|
|
725
|
+
(renders nothing) to every collection's and global's
|
|
726
|
+
`beforeDocumentControls`. After the server refuses a save or publish, the
|
|
727
|
+
form stays modified (Publish stays enabled) and the refusal's field errors
|
|
728
|
+
stand until the data changes, even when Payload's form-state answer for an
|
|
729
|
+
earlier edit lands after the refusal. Payload 3.94.2 on its own clears the
|
|
730
|
+
modified flag on any refused publish and lets that late answer mark every
|
|
731
|
+
field valid (payloadcms/payload#17517 and #18425, fixed in Payload
|
|
732
|
+
4.0.0-beta.12). Remove the workaround when the library moves to Payload 4.
|
|
680
733
|
`listAlign()` keeps a list column's header and cells together: a field
|
|
681
734
|
declares `admin: { custom: { listAlign: "center" | "end" } }` and the
|
|
682
735
|
plugin writes one stylesheet (`listAlignCss`) from every collection's
|
package/dist/admin.d.mts
CHANGED
|
@@ -191,14 +191,16 @@ declare const RolesField: SelectFieldClientComponent;
|
|
|
191
191
|
/**
|
|
192
192
|
* Released catalogue rows as ticks, plus the Theme grant. Unreleased
|
|
193
193
|
* features do not appear. Theme always does — Features cannot hide it.
|
|
194
|
-
* On Developer every row is shown granted and locked.
|
|
194
|
+
* On Developer every row is shown granted and locked. A release-only
|
|
195
|
+
* row never appears, released or not, on any role.
|
|
195
196
|
*/
|
|
196
197
|
declare const RolesGrantsField: JSONFieldClientComponent;
|
|
197
198
|
//#endregion
|
|
198
199
|
//#region src/admin/features-matrix-field.d.ts
|
|
199
200
|
/**
|
|
200
201
|
* One release switch per catalogue row, grouped. Off hides the tick on
|
|
201
|
-
* Roles; Developer still has the feature.
|
|
202
|
+
* Roles; Developer still has the feature. A release-only row says that
|
|
203
|
+
* releasing it turns it on for everyone.
|
|
202
204
|
*
|
|
203
205
|
* Writes both the array value and each row's `released` checkbox path.
|
|
204
206
|
* Payload still registers those child fields; toggling only the parent
|
|
@@ -206,6 +208,10 @@ declare const RolesGrantsField: JSONFieldClientComponent;
|
|
|
206
208
|
*/
|
|
207
209
|
declare const FeaturesMatrixField: ArrayFieldClientComponent;
|
|
208
210
|
//#endregion
|
|
211
|
+
//#region src/features/types.d.ts
|
|
212
|
+
/** Settings → Features copy beside a release-only row's switch. */
|
|
213
|
+
declare const RELEASE_ONLY_NOTE = "Releasing turns this on for everyone.";
|
|
214
|
+
//#endregion
|
|
209
215
|
//#region src/admin/block-library-field.d.ts
|
|
210
216
|
/**
|
|
211
217
|
* Category rail and a gallery of live islands. Each island is the sample
|
|
@@ -229,6 +235,24 @@ declare function DocumentTitleActions({
|
|
|
229
235
|
children?: ReactNode;
|
|
230
236
|
}): react_jsx_runtime0.JSX.Element;
|
|
231
237
|
//#endregion
|
|
238
|
+
//#region src/admin/refused-submit.d.ts
|
|
239
|
+
/**
|
|
240
|
+
* Re-provides Payload's server functions with `getFormState` wrapped, so
|
|
241
|
+
* no form-state answer undoes a refused submit. Mounted once for the
|
|
242
|
+
* admin, inside `DocumentTitleActions`.
|
|
243
|
+
*/
|
|
244
|
+
declare function RefusedSubmitProvider({
|
|
245
|
+
children
|
|
246
|
+
}: {
|
|
247
|
+
children?: ReactNode;
|
|
248
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
249
|
+
/**
|
|
250
|
+
* Renders nothing. Inside a document form, it tells `RefusedSubmitProvider`
|
|
251
|
+
* when a submit is in flight and what a refused one refused, and keeps
|
|
252
|
+
* the form modified after a refusal so Publish (or Save) stays enabled.
|
|
253
|
+
*/
|
|
254
|
+
declare function RefusedSubmitGuard(): null;
|
|
255
|
+
//#endregion
|
|
232
256
|
//#region src/admin/list-align-styles.d.ts
|
|
233
257
|
/**
|
|
234
258
|
* The stylesheet `listAlign()` built from each field's
|
|
@@ -434,5 +458,5 @@ declare function TranslationActivityPanel(): react_jsx_runtime0.JSX.Element;
|
|
|
434
458
|
*/
|
|
435
459
|
declare function TranslationStatusBar(): react_jsx_runtime0.JSX.Element | null;
|
|
436
460
|
//#endregion
|
|
437
|
-
export { AdminNav, AdminNavEntityField, AdminNavItemRowLabel, AdminNavRowLabel, AppearanceField, BlockDrawerStyles, BlockLibraryField, ColorField, ColorScaleField, ContrastReport, DocumentCreateNew, DocumentTitleActions, FeaturesMatrixField, FontField, GreyScaleField, HiddenSaveButton, IdentityFallback, LibraryField, ListAlignStyles, LookField, MediaAltAutofill, MediaListView, PageSlugCell, PageTitleCell, PairingField, PublishChild, QuestionsList, RequiredPageCell, RequiredPageField, RichTextEditorFontStyles, RoleNameField, RoleSlugField, RolesCell, RolesField, RolesGrantsField, RolesMatrixField, RolesRowLabel, SectionHeading, SlugField, ThemeDocumentControls, ThemeSaveButton, TranslateNowMenuItem, TranslationActivityPanel, TranslationKeyPanel, TranslationStatusBar, setThemePreviewMode };
|
|
461
|
+
export { AdminNav, AdminNavEntityField, AdminNavItemRowLabel, AdminNavRowLabel, AppearanceField, BlockDrawerStyles, BlockLibraryField, ColorField, ColorScaleField, ContrastReport, DocumentCreateNew, DocumentTitleActions, FeaturesMatrixField, FontField, GreyScaleField, HiddenSaveButton, IdentityFallback, LibraryField, ListAlignStyles, LookField, MediaAltAutofill, MediaListView, PageSlugCell, PageTitleCell, PairingField, PublishChild, QuestionsList, RELEASE_ONLY_NOTE, RefusedSubmitGuard, RefusedSubmitProvider, RequiredPageCell, RequiredPageField, RichTextEditorFontStyles, RoleNameField, RoleSlugField, RolesCell, RolesField, RolesGrantsField, RolesMatrixField, RolesRowLabel, SectionHeading, SlugField, ThemeDocumentControls, ThemeSaveButton, TranslateNowMenuItem, TranslationActivityPanel, TranslationKeyPanel, TranslationStatusBar, setThemePreviewMode };
|
|
438
462
|
//# 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","../src/admin/preview-mode.tsx","../src/admin/identity-fallback.tsx","../src/admin/look-field.tsx","../src/admin/roles-cell.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/block-drawer-styles.tsx","../src/admin/rich-text-editor-font-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","../src/admin/translate-now.tsx","../src/admin/translation-key-panel.tsx","../src/admin/translation-activity-panel.tsx","../src/admin/translation-status-bar.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;;;;;;;;;iBCOR,SAAA,CAAA;EAAY,QAAA;EAAU;AAAA,GAAS,yBAAA,GAAyB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;cCc3D,gBAAA,EAAkB,yBAAA;;;;;;iBC1Bf,aAAA,CAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;cCChB,aAAA,EAAe,wBAAA;;;;;;;;;cC8Bf,SAAA,EAAW,wBAAA;;;;;;;;;AlB3BxB;iBmBCgB,aAAA,CAAc,KAAA,EAAO,yBAAA,GAAyB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;iBCP9C,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;;;;;;;;cCqBf,UAAA,EAAY,0BAAA
|
|
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-cell.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/features/types.ts","../src/admin/block-library-field.tsx","../src/admin/document-title-actions.tsx","../src/admin/refused-submit.tsx","../src/admin/list-align-styles.tsx","../src/admin/block-drawer-styles.tsx","../src/admin/rich-text-editor-font-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","../src/admin/translate-now.tsx","../src/admin/translation-key-panel.tsx","../src/admin/translation-activity-panel.tsx","../src/admin/translation-status-bar.tsx"],"mappings":"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"}
|
package/dist/admin.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as pageEditorLooks, c as colorDocFromState, n as clampIslandHeight, o as pageEditorTokens, r as islandHeightOf, s as SYSTEM_COLOR_KEYS, u as stateFromColorDoc } from "./island-97l5VY8l.mjs";
|
|
3
|
-
import { ArrayField, Button, CheckboxInput, DefaultCell, FieldDescription, FieldError, FieldLabel, Link, Logout, NavGroup, NavToggler, PopupList, SelectField, fieldBaseClass, toast, useAllFormFields, useAuth, useBulkUpload, useConfig, useDocumentInfo, useEntityVisibility, useField, useForm, useFormFields, useListDrawerContext, useListQuery, useLocale, useModal, useNav, useRowLabel, useStepNav } from "@payloadcms/ui";
|
|
3
|
+
import { ArrayField, Button, CheckboxInput, DefaultCell, FieldDescription, FieldError, FieldLabel, Link, Logout, NavGroup, NavToggler, PopupList, SelectField, ServerFunctionsContext, fieldBaseClass, toast, useAllFormFields, useAuth, useBulkUpload, useConfig, useDocumentInfo, useEntityVisibility, useField, useForm, useFormFields, useFormModified, useFormProcessing, useFormSubmitted, useListDrawerContext, useListQuery, useLocale, useModal, useNav, useRowLabel, useStepNav } from "@payloadcms/ui";
|
|
4
4
|
import { GREY_SCALES, SHADE_STEPS, contrastForeground, contrastRatio, createColorScale, deriveDarkPalette, deriveLightPalette, hexToHSL, hslToString, includedShadeSteps, isThemeHex, presetHints, regenerateColorScale, setColorScaleInclude, updateColorScale } from "@bison-lab/tokens";
|
|
5
|
-
import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
import { createContext, use, useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { Badge, Button as Button$1, CancelGlyph, CategoryRail, Checkbox, Chip, ConfirmDialog, DeleteGlyph, Dialog, EditGlyph, Field, Fold, Input, KitProvider, Label, LockGlyph, MainHead, Page, Pagination, Popover, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Stack, Switch, Table, TableActions, TableCell, TableHead, TableRow, Thumbnail, filterCategories } from "@bison-lab/admin-ui";
|
|
8
8
|
import { HexColorPicker } from "react-colorful";
|
|
@@ -2683,6 +2683,8 @@ const PACKAGE_FEATURES = [
|
|
|
2683
2683
|
defaultReleased: true
|
|
2684
2684
|
}
|
|
2685
2685
|
];
|
|
2686
|
+
/** Settings → Features copy beside a release-only row's switch. */
|
|
2687
|
+
const RELEASE_ONLY_NOTE = "Releasing turns this on for everyone.";
|
|
2686
2688
|
function isFeatureGroupId(value) {
|
|
2687
2689
|
return typeof value === "string" && FEATURE_GROUPS.includes(value);
|
|
2688
2690
|
}
|
|
@@ -2771,12 +2773,17 @@ function defaultGrantsForRole(role, extraGrants) {
|
|
|
2771
2773
|
//#endregion
|
|
2772
2774
|
//#region src/features/matrix.ts
|
|
2773
2775
|
const MISSING_PACKAGE_FEATURES_MESSAGE = "Features must include Content, Publish, Media, Users, and Roles.";
|
|
2776
|
+
/** `{ releaseOnly: true }` for a release-only row, nothing otherwise, so other rows keep their shape. */
|
|
2777
|
+
function releaseOnlyMark(releaseOnly) {
|
|
2778
|
+
return releaseOnly === true ? { releaseOnly: true } : {};
|
|
2779
|
+
}
|
|
2774
2780
|
function featureCatalogue(extras = []) {
|
|
2775
2781
|
return [...PACKAGE_FEATURES.map((feature) => ({ ...feature })), ...extras.map((extra) => ({
|
|
2776
2782
|
slug: extra.slug,
|
|
2777
2783
|
label: extra.label,
|
|
2778
2784
|
group: extra.group ?? "users",
|
|
2779
|
-
defaultReleased: extra.defaultReleased ?? false
|
|
2785
|
+
defaultReleased: extra.defaultReleased ?? false,
|
|
2786
|
+
...releaseOnlyMark(extra.releaseOnly)
|
|
2780
2787
|
}))];
|
|
2781
2788
|
}
|
|
2782
2789
|
function defaultFeaturesFieldValue(extras = []) {
|
|
@@ -2785,7 +2792,8 @@ function defaultFeaturesFieldValue(extras = []) {
|
|
|
2785
2792
|
slug: feature.slug,
|
|
2786
2793
|
label: feature.label,
|
|
2787
2794
|
group: feature.group,
|
|
2788
|
-
released: feature.defaultReleased
|
|
2795
|
+
released: feature.defaultReleased,
|
|
2796
|
+
...releaseOnlyMark(feature.releaseOnly)
|
|
2789
2797
|
}));
|
|
2790
2798
|
}
|
|
2791
2799
|
function parseFeaturesMatrix(value) {
|
|
@@ -2808,7 +2816,8 @@ function parseFeaturesMatrix(value) {
|
|
|
2808
2816
|
slug,
|
|
2809
2817
|
label,
|
|
2810
2818
|
group,
|
|
2811
|
-
released: Boolean("released" in item && item.released)
|
|
2819
|
+
released: Boolean("released" in item && item.released),
|
|
2820
|
+
...releaseOnlyMark("releaseOnly" in item && item.releaseOnly === true)
|
|
2812
2821
|
});
|
|
2813
2822
|
}
|
|
2814
2823
|
if (PACKAGE_FEATURES.some((feature) => !seen.has(feature.slug))) return {
|
|
@@ -3777,7 +3786,8 @@ function rolePathFromGrants(path) {
|
|
|
3777
3786
|
/**
|
|
3778
3787
|
* Released catalogue rows as ticks, plus the Theme grant. Unreleased
|
|
3779
3788
|
* features do not appear. Theme always does — Features cannot hide it.
|
|
3780
|
-
* On Developer every row is shown granted and locked.
|
|
3789
|
+
* On Developer every row is shown granted and locked. A release-only
|
|
3790
|
+
* row never appears, released or not, on any role.
|
|
3781
3791
|
*/
|
|
3782
3792
|
const RolesGrantsField = (props) => {
|
|
3783
3793
|
const { setValue, value } = useField({ path: props.path });
|
|
@@ -3800,7 +3810,8 @@ const RolesGrantsField = (props) => {
|
|
|
3800
3810
|
};
|
|
3801
3811
|
}, [api, serverURL]);
|
|
3802
3812
|
const grants = asGrants(value);
|
|
3803
|
-
const
|
|
3813
|
+
const ticks = catalogue.filter((row) => !row.releaseOnly);
|
|
3814
|
+
const shown = implicitAll ? ticks : ticks.filter((row) => row.released);
|
|
3804
3815
|
const alwaysTranslation = typeof role === "string" && ALWAYS_TRANSLATION_ROLES.includes(role);
|
|
3805
3816
|
function locked(slug) {
|
|
3806
3817
|
return implicitAll || slug === "translation" && alwaysTranslation;
|
|
@@ -3857,17 +3868,26 @@ const RolesGrantsField = (props) => {
|
|
|
3857
3868
|
};
|
|
3858
3869
|
//#endregion
|
|
3859
3870
|
//#region src/admin/features-matrix-field.tsx
|
|
3860
|
-
const LIST_CSS$2 = `.bl-features{margin-block:.35rem 0;font-size:16px}.bl-features__group{margin-block:1rem 0}.bl-features__group-title{font-size:14px;letter-spacing:.02em;color:var(--theme-elevation-400,#94a3b8);font-weight:650;margin-block-end:.35rem}.bl-features__row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--theme-elevation-150,#e2e8f0)}.bl-features__row:last-child{border-bottom:0}.bl-features input{inline-size:1.15rem;block-size:1.15rem}`;
|
|
3871
|
+
const LIST_CSS$2 = `.bl-features{margin-block:.35rem 0;font-size:16px}.bl-features__group{margin-block:1rem 0}.bl-features__group-title{font-size:14px;letter-spacing:.02em;color:var(--theme-elevation-400,#94a3b8);font-weight:650;margin-block-end:.35rem}.bl-features__row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--theme-elevation-150,#e2e8f0)}.bl-features__row:last-child{border-bottom:0}.bl-features input{inline-size:1.15rem;block-size:1.15rem}.bl-features__name{display:flex;flex-direction:column;gap:.15rem}.bl-features__note{font-size:13px;color:var(--theme-elevation-500,#64748b)}`;
|
|
3861
3872
|
function asRows$1(value) {
|
|
3862
3873
|
return Array.isArray(value) ? value : [];
|
|
3863
3874
|
}
|
|
3864
3875
|
function FeatureReleaseRow({ path, index, row, rows, setRows }) {
|
|
3865
3876
|
const { setValue: setReleased } = useField({ path: `${path}.${index}.released` });
|
|
3877
|
+
const noteId = row.releaseOnly ? `bl-features-note-${row.slug}` : void 0;
|
|
3866
3878
|
return /* @__PURE__ */ jsxs("div", {
|
|
3867
3879
|
className: "bl-features__row",
|
|
3868
|
-
children: [/* @__PURE__ */
|
|
3880
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
3881
|
+
className: "bl-features__name",
|
|
3882
|
+
children: [/* @__PURE__ */ jsx("span", { children: row.label || row.slug }), noteId ? /* @__PURE__ */ jsx("span", {
|
|
3883
|
+
id: noteId,
|
|
3884
|
+
className: "bl-features__note",
|
|
3885
|
+
children: RELEASE_ONLY_NOTE
|
|
3886
|
+
}) : null]
|
|
3887
|
+
}), /* @__PURE__ */ jsx("input", {
|
|
3869
3888
|
type: "checkbox",
|
|
3870
3889
|
"aria-label": `Release ${row.label || row.slug}`,
|
|
3890
|
+
"aria-describedby": noteId,
|
|
3871
3891
|
checked: Boolean(row.released),
|
|
3872
3892
|
onChange: (event) => {
|
|
3873
3893
|
const released = event.target.checked;
|
|
@@ -3882,7 +3902,8 @@ function FeatureReleaseRow({ path, index, row, rows, setRows }) {
|
|
|
3882
3902
|
}
|
|
3883
3903
|
/**
|
|
3884
3904
|
* One release switch per catalogue row, grouped. Off hides the tick on
|
|
3885
|
-
* Roles; Developer still has the feature.
|
|
3905
|
+
* Roles; Developer still has the feature. A release-only row says that
|
|
3906
|
+
* releasing it turns it on for everyone.
|
|
3886
3907
|
*
|
|
3887
3908
|
* Writes both the array value and each row's `released` checkbox path.
|
|
3888
3909
|
* Payload still registers those child fields; toggling only the parent
|
|
@@ -4578,6 +4599,188 @@ function slugFromHash(hash) {
|
|
|
4578
4599
|
}
|
|
4579
4600
|
}
|
|
4580
4601
|
//#endregion
|
|
4602
|
+
//#region src/admin/refused-submit.tsx
|
|
4603
|
+
/** The longest an edit's form-state answer waits for a submit in flight. */
|
|
4604
|
+
const PENDING_LIMIT_MS = 15e3;
|
|
4605
|
+
const FormsContext = createContext(null);
|
|
4606
|
+
function docKey(doc) {
|
|
4607
|
+
return [
|
|
4608
|
+
doc.collectionSlug ?? "",
|
|
4609
|
+
doc.globalSlug ?? "",
|
|
4610
|
+
doc.id ?? ""
|
|
4611
|
+
].join("|");
|
|
4612
|
+
}
|
|
4613
|
+
/** Field values by path, as a form submits them (no `disableFormData`, no files: a form-state request drops those). */
|
|
4614
|
+
function valuesOf(state) {
|
|
4615
|
+
const values = {};
|
|
4616
|
+
for (const [path, field] of Object.entries(state)) {
|
|
4617
|
+
if (!field || field.disableFormData || field.value === void 0) continue;
|
|
4618
|
+
if (typeof File !== "undefined" && field.value instanceof File) continue;
|
|
4619
|
+
values[path] = field.value;
|
|
4620
|
+
}
|
|
4621
|
+
return values;
|
|
4622
|
+
}
|
|
4623
|
+
function deepEqual(a, b) {
|
|
4624
|
+
if (a === b) return true;
|
|
4625
|
+
if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) return false;
|
|
4626
|
+
if (Array.isArray(a) !== Array.isArray(b)) return false;
|
|
4627
|
+
const left = a;
|
|
4628
|
+
const right = b;
|
|
4629
|
+
const keys = Object.keys(left);
|
|
4630
|
+
if (keys.length !== Object.keys(right).length) return false;
|
|
4631
|
+
return keys.every((key) => key in right && deepEqual(left[key], right[key]));
|
|
4632
|
+
}
|
|
4633
|
+
/** What a refusal put on the form: invalid fields and the parents counting their errors. */
|
|
4634
|
+
function errorsOf(state) {
|
|
4635
|
+
const errors = {};
|
|
4636
|
+
for (const [path, field] of Object.entries(state)) {
|
|
4637
|
+
if (!field) continue;
|
|
4638
|
+
if (field.valid === false) errors[path] = {
|
|
4639
|
+
valid: false,
|
|
4640
|
+
errorMessage: field.errorMessage
|
|
4641
|
+
};
|
|
4642
|
+
if (Array.isArray(field.errorPaths) && field.errorPaths.length > 0) errors[path] = {
|
|
4643
|
+
...errors[path],
|
|
4644
|
+
errorPaths: field.errorPaths
|
|
4645
|
+
};
|
|
4646
|
+
}
|
|
4647
|
+
return errors;
|
|
4648
|
+
}
|
|
4649
|
+
function withErrors(state, errors) {
|
|
4650
|
+
const next = { ...state };
|
|
4651
|
+
for (const [path, error] of Object.entries(errors)) {
|
|
4652
|
+
const field = next[path];
|
|
4653
|
+
if (field) next[path] = {
|
|
4654
|
+
...field,
|
|
4655
|
+
...error
|
|
4656
|
+
};
|
|
4657
|
+
}
|
|
4658
|
+
return next;
|
|
4659
|
+
}
|
|
4660
|
+
/**
|
|
4661
|
+
* An edit's form-state request: the Edit view's `onChange` sends the
|
|
4662
|
+
* client `formState` and no `data`. A save's (`onSave`) sends `data`, and
|
|
4663
|
+
* runs while the submit is still in flight, so it must never wait.
|
|
4664
|
+
*/
|
|
4665
|
+
function isEditRequest(args) {
|
|
4666
|
+
return Boolean(args?.formState) && !("data" in args);
|
|
4667
|
+
}
|
|
4668
|
+
/**
|
|
4669
|
+
* Re-provides Payload's server functions with `getFormState` wrapped, so
|
|
4670
|
+
* no form-state answer undoes a refused submit. Mounted once for the
|
|
4671
|
+
* admin, inside `DocumentTitleActions`.
|
|
4672
|
+
*/
|
|
4673
|
+
function RefusedSubmitProvider({ children }) {
|
|
4674
|
+
const outer = use(ServerFunctionsContext);
|
|
4675
|
+
const forms = useRef(/* @__PURE__ */ new Set()).current;
|
|
4676
|
+
const value = useMemo(() => {
|
|
4677
|
+
if (!outer) return void 0;
|
|
4678
|
+
const getFormState = async (args) => {
|
|
4679
|
+
const result = await outer.getFormState(args);
|
|
4680
|
+
if (!isEditRequest(args)) return result;
|
|
4681
|
+
const doc = docKey(args);
|
|
4682
|
+
const mine = [...forms].filter((form) => form.doc === doc);
|
|
4683
|
+
const pending = mine.flatMap((form) => form.pending ? [form.pending] : []);
|
|
4684
|
+
if (pending.length) {
|
|
4685
|
+
let timer;
|
|
4686
|
+
await Promise.race([Promise.all(pending), new Promise((resolve) => {
|
|
4687
|
+
timer = setTimeout(resolve, PENDING_LIMIT_MS);
|
|
4688
|
+
})]);
|
|
4689
|
+
clearTimeout(timer);
|
|
4690
|
+
}
|
|
4691
|
+
if (!result?.state) return result;
|
|
4692
|
+
const values = valuesOf(args.formState);
|
|
4693
|
+
let state = result.state;
|
|
4694
|
+
for (const form of mine) if (form.refusal && deepEqual(form.refusal.values, values)) state = withErrors(state, form.refusal.errors);
|
|
4695
|
+
return state === result.state ? result : {
|
|
4696
|
+
...result,
|
|
4697
|
+
state
|
|
4698
|
+
};
|
|
4699
|
+
};
|
|
4700
|
+
return {
|
|
4701
|
+
...outer,
|
|
4702
|
+
getFormState
|
|
4703
|
+
};
|
|
4704
|
+
}, [outer, forms]);
|
|
4705
|
+
return /* @__PURE__ */ jsx(FormsContext, {
|
|
4706
|
+
value: forms,
|
|
4707
|
+
children: value ? /* @__PURE__ */ jsx(ServerFunctionsContext, {
|
|
4708
|
+
value,
|
|
4709
|
+
children
|
|
4710
|
+
}) : children
|
|
4711
|
+
});
|
|
4712
|
+
}
|
|
4713
|
+
/**
|
|
4714
|
+
* Renders nothing. Inside a document form, it tells `RefusedSubmitProvider`
|
|
4715
|
+
* when a submit is in flight and what a refused one refused, and keeps
|
|
4716
|
+
* the form modified after a refusal so Publish (or Save) stays enabled.
|
|
4717
|
+
*/
|
|
4718
|
+
function RefusedSubmitGuard() {
|
|
4719
|
+
const forms = use(FormsContext);
|
|
4720
|
+
const docInfo = useDocumentInfo();
|
|
4721
|
+
const form = useForm();
|
|
4722
|
+
const processing = useFormProcessing();
|
|
4723
|
+
const modified = useFormModified();
|
|
4724
|
+
const submitted = useFormSubmitted();
|
|
4725
|
+
const doc = docKey(docInfo);
|
|
4726
|
+
const entry = useRef({
|
|
4727
|
+
doc,
|
|
4728
|
+
pending: null,
|
|
4729
|
+
refusal: null
|
|
4730
|
+
}).current;
|
|
4731
|
+
entry.doc = doc;
|
|
4732
|
+
const submit = useRef({
|
|
4733
|
+
active: false,
|
|
4734
|
+
modified: false,
|
|
4735
|
+
values: {},
|
|
4736
|
+
release: () => {}
|
|
4737
|
+
}).current;
|
|
4738
|
+
useLayoutEffect(() => {
|
|
4739
|
+
forms?.add(entry);
|
|
4740
|
+
return () => {
|
|
4741
|
+
forms?.delete(entry);
|
|
4742
|
+
submit.release();
|
|
4743
|
+
};
|
|
4744
|
+
}, [
|
|
4745
|
+
forms,
|
|
4746
|
+
entry,
|
|
4747
|
+
submit
|
|
4748
|
+
]);
|
|
4749
|
+
useLayoutEffect(() => {
|
|
4750
|
+
if (processing && !submit.active) {
|
|
4751
|
+
submit.active = true;
|
|
4752
|
+
submit.modified = modified;
|
|
4753
|
+
submit.values = valuesOf(form.getFields());
|
|
4754
|
+
entry.refusal = null;
|
|
4755
|
+
entry.pending = new Promise((resolve) => {
|
|
4756
|
+
submit.release = resolve;
|
|
4757
|
+
});
|
|
4758
|
+
return;
|
|
4759
|
+
}
|
|
4760
|
+
if (!processing && submit.active) {
|
|
4761
|
+
submit.active = false;
|
|
4762
|
+
const errors = errorsOf(form.getFields());
|
|
4763
|
+
if (submitted || Object.keys(errors).length > 0) {
|
|
4764
|
+
entry.refusal = {
|
|
4765
|
+
values: submit.values,
|
|
4766
|
+
errors
|
|
4767
|
+
};
|
|
4768
|
+
if (submit.modified && !modified) form.setModified(true);
|
|
4769
|
+
}
|
|
4770
|
+
entry.pending = null;
|
|
4771
|
+
submit.release();
|
|
4772
|
+
}
|
|
4773
|
+
}, [
|
|
4774
|
+
processing,
|
|
4775
|
+
modified,
|
|
4776
|
+
submitted,
|
|
4777
|
+
form,
|
|
4778
|
+
entry,
|
|
4779
|
+
submit
|
|
4780
|
+
]);
|
|
4781
|
+
return null;
|
|
4782
|
+
}
|
|
4783
|
+
//#endregion
|
|
4581
4784
|
//#region src/admin/theme-kit-accent.tsx
|
|
4582
4785
|
function primaryHex(doc) {
|
|
4583
4786
|
const hex = doc?.colors?.brand?.primary?.hex;
|
|
@@ -4633,6 +4836,9 @@ function ThemeKitAccent({ children }) {
|
|
|
4633
4836
|
* Mounted as `admin.components.providers` so Account and every
|
|
4634
4837
|
* collection / global share one lift. A MutationObserver re-applies
|
|
4635
4838
|
* after Payload redraws the controls.
|
|
4839
|
+
*
|
|
4840
|
+
* It also carries `RefusedSubmitProvider`, so a refused publish keeps its
|
|
4841
|
+
* field errors and stays publishable (#357).
|
|
4636
4842
|
*/
|
|
4637
4843
|
const TITLE_ACTIONS_CSS = `
|
|
4638
4844
|
.doc-header__header{display:flex;align-items:center;justify-content:flex-start;width:100%;gap:10px}
|
|
@@ -4717,7 +4923,7 @@ function DocumentTitleActions({ children }) {
|
|
|
4717
4923
|
href: "bl-doc-title-actions",
|
|
4718
4924
|
precedence: "default",
|
|
4719
4925
|
children: TITLE_ACTIONS_CSS
|
|
4720
|
-
}), children] });
|
|
4926
|
+
}), /* @__PURE__ */ jsx(RefusedSubmitProvider, { children })] });
|
|
4721
4927
|
}
|
|
4722
4928
|
//#endregion
|
|
4723
4929
|
//#region src/admin/list-align-styles.tsx
|
|
@@ -7578,6 +7784,6 @@ function TranslationActivityPanel() {
|
|
|
7578
7784
|
] });
|
|
7579
7785
|
}
|
|
7580
7786
|
//#endregion
|
|
7581
|
-
export { AdminNav, AdminNavEntityField, AdminNavItemRowLabel, AdminNavRowLabel, AppearanceField, BlockDrawerStyles, BlockLibraryField, ColorField, ColorScaleField, ContrastReport, DocumentCreateNew, DocumentTitleActions, FeaturesMatrixField, FontField, GreyScaleField, HiddenSaveButton, IdentityFallback, LibraryField, ListAlignStyles, LookField, MediaAltAutofill, MediaListView, PageSlugCell, PageTitleCell, PairingField, PublishChild, QuestionsList, RequiredPageCell, RequiredPageField, RichTextEditorFontStyles, RoleNameField, RoleSlugField, RolesCell, RolesField, RolesGrantsField, RolesMatrixField, RolesRowLabel, SectionHeading, SlugField, ThemeDocumentControls, ThemeSaveButton, TranslateNowMenuItem, TranslationActivityPanel, TranslationKeyPanel, TranslationStatusBar, setThemePreviewMode };
|
|
7787
|
+
export { AdminNav, AdminNavEntityField, AdminNavItemRowLabel, AdminNavRowLabel, AppearanceField, BlockDrawerStyles, BlockLibraryField, ColorField, ColorScaleField, ContrastReport, DocumentCreateNew, DocumentTitleActions, FeaturesMatrixField, FontField, GreyScaleField, HiddenSaveButton, IdentityFallback, LibraryField, ListAlignStyles, LookField, MediaAltAutofill, MediaListView, PageSlugCell, PageTitleCell, PairingField, PublishChild, QuestionsList, RELEASE_ONLY_NOTE, RefusedSubmitGuard, RefusedSubmitProvider, RequiredPageCell, RequiredPageField, RichTextEditorFontStyles, RoleNameField, RoleSlugField, RolesCell, RolesField, RolesGrantsField, RolesMatrixField, RolesRowLabel, SectionHeading, SlugField, ThemeDocumentControls, ThemeSaveButton, TranslateNowMenuItem, TranslationActivityPanel, TranslationKeyPanel, TranslationStatusBar, setThemePreviewMode };
|
|
7582
7788
|
|
|
7583
7789
|
//# sourceMappingURL=admin.mjs.map
|