rivet-design 0.18.0 → 0.18.2
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/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +2 -2
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +669 -234
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/cli/commands/serve.js +1 -1
- package/dist/routes/library/index.d.ts.map +1 -1
- package/dist/routes/library/index.js +2 -0
- package/dist/routes/library/index.js.map +1 -1
- package/dist/routes/library/profiles.d.ts.map +1 -1
- package/dist/routes/library/profiles.js +3 -4
- package/dist/routes/library/profiles.js.map +1 -1
- package/dist/services/VariantHistoryService.js +1 -1
- package/dist/services/VariantHistoryService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +38 -29
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/profiles/DesignProfiles.d.ts +13 -1
- package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
- package/dist/services/profiles/DesignProfiles.js +117 -6
- package/dist/services/profiles/DesignProfiles.js.map +1 -1
- package/dist/services/profiles/ProfilePreparation.d.ts +6 -1
- package/dist/services/profiles/ProfilePreparation.d.ts.map +1 -1
- package/dist/services/profiles/ProfilePreparation.js +12 -10
- package/dist/services/profiles/ProfilePreparation.js.map +1 -1
- package/dist/services/profiles/profileAccount.d.ts.map +1 -1
- package/dist/services/profiles/profileAccount.js +3 -1
- package/dist/services/profiles/profileAccount.js.map +1 -1
- package/dist/services/profiles/profileContext.d.ts +1 -1
- package/dist/services/profiles/profileContext.d.ts.map +1 -1
- package/dist/services/profiles/profileContext.js +28 -5
- package/dist/services/profiles/profileContext.js.map +1 -1
- package/dist/services/profiles/selectionContext.d.ts +7 -0
- package/dist/services/profiles/selectionContext.d.ts.map +1 -0
- package/dist/services/profiles/selectionContext.js +76 -0
- package/dist/services/profiles/selectionContext.js.map +1 -0
- package/dist/types/design-profile.d.ts +108 -0
- package/dist/types/design-profile.d.ts.map +1 -1
- package/dist/types/design-profile.js +44 -1
- package/dist/types/design-profile.js.map +1 -1
- package/dist/types/variant-reference.d.ts +19 -4
- package/dist/types/variant-reference.d.ts.map +1 -1
- package/dist/types/variant-reference.js +20 -8
- package/dist/types/variant-reference.js.map +1 -1
- package/package.json +2 -1
- package/src/ui/dist/assets/{LibraryApp-Bu7hVbt_.js → LibraryApp-NAzSe5xc.js} +5 -5
- package/src/ui/dist/assets/main-D7LJLJwW.js +438 -0
- package/src/ui/dist/assets/main-f2uWt6ZY.css +1 -0
- package/src/ui/dist/index.html +2 -2
- package/src/ui/dist/assets/main-CHyx_rEa.css +0 -1
- package/src/ui/dist/assets/main-CuiPb_rl.js +0 -438
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rivet-design",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"description": "Local visual web development tool with AI-powered code modification",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"workspaces": [
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"smoke:preview-dependencies": "node scripts/smoke-preview-dependencies.cjs",
|
|
52
52
|
"smoke:cli": "node scripts/smoke-cli.mjs",
|
|
53
53
|
"smoke:embedded-prototypes": "node --import tsx scripts/smoke-embedded-prototypes.mjs",
|
|
54
|
+
"smoke:library-preview-origins": "node scripts/smoke-library-preview-origins.mjs",
|
|
54
55
|
"perf:cli": "node scripts/bench-cli.mjs",
|
|
55
56
|
"check:pre-commit": "yarn ratchet && npx lint-staged && yarn build && cd src/ui && yarn typecheck && cd ../.. && cd src/proxy && yarn build && cd ../..",
|
|
56
57
|
"check:pre-push": "yarn test",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var Ie=i=>{throw TypeError(i)};var ve=(i,t,r)=>t.has(i)||Ie("Cannot "+r);var l=(i,t,r)=>(ve(i,t,"read from private field"),r?r.call(i):t.get(i)),I=(i,t,r)=>t.has(i)?Ie("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,r),C=(i,t,r,n)=>(ve(i,t,"write to private field"),n?n.call(i,r):t.set(i,r),r),O=(i,t,r)=>(ve(i,t,"access private method"),r);import{S as $e,s as ze,h as Ae,g as Ze,n as ne,r as et,Q as Ue,u as me,a as tt,b as st,c as b,e as rt,d as it,f as nt,i as He,j as Me,k as at,l as ot,m as ct,o as pe,p as Ke,q as lt,t as e,B as Z,v as we,R as dt,T as ut,P as ht,C as mt,w as pt,X as ft,D as bt,x as xt,y as vt,z as wt,A as yt,E as jt,F as gt,G as kt,H as St,I as q,J as Te,K as ue,L as Pt,M as Nt,N as Ct,O as Rt,U as Et}from"./main-
|
|
2
|
-
* @license lucide-react v1.
|
|
1
|
+
var Ie=i=>{throw TypeError(i)};var ve=(i,t,r)=>t.has(i)||Ie("Cannot "+r);var l=(i,t,r)=>(ve(i,t,"read from private field"),r?r.call(i):t.get(i)),I=(i,t,r)=>t.has(i)?Ie("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,r),C=(i,t,r,n)=>(ve(i,t,"write to private field"),n?n.call(i,r):t.set(i,r),r),O=(i,t,r)=>(ve(i,t,"access private method"),r);import{S as $e,s as ze,h as Ae,g as Ze,n as ne,r as et,Q as Ue,u as me,a as tt,b as st,c as b,e as rt,d as it,f as nt,i as He,j as Me,k as at,l as ot,m as ct,o as pe,p as Ke,q as lt,t as e,B as Z,v as we,R as dt,T as ut,P as ht,C as mt,w as pt,X as ft,D as bt,x as xt,y as vt,z as wt,A as yt,E as jt,F as gt,G as kt,H as St,I as q,J as Te,K as ue,L as Pt,M as Nt,N as Ct,O as Rt,U as Et}from"./main-D7LJLJwW.js";var W,J,M,V,K,re,ye,Fe,_t=(Fe=class extends $e{constructor(t,r){super();I(this,K);I(this,W);I(this,J);I(this,M);I(this,V);C(this,W,t),this.setOptions(r),this.bindMethods(),O(this,K,re).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=l(this,W).defaultMutationOptions(t),ze(this.options,r)||l(this,W).getMutationCache().notify({type:"observerOptionsUpdated",mutation:l(this,M),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ae(r.mutationKey)!==Ae(this.options.mutationKey)?this.reset():((n=l(this,M))==null?void 0:n.state.status)==="pending"&&l(this,M).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&l(this,M)&&(l(this,M).addObserver(this),O(this,K,re).call(this))}onUnsubscribe(){var t;this.hasListeners()||(t=l(this,M))==null||t.removeObserver(this)}onMutationUpdate(t){O(this,K,re).call(this),O(this,K,ye).call(this,t)}getCurrentResult(){return l(this,J)}reset(){var t;(t=l(this,M))==null||t.removeObserver(this),C(this,M,void 0),O(this,K,re).call(this),O(this,K,ye).call(this)}mutate(t,r){var n;return C(this,V,r),(n=l(this,M))==null||n.removeObserver(this),C(this,M,l(this,W).getMutationCache().build(l(this,W),this.options)),l(this,M).addObserver(this),l(this,M).execute(t)}},W=new WeakMap,J=new WeakMap,M=new WeakMap,V=new WeakMap,K=new WeakSet,re=function(){var r;const t=((r=l(this,M))==null?void 0:r.state)??Ze();C(this,J,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ye=function(t){ne.batch(()=>{var r,n,c,o,s,d,w,k;if(l(this,V)&&this.hasListeners()){const S=l(this,J).variables,u=l(this,J).context,p={client:l(this,W),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(n=(r=l(this,V)).onSuccess)==null||n.call(r,t.data,S,u,p)}catch(v){Promise.reject(v)}try{(o=(c=l(this,V)).onSettled)==null||o.call(c,t.data,null,S,u,p)}catch(v){Promise.reject(v)}}else if((t==null?void 0:t.type)==="error"){try{(d=(s=l(this,V)).onError)==null||d.call(s,t.error,S,u,p)}catch(v){Promise.reject(v)}try{(k=(w=l(this,V)).onSettled)==null||k.call(w,void 0,t.error,S,u,p)}catch(v){Promise.reject(v)}}}this.listeners.forEach(S=>{S(l(this,J))})})},Fe);function Le(i,t){const r=new Set(t);return i.filter(n=>!r.has(n))}var ee,L,te,G,F,X,ae,oe,ce,le,E,je,ge,Be,ke,Se,Pe,Qe,Ot=(Qe=class extends $e{constructor(t,r,n){super();I(this,E);I(this,ee);I(this,L);I(this,te);I(this,G);I(this,F);I(this,X);I(this,ae);I(this,oe);I(this,ce);I(this,le,[]);C(this,ee,t),C(this,G,n),C(this,te,[]),C(this,F,[]),C(this,L,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&l(this,F).forEach(t=>{t.subscribe(r=>{O(this,E,Se).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,l(this,F).forEach(t=>{t.destroy()})}setQueries(t,r){C(this,te,t),C(this,G,r),ne.batch(()=>{const n=l(this,F),c=O(this,E,ke).call(this,l(this,te));c.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const o=c.map(u=>u.observer),s=o.map(u=>u.getCurrentResult()),d=n.length!==o.length,w=o.some((u,p)=>u!==n[p]),k=d||w,S=k?!0:s.some((u,p)=>{const v=l(this,L)[p];return!v||!ze(u,v)});!k&&!S||(k&&(C(this,le,c),C(this,F,o)),C(this,L,s),this.hasListeners()&&(k&&(Le(n,o).forEach(u=>{u.destroy()}),Le(o,n).forEach(u=>{u.subscribe(p=>{O(this,E,Se).call(this,u,p)})})),O(this,E,Pe).call(this)))})}getCurrentResult(){return l(this,L)}getQueries(){return l(this,F).map(t=>t.getCurrentQuery())}getObservers(){return l(this,F)}getOptimisticResult(t,r){const n=O(this,E,ke).call(this,t),c=n.map(s=>s.observer.getOptimisticResult(s.defaultedQueryOptions)),o=n.map(s=>s.defaultedQueryOptions.queryHash);return[c,s=>O(this,E,ge).call(this,s??c,r,o),()=>O(this,E,je).call(this,c,n)]}},ee=new WeakMap,L=new WeakMap,te=new WeakMap,G=new WeakMap,F=new WeakMap,X=new WeakMap,ae=new WeakMap,oe=new WeakMap,ce=new WeakMap,le=new WeakMap,E=new WeakSet,je=function(t,r){const n=new Set;return r.map((c,o)=>{const s=t[o];return c.defaultedQueryOptions.notifyOnChangeProps?s:c.observer.trackResult(s,d=>{n.has(d)||(n.add(d),r.forEach(w=>{w.observer.trackProp(d)}))})})},ge=function(t,r,n){if(r){const c=l(this,ce),o=n!==void 0&&c!==void 0&&(c.length!==n.length||n.some((s,d)=>s!==c[d]));return(l(this,L)!==l(this,oe)||o||r!==l(this,ae))&&(C(this,ae,r),C(this,oe,l(this,L)),n!==void 0&&C(this,ce,n),C(this,X,et(l(this,X),r(t)))),l(this,X)}return t},Be=function(){var t;return!((t=l(this,G))!=null&&t.combine)||l(this,F).some((r,n)=>{var c;return r.options.suspense&&((c=l(this,L)[n])==null?void 0:c.data)===void 0})},ke=function(t){const r=new Map;l(this,F).forEach(c=>{const o=c.options.queryHash;if(!o)return;const s=r.get(o);s?s.push(c):r.set(o,[c])});const n=[];return t.forEach(c=>{var d;const o=l(this,ee).defaultQueryOptions(c),s=((d=r.get(o.queryHash))==null?void 0:d.shift())??new Ue(l(this,ee),o);n.push({defaultedQueryOptions:o,observer:s})}),n},Se=function(t,r){const n=l(this,F).indexOf(t);n!==-1&&(C(this,L,l(this,L).slice()),l(this,L)[n]=r,O(this,E,Pe).call(this))},Pe=function(){var t;if(this.hasListeners()){const r=O(this,E,Be).call(this),n=l(this,X),c=r?n:O(this,E,ge).call(this,O(this,E,je).call(this,l(this,L),l(this,le)),(t=l(this,G))==null?void 0:t.combine);(r||n!==c)&&ne.batch(()=>{this.listeners.forEach(o=>{o(l(this,L))})})}},Qe);function It({queries:i,...t},r){const n=me(),c=tt(),o=st(),s=t.subscribed!==!1,d=b.useMemo(()=>i.map(j=>{const g=n.defaultQueryOptions(j);return g._optimisticResults=c?"isRestoring":s?"optimistic":void 0,g}),[i,n,c,s]);d.forEach(j=>{rt(j);const g=n.getQueryCache().get(j.queryHash);it(j,o,g)}),nt(o);const[w]=b.useState(()=>new Ot(n,d,t)),[k,S,u]=w.getOptimisticResult(d,t.combine),p=!c&&s;b.useSyncExternalStore(b.useCallback(j=>p?w.subscribe(ne.batchCalls(j)):He,[w,p]),()=>w.getCurrentResult(),()=>w.getCurrentResult()),b.useEffect(()=>{w.setQueries(d,t)},[d,t,w]);const v=k.some((j,g)=>Me(d[g],j))?k.flatMap((j,g)=>{const y=d[g];if(y&&Me(y,j)){const B=new Ue(n,y);return at(y,B,o)}return[]}):[];if(v.length>0)throw Promise.all(v);const R=k.find((j,g)=>{const y=d[g];return y&&ot({result:j,errorResetBoundary:o,throwOnError:y.throwOnError,query:n.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R)throw R.error;return S(u())}function ie(i,t){const r=me(),[n]=b.useState(()=>new _t(r,i));b.useEffect(()=>{n.setOptions(i)},[n,i]);const c=b.useSyncExternalStore(b.useCallback(s=>n.subscribe(ne.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=b.useCallback((...s)=>{n.mutate(s[0],s[1]).catch(He)},[n]);if(c.error&&ct(n.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:o,mutateAsync:c.mutate}}/**
|
|
2
|
+
* @license lucide-react v1.48.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/const We={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};We.node;const At=pe(We);/**
|
|
7
|
-
* @license lucide-react v1.
|
|
7
|
+
* @license lucide-react v1.48.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/const Ve={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};Ve.node;const Mt=pe(Ve);/**
|
|
12
|
-
* @license lucide-react v1.
|
|
12
|
+
* @license lucide-react v1.48.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/const Ye={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};Ye.node;const De=pe(Ye);/**
|
|
17
|
-
* @license lucide-react v1.
|
|
17
|
+
* @license lucide-react v1.48.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|