@fluid-topics/ft-reader-topic-context 0.3.39 → 0.3.41

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.
@@ -4,7 +4,7 @@
4
4
  color: ${r.textColor};
5
5
  background-color: ${r.colorSurface};
6
6
  }
7
- `;var n=function(t,e,o,s){for(var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s,c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class c extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class a extends(function(t){class e extends t{constructor(){super(...arguments),this.registerInterval=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerInterval=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerInterval):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return n([s.state()],e.prototype,"stateManager",void 0),e}(e.FtLitElementRedux)){}var d=function(t,e,o,s){for(var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s,c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class l extends a{constructor(){super(...arguments),this.registeredComponents=[]}render(){return o.html`
7
+ `;var n=function(t,e,o,s){for(var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s,c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class c extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class a extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return n([s.state()],e.prototype,"stateManager",void 0),e}(e.FtLitElementRedux)){}var d=function(t,e,o,s){for(var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s,c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class l extends a{constructor(){super(...arguments),this.registeredComponents=[]}render(){return o.html`
8
8
  <article id=${this.tocId}>
9
9
  <slot @register-ft-reader-topic-component=${this.registerComponent}></slot>
10
10
  </article>
@@ -88,7 +88,7 @@ var nt,at;class ct extends C{constructor(){super(...arguments),this.renderOption
88
88
  color: ${yt.textColor};
89
89
  background-color: ${yt.colorSurface};
90
90
  }
91
- `;var xt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class gt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class wt extends(function(t){class e extends t{constructor(){super(...arguments),this.registerInterval=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerInterval=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerInterval):this.dispatchEvent(new gt)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return xt([o()],e.prototype,"stateManager",void 0),e}(ft)){}var Ot,St,Ct,Nt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Rt extends wt{constructor(){super(...arguments),this.registeredComponents=[]}render(){return I`
91
+ `;var xt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class gt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class wt extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.store?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new gt)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return xt([o()],e.prototype,"stateManager",void 0),e}(ft)){}var Ot,St,Ct,Nt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Rt extends wt{constructor(){super(...arguments),this.registeredComponents=[]}render(){return I`
92
92
  <article id=${this.tocId}>
93
93
  <slot @register-ft-reader-topic-component=${this.registerComponent}></slot>
94
94
  </article>
@@ -15,15 +15,15 @@ export function toFtReaderTopicComponent(ReduxClass) {
15
15
  class FtReaderTopicComponentClass extends ReduxClass {
16
16
  constructor() {
17
17
  super(...arguments);
18
- this.registerInterval = 0;
18
+ this.registerIntervalTopic = 0;
19
19
  }
20
20
  connectedCallback() {
21
21
  super.connectedCallback();
22
- this.registerInterval = window.setInterval(() => this.tryToRegisterToTopicContext(), 50);
22
+ this.registerIntervalTopic = window.setInterval(() => this.tryToRegisterToTopicContext(), 50);
23
23
  }
24
24
  tryToRegisterToTopicContext() {
25
25
  if (this.tocNode != null) {
26
- window.clearInterval(this.registerInterval);
26
+ window.clearInterval(this.registerIntervalTopic);
27
27
  }
28
28
  else {
29
29
  this.dispatchEvent(new RegisterReaderTopicComponentEvent());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-context",
3
- "version": "0.3.39",
3
+ "version": "0.3.41",
4
4
  "description": "Context block for integrated reader topic components.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "0.3.39",
22
+ "@fluid-topics/ft-wc-utils": "0.3.41",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "fce2eb423e7c2b107a892f3b986ab601fc4be7fc"
25
+ "gitHead": "33dabda0afbb6cc1ccdc6f34b717ad0df68d3e9c"
26
26
  }