@jay-framework/wix-stores-v1 0.25.4 → 0.26.0
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/agent-kit/designer/wix-stores-v1-dashboard-content.md +75 -0
- package/dist/index.client-CU_1d48Q.d.ts +854 -0
- package/dist/index.client.d.ts +8 -0
- package/dist/index.d.ts +8 -845
- package/dist/index.js +14 -4
- package/package.json +31 -22
- package/plugin.yaml +4 -0
|
@@ -0,0 +1,854 @@
|
|
|
1
|
+
import '@jay-framework/wix-cart/client';
|
|
2
|
+
import * as _jay_framework_fullstack_component from '@jay-framework/fullstack-component';
|
|
3
|
+
import { UrlParams, Signals, PageProps } from '@jay-framework/fullstack-component';
|
|
4
|
+
import * as _jay_framework_component from '@jay-framework/component';
|
|
5
|
+
import * as _jay_framework_runtime from '@jay-framework/runtime';
|
|
6
|
+
import { HTMLElementCollectionProxy, HTMLElementProxy } from '@jay-framework/runtime';
|
|
7
|
+
import { WixClient } from '@wix/sdk';
|
|
8
|
+
import { Getter } from '@jay-framework/reactive';
|
|
9
|
+
import { CartState } from '@jay-framework/wix-cart';
|
|
10
|
+
|
|
11
|
+
declare enum MediaType$2 {
|
|
12
|
+
IMAGE,
|
|
13
|
+
VIDEO
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface MediaViewState {
|
|
17
|
+
url: string,
|
|
18
|
+
mediaType: MediaType$2
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface MediaRefs {}
|
|
22
|
+
|
|
23
|
+
declare enum Selected {
|
|
24
|
+
selected,
|
|
25
|
+
notSelected
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface AvailableMediaOfMediaGalleryViewState {
|
|
29
|
+
mediaId: string,
|
|
30
|
+
media: MediaViewState,
|
|
31
|
+
selected: Selected
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface MediaGalleryViewState {
|
|
35
|
+
selectedMedia: MediaViewState,
|
|
36
|
+
availableMedia: Array<AvailableMediaOfMediaGalleryViewState>
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
interface MediaGalleryRefs {
|
|
41
|
+
selectedMedia: MediaRefs,
|
|
42
|
+
availableMedia: {
|
|
43
|
+
selected: HTMLElementCollectionProxy<AvailableMediaOfMediaGalleryViewState, HTMLImageElement | HTMLDivElement>,
|
|
44
|
+
media: MediaRefs
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare enum ProductType$1 {
|
|
49
|
+
PHYSICAL,
|
|
50
|
+
DIGITAL
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare enum StockStatus {
|
|
54
|
+
OUT_OF_STOCK,
|
|
55
|
+
IN_STOCK
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface QuantityOfProductPageViewState {
|
|
59
|
+
quantity: number
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare enum OptionRenderType$1 {
|
|
63
|
+
TEXT_CHOICES,
|
|
64
|
+
COLOR_SWATCH_CHOICES
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface ChoiceOfOptionOfProductPageViewState {
|
|
68
|
+
choiceId: string,
|
|
69
|
+
choiceType: ChoiceType$1,
|
|
70
|
+
name: string,
|
|
71
|
+
colorCode: string,
|
|
72
|
+
inStock: boolean,
|
|
73
|
+
isSelected: boolean
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
interface OptionOfProductPageViewState {
|
|
77
|
+
_id: string,
|
|
78
|
+
name: string,
|
|
79
|
+
optionRenderType: OptionRenderType$1,
|
|
80
|
+
textChoiceSelection: string,
|
|
81
|
+
choices: Array<ChoiceOfOptionOfProductPageViewState>
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface InfoSectionOfProductPageViewState {
|
|
85
|
+
_id: string,
|
|
86
|
+
title: string,
|
|
87
|
+
plainDescription: string
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare enum ModifierType {
|
|
91
|
+
TEXT_CHOICES,
|
|
92
|
+
COLOR_SWATCH_CHOICES,
|
|
93
|
+
FREE_TEXT
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare enum ChoiceType$1 {
|
|
97
|
+
CHOICE_TEXT,
|
|
98
|
+
ONE_COLOR
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare enum ChoiceType$1 {
|
|
102
|
+
CHOICE_TEXT,
|
|
103
|
+
ONE_COLOR
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface ChoiceOfModifierOfProductPageViewState {
|
|
107
|
+
choiceId: string,
|
|
108
|
+
choiceType: ChoiceType$1,
|
|
109
|
+
name: string,
|
|
110
|
+
colorCode: string,
|
|
111
|
+
isSelected: boolean
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface ModifierOfProductPageViewState {
|
|
115
|
+
_id: string,
|
|
116
|
+
name: string,
|
|
117
|
+
modifierType: ModifierType,
|
|
118
|
+
textModifierSelection: string,
|
|
119
|
+
textInputLength: number,
|
|
120
|
+
textInputRequired: boolean,
|
|
121
|
+
choices: Array<ChoiceOfModifierOfProductPageViewState>
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
interface PropOfTagOfSeoDatumOfProductPageViewState {
|
|
125
|
+
key: string,
|
|
126
|
+
value: string
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface MetaOfTagOfSeoDatumOfProductPageViewState {
|
|
130
|
+
key: string,
|
|
131
|
+
value: string
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
interface TagOfSeoDatumOfProductPageViewState {
|
|
135
|
+
position: string,
|
|
136
|
+
type: string,
|
|
137
|
+
props: Array<PropOfTagOfSeoDatumOfProductPageViewState>,
|
|
138
|
+
meta: Array<MetaOfTagOfSeoDatumOfProductPageViewState>,
|
|
139
|
+
children: string
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface KeywordOfSettingOfSeoDatumOfProductPageViewState {
|
|
143
|
+
term: string,
|
|
144
|
+
isMain: boolean,
|
|
145
|
+
origin: string
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
interface SettingOfSeoDatumOfProductPageViewState {
|
|
149
|
+
preventAutoRedirect: boolean,
|
|
150
|
+
keywords: Array<KeywordOfSettingOfSeoDatumOfProductPageViewState>
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
interface SeoDatumOfProductPageViewState {
|
|
154
|
+
tags: Array<TagOfSeoDatumOfProductPageViewState>,
|
|
155
|
+
settings: SettingOfSeoDatumOfProductPageViewState
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface ProductPageViewState {
|
|
159
|
+
_id: string,
|
|
160
|
+
productName: string,
|
|
161
|
+
mediaGallery: MediaGalleryViewState,
|
|
162
|
+
description: string,
|
|
163
|
+
brand: string,
|
|
164
|
+
ribbon: string,
|
|
165
|
+
productType: ProductType$1,
|
|
166
|
+
sku: string,
|
|
167
|
+
price: string,
|
|
168
|
+
strikethroughPrice: string,
|
|
169
|
+
pricePerUnit: string,
|
|
170
|
+
stockStatus: StockStatus,
|
|
171
|
+
quantity: QuantityOfProductPageViewState,
|
|
172
|
+
actionsEnabled: boolean,
|
|
173
|
+
options: Array<OptionOfProductPageViewState>,
|
|
174
|
+
infoSections: Array<InfoSectionOfProductPageViewState>,
|
|
175
|
+
modifiers: Array<ModifierOfProductPageViewState>,
|
|
176
|
+
seoData: SeoDatumOfProductPageViewState
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
type ProductPageSlowViewState = Pick<ProductPageViewState, '_id' | 'productName' | 'description' | 'brand' | 'ribbon' | 'productType'> & {
|
|
180
|
+
options: Array<Pick<ProductPageViewState['options'][number], '_id' | 'name' | 'optionRenderType'> & {
|
|
181
|
+
choices: Array<Pick<ProductPageViewState['options'][number]['choices'][number], 'choiceId' | 'choiceType' | 'name' | 'colorCode' | 'inStock'>>;
|
|
182
|
+
}>;
|
|
183
|
+
infoSections: Array<ProductPageViewState['infoSections'][number]>;
|
|
184
|
+
modifiers: Array<Pick<ProductPageViewState['modifiers'][number], '_id' | 'name' | 'modifierType' | 'textInputLength' | 'textInputRequired'> & {
|
|
185
|
+
choices: Array<Pick<ProductPageViewState['modifiers'][number]['choices'][number], 'choiceId' | 'choiceType' | 'name' | 'colorCode'>>;
|
|
186
|
+
}>;
|
|
187
|
+
seoData: ProductPageViewState['seoData'];
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
type ProductPageFastViewState = Pick<ProductPageViewState, 'sku' | 'price' | 'strikethroughPrice' | 'pricePerUnit' | 'stockStatus' | 'actionsEnabled'> & {
|
|
191
|
+
mediaGallery: ProductPageViewState['mediaGallery'];
|
|
192
|
+
quantity: ProductPageViewState['quantity'];
|
|
193
|
+
options: Array<Pick<ProductPageViewState['options'][number], '_id' | 'textChoiceSelection'> & {
|
|
194
|
+
choices: Array<Pick<ProductPageViewState['options'][number]['choices'][number], 'choiceId' | 'isSelected'>>;
|
|
195
|
+
}>;
|
|
196
|
+
modifiers: Array<Pick<ProductPageViewState['modifiers'][number], '_id' | 'textModifierSelection'> & {
|
|
197
|
+
choices: Array<Pick<ProductPageViewState['modifiers'][number]['choices'][number], 'choiceId' | 'isSelected'>>;
|
|
198
|
+
}>;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
type ProductPageInteractiveViewState = Pick<ProductPageViewState, 'sku' | 'price' | 'strikethroughPrice' | 'pricePerUnit' | 'stockStatus' | 'actionsEnabled'> & {
|
|
202
|
+
mediaGallery: ProductPageViewState['mediaGallery'];
|
|
203
|
+
quantity: ProductPageViewState['quantity'];
|
|
204
|
+
options: Array<Pick<ProductPageViewState['options'][number], '_id' | 'textChoiceSelection'> & {
|
|
205
|
+
choices: Array<Pick<ProductPageViewState['options'][number]['choices'][number], 'choiceId' | 'isSelected'>>;
|
|
206
|
+
}>;
|
|
207
|
+
modifiers: Array<Pick<ProductPageViewState['modifiers'][number], '_id' | 'textModifierSelection'> & {
|
|
208
|
+
choices: Array<Pick<ProductPageViewState['modifiers'][number]['choices'][number], 'choiceId' | 'isSelected'>>;
|
|
209
|
+
}>;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
interface ProductPageRefs {
|
|
214
|
+
addToCartButton: HTMLElementProxy<ProductPageViewState, HTMLButtonElement>,
|
|
215
|
+
buyNowButton: HTMLElementProxy<ProductPageViewState, HTMLButtonElement>,
|
|
216
|
+
mediaGallery: MediaGalleryRefs,
|
|
217
|
+
quantity: {
|
|
218
|
+
decrementButton: HTMLElementProxy<QuantityOfProductPageViewState, HTMLButtonElement>,
|
|
219
|
+
incrementButton: HTMLElementProxy<QuantityOfProductPageViewState, HTMLButtonElement>,
|
|
220
|
+
quantity: HTMLElementProxy<QuantityOfProductPageViewState, HTMLInputElement>
|
|
221
|
+
},
|
|
222
|
+
options: {
|
|
223
|
+
textChoice: HTMLElementCollectionProxy<OptionOfProductPageViewState, HTMLSelectElement>,
|
|
224
|
+
choices: {
|
|
225
|
+
choiceButton: HTMLElementCollectionProxy<ChoiceOfOptionOfProductPageViewState, HTMLButtonElement>
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
modifiers: {
|
|
229
|
+
textModifier: HTMLElementCollectionProxy<ModifierOfProductPageViewState, HTMLSelectElement>,
|
|
230
|
+
textInput: HTMLElementCollectionProxy<ModifierOfProductPageViewState, HTMLInputElement | HTMLAreaElement>,
|
|
231
|
+
choices: {
|
|
232
|
+
choiceButton: HTMLElementCollectionProxy<ChoiceOfModifierOfProductPageViewState, HTMLButtonElement>
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
interface WixStoresV1Config {
|
|
238
|
+
/**
|
|
239
|
+
* Locale product card prices are formatted with (BCP 47, e.g. "he-IL" — a Wix site's regional setting).
|
|
240
|
+
* Not set = the API's formatted price.
|
|
241
|
+
*/
|
|
242
|
+
locale: string | null;
|
|
243
|
+
/**
|
|
244
|
+
* Product slugs listed first, in this order, by the default (relevance, unfiltered) product search — e.g. a
|
|
245
|
+
* Wix collection's manual order, which no public V1 query returns. Other products follow by numericId.
|
|
246
|
+
* Empty = the API's order.
|
|
247
|
+
*/
|
|
248
|
+
productOrder: string[];
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
interface WixStoresV1Service extends WixStoresV1Config {
|
|
252
|
+
wixClient: WixClient;
|
|
253
|
+
}
|
|
254
|
+
declare const WIX_STORES_V1_SERVICE_MARKER: _jay_framework_fullstack_component.ServiceMarker<WixStoresV1Service>;
|
|
255
|
+
declare function provideWixStoresV1Service(wixClient: WixClient, config?: Partial<WixStoresV1Config>): WixStoresV1Service;
|
|
256
|
+
|
|
257
|
+
declare enum OptionRenderType {
|
|
258
|
+
TEXT_CHOICES,
|
|
259
|
+
COLOR_SWATCH_CHOICES
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare enum ChoiceType {
|
|
263
|
+
CHOICE_TEXT,
|
|
264
|
+
ONE_COLOR
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
interface ChoiceOfProductOptionsViewState {
|
|
268
|
+
choiceId: string,
|
|
269
|
+
name: string,
|
|
270
|
+
choiceType: ChoiceType,
|
|
271
|
+
colorCode: string,
|
|
272
|
+
inStock: boolean,
|
|
273
|
+
variantId: string,
|
|
274
|
+
isSelected: boolean
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
interface ProductOptionsViewState {
|
|
278
|
+
_id: string,
|
|
279
|
+
name: string,
|
|
280
|
+
optionRenderType: OptionRenderType,
|
|
281
|
+
choices: Array<ChoiceOfProductOptionsViewState>
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
interface ProductOptionsRepeatedRefs {
|
|
286
|
+
choices: {
|
|
287
|
+
choiceButton: HTMLElementCollectionProxy<ChoiceOfProductOptionsViewState, HTMLButtonElement>
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare enum MediaType$1 {
|
|
292
|
+
IMAGE,
|
|
293
|
+
VIDEO
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
interface MainMediaOfProductCardViewState {
|
|
297
|
+
url: string,
|
|
298
|
+
altText: string,
|
|
299
|
+
mediaType: MediaType$1
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
interface ThumbnailOfProductCardViewState {
|
|
303
|
+
url: string,
|
|
304
|
+
altText: string,
|
|
305
|
+
width: number,
|
|
306
|
+
height: number
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare enum AvailabilityStatus {
|
|
310
|
+
IN_STOCK,
|
|
311
|
+
OUT_OF_STOCK,
|
|
312
|
+
PARTIALLY_OUT_OF_STOCK
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare enum PreorderStatus {
|
|
316
|
+
ENABLED,
|
|
317
|
+
DISABLED,
|
|
318
|
+
PARTIALLY_ENABLED
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface InventoryOfProductCardViewState {
|
|
322
|
+
availabilityStatus: AvailabilityStatus,
|
|
323
|
+
preorderStatus: PreorderStatus
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
interface RibbonOfProductCardViewState {
|
|
327
|
+
_id: string,
|
|
328
|
+
name: string
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
interface BrandOfProductCardViewState {
|
|
332
|
+
_id: string,
|
|
333
|
+
name: string
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
declare enum ProductType {
|
|
337
|
+
PHYSICAL,
|
|
338
|
+
DIGITAL
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
declare enum QuickAddType {
|
|
342
|
+
SIMPLE,
|
|
343
|
+
SINGLE_OPTION,
|
|
344
|
+
NEEDS_CONFIGURATION
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
interface ProductCardViewState {
|
|
348
|
+
_id: string,
|
|
349
|
+
name: string,
|
|
350
|
+
slug: string,
|
|
351
|
+
productUrl: string,
|
|
352
|
+
mainMedia: MainMediaOfProductCardViewState,
|
|
353
|
+
thumbnail: ThumbnailOfProductCardViewState,
|
|
354
|
+
price: string,
|
|
355
|
+
strikethroughPrice: string,
|
|
356
|
+
hasDiscount: boolean,
|
|
357
|
+
inventory: InventoryOfProductCardViewState,
|
|
358
|
+
ribbon: RibbonOfProductCardViewState,
|
|
359
|
+
hasRibbon: boolean,
|
|
360
|
+
brand: BrandOfProductCardViewState,
|
|
361
|
+
productType: ProductType,
|
|
362
|
+
isAddingToCart: boolean,
|
|
363
|
+
quickAddType: QuickAddType,
|
|
364
|
+
quickOption: ProductOptionsViewState
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
interface ProductCardRepeatedRefs {
|
|
369
|
+
productLink: HTMLElementCollectionProxy<ProductCardViewState, HTMLAnchorElement>,
|
|
370
|
+
addToCartButton: HTMLElementCollectionProxy<ProductCardViewState, HTMLButtonElement>,
|
|
371
|
+
viewOptionsButton: HTMLElementCollectionProxy<ProductCardViewState, HTMLButtonElement>,
|
|
372
|
+
quickOption: ProductOptionsRepeatedRefs
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Wix Stores Catalog V1 Product Mapping Utilities
|
|
377
|
+
*
|
|
378
|
+
* Maps Wix Stores Catalog V1 product responses to view state contracts.
|
|
379
|
+
*
|
|
380
|
+
* Key V1 vs V3 differences handled here:
|
|
381
|
+
* - V1 prices are numbers (289), V3 are strings ("120")
|
|
382
|
+
* - V1 has price.formatted.price, V3 doesn't include formatted in response
|
|
383
|
+
* - V1 uses stock.inStock/inventoryStatus, V3 uses inventory.availabilityStatus
|
|
384
|
+
* - V1 media URLs are complete, V3 uses wix:image:// URIs
|
|
385
|
+
* - V1 uses productOptions[], V3 uses options[]
|
|
386
|
+
*
|
|
387
|
+
* Reference: wix/exploration/query-products-catalog-v1/output/individual/*.json
|
|
388
|
+
*/
|
|
389
|
+
|
|
390
|
+
interface CollectionViewState {
|
|
391
|
+
_id: string;
|
|
392
|
+
name: string;
|
|
393
|
+
slug: string;
|
|
394
|
+
description: string;
|
|
395
|
+
imageUrl: string;
|
|
396
|
+
productCount: number;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Configuration passed from server to client for Wix Stores V1.
|
|
401
|
+
*/
|
|
402
|
+
interface WixStoresV1InitData {
|
|
403
|
+
/** Enable client-side cart operations */
|
|
404
|
+
enableClientCart: boolean;
|
|
405
|
+
/** Enable client-side search */
|
|
406
|
+
enableClientSearch: boolean;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Reactive cart indicator state.
|
|
410
|
+
*/
|
|
411
|
+
interface ReactiveCartIndicator {
|
|
412
|
+
itemCount: Getter<number>;
|
|
413
|
+
hasItems: Getter<boolean>;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Result of a cart operation that modifies items.
|
|
417
|
+
*/
|
|
418
|
+
interface CartOperationResult {
|
|
419
|
+
cartState: CartState;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Client-side Wix Stores V1 context interface.
|
|
423
|
+
*/
|
|
424
|
+
interface WixStoresV1Context {
|
|
425
|
+
cartIndicator: ReactiveCartIndicator;
|
|
426
|
+
refreshCartIndicator(): Promise<void>;
|
|
427
|
+
getEstimatedCart(): Promise<CartState>;
|
|
428
|
+
addToCart(productId: string, quantity?: number, variantId?: string, options?: Record<string, string>): Promise<CartOperationResult>;
|
|
429
|
+
removeLineItems(lineItemIds: string[]): Promise<CartOperationResult>;
|
|
430
|
+
updateLineItemQuantity(lineItemId: string, quantity: number): Promise<CartOperationResult>;
|
|
431
|
+
clearCart(): Promise<void>;
|
|
432
|
+
applyCoupon(couponCode: string): Promise<CartOperationResult>;
|
|
433
|
+
removeCoupon(): Promise<CartOperationResult>;
|
|
434
|
+
loadMoreCollectionProducts(collectionId: string, page: number, pageSize: number): Promise<{
|
|
435
|
+
products: ProductCardViewState[];
|
|
436
|
+
hasMore: boolean;
|
|
437
|
+
totalProducts: number;
|
|
438
|
+
}>;
|
|
439
|
+
getCollections(): Promise<CollectionViewState[]>;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Context marker for client-side Wix Stores V1 operations.
|
|
443
|
+
*/
|
|
444
|
+
declare const WIX_STORES_V1_CONTEXT: _jay_framework_runtime.ContextMarker<WixStoresV1Context>;
|
|
445
|
+
/**
|
|
446
|
+
* Initialize and register the Wix Stores V1 client context.
|
|
447
|
+
*
|
|
448
|
+
* Assumes WIX_CLIENT_CONTEXT and WIX_CART_CONTEXT are already initialized.
|
|
449
|
+
*/
|
|
450
|
+
declare function provideWixStoresV1Context(): WixStoresV1Context;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* URL parameters for product page routes
|
|
454
|
+
*/
|
|
455
|
+
interface ProductPageParams extends UrlParams {
|
|
456
|
+
slug: string;
|
|
457
|
+
}
|
|
458
|
+
interface InteractiveVariant {
|
|
459
|
+
_id: string;
|
|
460
|
+
sku: string;
|
|
461
|
+
price: string;
|
|
462
|
+
strikethroughPrice: string;
|
|
463
|
+
choices: Record<string, string>;
|
|
464
|
+
inventoryStatus: StockStatus;
|
|
465
|
+
}
|
|
466
|
+
interface ProductSlowCarryForward {
|
|
467
|
+
productId: string;
|
|
468
|
+
mediaGallery: MediaGalleryViewState;
|
|
469
|
+
options: ProductPageFastViewState['options'];
|
|
470
|
+
pricePerUnit: string;
|
|
471
|
+
stockStatus: StockStatus;
|
|
472
|
+
variants: InteractiveVariant[];
|
|
473
|
+
}
|
|
474
|
+
interface ProductFastCarryForward {
|
|
475
|
+
productId: string;
|
|
476
|
+
variants: InteractiveVariant[];
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Product Page Component (V1)
|
|
480
|
+
*
|
|
481
|
+
* A complete headless product page using Wix Catalog V1 API.
|
|
482
|
+
*/
|
|
483
|
+
declare const productPage: _jay_framework_fullstack_component.JayStackComponentDefinition<ProductPageRefs, ProductPageSlowViewState, ProductPageFastViewState, ProductPageInteractiveViewState, [ProductSlowCarryForward, WixStoresV1Service], [Signals<ProductPageFastViewState>, ProductFastCarryForward, WixStoresV1Context], PageProps & ProductPageParams, ProductPageParams, _jay_framework_component.JayComponentCore<PageProps & ProductPageParams, ProductPageInteractiveViewState>>;
|
|
484
|
+
|
|
485
|
+
interface RangeOfPriceRangeOfFilterOfProductSearchViewState {
|
|
486
|
+
rangeId: string,
|
|
487
|
+
label: string,
|
|
488
|
+
minValue: number,
|
|
489
|
+
maxValue: number,
|
|
490
|
+
isSelected: boolean
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
interface PriceRangeOfFilterOfProductSearchViewState {
|
|
494
|
+
minPrice: number,
|
|
495
|
+
maxPrice: number,
|
|
496
|
+
minBound: number,
|
|
497
|
+
maxBound: number,
|
|
498
|
+
ranges: Array<RangeOfPriceRangeOfFilterOfProductSearchViewState>
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
interface CategoryOfCategoryFilterOfFilterOfProductSearchViewState {
|
|
502
|
+
categoryId: string,
|
|
503
|
+
categoryName: string,
|
|
504
|
+
categorySlug: string,
|
|
505
|
+
isSelected: boolean
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
interface CategoryFilterOfFilterOfProductSearchViewState {
|
|
509
|
+
categories: Array<CategoryOfCategoryFilterOfFilterOfProductSearchViewState>
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
interface FilterOfProductSearchViewState {
|
|
513
|
+
priceRange: PriceRangeOfFilterOfProductSearchViewState,
|
|
514
|
+
categoryFilter: CategoryFilterOfFilterOfProductSearchViewState
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
declare enum CurrentSort {
|
|
518
|
+
relevance,
|
|
519
|
+
priceAsc,
|
|
520
|
+
priceDesc,
|
|
521
|
+
newest,
|
|
522
|
+
nameAsc,
|
|
523
|
+
nameDesc
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
interface SortByOfProductSearchViewState {
|
|
527
|
+
currentSort: CurrentSort
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
interface SuggestionOfProductSearchViewState {
|
|
531
|
+
suggestionId: string,
|
|
532
|
+
suggestionText: string
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
interface ProductSearchViewState {
|
|
536
|
+
searchExpression: string,
|
|
537
|
+
searchFields: string,
|
|
538
|
+
fuzzySearch: boolean,
|
|
539
|
+
isSearching: boolean,
|
|
540
|
+
hasSearched: boolean,
|
|
541
|
+
searchResults: Array<ProductCardViewState>,
|
|
542
|
+
resultCount: number,
|
|
543
|
+
hasResults: boolean,
|
|
544
|
+
emptyStateMessage: string,
|
|
545
|
+
filters: FilterOfProductSearchViewState,
|
|
546
|
+
sortBy: SortByOfProductSearchViewState,
|
|
547
|
+
hasMore: boolean,
|
|
548
|
+
loadedCount: number,
|
|
549
|
+
totalCount: number,
|
|
550
|
+
hasSuggestions: boolean,
|
|
551
|
+
suggestions: Array<SuggestionOfProductSearchViewState>
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
type ProductSearchSlowViewState = Pick<ProductSearchViewState, 'searchFields' | 'fuzzySearch' | 'emptyStateMessage'> & {
|
|
555
|
+
filters: {
|
|
556
|
+
categoryFilter: {
|
|
557
|
+
categories: Array<Pick<ProductSearchViewState['filters']['categoryFilter']['categories'][number], 'categoryId' | 'categoryName' | 'categorySlug'>>;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
type ProductSearchFastViewState = Pick<ProductSearchViewState, 'searchExpression' | 'isSearching' | 'hasSearched' | 'resultCount' | 'hasResults' | 'hasMore' | 'loadedCount' | 'totalCount' | 'hasSuggestions'> & {
|
|
563
|
+
searchResults: Array<ProductSearchViewState['searchResults'][number]>;
|
|
564
|
+
filters: {
|
|
565
|
+
priceRange: ProductSearchViewState['filters']['priceRange'];
|
|
566
|
+
categoryFilter: {
|
|
567
|
+
categories: Array<Pick<ProductSearchViewState['filters']['categoryFilter']['categories'][number], 'categoryId' | 'isSelected'>>;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
sortBy: ProductSearchViewState['sortBy'];
|
|
571
|
+
suggestions: Array<ProductSearchViewState['suggestions'][number]>;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
type ProductSearchInteractiveViewState = Pick<ProductSearchViewState, 'searchExpression' | 'isSearching' | 'hasSearched' | 'resultCount' | 'hasResults' | 'hasMore' | 'loadedCount' | 'totalCount' | 'hasSuggestions'> & {
|
|
575
|
+
searchResults: Array<ProductSearchViewState['searchResults'][number]>;
|
|
576
|
+
filters: {
|
|
577
|
+
priceRange: ProductSearchViewState['filters']['priceRange'];
|
|
578
|
+
categoryFilter: {
|
|
579
|
+
categories: Array<Pick<ProductSearchViewState['filters']['categoryFilter']['categories'][number], 'categoryId' | 'isSelected'>>;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
sortBy: ProductSearchViewState['sortBy'];
|
|
583
|
+
suggestions: Array<ProductSearchViewState['suggestions'][number]>;
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
interface ProductSearchRefs {
|
|
588
|
+
searchExpression: HTMLElementProxy<ProductSearchViewState, HTMLInputElement>,
|
|
589
|
+
searchButton: HTMLElementProxy<ProductSearchViewState, HTMLButtonElement>,
|
|
590
|
+
clearSearchButton: HTMLElementProxy<ProductSearchViewState, HTMLButtonElement>,
|
|
591
|
+
loadMoreButton: HTMLElementProxy<ProductSearchViewState, HTMLButtonElement>,
|
|
592
|
+
searchResults: ProductCardRepeatedRefs,
|
|
593
|
+
filters: {
|
|
594
|
+
clearFilters: HTMLElementProxy<FilterOfProductSearchViewState, HTMLButtonElement>,
|
|
595
|
+
priceRange: {
|
|
596
|
+
minPrice: HTMLElementProxy<PriceRangeOfFilterOfProductSearchViewState, HTMLInputElement>,
|
|
597
|
+
maxPrice: HTMLElementProxy<PriceRangeOfFilterOfProductSearchViewState, HTMLInputElement>,
|
|
598
|
+
ranges: {
|
|
599
|
+
isSelected: HTMLElementCollectionProxy<RangeOfPriceRangeOfFilterOfProductSearchViewState, HTMLInputElement>
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
categoryFilter: {
|
|
603
|
+
categories: {
|
|
604
|
+
isSelected: HTMLElementCollectionProxy<CategoryOfCategoryFilterOfFilterOfProductSearchViewState, HTMLInputElement>
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
sortBy: {
|
|
609
|
+
sortDropdown: HTMLElementProxy<SortByOfProductSearchViewState, HTMLSelectElement>
|
|
610
|
+
},
|
|
611
|
+
suggestions: {
|
|
612
|
+
suggestionButton: HTMLElementCollectionProxy<SuggestionOfProductSearchViewState, HTMLButtonElement>
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Collection info for filtering (V1 uses collections, not categories)
|
|
618
|
+
*/
|
|
619
|
+
type CollectionInfos = ProductSearchSlowViewState['filters']['categoryFilter']['categories'];
|
|
620
|
+
interface SearchSlowCarryForward {
|
|
621
|
+
searchFields: string;
|
|
622
|
+
fuzzySearch: boolean;
|
|
623
|
+
collections: CollectionInfos;
|
|
624
|
+
}
|
|
625
|
+
interface SearchFastCarryForward {
|
|
626
|
+
searchFields: string;
|
|
627
|
+
fuzzySearch: boolean;
|
|
628
|
+
collections: CollectionInfos;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* Product Search Component (V1)
|
|
632
|
+
*
|
|
633
|
+
* A complete headless product search using Wix Catalog V1 API.
|
|
634
|
+
* Uses collections for filtering and page-based pagination.
|
|
635
|
+
*/
|
|
636
|
+
declare const productSearch: _jay_framework_fullstack_component.JayStackComponentDefinition<ProductSearchRefs, ProductSearchSlowViewState, ProductSearchFastViewState, ProductSearchInteractiveViewState, [SearchSlowCarryForward, WixStoresV1Service], [Signals<ProductSearchFastViewState>, SearchFastCarryForward, WixStoresV1Context], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, ProductSearchInteractiveViewState>>;
|
|
637
|
+
|
|
638
|
+
interface MainMediaOfMediaOfCategoryPageViewState {
|
|
639
|
+
_id: string,
|
|
640
|
+
url: string,
|
|
641
|
+
altText: string,
|
|
642
|
+
mediaType: MediaType
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
declare enum MediaType {
|
|
646
|
+
IMAGE,
|
|
647
|
+
VIDEO,
|
|
648
|
+
AUDIO,
|
|
649
|
+
DOCUMENT,
|
|
650
|
+
ZIP
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
declare enum MediaType {
|
|
654
|
+
IMAGE,
|
|
655
|
+
VIDEO,
|
|
656
|
+
AUDIO,
|
|
657
|
+
DOCUMENT,
|
|
658
|
+
ZIP
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
interface ThumbnailOfItemOfMediaOfCategoryPageViewState {
|
|
662
|
+
url: string,
|
|
663
|
+
width: number,
|
|
664
|
+
height: number,
|
|
665
|
+
format: string
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
interface ItemOfMediaOfCategoryPageViewState {
|
|
669
|
+
_id: string,
|
|
670
|
+
url: string,
|
|
671
|
+
altText: string,
|
|
672
|
+
title: string,
|
|
673
|
+
mediaType: MediaType,
|
|
674
|
+
thumbnail: ThumbnailOfItemOfMediaOfCategoryPageViewState
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
interface MediaOfCategoryPageViewState {
|
|
678
|
+
mainMedia: MainMediaOfMediaOfCategoryPageViewState,
|
|
679
|
+
items: Array<ItemOfMediaOfCategoryPageViewState>
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
interface BreadcrumbOfCategoryPageViewState {
|
|
683
|
+
categoryId: string,
|
|
684
|
+
categoryName: string,
|
|
685
|
+
categorySlug: string
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
interface CategoryPageViewState {
|
|
689
|
+
_id: string,
|
|
690
|
+
name: string,
|
|
691
|
+
description: string,
|
|
692
|
+
slug: string,
|
|
693
|
+
visible: boolean,
|
|
694
|
+
numberOfProducts: number,
|
|
695
|
+
hasImage: boolean,
|
|
696
|
+
media: MediaOfCategoryPageViewState,
|
|
697
|
+
breadcrumbs: Array<BreadcrumbOfCategoryPageViewState>,
|
|
698
|
+
products: Array<ProductCardViewState>,
|
|
699
|
+
loadedProducts: Array<ProductCardViewState>,
|
|
700
|
+
hasMore: boolean,
|
|
701
|
+
loadedCount: number,
|
|
702
|
+
isLoading: boolean,
|
|
703
|
+
hasProducts: boolean
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
type CategoryPageSlowViewState = Pick<CategoryPageViewState, '_id' | 'name' | 'description' | 'slug' | 'visible' | 'numberOfProducts' | 'hasImage'> & {
|
|
707
|
+
media: CategoryPageViewState['media'];
|
|
708
|
+
breadcrumbs: Array<CategoryPageViewState['breadcrumbs'][number]>;
|
|
709
|
+
products: Array<Pick<CategoryPageViewState['products'][number], '_id' | 'name' | 'slug' | 'productUrl' | 'hasDiscount' | 'hasRibbon' | 'productType' | 'quickAddType'> & {
|
|
710
|
+
mainMedia: CategoryPageViewState['products'][number]['mainMedia'];
|
|
711
|
+
thumbnail: CategoryPageViewState['products'][number]['thumbnail'];
|
|
712
|
+
inventory: CategoryPageViewState['products'][number]['inventory'];
|
|
713
|
+
ribbon: CategoryPageViewState['products'][number]['ribbon'];
|
|
714
|
+
brand: CategoryPageViewState['products'][number]['brand'];
|
|
715
|
+
quickOption: Pick<CategoryPageViewState['products'][number]['quickOption'], '_id' | 'name' | 'optionRenderType'> & {
|
|
716
|
+
choices: Array<Pick<CategoryPageViewState['products'][number]['quickOption']['choices'][number], 'choiceId' | 'name' | 'choiceType' | 'colorCode' | 'variantId'>>;
|
|
717
|
+
};
|
|
718
|
+
}>;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
type CategoryPageFastViewState = Pick<CategoryPageViewState, 'hasMore' | 'loadedCount' | 'isLoading' | 'hasProducts'> & {
|
|
722
|
+
products: Array<Pick<CategoryPageViewState['products'][number], '_id' | 'price' | 'strikethroughPrice' | 'isAddingToCart'> & {
|
|
723
|
+
quickOption: {
|
|
724
|
+
choices: Array<Pick<CategoryPageViewState['products'][number]['quickOption']['choices'][number], 'choiceId' | 'inStock' | 'isSelected'>>;
|
|
725
|
+
};
|
|
726
|
+
}>;
|
|
727
|
+
loadedProducts: Array<CategoryPageViewState['loadedProducts'][number]>;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
type CategoryPageInteractiveViewState = Pick<CategoryPageViewState, 'hasMore' | 'loadedCount' | 'isLoading' | 'hasProducts'> & {
|
|
731
|
+
products: Array<Pick<CategoryPageViewState['products'][number], '_id' | 'price' | 'strikethroughPrice' | 'isAddingToCart'> & {
|
|
732
|
+
quickOption: {
|
|
733
|
+
choices: Array<Pick<CategoryPageViewState['products'][number]['quickOption']['choices'][number], 'choiceId' | 'inStock' | 'isSelected'>>;
|
|
734
|
+
};
|
|
735
|
+
}>;
|
|
736
|
+
loadedProducts: Array<CategoryPageViewState['loadedProducts'][number]>;
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
interface CategoryPageRefs {
|
|
741
|
+
loadMoreButton: HTMLElementProxy<CategoryPageViewState, HTMLButtonElement>,
|
|
742
|
+
breadcrumbs: {
|
|
743
|
+
categoryLink: HTMLElementCollectionProxy<BreadcrumbOfCategoryPageViewState, HTMLAnchorElement>
|
|
744
|
+
},
|
|
745
|
+
products: ProductCardRepeatedRefs,
|
|
746
|
+
loadedProducts: ProductCardRepeatedRefs
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* URL parameters for collection page routes
|
|
751
|
+
*/
|
|
752
|
+
interface CollectionPageParams extends UrlParams {
|
|
753
|
+
slug: string;
|
|
754
|
+
}
|
|
755
|
+
interface CollectionSlowCarryForward {
|
|
756
|
+
collectionId: string;
|
|
757
|
+
collectionSlug: string;
|
|
758
|
+
totalProducts: number;
|
|
759
|
+
products: ProductCardViewState[];
|
|
760
|
+
currentOffset: number;
|
|
761
|
+
}
|
|
762
|
+
interface CollectionFastCarryForward {
|
|
763
|
+
collectionId: string;
|
|
764
|
+
totalProducts: number;
|
|
765
|
+
currentOffset: number;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Collection Page Component (V1)
|
|
769
|
+
*
|
|
770
|
+
* A headless collection page using Wix Catalog V1 API.
|
|
771
|
+
* Uses the same contract as category-page for template compatibility.
|
|
772
|
+
*/
|
|
773
|
+
declare const collectionPage: _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryPageRefs, CategoryPageSlowViewState, CategoryPageFastViewState, CategoryPageInteractiveViewState, [CollectionSlowCarryForward, WixStoresV1Service], [Signals<CategoryPageFastViewState>, CollectionFastCarryForward, WixStoresV1Context], PageProps & CollectionPageParams, CollectionPageParams, _jay_framework_component.JayComponentCore<PageProps & CollectionPageParams, CategoryPageInteractiveViewState>>;
|
|
774
|
+
declare const categoryPage: _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryPageRefs, CategoryPageSlowViewState, CategoryPageFastViewState, CategoryPageInteractiveViewState, [CollectionSlowCarryForward, WixStoresV1Service], [Signals<CategoryPageFastViewState>, CollectionFastCarryForward, WixStoresV1Context], PageProps & CollectionPageParams, CollectionPageParams, _jay_framework_component.JayComponentCore<PageProps & CollectionPageParams, CategoryPageInteractiveViewState>>;
|
|
775
|
+
|
|
776
|
+
interface CategoryOfCategoryListViewState {
|
|
777
|
+
_id: string,
|
|
778
|
+
name: string,
|
|
779
|
+
slug: string,
|
|
780
|
+
description: string,
|
|
781
|
+
productCount: number,
|
|
782
|
+
imageUrl: string,
|
|
783
|
+
hasImage: boolean
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
interface CategoryListViewState {
|
|
787
|
+
categories: Array<CategoryOfCategoryListViewState>,
|
|
788
|
+
hasCategories: boolean
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
type CategoryListSlowViewState = Pick<CategoryListViewState, 'hasCategories'> & {
|
|
792
|
+
categories: Array<CategoryListViewState['categories'][number]>;
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
type CategoryListFastViewState = {};
|
|
796
|
+
|
|
797
|
+
type CategoryListInteractiveViewState = {};
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
interface CategoryListRefs {
|
|
801
|
+
categories: {
|
|
802
|
+
categoryLink: HTMLElementCollectionProxy<CategoryOfCategoryListViewState, HTMLAnchorElement>
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Collection List Component (V1)
|
|
808
|
+
*
|
|
809
|
+
* A headless component that displays a grid of store collections.
|
|
810
|
+
* Uses the same contract as category-list for template compatibility.
|
|
811
|
+
*
|
|
812
|
+
* Usage:
|
|
813
|
+
* ```html
|
|
814
|
+
* <script type="application/jay-headless"
|
|
815
|
+
* plugin="@jay-framework/wix-stores-v1"
|
|
816
|
+
* contract="category-list"
|
|
817
|
+
* key="collectionList"
|
|
818
|
+
* ></script>
|
|
819
|
+
*
|
|
820
|
+
* <div class="collections-grid">
|
|
821
|
+
* <article forEach="collectionList.categories" trackBy="_id">
|
|
822
|
+
* <a href="/collections/{slug}" ref="collectionList.categories.categoryLink">
|
|
823
|
+
* <img src="{imageUrl}" alt="{name}" />
|
|
824
|
+
* <h2>{name}</h2>
|
|
825
|
+
* <span>{productCount} products</span>
|
|
826
|
+
* </a>
|
|
827
|
+
* </article>
|
|
828
|
+
* </div>
|
|
829
|
+
* ```
|
|
830
|
+
*/
|
|
831
|
+
declare const collectionList: _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>> & {
|
|
832
|
+
withFastRender<NewCarryForward extends object>(fastRender: _jay_framework_fullstack_component.RenderFast<[Record<string, never>, WixStoresV1Service], PageProps, CategoryListFastViewState, NewCarryForward>): _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [_jay_framework_fullstack_component.Signals<CategoryListFastViewState>, NewCarryForward], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>> & {
|
|
833
|
+
withClientDefaults(fn: (props: PageProps) => {
|
|
834
|
+
viewState: CategoryListFastViewState;
|
|
835
|
+
carryForward?: any;
|
|
836
|
+
}): _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [_jay_framework_fullstack_component.Signals<CategoryListFastViewState>, NewCarryForward], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>> & /*elided*/ any;
|
|
837
|
+
withInteractive(comp: _jay_framework_component.ComponentConstructor<PageProps, CategoryListRefs, CategoryListInteractiveViewState, [_jay_framework_fullstack_component.Signals<CategoryListFastViewState>, NewCarryForward], _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>>): _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [_jay_framework_fullstack_component.Signals<CategoryListFastViewState>, NewCarryForward], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>>;
|
|
838
|
+
};
|
|
839
|
+
withInteractive(comp: _jay_framework_component.ComponentConstructor<PageProps, CategoryListRefs, CategoryListInteractiveViewState, [], _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>>): _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>>;
|
|
840
|
+
};
|
|
841
|
+
declare const categoryList: _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>> & {
|
|
842
|
+
withFastRender<NewCarryForward extends object>(fastRender: _jay_framework_fullstack_component.RenderFast<[Record<string, never>, WixStoresV1Service], PageProps, CategoryListFastViewState, NewCarryForward>): _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [_jay_framework_fullstack_component.Signals<CategoryListFastViewState>, NewCarryForward], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>> & {
|
|
843
|
+
withClientDefaults(fn: (props: PageProps) => {
|
|
844
|
+
viewState: CategoryListFastViewState;
|
|
845
|
+
carryForward?: any;
|
|
846
|
+
}): _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [_jay_framework_fullstack_component.Signals<CategoryListFastViewState>, NewCarryForward], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>> & /*elided*/ any;
|
|
847
|
+
withInteractive(comp: _jay_framework_component.ComponentConstructor<PageProps, CategoryListRefs, CategoryListInteractiveViewState, [_jay_framework_fullstack_component.Signals<CategoryListFastViewState>, NewCarryForward], _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>>): _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [_jay_framework_fullstack_component.Signals<CategoryListFastViewState>, NewCarryForward], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>>;
|
|
848
|
+
};
|
|
849
|
+
withInteractive(comp: _jay_framework_component.ComponentConstructor<PageProps, CategoryListRefs, CategoryListInteractiveViewState, [], _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>>): _jay_framework_fullstack_component.JayStackComponentDefinition<CategoryListRefs, CategoryListSlowViewState, CategoryListFastViewState, CategoryListInteractiveViewState, [Record<string, never>, WixStoresV1Service], [], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, CategoryListInteractiveViewState>>;
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
declare const init: _jay_framework_fullstack_component.JayInit<WixStoresV1InitData>;
|
|
853
|
+
|
|
854
|
+
export { type CollectionViewState as C, type ProductCardViewState as P, type ReactiveCartIndicator as R, type WixStoresV1Service as W, WIX_STORES_V1_SERVICE_MARKER as a, WIX_STORES_V1_CONTEXT as b, type WixStoresV1Context as c, type WixStoresV1InitData as d, productPage as e, type ProductPageParams as f, productSearch as g, collectionList as h, categoryList as i, collectionPage as j, categoryPage as k, type CollectionPageParams as l, init as m, provideWixStoresV1Context as n, type CartOperationResult as o, provideWixStoresV1Service as p };
|