@coveo/quantic 3.15.0 → 3.15.2

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.
Files changed (32) hide show
  1. package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +6 -6
  2. package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/commerce-api-client.d.ts +2 -2
  3. package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/request.d.ts +4 -3
  4. package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/recommendations/recommendations-request.d.ts +2 -2
  5. package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/search/query-suggest/query-suggest-request.d.ts +1 -1
  6. package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/search/request.d.ts +2 -2
  7. package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/case-assist/get-document-suggestions/get-document-suggestions-request.d.ts +17 -1
  8. package/force-app/main/default/staticresources/coveoheadless/definitions/app/navigatorContextProvider.d.ts +6 -0
  9. package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/search-action-cause.d.ts +4 -0
  10. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/base-commerce-api-request-builder.d.ts +5 -0
  11. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/filterable-commerce-api-request-builder.d.ts +6 -0
  12. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/paginated-commerce-api-request-builder.d.ts +6 -0
  13. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-search-set/commerce-facet-search-state.d.ts +2 -2
  14. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-listing/product-listing-actions-loader.d.ts +1 -2
  15. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-listing/product-listing-actions.d.ts +7 -2
  16. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/query-suggest/query-suggest-actions.d.ts +0 -3
  17. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/query-suggest/query-suggest-request-builder.d.ts +4 -0
  18. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/recommendations/recommendations-actions.d.ts +2 -2
  19. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/search/search-actions-thunk-processor.d.ts +6 -6
  20. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/standalone-search-box-set/plan-request-builder.d.ts +8 -0
  21. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/standalone-search-box-set/standalone-search-box-set-actions-loader.d.ts +3 -2
  22. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/standalone-search-box-set/standalone-search-box-set-actions.d.ts +2 -6
  23. package/force-app/main/default/staticresources/coveoheadless/definitions/features/document-suggestion/document-suggestion-actions.d.ts +2 -1
  24. package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-commerce-api-request.d.ts +4 -0
  25. package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-product-listing.d.ts +1 -1
  26. package/force-app/main/default/staticresources/coveoheadless/headless.js +8 -8
  27. package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +7 -7
  28. package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +6 -6
  29. package/package.json +3 -3
  30. package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-field-suggestions-generator.ssr.d.ts +0 -16
  31. package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/field-suggestions/headless-field-suggestions.d.ts +0 -72
  32. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/actions.d.ts +0 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/quantic",
3
- "version": "3.15.0",
3
+ "version": "3.15.2",
4
4
  "description": "A Salesforce Lightning Web Component (LWC) library for building modern UIs interfacing with the Coveo platform",
5
5
  "author": "coveo.com",
6
6
  "homepage": "https://coveo.com",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@coveo/bueno": "1.0.8",
54
- "@coveo/headless": "3.18.0",
54
+ "@coveo/headless": "3.19.1",
55
55
  "dompurify": "3.2.4",
56
56
  "fs-extra": "11.3.0",
57
57
  "marked": "12.0.2"
@@ -70,7 +70,7 @@
70
70
  "@playwright/test": "1.50.1",
71
71
  "@salesforce/eslint-config-lwc": "3.7.1",
72
72
  "@salesforce/sfdx-lwc-jest": "5.1.0",
73
- "@types/node": "22.13.4",
73
+ "@types/node": "22.13.5",
74
74
  "@types/strip-color": "0.1.2",
75
75
  "@types/wait-on": "5.3.4",
76
76
  "chalk": "4.1.2",
