@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.
@@ -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
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type SharingPlatform } from '../services/social-sharing-service';
3
+ export type { SharingPlatform };
3
4
  /**
4
5
  * Props for Root headless component
5
6
  */
@@ -11,4 +11,4 @@ export interface ControllerProps {
11
11
  *
12
12
  * @component
13
13
  */
14
- export declare function Controller({ children }: ControllerProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function Controller(props: ControllerProps): React.ReactNode;
@@ -9,7 +9,8 @@ const sort_service_1 = require("../services/sort-service");
9
9
  *
10
10
  * @component
11
11
  */
12
- function Controller({ children }) {
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
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type SharingPlatform } from '../services/social-sharing-service';
3
+ export type { SharingPlatform };
3
4
  /**
4
5
  * Props for Root headless component
5
6
  */
@@ -11,4 +11,4 @@ export interface ControllerProps {
11
11
  *
12
12
  * @component
13
13
  */
14
- export declare function Controller({ children }: ControllerProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function Controller(props: ControllerProps): React.ReactNode;
@@ -6,7 +6,8 @@ import { SortServiceDefinition } from '../services/sort-service';
6
6
  *
7
7
  * @component
8
8
  */
9
- export function Controller({ children }) {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/headless-stores",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "npm run build:esm && npm run build:cjs",