@coveo/atomic 3.32.3-pre.d8395b7e5a → 3.32.3-pre.d8ef4547c4

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 (129) hide show
  1. package/dist/atomic/_atomic.esm.js +1 -1
  2. package/dist/atomic/components/analytics-config.js +1 -1
  3. package/dist/atomic/components/atomic-generated-answer.js +2 -4
  4. package/dist/atomic/components/atomic-generated-answer.js.map +1 -1
  5. package/dist/atomic/components/atomic-insight-generated-answer.js +2 -3
  6. package/dist/atomic/components/atomic-insight-generated-answer.js.map +1 -1
  7. package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +0 -2
  8. package/dist/atomic/components/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.js +3 -2
  9. package/dist/atomic/components/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.js +0 -2
  10. package/dist/atomic/components/components/commerce/atomic-commerce-facet/atomic-commerce-facet.js +4 -5
  11. package/dist/atomic/components/components/commerce/atomic-commerce-facets/atomic-commerce-facets.js +0 -1
  12. package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +1 -2
  13. package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js +2 -1
  14. package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.tw.css.js +1 -1
  15. package/dist/atomic/components/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.js +0 -2
  16. package/dist/atomic/components/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.js +3 -5
  17. package/dist/atomic/components/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +0 -1
  18. package/dist/atomic/components/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.js +0 -2
  19. package/dist/atomic/components/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.js +0 -2
  20. package/dist/atomic/components/components/commerce/atomic-commerce-query-error/atomic-commerce-query-error.js +0 -2
  21. package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +0 -2
  22. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +3 -1
  23. package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.js +0 -1
  24. package/dist/atomic/components/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.js +0 -2
  25. package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +0 -2
  26. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +1 -4
  27. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.js +1 -2
  28. package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +0 -2
  29. package/dist/atomic/components/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.js +0 -2
  30. package/dist/atomic/components/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.js +3 -4
  31. package/dist/atomic/components/components/commerce/atomic-product-field-condition/atomic-product-field-condition.js +0 -2
  32. package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.js +2 -1
  33. package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.js +0 -2
  34. package/dist/atomic/components/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.js +0 -1
  35. package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.js +0 -1
  36. package/dist/atomic/components/components/commerce/atomic-product-rating/atomic-product-rating.js +0 -2
  37. package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +0 -2
  38. package/dist/atomic/components/components/common/atomic-facet-date-input/atomic-facet-date-input.js +4 -2
  39. package/dist/atomic/components/components/common/facets/facet-value-checkbox/facet-value-checkbox.js +1 -0
  40. package/dist/atomic/components/components/common/facets/facet-value-link/facet-value-link.js +1 -0
  41. package/dist/atomic/components/generated-answer-common.js +0 -23
  42. package/dist/atomic/components/generated-answer-common.js.map +1 -1
  43. package/dist/atomic/components/global/environment.js +1 -1
  44. package/dist/atomic/{p-8ace8433.entry.js → p-1fbcf15f.entry.js} +2 -2
  45. package/dist/atomic/p-2857ab2b.js +2 -0
  46. package/dist/atomic/p-2857ab2b.js.map +1 -0
  47. package/dist/atomic/p-50dc4fa2.entry.js +2 -0
  48. package/dist/atomic/p-50dc4fa2.entry.js.map +1 -0
  49. package/dist/atomic/{p-4fb01481.entry.js → p-7f62a39d.entry.js} +2 -2
  50. package/dist/atomic/{p-e74a4a8c.entry.js → p-81f316a4.entry.js} +2 -2
  51. package/dist/atomic/{p-0dc126bb.entry.js → p-e2135441.entry.js} +2 -2
  52. package/dist/atomic/p-e2135441.entry.js.map +1 -0
  53. package/dist/atomic/{p-320ab8c0.js → p-f0ec2e17.js} +2 -2
  54. package/dist/cjs/_loader.cjs.js +1 -1
  55. package/dist/cjs/{analytics-config-879b5a35.js → analytics-config-c1e1e561.js} +2 -2
  56. package/dist/cjs/{analytics-config-879b5a35.js.map → analytics-config-c1e1e561.js.map} +1 -1
  57. package/dist/cjs/atomic-generated-answer.cjs.entry.js +2 -4
  58. package/dist/cjs/atomic-generated-answer.cjs.entry.js.map +1 -1
  59. package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +2 -4
  60. package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js.map +1 -1
  61. package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
  62. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  63. package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
  64. package/dist/cjs/atomic.cjs.js +1 -1
  65. package/dist/cjs/{generated-answer-common-1f24d687.js → generated-answer-common-1f7e3c88.js} +1 -24
  66. package/dist/cjs/generated-answer-common-1f7e3c88.js.map +1 -0
  67. package/dist/cjs/version.cjs.js +2 -2
  68. package/dist/esm/_loader.js +1 -1
  69. package/dist/esm/{analytics-config-3175e6f5.js → analytics-config-38f7c123.js} +2 -2
  70. package/dist/esm/{analytics-config-3175e6f5.js.map → analytics-config-38f7c123.js.map} +1 -1
  71. package/dist/esm/atomic-generated-answer.entry.js +2 -4
  72. package/dist/esm/atomic-generated-answer.entry.js.map +1 -1
  73. package/dist/esm/atomic-insight-generated-answer.entry.js +2 -4
  74. package/dist/esm/atomic-insight-generated-answer.entry.js.map +1 -1
  75. package/dist/esm/atomic-insight-interface.entry.js +1 -1
  76. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  77. package/dist/esm/atomic-search-interface.entry.js +1 -1
  78. package/dist/esm/atomic.js +1 -1
  79. package/dist/esm/{generated-answer-common-83e389e1.js → generated-answer-common-ee9bfc67.js} +1 -24
  80. package/dist/esm/generated-answer-common-ee9bfc67.js.map +1 -0
  81. package/dist/esm/version.js +2 -2
  82. package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +0 -2
  83. package/dist/types/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.d.ts +1 -3
  84. package/dist/types/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.d.ts +0 -2
  85. package/dist/types/components/commerce/atomic-commerce-facet/atomic-commerce-facet.d.ts +1 -5
  86. package/dist/types/components/commerce/atomic-commerce-facets/atomic-commerce-facets.d.ts +0 -1
  87. package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +1 -2
  88. package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +2 -1
  89. package/dist/types/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.d.ts +0 -2
  90. package/dist/types/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.d.ts +1 -6
  91. package/dist/types/components/commerce/atomic-commerce-pager/atomic-commerce-pager.d.ts +0 -1
  92. package/dist/types/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.d.ts +0 -2
  93. package/dist/types/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.d.ts +0 -2
  94. package/dist/types/components/commerce/atomic-commerce-query-error/atomic-commerce-query-error.d.ts +0 -2
  95. package/dist/types/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.d.ts +0 -2
  96. package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +3 -1
  97. package/dist/types/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.d.ts +0 -1
  98. package/dist/types/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.d.ts +0 -2
  99. package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +0 -2
  100. package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +1 -4
  101. package/dist/types/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.d.ts +1 -2
  102. package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +0 -2
  103. package/dist/types/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.d.ts +0 -2
  104. package/dist/types/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.d.ts +1 -5
  105. package/dist/types/components/commerce/atomic-product-field-condition/atomic-product-field-condition.d.ts +0 -2
  106. package/dist/types/components/commerce/atomic-product-link/atomic-product-link.d.ts +2 -1
  107. package/dist/types/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.d.ts +0 -2
  108. package/dist/types/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.d.ts +0 -1
  109. package/dist/types/components/commerce/atomic-product-price/atomic-product-price.d.ts +0 -1
  110. package/dist/types/components/commerce/atomic-product-rating/atomic-product-rating.d.ts +0 -2
  111. package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +0 -2
  112. package/dist/types/components/common/atomic-facet-date-input/atomic-facet-date-input.d.ts +2 -3
  113. package/dist/types/components/common/generated-answer/generated-answer-common.d.ts +0 -1
  114. package/dist/types/components/insight/atomic-insight-generated-answer/atomic-insight-generated-answer.d.ts +3 -3
  115. package/dist/types/components/search/atomic-generated-answer/atomic-generated-answer.d.ts +3 -3
  116. package/dist/types/components.d.ts +8 -8
  117. package/docs/atomic-docs.json +6 -6
  118. package/package.json +3 -3
  119. package/dist/atomic/p-0dc126bb.entry.js.map +0 -1
  120. package/dist/atomic/p-c6e1a7ab.entry.js +0 -2
  121. package/dist/atomic/p-c6e1a7ab.entry.js.map +0 -1
  122. package/dist/atomic/p-cf3b7218.js +0 -2
  123. package/dist/atomic/p-cf3b7218.js.map +0 -1
  124. package/dist/cjs/generated-answer-common-1f24d687.js.map +0 -1
  125. package/dist/esm/generated-answer-common-83e389e1.js.map +0 -1
  126. /package/dist/atomic/{p-8ace8433.entry.js.map → p-1fbcf15f.entry.js.map} +0 -0
  127. /package/dist/atomic/{p-4fb01481.entry.js.map → p-7f62a39d.entry.js.map} +0 -0
  128. /package/dist/atomic/{p-e74a4a8c.entry.js.map → p-81f316a4.entry.js.map} +0 -0
  129. /package/dist/atomic/{p-320ab8c0.js.map → p-f0ec2e17.js.map} +0 -0
