@fluid-topics/ft-reader-topic-content 1.1.31 → 1.1.33

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.
@@ -81,7 +81,7 @@
81
81
  <span class="ft-i18n">
82
82
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
83
83
  </span>
84
- `:this.editorMode?"Select a context and a label key.":i.nothing}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}H.elementDefinitions={},H.styles=I,Z([e.redux()],H.prototype,"editorMode",void 0),Z([s.property()],H.prototype,"context",void 0),Z([s.property()],H.prototype,"key",void 0),Z([e.jsonProperty([])],H.prototype,"args",void 0),Z([s.property()],H.prototype,"defaultMessage",void 0);class J{static build(t){return new J(t)}static fromGwt(t){return new J(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>L.resolveMessage(this.name,e,...t)})}}e.customElement("ft-i18n")(H);const V=J.build("designedReaderTopicContent");var X=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Y extends p{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,e;return this.map&&(this.error||this.content)?i.html`
84
+ `:this.editorMode?"Select a context and a label key.":i.nothing}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}H.elementDefinitions={},H.styles=I,Z([e.redux()],H.prototype,"editorMode",void 0),Z([s.property()],H.prototype,"context",void 0),Z([s.property()],H.prototype,"key",void 0),Z([e.jsonProperty([])],H.prototype,"args",void 0),Z([s.property()],H.prototype,"defaultMessage",void 0);class J{static build(t){return new J(t)}static fromGwt(t){return new J(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>L.resolveMessage(this.name,e,...t)})}}e.customElement("ft-i18n")(H);const V=J.build("designedReaderTopicContent");var X=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Y extends p{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,e;return this.map&&(this.error||this.content)?i.html`
85
85
  <style>
86
86
  @import "${null===(t=this.map)||void 0===t?void 0:t.contentStyles.topicStylesheetUrl}";
87
87
  </style>
@@ -205,7 +205,7 @@ let be=class extends $t{constructor(){super(...arguments),this.renderOptions={ho
205
205
  <span class="ft-i18n">
206
206
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
207
207
  </span>
208
- `:this.editorMode?"Select a context and a label key.":ie}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Ai.elementDefinitions={},Ai.styles=ui,Ki([Pe()],Ai.prototype,"editorMode",void 0),Ki([U()],Ai.prototype,"context",void 0),Ki([U()],Ai.prototype,"key",void 0),Ki([A([])],Ai.prototype,"args",void 0),Ki([U()],Ai.prototype,"defaultMessage",void 0);class ji{static build(t){return new ji(t)}static fromGwt(t){return new ji(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>vi.resolveMessage(this.name,e,...t)})}}K("ft-i18n")(Ai);const $i=ji.build("designedReaderTopicContent");var Mi=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Zi extends Yr{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,e;return this.map&&(this.error||this.content)?oe`
208
+ `:this.editorMode?"Select a context and a label key.":ie}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Ai.elementDefinitions={},Ai.styles=ui,Ki([Pe()],Ai.prototype,"editorMode",void 0),Ki([U()],Ai.prototype,"context",void 0),Ki([U()],Ai.prototype,"key",void 0),Ki([A([])],Ai.prototype,"args",void 0),Ki([U()],Ai.prototype,"defaultMessage",void 0);class ji{static build(t){return new ji(t)}static fromGwt(t){return new ji(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>vi.resolveMessage(this.name,e,...t)})}}K("ft-i18n")(Ai);const $i=ji.build("designedReaderTopicContent");var Mi=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Zi extends Yr{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,e;return this.map&&(this.error||this.content)?oe`
209
209
  <style>
210
210
  @import "${null===(t=this.map)||void 0===t?void 0:t.contentStyles.topicStylesheetUrl}";
211
211
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-content",
3
- "version": "1.1.31",
3
+ "version": "1.1.33",
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.1.31",
23
- "@fluid-topics/ft-i18n": "1.1.31",
24
- "@fluid-topics/ft-reader-context": "1.1.31",
25
- "@fluid-topics/ft-reader-topic-context": "1.1.31",
26
- "@fluid-topics/ft-tooltip": "1.1.31",
27
- "@fluid-topics/ft-wc-utils": "1.1.31",
22
+ "@fluid-topics/ft-chip": "1.1.33",
23
+ "@fluid-topics/ft-i18n": "1.1.33",
24
+ "@fluid-topics/ft-reader-context": "1.1.33",
25
+ "@fluid-topics/ft-reader-topic-context": "1.1.33",
26
+ "@fluid-topics/ft-tooltip": "1.1.33",
27
+ "@fluid-topics/ft-wc-utils": "1.1.33",
28
28
  "@fluid-topics/public-api": "1.0.58",
29
29
  "lit": "3.1.0"
30
30
  },
31
- "gitHead": "e9db5f3c700c9d25c85c211c8875686bb989da96"
31
+ "gitHead": "25cbbfada37d7c107ea0a7742ff3230c0dc74b3b"
32
32
  }