@usequeek/theme-kit 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/demo.ts +3 -2
  2. package/package.json +1 -1
package/demo.ts CHANGED
@@ -24,7 +24,8 @@ import type { StorefrontConfig, VendorProfile } from './types/vendor';
24
24
  * code should import from here directly.
25
25
  */
26
26
 
27
- export type DemoCategory = { id: string; slug: string; name: string; image?: string | null };
27
+ /** A demo store's category; `description` is the collection's own copy, shown as written (none when absent). */
28
+ export type DemoCategory = { id: string; slug: string; name: string; image?: string | null; description?: string | null };
28
29
 
29
30
  export interface PreviewDemoData {
30
31
  profile: VendorProfile;
@@ -174,7 +175,7 @@ export function getCollections(demo: PreviewDemoData): Collection[] {
174
175
  id: category.id,
175
176
  slug: category.slug,
176
177
  name: category.name,
177
- description: `${category.name} — curated picks from this collection.`,
178
+ description: category.description?.trim() || null,
178
179
  image: category.image ?? null,
179
180
  mode: 'manual',
180
181
  products_count: products.filter((product) => product.categories.some((item) => item.slug === category.slug)).length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usequeek/theme-kit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "The runtime a Queek storefront theme is built on: hooks, stores, page renderer, navigation, shared blocks and locale strings.",