@coveo/quantic 3.24.0 → 3.24.1-pre.153636d7cb
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/lwc/quanticSearchBox/quanticSearchBox.html +17 -0
- package/force-app/main/default/lwc/quanticSearchBox/quanticSearchBox.js +1 -16
- package/force-app/main/default/lwc/quanticSearchBoxInput/templates/defaultSearchBoxInput.html +3 -3
- package/force-app/main/default/lwc/quanticSearchBoxInput/templates/expandableSearchBoxInput.html +3 -3
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/quanticSearchBoxSuggestionsList.html +1 -0
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +4 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/facets/category/headless-commerce-category-facet.d.ts +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.d.ts +12 -12
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/facets/headless-core-commerce-facet.d.ts +10 -10
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/core-range-facet-utils.d.ts +6 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/headless-core-range-facet.d.ts +1 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/category-facet/category-facet-actions.d.ts +10 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-set/facet-set-reducers.d.ts +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-set/facet-set-slice.d.ts +4 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-set/interfaces/request.d.ts +4 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/date-facet-set/interfaces/response.d.ts +16 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/numeric-facet-set/interfaces/response.d.ts +16 -1
- package/force-app/main/default/staticresources/coveoheadless/headless.js +5 -3
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +5 -3
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +4 -2
- package/package.json +5 -5
- package/force-app/main/default/lwc/quanticSearchBox/templates/errorTemplate.html +0 -4
- package/force-app/main/default/lwc/quanticSearchBox/templates/searchBox.html +0 -11
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-set/facet-set-reducer-helpers.d.ts +0 -5
- /package/force-app/main/default/lwc/quanticSearchBox/{templates/searchBox.css → quanticSearchBox.css} +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { ToggleSelectCategoryFacetValueActionCreatorPayload, UpdateCategoryFacetNumberOfValuesActionCreatorPayload } from '../../../facets/category-facet-set/category-facet-set-actions.js';
|
|
1
|
+
import type { ToggleSelectCategoryFacetValueActionCreatorPayload, UpdateCategoryFacetNumberOfValuesActionCreatorPayload } from '../../../facets/category-facet-set/category-facet-set-actions.js';
|
|
2
2
|
export type UpdateCategoryFacetNumberOfValuesPayload = UpdateCategoryFacetNumberOfValuesActionCreatorPayload;
|
|
3
3
|
export declare const updateCategoryFacetNumberOfValues: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: UpdateCategoryFacetNumberOfValuesActionCreatorPayload], UpdateCategoryFacetNumberOfValuesActionCreatorPayload, "commerce/facets/categoryFacet/updateNumberOfValues", never, never>;
|
|
4
|
-
export type ToggleSelectCategoryFacetValuePayload = ToggleSelectCategoryFacetValueActionCreatorPayload
|
|
5
|
-
|
|
4
|
+
export type ToggleSelectCategoryFacetValuePayload = Omit<ToggleSelectCategoryFacetValueActionCreatorPayload, 'retrieveCount'> & {
|
|
5
|
+
/**
|
|
6
|
+
* The number of child values to display.
|
|
7
|
+
*
|
|
8
|
+
* @deprecated This property is no longer used in the commerce category facet and will be removed in the next major version of headless.
|
|
9
|
+
*/
|
|
10
|
+
retrieveCount?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const toggleSelectCategoryFacetValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: ToggleSelectCategoryFacetValuePayload], ToggleSelectCategoryFacetValuePayload, "commerce/facets/categoryFacet/toggleSelectValue", import("@reduxjs/toolkit").SerializedError | null, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Parameters } from '../../parameters/parameters-actions.js';
|
|
2
|
-
import { CommerceFacetSetState } from './facet-set-state.js';
|
|
3
|
-
import { CategoryFacetRequest, CategoryFacetValueRequest } from './interfaces/request.js';
|
|
1
|
+
import type { Parameters } from '../../parameters/parameters-actions.js';
|
|
2
|
+
import type { CommerceFacetSetState } from './facet-set-state.js';
|
|
3
|
+
import type { CategoryFacetRequest, CategoryFacetValueRequest } from './interfaces/request.js';
|
|
4
4
|
export declare function restoreFromParameters(state: CommerceFacetSetState, action: {
|
|
5
5
|
payload: Parameters;
|
|
6
6
|
}): void;
|
|
@@ -8,6 +8,6 @@ export declare function buildSelectedFacetValueRequest(rawValue: string): {
|
|
|
8
8
|
state: string;
|
|
9
9
|
value: string;
|
|
10
10
|
};
|
|
11
|
-
export declare function selectPath(request: CategoryFacetRequest, path: string[], initialNumberOfValues
|
|
12
|
-
export declare function buildCurrentValuesFromPath(path: string[]
|
|
13
|
-
export declare function buildCategoryFacetValueRequest(value: string
|
|
11
|
+
export declare function selectPath(request: CategoryFacetRequest, path: string[], initialNumberOfValues?: number): void;
|
|
12
|
+
export declare function buildCurrentValuesFromPath(path: string[]): CategoryFacetValueRequest[];
|
|
13
|
+
export declare function buildCategoryFacetValueRequest(value: string): CategoryFacetValueRequest;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { CategoryFacetValueRequest } from '../../../../controllers/commerce/core/facets/headless-core-commerce-facet.js';
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { CategoryFacetValue, LocationFacetValue } from './interfaces/response.js';
|
|
1
|
+
import type { CategoryFacetValueRequest } from '../../../../controllers/commerce/core/facets/headless-core-commerce-facet.js';
|
|
2
|
+
import { type CommerceFacetSetState } from './facet-set-state.js';
|
|
3
|
+
import type { LocationFacetValueRequest } from './interfaces/request.js';
|
|
4
|
+
import type { CategoryFacetValue, LocationFacetValue } from './interfaces/response.js';
|
|
6
5
|
export declare const commerceFacetSetReducer: import("redux").Reducer<CommerceFacetSetState> & {
|
|
7
6
|
getInitialState: () => CommerceFacetSetState;
|
|
8
7
|
};
|
|
@@ -6,11 +6,12 @@ export type FreezableFacetRequestProperties = {
|
|
|
6
6
|
preventAutoSelect: boolean;
|
|
7
7
|
freezeCurrentValues?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export type CategoryFacetRequest = BaseCommerceFacetRequest<CategoryFacetValueRequest, 'hierarchical'> & CategoryFacetDelimitingCharacter & FreezableFacetRequestProperties
|
|
9
|
+
export type CategoryFacetRequest = BaseCommerceFacetRequest<CategoryFacetValueRequest, 'hierarchical'> & CategoryFacetDelimitingCharacter & FreezableFacetRequestProperties & {
|
|
10
|
+
retrieveCount?: number;
|
|
11
|
+
};
|
|
10
12
|
export interface CategoryFacetValueRequest extends BaseFacetValueRequest {
|
|
11
13
|
children: CategoryFacetValueRequest[];
|
|
12
14
|
value: string;
|
|
13
|
-
retrieveCount?: number;
|
|
14
15
|
}
|
|
15
16
|
export type DateFacetRequest = BaseCommerceFacetRequest<DateRangeRequest, 'dateRange'> & FreezableFacetRequestProperties;
|
|
16
17
|
export type NumericFacetRequest = BaseCommerceFacetRequest<NumericRangeRequest, 'numericalRange'> & NumericFacetExtraProperties & FreezableFacetRequestProperties;
|
|
@@ -21,7 +22,7 @@ export type BaseCommerceFacetRequest<Value, Type extends FacetType> = Pick<Facet
|
|
|
21
22
|
displayName?: string;
|
|
22
23
|
type: Type;
|
|
23
24
|
values: Value[];
|
|
24
|
-
initialNumberOfValues
|
|
25
|
+
initialNumberOfValues?: number;
|
|
25
26
|
numberOfValues?: number;
|
|
26
27
|
};
|
|
27
28
|
export type AnyFacetValueRequest = FacetValueRequest | LocationFacetValueRequest | CategoryFacetValueRequest | NumericRangeRequest | DateRangeRequest;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { BaseFacetResponse } from '../../../facet-api/response.js';
|
|
2
2
|
import { FacetValueState } from '../../../facet-api/value.js';
|
|
3
|
+
/**
|
|
4
|
+
* The domain of a date facet.
|
|
5
|
+
*/
|
|
6
|
+
export interface DateFacetDomain {
|
|
7
|
+
/**
|
|
8
|
+
* The most recent date available value in the range.
|
|
9
|
+
*/
|
|
10
|
+
end: string;
|
|
11
|
+
/**
|
|
12
|
+
* The least recent date available value in the range.
|
|
13
|
+
*/
|
|
14
|
+
start: string;
|
|
15
|
+
}
|
|
3
16
|
export interface DateFacetValue {
|
|
4
17
|
/**
|
|
5
18
|
* The number of results that have the facet value.
|
|
@@ -22,4 +35,6 @@ export interface DateFacetValue {
|
|
|
22
35
|
*/
|
|
23
36
|
state: FacetValueState;
|
|
24
37
|
}
|
|
25
|
-
export type DateFacetResponse = BaseFacetResponse<DateFacetValue
|
|
38
|
+
export type DateFacetResponse = BaseFacetResponse<DateFacetValue> & {
|
|
39
|
+
domain: DateFacetDomain;
|
|
40
|
+
};
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { BaseFacetResponse } from '../../../facet-api/response.js';
|
|
2
2
|
import { FacetValueState } from '../../../facet-api/value.js';
|
|
3
|
+
/**
|
|
4
|
+
* The domain of a numeric facet.
|
|
5
|
+
*/
|
|
6
|
+
export interface NumericFacetDomain {
|
|
7
|
+
/**
|
|
8
|
+
* The largest available value in the range.
|
|
9
|
+
*/
|
|
10
|
+
end: number;
|
|
11
|
+
/**
|
|
12
|
+
* The smallest available value in the range.
|
|
13
|
+
*/
|
|
14
|
+
start: number;
|
|
15
|
+
}
|
|
3
16
|
export interface NumericFacetValue {
|
|
4
17
|
/**
|
|
5
18
|
* The number of results that have the facet value.
|
|
@@ -22,4 +35,6 @@ export interface NumericFacetValue {
|
|
|
22
35
|
*/
|
|
23
36
|
state: FacetValueState;
|
|
24
37
|
}
|
|
25
|
-
export type NumericFacetResponse = BaseFacetResponse<NumericFacetValue
|
|
38
|
+
export type NumericFacetResponse = BaseFacetResponse<NumericFacetValue> & {
|
|
39
|
+
domain: NumericFacetDomain;
|
|
40
|
+
};
|