@snagset/server 0.1.50 → 0.1.51

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.
Files changed (78) hide show
  1. package/dist/routes/mcp.js +1 -1
  2. package/dist/routes/mcp.js.map +1 -1
  3. package/dist/routes/owner.js +8 -3
  4. package/dist/routes/owner.js.map +1 -1
  5. package/dist/vendor/types/roles.js +3 -2
  6. package/package.json +1 -1
  7. package/static/dashboard/assets/{CompositeItem-BbRWtb9E.js → CompositeItem-Dr9UcOhm.js} +1 -1
  8. package/static/dashboard/assets/{CompositeList-DSzQJXEH.js → CompositeList-BRoUQLZ7.js} +1 -1
  9. package/static/dashboard/assets/{ConfirmDialog-CsaYGnmH.js → ConfirmDialog-CKQ2LE2m.js} +1 -1
  10. package/static/dashboard/assets/{CopyButton-CSLYWvcG.js → CopyButton-Et1g5isE.js} +1 -1
  11. package/static/dashboard/assets/{FieldItemContext-CbsQB6MT.js → FieldItemContext-DCpv0Ox1.js} +1 -1
  12. package/static/dashboard/assets/{InstallTag-Dl1CTzWW.js → InstallTag-Dgm3LPul.js} +1 -1
  13. package/static/dashboard/assets/{InstanceRows-BWWvIdNa.js → InstanceRows-BNvGpofx.js} +1 -1
  14. package/static/dashboard/assets/McpTokens-Dopxwnwy.js +1 -0
  15. package/static/dashboard/assets/{SaveState-4EBQGYTP.js → SaveState-DT_ZtqN6.js} +1 -1
  16. package/static/dashboard/assets/{_app-kEANU5X8.js → _app-BRCkQPN9.js} +1 -1
  17. package/static/dashboard/assets/{_app-B7KgtJFl.js → _app-BSR3Hyuo.js} +6 -6
  18. package/static/dashboard/assets/{activity-Cqc-ic6s.js → activity-C7wAfXpX.js} +1 -1
  19. package/static/dashboard/assets/{arrow-left-CQMGC49D.js → arrow-left-BnaT-Fbe.js} +1 -1
  20. package/static/dashboard/assets/{avatar-BMXOnJqe.js → avatar-BH-hU7Qh.js} +1 -1
  21. package/static/dashboard/assets/{badge-BdtzL033.js → badge-BaViqDz3.js} +1 -1
  22. package/static/dashboard/assets/{card-lXS88Xn6.js → card-XWz6Setp.js} +1 -1
  23. package/static/dashboard/assets/{check-H4pMNyt3.js → check-CsTK2ZlT.js} +1 -1
  24. package/static/dashboard/assets/{chevron-down-D69c6VJS.js → chevron-down-DPOV2aTJ.js} +1 -1
  25. package/static/dashboard/assets/{chevron-right-BHW_CTxR.js → chevron-right-DaVBytqm.js} +1 -1
  26. package/static/dashboard/assets/{copy-yXvXlo6x.js → copy-74WsRINA.js} +1 -1
  27. package/static/dashboard/assets/{dialog-ldK1isp6.js → dialog-CbKDGxpa.js} +1 -1
  28. package/static/dashboard/assets/{dropdown-menu-tpaW--kP.js → dropdown-menu-CJcFUaVg.js} +1 -1
  29. package/static/dashboard/assets/{forgot-DQRN5qaE.js → forgot-Ba8VynCy.js} +1 -1
  30. package/static/dashboard/assets/{image-off-CB0_ptbu.js → image-off-C79CMi04.js} +1 -1
  31. package/static/dashboard/assets/{index-HjQimqNo.js → index-Bjyhj6ZB.js} +3 -3
  32. package/static/dashboard/assets/{inertValue-CpUwNw2H.js → inertValue-B5n_awh1.js} +1 -1
  33. package/static/dashboard/assets/{invite-s8N0zAHs.js → invite-BF88t7QH.js} +1 -1
  34. package/static/dashboard/assets/{label-ZZ2_d1y3.js → label-C3zh-elW.js} +1 -1
  35. package/static/dashboard/assets/{layout-grid-CN8YFdmp.js → layout-grid-oG1simZW.js} +1 -1
  36. package/static/dashboard/assets/me-CtDXQ1_u.js +1 -0
  37. package/static/dashboard/assets/{parts-M1caoeIG.js → parts-DoQ2TEp-.js} +1 -1
  38. package/static/dashboard/assets/{plus-B7tL4dNn.js → plus-cmPSXDaO.js} +1 -1
  39. package/static/dashboard/assets/{reset-B4BnOPfb.js → reset-BpU9fRSp.js} +1 -1
  40. package/static/dashboard/assets/{s._site-CXi-FiZX.js → s._site-D2r1l61r.js} +1 -1
  41. package/static/dashboard/assets/{s._site.comments-BEvoE6oY.js → s._site.comments-DwaUmd00.js} +1 -1
  42. package/static/dashboard/assets/{s._site.reviewers-yZQv1Eoh.js → s._site.reviewers-DRScBd1i.js} +1 -1
  43. package/static/dashboard/assets/{s._site.settings-DtUyYGPG.js → s._site.settings-qspOmIrK.js} +1 -1
  44. package/static/dashboard/assets/{setup-DqRZupA9.js → setup-BkYyqis5.js} +1 -1
  45. package/static/dashboard/assets/{sign-in-DsSPt8dp.js → sign-in-lrKREplo.js} +1 -1
  46. package/static/dashboard/assets/{sign-up-NX5jKoWF.js → sign-up-Cz1mnlMx.js} +1 -1
  47. package/static/dashboard/assets/{sites-B2wMCxPO.js → sites-Dw1vM12C.js} +1 -1
  48. package/static/dashboard/assets/studio-DXL_Yf0t.js +1 -0
  49. package/static/dashboard/assets/{studio-BaiYvlZ6.js → studio-yUvPcZ3O.js} +1 -1
  50. package/static/dashboard/assets/{studio.index-B-ghTzpK.js → studio.index-BQaRfibu.js} +1 -1
  51. package/static/dashboard/assets/studio.integrations-qLy4n2Db.js +1 -0
  52. package/static/dashboard/assets/{studio.members-CB6-TcLJ.js → studio.members-BCByOoP6.js} +1 -1
  53. package/static/dashboard/assets/{studio.plan-CZTdFexy.js → studio.plan-VWSLPHcb.js} +1 -1
  54. package/static/dashboard/assets/{sun-u2NbMis0.js → sun-BpsiEWtf.js} +1 -1
  55. package/static/dashboard/assets/{switch-Dkt5l7OO.js → switch-ByUmW5H2.js} +1 -1
  56. package/static/dashboard/assets/{table-ituK8K36.js → table-C5ApoOFC.js} +1 -1
  57. package/static/dashboard/assets/{useAriaLabelledBy-CoSdPvYq.js → useAriaLabelledBy-CvsQoCZu.js} +1 -1
  58. package/static/dashboard/assets/{useBaseQuery-BkYS0_tx.js → useBaseQuery-0a7T0HmH.js} +1 -1
  59. package/static/dashboard/assets/{useCompositeItem-C4UrPJVM.js → useCompositeItem-CsYzexWF.js} +1 -1
  60. package/static/dashboard/assets/useQuery-ClGE3W7i.js +1 -0
  61. package/static/dashboard/assets/useRender-tS6QvoXj.js +1 -0
  62. package/static/dashboard/assets/{useValueChanged-DIgP-JEg.js → useValueChanged-CQWizfo3.js} +1 -1
  63. package/static/dashboard/assets/{users-BwiPZMJv.js → users-Df1_iduv.js} +1 -1
  64. package/static/dashboard/assets/{welcome-DTTZgFzT.js → welcome-DXLh7SqO.js} +1 -1
  65. package/static/dashboard/assets/{widget-signin-gM29xP8c.js → widget-signin-E1tpKlR7.js} +1 -1
  66. package/static/dashboard/assets/you-CQElYVq9.js +1 -0
  67. package/static/dashboard/assets/{zod-kvh5d1ad.js → zod-CuCSHm2e.js} +1 -1
  68. package/static/dashboard/index.html +1 -1
  69. package/static/widget/build.json +2 -2
  70. package/static/widget/snag.js +1 -1
  71. package/static/widget/snag.runtime.js +1 -1
  72. package/static/dashboard/assets/McpTokens-P8ZSGR0X.js +0 -1
  73. package/static/dashboard/assets/me-B5kRPSVM.js +0 -1
  74. package/static/dashboard/assets/studio-oeTZnGud.js +0 -1
  75. package/static/dashboard/assets/studio.integrations-BVx-DE6h.js +0 -1
  76. package/static/dashboard/assets/useQuery-BYaTQT7D.js +0 -1
  77. package/static/dashboard/assets/useRender-yrokxr5_.js +0 -1
  78. package/static/dashboard/assets/you-9mhYS1Uj.js +0 -1
