Merge pull request #58921 from nextcloud/dependabot/npm_and_yarn/nextcloud/password-confirmation-6.0.3

chore(deps): Bump @nextcloud/password-confirmation from 6.0.2 to 6.0.3
This commit is contained in:
github-actions[bot] 2026-03-15 20:53:37 +00:00 committed by GitHub
commit 7f6f29ea32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 29 additions and 29 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{c as u}from"./index-BCebL___.chunk.mjs";import{g as y,e as c}from"./index-Bndk0DrU.chunk.mjs";import{t as o}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{c as f}from"./index-DxnK_Coe.chunk.mjs";import{b as h}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import{g as b}from"./dav-CL9HtPMq.chunk.mjs";const r=y().setApp("systemtags").detectUser().build(),V={userVisible:!0,userAssignable:!0,canAssign:!0},x=Object.freeze({"display-name":"displayName","user-visible":"userVisible","user-assignable":"userAssignable","can-assign":"canAssign"});function p(t){return t.map(({props:s})=>Object.fromEntries(Object.entries(s).map(([e,a])=>(e=x[e]??e,a=e==="displayName"?String(a):a,[e,a]))))}function w(t){const s=t.indexOf("?");s>0&&(t=t.substring(0,s));const e=t.split("/");let a;do a=e[e.length-1],e.pop();while(!a&&e.length>0);return Number(a)}function v(t){if("name"in t&&!("displayName"in t))return{...t};const s={...t};return s.name=s.displayName,delete s.displayName,s}function N(t){const s=t.attributes?.["system-tags"]?.["system-tag"];return s===void 0?[]:[s].flat().map(e=>typeof e=="string"?e:e.text)}function P(t,s){t.attributes["system-tags"]={"system-tag":s},c("files:node:updated",t)}const n=b(),l=`<?xml version="1.0"?>
import{c as u}from"./index-BCebL___.chunk.mjs";import{g as y,e as c}from"./index-Bndk0DrU.chunk.mjs";import{t as o}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{c as f}from"./index-B8CmRwk1.chunk.mjs";import{b as h}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import{g as b}from"./dav-CL9HtPMq.chunk.mjs";const r=y().setApp("systemtags").detectUser().build(),V={userVisible:!0,userAssignable:!0,canAssign:!0},x=Object.freeze({"display-name":"displayName","user-visible":"userVisible","user-assignable":"userAssignable","can-assign":"canAssign"});function p(t){return t.map(({props:s})=>Object.fromEntries(Object.entries(s).map(([e,a])=>(e=x[e]??e,a=e==="displayName"?String(a):a,[e,a]))))}function w(t){const s=t.indexOf("?");s>0&&(t=t.substring(0,s));const e=t.split("/");let a;do a=e[e.length-1],e.pop();while(!a&&e.length>0);return Number(a)}function v(t){if("name"in t&&!("displayName"in t))return{...t};const s={...t};return s.name=s.displayName,delete s.displayName,s}function N(t){const s=t.attributes?.["system-tags"]?.["system-tag"];return s===void 0?[]:[s].flat().map(e=>typeof e=="string"?e:e.text)}function P(t,s){t.attributes["system-tags"]={"system-tag":s},c("files:node:updated",t)}const n=b(),l=`<?xml version="1.0"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<oc:id />
@ -40,4 +40,4 @@ import{c as u}from"./index-BCebL___.chunk.mjs";import{g as y,e as c}from"./index
</d:prop>
</d:remove>
</d:propertyupdate>`),await n.customRequest(i,{method:"PROPPATCH",data:d,headers:{"if-match":a}})}async function H(t){const s=t?"1":"0",e=h("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"systemtags",key:"restrict_creation_to_admin"});await f();const{data:a}=await u.post(e,{value:s});return a}export{_ as a,H as b,R as c,V as d,N as e,D as f,q as g,P as h,C as i,r as l,k as s,T as u};
//# sourceMappingURL=api-CQ0gM7Uk.chunk.mjs.map
//# sourceMappingURL=api-DntTCVXB.chunk.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index-B8CmRwk1.chunk.mjs vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -3,5 +3,5 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/password-confirmation
- version: 6.0.2
- version: 6.0.3
- license: MIT

1
dist/index-B8CmRwk1.chunk.mjs.map vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -3,5 +3,5 @@ SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
This file is generated from multiple sources. Included packages:
- @nextcloud/password-confirmation
- version: 6.0.2
- version: 6.0.3
- license: MIT

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
import{i as p,o as u,g as b,w as i,h as l,j as m,t as d,k as f}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";import{c as w}from"./index-BCebL___.chunk.mjs";import{a as g}from"./index-C1xmmKTZ-CGpLs37u.chunk.mjs";import{a as S,l as c}from"./index-Ma7sfat2.chunk.mjs";import{t as h}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{c as I}from"./index-DxnK_Coe.chunk.mjs";import{b as k}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import{N as M}from"./NcCheckboxRadioSwitch-BMsPx74L-fxtySBP5.chunk.mjs";import{N}from"./ContentCopy-DcIrS3JP.chunk.mjs";import{g as R}from"./index-Bndk0DrU.chunk.mjs";import"./index-sH3U_332.chunk.mjs";import"./index-CKn3f84a.chunk.mjs";import"./NcModal-DHryP_87-Cy2jN0l1.chunk.mjs";import"./autolink-U5pBzLgI-Bpd-_ISJ.chunk.mjs";import"./Web-BMpaLM07.chunk.mjs";import"./mdi-Cgau7A4L.chunk.mjs";import"./NcPasswordField-uaMO2pdt-Y_frnjqT.chunk.mjs";import"./NcInputField-o5OFv3z6-CZbWqg6Y.chunk.mjs";const T=R().detectLogLevel().setApp("sharebymail").build(),V={name:"AdminSettings",components:{NcCheckboxRadioSwitch:M,NcSettingsSection:N},setup(){return{t:h}},data(){return{sendPasswordMail:c("sharebymail","sendPasswordMail"),replyToInitiator:c("sharebymail","replyToInitiator")}},watch:{sendPasswordMail(e){this.update("sendpasswordmail",e)},replyToInitiator(e){this.update("replyToInitiator",e)}},methods:{async update(e,a){await I();const s=k("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"sharebymail",key:e}),o=a?"yes":"no";try{const{data:t}=await w.post(s,{value:o});this.handleResponse({status:t.ocs?.meta?.status})}catch(t){this.handleResponse({errorMessage:h("sharebymail","Unable to update share by mail config"),error:t})}},async handleResponse({status:e,errorMessage:a,error:s}){e!=="ok"&&(g(a),T.error(a,{error:s}))}}};function v(e,a,s,o,t,x){const n=p("NcCheckboxRadioSwitch"),y=p("NcSettingsSection");return u(),b(y,{name:o.t("sharebymail","Share by mail"),description:o.t("sharebymail","Allows people to share a personalized link to a file or folder by putting in an email address.")},{default:i(()=>[l(n,{modelValue:t.sendPasswordMail,"onUpdate:modelValue":a[0]||(a[0]=r=>t.sendPasswordMail=r),type:"switch"},{default:i(()=>[m(d(o.t("sharebymail","Send password by mail")),1)]),_:1},8,["modelValue"]),l(n,{modelValue:t.replyToInitiator,"onUpdate:modelValue":a[1]||(a[1]=r=>t.replyToInitiator=r),type:"switch"},{default:i(()=>[m(d(o.t("sharebymail","Reply to initiator")),1)]),_:1},8,["modelValue"])]),_:1},8,["name","description"])}const P=S(V,[["render",v]]),_=f(P);_.mount("#vue-admin-sharebymail");
import{i as p,o as u,g as b,w as i,h as l,j as m,t as d,k as f}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";import{c as w}from"./index-BCebL___.chunk.mjs";import{a as g}from"./index-C1xmmKTZ-CGpLs37u.chunk.mjs";import{a as S,l as c}from"./index-Ma7sfat2.chunk.mjs";import{t as h}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{c as I}from"./index-B8CmRwk1.chunk.mjs";import{b as k}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import{N as M}from"./NcCheckboxRadioSwitch-BMsPx74L-fxtySBP5.chunk.mjs";import{N}from"./ContentCopy-DcIrS3JP.chunk.mjs";import{g as R}from"./index-Bndk0DrU.chunk.mjs";import"./index-sH3U_332.chunk.mjs";import"./index-CKn3f84a.chunk.mjs";import"./NcModal-DHryP_87-Cy2jN0l1.chunk.mjs";import"./autolink-U5pBzLgI-Bpd-_ISJ.chunk.mjs";import"./Web-BMpaLM07.chunk.mjs";import"./mdi-Cgau7A4L.chunk.mjs";import"./NcPasswordField-uaMO2pdt-Y_frnjqT.chunk.mjs";import"./NcInputField-o5OFv3z6-CZbWqg6Y.chunk.mjs";const T=R().detectLogLevel().setApp("sharebymail").build(),V={name:"AdminSettings",components:{NcCheckboxRadioSwitch:M,NcSettingsSection:N},setup(){return{t:h}},data(){return{sendPasswordMail:c("sharebymail","sendPasswordMail"),replyToInitiator:c("sharebymail","replyToInitiator")}},watch:{sendPasswordMail(e){this.update("sendpasswordmail",e)},replyToInitiator(e){this.update("replyToInitiator",e)}},methods:{async update(e,a){await I();const s=k("/apps/provisioning_api/api/v1/config/apps/{appId}/{key}",{appId:"sharebymail",key:e}),o=a?"yes":"no";try{const{data:t}=await w.post(s,{value:o});this.handleResponse({status:t.ocs?.meta?.status})}catch(t){this.handleResponse({errorMessage:h("sharebymail","Unable to update share by mail config"),error:t})}},async handleResponse({status:e,errorMessage:a,error:s}){e!=="ok"&&(g(a),T.error(a,{error:s}))}}};function v(e,a,s,o,t,x){const n=p("NcCheckboxRadioSwitch"),y=p("NcSettingsSection");return u(),b(y,{name:o.t("sharebymail","Share by mail"),description:o.t("sharebymail","Allows people to share a personalized link to a file or folder by putting in an email address.")},{default:i(()=>[l(n,{modelValue:t.sendPasswordMail,"onUpdate:modelValue":a[0]||(a[0]=r=>t.sendPasswordMail=r),type:"switch"},{default:i(()=>[m(d(o.t("sharebymail","Send password by mail")),1)]),_:1},8,["modelValue"]),l(n,{modelValue:t.replyToInitiator,"onUpdate:modelValue":a[1]||(a[1]=r=>t.replyToInitiator=r),type:"switch"},{default:i(()=>[m(d(o.t("sharebymail","Reply to initiator")),1)]),_:1},8,["modelValue"])]),_:1},8,["name","description"])}const P=S(V,[["render",v]]),_=f(P);_.mount("#vue-admin-sharebymail");
//# sourceMappingURL=sharebymail-admin-settings.mjs.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,3 +1,3 @@
import{d as U,c as A}from"./pinia-Bl16uMvU.chunk.mjs";import{r as _,f as I,o as n,c as l,u as a,g as x,w as k,j as p,t as d,e as E,F as m,b as f,C as M,p as w,h as y,z as N,k as R}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";import{g as $,l as j,a as z}from"./index-Ma7sfat2.chunk.mjs";import{a as P}from"./index-C1xmmKTZ-CGpLs37u.chunk.mjs";import{t as o}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{c as B}from"./index-DxnK_Coe.chunk.mjs";import{N as g}from"./autolink-U5pBzLgI-Bpd-_ISJ.chunk.mjs";import{N as F}from"./Web-BMpaLM07.chunk.mjs";import{g as G}from"./index-Bndk0DrU.chunk.mjs";import{c as H}from"./index-BCebL___.chunk.mjs";import{g as q}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import"./index-CKn3f84a.chunk.mjs";import"./NcModal-DHryP_87-Cy2jN0l1.chunk.mjs";import"./mdi-Cgau7A4L.chunk.mjs";import"./NcPasswordField-uaMO2pdt-Y_frnjqT.chunk.mjs";import"./NcInputField-o5OFv3z6-CZbWqg6Y.chunk.mjs";import"./index-sH3U_332.chunk.mjs";const D=G().detectLogLevel().setApp("twofactor_backupcodes").build();function J(r){const c=$().theming.name||"Nextcloud",e=window.open("",o("twofactor_backupcodes","{name} backup codes",{name:c}));if(!e)throw P(o("twofactor_backupcodes","Unable to open a new tab for printing")),new Error("Unable to open a new tab for printing");const t=e.document.createElement("h1");t.textContent=o("twofactor_backupcodes","{name} backup codes",{name:c});const s=e.document.createElement("pre");for(const b of r){const u=e.document.createTextNode(b);s.appendChild(u),s.appendChild(e.document.createElement("br"))}e.document.body.innerHTML="",e.document.body.appendChild(t),e.document.body.appendChild(s),e.print(),e.close()}async function K(){const r=q("/apps/twofactor_backupcodes/settings/create"),{data:c}=await H.post(r);return c}const v=j("twofactor_backupcodes","state"),O=U("twofactor_backupcodes",()=>{const r=_(v.enabled),c=_(v.total),e=_(v.used),t=_([]);async function s(){r.value=!1;const{codes:b,state:u}=await K();r.value=u.enabled,c.value=u.total,e.value=u.used,t.value=b}return{enabled:r,total:c,used:e,codes:t,generate:s}}),Q=["aria-label"],V=I({__name:"PersonalSettings",setup(r){const c=$().theming.name??"Nextcloud",e=O(),t=_(!1),s=N(()=>e.codes&&e.codes.length>0),b=c+"-backup-codes.txt",u=N(()=>s.value?"data:text/plain,"+encodeURIComponent(e.codes.reduce((i,C)=>i+C+`
import{d as U,c as A}from"./pinia-Bl16uMvU.chunk.mjs";import{r as _,f as I,o as n,c as l,u as a,g as x,w as k,j as p,t as d,e as E,F as m,b as f,C as M,p as w,h as y,z as N,k as R}from"./runtime-dom.esm-bundler-DPEdZePn.chunk.mjs";import{g as $,l as j,a as z}from"./index-Ma7sfat2.chunk.mjs";import{a as P}from"./index-C1xmmKTZ-CGpLs37u.chunk.mjs";import{t as o}from"./translation-DoG5ZELJ-XUrtIRvk.chunk.mjs";import{c as B}from"./index-B8CmRwk1.chunk.mjs";import{N as g}from"./autolink-U5pBzLgI-Bpd-_ISJ.chunk.mjs";import{N as F}from"./Web-BMpaLM07.chunk.mjs";import{g as G}from"./index-Bndk0DrU.chunk.mjs";import{c as H}from"./index-BCebL___.chunk.mjs";import{g as q}from"./createElementId-DhjFt1I9-Bh_4C_f2.chunk.mjs";import"./index-CKn3f84a.chunk.mjs";import"./NcModal-DHryP_87-Cy2jN0l1.chunk.mjs";import"./mdi-Cgau7A4L.chunk.mjs";import"./NcPasswordField-uaMO2pdt-Y_frnjqT.chunk.mjs";import"./NcInputField-o5OFv3z6-CZbWqg6Y.chunk.mjs";import"./index-sH3U_332.chunk.mjs";const D=G().detectLogLevel().setApp("twofactor_backupcodes").build();function J(r){const c=$().theming.name||"Nextcloud",e=window.open("",o("twofactor_backupcodes","{name} backup codes",{name:c}));if(!e)throw P(o("twofactor_backupcodes","Unable to open a new tab for printing")),new Error("Unable to open a new tab for printing");const t=e.document.createElement("h1");t.textContent=o("twofactor_backupcodes","{name} backup codes",{name:c});const s=e.document.createElement("pre");for(const b of r){const u=e.document.createTextNode(b);s.appendChild(u),s.appendChild(e.document.createElement("br"))}e.document.body.innerHTML="",e.document.body.appendChild(t),e.document.body.appendChild(s),e.print(),e.close()}async function K(){const r=q("/apps/twofactor_backupcodes/settings/create"),{data:c}=await H.post(r);return c}const v=j("twofactor_backupcodes","state"),O=U("twofactor_backupcodes",()=>{const r=_(v.enabled),c=_(v.total),e=_(v.used),t=_([]);async function s(){r.value=!1;const{codes:b,state:u}=await K();r.value=u.enabled,c.value=u.total,e.value=u.used,t.value=b}return{enabled:r,total:c,used:e,codes:t,generate:s}}),Q=["aria-label"],V=I({__name:"PersonalSettings",setup(r){const c=$().theming.name??"Nextcloud",e=O(),t=_(!1),s=N(()=>e.codes&&e.codes.length>0),b=c+"-backup-codes.txt",u=N(()=>s.value?"data:text/plain,"+encodeURIComponent(e.codes.reduce((i,C)=>i+C+`
`,"")):"");async function h(){await B(),t.value=!0;try{await e.generate()}catch(i){D.error("Error generating backup codes",{error:i}),P(o("twofactor_backupcodes","An error occurred while generating your backup codes"))}finally{t.value=!1}}function T(){J(!e.codes||e.codes.length===0?[]:e.codes)}return(i,C)=>(n(),l("div",{class:w(i.$style.backupcodesSettings)},[a(e).enabled?(n(),l(m,{key:1},[f("p",null,[s.value?(n(),l(m,{key:1},[p(d(a(o)("twofactor_backupcodes","These are your backup codes. Please save and/or print them as you will not be able to read the codes again later."))+" ",1),f("ul",{"aria-label":a(o)("twofactor_backupcodes","List of backup codes")},[(n(!0),l(m,null,M(a(e).codes,S=>(n(),l("li",{key:S,class:w(i.$style.backupcodesSettings__code)},d(S),3))),128))],8,Q)],64)):(n(),l(m,{key:0},[p(d(a(o)("twofactor_backupcodes","Backup codes have been generated. {used} of {total} codes have been used.",{used:a(e).used,total:a(e).total})),1)],64))]),f("p",{class:w(i.$style.backupcodesSettings__actions)},[y(a(g),{id:"generate-backup-codes",variant:"error",onClick:h},{default:k(()=>[p(d(a(o)("twofactor_backupcodes","Regenerate backup codes")),1)]),_:1}),s.value?(n(),l(m,{key:0},[y(a(g),{onClick:T},{default:k(()=>[p(d(a(o)("twofactor_backupcodes","Print backup codes")),1)]),_:1}),y(a(g),{href:u.value,download:b,variant:"primary"},{default:k(()=>[p(d(a(o)("twofactor_backupcodes","Save backup codes")),1)]),_:1},8,["href"])],64)):E("",!0)],2),f("p",null,[f("em",null,d(a(o)("twofactor_backupcodes","If you regenerate backup codes, you automatically invalidate old codes.")),1)])],64)):(n(),x(a(g),{key:0,disabled:t.value,variant:"primary",onClick:h},{icon:k(()=>[t.value?(n(),x(a(F),{key:0})):E("",!0)]),default:k(()=>[p(" "+d(a(o)("twofactor_backupcodes","Generate backup codes")),1)]),_:1},8,["disabled"]))],2))}}),W="_backupcodesSettings_bnkw8_2",X="_backupcodesSettings__code_bnkw8_7",Y="_backupcodesSettings__actions_bnkw8_13",Z={backupcodesSettings:W,backupcodesSettings__code:X,backupcodesSettings__actions:Y},ee={$style:Z},ae=z(V,[["__cssModules",ee]]),oe=A(),L=R(ae);L.use(oe),L.mount("#twofactor-backupcodes-settings");
//# sourceMappingURL=twofactor_backupcodes-settings-personal.mjs.map

