payload-plugin-newsletter 0.23.0 → 0.24.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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.24.0] - 2025-08-08
2
+
3
+ ### Added
4
+ - **Skip welcome email for webhook imports**: Added `importedFromProvider` field to subscribers
5
+ - Set to `true` for all subscribers created via webhook events
6
+ - Allows projects to skip welcome emails for bulk imports from Broadcast
7
+ - Field is read-only in admin UI to prevent accidental changes
8
+
1
9
  ## [0.23.0] - 2025-08-07
2
10
 
3
11
  ### Added
package/dist/client.d.ts CHANGED
@@ -12,6 +12,7 @@ interface Subscriber {
12
12
  [key: string]: boolean | undefined;
13
13
  };
14
14
  source?: string;
15
+ importedFromProvider?: boolean;
15
16
  utmParameters?: {
16
17
  source?: string;
17
18
  medium?: string;
@@ -2967,6 +2967,17 @@ var createSubscribersCollection = (pluginConfig) => {
2967
2967
  admin: {
2968
2968
  description: "Where the subscriber signed up from"
2969
2969
  }
2970
+ },
2971
+ // Import tracking
2972
+ {
2973
+ name: "importedFromProvider",
2974
+ type: "checkbox",
2975
+ defaultValue: false,
2976
+ admin: {
2977
+ description: "Indicates this subscriber was imported from an external provider via webhook",
2978
+ position: "sidebar",
2979
+ readOnly: true
2980
+ }
2970
2981
  }
2971
2982
  ];
2972
2983
  if (pluginConfig.features?.utmTracking?.enabled) {