@fluid-topics/ft-reader-context 2.0.35 → 2.0.37

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.
@@ -63,7 +63,8 @@ export class FtReaderStateManager {
63
63
  if (!page.topics.includes(nonRootTocId)) {
64
64
  if (tocId != "root") {
65
65
  // The redirection is expected when tocId = root, don't send the event.
66
- this.store.dispatchEvent(new Event(FtReaderStoreEvents.requestedTopicNotFound));
66
+ // Pass the requested tocId as event detail so consumers can probe access rights.
67
+ this.store.dispatchEvent(new CustomEvent(FtReaderStoreEvents.requestedTopicNotFound, { detail: { tocId: nonRootTocId } }));
67
68
  }
68
69
  return (_c = (_b = page.topics[0]) !== null && _b !== void 0 ? _b : page.hiddenTopics[0]) !== null && _c !== void 0 ? _c : "root";
69
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-context",
3
- "version": "2.0.35",
3
+ "version": "2.0.37",
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.0.35",
23
- "@fluid-topics/ft-wc-utils": "2.0.35",
22
+ "@fluid-topics/ft-app-context": "2.0.37",
23
+ "@fluid-topics/ft-wc-utils": "2.0.37",
24
24
  "lit": "3.1.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@fluid-topics/public-api": "1.0.123"
27
+ "@fluid-topics/public-api": "1.0.124"
28
28
  },
29
- "gitHead": "b72f0f694a390c77ea515a13afc89abb277cd5f0"
29
+ "gitHead": "ef1f68e09e0331293931458a6479b551dcc4cecc"
30
30
  }