@coveo/quantic 3.14.3 → 3.15.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/docs/out/quantic-docs.json +2 -2
- package/force-app/main/default/lwc/quanticCaseClassification/__tests__/quanticCaseClassification.test.js +819 -0
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/data.ts +23 -0
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/fixture.ts +51 -0
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/pageObject.ts +152 -0
- package/force-app/main/default/lwc/quanticCaseClassification/e2e/quanticCaseClassification.e2e.ts +269 -0
- package/force-app/main/default/lwc/quanticCaseClassification/quanticCaseClassification.html +6 -6
- package/force-app/main/default/lwc/quanticFacetManager/__tests__/quanticFacetManager.test.js +178 -0
- package/force-app/main/default/lwc/quanticFacetManager/e2e/fixture.ts +63 -0
- package/force-app/main/default/lwc/quanticFacetManager/e2e/pageObject.ts +23 -0
- package/force-app/main/default/lwc/quanticFacetManager/e2e/quanticFacetManager.e2e.ts +82 -0
- package/force-app/main/default/lwc/quanticFacetManager/quanticFacetManager.js +1 -0
- package/force-app/main/default/lwc/quanticGeneratedAnswer/__tests__/quanticGeneratedAnswer.test.js +54 -10
- package/force-app/main/default/lwc/quanticGeneratedAnswer/quanticGeneratedAnswer.js +19 -1
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.css +4 -0
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.html +17 -0
- package/force-app/main/default/lwc/quanticTooltip/__tests__/quanticTooltip.test.js +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +7 -9
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/commerce-api-client.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/request.d.ts +4 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/recommendations/recommendations-request.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/search/query-suggest/query-suggest-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/search/request.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/case-assist/get-document-suggestions/get-document-suggestions-request.d.ts +17 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/navigatorContextProvider.d.ts +6 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts +6 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-category-field-suggestions.d.ts +5 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-field-suggestions-generator.d.ts +9 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-category-filter-suggestions.d.ts +87 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-filter-suggestions-generator.d.ts +38 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-filter-suggestions-generator.ssr.d.ts +16 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-filter-suggestions.d.ts +88 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/search-action-cause.d.ts +4 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/base-commerce-api-request-builder.d.ts +5 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/filterable-commerce-api-request-builder.d.ts +6 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/paginated-commerce-api-request-builder.d.ts +6 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-search-set/commerce-facet-search-state.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-listing/product-listing-actions-loader.d.ts +1 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-listing/product-listing-actions.d.ts +7 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/query-suggest/query-suggest-actions.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/query-suggest/query-suggest-request-builder.d.ts +4 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/recommendations/recommendations-actions.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/search/search-actions-thunk-processor.d.ts +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/standalone-search-box-set/plan-request-builder.d.ts +8 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/standalone-search-box-set/standalone-search-box-set-actions-loader.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/standalone-search-box-set/standalone-search-box-set-actions.d.ts +2 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/document-suggestion/document-suggestion-actions.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce.index.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-commerce-api-request.d.ts +4 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-product-listing.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/headless.js +9 -11
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +8 -10
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +7 -9
- package/package.json +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-field-suggestions-generator.ssr.d.ts +0 -16
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-field-suggestions.d.ts +0 -72
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/actions.d.ts +0 -13
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NavigatorContext } from '../../../app/navigatorContextProvider.js';
|
|
3
|
-
import { CartSection, CommerceContextSection, CommerceQuerySection, CommerceConfigurationSection } from '../../../state/state-sections.js';
|
|
4
|
-
export type StateNeededForRedirect = CommerceConfigurationSection & CommerceContextSection & CommerceQuerySection & CartSection;
|
|
1
|
+
import { StateNeededForPlanCommerceAPIRequest } from './plan-request-builder.js';
|
|
5
2
|
export interface FetchRedirectUrlPayload {
|
|
6
3
|
/**
|
|
7
4
|
* The standalone search box id.
|
|
@@ -9,7 +6,7 @@ export interface FetchRedirectUrlPayload {
|
|
|
9
6
|
id: string;
|
|
10
7
|
}
|
|
11
8
|
export declare const fetchRedirectUrl: import("@reduxjs/toolkit").AsyncThunk<string, FetchRedirectUrlPayload, {
|
|
12
|
-
state:
|
|
9
|
+
state: StateNeededForPlanCommerceAPIRequest;
|
|
13
10
|
rejectValue: import("../../../api/commerce/commerce-api-error-response.js").CommerceAPIErrorStatusResponse;
|
|
14
11
|
extra: import("../../../app/commerce-thunk-extra-arguments.js").CommerceThunkExtraArguments;
|
|
15
12
|
dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction> | undefined;
|
|
@@ -51,4 +48,3 @@ export interface ResetStandaloneSearchBoxPayload {
|
|
|
51
48
|
id: string;
|
|
52
49
|
}
|
|
53
50
|
export declare const resetStandaloneSearchBox: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: ResetStandaloneSearchBoxPayload], ResetStandaloneSearchBoxPayload, "commerce/standaloneSearchBox/reset", never, never>;
|
|
54
|
-
export declare const buildPlanRequest: (state: StateNeededForRedirect, navigatorContext: NavigatorContext) => CommerceSearchRequest;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GetDocumentSuggestionsRequest } from '../../api/service/case-assist/get-document-suggestions/get-document-suggestions-request.js';
|
|
2
2
|
import { GetDocumentSuggestionsResponse } from '../../api/service/case-assist/get-document-suggestions/get-document-suggestions-response.js';
|
|
3
|
+
import { NavigatorContext } from '../../app/navigatorContextProvider.js';
|
|
3
4
|
import { CaseAssistConfigurationSection, DocumentSuggestionSection, ConfigurationSection, DebugSection, CaseInputSection, CaseFieldSection } from '../../state/state-sections.js';
|
|
4
5
|
export interface FetchDocumentSuggestionsThunkReturn {
|
|
5
6
|
/** The successful document suggestions response. */
|
|
@@ -16,4 +17,4 @@ export declare const fetchDocumentSuggestions: import("@reduxjs/toolkit").AsyncT
|
|
|
16
17
|
fulfilledMeta?: unknown;
|
|
17
18
|
rejectedMeta?: unknown;
|
|
18
19
|
}>;
|
|
19
|
-
export declare const buildFetchDocumentSuggestionsRequest: (state: StateNeededByFetchDocumentSuggestions) => Promise<GetDocumentSuggestionsRequest>;
|
|
20
|
+
export declare const buildFetchDocumentSuggestionsRequest: (state: StateNeededByFetchDocumentSuggestions, navigatorContext: NavigatorContext) => Promise<GetDocumentSuggestionsRequest>;
|
package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce.index.d.ts
CHANGED
|
@@ -113,8 +113,8 @@ export type { Summary, ProductListingSummaryState, RecommendationsSummaryState,
|
|
|
113
113
|
export { defineSummary } from './controllers/commerce/core/summary/headless-core-summary.ssr.js';
|
|
114
114
|
export type { RecentQueriesList, RecentQueriesListOptions, RecentQueriesListProps, RecentQueriesListInitialState, RecentQueriesState, RecentQueriesListDefinition, } from './controllers/commerce/recent-queries-list/headless-recent-queries-list.ssr.js';
|
|
115
115
|
export { defineRecentQueriesList } from './controllers/commerce/recent-queries-list/headless-recent-queries-list.ssr.js';
|
|
116
|
-
export type {
|
|
117
|
-
export {
|
|
116
|
+
export type { FilterSuggestions, FilterSuggestionsState, CategoryFilterSuggestions, CategoryFilterSuggestionsState, FieldSuggestionsFacet, GeneratedFilterSuggestionsControllers, FilterSuggestionsGenerator, FilterSuggestionsGeneratorDefinition, } from './controllers/commerce/filter-suggestions/headless-filter-suggestions-generator.ssr.js';
|
|
117
|
+
export { defineFilterSuggestionsGenerator } from './controllers/commerce/filter-suggestions/headless-filter-suggestions-generator.ssr.js';
|
|
118
118
|
export type { NotifyTrigger, NotifyTriggerState, NotifyTriggerDefinition, } from './controllers/commerce/triggers/headless-notify-trigger.ssr.js';
|
|
119
119
|
export { defineNotifyTrigger } from './controllers/commerce/triggers/headless-notify-trigger.ssr.js';
|
|
120
120
|
export type { QueryTrigger, QueryTriggerState, QueryTriggerDefinition, } from './controllers/commerce/triggers/headless-query-trigger.ssr.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BaseCommerceAPIRequest, FilterableCommerceAPIRequest, PaginatedCommerceAPIRequest } from '../api/commerce/common/request.js';
|
|
2
|
+
export declare const buildMockBaseCommerceAPIRequest: (config?: Partial<BaseCommerceAPIRequest>) => BaseCommerceAPIRequest;
|
|
3
|
+
export declare const buildMockPaginatedCommerceAPIRequest: (config?: Partial<PaginatedCommerceAPIRequest>) => PaginatedCommerceAPIRequest;
|
|
4
|
+
export declare const buildMockFilterableCommerceAPIRequest: (config?: Partial<FilterableCommerceAPIRequest>) => FilterableCommerceAPIRequest;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CommerceSuccessResponse } from '../api/commerce/common/response.js';
|
|
2
|
-
import { QueryCommerceAPIThunkReturn } from '../features/commerce/
|
|
2
|
+
import { QueryCommerceAPIThunkReturn } from '../features/commerce/product-listing/product-listing-actions.js';
|
|
3
3
|
export declare function buildFetchProductListingResponse(response?: Partial<CommerceSuccessResponse>): QueryCommerceAPIThunkReturn;
|