@coveo/quantic 3.33.6 → 3.34.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 +1 -1
- package/force-app/main/default/lwc/jsconfig.json +1 -1
- package/force-app/main/default/lwc/quanticResultQuickview/__tests__/quanticResultQuickview.test.js +8 -1
- package/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.js +13 -5
- package/force-app/main/default/lwc/quanticUtils/quanticUtils.js +8 -8
- package/force-app/main/default/staticresources/coveobueno/browser/bueno.js +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +10 -10
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/commerce-api-client.d.ts +6 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/commerce-api-params.d.ts +6 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/commerce-metadata.d.ts +7 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/product.d.ts +5 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/request.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/result.d.ts +52 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/listing/request.d.ts +3 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/listing/response.d.ts +5 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/product-enrichment/product-enrichment-request.d.ts +29 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/product-enrichment/product-enrichment-response.d.ts +17 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/date/date-format.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/commerce.index.d.ts +9 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/interactive-spotlight-content/headless-core-interactive-spotlight-content.d.ts +38 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/sub-controller/headless-sub-controller.d.ts +10 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-enrichment/headless-product-enrichment.d.ts +56 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-listing/headless-product-listing.d.ts +14 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-enrichment/product-enrichment-actions-loader.d.ts +28 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-enrichment/product-enrichment-actions.d.ts +27 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-enrichment/product-enrichment-slice.d.ts +4 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-enrichment/product-enrichment-state.d.ts +17 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-enrichment/product-enrichment.d.ts +7 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-listing/product-listing-actions-loader.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-listing/product-listing-actions.d.ts +12 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-listing/product-listing-state.d.ts +2 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/spotlight-content/spotlight-content-actions-loaders.d.ts +29 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/spotlight-content/spotlight-content-actions.d.ts +29 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce.index.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/state/commerce-app-state.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/state/state-sections.d.ts +7 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-product-enrichment.d.ts +6 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-product-listing.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-spotlight-content.d.ts +3 -0
- package/force-app/main/default/staticresources/coveoheadless/headless.js +12 -12
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +11 -11
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +9 -9
- package/package.json +4 -4
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AsyncThunkAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { AsyncThunkCommerceOptions } from '../../../api/commerce/commerce-api-client.js';
|
|
3
|
+
import type { CommerceEngineState } from '../../../app/commerce-engine/commerce-engine.js';
|
|
4
|
+
import { type SpotlightContentClickPayload } from './spotlight-content-actions.js';
|
|
5
|
+
export type { SpotlightContentClickPayload };
|
|
6
|
+
/**
|
|
7
|
+
* The spotlight content action creators.
|
|
8
|
+
*
|
|
9
|
+
* @group Actions
|
|
10
|
+
* @category SpotlightContent
|
|
11
|
+
*/
|
|
12
|
+
export interface SpotlightContentActionCreators {
|
|
13
|
+
/**
|
|
14
|
+
* Logs a click analytics event for a spotlight content item.
|
|
15
|
+
*
|
|
16
|
+
* @param payload - The action creator payload.
|
|
17
|
+
* @returns A dispatchable action.
|
|
18
|
+
*/
|
|
19
|
+
spotlightContentClick(payload: SpotlightContentClickPayload): AsyncThunkAction<void, SpotlightContentClickPayload, AsyncThunkCommerceOptions<CommerceEngineState>>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns the possible spotlight content action creators.
|
|
23
|
+
*
|
|
24
|
+
* @returns An object holding the action creators.
|
|
25
|
+
*
|
|
26
|
+
* @group Actions
|
|
27
|
+
* @category SpotlightContent
|
|
28
|
+
*/
|
|
29
|
+
export declare function loadSpotlightContentActions(): SpotlightContentActionCreators;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { CommerceEngineState } from '../../../app/commerce-engine/commerce-engine.js';
|
|
2
|
+
export interface SpotlightContentClickPayload {
|
|
3
|
+
/**
|
|
4
|
+
* The unique identifier of the spotlight content.
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* The desktop image URL of the spotlight content.
|
|
9
|
+
*/
|
|
10
|
+
desktopImage: string;
|
|
11
|
+
/**
|
|
12
|
+
* The 1-based position of the spotlight content in the result set.
|
|
13
|
+
*/
|
|
14
|
+
position: number;
|
|
15
|
+
/**
|
|
16
|
+
* The response ID associated with the spotlight content.
|
|
17
|
+
*/
|
|
18
|
+
responseId: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const spotlightContentClick: import("@reduxjs/toolkit").AsyncThunk<void, SpotlightContentClickPayload, {
|
|
21
|
+
state: CommerceEngineState;
|
|
22
|
+
rejectValue: import("../../../api/commerce/commerce-api-error-response.js").CommerceAPIErrorStatusResponse;
|
|
23
|
+
extra: import("../../../app/commerce-thunk-extra-arguments.js").CommerceThunkExtraArguments;
|
|
24
|
+
dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("@reduxjs/toolkit").UnknownAction> | undefined;
|
|
25
|
+
serializedErrorType?: unknown;
|
|
26
|
+
pendingMeta?: unknown;
|
|
27
|
+
fulfilledMeta?: unknown;
|
|
28
|
+
rejectedMeta?: unknown;
|
|
29
|
+
}>;
|
package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce.index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The Coveo Headless SSR Commerce sub-package exposes
|
|
2
|
+
* The Coveo Headless SSR Commerce sub-package exposes the engine, definers, controllers, actions, and utility functions to build a server side rendered commerce experience.
|
|
3
3
|
*
|
|
4
4
|
* @example
|
|
5
5
|
* ```typescript
|
|
@@ -151,6 +151,7 @@ export * from './features/commerce/triggers/triggers-actions-loader.js';
|
|
|
151
151
|
export { buildResultTemplatesManager } from './features/result-templates/result-templates-manager.js';
|
|
152
152
|
export { getCommerceApiBaseUrl } from './api/commerce/commerce-api-client.js';
|
|
153
153
|
export type { BaseProduct, ChildProduct, Product, } from './api/commerce/common/product.js';
|
|
154
|
+
export { ResultType } from './api/commerce/common/result.js';
|
|
154
155
|
export { getAnalyticsNextApiBaseUrl, getOrganizationEndpoint, } from './api/platform-client.js';
|
|
155
156
|
export type { RelativeDate, RelativeDatePeriod, RelativeDateUnit, } from './api/search/date/relative-date.js';
|
|
156
157
|
export { deserializeRelativeDate, validateRelativeDate, } from './api/search/date/relative-date.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CartSection, CategoryFacetSearchSection, CommerceConfigurationSection, CommerceContextSection, CommerceDidYouMeanSection, CommerceFacetSetSection, CommercePaginationSection, CommerceParametersSection, CommerceQuerySection, CommerceSearchSection, CommerceSortSection, CommerceStandaloneSearchBoxSection, FacetOrderSection, FacetSearchSection, FieldSuggestionsOrderSection, InstantProductsSection, ManualRangeSection, ProductListingSection, QuerySetSection, QuerySuggestionSection, RecentQueriesSection, RecommendationsSection, TriggerSection, VersionSection } from './state-sections.js';
|
|
1
|
+
import type { CartSection, CategoryFacetSearchSection, CommerceConfigurationSection, CommerceContextSection, CommerceDidYouMeanSection, CommerceFacetSetSection, CommercePaginationSection, CommerceParametersSection, CommerceQuerySection, CommerceSearchSection, CommerceSortSection, CommerceStandaloneSearchBoxSection, FacetOrderSection, FacetSearchSection, FieldSuggestionsOrderSection, InstantProductsSection, ManualRangeSection, ProductEnrichmentSection, ProductListingSection, QuerySetSection, QuerySuggestionSection, RecentQueriesSection, RecommendationsSection, TriggerSection, VersionSection } from './state-sections.js';
|
|
2
2
|
export type CommerceProductListingParametersState = CommerceFacetSetSection & CommerceSortSection & CommercePaginationSection;
|
|
3
3
|
export type CommerceSearchParametersState = CommerceProductListingParametersState & CommerceQuerySection;
|
|
4
|
-
export type CommerceAppState = CommerceConfigurationSection & CommerceStandaloneSearchBoxSection & ProductListingSection & RecommendationsSection & CommerceSearchSection & CommerceQuerySection & FacetOrderSection & FacetSearchSection & CategoryFacetSearchSection & CommerceFacetSetSection & CommercePaginationSection & CommerceSortSection & CommerceContextSection & CommerceParametersSection & CartSection & RecentQueriesSection & QuerySuggestionSection & QuerySetSection & CommerceDidYouMeanSection & InstantProductsSection & FieldSuggestionsOrderSection & TriggerSection & ManualRangeSection & VersionSection;
|
|
4
|
+
export type CommerceAppState = CommerceConfigurationSection & CommerceStandaloneSearchBoxSection & ProductListingSection & RecommendationsSection & CommerceSearchSection & CommerceQuerySection & FacetOrderSection & FacetSearchSection & CategoryFacetSearchSection & CommerceFacetSetSection & CommercePaginationSection & CommerceSortSection & CommerceContextSection & CommerceParametersSection & CartSection & RecentQueriesSection & QuerySuggestionSection & QuerySetSection & CommerceDidYouMeanSection & InstantProductsSection & FieldSuggestionsOrderSection & TriggerSection & ManualRangeSection & ProductEnrichmentSection & VersionSection;
|
package/force-app/main/default/staticresources/coveoheadless/definitions/state/state-sections.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import type { ManualNumericFacetSetState } from '../features/commerce/facets/num
|
|
|
17
17
|
import type { InstantProductsState } from '../features/commerce/instant-products/instant-products-state.js';
|
|
18
18
|
import type { CommercePaginationState } from '../features/commerce/pagination/pagination-state.js';
|
|
19
19
|
import type { CommerceParametersState } from '../features/commerce/parameters/parameters-state.js';
|
|
20
|
+
import type { ProductEnrichmentState } from '../features/commerce/product-enrichment/product-enrichment-state.js';
|
|
20
21
|
import type { ProductListingState } from '../features/commerce/product-listing/product-listing-state.js';
|
|
21
22
|
import type { CommerceQueryState } from '../features/commerce/query/query-state.js';
|
|
22
23
|
import type { RecommendationsState as CommerceRecommendationsState } from '../features/commerce/recommendations/recommendations-state.js';
|
|
@@ -365,6 +366,12 @@ export interface RecentQueriesSection {
|
|
|
365
366
|
*/
|
|
366
367
|
recentQueries: RecentQueriesState;
|
|
367
368
|
}
|
|
369
|
+
export interface ProductEnrichmentSection {
|
|
370
|
+
/**
|
|
371
|
+
* The product enrichment state containing badge placements.
|
|
372
|
+
*/
|
|
373
|
+
productEnrichment: ProductEnrichmentState;
|
|
374
|
+
}
|
|
368
375
|
export interface CaseAssistConfigurationSection {
|
|
369
376
|
/**
|
|
370
377
|
* The case assist engine configuration
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Badge, BadgePlacement, BadgesProduct, ProductEnrichmentSuccessBadgesResponse } from '../api/commerce/product-enrichment/product-enrichment-response.js';
|
|
2
|
+
import type { FetchBadgesThunkReturn } from '../features/commerce/product-enrichment/product-enrichment-actions.js';
|
|
3
|
+
export declare function buildMockBadge(config?: Partial<Badge>): Badge;
|
|
4
|
+
export declare function buildMockBadgePlacement(config?: Partial<BadgePlacement>): BadgePlacement;
|
|
5
|
+
export declare function buildMockBadgesProduct(config?: Partial<BadgesProduct>): BadgesProduct;
|
|
6
|
+
export declare function buildFetchBadgesResponse(config?: Partial<ProductEnrichmentSuccessBadgesResponse>): FetchBadgesThunkReturn;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ListingCommerceSuccessResponse } from '../api/commerce/listing/response.js';
|
|
2
2
|
import type { QueryCommerceAPIThunkReturn } from '../features/commerce/product-listing/product-listing-actions.js';
|
|
3
|
-
export declare function buildFetchProductListingResponse(response?: Partial<
|
|
3
|
+
export declare function buildFetchProductListingResponse(response?: Partial<ListingCommerceSuccessResponse>): QueryCommerceAPIThunkReturn;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { BaseSpotlightContent, SpotlightContent } from '../api/commerce/common/result.js';
|
|
2
|
+
export declare function buildMockBaseSpotlightContent(config?: Partial<BaseSpotlightContent>): BaseSpotlightContent;
|
|
3
|
+
export declare function buildMockSpotlightContent(config?: Partial<SpotlightContent>): SpotlightContent;
|