@coveo/quantic 3.27.0 → 3.27.1-pre.1c6054ebe0
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/quanticComponentError/quanticComponentError.html +1 -1
- package/force-app/main/default/lwc/quanticFacet/quanticFacet.html +0 -3
- package/force-app/main/default/lwc/quanticFeedbackModal/error.html +1 -1
- package/force-app/main/default/lwc/quanticFeedbackModal/feedbackForm.html +1 -1
- package/force-app/main/default/lwc/quanticFeedbackModalQna/templates/quanticFeedbackModalQna.html +0 -2
- package/force-app/main/default/lwc/quanticFeedbackModalQna/templates/success.html +1 -1
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.html +18 -26
- package/force-app/main/default/lwc/quanticGeneratedAnswerContent/templates/generatedMarkdownContent.html +1 -1
- package/force-app/main/default/lwc/quanticGeneratedAnswerContent/templates/generatedTextContent.html +1 -1
- package/force-app/main/default/lwc/quanticNumericFacet/quanticNumericFacet.html +0 -1
- package/force-app/main/default/lwc/quanticRadioButtonsGroup/quanticRadioButtonsGroup.html +0 -2
- package/force-app/main/default/lwc/quanticRecentQueriesList/quanticRecentQueriesList.html +1 -1
- package/force-app/main/default/lwc/quanticRecentResultsList/quanticRecentResultsList.html +1 -1
- package/force-app/main/default/lwc/quanticResultChildren/quanticResultChildren.html +0 -2
- package/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.html +3 -3
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/quanticSearchBoxSuggestionsList.html +0 -2
- package/force-app/main/default/lwc/quanticSmartSnippet/quanticSmartSnippet.html +2 -2
- package/force-app/main/default/lwc/quanticSort/quanticSort.html +1 -3
- package/force-app/main/default/lwc/quanticTooltip/quanticTooltip.html +1 -1
- package/force-app/main/default/staticresources/coveobueno/browser/bueno.js +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +2 -2
- package/force-app/main/default/staticresources/coveoheadless/headless.js +3 -3
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +3 -3
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +7 -7
- package/package.json +6 -4
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
item={v}
|
|
77
77
|
key={v.value}
|
|
78
78
|
is-checked={v.checked}
|
|
79
|
-
data-cy={v.value}
|
|
80
79
|
display-as-link={isDisplayAsLink}
|
|
81
80
|
formatting-function={remoteGetValueCaption}
|
|
82
81
|
>
|
|
@@ -93,7 +92,6 @@
|
|
|
93
92
|
variant="base"
|
|
94
93
|
class="facet__show-less slds-p-around_none"
|
|
95
94
|
onclick={showLess}
|
|
96
|
-
data-cy="less"
|
|
97
95
|
aria-label={showLessFacetValuesLabel}
|
|
98
96
|
data-testid="facet-values__show-less"
|
|
99
97
|
>
|
|
@@ -107,7 +105,6 @@
|
|
|
107
105
|
variant="base"
|
|
108
106
|
class="facet__show-more slds-p-around_none"
|
|
109
107
|
onclick={showMore}
|
|
110
|
-
data-cy="more"
|
|
111
108
|
aria-label={showMoreFacetValuesLabel}
|
|
112
109
|
data-testid="facet-values__show-more"
|
|
113
110
|
>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<lightning-modal-body>
|
|
3
|
-
<div
|
|
3
|
+
<div class="error-message slds-text-color_destructive">{error}</div>
|
|
4
4
|
</lightning-modal-body>
|
|
5
5
|
<lightning-modal-footer>
|
|
6
6
|
<lightning-button data-testid="feedback-modal-footer__cancel" class="slds-button" variant="neutral"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
message-when-value-missing={labels.selectOneOfOptions}></lightning-radio-group>
|
|
9
9
|
<div class="details-input__container">
|
|
10
10
|
<template if:true={shouldDisplayDetailsInput}>
|
|
11
|
-
<lightning-textarea
|
|
11
|
+
<lightning-textarea required={detailsAreRequired} value={detailsValue} label={labels.provideDetails}
|
|
12
12
|
message-when-value-missing={labels.fillOutField} onchange={handleDetailsChange}></lightning-textarea>
|
|
13
13
|
</template>
|
|
14
14
|
</div>
|
package/force-app/main/default/lwc/quanticFeedbackModalQna/templates/quanticFeedbackModalQna.html
CHANGED
|
@@ -82,14 +82,12 @@
|
|
|
82
82
|
</div>
|
|
83
83
|
<div class="slds-col_bump-left">
|
|
84
84
|
<lightning-button
|
|
85
|
-
data-cy="feedback-modal-qna-footer__skip"
|
|
86
85
|
class="skip slds-button"
|
|
87
86
|
variant="neutral"
|
|
88
87
|
label={labels.skip}
|
|
89
88
|
onclick={closeModal}
|
|
90
89
|
></lightning-button>
|
|
91
90
|
<lightning-button
|
|
92
|
-
data-cy="feedback-modal-qna-footer__submit"
|
|
93
91
|
class="submit-feedback slds-button slds-var-m-left_x-small feedback-modal-qna-footer__submit"
|
|
94
92
|
variant="brand"
|
|
95
93
|
label={labels.sendFeedback}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<lightning-modal-header label={labels.thankYouForYourFeedback}
|
|
3
3
|
></lightning-modal-header>
|
|
4
4
|
<lightning-modal-body>
|
|
5
|
-
<div class="slds-var-p-bottom_x-large feedback-modal-body__success-message"
|
|
5
|
+
<div class="slds-var-p-bottom_x-large feedback-modal-body__success-message">
|
|
6
6
|
<div
|
|
7
7
|
class="slds-col slds-size_12-of-12 slds-var-m-vertical_x-large slds-illustration slds-illustration_small"
|
|
8
8
|
>
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
question=""
|
|
26
26
|
hide-explain-why-button
|
|
27
27
|
hide-labels
|
|
28
|
-
data-cy="generated-answer__feedback"
|
|
29
28
|
></c-quantic-feedback>
|
|
30
29
|
<c-quantic-generated-answer-copy-to-clipboard
|
|
31
30
|
data-testid="generated-answer__copy-to-clipboard"
|
|
@@ -44,28 +43,21 @@
|
|
|
44
43
|
</div>
|
|
45
44
|
</div>
|
|
46
45
|
<template lwc:if={isVisible}>
|
|
47
|
-
<div
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
<div class="generated-answer__content slds-var-m-top_medium">
|
|
47
|
+
<div
|
|
48
|
+
data-testid="generated-answer__answer"
|
|
49
|
+
class={generatedAnswerClass}
|
|
50
|
+
>
|
|
52
51
|
<c-quantic-generated-answer-content
|
|
53
52
|
answer-content-format={answerContentFormat}
|
|
54
53
|
answer={answer}
|
|
55
54
|
is-streaming={isStreaming}
|
|
56
55
|
onquantic__answercontentupdated={handleAnswerContentUpdated}
|
|
57
|
-
data-cy="generated-answer__content"
|
|
58
56
|
>
|
|
59
57
|
</c-quantic-generated-answer-content>
|
|
60
58
|
</div>
|
|
61
|
-
<div
|
|
62
|
-
|
|
63
|
-
class={generatedAnswerFooterCssClass}
|
|
64
|
-
>
|
|
65
|
-
<div
|
|
66
|
-
class={generatedAnswerFooterRowClass}
|
|
67
|
-
data-cy="generated-answer__footer-row"
|
|
68
|
-
>
|
|
59
|
+
<div class={generatedAnswerFooterCssClass}>
|
|
60
|
+
<div class={generatedAnswerFooterRowClass}>
|
|
69
61
|
<template lwc:if={shouldDisplayCitations}>
|
|
70
62
|
<div class="slds-var-m-top_small">
|
|
71
63
|
<c-quantic-source-citations
|
|
@@ -79,7 +71,6 @@
|
|
|
79
71
|
</div>
|
|
80
72
|
<div
|
|
81
73
|
class={generatedAnswerFooterRowClass}
|
|
82
|
-
data-cy="generated-answer__footer-row"
|
|
83
74
|
>
|
|
84
75
|
<template lwc:if={shouldShowCollapseGeneratingMessage}>
|
|
85
76
|
<div
|
|
@@ -116,18 +107,19 @@
|
|
|
116
107
|
</div>
|
|
117
108
|
</template>
|
|
118
109
|
<template lwc:if={shouldDisplayCustomNoAnswerMessage}>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
>
|
|
110
|
+
<div data-testid="generated-answer__no-answer-card" class="slds-box">
|
|
111
|
+
<div class="generated-answer__card-header slds-grid">
|
|
112
|
+
<span
|
|
113
|
+
class="generated-answer__badge slds-var-p-around_x-small slds-text-title_bold"
|
|
114
|
+
>{labels.generatedAnswerForYou}</span
|
|
115
|
+
>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="generated-answer__content slds-var-m-top_medium">
|
|
118
|
+
<div class={generatedAnswerClass}>
|
|
119
|
+
<slot name="no-answer-message"></slot>
|
|
124
120
|
</div>
|
|
125
|
-
<div class="generated-answer__content slds-var-m-top_medium">
|
|
126
|
-
<div class={generatedAnswerClass}>
|
|
127
|
-
<slot name="no-answer-message"></slot>
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
121
|
</div>
|
|
122
|
+
</div>
|
|
131
123
|
</template>
|
|
132
124
|
<div class="slds-hide">
|
|
133
125
|
<slot name="no-answer-message"></slot>
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
<fieldset class="slds-form-element">
|
|
4
4
|
<legend
|
|
5
5
|
class="slds-form-element__legend slds-form-element__label radio-buttons-group__legend"
|
|
6
|
-
data-cy="radio-buttons-group__legend"
|
|
7
6
|
>
|
|
8
7
|
{legend}
|
|
9
8
|
</legend>
|
|
@@ -13,7 +12,6 @@
|
|
|
13
12
|
<div
|
|
14
13
|
key={option.value}
|
|
15
14
|
class={option.buttonCSSClass}
|
|
16
|
-
data-cy={option.value}
|
|
17
15
|
onmouseenter={option.mouseEnterHandler}
|
|
18
16
|
onmouseleave={option.mouseLeaveHandler}
|
|
19
17
|
onclick={option.clickHandler}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</template>
|
|
10
10
|
<template if:false={showPlaceholder}>
|
|
11
11
|
<template lwc:if={shouldDisplayRecentQueriesCard}>
|
|
12
|
-
<c-quantic-card-container
|
|
12
|
+
<c-quantic-card-container title={label} onquantic__headerclick={toggleVisibility} onquantic__headerkeydown={toggleVisibility}>
|
|
13
13
|
<lightning-button-icon class="slds-p-bottom_small" slot="actions" icon-name={actionButtonIcon}
|
|
14
14
|
alternative-text={actionButtonLabel} variant="bare" tabindex="-1" aria-hidden="true" data-testid="action-button">
|
|
15
15
|
</lightning-button-icon>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</template>
|
|
10
10
|
<template if:false={showPlaceholder}>
|
|
11
11
|
<template lwc:if={shouldDisplayRecentResultsCard}>
|
|
12
|
-
<c-quantic-card-container
|
|
12
|
+
<c-quantic-card-container title={label} onquantic__headerclick={toggleVisibility} onquantic__headerkeydown={toggleVisibility}>
|
|
13
13
|
<lightning-button-icon class="slds-p-bottom_small" slot="actions" icon-name={actionButtonIcon}
|
|
14
14
|
alternative-text={actionButtonLabel} variant="bare" tabindex="-1" aria-hidden="true" data-testid="action-button">
|
|
15
15
|
</lightning-button-icon>
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
<template if:true={shouldDisplayChildResultsToggle}>
|
|
23
23
|
<div class="slds-grid slds-grid_align-end result-children__toggle-button">
|
|
24
24
|
<lightning-button
|
|
25
|
-
data-cy="result-children__toggle-button"
|
|
26
25
|
variant="base"
|
|
27
26
|
icon-name={toggleChildResultsIcon}
|
|
28
27
|
icon-position="right"
|
|
@@ -34,7 +33,6 @@
|
|
|
34
33
|
|
|
35
34
|
<template if:true={shouldDisplayNoChildrenMessage}>
|
|
36
35
|
<div
|
|
37
|
-
data-cy="result-children__no-more-children-message"
|
|
38
36
|
class="result-children__no-more-children-message slds-grid slds-grid_align-end slds-var-p-vertical_x-small slds-text-color_weak"
|
|
39
37
|
>
|
|
40
38
|
{labels.noRelatedItems}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div data-
|
|
2
|
+
<div data-testid="quick-view-button__container" class={buttonContainerClass} onmouseenter={showTooltip}
|
|
3
3
|
onmouseleave={hideTooltip}>
|
|
4
|
-
<button data-
|
|
4
|
+
<button data-testid="quick-view-button" aria-hidden={isQuickviewOpen} class={buttonClass} onclick={openQuickview}
|
|
5
5
|
title={buttonTitle} disabled={hasNoPreview} aria-label={buttonAriaLabelValue}>
|
|
6
6
|
<template if:true={hasButtonLabel}> {previewButtonLabel} </template>
|
|
7
7
|
<template if:true={hasIcon}>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
aria-modal="true" aria-describedby="quickview__content-container"
|
|
22
22
|
class="slds-modal slds-modal_medium slds-fade-in-open">
|
|
23
23
|
<div class="slds-modal__container">
|
|
24
|
-
<button data-
|
|
24
|
+
<button data-testid="quickview-modal__close-button" class="slds-button slds-button_icon slds-modal__close" onclick={closeQuickview}
|
|
25
25
|
onkeydown={onCloseKeyDown}>
|
|
26
26
|
<lightning-icon class="slds-current-color" icon-name="utility:close" size="small"
|
|
27
27
|
alternative-text={labels.close}></lightning-icon>
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<div class={listboxCssClass}>
|
|
3
3
|
<ul
|
|
4
4
|
id="listbox-id"
|
|
5
|
-
data-cy="suggestion-list"
|
|
6
5
|
data-testid="suggestion-list"
|
|
7
6
|
class="slds-listbox slds-listbox_vertical"
|
|
8
7
|
tabindex="-1"
|
|
@@ -53,7 +52,6 @@
|
|
|
53
52
|
<span class="slds-media__body slds-grid">
|
|
54
53
|
<lightning-formatted-rich-text
|
|
55
54
|
class="slds-truncate"
|
|
56
|
-
data-cy="suggestions-option-text"
|
|
57
55
|
value={option.value}
|
|
58
56
|
title={option.rawValue}
|
|
59
57
|
></lightning-formatted-rich-text>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<template lwc:else>
|
|
7
7
|
<template if:true={answerFound}>
|
|
8
8
|
<div class="smart-snippet slds-var-m-bottom_xx-small">
|
|
9
|
-
<lightning-card
|
|
9
|
+
<lightning-card title={question}>
|
|
10
10
|
<div class="slds-p-horizontal_medium slds-p-top_small slds-border_top">
|
|
11
11
|
<div class="slds-var-m-bottom_small">
|
|
12
|
-
<div
|
|
12
|
+
<div class={expandableAnswerClass}>
|
|
13
13
|
<c-quantic-smart-snippet-answer answer={answer}
|
|
14
14
|
actions={smartSnippetAnswerActions}></c-quantic-smart-snippet-answer>
|
|
15
15
|
</div>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<template lwc:if={hasResults}>
|
|
11
11
|
<template lwc:if={isVariantWide}>
|
|
12
12
|
<div class="slds-align_absolute-center sort__container sort__container--wide slds-var-m-bottom_small">
|
|
13
|
-
<div data-
|
|
13
|
+
<div data-testid="filters-title" class="slds-text-heading_small">
|
|
14
14
|
{labels.sortBy}
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
dropdown-alignment="auto"
|
|
26
26
|
onchange={handleChange}
|
|
27
27
|
class="slds-text-heading_small combobox--wide"
|
|
28
|
-
data-cy="sort-dropdown"
|
|
29
28
|
>
|
|
30
29
|
</lightning-combobox>
|
|
31
30
|
</lightning-layout-item>
|
|
@@ -47,7 +46,6 @@
|
|
|
47
46
|
options={options}
|
|
48
47
|
dropdown-alignment="auto"
|
|
49
48
|
onchange={handleChange}
|
|
50
|
-
data-cy="sort-dropdown"
|
|
51
49
|
>
|
|
52
50
|
</lightning-combobox>
|
|
53
51
|
</lightning-layout-item>
|