@fluid-topics/ft-reader-topic-context 2.2.33 → 2.2.35

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.
@@ -1,8 +1,13 @@
1
1
  import { FtReaderTocNode } from "@fluid-topics/ft-reader-context/build/store/model";
2
- import { Constructor, FtLitElement } from "@fluid-topics/ft-wc-utils";
2
+ import { Constructor, FtContextRegistrationEvent, FtContextRegistrationEventDetails, FtLitElement } from "@fluid-topics/ft-wc-utils";
3
3
  import { FtReaderComponent } from "@fluid-topics/ft-reader-context/build/registration";
4
- export declare class RegisterReaderTopicComponentEvent extends Event {
5
- constructor();
4
+ export declare class RegisterReaderTopicComponentEvent extends FtContextRegistrationEvent<FtReaderTopicComponentInterface> {
5
+ constructor(detail: FtContextRegistrationEventDetails<FtReaderTopicComponentInterface>);
6
+ }
7
+ declare global {
8
+ interface HTMLElementEventMap {
9
+ "register-ft-reader-topic-component": RegisterReaderTopicComponentEvent;
10
+ }
6
11
  }
7
12
  export type FtReaderTopicComponentInterface = {
8
13
  tocNode?: FtReaderTocNode;
@@ -5,11 +5,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { state } from "lit/decorators.js";
8
- import { applyMixinOnce, } from "@fluid-topics/ft-wc-utils";
8
+ import { applyMixinOnce, FtContextRegistrationEvent, } from "@fluid-topics/ft-wc-utils";
9
9
  import { FtReaderComponent } from "@fluid-topics/ft-reader-context/build/registration";
10
- export class RegisterReaderTopicComponentEvent extends Event {
11
- constructor() {
12
- super("register-ft-reader-topic-component", { bubbles: true, composed: true });
10
+ export class RegisterReaderTopicComponentEvent extends FtContextRegistrationEvent {
11
+ constructor(detail) {
12
+ super("register-ft-reader-topic-component", detail);
13
13
  }
14
14
  }
15
15
  const registerInterval = Symbol("registerInterval");
@@ -31,7 +31,7 @@ export const toFtReaderTopicComponent = applyMixinOnce(Symbol("toFtReaderTopicCo
31
31
  window.clearInterval(this[registerInterval]);
32
32
  }
33
33
  else {
34
- this.dispatchEvent(new RegisterReaderTopicComponentEvent());
34
+ this.dispatchEvent(new RegisterReaderTopicComponentEvent({ target: this }));
35
35
  }
36
36
  }
37
37
  disconnectedCallback() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-context",
3
- "version": "2.2.33",
3
+ "version": "2.2.35",
4
4
  "description": "Context block for integrated reader topic components.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-reader-context": "2.2.33",
23
- "@fluid-topics/ft-wc-utils": "2.2.33",
24
- "@fluid-topics/public-api": "1.0.145",
22
+ "@fluid-topics/ft-reader-context": "2.2.35",
23
+ "@fluid-topics/ft-wc-utils": "2.2.35",
24
+ "@fluid-topics/public-api": "1.0.147",
25
25
  "lit": "3.3.3"
26
26
  },
27
- "gitHead": "39282dce57673cf9073d17252de7ffd7c9676883"
27
+ "gitHead": "040e8142a897fe04b0ecceb7b2de59d1e6ec3fb7"
28
28
  }