@fluid-topics/ft-reader-metadata 1.0.48 → 1.0.49
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.
|
@@ -94,7 +94,7 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
94
94
|
display: inline-block;
|
|
95
95
|
width: 0;
|
|
96
96
|
}
|
|
97
|
-
`;function Nt(t){var i;return null!==(i=null==t?void 0:t.isFtReduxStore)&&void 0!==i&&i}var Rt,Mt,zt;const Ut=Symbol("internalReduxEventsUnsubscribers"),jt=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores");class Bt extends kt{constructor(){super(...arguments),this[Rt]=new Map,this[Mt]=new Map,this[zt]=[]}updated(t){var i;super.updated(t),(null===(i=this.reduxReactiveProperties)||void 0===i?void 0:i.some((i=>t.has(i))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ft].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ft].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ft].get(t)}addStore(t,i){var e;i=null!==(e=null!=i?i:Nt(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:t.name;this.unsubscribeFromStore(i),this[Ft].delete(i)}setupStore(t,i){this[Ft].set(t,i),this.subscribeToStore(t,i),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ft].forEach(((t,i)=>this.subscribeToStore(i,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,i)=>{const e=this.constructor.getPropertyOptions(i);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:i)){const e=this.getStore(t.store);e&&(t.store?this[jt].has(t.store):this[jt].size>0)&&(this[i]=t.selector(e.getState(),this))}}))}subscribeToStore(t,i){var e;this[jt].set(t,i.subscribe((()=>this.updateFromStores()))),Nt(i)&&i.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||i.name===t.store)){const o=t=>this[e](t);i.eventBus.addEventListener(t.eventName,o),this[Ut].push((()=>i.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[jt].forEach(((t,i)=>this.unsubscribeFromStore(i))),this[Ut].forEach((t=>t())),this[Ut]=[]}unsubscribeFromStore(t){this[jt].has(t)&&this[jt].get(t)(),this[jt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Rt=jt,Mt=Ft,zt=Ut;var Tt,It,Lt;const At=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Lt=null===(It=null===(Tt=window.safari)||void 0===Tt?void 0:Tt.pushNotification)||void 0===It?void 0:It.toString())&&void 0!==Lt?Lt:""),Pt=x`
|
|
97
|
+
`;function Nt(t){var i;return null!==(i=null==t?void 0:t.isFtReduxStore)&&void 0!==i&&i}var Rt,Mt,zt;const Ut=Symbol("internalReduxEventsUnsubscribers"),jt=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores");class Bt extends kt{constructor(){super(...arguments),this[Rt]=new Map,this[Mt]=new Map,this[zt]=[]}updated(t){var i;super.updated(t),(null===(i=this.reduxReactiveProperties)||void 0===i?void 0:i.some((i=>t.has(i))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ft].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ft].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ft].get(t)}addStore(t,i){var e;i=null!==(e=null!=i?i:Nt(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:t.name;this.unsubscribeFromStore(i),this[Ft].delete(i)}setupStore(t,i){this[Ft].set(t,i),this.subscribeToStore(t,i),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ft].forEach(((t,i)=>this.subscribeToStore(i,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,i)=>{const e=this.constructor.getPropertyOptions(i);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:i)){const e=this.getStore(t.store);e&&(t.store?this[jt].has(t.store):this[jt].size>0)&&(this[i]=t.selector(e.getState(),this))}}))}subscribeToStore(t,i){var e;this[jt].set(t,i.subscribe((()=>this.updateFromStores()))),Nt(i)&&i.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||i.name===t.store)){const o=t=>this[e](t);i.eventBus.addEventListener(t.eventName,o),this[Ut].push((()=>i.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[jt].forEach(((t,i)=>this.unsubscribeFromStore(i))),this[Ut].forEach((t=>t())),this[Ut]=[]}unsubscribeFromStore(t){this[jt].has(t)&&this[jt].get(t)(),this[jt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Rt=jt,Mt=Ft,zt=Ut,window.ftReduxStores||(window.ftReduxStores={});var Tt,It,Lt;const At=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Lt=null===(It=null===(Tt=window.safari)||void 0===Tt?void 0:Tt.pushNotification)||void 0===It?void 0:It.toString())&&void 0!==Lt?Lt:""),Pt=x`
|
|
98
98
|
:host {
|
|
99
99
|
display: inline-block;
|
|
100
100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-metadata",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"description": "Metadata for integrated reader",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
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.0.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.0.
|
|
24
|
-
"@fluid-topics/ft-tooltip": "1.0.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-chip": "1.0.49",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.0.49",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "1.0.49",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "1.0.49",
|
|
26
26
|
"lit": "2.7.2"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "77eac237aeec17a50f5bcc09890746d9a9f097f0"
|
|
29
29
|
}
|