@wix/headless-stores 0.0.59 → 0.0.60
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Category } from '../services/category-service.js';
|
|
3
3
|
import { type CategoryServiceConfig } from '../services/category-service.js';
|
|
4
|
+
import { AsChildChildren } from '@wix/headless-utils/react';
|
|
4
5
|
/**
|
|
5
6
|
* Props for Category.Root component
|
|
6
7
|
*/
|
|
@@ -21,7 +22,7 @@ export interface CategoryTriggerProps {
|
|
|
21
22
|
/** Whether to render as a child component */
|
|
22
23
|
asChild?: boolean;
|
|
23
24
|
/** Custom render function when using asChild */
|
|
24
|
-
children?:
|
|
25
|
+
children?: AsChildChildren<{
|
|
25
26
|
category: Category;
|
|
26
27
|
isSelected: boolean;
|
|
27
28
|
onSelect: () => void;
|
|
@@ -39,7 +40,7 @@ export interface CategoryLabelProps {
|
|
|
39
40
|
/** Whether to render as a child component */
|
|
40
41
|
asChild?: boolean;
|
|
41
42
|
/** Custom render function when using asChild */
|
|
42
|
-
children?:
|
|
43
|
+
children?: AsChildChildren<{
|
|
43
44
|
name: string;
|
|
44
45
|
category: Category;
|
|
45
46
|
}>;
|
|
@@ -53,7 +54,7 @@ export interface CategoryIDProps {
|
|
|
53
54
|
/** Whether to render as a child component */
|
|
54
55
|
asChild?: boolean;
|
|
55
56
|
/** Custom render function when using asChild */
|
|
56
|
-
children?:
|
|
57
|
+
children?: AsChildChildren<{
|
|
57
58
|
id: string;
|
|
58
59
|
category: Category;
|
|
59
60
|
}>;
|
|
@@ -67,7 +68,7 @@ export interface CategoryRawProps {
|
|
|
67
68
|
/** Whether to render as a child component */
|
|
68
69
|
asChild?: boolean;
|
|
69
70
|
/** Custom render function when using asChild */
|
|
70
|
-
children?:
|
|
71
|
+
children?: AsChildChildren<{
|
|
71
72
|
category: Category;
|
|
72
73
|
isSelected: boolean;
|
|
73
74
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { V3Product } from '@wix/auto_sdk_stores_products-v-3';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { AsChildChildren } from '@wix/headless-utils/react';
|
|
3
4
|
import { AsContent } from './types.js';
|
|
4
5
|
/**
|
|
5
6
|
* Context for sharing variant options state between components
|
|
@@ -59,9 +60,9 @@ export interface NameProps {
|
|
|
59
60
|
/** Whether to render as a child component */
|
|
60
61
|
asChild?: boolean;
|
|
61
62
|
/** Custom render function when using asChild */
|
|
62
|
-
children?:
|
|
63
|
+
children?: AsChildChildren<{
|
|
63
64
|
name: string;
|
|
64
|
-
}
|
|
65
|
+
}>;
|
|
65
66
|
/** CSS classes to apply to the default element */
|
|
66
67
|
className?: string;
|
|
67
68
|
}
|
|
@@ -97,9 +98,9 @@ export interface DescriptionProps {
|
|
|
97
98
|
/** Whether to render as a child component */
|
|
98
99
|
asChild?: boolean;
|
|
99
100
|
/** Custom render function when using asChild */
|
|
100
|
-
children?:
|
|
101
|
+
children?: AsChildChildren<{
|
|
101
102
|
description: string;
|
|
102
|
-
}
|
|
103
|
+
}>;
|
|
103
104
|
/** CSS classes to apply to the default element */
|
|
104
105
|
className?: string;
|
|
105
106
|
/** Format of the description content */
|
|
@@ -136,10 +137,10 @@ export interface PriceProps {
|
|
|
136
137
|
/** Whether to render as a child component */
|
|
137
138
|
asChild?: boolean;
|
|
138
139
|
/** Custom render function when using asChild */
|
|
139
|
-
children?:
|
|
140
|
+
children?: AsChildChildren<{
|
|
140
141
|
price: string;
|
|
141
142
|
formattedPrice: string;
|
|
142
|
-
}
|
|
143
|
+
}>;
|
|
143
144
|
/** CSS classes to apply to the default element */
|
|
144
145
|
className?: string;
|
|
145
146
|
}
|
|
@@ -175,10 +176,10 @@ export interface CompareAtPriceProps {
|
|
|
175
176
|
/** Whether to render as a child component */
|
|
176
177
|
asChild?: boolean;
|
|
177
178
|
/** Custom render function when using asChild */
|
|
178
|
-
children?:
|
|
179
|
+
children?: AsChildChildren<{
|
|
179
180
|
price: string;
|
|
180
181
|
formattedPrice: string;
|
|
181
|
-
}
|
|
182
|
+
}>;
|
|
182
183
|
/** CSS classes to apply to the default element */
|
|
183
184
|
className?: string;
|
|
184
185
|
}
|
|
@@ -219,9 +220,9 @@ export interface SlugProps {
|
|
|
219
220
|
/** Whether to render as a child component */
|
|
220
221
|
asChild?: boolean;
|
|
221
222
|
/** Custom render function when using asChild */
|
|
222
|
-
children?:
|
|
223
|
+
children?: AsChildChildren<{
|
|
223
224
|
slug: string;
|
|
224
|
-
}
|
|
225
|
+
}>;
|
|
225
226
|
/** CSS classes to apply to the default element */
|
|
226
227
|
className?: string;
|
|
227
228
|
}
|
|
@@ -255,9 +256,9 @@ export interface RawProps {
|
|
|
255
256
|
/** Whether to render as a child component */
|
|
256
257
|
asChild?: boolean;
|
|
257
258
|
/** Custom render function when using asChild */
|
|
258
|
-
children?:
|
|
259
|
+
children?: AsChildChildren<{
|
|
259
260
|
product: V3Product;
|
|
260
|
-
}
|
|
261
|
+
}>;
|
|
261
262
|
/** CSS classes to apply to the default element */
|
|
262
263
|
className?: string;
|
|
263
264
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { V3Product } from '@wix/auto_sdk_stores_products-v-3';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { ProductsListServiceConfig } from '../services/products-list-service.js';
|
|
4
|
+
import { AsChildChildren } from '@wix/headless-utils/react';
|
|
4
5
|
/**
|
|
5
6
|
* Props for the ProductList root component following the documented API
|
|
6
7
|
*/
|
|
@@ -140,9 +141,9 @@ export interface TotalsDisplayedProps {
|
|
|
140
141
|
/** Whether to render as a child component */
|
|
141
142
|
asChild?: boolean;
|
|
142
143
|
/** Custom render function when using asChild */
|
|
143
|
-
children?:
|
|
144
|
+
children?: AsChildChildren<{
|
|
144
145
|
displayedProducts: number;
|
|
145
|
-
}
|
|
146
|
+
}>;
|
|
146
147
|
/** CSS classes to apply to the default element */
|
|
147
148
|
className?: string;
|
|
148
149
|
}
|
package/dist/react/Category.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Category } from '../services/category-service.js';
|
|
3
3
|
import { type CategoryServiceConfig } from '../services/category-service.js';
|
|
4
|
+
import { AsChildChildren } from '@wix/headless-utils/react';
|
|
4
5
|
/**
|
|
5
6
|
* Props for Category.Root component
|
|
6
7
|
*/
|
|
@@ -21,7 +22,7 @@ export interface CategoryTriggerProps {
|
|
|
21
22
|
/** Whether to render as a child component */
|
|
22
23
|
asChild?: boolean;
|
|
23
24
|
/** Custom render function when using asChild */
|
|
24
|
-
children?:
|
|
25
|
+
children?: AsChildChildren<{
|
|
25
26
|
category: Category;
|
|
26
27
|
isSelected: boolean;
|
|
27
28
|
onSelect: () => void;
|
|
@@ -39,7 +40,7 @@ export interface CategoryLabelProps {
|
|
|
39
40
|
/** Whether to render as a child component */
|
|
40
41
|
asChild?: boolean;
|
|
41
42
|
/** Custom render function when using asChild */
|
|
42
|
-
children?:
|
|
43
|
+
children?: AsChildChildren<{
|
|
43
44
|
name: string;
|
|
44
45
|
category: Category;
|
|
45
46
|
}>;
|
|
@@ -53,7 +54,7 @@ export interface CategoryIDProps {
|
|
|
53
54
|
/** Whether to render as a child component */
|
|
54
55
|
asChild?: boolean;
|
|
55
56
|
/** Custom render function when using asChild */
|
|
56
|
-
children?:
|
|
57
|
+
children?: AsChildChildren<{
|
|
57
58
|
id: string;
|
|
58
59
|
category: Category;
|
|
59
60
|
}>;
|
|
@@ -67,7 +68,7 @@ export interface CategoryRawProps {
|
|
|
67
68
|
/** Whether to render as a child component */
|
|
68
69
|
asChild?: boolean;
|
|
69
70
|
/** Custom render function when using asChild */
|
|
70
|
-
children?:
|
|
71
|
+
children?: AsChildChildren<{
|
|
71
72
|
category: Category;
|
|
72
73
|
isSelected: boolean;
|
|
73
74
|
}>;
|
package/dist/react/Product.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { V3Product } from '@wix/auto_sdk_stores_products-v-3';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { AsChildChildren } from '@wix/headless-utils/react';
|
|
3
4
|
import { AsContent } from './types.js';
|
|
4
5
|
/**
|
|
5
6
|
* Context for sharing variant options state between components
|
|
@@ -59,9 +60,9 @@ export interface NameProps {
|
|
|
59
60
|
/** Whether to render as a child component */
|
|
60
61
|
asChild?: boolean;
|
|
61
62
|
/** Custom render function when using asChild */
|
|
62
|
-
children?:
|
|
63
|
+
children?: AsChildChildren<{
|
|
63
64
|
name: string;
|
|
64
|
-
}
|
|
65
|
+
}>;
|
|
65
66
|
/** CSS classes to apply to the default element */
|
|
66
67
|
className?: string;
|
|
67
68
|
}
|
|
@@ -97,9 +98,9 @@ export interface DescriptionProps {
|
|
|
97
98
|
/** Whether to render as a child component */
|
|
98
99
|
asChild?: boolean;
|
|
99
100
|
/** Custom render function when using asChild */
|
|
100
|
-
children?:
|
|
101
|
+
children?: AsChildChildren<{
|
|
101
102
|
description: string;
|
|
102
|
-
}
|
|
103
|
+
}>;
|
|
103
104
|
/** CSS classes to apply to the default element */
|
|
104
105
|
className?: string;
|
|
105
106
|
/** Format of the description content */
|
|
@@ -136,10 +137,10 @@ export interface PriceProps {
|
|
|
136
137
|
/** Whether to render as a child component */
|
|
137
138
|
asChild?: boolean;
|
|
138
139
|
/** Custom render function when using asChild */
|
|
139
|
-
children?:
|
|
140
|
+
children?: AsChildChildren<{
|
|
140
141
|
price: string;
|
|
141
142
|
formattedPrice: string;
|
|
142
|
-
}
|
|
143
|
+
}>;
|
|
143
144
|
/** CSS classes to apply to the default element */
|
|
144
145
|
className?: string;
|
|
145
146
|
}
|
|
@@ -175,10 +176,10 @@ export interface CompareAtPriceProps {
|
|
|
175
176
|
/** Whether to render as a child component */
|
|
176
177
|
asChild?: boolean;
|
|
177
178
|
/** Custom render function when using asChild */
|
|
178
|
-
children?:
|
|
179
|
+
children?: AsChildChildren<{
|
|
179
180
|
price: string;
|
|
180
181
|
formattedPrice: string;
|
|
181
|
-
}
|
|
182
|
+
}>;
|
|
182
183
|
/** CSS classes to apply to the default element */
|
|
183
184
|
className?: string;
|
|
184
185
|
}
|
|
@@ -219,9 +220,9 @@ export interface SlugProps {
|
|
|
219
220
|
/** Whether to render as a child component */
|
|
220
221
|
asChild?: boolean;
|
|
221
222
|
/** Custom render function when using asChild */
|
|
222
|
-
children?:
|
|
223
|
+
children?: AsChildChildren<{
|
|
223
224
|
slug: string;
|
|
224
|
-
}
|
|
225
|
+
}>;
|
|
225
226
|
/** CSS classes to apply to the default element */
|
|
226
227
|
className?: string;
|
|
227
228
|
}
|
|
@@ -255,9 +256,9 @@ export interface RawProps {
|
|
|
255
256
|
/** Whether to render as a child component */
|
|
256
257
|
asChild?: boolean;
|
|
257
258
|
/** Custom render function when using asChild */
|
|
258
|
-
children?:
|
|
259
|
+
children?: AsChildChildren<{
|
|
259
260
|
product: V3Product;
|
|
260
|
-
}
|
|
261
|
+
}>;
|
|
261
262
|
/** CSS classes to apply to the default element */
|
|
262
263
|
className?: string;
|
|
263
264
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { V3Product } from '@wix/auto_sdk_stores_products-v-3';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { ProductsListServiceConfig } from '../services/products-list-service.js';
|
|
4
|
+
import { AsChildChildren } from '@wix/headless-utils/react';
|
|
4
5
|
/**
|
|
5
6
|
* Props for the ProductList root component following the documented API
|
|
6
7
|
*/
|
|
@@ -140,9 +141,9 @@ export interface TotalsDisplayedProps {
|
|
|
140
141
|
/** Whether to render as a child component */
|
|
141
142
|
asChild?: boolean;
|
|
142
143
|
/** Custom render function when using asChild */
|
|
143
|
-
children?:
|
|
144
|
+
children?: AsChildChildren<{
|
|
144
145
|
displayedProducts: number;
|
|
145
|
-
}
|
|
146
|
+
}>;
|
|
146
147
|
/** CSS classes to apply to the default element */
|
|
147
148
|
className?: string;
|
|
148
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/headless-stores",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.60",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "cd ../media && yarn build && cd ../ecom && yarn build",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"@wix/auto_sdk_stores_read-only-variants-v-3": "^1.0.23",
|
|
63
63
|
"@wix/ecom": "^1.0.1278",
|
|
64
64
|
"@wix/essentials": "^0.1.24",
|
|
65
|
-
"@wix/headless-components": "0.0.
|
|
65
|
+
"@wix/headless-components": "0.0.2",
|
|
66
66
|
"@wix/headless-ecom": "0.0.17",
|
|
67
67
|
"@wix/headless-media": "^0.0.11",
|
|
68
|
-
"@wix/headless-utils": "^0.0.
|
|
68
|
+
"@wix/headless-utils": "^0.0.2",
|
|
69
69
|
"@wix/redirects": "^1.0.83",
|
|
70
70
|
"@wix/services-definitions": "^0.1.4",
|
|
71
71
|
"@wix/services-manager-react": "^0.1.26"
|