@coveo/headless-react 2.9.21 → 2.9.23
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/dist/__tests__/component-test-utils.d.ts +3 -3
- package/dist/ssr/common.d.ts +3 -3
- package/dist/ssr-commerce/common.d.ts +3 -3
- package/dist/ssr-commerce/providers.d.ts +1 -1
- package/dist/ssr-commerce-next/common.d.ts +1 -1
- package/dist/ssr-commerce-next/providers.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Result } from '@coveo/headless/ssr';
|
|
2
2
|
import type { Product } from '@coveo/headless/ssr-commerce';
|
|
3
3
|
export declare const createProductListComponent: (productCount?: number) => {
|
|
4
|
-
ProductListComponent: () => import("react
|
|
4
|
+
ProductListComponent: () => import("react").JSX.Element;
|
|
5
5
|
mockProducts: Product[];
|
|
6
6
|
};
|
|
7
7
|
export declare const createResultListComponent: (resultCount?: number) => {
|
|
8
|
-
ResultListComponent: () => import("react
|
|
8
|
+
ResultListComponent: () => import("react").JSX.Element;
|
|
9
9
|
mockResults: Result[];
|
|
10
10
|
};
|
|
11
|
-
export declare const createTestComponent: (testId: string, content?: string) => () => import("react
|
|
11
|
+
export declare const createTestComponent: (testId: string, content?: string) => () => import("react").JSX.Element;
|
package/dist/ssr/common.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare function buildEngineHook<TEngine extends CoreEngine, TControllers
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function buildStaticStateProvider<TEngine extends CoreEngine, TControllers extends ControllerDefinitionsMap<TEngine, Controller>>(singletonContext: SingletonGetter<Context<ContextState<TEngine, TControllers> | null>>): ({ controllers, children, }: PropsWithChildren<{
|
|
12
12
|
controllers: InferControllerStaticStateMapFromDefinitions<TControllers>;
|
|
13
|
-
}>) => import("react
|
|
13
|
+
}>) => import("react").JSX.Element;
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated use `buildStateProvider` instead.
|
|
16
16
|
* It is isomorphic and can be used for both static and hydrated state.
|
|
@@ -18,8 +18,8 @@ export declare function buildStaticStateProvider<TEngine extends CoreEngine, TCo
|
|
|
18
18
|
export declare function buildHydratedStateProvider<TEngine extends CoreEngine, TControllers extends ControllerDefinitionsMap<TEngine, Controller>>(singletonContext: SingletonGetter<Context<ContextState<TEngine, TControllers> | null>>): ({ engine, controllers, children, }: PropsWithChildren<{
|
|
19
19
|
engine: TEngine;
|
|
20
20
|
controllers: InferControllersMapFromDefinition<TControllers>;
|
|
21
|
-
}>) => import("react
|
|
21
|
+
}>) => import("react").JSX.Element;
|
|
22
22
|
export declare function buildStateProvider<TEngine extends CoreEngine, TControllers extends ControllerDefinitionsMap<TEngine, Controller>>(singletonContext: SingletonGetter<Context<ContextState<TEngine, TControllers> | null>>): ({ engine, controllers, children, }: PropsWithChildren<{
|
|
23
23
|
engine?: TEngine;
|
|
24
24
|
controllers: InferControllersMapFromDefinition<TControllers> | InferControllerStaticStateMapFromDefinitions<TControllers>;
|
|
25
|
-
}>) => import("react
|
|
25
|
+
}>) => import("react").JSX.Element;
|
|
@@ -10,7 +10,7 @@ export declare function buildEngineHook<TControllers extends ControllerDefinitio
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function buildStaticStateProvider<TControllers extends ControllerDefinitionsMap<Controller>, TSolutionType extends SolutionType>(singletonContext: SingletonGetter<Context<ContextState<TControllers, TSolutionType> | null>>, solutionType: TSolutionType): ({ controllers, children, }: PropsWithChildren<{
|
|
12
12
|
controllers: InferControllerStaticStateMapFromDefinitionsWithSolutionType<TControllers, TSolutionType>;
|
|
13
|
-
}>) => import("react
|
|
13
|
+
}>) => import("react").JSX.Element;
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated use `buildStateProvider` instead.
|
|
16
16
|
* It is isomorphic and can be used for both static and hydrated state.
|
|
@@ -18,8 +18,8 @@ export declare function buildStaticStateProvider<TControllers extends Controller
|
|
|
18
18
|
export declare function buildHydratedStateProvider<TControllers extends ControllerDefinitionsMap<Controller>, TSolutionType extends SolutionType>(singletonContext: SingletonGetter<Context<ContextState<TControllers, TSolutionType> | null>>, solutionType: TSolutionType): ({ engine, controllers, children, }: PropsWithChildren<{
|
|
19
19
|
engine: SSRCommerceEngine;
|
|
20
20
|
controllers: InferControllersMapFromDefinition<TControllers, TSolutionType>;
|
|
21
|
-
}>) => import("react
|
|
21
|
+
}>) => import("react").JSX.Element;
|
|
22
22
|
export declare function buildStateProvider<TControllers extends ControllerDefinitionsMap<Controller>, TSolutionType extends SolutionType>(singletonContext: SingletonGetter<Context<ContextState<TControllers, TSolutionType> | null>>, solutionType: TSolutionType): ({ engine, controllers, children, }: PropsWithChildren<{
|
|
23
23
|
engine?: SSRCommerceEngine;
|
|
24
24
|
controllers: InferControllersMapFromDefinition<TControllers, TSolutionType> | InferControllerStaticStateMapFromDefinitionsWithSolutionType<TControllers, TSolutionType>;
|
|
25
|
-
}>) => import("react
|
|
25
|
+
}>) => import("react").JSX.Element;
|
|
@@ -19,5 +19,5 @@ export declare function buildProviderWithDefinition<TControllers extends Control
|
|
|
19
19
|
* @deprecated will be removed in the next major release. The navigator context provider can now be set when fetching the static state
|
|
20
20
|
*/
|
|
21
21
|
navigatorContext: NavigatorContext;
|
|
22
|
-
}>) => import("react
|
|
22
|
+
}>) => import("react").JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -7,4 +7,4 @@ export declare function buildEngineHook<TControllers extends ControllerDefinitio
|
|
|
7
7
|
export declare function buildStateProvider<TControllers extends ControllerDefinitionsMap<Controller>, TSolutionType extends SolutionType>(singletonContext: SingletonGetter<Context<ContextState<TControllers, TSolutionType> | null>>, solutionType: TSolutionType): ({ engine, controllers, children, }: PropsWithChildren<{
|
|
8
8
|
engine?: SSRCommerceEngine;
|
|
9
9
|
controllers: InferControllersMapFromDefinition<TControllers, TSolutionType> | InferControllerStaticStateMapFromDefinitionsWithSolutionType<TControllers, TSolutionType>;
|
|
10
|
-
}>) => import("react
|
|
10
|
+
}>) => import("react").JSX.Element;
|
|
@@ -15,5 +15,5 @@ type UnknownAction = {
|
|
|
15
15
|
*/
|
|
16
16
|
export declare function buildProviderWithDefinition<TControllers extends ControllerDefinitionsMap<Controller>, TSolutionType extends SolutionType>(definition: ReactCommerceEngineDefinition<TControllers, TSolutionType>): ({ staticState, children, }: PropsWithChildren<{
|
|
17
17
|
staticState: EngineStaticState<UnknownAction, InferControllerStaticStateMapFromDefinitionsWithSolutionType<TControllers, TSolutionType>>;
|
|
18
|
-
}>) => import("react
|
|
18
|
+
}>) => import("react").JSX.Element;
|
|
19
19
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/headless-react",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.23",
|
|
4
4
|
"description": "React utilities for SSR (Server Side Rendering) with headless",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"headless",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"./ssr-commerce-next": "./dist/ssr-commerce-next/index.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@coveo/headless": "3.
|
|
29
|
+
"@coveo/headless": "3.52.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@testing-library/react": "16.3.2",
|