@prenta/plugin-email 0.4.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/CHANGELOG.md +254 -0
- package/LICENSE +21 -0
- package/README.md +29 -0
- package/dist/__tests__/index.test.d.ts +2 -0
- package/dist/__tests__/index.test.d.ts.map +1 -0
- package/dist/__tests__/index.test.js +306 -0
- package/dist/__tests__/index.test.js.map +1 -0
- package/dist/__tests__/provider-factory.test.d.ts +2 -0
- package/dist/__tests__/provider-factory.test.d.ts.map +1 -0
- package/dist/__tests__/provider-factory.test.js +64 -0
- package/dist/__tests__/provider-factory.test.js.map +1 -0
- package/dist/__tests__/providers.test.d.ts +2 -0
- package/dist/__tests__/providers.test.d.ts.map +1 -0
- package/dist/__tests__/providers.test.js +186 -0
- package/dist/__tests__/providers.test.js.map +1 -0
- package/dist/__tests__/smtp-missing-nodemailer.test.d.ts +2 -0
- package/dist/__tests__/smtp-missing-nodemailer.test.d.ts.map +1 -0
- package/dist/__tests__/smtp-missing-nodemailer.test.js +35 -0
- package/dist/__tests__/smtp-missing-nodemailer.test.js.map +1 -0
- package/dist/__tests__/smtp.test.d.ts +2 -0
- package/dist/__tests__/smtp.test.d.ts.map +1 -0
- package/dist/__tests__/smtp.test.js +70 -0
- package/dist/__tests__/smtp.test.js.map +1 -0
- package/dist/__tests__/templates.test.d.ts +2 -0
- package/dist/__tests__/templates.test.d.ts.map +1 -0
- package/dist/__tests__/templates.test.js +55 -0
- package/dist/__tests__/templates.test.js.map +1 -0
- package/dist/collections.d.ts +3 -0
- package/dist/collections.d.ts.map +1 -0
- package/dist/collections.js +2 -0
- package/dist/collections.js.map +1 -0
- package/dist/fields.d.ts +3 -0
- package/dist/fields.d.ts.map +1 -0
- package/dist/fields.js +2 -0
- package/dist/fields.js.map +1 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +2 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +65 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +181 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/resend.d.ts +21 -0
- package/dist/providers/resend.d.ts.map +1 -0
- package/dist/providers/resend.js +31 -0
- package/dist/providers/resend.js.map +1 -0
- package/dist/providers/ses.d.ts +7 -0
- package/dist/providers/ses.d.ts.map +1 -0
- package/dist/providers/ses.js +44 -0
- package/dist/providers/ses.js.map +1 -0
- package/dist/providers/smtp.d.ts +38 -0
- package/dist/providers/smtp.d.ts.map +1 -0
- package/dist/providers/smtp.js +60 -0
- package/dist/providers/smtp.js.map +1 -0
- package/dist/providers/smtpcom.d.ts +14 -0
- package/dist/providers/smtpcom.d.ts.map +1 -0
- package/dist/providers/smtpcom.js +65 -0
- package/dist/providers/smtpcom.js.map +1 -0
- package/dist/templates/index.d.ts +22 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js +101 -0
- package/dist/templates/index.js.map +1 -0
- package/package.json +49 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
# @actuate-media/plugin-email
|
|
2
|
+
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5eea995: Product rename: ActuateCMS is now **Prenta**. Every package moves from the
|
|
8
|
+
`@actuate-media/*` scope to `@prenta/*` with simplified names (`@prenta/core`,
|
|
9
|
+
`@prenta/admin`, `create-prenta`), and version numbers continue from where the
|
|
10
|
+
old scope left off.
|
|
11
|
+
|
|
12
|
+
This is a clean break — no backwards-compat aliases:
|
|
13
|
+
- **npm packages**: `@actuate-media/cms-core` → `@prenta/core`,
|
|
14
|
+
`@actuate-media/cms-admin` → `@prenta/admin`, all other packages keep their
|
|
15
|
+
suffix under `@prenta/*`. `create-actuate-cms` → `create-prenta`
|
|
16
|
+
(`npm create prenta`), `create-actuate-astro` → `create-prenta-astro`.
|
|
17
|
+
CLI bins: `actuate`/`actuate-cms` → `prenta`/`prenta-cms`; `actuate-mcp` →
|
|
18
|
+
`prenta-mcp`.
|
|
19
|
+
- **Database**: migration `0012_rename_to_prenta` renames all 36 `actuate_*`
|
|
20
|
+
tables to `prenta_*` in place (plus prefixed constraints, indexes, and
|
|
21
|
+
sequences). Run `prisma migrate deploy` when upgrading.
|
|
22
|
+
- **Runtime identifiers**: `getActuateConfig` → `getPrentaConfig`,
|
|
23
|
+
`handleActuateAPI` → `handlePrentaAPI`, `ActuateClient` → `PrentaClient`,
|
|
24
|
+
`ActuateDB` → `PrentaDB`, config file `actuate.config.ts` →
|
|
25
|
+
`prenta.config.ts`, CSS scopes `.actuate-admin`/`.actuate-canvas` →
|
|
26
|
+
`.prenta-admin`/`.prenta-canvas`, preview protocol `actuate-preview:*` →
|
|
27
|
+
`prenta-preview:*`, webhook headers `X-Actuate-*` → `X-Prenta-*`, session
|
|
28
|
+
cookie `actuate_session` → `prenta_session`, env vars `ACTUATE_*` →
|
|
29
|
+
`PRENTA_*`, purge route `/api/actuate/purge` → `/api/prenta/purge`.
|
|
30
|
+
- **Sessions and webhooks**: all sessions reset on upgrade (cookie + JWT issuer
|
|
31
|
+
changed); webhook consumers must re-verify signatures against the new
|
|
32
|
+
`X-Prenta-*` headers.
|
|
33
|
+
|
|
34
|
+
The old `@actuate-media/*` packages are deprecated on npm and will receive no
|
|
35
|
+
further releases.
|
|
36
|
+
|
|
37
|
+
## 0.3.3
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- c231dd0: Add `definePlugin` and migrate all 10 plugins onto the canonical `PluginDefinition` contract.
|
|
42
|
+
|
|
43
|
+
cms-core already exported `PluginDefinition`, but every plugin hand-rolled a
|
|
44
|
+
local `ActuatePlugin` interface — a lossy subset that dropped `version`/`init`
|
|
45
|
+
and, in blocks/email/ai, widened hook payloads to `unknown[]`/`event: string`.
|
|
46
|
+
That's copy-paste drift with no shared source of truth.
|
|
47
|
+
|
|
48
|
+
`cms-core` now exports `definePlugin(plugin: PluginDefinition)` (an identity
|
|
49
|
+
helper like `defineConfig`), and each plugin imports the canonical type instead
|
|
50
|
+
of its own: the local `ActuatePlugin` interfaces are deleted, factory return
|
|
51
|
+
types are `PluginDefinition`, and the widened `hooks.ts` types are retyped as
|
|
52
|
+
`PluginHook[]`. Type-only change — no runtime behavior, plugin `name`, or config
|
|
53
|
+
options changed. Net −69 lines.
|
|
54
|
+
|
|
55
|
+
- 325694f: Import `definePlugin` from the lightweight `@actuate-media/cms-core/config`
|
|
56
|
+
entry instead of the barrel.
|
|
57
|
+
|
|
58
|
+
The plugin-definition migration imported the `definePlugin` **value** from
|
|
59
|
+
`@actuate-media/cms-core`, which pulls the entire cms-core barrel (graphql,
|
|
60
|
+
sharp, sentry, codegen) into every plugin's runtime — bundle bloat for
|
|
61
|
+
consumers and, under parallel test load, a timeout. The `/config` subpath exists
|
|
62
|
+
precisely to avoid the barrel. Types stay as erased `import type`, so nothing
|
|
63
|
+
heavy is loaded. No API or behavior change.
|
|
64
|
+
|
|
65
|
+
## 0.3.2
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- 041a228: Add the MIT `license` field to every published package (previously missing) and correct `repository.url` to `github.com/actuate-media/actuatecms` (13 packages carried the wrong org).
|
|
70
|
+
|
|
71
|
+
## 0.3.1
|
|
72
|
+
|
|
73
|
+
### Patch Changes
|
|
74
|
+
|
|
75
|
+
- f8349c5: Bump nodemailer to ^9.0.3 (minimum peer >=9.0.1) to address SSRF/file-read advisories.
|
|
76
|
+
|
|
77
|
+
## 0.3.0
|
|
78
|
+
|
|
79
|
+
### Minor Changes
|
|
80
|
+
|
|
81
|
+
- d6b21e7: Add Settings > Email: configure the transactional email provider from the admin UI.
|
|
82
|
+
- **cms-admin**: new Email tab in Settings with a provider picker (Resend, SMTP.com, Amazon SES, generic SMTP), per-provider credential fields, masked stored secrets (last-4 only, write-only inputs), a "Send test email" button, and notices for environment/platform-managed configuration.
|
|
83
|
+
- **cms-core**: new `__email_config__` store with API keys and SMTP passwords encrypted at rest (`CMS_ENCRYPTION_KEY`), `GET/PUT /email/settings` + `POST /email/settings/test` admin routes (test sends only to the signed-in admin's own address, rate-limited), and a DB-aware `resolveEmailSenderAsync()` used by invites, password resets, and form notifications. Resolution order: platform adapter → admin-configured settings → environment variables.
|
|
84
|
+
- **plugin-email**: registers a provider factory with cms-core so admin-configured settings build real Resend/SMTP.com/SES/SMTP senders without env vars.
|
|
85
|
+
|
|
86
|
+
## 0.2.2
|
|
87
|
+
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
- 854152d: Developer experience improvements from external-consumer feedback:
|
|
91
|
+
- Every published package now ships its `CHANGELOG.md` in the npm tarball, and packages that were missing a `README.md` (cli, cms-admin, cms-core, import, platform-vercel, all plugins, sections-react) now have one — so release notes and usage docs are visible on npmjs.com and in `node_modules`.
|
|
92
|
+
- New client-safe form validation entry point: `@actuate-media/cms-core/forms/client` exports `validateFormFieldClient()`, `validateFormValuesClient()`, visibility/conditional helpers, and the exact `FORM_EMAIL_RE` / `FORM_PHONE_RE` regexes the server enforces — zero Node dependencies, so public-site forms can mirror server rules without reimplementing them. The server validator now imports the same primitives, so client and server can never drift.
|
|
93
|
+
|
|
94
|
+
## 0.2.1
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- f043e18: Fix day-one auth dead-ends and wire up transactional email + user invites.
|
|
99
|
+
|
|
100
|
+
**@actuate-media/cms-core**
|
|
101
|
+
- Add a transactional email sender registry (`setEmailSender`, `getRegisteredEmailSender`, `resolveEmailSender`). Password-reset and form-notification email now resolve a sender via this registry, so apps that configure email purely through `emailPlugin()` actually send (previously only `config.platform.email` was consulted, so reset/notification mail silently never sent).
|
|
102
|
+
- Password reset links are now built from the configured admin path instead of a hardcoded `/admin`, so resets work on apps mounted elsewhere.
|
|
103
|
+
- Add an admin-only `POST /users/invite` endpoint plus `createUserInvite` / `normalizeInviteRole` / `VALID_INVITE_ROLES`. Invites provision the user with an unusable password and a single-use, 7-day token, then email a "set your password" link (reusing the existing `/reset-password` page). When no email sender is configured the response returns the link so an admin can share it manually. Rate-limited per admin.
|
|
104
|
+
|
|
105
|
+
**@actuate-media/cms-admin**
|
|
106
|
+
- `AdminRoot` gains an `onLogout` prop. The account-menu "Logout" item now revokes the server session (`POST /auth/logout`), clears local session state, and returns to the login screen — previously it navigated to a non-existent `/logout` route (404) and left the session valid.
|
|
107
|
+
- The "Invite User" dialog is now a real flow backed by `POST /users/invite` (loading state, error handling, valid roles, optional name) instead of a fake success toast.
|
|
108
|
+
|
|
109
|
+
**create-actuate-cms**
|
|
110
|
+
- The scaffolded admin page now wires `onVerifyTotp` (so MFA users can complete the second-factor step) and `onLogout`, matching the dev app.
|
|
111
|
+
|
|
112
|
+
**@actuate-media/plugin-email**
|
|
113
|
+
- `emailPlugin()` now registers its resolved provider with cms-core's email sender registry, so configuring email via the plugin is sufficient for password-reset, invite, and form-notification email.
|
|
114
|
+
|
|
115
|
+
- 90e80b6: Fix `plugin-email` test timeouts in CI by importing the email-sender registry from a lightweight subpath.
|
|
116
|
+
|
|
117
|
+
`emailPlugin()` previously imported `setEmailSender` from the full `@actuate-media/cms-core` barrel (handlers, middleware, the whole graph). Because the plugin's tests re-import the module on every `vi.resetModules()`, transforming that barrel repeatedly blew past the 5s test timeout on cold CI runners.
|
|
118
|
+
- `cms-core`: adds a new `@actuate-media/cms-core/email-sender` subpath export exposing `setEmailSender` / `getRegisteredEmailSender` / `resolveEmailSender` (the registry only depends on the config runtime).
|
|
119
|
+
- `plugin-email`: imports `setEmailSender` from that subpath instead of the barrel. No runtime barrel import remains.
|
|
120
|
+
|
|
121
|
+
## 0.2.0
|
|
122
|
+
|
|
123
|
+
### Minor Changes
|
|
124
|
+
|
|
125
|
+
- fa54768: Accept SMTP.com's `SMTP_KEY` / `SMTP_CHANNEL` / `SMTP_EMAIL` env vars as
|
|
126
|
+
aliases for `SMTPCOM_API_KEY` / `SMTPCOM_CHANNEL` / `EMAIL_FROM`.
|
|
127
|
+
|
|
128
|
+
`resolveEmailConfigFromEnv()` now infers the `smtpcom` provider from either
|
|
129
|
+
naming scheme (the generic relay's `SMTP_HOST` still takes precedence when
|
|
130
|
+
present), and the `/health` env diagnostic recognises the same keys so a
|
|
131
|
+
correctly-configured SMTP.com deployment no longer warns about a missing
|
|
132
|
+
`RESEND_API_KEY`.
|
|
133
|
+
|
|
134
|
+
## 0.1.0
|
|
135
|
+
|
|
136
|
+
### Minor Changes
|
|
137
|
+
|
|
138
|
+
- 6f05e8d: Add a generic SMTP email provider (via the optional peer dependency `nodemailer`) so any SMTP server — Gmail, Office 365, SendGrid/Mailgun/Postmark SMTP, or a self-hosted relay — can be used alongside the existing Resend, SES, and SMTP.com HTTP providers.
|
|
139
|
+
- New `createSmtpProvider({ host, port?, secure?, auth?, from })` export and `provider: 'smtp'` config (`host`/`port`/`secure`/`auth`).
|
|
140
|
+
- New `resolveEmailConfigFromEnv()` helper; `emailPlugin()` now auto-resolves a provider from env vars (`EMAIL_PROVIDER`, `EMAIL_FROM`, `RESEND_API_KEY`, `SES_REGION`/`AWS_REGION`, `SMTPCOM_API_KEY`/`SMTPCOM_CHANNEL`, `SMTP_HOST`/`SMTP_PORT`/`SMTP_SECURE`/`SMTP_USER`/`SMTP_PASS`) when called with no config.
|
|
141
|
+
|
|
142
|
+
`nodemailer` is an optional peer dependency and is only loaded when the `smtp` provider is used.
|
|
143
|
+
|
|
144
|
+
## 0.0.11
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- b5de8dd: Fix ESM module resolution and dependency duplication issues reported during consumer integration.
|
|
149
|
+
- Add "default" export condition to all platform and plugin packages so they resolve correctly from require() contexts (fixes ERR_PACKAGE_PATH_NOT_EXPORTED in next.config.ts and serverless functions).
|
|
150
|
+
- Move @actuate-media/cms-core from direct dependencies to peerDependencies across all packages to prevent duplicate installations when consumer version ranges don't exactly match the pinned version.
|
|
151
|
+
- Add "prepack" lifecycle script to create-actuate-cms to guarantee dist/ is built before npm publishes the package (fixes empty dist/ in v0.4.0).
|
|
152
|
+
|
|
153
|
+
## 0.0.10
|
|
154
|
+
|
|
155
|
+
### Patch Changes
|
|
156
|
+
|
|
157
|
+
- Updated dependencies [54c7a3b]
|
|
158
|
+
- @actuate-media/cms-core@0.6.0
|
|
159
|
+
|
|
160
|
+
## 0.0.9
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- Updated dependencies [c08cf8b]
|
|
165
|
+
- Updated dependencies [80aa939]
|
|
166
|
+
- @actuate-media/cms-core@0.5.0
|
|
167
|
+
|
|
168
|
+
## 0.0.8
|
|
169
|
+
|
|
170
|
+
### Patch Changes
|
|
171
|
+
|
|
172
|
+
- Updated dependencies [f2cf7d7]
|
|
173
|
+
- @actuate-media/cms-core@0.4.0
|
|
174
|
+
|
|
175
|
+
## 0.0.7
|
|
176
|
+
|
|
177
|
+
### Patch Changes
|
|
178
|
+
|
|
179
|
+
- Updated dependencies [0621037]
|
|
180
|
+
- @actuate-media/cms-core@0.3.1
|
|
181
|
+
|
|
182
|
+
## 0.0.6
|
|
183
|
+
|
|
184
|
+
### Patch Changes
|
|
185
|
+
|
|
186
|
+
- Updated dependencies [4e3a5eb]
|
|
187
|
+
- @actuate-media/cms-core@0.3.0
|
|
188
|
+
|
|
189
|
+
## 0.0.5
|
|
190
|
+
|
|
191
|
+
### Patch Changes
|
|
192
|
+
|
|
193
|
+
- Updated dependencies
|
|
194
|
+
- @actuate-media/cms-core@0.2.3
|
|
195
|
+
|
|
196
|
+
## 0.0.4
|
|
197
|
+
|
|
198
|
+
### Patch Changes
|
|
199
|
+
|
|
200
|
+
- Updated dependencies
|
|
201
|
+
- @actuate-media/cms-core@0.2.2
|
|
202
|
+
|
|
203
|
+
## 0.0.3
|
|
204
|
+
|
|
205
|
+
### Patch Changes
|
|
206
|
+
|
|
207
|
+
- Updated dependencies
|
|
208
|
+
- @actuate-media/cms-core@0.2.1
|
|
209
|
+
|
|
210
|
+
## 0.0.2
|
|
211
|
+
|
|
212
|
+
### Patch Changes
|
|
213
|
+
|
|
214
|
+
- 682dac7: Fix consumer integration issues discovered during MaidPro.co deployment
|
|
215
|
+
- **cms-core**: API handlers gracefully degrade when CMS Prisma models are missing (returns 501 instead of 500)
|
|
216
|
+
- **cms-core**: Accept CMS secret via `actuate.config.ts` (`secret` field) in addition to `CMS_SECRET` env var
|
|
217
|
+
- **cms-core**: `withActuateCMS` now accepts `Partial<ActuateCMSConfig>` (no more forced type casts)
|
|
218
|
+
- **cms-core**: `withActuateCMS` auto-injects all `@actuate-media/*` packages into `transpilePackages`
|
|
219
|
+
- **cms-core**: Expanded Prisma schema fragment with all CMS models for consumer merge
|
|
220
|
+
- **cms-admin**: Removed duplicate Tailwind import from admin styles (consumers already load Tailwind)
|
|
221
|
+
- **platform-vercel**: Email adapter accepts both `defaultFrom` and `from` for sender address
|
|
222
|
+
- **plugin-email**: Email plugin accepts both `defaultFrom` and `from` for consistency
|
|
223
|
+
|
|
224
|
+
- 3fd38a2: Fix all 13 integration issues discovered during MaidPro.co deployment
|
|
225
|
+
|
|
226
|
+
**cms-core:**
|
|
227
|
+
- Add .js extensions to all ESM relative imports (58 files)
|
|
228
|
+
- Replace workspace:\* with versioned deps in all packages
|
|
229
|
+
- Add sideEffects:false for proper tree-shaking
|
|
230
|
+
- Subpath exports (/config, /api, /middleware, /next) avoid barrel side effects
|
|
231
|
+
- Stats/search routes use safeCount/safeFindMany for missing Prisma models
|
|
232
|
+
- Ship prisma/cms-schema.prisma with all required CMS models
|
|
233
|
+
- Accept both CMS_SECRET and CMS_SESSION_SECRET with clear error messages
|
|
234
|
+
- Fix hardcoded /admin paths in OAuth flow (now uses getAdminPath())
|
|
235
|
+
- Loosen withActuateCMS and createCMSMiddleware parameter types
|
|
236
|
+
- Auto-inject transpilePackages and serverExternalPackages in withActuateCMS
|
|
237
|
+
- Unify PluginDefinition with ActuatePlugin interface
|
|
238
|
+
|
|
239
|
+
**cms-admin:**
|
|
240
|
+
- Scope all 40+ CSS theme variables to .actuate-admin instead of :root
|
|
241
|
+
- ThemeProvider applies dark class to .actuate-admin, not document.documentElement
|
|
242
|
+
- Scaffold uses (admin)/(site) route groups for full CSS/script isolation
|
|
243
|
+
- Sidebar branding supports custom logo via config.admin.branding
|
|
244
|
+
|
|
245
|
+
**platform-vercel:**
|
|
246
|
+
- Email adapter accepts both `from` and `defaultFrom`
|
|
247
|
+
|
|
248
|
+
**All plugin/platform packages:**
|
|
249
|
+
- Fix ESM .js extensions in compiled output
|
|
250
|
+
- Replace workspace:\* with ^0.1.0 for publishable deps
|
|
251
|
+
|
|
252
|
+
- Updated dependencies [682dac7]
|
|
253
|
+
- Updated dependencies [3fd38a2]
|
|
254
|
+
- @actuate-media/cms-core@0.2.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Actuate Media
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @prenta/plugin-email
|
|
2
|
+
|
|
3
|
+
Transactional email for [Prenta CMS](https://github.com/actuate-media/prenta)
|
|
4
|
+
— provider resolution (Resend, SMTP) and send helpers used by forms
|
|
5
|
+
notifications and auth flows.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @prenta/plugin-email
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { emailPlugin } from '@prenta/plugin-email'
|
|
15
|
+
|
|
16
|
+
export default defineConfig({
|
|
17
|
+
plugins: [emailPlugin()],
|
|
18
|
+
// ...
|
|
19
|
+
})
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Release notes
|
|
23
|
+
|
|
24
|
+
See [CHANGELOG.md](./CHANGELOG.md) (shipped with the package) or the
|
|
25
|
+
[GitHub releases](https://github.com/actuate-media/prenta/releases).
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
|
2
|
+
describe('plugin-email', () => {
|
|
3
|
+
beforeEach(() => {
|
|
4
|
+
vi.resetModules();
|
|
5
|
+
});
|
|
6
|
+
describe('structure', () => {
|
|
7
|
+
it('returns name plugin-email', async () => {
|
|
8
|
+
const { emailPlugin } = await import('../index.js');
|
|
9
|
+
expect(emailPlugin().name).toBe('plugin-email');
|
|
10
|
+
});
|
|
11
|
+
it('exposes fields and collections', async () => {
|
|
12
|
+
const { emailPlugin } = await import('../index.js');
|
|
13
|
+
const plugin = emailPlugin();
|
|
14
|
+
expect(plugin.fields).toBeDefined();
|
|
15
|
+
expect(typeof plugin.fields).toBe('object');
|
|
16
|
+
expect(plugin.collections).toBeDefined();
|
|
17
|
+
expect(typeof plugin.collections).toBe('object');
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
const EMAIL_ENV_KEYS = [
|
|
21
|
+
'EMAIL_PROVIDER',
|
|
22
|
+
'EMAIL_FROM',
|
|
23
|
+
'RESEND_API_KEY',
|
|
24
|
+
'SMTP_HOST',
|
|
25
|
+
'SMTP_PORT',
|
|
26
|
+
'SMTP_SECURE',
|
|
27
|
+
'SMTP_USER',
|
|
28
|
+
'SMTP_PASS',
|
|
29
|
+
'SES_REGION',
|
|
30
|
+
'AWS_REGION',
|
|
31
|
+
'SMTPCOM_API_KEY',
|
|
32
|
+
'SMTPCOM_CHANNEL',
|
|
33
|
+
'SMTP_KEY',
|
|
34
|
+
'SMTP_CHANNEL',
|
|
35
|
+
'SMTP_EMAIL',
|
|
36
|
+
];
|
|
37
|
+
describe('configuration', () => {
|
|
38
|
+
beforeEach(() => {
|
|
39
|
+
// Clear inherited env so env-var resolution is deterministic.
|
|
40
|
+
for (const key of EMAIL_ENV_KEYS)
|
|
41
|
+
vi.stubEnv(key, '');
|
|
42
|
+
});
|
|
43
|
+
it('leaves getEmailProvider null when no provider is configured', async () => {
|
|
44
|
+
const { emailPlugin, getEmailProvider } = await import('../index.js');
|
|
45
|
+
emailPlugin();
|
|
46
|
+
expect(getEmailProvider()).toBeNull();
|
|
47
|
+
vi.unstubAllEnvs();
|
|
48
|
+
});
|
|
49
|
+
it('registers a provider when resend is configured with an apiKey', async () => {
|
|
50
|
+
const { emailPlugin, getEmailProvider } = await import('../index.js');
|
|
51
|
+
emailPlugin({ provider: 'resend', apiKey: 'test' });
|
|
52
|
+
expect(getEmailProvider()).not.toBeNull();
|
|
53
|
+
vi.unstubAllEnvs();
|
|
54
|
+
});
|
|
55
|
+
it('registers a generic SMTP provider from explicit config', async () => {
|
|
56
|
+
const { emailPlugin, getEmailProvider } = await import('../index.js');
|
|
57
|
+
emailPlugin({
|
|
58
|
+
provider: 'smtp',
|
|
59
|
+
host: 'smtp.example.com',
|
|
60
|
+
auth: { user: 'u', pass: 'p' },
|
|
61
|
+
from: 'noreply@example.com',
|
|
62
|
+
});
|
|
63
|
+
expect(getEmailProvider()).not.toBeNull();
|
|
64
|
+
vi.unstubAllEnvs();
|
|
65
|
+
});
|
|
66
|
+
it('auto-resolves an SMTP provider from environment variables', async () => {
|
|
67
|
+
vi.stubEnv('EMAIL_PROVIDER', 'smtp');
|
|
68
|
+
vi.stubEnv('SMTP_HOST', 'smtp.example.com');
|
|
69
|
+
vi.stubEnv('SMTP_USER', 'u');
|
|
70
|
+
vi.stubEnv('SMTP_PASS', 'p');
|
|
71
|
+
const { emailPlugin, getEmailProvider } = await import('../index.js');
|
|
72
|
+
emailPlugin();
|
|
73
|
+
expect(getEmailProvider()).not.toBeNull();
|
|
74
|
+
vi.unstubAllEnvs();
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
describe('resolveEmailConfigFromEnv', () => {
|
|
78
|
+
it('returns undefined when nothing is configured', async () => {
|
|
79
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
80
|
+
expect(resolveEmailConfigFromEnv({})).toBeUndefined();
|
|
81
|
+
});
|
|
82
|
+
it('builds an SMTP config from EMAIL_PROVIDER=smtp + SMTP_* vars', async () => {
|
|
83
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
84
|
+
const cfg = resolveEmailConfigFromEnv({
|
|
85
|
+
EMAIL_PROVIDER: 'smtp',
|
|
86
|
+
SMTP_HOST: 'smtp.example.com',
|
|
87
|
+
SMTP_PORT: '465',
|
|
88
|
+
SMTP_SECURE: 'true',
|
|
89
|
+
SMTP_USER: 'u',
|
|
90
|
+
SMTP_PASS: 'p',
|
|
91
|
+
EMAIL_FROM: 'noreply@example.com',
|
|
92
|
+
});
|
|
93
|
+
expect(cfg).toEqual({
|
|
94
|
+
provider: 'smtp',
|
|
95
|
+
host: 'smtp.example.com',
|
|
96
|
+
port: 465,
|
|
97
|
+
secure: true,
|
|
98
|
+
auth: { user: 'u', pass: 'p' },
|
|
99
|
+
from: 'noreply@example.com',
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
it('infers smtp from SMTP_HOST when EMAIL_PROVIDER is unset', async () => {
|
|
103
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
104
|
+
const cfg = resolveEmailConfigFromEnv({ SMTP_HOST: 'smtp.example.com' });
|
|
105
|
+
expect(cfg?.provider).toBe('smtp');
|
|
106
|
+
expect(cfg?.secure).toBeUndefined();
|
|
107
|
+
expect(cfg?.auth).toBeUndefined();
|
|
108
|
+
});
|
|
109
|
+
it('infers resend from RESEND_API_KEY when EMAIL_PROVIDER is unset', async () => {
|
|
110
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
111
|
+
const cfg = resolveEmailConfigFromEnv({ RESEND_API_KEY: 're_abc' });
|
|
112
|
+
expect(cfg).toEqual({ provider: 'resend', apiKey: 're_abc', from: undefined });
|
|
113
|
+
});
|
|
114
|
+
it('returns undefined for EMAIL_PROVIDER=smtp without SMTP_HOST', async () => {
|
|
115
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
116
|
+
expect(resolveEmailConfigFromEnv({ EMAIL_PROVIDER: 'smtp' })).toBeUndefined();
|
|
117
|
+
});
|
|
118
|
+
it('builds an smtpcom config from canonical SMTPCOM_* vars', async () => {
|
|
119
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
120
|
+
const cfg = resolveEmailConfigFromEnv({
|
|
121
|
+
EMAIL_PROVIDER: 'smtpcom',
|
|
122
|
+
SMTPCOM_API_KEY: 'k_abc',
|
|
123
|
+
SMTPCOM_CHANNEL: 'my-channel',
|
|
124
|
+
EMAIL_FROM: 'noreply@example.com',
|
|
125
|
+
});
|
|
126
|
+
expect(cfg).toEqual({
|
|
127
|
+
provider: 'smtpcom',
|
|
128
|
+
apiKey: 'k_abc',
|
|
129
|
+
channel: 'my-channel',
|
|
130
|
+
from: 'noreply@example.com',
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
it('infers smtpcom from the SMTP_KEY / SMTP_CHANNEL / SMTP_EMAIL aliases', async () => {
|
|
134
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
135
|
+
const cfg = resolveEmailConfigFromEnv({
|
|
136
|
+
SMTP_KEY: 'k_abc',
|
|
137
|
+
SMTP_CHANNEL: 'my-channel',
|
|
138
|
+
SMTP_EMAIL: 'noreply@example.com',
|
|
139
|
+
});
|
|
140
|
+
expect(cfg).toEqual({
|
|
141
|
+
provider: 'smtpcom',
|
|
142
|
+
apiKey: 'k_abc',
|
|
143
|
+
channel: 'my-channel',
|
|
144
|
+
from: 'noreply@example.com',
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
it('prefers a generic SMTP relay over the smtpcom aliases when SMTP_HOST is set', async () => {
|
|
148
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
149
|
+
const cfg = resolveEmailConfigFromEnv({
|
|
150
|
+
SMTP_HOST: 'smtp.example.com',
|
|
151
|
+
SMTP_KEY: 'k_abc',
|
|
152
|
+
});
|
|
153
|
+
expect(cfg?.provider).toBe('smtp');
|
|
154
|
+
});
|
|
155
|
+
it('honours an explicit EMAIL_PROVIDER=smtpcom with the SMTP_KEY alias', async () => {
|
|
156
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
157
|
+
const cfg = resolveEmailConfigFromEnv({
|
|
158
|
+
EMAIL_PROVIDER: 'smtpcom',
|
|
159
|
+
SMTP_KEY: 'k_abc',
|
|
160
|
+
SMTP_EMAIL: 'noreply@example.com',
|
|
161
|
+
});
|
|
162
|
+
expect(cfg).toEqual({
|
|
163
|
+
provider: 'smtpcom',
|
|
164
|
+
apiKey: 'k_abc',
|
|
165
|
+
channel: undefined,
|
|
166
|
+
from: 'noreply@example.com',
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
// --- SES branch (region resolution + guard) ---
|
|
170
|
+
it('resolves the ses region from SES_REGION', async () => {
|
|
171
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
172
|
+
expect(resolveEmailConfigFromEnv({
|
|
173
|
+
EMAIL_PROVIDER: 'ses',
|
|
174
|
+
SES_REGION: 'us-east-1',
|
|
175
|
+
EMAIL_FROM: 'a@b.co',
|
|
176
|
+
})).toEqual({ provider: 'ses', region: 'us-east-1', from: 'a@b.co' });
|
|
177
|
+
});
|
|
178
|
+
it('falls back to AWS_REGION when SES_REGION is unset', async () => {
|
|
179
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
180
|
+
expect(resolveEmailConfigFromEnv({ EMAIL_PROVIDER: 'ses', AWS_REGION: 'us-west-2' })).toEqual({
|
|
181
|
+
provider: 'ses',
|
|
182
|
+
region: 'us-west-2',
|
|
183
|
+
from: undefined,
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
it('returns undefined for EMAIL_PROVIDER=ses with neither region var', async () => {
|
|
187
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
188
|
+
expect(resolveEmailConfigFromEnv({ EMAIL_PROVIDER: 'ses' })).toBeUndefined();
|
|
189
|
+
});
|
|
190
|
+
// --- SMTP_SECURE variants + partial auth ---
|
|
191
|
+
it('treats SMTP_SECURE="false" as secure:false (distinct from absent → undefined)', async () => {
|
|
192
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
193
|
+
expect(resolveEmailConfigFromEnv({ EMAIL_PROVIDER: 'smtp', SMTP_HOST: 'h', SMTP_SECURE: 'false' })
|
|
194
|
+
?.secure).toBe(false);
|
|
195
|
+
});
|
|
196
|
+
it('treats any non-"true" SMTP_SECURE value as false', async () => {
|
|
197
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
198
|
+
expect(resolveEmailConfigFromEnv({ EMAIL_PROVIDER: 'smtp', SMTP_HOST: 'h', SMTP_SECURE: '1' })
|
|
199
|
+
?.secure).toBe(false);
|
|
200
|
+
});
|
|
201
|
+
it('builds auth from only SMTP_USER, filling the missing pass with ""', async () => {
|
|
202
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
203
|
+
const cfg = resolveEmailConfigFromEnv({
|
|
204
|
+
EMAIL_PROVIDER: 'smtp',
|
|
205
|
+
SMTP_HOST: 'h',
|
|
206
|
+
SMTP_USER: 'u',
|
|
207
|
+
});
|
|
208
|
+
expect(cfg?.auth).toEqual({ user: 'u', pass: '' });
|
|
209
|
+
});
|
|
210
|
+
it('builds auth from only SMTP_PASS, filling the missing user with ""', async () => {
|
|
211
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
212
|
+
const cfg = resolveEmailConfigFromEnv({
|
|
213
|
+
EMAIL_PROVIDER: 'smtp',
|
|
214
|
+
SMTP_HOST: 'h',
|
|
215
|
+
SMTP_PASS: 'p',
|
|
216
|
+
});
|
|
217
|
+
expect(cfg?.auth).toEqual({ user: '', pass: 'p' });
|
|
218
|
+
});
|
|
219
|
+
it('leaves port undefined when SMTP_PORT is omitted', async () => {
|
|
220
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
221
|
+
const cfg = resolveEmailConfigFromEnv({ EMAIL_PROVIDER: 'smtp', SMTP_HOST: 'h' });
|
|
222
|
+
expect(cfg?.port).toBeUndefined();
|
|
223
|
+
});
|
|
224
|
+
// --- explicit-provider-without-credentials guards ---
|
|
225
|
+
it('returns undefined for EMAIL_PROVIDER=resend without RESEND_API_KEY', async () => {
|
|
226
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
227
|
+
expect(resolveEmailConfigFromEnv({ EMAIL_PROVIDER: 'resend' })).toBeUndefined();
|
|
228
|
+
});
|
|
229
|
+
it('returns undefined for EMAIL_PROVIDER=smtpcom without any key', async () => {
|
|
230
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
231
|
+
expect(resolveEmailConfigFromEnv({ EMAIL_PROVIDER: 'smtpcom' })).toBeUndefined();
|
|
232
|
+
});
|
|
233
|
+
// --- inference precedence: smtpcom wins over resend ---
|
|
234
|
+
it('infers smtpcom over resend when an SMTP.com key and RESEND_API_KEY coexist', async () => {
|
|
235
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
236
|
+
expect(resolveEmailConfigFromEnv({ SMTP_KEY: 'k', RESEND_API_KEY: 're_x' })?.provider).toBe('smtpcom');
|
|
237
|
+
expect(resolveEmailConfigFromEnv({ SMTPCOM_API_KEY: 'k', RESEND_API_KEY: 're_x' })?.provider).toBe('smtpcom');
|
|
238
|
+
});
|
|
239
|
+
it('still infers resend from RESEND_API_KEY alone', async () => {
|
|
240
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
241
|
+
expect(resolveEmailConfigFromEnv({ RESEND_API_KEY: 're_x' })?.provider).toBe('resend');
|
|
242
|
+
});
|
|
243
|
+
// --- from precedence: EMAIL_FROM wins over SMTP_EMAIL ---
|
|
244
|
+
it('prefers EMAIL_FROM over SMTP_EMAIL for the from address', async () => {
|
|
245
|
+
const { resolveEmailConfigFromEnv } = await import('../index.js');
|
|
246
|
+
const cfg = resolveEmailConfigFromEnv({
|
|
247
|
+
EMAIL_PROVIDER: 'smtp',
|
|
248
|
+
SMTP_HOST: 'h',
|
|
249
|
+
EMAIL_FROM: 'e@f.co',
|
|
250
|
+
SMTP_EMAIL: 's@f.co',
|
|
251
|
+
});
|
|
252
|
+
expect(cfg?.from).toBe('e@f.co');
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
describe('email registry side effects (setEmailSender)', () => {
|
|
256
|
+
it('registers a send()-exposing adapter with cms-core when a provider resolves', async () => {
|
|
257
|
+
const { emailPlugin } = await import('../index.js');
|
|
258
|
+
const { getRegisteredEmailSender } = await import('@prenta/core/email-sender');
|
|
259
|
+
emailPlugin({ provider: 'resend', apiKey: 'x' });
|
|
260
|
+
const sender = getRegisteredEmailSender();
|
|
261
|
+
expect(sender).not.toBeNull();
|
|
262
|
+
expect(typeof sender?.send).toBe('function');
|
|
263
|
+
});
|
|
264
|
+
it('clears the registry (setEmailSender(null)) when nothing resolves', async () => {
|
|
265
|
+
for (const key of EMAIL_ENV_KEYS)
|
|
266
|
+
vi.stubEnv(key, '');
|
|
267
|
+
const { emailPlugin } = await import('../index.js');
|
|
268
|
+
const { getRegisteredEmailSender } = await import('@prenta/core/email-sender');
|
|
269
|
+
emailPlugin();
|
|
270
|
+
expect(getRegisteredEmailSender()).toBeNull();
|
|
271
|
+
vi.unstubAllEnvs();
|
|
272
|
+
});
|
|
273
|
+
it('registered sender.send() delegates to the provider with defaultFrom winning over from', async () => {
|
|
274
|
+
const fetchMock = vi.fn(async () => new Response(JSON.stringify({ id: 're_x' }), { status: 200 }));
|
|
275
|
+
vi.stubGlobal('fetch', fetchMock);
|
|
276
|
+
try {
|
|
277
|
+
const { emailPlugin } = await import('../index.js');
|
|
278
|
+
const { getRegisteredEmailSender } = await import('@prenta/core/email-sender');
|
|
279
|
+
emailPlugin({ provider: 'resend', apiKey: 'x', defaultFrom: 'a@b.co', from: 'c@d.co' });
|
|
280
|
+
await getRegisteredEmailSender()?.send({ to: 'z@z.co', subject: 'S', html: '<p>h</p>' });
|
|
281
|
+
expect(fetchMock).toHaveBeenCalledOnce();
|
|
282
|
+
const [, init] = fetchMock.mock.calls[0];
|
|
283
|
+
expect(JSON.parse(init.body).from).toBe('a@b.co');
|
|
284
|
+
}
|
|
285
|
+
finally {
|
|
286
|
+
vi.unstubAllGlobals();
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
it('defaults from to noreply@example.com when neither defaultFrom nor from is set', async () => {
|
|
290
|
+
const fetchMock = vi.fn(async () => new Response(JSON.stringify({ id: 're_x' }), { status: 200 }));
|
|
291
|
+
vi.stubGlobal('fetch', fetchMock);
|
|
292
|
+
try {
|
|
293
|
+
const { emailPlugin } = await import('../index.js');
|
|
294
|
+
const { getRegisteredEmailSender } = await import('@prenta/core/email-sender');
|
|
295
|
+
emailPlugin({ provider: 'resend', apiKey: 'x' });
|
|
296
|
+
await getRegisteredEmailSender()?.send({ to: 'z@z.co', subject: 'S', html: '<p>h</p>' });
|
|
297
|
+
const [, init] = fetchMock.mock.calls[0];
|
|
298
|
+
expect(JSON.parse(init.body).from).toBe('noreply@example.com');
|
|
299
|
+
}
|
|
300
|
+
finally {
|
|
301
|
+
vi.unstubAllGlobals();
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
//# sourceMappingURL=index.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7D,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,UAAU,CAAC,GAAG,EAAE;QACd,EAAE,CAAC,YAAY,EAAE,CAAA;IACnB,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,EAAE,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE;YACzC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAA;YACnD,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QACjD,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,gCAAgC,EAAE,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