@xexr/blog-platform 1.0.6 → 1.0.7
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/app/blog/[slug]/page.tsx +105 -21
- package/dist/app/blog/page.tsx +83 -2
- package/dist/index.d.mts +29 -2
- package/dist/index.d.ts +29 -2
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +20 -1
- package/dist/types/index.d.ts +20 -1
- package/package.json +1 -1
package/dist/types/index.d.mts
CHANGED
|
@@ -19,6 +19,8 @@ interface PublishedAuthor {
|
|
|
19
19
|
readonly slug: string;
|
|
20
20
|
/** Author's bio/description (optional) */
|
|
21
21
|
readonly bio?: string;
|
|
22
|
+
/** Author avatar image URL (optional) */
|
|
23
|
+
readonly avatarUrl?: string;
|
|
22
24
|
/** Pronouns for proper attribution */
|
|
23
25
|
readonly pronouns?: string;
|
|
24
26
|
/** Whether this is a guest author */
|
|
@@ -45,6 +47,21 @@ interface PublishedSite {
|
|
|
45
47
|
/** Default locale/language code */
|
|
46
48
|
readonly locale: string;
|
|
47
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Public topic/category taxonomy assigned to published articles.
|
|
52
|
+
*/
|
|
53
|
+
interface PublishedTopic {
|
|
54
|
+
/** Unique identifier for the topic */
|
|
55
|
+
readonly id: string;
|
|
56
|
+
/** Display name */
|
|
57
|
+
readonly name: string;
|
|
58
|
+
/** URL-friendly slug for topic archive routing */
|
|
59
|
+
readonly slug: string;
|
|
60
|
+
/** Optional public description */
|
|
61
|
+
readonly description?: string;
|
|
62
|
+
/** Whether this is the article's primary topic */
|
|
63
|
+
readonly isPrimary: boolean;
|
|
64
|
+
}
|
|
48
65
|
/**
|
|
49
66
|
* Represents a published article with all necessary metadata for rendering
|
|
50
67
|
* on external blog platforms.
|
|
@@ -72,6 +89,8 @@ interface PublishedArticle {
|
|
|
72
89
|
readonly author: PublishedAuthor | null;
|
|
73
90
|
/** Site information */
|
|
74
91
|
readonly site: PublishedSite;
|
|
92
|
+
/** Public topic taxonomy assigned to the article */
|
|
93
|
+
readonly topics?: readonly PublishedTopic[];
|
|
75
94
|
/** Featured image URL (optional) */
|
|
76
95
|
readonly featuredImage?: string;
|
|
77
96
|
/** Alt text for featured image */
|
|
@@ -139,4 +158,4 @@ interface PublishResult {
|
|
|
139
158
|
readonly idempotencyKey: string;
|
|
140
159
|
}
|
|
141
160
|
|
|
142
|
-
export type { PublishPayload, PublishResult, PublishedArticle, PublishedAuthor, PublishedSite };
|
|
161
|
+
export type { PublishPayload, PublishResult, PublishedArticle, PublishedAuthor, PublishedSite, PublishedTopic };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ interface PublishedAuthor {
|
|
|
19
19
|
readonly slug: string;
|
|
20
20
|
/** Author's bio/description (optional) */
|
|
21
21
|
readonly bio?: string;
|
|
22
|
+
/** Author avatar image URL (optional) */
|
|
23
|
+
readonly avatarUrl?: string;
|
|
22
24
|
/** Pronouns for proper attribution */
|
|
23
25
|
readonly pronouns?: string;
|
|
24
26
|
/** Whether this is a guest author */
|
|
@@ -45,6 +47,21 @@ interface PublishedSite {
|
|
|
45
47
|
/** Default locale/language code */
|
|
46
48
|
readonly locale: string;
|
|
47
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Public topic/category taxonomy assigned to published articles.
|
|
52
|
+
*/
|
|
53
|
+
interface PublishedTopic {
|
|
54
|
+
/** Unique identifier for the topic */
|
|
55
|
+
readonly id: string;
|
|
56
|
+
/** Display name */
|
|
57
|
+
readonly name: string;
|
|
58
|
+
/** URL-friendly slug for topic archive routing */
|
|
59
|
+
readonly slug: string;
|
|
60
|
+
/** Optional public description */
|
|
61
|
+
readonly description?: string;
|
|
62
|
+
/** Whether this is the article's primary topic */
|
|
63
|
+
readonly isPrimary: boolean;
|
|
64
|
+
}
|
|
48
65
|
/**
|
|
49
66
|
* Represents a published article with all necessary metadata for rendering
|
|
50
67
|
* on external blog platforms.
|
|
@@ -72,6 +89,8 @@ interface PublishedArticle {
|
|
|
72
89
|
readonly author: PublishedAuthor | null;
|
|
73
90
|
/** Site information */
|
|
74
91
|
readonly site: PublishedSite;
|
|
92
|
+
/** Public topic taxonomy assigned to the article */
|
|
93
|
+
readonly topics?: readonly PublishedTopic[];
|
|
75
94
|
/** Featured image URL (optional) */
|
|
76
95
|
readonly featuredImage?: string;
|
|
77
96
|
/** Alt text for featured image */
|
|
@@ -139,4 +158,4 @@ interface PublishResult {
|
|
|
139
158
|
readonly idempotencyKey: string;
|
|
140
159
|
}
|
|
141
160
|
|
|
142
|
-
export type { PublishPayload, PublishResult, PublishedArticle, PublishedAuthor, PublishedSite };
|
|
161
|
+
export type { PublishPayload, PublishResult, PublishedArticle, PublishedAuthor, PublishedSite, PublishedTopic };
|