@fabiofiorita/porcelain 0.88.2 → 0.89.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 +56 -16
- package/web/dist/assets/_paired-BQkrI4SM.js +1 -0
- package/web/dist/assets/_paired-Bvuo9ETq.js +2 -0
- package/web/dist/assets/{access-B1ddZlps.js → access-Czr_5Nvq.js} +14 -14
- package/web/dist/assets/{edit-file-D4o1bywx.js → edit-file-CoGaqr7C.js} +1 -1
- package/web/dist/assets/{file-editor-MXkoMjoi.js → file-editor-CqYmInQP.js} +1 -1
- package/web/dist/assets/index-Bq6FLWHL.css +2 -0
- package/web/dist/assets/{index-CVnkxc5l.js → index-Ry3CvuRB.js} +3 -3
- package/web/dist/assets/pair-BQkrI4SM.js +1 -0
- package/web/dist/assets/{pair-DKAxtXy2.js → pair-Dl38bMAd.js} +1 -1
- package/web/dist/assets/{pair-B1zlXYYv.js → pair-W3dVdOPG.js} +2 -2
- package/web/dist/assets/{settings-page-CigAPPnS.js → settings-page-Br9q_UKH.js} +15 -15
- package/web/dist/assets/{useNavigate-BZWuXWB6.js → useNavigate-CSjcsPKp.js} +1 -1
- package/web/dist/assets/{workspace-error-Dc7KW7tw.js → workspace-error-B9TOlwBf.js} +1 -1
- package/web/dist/index.html +7 -7
- package/web/dist/assets/_paired-BC2PXdEF.js +0 -2
- package/web/dist/assets/_paired-BKE-zKoJ.js +0 -1
- package/web/dist/assets/index-DC_fpjQG.css +0 -2
- package/web/dist/assets/pair-BKE-zKoJ.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./workspace-error-B9TOlwBf.js";var t=e;export{t as errorComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jc as e,Nt as t,Oc as n,el as r,rl as i,tn as a,un as o}from"./access-
|
|
1
|
+
import{Jc as e,Nt as t,Oc as n,el as r,rl as i,tn as a,un as o}from"./access-Czr_5Nvq.js";import{t as s}from"./pair-W3dVdOPG.js";var c=e(),l=i();function u(){let e=(0,c.c)(6),i=s.useLoaderData(),u;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={select:d},e[0]=u):u=e[0];let f=s.useMatch(u),p=r(),m;e[1]===p?m=e[2]:(m=o(()=>{p.invalidate()}),e[1]=p,e[2]=m),n(m);let h=f?void 0:i?.reason,g;return e[3]!==f||e[4]!==h?(g=(0,l.jsx)(a,{children:(0,l.jsx)(t,{pending:f,reason:h})}),e[3]=f,e[4]=h,e[5]=g):g=e[5],g}function d(e){return e.isFetching===`loader`}export{u as component};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pair-
|
|
2
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Fa as t,Ga as n,Ml as r,Mt as i,Ol as a,Pl as o,Xc as s,cn as c,ll as l,ln as u,ol as d,rl as f,ul as p,vl as m}from"./access-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pair-BQkrI4SM.js","assets/workspace-error-B9TOlwBf.js","assets/access-Czr_5Nvq.js","assets/rolldown-runtime-XKyaHtl9.js","assets/sides-711aNttp.js","assets/preload-helper-7y9sWmk5.js","assets/announce-Cs-wr5G8.js","assets/pair-Dl38bMAd.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Fa as t,Ga as n,Ml as r,Mt as i,Ol as a,Pl as o,Xc as s,cn as c,ll as l,ln as u,ol as d,rl as f,ul as p,vl as m}from"./access-Czr_5Nvq.js";import{c as h,n as g,r as _,s as v}from"./useNavigate-CSjcsPKp.js";import{t as y}from"./preload-helper-7y9sWmk5.js";var b=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,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=h:this.parentRoute||m();let r=n?h:t?.path;r&&r!==`/`&&(r=l(r));let i=t?.id||r,a=n?h:d([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=d([`/`,a]));let o=a===`__root__`?`/`:d([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=p(o)},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=>v({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.`)}},x=class extends b{constructor(e){super(e)}};function S(e){return _({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function C(e){let{select:t,...n}=e;return _({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function w(e){return _({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 T(e){return _({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function E(e){return _({...e,select:t=>e.select?e.select(t.context):t.context})}var D=e(o(),1),O=f(),k=class extends b{constructor(e){super(e),this.useMatch=e=>_({...e,from:this.id}),this.useRouteContext=e=>E({...e,from:this.id}),this.useSearch=e=>T({...e,from:this.id}),this.useParams=e=>w({...e,from:this.id}),this.useLoaderDeps=e=>C({...e,from:this.id}),this.useLoaderData=e=>S({...e,from:this.id}),this.useNavigate=()=>g({from:this.fullPath}),this.Link=D.forwardRef((e,t)=>(0,O.jsx)(s,{ref:t,from:this.fullPath,...e}))}};function A(e){return new k(e)}function j(){return e=>N(e)}var M=class extends x{constructor(e){super(e),this.useMatch=e=>_({...e,from:this.id}),this.useRouteContext=e=>E({...e,from:this.id}),this.useSearch=e=>T({...e,from:this.id}),this.useParams=e=>w({...e,from:this.id}),this.useLoaderDeps=e=>C({...e,from:this.id}),this.useLoaderData=e=>S({...e,from:this.id}),this.useNavigate=()=>g({from:this.fullPath}),this.Link=D.forwardRef((e,t)=>(0,O.jsx)(s,{ref:t,from:this.fullPath,...e}))}};function N(e){return new M(e)}function P(e){return e=>{let t=A(e);return t.isRoot=!1,t}}function F(e,t){let n,i,o,s=()=>(n||=(o=void 0,e().then(e=>{n=void 0,c.preload=void 0,i=e[t??`default`]}).catch(e=>{n=void 0,o=e})),n),c=function(e){if(o){if(a(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(!i){if(r)r(s());else throw s()}return D.createElement(i,e)};return c.preload=s,c}var I=`porcelain.pairing.destination`;function L(e){e?.startsWith(`/`)&&!e.startsWith(`//`)&&!e.startsWith(`/pair`)&&sessionStorage.setItem(I,e)}function R(){return sessionStorage.getItem(I)??`/`}function z(){sessionStorage.removeItem(I)}var B=P(`/pair`)({preload:!1,pendingMs:0,pendingComponent:i,loader:async({context:e,abortController:r})=>{let i=R(),a=window.location.hash;if(!a){await c(e.registry)&&v({href:i,replace:!0,throw:!0});return}window.history.replaceState(window.history.state,``,`${window.location.pathname}${window.location.search}`);let o=n(a);if(!o)return{reason:`That link carried no pairing code.`};try{await u(e.registry,o,r.signal)}catch(n){return await c(e.registry)&&v({href:i,replace:!0,throw:!0}),{reason:t(n)}}z(),v({href:i,replace:!0,throw:!0})},errorComponent:F(()=>y(()=>import(`./pair-BQkrI4SM.js`),__vite__mapDeps([0,1,2,3,4,5,6])),`errorComponent`),component:F(()=>y(()=>import(`./pair-Dl38bMAd.js`),__vite__mapDeps([7,2,3,4,5,6])),`component`)});export{j as a,P as i,L as n,F as r,B as t};
|