wizards 0.3.5 → 0.3.6
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/apps/runtime/dist/docs/user/test-and-share.md +21 -11
- package/apps/runtime/dist/routes/studio.js +15 -2
- package/apps/runtime/dist/services/wizards.js +25 -0
- package/apps/web/dist/assets/{AboutDialog-D1N4-3FE.js → AboutDialog-Dz_tYBSU.js} +1 -1
- package/apps/web/dist/assets/{ChangelogDialog-VEBTlC3f.js → ChangelogDialog-m2M7gZiB.js} +1 -1
- package/apps/web/dist/assets/{ChatView-DSRUEpb6.js → ChatView-D21o-lq8.js} +2 -2
- package/apps/web/dist/assets/EditorPage-D6j3dQpu.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-86xWWfdk.js → FlowPreview-BdRy7FO7.js} +1 -1
- package/apps/web/dist/assets/{Harness-CF6H2TYJ.js → Harness-DmJkTwOO.js} +1 -1
- package/apps/web/dist/assets/{Marketplace-C-Vz3yEk.js → Marketplace-B-gy2onK.js} +2 -2
- package/apps/web/dist/assets/{NewWizardChannels-Cc7gDitg.js → NewWizardChannels-B3FEpsJ-.js} +1 -1
- package/apps/web/dist/assets/{NewWizardPage-sY5q-l99.js → NewWizardPage-CT1lThNM.js} +1 -1
- package/apps/web/dist/assets/{ProjectPage-iSdpJAZS.js → ProjectPage-BIanCF0m.js} +2 -2
- package/apps/web/dist/assets/{PublicRunner-BgRXMUxS.js → PublicRunner-H1fXa9BK.js} +1 -1
- package/apps/web/dist/assets/{ReadOnly-mhKW496R.js → ReadOnly-CaGzgOPe.js} +1 -1
- package/apps/web/dist/assets/{RunDrawer-B0gJzdxH.js → RunDrawer-8sjkAbm5.js} +1 -1
- package/apps/web/dist/assets/{RunnerView-CTRFgyu5.js → RunnerView-CJ4cLA_0.js} +1 -1
- package/apps/web/dist/assets/{SettingsPage-CBF8i6j6.js → SettingsPage-BsdwE1OA.js} +1 -1
- package/apps/web/dist/assets/{SetupPage-Fpz9aSLN.js → SetupPage-sqrv7Auf.js} +1 -1
- package/apps/web/dist/assets/{SharePage-Dv3Csh4A.js → SharePage-B6ets1ot.js} +1 -1
- package/apps/web/dist/assets/{brand-BamUjXVr.js → brand-BRw18WJF.js} +1 -1
- package/apps/web/dist/assets/changelog-BOFdRjx2.js +1 -0
- package/apps/web/dist/assets/{circle-alert-CYs622_r.js → circle-alert-CpuMIhbH.js} +1 -1
- package/apps/web/dist/assets/{esm-B52LIMhP.js → esm-DRaZAcXQ.js} +1 -1
- package/apps/web/dist/assets/{index-CDdJDojq.css → index-DY9CslcT.css} +1 -1
- package/apps/web/dist/assets/{index-Bdx1Qity.js → index-DkDBEMwz.js} +4 -4
- package/apps/web/dist/assets/{lock-BvSWZOin.js → lock-BGotwAyN.js} +1 -1
- package/apps/web/dist/assets/{phone-CI2Flerg.js → phone-CA2A8W7I.js} +1 -1
- package/apps/web/dist/assets/{session-BEHF6g4Y.js → session-DBOQL_bg.js} +1 -1
- package/apps/web/dist/assets/{settings-menu-BOOPxcJH.js → settings-menu-DxswVOqQ.js} +1 -1
- package/apps/web/dist/assets/{ui-CMdSOoUZ.js → ui-DAHMnAVc.js} +1 -1
- package/apps/web/dist/assets/{upload-Cz9HgBT9.js → upload-DLbJVvfd.js} +1 -1
- package/apps/web/dist/assets/{volume-2-CyQuz1nn.js → volume-2-KaKQ4zMJ.js} +1 -1
- package/apps/web/dist/index.html +7 -7
- package/apps/web/dist/mcp/flow.html +2 -2
- package/node_modules/@engenty-wizards/shared/dist/changes.d.ts +22 -0
- package/node_modules/@engenty-wizards/shared/dist/changes.js +61 -0
- package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +8 -8
- package/node_modules/@engenty-wizards/shared/dist/marketplace.d.ts +1 -1
- package/node_modules/@engenty-wizards/shared/dist/wizard-package.d.ts +1 -1
- package/package.json +1 -1
- package/apps/web/dist/assets/EditorPage-UkaHDklX.js +0 -3
- package/apps/web/dist/assets/changelog-ViHoNW7e.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dn as e}from"./ui-
|
|
1
|
+
import{dn as e}from"./ui-DAHMnAVc.js";var t={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dn as e}from"./ui-
|
|
1
|
+
import{dn as e}from"./ui-DAHMnAVc.js";var t={name:`phone`,size:24,node:[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t}from"./jsx-runtime-BNakU3Ej.js";import{r as n}from"./logo-C4V2_3Ar.js";import{V as r,l as i,m as a,st as o,v as s}from"./ui-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t}from"./jsx-runtime-BNakU3Ej.js";import{r as n}from"./logo-C4V2_3Ar.js";import{V as r,l as i,m as a,st as o,v as s}from"./ui-DAHMnAVc.js";var c=e(t(),1);function l(e){return Object.fromEntries(r.filter(t=>e[t]?.startsWith(`apple:`)).map(e=>[e,``]))}function u(e){return e.split(/\s+/).map(e=>e[0]??``).join(``).slice(0,2).toUpperCase()}function d(){let e=g().data?.limits.projects;return e===null||(e??1)>1}function f(){return g().data?.limits.build??!0}function p(){return g().data?.limits.create??!0}function m(){let e=g().data;return!e||e.mode===`local`||e.tenant.role!==`member`}function h(e){return e.mode===`managed`?e.credits:e.models?.source===`account`?e.account?.credits??null:null}function g(){return n({queryKey:[`me`],queryFn:async()=>{try{return await i.get(`/api/studio/me`)}catch(e){if(e instanceof o&&e.status===401)return null;throw e}},staleTime:3e4})}function _(e=!0){return n({queryKey:[`projects`],queryFn:()=>i.get(`/api/studio/projects`),enabled:e})}var v=`wz.project`;function y(){try{return localStorage.getItem(v)}catch{return null}}var b=y(),x=new Set;function S(e){b=e;try{localStorage.setItem(v,e)}catch{}for(let e of x)e()}function C(){let e=_(),t=(0,c.useSyncExternalStore)(e=>(x.add(e),()=>x.delete(e)),()=>b),n=e.data??[];return{project:n.find(e=>e.id===t)??n[0]??null,projects:n,select:S,loading:e.isLoading}}function w(e,t){return n({queryKey:[`cloud`,e],queryFn:()=>i.get(`/api/studio/wizards/${e}/cloud`),enabled:t})}function T(e){return e instanceof o&&e.body?.code===`read_only`?e.message:null}async function E(){await fetch(s(`/api/auth/sign-out`),{method:`POST`,credentials:`include`,headers:{"content-type":`application/json`},body:`{}`}),window.location.href=`${a}/`}function D(e=window.location.pathname){window.location.href=s(`/api/auth/login?return=${encodeURIComponent(e)}`)}export{h as a,m as c,p as d,g as f,E as i,d as l,l as m,T as n,w as o,_ as p,D as r,C as s,u as t,f as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{Tt as r,in as i,ln as a,nn as o,pn as s,rn as c}from"./ui-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{Tt as r,in as i,ln as a,nn as o,pn as s,rn as c}from"./ui-DAHMnAVc.js";import{mt as l}from"./index-DkDBEMwz.js";var u=e(t(),1),d=l(),f=e(n(),1),p=(0,u.createContext)({slot:null,narrow:!1,setDetail:()=>void 0});function m(){return(0,u.useContext)(p)}function h({children:e}){let{slot:t}=m();return t?(0,d.createPortal)(e,t):null}function g(e){let{setDetail:t}=m();(0,u.useEffect)(()=>(t(e),()=>t(null)),[e,t])}var _=`(max-width: 767px)`;function v(e){let t=window.matchMedia(_);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function y(){return(0,u.useSyncExternalStore)(v,()=>window.matchMedia(_).matches)}function b(e){return e===`deeper`?`animate-step-deeper`:e===`back`&&`animate-step-back`}function x({title:e,open:t,onBack:n}){return(0,f.jsxs)(`div`,{className:`mb-2 flex h-9 min-w-0 items-center px-1`,children:[(0,f.jsx)(`div`,{className:r(`shrink-0 overflow-hidden transition-[width,margin,opacity] duration-200 ease-out`,t?`-ml-1.5 mr-0.5 w-8 opacity-100`:`w-0 opacity-0`),children:(0,f.jsx)(`button`,{type:`button`,onClick:n,"aria-hidden":!t,tabIndex:t?void 0:-1,"aria-label":e,className:`grid size-8 place-items-center rounded-lg text-ink-3 transition hover:bg-accent hover:text-ink`,children:(0,f.jsx)(a,{className:`size-4`})})}),t?(0,f.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 font-medium text-[0.875rem]`,children:[(0,f.jsx)(t.icon,{className:`size-4 shrink-0 text-ember-strong`}),(0,f.jsx)(`span`,{className:`truncate`,children:t.label})]}):(0,f.jsx)(`span`,{className:`truncate font-medium text-[0.875rem]`,children:e})]})}function S({entries:e,current:t,onPick:n}){return(0,f.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:e.map(e=>(0,f.jsx)(`li`,{children:(0,f.jsxs)(s,{to:e.to,onClick:r=>{e.id===t?.id&&(r.preventDefault(),n(e))},"aria-current":e.id===t?.id?`page`:void 0,className:r(`group flex items-center gap-2 rounded-lg px-2 py-1 text-[0.875rem] transition max-md:py-2`,e.id===t?.id?`bg-paper-2 font-medium text-ink`:`text-ink-2 hover:bg-accent hover:text-ink`),children:[(0,f.jsx)(`span`,{className:`grid size-7 shrink-0 place-items-center`,children:(0,f.jsx)(e.icon,{className:`size-4 transition-transform duration-200 ease-out group-hover:scale-110`})}),(0,f.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),(0,f.jsx)(o,{className:`size-4 text-ink-4 md:hidden`})]})},e.id))})}function C({label:e,onBack:t}){return(0,f.jsxs)(`button`,{type:`button`,onClick:t,className:`-ml-1 flex items-center gap-1 rounded-lg py-1.5 pr-3 pl-1 text-[0.8125rem] text-ink-3 transition hover:text-ink`,children:[(0,f.jsx)(c,{className:`size-4`}),e]})}function w(e){let t=(0,u.useRef)({level:e,direction:null});return e!==t.current.level&&(t.current={level:e,direction:e>t.current.level?`deeper`:`back`}),t.current.direction}function T({label:e,collapsible:t,open:n=!0,count:a,children:o}){let[s,c]=(0,u.useState)(n),l=`font-medium text-[0.6875rem] text-ink-4 uppercase tracking-[0.12em]`;return(0,f.jsxs)(`div`,{className:`mt-5 first:mt-0`,children:[t?(0,f.jsxs)(`button`,{type:`button`,onClick:()=>c(!s),"aria-expanded":s,className:r(`mb-1 flex w-full items-center gap-1 px-2 text-left hover:text-ink-2`,l),children:[(0,f.jsx)(`span`,{className:`flex-1`,children:e}),s?null:(0,f.jsx)(`span`,{className:`tabular-nums tracking-normal`,children:a}),(0,f.jsx)(i,{className:r(`size-3.5 transition-transform`,s?null:`-rotate-90`)})]}):(0,f.jsx)(`p`,{className:r(`mb-1 px-2`,l),children:e}),s?(0,f.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:o}):null]})}function E({icon:e,label:t,badge:n,tone:i,toneLabel:a,selected:s,disabled:c,onPick:l}){return(0,f.jsx)(`li`,{children:(0,f.jsxs)(`button`,{type:`button`,onClick:l,disabled:c,"aria-current":s?`page`:void 0,className:r(`group flex w-full items-center gap-2 rounded-lg px-2 py-1 text-left text-[0.875rem] transition max-md:py-2`,s?`bg-paper-2 font-medium text-ink`:`text-ink-2 hover:bg-accent hover:text-ink`,c&&`cursor-default opacity-50 hover:bg-transparent hover:text-ink-2`),children:[(0,f.jsx)(`span`,{className:`grid size-7 shrink-0 place-items-center`,children:(0,f.jsx)(e,{className:r(`size-4 transition-transform duration-200 ease-out`,!c&&`group-hover:scale-110`,s?`text-ember-strong`:`text-ink-3`)})}),(0,f.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:t}),n,i?(0,f.jsx)(`span`,{role:`img`,title:a,"aria-label":a,className:r(`size-2 shrink-0 rounded-full`,i===`done`&&`bg-moss`,i===`credits`&&`bg-amber`,i===`on`&&`bg-ember`,i===`off`&&`ring-1 ring-ink-4 ring-inset`)}):null,c?null:(0,f.jsx)(o,{className:`size-4 shrink-0 text-ink-4 md:hidden`})]})})}export{E as a,b as c,m as d,w as f,T as i,g as l,x as n,p as o,S as r,h as s,C as t,y as u};
|