@aidotnet/server-darwin-arm64 0.9.2 → 0.9.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/bin/astra-server +2 -2
- package/bin/wwwroot/assets/ClientsPage-r2weTDWW.js +11 -0
- package/bin/wwwroot/assets/{KeyPage-IsBY88jG.js → KeyPage-BGxPT6pS.js} +1 -1
- package/bin/wwwroot/assets/ModelDetailPage-B08VTnCn.js +1 -0
- package/bin/wwwroot/assets/ModelsPage-tHjDQDXP.js +1 -0
- package/bin/wwwroot/assets/PluginsPage-CK5z2M5T.js +2 -0
- package/bin/wwwroot/assets/PrivacyPage-m_YIMy3n.js +1 -0
- package/bin/wwwroot/assets/ProviderDetailPage-CyUE_jWW.js +3 -0
- package/bin/wwwroot/assets/ProvidersPage-Dfa9xYj8.js +2 -0
- package/bin/wwwroot/assets/SettingsPage-BJPTZJNd.js +2 -0
- package/bin/wwwroot/assets/TokensPage-BNSLQb2G.js +1 -0
- package/bin/wwwroot/assets/TracesPage-BqnfGeL4.js +7 -0
- package/bin/wwwroot/assets/TracesPage-CIQ1PxNA.css +1 -0
- package/bin/wwwroot/assets/TrayPanelPage-DsMvwR_T.js +1 -0
- package/bin/wwwroot/assets/TrayPanelView-DnvoVnvO.js +1 -0
- package/bin/wwwroot/assets/alert-RpMgB81n.js +15 -0
- package/bin/wwwroot/assets/{arrow-down-DTsCyVhl.js → arrow-down-V3oFXKF5.js} +1 -1
- package/bin/wwwroot/assets/{arrow-left-BlStTg-u.js → arrow-left-BpBbd_q4.js} +1 -1
- package/bin/wwwroot/assets/{checkbox-B8UTLROZ.js → checkbox-Bqwnblbu.js} +1 -1
- package/bin/wwwroot/assets/{cloud-download-DoCH2MAL.js → cloud-download-Cp5R1kIH.js} +1 -1
- package/bin/wwwroot/assets/confirm-morph-B8RLpf1K.js +1 -0
- package/bin/wwwroot/assets/{download-zacBMjpe.js → download-EFZWCXNY.js} +1 -1
- package/bin/wwwroot/assets/{ellipsis-Dwk6_QlF.js → ellipsis-vy0zfY6I.js} +1 -1
- package/bin/wwwroot/assets/{external-link-D-L32_ye.js → external-link-CyPNKHdV.js} +1 -1
- package/bin/wwwroot/assets/{folder-open-ex39110T.js → folder-open-CS5Nhpwl.js} +1 -1
- package/bin/wwwroot/assets/index-BXZibBui.css +1 -0
- package/bin/wwwroot/assets/index-Dlj17okK.js +17 -0
- package/bin/wwwroot/assets/{log-out-CZSB5kqp.js → log-out-DfSRg6bm.js} +1 -1
- package/bin/wwwroot/assets/logo-mark-BTnHGZva.png +0 -0
- package/bin/wwwroot/assets/minus-DWdqkwzQ.js +1 -0
- package/bin/wwwroot/assets/overlays-D_YawsYE.js +41 -0
- package/bin/wwwroot/assets/{pencil-C7HWLb95.js → pencil-BRz--Mw5.js} +1 -1
- package/bin/wwwroot/assets/{power-BggG52OJ.js → power-DmWGnFp9.js} +1 -1
- package/bin/wwwroot/assets/radio-cards-CxPVQvHV.js +1 -0
- package/bin/wwwroot/assets/radio-cards-DYTpaMMI.css +1 -0
- package/bin/wwwroot/assets/{rotate-ccw-Xx5_g9bd.js → rotate-ccw-7CnaPCq0.js} +1 -1
- package/bin/wwwroot/index.html +4 -4
- package/package.json +1 -1
- package/bin/wwwroot/assets/ClientsPage-Cwjn83RD.js +0 -11
- package/bin/wwwroot/assets/ModelDetailPage-BT8_QmLF.js +0 -1
- package/bin/wwwroot/assets/ModelsPage-a3SNBXwe.js +0 -1
- package/bin/wwwroot/assets/PluginsPage-CXRMCp_F.js +0 -2
- package/bin/wwwroot/assets/PrivacyPage-BfdLDJ63.js +0 -1
- package/bin/wwwroot/assets/ProviderDetailPage-C9eabWwn.js +0 -3
- package/bin/wwwroot/assets/ProvidersPage-CPw-h0Uz.js +0 -2
- package/bin/wwwroot/assets/SettingsPage-CTnL166S.js +0 -2
- package/bin/wwwroot/assets/TokensPage-TPaxzBMY.js +0 -1
- package/bin/wwwroot/assets/TrayPanelPage-BGDBeJs0.js +0 -1
- package/bin/wwwroot/assets/TrayPanelView-DP-m1Cui.js +0 -1
- package/bin/wwwroot/assets/alert-C-zJo-Vf.js +0 -15
- package/bin/wwwroot/assets/confirm-morph-BZdvZ-wI.js +0 -1
- package/bin/wwwroot/assets/index-CNdW2eN9.js +0 -17
- package/bin/wwwroot/assets/index-DSv7xAxU.css +0 -1
- package/bin/wwwroot/assets/overlays-BBHZHl4R.js +0 -41
- package/bin/wwwroot/assets/radio-cards-BWCaBwfU.js +0 -1
- package/bin/wwwroot/assets/radio-cards-CxuojLkJ.css +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,Si as t,_i as n,gi as r,ht as i,la as a,pa as o,ua as s,vi as c,xi as l,yi as u}from"./alert-C-zJo-Vf.js";import{N as ee}from"./index-CNdW2eN9.js";var d=o(s(),1),f={root:`_root_8729c_1`,surface:`_surface_8729c_16`,trigger:`_trigger_8729c_39`,face:`_face_8729c_41`,icon:`_icon_8729c_64`,prompt:`_prompt_8729c_68`,secondary:`_secondary_8729c_70`,primary:`_primary_8729c_71`,status:`_status_8729c_90`,statusText:`_statusText_8729c_95`,check:`_check_8729c_97`,checkDisc:`_checkDisc_8729c_98`,checkTick:`_checkTick_8729c_99`,spinner:`_spinner_8729c_100`,spin:`_spin_8729c_100`,srOnly:`_srOnly_8729c_103`},p=a(),m=12,{blur:h}=e,g=[...e.ease.enter],_=[...e.ease.standard],v=(e,t)=>{let n=2*Math.PI/(e*1.2);return{type:`spring`,stiffness:n*n,damping:2*(1-t)*n,mass:1}},te=v(.44,.18),ne=v(.34,0),y=v(.36,.06),b=()=>()=>{};function x(){let e=(0,d.useSyncExternalStore)(b,()=>!0,()=>!1);return!!c()&&e}var S={hidden:e=>({opacity:0,x:e*m,filter:`blur(${h.soft}px)`}),shown:{opacity:1,x:0,filter:`blur(0px)`,transition:{x:y,opacity:{duration:.2,ease:g,delay:.04},filter:{duration:.22,ease:g,delay:.04}}},gone:e=>({opacity:0,x:e*-12*.6,filter:`blur(${h.soft}px)`,transition:{x:y,opacity:{duration:.12,ease:_},filter:{duration:.12,ease:_}}})},C={hidden:{opacity:0},shown:{opacity:1,transition:{duration:.14}},gone:{opacity:0,transition:{duration:.1}}};function re({id:e,direction:n,reduced:i,onSize:a,children:o,labelledBy:s}){let c=(0,d.useRef)(null),l=t();return(0,d.useLayoutEffect)(()=>{let t=c.current;if(!t||!l)return;let n=()=>{let n=t.style.flex;t.style.flex=`none`;let r=t.offsetWidth;t.style.flex=n,a(e,r)};if(n(),typeof ResizeObserver>`u`)return;let r=new ResizeObserver(n);return r.observe(t),()=>r.disconnect()},[e,a,l]),(0,p.jsx)(r.div,{ref:c,className:f.face,"data-face":e,custom:n,role:s?`group`:void 0,"aria-labelledby":s,variants:i?C:S,initial:`hidden`,animate:`shown`,exit:`gone`,inert:!l||void 0,children:o})}function ie({reduced:e}){return(0,p.jsxs)(`svg`,{className:f.check,viewBox:`0 0 18 18`,fill:`none`,"aria-hidden":`true`,children:[(0,p.jsx)(r.circle,{className:f.checkDisc,cx:`9`,cy:`9`,r:`8`,style:{transformOrigin:`9px 9px`},initial:!e&&{scale:.4,opacity:0},animate:{scale:1,opacity:1},transition:{scale:v(.34,.3),opacity:{duration:.12}}}),(0,p.jsx)(r.path,{className:f.checkTick,d:`M5.6 9.3 7.8 11.4 12.4 6.7`,strokeWidth:`1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,initial:!e&&{pathLength:0},animate:{pathLength:1},transition:{duration:.28,ease:g,delay:.12}})]})}function w({label:e,icon:t,prompt:a,confirmLabel:o=`Delete`,cancelLabel:s=`Cancel`,pendingLabel:c=`Deleting`,doneLabel:m=`Deleted`,errorLabel:h=`Couldn’t finish`,retryLabel:g=`Retry`,undoLabel:_=`Undo`,undoingLabel:v=`Restoring`,tone:y=`danger`,onConfirm:b,onUndo:S,onCancel:C,state:w,defaultState:T=`idle`,onStateChange:E,confirmTimeout:ae=6e3,resultTimeout:oe=5e3,cancelOnOutsidePress:D=!0,disabled:O=!1,className:se,ref:ce}){let k=x(),A=`${(0,d.useId)()}-prompt`,j=(0,d.useRef)(null);(0,d.useImperativeHandle)(ce,()=>j.current,[]);let[le,ue]=(0,d.useState)(T),M=w??le,[N,P]=(0,d.useState)(1),[F,de]=(0,d.useState)(`confirm`),[fe,I]=(0,d.useState)(``),L=(0,d.useRef)({state:M,onStateChange:E,controlled:w!==void 0});(0,d.useLayoutEffect)(()=>{L.current={state:M,onStateChange:E,controlled:w!==void 0}});let R=(0,d.useRef)(!1),z=(0,d.useRef)(0),B=(0,d.useCallback)(e=>{if(e===L.current.state)return;let t=j.current;R.current=!!t&&(t.contains(document.activeElement)||document.activeElement===document.body),P(e===`idle`?-1:1),L.current.controlled||ue(e),L.current.state=e,L.current.onStateChange?.(e)},[]),V=(0,d.useCallback)(()=>{z.current++,B(`idle`)},[B]),H=(0,d.useCallback)(async e=>{let t=e===`confirm`?b:S,n=++z.current;de(e);let r;try{r=t?.()}catch{B(`error`),I(h);return}if(r&&typeof r.then==`function`){B(`pending`),I(e===`confirm`?c:v);try{await r}catch{if(n!==z.current)return;B(`error`),I(h);return}if(n!==z.current)return}if(e===`undo`){B(`idle`),I(`Undone`);return}B(`done`),I(S?`${m}. ${_} is available.`:m)},[m,h,B,b,S,c,_,v]),U=(0,d.useCallback)(()=>{C?.(),V(),I(`Cancelled`)},[C,V]),W=(0,d.useRef)(()=>{});(0,d.useLayoutEffect)(()=>{W.current=()=>{L.current.state===`confirming`?U():V()}});let G=u(`auto`),K=(0,d.useRef)(0),q=(0,d.useRef)(0),pe=(0,d.useCallback)((e,t)=>{if(e!==L.current.state||Math.abs(t-K.current)<.5)return;let r=K.current;if(K.current=t,!r||k){G.jump(`auto`);return}G.get()===`auto`&&G.jump(r);let i=++q.current;n(G,t,t>r?te:ne).then(()=>{i===q.current&&G.jump(`auto`)})},[k,G]),J=u(1),Y=(0,d.useRef)(null),X=(0,d.useRef)({hover:!1,hidden:!1}),Z=M===`confirming`?ae:M===`done`||M===`error`?oe:0,Q=(0,d.useCallback)(()=>{let e=Y.current;e&&(X.current.hover||X.current.hidden?e.pause():e.play())},[]);(0,d.useEffect)(()=>{if(!Z)return;J.jump(1);let e=n(J,0,{duration:Z/1e3,ease:`linear`});return Y.current=e,e.then(()=>{Y.current===e&&(Y.current=null,W.current())}),Q(),()=>{Y.current===e&&(Y.current=null),e.stop()}},[J,M,Q,Z]),(0,d.useEffect)(()=>{let e=()=>{X.current.hidden=document.hidden,Q()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[Q]),(0,d.useEffect)(()=>{if(M!==`confirming`||!D)return;let e=e=>{j.current?.contains(e.target)||U()};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[U,D,M]),(0,d.useLayoutEffect)(()=>{if(!R.current)return;R.current=!1;let e=j.current;e&&(e.querySelector(`[data-face="${M}"]`)?.querySelector(`[data-autofocus]:not(:disabled)`)??e).focus({preventScroll:!0})},[M]);let me=e=>{e.key===`Escape`&&(M===`confirming`?(e.preventDefault(),e.stopPropagation(),U()):(M===`done`||M===`error`)&&(e.preventDefault(),e.stopPropagation(),V()))},$=a??(0,p.jsxs)(p.Fragment,{children:[e,`?`]}),he=(()=>{switch(M){case`confirming`:return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`span`,{id:A,className:f.prompt,children:$}),(0,p.jsx)(`button`,{type:`button`,className:f.secondary,"data-autofocus":!0,onClick:U,children:s}),(0,p.jsx)(`button`,{type:`button`,className:f.primary,onClick:()=>void H(`confirm`),children:o})]});case`pending`:return(0,p.jsxs)(`span`,{className:f.status,children:[(0,p.jsx)(ee,{className:f.spinner,size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,p.jsx)(`span`,{children:F===`undo`?v:c})]});case`done`:return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`span`,{className:f.status,"data-tone":`success`,children:[(0,p.jsx)(ie,{reduced:k}),(0,p.jsx)(`span`,{className:f.statusText,children:m})]}),S&&(0,p.jsx)(`button`,{type:`button`,className:f.secondary,"data-autofocus":!0,onClick:()=>void H(`undo`),children:_})]});case`error`:return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`span`,{className:f.status,"data-tone":`danger`,children:[(0,p.jsx)(i,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,p.jsx)(`span`,{className:f.statusText,children:h})]}),(0,p.jsx)(`button`,{type:`button`,className:f.secondary,"data-autofocus":!0,onClick:()=>void H(F),children:g})]});default:return(0,p.jsxs)(`button`,{type:`button`,className:f.trigger,"data-autofocus":!0,disabled:O,onClick:()=>{I(typeof $==`string`?$:``),B(`confirming`)},children:[t&&(0,p.jsx)(`span`,{className:f.icon,"aria-hidden":`true`,children:t}),(0,p.jsx)(`span`,{children:e})]})}})();return(0,p.jsxs)(`div`,{ref:j,className:[f.root,se].filter(Boolean).join(` `),"data-state":M,"data-tone":y,"data-disabled":O||void 0,tabIndex:-1,onKeyDown:me,"aria-busy":M===`pending`||void 0,onPointerEnter:()=>{X.current.hover=!0,Q()},onPointerLeave:()=>{X.current.hover=!1,Q()},onPointerCancel:()=>{X.current.hover=!1,Q()},children:[(0,p.jsx)(r.div,{className:f.surface,style:{width:G},children:(0,p.jsx)(l,{initial:!1,custom:N,children:(0,p.jsx)(re,{id:M,direction:N,reduced:k,onSize:pe,labelledBy:M===`confirming`?A:void 0,children:he},M)})}),(0,p.jsx)(`span`,{className:f.srOnly,role:`status`,"aria-live":`polite`,children:fe})]})}export{w as t};
|