@fluid-topics/ft-reader-content 0.3.40 → 0.3.43

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,4 +1,4 @@
1
- !function(t,e,i,s,r,n){var l=function(t,e,i,s){for(var r,n=arguments.length,l=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,o=t.length-1;o>=0;o--)(r=t[o])&&(l=(n<3?r(l):n>3?r(e,i,l):r(e,i))||l);return n>3&&l&&Object.defineProperty(e,i,l),l};class o extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class h 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 o)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return l([s.state()],e.prototype,"stateManager",void 0),e}(e.FtLitElementRedux)){}const a=e.FtCssVariableFactory.create("--ft-infinite-scroll-padding","SIZE","0"),d=i.css`
1
+ !function(t,e,i,s,r,n){var l=function(t,e,i,s){for(var r,n=arguments.length,l=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,o=t.length-1;o>=0;o--)(r=t[o])&&(l=(n<3?r(l):n>3?r(e,i,l):r(e,i))||l);return n>3&&l&&Object.defineProperty(e,i,l),l};class o extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class h 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 o)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return l([s.state()],e.prototype,"stateManager",void 0),e}(e.FtLitElementRedux)){}const a=e.FtCssVariableFactory.create("--ft-infinite-scroll-padding","SIZE","0"),d=i.css`
2
2
  .items-container {
3
3
  position: relative;
4
4
  padding: ${a};
@@ -94,7 +94,7 @@ function(t){return class extends t{createRenderRoot(){const t=this.constructor,{
94
94
  -webkit-hyphens: auto;
95
95
  hyphens: auto
96
96
  }
97
- `;const mt=(t,e)=>(i,s)=>{i.constructor.createProperty(s,{attribute:!1,hasChanged:null!=e?e:(t,e)=>!a(t,e)});const n=i;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(s,null!=t?t:t=>t[s])};class xt extends bt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var wt,gt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(gt=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===gt||gt.toString());var yt=function(t,e,i,s){for(var n,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(n=t[l])&&(o=(r<3?n(o):r>3?n(e,i,o):n(e,i))||o);return r>3&&o&&Object.defineProperty(e,i,o),o};class Ot extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Ct 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 Ot)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return yt([n()],e.prototype,"stateManager",void 0),e}(xt)){}
97
+ `;const mt=(t,e)=>(i,s)=>{i.constructor.createProperty(s,{attribute:!1,hasChanged:null!=e?e:(t,e)=>!a(t,e)});const n=i;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(s,null!=t?t:t=>t[s])};class xt extends bt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var wt,gt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(gt=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===gt||gt.toString());var yt=function(t,e,i,s){for(var n,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(n=t[l])&&(o=(r<3?n(o):r>3?n(e,i,o):n(e,i))||o);return r>3&&o&&Object.defineProperty(e,i,o),o};class Ot extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Ct 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 Ot)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return yt([n()],e.prototype,"stateManager",void 0),e}(xt)){}
98
98
  /**
99
99
  * @license
100
100
  * Copyright 2017 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-content",
3
- "version": "0.3.40",
3
+ "version": "0.3.43",
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": "0.3.40",
23
- "@fluid-topics/ft-reader-topic-content": "0.3.40",
24
- "@fluid-topics/ft-reader-topic-context": "0.3.40",
25
- "@fluid-topics/ft-reader-topic-title": "0.3.40",
26
- "@fluid-topics/ft-wc-utils": "0.3.40",
22
+ "@fluid-topics/ft-infinite-scroll": "0.3.43",
23
+ "@fluid-topics/ft-reader-topic-content": "0.3.43",
24
+ "@fluid-topics/ft-reader-topic-context": "0.3.43",
25
+ "@fluid-topics/ft-reader-topic-title": "0.3.43",
26
+ "@fluid-topics/ft-wc-utils": "0.3.43",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "00f0bb16ca98f5ade4f3d9a1c3d1dce54eae97b7"
29
+ "gitHead": "42962910ff06ebfa42e961d1567ee771c517ccb7"
30
30
  }