@coveo/quantic 3.12.1 → 3.13.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.
Files changed (31) hide show
  1. package/force-app/main/default/lwc/quanticFeedback/__tests__/quanticFeedback.test.js +2 -2
  2. package/force-app/main/default/lwc/quanticFeedback/quanticFeedback.html +3 -3
  3. package/force-app/main/default/lwc/quanticFeedbackModal/error.html +1 -1
  4. package/force-app/main/default/lwc/quanticFeedbackModal/feedbackForm.html +2 -2
  5. package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/data.ts +1 -1
  6. package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/pageObject.ts +4 -0
  7. package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswer.e2e.ts +22 -1
  8. package/force-app/main/default/lwc/quanticGeneratedAnswer/quanticGeneratedAnswer.js +19 -7
  9. package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.html +1 -0
  10. package/force-app/main/default/lwc/quanticGeneratedAnswerContent/quanticGeneratedAnswerContent.js +2 -0
  11. package/force-app/main/default/lwc/quanticSmartSnippet/__tests__/quanticSmartSnippet.test.js +357 -0
  12. package/force-app/main/default/lwc/quanticSmartSnippet/e2e/data.ts +30 -0
  13. package/force-app/main/default/lwc/quanticSmartSnippet/e2e/fixture.ts +87 -0
  14. package/force-app/main/default/lwc/quanticSmartSnippet/e2e/pageObject.ts +188 -0
  15. package/force-app/main/default/lwc/quanticSmartSnippet/e2e/quanticSmartSnippet.e2e.ts +118 -0
  16. package/force-app/main/default/lwc/quanticSmartSnippet/quanticSmartSnippet.html +1 -1
  17. package/force-app/main/default/lwc/quanticSmartSnippet/quanticSmartSnippet.js +2 -2
  18. package/force-app/main/default/lwc/quanticSmartSnippetSource/quanticSmartSnippetSource.html +2 -2
  19. package/force-app/main/default/lwc/quanticTabBar/e2e/quanticTabBar.e2e.ts +1 -1
  20. package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +7 -8
  21. package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/insight/get-interface/get-interface-config-response.d.ts +1 -0
  22. package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-list/headless-product-list.ssr.d.ts +2 -1
  23. package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/search-box/headless-search-box.d.ts +1 -1
  24. package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/search-box/headless-search-box.ssr.d.ts +1 -1
  25. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/common/actions.d.ts +1 -0
  26. package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-commerce.index.d.ts +4 -3
  27. package/force-app/main/default/staticresources/coveoheadless/definitions/tsdoc-metadata.json +1 -1
  28. package/force-app/main/default/staticresources/coveoheadless/headless.js +9 -10
  29. package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +8 -9
  30. package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +7 -8
  31. package/package.json +5 -5
@@ -10,6 +10,7 @@ export interface InsightInterface {
10
10
  facets: Facet[];
11
11
  tabs: Tab[];
12
12
  settings: SettingsSection;
13
+ answerConfigId?: string;
13
14
  }