@@ -1 +0,0 @@
1
- import{r,x as b,j as e,h as y,y as N,B as j,q as f,a2 as S}from"./index-HjQimqNo.js";import{L as c,I as d}from"./label-ZZ2_d1y3.js";import{P as C,a as h}from"./parts-M1caoeIG.js";import{S as P}from"./SaveState-4EBQGYTP.js";import{M as A}from"./McpTokens-P8ZSGR0X.js";import{u as k}from"./me-B5kRPSVM.js";import{u as M,a as F}from"./studio-BaiYvlZ6.js";import{M as E,S as T,a as D}from"./sun-u2NbMis0.js";import"./card-lXS88Xn6.js";import"./labels--UUyt9uB.js";import"./useQuery-BYaTQT7D.js";import"./useBaseQuery-BkYS0_tx.js";import"./badge-BdtzL033.js";import"./useRender-yrokxr5_.js";import"./dialog-ldK1isp6.js";import"./inertValue-CpUwNw2H.js";import"./switch-Dkt5l7OO.js";import"./useAriaLabelledBy-CoSdPvYq.js";import"./useValueChanged-DIgP-JEg.js";import"./ConfirmDialog-CsaYGnmH.js";import"./check-H4pMNyt3.js";import"./copy-yXvXlo6x.js";import"./CopyButton-CSLYWvcG.js";function z({items:t}){const[a,n]=r.useState(b);return e.jsx("div",{className:"flex gap-2",role:"radiogroup","aria-label":"Theme",children:t.map(s=>e.jsxs("button",{type:"button",role:"radio","aria-checked":a===s.value,onClick:()=>{N(s.value),n(s.value)},className:y("inline-flex h-7 items-center gap-1.5 rounded-md border border-border bg-card px-2.5 text-[12.5px] font-medium text-ink-soft",a===s.value&&"border-line-strong bg-muted text-foreground"),children:[s.icon,s.label]},s.value))})}function ne(){const t=k(),a=M(),[n,s]=r.useState(t.user.name),[u,i]=r.useState(null);r.useEffect(()=>s(t.user.name),[t.user.name]);const m=n.trim()!==t.user.name;return e.jsxs("div",{className:"flex flex-col gap-10 p-7",children:[e.jsx(C,{title:"You",sub:"Your own account on this studio",actions:e.jsx(P,{saving:a.isPending,savedAt:u})}),e.jsxs(h,{title:"Profile",description:"How you appear on replies and in the members list.",children:[e.jsxs("form",{className:"flex flex-col gap-1.5",onSubmit:l=>{l.preventDefault(),m&&a.mutate(n.trim(),{onSuccess:()=>i(Date.now())})},children:[e.jsx(c,{htmlFor:"your-name",children:"Name"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(d,{id:"your-name",value:n,onChange:l=>s(l.target.value)}),m&&e.jsx(j,{type:"submit",variant:"outline",children:"Save"})]})]}),e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsx(c,{htmlFor:"your-email",children:"Email"}),e.jsx(d,{id:"your-email",value:t.user.email,readOnly:!0,className:"bg-muted text-ink-soft"}),e.jsxs("p",{className:"m-0 text-[12px] text-muted-foreground",children:["How you sign in, and how the server finds you. An owner changes it with"," ",e.jsx("code",{className:"font-mono",children:"snagset passwd"}),"."]})]})]}),e.jsx(h,{title:"Password",description:"Changing it keeps this session and ends every other one.",children:e.jsx(H,{})}),!f(t.user.role,"settings")&&f(t.user.role,"review")&&e.jsx(A,{owner:!0,mine:!0,instanceOwner:!1,sites:t.projects}),e.jsx(h,{title:"Appearance",description:"Also in your menu at the bottom of the sidebar.",children:e.jsx(z,{items:[{value:"system",label:"System",icon:e.jsx(E,{className:"size-3.5"})},{value:"light",label:"Light",icon:e.jsx(T,{className:"size-3.5"})},{value:"dark",label:"Dark",icon:e.jsx(D,{className:"size-3.5"})}]})})]})}function H(){const t=F(),[a,n]=r.useState(""),[s,u]=r.useState(""),[i,m]=r.useState(""),[l,g]=r.useState(""),[v,p]=r.useState(!1),x=a.length>0&&s.length>=12&&s===i;return e.jsxs("form",{className:"flex flex-col gap-4",onSubmit:async o=>{if(o.preventDefault(),!(!x||t.isPending)){g("");try{await t.mutateAsync({current:a,next:s}),n(""),u(""),m(""),p(!0)}catch(w){g(S(w))}}},children:[l&&e.jsx("p",{role:"alert",className:"m-0 rounded-md border border-destructive/40 bg-warn-soft px-3 py-2 text-[13px] text-destructive",children:l}),e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsx(c,{htmlFor:"pw-current",children:"Current password"}),e.jsx(d,{id:"pw-current",type:"password",autoComplete:"current-password",value:a,onChange:o=>{n(o.target.value),p(!1)}})]}),e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsx(c,{htmlFor:"pw-next",children:"New password"}),e.jsx(d,{id:"pw-next",type:"password",autoComplete:"new-password",value:s,onChange:o=>{u(o.target.value),p(!1)}}),e.jsx("p",{className:"m-0 text-[12px] text-muted-foreground",children:"At least 12 characters. No composition rules — length is what matters."})]}),e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsx(c,{htmlFor:"pw-again",children:"Confirm new password"}),e.jsx(d,{id:"pw-again",type:"password",autoComplete:"new-password",value:i,onChange:o=>{m(o.target.value),p(!1)}}),i.length>0&&s!==i&&e.jsx("p",{className:"m-0 text-[12px] text-muted-foreground",children:"Those do not match yet."})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(j,{type:"submit",loading:t.isPending,disabled:!x,children:t.isPending?"Changing…":v&&!x?"Changed":"Change password"})})]})}export{ne as component};