payload-plugin-newsletter 0.1.0 → 0.1.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/ANNOUNCEMENT.md +66 -0
- package/CHANGELOG.md +11 -1
- package/README.md +7 -13
- package/package.json +3 -26
package/ANNOUNCEMENT.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# 🎉 Payload Newsletter Plugin v0.1.0 Released!
|
|
2
|
+
|
|
3
|
+
We're excited to announce the first release of the Payload Newsletter Plugin - a complete newsletter management solution for Payload CMS!
|
|
4
|
+
|
|
5
|
+
## 📦 Installation
|
|
6
|
+
|
|
7
|
+
The plugin is now available on npm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install payload-plugin-newsletter
|
|
11
|
+
# or
|
|
12
|
+
bun add payload-plugin-newsletter
|
|
13
|
+
# or
|
|
14
|
+
yarn add payload-plugin-newsletter
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## ✨ Key Features
|
|
18
|
+
|
|
19
|
+
- **📧 Complete Subscriber Management** - Ready-to-use subscriber collection with all essential fields
|
|
20
|
+
- **🔐 Magic Link Authentication** - Passwordless authentication for subscribers (separate from Payload auth)
|
|
21
|
+
- **📨 Email Service Integration** - Built-in support for Resend and Broadcast
|
|
22
|
+
- **📅 Newsletter Scheduling** - Schedule newsletters from your articles collection
|
|
23
|
+
- **⚛️ React Components** - Pre-built signup forms and preference management UI
|
|
24
|
+
- **🌍 Internationalization** - Multi-language support built-in
|
|
25
|
+
- **📊 Analytics Ready** - UTM tracking and signup metadata collection
|
|
26
|
+
|
|
27
|
+
## 🚀 Quick Start
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { buildConfig } from 'payload/config'
|
|
31
|
+
import { newsletterPlugin } from 'payload-plugin-newsletter'
|
|
32
|
+
|
|
33
|
+
export default buildConfig({
|
|
34
|
+
plugins: [
|
|
35
|
+
newsletterPlugin({
|
|
36
|
+
providers: {
|
|
37
|
+
default: 'resend',
|
|
38
|
+
resend: {
|
|
39
|
+
apiKey: process.env.RESEND_API_KEY,
|
|
40
|
+
fromAddress: 'hello@yoursite.com',
|
|
41
|
+
fromName: 'Your Newsletter',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
}),
|
|
45
|
+
],
|
|
46
|
+
})
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 📚 Resources
|
|
50
|
+
|
|
51
|
+
- **npm**: https://www.npmjs.com/package/payload-plugin-newsletter
|
|
52
|
+
- **GitHub**: https://github.com/aniketpanjwani/payload-plugin-email-newsletter
|
|
53
|
+
- **Documentation**: [README.md](https://github.com/aniketpanjwani/payload-plugin-email-newsletter#readme)
|
|
54
|
+
- **Issues**: https://github.com/aniketpanjwani/payload-plugin-email-newsletter/issues
|
|
55
|
+
|
|
56
|
+
## 🤝 Contributing
|
|
57
|
+
|
|
58
|
+
We welcome contributions! Check out our [FEEDBACK.md](https://github.com/aniketpanjwani/payload-plugin-email-newsletter/blob/main/FEEDBACK.md) for areas where we'd love community input.
|
|
59
|
+
|
|
60
|
+
## 🙏 Acknowledgments
|
|
61
|
+
|
|
62
|
+
Special thanks to the Payload CMS team for creating such an extensible platform!
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
Made with ❤️ by [Aniket Panjwani](https://github.com/aniketpanjwani)
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.1] - 2025-06-15
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Updated README to reflect npm availability
|
|
12
|
+
- Fixed package.json warnings for npm publishing
|
|
13
|
+
|
|
8
14
|
## [0.1.0] - 2025-06-15
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -32,4 +38,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
32
38
|
- Domain restriction options
|
|
33
39
|
- Input validation and sanitization
|
|
34
40
|
|
|
35
|
-
[0.1.0]: https://github.com/aniketpanjwani/payload-plugin-email-newsletter/releases/tag/v0.1.0
|
|
41
|
+
[0.1.0]: https://github.com/aniketpanjwani/payload-plugin-email-newsletter/releases/tag/v0.1.0
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
**npm**: https://www.npmjs.com/package/payload-plugin-newsletter
|
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Payload Newsletter Plugin
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/payload-plugin-newsletter)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
3
6
|
A complete newsletter management plugin for Payload CMS that provides subscriber management, magic link authentication, and email service integration out of the box.
|
|
4
7
|
|
|
5
8
|
## Features
|
|
@@ -17,23 +20,14 @@ A complete newsletter management plugin for Payload CMS that provides subscriber
|
|
|
17
20
|
|
|
18
21
|
### 1. Install the plugin
|
|
19
22
|
|
|
20
|
-
**Note: This plugin is not yet published to npm. Install directly from GitHub:**
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
bun add github:aniketpanjwani/payload-plugin-email-newsletter
|
|
24
|
-
# or
|
|
25
|
-
npm install github:aniketpanjwani/payload-plugin-email-newsletter
|
|
26
|
-
# or
|
|
27
|
-
yarn add github:aniketpanjwani/payload-plugin-email-newsletter
|
|
28
|
-
# or
|
|
29
|
-
pnpm add github:aniketpanjwani/payload-plugin-email-newsletter
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Once published to npm, you'll be able to install with:
|
|
33
23
|
```bash
|
|
34
24
|
bun add payload-plugin-newsletter
|
|
35
25
|
# or
|
|
36
26
|
npm install payload-plugin-newsletter
|
|
27
|
+
# or
|
|
28
|
+
yarn add payload-plugin-newsletter
|
|
29
|
+
# or
|
|
30
|
+
pnpm add payload-plugin-newsletter
|
|
37
31
|
```
|
|
38
32
|
|
|
39
33
|
### 2. Add to your Payload config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payload-plugin-newsletter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Complete newsletter management plugin for Payload CMS with subscriber management, magic link authentication, and email service integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -43,30 +43,7 @@
|
|
|
43
43
|
"*.md"
|
|
44
44
|
],
|
|
45
45
|
"publishConfig": {
|
|
46
|
-
"
|
|
47
|
-
"types": "./dist/index.d.ts",
|
|
48
|
-
"exports": {
|
|
49
|
-
".": {
|
|
50
|
-
"import": "./dist/index.js",
|
|
51
|
-
"types": "./dist/index.d.ts",
|
|
52
|
-
"default": "./dist/index.js"
|
|
53
|
-
},
|
|
54
|
-
"./client": {
|
|
55
|
-
"import": "./dist/exports/client.js",
|
|
56
|
-
"types": "./dist/exports/client.d.ts",
|
|
57
|
-
"default": "./dist/exports/client.js"
|
|
58
|
-
},
|
|
59
|
-
"./types": {
|
|
60
|
-
"import": "./dist/exports/types.js",
|
|
61
|
-
"types": "./dist/exports/types.d.ts",
|
|
62
|
-
"default": "./dist/exports/types.js"
|
|
63
|
-
},
|
|
64
|
-
"./components": {
|
|
65
|
-
"import": "./dist/exports/components.js",
|
|
66
|
-
"types": "./dist/exports/components.d.ts",
|
|
67
|
-
"default": "./dist/exports/components.js"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
46
|
+
"access": "public"
|
|
70
47
|
},
|
|
71
48
|
"keywords": [
|
|
72
49
|
"payload",
|
|
@@ -85,7 +62,7 @@
|
|
|
85
62
|
"license": "MIT",
|
|
86
63
|
"repository": {
|
|
87
64
|
"type": "git",
|
|
88
|
-
"url": "https://github.com/aniketpanjwani/payload-plugin-email-newsletter"
|
|
65
|
+
"url": "git+https://github.com/aniketpanjwani/payload-plugin-email-newsletter.git"
|
|
89
66
|
},
|
|
90
67
|
"bugs": {
|
|
91
68
|
"url": "https://github.com/aniketpanjwani/payload-plugin-email-newsletter/issues"
|