@coveo/quantic 3.23.0 → 3.23.1-pre.07052a02d3

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.
@@ -11,7 +11,7 @@
11
11
  <template lwc:if={shouldDisplayRecentResultsCard}>
12
12
  <c-quantic-card-container data-cy="recent-results-card" title={label} onquantic__headerclick={toggleVisibility} onquantic__headerkeydown={toggleVisibility}>
13
13
  <lightning-button-icon class="slds-p-bottom_small" slot="actions" icon-name={actionButtonIcon}
14
- alternative-text={actionButtonLabel} variant="bare" tabindex="-1" aria-hidden="true">
14
+ alternative-text={actionButtonLabel} variant="bare" tabindex="-1" aria-hidden="true" data-testid="action-button">
15
15
  </lightning-button-icon>
16
16
  <template if:false={isCollapsed}>
17
17
  <div class="slds-m-top_medium">
@@ -21,7 +21,7 @@
21
21
  </template>
22
22
  <ul>
23
23
  <template for:each={results} for:item="result">
24
- <li class="slds-grid" key={result.uniqueId}>
24
+ <li class="slds-grid" key={result.uniqueId} data-testid="recent-result-item">
25
25
  <div
26
26
  class="recent-result__container slds-grid_vertical-align-center slds-size_1-of-1 slds-p-around_x-small">
27
27
  <lightning-icon class="recent-result__icon slds-current-color" icon-name="utility:page"
@@ -5,6 +5,7 @@ import recentResultsLabel from '@salesforce/label/c.quantic_RecentResults';
5
5
  import {
6
6
  registerComponentForInit,
7
7
  initializeWithHeadless,
8
+ getHeadlessBundle,
8
9
  } from 'c/quanticHeadlessLoader';
9
10
  import {
10
11
  I18nUtils,
@@ -106,7 +107,8 @@ export default class QuanticRecentResultsList extends LightningElement {
106
107
  * @param {SearchEngine} engine
107
108
  */
108
109
  initialize = (engine) => {
109
- this.recentResultsList = CoveoHeadless.buildRecentResultsList(engine, {
110
+ this.headless = getHeadlessBundle(this.engineId);
111
+ this.recentResultsList = this.headless.buildRecentResultsList(engine, {
110
112
  initialState: {
111
113
  results: getItemFromLocalStorage(this.localStorageKey) ?? [],
112
114
  },
@@ -49,4 +49,4 @@ For more information, refer to the documentation: https://docs.coveo.com/en/o3r9
49
49
  * limitations under the License.
50
50
  */if(__exports!=exports)module.exports=exports;return module.exports});
51
51
 
52
- window.coveoQuanticVersion = '3.23.0';
52
+ window.coveoQuanticVersion = '3.23.1-pre.07052a02d3';
@@ -53,4 +53,4 @@ For more information, refer to the documentation: https://docs.coveo.com/en/o3r9
53
53
  * limitations under the License.
54
54
  */if(__exports!=exports)module.exports=exports;return module.exports});
55
55
 
56
- window.coveoQuanticVersion = '3.23.0';
56
+ window.coveoQuanticVersion = '3.23.1-pre.07052a02d3';
@@ -50,4 +50,4 @@ For more information, refer to the documentation: https://docs.coveo.com/en/o3r9
50
50
  * limitations under the License.
51
51
  */if(__exports!=exports)module.exports=exports;return module.exports});
52
52
 
53
- window.coveoQuanticVersion = '3.23.0';
53
+ window.coveoQuanticVersion = '3.23.1-pre.07052a02d3';
@@ -46,4 +46,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46
46
  * limitations under the License.
47
47
  */if(__exports!=exports)module.exports=exports;return module.exports});
48
48
 
49
- window.coveoQuanticVersion = '3.23.0';
49
+ window.coveoQuanticVersion = '3.23.1-pre.07052a02d3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coveo/quantic",
3
- "version": "3.23.0",
3
+ "version": "3.23.1-pre.07052a02d3",
4
4
  "description": "A Salesforce Lightning Web Component (LWC) library for building modern UIs interfacing with the Coveo platform",
5
5
  "author": "coveo.com",
6
6
  "homepage": "https://coveo.com",