payload-invitations 0.0.1

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 ADDED
@@ -0,0 +1,71 @@
1
+ # payload-invitations
2
+
3
+ <!-- One-sentence tagline: explain what this plugin does in plain language -->
4
+
5
+ [![npm version](https://img.shields.io/npm/v/payload-invitations)](https://www.npmjs.com/package/payload-invitations)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
7
+
8
+ ## Overview
9
+
10
+ <!-- 2-4 sentences: what problem does this solve, what approach does it take, what are the key integration points -->
11
+
12
+ **Features**
13
+
14
+ <!-- 4-8 bullet points. Each starts with a **bold keyword** followed by a brief explanation. Sourced from the plugin's actual capabilities in src/index.ts -->
15
+
16
+ - **Feature** -- explanation
17
+ - ...
18
+
19
+ ## Installation
20
+
21
+ ```sh
22
+ pnpm add payload-invitations
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ <!-- Show the most common setup: importing the plugin, adding it to payload.config.ts, and the primary use case. Code must match actual exports. -->
28
+
29
+ ```ts
30
+ // payload.config.ts
31
+ ```
32
+
33
+ ### Options
34
+
35
+ <!-- Table of all config options from the plugin's TypeScript interface. Source from src/index.ts config type and destructured defaults. -->
36
+
37
+ | Option | Type | Default | Description |
38
+ |--------|------|---------|-------------|
39
+ | | | | |
40
+
41
+ ## Contributing
42
+
43
+ This plugin lives in the [payload-plugins](https://github.com/davincicoding-org/payload-plugins) monorepo.
44
+
45
+ ### Development
46
+
47
+ ```sh
48
+ pnpm install
49
+
50
+ # watch this plugin for changes
51
+ pnpm --filter payload-invitations dev
52
+
53
+ # run the Payload dev app (in a second terminal)
54
+ pnpm --filter sandbox dev
55
+ ```
56
+
57
+ The `sandbox/` directory is a Next.js + Payload app that imports plugins via `workspace:*` — use it to test changes locally.
58
+
59
+ ### Code quality
60
+
61
+ - **Formatting & linting** — handled by [Biome](https://biomejs.dev/), enforced on commit via husky + lint-staged.
62
+ - **Commits** — must follow [Conventional Commits](https://www.conventionalcommits.org/) with a valid scope (e.g. `fix(payload-invitations): ...`).
63
+ - **Changesets** — please include a [changeset](https://github.com/changesets/changesets) in your PR by running `pnpm release`.
64
+
65
+ ### Issues & PRs
66
+
67
+ Bug reports and feature requests are welcome — [open an issue](https://github.com/davincicoding-org/payload-plugins/issues).
68
+
69
+ ## License
70
+
71
+ MIT
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../src/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/exports/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=rsc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rsc.d.ts","sourceRoot":"","sources":["../../src/exports/rsc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=rsc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rsc.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'payload';
2
+ import { InvitationsPluginConfig } from './types';
3
+ export declare const invitationsPlugin: (config: InvitationsPluginConfig) => Plugin;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,iBAAiB,WACnB,uBAAuB,KAAG,MAGlC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ const t = (i) => (n) => n;
2
+ export {
3
+ t as invitationsPlugin
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import type { Plugin } from 'payload';\nimport type { InvitationsPluginConfig } from './types';\n\nexport const invitationsPlugin =\n (config: InvitationsPluginConfig): Plugin =>\n (payloadConfig) => {\n return payloadConfig;\n };\n"],"names":["invitationsPlugin","config","payloadConfig"],"mappings":"AAGO,MAAMA,IACX,CAACC,MACD,CAACC,MACQA;"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=procedures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"procedures.d.ts","sourceRoot":"","sources":["../src/procedures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type InvitationsPluginConfig = {};
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,EAAE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "payload-invitations",
3
+ "version": "0.0.1",
4
+ "description": "Payload CMS plugin that replaces the default user creation flow with a streamlined invitation system.",
5
+ "keywords": [
6
+ "payload"
7
+ ],
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/davincicoding-org/payload-plugins.git",
11
+ "directory": "packages/invitations"
12
+ },
13
+ "license": "MIT",
14
+ "author": "DAVINCI CODING GmbH",
15
+ "type": "module",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "default": "./dist/index.js"
21
+ },
22
+ "./rsc": {
23
+ "types": "./dist/exports/rsc.d.ts",
24
+ "import": "./dist/exports/rsc.js",
25
+ "default": "./dist/exports/rsc.js"
26
+ },
27
+ "./client": {
28
+ "types": "./dist/exports/client.d.ts",
29
+ "import": "./dist/exports/client.js",
30
+ "default": "./dist/exports/client.js"
31
+ },
32
+ "./styles.css": "./dist/styles.css"
33
+ },
34
+ "main": "./dist/index.js",
35
+ "types": "./dist/index.d.ts",
36
+ "files": [
37
+ "dist"
38
+ ],
39
+ "scripts": {
40
+ "prebuild": "pnpm typecheck",
41
+ "build": "plugin-build",
42
+ "clean": "rm -rf dist && rm -rf node_modules",
43
+ "dev": "plugin-build --watch",
44
+ "generate:types": "generate-types",
45
+ "lint": "biome check .",
46
+ "lint:fix": "biome check --write .",
47
+ "test": "vitest run",
48
+ "test:watch": "vitest",
49
+ "typecheck": "tsc --noEmit"
50
+ },
51
+ "dependencies": {},
52
+ "devDependencies": {
53
+ "@payloadcms/ui": "catalog:payload-stack",
54
+ "@repo/common": "workspace:*",
55
+ "@types/node": "^22.5.4",
56
+ "@types/react": "catalog:payload-stack",
57
+ "@types/react-dom": "catalog:payload-stack",
58
+ "next": "catalog:payload-stack",
59
+ "payload": "catalog:payload-stack",
60
+ "react": "catalog:payload-stack",
61
+ "react-dom": "catalog:payload-stack",
62
+ "typescript": "catalog:payload-stack",
63
+ "vite": "catalog:vite",
64
+ "vitest": "^3.1.2"
65
+ },
66
+ "peerDependencies": {
67
+ "@payloadcms/next": ">=3.72.0",
68
+ "@payloadcms/ui": ">=3.72.0",
69
+ "next": ">=15.2.3",
70
+ "payload": ">=3.72.0"
71
+ },
72
+ "engines": {
73
+ "node": "^18.20.2 || >=20.9.0",
74
+ "pnpm": "^9 || ^10"
75
+ },
76
+ "publishConfig": {
77
+ "access": "public"
78
+ }
79
+ }