db-studio 1.7.2 → 1.7.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/dist/core-dist/assets/{_pathlessLayout-CrtbzsyH.js → _pathlessLayout-C4T813nc.js} +1 -1
- package/dist/core-dist/assets/_queryId-CzDXQjlo.js +1 -0
- package/dist/core-dist/assets/_table-Bu3xLCnw.js +39 -0
- package/dist/core-dist/assets/{_table-ai9HDUf8.js → _table-CxQw9Zgt.js} +1 -1
- package/dist/core-dist/assets/{cdoe-editor-Ct5sUeyy.js → cdoe-editor-Cez2GFq-.js} +1 -1
- package/dist/core-dist/assets/{dialog-BQZ4z_3G.js → dialog-DR7r4hKq.js} +1 -1
- package/dist/core-dist/assets/index-B1s9iEHF.js +1 -0
- package/dist/core-dist/assets/index-YjvhQnuu.js +1 -0
- package/dist/core-dist/assets/index-xtX-qDgL.js +57 -0
- package/dist/core-dist/assets/{queries.store-QV4hp8zS.js → queries.store-DGrjGe-g.js} +1 -1
- package/dist/core-dist/assets/{runner-tab-942uJn7n.js → runner-tab-CsEKHazt.js} +3 -3
- package/dist/core-dist/assets/{scroll-area-CPCU4NOC.js → scroll-area-B80EsjFm.js} +1 -1
- package/dist/core-dist/assets/{tooltip-4I9-F957.js → tooltip-DBQw-B98.js} +1 -1
- package/dist/core-dist/assets/{use-delete-column-VjacPbPI.js → use-delete-column-c-7ogRF5.js} +1 -1
- package/dist/core-dist/index.html +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/core-dist/assets/_queryId-D6O1_Xvj.js +0 -1
- package/dist/core-dist/assets/_table-5eHqhTIv.js +0 -39
- package/dist/core-dist/assets/index-BZAznU-i.js +0 -57
- package/dist/core-dist/assets/index-Bxi6VqMh.js +0 -1
- package/dist/core-dist/assets/index-Xsj_t9Zu.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./radix-ui-c-7GrHMM.js";import{R as t}from"./runner-tab-942uJn7n.js";import"./icons-B2mES2Qq.js";import"./react-dom-BcUZDRtY.js";import"./monaco-editor-BMj4E99D.js";import"./tanstack-BaWakKkc.js";import"./index-BZAznU-i.js";import"./index-Xsj_t9Zu.js";import"./format-cell-value-Cn3RA9a1.js";import"./tooltip-4I9-F957.js";import"./queries.store-QV4hp8zS.js";function f(){return o.jsx(t,{})}export{f as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b3 as _,b4 as k,b5 as W,b6 as ee,b7 as K,b8 as w,b9 as te,ba as re,bb as L,bc as se,bd as ne,be as ue}from"./index-BZAznU-i.js";import{r as p}from"./icons-B2mES2Qq.js";function Y(e,t,r){try{return e(t)}catch(n){return ue("[nuqs] Error while parsing value `%s`: %O"+(r?" (for key `%s`)":""),t,n,r),null}}function g(e){function t(r){if(typeof r>"u")return null;let n="";if(Array.isArray(r)){if(r[0]===void 0)return null;n=r[0]}return typeof r=="string"&&(n=r),Y(e.parse,n)}return{type:"single",eq:(r,n)=>r===n,...e,parseServerSide:t,withDefault(r){return{...this,defaultValue:r,parseServerSide(n){return t(n)??r}}},withOptions(r){return{...this,...r}}}}g({parse:e=>e,serialize:String});g({parse:e=>{const t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});g({parse:e=>{const t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)});g({parse:e=>{const t=parseInt(e,16);return t==t?t:null},serialize:e=>{const t=Math.round(e).toString(16);return(t.length&1?"0":"")+t}});g({parse:e=>{const t=parseFloat(e);return t==t?t:null},serialize:String});g({parse:e=>e.toLowerCase()==="true",serialize:String});function G(e,t){return e.valueOf()===t.valueOf()}g({parse:e=>{const t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:G});g({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:G});g({parse:e=>{const t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:G});function ce(e){return g({parse:t=>{try{const r=JSON.parse(t);if("~standard"in e){const n=e["~standard"].validate(r);if(n instanceof Promise)throw new Error("[nuqs] Only synchronous Standard Schemas are supported in parseAsJson.");return n.issues?null:n.value}return e(r)}catch{return null}},serialize:t=>JSON.stringify(t),eq(t,r){return t===r||JSON.stringify(t)===JSON.stringify(r)}})}const $=te(),le={};function oe(e,t={}){const r=p.useId(),n=_(),h=k(),{history:U="replace",scroll:j=n?.scroll??!1,shallow:E=n?.shallow??!0,throttleMs:d=W.timeMs,limitUrlUpdates:l=n?.limitUrlUpdates,clearOnDefault:f=n?.clearOnDefault??!0,startTransition:b,urlKeys:O=le}=t,i=Object.keys(e).join(","),o=p.useMemo(()=>Object.fromEntries(Object.keys(e).map(s=>[s,O[s]??s])),[i,JSON.stringify(O)]),P=ee(Object.values(o)),y=P.searchParams,z=p.useRef({}),V=p.useMemo(()=>Object.fromEntries(Object.keys(e).map(s=>[s,e[s].defaultValue??null])),[Object.values(e).map(({defaultValue:s})=>s).join(",")]),I=K.useQueuedQueries(Object.values(o)),[J,T]=p.useState(()=>B(e,O,y??new URLSearchParams,I).state),m=p.useRef(J);if(w("[nuq+ %s `%s`] render - state: %O, iSP: %s",r,i,J,y),Object.keys(z.current).join("&")!==Object.values(o).join("&")){const{state:s,hasChanged:u}=B(e,O,y,I,z.current,m.current);u&&(w("[nuq+ %s `%s`] State changed: %O",r,i,{state:s,initialSearchParams:y,queuedQueries:I,queryRef:z.current,stateRef:m.current}),m.current=s,T(s)),z.current=Object.fromEntries(Object.entries(o).map(([a,S])=>[S,e[a]?.type==="multi"?y?.getAll(S):y?.get(S)??null]))}p.useEffect(()=>{const{state:s,hasChanged:u}=B(e,O,y,I,z.current,m.current);u&&(w("[nuq+ %s `%s`] State changed: %O",r,i,{state:s,initialSearchParams:y,queuedQueries:I,queryRef:z.current,stateRef:m.current}),m.current=s,T(s))},[Object.values(o).map(s=>`${s}=${y?.getAll(s)}`).join("&"),JSON.stringify(I)]),p.useEffect(()=>{const s=Object.keys(e).reduce((u,a)=>(u[a]=({state:S,query:M})=>{T(C=>{const{defaultValue:A}=e[a],R=o[a],N=S??A??null,v=C[a]??A??null;return Object.is(v,N)?(w("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",r,i,R,S,A,m.current),C):(m.current={...m.current,[a]:N},z.current[R]=M,w("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",r,i,R,S,A,m.current),m.current)})},u),{});for(const u of Object.keys(e)){const a=o[u];w("[nuq+ %s `%s`] Subscribing to sync for `%s`",r,a,i),$.on(a,s[u])}return()=>{for(const u of Object.keys(e)){const a=o[u];w("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",r,a,i),$.off(a,s[u])}}},[i,o]);const Z=p.useCallback((s,u={})=>{const a=Object.fromEntries(Object.keys(e).map(v=>[v,null])),S=typeof s=="function"?s(X(m.current,V))??a:s??a;w("[nuq+ %s `%s`] setState: %O",r,i,S);let M,C=0,A=!1;const R=[];for(let[v,q]of Object.entries(S)){const c=e[v],x=o[v];if(!c||q===void 0)continue;(u.clearOnDefault??c.clearOnDefault??f)&&q!==null&&c.defaultValue!==void 0&&(c.eq??((D,F)=>D===F))(q,c.defaultValue)&&(q=null);const H=q===null?null:(c.serialize??String)(q);$.emit(x,{state:q,query:H});const Q={key:x,query:H,options:{history:u.history??c.history??U,shallow:u.shallow??c.shallow??E,scroll:u.scroll??c.scroll??j,startTransition:u.startTransition??c.startTransition??b}};if(u?.limitUrlUpdates?.method==="debounce"||l?.method==="debounce"||c.limitUrlUpdates?.method==="debounce"){Q.options.shallow===!0&&console.warn(re(422));const D=u?.limitUrlUpdates?.timeMs??l?.timeMs??c.limitUrlUpdates?.timeMs??W.timeMs,F=K.push(Q,D,P,h);C<D&&(M=F,C=D)}else{const D=u?.limitUrlUpdates?.timeMs??c?.limitUrlUpdates?.timeMs??l?.timeMs??u.throttleMs??c.throttleMs??d;R.push(K.abort(x)),L.push(Q,D),A=!0}}const N=R.reduce((v,q)=>q(v),A?L.flush(P,h):L.getPendingPromise(P));return M??N},[i,U,E,j,d,l?.method,l?.timeMs,b,o,P.updateUrl,P.getSearchParamsSnapshot,P.rateLimitFactor,h,V]);return[p.useMemo(()=>X(J,V),[J,V]),Z]}function B(e,t,r,n,h,U){let j=!1;const E=Object.entries(e).reduce((d,[l,f])=>{const b=t?.[l]??l,O=n[b],i=f.type==="multi"?[]:null,o=O===void 0?(f.type==="multi"?r?.getAll(b):r?.get(b))??i:O;return h&&U&&se(h[b]??i,o)?(d[l]=U[l]??null,d):(j=!0,d[l]=(ne(o)?null:Y(f.parse,o,b))??null,h&&(h[b]=o),d)},{});if(!j){const d=Object.keys(e),l=Object.keys(U??{});j=d.length!==l.length||d.some(f=>!l.includes(f))}return{state:E,hasChanged:j}}function X(e,t){return Object.fromEntries(Object.keys(e).map(r=>[r,e[r]??t[r]??null]))}function fe(e,t={}){const{parse:r,type:n,serialize:h,eq:U,defaultValue:j,...E}=t,[{[e]:d},l]=oe({[e]:{parse:r??(f=>f),type:n,serialize:h,eq:U,defaultValue:j}},E);return[d,p.useCallback((f,b={})=>l(O=>({[e]:typeof f=="function"?f(O[e]):f}),b),[e,l])]}export{ce as p,fe as u};
|