@@ -1,16 +0,0 @@
1
- import { NonRecommendationControllerDefinitionWithoutProps } from '../../../app/commerce-ssr-engine/types/common.js';
2
- import { FieldSuggestionsGenerator } from './headless-field-suggestions-generator.js';
3
- export type { FieldSuggestions, FieldSuggestionsState, } from '../field-suggestions/headless-field-suggestions.js';
4
- export type { CategoryFieldSuggestions, CategoryFieldSuggestionsState, } from '../field-suggestions/headless-category-field-suggestions.js';
5
- export type { FieldSuggestionsFacet } from '../../../features/commerce/facets/field-suggestions-order/field-suggestions-order-state.js';
6
- export type { GeneratedFieldSuggestionsControllers } from './headless-field-suggestions-generator.js';
7
- export type { FieldSuggestionsGenerator };
8
- export interface FieldSuggestionsGeneratorDefinition extends NonRecommendationControllerDefinitionWithoutProps<FieldSuggestionsGenerator> {
9
- }
10
- /**
11
- * Defines the `FieldSuggestionsGenerator` controller for the purpose of server-side rendering.
12
- * @group Definers
13
- *
14
- * @returns The `FieldSuggestionsGenerator` controller definition.
15
- */
16
- export declare function defineFieldSuggestionsGenerator(): FieldSuggestionsGeneratorDefinition;
@@ -1,72 +0,0 @@
1
- import { FieldSuggestionsFacet } from '../../../api/commerce/search/query-suggest/query-suggest-response.js';
2
- import { SpecificFacetSearchResult } from '../../../api/search/facet-search/specific-facet-search/specific-facet-search-response.js';
3
- import { CommerceEngine } from '../../../app/commerce-engine/commerce-engine.js';
4
- import { Controller } from '../../controller/headless-controller.js';
5
- import { FacetControllerType } from '../core/facets/headless-core-commerce-facet.js';
6
- import { RegularFacetSearchState } from '../core/facets/regular/headless-commerce-regular-facet-search.js';
7
- import { RegularFacetOptions } from '../core/facets/regular/headless-commerce-regular-facet.js';
8
- export type { SpecificFacetSearchResult };
9
- /**
10
- * The state of the `FieldSuggestions` controller.
11
- *
12
- * @group Buildable controllers
13
- * @category FieldSuggestions
14
- */
15
- export type FieldSuggestionsState = RegularFacetSearchState & Pick<FieldSuggestionsFacet, 'facetId' | 'displayName' | 'field'>;
16
- /**
17
- * The `FieldSuggestions` controller provides query suggestions based on a particular facet field.
18
- *
19
- * For example, you could use this controller to provide auto-completion suggestions while the end user is typing an item title.
20
- *
21
- * This controller is a wrapper around the basic facet controller search functionality, and thus exposes similar options and properties.
22
- *
23
- * @group Buildable controllers
24
- * @category FieldSuggestions
25
- */
26
- export interface FieldSuggestions extends Controller, FacetControllerType<'regular'> {
27
- /**
28
- * Requests field suggestions based on a query.
29
- *
30
- * @param text - The query to search.
31
- */
32
- updateText(text: string): void;
33
- /**
34
- * Requests field suggestions based on a query.
35
- */
36
- search(): void;
37
- /**
38
- * Filters the search using the specified value.
39
- *
40
- * If a facet exists with the configured `facetId`, selects the corresponding facet value.
41
- *
42
- * @param value - The field suggestion for which to select the matching facet value.
43
- */
44
- select(value: SpecificFacetSearchResult): void;
45
- /**
46
- * Filters the search using the specified value, deselecting others.
47
- *
48
- * If a facet exists with the configured `facetId`, selects the corresponding facet value while deselecting other facet values.
49
- *
50
- * @param value - The field suggestion for which to select the matching facet value.
51
- */
52
- singleSelect(value: SpecificFacetSearchResult): void;
53
- /**
54
- * Resets the query and empties the suggestions.
55
- */
56
- clear(): void;
57
- state: FieldSuggestionsState;
58
- }
59
- /**
60
- * Creates a `FieldSuggestions` controller instance.
61
- *
62
- * This controller initializes a facet under the hood, but exposes state and methods that are relevant for suggesting field values based on a query.
63
- * It's important not to initialize a facet with the same `facetId` but different options, because only the options of the controller which is built first will be taken into account.
64
- *
65
- * @param engine The headless engine.
66
- * @param options The `FieldSuggestions` options used internally.
67
- * @returns A `FieldSuggestions` controller instance.
68
- *
69
- * @group Buildable controllers
70
- * @category FieldSuggestions
71
- */
72
- export declare function buildFieldSuggestions(engine: CommerceEngine, options: RegularFacetOptions): FieldSuggestions;
@@ -1,13 +0,0 @@
1
- import { BaseCommerceAPIRequest, CommerceAPIRequest } from '../../../api/commerce/common/request.js';
2
- import { CommerceSuccessResponse } from '../../../api/commerce/common/response.js';
3
- import { NavigatorContext } from '../../../app/navigatorContextProvider.js';
4
- import { CartSection, CommerceContextSection, CommerceFacetSetSection, CommercePaginationSection, CommerceSortSection, CommerceConfigurationSection, FacetOrderSection, ManualRangeSection, VersionSection } from '../../../state/state-sections.js';
5
- export type StateNeededByQueryCommerceAPI = CommerceConfigurationSection & CommerceContextSection & CartSection & Partial<CommercePaginationSection & VersionSection>;
6
- export type ListingAndSearchStateNeededByQueryCommerceAPI = StateNeededByQueryCommerceAPI & Partial<CommerceSortSection & CommerceFacetSetSection & FacetOrderSection & ManualRangeSection>;
7
- export interface QueryCommerceAPIThunkReturn {
8
- /** The successful response. */
9
- response: CommerceSuccessResponse;
10
- }
11
- export declare const buildCommerceAPIRequest: (state: ListingAndSearchStateNeededByQueryCommerceAPI, navigatorContext: NavigatorContext) => CommerceAPIRequest;
12
- export declare const buildInstantProductsAPIRequest: (state: ListingAndSearchStateNeededByQueryCommerceAPI, navigatorContext: NavigatorContext) => CommerceAPIRequest;
13
- export declare const buildBaseCommerceAPIRequest: (state: StateNeededByQueryCommerceAPI, navigatorContext: NavigatorContext, slotId?: string) => BaseCommerceAPIRequest;