@kaitranntt/ccs 7.66.1-dev.5 → 7.66.1-dev.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/dist/cliproxy/catalog-cache.d.ts +9 -1
- package/dist/cliproxy/catalog-cache.d.ts.map +1 -1
- package/dist/cliproxy/catalog-cache.js +115 -29
- package/dist/cliproxy/catalog-cache.js.map +1 -1
- package/dist/commands/cliproxy/catalog-subcommand.d.ts.map +1 -1
- package/dist/commands/cliproxy/catalog-subcommand.js +12 -38
- package/dist/commands/cliproxy/catalog-subcommand.js.map +1 -1
- package/dist/ui/assets/{accounts-CoxemH1E.js → accounts-DeuJFkg9.js} +1 -1
- package/dist/ui/assets/{alert-dialog-CIVd-ody.js → alert-dialog-CIh7avyK.js} +1 -1
- package/dist/ui/assets/{api-BVfXHYxj.js → api-C12eUocD.js} +1 -1
- package/dist/ui/assets/{auth-section-DDd9GEBK.js → auth-section-Byn3WNlt.js} +1 -1
- package/dist/ui/assets/{backups-section-BWbdSnXt.js → backups-section-Cjxu2uP0.js} +1 -1
- package/dist/ui/assets/{channels-BPxlzEif.js → channels-m4LEUo20.js} +1 -1
- package/dist/ui/assets/{checkbox-BKFUU2sG.js → checkbox-BTiURiLD.js} +1 -1
- package/dist/ui/assets/{claude-extension-C-6KUHA0.js → claude-extension-HVw0lW0B.js} +1 -1
- package/dist/ui/assets/cliproxy-N6hlFUnC.js +3 -0
- package/dist/ui/assets/{cliproxy-ai-providers-D1-ZGJt9.js → cliproxy-ai-providers-Dx1wGLH_.js} +1 -1
- package/dist/ui/assets/{cliproxy-control-panel-CTjW6xf_.js → cliproxy-control-panel-Bk9j_L8D.js} +1 -1
- package/dist/ui/assets/{codex-xU8SQWhS.js → codex-DwZ2fgSg.js} +1 -1
- package/dist/ui/assets/{confirm-dialog-B9mG4XrE.js → confirm-dialog-DEH0IxeO.js} +1 -1
- package/dist/ui/assets/{copilot-B_cDTXu9.js → copilot-CvVEiVk4.js} +1 -1
- package/dist/ui/assets/{cursor-B0aHykdX.js → cursor-bUhF-L0e.js} +1 -1
- package/dist/ui/assets/{droid-Cou-phPn.js → droid-DclUJQm-.js} +1 -1
- package/dist/ui/assets/{globalenv-section-B7fDhbOR.js → globalenv-section-CHrVYu4k.js} +1 -1
- package/dist/ui/assets/{health-Cux4-fWS.js → health-DPxgprcp.js} +1 -1
- package/dist/ui/assets/{index-CvqYFZA_.js → index-9Wrepw_v.js} +1 -1
- package/dist/ui/assets/{index-WuuQNt8F.js → index-CH9d--NX.js} +1 -1
- package/dist/ui/assets/{index-DOFoLunG.js → index-CKV57-q1.js} +1 -1
- package/dist/ui/assets/{index-B-YlctHj.js → index-Cmt79H00.js} +6 -6
- package/dist/ui/assets/{index-Cp8KcNTJ.js → index-Dqu-oUnM.js} +1 -1
- package/dist/ui/assets/{index-CHWn7pks.js → index-M221tenZ.js} +1 -1
- package/dist/ui/assets/index-XjzGg2Bk.css +1 -0
- package/dist/ui/assets/{logs-C2LvO27n.js → logs-BLqOqsjV.js} +1 -1
- package/dist/ui/assets/{masked-input-DyN9mmaP.js → masked-input-CkL1uaIV.js} +1 -1
- package/dist/ui/assets/{proxy-status-widget-EgraEYSp.js → proxy-status-widget-vDbXAa_g.js} +1 -1
- package/dist/ui/assets/{raw-json-settings-editor-panel-T7HrEBqp.js → raw-json-settings-editor-panel-DnWe1yut.js} +1 -1
- package/dist/ui/assets/searchable-select-Cxn-MaXd.js +1 -0
- package/dist/ui/assets/{separator-Cia83j78.js → separator-D8AC7pKi.js} +1 -1
- package/dist/ui/assets/{shared-BRUYjDc4.js → shared-BICn93Rc.js} +1 -1
- package/dist/ui/assets/{table-DVwKEwq6.js → table-ClzIn68q.js} +1 -1
- package/dist/ui/assets/{updates-CfwrNAck.js → updates-2-RYxjjV.js} +1 -1
- package/dist/ui/index.html +2 -2
- package/dist/web-server/routes/catalog-routes.js +7 -7
- package/dist/web-server/routes/catalog-routes.js.map +1 -1
- package/package.json +1 -1
- package/dist/ui/assets/cliproxy-C2_5ie4n.js +0 -3
- package/dist/ui/assets/index-7qTHMz5v.css +0 -1
- package/dist/ui/assets/searchable-select-Bfwi19-3.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as n}from"./radix-ui-Zb8sVEtn.js";import{r as a}from"./react-vendor-CNOkPC89.js";import{e as P,f as Q,d as $,c as w,g as B,I as G,n as H}from"./index-B-YlctHj.js";import{aN as L,at as V,m as J}from"./icons-C4EMu2PL.js";function S(o){return o.trim().toLowerCase()}function M(o,h){return`${o}-option-${h.replace(/[^a-z0-9_-]+/gi,"-")}`}function ee({value:o,onChange:h,options:d,groups:g,placeholder:j,searchPlaceholder:k,emptyText:E,disabled:F,className:q,triggerClassName:K,contentClassName:R}){const[l,T]=a.useState(!1),[y,A]=a.useState(""),[i,u]=a.useState(),m=a.useId(),N=a.useRef(null),I=a.useRef({}),O=a.useMemo(()=>d.find(e=>e.value===o),[d,o]),f=a.useMemo(()=>{const e=S(y);return e?d.filter(t=>[t.searchText,...t.keywords??[]].some(c=>S(c).includes(e))):d},[d,y]),z=a.useMemo(()=>{const e=new Map((g??[]).map(r=>[r.key,r])),t=f.filter(r=>!r.groupKey||!e.has(r.groupKey)),c=(g??[]).map(r=>({...r,options:f.filter(x=>x.groupKey===r.key)})).filter(r=>r.options.length>0);return t.length===0?c:[{key:"__default",options:t},...c]},[f,g]),s=a.useMemo(()=>f.filter(e=>!e.disabled),[f]),D=O?.triggerContent??O?.itemContent,v=e=>{T(e),e||(A(""),u(void 0))},b=()=>N.current?.focus();a.useEffect(()=>{if(l){if(s.length===0){u(void 0);return}u(e=>e&&s.some(t=>t.value===e)?e:s.find(t=>t.value===o)?.value??s[0]?.value)}},[s,l,o]),a.useEffect(()=>{!l||!i||I.current[i]?.scrollIntoView({block:"nearest"})},[i,l]);const p=e=>{if(s.length===0)return;if(e==="first"){u(s[0]?.value);return}if(e==="last"){u(s.at(-1)?.value);return}const t=s.findIndex(_=>_.value===i),c=e==="next"?-1:s.length,r=t>=0?t:c,x=e==="next"?Math.min(r+1,s.length-1):Math.max(r-1,0);u(s[x]?.value)},C=e=>{h(e),v(!1)},U=()=>{if(!i)return;const e=s.find(t=>t.value===i);e&&C(e.value)};return n.jsxs(P,{open:l,onOpenChange:v,children:[n.jsx(Q,{asChild:!0,children:n.jsxs($,{type:"button",variant:"outline","aria-expanded":l,"aria-controls":l?m:void 0,"aria-haspopup":"dialog",disabled:F,onKeyDown:e=>{if(e.key!=="ArrowDown"&&e.key!=="ArrowUp")return;e.preventDefault(),v(!0);const t=()=>{b(),p(e.key==="ArrowDown"?"first":"last")};if(typeof requestAnimationFrame=="function"){requestAnimationFrame(t);return}setTimeout(t,0)},className:w("w-full justify-between font-normal",q,K,!D&&"text-muted-foreground"),children:[n.jsx("div",{className:"min-w-0 flex-1 text-left",children:D??n.jsx("span",{children:j})}),n.jsx(L,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsxs(B,{align:"start",className:w("w-[var(--radix-popover-trigger-width)] p-0",R),onOpenAutoFocus:e=>{if(e.preventDefault(),typeof requestAnimationFrame=="function"){requestAnimationFrame(b);return}setTimeout(b,0)},children:[n.jsx("div",{className:"border-b p-2",children:n.jsxs("div",{className:"relative",children:[n.jsx(V,{className:"text-muted-foreground absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2"}),n.jsx(G,{ref:N,value:y,onChange:e=>A(e.target.value),role:"combobox","aria-label":k,"aria-autocomplete":"list","aria-expanded":l,"aria-controls":m,"aria-activedescendant":i?M(m,i):void 0,onKeyDown:e=>{if(e.key==="ArrowDown"){e.preventDefault(),p("next");return}if(e.key==="ArrowUp"){e.preventDefault(),p("previous");return}if(e.key==="Home"){e.preventDefault(),p("first");return}if(e.key==="End"){e.preventDefault(),p("last");return}if(e.key==="Enter"){e.preventDefault(),U();return}e.key==="Escape"&&(e.preventDefault(),v(!1))},placeholder:k,className:"pl-8"})]})}),n.jsx(H,{className:"max-h-72",children:f.length===0?n.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:E}):n.jsx("div",{id:m,role:"listbox","aria-label":j,className:"p-1",children:z.map(e=>n.jsxs("div",{children:[e.label&&n.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:e.label}),e.options.map(t=>{const c=t.value===i,r=t.value===o;return n.jsxs("button",{id:M(m,t.value),type:"button",role:"option","aria-selected":r,disabled:t.disabled,tabIndex:-1,ref:x=>{I.current[t.value]=x},onMouseMove:()=>{t.disabled||u(t.value)},onFocus:()=>{t.disabled||u(t.value)},onClick:()=>C(t.value),className:w("hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm outline-none","focus-visible:ring-ring focus-visible:ring-1",c&&"bg-accent text-accent-foreground",r&&"bg-accent text-accent-foreground",t.disabled&&"pointer-events-none opacity-50"),children:[n.jsx("div",{className:"min-w-0 flex-1",children:t.itemContent}),r&&n.jsx(J,{className:"h-4 w-4 shrink-0"})]},t.value)})]},e.key))})})]})]})}export{ee as S};
|