@fluid-topics/ft-reader-topic-content 0.3.54 → 0.3.55

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.
@@ -88,6 +88,17 @@ var at,lt;class ct extends C{constructor(){super(...arguments),this.renderOption
88
88
  -webkit-hyphens: auto;
89
89
  hyphens: auto
90
90
  }
91
+ `,f`
92
+ .ft-safari-ellipsis-fix {
93
+ margin-right: 0;
94
+
95
+ }
96
+
97
+ .ft-safari-ellipsis-fix:after {
98
+ content: "\\0000a0";
99
+ display: inline-block;
100
+ width: 0;
101
+ }
91
102
  `;const vt=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged),xt=(t,e)=>{var i;const s=vt(t)?t:{};return e=null!==(i=null!=e?e:s.hasChanged)&&void 0!==i?i:(t,e)=>!a(t,e),(i,o)=>{var n;i.constructor.createProperty(o,{attribute:!1,hasChanged:e});const r=i;r.reduxProperties=r.reduxProperties||new Map;const a=null!==(n=vt(t)?s.selector:t)&&void 0!==n?n:t=>t[o];r.reduxProperties.set(o,{selector:a,store:s.store})}};class mt extends ft{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:bt(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:bt(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function bt(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var yt,gt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(gt=null===(yt=window.safari)||void 0===yt?void 0:yt.pushNotification)||void 0===gt||gt.toString());const wt={colorError:ut.external(dt.colorError,"Design system"),fontFamily:ut.external(dt.contentFont,"Design system")},Ot=f`
92
103
  .topic {
93
104
  font-family: ${wt.fontFamily};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-content",
3
- "version": "0.3.54",
3
+ "version": "0.3.55",
4
4
  "description": "Content of a topic in integrated reader.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,13 +19,13 @@
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": "0.3.54",
23
- "@fluid-topics/ft-reader-context": "0.3.54",
24
- "@fluid-topics/ft-reader-topic-context": "0.3.54",
25
- "@fluid-topics/ft-tooltip": "0.3.54",
26
- "@fluid-topics/ft-wc-utils": "0.3.54",
27
- "@fluid-topics/public-api": "1.0.29",
22
+ "@fluid-topics/ft-chip": "0.3.55",
23
+ "@fluid-topics/ft-reader-context": "0.3.55",
24
+ "@fluid-topics/ft-reader-topic-context": "0.3.55",
25
+ "@fluid-topics/ft-tooltip": "0.3.55",
26
+ "@fluid-topics/ft-wc-utils": "0.3.55",
27
+ "@fluid-topics/public-api": "1.0.30",
28
28
  "lit": "2.2.8"
29
29
  },
30
- "gitHead": "a44cb80b87fa9a6a35c255f4e37a75af484b443a"
30
+ "gitHead": "4106f01e238edeb1c85fba22d6d50a18757e0b3e"
31
31
  }