@coveo/quantic 3.13.1 → 3.14.0
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/docs/out/quantic-docs.json +11 -2
- package/force-app/main/default/labels/CustomLabels.labels-meta.xml +2 -2
- package/force-app/main/default/lwc/quanticBreadcrumbManager/__tests__/quanticBreadcrumbManager.test.js +6 -12
- package/force-app/main/default/lwc/quanticGeneratedAnswer/__tests__/quanticGeneratedAnswer.test.js +113 -6
- package/force-app/main/default/lwc/quanticGeneratedAnswer/quanticGeneratedAnswer.js +32 -5
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.html +1 -1
- package/force-app/main/default/lwc/quanticResultsPerPage/__tests__/quanticResultsPerPage.test.js +404 -0
- package/force-app/main/default/lwc/quanticResultsPerPage/e2e/fixture.ts +74 -0
- package/force-app/main/default/lwc/quanticResultsPerPage/e2e/pageObject.ts +85 -0
- package/force-app/main/default/lwc/quanticResultsPerPage/e2e/quanticResultsPerPage.e2e.ts +97 -0
- package/force-app/main/default/lwc/quanticResultsPerPage/quanticResultsPerPage.html +1 -1
- package/force-app/main/default/lwc/quanticResultsPerPage/quanticResultsPerPage.js +44 -9
- package/force-app/main/default/lwc/quanticSmartSnippet/e2e/data.ts +2 -11
- package/force-app/main/default/lwc/quanticSmartSnippet/e2e/fixture.ts +9 -5
- package/force-app/main/default/lwc/quanticSmartSnippet/e2e/pageObject.ts +1 -1
- package/force-app/main/default/lwc/quanticSmartSnippetAnswer/quanticSmartSnippetAnswer.html +1 -1
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/__tests__/quanticSmartSnippetSuggestions.test.js +329 -0
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/e2e/data.ts +31 -0
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/e2e/fixture.ts +93 -0
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/e2e/pageObject.ts +160 -0
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/e2e/quanticSmartSnippetSuggestions.e2e.ts +127 -0
- package/force-app/main/default/lwc/quanticSmartSnippetSuggestions/quanticSmartSnippetSuggestions.html +2 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/insight/get-interface/get-interface-config-response.d.ts +4 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts +1 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/context/cart/headless-cart.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/context/headless-context.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/breadcrumb-manager/headless-core-breadcrumb-manager.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/pagination/headless-core-commerce-pagination.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/parameter-manager/headless-core-parameter-manager.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/sort/headless-core-commerce-sort.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/summary/headless-core-summary.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-field-suggestions-generator.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/instant-products/headless-instant-products.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-list/headless-product-list.ssr.d.ts +1 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-view/headless-product-view.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/recent-queries-list/headless-recent-queries-list.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/recommendations/headless-recommendations.ssr.d.ts +0 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/search/did-you-mean/headless-did-you-mean.ssr.d.ts +1 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/search-box/headless-search-box.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/standalone-search-box/headless-standalone-search-box.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/triggers/headless-notify-trigger.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/triggers/headless-query-trigger.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/triggers/headless-redirection-trigger.ssr.d.ts +0 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/recent-queries/recent-queries-slice.d.ts +4 -2
- package/force-app/main/default/staticresources/coveoheadless/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +7 -7
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +6 -6
- package/package.json +10 -10
|
@@ -60,10 +60,13 @@ interface Tab {
|
|
|
60
60
|
label: string;
|
|
61
61
|
conditions: Condition[];
|
|
62
62
|
}
|
|
63
|
+
interface InsightGenQAOptions extends InsightOption {
|
|
64
|
+
collapsible: boolean;
|
|
65
|
+
}
|
|
63
66
|
interface SettingsSection {
|
|
64
67
|
createArticle: InsightOption;
|
|
65
68
|
fullSearch: InsightOption;
|
|
66
|
-
genQA:
|
|
69
|
+
genQA: InsightGenQAOptions;
|
|
67
70
|
userActions: InsightUserActionOptions;
|
|
68
71
|
}
|
|
69
72
|
interface InsightUserActionOptions {
|
package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts
CHANGED
|
@@ -130,3 +130,4 @@ export type { SearchParameters } from './features/search-parameters/search-param
|
|
|
130
130
|
export type { CommerceSearchParameters } from './features/commerce/search-parameters/search-parameters-actions.js';
|
|
131
131
|
export { HighlightUtils };
|
|
132
132
|
export { deserializeRelativeDate, validateRelativeDate, } from './api/search/date/relative-date.js';
|
|
133
|
+
export { productListingSerializer, searchSerializer, } from './features/commerce/parameters/parameters-serializer.js';
|
|
@@ -6,7 +6,5 @@ export type { BreadcrumbManager, BreadcrumbManagerState };
|
|
|
6
6
|
* @group Definers
|
|
7
7
|
*
|
|
8
8
|
* @returns The `BreadcrumbManager` controller definition.
|
|
9
|
-
*
|
|
10
|
-
* @internal
|
|
11
9
|
*/
|
|
12
10
|
export declare function defineBreadcrumbManager<TOptions extends ControllerDefinitionOption | undefined>(options?: TOptions): SubControllerDefinitionWithoutProps<BreadcrumbManager, TOptions>;
|
|
@@ -7,7 +7,5 @@ export type { Pagination, PaginationProps, PaginationState };
|
|
|
7
7
|
*
|
|
8
8
|
* @param props - The configurable `Pagination` properties.
|
|
9
9
|
* @returns The `Pagination` controller definition.
|
|
10
|
-
*
|
|
11
|
-
* @internal
|
|
12
10
|
*/
|
|
13
11
|
export declare function definePagination<TOptions extends ControllerDefinitionOption | undefined>(props?: PaginationProps & TOptions): SubControllerDefinitionWithoutProps<Pagination, TOptions>;
|
|
@@ -9,8 +9,6 @@ export type { ParameterManager, ParameterManagerProps, ParameterManagerState, Pa
|
|
|
9
9
|
* @group Definers
|
|
10
10
|
*
|
|
11
11
|
* @returns The `ParameterManager` controller definition.
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
12
|
*/
|
|
15
13
|
export declare function defineParameterManager<TOptions extends ControllerDefinitionOption | undefined>(options?: TOptions): SubControllerDefinitionWithProps<ParameterManager<MappedParameterTypes<TOptions>>, TOptions, SSRParameterManagerProps<MappedParameterTypes<TOptions>>>;
|
|
16
14
|
export interface SSRParameterManagerProps<T extends Parameters> extends Omit<ParameterManagerProps<T>, 'excludeDefaultParameters'> {
|
|
@@ -7,7 +7,5 @@ export type { Sort, SortProps, SortState };
|
|
|
7
7
|
*
|
|
8
8
|
* @param props - The configurable `Sort` properties.
|
|
9
9
|
* @returns The `Sort` controller definition.
|
|
10
|
-
*
|
|
11
|
-
* @internal
|
|
12
10
|
*/
|
|
13
11
|
export declare function defineSort<TOptions extends ControllerDefinitionOption | undefined>(props?: SortProps & TOptions): SubControllerDefinitionWithoutProps<Sort, TOptions>;
|
|
@@ -9,7 +9,5 @@ export type { Summary, ProductListingSummaryState, RecommendationsSummaryState,
|
|
|
9
9
|
* @group Definers
|
|
10
10
|
*
|
|
11
11
|
* @returns The `Summary` controller definition.
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
12
|
*/
|
|
15
13
|
export declare function defineSummary<TOptions extends ControllerDefinitionOption | undefined>(options?: TOptions): SubControllerDefinitionWithoutProps<Summary<ProductListingSummaryState | SearchSummaryState | RecommendationsSummaryState>, TOptions>;
|
|
@@ -12,7 +12,5 @@ export interface FieldSuggestionsGeneratorDefinition extends NonRecommendationCo
|
|
|
12
12
|
* @group Definers
|
|
13
13
|
*
|
|
14
14
|
* @returns The `FieldSuggestionsGenerator` controller definition.
|
|
15
|
-
*
|
|
16
|
-
* @internal
|
|
17
15
|
*/
|
|
18
16
|
export declare function defineFieldSuggestionsGenerator(): FieldSuggestionsGeneratorDefinition;
|
|
@@ -9,7 +9,5 @@ export interface InstantProductsDefinition extends NonRecommendationControllerDe
|
|
|
9
9
|
* @group Definers
|
|
10
10
|
*
|
|
11
11
|
* @returns The `InstantProducts` controller definition.
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
12
|
*/
|
|
15
13
|
export declare function defineInstantProducts(props?: InstantProductsProps): InstantProductsDefinition;
|
|
@@ -9,7 +9,5 @@ export type ProductList = Pick<ProductListing | Search, 'state' | 'subscribe' |
|
|
|
9
9
|
* @group Definers
|
|
10
10
|
*
|
|
11
11
|
* @returns The `ProductList` controller definition.
|
|
12
|
-
|
|
13
|
-
* @internal
|
|
14
|
-
* */
|
|
12
|
+
*/
|
|
15
13
|
export declare function defineProductList<TOptions extends ControllerDefinitionOption | undefined>(options?: TOptions): SubControllerDefinitionWithoutProps<ProductList, TOptions>;
|
|
@@ -10,7 +10,5 @@ export interface RecentQueriesListDefinition extends NonRecommendationController
|
|
|
10
10
|
*
|
|
11
11
|
* @param props - The configuration `RecentQueriesList` properties.
|
|
12
12
|
* @returns The `RecentQueriesList` controller definition.
|
|
13
|
-
*
|
|
14
|
-
* @internal
|
|
15
13
|
*/
|
|
16
14
|
export declare function defineRecentQueriesList(props?: RecentQueriesListProps): RecentQueriesListDefinition;
|
|
@@ -2,16 +2,12 @@ import { recommendationInternalOptionKey, RecommendationOnlyControllerDefinition
|
|
|
2
2
|
import { RecommendationsOptions, RecommendationsState } from '../recommendations/headless-recommendations.js';
|
|
3
3
|
import { RecommendationsProps, Recommendations } from './headless-recommendations.js';
|
|
4
4
|
export type { Recommendations, RecommendationsState };
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
* */
|
|
8
5
|
export type RecommendationsDefinitionMeta = {
|
|
9
6
|
[recommendationInternalOptionKey]: {} & RecommendationsProps['options'];
|
|
10
7
|
};
|
|
11
8
|
export interface RecommendationsDefinition extends RecommendationOnlyControllerDefinitionWithProps<Recommendations, Partial<RecommendationsOptions>> {
|
|
12
9
|
}
|
|
13
10
|
/**
|
|
14
|
-
* @internal
|
|
15
11
|
* Defines a `Recommendations` controller instance.
|
|
16
12
|
* @group Definers
|
|
17
13
|
*
|
|
@@ -9,7 +9,5 @@ export interface SearchBoxDefinition extends SearchOnlyControllerDefinitionWitho
|
|
|
9
9
|
* @group Definers
|
|
10
10
|
*
|
|
11
11
|
* @returns The `SearchBox` controller definition.
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
12
|
*/
|
|
15
13
|
export declare function defineSearchBox(props?: SearchBoxProps): SearchBoxDefinition;
|
|
@@ -12,7 +12,5 @@ export interface StandaloneSearchBoxDefinition extends ListingAndStandaloneContr
|
|
|
12
12
|
*
|
|
13
13
|
* @param props - The configurable `StandaloneSearchBox` properties.
|
|
14
14
|
* @returns The `StandaloneSearchBox` controller definition.
|
|
15
|
-
*
|
|
16
|
-
* @internal
|
|
17
15
|
*/
|
|
18
16
|
export declare function defineStandaloneSearchBox(props: StandaloneSearchBoxProps): StandaloneSearchBoxDefinition;
|
|
@@ -9,7 +9,5 @@ export interface RedirectionTriggerDefinition extends SearchOnlyControllerDefini
|
|
|
9
9
|
* @group Definers
|
|
10
10
|
*
|
|
11
11
|
* @returns The `NotifyTrigger` controller definition.
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
12
|
*/
|
|
15
13
|
export declare function defineRedirectionTrigger(): RedirectionTriggerDefinition;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type Draft as WritableDraft } from '@reduxjs/toolkit';
|
|
2
|
+
import { registerRecentQueries as registerCommerceRecentQueries } from '../commerce/recent-queries/recent-queries-actions.js';
|
|
3
|
+
import { registerRecentQueries } from './recent-queries-actions.js';
|
|
2
4
|
import { RecentQueriesState } from './recent-queries-state.js';
|
|
3
5
|
export declare const recentQueriesReducer: import("redux").Reducer<RecentQueriesState> & {
|
|
4
6
|
getInitialState: () => RecentQueriesState;
|
|
5
7
|
};
|
|
6
|
-
export declare function handleRegisterQueries(state: WritableDraft<RecentQueriesState>, action:
|
|
8
|
+
export declare function handleRegisterQueries(state: WritableDraft<RecentQueriesState>, action: ReturnType<typeof registerRecentQueries> | ReturnType<typeof registerCommerceRecentQueries>): void;
|
|
7
9
|
export declare function handleClearRecentQueries(state: WritableDraft<RecentQueriesState>): void;
|
|
8
10
|
export declare function handleExecuteSearchFulfilled(query: string, state: WritableDraft<RecentQueriesState>): void;
|