14
15
  interface InsightResultTemplate {
15
16
  name: string;
@@ -1,7 +1,8 @@
1
1
  import { ControllerDefinitionOption, SubControllerDefinitionWithoutProps } from '../../../app/commerce-ssr-engine/types/common.js';
2
2
  import { ProductListing } from '../product-listing/headless-product-listing.js';
3
3
  import { Search } from '../search/headless-search.js';
4
- export type { ProductListingState as ProductListState } from '../product-listing/headless-product-listing.js';
4
+ export type { ProductListing, ProductListingState as ProductListState, } from '../product-listing/headless-product-listing.js';
5
+ export type { Search } from '../search/headless-search.js';
5
6
  export type ProductList = Pick<ProductListing | Search, 'state' | 'subscribe' | 'interactiveProduct' | 'promoteChildToParent'>;
6
7
  /**
7
8
  * Defines a `ProductList` controller instance.
@@ -2,7 +2,7 @@ import { CommerceEngine } from '../../../app/commerce-engine/commerce-engine.js'
2
2
  import { Delimiters, SuggestionHighlightingOptions } from '../../../utils/highlight.js';
3
3
  import { SearchBoxState, SearchBox as CoreSearchBox, Suggestion } from '../../core/search-box/headless-core-search-box.js';
4
4
  import { SearchBoxOptions } from './headless-search-box-options.js';
5
- export type { SearchBoxOptions, SearchBoxState, SuggestionHighlightingOptions, Suggestion, Delimiters, };
5
+ export type { SearchBoxOptions, SearchBoxState, SuggestionHighlightingOptions, Suggestion, Delimiters, CoreSearchBox, };
6
6
  export interface SearchBoxProps {
7
7
  /**
8
8
  * The `SearchBox` controller options.
@@ -1,6 +1,6 @@
1
1
  import { SearchOnlyControllerDefinitionWithoutProps } from '../../../app/commerce-ssr-engine/types/common.js';
2
2
  import { SearchBox, SearchBoxProps, SearchBoxOptions, Suggestion } from './headless-search-box.js';
3
- export type { SearchBoxState, SearchBox, SearchBoxProps, } from './headless-search-box.js';
3
+ export type { SearchBoxState, SearchBox, SearchBoxProps, CoreSearchBox, } from './headless-search-box.js';
4
4
  export type { SearchBoxOptions, Suggestion };
5
5
  export interface SearchBoxDefinition extends SearchOnlyControllerDefinitionWithoutProps<SearchBox> {
6
6
  }
@@ -9,4 +9,5 @@ export interface QueryCommerceAPIThunkReturn {
9
9
  response: CommerceSuccessResponse;
10
10
  }
11
11
  export declare const buildCommerceAPIRequest: (state: ListingAndSearchStateNeededByQueryCommerceAPI, navigatorContext: NavigatorContext) => CommerceAPIRequest;
12
+ export declare const buildInstantProductsAPIRequest: (state: ListingAndSearchStateNeededByQueryCommerceAPI, navigatorContext: NavigatorContext) => CommerceAPIRequest;
12
13
  export declare const buildBaseCommerceAPIRequest: (state: StateNeededByQueryCommerceAPI, navigatorContext: NavigatorContext, slotId?: string) => BaseCommerceAPIRequest;
@@ -93,17 +93,17 @@ export type { Pagination, PaginationProps, PaginationState, } from './controller
93
93
  export { definePagination } from './controllers/commerce/core/pagination/headless-core-commerce-pagination.ssr.js';
94
94
  export type { ParameterManager, ParameterManagerProps, SSRParameterManagerProps, ParameterManagerState, Parameters, ProductListingParameters, CommerceSearchParameters, } from './controllers/commerce/core/parameter-manager/headless-core-parameter-manager.ssr.js';
95
95
  export { defineParameterManager } from './controllers/commerce/core/parameter-manager/headless-core-parameter-manager.ssr.js';
96
- export type { ProductList, ProductListState, } from './controllers/commerce/product-list/headless-product-list.ssr.js';
96
+ export type { ProductList, ProductListState, ProductListing, Search, } from './controllers/commerce/product-list/headless-product-list.ssr.js';
97
97
  export { defineProductList } from './controllers/commerce/product-list/headless-product-list.ssr.js';
98
98
  export type { ProductView } from './controllers/commerce/product-view/headless-product-view.ssr.js';
99
99
  export { defineProductView } from './controllers/commerce/product-view/headless-product-view.ssr.js';
100
- export type { RecommendationsState, Recommendations, } from './controllers/commerce/recommendations/headless-recommendations.ssr.js';
100
+ export type { RecommendationsState, Recommendations, RecommendationsDefinition, } from './controllers/commerce/recommendations/headless-recommendations.ssr.js';
101
101
  export { defineRecommendations } from './controllers/commerce/recommendations/headless-recommendations.ssr.js';
102
102
  export type { Cart, CartInitialState, CartItem, CartProps, CartState, CartBuildProps, CartDefinition, } from './controllers/commerce/context/cart/headless-cart.ssr.js';
103
103
  export { defineCart } from './controllers/commerce/context/cart/headless-cart.ssr.js';
104
104
  export type { Context, ContextOptions, ContextProps, ContextState, View, UserLocation, ContextDefinition, } from './controllers/commerce/context/headless-context.ssr.js';
105
105
  export { defineContext } from './controllers/commerce/context/headless-context.ssr.js';
106
- export type { SearchBox, SearchBoxOptions, SearchBoxProps, SearchBoxState, Suggestion, SearchBoxDefinition, } from './controllers/commerce/search-box/headless-search-box.ssr.js';
106
+ export type { SearchBox, SearchBoxOptions, SearchBoxProps, SearchBoxState, Suggestion, SearchBoxDefinition, CoreSearchBox, } from './controllers/commerce/search-box/headless-search-box.ssr.js';
107
107
  export { defineSearchBox } from './controllers/commerce/search-box/headless-search-box.ssr.js';
108
108
  export type { Sort, SortProps, SortState, } from './controllers/commerce/core/sort/headless-core-commerce-sort.ssr.js';
109
109
  export { defineSort } from './controllers/commerce/core/sort/headless-core-commerce-sort.ssr.js';
@@ -125,6 +125,7 @@ export type { StandaloneSearchBox, StandaloneSearchBoxProps, StandaloneSearchBox
125
125
  export { defineStandaloneSearchBox } from './controllers/commerce/standalone-search-box/headless-standalone-search-box.ssr.js';
126
126
  export type { InstantProducts, InstantProductsOptions, InstantProductsState, InstantProductsProps, InstantProductsDefinition, } from './controllers/commerce/instant-products/headless-instant-products.ssr.js';
127
127
  export { defineInstantProducts } from './controllers/commerce/instant-products/headless-instant-products.ssr.js';
128
+ export type { InteractiveProduct, InteractiveProductOptions, InteractiveProductProps, } from './controllers/commerce/core/interactive-product/headless-core-interactive-product.js';
128
129
  export * from './features/commerce/context/context-actions-loader.js';
129
130
  export * from './features/commerce/search/search-actions-loader.js';
130
131
  export * from './features/commerce/product-listing/product-listing-actions-loader.js';
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.48.1"
8
+ "packageVersion": "7.49.1"
9
9
  }
10
10
  ]
11
11
  }