@fluid-topics/ft-reader-topic-title 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.
|
@@ -84,7 +84,7 @@ var lt,ct;let ht=class extends C{constructor(){super(...arguments),this.renderOp
|
|
|
84
84
|
display: inline-block;
|
|
85
85
|
width: 0;
|
|
86
86
|
}
|
|
87
|
-
`;const St=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores");class Nt extends wt{constructor(){super(...arguments),this[gt]=new Map,this[Ot]=new Map}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ct].get(t)}addStore(t,e){e=null!=e?e:t.name,this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ct].delete(e)}setupStore(t,e){this[Ct].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[St].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[St]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[St].has(t)&&this[St].get(t)(),this[St].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}var Et,Rt;gt=St,Ot=Ct,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Rt=null===(Et=window.safari)||void 0===Et?void 0:Et.pushNotification)||void 0===Rt||Rt.toString());const Mt={fontFamily:dt.external(pt.titleFont,"Design system")},$t=p`
|
|
87
|
+
`;const St=Symbol("internalStoresUnsubscribers"),Ct=Symbol("internalStores");class Nt extends wt{constructor(){super(...arguments),this[gt]=new Map,this[Ot]=new Map}getUnnamedStore(){if(this[Ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ct].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ct].get(t)}addStore(t,e){e=null!=e?e:function(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}(t)?t.name:void 0,this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ct].delete(e)}setupStore(t,e){this[Ct].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ct].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[St].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[St]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[St].has(t)&&this[St].get(t)(),this[St].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}var Et,Rt;gt=St,Ot=Ct,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Rt=null===(Et=window.safari)||void 0===Et?void 0:Et.pushNotification)||void 0===Rt||Rt.toString());const Mt={fontFamily:dt.external(pt.titleFont,"Design system")},$t=p`
|
|
88
88
|
.title {
|
|
89
89
|
font-family: ${Mt.fontFamily};
|
|
90
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-topic-title",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Title of a topic in integrated reader.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-reader-topic-context": "1.0.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-reader-topic-context": "1.0.8",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.0.8",
|
|
24
24
|
"@fluid-topics/public-api": "1.0.34",
|
|
25
25
|
"lit": "2.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "b55ea6fbe362f72c42f5c26f705fde8e39261001"
|
|
28
28
|
}
|