@djangocfg/ext-newsletter 1.0.2 → 1.0.4

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.
@@ -0,0 +1,156 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/config.ts
20
+ var config_exports = {};
21
+ __export(config_exports, {
22
+ extensionConfig: () => extensionConfig
23
+ });
24
+ module.exports = __toCommonJS(config_exports);
25
+ var import_ext_base = require("@djangocfg/ext-base");
26
+
27
+ // package.json
28
+ var package_default = {
29
+ name: "@djangocfg/ext-newsletter",
30
+ version: "1.0.4",
31
+ description: "Newsletter and subscription management extension for DjangoCFG",
32
+ keywords: [
33
+ "django",
34
+ "djangocfg",
35
+ "extension",
36
+ "newsletter",
37
+ "subscription",
38
+ "email",
39
+ "marketing",
40
+ "typescript",
41
+ "react"
42
+ ],
43
+ author: {
44
+ name: "DjangoCFG",
45
+ url: "https://djangocfg.com"
46
+ },
47
+ homepage: "https://hub.djangocfg.com/extensions/djangocfg-ext-newsletter",
48
+ repository: {
49
+ type: "git",
50
+ url: "https://github.com/markolofsen/django-cfg.git",
51
+ directory: "extensions/newsletter"
52
+ },
53
+ bugs: {
54
+ url: "https://github.com/markolofsen/django-cfg/issues"
55
+ },
56
+ license: "MIT",
57
+ type: "module",
58
+ main: "./dist/index.cjs",
59
+ module: "./dist/index.js",
60
+ types: "./dist/index.d.ts",
61
+ exports: {
62
+ ".": {
63
+ types: "./dist/index.d.ts",
64
+ import: "./dist/index.js",
65
+ require: "./dist/index.cjs"
66
+ },
67
+ "./hooks": {
68
+ types: "./dist/hooks.d.ts",
69
+ import: "./dist/hooks.js",
70
+ require: "./dist/hooks.cjs"
71
+ },
72
+ "./config": {
73
+ types: "./dist/config.d.ts",
74
+ import: "./dist/config.js",
75
+ require: "./dist/config.cjs"
76
+ }
77
+ },
78
+ files: [
79
+ "dist",
80
+ "src",
81
+ "preview.png"
82
+ ],
83
+ scripts: {
84
+ build: "tsup",
85
+ dev: "tsup --watch",
86
+ check: "tsc --noEmit"
87
+ },
88
+ peerDependencies: {
89
+ "@djangocfg/api": "workspace:*",
90
+ "@djangocfg/ext-base": "workspace:*",
91
+ "@djangocfg/ui-nextjs": "workspace:*",
92
+ consola: "^3.4.2",
93
+ "lucide-react": "^0.545.0",
94
+ next: "^15.5.7",
95
+ "p-retry": "^7.0.0",
96
+ react: "^18 || ^19",
97
+ "react-dom": "^18 || ^19",
98
+ swr: "^2.3.7",
99
+ zod: "^4.1.13"
100
+ },
101
+ devDependencies: {
102
+ "@djangocfg/api": "workspace:*",
103
+ "@djangocfg/ext-base": "workspace:*",
104
+ "@djangocfg/typescript-config": "workspace:*",
105
+ "@types/node": "^24.7.2",
106
+ "@types/react": "^19.0.0",
107
+ consola: "^3.4.2",
108
+ "p-retry": "^7.0.0",
109
+ swr: "^2.3.7",
110
+ tsup: "^8.5.0",
111
+ typescript: "^5.9.3"
112
+ }
113
+ };
114
+
115
+ // src/config.ts
116
+ var extensionConfig = (0, import_ext_base.createExtensionConfig)(package_default, {
117
+ name: "newsletter",
118
+ displayName: "Newsletter & Campaigns",
119
+ category: "content",
120
+ features: [
121
+ "Subscription management",
122
+ "Email template system",
123
+ "Campaign tracking",
124
+ "Subscriber segmentation",
125
+ "Analytics dashboard",
126
+ "Automated campaigns"
127
+ ],
128
+ minVersion: "2.0.0",
129
+ examples: [
130
+ {
131
+ title: "Newsletter Subscription Form",
132
+ description: "Add a newsletter signup form",
133
+ code: `import { NewsletterForm } from '@djangocfg/ext-newsletter';
134
+
135
+ export default function Footer() {
136
+ return (
137
+ <NewsletterForm
138
+ onSubscribe={(email) => {
139
+ console.log('New subscriber:', email);
140
+ }}
141
+ texts={{
142
+ placeholder: 'Enter your email',
143
+ button: 'Subscribe',
144
+ success: 'Thanks for subscribing!',
145
+ }}
146
+ />
147
+ );
148
+ }`,
149
+ language: "tsx"
150
+ }
151
+ ]
152
+ });
153
+ // Annotate the CommonJS export names for ESM import in node:
154
+ 0 && (module.exports = {
155
+ extensionConfig
156
+ });
@@ -0,0 +1,8 @@
1
+ import * as _djangocfg_ext_base from '@djangocfg/ext-base';
2
+
3
+ /**
4
+ * Newsletter extension configuration
5
+ */
6
+ declare const extensionConfig: _djangocfg_ext_base.ExtensionMetadata;
7
+
8
+ export { extensionConfig };
@@ -0,0 +1,8 @@
1
+ import * as _djangocfg_ext_base from '@djangocfg/ext-base';
2
+
3
+ /**
4
+ * Newsletter extension configuration
5
+ */
6
+ declare const extensionConfig: _djangocfg_ext_base.ExtensionMetadata;
7
+
8
+ export { extensionConfig };
package/dist/config.js ADDED
@@ -0,0 +1,132 @@
1
+ // src/config.ts
2
+ import { createExtensionConfig } from "@djangocfg/ext-base";
3
+
4
+ // package.json
5
+ var package_default = {
6
+ name: "@djangocfg/ext-newsletter",
7
+ version: "1.0.4",
8
+ description: "Newsletter and subscription management extension for DjangoCFG",
9
+ keywords: [
10
+ "django",
11
+ "djangocfg",
12
+ "extension",
13
+ "newsletter",
14
+ "subscription",
15
+ "email",
16
+ "marketing",
17
+ "typescript",
18
+ "react"
19
+ ],
20
+ author: {
21
+ name: "DjangoCFG",
22
+ url: "https://djangocfg.com"
23
+ },
24
+ homepage: "https://hub.djangocfg.com/extensions/djangocfg-ext-newsletter",
25
+ repository: {
26
+ type: "git",
27
+ url: "https://github.com/markolofsen/django-cfg.git",
28
+ directory: "extensions/newsletter"
29
+ },
30
+ bugs: {
31
+ url: "https://github.com/markolofsen/django-cfg/issues"
32
+ },
33
+ license: "MIT",
34
+ type: "module",
35
+ main: "./dist/index.cjs",
36
+ module: "./dist/index.js",
37
+ types: "./dist/index.d.ts",
38
+ exports: {
39
+ ".": {
40
+ types: "./dist/index.d.ts",
41
+ import: "./dist/index.js",
42
+ require: "./dist/index.cjs"
43
+ },
44
+ "./hooks": {
45
+ types: "./dist/hooks.d.ts",
46
+ import: "./dist/hooks.js",
47
+ require: "./dist/hooks.cjs"
48
+ },
49
+ "./config": {
50
+ types: "./dist/config.d.ts",
51
+ import: "./dist/config.js",
52
+ require: "./dist/config.cjs"
53
+ }
54
+ },
55
+ files: [
56
+ "dist",
57
+ "src",
58
+ "preview.png"
59
+ ],
60
+ scripts: {
61
+ build: "tsup",
62
+ dev: "tsup --watch",
63
+ check: "tsc --noEmit"
64
+ },
65
+ peerDependencies: {
66
+ "@djangocfg/api": "workspace:*",
67
+ "@djangocfg/ext-base": "workspace:*",
68
+ "@djangocfg/ui-nextjs": "workspace:*",
69
+ consola: "^3.4.2",
70
+ "lucide-react": "^0.545.0",
71
+ next: "^15.5.7",
72
+ "p-retry": "^7.0.0",
73
+ react: "^18 || ^19",
74
+ "react-dom": "^18 || ^19",
75
+ swr: "^2.3.7",
76
+ zod: "^4.1.13"
77
+ },
78
+ devDependencies: {
79
+ "@djangocfg/api": "workspace:*",
80
+ "@djangocfg/ext-base": "workspace:*",
81
+ "@djangocfg/typescript-config": "workspace:*",
82
+ "@types/node": "^24.7.2",
83
+ "@types/react": "^19.0.0",
84
+ consola: "^3.4.2",
85
+ "p-retry": "^7.0.0",
86
+ swr: "^2.3.7",
87
+ tsup: "^8.5.0",
88
+ typescript: "^5.9.3"
89
+ }
90
+ };
91
+
92
+ // src/config.ts
93
+ var extensionConfig = createExtensionConfig(package_default, {
94
+ name: "newsletter",
95
+ displayName: "Newsletter & Campaigns",
96
+ category: "content",
97
+ features: [
98
+ "Subscription management",
99
+ "Email template system",
100
+ "Campaign tracking",
101
+ "Subscriber segmentation",
102
+ "Analytics dashboard",
103
+ "Automated campaigns"
104
+ ],
105
+ minVersion: "2.0.0",
106
+ examples: [
107
+ {
108
+ title: "Newsletter Subscription Form",
109
+ description: "Add a newsletter signup form",
110
+ code: `import { NewsletterForm } from '@djangocfg/ext-newsletter';
111
+
112
+ export default function Footer() {
113
+ return (
114
+ <NewsletterForm
115
+ onSubscribe={(email) => {
116
+ console.log('New subscriber:', email);
117
+ }}
118
+ texts={{
119
+ placeholder: 'Enter your email',
120
+ button: 'Subscribe',
121
+ success: 'Thanks for subscribing!',
122
+ }}
123
+ />
124
+ );
125
+ }`,
126
+ language: "tsx"
127
+ }
128
+ ]
129
+ });
130
+ export {
131
+ extensionConfig
132
+ };