@fluid-topics/ft-reader-metadata 1.0.7 → 1.0.8
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 ft,dt;let ut=class extends N{constructor(){super(...arguments),this.renderOp
|
|
|
94
94
|
display: inline-block;
|
|
95
95
|
width: 0;
|
|
96
96
|
}
|
|
97
|
-
`;var Nt,Rt;const Mt=Symbol("internalStoresUnsubscribers"),zt=Symbol("internalStores");class jt extends kt{constructor(){super(...arguments),this[Nt]=new Map,this[Rt]=new Map}getUnnamedStore(){if(this[zt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[zt].get(t)}addStore(t,i){i=null!=i?i:t.name,this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:t.name;this.unsubscribeFromStore(i),this[zt].delete(i)}setupStore(t,i){this[zt].set(t,i),this.subscribeToStore(t,i),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[zt].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&&(this[i]=t.selector(e.getState(),this))}}))}subscribeToStore(t,i){this[Mt].set(t,i.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Mt]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[Mt].has(t)&&this[Mt].get(t)(),this[Mt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}var Ut,Ft,Bt;Nt=Mt,Rt=zt;const Tt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Bt=null===(Ft=null===(Ut=window.safari)||void 0===Ut?void 0:Ut.pushNotification)||void 0===Ft?void 0:Ft.toString())&&void 0!==Bt?Bt:""),It=y`
|
|
97
|
+
`;var Nt,Rt;const Mt=Symbol("internalStoresUnsubscribers"),zt=Symbol("internalStores");class jt extends kt{constructor(){super(...arguments),this[Nt]=new Map,this[Rt]=new Map}getUnnamedStore(){if(this[zt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[zt].get(t)}addStore(t,i){i=null!=i?i:function(t){var i;return null!==(i=null==t?void 0:t.isFtReduxStore)&&void 0!==i&&i}(t)?t.name:void 0,this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:t.name;this.unsubscribeFromStore(i),this[zt].delete(i)}setupStore(t,i){this[zt].set(t,i),this.subscribeToStore(t,i),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[zt].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&&(this[i]=t.selector(e.getState(),this))}}))}subscribeToStore(t,i){this[Mt].set(t,i.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Mt]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[Mt].has(t)&&this[Mt].get(t)(),this[Mt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}var Ut,Ft,Bt;Nt=Mt,Rt=zt;const Tt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Bt=null===(Ft=null===(Ut=window.safari)||void 0===Ut?void 0:Ut.pushNotification)||void 0===Ft?void 0:Ft.toString())&&void 0!==Bt?Bt:""),It=y`
|
|
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.8",
|
|
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.8",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.0.8",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "1.0.8",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "1.0.8",
|
|
26
26
|
"lit": "2.7.2"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "b55ea6fbe362f72c42f5c26f705fde8e39261001"
|
|
29
29
|
}
|