@sinequa/atomic-angular 1.6.4 → 1.6.5
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.
|
@@ -4267,6 +4267,7 @@ class PreviewService {
|
|
|
4267
4267
|
currentPage = signal(1, ...(ngDevMode ? [{ debugName: "currentPage" }] : []));
|
|
4268
4268
|
events = signal("idle", ...(ngDevMode ? [{ debugName: "events" }] : []));
|
|
4269
4269
|
DOMContentLoaded = signal(false, ...(ngDevMode ? [{ debugName: "DOMContentLoaded" }] : []));
|
|
4270
|
+
selectedHighlightId = signal(null, ...(ngDevMode ? [{ debugName: "selectedHighlightId" }] : []));
|
|
4270
4271
|
// ! worker
|
|
4271
4272
|
onMessage = new Subject();
|
|
4272
4273
|
worker;
|
|
@@ -9585,6 +9586,7 @@ class ArticleExtracts {
|
|
|
9585
9586
|
scrollTo(type, index, usePassageHighlighter = false) {
|
|
9586
9587
|
// if previewData contains "matchingpassages" then we use the passage highlighter otherwise we use "extractslocations"
|
|
9587
9588
|
const category = type || this.previewService.highlightCategory;
|
|
9589
|
+
this.previewService.selectedHighlightId.set(`${category}_${index}`);
|
|
9588
9590
|
this.previewService.events.set("scrollTo");
|
|
9589
9591
|
this.previewService.sendMessage({ action: "select", id: `${category}_${index}`, usePassageHighlighter });
|
|
9590
9592
|
}
|