@fabiofiorita/porcelain 0.76.0 → 0.77.0
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/README.md +1 -1
- package/package.json +1 -1
- package/server/src/cli/main.mjs +8243 -7639
- package/web/dist/assets/_-BTvJDc4N.js +1 -0
- package/web/dist/assets/_layerId-NWxUwyYM.js +1 -0
- package/web/dist/assets/_paired-Cd6bWv-d.js +1 -0
- package/web/dist/assets/_paired-Dhf6bO7a.js +1 -0
- package/web/dist/assets/_paired-LyVh2Ev9.js +1 -0
- package/web/dist/assets/_paired-z3_np6A6.js +1 -0
- package/web/dist/assets/_reviewId-DskS2QHc.js +1 -0
- package/web/dist/assets/_revision-DbkYDGJy.js +1 -0
- package/web/dist/assets/{_section-BQ20AKhJ.js → _section-CJMMR6oZ.js} +1 -1
- package/web/dist/assets/_worktreeId-CIrrQ4wO.js +1 -0
- package/web/dist/assets/_worktreeId-CMLa7jIe.js +1 -0
- package/web/dist/assets/_worktreeId-Dhf6bO7a.js +1 -0
- package/web/dist/assets/_worktreeId-LyVh2Ev9.js +1 -0
- package/web/dist/assets/access-Cc9LnHhZ.js +19 -0
- package/web/dist/assets/connected-workspace-BCSEyUOs.js +1 -0
- package/web/dist/assets/desktop-actions-BxLgt0EB.js +1 -0
- package/web/dist/assets/{edit-file-rWLFkawP.js → edit-file-oBFPJFcX.js} +20 -20
- package/web/dist/assets/{file-editor-CmaAI7mD.js → file-editor--RrdNChU.js} +11 -11
- package/web/dist/assets/index-BXmzx3MO.js +10 -0
- package/web/dist/assets/{lazyRouteComponent-DF1peoaD.js → lazyRouteComponent-B5-ihfdW.js} +1 -1
- package/web/dist/assets/pair-BC_fDEO8.js +1 -0
- package/web/dist/assets/pair-Dhf6bO7a.js +1 -0
- package/web/dist/assets/{review-route-CilLpBvt.js → review-route-BHH1bYmh.js} +1 -1
- package/web/dist/assets/reviews-URZ7SKqW.js +1396 -0
- package/web/dist/assets/useMatch-DLaUbB76.js +1 -0
- package/web/dist/assets/useRouterState-BxhFGwfy.js +1 -0
- package/web/dist/assets/workspace-error-CjLz95tb.js +1 -0
- package/web/dist/assets/workspace-pending-CSiUulq0.js +1 -0
- package/web/dist/index.html +7 -7
- package/web/dist/assets/_-mTAQQLxa.js +0 -1
- package/web/dist/assets/_layerId-D-Ld4zoA.js +0 -1
- package/web/dist/assets/_paired-DQq2L_lM.js +0 -1
- package/web/dist/assets/_paired-DwQfzpPo.js +0 -1
- package/web/dist/assets/_paired-P-FUnX-y.js +0 -1
- package/web/dist/assets/_paired-VrOGlA1G.js +0 -1
- package/web/dist/assets/_reviewId-CR5Y2cjT.js +0 -1
- package/web/dist/assets/_revision-1wivYK0j.js +0 -1
- package/web/dist/assets/_worktreeId-BPp_s24t.js +0 -1
- package/web/dist/assets/_worktreeId-DQq2L_lM.js +0 -1
- package/web/dist/assets/_worktreeId-Dfp8EiPX.js +0 -1
- package/web/dist/assets/_worktreeId-P-FUnX-y.js +0 -1
- package/web/dist/assets/access-CPhumIOz.js +0 -19
- package/web/dist/assets/connected-workspace-Cqk_MV5h.js +0 -1
- package/web/dist/assets/desktop-actions-DEpOe60L.js +0 -1
- package/web/dist/assets/index-DbOyN2aI.js +0 -10
- package/web/dist/assets/pair-CwRRIQuD.js +0 -1
- package/web/dist/assets/pair-DQq2L_lM.js +0 -1
- package/web/dist/assets/reviews-Knu80SJM.js +0 -1396
- package/web/dist/assets/useMatch-CmjLPEeI.js +0 -1
- package/web/dist/assets/useRouterState-CFV0Nv_N.js +0 -1
- package/web/dist/assets/workspace-error-B0KK7kzA.js +0 -1
- package/web/dist/assets/workspace-pending-DnmDeSe-.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{$c as t,
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{$c as t,Ac as n,Dc as r,Yc as i,hc as a,jc as o,qc as s,tl as c,vc as l,wc as u,zc as d}from"./access-Cc9LnHhZ.js";import{t as f}from"./root-DLTE-HSj.js";import{t as p}from"./useMatch-DLaUbB76.js";function m(e){e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href==`string`&&s(e.href)&&(e.reloadDocument=!0);let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function h(e){return e instanceof Response&&!!e.options}var g=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,i=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=f:this.parentRoute||d();let a=i?f:t?.path;a&&a!==`/`&&(a=n(a));let s=t?.id||a,c=i?f:r([this.parentRoute.id===`__root__`?``:this.parentRoute.id,s]);a===`__root__`&&(a=`/`),c!==`__root__`&&(c=r([`/`,c]));let l=c===`__root__`?`/`:r([this.parentRoute.fullPath,a]);this._path=a,this._id=c,this._fullPath=l,this._to=o(l)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>m({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},_=class extends g{constructor(e){super(e)}};function v(e){return p({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function y(e){let{select:t,...n}=e;return p({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function b(e){return p({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function x(e){return p({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function S(e){return p({...e,select:t=>e.select?e.select(t.context):t.context})}var C=e(c(),1),w=u(),T=class extends g{constructor(e){super(e),this.useMatch=e=>p({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({...e,from:this.id}),this.useParams=e=>b({...e,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>l({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,w.jsx)(a,{ref:t,from:this.fullPath,...e}))}};function E(e){return new T(e)}function D(){return e=>k(e)}var O=class extends _{constructor(e){super(e),this.useMatch=e=>p({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({...e,from:this.id}),this.useParams=e=>b({...e,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>l({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,w.jsx)(a,{ref:t,from:this.fullPath,...e}))}};function k(e){return new O(e)}function A(e){return e=>{let t=E(e);return t.isRoot=!1,t}}function j(e,n){let r,a,o,s=()=>(r||=(o=void 0,e().then(e=>{r=void 0,c.preload=void 0,a=e[n??`default`]}).catch(e=>{r=void 0,o=e})),r),c=function(e){if(o){if(i(o)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw o}if(!a){if(t)t(s());else throw s()}return C.createElement(a,e)};return c.preload=s,c}export{m as a,h as i,A as n,D as r,j as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Cn as e,ac as t,fc as n,hn as r,vn as i,wc as a,xc as o}from"./access-Cc9LnHhZ.js";import{c as s}from"./index-BXmzx3MO.js";var c=n(),l=a();function u(){let n=(0,c.c)(6),a=s.useLoaderData(),u;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={select:d},n[0]=u):u=n[0];let f=s.useMatch(u),p=o(),m;n[1]===p?m=n[2]:(m=e(()=>{p.invalidate()}),n[1]=p,n[2]=m),t(m);let h=f?void 0:a?.reason,g;return n[3]!==f||n[4]!==h?(g=(0,l.jsx)(i,{children:(0,l.jsx)(r,{pending:f,reason:h})}),n[3]=f,n[4]=h,n[5]=g):g=n[5],g}function d(e){return e.isFetching===`loader`}export{u as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./workspace-error-CjLz95tb.js";var t=e;export{t as errorComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Dn as e,
|
|
1
|
+
import{Dn as e,Fo as t,H as n,Io as r,Ro as i,V as a,fc as o,g as s,ns as c,vc as l,wc as u,wn as d}from"./access-Cc9LnHhZ.js";import{b as f,n as p,r as m}from"./reviews-URZ7SKqW.js";import{R as h,Xr as g,qr as _}from"./edit-file-oBFPJFcX.js";import{t as v}from"./connected-workspace-BCSEyUOs.js";var y=o(),b=u();function x(o){let u=(0,y.c)(36),{reviewId:x,revision:S,decision:C,environment:w,entry:T,side:E}=o,D=e(),O;if(u[0]!==w||u[1]!==D){let e;u[3]===w?e=u[4]:(e=e=>e.remote.environmentId===w,u[3]=w,u[4]=e),O=D.find(e),u[0]=w,u[1]=D,u[2]=O}else O=u[2];let k=O,A=d(k?.connection),j=l(),M;u[5]===j?M=u[6]:(M=()=>{j({to:`/`,search:{}})},u[5]=j,u[6]=M);let N=M;if(w&&!k){let e;return u[7]!==N||u[8]!==j?(e=(0,b.jsx)(v,{children:e=>(0,b.jsx)(a,{navigation:(0,b.jsx)(s,{ref:e.attach,"aria-label":`Toggle Sidebar`}),title:`Review`,children:(0,b.jsxs)(n,{title:`Computer not paired`,description:`This review's remote computer is not paired here.`,children:[(0,b.jsx)(c,{variant:`outline`,onClick:()=>void j({to:`/settings/$section`,params:{section:`computers`}}),children:`Computer settings`}),(0,b.jsx)(c,{variant:`ghost`,onClick:N,children:`Back to workspace`})]})})}),u[7]=N,u[8]=j,u[9]=e):e=u[9],e}let P=S===void 0?void 0:Number(S);if(P!==void 0&&(!Number.isSafeInteger(P)||P<1)){let e;return u[10]!==N||u[11]!==A||u[12]!==w||u[13]!==j||u[14]!==x||u[15]!==S?(e=(0,b.jsx)(v,{children:e=>(0,b.jsx)(p,{navigation:(0,b.jsx)(s,{ref:e.attach,"aria-label":`Toggle Sidebar`}),reviewId:x,revision:S,context:A,onBack:N,onRevision:()=>void j({to:`/reviews/$reviewId`,params:{reviewId:x},search:{environment:w,decision:void 0}})})}),u[10]=N,u[11]=A,u[12]=w,u[13]=j,u[14]=x,u[15]=S,u[16]=e):e=u[16],e}let F;u[17]!==w||u[18]!==x?(F={reviewId:x,environment:w},u[17]=w,u[18]=x,u[19]=F):F=u[19];let I;u[20]===k?I=u[21]:(I=k?{remote:k}:{},u[20]=k,u[21]=I);let L;u[22]!==N||u[23]!==A||u[24]!==C||u[25]!==T||u[26]!==w||u[27]!==j||u[28]!==P||u[29]!==x||u[30]!==E?(L=e=>(0,b.jsx)(m,{navigation:(0,b.jsxs)(t,{children:[(0,b.jsx)(i,{render:(0,b.jsx)(s,{ref:e.attach,"aria-label":`Toggle Sidebar`,"aria-keyshortcuts":g()===`mac`?`Meta+B`:`Control+B`})}),(0,b.jsxs)(r,{children:[`Toggle Sidebar`,` `,(0,b.jsx)(f,{children:_(h.toggleNavigator)})]})]}),reviewId:x,documentNavigation:{search:{entry:T,side:E},onSearch:(e,t)=>{j({to:`.`,search:t=>({...t,...e}),...t})}},revision:P,decision:C,context:A,onBack:N,onRevision:e=>{j(e===void 0?{to:`/reviews/$reviewId`,params:{reviewId:x},search:{environment:w,decision:void 0}}:{to:`/reviews/$reviewId/$revision`,params:{reviewId:x,revision:String(e)},search:{environment:w,decision:void 0}})},onStop:e=>{j(P===void 0?{to:`/reviews/$reviewId`,params:{reviewId:x},search:{environment:w,entry:void 0,side:E,decision:e}}:e===void 0?{to:`/reviews/$reviewId/$revision`,params:{reviewId:x,revision:String(P)},search:{environment:w,entry:void 0,side:E,decision:void 0}}:{to:`/reviews/$reviewId/$revision/decisions/$layerId`,params:{reviewId:x,revision:String(P),layerId:e},search:{environment:w,entry:void 0,side:E,decision:void 0}})}}),u[22]=N,u[23]=A,u[24]=C,u[25]=T,u[26]=w,u[27]=j,u[28]=P,u[29]=x,u[30]=E,u[31]=L):L=u[31];let R;return u[32]!==F||u[33]!==I||u[34]!==L?(R=(0,b.jsx)(v,{openReview:F,...I,children:L}),u[32]=F,u[33]=I,u[34]=L,u[35]=R):R=u[35],R}export{x as t};
|