18
package-lock.json generated
View file

@ -22,7 +22,7 @@
"@nextcloud/initial-state": "^3.0.0",
"@nextcloud/l10n": "^3.4.1",
"@nextcloud/logger": "^3.0.3",
"@nextcloud/password-confirmation": "^6.0.2",
"@nextcloud/password-confirmation": "^6.0.3",
"@nextcloud/paths": "^3.1.0",
"@nextcloud/router": "^3.1.0",
"@nextcloud/sharing": "^0.4.0",
@ -2522,18 +2522,18 @@
}
},
"node_modules/@nextcloud/password-confirmation": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/@nextcloud/password-confirmation/-/password-confirmation-6.0.2.tgz",
"integrity": "sha512-EQbGiQl8lBZrFUNE6Xp9NeQEVtQdb/mtxk3VfwTnoVzAxghsI5yTWr9xcS5EKANoNjvVlIKtREN+LG2WWxft5A==",
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/@nextcloud/password-confirmation/-/password-confirmation-6.0.3.tgz",
"integrity": "sha512-tgbzwfhlXXd9Eq8ZnYrTeH8bEkdyIgybN45Tkip01b3xABUlr0tMGGj8+ZNp2pozytcK+k1l6fyvRPc09g0rIw==",
"license": "MIT",
"dependencies": {
"@nextcloud/auth": "^2.5.3",
"@nextcloud/axios": "^2.5.2",
"@nextcloud/l10n": "^3.4.0",
"@nextcloud/logger": "^3.0.2",
"@nextcloud/router": "^3.0.1",
"@nextcloud/vue": "^9.1.0",
"vue": "^3.5.22"
"@nextcloud/l10n": "^3.4.1",
"@nextcloud/logger": "^3.0.3",
"@nextcloud/router": "^3.1.0",
"@nextcloud/vue": "^9.5.0",
"vue": "^3.5.29"
},
"engines": {
"node": "^20.0.0 || ^22.0.0 || ^24.0.0"

View file

@ -51,7 +51,7 @@
"@nextcloud/initial-state": "^3.0.0",
"@nextcloud/l10n": "^3.4.1",
"@nextcloud/logger": "^3.0.3",
"@nextcloud/password-confirmation": "^6.0.2",
"@nextcloud/password-confirmation": "^6.0.3",
"@nextcloud/paths": "^3.1.0",
"@nextcloud/router": "^3.1.0",
"@nextcloud/sharing": "^0.4.0",