@86d-app/products 0.0.3 → 0.0.6

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 (195) hide show
  1. package/.turbo/turbo-build.log +1 -0
  2. package/AGENTS.md +41 -41
  3. package/README.md +267 -7
  4. package/dist/__tests__/controllers.test.d.ts +2 -0
  5. package/dist/__tests__/controllers.test.d.ts.map +1 -0
  6. package/dist/__tests__/endpoint-security.test.d.ts +2 -0
  7. package/dist/__tests__/endpoint-security.test.d.ts.map +1 -0
  8. package/dist/__tests__/service-impl.test.d.ts +2 -0
  9. package/dist/__tests__/service-impl.test.d.ts.map +1 -0
  10. package/dist/__tests__/state.test.d.ts +2 -0
  11. package/dist/__tests__/state.test.d.ts.map +1 -0
  12. package/dist/admin/components/categories-admin.d.ts +2 -0
  13. package/dist/admin/components/categories-admin.d.ts.map +1 -0
  14. package/dist/admin/components/category-form.d.ts +7 -0
  15. package/dist/admin/components/category-form.d.ts.map +1 -0
  16. package/dist/admin/components/category-list.d.ts +7 -0
  17. package/dist/admin/components/category-list.d.ts.map +1 -0
  18. package/dist/admin/components/collections-admin.d.ts +2 -0
  19. package/dist/admin/components/collections-admin.d.ts.map +1 -0
  20. package/dist/admin/components/index.d.ts +9 -0
  21. package/dist/admin/components/index.d.ts.map +1 -0
  22. package/dist/admin/components/product-detail.d.ts +7 -0
  23. package/dist/admin/components/product-detail.d.ts.map +1 -0
  24. package/dist/admin/components/product-edit.d.ts +6 -0
  25. package/dist/admin/components/product-edit.d.ts.map +1 -0
  26. package/dist/admin/components/product-form.d.ts +7 -0
  27. package/dist/admin/components/product-form.d.ts.map +1 -0
  28. package/dist/admin/components/product-list.d.ts +2 -0
  29. package/dist/admin/components/product-list.d.ts.map +1 -0
  30. package/dist/admin/components/product-new.d.ts +2 -0
  31. package/dist/admin/components/product-new.d.ts.map +1 -0
  32. package/dist/admin/endpoints/add-collection-product.d.ts +15 -0
  33. package/dist/admin/endpoints/add-collection-product.d.ts.map +1 -0
  34. package/dist/admin/endpoints/bulk-action.d.ts +17 -0
  35. package/dist/admin/endpoints/bulk-action.d.ts.map +1 -0
  36. package/dist/admin/endpoints/create-category.d.ts +23 -0
  37. package/dist/admin/endpoints/create-category.d.ts.map +1 -0
  38. package/dist/admin/endpoints/create-collection.d.ts +22 -0
  39. package/dist/admin/endpoints/create-collection.d.ts.map +1 -0
  40. package/dist/admin/endpoints/create-product.d.ts +44 -0
  41. package/dist/admin/endpoints/create-product.d.ts.map +1 -0
  42. package/dist/admin/endpoints/create-variant.d.ts +35 -0
  43. package/dist/admin/endpoints/create-variant.d.ts.map +1 -0
  44. package/dist/admin/endpoints/delete-category.d.ts +18 -0
  45. package/dist/admin/endpoints/delete-category.d.ts.map +1 -0
  46. package/dist/admin/endpoints/delete-collection.d.ts +8 -0
  47. package/dist/admin/endpoints/delete-collection.d.ts.map +1 -0
  48. package/dist/admin/endpoints/delete-product.d.ts +18 -0
  49. package/dist/admin/endpoints/delete-product.d.ts.map +1 -0
  50. package/dist/admin/endpoints/delete-variant.d.ts +18 -0
  51. package/dist/admin/endpoints/delete-variant.d.ts.map +1 -0
  52. package/dist/admin/endpoints/get-product.d.ts +16 -0
  53. package/dist/admin/endpoints/get-product.d.ts.map +1 -0
  54. package/dist/admin/endpoints/import-products.d.ts +36 -0
  55. package/dist/admin/endpoints/import-products.d.ts.map +1 -0
  56. package/dist/admin/endpoints/index.d.ts +418 -0
  57. package/dist/admin/endpoints/index.d.ts.map +1 -0
  58. package/dist/admin/endpoints/list-categories.d.ts +11 -0
  59. package/dist/admin/endpoints/list-categories.d.ts.map +1 -0
  60. package/dist/admin/endpoints/list-collections.d.ts +11 -0
  61. package/dist/admin/endpoints/list-collections.d.ts.map +1 -0
  62. package/dist/admin/endpoints/list-products.d.ts +27 -0
  63. package/dist/admin/endpoints/list-products.d.ts.map +1 -0
  64. package/dist/admin/endpoints/remove-collection-product.d.ts +9 -0
  65. package/dist/admin/endpoints/remove-collection-product.d.ts.map +1 -0
  66. package/dist/admin/endpoints/update-category.d.ts +26 -0
  67. package/dist/admin/endpoints/update-category.d.ts.map +1 -0
  68. package/dist/admin/endpoints/update-collection.d.ts +19 -0
  69. package/dist/admin/endpoints/update-collection.d.ts.map +1 -0
  70. package/dist/admin/endpoints/update-product.d.ts +47 -0
  71. package/dist/admin/endpoints/update-product.d.ts.map +1 -0
  72. package/dist/admin/endpoints/update-variant.d.ts +35 -0
  73. package/dist/admin/endpoints/update-variant.d.ts.map +1 -0
  74. package/dist/controllers.d.ts +130 -0
  75. package/dist/controllers.d.ts.map +1 -0
  76. package/dist/index.d.ts +20 -0
  77. package/dist/index.d.ts.map +1 -0
  78. package/dist/markdown.d.ts +6 -0
  79. package/dist/markdown.d.ts.map +1 -0
  80. package/dist/schema.d.ts +351 -0
  81. package/dist/schema.d.ts.map +1 -0
  82. package/dist/service-impl.d.ts +4 -0
  83. package/dist/service-impl.d.ts.map +1 -0
  84. package/dist/service.d.ts +280 -0
  85. package/dist/service.d.ts.map +1 -0
  86. package/dist/state.d.ts +38 -0
  87. package/dist/state.d.ts.map +1 -0
  88. package/dist/store/components/_hooks.d.ts +88 -0
  89. package/dist/store/components/_hooks.d.ts.map +1 -0
  90. package/dist/store/components/_types.d.ts +70 -0
  91. package/dist/store/components/_types.d.ts.map +1 -0
  92. package/dist/store/components/_utils.d.ts +5 -0
  93. package/dist/store/components/_utils.d.ts.map +1 -0
  94. package/dist/store/components/back-in-stock-notify.d.ts +8 -0
  95. package/dist/store/components/back-in-stock-notify.d.ts.map +1 -0
  96. package/dist/store/components/collection-card.d.ts +6 -0
  97. package/dist/store/components/collection-card.d.ts.map +1 -0
  98. package/dist/store/components/collection-detail.d.ts +6 -0
  99. package/dist/store/components/collection-detail.d.ts.map +1 -0
  100. package/dist/store/components/collection-grid.d.ts +6 -0
  101. package/dist/store/components/collection-grid.d.ts.map +1 -0
  102. package/dist/store/components/featured-products.d.ts +6 -0
  103. package/dist/store/components/featured-products.d.ts.map +1 -0
  104. package/dist/store/components/filter-chip.d.ts +6 -0
  105. package/dist/store/components/filter-chip.d.ts.map +1 -0
  106. package/dist/store/components/index.d.ts +37 -0
  107. package/dist/store/components/index.d.ts.map +1 -0
  108. package/dist/store/components/product-card.d.ts +7 -0
  109. package/dist/store/components/product-card.d.ts.map +1 -0
  110. package/dist/store/components/product-detail.d.ts +6 -0
  111. package/dist/store/components/product-detail.d.ts.map +1 -0
  112. package/dist/store/components/product-listing.d.ts +7 -0
  113. package/dist/store/components/product-listing.d.ts.map +1 -0
  114. package/dist/store/components/product-qa-section.d.ts +5 -0
  115. package/dist/store/components/product-qa-section.d.ts.map +1 -0
  116. package/dist/store/components/product-reviews-section.d.ts +5 -0
  117. package/dist/store/components/product-reviews-section.d.ts.map +1 -0
  118. package/dist/store/components/recently-viewed.d.ts +12 -0
  119. package/dist/store/components/recently-viewed.d.ts.map +1 -0
  120. package/dist/store/components/recommended-products.d.ts +7 -0
  121. package/dist/store/components/recommended-products.d.ts.map +1 -0
  122. package/dist/store/components/related-products.d.ts +7 -0
  123. package/dist/store/components/related-products.d.ts.map +1 -0
  124. package/dist/store/components/star-display.d.ts +6 -0
  125. package/dist/store/components/star-display.d.ts.map +1 -0
  126. package/dist/store/components/star-picker.d.ts +6 -0
  127. package/dist/store/components/star-picker.d.ts.map +1 -0
  128. package/dist/store/components/stock-badge.d.ts +5 -0
  129. package/dist/store/components/stock-badge.d.ts.map +1 -0
  130. package/dist/store/endpoints/get-category.d.ts +22 -0
  131. package/dist/store/endpoints/get-category.d.ts.map +1 -0
  132. package/dist/store/endpoints/get-collection.d.ts +17 -0
  133. package/dist/store/endpoints/get-collection.d.ts.map +1 -0
  134. package/dist/store/endpoints/get-featured.d.ts +10 -0
  135. package/dist/store/endpoints/get-featured.d.ts.map +1 -0
  136. package/dist/store/endpoints/get-product.d.ts +17 -0
  137. package/dist/store/endpoints/get-product.d.ts.map +1 -0
  138. package/dist/store/endpoints/get-related.d.ts +11 -0
  139. package/dist/store/endpoints/get-related.d.ts.map +1 -0
  140. package/dist/store/endpoints/index.d.ts +130 -0
  141. package/dist/store/endpoints/index.d.ts.map +1 -0
  142. package/dist/store/endpoints/list-categories.d.ts +6 -0
  143. package/dist/store/endpoints/list-categories.d.ts.map +1 -0
  144. package/dist/store/endpoints/list-collections.d.ts +10 -0
  145. package/dist/store/endpoints/list-collections.d.ts.map +1 -0
  146. package/dist/store/endpoints/list-products.d.ts +26 -0
  147. package/dist/store/endpoints/list-products.d.ts.map +1 -0
  148. package/dist/store/endpoints/search-products.d.ts +12 -0
  149. package/dist/store/endpoints/search-products.d.ts.map +1 -0
  150. package/dist/store/endpoints/store-search.d.ts +18 -0
  151. package/dist/store/endpoints/store-search.d.ts.map +1 -0
  152. package/package.json +3 -3
  153. package/src/__tests__/endpoint-security.test.ts +457 -0
  154. package/src/__tests__/service-impl.test.ts +1745 -0
  155. package/src/admin/endpoints/create-category.ts +5 -2
  156. package/src/admin/endpoints/create-collection.ts +1 -1
  157. package/src/admin/endpoints/create-product.ts +5 -2
  158. package/src/admin/endpoints/delete-category.ts +1 -1
  159. package/src/admin/endpoints/delete-collection.ts +1 -1
  160. package/src/admin/endpoints/delete-product.ts +1 -1
  161. package/src/admin/endpoints/delete-variant.ts +1 -1
  162. package/src/admin/endpoints/list-categories.ts +1 -1
  163. package/src/admin/endpoints/list-collections.ts +1 -1
  164. package/src/admin/endpoints/list-products.ts +1 -1
  165. package/src/admin/endpoints/remove-collection-product.ts +1 -1
  166. package/src/admin/endpoints/update-category.ts +5 -2
  167. package/src/admin/endpoints/update-collection.ts +1 -1
  168. package/src/admin/endpoints/update-product.ts +5 -2
  169. package/src/admin/endpoints/update-variant.ts +1 -1
  170. package/src/service-impl.ts +1139 -0
  171. package/src/service.ts +312 -0
  172. package/src/store/components/_hooks.ts +81 -0
  173. package/src/store/components/_utils.ts +8 -0
  174. package/src/store/components/collection-detail.tsx +21 -1
  175. package/src/store/components/collection-grid.tsx +5 -1
  176. package/src/store/components/featured-products.tsx +5 -1
  177. package/src/store/components/index.tsx +2 -0
  178. package/src/store/components/product-card.mdx +1 -1
  179. package/src/store/components/product-card.tsx +25 -5
  180. package/src/store/components/product-detail.mdx +2 -0
  181. package/src/store/components/product-detail.tsx +55 -8
  182. package/src/store/components/product-listing.tsx +25 -4
  183. package/src/store/components/product-qa-section.mdx +21 -0
  184. package/src/store/components/product-qa-section.tsx +503 -0
  185. package/src/store/components/recommended-products.mdx +6 -0
  186. package/src/store/components/recommended-products.tsx +119 -0
  187. package/src/store/endpoints/get-category.ts +2 -2
  188. package/src/store/endpoints/get-collection.ts +1 -1
  189. package/src/store/endpoints/get-featured.ts +1 -1
  190. package/src/store/endpoints/get-product.ts +1 -1
  191. package/src/store/endpoints/get-related.ts +2 -2
  192. package/src/store/endpoints/list-collections.ts +3 -3
  193. package/src/store/endpoints/list-products.ts +9 -9
  194. package/src/store/endpoints/store-search.ts +1 -1
  195. package/COMPONENTS.md +0 -231
