@soloworks/smking-next 0.20.0 → 0.20.1

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,5 +1,16 @@
1
1
  # @soloworks/smking-next
2
2
 
3
+ ## 0.20.1 — 2026-06-03
4
+
5
+ **Chore: removed dead carousel / nav-recent-posts / nav-search block types.**
6
+
7
+ Dropped `NavRecentPostsProps`, `NavSearchIndexEntry`, `NavSearchProps`,
8
+ `CarouselSlideProps`, `CarouselAspectRatio`, and `CarouselProps` from
9
+ `types.ts`. Narrowed the `Block` union to the three active block components
10
+ (`hero`, `article`, `nav-taxonomy-list`). `NavLayout` (layout enum including
11
+ `"carousel"`) is unchanged — that value controls nav rendering style, not a
12
+ separate block type.
13
+
3
14
  ## 0.20.0 — 2026-06-02
4
15
 
5
16
  **`<SmkingCms>` now emits the structured-data engine's JSON-LD `@graph` inline.**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soloworks/smking-next",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "AI-native SEO (AEO) for Next.js — auto-inject JSON-LD, FAQ, AI summary, and SEO metadata so AI crawlers (ChatGPT, Perplexity, Google AI) can cite your pages.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/sillyleo/smking/tree/main/packages/smking-next",
package/src/types.ts CHANGED
@@ -102,13 +102,6 @@ export interface NavSnapshotEntry {
102
102
  contentType: "article" | "landing" | "listing" | null;
103
103
  }
104
104
 
105
- export interface NavRecentPostsProps extends ModuleHeader {
106
- limit: number;
107
- layout: NavLayout;
108
- contentType?: "article" | "all";
109
- /** Publish-time materialized — never fetched live. */
110
- snapshot?: NavSnapshotEntry[];
111
- }
112
105
  export interface NavTaxonomyListProps extends ModuleHeader {
113
106
  /** category-by-path: slug prefix; tag: taxonomies.slug */
114
107
  source: "category-by-path" | "tag";
@@ -119,56 +112,10 @@ export interface NavTaxonomyListProps extends ModuleHeader {
119
112
  snapshot?: NavSnapshotEntry[];
120
113
  }
121
114
 
122
- /**
123
- * Search index entry. Customer SDK does client-side fuzzy filter
124
- * against this list; clicking a result navigates to the slug.
125
- */
126
- export interface NavSearchIndexEntry {
127
- slug: string;
128
- title: string | null;
129
- excerpt: string | null;
130
- }
131
-
132
- export interface NavSearchProps {
133
- placeholder: string;
134
- contentType?: "article" | "all";
135
- /** Publish-time materialized full-site search index. */
136
- index?: NavSearchIndexEntry[];
137
- }
138
-
139
- export interface CarouselSlideProps {
140
- imageUrl: string;
141
- caption: string;
142
- }
143
-
144
- export type CarouselAspectRatio =
145
- | "16:9"
146
- | "4:3"
147
- | "1:1"
148
- | "3:4"
149
- | "9:16";
150
-
151
- export interface CarouselProps {
152
- slides: CarouselSlideProps[];
153
- /** Fixed aspect ratio for all slides — image fills via `object-fit: cover`. Default `16:9`. */
154
- aspectRatio?: CarouselAspectRatio;
155
- }
156
-
157
115
  export type Block =
158
116
  | { component: "hero"; id: string; props: HeroProps }
159
117
  | { component: "article"; id: string; props: ArticleProps }
160
- | { component: "carousel"; id: string; props: CarouselProps }
161
- | {
162
- component: "nav-recent-posts";
163
- id: string;
164
- props: NavRecentPostsProps;
165
- }
166
- | {
167
- component: "nav-taxonomy-list";
168
- id: string;
169
- props: NavTaxonomyListProps;
170
- }
171
- | { component: "nav-search"; id: string; props: NavSearchProps };
118
+ | { component: "nav-taxonomy-list"; id: string; props: NavTaxonomyListProps };
172
119
 
173
120
  /**
174
121
  * A single published CMS page returned by the smking public API