@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.
- package/demo.ts +3 -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
|
-
|
|
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:
|
|
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