@fluid-topics/ft-reader-topic-title 1.0.54 → 1.0.56
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 Nt=Symbol("internalReduxEventsUnsubscribers"),Et=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores");class Mt extends wt{constructor(){super(...arguments),this[Ot]=new Map,this[St]=new Map,this[Ct]=[]}
|
|
87
|
+
`;const Nt=Symbol("internalReduxEventsUnsubscribers"),Et=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores");class Mt extends wt{constructor(){super(...arguments),this[Ot]=new Map,this[St]=new Map,this[Ct]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Rt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Rt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:gt(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Rt].delete(e)}setupStore(t,e){this[Rt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Rt].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&&(t.store?this[Et].has(t.store):this[Et].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Et].set(t,e.subscribe((()=>this.updateFromStores()))),gt(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const s=t=>this[i](t);e.eventBus.addEventListener(t.eventName,s),this[Nt].push((()=>e.eventBus.removeEventListener(t.eventName,s)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Et].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Nt].forEach((t=>t())),this[Nt]=[]}unsubscribeFromStore(t){this[Et].has(t)&&this[Et].get(t)(),this[Et].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Ot=Et,St=Rt,Ct=Nt,window.ftReduxStores||(window.ftReduxStores={});var $t,kt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(kt=null===($t=window.safari)||void 0===$t?void 0:$t.pushNotification)||void 0===kt||kt.toString());const Ut={fontFamily:dt.external(pt.titleFont,"Design system")},Ft=p`
|
|
88
88
|
.title {
|
|
89
89
|
font-family: ${Ut.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.56",
|
|
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.
|
|
24
|
-
"@fluid-topics/public-api": "1.0.
|
|
22
|
+
"@fluid-topics/ft-reader-topic-context": "1.0.56",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.0.56",
|
|
24
|
+
"@fluid-topics/public-api": "1.0.45",
|
|
25
25
|
"lit": "2.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "da00d6ea6bfc74fef8c6687f383355e35a26289b"
|
|
28
28
|
}
|