F1: roles count only for accounts of a staff collection, in every exported predicate and access builder (isAdmin, isEditor, hasMinimumRole, adminOnly, adminOrEditor, requireRole, adminOrSelf, adminOrSelfIn, the Field variants, the roles field) and first in userMeetsRole. An account of another auth collection with its own roles: ['admin'] gets nothing. Staff collections: admin.user, access.authCollection, access.staffCollections. Predicates take req.payload as an optional last argument and otherwise use the staff collections of the config ipalKit built in this process. F2: every endpoint @clocklimited/payload-2fa registers answers accounts of the 2FA collection only (setup-totp wrote the secret into the 2FA collection under the caller's id, whatever collection the caller came from); remove and the admin reset/remove endpoints also need the second factor. F3: per-entity opt-out honoured, operation by operation: the package's custom.totp.disableAccessWrapper and ipal-kit's custom.ipal.secondFactor (passed on to the package); the package's global disableAccessWrapper too. F4: a no-user auth strategy on the 2FA collection guards the live config at the start of each request, so entities from plugins listed after ipalKit stay guarded after a dev hot reload and with disableOnInit. Tests through HTTP for all four; the 2FA tests now run on payload-2fa 3.0.0-beta.7 (what client sites use), a second file on beta.1 (alias), and the HTTP files can run against Postgres (IPAL_TEST_POSTGRES_URI). Docs, agent guide, skills and changelog updated; the not-yet-enrolled limitation is stated plainly. Co-Authored-By: Claude Fable 5.2 <[email protected]>
224 lines
7.0 KiB
JSON
224 lines
7.0 KiB
JSON
{
|
|
"name": "@intecion/ipal-kit",
|
|
"version": "1.16.3",
|
|
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://git.intecion.net/IntecionSoftware/ipal-kit.git"
|
|
},
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./client": {
|
|
"import": "./dist/exports/client.js",
|
|
"types": "./dist/exports/client.d.ts",
|
|
"default": "./dist/exports/client.js"
|
|
},
|
|
"./rsc": {
|
|
"import": "./dist/exports/rsc.js",
|
|
"types": "./dist/exports/rsc.d.ts",
|
|
"default": "./dist/exports/rsc.js"
|
|
},
|
|
"./server": {
|
|
"import": "./dist/exports/server.js",
|
|
"types": "./dist/exports/server.d.ts",
|
|
"default": "./dist/exports/server.js"
|
|
},
|
|
"./seed": {
|
|
"import": "./dist/exports/seed.js",
|
|
"types": "./dist/exports/seed.d.ts",
|
|
"default": "./dist/exports/seed.js"
|
|
},
|
|
"./starter": {
|
|
"import": "./dist/exports/starter.js",
|
|
"types": "./dist/exports/starter.d.ts",
|
|
"default": "./dist/exports/starter.js"
|
|
},
|
|
"./templates": {
|
|
"import": "./dist/exports/templates.js",
|
|
"types": "./dist/exports/templates.d.ts",
|
|
"default": "./dist/exports/templates.js"
|
|
},
|
|
"./next/middleware": {
|
|
"import": "./dist/exports/next-middleware.js",
|
|
"types": "./dist/exports/next-middleware.d.ts",
|
|
"default": "./dist/exports/next-middleware.js"
|
|
},
|
|
"./admin": {
|
|
"import": "./dist/exports/admin.js",
|
|
"types": "./dist/exports/admin.d.ts",
|
|
"default": "./dist/exports/admin.js"
|
|
},
|
|
"./blocks": {
|
|
"import": "./dist/exports/blocks.js",
|
|
"types": "./dist/exports/blocks.d.ts",
|
|
"default": "./dist/exports/blocks.js"
|
|
},
|
|
"./blocks/rsc": {
|
|
"import": "./dist/exports/blocks-rsc.js",
|
|
"types": "./dist/exports/blocks-rsc.d.ts",
|
|
"default": "./dist/exports/blocks-rsc.js"
|
|
},
|
|
"./env": {
|
|
"import": "./dist/exports/env.js",
|
|
"types": "./dist/exports/env.d.ts",
|
|
"default": "./dist/exports/env.js"
|
|
},
|
|
"./doctor": {
|
|
"import": "./dist/exports/doctor.js",
|
|
"types": "./dist/exports/doctor.d.ts",
|
|
"default": "./dist/exports/doctor.js"
|
|
},
|
|
"./tokens": {
|
|
"import": "./dist/exports/tokens.js",
|
|
"types": "./dist/exports/tokens.d.ts",
|
|
"default": "./dist/exports/tokens.js"
|
|
},
|
|
"./fluid.css": "./dist/styles/fluid.css",
|
|
"./fluid-wide.css": "./dist/styles/fluid-wide.css",
|
|
"./tokens.css": "./dist/styles/tokens.css",
|
|
"./tailwind.css": "./dist/styles/tailwind.css",
|
|
"./a11y.css": "./dist/styles/a11y.css"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"bin": {
|
|
"ipal-kit": "bin/ipal-kit.mjs",
|
|
"ipal-skills": "bin/ipal-skills.mjs",
|
|
"ipal-blocks": "bin/ipal-blocks.mjs",
|
|
"ipal-tokens": "bin/ipal-tokens.mjs",
|
|
"ipal-doctor": "bin/ipal-doctor.mjs"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"docs",
|
|
"bin",
|
|
"src/modules/block-library"
|
|
],
|
|
"sideEffects": [
|
|
"**/*.css"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm copyfiles && pnpm build:types && pnpm build:swc",
|
|
"build:starter": "node scripts/build-starter.mjs",
|
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
"build:types": "tsc --outDir dist --rootDir ./src",
|
|
"clean": "rimraf --glob dist \"*.tsbuildinfo\"",
|
|
"cookie-db:refresh": "node scripts/refresh-cookie-database.mjs",
|
|
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
|
"dev": "next dev dev --turbo",
|
|
"dev:generate-importmap": "pnpm dev:payload generate:importmap",
|
|
"dev:generate-types": "pnpm dev:payload generate:types",
|
|
"dev:payload": "cross-env PAYLOAD_CONFIG_PATH=./dev/payload.config.ts payload",
|
|
"generate:importmap": "pnpm dev:generate-importmap",
|
|
"generate:types": "pnpm dev:generate-types",
|
|
"lint": "eslint ./src ./test",
|
|
"lint:fix": "eslint ./src ./test --fix",
|
|
"prepare": "pnpm build",
|
|
"prepublishOnly": "pnpm clean && pnpm build && pnpm build:starter && pnpm test:int && pnpm starter:gate",
|
|
"reference:index": "node scripts/reference-index.mjs",
|
|
"starter:gate": "node scripts/starter-gate.mjs",
|
|
"test": "pnpm test:int && pnpm test:e2e",
|
|
"test:e2e": "playwright test",
|
|
"test:int": "vitest run",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit -p . && tsc -p test"
|
|
},
|
|
"dependencies": {
|
|
"busboy": "1.6.0",
|
|
"lucide-react": "0.400.0",
|
|
"nodemailer": "10.6.1",
|
|
"server-only": "0.0.1",
|
|
"slugify": "1.6.9"
|
|
},
|
|
"peerDependencies": {
|
|
"@clocklimited/payload-2fa": "^3.0.0-0",
|
|
"@payloadcms/next": "^3.90.2",
|
|
"@payloadcms/plugin-form-builder": "^3.90.2",
|
|
"@payloadcms/plugin-seo": "^3.90.2",
|
|
"@payloadcms/richtext-lexical": "^3.90.2",
|
|
"@payloadcms/storage-s3": "^3.90.2",
|
|
"@payloadcms/ui": "^3.90.2",
|
|
"next": ">=15",
|
|
"payload": "^3.90.2",
|
|
"react": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@clocklimited/payload-2fa": "3.0.0-beta.7",
|
|
"@eslint/eslintrc": "^3.3.7",
|
|
"@payloadcms/db-postgres": "3.94.1",
|
|
"@payloadcms/db-sqlite": "3.94.1",
|
|
"@payloadcms/eslint-config": "3.28.0",
|
|
"@payloadcms/next": "3.94.1",
|
|
"@payloadcms/plugin-form-builder": "3.94.1",
|
|
"@payloadcms/plugin-seo": "3.94.1",
|
|
"@payloadcms/richtext-lexical": "3.94.1",
|
|
"@payloadcms/ui": "3.94.1",
|
|
"@playwright/test": "1.65.1",
|
|
"@swc-node/register": "1.12.1",
|
|
"@swc/cli": "0.8.2",
|
|
"@types/busboy": "1.5.5",
|
|
"@types/node": "22.20.5",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"copyfiles": "2.4.1",
|
|
"cross-env": "^10.1.0",
|
|
"eslint": "^9.23.0",
|
|
"eslint-config-next": "16.4.6",
|
|
"graphql": "^16.8.1",
|
|
"next": "16.4.6",
|
|
"open": "^11.0.4",
|
|
"payload": "3.94.1",
|
|
"payload-2fa-beta1": "npm:@clocklimited/[email protected]",
|
|
"prettier": "^3.10.1",
|
|
"qs-esm": "8.0.2",
|
|
"react": "19.3.1",
|
|
"react-dom": "19.3.1",
|
|
"rimraf": "6.1.4",
|
|
"sharp": "0.35.5",
|
|
"sort-package-json": "^4.1.0",
|
|
"typescript": "5.9.3",
|
|
"vite": "7.3.8",
|
|
"vite-tsconfig-paths": "6.1.1",
|
|
"vitest": "5.1.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.9.0",
|
|
"pnpm": "^9 || ^10 || ^11"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://git.intecion.net/api/packages/IntecionSoftware/npm/"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"sharp",
|
|
"esbuild",
|
|
"unrs-resolver"
|
|
],
|
|
"overrides": {
|
|
"baseline-browser-mapping@<2.11.0": "^2.11.0",
|
|
"browserslist@<4.28.7": "^4.28.7",
|
|
"dompurify@<3.4.17": "^3.4.17",
|
|
"fast-copy@<3.1.0": "^3.1.0",
|
|
"fast-uri@<3.1.9": "^3.1.9",
|
|
"happy-dom@<21.0.4": "^21.0.4",
|
|
"js-yaml@>=4 <4.3.2": "^4.3.2",
|
|
"source-map-js@<1.2.2": "^1.2.2",
|
|
"undici@>=7 <7.30.1": "^7.30.1"
|
|
}
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@clocklimited/payload-2fa": {
|
|
"optional": true
|
|
},
|
|
"@payloadcms/storage-s3": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|