@fluid-topics/ft-copy-block 1.3.19 → 1.3.20
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.
|
@@ -1112,7 +1112,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1112
1112
|
<span class="ft-i18n">
|
|
1113
1113
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1114
1114
|
</span>
|
|
1115
|
-
`}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Le.elementDefinitions={};Le.styles=Fi;br([(0,fo.redux)()],Le.prototype,"editorMode",void 0);br([(0,po.property)()],Le.prototype,"context",void 0);br([(0,po.property)()],Le.prototype,"key",void 0);br([(0,fo.jsonProperty)([])],Le.prototype,"args",void 0);br([(0,po.property)()],Le.prototype,"defaultMessage",void 0);var ho=class e{static build(r){return new e(r)}static buildCustom(r){return new e(r,!0)}static fromGwt(r){return new e(r)}get service(){return this.custom?Fr:zt}constructor(r,o=!1){this.name=r,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let s=a;return c=>({context:this.name,key:s,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...s)=>this.service.resolveMessage(this.name,a,...s)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)})}};(0,Ac.customElement)("ft-i18n")(Le);var yo=ho.build("copyBlockComponent"),wc={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var id=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},Ot=class extends so{constructor(){super(),this.dispatchEvent(new mo.PreResizeEvent),this.addI18nContext(yo,wc)}render(){return xr.html`
|
|
1115
|
+
`}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Le.elementDefinitions={};Le.styles=Fi;br([(0,fo.redux)()],Le.prototype,"editorMode",void 0);br([(0,po.property)()],Le.prototype,"context",void 0);br([(0,po.property)()],Le.prototype,"key",void 0);br([(0,fo.jsonProperty)([])],Le.prototype,"args",void 0);br([(0,po.property)()],Le.prototype,"defaultMessage",void 0);var ho=class e{static build(r){return new e(r)}static buildCustom(r){return new e(r,!0)}static fromGwt(r){return new e(r)}get service(){return this.custom?Fr:zt}constructor(r,o=!1){this.name=r,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let s=a;return c=>({context:this.name,key:s,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...s)=>this.service.resolveMessage(this.name,a,...s)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a})}};(0,Ac.customElement)("ft-i18n")(Le);var yo=ho.build("copyBlockComponent"),wc={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var id=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},Ot=class extends so{constructor(){super(),this.dispatchEvent(new mo.PreResizeEvent),this.addI18nContext(yo,wc)}render(){return xr.html`
|
|
1116
1116
|
<div part="container">
|
|
1117
1117
|
${navigator.clipboard?xr.html`
|
|
1118
1118
|
<div part="button-container">
|
|
@@ -1179,7 +1179,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1179
1179
|
<span class="ft-i18n">
|
|
1180
1180
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1181
1181
|
</span>
|
|
1182
|
-
`}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:""})}};Ie.elementDefinitions={};Ie.styles=Rl;qr([vo()],Ie.prototype,"editorMode",void 0);qr([A()],Ie.prototype,"context",void 0);qr([A()],Ie.prototype,"key",void 0);qr([Me([])],Ie.prototype,"args",void 0);qr([A()],Ie.prototype,"defaultMessage",void 0);var jo=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?Uo:yr}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)})}};re("ft-i18n")(Ie);var Vo=jo.build("copyBlockComponent"),Ul={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var Dp=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},Pt=class extends zo{constructor(){super(),this.dispatchEvent(new Er),this.addI18nContext(Vo,Ul)}render(){return Z`
|
|
1182
|
+
`}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:""})}};Ie.elementDefinitions={};Ie.styles=Rl;qr([vo()],Ie.prototype,"editorMode",void 0);qr([A()],Ie.prototype,"context",void 0);qr([A()],Ie.prototype,"key",void 0);qr([Me([])],Ie.prototype,"args",void 0);qr([A()],Ie.prototype,"defaultMessage",void 0);var jo=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?Uo:yr}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})}};re("ft-i18n")(Ie);var Vo=jo.build("copyBlockComponent"),Ul={tooltipMessage:"Copy to clipboard",copySuccessMessage:"Copied!"};var Dp=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},Pt=class extends zo{constructor(){super(),this.dispatchEvent(new Er),this.addI18nContext(Vo,Ul)}render(){return Z`
|
|
1183
1183
|
<div part="container">
|
|
1184
1184
|
${navigator.clipboard?Z`
|
|
1185
1185
|
<div part="button-container">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-copy-block",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20",
|
|
4
4
|
"description": "Copy block",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-i18n": "1.3.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-i18n": "1.3.20",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.3.20",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "1bb0c50fc5a4fdb4f14d22b728ab719faddfc15e"
|
|
27
27
|
}
|