From 7cffb2bc950e8083fc66860233c9d299528ddeff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Feb 2025 21:28:35 +0000 Subject: [PATCH 1/2] Chore(deps): Bump dompurify from 3.2.3 to 3.2.4 Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.2.3 to 3.2.4. - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/3.2.3...3.2.4) --- updated-dependencies: - dependency-name: dompurify dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e5a8ee517..87bcb02d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6699,9 +6699,9 @@ } }, "node_modules/dompurify": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.3.tgz", - "integrity": "sha512-U1U5Hzc2MO0oW3DF+G9qYN0aT7atAou4AgI0XjWz061nyBPbdxkfdhfy5uMgGn6+oLFCfn44ZGbdDqCzVmlOWA==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.4.tgz", + "integrity": "sha512-ysFSFEDVduQpyhzAob/kkuJjf5zWkZD8/A9ywSp1byueyuCfHamrCBa14/Oc2iiB0e51B+NpxSl5gmzn+Ms/mg==", "license": "(MPL-2.0 OR Apache-2.0)", "optionalDependencies": { "@types/trusted-types": "^2.0.7" From 74493584084e5c5b867dc17948df83d8e47c3c39 Mon Sep 17 00:00:00 2001 From: nextcloud-command Date: Tue, 25 Mar 2025 19:29:03 +0000 Subject: [PATCH 2/2] chore(assets): Recompile assets Signed-off-by: nextcloud-command --- ....mjs => NcActionButton-TIekR9kJ.chunk.mjs} | 2 +- ...NcActionButton-TIekR9kJ.chunk.mjs.license} | 0 ... => NcActionButton-TIekR9kJ.chunk.mjs.map} | 2 +- ...tionButton-TIekR9kJ.chunk.mjs.map.license} | 0 ...nk.mjs => NcActionLink-C2aM7_ek.chunk.mjs} | 2 +- ...> NcActionLink-C2aM7_ek.chunk.mjs.license} | 0 ...ap => NcActionLink-C2aM7_ek.chunk.mjs.map} | 2 +- ...ActionLink-C2aM7_ek.chunk.mjs.map.license} | 0 ...LGi.chunk.mjs => index-DM_OAy3k.chunk.mjs} | 2 +- ...cense => index-DM_OAy3k.chunk.mjs.license} | 0 ...k.mjs.map => index-DM_OAy3k.chunk.mjs.map} | 2 +- ...e => index-DM_OAy3k.chunk.mjs.map.license} | 0 ...la.chunk.mjs => logger-BMk3prQm.chunk.mjs} | 32 +++++++++---------- ...ense => logger-BMk3prQm.chunk.mjs.license} | 2 +- js/logger-BMk3prQm.chunk.mjs.map | 1 + ... => logger-BMk3prQm.chunk.mjs.map.license} | 2 +- js/logger-ZKHhbzla.chunk.mjs.map | 1 - js/viewer-init.mjs | 6 ++-- js/viewer-main.mjs | 6 ++-- 19 files changed, 31 insertions(+), 31 deletions(-) rename js/{NcActionButton-BdGYPJIh.chunk.mjs => NcActionButton-TIekR9kJ.chunk.mjs} (98%) rename js/{NcActionButton-BdGYPJIh.chunk.mjs.license => NcActionButton-TIekR9kJ.chunk.mjs.license} (100%) rename js/{NcActionButton-BdGYPJIh.chunk.mjs.map => NcActionButton-TIekR9kJ.chunk.mjs.map} (99%) rename js/{NcActionButton-BdGYPJIh.chunk.mjs.map.license => NcActionButton-TIekR9kJ.chunk.mjs.map.license} (100%) rename js/{NcActionLink-CWmkvDe8.chunk.mjs => NcActionLink-C2aM7_ek.chunk.mjs} (96%) rename js/{NcActionLink-CWmkvDe8.chunk.mjs.license => NcActionLink-C2aM7_ek.chunk.mjs.license} (100%) rename js/{NcActionLink-CWmkvDe8.chunk.mjs.map => NcActionLink-C2aM7_ek.chunk.mjs.map} (98%) rename js/{NcActionLink-CWmkvDe8.chunk.mjs.map.license => NcActionLink-C2aM7_ek.chunk.mjs.map.license} (100%) rename js/{index-D85Y4LGi.chunk.mjs => index-DM_OAy3k.chunk.mjs} (99%) rename js/{index-D85Y4LGi.chunk.mjs.license => index-DM_OAy3k.chunk.mjs.license} (100%) rename js/{index-D85Y4LGi.chunk.mjs.map => index-DM_OAy3k.chunk.mjs.map} (99%) rename js/{index-D85Y4LGi.chunk.mjs.map.license => index-DM_OAy3k.chunk.mjs.map.license} (100%) rename js/{logger-ZKHhbzla.chunk.mjs => logger-BMk3prQm.chunk.mjs} (85%) rename js/{logger-ZKHhbzla.chunk.mjs.license => logger-BMk3prQm.chunk.mjs.license} (99%) create mode 100644 js/logger-BMk3prQm.chunk.mjs.map rename js/{logger-ZKHhbzla.chunk.mjs.map.license => logger-BMk3prQm.chunk.mjs.map.license} (99%) delete mode 100644 js/logger-ZKHhbzla.chunk.mjs.map diff --git a/js/NcActionButton-BdGYPJIh.chunk.mjs b/js/NcActionButton-TIekR9kJ.chunk.mjs similarity index 98% rename from js/NcActionButton-BdGYPJIh.chunk.mjs rename to js/NcActionButton-TIekR9kJ.chunk.mjs index 4b74eacd5..a989acb5e 100644 --- a/js/NcActionButton-BdGYPJIh.chunk.mjs +++ b/js/NcActionButton-TIekR9kJ.chunk.mjs @@ -1 +1 @@ -import{n as i,bk as n,bl as a,bm as o}from"./logger-ZKHhbzla.chunk.mjs";import{A as l}from"./actionText-fFcUPi2g-BuX-Hse9.chunk.mjs";const c={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var u=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(s){return t.$emit("click",s)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},r=[],d=i(c,u,r,!1,null,null);const h=d.exports,p={name:"NcActionButton",components:{CheckIcon:h,ChevronRightIcon:n,ChevronLeftIcon:a},setup(){return{isRTL:o()}},mixins:[l],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{ariaHidden:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>["button","checkbox","radio","reset","submit"].includes(t)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const t={};return this.isInSemanticMenu?(t.role="menuitem",this.type==="radio"?(t.role="menuitemradio",t["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(t.role="menuitemcheckbox",t["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(t["aria-pressed"]=this.modelValue?"true":"false"),t}},methods:{handleClick(t){this.onClick(t),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}};var m=function(){var t=this,e=t._self._c;return e("li",{staticClass:"action",class:{"action--disabled":t.disabled},attrs:{role:t.isInSemanticMenu&&"presentation"}},[e("button",t._b({class:["action-button button-vue",{"action-button--active":t.isChecked,focusable:t.isFocusable}],attrs:{"aria-label":t.ariaLabel,disabled:t.disabled,title:t.title,type:t.nativeType},on:{click:t.handleClick}},"button",t.buttonAttributes,!1),[t._t("icon",function(){return[e("span",{staticClass:"action-button__icon",class:[t.isIconUrl?"action-button__icon--url":t.icon],style:{backgroundImage:t.isIconUrl?`url(${t.icon})`:null},attrs:{"aria-hidden":"true"}})]}),t.name?e("span",{staticClass:"action-button__longtext-wrapper"},[e("strong",{staticClass:"action-button__name"},[t._v(" "+t._s(t.name)+" ")]),e("br"),e("span",{staticClass:"action-button__longtext",domProps:{textContent:t._s(t.text)}})]):t.isLongText?e("span",{staticClass:"action-button__longtext",domProps:{textContent:t._s(t.text)}}):e("span",{staticClass:"action-button__text"},[t._v(t._s(t.text))]),t.isMenu&&!t.isRTL?e("ChevronRightIcon",{staticClass:"action-button__menu-icon",attrs:{size:20}}):t.isMenu&&t.isRTL?e("ChevronLeftIcon",{staticClass:"action-button__menu-icon",attrs:{size:20}}):t.isChecked===!0?e("CheckIcon",{staticClass:"action-button__pressed-icon",attrs:{size:20}}):t.isChecked===!1?e("span",{staticClass:"action-button__pressed-icon material-design-icon"}):t._e(),t._e()],2)])},b=[],_=i(p,m,b,!1,null,"903e8d3b");const C=_.exports,v=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"}));export{h as C,C as N,v as a}; +import{n as i,bk as n,bl as a,bm as o}from"./logger-BMk3prQm.chunk.mjs";import{A as l}from"./actionText-fFcUPi2g-BuX-Hse9.chunk.mjs";const c={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var u=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(s){return t.$emit("click",s)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},r=[],d=i(c,u,r,!1,null,null);const h=d.exports,p={name:"NcActionButton",components:{CheckIcon:h,ChevronRightIcon:n,ChevronLeftIcon:a},setup(){return{isRTL:o()}},mixins:[l],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{ariaHidden:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>["button","checkbox","radio","reset","submit"].includes(t)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const t={};return this.isInSemanticMenu?(t.role="menuitem",this.type==="radio"?(t.role="menuitemradio",t["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(t.role="menuitemcheckbox",t["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(t["aria-pressed"]=this.modelValue?"true":"false"),t}},methods:{handleClick(t){this.onClick(t),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}};var m=function(){var t=this,e=t._self._c;return e("li",{staticClass:"action",class:{"action--disabled":t.disabled},attrs:{role:t.isInSemanticMenu&&"presentation"}},[e("button",t._b({class:["action-button button-vue",{"action-button--active":t.isChecked,focusable:t.isFocusable}],attrs:{"aria-label":t.ariaLabel,disabled:t.disabled,title:t.title,type:t.nativeType},on:{click:t.handleClick}},"button",t.buttonAttributes,!1),[t._t("icon",function(){return[e("span",{staticClass:"action-button__icon",class:[t.isIconUrl?"action-button__icon--url":t.icon],style:{backgroundImage:t.isIconUrl?`url(${t.icon})`:null},attrs:{"aria-hidden":"true"}})]}),t.name?e("span",{staticClass:"action-button__longtext-wrapper"},[e("strong",{staticClass:"action-button__name"},[t._v(" "+t._s(t.name)+" ")]),e("br"),e("span",{staticClass:"action-button__longtext",domProps:{textContent:t._s(t.text)}})]):t.isLongText?e("span",{staticClass:"action-button__longtext",domProps:{textContent:t._s(t.text)}}):e("span",{staticClass:"action-button__text"},[t._v(t._s(t.text))]),t.isMenu&&!t.isRTL?e("ChevronRightIcon",{staticClass:"action-button__menu-icon",attrs:{size:20}}):t.isMenu&&t.isRTL?e("ChevronLeftIcon",{staticClass:"action-button__menu-icon",attrs:{size:20}}):t.isChecked===!0?e("CheckIcon",{staticClass:"action-button__pressed-icon",attrs:{size:20}}):t.isChecked===!1?e("span",{staticClass:"action-button__pressed-icon material-design-icon"}):t._e(),t._e()],2)])},b=[],_=i(p,m,b,!1,null,"903e8d3b");const C=_.exports,v=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"}));export{h as C,C as N,v as a}; diff --git a/js/NcActionButton-BdGYPJIh.chunk.mjs.license b/js/NcActionButton-TIekR9kJ.chunk.mjs.license similarity index 100% rename from js/NcActionButton-BdGYPJIh.chunk.mjs.license rename to js/NcActionButton-TIekR9kJ.chunk.mjs.license diff --git a/js/NcActionButton-BdGYPJIh.chunk.mjs.map b/js/NcActionButton-TIekR9kJ.chunk.mjs.map similarity index 99% rename from js/NcActionButton-BdGYPJIh.chunk.mjs.map rename to js/NcActionButton-TIekR9kJ.chunk.mjs.map index 8ca132412..87556c62e 100644 --- a/js/NcActionButton-BdGYPJIh.chunk.mjs.map +++ b/js/NcActionButton-TIekR9kJ.chunk.mjs.map @@ -1 +1 @@ -{"version":3,"file":"NcActionButton-BdGYPJIh.chunk.mjs","sources":["../node_modules/@nextcloud/vue/dist/chunks/Check-BkThHPH7.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActionButton-82_1gdid.mjs"],"sourcesContent":["import { n as normalizeComponent } from \"./_plugin-vue2_normalizer-DU4iP6Vu.mjs\";\nconst _sfc_main = {\n name: \"CheckIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nvar _sfc_render = function render() {\n var _vm = this, _c = _vm._self._c;\n return _c(\"span\", _vm._b({ staticClass: \"material-design-icon check-icon\", attrs: { \"aria-hidden\": _vm.title ? null : \"true\", \"aria-label\": _vm.title, \"role\": \"img\" }, on: { \"click\": function($event) {\n return _vm.$emit(\"click\", $event);\n } } }, \"span\", _vm.$attrs, false), [_c(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { \"fill\": _vm.fillColor, \"width\": _vm.size, \"height\": _vm.size, \"viewBox\": \"0 0 24 24\" } }, [_c(\"path\", { attrs: { \"d\": \"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z\" } }, [_vm.title ? _c(\"title\", [_vm._v(_vm._s(_vm.title))]) : _vm._e()])])]);\n};\nvar _sfc_staticRenderFns = [];\nvar __component__ = /* @__PURE__ */ normalizeComponent(\n _sfc_main,\n _sfc_render,\n _sfc_staticRenderFns,\n false,\n null,\n null\n);\nconst Check = __component__.exports;\nexport {\n Check as C\n};\n","import '../assets/NcActionButton-BT4157Cp.css';\nimport { C as Check } from \"./Check-BkThHPH7.mjs\";\nimport { C as ChevronRight } from \"./ChevronRight-BUv-PtHh.mjs\";\nimport { C as ChevronLeft } from \"./ChevronLeft-BK4j9oVH.mjs\";\nimport { A as ActionTextMixin } from \"./actionText-fFcUPi2g.mjs\";\nimport { isRTL } from \"@nextcloud/l10n\";\nimport { n as normalizeComponent } from \"./_plugin-vue2_normalizer-DU4iP6Vu.mjs\";\nconst _sfc_main = {\n name: \"NcActionButton\",\n components: {\n CheckIcon: Check,\n ChevronRightIcon: ChevronRight,\n ChevronLeftIcon: ChevronLeft\n },\n setup() {\n return {\n isRTL: isRTL()\n };\n },\n mixins: [ActionTextMixin],\n inject: {\n isInSemanticMenu: {\n from: \"NcActions:isSemanticMenu\",\n default: false\n }\n },\n props: {\n /**\n * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n * otherwise root element will inherit incorrect aria-hidden.\n */\n ariaHidden: {\n type: Boolean,\n default: null\n },\n /**\n * disabled state of the action button\n */\n disabled: {\n type: Boolean,\n default: false\n },\n /**\n * If this is a menu, a chevron icon will\n * be added at the end of the line\n */\n isMenu: {\n type: Boolean,\n default: false\n },\n /**\n * The button's behavior, by default the button acts like a normal button with optional toggle button behavior if `modelValue` is `true` or `false`.\n * But you can also set to checkbox button behavior with tri-state or radio button like behavior.\n * This extends the native HTML button type attribute.\n */\n type: {\n type: String,\n default: \"button\",\n validator: (behavior) => [\"button\", \"checkbox\", \"radio\", \"reset\", \"submit\"].includes(behavior)\n },\n /**\n * The buttons state if `type` is 'checkbox' or 'radio' (meaning if it is pressed / selected).\n * For checkbox and toggle button behavior - boolean value.\n * For radio button behavior - could be a boolean checked or a string with the value of the button.\n * Note: Unlike native radio buttons, NcActionButton are not grouped by name, so you need to connect them by bind correct modelValue.\n *\n * **This is not availabe for `type='submit'` or `type='reset'`**\n *\n * If using `type='checkbox'` a `model-value` of `true` means checked, `false` means unchecked and `null` means indeterminate (tri-state)\n * For `type='radio'` `null` is equal to `false`\n */\n modelValue: {\n type: [Boolean, String],\n default: null\n },\n /**\n * The value used for the `modelValue` when this component is used with radio behavior\n * Similar to the `value` attribute of ``\n */\n value: {\n type: String,\n default: null\n }\n },\n computed: {\n /**\n * determines if the action is focusable\n *\n * @return {boolean} is the action focusable ?\n */\n isFocusable() {\n return !this.disabled;\n },\n /**\n * The current \"checked\" or \"pressed\" state for the model behavior\n */\n isChecked() {\n if (this.type === \"radio\" && typeof this.modelValue !== \"boolean\") {\n return this.modelValue === this.value;\n }\n return this.modelValue;\n },\n /**\n * The native HTML type to set on the button\n */\n nativeType() {\n if (this.type === \"submit\" || this.type === \"reset\") {\n return this.type;\n }\n return \"button\";\n },\n /**\n * HTML attributes to bind to the