@coveo/quantic 3.45.6 → 3.45.7
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/labels/CustomLabels.labels-meta.xml +12 -5
- package/force-app/main/default/lwc/quanticGeneratedAnswer/quanticGeneratedAnswer.js +3 -5
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/conversation.html +2 -2
- package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.html +8 -10
- package/force-app/main/default/lwc/quanticResultsPerPage/quanticResultsPerPage.js +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +16 -16
- package/force-app/main/default/staticresources/coveoheadless/headless.js +18 -18
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +17 -17
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +15 -15
- package/package.json +8 -8
|
@@ -1255,10 +1255,10 @@
|
|
|
1255
1255
|
</labels>
|
|
1256
1256
|
<labels>
|
|
1257
1257
|
<fullName>quantic_GeneratedAnswerForYou</fullName>
|
|
1258
|
-
<value>
|
|
1258
|
+
<value>AI-generated answer</value>
|
|
1259
1259
|
<language>en_US</language>
|
|
1260
1260
|
<protected>false</protected>
|
|
1261
|
-
<shortDescription>
|
|
1261
|
+
<shortDescription>AI-generated answer</shortDescription>
|
|
1262
1262
|
</labels>
|
|
1263
1263
|
<labels>
|
|
1264
1264
|
<fullName>quantic_ThisAnswerWasNotHelpful</fullName>
|
|
@@ -1374,10 +1374,10 @@
|
|
|
1374
1374
|
</labels>
|
|
1375
1375
|
<labels>
|
|
1376
1376
|
<fullName>quantic_AnswerGenerated</fullName>
|
|
1377
|
-
<value>
|
|
1377
|
+
<value>AI-generated answer: {{0}}</value>
|
|
1378
1378
|
<language>en_US</language>
|
|
1379
1379
|
<protected>false</protected>
|
|
1380
|
-
<shortDescription>
|
|
1380
|
+
<shortDescription>AI-generated answer: example answer</shortDescription>
|
|
1381
1381
|
</labels>
|
|
1382
1382
|
<labels>
|
|
1383
1383
|
<fullName>quantic_GeneratingAnswer</fullName>
|
|
@@ -1402,11 +1402,18 @@
|
|
|
1402
1402
|
</labels>
|
|
1403
1403
|
<labels>
|
|
1404
1404
|
<fullName>quantic_RGADisclaimer</fullName>
|
|
1405
|
-
<value>
|
|
1405
|
+
<value>AI-generated content may contain errors. Verify important information.</value>
|
|
1406
1406
|
<language>en_US</language>
|
|
1407
1407
|
<protected>false</protected>
|
|
1408
1408
|
<shortDescription>Generated answer disclaimer</shortDescription>
|
|
1409
1409
|
</labels>
|
|
1410
|
+
<labels>
|
|
1411
|
+
<fullName>quantic_RGADisclaimerAnnouncement</fullName>
|
|
1412
|
+
<value>AI-generated content may contain errors. Verify important information.</value>
|
|
1413
|
+
<language>en_US</language>
|
|
1414
|
+
<protected>false</protected>
|
|
1415
|
+
<shortDescription>Generated answer disclaimer announced to screen readers</shortDescription>
|
|
1416
|
+
</labels>
|
|
1410
1417
|
<labels>
|
|
1411
1418
|
<fullName>quantic_GeneratedAnswerShowMore</fullName>
|
|
1412
1419
|
<value>Show more</value>
|
|
@@ -8,6 +8,7 @@ import showMore from '@salesforce/label/c.quantic_GeneratedAnswerShowMore';
|
|
|
8
8
|
import generatingAnswer from '@salesforce/label/c.quantic_GeneratingAnswer';
|
|
9
9
|
import loading from '@salesforce/label/c.quantic_Loading';
|
|
10
10
|
import rgaDisclaimer from '@salesforce/label/c.quantic_RGADisclaimer';
|
|
11
|
+
import rgaDisclaimerAnnouncement from '@salesforce/label/c.quantic_RGADisclaimerAnnouncement';
|
|
11
12
|
import tryAgain from '@salesforce/label/c.quantic_TryAgain';
|
|
12
13
|
import noGeneratedAnswer from '@salesforce/label/c.quantic_NoGeneratedAnswer';
|
|
13
14
|
import FeedbackModalQna from 'c/quanticFeedbackModalQna';
|
|
@@ -135,6 +136,7 @@ export default class QuanticGeneratedAnswer extends LightningElement {
|
|
|
135
136
|
generatedAnswerIsHidden,
|
|
136
137
|
answerGenerated,
|
|
137
138
|
rgaDisclaimer,
|
|
139
|
+
rgaDisclaimerAnnouncement,
|
|
138
140
|
showMore,
|
|
139
141
|
showLess,
|
|
140
142
|
loading,
|
|
@@ -275,7 +277,7 @@ export default class QuanticGeneratedAnswer extends LightningElement {
|
|
|
275
277
|
|
|
276
278
|
const hasAnswer = !!this.state.answer;
|
|
277
279
|
return hasAnswer
|
|
278
|
-
? I18nUtils.format(this.labels.answerGenerated, this.answer)
|
|
280
|
+
? `${I18nUtils.format(this.labels.answerGenerated, this.answer)} ${this.labels.rgaDisclaimerAnnouncement}`
|
|
279
281
|
: '';
|
|
280
282
|
}
|
|
281
283
|
|
|
@@ -522,10 +524,6 @@ export default class QuanticGeneratedAnswer extends LightningElement {
|
|
|
522
524
|
return [...new Set(combinedCitationFields)];
|
|
523
525
|
}
|
|
524
526
|
|
|
525
|
-
get shouldShowDisclaimer() {
|
|
526
|
-
return this.isVisible && !this.isStreaming;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
527
|
get toggleCollapseAnswerIcon() {
|
|
530
528
|
return this.isAnswerCollapsed ? 'utility:chevrondown' : 'utility:chevronup';
|
|
531
529
|
}
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
data-testid="generated-answer__footer"
|
|
53
53
|
class="generated-answer__disclaimer slds-grid slds-grid_vertical-align-center slds-grid_align-end slds-text-color_weak slds-text-body_small slds-var-m-top_xx-small"
|
|
54
54
|
>
|
|
55
|
-
<
|
|
55
|
+
<small data-testid="generated-answer__disclaimer" class="slds-text-body_small">
|
|
56
56
|
<slot name="disclaimer">{labels.rgaDisclaimer}</slot>
|
|
57
|
-
</
|
|
57
|
+
</small>
|
|
58
58
|
</footer>
|
|
59
59
|
</div>
|
|
60
60
|
</template>
|
|
@@ -72,16 +72,14 @@
|
|
|
72
72
|
</template>
|
|
73
73
|
</div>
|
|
74
74
|
</section>
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
>
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
</footer>
|
|
84
|
-
</template>
|
|
75
|
+
<footer
|
|
76
|
+
data-testid="generated-answer__footer"
|
|
77
|
+
class="generated-answer__disclaimer slds-grid slds-grid_vertical-align-center slds-grid_align-end slds-text-color_weak slds-text-body_small slds-p-horizontal_large slds-p-bottom_medium"
|
|
78
|
+
>
|
|
79
|
+
<small data-testid="generated-answer__disclaimer" class="slds-text-body_small">
|
|
80
|
+
<slot name="disclaimer"> {labels.rgaDisclaimer} </slot>
|
|
81
|
+
</small>
|
|
82
|
+
</footer>
|
|
85
83
|
</template>
|
|
86
84
|
</div>
|
|
87
85
|
</template>
|
|
@@ -109,7 +109,7 @@ export default class QuanticResultsPerPage extends LightningElement {
|
|
|
109
109
|
this.headless = getHeadlessBundle(this.engineId);
|
|
110
110
|
this.resultsPerPage = this.headless.buildResultsPerPage(engine, {
|
|
111
111
|
initialState: {
|
|
112
|
-
numberOfResults: Number(this.initialChoice)
|
|
112
|
+
numberOfResults: Number(this.initialChoice) || this.choices[0],
|
|
113
113
|
},
|
|
114
114
|
});
|
|
115
115
|
this.searchStatus = this.headless.buildSearchStatus(engine);
|