payload-plugin-newsletter 0.14.2 → 0.15.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 +33 -0
- package/README.md +45 -0
- package/dist/collections.cjs +1952 -0
- package/dist/collections.cjs.map +1 -0
- package/dist/collections.d.cts +8 -0
- package/dist/collections.d.ts +8 -0
- package/dist/collections.js +1956 -0
- package/dist/collections.js.map +1 -0
- package/dist/fields.cjs +330 -123
- package/dist/fields.cjs.map +1 -1
- package/dist/fields.d.cts +15 -4
- package/dist/fields.d.ts +15 -4
- package/dist/fields.js +317 -123
- package/dist/fields.js.map +1 -1
- package/dist/index.cjs +146 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +146 -128
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +15 -2
- package/dist/types.d.ts +15 -2
- package/package.json +11 -1
package/dist/types.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field } from 'payload';
|
|
1
|
+
import { Field, Block, RichTextField } from 'payload';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Core types for newsletter management functionality
|
|
@@ -513,6 +513,13 @@ declare abstract class BaseNewsletterProvider implements NewsletterProvider {
|
|
|
513
513
|
protected buildListResponse<T>(items: T[], total: number, options?: ListNewsletterOptions): ListNewsletterResponse<T>;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
+
interface BroadcastCustomizations {
|
|
517
|
+
additionalFields?: Field[];
|
|
518
|
+
customBlocks?: Block[];
|
|
519
|
+
fieldOverrides?: {
|
|
520
|
+
content?: (defaultField: RichTextField) => RichTextField;
|
|
521
|
+
};
|
|
522
|
+
}
|
|
516
523
|
interface NewsletterPluginConfig {
|
|
517
524
|
/**
|
|
518
525
|
* Enable or disable the plugin
|
|
@@ -748,6 +755,12 @@ interface NewsletterPluginConfig {
|
|
|
748
755
|
customTemplates?: {
|
|
749
756
|
[key: string]: React.ComponentType<any>;
|
|
750
757
|
};
|
|
758
|
+
/**
|
|
759
|
+
* Customization options for plugin collections
|
|
760
|
+
*/
|
|
761
|
+
customizations?: {
|
|
762
|
+
broadcasts?: BroadcastCustomizations;
|
|
763
|
+
};
|
|
751
764
|
}
|
|
752
765
|
interface ResendProviderConfig {
|
|
753
766
|
apiKey: string;
|
|
@@ -982,4 +995,4 @@ interface ExtendedPayloadRequest extends Request {
|
|
|
982
995
|
};
|
|
983
996
|
}
|
|
984
997
|
|
|
985
|
-
export { type AfterSubscribeArgs, type AfterUnsubscribeArgs, type AfterUnsubscribeSyncArgs, BaseBroadcastProvider, BaseNewsletterProvider, type BeforeSubscribeArgs, type BeforeUnsubscribeArgs, type Broadcast, type BroadcastAnalytics, BroadcastErrorCode, type BroadcastProvider, type BroadcastProviderCapabilities, type BroadcastProviderConfig, BroadcastProviderError, BroadcastStatus, type BroadcastTemplate, type BroadcastTemplateVariable, type CreateBroadcastInput, type CreateNewsletterInput, type EmailProvider, type ExtendedPayloadRequest, type ListBroadcastOptions, type ListBroadcastResponse, type ListNewsletterOptions, type ListNewsletterResponse, type MagicLinkEmailProps, type Newsletter, type NewsletterAnalytics, NewsletterErrorCode, type NewsletterPluginConfig, type NewsletterProvider, type NewsletterProviderCapabilities, NewsletterProviderError, NewsletterStatus, type NewsletterTemplate, type NewsletterTemplateVariable, type PreferencesFormProps, type ResendProviderConfig, type SendBroadcastOptions, type SendEmailParams, type SendNewsletterOptions, type SigninRequestData, type SignupFormProps, type SubscribeRequestData, type Subscriber, type SurveyQuestion, type UnsubscribeRequestData, type UpdateBroadcastInput, type UpdateNewsletterInput, type UpdatePreferencesRequestData, type VerifyMagicLinkRequestData, type WelcomeEmailProps };
|
|
998
|
+
export { type AfterSubscribeArgs, type AfterUnsubscribeArgs, type AfterUnsubscribeSyncArgs, BaseBroadcastProvider, BaseNewsletterProvider, type BeforeSubscribeArgs, type BeforeUnsubscribeArgs, type Broadcast, type BroadcastAnalytics, type BroadcastCustomizations, BroadcastErrorCode, type BroadcastProvider, type BroadcastProviderCapabilities, type BroadcastProviderConfig, BroadcastProviderError, BroadcastStatus, type BroadcastTemplate, type BroadcastTemplateVariable, type CreateBroadcastInput, type CreateNewsletterInput, type EmailProvider, type ExtendedPayloadRequest, type ListBroadcastOptions, type ListBroadcastResponse, type ListNewsletterOptions, type ListNewsletterResponse, type MagicLinkEmailProps, type Newsletter, type NewsletterAnalytics, NewsletterErrorCode, type NewsletterPluginConfig, type NewsletterProvider, type NewsletterProviderCapabilities, NewsletterProviderError, NewsletterStatus, type NewsletterTemplate, type NewsletterTemplateVariable, type PreferencesFormProps, type ResendProviderConfig, type SendBroadcastOptions, type SendEmailParams, type SendNewsletterOptions, type SigninRequestData, type SignupFormProps, type SubscribeRequestData, type Subscriber, type SurveyQuestion, type UnsubscribeRequestData, type UpdateBroadcastInput, type UpdateNewsletterInput, type UpdatePreferencesRequestData, type VerifyMagicLinkRequestData, type WelcomeEmailProps };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field } from 'payload';
|
|
1
|
+
import { Field, Block, RichTextField } from 'payload';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Core types for newsletter management functionality
|
|
@@ -513,6 +513,13 @@ declare abstract class BaseNewsletterProvider implements NewsletterProvider {
|
|
|
513
513
|
protected buildListResponse<T>(items: T[], total: number, options?: ListNewsletterOptions): ListNewsletterResponse<T>;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
+
interface BroadcastCustomizations {
|
|
517
|
+
additionalFields?: Field[];
|
|
518
|
+
customBlocks?: Block[];
|
|
519
|
+
fieldOverrides?: {
|
|
520
|
+
content?: (defaultField: RichTextField) => RichTextField;
|
|
521
|
+
};
|
|
522
|
+
}
|
|
516
523
|
interface NewsletterPluginConfig {
|
|
517
524
|
/**
|
|
518
525
|
* Enable or disable the plugin
|
|
@@ -748,6 +755,12 @@ interface NewsletterPluginConfig {
|
|
|
748
755
|
customTemplates?: {
|
|
749
756
|
[key: string]: React.ComponentType<any>;
|
|
750
757
|
};
|
|
758
|
+
/**
|
|
759
|
+
* Customization options for plugin collections
|
|
760
|
+
*/
|
|
761
|
+
customizations?: {
|
|
762
|
+
broadcasts?: BroadcastCustomizations;
|
|
763
|
+
};
|
|
751
764
|
}
|
|
752
765
|
interface ResendProviderConfig {
|
|
753
766
|
apiKey: string;
|
|
@@ -982,4 +995,4 @@ interface ExtendedPayloadRequest extends Request {
|
|
|
982
995
|
};
|
|
983
996
|
}
|
|
984
997
|
|
|
985
|
-
export { type AfterSubscribeArgs, type AfterUnsubscribeArgs, type AfterUnsubscribeSyncArgs, BaseBroadcastProvider, BaseNewsletterProvider, type BeforeSubscribeArgs, type BeforeUnsubscribeArgs, type Broadcast, type BroadcastAnalytics, BroadcastErrorCode, type BroadcastProvider, type BroadcastProviderCapabilities, type BroadcastProviderConfig, BroadcastProviderError, BroadcastStatus, type BroadcastTemplate, type BroadcastTemplateVariable, type CreateBroadcastInput, type CreateNewsletterInput, type EmailProvider, type ExtendedPayloadRequest, type ListBroadcastOptions, type ListBroadcastResponse, type ListNewsletterOptions, type ListNewsletterResponse, type MagicLinkEmailProps, type Newsletter, type NewsletterAnalytics, NewsletterErrorCode, type NewsletterPluginConfig, type NewsletterProvider, type NewsletterProviderCapabilities, NewsletterProviderError, NewsletterStatus, type NewsletterTemplate, type NewsletterTemplateVariable, type PreferencesFormProps, type ResendProviderConfig, type SendBroadcastOptions, type SendEmailParams, type SendNewsletterOptions, type SigninRequestData, type SignupFormProps, type SubscribeRequestData, type Subscriber, type SurveyQuestion, type UnsubscribeRequestData, type UpdateBroadcastInput, type UpdateNewsletterInput, type UpdatePreferencesRequestData, type VerifyMagicLinkRequestData, type WelcomeEmailProps };
|
|
998
|
+
export { type AfterSubscribeArgs, type AfterUnsubscribeArgs, type AfterUnsubscribeSyncArgs, BaseBroadcastProvider, BaseNewsletterProvider, type BeforeSubscribeArgs, type BeforeUnsubscribeArgs, type Broadcast, type BroadcastAnalytics, type BroadcastCustomizations, BroadcastErrorCode, type BroadcastProvider, type BroadcastProviderCapabilities, type BroadcastProviderConfig, BroadcastProviderError, BroadcastStatus, type BroadcastTemplate, type BroadcastTemplateVariable, type CreateBroadcastInput, type CreateNewsletterInput, type EmailProvider, type ExtendedPayloadRequest, type ListBroadcastOptions, type ListBroadcastResponse, type ListNewsletterOptions, type ListNewsletterResponse, type MagicLinkEmailProps, type Newsletter, type NewsletterAnalytics, NewsletterErrorCode, type NewsletterPluginConfig, type NewsletterProvider, type NewsletterProviderCapabilities, NewsletterProviderError, NewsletterStatus, type NewsletterTemplate, type NewsletterTemplateVariable, type PreferencesFormProps, type ResendProviderConfig, type SendBroadcastOptions, type SendEmailParams, type SendNewsletterOptions, type SigninRequestData, type SignupFormProps, type SubscribeRequestData, type Subscriber, type SurveyQuestion, type UnsubscribeRequestData, type UpdateBroadcastInput, type UpdateNewsletterInput, type UpdatePreferencesRequestData, type VerifyMagicLinkRequestData, type WelcomeEmailProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payload-plugin-newsletter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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",
|
|
@@ -66,6 +66,16 @@
|
|
|
66
66
|
"types": "./dist/fields.d.cts",
|
|
67
67
|
"default": "./dist/fields.cjs"
|
|
68
68
|
}
|
|
69
|
+
},
|
|
70
|
+
"./collections": {
|
|
71
|
+
"import": {
|
|
72
|
+
"types": "./dist/collections.d.ts",
|
|
73
|
+
"default": "./dist/collections.js"
|
|
74
|
+
},
|
|
75
|
+
"require": {
|
|
76
|
+
"types": "./dist/collections.d.cts",
|
|
77
|
+
"default": "./dist/collections.cjs"
|
|
78
|
+
}
|
|
69
79
|
}
|
|
70
80
|
},
|
|
71
81
|
"scripts": {
|