@coveo/atomic 3.34.0-pre.8b1d289c8b → 3.34.0-pre.9353d3e7c7

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 (195) hide show
  1. package/dist/atomic/_atomic.esm.js +1 -1
  2. package/dist/atomic/atomic.esm.js.map +1 -1
  3. package/dist/atomic/components/_index.d.ts +2 -2
  4. package/dist/atomic/components/_index.js +1 -1
  5. package/dist/atomic/components/analytics-config.js +1 -1
  6. package/dist/atomic/components/atomic-category-facet.js +1 -1
  7. package/dist/atomic/components/atomic-facet.js +1 -1
  8. package/dist/atomic/components/atomic-format-currency.js +1 -1
  9. package/dist/atomic/components/atomic-format-number.js +1 -1
  10. package/dist/atomic/components/atomic-format-unit.js +1 -1
  11. package/dist/atomic/components/atomic-insight-search-box.js +2 -29
  12. package/dist/atomic/components/atomic-insight-search-box.js.map +1 -1
  13. package/dist/atomic/components/atomic-numeric-facet.js +1 -1
  14. package/dist/atomic/components/atomic-quickview-modal2.js +23 -23
  15. package/dist/atomic/components/atomic-quickview-modal2.js.map +1 -1
  16. package/dist/atomic/components/atomic-quickview.js +1 -1
  17. package/dist/atomic/components/atomic-result-children.js +1 -1
  18. package/dist/atomic/components/atomic-result-fields-list.js +1 -1
  19. package/dist/atomic/components/atomic-result-link.js +1 -1
  20. package/dist/atomic/components/atomic-result-list.js +1 -1
  21. package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
  22. package/dist/atomic/components/atomic-search-box-query-suggestions.d.ts +11 -0
  23. package/dist/atomic/components/atomic-search-box-query-suggestions.js +8 -0
  24. package/dist/atomic/components/atomic-search-box-query-suggestions.js.map +1 -0
  25. package/dist/atomic/components/atomic-search-box-query-suggestions2.js +89 -0
  26. package/dist/atomic/components/atomic-search-box-query-suggestions2.js.map +1 -0
  27. package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
  28. package/dist/atomic/components/atomic-search-box.js +10 -4
  29. package/dist/atomic/components/atomic-search-box.js.map +1 -1
  30. package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
  31. package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
  32. package/dist/atomic/components/atomic-sort-expression.js +1 -1
  33. package/dist/atomic/components/atomic-tab-manager.js +1 -1
  34. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +17 -32
  35. package/dist/atomic/components/components/commerce/atomic-product/atomic-product.js +26 -58
  36. package/dist/atomic/components/components/common/layout/custom-render-controller.js +50 -0
  37. package/dist/atomic/components/components/common/layout/item-layout-controller.js +103 -0
  38. package/dist/atomic/components/components/common/validate-props-controller/validate-props-controller.js +50 -0
  39. package/dist/atomic/components/components/search/atomic-relevance-inspector/atomic-relevance-inspector.js +100 -0
  40. package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +17 -24
  41. package/dist/atomic/components/components/search/index.js +1 -1
  42. package/dist/atomic/components/components/search/lazy-index.js +1 -1
  43. package/dist/atomic/components/global/environment.js +1 -1
  44. package/dist/atomic/components/stencil-query-suggestions.js +33 -0
  45. package/dist/atomic/components/stencil-query-suggestions.js.map +1 -0
  46. package/dist/atomic/components/utils/compare-utils.js +49 -0
  47. package/dist/atomic/{p-475124d2.entry.js → p-01511388.entry.js} +2 -2
  48. package/dist/atomic/{p-10a0603e.js → p-03615066.js} +2 -2
  49. package/dist/atomic/{p-60800b2f.entry.js → p-0ed76e65.entry.js} +2 -2
  50. package/dist/atomic/{p-0297958a.entry.js → p-2c938403.entry.js} +2 -2
  51. package/dist/atomic/{p-16f6c1f3.entry.js → p-2fb49fe8.entry.js} +2 -2
  52. package/dist/atomic/{p-13391e75.entry.js → p-3549a469.entry.js} +2 -2
  53. package/dist/atomic/{p-7c3c5f07.entry.js → p-4f4c9a03.entry.js} +2 -2
  54. package/dist/atomic/p-4f4c9a03.entry.js.map +1 -0
  55. package/dist/atomic/{p-7ec6dd3e.entry.js → p-65dd9017.entry.js} +2 -2
  56. package/dist/atomic/{p-86bde026.entry.js → p-736f4d7e.entry.js} +2 -2
  57. package/dist/atomic/{p-3cbab25b.entry.js → p-7e971d15.entry.js} +2 -2
  58. package/dist/atomic/{p-4601eb93.entry.js → p-83d3857f.entry.js} +2 -2
  59. package/dist/atomic/{p-dbcef3a9.entry.js → p-87f69e53.entry.js} +2 -2
  60. package/dist/atomic/{p-5a710350.entry.js → p-8bf425b0.entry.js} +2 -2
  61. package/dist/atomic/p-a1522fe5.entry.js +2 -0
  62. package/dist/atomic/p-a1522fe5.entry.js.map +1 -0
  63. package/dist/atomic/p-af93b44c.js +2 -0
  64. package/dist/atomic/p-af93b44c.js.map +1 -0
  65. package/dist/atomic/{p-e398835b.entry.js → p-b2b9e83f.entry.js} +2 -2
  66. package/dist/atomic/{p-8fdef8a3.entry.js → p-b313058c.entry.js} +2 -2
  67. package/dist/atomic/{p-0bdd730f.entry.js → p-b6ae0244.entry.js} +2 -2
  68. package/dist/atomic/{p-3a7a1a00.entry.js → p-bbfe727a.entry.js} +2 -2
  69. package/dist/atomic/{p-97ce3384.entry.js → p-be2a43f4.entry.js} +2 -2
  70. package/dist/atomic/{p-a5714bc4.entry.js → p-d211a422.entry.js} +2 -2
  71. package/dist/atomic/{p-ca3dc59b.entry.js → p-d82b85ab.entry.js} +2 -2
  72. package/dist/atomic/{p-b4359552.entry.js → p-e72b8d70.entry.js} +2 -2
  73. package/dist/atomic/p-ea1b81fa.entry.js +2 -0
  74. package/dist/atomic/p-ea1b81fa.entry.js.map +1 -0
  75. package/dist/cjs/_loader.cjs.js +1 -1
  76. package/dist/cjs/{analytics-config-47c35b47.js → analytics-config-e1eb424e.js} +2 -2
  77. package/dist/cjs/{analytics-config-47c35b47.js.map → analytics-config-e1eb424e.js.map} +1 -1
  78. package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
  79. package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
  80. package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
  81. package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
  82. package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
  83. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  84. package/dist/cjs/atomic-insight-search-box.cjs.entry.js +4 -30
  85. package/dist/cjs/atomic-insight-search-box.cjs.entry.js.map +1 -1
  86. package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
  87. package/dist/cjs/atomic-quickview-modal.cjs.entry.js +23 -23
  88. package/dist/cjs/atomic-quickview-modal.cjs.entry.js.map +1 -1
  89. package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
  90. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  91. package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
  92. package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
  93. package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
  94. package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
  95. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +1 -1
  96. package/dist/cjs/{atomic-search-box-recent-queries.cjs.entry.js → atomic-search-box-query-suggestions_2.cjs.entry.js} +68 -5
  97. package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js.map +1 -0
  98. package/dist/cjs/atomic-search-box.cjs.entry.js +3 -3
  99. package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
  100. package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
  101. package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
  102. package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
  103. package/dist/cjs/atomic.cjs.js +1 -1
  104. package/dist/cjs/index-757bc886.js +2 -6
  105. package/dist/cjs/stencil-query-suggestions-03268ecc.js +38 -0
  106. package/dist/cjs/stencil-query-suggestions-03268ecc.js.map +1 -0
  107. package/dist/cjs/version.cjs.js +1 -1
  108. package/dist/esm/_loader.js +1 -1
  109. package/dist/esm/{analytics-config-52ed9753.js → analytics-config-9ca0b7a9.js} +2 -2
  110. package/dist/esm/{analytics-config-52ed9753.js.map → analytics-config-9ca0b7a9.js.map} +1 -1
  111. package/dist/esm/atomic-category-facet.entry.js +1 -1
  112. package/dist/esm/atomic-facet.entry.js +1 -1
  113. package/dist/esm/atomic-format-currency.entry.js +1 -1
  114. package/dist/esm/atomic-format-number.entry.js +1 -1
  115. package/dist/esm/atomic-format-unit.entry.js +1 -1
  116. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  117. package/dist/esm/atomic-insight-search-box.entry.js +3 -29
  118. package/dist/esm/atomic-insight-search-box.entry.js.map +1 -1
  119. package/dist/esm/atomic-numeric-facet.entry.js +1 -1
  120. package/dist/esm/atomic-quickview-modal.entry.js +23 -23
  121. package/dist/esm/atomic-quickview-modal.entry.js.map +1 -1
  122. package/dist/esm/atomic-quickview.entry.js +1 -1
  123. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  124. package/dist/esm/atomic-result-children.entry.js +1 -1
  125. package/dist/esm/atomic-result-fields-list.entry.js +1 -1
  126. package/dist/esm/atomic-result-link.entry.js +1 -1
  127. package/dist/esm/atomic-result-list.entry.js +1 -1
  128. package/dist/esm/atomic-result-placeholder_8.entry.js +1 -1
  129. package/dist/esm/{atomic-search-box-recent-queries.entry.js → atomic-search-box-query-suggestions_2.entry.js} +70 -8
  130. package/dist/esm/atomic-search-box-query-suggestions_2.entry.js.map +1 -0
  131. package/dist/esm/atomic-search-box.entry.js +3 -3
  132. package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
  133. package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
  134. package/dist/esm/atomic-sort-expression.entry.js +1 -1
  135. package/dist/esm/atomic-tab-manager.entry.js +1 -1
  136. package/dist/esm/atomic.js +1 -1
  137. package/dist/esm/index-3f35faca.js +2 -6
  138. package/dist/esm/stencil-query-suggestions-5d6a46d7.js +33 -0
  139. package/dist/esm/stencil-query-suggestions-5d6a46d7.js.map +1 -0
  140. package/dist/esm/version.js +1 -1
  141. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -3
  142. package/dist/types/components/commerce/atomic-product/atomic-product.d.ts +5 -16
  143. package/dist/types/components/common/facets/facet-search/facet-search-input-guard.d.ts +1 -1
  144. package/dist/types/components/common/layout/custom-render-controller.d.ts +30 -0
  145. package/dist/types/components/common/layout/item-layout-controller.d.ts +47 -0
  146. package/dist/types/components/common/no-items/guard.d.ts +1 -1
  147. package/dist/types/components/common/refine-modal/guard.d.ts +1 -1
  148. package/dist/types/components/common/sort/sort-guard.d.ts +1 -1
  149. package/dist/types/components/common/validate-props-controller/validate-props-controller.d.ts +32 -0
  150. package/dist/types/components/search/atomic-relevance-inspector/atomic-relevance-inspector.d.ts +18 -8
  151. package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +6 -3
  152. package/dist/types/components/search/index.d.ts +1 -1
  153. package/dist/types/components/search/{atomic-search-box-query-suggestions → search-box-suggestions/atomic-search-box-query-suggestions}/atomic-search-box-query-suggestions.d.ts +7 -16
  154. package/dist/types/components.d.ts +49 -53
  155. package/dist/types/directives/hierarchical-path.d.ts +1 -1
  156. package/dist/types/utils/compare-utils.d.ts +9 -0
  157. package/docs/atomic-docs.json +102 -90
  158. package/package.json +1 -1
  159. package/dist/atomic/components/atomic-relevance-inspector.d.ts +0 -11
  160. package/dist/atomic/components/atomic-relevance-inspector.js +0 -53
  161. package/dist/atomic/components/atomic-relevance-inspector.js.map +0 -1
  162. package/dist/atomic/components/components/search/atomic-search-box-query-suggestions/atomic-search-box-query-suggestions.js +0 -107
  163. package/dist/atomic/p-5d71a211.entry.js +0 -2
  164. package/dist/atomic/p-5d71a211.entry.js.map +0 -1
  165. package/dist/atomic/p-7c3c5f07.entry.js.map +0 -1
  166. package/dist/atomic/p-de687bed.entry.js +0 -2
  167. package/dist/atomic/p-de687bed.entry.js.map +0 -1
  168. package/dist/atomic/p-f2bab68d.entry.js +0 -2
  169. package/dist/atomic/p-f2bab68d.entry.js.map +0 -1
  170. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +0 -38
  171. package/dist/cjs/atomic-relevance-inspector.cjs.entry.js.map +0 -1
  172. package/dist/cjs/atomic-search-box-recent-queries.cjs.entry.js.map +0 -1
  173. package/dist/esm/atomic-relevance-inspector.entry.js +0 -34
  174. package/dist/esm/atomic-relevance-inspector.entry.js.map +0 -1
  175. package/dist/esm/atomic-search-box-recent-queries.entry.js.map +0 -1
  176. /package/dist/atomic/{p-475124d2.entry.js.map → p-01511388.entry.js.map} +0 -0
  177. /package/dist/atomic/{p-10a0603e.js.map → p-03615066.js.map} +0 -0
  178. /package/dist/atomic/{p-60800b2f.entry.js.map → p-0ed76e65.entry.js.map} +0 -0
  179. /package/dist/atomic/{p-0297958a.entry.js.map → p-2c938403.entry.js.map} +0 -0
  180. /package/dist/atomic/{p-16f6c1f3.entry.js.map → p-2fb49fe8.entry.js.map} +0 -0
  181. /package/dist/atomic/{p-13391e75.entry.js.map → p-3549a469.entry.js.map} +0 -0
  182. /package/dist/atomic/{p-7ec6dd3e.entry.js.map → p-65dd9017.entry.js.map} +0 -0
  183. /package/dist/atomic/{p-86bde026.entry.js.map → p-736f4d7e.entry.js.map} +0 -0
  184. /package/dist/atomic/{p-3cbab25b.entry.js.map → p-7e971d15.entry.js.map} +0 -0
  185. /package/dist/atomic/{p-4601eb93.entry.js.map → p-83d3857f.entry.js.map} +0 -0
  186. /package/dist/atomic/{p-dbcef3a9.entry.js.map → p-87f69e53.entry.js.map} +0 -0
  187. /package/dist/atomic/{p-5a710350.entry.js.map → p-8bf425b0.entry.js.map} +0 -0
  188. /package/dist/atomic/{p-e398835b.entry.js.map → p-b2b9e83f.entry.js.map} +0 -0
  189. /package/dist/atomic/{p-8fdef8a3.entry.js.map → p-b313058c.entry.js.map} +0 -0
  190. /package/dist/atomic/{p-0bdd730f.entry.js.map → p-b6ae0244.entry.js.map} +0 -0
  191. /package/dist/atomic/{p-3a7a1a00.entry.js.map → p-bbfe727a.entry.js.map} +0 -0
  192. /package/dist/atomic/{p-97ce3384.entry.js.map → p-be2a43f4.entry.js.map} +0 -0
  193. /package/dist/atomic/{p-a5714bc4.entry.js.map → p-d211a422.entry.js.map} +0 -0
  194. /package/dist/atomic/{p-ca3dc59b.entry.js.map → p-d82b85ab.entry.js.map} +0 -0
  195. /package/dist/atomic/{p-b4359552.entry.js.map → p-e72b8d70.entry.js.map} +0 -0