@@ -0,0 +1,280 @@
1
+ import type { ModuleController } from "@86d-app/core";
2
+ export interface Product {
3
+ id: string;
4
+ name: string;
5
+ slug: string;
6
+ description?: string | undefined;
7
+ shortDescription?: string | undefined;
8
+ price: number;
9
+ compareAtPrice?: number | undefined;
10
+ costPrice?: number | undefined;
11
+ sku?: string | undefined;
12
+ barcode?: string | undefined;
13
+ inventory: number;
14
+ trackInventory: boolean;
15
+ allowBackorder: boolean;
16
+ status: "draft" | "active" | "archived";
17
+ categoryId?: string | undefined;
18
+ images: string[];
19
+ tags: string[];
20
+ metadata?: Record<string, unknown> | undefined;
21
+ weight?: number | undefined;
22
+ weightUnit?: "kg" | "lb" | "oz" | "g" | undefined;
23
+ isFeatured: boolean;
24
+ createdAt: Date;
25
+ updatedAt: Date;
26
+ }
27
+ export interface ProductVariant {
28
+ id: string;
29
+ productId: string;
30
+ name: string;
31
+ sku?: string | undefined;
32
+ barcode?: string | undefined;
33
+ price: number;
34
+ compareAtPrice?: number | undefined;
35
+ costPrice?: number | undefined;
36
+ inventory: number;
37
+ options: Record<string, string>;
38
+ images: string[];
39
+ weight?: number | undefined;
40
+ weightUnit?: "kg" | "lb" | "oz" | "g" | undefined;
41
+ position: number;
42
+ createdAt: Date;
43
+ updatedAt: Date;
44
+ }
45
+ export interface Category {
46
+ id: string;
47
+ name: string;
48
+ slug: string;
49
+ description?: string | undefined;
50
+ parentId?: string | undefined;
51
+ image?: string | undefined;
52
+ position: number;
53
+ isVisible: boolean;
54
+ metadata?: Record<string, unknown> | undefined;
55
+ createdAt: Date;
56
+ updatedAt: Date;
57
+ }
58
+ export interface CategoryWithChildren extends Category {
59
+ children: CategoryWithChildren[];
60
+ }
61
+ export interface ProductWithVariants extends Product {
62
+ variants: ProductVariant[];
63
+ category?: Category | undefined;
64
+ }
65
+ export interface Collection {
66
+ id: string;
67
+ name: string;
68
+ slug: string;
69
+ description?: string | undefined;
70
+ image?: string | undefined;
71
+ isFeatured: boolean;
72
+ isVisible: boolean;
73
+ position: number;
74
+ metadata?: Record<string, unknown> | undefined;
75
+ createdAt: Date;
76
+ updatedAt: Date;
77
+ }
78
+ export interface CollectionProduct {
79
+ id: string;
80
+ collectionId: string;
81
+ productId: string;
82
+ position: number;
83
+ createdAt: Date;
84
+ }
85
+ export interface CollectionWithProducts extends Collection {
86
+ products: Product[];
87
+ }
88
+ export interface ImportProductRow {
89
+ name: string;
90
+ slug?: string | undefined;
91
+ price: number | string;
92
+ sku?: string | undefined;
93
+ barcode?: string | undefined;
94
+ description?: string | undefined;
95
+ shortDescription?: string | undefined;
96
+ compareAtPrice?: number | string | undefined;
97
+ costPrice?: number | string | undefined;
98
+ inventory?: number | string | undefined;
99
+ status?: string | undefined;
100
+ category?: string | undefined;
101
+ tags?: string[] | undefined;
102
+ weight?: number | string | undefined;
103
+ weightUnit?: string | undefined;
104
+ featured?: boolean | undefined;
105
+ trackInventory?: boolean | undefined;
106
+ allowBackorder?: boolean | undefined;
107
+ }
108
+ export interface ImportError {
109
+ row: number;
110
+ field: string;
111
+ message: string;
112
+ }
113
+ export interface ImportResult {
114
+ created: number;
115
+ updated: number;
116
+ errors: ImportError[];
117
+ }
118
+ export interface CreateProductParams {
119
+ name: string;
120
+ slug: string;
121
+ price: number;
122
+ description?: string | undefined;
123
+ shortDescription?: string | undefined;
124
+ compareAtPrice?: number | undefined;
125
+ costPrice?: number | undefined;
126
+ sku?: string | undefined;
127
+ barcode?: string | undefined;
128
+ inventory?: number | undefined;
129
+ trackInventory?: boolean | undefined;
130
+ allowBackorder?: boolean | undefined;
131
+ status?: "draft" | "active" | "archived" | undefined;
132
+ categoryId?: string | undefined;
133
+ images?: string[] | undefined;
134
+ tags?: string[] | undefined;
135
+ metadata?: Record<string, unknown> | undefined;
136
+ weight?: number | undefined;
137
+ weightUnit?: "kg" | "lb" | "oz" | "g" | undefined;
138
+ isFeatured?: boolean | undefined;
139
+ }
140
+ export interface CreateVariantParams {
141
+ productId: string;
142
+ name: string;
143
+ price: number;
144
+ options: Record<string, string>;
145
+ sku?: string | undefined;
146
+ barcode?: string | undefined;
147
+ compareAtPrice?: number | undefined;
148
+ costPrice?: number | undefined;
149
+ inventory?: number | undefined;
150
+ images?: string[] | undefined;
151
+ weight?: number | undefined;
152
+ weightUnit?: "kg" | "lb" | "oz" | "g" | undefined;
153
+ position?: number | undefined;
154
+ }
155
+ export interface CreateCategoryParams {
156
+ name: string;
157
+ slug: string;
158
+ description?: string | undefined;
159
+ parentId?: string | undefined;
160
+ image?: string | undefined;
161
+ position?: number | undefined;
162
+ isVisible?: boolean | undefined;
163
+ metadata?: Record<string, unknown> | undefined;
164
+ }
165
+ export interface CreateCollectionParams {
166
+ name: string;
167
+ slug: string;
168
+ description?: string | undefined;
169
+ image?: string | undefined;
170
+ isFeatured?: boolean | undefined;
171
+ isVisible?: boolean | undefined;
172
+ position?: number | undefined;
173
+ metadata?: Record<string, unknown> | undefined;
174
+ }
175
+ export interface ListProductsParams {
176
+ page?: number | undefined;
177
+ limit?: number | undefined;
178
+ category?: string | undefined;
179
+ status?: string | undefined;
180
+ featured?: boolean | undefined;
181
+ search?: string | undefined;
182
+ sort?: string | undefined;
183
+ order?: string | undefined;
184
+ minPrice?: number | undefined;
185
+ maxPrice?: number | undefined;
186
+ inStock?: boolean | undefined;
187
+ tag?: string | undefined;
188
+ }
189
+ export interface ProductController extends ModuleController {
190
+ createProduct(params: CreateProductParams): Promise<Product>;
191
+ getProduct(id: string): Promise<Product | null>;
192
+ getProductBySlug(slug: string): Promise<Product | null>;
193
+ getProductWithVariants(id: string): Promise<ProductWithVariants | null>;
194
+ listProducts(params?: ListProductsParams): Promise<{
195
+ products: ProductWithVariants[];
196
+ total: number;
197
+ page: number;
198
+ limit: number;
199
+ }>;
200
+ searchProducts(q: string, limit?: number): Promise<Product[]>;
201
+ getFeaturedProducts(limit?: number): Promise<Product[]>;
202
+ getProductsByCategory(categoryId: string): Promise<Product[]>;
203
+ getRelatedProducts(id: string, limit?: number): Promise<{
204
+ products: Product[];
205
+ }>;
206
+ updateProduct(id: string, params: Partial<Product>): Promise<Product>;
207
+ deleteProduct(id: string): Promise<{
208
+ success: boolean;
209
+ }>;
210
+ checkAvailability(productId: string, variantId?: string, quantity?: number): Promise<{
211
+ available: boolean;
212
+ inventory: number;
213
+ allowBackorder: boolean;
214
+ }>;
215
+ decrementInventory(productId: string, quantity: number, variantId?: string): Promise<{
216
+ success: boolean;
217
+ }>;
218
+ incrementInventory(productId: string, quantity: number, variantId?: string): Promise<{
219
+ success: boolean;
220
+ }>;
221
+ getVariant(id: string): Promise<ProductVariant | null>;
222
+ getVariantsByProduct(productId: string): Promise<ProductVariant[]>;
223
+ createVariant(params: CreateVariantParams): Promise<ProductVariant>;
224
+ updateVariant(id: string, params: Partial<ProductVariant>): Promise<ProductVariant>;
225
+ deleteVariant(id: string): Promise<{
226
+ success: boolean;
227
+ }>;
228
+ getCategory(id: string): Promise<Category | null>;
229
+ getCategoryBySlug(slug: string): Promise<Category | null>;
230
+ listCategories(params?: {
231
+ page?: number;
232
+ limit?: number;
233
+ parentId?: string;
234
+ visible?: boolean;
235
+ }): Promise<{
236
+ categories: Category[];
237
+ page: number;
238
+ limit: number;
239
+ }>;
240
+ getCategoryTree(): Promise<CategoryWithChildren[]>;
241
+ createCategory(params: CreateCategoryParams): Promise<Category>;
242
+ updateCategory(id: string, params: Partial<Category>): Promise<Category>;
243
+ deleteCategory(id: string): Promise<{
244
+ success: boolean;
245
+ }>;
246
+ bulkUpdateStatus(ids: string[], status: "draft" | "active" | "archived"): Promise<{
247
+ updated: number;
248
+ }>;
249
+ bulkDelete(ids: string[]): Promise<{
250
+ deleted: number;
251
+ }>;
252
+ importProducts(rows: ImportProductRow[]): Promise<ImportResult>;
253
+ getCollection(id: string): Promise<Collection | null>;
254
+ getCollectionBySlug(slug: string): Promise<Collection | null>;
255
+ listCollections(params?: {
256
+ page?: number;
257
+ limit?: number;
258
+ featured?: boolean;
259
+ visible?: boolean;
260
+ }): Promise<{
261
+ collections: Collection[];
262
+ page: number;
263
+ limit: number;
264
+ }>;
265
+ searchCollections(q: string, limit?: number): Promise<Collection[]>;
266
+ getCollectionWithProducts(id: string): Promise<CollectionWithProducts | null>;
267
+ createCollection(params: CreateCollectionParams): Promise<Collection>;
268
+ updateCollection(id: string, params: Partial<Collection>): Promise<Collection>;
269
+ deleteCollection(id: string): Promise<{
270
+ success: boolean;
271
+ }>;
272
+ addProductToCollection(collectionId: string, productId: string, position?: number): Promise<CollectionProduct>;
273
+ removeProductFromCollection(collectionId: string, productId: string): Promise<{
274
+ success: boolean;
275
+ }>;
276
+ listCollectionProducts(collectionId: string): Promise<{
277
+ products: Product[];
278
+ }>;
279
+ }
280
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,WAAW,OAAO;IACvB,EAAE,EAAE,MAAM,CAAC;I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CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,OAAO,CAAC;KAClB,GAAG,OAAO,CAAC;QAAE,WAAW,EAAE,UAAU,EAAE,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxE,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IACpE,yBAAyB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;IAC9E,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACtE,gBAAgB,CACf,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,GACzB,OAAO,CAAC,UAAU,CAAC,CAAC;IACvB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC5D,sBAAsB,CACrB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC9B,2BAA2B,CAC1B,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACjC,sBAAsB,CACrB,YAAY,EAAE,MAAM,GAClB,OAAO,CAAC;QAAE,QAAQ,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC,CAAC;CACpC"}
@@ -0,0 +1,38 @@
1
+ export type SortField = "name" | "price" | "createdAt";
2
+ export type SortOrder = "asc" | "desc";
3
+ export type ViewMode = "grid" | "list";
4
+ /**
5
+ * Products UI state — shared across components via MobX.
6
+ * Persists active filters, sort order, and view mode across navigations.
7
+ */
8
+ export declare const productsState: {
9
+ /** Active category filter (empty = all categories) */
10
+ activeCategory: string;
11
+ /** Search query */
12
+ searchQuery: string;
13
+ /** Sort field */
14
+ sortField: SortField;
15
+ /** Sort direction */
16
+ sortOrder: SortOrder;
17
+ /** Grid vs list view */
18
+ viewMode: ViewMode;
19
+ /** Price range filter (in display dollars, not cents) */
20
+ minPrice: string;
21
+ maxPrice: string;
22
+ /** Stock filter */
23
+ inStockOnly: boolean;
24
+ /** Tag filter */
25
+ activeTag: string;
26
+ setCategory(category: string): void;
27
+ setSearchQuery(query: string): void;
28
+ setSortField(field: SortField): void;
29
+ setSortOrder(order: SortOrder): void;
30
+ setViewMode(mode: ViewMode): void;
31
+ setPriceRange(min: string, max: string): void;
32
+ setInStockOnly(v: boolean): void;
33
+ setActiveTag(tag: string): void;
34
+ clearFilters(): void;
35
+ readonly hasActiveFilters: boolean;
36
+ };
37
+ export type ProductsState = typeof productsState;
38
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../src/state.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;AACvD,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,aAAa;IACzB,sDAAsD;;IAEtD,mBAAmB;;IAEnB,iBAAiB;eACS,SAAS;IACnC,qBAAqB;eACA,SAAS;IAC9B,wBAAwB;cACJ,QAAQ;IAC5B,yDAAyD;;;IAGzD,mBAAmB;;IAEnB,iBAAiB;;0BAGK,MAAM;0BAIN,MAAM;wBAIR,SAAS;wBAIT,SAAS;sBAIX,QAAQ;uBAIP,MAAM,OAAO,MAAM;sBAKpB,OAAO;sBAIP,MAAM;;+BAaA,OAAO;CAU9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC"}
@@ -0,0 +1,88 @@
1
+ type RawCartItem = {
2
+ id: string;
3
+ productId: string;
4
+ variantId?: string | null;
5
+ quantity: number;
6
+ price: number;
7
+ productName: string;
8
+ productSlug: string;
9
+ productImage?: string | null;
10
+ variantName?: string | null;
11
+ variantOptions?: Record<string, string> | null;
12
+ };
13
+ type AddToCartResponse = {
14
+ cart: {
15
+ id: string;
16
+ };
17
+ items: RawCartItem[];
18
+ itemCount: number;
19
+ subtotal: number;
20
+ };
21
+ export declare function normalizeCartQueryData(data: AddToCartResponse): {
22
+ id: string;
23
+ items: {
24
+ id: string;
25
+ productId: string;
26
+ variantId: string | null;
27
+ quantity: number;
28
+ price: number;
29
+ product: {
30
+ name: string;
31
+ price: number;
32
+ images: string[];
33
+ slug: string;
34
+ };
35
+ variant: {
36
+ name: string;
37
+ options: Record<string, string>;
38
+ } | null;
39
+ }[];
40
+ itemCount: number;
41
+ subtotal: number;
42
+ };
43
+ export declare function useProductsApi(): {
44
+ listProducts: import("@86d-app/core/client").AnyEndpointHook;
45
+ getFeaturedProducts: import("@86d-app/core/client").AnyEndpointHook;
46
+ getProduct: import("@86d-app/core/client").AnyEndpointHook;
47
+ getRelatedProducts: import("@86d-app/core/client").AnyEndpointHook;
48
+ listCategories: import("@86d-app/core/client").AnyEndpointHook;
49
+ };
50
+ export declare function useCartMutation(): {
51
+ addToCart: import("@86d-app/core/client").AnyEndpointHook;
52
+ getCart: import("@86d-app/core/client").AnyEndpointHook;
53
+ queryClient: import("@tanstack/react-query").QueryClient;
54
+ };
55
+ export declare function useReviewsApi(): {
56
+ listProductReviews: import("@86d-app/core/client").AnyEndpointHook;
57
+ submitReview: import("@86d-app/core/client").AnyEndpointHook;
58
+ };
59
+ export declare function useInventoryApi(): {
60
+ checkStock: import("@86d-app/core/client").AnyEndpointHook;
61
+ subscribeBackInStock: import("@86d-app/core/client").AnyEndpointHook;
62
+ checkBackInStock: import("@86d-app/core/client").AnyEndpointHook;
63
+ unsubscribeBackInStock: import("@86d-app/core/client").AnyEndpointHook;
64
+ };
65
+ export declare function useAnalyticsApi(): {
66
+ recentlyViewed: import("@86d-app/core/client").AnyEndpointHook;
67
+ };
68
+ export declare function useProductQaApi(): {
69
+ listProductQuestions: import("@86d-app/core/client").AnyEndpointHook;
70
+ productQaSummary: import("@86d-app/core/client").AnyEndpointHook;
71
+ submitQuestion: import("@86d-app/core/client").AnyEndpointHook;
72
+ listAnswers: import("@86d-app/core/client").AnyEndpointHook;
73
+ upvoteQuestion: import("@86d-app/core/client").AnyEndpointHook;
74
+ upvoteAnswer: import("@86d-app/core/client").AnyEndpointHook;
75
+ };
76
+ export declare function useRecommendationsApi(): {
77
+ getForProduct: import("@86d-app/core/client").AnyEndpointHook;
78
+ getTrending: import("@86d-app/core/client").AnyEndpointHook;
79
+ };
80
+ /** Fire-and-forget analytics event via the analytics module endpoint. */
81
+ export declare function useTrack(): (params: {
82
+ type: string;
83
+ productId?: string;
84
+ value?: number;
85
+ data?: Record<string, unknown>;
86
+ }) => void;
87
+ export {};
88
+ //# sourceMappingURL=_hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_hooks.d.ts","sourceRoot":"","sources":["../../../src/store/components/_hooks.ts"],"names":[],"mappings":"AAKA,KAAK,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC/C,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACxB,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACrB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAyB7D;AAED,wBAAgB,cAAc;;;;;;EAU7B;AAED,wBAAgB,eAAe;;;;EAO9B;AAED,wBAAgB,aAAa;;;EAO5B;AAED,wBAAgB,eAAe;;;;;EAW9B;AAED,wBAAgB,eAAe;;EAM9B;AAED,wBAAgB,eAAe;;;;;;;EAqB9B;AAED,wBAAgB,qBAAqB;;;EAQpC;AAED,yEAAyE;AACzE,wBAAgB,QAAQ,aAOb;IACR,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B,UASF"}
@@ -0,0 +1,70 @@
1
+ export interface Product {
2
+ id: string;
3
+ name: string;
4
+ slug: string;
5
+ price: number;
6
+ compareAtPrice?: number | null;
7
+ shortDescription?: string | null;
8
+ description?: string | null;
9
+ images: string[];
10
+ isFeatured: boolean;
11
+ status: string;
12
+ inventory: number;
13
+ categoryId?: string | null;
14
+ tags: string[];
15
+ }
16
+ export interface ProductVariant {
17
+ id: string;
18
+ name: string;
19
+ price: number;
20
+ compareAtPrice?: number | null;
21
+ inventory: number;
22
+ options: Record<string, string>;
23
+ }
24
+ export interface ProductWithVariants extends Product {
25
+ variants: ProductVariant[];
26
+ category?: {
27
+ id: string;
28
+ name: string;
29
+ slug: string;
30
+ } | null;
31
+ }
32
+ export interface Category {
33
+ id: string;
34
+ name: string;
35
+ slug: string;
36
+ }
37
+ export interface ListResult {
38
+ products: Product[];
39
+ total: number;
40
+ page: number;
41
+ limit: number;
42
+ }
43
+ export interface CollectionCardData {
44
+ id: string;
45
+ name: string;
46
+ slug: string;
47
+ description?: string | null;
48
+ image?: string | null;
49
+ }
50
+ export interface Review {
51
+ id: string;
52
+ authorName: string;
53
+ rating: number;
54
+ title?: string | undefined;
55
+ body: string;
56
+ isVerifiedPurchase: boolean;
57
+ helpfulCount: number;
58
+ createdAt: string;
59
+ }
60
+ export interface RatingSummary {
61
+ average: number;
62
+ count: number;
63
+ distribution: Record<string, number>;
64
+ }
65
+ export interface ReviewsResponse {
66
+ reviews: Review[];
67
+ summary: RatingSummary;
68
+ total: number;
69
+ }
70
+ //# sourceMappingURL=_types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../src/store/components/_types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,GAAG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E,MAAM,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,5 @@
1
+ /** Extract a URL string from an image entry (handles both string and {url,alt} formats). */
2
+ export declare function imageUrl(img: unknown): string;
3
+ export declare function formatPrice(cents: number): string;
4
+ export declare function formatDate(iso: string): string;
5
+ //# sourceMappingURL=_utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_utils.d.ts","sourceRoot":"","sources":["../../../src/store/components/_utils.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAK7C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKjD;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM9C"}
@@ -0,0 +1,8 @@
1
+ interface BackInStockNotifyProps {
2
+ productId: string;
3
+ variantId?: string | undefined;
4
+ productName: string;
5
+ }
6
+ export declare function BackInStockNotify({ productId, variantId, productName, }: BackInStockNotifyProps): import("react").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=back-in-stock-notify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"back-in-stock-notify.d.ts","sourceRoot":"","sources":["../../../src/store/components/back-in-stock-notify.tsx"],"names":[],"mappings":"AAKA,UAAU,sBAAsB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EACjC,SAAS,EACT,SAAS,EACT,WAAW,GACX,EAAE,sBAAsB,+BAiFxB"}
@@ -0,0 +1,6 @@
1
+ import type { CollectionCardData } from "./_types";
2
+ export interface CollectionCardProps {
3
+ collection: CollectionCardData;
4
+ }
5
+ export declare function CollectionCard({ collection }: CollectionCardProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=collection-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-card.d.ts","sourceRoot":"","sources":["../../../src/store/components/collection-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGnD,MAAM,WAAW,mBAAmB;IACnC,UAAU,EAAE,kBAAkB,CAAC;CAC/B;AAED,wBAAgB,cAAc,CAAC,EAAE,UAAU,EAAE,EAAE,mBAAmB,+BAEjE"}
@@ -0,0 +1,6 @@
1
+ export interface CollectionDetailProps {
2
+ slug?: string;
3
+ params?: Record<string, string>;
4
+ }
5
+ export declare function CollectionDetail(props: CollectionDetailProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=collection-detail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-detail.d.ts","sourceRoot":"","sources":["../../../src/store/components/collection-detail.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,qBAAqB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BA4J5D"}
@@ -0,0 +1,6 @@
1
+ export interface CollectionGridProps {
2
+ title?: string;
3
+ featured?: boolean;
4
+ }
5
+ export declare function CollectionGrid({ title, featured, }: CollectionGridProps): import("react").JSX.Element | null;
6
+ //# sourceMappingURL=collection-grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-grid.d.ts","sourceRoot":"","sources":["../../../src/store/components/collection-grid.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,mBAAmB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,cAAc,CAAC,EAC9B,KAAqB,EACrB,QAAQ,GACR,EAAE,mBAAmB,sCAoErB"}
@@ -0,0 +1,6 @@
1
+ export interface FeaturedProductsProps {
2
+ limit?: number;
3
+ title?: string;
4
+ }
5
+ export declare function FeaturedProducts({ limit, title, }: FeaturedProductsProps): import("react").JSX.Element | null;
6
+ //# sourceMappingURL=featured-products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featured-products.d.ts","sourceRoot":"","sources":["../../../src/store/components/featured-products.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,gBAAgB,CAAC,EAChC,KAAS,EACT,KAA2B,GAC3B,EAAE,qBAAqB,sCAgEvB"}
@@ -0,0 +1,6 @@
1
+ export interface FilterChipProps {
2
+ label: string;
3
+ onRemove: () => void;
4
+ }
5
+ export declare function FilterChip({ label, onRemove }: FilterChipProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=filter-chip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-chip.d.ts","sourceRoot":"","sources":["../../../src/store/components/filter-chip.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,eAAe,+BAE9D"}
@@ -0,0 +1,37 @@
1
+ import type { CollectionCardData, Product } from "./_types";
2
+ import { CollectionDetail } from "./collection-detail";
3
+ import { CollectionGrid } from "./collection-grid";
4
+ import { FeaturedProducts } from "./featured-products";
5
+ import { FilterChip } from "./filter-chip";
6
+ import { ProductDetail } from "./product-detail";
7
+ import { ProductListing } from "./product-listing";
8
+ import { ProductReviewsSection } from "./product-reviews-section";
9
+ import { RecentlyViewedProducts } from "./recently-viewed";
10
+ import { RecommendedProducts } from "./recommended-products";
11
+ import { RelatedProducts } from "./related-products";
12
+ import { StarDisplay } from "./star-display";
13
+ import { StarPicker } from "./star-picker";
14
+ import { StockBadge } from "./stock-badge";
15
+ declare const _default: {
16
+ ProductCard: ({ product }: {
17
+ product: Product;
18
+ }) => import("react").JSX.Element;
19
+ FeaturedProducts: typeof FeaturedProducts;
20
+ ProductListing: typeof ProductListing;
21
+ ProductDetail: typeof ProductDetail;
22
+ RelatedProducts: typeof RelatedProducts;
23
+ CollectionCard: ({ collection }: {
24
+ collection: CollectionCardData;
25
+ }) => import("react").JSX.Element;
26
+ CollectionGrid: typeof CollectionGrid;
27
+ CollectionDetail: typeof CollectionDetail;
28
+ FilterChip: typeof FilterChip;
29
+ StarDisplay: typeof StarDisplay;
30
+ StarPicker: typeof StarPicker;
31
+ StockBadge: typeof StockBadge;
32
+ ProductReviewsSection: typeof ProductReviewsSection;
33
+ RecentlyViewedProducts: typeof RecentlyViewedProducts;
34
+ RecommendedProducts: typeof RecommendedProducts;
35
+ };
36
+ export default _default;
37
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/components/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;+BAGf;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE;;;;;qCAOd;QAAE,UAAU,EAAE,kBAAkB,CAAA;KAAE;;;;;;;;;;;AARpE,wBAoB0B"}
@@ -0,0 +1,7 @@
1
+ import type { Product } from "./_types";
2
+ export interface ProductCardProps {
3
+ product: Product;
4
+ showAddToCart?: boolean;
5
+ }
6
+ export declare const ProductCard: import("react").NamedExoticComponent<ProductCardProps>;
7
+ //# sourceMappingURL=product-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-card.d.ts","sourceRoot":"","sources":["../../../src/store/components/product-card.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,wDA4EtB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface ProductDetailProps {
2
+ slug?: string;
3
+ params?: Record<string, string>;
4
+ }
5
+ export declare function ProductDetail(props: ProductDetailProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=product-detail.d.ts.map