@xexr/blog-platform 1.0.10 → 1.0.11
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/README.md +1 -1
- package/dist/app/blog/[slug]/page.d.ts +7 -2
- package/dist/app/blog/[slug]/page.tsx +21 -1
- package/dist/app/blog/page.d.ts +59 -0
- package/dist/app/blog/page.test.ts +83 -0
- package/dist/app/blog/page.tsx +20 -0
- package/dist/components/NewsletterSignup.tsx +279 -0
- package/dist/index.d.mts +61 -53
- package/dist/index.d.ts +61 -53
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/index.mjs.map +1 -1
- package/dist/types/contracts.ts +26 -0
- package/dist/types/index.d.mts +20 -1
- package/dist/types/index.d.ts +20 -1
- package/dist/types/index.ts +1 -0
- package/package.json +6 -1
package/dist/types/contracts.ts
CHANGED
|
@@ -87,6 +87,32 @@ export interface PublishedSite {
|
|
|
87
87
|
|
|
88
88
|
/** Default locale/language code */
|
|
89
89
|
readonly locale: string;
|
|
90
|
+
|
|
91
|
+
/** Optional Bloggy-owned newsletter capture configuration */
|
|
92
|
+
readonly newsletter?: PublishedNewsletterSettings;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Public configuration for Bloggy-owned newsletter capture.
|
|
97
|
+
*/
|
|
98
|
+
export interface PublishedNewsletterSettings {
|
|
99
|
+
/** Whether the capture form should render */
|
|
100
|
+
readonly enabled: boolean;
|
|
101
|
+
|
|
102
|
+
/** Form heading */
|
|
103
|
+
readonly title: string;
|
|
104
|
+
|
|
105
|
+
/** Form supporting copy */
|
|
106
|
+
readonly description: string;
|
|
107
|
+
|
|
108
|
+
/** Submit button label */
|
|
109
|
+
readonly buttonLabel: string;
|
|
110
|
+
|
|
111
|
+
/** Base URL for the Bloggy instance that receives subscriptions */
|
|
112
|
+
readonly captureBaseUrl: string;
|
|
113
|
+
|
|
114
|
+
/** Site-scoped public token used to validate public submissions */
|
|
115
|
+
readonly publicSubscribeToken: string;
|
|
90
116
|
}
|
|
91
117
|
|
|
92
118
|
/**
|
package/dist/types/index.d.mts
CHANGED
|
@@ -65,6 +65,25 @@ interface PublishedSite {
|
|
|
65
65
|
readonly toneAdjectives: readonly string[];
|
|
66
66
|
/** Default locale/language code */
|
|
67
67
|
readonly locale: string;
|
|
68
|
+
/** Optional Bloggy-owned newsletter capture configuration */
|
|
69
|
+
readonly newsletter?: PublishedNewsletterSettings;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Public configuration for Bloggy-owned newsletter capture.
|
|
73
|
+
*/
|
|
74
|
+
interface PublishedNewsletterSettings {
|
|
75
|
+
/** Whether the capture form should render */
|
|
76
|
+
readonly enabled: boolean;
|
|
77
|
+
/** Form heading */
|
|
78
|
+
readonly title: string;
|
|
79
|
+
/** Form supporting copy */
|
|
80
|
+
readonly description: string;
|
|
81
|
+
/** Submit button label */
|
|
82
|
+
readonly buttonLabel: string;
|
|
83
|
+
/** Base URL for the Bloggy instance that receives subscriptions */
|
|
84
|
+
readonly captureBaseUrl: string;
|
|
85
|
+
/** Site-scoped public token used to validate public submissions */
|
|
86
|
+
readonly publicSubscribeToken: string;
|
|
68
87
|
}
|
|
69
88
|
/**
|
|
70
89
|
* Public topic/category taxonomy assigned to published articles.
|
|
@@ -183,4 +202,4 @@ interface PublishResult {
|
|
|
183
202
|
readonly idempotencyKey: string;
|
|
184
203
|
}
|
|
185
204
|
|
|
186
|
-
export type { PublishPayload, PublishResult, PublishedArticle, PublishedAuthor, PublishedAuthorSocialLinks, PublishedSite, PublishedTopic };
|
|
205
|
+
export type { PublishPayload, PublishResult, PublishedArticle, PublishedAuthor, PublishedAuthorSocialLinks, PublishedNewsletterSettings, PublishedSite, PublishedTopic };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -65,6 +65,25 @@ interface PublishedSite {
|
|
|
65
65
|
readonly toneAdjectives: readonly string[];
|
|
66
66
|
/** Default locale/language code */
|
|
67
67
|
readonly locale: string;
|
|
68
|
+
/** Optional Bloggy-owned newsletter capture configuration */
|
|
69
|
+
readonly newsletter?: PublishedNewsletterSettings;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Public configuration for Bloggy-owned newsletter capture.
|
|
73
|
+
*/
|
|
74
|
+
interface PublishedNewsletterSettings {
|
|
75
|
+
/** Whether the capture form should render */
|
|
76
|
+
readonly enabled: boolean;
|
|
77
|
+
/** Form heading */
|
|
78
|
+
readonly title: string;
|
|
79
|
+
/** Form supporting copy */
|
|
80
|
+
readonly description: string;
|
|
81
|
+
/** Submit button label */
|
|
82
|
+
readonly buttonLabel: string;
|
|
83
|
+
/** Base URL for the Bloggy instance that receives subscriptions */
|
|
84
|
+
readonly captureBaseUrl: string;
|
|
85
|
+
/** Site-scoped public token used to validate public submissions */
|
|
86
|
+
readonly publicSubscribeToken: string;
|
|
68
87
|
}
|
|
69
88
|
/**
|
|
70
89
|
* Public topic/category taxonomy assigned to published articles.
|
|
@@ -183,4 +202,4 @@ interface PublishResult {
|
|
|
183
202
|
readonly idempotencyKey: string;
|
|
184
203
|
}
|
|
185
204
|
|
|
186
|
-
export type { PublishPayload, PublishResult, PublishedArticle, PublishedAuthor, PublishedAuthorSocialLinks, PublishedSite, PublishedTopic };
|
|
205
|
+
export type { PublishPayload, PublishResult, PublishedArticle, PublishedAuthor, PublishedAuthorSocialLinks, PublishedNewsletterSettings, PublishedSite, PublishedTopic };
|
package/dist/types/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xexr/blog-platform",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "SEO-friendly blog platform for Next.js 15 with Bloggy integration",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"import": "./dist/types/index.mjs",
|
|
16
16
|
"require": "./dist/types/index.js"
|
|
17
17
|
},
|
|
18
|
+
"./app/blog/page": {
|
|
19
|
+
"types": "./dist/app/blog/page.d.ts",
|
|
20
|
+
"import": "./dist/app/blog/page.tsx",
|
|
21
|
+
"default": "./dist/app/blog/page.tsx"
|
|
22
|
+
},
|
|
18
23
|
"./app/blog/[slug]/page": {
|
|
19
24
|
"types": "./dist/app/blog/[slug]/page.d.ts",
|
|
20
25
|
"import": "./dist/app/blog/[slug]/page.tsx",
|