@@ -3,6 +3,7 @@ import { type i18n } from 'i18next';
3
3
  import { type CSSResultGroup, LitElement } from 'lit';
4
4
  import type { CommonBindings, NonceBindings } from "../../common/interface/bindings";
5
5
  import { type BaseAtomicInterface } from "../../common/interface/interface-controller";
6
+ import "../atomic-relevance-inspector/atomic-relevance-inspector";
6
7
  import { type SearchStore } from './store';
7
8
  import "../../common/atomic-modal/atomic-modal";
8
9
  export type InitializationOptions = SearchEngineConfiguration;
@@ -16,7 +17,6 @@ declare const AtomicSearchInterface_base: typeof LitElement;
16
17
  export declare class AtomicSearchInterface extends AtomicSearchInterface_base implements BaseAtomicInterface<SearchEngine> {
17
18
  bindings: Bindings;
18
19
  error: Error;
19
- relevanceInspectorIsOpen: boolean;
20
20
  urlManager: UrlManager;
21
21
  searchStatus: SearchStatus;
22
22
  private unsubscribeUrlManager;
@@ -24,6 +24,7 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
24
24
  private initialized;
25
25
  private store;
26
26
  private interfaceController;
27
+ private relevanceInspector?;
27
28
  static styles: CSSResultGroup;
28
29
  /**
29
30
  * A list of non-default fields to include in the query results.
@@ -120,6 +121,9 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
120
121
  disconnectedCallback(): void;
121
122
  private handleInitialization;
122
123
  scrollToTop(): void;
124
+ /**
125
+ * @deprecated provided for backward compatibility. set the 'open' property directly on the relevance inspector instead.
126
+ */
123
127
  closeRelevanceInspector(): void;
124
128
  /**
125
129
  * Initializes the connection with the headless search engine using options for `accessToken` (required), `organizationId` (required), `environment` (defaults to `prod`), and `renewAccessToken`.
@@ -143,13 +147,12 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
143
147
  updateIconAssetsPath(): void;
144
148
  private getBindings;
145
149
  private initFieldsToInclude;
150
+ private updateFieldsToInclude;
146
151
  registerFieldsToInclude(): void;
147
152
  private initEngine;
148
153
  private getSearchConfiguration;
149
154
  private get fragment();
150
155
  private initUrlManager;
151
- private handleRelevanceInspectorDoubleClick;
152
- private initRelevanceInspector;
153
156
  private initSearchStatus;
154
157
  private updateHash;
155
158
  private onHashChange;
@@ -1,6 +1,6 @@
1
1
  export { AtomicPager } from './atomic-pager/atomic-pager.js';
2
2
  export { AtomicQuerySummary } from './atomic-query-summary/atomic-query-summary.js';
3
+ export { AtomicRelevanceInspector } from './atomic-relevance-inspector/atomic-relevance-inspector.js';
3
4
  export { AtomicResultsPerPage } from './atomic-results-per-page/atomic-results-per-page.js';
4
- export { AtomicSearchBoxQuerySuggestions } from './atomic-search-box-query-suggestions/atomic-search-box-query-suggestions.js';
5
5
  export { AtomicSearchInterface } from './atomic-search-interface/atomic-search-interface.js';
6
6
  export { AtomicSearchLayout } from './atomic-search-layout/atomic-search-layout.js';
@@ -1,13 +1,9 @@
1
- import { type SearchBox } from '@coveo/headless';
2
- import { LitElement } from 'lit';
3
- import type { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-types";
4
- import type { Bindings } from "../atomic-search-interface/interfaces";
5
- import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
6
1
  /**
7
2
  * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
8
3
  */
9
- export declare class AtomicSearchBoxQuerySuggestions extends LitElement implements SearchBoxSuggestionsComponent<Bindings> {
10
- bindings: SearchBoxSuggestionsBindings<SearchBox, Bindings>;
4
+ export declare class AtomicSearchBoxQuerySuggestions {
5
+ private bindings;
6
+ private host;
11
7
  error: Error;
12
8
  /**
13
9
  * The SVG icon to display.
@@ -20,19 +16,14 @@ export declare class AtomicSearchBoxQuerySuggestions extends LitElement implemen
20
16
  /**
21
17
  * The maximum number of suggestions that will be displayed if the user has typed something into the input field.
22
18
  */
23
- maxWithQuery: number;
19
+ maxWithQuery?: number;
24
20
  /**
25
21
  * The maximum number of suggestions that will be displayed initially when the input field is empty.
26
22
  */
27
23
  maxWithoutQuery?: number;
28
- connectedCallback(): void;
29
- initialize(): SearchBoxSuggestions;
24
+ componentWillLoad(): void;
25
+ private initialize;
30
26
  private renderItems;
31
27
  private renderItem;
32
- render(): import("lit-html").TemplateResult<1>;
33
- }
34
- declare global {
35
- interface HTMLElementTagNameMap {
36
- 'atomic-search-box-query-suggestions': AtomicSearchBoxQuerySuggestions;
37
- }
28
+ render(): any;
38
29
  }
@@ -20,7 +20,6 @@ import { InsightResultAttachToCaseEvent } from "./components/insight/atomic-insi
20
20
  import { RecommendationEngine, InteractiveResult as RecsInteractiveResult, LogLevel as RecsLogLevel, Result as RecsResult, ResultTemplate as RecsResultTemplate, ResultTemplateCondition as RecsResultTemplateCondition } from "@coveo/headless/recommendation";
21
21
  import { RecsInitializationOptions } from "./components/recommendations/atomic-recs-interface/atomic-recs-interface";
22
22
  import { RecsStore } from "./components/recommendations/atomic-recs-interface/store";
23
- import { Bindings } from "./components/search/atomic-search-interface/atomic-search-interface";
24
23
  import { SearchStore } from "./components/search/atomic-search-interface/store";
25
24
  import { RedirectionPayload } from "./components/common/search-box/redirection-payload";
26
25
  import { AriaLabelGenerator } from "./components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results";
@@ -40,7 +39,6 @@ export { InsightResultAttachToCaseEvent } from "./components/insight/atomic-insi
40
39
  export { RecommendationEngine, InteractiveResult as RecsInteractiveResult, LogLevel as RecsLogLevel, Result as RecsResult, ResultTemplate as RecsResultTemplate, ResultTemplateCondition as RecsResultTemplateCondition } from "@coveo/headless/recommendation";
41
40
  export { RecsInitializationOptions } from "./components/recommendations/atomic-recs-interface/atomic-recs-interface";
42
41
  export { RecsStore } from "./components/recommendations/atomic-recs-interface/store";
43
- export { Bindings } from "./components/search/atomic-search-interface/atomic-search-interface";
44
42
  export { SearchStore } from "./components/search/atomic-search-interface/store";
45
43
  export { RedirectionPayload } from "./components/common/search-box/redirection-payload";
46
44
  export { AriaLabelGenerator } from "./components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results";
@@ -1821,16 +1819,6 @@ export namespace Components {
1821
1819
  */
1822
1820
  "collapseFacetsAfter": number;
1823
1821
  }
1824
- /**
1825
- * The `atomic-relevance-inspector` component is used internally to offer insight on search page relevance, as well as information to help troubleshoot issues during development.
1826
- */
1827
- interface AtomicRelevanceInspector {
1828
- /**
1829
- * The Atomic interface bindings, namely the headless search engine and i18n instances.
1830
- */
1831
- "bindings": Bindings;
1832
- "open": boolean;
1833
- }
1834
1822
  /**
1835
1823
  * The `atomic-result` component is used internally by the `atomic-result-list` component.
1836
1824
  */
@@ -2394,6 +2382,23 @@ export namespace Components {
2394
2382
  */
2395
2383
  "setRenderFunction": (resultRenderingFunction: ItemRenderingFunction) => Promise<void>;
2396
2384
  }
2385
+ /**
2386
+ * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
2387
+ */
2388
+ interface AtomicSearchBoxQuerySuggestions {
2389
+ /**
2390
+ * The SVG icon to display. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
2391
+ */
2392
+ "icon"?: string;
2393
+ /**
2394
+ * The maximum number of suggestions that will be displayed if the user has typed something into the input field.
2395
+ */
2396
+ "maxWithQuery"?: number;
2397
+ /**
2398
+ * The maximum number of suggestions that will be displayed initially when the input field is empty.
2399
+ */
2400
+ "maxWithoutQuery"?: number;
2401
+ }
2397
2402
  /**
2398
2403
  * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
2399
2404
  */
@@ -2827,10 +2832,6 @@ export interface AtomicQuickviewModalCustomEvent<T> extends CustomEvent<T> {
2827
2832
  detail: T;
2828
2833
  target: HTMLAtomicQuickviewModalElement;
2829
2834
  }
2830
- export interface AtomicRelevanceInspectorCustomEvent<T> extends CustomEvent<T> {
2831
- detail: T;
2832
- target: HTMLAtomicRelevanceInspectorElement;
2833
- }
2834
2835
  export interface AtomicSearchBoxCustomEvent<T> extends CustomEvent<T> {
2835
2836
  detail: T;
2836
2837
  target: HTMLAtomicSearchBoxElement;
@@ -3642,26 +3643,6 @@ declare global {
3642
3643
  prototype: HTMLAtomicRefineToggleElement;
3643
3644
  new (): HTMLAtomicRefineToggleElement;
3644
3645
  };
3645
- interface HTMLAtomicRelevanceInspectorElementEventMap {
3646
- "atomic/relevanceInspector/close": any;
3647
- }
3648
- /**
3649
- * The `atomic-relevance-inspector` component is used internally to offer insight on search page relevance, as well as information to help troubleshoot issues during development.
3650
- */
3651
- interface HTMLAtomicRelevanceInspectorElement extends Components.AtomicRelevanceInspector, HTMLStencilElement {
3652
- addEventListener<K extends keyof HTMLAtomicRelevanceInspectorElementEventMap>(type: K, listener: (this: HTMLAtomicRelevanceInspectorElement, ev: AtomicRelevanceInspectorCustomEvent<HTMLAtomicRelevanceInspectorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
3653
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3654
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3655
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3656
- removeEventListener<K extends keyof HTMLAtomicRelevanceInspectorElementEventMap>(type: K, listener: (this: HTMLAtomicRelevanceInspectorElement, ev: AtomicRelevanceInspectorCustomEvent<HTMLAtomicRelevanceInspectorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
3657
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3658
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3659
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3660
- }
3661
- var HTMLAtomicRelevanceInspectorElement: {
3662
- prototype: HTMLAtomicRelevanceInspectorElement;
3663
- new (): HTMLAtomicRelevanceInspectorElement;
3664
- };
3665
3646
  /**
3666
3647
  * The `atomic-result` component is used internally by the `atomic-result-list` component.
3667
3648
  */
@@ -4054,6 +4035,15 @@ declare global {
4054
4035
  prototype: HTMLAtomicSearchBoxInstantResultsElement;
4055
4036
  new (): HTMLAtomicSearchBoxInstantResultsElement;
4056
4037
  };
4038
+ /**
4039
+ * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
4040
+ */
4041
+ interface HTMLAtomicSearchBoxQuerySuggestionsElement extends Components.AtomicSearchBoxQuerySuggestions, HTMLStencilElement {
4042
+ }
4043
+ var HTMLAtomicSearchBoxQuerySuggestionsElement: {
4044
+ prototype: HTMLAtomicSearchBoxQuerySuggestionsElement;
4045
+ new (): HTMLAtomicSearchBoxQuerySuggestionsElement;
4046
+ };
4057
4047
  /**
4058
4048
  * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
4059
4049
  */
@@ -4423,7 +4413,6 @@ declare global {
4423
4413
  "atomic-recs-result-template": HTMLAtomicRecsResultTemplateElement;
4424
4414
  "atomic-refine-modal": HTMLAtomicRefineModalElement;
4425
4415
  "atomic-refine-toggle": HTMLAtomicRefineToggleElement;
4426
- "atomic-relevance-inspector": HTMLAtomicRelevanceInspectorElement;
4427
4416
  "atomic-result": HTMLAtomicResultElement;
4428
4417
  "atomic-result-badge": HTMLAtomicResultBadgeElement;
4429
4418
  "atomic-result-children": HTMLAtomicResultChildrenElement;
@@ -4456,6 +4445,7 @@ declare global {
4456
4445
  "atomic-result-timespan": HTMLAtomicResultTimespanElement;
4457
4446
  "atomic-search-box": HTMLAtomicSearchBoxElement;
4458
4447
  "atomic-search-box-instant-results": HTMLAtomicSearchBoxInstantResultsElement;
4448
+ "atomic-search-box-query-suggestions": HTMLAtomicSearchBoxQuerySuggestionsElement;
4459
4449
  "atomic-search-box-recent-queries": HTMLAtomicSearchBoxRecentQueriesElement;
4460
4450
  "atomic-segmented-facet": HTMLAtomicSegmentedFacetElement;
4461
4451
  "atomic-segmented-facet-scrollable": HTMLAtomicSegmentedFacetScrollableElement;
@@ -6156,17 +6146,6 @@ declare namespace LocalJSX {
6156
6146
  */
6157
6147
  "collapseFacetsAfter"?: number;
6158
6148
  }
6159
- /**
6160
- * The `atomic-relevance-inspector` component is used internally to offer insight on search page relevance, as well as information to help troubleshoot issues during development.
6161
- */
6162
- interface AtomicRelevanceInspector {
6163
- /**
6164
- * The Atomic interface bindings, namely the headless search engine and i18n instances.
6165
- */
6166
- "bindings": Bindings;
6167
- "onAtomic/relevanceInspector/close"?: (event: AtomicRelevanceInspectorCustomEvent<any>) => void;
6168
- "open"?: boolean;
6169
- }
6170
6149
  /**
6171
6150
  * The `atomic-result` component is used internally by the `atomic-result-list` component.
6172
6151
  */
@@ -6703,6 +6682,23 @@ declare namespace LocalJSX {
6703
6682
  */
6704
6683
  "maxResultsPerQuery"?: number;
6705
6684
  }
6685
+ /**
6686
+ * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
6687
+ */
6688
+ interface AtomicSearchBoxQuerySuggestions {
6689
+ /**
6690
+ * The SVG icon to display. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
6691
+ */
6692
+ "icon"?: string;
6693
+ /**
6694
+ * The maximum number of suggestions that will be displayed if the user has typed something into the input field.
6695
+ */
6696
+ "maxWithQuery"?: number;
6697
+ /**
6698
+ * The maximum number of suggestions that will be displayed initially when the input field is empty.
6699
+ */
6700
+ "maxWithoutQuery"?: number;
6701
+ }
6706
6702
  /**
6707
6703
  * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
6708
6704
  */
@@ -7191,7 +7187,6 @@ declare namespace LocalJSX {
7191
7187
  "atomic-recs-result-template": AtomicRecsResultTemplate;
7192
7188
  "atomic-refine-modal": AtomicRefineModal;
7193
7189
  "atomic-refine-toggle": AtomicRefineToggle;
7194
- "atomic-relevance-inspector": AtomicRelevanceInspector;
7195
7190
  "atomic-result": AtomicResult;
7196
7191
  "atomic-result-badge": AtomicResultBadge;
7197
7192
  "atomic-result-children": AtomicResultChildren;
@@ -7224,6 +7219,7 @@ declare namespace LocalJSX {
7224
7219
  "atomic-result-timespan": AtomicResultTimespan;
7225
7220
  "atomic-search-box": AtomicSearchBox;
7226
7221
  "atomic-search-box-instant-results": AtomicSearchBoxInstantResults;
7222
+ "atomic-search-box-query-suggestions": AtomicSearchBoxQuerySuggestions;
7227
7223
  "atomic-search-box-recent-queries": AtomicSearchBoxRecentQueries;
7228
7224
  "atomic-segmented-facet": AtomicSegmentedFacet;
7229
7225
  "atomic-segmented-facet-scrollable": AtomicSegmentedFacetScrollable;
@@ -7507,10 +7503,6 @@ declare module "@stencil/core" {
7507
7503
  * When this component is added to the `atomic-search-interface`, an `atomic-refine-modal` component is automatically created.
7508
7504
  */
7509
7505
  "atomic-refine-toggle": LocalJSX.AtomicRefineToggle & JSXBase.HTMLAttributes<HTMLAtomicRefineToggleElement>;
7510
- /**
7511
- * The `atomic-relevance-inspector` component is used internally to offer insight on search page relevance, as well as information to help troubleshoot issues during development.
7512
- */
7513
- "atomic-relevance-inspector": LocalJSX.AtomicRelevanceInspector & JSXBase.HTMLAttributes<HTMLAtomicRelevanceInspectorElement>;
7514
7506
  /**
7515
7507
  * The `atomic-result` component is used internally by the `atomic-result-list` component.
7516
7508
  */
@@ -7732,6 +7724,10 @@ declare module "@stencil/core" {
7732
7724
  * This component is not supported on mobile.
7733
7725
  */
7734
7726
  "atomic-search-box-instant-results": LocalJSX.AtomicSearchBoxInstantResults & JSXBase.HTMLAttributes<HTMLAtomicSearchBoxInstantResultsElement>;
7727
+ /**
7728
+ * The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.
7729
+ */
7730
+ "atomic-search-box-query-suggestions": LocalJSX.AtomicSearchBoxQuerySuggestions & JSXBase.HTMLAttributes<HTMLAtomicSearchBoxQuerySuggestionsElement>;
7735
7731
  /**
7736
7732
  * The `atomic-search-box-recent-queries` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of recent query suggestions.
7737
7733
  */
@@ -12,7 +12,7 @@ export interface HierarchicalPathProps {
12
12
  }
13
13
  declare class HierarchicalPathDirective extends Directive {
14
14
  constructor(partInfo: PartInfo);
15
- render(props: HierarchicalPathProps): string | TemplateResult<1>[] | TemplateResult;
15
+ render(props: HierarchicalPathProps): string | TemplateResult | TemplateResult<1>[];
16
16
  private getEllipsedPath;
17
17
  }
18
18
  export declare const hierarchicalPath: (props: HierarchicalPathProps) => import("lit-html/directive.js").DirectiveResult<typeof HierarchicalPathDirective>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Performs a deep equality comparison between two values.
3
+ * Handles primitives, null/undefined, arrays, and objects.
4
+ *
5
+ * @param a - First value to compare
6
+ * @param b - Second value to compare
7
+ * @returns true if values are deeply equal, false otherwise
8
+ */
9
+ export declare function deepEqual(a: unknown, b: unknown): boolean;
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-10-03T19:09:48",
2
+ "timestamp": "2025-10-06T18:51:33",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.20.0",
@@ -9175,88 +9175,6 @@
9175
9175
  ]
9176
9176
  }
9177
9177
  },
9178
- {
9179
- "filePath": "src/components/search/atomic-relevance-inspector/atomic-relevance-inspector.tsx",
9180
- "encapsulation": "shadow",
9181
- "tag": "atomic-relevance-inspector",
9182
- "docs": "The `atomic-relevance-inspector` component is used internally to offer insight on search page relevance, as well as information to help troubleshoot issues during development.",
9183
- "docsTags": [],
9184
- "usage": {},
9185
- "props": [
9186
- {
9187
- "name": "bindings",
9188
- "type": "CommonBindings<SearchEngine<{}>, SearchStore, AtomicSearchInterface> & NonceBindings",
9189
- "complexType": {
9190
- "original": "Bindings",
9191
- "resolved": "CommonBindings<SearchEngine<{}>, SearchStore, AtomicSearchInterface> & NonceBindings",
9192
- "references": {
9193
- "Bindings": {
9194
- "location": "import",
9195
- "path": "../atomic-search-interface/atomic-search-interface",
9196
- "id": "src/components/search/atomic-search-interface/atomic-search-interface.ts::Bindings"
9197
- }
9198
- }
9199
- },
9200
- "mutable": false,
9201
- "reflectToAttr": false,
9202
- "docs": "The Atomic interface bindings, namely the headless search engine and i18n instances.",
9203
- "docsTags": [],
9204
- "values": [
9205
- {
9206
- "type": "CommonBindings<SearchEngine<{}>, SearchStore, AtomicSearchInterface> & NonceBindings"
9207
- }
9208
- ],
9209
- "optional": false,
9210
- "required": true
9211
- },
9212
- {
9213
- "name": "open",
9214
- "type": "boolean",
9215
- "complexType": {
9216
- "original": "boolean",
9217
- "resolved": "boolean",
9218
- "references": {}
9219
- },
9220
- "mutable": false,
9221
- "attr": "open",
9222
- "reflectToAttr": true,
9223
- "docs": "",
9224
- "docsTags": [],
9225
- "default": "false",
9226
- "values": [
9227
- {
9228
- "type": "boolean"
9229
- }
9230
- ],
9231
- "optional": false,
9232
- "required": false
9233
- }
9234
- ],
9235
- "methods": [],
9236
- "events": [
9237
- {
9238
- "event": "atomic/relevanceInspector/close",
9239
- "detail": "any",
9240
- "bubbles": true,
9241
- "complexType": {
9242
- "original": "any",
9243
- "resolved": "any",
9244
- "references": {}
9245
- },
9246
- "cancelable": true,
9247
- "composed": true,
9248
- "docs": "",
9249
- "docsTags": []
9250
- }
9251
- ],
9252
- "listeners": [],
9253
- "styles": [],
9254
- "slots": [],
9255
- "parts": [],
9256
- "dependents": [],
9257
- "dependencies": [],
9258
- "dependencyGraph": {}
9259
- },
9260
9178
  {
9261
9179
  "filePath": "src/components/search/atomic-result/atomic-result.tsx",
9262
9180
  "encapsulation": "shadow",
@@ -12308,12 +12226,14 @@
12308
12226
  "dependents": [],
12309
12227
  "dependencies": [
12310
12228
  "atomic-suggestion-renderer",
12311
- "atomic-search-box-recent-queries"
12229
+ "atomic-search-box-recent-queries",
12230
+ "atomic-search-box-query-suggestions"
12312
12231
  ],
12313
12232
  "dependencyGraph": {
12314
12233
  "atomic-search-box": [
12315
12234
  "atomic-suggestion-renderer",
12316
- "atomic-search-box-recent-queries"
12235
+ "atomic-search-box-recent-queries",
12236
+ "atomic-search-box-query-suggestions"
12317
12237
  ]
12318
12238
  }
12319
12239
  },
@@ -12534,6 +12454,103 @@
12534
12454
  ]
12535
12455
  }
12536
12456
  },
12457
+ {
12458
+ "filePath": "src/components/search/search-box-suggestions/atomic-search-box-query-suggestions/atomic-search-box-query-suggestions.tsx",
12459
+ "encapsulation": "shadow",
12460
+ "tag": "atomic-search-box-query-suggestions",
12461
+ "docs": "The `atomic-search-box-query-suggestions` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of query suggestion behavior.",
12462
+ "docsTags": [],
12463
+ "usage": {},
12464
+ "props": [
12465
+ {
12466
+ "name": "icon",
12467
+ "type": "string | undefined",
12468
+ "complexType": {
12469
+ "original": "string",
12470
+ "resolved": "string | undefined",
12471
+ "references": {}
12472
+ },
12473
+ "mutable": false,
12474
+ "attr": "icon",
12475
+ "reflectToAttr": false,
12476
+ "docs": "The SVG icon to display.\n\n- Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location.\n- Use a value that starts with `assets://`, to display an icon from the Atomic package.\n- Use a stringified SVG to display it directly.",
12477
+ "docsTags": [],
12478
+ "values": [
12479
+ {
12480
+ "type": "string"
12481
+ },
12482
+ {
12483
+ "type": "undefined"
12484
+ }
12485
+ ],
12486
+ "optional": true,
12487
+ "required": false
12488
+ },
12489
+ {
12490
+ "name": "maxWithQuery",
12491
+ "type": "number | undefined",
12492
+ "complexType": {
12493
+ "original": "number",
12494
+ "resolved": "number | undefined",
12495
+ "references": {}
12496
+ },
12497
+ "mutable": false,
12498
+ "attr": "max-with-query",
12499
+ "reflectToAttr": true,
12500
+ "docs": "The maximum number of suggestions that will be displayed if the user has typed something into the input field.",
12501
+ "docsTags": [],
12502
+ "values": [
12503
+ {
12504
+ "type": "number"
12505
+ },
12506
+ {
12507
+ "type": "undefined"
12508
+ }
12509
+ ],
12510
+ "optional": true,
12511
+ "required": false
12512
+ },
12513
+ {
12514
+ "name": "maxWithoutQuery",
12515
+ "type": "number | undefined",
12516
+ "complexType": {
12517
+ "original": "number",
12518
+ "resolved": "number | undefined",
12519
+ "references": {}
12520
+ },
12521
+ "mutable": false,
12522
+ "attr": "max-without-query",
12523
+ "reflectToAttr": true,
12524
+ "docs": "The maximum number of suggestions that will be displayed initially when the input field is empty.",
12525
+ "docsTags": [],
12526
+ "values": [
12527
+ {
12528
+ "type": "number"
12529
+ },
12530
+ {
12531
+ "type": "undefined"
12532
+ }
12533
+ ],
12534
+ "optional": true,
12535
+ "required": false
12536
+ }
12537
+ ],
12538
+ "methods": [],
12539
+ "events": [],
12540
+ "listeners": [],
12541
+ "styles": [],
12542
+ "slots": [],
12543
+ "parts": [],
12544
+ "dependents": [
12545
+ "atomic-search-box"
12546
+ ],
12547
+ "dependencies": [],
12548
+ "dependencyGraph": {
12549
+ "atomic-search-box": [
12550
+ "atomic-search-box-query-suggestions"
12551
+ ]
12552
+ }
12553
+ },
12537
12554
  {
12538
12555
  "filePath": "src/components/search/search-box-suggestions/atomic-search-box-recent-queries/atomic-search-box-recent-queries.tsx",
12539
12556
  "encapsulation": "shadow",
@@ -15426,11 +15443,6 @@
15426
15443
  "docstring": "",
15427
15444
  "path": "src/utils/initialization-utils.tsx"
15428
15445
  },
15429
- "src/components/search/atomic-search-interface/atomic-search-interface.ts::Bindings": {
15430
- "declaration": "export type Bindings = CommonBindings<\n SearchEngine,\n SearchStore,\n AtomicSearchInterface\n> &\n //TODO: KIT-4893 - Remove once atomic-quickview-modal migration is complete.\n NonceBindings;",
15431
- "docstring": "",
15432
- "path": "src/components/search/atomic-search-interface/atomic-search-interface.ts"
15433
- },
15434
15446
  "../headless/dist/definitions/index.d.ts::FoldedResult": {
15435
15447
  "declaration": "any",
15436
15448
  "docstring": "",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coveo/atomic",
3
3
  "type": "module",
4
- "version": "3.34.0-pre.8b1d289c8b",
4
+ "version": "3.34.0-pre.9353d3e7c7",
5
5
  "description": "A web-component library for building modern UIs interfacing with the Coveo platform",
6
6
  "homepage": "https://docs.coveo.com/en/atomic/latest/",
7
7
  "repository": {
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../../types/components";
2
-
3
- interface AtomicRelevanceInspector extends Components.AtomicRelevanceInspector, HTMLElement {}
4
- export const AtomicRelevanceInspector: {
5
- prototype: AtomicRelevanceInspector;
6
- new (): AtomicRelevanceInspector;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;