@coveo/quantic 3.16.1-pre.de7b876346 → 3.16.1
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/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/search-parameter-manager/headless-core-search-parameter-manager.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/parameter-manager/parameter-manager-selectors.d.ts +5 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search-parameters/search-parameter-actions-loader.d.ts +36 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search-parameters/search-parameter-actions.d.ts +6 -0
- package/force-app/main/default/staticresources/coveoheadless/headless.js +10 -10
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +9 -9
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +5 -5
- package/package.json +3 -3
|
@@ -55,7 +55,6 @@ export interface SearchParameterManagerState {
|
|
|
55
55
|
*/
|
|
56
56
|
export declare function buildCoreSearchParameterManager(engine: CoreEngine, props: SearchParameterManagerProps): SearchParameterManager;
|
|
57
57
|
export declare function enrichParameters(engine: CoreEngine, parameters: SearchParameters): Required<SearchParameters>;
|
|
58
|
-
export declare function validateParams(engine: CoreEngine, parameters: Required<SearchParameters>): boolean;
|
|
59
58
|
export declare function getCoreActiveSearchParameters(engine: CoreEngine): SearchParameters;
|
|
60
59
|
export declare function getSelectedValues(request: FacetRequest): string[];
|
|
61
60
|
export declare function getSelectedRangeValues(request: CurrentValues<BaseFacetValueRequest>): BaseFacetValueRequest[];
|
|
@@ -15,3 +15,8 @@ export declare function getFacets<Value, Request, Parameters>(section: Record<st
|
|
|
15
15
|
[x: string]: Value[];
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
+
export declare function getTab<Section>(section: Section | undefined, tabSelector: (tabSet: Section) => string, initialState: string): {
|
|
19
|
+
tab?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
tab: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { CoreEngine } from '../../app/engine.js';
|
|
3
|
+
import { SearchParameters } from './search-parameter-actions.js';
|
|
4
|
+
export type { SearchParameters } from './search-parameter-actions.js';
|
|
5
|
+
/**
|
|
6
|
+
* The search parameters action creators.
|
|
7
|
+
*
|
|
8
|
+
* @group Actions
|
|
9
|
+
* @category SearchParameters
|
|
10
|
+
*/
|
|
11
|
+
export interface SearchParameterActionCreators {
|
|
12
|
+
/**
|
|
13
|
+
* Restores the search parameters.
|
|
14
|
+
*
|
|
15
|
+
* @param payload - The action creator payload.
|
|
16
|
+
* @returns A dispatchable action.
|
|
17
|
+
*/
|
|
18
|
+
restoreSearchParameters(payload: SearchParameters): PayloadAction<SearchParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* Restores the tab.
|
|
21
|
+
*
|
|
22
|
+
* @param payload - The action creator payload.
|
|
23
|
+
* @returns A dispatchable action.
|
|
24
|
+
*/
|
|
25
|
+
restoreTab(payload: string): PayloadAction<string>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Loads the facet order, facet set, pagination, query, query set, and sort reducers and returns the available search parameters action creators.
|
|
29
|
+
*
|
|
30
|
+
* @param engine - The headless engine.
|
|
31
|
+
* @returns An object holding the search parameters action creators.
|
|
32
|
+
*
|
|
33
|
+
* @group Actions
|
|
34
|
+
* @category SearchParameters
|
|
35
|
+
*/
|
|
36
|
+
export declare function loadSearchParameterActions(engine: CoreEngine): SearchParameterActionCreators;
|
|
@@ -66,6 +66,7 @@ export interface SearchParameters {
|
|
|
66
66
|
sf?: Record<string, string[]>;
|
|
67
67
|
/**
|
|
68
68
|
* The active tab id.
|
|
69
|
+
* @deprecated Restoring the tab with the restoreSearchParameters action can cause components to be visible/hidden on the wrong tab. Instead, first restore the tab using the `restoreTab` action, then the rest of the parameters with the restoreSearchParameters action.
|
|
69
70
|
*/
|
|
70
71
|
tab?: string;
|
|
71
72
|
/**
|
|
@@ -73,4 +74,9 @@ export interface SearchParameters {
|
|
|
73
74
|
*/
|
|
74
75
|
af?: Record<string, string[]>;
|
|
75
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* The unique identifier of a tab.
|
|
79
|
+
*/
|
|
80
|
+
export type TabId = string;
|
|
76
81
|
export declare const restoreSearchParameters: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SearchParameters], SearchParameters, "searchParameters/restore", never, never>;
|
|
82
|
+
export declare const restoreTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: string], string, "searchParameters/restoreTab", never, never>;
|