@fluid-topics/ft-reader-topic-title 1.0.46 → 1.0.47
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 Ct=Symbol("internalReduxEventsUnsubscribers"),Nt=Symbol("internalStoresUnsubscribers"),Et=Symbol("internalStores");class Rt extends wt{constructor(){super(...arguments),this[gt]=new Map,this[Ot]=new Map,this[St]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Et].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Et].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Et].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Mt(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[Et].delete(e)}setupStore(t,e){this[Et].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Et].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){var i;this[Nt].set(t,e.subscribe((()=>this.updateFromStores()))),Mt(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[Ct].push((()=>e.eventBus.removeEventListener(t.eventName,s)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){
|
|
87
|
+
`;const Ct=Symbol("internalReduxEventsUnsubscribers"),Nt=Symbol("internalStoresUnsubscribers"),Et=Symbol("internalStores");class Rt extends wt{constructor(){super(...arguments),this[gt]=new Map,this[Ot]=new Map,this[St]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Et].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Et].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Et].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Mt(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[Et].delete(e)}setupStore(t,e){this[Et].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Et].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[Nt].has(t.store):this[Nt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Nt].set(t,e.subscribe((()=>this.updateFromStores()))),Mt(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[Ct].push((()=>e.eventBus.removeEventListener(t.eventName,s)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Nt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ct].forEach((t=>t())),this[Ct]=[]}unsubscribeFromStore(t){this[Nt].has(t)&&this[Nt].get(t)(),this[Nt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Mt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var $t,kt;gt=Nt,Ot=Et,St=Ct,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.47",
|
|
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.47",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.0.47",
|
|
24
24
|
"@fluid-topics/public-api": "1.0.39",
|
|
25
25
|
"lit": "2.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "6313471d9f5ceea14a13311e9a6cc24b6fa6f044"
|
|
28
28
|
}
|