@fluid-topics/ft-reader-topic-content 1.3.19 → 1.3.21

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.
@@ -87,7 +87,7 @@
87
87
  <span class="ft-i18n">
88
88
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
89
89
  </span>
90
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ee.elementDefinitions={};ee.styles=Ir;ze([(0,Rt.redux)()],ee.prototype,"editorMode",void 0);ze([(0,wt.property)()],ee.prototype,"context",void 0);ze([(0,wt.property)()],ee.prototype,"key",void 0);ze([(0,Rt.jsonProperty)([])],ee.prototype,"args",void 0);ze([(0,wt.property)()],ee.prototype,"defaultMessage",void 0);var Lt=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?it:Le}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)})}};(0,Ei.customElement)("ft-i18n")(ee);var hr=Lt.build("designedReaderTopicContent");var G=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},M=class extends Qe{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r,n;return!this.map||!this.error&&!this.content&&((t=this.translationSourceLanguage)===null||t===void 0?void 0:t.code)==((r=this.translationDestinationLanguage)===null||r===void 0?void 0:r.code)?me.html`
90
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ee.elementDefinitions={};ee.styles=Ir;ze([(0,Rt.redux)()],ee.prototype,"editorMode",void 0);ze([(0,wt.property)()],ee.prototype,"context",void 0);ze([(0,wt.property)()],ee.prototype,"key",void 0);ze([(0,Rt.jsonProperty)([])],ee.prototype,"args",void 0);ze([(0,wt.property)()],ee.prototype,"defaultMessage",void 0);var Lt=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?it:Le}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i})}};(0,Ei.customElement)("ft-i18n")(ee);var hr=Lt.build("designedReaderTopicContent");var G=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},M=class extends Qe{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r,n;return!this.map||!this.error&&!this.content&&((t=this.translationSourceLanguage)===null||t===void 0?void 0:t.code)==((r=this.translationDestinationLanguage)===null||r===void 0?void 0:r.code)?me.html`
91
91
  <section class="topic-loading"></section>
92
92
  `:me.html`
93
93
  <style>
@@ -157,7 +157,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
157
157
  <span class="ft-i18n">
158
158
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
159
159
  </span>
160
- `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};me.elementDefinitions={};me.styles=yc;gr([oe()],me.prototype,"editorMode",void 0);gr([I()],me.prototype,"context",void 0);gr([I()],me.prototype,"key",void 0);gr([xe([])],me.prototype,"args",void 0);gr([I()],me.prototype,"defaultMessage",void 0);var co=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?ro:kt}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return s=>({context:this.name,key:i,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)})}};we("ft-i18n")(me);var ba=co.build("designedReaderTopicContent");var ae=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},q=class extends Xr{constructor(){super(...arguments),this.contentPreprocessor=e=>e,this.onContentAvailable=()=>null}render(){var e,o,n;return!this.map||!this.error&&!this.content&&((e=this.translationSourceLanguage)===null||e===void 0?void 0:e.code)==((o=this.translationDestinationLanguage)===null||o===void 0?void 0:o.code)?Q`
160
+ `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};me.elementDefinitions={};me.styles=yc;gr([oe()],me.prototype,"editorMode",void 0);gr([I()],me.prototype,"context",void 0);gr([I()],me.prototype,"key",void 0);gr([xe([])],me.prototype,"args",void 0);gr([I()],me.prototype,"defaultMessage",void 0);var co=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?ro:kt}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return s=>({context:this.name,key:i,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a})}};we("ft-i18n")(me);var ba=co.build("designedReaderTopicContent");var ae=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},q=class extends Xr{constructor(){super(...arguments),this.contentPreprocessor=e=>e,this.onContentAvailable=()=>null}render(){var e,o,n;return!this.map||!this.error&&!this.content&&((e=this.translationSourceLanguage)===null||e===void 0?void 0:e.code)==((o=this.translationDestinationLanguage)===null||o===void 0?void 0:o.code)?Q`
161
161
  <section class="topic-loading"></section>
162
162
  `:Q`
163
163
  <style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-content",
3
- "version": "1.3.19",
3
+ "version": "1.3.21",
4
4
  "description": "Content of a topic in integrated reader.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,14 +19,14 @@
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.3.19",
23
- "@fluid-topics/ft-i18n": "1.3.19",
24
- "@fluid-topics/ft-reader-context": "1.3.19",
25
- "@fluid-topics/ft-reader-topic-context": "1.3.19",
26
- "@fluid-topics/ft-tooltip": "1.3.19",
27
- "@fluid-topics/ft-wc-utils": "1.3.19",
22
+ "@fluid-topics/ft-chip": "1.3.21",
23
+ "@fluid-topics/ft-i18n": "1.3.21",
24
+ "@fluid-topics/ft-reader-context": "1.3.21",
25
+ "@fluid-topics/ft-reader-topic-context": "1.3.21",
26
+ "@fluid-topics/ft-tooltip": "1.3.21",
27
+ "@fluid-topics/ft-wc-utils": "1.3.21",
28
28
  "@fluid-topics/public-api": "1.0.102",
29
29
  "lit": "3.1.0"
30
30
  },
31
- "gitHead": "d3142bbeffbc47e550279b0d5d4e23ce72aaf514"
31
+ "gitHead": "fd30595cd89395cbcac48ca8146aecef2e9b8673"
32
32
  }