@fluid-topics/ft-reader-metadata 0.3.52 → 0.3.53
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.
|
@@ -92,7 +92,7 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
92
92
|
-webkit-hyphens: auto;
|
|
93
93
|
hyphens: auto
|
|
94
94
|
}
|
|
95
|
-
`;class bt extends xt{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 i;return null==t?null!==(i=this.getUnnamedStore())&&void 0!==i?i:this.store:this.internalStores.get(t)}addStore(t,i){i=null!=i?i:wt(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:wt(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(i),this.internalStores.delete(i)}setupStore(t,i){this.internalStores.set(t,i),this.updateFromStores(),this.subscribeToStore(t,i)}setupStores(){this.unsubscribeFromStores(),this.updateFromStores(),this.internalStores.forEach(((t,i)=>this.subscribeToStore(i,t)))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,i)=>{const e=this.getStore(t.store);e&&(this[i]=t.selector(e.getState(),this))}))}subscribeToStore(t,i){this.internalStoresUnsubscribers.set(t,i.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 wt(t){var i;return null===(i=t)||void 0===i?void 0:i.isFtReduxStore}var $t,Ot,St;const kt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(St=null===(Ot=null===($t=window.safari)||void 0===$t?void 0:$t.pushNotification)||void 0===Ot?void 0:Ot.toString())&&void 0!==St?St:""),Ct=g`
|
|
95
|
+
`;class bt extends xt{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 i;return null==t?null!==(i=this.getUnnamedStore())&&void 0!==i?i:this.store:this.internalStores.get(t)}addStore(t,i){i=null!=i?i:wt(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:wt(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(i),this.internalStores.delete(i)}setupStore(t,i){this.internalStores.set(t,i),this.updateFromStores(),this.subscribeToStore(t,i)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,i)=>this.subscribeToStore(i,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,i)=>{const e=this.getStore(t.store);e&&(this[i]=t.selector(e.getState(),this))}))}subscribeToStore(t,i){this.internalStoresUnsubscribers.set(t,i.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 wt(t){var i;return null===(i=t)||void 0===i?void 0:i.isFtReduxStore}var $t,Ot,St;const kt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(St=null===(Ot=null===($t=window.safari)||void 0===$t?void 0:$t.pushNotification)||void 0===Ot?void 0:Ot.toString())&&void 0!==St?St:""),Ct=g`
|
|
96
96
|
:host {
|
|
97
97
|
display: inline-block;
|
|
98
98
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-metadata",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.53",
|
|
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": "0.3.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "0.3.
|
|
24
|
-
"@fluid-topics/ft-tooltip": "0.3.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-chip": "0.3.53",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "0.3.53",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "0.3.53",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "0.3.53",
|
|
26
26
|
"lit": "2.2.8"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "cf1f6c836c7bcacfd0a9abbd39a185077341036e"
|
|
29
29
|
}
|