@fluid-topics/ft-reader-topic-content 1.1.4 → 1.1.5
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.
|
@@ -209,7 +209,7 @@ let me=class extends Mt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
209
209
|
</section>
|
|
210
210
|
`:re`
|
|
211
211
|
<section class="topic-loading"></section>
|
|
212
|
-
`}update(t){super.update(t),(t.has("map")||t.has("tocNode"))&&this.updateContent()}updated(t){super.updated(t),this.updateComplete.then((()=>async function(t,e=5){let o=t();for(;null==o;)await W(e),o=t();return o}((()=>this.topicContainer)))).then((t=>function(t,e){const o=new je(t);o.unmark(Ze),e&&e.trim()&&o.mark(e,Ze)}(t,this.searchInDocumentQuery)))}updateContent(){var t;this.error=void 0,this.content=void 0,this.map&&this.tocNode&&(null===(t=this.service)||void 0===t||t.getTopicContent(this.tocNode).then((t=>this.content=t||'<div class="empty-topic"></div>')).catch((t=>this.error=t)))}contentAvailableCallback(t){var e,o,r,i,n,a;if(super.contentAvailableCallback(t),!this.disableContextInteractions&&(null===(e=this.scrollTarget)||void 0===e?void 0:e.section)&&(null===(o=this.tocNode)||void 0===o?void 0:o.tocId)&&(null===(r=this.tocNode)||void 0===r?void 0:r.tocId)===this.scrollTarget.tocId&&this.content){(null!==(n=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))&&void 0!==n?n:this).scrollIntoView({block:"start"}),null===(a=this.stateManager)||void 0===a||a.scrollDone()}this.topicContainer&&this.onContentAvailable(this.topicContainer,this.shadowRoot)}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var t,e,o,r;if(this.error)return re`
|
|
212
|
+
`}update(t){super.update(t),(t.has("map")||t.has("tocNode"))&&this.updateContent()}updated(t){super.updated(t),this.updateComplete.then((()=>async function(t,e=5){let o=await t();for(;null==o;)await W(e),o=await t();return o}((()=>this.topicContainer)))).then((t=>function(t,e){let o=t.getAttribute("data-highlight-html-query");if((null!=o?o:"")!==(null!=e?e:"")){const o=new je(t);o.unmark(Ze),e&&e.trim()&&o.mark(e,Ze)}t.setAttribute("data-highlight-html-query",null!=e?e:"")}(t,this.searchInDocumentQuery)))}updateContent(){var t;this.error=void 0,this.content=void 0,this.map&&this.tocNode&&(null===(t=this.service)||void 0===t||t.getTopicContent(this.tocNode).then((t=>this.content=t||'<div class="empty-topic"></div>')).catch((t=>this.error=t)))}contentAvailableCallback(t){var e,o,r,i,n,a;if(super.contentAvailableCallback(t),!this.disableContextInteractions&&(null===(e=this.scrollTarget)||void 0===e?void 0:e.section)&&(null===(o=this.tocNode)||void 0===o?void 0:o.tocId)&&(null===(r=this.tocNode)||void 0===r?void 0:r.tocId)===this.scrollTarget.tocId&&this.content){(null!==(n=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))&&void 0!==n?n:this).scrollIntoView({block:"start"}),null===(a=this.stateManager)||void 0===a||a.scrollDone()}this.topicContainer&&this.onContentAvailable(this.topicContainer,this.shadowRoot)}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var t,e,o,r;if(this.error)return re`
|
|
213
213
|
<div class="topic-on-error">
|
|
214
214
|
<ft-icon>WARNING</ft-icon>
|
|
215
215
|
<div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-topic-content",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Content of a topic in integrated reader.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-chip": "1.1.
|
|
23
|
-
"@fluid-topics/ft-i18n": "1.1.
|
|
24
|
-
"@fluid-topics/ft-reader-context": "1.1.
|
|
25
|
-
"@fluid-topics/ft-reader-topic-context": "1.1.
|
|
26
|
-
"@fluid-topics/ft-tooltip": "1.1.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-chip": "1.1.5",
|
|
23
|
+
"@fluid-topics/ft-i18n": "1.1.5",
|
|
24
|
+
"@fluid-topics/ft-reader-context": "1.1.5",
|
|
25
|
+
"@fluid-topics/ft-reader-topic-context": "1.1.5",
|
|
26
|
+
"@fluid-topics/ft-tooltip": "1.1.5",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.1.5",
|
|
28
28
|
"@fluid-topics/public-api": "1.0.51",
|
|
29
29
|
"lit": "3.1.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "334ea71061e13d064f1f59b0f75d84c46d32d860"
|
|
32
32
|
}
|