@fluid-topics/ft-reader-context 2.2.3 → 2.2.4
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.
|
@@ -53,6 +53,10 @@ export class FtReaderStateManager {
|
|
|
53
53
|
this.store.actions.currentPage(page);
|
|
54
54
|
const nonRootTocId = this.resolveValidNonRootTocId(tocId, page);
|
|
55
55
|
this.store.actions.scrollTarget({ tocId: nonRootTocId, section });
|
|
56
|
+
// This is usefull for topic navigation on paginated reader when scrollTarget and visibleTopics change at the same time
|
|
57
|
+
if (this.store.getState().visibleTopics[0] !== nonRootTocId) {
|
|
58
|
+
this.store.actions.visibleTopics([]);
|
|
59
|
+
}
|
|
56
60
|
}
|
|
57
61
|
resolveValidNonRootTocId(tocId, page) {
|
|
58
62
|
var _a, _b, _c;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-context",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "Context block for integrated reader components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-app-context": "2.2.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
22
|
+
"@fluid-topics/ft-app-context": "2.2.4",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "2.2.4",
|
|
24
24
|
"lit": "3.3.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@fluid-topics/public-api": "1.0.137"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "2ac039d227e4c6f0630b0bfe10cac9a28d4cd41f"
|
|
30
30
|
}
|