@wix/headless-stores 0.0.11 → 0.0.12
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/cjs/dist/react/FilteredCollection.d.ts +1 -0
- package/cjs/dist/react/SocialSharing.d.ts +1 -0
- package/cjs/dist/react/Sort.d.ts +1 -1
- package/cjs/dist/react/Sort.js +2 -1
- package/dist/react/FilteredCollection.d.ts +1 -0
- package/dist/react/SocialSharing.d.ts +1 -0
- package/dist/react/Sort.d.ts +1 -1
- package/dist/react/Sort.js +2 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import React, { type ReactNode } from 'react';
|
|
|
2
2
|
import { type AvailableOptions, type FilterServiceAPI, type Filter } from '../services/filter-service';
|
|
3
3
|
import { type V3Product } from '@wix/auto_sdk_stores_products-v-3';
|
|
4
4
|
import { type CollectionServiceAPI } from '../services/collection-service';
|
|
5
|
+
export type { AvailableOptions, Filter, FilterServiceAPI };
|
|
5
6
|
export interface FilteredCollectionProviderProps {
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
}
|
package/cjs/dist/react/Sort.d.ts
CHANGED
package/cjs/dist/react/Sort.js
CHANGED
|
@@ -9,7 +9,8 @@ const sort_service_1 = require("../services/sort-service");
|
|
|
9
9
|
*
|
|
10
10
|
* @component
|
|
11
11
|
*/
|
|
12
|
-
function Controller(
|
|
12
|
+
function Controller(props) {
|
|
13
|
+
const { children } = props;
|
|
13
14
|
const sortService = (0, services_manager_react_1.useService)(sort_service_1.SortServiceDefinition);
|
|
14
15
|
const currentSort = sortService.currentSort.get();
|
|
15
16
|
const setSortBy = sortService.setSortBy;
|
|
@@ -2,6 +2,7 @@ import React, { type ReactNode } from 'react';
|
|
|
2
2
|
import { type AvailableOptions, type FilterServiceAPI, type Filter } from '../services/filter-service';
|
|
3
3
|
import { type V3Product } from '@wix/auto_sdk_stores_products-v-3';
|
|
4
4
|
import { type CollectionServiceAPI } from '../services/collection-service';
|
|
5
|
+
export type { AvailableOptions, Filter, FilterServiceAPI };
|
|
5
6
|
export interface FilteredCollectionProviderProps {
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
}
|
package/dist/react/Sort.d.ts
CHANGED
package/dist/react/Sort.js
CHANGED
|
@@ -6,7 +6,8 @@ import { SortServiceDefinition } from '../services/sort-service';
|
|
|
6
6
|
*
|
|
7
7
|
* @component
|
|
8
8
|
*/
|
|
9
|
-
export function Controller(
|
|
9
|
+
export function Controller(props) {
|
|
10
|
+
const { children } = props;
|
|
10
11
|
const sortService = useService(SortServiceDefinition);
|
|
11
12
|
const currentSort = sortService.currentSort.get();
|
|
12
13
|
const setSortBy = sortService.setSortBy;
|