IAPL rename, scripted: preferred names in src, bin, scripts, services, tests; bin files and skill folders moved
Replaced by an explicit list of forms only (ten exported names, runtime env names, project file names and marks, commands, skill names, the log prefix, the brand in prose). Package name, import paths, routes, CSS tokens, data attributes, custom keys, context flags, the cookie and kv keys are not touched. package.json keeps the five old bin names beside the five new ones. The old names stop working in this commit and come back as aliases in the next; docs follow. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
414a4702df
commit
0a4f001797
+11
-11
@@ -30,10 +30,10 @@ import type { SeoOption } from './modules/seo/types.js'
|
||||
import type { StatsOptions } from './modules/stats/collection.js'
|
||||
|
||||
/**
|
||||
* Configuration options for the IPAL plugin.
|
||||
* Configuration options for the IAPL plugin.
|
||||
* Passed by the client project in payload.config.ts.
|
||||
*/
|
||||
export type IpalOptions = {
|
||||
export type IaplOptions = {
|
||||
/**
|
||||
* Role-based access control. Injects a fixed `roles` field
|
||||
* (admin > editor > user) into the client's auth collection.
|
||||
@@ -120,8 +120,8 @@ export type IpalOptions = {
|
||||
dashboardAlerts?: { cookies?: 'all' | 'editor'; integrations?: 'admin' | 'all' | 'editor' }
|
||||
|
||||
/**
|
||||
* GET /api/ipal/doctor — read-only counts for `ipal-doctor --url` (users without 2FA, cookies
|
||||
* waiting for approval, versions). Answers 404 until IPAL_DOCTOR_TOKEN (≥ 32 characters) is set;
|
||||
* GET /api/ipal/doctor — read-only counts for `iapl-doctor --url` (users without 2FA, cookies
|
||||
* waiting for approval, versions). Answers 404 until IAPL_DOCTOR_TOKEN (≥ 32 characters) is set;
|
||||
* then a `Bearer` token is required. `false` = no endpoint; `{ tokenVar, access }` to adapt it.
|
||||
* docs/doctor.md.
|
||||
*/
|
||||
@@ -270,8 +270,8 @@ export type IpalOptions = {
|
||||
*/
|
||||
collectionSlug?: CollectionSlug
|
||||
/**
|
||||
* ipal-kit's own second-factor check on every collection and global —
|
||||
* also the ones added after the 2FA package ran (ipal-kit's own, other
|
||||
* IAPL's own second-factor check on every collection and global —
|
||||
* also the ones added after the 2FA package ran (IAPL's own, other
|
||||
* plugins') — and in `userMeetsRole`. On by default. `false` leaves only
|
||||
* the package's wrapper, which does not cover those: a staff password
|
||||
* without the TOTP code then reads them over the API. Only for a 2FA
|
||||
@@ -292,7 +292,7 @@ export type IpalOptions = {
|
||||
/**
|
||||
* The 2FA plugin factory, INJECTED from the project:
|
||||
* `import { payloadTotp } from '@clocklimited/payload-2fa'`. Injecting it
|
||||
* (the same pattern as NextResponse / revalidatePath) means ipal-kit never
|
||||
* (the same pattern as NextResponse / revalidatePath) means IAPL never
|
||||
* imports the optional peer itself — Next can't bundle such an import
|
||||
* ("Cannot find module '@clocklimited/payload-2fa'", even on public
|
||||
* pages), and serverExternalPackages is no fix (the package imports its
|
||||
@@ -302,7 +302,7 @@ export type IpalOptions = {
|
||||
plugin: TotpPluginFactory
|
||||
/**
|
||||
* Admin provider that sends users to the TOTP setup / verify screens.
|
||||
* Default: ipal-kit's `@intecion/ipal-kit/admin#TotpRedirectProvider`
|
||||
* Default: IAPL's `@intecion/ipal-kit/admin#TotpRedirectProvider`
|
||||
* (reads the path in the browser). The package's own provider needs an
|
||||
* `x-pathname` request header on every /admin request; without it the
|
||||
* setup screen redirects to itself (`setup-totp?back=null`). Pass your
|
||||
@@ -331,7 +331,7 @@ export type IpalOptions = {
|
||||
* Check on the `back` query value of the 2FA setup and verify screens. The
|
||||
* 2FA package sends the browser there after a valid code without looking at
|
||||
* it, so a crafted link could run script in the panel (`javascript:`) or
|
||||
* leave the site. On by default: ipal-kit's `SafeTotpView` goes in front of
|
||||
* leave the site. On by default: IAPL's `SafeTotpView` goes in front of
|
||||
* the package's views and passes on a value that stays on the site's origin,
|
||||
* inside the admin route — anything else becomes the admin root
|
||||
* (`safeAdminBack`). A function replaces the rule; `false` leaves the
|
||||
@@ -350,7 +350,7 @@ export type IpalOptions = {
|
||||
*/
|
||||
sameOrigin?: { origins?: string[] } | false
|
||||
/**
|
||||
* Texts of the 2FA screens and user field. Default: ipal-kit's English and
|
||||
* Texts of the 2FA screens and user field. Default: IAPL's English and
|
||||
* Polish (`TOTP_TEXTS`), merged over the package's; your own
|
||||
* `i18n.translations.<lang>.totpPlugin` still wins. `false` keeps the package's.
|
||||
*/
|
||||
@@ -414,7 +414,7 @@ export type IpalOptions = {
|
||||
| boolean
|
||||
}
|
||||
|
||||
/** `ipalKit({ theme })` — every key optional. */
|
||||
/** `iapl({ theme })` — every key optional. */
|
||||
export type ThemeOptions = {
|
||||
/** localStorage key of the visitor's light / dark choice. Default `'theme'`. */
|
||||
storageKey?: string
|
||||
|
||||
Reference in New Issue
Block a user