@@ -3,7 +3,6 @@ import type { CSSResultGroup, TemplateResult } from 'lit';
3
3
  import { LitElement } from 'lit';
4
4
  import type { CommerceBindings } from "../atomic-commerce-interface/atomic-commerce-interface";
5
5
  import type { InitializableComponent } from "../../../decorators/types";
6
- declare const AtomicCommerceCategoryFacet_base: typeof LitElement;
7
6
  /**
8
7
  * A facet is a list of values for a certain field occurring in the results, ordered using a configurable criteria (e.g., number of occurrences).
9
8
  * An `atomic-commerce-category-facet` displays a facet of values in a browsable, hierarchical fashion.
@@ -44,7 +43,7 @@ declare const AtomicCommerceCategoryFacet_base: typeof LitElement;
44
43
  * @part show-more-less-icon - The icons of the "Show more" and "Show less" buttons.
45
44
  *
46
45
  */
47
- export declare class AtomicCommerceCategoryFacet extends AtomicCommerceCategoryFacet_base implements InitializableComponent<CommerceBindings> {
46
+ export declare class AtomicCommerceCategoryFacet extends LitElement implements InitializableComponent<CommerceBindings> {
48
47
  static styles: CSSResultGroup;
49
48
  bindings: CommerceBindings;
50
49
  /**
@@ -92,4 +91,3 @@ declare global {
92
91
  'atomic-commerce-category-facet': AtomicCommerceCategoryFacet;
93
92
  }
94
93
  }
95
- export {};
@@ -3,8 +3,6 @@ import { LitElement } from 'lit';
3
3
  import type { InitializableComponent } from "../../../decorators/types";
4
4
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
5
5
  /**
6
- * @alpha
7
- *
8
6
  * The `atomic-commerce-did-you-mean` component is responsible for handling query corrections. When a query returns no products but finds a possible query correction, the component either suggests the correction or automatically triggers a new query with the suggested term.
9
7
  *
10
8
  * @part no-results - The text displayed when there are no results.
@@ -2,7 +2,6 @@ import type { ProductListingSummaryState, RegularFacet, RegularFacetState, Searc
2
2
  import { type CSSResultGroup, LitElement } from 'lit';
3
3
  import type { InitializableComponent } from "../../../decorators/types";
4
4
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
5
- declare const AtomicCommerceFacet_base: typeof LitElement;
6
5
  /**
7
6
  * The `atomic-commerce-facet` component renders a commerce facet that the end user can interact with to filter products.
8
7
  *
@@ -35,10 +34,8 @@ declare const AtomicCommerceFacet_base: typeof LitElement;
35
34
  * @part show-more - The show more results button.
36
35
  * @part show-less - The show less results button.
37
36
  * @part show-more-less-icon - The icons of the show more & show less buttons.
38
- *
39
- * @alpha
40
37
  */
41
- export declare class AtomicCommerceFacet extends AtomicCommerceFacet_base implements InitializableComponent<CommerceBindings> {
38
+ export declare class AtomicCommerceFacet extends LitElement implements InitializableComponent<CommerceBindings> {
42
39
  /**
43
40
  * The Summary controller instance.
44
41
  */
@@ -92,4 +89,3 @@ declare global {
92
89
  'atomic-commerce-facet': AtomicCommerceFacet;
93
90
  }
94
91
  }
95
- export {};
@@ -9,7 +9,6 @@ import '../atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet';
9
9
  /**
10
10
  * The `atomic-commerce-facets` component automatically renders commerce facets based on the Commerce API response.
11
11
  * Unlike regular facets, which require explicit definition and request in the query, the `atomic-commerce-facets` component dynamically generates facets.
12
- *
13
12
  */
14
13
  export declare class AtomicCommerceFacets extends LitElement implements InitializableComponent<CommerceBindings> {
15
14
  bindings: CommerceBindings;
@@ -8,13 +8,12 @@ export type CommerceInitializationOptions = CommerceEngineConfiguration;
8
8
  export type CommerceBindings = CommonBindings<CommerceEngine, CommerceStore, AtomicCommerceInterface>;
9
9
  declare const AtomicCommerceInterface_base: typeof LitElement;
10
10
  /**
11
- * @alpha
12
11
  * The `atomic-commerce-interface` component is the parent to all other atomic commerce components in a commerce page
13
12
  * (except for `atomic-commerce-recommendation-list`, which must have
14
13
  * `atomic-commerce-recommendation-interface` as a parent). It handles the headless commerce engine and localization
15
14
  * configurations.
16
15
  *
17
- * @slot default - The default slot where you can add child components to the search box.
16
+ * @slot default - The default slot where you can add child components to the interface.
18
17
  */
19
18
  export declare class AtomicCommerceInterface extends AtomicCommerceInterface_base implements BaseAtomicInterface<CommerceEngine> {
20
19
  urlManager: UrlManager;
@@ -2,7 +2,8 @@ import { LitElement } from 'lit';
2
2
  declare const AtomicCommerceLayout_base: typeof LitElement;
3
3
  /**
4
4
  * The `atomic-commerce-layout` helps organize elements in the commerce page.
5
- * @alpha
5
+ *
6
+ * @slot default - The default slot where you can add child components to the layout.
6
7
  */
7
8
  export declare class AtomicCommerceLayout extends AtomicCommerceLayout_base {
8
9
  error: Error;
@@ -4,8 +4,6 @@ import type { InitializableComponent } from "../../../decorators/types.js";
4
4
  import { AriaLiveRegionController } from "../../../utils/accessibility-utils.js";
5
5
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface.js';
6
6
  /**
7
- * @alpha
8
- *
9
7
  * The `atomic-commerce-no-products` component displays search tips when there are no products. Any additional content slotted inside of its element will be displayed as well.
10
8
  *
11
9
  * @part no-results - The text indicating that no products were found for the search.
@@ -3,7 +3,6 @@ import { type CSSResultGroup, LitElement } from 'lit';
3
3
  import type { InitializableComponent } from "../../../decorators/types";
4
4
  import '../atomic-commerce-facet-number-input/atomic-commerce-facet-number-input';
5
5
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
6
- declare const AtomicCommerceNumericFacet_base: typeof LitElement;
7
6
  /**
8
7
  * The `atomic-commerce-numeric-facet` component renders a commerce facet that allows the user to filter products using numeric ranges.
9
8
  *
@@ -23,11 +22,8 @@ declare const AtomicCommerceNumericFacet_base: typeof LitElement;
23
22
  * @part label-end - The label for the maximum value input field.
24
23
  * @part input-end - The input field to enter the maximum numeric value.
25
24
  * @part input-apply-button - The button to apply custom numeric range values.
26
- *
27
- * @internal
28
- *
29
25
  */
30
- export declare class AtomicCommerceNumericFacet extends AtomicCommerceNumericFacet_base implements InitializableComponent<CommerceBindings> {
26
+ export declare class AtomicCommerceNumericFacet extends LitElement implements InitializableComponent<CommerceBindings> {
31
27
  /**
32
28
  * The Summary controller instance.
33
29
  */
@@ -76,4 +72,3 @@ declare global {
76
72
  'atomic-commerce-numeric-facet': AtomicCommerceNumericFacet;
77
73
  }
78
74
  }
79
- export {};
@@ -15,7 +15,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
15
15
  * @part next-button-icon - The "next page" button icon.
16
16
  *
17
17
  * @event atomic/scrollToTop - Emitted when the user clicks the next or previous button, or a page button.
18
- * @alpha
19
18
  */
20
19
  export declare class AtomicCommercePager extends LitElement implements InitializableComponent<CommerceBindings> {
21
20
  bindings: CommerceBindings;
@@ -22,8 +22,6 @@ declare const AtomicCommerceProductList_base: typeof LitElement;
22
22
  * @part result-table-cell - The td elements nested under each tbody > tr when the display prop is set to "table".
23
23
  *
24
24
  * @slot default - The default slot where the product templates are defined.
25
- *
26
- * @alpha
27
25
  */
28
26
  export declare class AtomicCommerceProductList extends AtomicCommerceProductList_base implements InitializableComponent<CommerceBindings> {
29
27
  static styles: CSSResultGroup;
@@ -9,8 +9,6 @@ import type { InitializableComponent } from "../../../decorators/types.js";
9
9
  * @part buttons - The list of buttons.
10
10
  * @part button - The individual products per page buttons.
11
11
  * @part active-button - The active products per page button.
12
- *
13
- * @alpha
14
12
  */
15
13
  export declare class AtomicCommerceProductsPerPage extends LitElement implements InitializableComponent<CommerceBindings> {
16
14
  bindings: CommerceBindings;
@@ -12,8 +12,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
12
12
  * @part doc-link - A link to the relevant documentation.
13
13
  * @part more-info-btn - A button to request additional error information.
14
14
  * @part error-info - Additional error information.
15
- *
16
- * @alpha
17
15
  */
18
16
  export declare class AtomicCommerceQueryError extends LitElement implements InitializableComponent<CommerceBindings> {
19
17
  bindings: CommerceBindings;
@@ -10,8 +10,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
10
10
  * @part highlight - The summary highlights.
11
11
  * @part query - The summary highlighted query.
12
12
  * @part placeholder - The query summary placeholder used while the search interface is initializing.
13
- *
14
- * @alpha
15
13
  */
16
14
  export declare class AtomicCommerceQuerySummary extends LitElement implements InitializableComponent<CommerceBindings> {
17
15
  bindings: CommerceBindings;
@@ -11,8 +11,10 @@ declare const AtomicCommerceRecommendationInterface_base: typeof LitElement;
11
11
  /**
12
12
  * The `atomic-commerce-recommendation-interface` component is meant to be used
13
13
  * as the parent of one or more `atomic-commerce-recommendation-list`
14
- * components. It handles the headless search engine and localization
14
+ * components. It handles the headless engine and localization
15
15
  * configurations.
16
+ *
17
+ * @slot default - The default slot where you can add child components to the interface.
16
18
  */
17
19
  export declare class AtomicCommerceRecommendationInterface extends AtomicCommerceRecommendationInterface_base implements BaseAtomicInterface<CommerceEngine> {
18
20
  bindings: CommerceBindings;
@@ -7,7 +7,6 @@ import type { CommerceBindings } from '../atomic-commerce-recommendation-interfa
7
7
  declare const AtomicCommerceRecommendationList_base: typeof LitElement;
8
8
  /**
9
9
  * The `atomic-commerce-recommendation-list` component displays a list of product recommendations by applying one or more product templates.
10
- * @alpha
11
10
  *
12
11
  * @part result-list - The element containing the list of product recommendations.
13
12
  * @part result-list-grid-clickable-container - The parent of a recommended product and the clickable link encompassing it.
@@ -9,8 +9,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
9
9
  *
10
10
  * @part button - The refine toggle button.
11
11
  * @part placeholder - The placeholder shown while the first request is being executed.
12
- *
13
- * @alpha
14
12
  */
15
13
  export declare class AtomicCommerceRefineToggle extends LitElement implements InitializableComponent<CommerceBindings> {
16
14
  bindings: CommerceBindings;
@@ -49,8 +49,6 @@ import '../atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-
49
49
  * @part instant-results-show-all-button - The button inside the clickable suggestion from the `atomic-commerce-search-box-instant-products` component.
50
50
  *
51
51
  * @event redirect - Event that is emitted when a standalone search box redirection is triggered. By default, the search box will directly change the URL and redirect accordingly, so if you want to handle the redirection differently, use this event.
52
- *
53
- * @alpha
54
52
  */
55
53
  export declare class AtomicCommerceSearchBox extends LitElement implements InitializableComponent<CommerceBindings> {
56
54
  static styles: CSSResultGroup;
@@ -7,9 +7,7 @@ import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
7
7
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
8
8
  export type AriaLabelGenerator = (bindings: CommerceBindings, product: Product) => string | undefined;
9
9
  /**
10
- * The `atomic-commerce-search-box-instant-products` component can be added as a child of an `atomic-search-box` component, allowing for the configuration of instant products behavior.
11
- *
12
- * This component does not support accessibility out-of-the-box. To do so, see [Instant Results Accessibility](https://docs.coveo.com/en/atomic/latest/usage/accessibility/#instant-results-accessibility).
10
+ * The `atomic-commerce-search-box-instant-products` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of instant products behavior.
13
11
  *
14
12
  * This component is not supported on mobile.
15
13
  *
@@ -17,7 +15,6 @@ export type AriaLabelGenerator = (bindings: CommerceBindings, product: Product)
17
15
  * @part instant-results-item - The individual instant product item.
18
16
  *
19
17
  * @slot default - The default slot where the instant products are rendered.
20
- * @alpha
21
18
  */
22
19
  export declare class AtomicCommerceSearchBoxInstantProducts extends LitElement implements SearchBoxSuggestionsComponent<CommerceBindings> {
23
20
  bindings: SearchBoxSuggestionsBindings<SearchBox, CommerceBindings>;
@@ -4,8 +4,7 @@ import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from "..
4
4
  import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
5
5
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
6
6
  /**
7
- * The `atomic-commerce-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
- * @alpha
7
+ * The `atomic-commerce-search-box-query-suggestions` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of query suggestion behavior.
9
8
  */
10
9
  export declare class AtomicCommerceSearchBoxQuerySuggestions extends LitElement implements SearchBoxSuggestionsComponent<CommerceBindings> {
11
10
  bindings: SearchBoxSuggestionsBindings<SearchBox, CommerceBindings>;
@@ -5,8 +5,6 @@ import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from '..
5
5
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
6
6
  /**
7
7
  * The `atomic-commerce-search-box-recent-queries` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of recent query suggestions.
8
- *
9
- * @alpha
10
8
  */
11
9
  export declare class AtomicCommerceSearchBoxRecentQueries extends LitElement implements SearchBoxSuggestionsComponent<CommerceBindings> {
12
10
  bindings: SearchBoxSuggestionsBindings<SearchBox, CommerceBindings>;
@@ -10,8 +10,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
10
10
  * @part select - The `<select>` element of the dropdown list.
11
11
  * @part select-separator - The element separating the select from the icon.
12
12
  * @part placeholder - The dropdown placeholder for while the interface is initializing.
13
- *
14
- * @alpha
15
13
  */
16
14
  export declare class AtomicCommerceSortDropdown extends LitElement implements InitializableComponent<CommerceBindings> {
17
15
  bindings: CommerceBindings;
@@ -3,7 +3,6 @@ import { type CSSResultGroup, LitElement } from 'lit';
3
3
  import type { InitializableComponent } from "../../../decorators/types";
4
4
  import '../../common/atomic-facet-date-input/atomic-facet-date-input';
5
5
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
6
- declare const AtomicCommerceTimeframeFacet_base: typeof LitElement;
7
6
  /**
8
7
  * A facet is a list of values for a certain field occurring in the results.
9
8
  * An `atomic-commerce-timeframe-facet` displays a facet of the results for the current query as date intervals.
@@ -22,10 +21,8 @@ declare const AtomicCommerceTimeframeFacet_base: typeof LitElement;
22
21
  * @part input-start - The start date input field.
23
22
  * @part input-end - The end date input field.
24
23
  * @part input-apply-button - The button to apply date range selection.
25
- *
26
- * @internal
27
24
  */
28
- export declare class AtomicCommerceTimeframeFacet extends AtomicCommerceTimeframeFacet_base implements InitializableComponent<CommerceBindings> {
25
+ export declare class AtomicCommerceTimeframeFacet extends LitElement implements InitializableComponent<CommerceBindings> {
29
26
  static styles: CSSResultGroup;
30
27
  /**
31
28
  * The Summary controller instance.
@@ -75,4 +72,3 @@ declare global {
75
72
  'atomic-commerce-timeframe-facet': AtomicCommerceTimeframeFacet;
76
73
  }
77
74
  }
78
- export {};
@@ -6,8 +6,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
6
6
  * The condition properties can be based on any top-level product property of the `product` object, not restricted to fields (e.g., `ec_name`).
7
7
  *
8
8
  * @slot default - The content to render if the conditions are met.
9
- *
10
- * @alpha
11
9
  */
12
10
  export declare class AtomicProductFieldCondition extends LitElement implements InitializableComponent<CommerceBindings> {
13
11
  createRenderRoot(): this;
@@ -6,7 +6,8 @@ import '../atomic-product-text/atomic-product-text';
6
6
  import { type LightDOMWithSlots } from "../../../mixins/slots-for-no-shadow-dom-mixin";
7
7
  declare const AtomicProductLink_base: typeof LitElement & import("../../../mixins/mixin-common").Constructor<LightDOMWithSlots>;
8
8
  /**
9
- * The `atomic-product-link` component automatically transforms a search product title into a clickable link that points to the original item.
9
+ * The `atomic-product-link` component automatically transforms a product `ec_name` into a clickable link that points to the original item.
10
+ *
10
11
  * @slot default - The content to display inside the link.
11
12
  * @slot attributes - Use `<a slot="attributes" target="_blank"></a>` to pass custom attributes to the generated link.
12
13
  */
@@ -3,8 +3,6 @@ import { LitElement, type TemplateResult } from 'lit';
3
3
  import type { InitializableComponent } from "../../../decorators/types";
4
4
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
5
5
  /**
6
- * @alpha
7
- *
8
6
  * The `atomic-product-multi-value-text` component renders the values of a multi-value string field.
9
7
  *
10
8
  * @part product-multi-value-text-list - The list of field values.
@@ -5,7 +5,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
5
5
  * The `atomic-product-numeric-field-value` component renders the value of a number product field.
6
6
  *
7
7
  * The number can be formatted by adding a `atomic-format-number`, `atomic-format-currency` or `atomic-format-unit` component into this component.
8
- * @alpha
9
8
  */
10
9
  export declare class AtomicProductNumericFieldValue extends LitElement implements InitializableComponent<CommerceBindings> {
11
10
  createRenderRoot(): this;
@@ -4,7 +4,6 @@ import type { InitializableComponent } from "../../../decorators/types.js";
4
4
  import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface.js';
5
5
  /**
6
6
  * The `atomic-product-price` component renders the price of a product.
7
- * @alpha
8
7
  */
9
8
  export declare class AtomicProductPrice extends LitElement implements InitializableComponent<CommerceBindings> {
10
9
  static styles: import("lit").CSSResult;
@@ -10,8 +10,6 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
10
10
  * @cssprop --atomic-rating-icon-active-color - Color of the icon when active.
11
11
  * @cssprop --atomic-rating-icon-inactive-color - Color of the icon when inactive.
12
12
  * @cssprop --atomic-rating-icon-outline - Outline color of the icon.
13
- *
14
- * @alpha
15
13
  */
16
14
  export declare class AtomicProductRating extends LitElement implements InitializableComponent<CommerceBindings> {
17
15
  bindings: CommerceBindings;
@@ -24,8 +24,6 @@ import '../atomic-product-rating/atomic-product-rating';
24
24
  * @MapProp name: mustNotMatch;attr: must-not-match;docs: The field and values that must not be matched by a product item for the template to apply. For example, a template with the following attribute only applies to product items whose `filetype` is not `lithiummessage`: `must-not-match-filetype="lithiummessage";type: Record<string, string[]> ;default: {}
25
25
  * @slot default - The default slot where to insert the template element.
26
26
  * @slot link - A `template` element that contains a single `atomic-product-link` component.
27
- *
28
- * @alpha
29
27
  */
30
28
  export declare class AtomicProductTemplate extends LitElement implements LitElementWithError {
31
29
  private productTemplateController;
@@ -3,7 +3,6 @@ import { LitElement } from 'lit';
3
3
  import type { LitElementWithError } from "../../../decorators/types";
4
4
  import type { AnyBindings } from '../interface/bindings';
5
5
  export type FacetDateInputEventDetails = Omit<DateRangeRequest, 'state'>;
6
- declare const AtomicFacetDateInput_base: typeof LitElement;
7
6
  /**
8
7
  * Internal component made to be integrated in a TimeframeFacet.
9
8
  *
@@ -12,11 +11,12 @@ declare const AtomicFacetDateInput_base: typeof LitElement;
12
11
  *
13
12
  * @internal
14
13
  */
15
- export declare class AtomicFacetDateInput extends AtomicFacetDateInput_base implements LitElementWithError {
14
+ export declare class AtomicFacetDateInput extends LitElement implements LitElementWithError {
16
15
  private start?;
17
16
  private end?;
18
17
  private startRef;
19
18
  private endRef;
19
+ initialize(): void;
20
20
  inputRange: DateFilterRange | undefined;
21
21
  facetId: string;
22
22
  label: string;
@@ -41,4 +41,3 @@ declare global {
41
41
  'atomic-facet-date-input': AtomicFacetDateInput;
42
42
  }
43
43
  }
44
- export {};
@@ -51,6 +51,5 @@ export declare class GeneratedAnswerCommon {
51
51
  private renderContent;
52
52
  private renderCustomNoAnswerMessage;
53
53
  render(): any;
54
- validateProps(): void;
55
54
  }
56
55
  export {};
@@ -81,9 +81,9 @@ export declare class AtomicInsightGeneratedAnswer implements InitializableCompon
81
81
  fieldsToIncludeInCitations?: string;
82
82
  /**
83
83
  * Option to disable citation anchoring.
84
- * @default 'false'
84
+ * @default false
85
85
  */
86
- disableCitationAnchoring?: string;
86
+ disableCitationAnchoring?: boolean;
87
87
  protected ariaMessage: string;
88
88
  private generatedAnswerCommon;
89
89
  private fullAnswerHeight?;
@@ -98,7 +98,7 @@ export declare class AtomicInsightGeneratedAnswer implements InitializableCompon
98
98
  private adaptAnswerHeight;
99
99
  private getAnswerContainer;
100
100
  private getAnswerFooter;
101
- getCitationFields(): string[];
101
+ private getCitationFields;
102
102
  private validateMaxCollapsedHeight;
103
103
  private setCSSVariable;
104
104
  private updateAnswerHeight;
@@ -81,9 +81,9 @@ export declare class AtomicGeneratedAnswer implements InitializableComponent {
81
81
  fieldsToIncludeInCitations?: string;
82
82
  /**
83
83
  * Option to disable citation anchoring.
84
- * @default 'false'
84
+ * @default false
85
85
  */
86
- disableCitationAnchoring?: string;
86
+ disableCitationAnchoring?: boolean;
87
87
  /**
88
88
  * The tabs on which the generated answer can be displayed. This property should not be used at the same time as `tabs-excluded`.
89
89
  *
@@ -118,7 +118,7 @@ export declare class AtomicGeneratedAnswer implements InitializableComponent {
118
118
  private adaptAnswerHeight;
119
119
  private getAnswerContainer;
120
120
  private getAnswerFooter;
121
- getCitationFields(): string[];
121
+ private getCitationFields;
122
122
  private validateMaxCollapsedHeight;
123
123
  private setCSSVariable;
124
124
  private updateAnswerHeight;
@@ -543,9 +543,9 @@ export namespace Components {
543
543
  "collapsible"?: boolean;
544
544
  /**
545
545
  * Option to disable citation anchoring.
546
- * @default 'false'
546
+ * @default false
547
547
  */
548
- "disableCitationAnchoring"?: string;
548
+ "disableCitationAnchoring"?: boolean;
549
549
  /**
550
550
  * A list of fields to include with the citations used to generate the answer.
551
551
  */
@@ -692,9 +692,9 @@ export namespace Components {
692
692
  "collapsible"?: boolean;
693
693
  /**
694
694
  * Option to disable citation anchoring.
695
- * @default 'false'
695
+ * @default false
696
696
  */
697
- "disableCitationAnchoring"?: string;
697
+ "disableCitationAnchoring"?: boolean;
698
698
  /**
699
699
  * A list of fields to include with the citations used to generate the answer.
700
700
  */
@@ -5215,9 +5215,9 @@ declare namespace LocalJSX {
5215
5215
  "collapsible"?: boolean;
5216
5216
  /**
5217
5217
  * Option to disable citation anchoring.
5218
- * @default 'false'
5218
+ * @default false
5219
5219
  */
5220
- "disableCitationAnchoring"?: string;
5220
+ "disableCitationAnchoring"?: boolean;
5221
5221
  /**
5222
5222
  * A list of fields to include with the citations used to generate the answer.
5223
5223
  */
@@ -5360,9 +5360,9 @@ declare namespace LocalJSX {
5360
5360
  "collapsible"?: boolean;
5361
5361
  /**
5362
5362
  * Option to disable citation anchoring.
5363
- * @default 'false'
5363
+ * @default false
5364
5364
  */
5365
- "disableCitationAnchoring"?: string;
5365
+ "disableCitationAnchoring"?: boolean;
5366
5366
  /**
5367
5367
  * A list of fields to include with the citations used to generate the answer.
5368
5368
  */
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-08-11T15:54:01",
2
+ "timestamp": "2025-08-11T19:22:54",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.20.0",
@@ -3646,10 +3646,10 @@
3646
3646
  },
3647
3647
  {
3648
3648
  "name": "disableCitationAnchoring",
3649
- "type": "string | undefined",
3649
+ "type": "boolean | undefined",
3650
3650
  "complexType": {
3651
- "original": "string",
3652
- "resolved": "string | undefined",
3651
+ "original": "boolean",
3652
+ "resolved": "boolean | undefined",
3653
3653
  "references": {}
3654
3654
  },
3655
3655
  "mutable": false,
@@ -3659,12 +3659,12 @@
3659
3659
  "docsTags": [
3660
3660
  {
3661
3661
  "name": "default",
3662
- "text": "'false'"
3662
+ "text": "false"
3663
3663
  }
3664
3664
  ],
3665
3665
  "values": [
3666
3666
  {
3667
- "type": "string"
3667
+ "type": "boolean"
3668
3668
  },
3669
3669
  {
3670
3670
  "type": "undefined"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coveo/atomic",
3
3
  "type": "module",
4
- "version": "3.32.3-pre.d8395b7e5a",
4
+ "version": "3.32.3-pre.d8ef4547c4",
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": {
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@coveo/bueno": "1.1.0",
85
- "@coveo/headless": "3.28.2",
85
+ "@coveo/headless": "3.28.3-pre.d8ef4547c4",
86
86
  "@lit/context": "1.1.6",
87
87
  "@popperjs/core": "2.11.8",
88
88
  "@salesforce-ux/design-system": "2.27.2",
@@ -169,7 +169,7 @@
169
169
  },
170
170
  "peerDependencies": {
171
171
  "@coveo/bueno": "1.1.0",
172
- "@coveo/headless": "3.28.2",
172
+ "@coveo/headless": "3.28.3-pre.d8ef4547c4",
173
173
  "typescript": ">=5.0.0"
174
174
  },
175
175
  "peerDependenciesMeta": {
@@ -1 +0,0 @@
1
- {"version":3,"names":["atomicGeneratedAnswerCss","AtomicGeneratedAnswerStyle0","AtomicGeneratedAnswer","this","DEFAULT_COLLAPSED_HEIGHT","MAX_COLLAPSED_HEIGHT","MIN_COLLAPSED_HEIGHT","REQUIRED_FIELDS_TO_INCLUDE_IN_CITATIONS","copied","copyError","maxCollapsedHeight","tabsIncluded","tabsExcluded","onGeneratedAnswerStateUpdate","generatedAnswerState","isVisible","generatedAnswerCommon","data","writeStoredData","setAriaMessage","getGeneratedAnswerStatus","setCopied","isCopied","setCopyError","message","ariaMessage","initialize","length","console","warn","GeneratedAnswerCommon","host","withToggle","collapsible","disableCitationAnchoring","getGeneratedAnswer","generatedAnswer","getGeneratedAnswerState","getSearchStatusState","searchStatusState","getBindings","bindings","getCopied","getCopyError","buildInteractiveCitation","props","engine","validateProps","buildGeneratedAnswer","initialState","responseFormat","contentFormat","answerConfigurationId","fieldsToIncludeInCitations","getCitationFields","searchStatus","buildSearchStatus","insertFeedbackModal","window","ResizeObserver","debouncedAdaptAnswerHeight","debounce","adaptAnswerHeight","resizeObserver","observe","tabManager","buildTabManager","updateAnswerCollapsed","newState","oldState","newExpanded","expanded","oldExpanded","undefined","container","getAnswerContainer","toggleClass","disconnectedCallback","disconnect","element","className","condition","classList","toggle","answerHeight","shadowRoot","querySelector","getBoundingClientRect","height","rootFontSize","parseFloat","getComputedStyle","document","documentElement","fontSize","fullAnswerHeight","updateAnswerHeight","getAnswerFooter","split","map","field","trim","filter","concat","validateMaxCollapsedHeight","isValid","setCSSVariable","variableName","value","style","setProperty","footer","maxHeight","isStreaming","watchTabManagerState","newValue","oldValue","activeTab","shouldDisplayOnCurrentTab","tabManagerState","disable","enable","render","h","Hidden","__decorate","InitializeBindings","BindStateToController","onUpdateCallbackMethod","ArrayProp","AriaLiveRegion"],"sources":["src/components/search/atomic-generated-answer/atomic-generated-answer.pcss?tag=atomic-generated-answer&encapsulation=shadow","src/components/search/atomic-generated-answer/atomic-generated-answer.tsx"],"sourcesContent":["@import '../../common/generated-answer/styles/generated-answer.pcss';\n","import {\n SearchStatus,\n SearchStatusState,\n buildSearchStatus,\n buildGeneratedAnswer,\n GeneratedAnswer,\n GeneratedAnswerState,\n buildInteractiveCitation,\n buildTabManager,\n TabManagerState,\n TabManager,\n} from '@coveo/headless';\nimport {Component, Element, State, Prop, Watch, h} from '@stencil/core';\nimport {debounce} from '../../../utils/debounce-utils';\nimport {\n BindStateToController,\n InitializableComponent,\n InitializeBindings,\n} from '../../../utils/initialization-utils';\nimport {ArrayProp} from '../../../utils/props-utils';\nimport {AriaLiveRegion} from '../../../utils/stencil-accessibility-utils';\nimport {shouldDisplayOnCurrentTab} from '../../../utils/tab-utils';\nimport {GeneratedAnswerCommon} from '../../common/generated-answer/generated-answer-common';\nimport {Hidden} from '../../common/stencil-hidden';\nimport {Bindings} from '../atomic-search-interface/atomic-search-interface';\n\n/**\n * The `atomic-generated-answer` component uses Coveo Machine Learning (Coveo ML) models to automatically generate an answer to a query executed by the user.\n * For more information, see [About Relevance Generative Answering (RGA)](https://docs.coveo.com/en/n9de0370/)\n *\n * @slot no-answer-message - Lets you pass a custom sorry message when no answer is generated.\n *\n * @part container - The container displaying the generated answer.\n * @part header-label - The header of the generated answer container.\n * @part feedback-button - The \"like\" and \"dislike\" buttons.\n * @part toggle - The switch to toggle the visibility of the generated answer.\n * @part copy-button - The \"Copy answer\" button.\n * @part retry-container - The container for the \"retry\" section.\n * @part generated-text - The text of the generated answer.\n * @part citations-label - The header of the citations list.\n *\n * @part answer-code-block - The generated answer multi-line code blocks.\n * @part answer-emphasis - The generated answer emphasized text elements.\n * @part answer-inline-code - The generated answer inline code elements.\n * @part answer-heading-1 - The generated answer level 1 heading elements.\n * @part answer-heading-2 - The generated answer level 2 heading elements.\n * @part answer-heading-3 - The generated answer level 3 heading elements.\n * @part answer-heading-4 - The generated answer level 4 heading elements.\n * @part answer-heading-5 - The generated answer level 5 heading elements.\n * @part answer-heading-6 - The generated answer level 6 heading elements.\n * @part answer-list-item - The generated answer list item elements for both ordered and unordered lists.\n * @part answer-ordered-list - The generated answer ordered list elements.\n * @part answer-paragraph - The generated answer paragraph elements.\n * @part answer-quote-block - The generated answer quote block elements.\n * @part answer-unordered-list - The generated answer unordered list elements.\n * @part answer-strong - The generated answer strong text elements.\n * @part answer-table - The generated answer table elements.\n * @part answer-table-container - The generated answer table container elements.\n * @part answer-table-content - The generated answer table content cell elements.\n * @part answer-table-header - The generated answer table header cell elements.\n *\n * @part citation - The link that allows the user to navigate to the item.\n * @part citation-popover - The pop-up that shows an item preview when the user hovers over the citation.\n */\n@Component({\n tag: 'atomic-generated-answer',\n styleUrl: 'atomic-generated-answer.pcss',\n shadow: true,\n})\nexport class AtomicGeneratedAnswer implements InitializableComponent {\n @InitializeBindings() public bindings!: Bindings;\n public generatedAnswer!: GeneratedAnswer;\n public searchStatus!: SearchStatus;\n private resizeObserver?: ResizeObserver;\n\n private readonly DEFAULT_COLLAPSED_HEIGHT = 16;\n private readonly MAX_COLLAPSED_HEIGHT = 32;\n private readonly MIN_COLLAPSED_HEIGHT = 9;\n private readonly REQUIRED_FIELDS_TO_INCLUDE_IN_CITATIONS = ['filetype'];\n\n @BindStateToController('generatedAnswer', {\n onUpdateCallbackMethod: 'onGeneratedAnswerStateUpdate',\n })\n @State()\n private generatedAnswerState!: GeneratedAnswerState;\n\n @BindStateToController('searchStatus')\n @State()\n private searchStatusState!: SearchStatusState;\n\n public tabManager!: TabManager;\n\n @BindStateToController('tabManager')\n @State()\n public tabManagerState!: TabManagerState;\n\n @State()\n public error!: Error;\n\n @Element() private host!: HTMLElement;\n\n @State()\n copied = false;\n\n @State()\n copyError = false;\n\n /**\n * Whether to render a toggle button that lets the user hide or show the answer.\n * @default false\n */\n @Prop() withToggle?: boolean;\n\n /**\n * Whether to allow the answer to be collapsed when the text is taller than the specified `--atomic-crga-collapsed-height` value (16rem by default).\n * @default false\n */\n @Prop() collapsible?: boolean;\n\n /**\n * The maximum height (in rem units) of the answer when collapsed.\n *\n */\n @Prop() maxCollapsedHeight = this.DEFAULT_COLLAPSED_HEIGHT;\n\n /**\n * The unique identifier of the answer configuration to use to generate the answer.\n */\n @Prop() answerConfigurationId?: string;\n\n /**\n * A list of fields to include with the citations used to generate the answer.\n */\n @Prop() fieldsToIncludeInCitations?: string;\n\n /**\n * Option to disable citation anchoring.\n * @default 'false'\n */\n @Prop() disableCitationAnchoring?: string;\n // disableCitationAnchoring is a boolean, but we use a string to allow defaulting to \"false\" in the HTML template.\n\n\n /**\n * The tabs on which the generated answer can be displayed. This property should not be used at the same time as `tabs-excluded`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-generated-answer tabs-included='[\"tabIDA\", \"tabIDB\"]'></atomic-generated-answer>\n * ```\n * If you don't set this property, the generated answer can be displayed on any tab. Otherwise, the generated answer can only be displayed on the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsIncluded: string[] | string = '[]';\n\n /**\n * The tabs on which this generated answer must not be displayed. This property should not be used at the same time as `tabs-included`.\n *\n * Set this property as a stringified JSON array, e.g.,\n * ```html\n * <atomic-generated-answer tabs-excluded='[\"tabIDA\", \"tabIDB\"]'></atomic-generated-answer>\n * ```\n * If you don't set this property, the generated answer can be displayed on any tab. Otherwise, the generated answer won't be displayed on any of the specified tabs.\n */\n @ArrayProp()\n @Prop({reflect: true, mutable: true})\n public tabsExcluded: string[] | string = '[]';\n\n @AriaLiveRegion('generated-answer')\n protected ariaMessage!: string;\n\n private generatedAnswerCommon!: GeneratedAnswerCommon;\n private fullAnswerHeight?: number;\n \n public initialize() {\n if (\n [...this.tabsIncluded].length > 0 &&\n [...this.tabsExcluded].length > 0\n ) {\n console.warn(\n 'Values for both \"tabs-included\" and \"tabs-excluded\" have been provided. This could lead to unexpected behaviors.'\n );\n }\n this.generatedAnswerCommon = new GeneratedAnswerCommon({\n host: this.host,\n withToggle: this.withToggle,\n collapsible: this.collapsible,\n disableCitationAnchoring: this.disableCitationAnchoring === 'true',\n getGeneratedAnswer: () => this.generatedAnswer,\n getGeneratedAnswerState: () => this.generatedAnswerState,\n getSearchStatusState: () => this.searchStatusState,\n getBindings: () => this.bindings,\n getCopied: () => this.copied,\n setCopied: this.setCopied,\n getCopyError: () => this.copyError,\n setCopyError: this.setCopyError,\n setAriaMessage: this.setAriaMessage,\n buildInteractiveCitation: (props) =>\n buildInteractiveCitation(this.bindings.engine, props),\n });\n this.generatedAnswerCommon.validateProps();\n \n this.generatedAnswer = buildGeneratedAnswer(this.bindings.engine, {\n initialState: {\n isVisible: this.generatedAnswerCommon.data.isVisible,\n responseFormat: {\n contentFormat: ['text/markdown', 'text/plain'],\n },\n },\n ...(this.answerConfigurationId && {\n answerConfigurationId: this.answerConfigurationId,\n }),\n fieldsToIncludeInCitations: this.getCitationFields(),\n });\n this.searchStatus = buildSearchStatus(this.bindings.engine);\n this.generatedAnswerCommon.insertFeedbackModal();\n\n if (window.ResizeObserver && this.collapsible) {\n const debouncedAdaptAnswerHeight = debounce(\n () => this.adaptAnswerHeight(),\n 100\n );\n this.resizeObserver = new ResizeObserver(debouncedAdaptAnswerHeight);\n this.resizeObserver.observe(this.host);\n }\n this.tabManager = buildTabManager(this.bindings.engine);\n }\n\n @Watch(\"generatedAnswerState\")\n public updateAnswerCollapsed(\n newState: GeneratedAnswerState,\n oldState: GeneratedAnswerState\n ) {\n const newExpanded = newState.expanded;\n const oldExpanded = oldState ? oldState.expanded : undefined;\n\n if (newExpanded !== oldExpanded) {\n const container = this.getAnswerContainer();\n\n if (!container) {\n return;\n }\n\n this.toggleClass(container, 'answer-collapsed', !newExpanded);\n }\n }\n\n public disconnectedCallback() {\n this.resizeObserver?.disconnect();\n }\n\n // @ts-expect-error: This function is used by BindStateToController.\n private onGeneratedAnswerStateUpdate = () => {\n if (\n this.generatedAnswerState.isVisible !==\n this.generatedAnswerCommon?.data?.isVisible\n ) {\n this.generatedAnswerCommon.data = {\n ...this.generatedAnswerCommon.data,\n isVisible: this.generatedAnswerState.isVisible,\n };\n this.generatedAnswerCommon.writeStoredData(\n this.generatedAnswerCommon.data\n );\n }\n\n this.setAriaMessage(this.generatedAnswerCommon.getGeneratedAnswerStatus());\n };\n\n private setCopied = (isCopied: boolean) => {\n this.copied = isCopied;\n };\n\n private setCopyError = (copyError: boolean) => {\n this.copyError = copyError;\n };\n\n private setAriaMessage = (message: string) => {\n this.ariaMessage = message;\n };\n\n private toggleClass(element: Element, className: string, condition: boolean) {\n element.classList.toggle(className, condition);\n }\n\n private adaptAnswerHeight() {\n const answerHeight = this.host?.shadowRoot\n ?.querySelector('[part=\"generated-text\"]')\n ?.getBoundingClientRect().height;\n\n if (answerHeight) {\n const rootFontSize = parseFloat(\n getComputedStyle(document.documentElement).fontSize\n );\n\n this.fullAnswerHeight = answerHeight / rootFontSize;\n\n this.updateAnswerHeight();\n }\n }\n\n private getAnswerContainer() {\n return this.host?.shadowRoot?.querySelector('[part=\"generated-container\"]');\n }\n\n private getAnswerFooter() {\n return this.host?.shadowRoot?.querySelector(\n '[part=\"generated-answer-footer\"]'\n );\n }\n\n public getCitationFields() {\n return (this.fieldsToIncludeInCitations ?? '')\n .split(',')\n .map((field) => field.trim())\n .filter((field) => field.length > 0)\n .concat(this.REQUIRED_FIELDS_TO_INCLUDE_IN_CITATIONS);\n }\n\n private validateMaxCollapsedHeight(): number {\n const isValid =\n this.maxCollapsedHeight >= this.MIN_COLLAPSED_HEIGHT &&\n this.maxCollapsedHeight <= this.MAX_COLLAPSED_HEIGHT;\n\n if (!isValid) {\n console.warn(\n `max-collapsed-height (${this.maxCollapsedHeight}rem) is out of the valid range (${this.MIN_COLLAPSED_HEIGHT}rem - ${this.MAX_COLLAPSED_HEIGHT}rem). Falling back to default value (${this.DEFAULT_COLLAPSED_HEIGHT}rem).`\n );\n }\n\n return isValid ? this.maxCollapsedHeight : this.DEFAULT_COLLAPSED_HEIGHT;\n }\n\n private setCSSVariable(variableName: string, value: string) {\n const container = this.getAnswerContainer();\n if (container) {\n (container as HTMLElement).style.setProperty(variableName, value);\n }\n }\n\n private updateAnswerHeight() {\n const container = this.getAnswerContainer() as HTMLElement;\n const footer = this.getAnswerFooter();\n const maxHeight = this.validateMaxCollapsedHeight();\n\n if (!container || !footer) {\n return;\n }\n\n if (this.fullAnswerHeight! > maxHeight) {\n this.setCSSVariable('--atomic-crga-collapsed-height', `${maxHeight}rem`);\n this.toggleClass(\n container,\n 'answer-collapsed',\n !this.generatedAnswerState.expanded\n );\n this.toggleClass(footer, 'is-collapsible', true);\n this.toggleClass(\n footer,\n 'generating-label-visible',\n this.generatedAnswerState.isStreaming\n );\n } else {\n this.toggleClass(container, 'answer-collapsed', false);\n this.toggleClass(footer, 'is-collapsible', false);\n this.toggleClass(footer, 'generating-label-visible', false);\n }\n }\n\n @Watch('tabManagerState')\n watchTabManagerState(\n newValue: {activeTab: string},\n oldValue: {activeTab: string}\n ) {\n if (newValue?.activeTab !== oldValue?.activeTab) {\n if (\n !shouldDisplayOnCurrentTab(\n [...this.tabsIncluded],\n [...this.tabsExcluded],\n this.tabManagerState?.activeTab\n )\n ) {\n this.generatedAnswer.disable();\n } else {\n this.generatedAnswer.enable();\n }\n }\n }\n\n public render() {\n if (\n !shouldDisplayOnCurrentTab(\n [...this.tabsIncluded],\n [...this.tabsExcluded],\n this.tabManagerState?.activeTab\n )\n ) {\n return <Hidden />;\n }\n return this.generatedAnswerCommon.render();\n }\n}\n"],"mappings":"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","ignoreList":[]}