@kedge/admin 0.11.0 → 0.11.1

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.
@@ -1 +1 @@
1
- import{f as e,i as t,l as n,n as r,r as i,t as a,u as o}from"./card-CH9fCW35.js";import{C as s,E as c,T as l,a as u,f as d,h as f,n as p,o as m,s as h,t as g,w as _}from"./index-BbBCe4by.js";var v=class extends _{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,u=n.fetchMeta?.fetchMore?.direction,d=o&&u===`forward`,f=i&&u===`forward`,p=o&&u===`backward`,m=i&&u===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:l(t,n.data),hasPreviousPage:c(t,n.data),isFetchNextPageError:d,isFetchingNextPage:f,isFetchPreviousPageError:p,isFetchingPreviousPage:m,isRefetchError:s&&!d&&!p,isRefetching:a&&!f&&!m}}};function y(e,t){return s(e,v,t)}var b=e(o(),1),x=n(),S={sub:`Subscriber`,rel:`Release`,res:`Resolution`,whk:`Webhook`};function C(e){let[t,n]=(0,b.useState)(e[0]);return[t,(0,x.jsx)(`div`,{className:`flex gap-1`,role:`tablist`,children:e.map(e=>(0,x.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":e===t,className:`rounded px-3 py-1 text-sm ${e===t?`bg-neutral-900 text-white`:`bg-white hover:bg-neutral-100`}`,onClick:()=>n(e),children:e},e))})]}function w(e,n){let a=d(),o=y({queryKey:[a.generation,...e],initialPageParam:null,queryFn:async({pageParam:e})=>(await a.client.request(`GET`,`${n}&limit=50${e?`&cursor=${encodeURIComponent(e)}`:``}`)).body,getNextPageParam:e=>e.next??void 0}),s=o.error instanceof t?o.error.message:`The store didn't answer.`;return{items:o.data?.pages.flatMap(e=>e.items)??[],loaded:o.data!==void 0&&!o.isError,error:o.isFetchNextPageError?(0,x.jsxs)(r,{tone:`error`,children:[`Couldn't load the next page, so this list is incomplete: `,s,` `,(0,x.jsx)(i,{variant:`secondary`,onClick:()=>void o.fetchNextPage(),children:`Retry`})]}):o.isError?(0,x.jsxs)(r,{tone:`error`,children:[`Couldn't load this list: `,s,` `,(0,x.jsx)(i,{variant:`secondary`,onClick:()=>void o.refetch(),children:`Retry`})]}):null,more:o.hasNextPage&&!o.isFetchNextPageError?(0,x.jsx)(i,{variant:`secondary`,disabled:o.isFetchingNextPage,onClick:()=>void o.fetchNextPage(),children:`Load more`}):null,refetch:o.refetch}}function T(){let e=d(),n=h(),[a,o]=C([`failed`,`blocked`,`orphaned`]),[s,c]=(0,b.useState)(``),[l,_]=(0,b.useState)(null),[v,y]=(0,b.useState)(null),T=w([`deliveries`,a,s],`/admin/deliveries?state=${a}${s?`&plugin=${encodeURIComponent(s)}`:``}`),E=(e,t)=>n&&_({d:e,action:t,authz:n.authz}),D=async()=>{if(!l)return;let{d:n,action:r,authz:i}=l;_(null);try{await e.client.request(`POST`,`/admin/deliveries/${n.kind}/${n.seq}/${r}?expected_updated_at=${n.updated_at}`,{expect:i}),y(r===`retry`?`Retried: it's due now.`:`Discarded.`)}catch(n){if(n instanceof t&&n.code===`VIEW_CHANGED`){e.viewChanged();return}y(n instanceof t&&n.code===`DELIVERY_STATE`?`It changed meanwhile; here it is now.`:String(n))}T.refetch()},O=e=>a===`blocked`?e.blocked_on?(0,x.jsx)(f,{to:`/system/effects`,className:`text-sm underline`,children:`Waits on an effect`}):null:a===`orphaned`?(0,x.jsxs)(`span`,{className:`text-xs text-neutral-600`,children:[`Its handler (`,e.registration??`unknown`,`) isn't in this deployment. It resumes once code declaring it, or an alias for it, is deployed.`]}):(0,x.jsxs)(`div`,{className:`flex gap-2`,children:[e.kind!==`whk`&&m(n,`delivery:retry`)?(0,x.jsx)(i,{variant:`secondary`,onClick:()=>E(e,`retry`),children:`Retry`}):null,m(n,`delivery:discard`)?(0,x.jsx)(i,{variant:`secondary`,onClick:()=>E(e,`discard`),children:`Discard`}):null,e.kind===`whk`?(0,x.jsx)(`span`,{className:`text-xs text-neutral-600`,children:`A webhook is sent again by replay, on the webhooks screen (coming).`}):null]});return(0,x.jsxs)(p,{id:`core.deliveries.list`,title:`Deliveries`,children:[(0,x.jsxs)(g,{id:`core.deliveries.list.filters`,className:`flex items-center gap-3`,children:[o,(0,x.jsx)(`input`,{className:`rounded border border-neutral-300 px-2 py-1 text-sm`,placeholder:`Plugin`,value:s,onChange:e=>c(e.target.value.trim())})]}),v?(0,x.jsx)(r,{children:v}):null,T.error,(0,x.jsxs)(g,{id:`core.deliveries.list.table`,className:`overflow-x-auto rounded-lg border border-neutral-200 bg-white`,children:[(0,x.jsxs)(`table`,{className:`min-w-full text-sm`,children:[(0,x.jsx)(`thead`,{className:`bg-neutral-50 text-left text-xs uppercase text-neutral-500`,children:(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Kind`}),(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Plugin`}),(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Attempts`}),(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Last code`}),(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Updated`}),(0,x.jsx)(`th`,{className:`px-3 py-2`})]})}),(0,x.jsx)(`tbody`,{children:T.items.map(e=>(0,x.jsxs)(`tr`,{className:`border-t border-neutral-100`,children:[(0,x.jsx)(`td`,{className:`px-3 py-2`,children:S[e.kind]}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:e.plugin??`—`}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:e.attempts}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:(0,x.jsx)(`code`,{className:`text-xs`,children:e.last_code??`—`})}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:new Date(e.updated_at).toLocaleString()}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:O(e)})]},`${e.kind}:${e.seq}`))})]}),T.loaded&&T.items.length===0?(0,x.jsxs)(`p`,{className:`p-3 text-sm text-neutral-500`,children:[`Nothing `,a,`.`]}):null,T.more?(0,x.jsx)(`div`,{className:`p-3`,children:T.more}):null]}),(0,x.jsx)(u,{open:l!==null,title:l?.action===`retry`?`Retry this delivery?`:`Discard this delivery?`,confirm:l?.action===`retry`?`Retry`:`Discard`,danger:l?.action===`discard`,onConfirm:()=>void D(),onClose:()=>_(null),children:l?.action===`retry`?`It becomes due now and runs again.`:`It won't run again. Whatever it would have done stays undone.`})]})}function E(){let[e,t]=C([`unresolved`,`conflict`,`divergence`]),n=w([`effects`,e],`/admin/effects?state=${e}`),i=n.items;return(0,x.jsxs)(p,{id:`core.effects.list`,title:`External calls`,children:[(0,x.jsx)(g,{id:`core.effects.list.filters`,children:t}),n.error,(0,x.jsxs)(g,{id:`core.effects.list.table`,className:`space-y-3`,children:[e===`unresolved`?(0,x.jsxs)(r,{children:[`Each of these is decided by `,(0,x.jsx)(`code`,{children:`POST /admin/effects/{key}/resolve`}),` with one of three forms (observe again, record success, declared failure), by someone holding `,(0,x.jsx)(`code`,{children:`effect:resolve`}),`. Resolving from the admin comes later.`]}):null,e===`conflict`?(0,x.jsx)(r,{children:`These are failed deliveries whose effect met different inputs. Act on them from the deliveries list.`}):null,e===`divergence`?(0,x.jsx)(r,{children:`Evidence only: these effects succeeded, and a later request differed only in what it displays. The first outcome stands.`}):null,i.map(t=>(0,x.jsx)(a,{children:e===`unresolved`?(0,x.jsx)(D,{e:t}):e===`conflict`?(0,x.jsxs)(`p`,{className:`text-sm`,children:[S[t.kind],` delivery `,String(t.seq),`:`,` `,(0,x.jsx)(`code`,{className:`text-xs`,children:t.last_code}),`.`,` `,(0,x.jsx)(f,{to:`/system/deliveries`,className:`underline`,children:`See it on the deliveries list`})]}):(0,x.jsxs)(`p`,{className:`text-sm`,children:[(0,x.jsx)(`code`,{className:`text-xs`,children:t.key}),` on`,` `,new Date(t.at).toLocaleString(),`: `,t.presentation]})},e===`conflict`?`${t.kind}:${t.seq}`:t.key)),n.loaded&&i.length===0?(0,x.jsx)(`p`,{className:`text-sm text-neutral-500`,children:`Nothing here.`}):null,n.more]})]})}function D({e}){return(0,x.jsxs)(`dl`,{className:`grid grid-cols-2 gap-2 text-sm md:grid-cols-4`,children:[(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Port`}),(0,x.jsx)(`dd`,{children:e.port})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Operation`}),(0,x.jsx)(`dd`,{children:e.operation})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Reason`}),(0,x.jsx)(`dd`,{children:e.reason})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Revision`}),(0,x.jsx)(`dd`,{children:e.revision})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Role`}),(0,x.jsx)(`dd`,{children:e.role??`—`})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Origin`}),(0,x.jsx)(`dd`,{children:e.origin??`—`})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Updated`}),(0,x.jsx)(`dd`,{children:new Date(e.updated_at).toLocaleString()})]}),(0,x.jsxs)(`div`,{className:`col-span-2 md:col-span-4`,children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Key`}),(0,x.jsx)(`dd`,{children:(0,x.jsx)(`code`,{className:`break-all text-xs`,children:e.key})})]})]})}export{T as DeliveriesPage,E as EffectsPage};
1
+ import{f as e,i as t,l as n,n as r,r as i,t as a,u as o}from"./card-CH9fCW35.js";import{C as s,E as c,T as l,a as u,f as d,h as f,n as p,o as m,s as h,t as g,w as _}from"./index-CxWnpdzg.js";var v=class extends _{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,u=n.fetchMeta?.fetchMore?.direction,d=o&&u===`forward`,f=i&&u===`forward`,p=o&&u===`backward`,m=i&&u===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:l(t,n.data),hasPreviousPage:c(t,n.data),isFetchNextPageError:d,isFetchingNextPage:f,isFetchPreviousPageError:p,isFetchingPreviousPage:m,isRefetchError:s&&!d&&!p,isRefetching:a&&!f&&!m}}};function y(e,t){return s(e,v,t)}var b=e(o(),1),x=n(),S={sub:`Subscriber`,rel:`Release`,res:`Resolution`,whk:`Webhook`};function C(e){let[t,n]=(0,b.useState)(e[0]);return[t,(0,x.jsx)(`div`,{className:`flex gap-1`,role:`tablist`,children:e.map(e=>(0,x.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":e===t,className:`rounded px-3 py-1 text-sm ${e===t?`bg-neutral-900 text-white`:`bg-white hover:bg-neutral-100`}`,onClick:()=>n(e),children:e},e))})]}function w(e,n){let a=d(),o=y({queryKey:[a.generation,...e],initialPageParam:null,queryFn:async({pageParam:e})=>(await a.client.request(`GET`,`${n}&limit=50${e?`&cursor=${encodeURIComponent(e)}`:``}`)).body,getNextPageParam:e=>e.next??void 0}),s=o.error instanceof t?o.error.message:`The store didn't answer.`;return{items:o.data?.pages.flatMap(e=>e.items)??[],loaded:o.data!==void 0&&!o.isError,error:o.isFetchNextPageError?(0,x.jsxs)(r,{tone:`error`,children:[`Couldn't load the next page, so this list is incomplete: `,s,` `,(0,x.jsx)(i,{variant:`secondary`,onClick:()=>void o.fetchNextPage(),children:`Retry`})]}):o.isError?(0,x.jsxs)(r,{tone:`error`,children:[`Couldn't load this list: `,s,` `,(0,x.jsx)(i,{variant:`secondary`,onClick:()=>void o.refetch(),children:`Retry`})]}):null,more:o.hasNextPage&&!o.isFetchNextPageError?(0,x.jsx)(i,{variant:`secondary`,disabled:o.isFetchingNextPage,onClick:()=>void o.fetchNextPage(),children:`Load more`}):null,refetch:o.refetch}}function T(){let e=d(),n=h(),[a,o]=C([`failed`,`blocked`,`orphaned`]),[s,c]=(0,b.useState)(``),[l,_]=(0,b.useState)(null),[v,y]=(0,b.useState)(null),T=w([`deliveries`,a,s],`/admin/deliveries?state=${a}${s?`&plugin=${encodeURIComponent(s)}`:``}`),E=(e,t)=>n&&_({d:e,action:t,authz:n.authz}),D=async()=>{if(!l)return;let{d:n,action:r,authz:i}=l;_(null);try{await e.client.request(`POST`,`/admin/deliveries/${n.kind}/${n.seq}/${r}?expected_updated_at=${n.updated_at}`,{expect:i}),y(r===`retry`?`Retried: it's due now.`:`Discarded.`)}catch(n){if(n instanceof t&&n.code===`VIEW_CHANGED`){e.viewChanged();return}y(n instanceof t&&n.code===`DELIVERY_STATE`?`It changed meanwhile; here it is now.`:String(n))}T.refetch()},O=e=>a===`blocked`?e.blocked_on?(0,x.jsx)(f,{to:`/system/effects`,className:`text-sm underline`,children:`Waits on an effect`}):null:a===`orphaned`?(0,x.jsxs)(`span`,{className:`text-xs text-neutral-600`,children:[`Its handler (`,e.registration??`unknown`,`) isn't in this deployment. It resumes once code declaring it, or an alias for it, is deployed.`]}):(0,x.jsxs)(`div`,{className:`flex gap-2`,children:[e.kind!==`whk`&&m(n,`delivery:retry`)?(0,x.jsx)(i,{variant:`secondary`,onClick:()=>E(e,`retry`),children:`Retry`}):null,m(n,`delivery:discard`)?(0,x.jsx)(i,{variant:`secondary`,onClick:()=>E(e,`discard`),children:`Discard`}):null,e.kind===`whk`?(0,x.jsx)(`span`,{className:`text-xs text-neutral-600`,children:`A webhook is sent again by replay, on the webhooks screen (coming).`}):null]});return(0,x.jsxs)(p,{id:`core.deliveries.list`,title:`Deliveries`,children:[(0,x.jsxs)(g,{id:`core.deliveries.list.filters`,className:`flex items-center gap-3`,children:[o,(0,x.jsx)(`input`,{className:`rounded border border-neutral-300 px-2 py-1 text-sm`,placeholder:`Plugin`,value:s,onChange:e=>c(e.target.value.trim())})]}),v?(0,x.jsx)(r,{children:v}):null,T.error,(0,x.jsxs)(g,{id:`core.deliveries.list.table`,className:`overflow-x-auto rounded-lg border border-neutral-200 bg-white`,children:[(0,x.jsxs)(`table`,{className:`min-w-full text-sm`,children:[(0,x.jsx)(`thead`,{className:`bg-neutral-50 text-left text-xs uppercase text-neutral-500`,children:(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Kind`}),(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Plugin`}),(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Attempts`}),(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Last code`}),(0,x.jsx)(`th`,{className:`px-3 py-2`,children:`Updated`}),(0,x.jsx)(`th`,{className:`px-3 py-2`})]})}),(0,x.jsx)(`tbody`,{children:T.items.map(e=>(0,x.jsxs)(`tr`,{className:`border-t border-neutral-100`,children:[(0,x.jsx)(`td`,{className:`px-3 py-2`,children:S[e.kind]}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:e.plugin??`—`}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:e.attempts}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:(0,x.jsx)(`code`,{className:`text-xs`,children:e.last_code??`—`})}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:new Date(e.updated_at).toLocaleString()}),(0,x.jsx)(`td`,{className:`px-3 py-2`,children:O(e)})]},`${e.kind}:${e.seq}`))})]}),T.loaded&&T.items.length===0?(0,x.jsxs)(`p`,{className:`p-3 text-sm text-neutral-500`,children:[`Nothing `,a,`.`]}):null,T.more?(0,x.jsx)(`div`,{className:`p-3`,children:T.more}):null]}),(0,x.jsx)(u,{open:l!==null,title:l?.action===`retry`?`Retry this delivery?`:`Discard this delivery?`,confirm:l?.action===`retry`?`Retry`:`Discard`,danger:l?.action===`discard`,onConfirm:()=>void D(),onClose:()=>_(null),children:l?.action===`retry`?`It becomes due now and runs again.`:`It won't run again. Whatever it would have done stays undone.`})]})}function E(){let[e,t]=C([`unresolved`,`conflict`,`divergence`]),n=w([`effects`,e],`/admin/effects?state=${e}`),i=n.items;return(0,x.jsxs)(p,{id:`core.effects.list`,title:`External calls`,children:[(0,x.jsx)(g,{id:`core.effects.list.filters`,children:t}),n.error,(0,x.jsxs)(g,{id:`core.effects.list.table`,className:`space-y-3`,children:[e===`unresolved`?(0,x.jsxs)(r,{children:[`Each of these is decided by `,(0,x.jsx)(`code`,{children:`POST /admin/effects/{key}/resolve`}),` with one of three forms (observe again, record success, declared failure), by someone holding `,(0,x.jsx)(`code`,{children:`effect:resolve`}),`. Resolving from the admin comes later.`]}):null,e===`conflict`?(0,x.jsx)(r,{children:`These are failed deliveries whose effect met different inputs. Act on them from the deliveries list.`}):null,e===`divergence`?(0,x.jsx)(r,{children:`Evidence only: these effects succeeded, and a later request differed only in what it displays. The first outcome stands.`}):null,i.map(t=>(0,x.jsx)(a,{children:e===`unresolved`?(0,x.jsx)(D,{e:t}):e===`conflict`?(0,x.jsxs)(`p`,{className:`text-sm`,children:[S[t.kind],` delivery `,String(t.seq),`:`,` `,(0,x.jsx)(`code`,{className:`text-xs`,children:t.last_code}),`.`,` `,(0,x.jsx)(f,{to:`/system/deliveries`,className:`underline`,children:`See it on the deliveries list`})]}):(0,x.jsxs)(`p`,{className:`text-sm`,children:[(0,x.jsx)(`code`,{className:`text-xs`,children:t.key}),` on`,` `,new Date(t.at).toLocaleString(),`: `,t.presentation]})},e===`conflict`?`${t.kind}:${t.seq}`:t.key)),n.loaded&&i.length===0?(0,x.jsx)(`p`,{className:`text-sm text-neutral-500`,children:`Nothing here.`}):null,n.more]})]})}function D({e}){return(0,x.jsxs)(`dl`,{className:`grid grid-cols-2 gap-2 text-sm md:grid-cols-4`,children:[(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Port`}),(0,x.jsx)(`dd`,{children:e.port})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Operation`}),(0,x.jsx)(`dd`,{children:e.operation})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Reason`}),(0,x.jsx)(`dd`,{children:e.reason})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Revision`}),(0,x.jsx)(`dd`,{children:e.revision})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Role`}),(0,x.jsx)(`dd`,{children:e.role??`—`})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Origin`}),(0,x.jsx)(`dd`,{children:e.origin??`—`})]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Updated`}),(0,x.jsx)(`dd`,{children:new Date(e.updated_at).toLocaleString()})]}),(0,x.jsxs)(`div`,{className:`col-span-2 md:col-span-4`,children:[(0,x.jsx)(`dt`,{className:`text-xs text-neutral-500`,children:`Key`}),(0,x.jsx)(`dd`,{children:(0,x.jsx)(`code`,{className:`break-all text-xs`,children:e.key})})]})]})}export{T as DeliveriesPage,E as EffectsPage};
@@ -1 +1 @@
1
- {"build":"8fa45e4988669661a5ba5ca05f4bfdd4"}
1
+ {"build":"5305fa4156d12ecd70142317b66a6aaf"}
@@ -6,7 +6,7 @@
6
6
  <meta name="referrer" content="no-referrer" />
7
7
  <title>Kedge admin</title>
8
8
  <link rel="modulepreload" crossorigin href="/app/assets/card-CH9fCW35.js">
9
- <script defer src="/app/boot.js" data-entry="/app/assets/index-BbBCe4by.js" data-styles="/app/assets/index-BA_54h5V.css"></script>
9
+ <script defer src="/app/boot.js" data-entry="/app/assets/index-CxWnpdzg.js" data-styles="/app/assets/index-A6QB_53Q.css"></script>
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kedge/admin",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "tailwindcss": "4.3.3",
38
38
  "vite": "8.3.5",
39
39
  "zod": "4.6.7",
40
- "@kedge/core": "0.11.0"
40
+ "@kedge/core": "0.11.1"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "vite build",
@@ -1,2 +0,0 @@
1
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-900:oklch(41.4% .112 45.904);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-900:oklch(39.1% .09 240.876);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:oklch(97% 0 none);--color-neutral-200:oklch(92.2% 0 none);--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-xl:36rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.static{position:static}.col-span-2{grid-column:span 2/span 2}.mx-auto{margin-inline:auto}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-16{margin-top:calc(var(--spacing) * 16)}.mt-24{margin-top:calc(var(--spacing) * 24)}.mt-32{margin-top:calc(var(--spacing) * 32)}.mb-1{margin-bottom:var(--spacing)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-2{margin-left:calc(var(--spacing) * 2)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-4{height:calc(var(--spacing) * 4)}.h-48{height:calc(var(--spacing) * 48)}.max-h-48{max-height:calc(var(--spacing) * 48)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing) * 4)}.w-28{width:calc(var(--spacing) * 28)}.w-48{width:calc(var(--spacing) * 48)}.w-56{width:calc(var(--spacing) * 56)}.w-96{width:calc(var(--spacing) * 96)}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-amber-200{border-color:var(--color-amber-200)}.border-neutral-100{border-color:var(--color-neutral-100)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-red-200{border-color:var(--color-red-200)}.border-sky-200{border-color:var(--color-sky-200)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-neutral-50{background-color:var(--color-neutral-50)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-neutral-900{background-color:var(--color-neutral-900)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-600{background-color:var(--color-red-600)}.bg-sky-50{background-color:var(--color-sky-50)}.bg-white{background-color:var(--color-white)}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-700{color:var(--color-amber-700)}.text-amber-900{color:var(--color-amber-900)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-700{color:var(--color-neutral-700)}.text-neutral-900{color:var(--color-neutral-900)}.text-red-600{color:var(--color-red-600)}.text-red-900{color:var(--color-red-900)}.text-sky-900{color:var(--color-sky-900)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.backdrop\:bg-black\/30::backdrop{background-color:#0000004d}@supports (color:color-mix(in lab, red, red)){.backdrop\:bg-black\/30::backdrop{background-color:color-mix(in oklab, var(--color-black) 30%, transparent)}}@media (hover:hover){.hover\:bg-neutral-50:hover{background-color:var(--color-neutral-50)}.hover\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\:bg-neutral-800:hover{background-color:var(--color-neutral-800)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-neutral-900:focus{border-color:var(--color-neutral-900)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-neutral-100:disabled{background-color:var(--color-neutral-100)}.disabled\:opacity-50:disabled{opacity:.5}@media (width>=48rem){.md\:col-span-4{grid-column:span 4/span 4}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}}.kedge-slots [data-kedge-block]{outline-offset:2px;outline:1px dashed #c026d3;position:relative}.kedge-slots [data-kedge-block]:before{content:attr(data-kedge-block);color:#a21caf;z-index:50;background:#fdf4ff;padding:0 .25rem;font-size:10px;position:absolute;top:-.9rem;left:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}