@adminforth/email-invite 1.0.19 → 1.1.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 +31 -0
- package/dist/index.js +1 -2
- package/index.ts +1 -2
- package/package.json +4 -3
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# AdminForth Email Invite Plugin
|
|
2
|
+
|
|
3
|
+
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /> <img src="https://woodpecker.devforth.io/api/badges/3848/status.svg" alt="Build Status" /> <a href="https://www.npmjs.com/package/@adminforth/email-invite"><img src="https://img.shields.io/npm/dm/@adminforth/email-invite" alt="npm downloads" /></a> <a href="https://www.npmjs.com/package/@adminforth/email-invite"><img src="https://img.shields.io/npm/v/@adminforth/email-invite" alt="npm version" /></a>
|
|
4
|
+
|
|
5
|
+
[](https://tluma.ai/ask-ai/devforth/adminforth)
|
|
6
|
+
|
|
7
|
+
Adds email invitation flows for AdminForth users.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- Send invitation emails to AdminForth users.
|
|
12
|
+
- Support controlled onboarding with invite-based access.
|
|
13
|
+
- Tie invitations into your authentication workflows.
|
|
14
|
+
- Manage user invites from the admin panel.
|
|
15
|
+
|
|
16
|
+
## Documentation
|
|
17
|
+
|
|
18
|
+
Full setup and configuration guide:
|
|
19
|
+
|
|
20
|
+
[AdminForth Email Invite Documentation](https://adminforth.dev/docs/tutorial/Plugins/email-invite/)
|
|
21
|
+
|
|
22
|
+
## About AdminForth
|
|
23
|
+
|
|
24
|
+
AdminForth is an open-source, agent-first admin framework for building robust admin panels and back-office applications faster.
|
|
25
|
+
|
|
26
|
+
## Related links
|
|
27
|
+
|
|
28
|
+
- [AdminForth website](https://adminforth.dev)
|
|
29
|
+
- [npm package](https://www.npmjs.com/package/@adminforth/email-invite)
|
|
30
|
+
- [More AdminForth plugins](https://adminforth.dev/docs/tutorial/ListOfPlugins/)
|
|
31
|
+
- [Built by DevForth](https://devforth.io)
|
package/dist/index.js
CHANGED
|
@@ -244,7 +244,7 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
244
244
|
server.endpoint({
|
|
245
245
|
method: 'POST',
|
|
246
246
|
path: `/plugin/${this.pluginInstanceId}/resend-invite`,
|
|
247
|
-
handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body, adminUser
|
|
247
|
+
handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body, adminUser }) {
|
|
248
248
|
const { recordId } = body;
|
|
249
249
|
try {
|
|
250
250
|
// Get the user record
|
|
@@ -259,7 +259,6 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
259
259
|
record: userRecord,
|
|
260
260
|
adminUser,
|
|
261
261
|
adminforth: this.adminforth,
|
|
262
|
-
extra
|
|
263
262
|
});
|
|
264
263
|
return { ok: true };
|
|
265
264
|
}
|
package/index.ts
CHANGED
|
@@ -304,7 +304,7 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
304
304
|
server.endpoint({
|
|
305
305
|
method: 'POST',
|
|
306
306
|
path: `/plugin/${this.pluginInstanceId}/resend-invite`,
|
|
307
|
-
handler: async ({ body, adminUser
|
|
307
|
+
handler: async ({ body, adminUser }) => {
|
|
308
308
|
const { recordId } = body;
|
|
309
309
|
|
|
310
310
|
try {
|
|
@@ -321,7 +321,6 @@ export default class EmailInvitePlugin extends AdminForthPlugin {
|
|
|
321
321
|
record: userRecord,
|
|
322
322
|
adminUser,
|
|
323
323
|
adminforth: this.adminforth,
|
|
324
|
-
extra
|
|
325
324
|
});
|
|
326
325
|
|
|
327
326
|
return { ok: true };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/email-invite",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"homepage": "https://adminforth.dev/docs/tutorial/Plugins/
|
|
7
|
+
"homepage": "https://adminforth.dev/docs/tutorial/Plugins/email-invite/",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsc && rsync -av --exclude 'node_modules' custom dist/"
|
|
10
10
|
},
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"description": "Email invite plugin for adminforth",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^22.10.7",
|
|
21
|
+
"adminforth": "^2.42.0",
|
|
21
22
|
"semantic-release": "^24.2.1",
|
|
22
23
|
"semantic-release-slack-bot": "^4.0.2",
|
|
23
24
|
"typescript": "^5.7.3"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {
|
|
26
|
-
"adminforth": "^2.
|
|
27
|
+
"adminforth": "^2.42.0"
|
|
27
28
|
},
|
|
28
29
|
"publishConfig": {
|
|
29
30
|
"access": "public"
|