@shumai-one/shumai 0.6.2 → 0.6.3
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.
- package/bin/chunk-02b5bcmc.js +1 -0
- package/bin/{chunk-m0q2cgfg.js → chunk-09mj32d7.js} +1 -1
- package/bin/{chunk-b7bnp021.js → chunk-09mpcg9x.js} +2 -2
- package/bin/{chunk-257dcd2f.js → chunk-0a298n62.js} +2 -2
- package/bin/{chunk-cz13a82m.js → chunk-0rgbxp24.js} +2 -2
- package/bin/{chunk-mwktrwtx.js → chunk-19zbh4fr.js} +1 -1
- package/bin/{chunk-v05rrxp5.js → chunk-1e1q1hyg.js} +2 -2
- package/bin/{chunk-fatmqnp1.js → chunk-1ja2zw4w.js} +1 -1
- package/bin/chunk-1tar0x8s.js +7 -0
- package/bin/{chunk-1nvd90g2.js → chunk-1y6h4vge.js} +1 -1
- package/bin/{chunk-tekwpkjf.js → chunk-20bamhwa.js} +2 -2
- package/bin/{chunk-8mqbztj8.js → chunk-20w1w9x7.js} +2 -2
- package/bin/{chunk-qwpkcp8d.js → chunk-25npafhz.js} +2 -2
- package/bin/{chunk-km4gn6b6.js → chunk-2qgagdb7.js} +1 -1
- package/bin/chunk-2t6g3pny.js +3 -0
- package/bin/{chunk-ns33grgx.js → chunk-34f64q0q.js} +1 -1
- package/bin/{chunk-1wfg56z3.js → chunk-3hgrw1m0.js} +4 -4
- package/bin/{chunk-p3f5aevs.js → chunk-3s2ga6mt.js} +1 -1
- package/bin/{chunk-hzkjgcre.js → chunk-3vpz5nat.js} +1 -1
- package/bin/{chunk-2jj4j8cn.js → chunk-4p31kxjh.js} +2 -2
- package/bin/{chunk-9t3p4xp6.js → chunk-4vjgdj0h.js} +1 -1
- package/bin/{chunk-96qpjght.js → chunk-50pfmxt1.js} +2 -2
- package/bin/{chunk-2cdxm1cp.js → chunk-5ddg5ezb.js} +9 -9
- package/bin/chunk-5ngftxjb.js +218 -0
- package/bin/{chunk-r1xer8gn.js → chunk-6f3zhq64.js} +3 -3
- package/bin/chunk-6nqqe7w9.js +1 -0
- package/bin/{chunk-h1n7jqnw.js → chunk-6t525bmg.js} +1 -1
- package/bin/{chunk-01052ssf.js → chunk-7546ptwg.js} +11 -11
- package/bin/{chunk-82tps5n1.js → chunk-7jz3cmq6.js} +1 -1
- package/bin/{chunk-v5cn90cf.js → chunk-7kah3zb5.js} +2 -2
- package/bin/{chunk-73yncv54.js → chunk-7mawxsk3.js} +2 -2
- package/bin/chunk-8ww98y1m.js +2 -0
- package/bin/{chunk-55h9ze53.js → chunk-9405hzv2.js} +2 -2
- package/bin/{chunk-cgmebxx6.js → chunk-95b4mwyq.js} +1 -1
- package/bin/chunk-9vxmgvc8.js +2 -0
- package/bin/{chunk-knj2s8mg.js → chunk-9x42vgeq.js} +5 -5
- package/bin/{chunk-7sgrtxbt.js → chunk-a859y4e1.js} +2 -2
- package/bin/{chunk-y241cxff.js → chunk-addssm8d.js} +1 -1
- package/bin/{chunk-f6avg5qe.js → chunk-ajq9sxg0.js} +33 -33
- package/bin/chunk-amp9h878.js +2 -0
- package/bin/{chunk-yk12hydf.js → chunk-atdfqdkj.js} +4 -4
- package/bin/{chunk-5wapd171.js → chunk-atpt99h4.js} +10 -10
- package/bin/chunk-awshe30f.js +1 -0
- package/bin/chunk-b3t7gbhm.js +2 -0
- package/bin/{chunk-e4f56spj.js → chunk-bbxwyhz3.js} +3 -3
- package/bin/{chunk-a411xhmm.js → chunk-bd3v8mp1.js} +4 -4
- package/bin/{chunk-167z646e.js → chunk-brgns7hv.js} +1 -1
- package/bin/{chunk-576nj64j.js → chunk-c02727j9.js} +2 -2
- package/bin/{chunk-8yjsmr7g.js → chunk-c1wvs81k.js} +1 -1
- package/bin/chunk-c8frmqsk.js +2 -0
- package/bin/{chunk-xc54vhfz.js → chunk-cagzye3j.js} +1 -1
- package/bin/{chunk-s9ksftq2.js → chunk-cp96e9pq.js} +1 -1
- package/bin/{chunk-q5vkxee3.js → chunk-d55138xx.js} +2 -2
- package/bin/{chunk-7v7mypc6.js → chunk-ddmf9gqv.js} +2 -2
- package/bin/chunk-djb65frk.js +1 -0
- package/bin/{chunk-q83h0hkx.js → chunk-dkhdn92k.js} +2 -2
- package/bin/chunk-dx9f5wab.js +1 -0
- package/bin/{chunk-f25fe9th.js → chunk-dygj751y.js} +11 -11
- package/bin/{chunk-m9adtgzk.js → chunk-e55sgg8t.js} +1 -1
- package/bin/{chunk-q8w4mbw4.js → chunk-enax4303.js} +2 -2
- package/bin/{chunk-vcrmjtcz.js → chunk-erfkd3z9.js} +2 -2
- package/bin/{chunk-8cjet7pp.js → chunk-esj0kwe5.js} +5 -5
- package/bin/{chunk-atfz7g7e.js → chunk-etrm28sy.js} +1 -1
- package/bin/chunk-ex3174e3.js +2 -0
- package/bin/{chunk-9n1w5dw1.js → chunk-ezjxx44x.js} +3 -3
- package/bin/{chunk-cf5axr8c.js → chunk-f4xnx4n6.js} +1 -1
- package/bin/{chunk-7naa7tpn.js → chunk-f8hgy69t.js} +2 -2
- package/bin/chunk-fakph5jp.js +1 -0
- package/bin/{chunk-kvhf12b4.js → chunk-femnbfkj.js} +1 -1
- package/bin/{chunk-ah8fjb6f.js → chunk-ffjdkdcv.js} +2 -2
- package/bin/{chunk-vkzasgxw.js → chunk-gd016e9p.js} +2 -2
- package/bin/{chunk-ympbfzz4.js → chunk-gyv3yrhj.js} +1 -1
- package/bin/{chunk-jzgbxqdg.js → chunk-h2bphev9.js} +2 -2
- package/bin/chunk-h3atwgx2.js +1 -0
- package/bin/chunk-h7xny3de.js +2 -0
- package/bin/{chunk-m82tkhaa.js → chunk-hg3rkp41.js} +5 -5
- package/bin/{chunk-3z85zxkn.js → chunk-hpzk9k55.js} +1 -1
- package/bin/{chunk-9zsv6d2f.js → chunk-hsyfrzdd.js} +1 -1
- package/bin/chunk-hvyy8vct.js +3 -0
- package/bin/{chunk-b5rhvzv9.js → chunk-j2txsbxz.js} +2 -2
- package/bin/chunk-j6x53e33.js +1 -0
- package/bin/chunk-jacanzp7.js +1 -0
- package/bin/{chunk-g6sdezec.js → chunk-jc7dycy6.js} +1 -1
- package/bin/{chunk-cwat1jwx.js → chunk-k7vbk8v4.js} +1 -1
- package/bin/{chunk-zrszykjf.js → chunk-mn0kt3p6.js} +1 -1
- package/bin/chunk-mn71dffh.js +4 -0
- package/bin/{chunk-vp3czaeh.js → chunk-npeapp7e.js} +2 -2
- package/bin/{chunk-2nhgdqdg.js → chunk-p2vsdnd1.js} +2 -2
- package/bin/chunk-pdw77q09.js +2 -0
- package/bin/{chunk-zezje74z.js → chunk-pq6kdp83.js} +3 -3
- package/bin/chunk-ptcz4ed3.js +2 -0
- package/bin/{chunk-z1p13dnc.js → chunk-q1fzgqsv.js} +2 -2
- package/bin/chunk-q4ny4hpt.js +2 -0
- package/bin/{chunk-mzsw9var.js → chunk-q5x0yywj.js} +2 -2
- package/bin/{chunk-g22wmpk1.js → chunk-q8xr1a8j.js} +2 -2
- package/bin/chunk-q8ysc5ex.js +1 -0
- package/bin/{chunk-1ktk6764.js → chunk-qm50g4n5.js} +4 -4
- package/bin/{chunk-q2bew2vc.js → chunk-qvp24w0q.js} +2 -2
- package/bin/{chunk-9xhjy897.js → chunk-r6t0j0jx.js} +3 -3
- package/bin/chunk-s1j4v33x.js +2 -0
- package/bin/{chunk-yq32evnn.js → chunk-s6pk2zyg.js} +5 -5
- package/bin/{chunk-hnkcgvcj.js → chunk-s74g9vsk.js} +1 -1
- package/bin/{chunk-gxepkvt2.js → chunk-sz19nn1x.js} +1 -1
- package/bin/{chunk-hpbn0k9n.js → chunk-sz5zawfw.js} +1 -1
- package/bin/chunk-t68y25gf.js +1 -0
- package/bin/{chunk-mcw198kg.js → chunk-te484xtb.js} +8 -8
- package/bin/{chunk-jt0ykktx.js → chunk-tfrevef9.js} +1 -1
- package/bin/chunk-thpw6tcj.js +2 -0
- package/bin/{chunk-02fvcrej.js → chunk-v0yevesp.js} +7 -7
- package/bin/chunk-vj4gamdn.js +2 -0
- package/bin/{chunk-p4s95471.js → chunk-vmwys2ch.js} +1 -1
- package/bin/{chunk-e4yscwen.js → chunk-vnmggrd6.js} +7 -7
- package/bin/{chunk-hpwv4am3.js → chunk-vv0m0m2f.js} +4 -4
- package/bin/{chunk-x03jwaga.js → chunk-w6g84d59.js} +4 -4
- package/bin/{chunk-3ckkwdjx.js → chunk-wgvgtttc.js} +3 -3
- package/bin/chunk-xy9qpn6b.js +1 -0
- package/bin/{chunk-mcj1xpcc.js → chunk-y3haqtr8.js} +2 -2
- package/bin/chunk-y5dv67mg.js +2 -0
- package/bin/{chunk-4mws03es.js → chunk-yb4mzqrd.js} +2 -2
- package/bin/{chunk-x8mjh387.js → chunk-z0de127n.js} +4 -4
- package/bin/chunk-z8t6e0ee.js +1 -0
- package/bin/chunk-zfg4yy3c.js +2 -0
- package/bin/{chunk-hw6czrya.js → chunk-zkvezz89.js} +1 -1
- package/bin/chunk-zrrnvdxq.js +3 -0
- package/bin/{chunk-srxp5jav.js → chunk-zx1c4vm5.js} +30 -30
- package/bin/chunk-zzqse5qc.js +2 -0
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +328 -328
- package/package.json +7 -7
- package/bin/chunk-0bj887zm.js +0 -2
- package/bin/chunk-26qn7fek.js +0 -2
- package/bin/chunk-2ne2b54t.js +0 -2
- package/bin/chunk-2vbeqczj.js +0 -1
- package/bin/chunk-37p6bcx2.js +0 -1
- package/bin/chunk-3knfx6dm.js +0 -1
- package/bin/chunk-54tbfvya.js +0 -2
- package/bin/chunk-56kh5fxc.js +0 -1
- package/bin/chunk-6cnqjngz.js +0 -1
- package/bin/chunk-7g46e1wy.js +0 -3
- package/bin/chunk-84x8p7v5.js +0 -1
- package/bin/chunk-8fyg9dy4.js +0 -2
- package/bin/chunk-8gtfgkrn.js +0 -2
- package/bin/chunk-8xb6yz11.js +0 -2
- package/bin/chunk-91rb0jpb.js +0 -2
- package/bin/chunk-9f1xk1nt.js +0 -1
- package/bin/chunk-9mk9cvbk.js +0 -1
- package/bin/chunk-9nw5w8vh.js +0 -1
- package/bin/chunk-dk42gf7v.js +0 -2
- package/bin/chunk-eb7mzbfm.js +0 -1
- package/bin/chunk-er14d498.js +0 -3
- package/bin/chunk-fvx9k1dc.js +0 -2
- package/bin/chunk-gtf19jc1.js +0 -2
- package/bin/chunk-hfm82066.js +0 -2
- package/bin/chunk-kj6h5j5a.js +0 -4
- package/bin/chunk-ny1kbmxt.js +0 -2
- package/bin/chunk-p3j6ydk1.js +0 -1
- package/bin/chunk-pk406dgy.js +0 -2
- package/bin/chunk-s1e4qy3q.js +0 -14
- package/bin/chunk-swtwaaqe.js +0 -1
- package/bin/chunk-tagdrg7p.js +0 -1
- package/bin/chunk-twtxnzbv.js +0 -2
- package/bin/chunk-v5mcjwxy.js +0 -2
- package/bin/chunk-x342vzdx.js +0 -2
- package/bin/chunk-xvkwbczx.js +0 -3
- package/bin/chunk-zarz3sqn.js +0 -211
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,B}from"./chunk-
|
|
2
|
-
export{
|
|
1
|
+
import{a,B}from"./chunk-5ngftxjb.js";function Un({className:t,...e}){return a("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:a("table",{"data-slot":"table",className:B("w-full caption-bottom text-sm",t),...e})})}function zn({className:t,...e}){return a("thead",{"data-slot":"table-header",className:B("[&_tr]:border-b",t),...e})}function jn({className:t,...e}){return a("tbody",{"data-slot":"table-body",className:B("[&_tr:last-child]:border-0",t),...e})}function Tr({className:t,...e}){return a("tr",{"data-slot":"table-row",className:B("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",t),...e})}function vt({className:t,...e}){return a("th",{"data-slot":"table-head",className:B("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function ut({className:t,...e}){return a("td",{"data-slot":"table-cell",className:B("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}
|
|
2
|
+
export{Un,zn,jn,Tr,vt,ut};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{z}from"./chunk-
|
|
1
|
+
import{z}from"./chunk-5ngftxjb.js";var e=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ns=z("terminal",e);
|
|
2
2
|
export{ns};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S,
|
|
1
|
+
import{S,Q,M,w,L,W,a,g,ie,X,ee,Tt,We,R,B,$0,H0,nR,Xt,oi,an,Xn,Eo,Md,$r,Bn,An,lr,Ir,Lr,hs}from"./chunk-5ngftxjb.js";import{cn}from"./chunk-ajq9sxg0.js";import{Ea}from"./chunk-1tar0x8s.js";import{ba}from"./chunk-ffjdkdcv.js";import{al,uu}from"./chunk-50pfmxt1.js";import{Au}from"./chunk-thpw6tcj.js";import{xa}from"./chunk-6f3zhq64.js";import{Yr}from"./chunk-d55138xx.js";L();function Ne(i,t,b,n,d,f){let T=i.type==="folder",m=t.type==="folder";if(T!==m)return null;let F=m?n:d,v=F.findIndex((o)=>o.id===b),x=F.findIndex((o)=>o.id===t.id);if(v===-1||x===-1)return null;let z=Math.min(v,x),K=Math.max(v,x),P=F.slice(z,K+1),r=new Set(f);return P.forEach((o)=>{if(o.id)r.add(o.id)}),r}function xo({teamId:i,projectId:t,projectName:b,assetId:n,rootFolderId:d,collection:f,onUpdateCollection:T}){let m=We(),F=ie(),{canEdit:v}=Xt(t),{setFields:x}=cn(),z=R.api.files[":fileId"].metadata.$patch,{mutate:K}=ee({mutationFn:async(e)=>{if(!(await z(e)).ok)throw Error("Failed to patch metadata");return null}}),{data:P}=X({queryKey:["fields",t],queryFn:async()=>{let e=await R.api.projects[":projectId"].fields.$get({param:{projectId:t}});if(!e.ok)throw Error("Failed to fetch fields");return await e.json()},enabled:!!t});S(()=>{if(P)x(P,t)},[P,t,x]);let r=n==="recently-deleted",o=n==="recents",[O,C]=w(null),[c,N]=w(new Set),[U,q]=w(null),[ke,Me]=w(240),[Ae,Le]=w(360),{isChatbotOpen:_}=Ir(),{members:Re,fetchMembers:oe}=An(),{metadata:ne,fetchMetadata:re,setMetadata:De}=Lr(),ae=Boolean(ne["appearance.hideAgent"]);S(()=>{if(i)oe(i),re(i)},[i,oe,re]);let H=Q(()=>f?.filter?.searchFilter?.conditions||[],[f]),[k,V]=w(H);S(()=>{V(H)},[H]);let le=`project:${t}:sort`,A=ne[le]||{field:"custom",order:"asc"},$e=(e)=>{if(e)De(i,le,e)},h=!!f,E=k.length>0||h,{fileListLeftSidebarCollapsed:de,setFileListLeftSidebarCollapsed:je,fileListRightSidebarCollapsed:fe,setFileListRightSidebarCollapsed:qe,viewModes:Ee}=lr(),ce=Ee[t]??"card",Te=M(null),{data:D}=r||o?{data:void 0}:X({queryKey:["folders",n],queryFn:async()=>{let e=await R.api.folders[":folderId"].$get({param:{folderId:n}});if(!e.ok)throw Error("failed to fetch folder");return await e.json()}}),{setProjectState:ue,clearProjectState:ge}=Bn();S(()=>(ue({teamId:i,projectId:t,projectName:b,rootFolderId:d,ancestorFolders:D?.ancestorFolders??[],currentAsset:r?{name:$0(),type:"folder"}:o?{name:H0(),type:"folder"}:h?{id:f.id,name:f.name,type:"folder"}:{id:D?.id||n,name:D?.name,type:"folder"},isRootFolder:!r&&!o&&!h&&n===d,onFolderClick:(e)=>{m({to:"/projects/$projectId/folders/$folderId",params:{projectId:t,folderId:e}})}}),()=>ge()),[i,t,b,D,r,o,n,d,ue,ge,m]);let{data:G,fetchNextPage:pe,hasNextPage:me,isFetchingNextPage:he,isLoading:ze}=Tt({queryKey:r?["projects",t,"recently-deleted","folder"]:o?["projects",t,"recents","folder"]:["search",i,n,"folder",k,A,h],queryFn:async({pageParam:e})=>{if(r||h||o){if(r){let l=await R.api.projects[":projectId"]["recently-deleted"].$get({param:{projectId:t},query:{assetType:"folder",after:e}});if(!l.ok)throw Error("failed to fetch recently deleted folders");return await l.json()}return{data:[],pageInfo:{total:0}}}if(E)return{data:[],pageInfo:{total:0}};let s=await R.api.folders[":folderId"].search.$post({param:{folderId:n},json:{assetType:"folder",after:e,recursively:!1,sort:A,conditions:[]}});if(!s.ok)throw Error("failed to search folders");return await s.json()},enabled:!E&&!o,initialPageParam:"",getNextPageParam:(e)=>e.pageInfo?.cursor||void 0}),{data:J,fetchNextPage:ye,hasNextPage:Se,isFetchingNextPage:Fe,isLoading:Ke}=Tt({queryKey:r?["projects",t,"recently-deleted","file"]:o?["projects",t,"recents","file"]:["search",i,n,"file",k,A,h],queryFn:async({pageParam:e})=>{if(r){let l=await R.api.projects[":projectId"]["recently-deleted"].$get({param:{projectId:t},query:{assetType:"file",after:e}});if(!l.ok)throw Error("failed to fetch recently deleted files");return await l.json()}if(o){let l=await R.api.projects[":projectId"].recents.$get({param:{projectId:t},query:{after:e,first:"20"}});if(!l.ok)throw Error("failed to fetch recent files");return await l.json()}let s=await R.api.folders[":folderId"].search.$post({param:{folderId:n},json:{assetType:"file",after:e,recursively:E||h,conditions:k,sort:A}});if(!s.ok)throw Error("failed to search files");return await s.json()},initialPageParam:"",getNextPageParam:(e)=>e.pageInfo?.cursor||void 0}),I=G?.pages.flatMap((e)=>e.data??[])??[],u=J?.pages.flatMap((e)=>e.data??[])??[],we=(!E&&!o?ze:!1)||Ke,xe=G?.pages[0]?.pageInfo?.total,Ie=J?.pages[0]?.pageInfo?.total,be=G?.pages[0]?.pageInfo?.totalSize,ve=J?.pages[0]?.pageInfo?.totalSize,Y=()=>{N(new Set),C(null),q(null)},{dragState:j,handleDragStart:Qe,handleDragEnd:Oe}=uu({teamId:i,projectId:t,assetId:n,folders:I,files:u,selectedIds:c,onClearSelection:Y}),Z=Q(()=>{if(c.size!==1)return null;let e=Array.from(c)[0];return u.find((l)=>l.id===e)||null},[c,u]),Pe=(e)=>{if(r)return;if(e.type==="folder")V([]),m({to:"/projects/$projectId/folders/$folderId",params:{projectId:t,folderId:e.id}});else m({to:"/projects/$projectId/files/$fileId",params:{projectId:t,fileId:e.versionStack?e.versionStack.id:e.id},search:{version:void 0}})},Ce=(e,s)=>{let l=s.metaKey||s.ctrlKey;if(s.shiftKey&&U){let se=[...I,...u].find((p)=>p.id===U);if(se){let p=Ne(se,e,U,I,u,c);if(p){N(p),C(e);return}}}if(l){let y=new Set(c);if(y.has(e.id)){if(y.delete(e.id),N(y),O?.id===e.id){let p=[...I,...u].find((Ue)=>y.has(Ue.id));C(p||null),q(p?p.id:null)}}else y.add(e.id),N(y),q(e.id),C(e);return}N(new Set([e.id])),q(e.id),C(e)},te=(e,s,l)=>{K({param:{fileId:e},json:[{key:s,value:l}]},{onSuccess:()=>{F.invalidateQueries({queryKey:["folders",n,"children",{assetType:"file"}]}),F.invalidateQueries({queryKey:["search",i,n]})}})};if(hs())return a(Au,{teamId:i,projectId:t,assetId:n,folders:I,files:u,totalFolders:xe,totalFiles:Ie,totalFoldersSize:be,totalFilesSize:ve,selectedItem:O,selectedIds:c,onItemSelect:Ce,onItemDoubleClick:Pe,onSaveField:te,onClearSelection:Y,fetchNextFoldersPage:pe,hasNextFoldersPage:me||!1,isFetchingNextFoldersPage:he,fetchNextFilesPage:ye,hasNextFilesPage:Se||!1,isFetchingNextFilesPage:Fe,isRecentlyDeleted:r,isRecents:o,isLoading:we,rootFolderId:d});return g(Eo,{modifiers:[al.configure({anchor:{x:0,y:0}})],plugins:(e)=>e.map((s)=>{if(s===oi)return oi.configure({dropAnimation:null});if(typeof s==="object"&&s!==null&&"plugin"in s&&s.plugin===oi)return oi.configure({dropAnimation:null});return s}),sensors:r||o||!v?[]:[Xn.configure({activationConstraints:[new an.Distance({value:10})]})],onDragStart:Qe,onDragEnd:Oe,children:[a("div",{className:"flex flex-1 flex-col bg-background min-h-0",children:g("div",{ref:Te,className:"flex flex-1 overflow-hidden relative",children:[!de&&a("div",{className:"md:hidden fixed inset-0 bg-black/50 z-40",onClick:()=>je(!0)}),(!fe||_)&&a("div",{className:"md:hidden fixed inset-0 bg-black/50 z-40",onClick:()=>{qe(!0),Ir.getState().setIsChatbotOpen(!1)}}),!de&&g(W,{children:[a("div",{className:"bg-background",style:{width:ke},children:a($r,{teamId:i,projectId:t,projectName:b,rootFolderId:d,dragState:j,ancestorFolders:D?.ancestorFolders??[]})}),a(Yr,{onResize:(e)=>{Me((s)=>Math.max(180,Math.min(400,s+e)))},className:"hidden md:block"})]}),a(Ea,{teamId:i,projectId:t,assetId:n,folders:I,files:u,totalFolders:xe,totalFiles:Ie,totalFoldersSize:be,totalFilesSize:ve,selectedItem:O,selectedIds:c,onItemSelect:Ce,onItemDoubleClick:Pe,onSaveField:te,displayStyle:ce,onClearSelection:Y,fetchNextFoldersPage:pe,hasNextFoldersPage:me||!1,isFetchingNextFoldersPage:he,fetchNextFilesPage:ye,hasNextFilesPage:Se||!1,isFetchingNextFilesPage:Fe,isRecentlyDeleted:r,isRecents:o,isLoading:we,filterConditions:k,onFilterChange:V,sort:A,onSortChange:$e,dragState:j,collection:f,onUpdateCollection:T,rootFolderId:d}),(!fe||_&&!ae)&&g(W,{children:[a(Yr,{onResize:(e)=>{Le((s)=>Math.max(240,Math.min(600,s-e)))},className:"hidden md:block"}),a("div",{style:{width:Ae},className:"bg-background flex flex-col flex-shrink-0",children:_&&!ae?a(ba,{projectId:t,contextAssetId:n}):Z?a(xa,{teamId:i,projectId:t,file:Z,onSaveField:(e,s)=>te(Z.id,e,s),members:Re,hideAnnotationControl:!0}):a("div",{className:"flex h-full items-center justify-center p-4 text-center text-sm text-muted-foreground",children:nR()})})]})]})}),a(Md,{children:j?.isActive?a("div",{className:B("flex items-center gap-2 rounded-md bg-popover px-3 py-2 text-sm font-medium text-popover-foreground shadow-md ring-1 ring-border cursor-grabbing",ce==="list"&&"w-30 h-[40px] px-0 flex-none overflow-hidden justify-center"),style:{transform:"translate(0px, 0px)"},children:g("span",{children:["Moving ",j.itemCount," item",j.itemCount!==1?"s":""]})}):null})]})}
|
|
2
2
|
export{xo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ac,lc}from"./chunk-0rgbxp24.js";import{Z}from"./chunk-4p31kxjh.js";var j=Z(function(v,f){var{defineProperty:i,getOwnPropertyDescriptor:s,getOwnPropertyNames:_}=Object,k=Object.prototype.hasOwnProperty,l=(t,e)=>{for(var o in e)i(t,o,{get:e[o],enumerable:!0})},u=(t,e,o,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let r of _(e))if(!k.call(t,r)&&r!==o)i(t,r,{get:()=>e[r],enumerable:!(n=s(e,r))||n.enumerable})}return t},d=(t)=>u(i({},"__esModule",{value:!0}),t),p={};l(p,{refreshToken:()=>O});f.exports=d(p);var c=ac(),a=lc();async function O(t){let e=t?.project,o=t?.team;if(!e&&!o){let r=(0,a.findProjectInfo)();e=r.projectId,o=r.teamId}else if(!e||!o){let r=(0,a.findProjectInfo)();e=e??r.projectId,o=o??r.teamId}if(!e)throw new c.VercelOidcTokenError("Failed to refresh OIDC token: No project specified. Try re-linking your project with `vc link`");let n=(0,a.loadToken)(e);if(!n||(0,a.isExpired)((0,a.getTokenPayload)(n.token),t?.expirationBufferMs)){let r=await(0,a.getVercelToken)({expirationBufferMs:t?.expirationBufferMs});if(n=await(0,a.getVercelOidcToken)(r,e,o),!n)throw new c.VercelOidcTokenError("Failed to refresh OIDC token");(0,a.saveToken)(n,e)}process.env.VERCEL_OIDC_TOKEN=n.token;return}});export default j();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{S,M,w,
|
|
1
|
+
import{S,M,w,L,a,g}from"./chunk-5ngftxjb.js";L();var Yr=({onResize:s,className:l=""})=>{let[t,r]=w(!1),o=M(0);S(()=>{if(!t)return;let e=(u)=>{let d=u.clientX-o.current;o.current=u.clientX,s(d)},n=()=>{r(!1),document.body.style.cursor=""};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),document.body.style.cursor="col-resize",()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n),document.body.style.cursor=""}},[t,s]);let c=(e)=>{e.preventDefault(),e.stopPropagation(),r(!0),o.current=e.clientX},i=()=>a("div",{className:"absolute inset-y-0 -left-4 -right-4 z-20 cursor-col-resize touch-none"});return g("div",{className:`group relative z-20 flex h-full w-[2px] cursor-col-resize items-center justify-center bg-border transition-all hover:bg-transparent ${l}`,onMouseDown:c,children:[a(i,{}),a("div",{className:`absolute inset-y-0 w-[2px] transition-all duration-300 ease-out
|
|
2
2
|
${t?"bg-blue-600 shadow-[0_0_15px_rgba(37,99,235,0.6)] opacity-100":"bg-blue-400 opacity-0 group-hover:opacity-100 group-hover:shadow-[0_0_8px_rgba(96,165,250,0.5)]"}
|
|
3
3
|
`}),a("div",{className:`absolute top-1/2 left-1/2 h-10 w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-blue-600 transition-all duration-300 ease-out
|
|
4
4
|
${t?"opacity-100 scale-100 shadow-[0_0_10px_rgba(37,99,235,0.5)]":"opacity-0 scale-75 group-hover:opacity-100 group-hover:scale-100"}`})]})};
|
|
5
|
-
export{
|
|
5
|
+
export{Yr};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var c=(s)=>s;function
|
|
3
|
-
export{
|
|
2
|
+
var c=(s)=>s;function Pa(s,i,t=c){let n=new Map;for(let e of s.tools??[])n.set(t(e.name),e);if(!i)return{immediate:[...n.values()],deferred:new Map};let a=new Set,f=new Set;for(let e of s.messages)if(e.role==="assistant"){for(let o of e.content)if(o.type==="toolCall")f.add(t(o.name))}else if(e.role==="toolResult")for(let o of e.addedToolNames??[]){let l=t(o);if(!f.has(l))a.add(l)}let d=[],r=new Map;for(let[e,o]of n)if(a.has(e))r.set(e,o);else d.push(o);return{immediate:d,deferred:r}}
|
|
3
|
+
export{Pa};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,Je}from"./chunk-5ngftxjb.js";import"./chunk-1tar0x8s.js";import"./chunk-34f64q0q.js";import"./chunk-qvp24w0q.js";import"./chunk-ajq9sxg0.js";import"./chunk-9405hzv2.js";import"./chunk-20w1w9x7.js";import"./chunk-thpw6tcj.js";import"./chunk-pq6kdp83.js";import"./chunk-6f3zhq64.js";import"./chunk-qm50g4n5.js";import"./chunk-q1fzgqsv.js";import"./chunk-d55138xx.js";import{wa}from"./chunk-9vxmgvc8.js";import"./chunk-c1wvs81k.js";import"./chunk-etrm28sy.js";import"./chunk-0a298n62.js";import"./chunk-s1j4v33x.js";import"./chunk-pdw77q09.js";import"./chunk-femnbfkj.js";import"./chunk-25npafhz.js";import"./chunk-7kah3zb5.js";function o(){let{shareId:e,folderId:r}=d.useParams();return a(wa,{shareId:e,initialFolderId:r})}var d=Je("/share/$shareId/folders/$folderId")({component:o});export{d as Route};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{
|
|
2
|
+
import{Um}from"./chunk-s6pk2zyg.js";import{Z}from"./chunk-4p31kxjh.js";var El=Z(function(d){var{SignatureV4:l,signatureV4aContainer:o}=Um(),r={CrtSignerV4:null},g="X-Amz-S3session-Token".toLowerCase();class a extends l{async signWithCredentials(e,i,n){let s=c(i);e.headers[g]=i.sessionToken;let t=this;return u(t,s),t.signRequest(e,n??{})}async presignWithCredentials(e,i,n){let s=c(i);return delete e.headers[g],e.headers["X-Amz-S3session-Token"]=i.sessionToken,e.query=e.query??{},e.query["X-Amz-S3session-Token"]=i.sessionToken,u(this,s),this.presign(e,n)}}function c(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function u(e,i){let n=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=n,Promise.resolve(i))}class h{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof r.CrtSignerV4==="function")return"crt";else if(typeof o.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new a(e),this.signerOptions=e}async sign(e,i={}){if(i.signingRegion==="*")return this.getSigv4aSigner().sign(e,i);return this.sigv4Signer.sign(e,i)}async signWithCredentials(e,i,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),t=r.CrtSignerV4;if(t&&s instanceof t)return s.signWithCredentials(e,i,n);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,i,n)}async presign(e,i={}){if(i.signingRegion==="*"){let n=this.getSigv4aSigner(),s=r.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,i);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,i)}async presignWithCredentials(e,i,n={}){if(n.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,i,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=r.CrtSignerV4,i=o.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!i)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(i&&typeof i==="function")this.sigv4aSigner=new i({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!i||typeof i!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new i({...this.signerOptions})}}return this.sigv4aSigner}}d.SignatureV4MultiRegion=h;d.SignatureV4SignWithCredentials=a;d.signatureV4CrtContainer=r});
|
|
3
|
+
export{El};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S,L,a,X,ee,Je,R,Q_,Pt,Dg,Qy}from"./chunk-5ngftxjb.js";import"./chunk-ajq9sxg0.js";import"./chunk-1tar0x8s.js";import"./chunk-34f64q0q.js";import"./chunk-qvp24w0q.js";import"./chunk-9405hzv2.js";import"./chunk-qm50g4n5.js";import"./chunk-ffjdkdcv.js";import"./chunk-50pfmxt1.js";import"./chunk-20w1w9x7.js";import"./chunk-thpw6tcj.js";import"./chunk-pq6kdp83.js";import"./chunk-6f3zhq64.js";import"./chunk-d55138xx.js";import{xo}from"./chunk-cagzye3j.js";import"./chunk-sz5zawfw.js";import{Ar}from"./chunk-b3t7gbhm.js";import"./chunk-c1wvs81k.js";import"./chunk-etrm28sy.js";import"./chunk-0a298n62.js";import"./chunk-s1j4v33x.js";import"./chunk-pdw77q09.js";import"./chunk-femnbfkj.js";import"./chunk-25npafhz.js";import"./chunk-7kah3zb5.js";L();function f(){let{projectId:e,collectionId:n}=I.useParams(),{teamId:c,ensureTeamIdForProject:i}=Pt();S(()=>{i(e)},[e,i]);let{data:l}=Ar(Dg(e)),{data:r,refetch:d}=X({...Qy(n)}),{mutate:p}=ee({mutationFn:async(t)=>{let s=await R.api.collections[":collectionId"].$patch({param:{collectionId:n},json:t});if(!s.ok)throw Error("Failed to update collection");return await s.json()},onSuccess:()=>{d()}}),o=l?.rootFolder,{data:m}=X({queryKey:["folders",o],queryFn:async()=>{let t=await R.api.folders[":folderId"].$get({param:{folderId:o}});if(!t.ok)throw Error("Failed to fetch folder");return await t.json()},enabled:!!o});if(!c||!o||!m||!r)return a("div",{children:Q_()});let u=r.filter.sourceFolderId||o;return a(xo,{teamId:c,projectId:e,projectName:l.name??"",assetId:u,rootFolderId:o,collection:r,onUpdateCollection:p})}var I=Je("/projects/$projectId/collections/$collectionId")({component:f});export{I as Route};
|