@fluid-topics/ft-reader-content 1.0.49 → 1.0.51

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.
@@ -70,7 +70,7 @@ class FtReaderContent extends FtReaderComponent {
70
70
  }
71
71
  onScrollDone() {
72
72
  var _a, _b;
73
- if (!this.disableContextInteractions && ((_a = this.scrollTarget) === null || _a === void 0 ? void 0 : _a.section) == null) {
73
+ if (!this.disableContextInteractions && !((_a = this.scrollTarget) === null || _a === void 0 ? void 0 : _a.section)) {
74
74
  (_b = this.stateManager) === null || _b === void 0 ? void 0 : _b.scrollDone();
75
75
  }
76
76
  }
@@ -77,4 +77,4 @@
77
77
  <ft-reader-topic-context tocId="${t}" ?disableContextInteractions=${this.disableContextInteractions}>
78
78
  ${this.renderTopic(t,e)}
79
79
  </ft-reader-topic-context>
80
- `}getScrollTarget(){var t,e,i,s,r;if(this.disableContextInteractions)return null;const n=null!==(s=null===(t=this.visibleTopics)||void 0===t?void 0:t.includes(null!==(i=null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)&&void 0!==i?i:""))&&void 0!==s&&s;return!(null===(r=this.scrollTarget)||void 0===r?void 0:r.tocId)||n&&null!=this.scrollTarget.section?null:this.scrollTarget.tocId}visibleTopicChange(t){this.disableContextInteractions||this.visibleTopicsDebouncer.run((()=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setVisibleTopics(t.detail.visibleItems)}))}onScrollDone(){var t,e;this.disableContextInteractions||null!=(null===(t=this.scrollTarget)||void 0===t?void 0:t.section)||null===(e=this.stateManager)||void 0===e||e.scrollDone()}}y.elementDefinitions={"ft-infinite-scroll":m},y.styles=g,$([s.property()],y.prototype,"renderTopic",void 0),$([s.property({type:Boolean})],y.prototype,"disableContextInteractions",void 0),$([e.redux()],y.prototype,"currentPage",void 0),$([e.redux()],y.prototype,"scrollTarget",void 0),$([e.redux()],y.prototype,"visibleTopics",void 0),$([e.redux({selector:t=>{var e,i;return null!==(i=null===(e=t.configuration)||void 0===e?void 0:e.loadBeforeFirstVisibleTopic)&&void 0!==i?i:5}})],y.prototype,"renderBeforeFirst",void 0),$([e.redux({selector:t=>{var e,i;return null!==(i=null===(e=t.configuration)||void 0===e?void 0:e.loadAfterLastVisibleTopic)&&void 0!==i?i:5}})],y.prototype,"renderAfterLast",void 0),$([s.query(".ft-reader-content")],y.prototype,"container",void 0),e.customElement("ft-reader-content")(y),t.FtReaderContent=y,t.FtReaderContentCssVariables={},t.styles=g}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML);
80
+ `}getScrollTarget(){var t,e,i,s,r;if(this.disableContextInteractions)return null;const n=null!==(s=null===(t=this.visibleTopics)||void 0===t?void 0:t.includes(null!==(i=null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)&&void 0!==i?i:""))&&void 0!==s&&s;return!(null===(r=this.scrollTarget)||void 0===r?void 0:r.tocId)||n&&null!=this.scrollTarget.section?null:this.scrollTarget.tocId}visibleTopicChange(t){this.disableContextInteractions||this.visibleTopicsDebouncer.run((()=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setVisibleTopics(t.detail.visibleItems)}))}onScrollDone(){var t,e;this.disableContextInteractions||(null===(t=this.scrollTarget)||void 0===t?void 0:t.section)||null===(e=this.stateManager)||void 0===e||e.scrollDone()}}y.elementDefinitions={"ft-infinite-scroll":m},y.styles=g,$([s.property()],y.prototype,"renderTopic",void 0),$([s.property({type:Boolean})],y.prototype,"disableContextInteractions",void 0),$([e.redux()],y.prototype,"currentPage",void 0),$([e.redux()],y.prototype,"scrollTarget",void 0),$([e.redux()],y.prototype,"visibleTopics",void 0),$([e.redux({selector:t=>{var e,i;return null!==(i=null===(e=t.configuration)||void 0===e?void 0:e.loadBeforeFirstVisibleTopic)&&void 0!==i?i:5}})],y.prototype,"renderBeforeFirst",void 0),$([e.redux({selector:t=>{var e,i;return null!==(i=null===(e=t.configuration)||void 0===e?void 0:e.loadAfterLastVisibleTopic)&&void 0!==i?i:5}})],y.prototype,"renderAfterLast",void 0),$([s.query(".ft-reader-content")],y.prototype,"container",void 0),e.customElement("ft-reader-content")(y),t.FtReaderContent=y,t.FtReaderContentCssVariables={},t.styles=g}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML);
@@ -195,4 +195,4 @@ class Xt extends Kt{constructor(t){if(super(t),this.et=X,t.type!==_t)throw Error
195
195
  <ft-reader-topic-context tocId="${t}" ?disableContextInteractions=${this.disableContextInteractions}>
196
196
  ${this.renderTopic(t,e)}
197
197
  </ft-reader-topic-context>
198
- `}getScrollTarget(){var t,e,i,s,n;if(this.disableContextInteractions)return null;const r=null!==(s=null===(t=this.visibleTopics)||void 0===t?void 0:t.includes(null!==(i=null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)&&void 0!==i?i:""))&&void 0!==s&&s;return!(null===(n=this.scrollTarget)||void 0===n?void 0:n.tocId)||r&&null!=this.scrollTarget.section?null:this.scrollTarget.tocId}visibleTopicChange(t){this.disableContextInteractions||this.visibleTopicsDebouncer.run((()=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setVisibleTopics(t.detail.visibleItems)}))}onScrollDone(){var t,e;this.disableContextInteractions||null!=(null===(t=this.scrollTarget)||void 0===t?void 0:t.section)||null===(e=this.stateManager)||void 0===e||e.scrollDone()}}de.elementDefinitions={"ft-infinite-scroll":re},de.styles=oe,ce([s()],de.prototype,"renderTopic",void 0),ce([s({type:Boolean})],de.prototype,"disableContextInteractions",void 0),ce([Ft()],de.prototype,"currentPage",void 0),ce([Ft()],de.prototype,"scrollTarget",void 0),ce([Ft()],de.prototype,"visibleTopics",void 0),ce([Ft({selector:t=>{var e,i;return null!==(i=null===(e=t.configuration)||void 0===e?void 0:e.loadBeforeFirstVisibleTopic)&&void 0!==i?i:5}})],de.prototype,"renderBeforeFirst",void 0),ce([Ft({selector:t=>{var e,i;return null!==(i=null===(e=t.configuration)||void 0===e?void 0:e.loadAfterLastVisibleTopic)&&void 0!==i?i:5}})],de.prototype,"renderAfterLast",void 0),ce([r(".ft-reader-content")],de.prototype,"container",void 0),h("ft-reader-content")(de),t.FtReaderContent=de,t.FtReaderContentCssVariables={},t.styles=oe}({});
198
+ `}getScrollTarget(){var t,e,i,s,n;if(this.disableContextInteractions)return null;const r=null!==(s=null===(t=this.visibleTopics)||void 0===t?void 0:t.includes(null!==(i=null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)&&void 0!==i?i:""))&&void 0!==s&&s;return!(null===(n=this.scrollTarget)||void 0===n?void 0:n.tocId)||r&&null!=this.scrollTarget.section?null:this.scrollTarget.tocId}visibleTopicChange(t){this.disableContextInteractions||this.visibleTopicsDebouncer.run((()=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setVisibleTopics(t.detail.visibleItems)}))}onScrollDone(){var t,e;this.disableContextInteractions||(null===(t=this.scrollTarget)||void 0===t?void 0:t.section)||null===(e=this.stateManager)||void 0===e||e.scrollDone()}}de.elementDefinitions={"ft-infinite-scroll":re},de.styles=oe,ce([s()],de.prototype,"renderTopic",void 0),ce([s({type:Boolean})],de.prototype,"disableContextInteractions",void 0),ce([Ft()],de.prototype,"currentPage",void 0),ce([Ft()],de.prototype,"scrollTarget",void 0),ce([Ft()],de.prototype,"visibleTopics",void 0),ce([Ft({selector:t=>{var e,i;return null!==(i=null===(e=t.configuration)||void 0===e?void 0:e.loadBeforeFirstVisibleTopic)&&void 0!==i?i:5}})],de.prototype,"renderBeforeFirst",void 0),ce([Ft({selector:t=>{var e,i;return null!==(i=null===(e=t.configuration)||void 0===e?void 0:e.loadAfterLastVisibleTopic)&&void 0!==i?i:5}})],de.prototype,"renderAfterLast",void 0),ce([r(".ft-reader-content")],de.prototype,"container",void 0),h("ft-reader-content")(de),t.FtReaderContent=de,t.FtReaderContentCssVariables={},t.styles=oe}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-content",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Main content for integrated reader",
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-infinite-scroll": "1.0.49",
23
- "@fluid-topics/ft-reader-topic-content": "1.0.49",
24
- "@fluid-topics/ft-reader-topic-context": "1.0.49",
25
- "@fluid-topics/ft-reader-topic-title": "1.0.49",
26
- "@fluid-topics/ft-wc-utils": "1.0.49",
22
+ "@fluid-topics/ft-infinite-scroll": "1.0.51",
23
+ "@fluid-topics/ft-reader-topic-content": "1.0.51",
24
+ "@fluid-topics/ft-reader-topic-context": "1.0.51",
25
+ "@fluid-topics/ft-reader-topic-title": "1.0.51",
26
+ "@fluid-topics/ft-wc-utils": "1.0.51",
27
27
  "lit": "2.7.2"
28
28
  },
29
- "gitHead": "77eac237aeec17a50f5bcc09890746d9a9f097f0"
29
+ "gitHead": "ea2d0683e542dd824889f183d48d0ed68fca794a"
30
30
  }