payload-plugin-newsletter 0.26.0 → 0.27.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/dist/server.js CHANGED
@@ -3492,6 +3492,20 @@ var createBroadcastInlinePreviewField = () => {
3492
3492
  };
3493
3493
  };
3494
3494
 
3495
+ // src/fields/broadcastSchedule.ts
3496
+ var createBroadcastScheduleField = () => {
3497
+ return {
3498
+ name: "scheduleControls",
3499
+ type: "ui",
3500
+ label: "Scheduling",
3501
+ admin: {
3502
+ components: {
3503
+ Field: "payload-plugin-newsletter/components#BroadcastScheduleField"
3504
+ }
3505
+ }
3506
+ };
3507
+ };
3508
+
3495
3509
  // src/utils/emailSafeHtml.ts
3496
3510
  import DOMPurify2 from "isomorphic-dompurify";
3497
3511
  var EMAIL_SAFE_CONFIG = {
@@ -4621,6 +4635,8 @@ var createBroadcastsCollection = (pluginConfig) => {
4621
4635
  }
4622
4636
  }
4623
4637
  },
4638
+ // Scheduling controls - shows schedule/cancel buttons based on status
4639
+ createBroadcastScheduleField(),
4624
4640
  {
4625
4641
  name: "settings",
4626
4642
  type: "group",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload-plugin-newsletter",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
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": "./dist/index.js",