@coveo/quantic 3.21.1 → 3.21.2-pre.51c2448524
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.
- package/force-app/main/default/lwc/quanticDateFacet/quanticDateFacet.html +4 -4
- package/force-app/main/default/lwc/quanticRecentQueriesList/quanticRecentQueriesList.html +3 -3
- package/force-app/main/default/lwc/quanticRecentQueriesList/quanticRecentQueriesList.js +3 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +10 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api.d.ts +19 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/tests/stream-answer-api-state-mock.d.ts +269 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/static-filter-set/static-filter-set-selectors.d.ts +27 -0
- package/force-app/main/default/staticresources/coveoheadless/headless.js +12 -10
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +11 -9
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +9 -7
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
onquantic__headerkeydown={toggleFacetVisibility}
|
|
21
21
|
>
|
|
22
22
|
<lightning-button-icon
|
|
23
|
-
class=
|
|
23
|
+
class={actionButtonCssClasses}
|
|
24
24
|
slot="actions"
|
|
25
25
|
onmousedown={preventDefault}
|
|
26
26
|
icon-name={actionButtonIcon}
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
</lightning-button-icon>
|
|
33
33
|
<template if:true={hasActiveValues}>
|
|
34
34
|
<button
|
|
35
|
+
data-testid="clear-selection-button"
|
|
35
36
|
class="facet__clear-filter slds-button slds-grid slds-grid_vertical-align-center slds-p-horizontal_x-small slds-m-top_small"
|
|
36
37
|
onclick={clearSelections}
|
|
37
38
|
title={clearFilterLabel}
|
|
@@ -49,14 +50,13 @@
|
|
|
49
50
|
</button>
|
|
50
51
|
</template>
|
|
51
52
|
<template if:false={isCollapsed}>
|
|
52
|
-
<fieldset>
|
|
53
|
+
<fieldset data-testid="facet__body">
|
|
53
54
|
<legend class="slds-assistive-text">{field}</legend>
|
|
54
55
|
<ul class="slds-has-dividers_around-space slds-m-top_medium">
|
|
55
56
|
<template for:each={values} for:item="v">
|
|
56
|
-
<li class="slds-grid" key={v.
|
|
57
|
+
<li class="slds-grid" key={v.start}>
|
|
57
58
|
<c-quantic-facet-value
|
|
58
59
|
onquantic__selectvalue={onSelectValue}
|
|
59
|
-
key={v.start}
|
|
60
60
|
item={v}
|
|
61
61
|
is-checked={v.checked}
|
|
62
62
|
formatting-function={formattingFunction}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<template lwc:if={shouldDisplayRecentQueriesCard}>
|
|
12
12
|
<c-quantic-card-container data-cy="recent-queries-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">
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
<ul>
|
|
25
25
|
<template for:each={queries} for:item="query" for:index="index">
|
|
26
|
-
<li key={query} class="slds-grid" value={index} onclick={executeQuery}>
|
|
26
|
+
<li key={query} class="slds-grid" value={index} onclick={executeQuery} data-testid="recent-query-item">
|
|
27
27
|
<button
|
|
28
28
|
class="slds-button recent-query__container slds-grid_vertical-align-center slds-size_1-of-1 slds-p-around_x-small">
|
|
29
29
|
<lightning-icon class="recent-query__icon slds-current-color" icon-name="utility:search"
|
|
30
30
|
size="xx-small" aria-hidden="true"></lightning-icon>
|
|
31
|
-
<span class="slds-text-body_small query-text__container slds-truncate">{query}</span>
|
|
31
|
+
<span class="slds-text-body_small query-text__container slds-truncate" data-testid="recent-query-text">{query}</span>
|
|
32
32
|
</button>
|
|
33
33
|
</li>
|
|
34
34
|
</template>
|
|
@@ -5,6 +5,7 @@ import recentQueriesLabel from '@salesforce/label/c.quantic_RecentQueries';
|
|
|
5
5
|
import {
|
|
6
6
|
registerComponentForInit,
|
|
7
7
|
initializeWithHeadless,
|
|
8
|
+
getHeadlessBundle,
|
|
8
9
|
} from 'c/quanticHeadlessLoader';
|
|
9
10
|
import {
|
|
10
11
|
I18nUtils,
|
|
@@ -94,7 +95,8 @@ export default class QuanticRecentQueriesList extends LightningElement {
|
|
|
94
95
|
* @param {SearchEngine} engine
|
|
95
96
|
*/
|
|
96
97
|
initialize = (engine) => {
|
|
97
|
-
this.
|
|
98
|
+
this.headless = getHeadlessBundle(this.engineId);
|
|
99
|
+
this.recentQueriesList = this.headless.buildRecentQueriesList(engine, {
|
|
98
100
|
initialState: {
|
|
99
101
|
queries: getItemFromLocalStorage(this.localStorageKey) ?? [],
|
|
100
102
|
},
|