@nextclaw/ui 0.27.4 → 0.27.5-beta.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.
- package/CHANGELOG.md +17 -0
- package/dist/.vite/manifest.json +95 -95
- package/dist/assets/{account-panel-Cfx3ocPY.js → account-panel-C83GDFuy.js} +1 -1
- package/dist/assets/agents-CJA15zzv.js +1 -0
- package/dist/assets/{agents-BdeFtIOV.js → agents-Dr2KkEp2.js} +1 -1
- package/dist/assets/{app-presenter-provider-BB3Xl8b0.js → app-presenter-provider-Cx9MwMtb.js} +17 -16
- package/dist/assets/{appearance-settings-page-DiSRSDN3.js → appearance-settings-page-3IfIzjic.js} +1 -1
- package/dist/assets/apps-CvIlb9Rn.js +1 -0
- package/dist/assets/{confirm-dialog-jz2cQKId.js → confirm-dialog-D30HJBXN.js} +1 -1
- package/dist/assets/{context-menu-C0qywo73.js → context-menu-C6m-WNpl.js} +65 -65
- package/dist/assets/cron-BWZWu80t.js +1 -0
- package/dist/assets/{dialog-DMKYZDFu.js → dialog-DB_l9LK0.js} +1 -1
- package/dist/assets/doc-browser-DQDsmRlr.js +1 -0
- package/dist/assets/inbox-CIsD65lW.js +1 -0
- package/dist/assets/{keyboard-shortcuts-settings-page-BFBXVf20.js → keyboard-shortcuts-settings-page-L4kLGuB8.js} +1 -1
- package/dist/assets/{main-Bp1iozNB.js → main-BNWRrWc_.js} +2 -2
- package/dist/assets/{marketplace-BTDWnHP7.js → marketplace-BH1Sq8dL.js} +1 -1
- package/dist/assets/mcp-marketplace-page-BA-InAbJ.js +1 -0
- package/dist/assets/{model-config-page-CeVvZ29o.js → model-config-page-zqVWyIT0.js} +1 -1
- package/dist/assets/panel-apps-CMX4iWwQ.js +1 -0
- package/dist/assets/{panelStandalone-DomappXm.js → panelStandalone-C38o5B4Q.js} +1 -1
- package/dist/assets/{projects-fPTOn2Wz.js → projects-DNe43T2d.js} +1 -1
- package/dist/assets/{provider-models-D8WOdsdu.js → provider-models-zGsDUBHG.js} +1 -1
- package/dist/assets/{provider-scoped-model-input-BOPkUOtD.js → provider-scoped-model-input-DpEyP1h8.js} +1 -1
- package/dist/assets/{providers-config-page-BilPL0kF.js → providers-config-page-J-1auWPu.js} +1 -1
- package/dist/assets/{pwa-Cp7pPvsZ.js → pwa-jmuWbrqH.js} +1 -1
- package/dist/assets/remote-C7H2o46-.js +1 -0
- package/dist/assets/{runtime-config-page-P5RUq3YK.js → runtime-config-page-CJhqeDcu.js} +1 -1
- package/dist/assets/{service-apps-panel-BReYr_ni.js → service-apps-panel-Dj9okUgp.js} +1 -1
- package/dist/assets/{theme-provider-BsJ6HxeX.js → theme-provider-D4rd-tCP.js} +1 -1
- package/dist/index.html +10 -10
- package/dist/panel-standalone.html +4 -4
- package/package.json +7 -7
- package/src/features/chat/features/message/utils/__tests__/chat-message-timeline.utils.test.ts +16 -0
- package/src/features/chat/features/message/utils/__tests__/chat-message.utils.test.ts +17 -0
- package/src/features/chat/features/message/utils/chat-message-timeline.utils.ts +3 -3
- package/src/features/chat/features/message/utils/chat-message.utils.ts +11 -4
- package/src/features/chat/features/message/utils/chat-user-question-timeline.utils.ts +42 -0
- package/src/features/marketplace/components/detail-doc/__tests__/marketplace-detail-doc.test.tsx +2 -0
- package/src/features/panel-apps/components/panel-app-runtime-surface.tsx +3 -1
- package/src/features/panel-apps/utils/panel-app-doc-browser.utils.tsx +25 -10
- package/src/features/right-panel-resources/components/__tests__/system-object-resource.test.tsx +25 -3
- package/src/features/right-panel-resources/components/native-object-resource.tsx +3 -1
- package/src/features/right-panel-resources/components/system-object-resource.tsx +15 -1
- package/src/features/right-panel-resources/pages/resource-page.tsx +29 -2
- package/src/shared/components/doc-browser/__tests__/doc-browser.test.tsx +16 -13
- package/src/shared/components/doc-browser/doc-browser-renderer.types.ts +3 -0
- package/src/shared/components/doc-browser/doc-browser.tsx +7 -1
- package/src/shared/components/ui/context-menu/context-menu-items.tsx +1 -0
- package/src/shared/components/ui/context-menu/context-menu.tsx +9 -0
- package/dist/assets/agents-p_wcGhC3.js +0 -1
- package/dist/assets/apps-CKFrWb00.js +0 -1
- package/dist/assets/cron-UqsFT41c.js +0 -1
- package/dist/assets/doc-browser-2VjSkax1.js +0 -1
- package/dist/assets/inbox-D62apR2j.js +0 -1
- package/dist/assets/mcp-marketplace-page-oHCbBkS-.js +0 -1
- package/dist/assets/panel-apps-CniMi7QW.js +0 -1
- package/dist/assets/remote-CsJMF8OR.js +0 -1
- package/src/features/panel-apps/components/__tests__/panel-app-toolbar.test.tsx +0 -108
- package/src/features/panel-apps/components/panel-app-toolbar.tsx +0 -89
package/dist/assets/{appearance-settings-page-DiSRSDN3.js → appearance-settings-page-3IfIzjic.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./chunk-DF37yw5_.js";import{n as t,o as n,w as r}from"./theme-provider-
|
|
1
|
+
import{i as e}from"./chunk-DF37yw5_.js";import{n as t,o as n,w as r}from"./theme-provider-D4rd-tCP.js";import{Jt as i,Kt as a,Ut as o,Zt as s,_n as c,qt as l,ur as u,xr as d}from"./api-CXWxExzS.js";import{Rt as f,o as p}from"./app-presenter-provider-Cx9MwMtb.js";import{B as m}from"./dist-D9h2cWk3.js";import{c as h,s as g}from"./i18n-ByVUrt9w.js";import{a as _,i as v,n as y,r as b,t as x}from"./select-BJ-EjmCz.js";var S=e(d(),1);function C(){let{language:e,setLanguage:t}=n();return{currentLanguage:e,currentLanguageLabel:h.find(t=>t.value===e)?.label??e,languageOptions:h,selectLanguage:(0,S.useCallback)(n=>{e!==n&&(t(n),window.location.reload())},[e,t])}}var w=u(),T=[{value:`card`,labelKey:`chatMessageLayoutCard`,descriptionKey:`chatMessageLayoutCardDescription`},{value:`flat`,labelKey:`chatMessageLayoutFlat`,descriptionKey:`chatMessageLayoutFlatDescription`}];function E(){let{theme:e,setTheme:n}=t(),{currentLanguage:u,languageOptions:d,selectLanguage:h}=C(),S=f(e=>e.layout),E=f(e=>e.setLayout),D=p(e=>e.isVisible),O=p(e=>e.setVisible);return(0,w.jsx)(s,{title:g(`appearance`),children:(0,w.jsx)(i,{children:(0,w.jsxs)(l,{children:[(0,w.jsx)(a,{title:g(`theme`),control:(0,w.jsxs)(x,{value:e,onValueChange:e=>n(e),children:[(0,w.jsx)(v,{"aria-label":g(`theme`),className:`w-36 sm:w-44`,children:(0,w.jsx)(_,{})}),(0,w.jsx)(y,{children:r.map(e=>(0,w.jsx)(b,{value:e.value,children:g(e.labelKey)},e.value))})]})}),(0,w.jsx)(a,{title:g(`language`),control:(0,w.jsxs)(x,{value:u,onValueChange:e=>h(e),children:[(0,w.jsx)(v,{"aria-label":g(`language`),className:`w-36 sm:w-44`,children:(0,w.jsx)(_,{})}),(0,w.jsx)(y,{children:d.map(e=>(0,w.jsx)(b,{value:e.value,children:e.label},e.value))})]})}),(0,w.jsx)(a,{title:g(`chatMessageLayoutTitle`),description:g(`chatMessageLayoutDescription`),layout:`stacked`,children:(0,w.jsx)(`div`,{role:`radiogroup`,"aria-label":g(`chatMessageLayoutTitle`),className:`grid gap-1 rounded-xl bg-background/65 p-1 sm:grid-cols-2`,children:T.map(e=>{let t=e.value===S;return(0,w.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":t,onClick:()=>E(e.value),className:c(`flex min-w-0 items-start gap-3 rounded-lg px-3 py-2.5 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40`,t?`bg-[var(--interaction-selection)] text-foreground`:`text-muted-foreground hover:bg-[var(--interaction-hover)] hover:text-foreground`),children:[(0,w.jsx)(`span`,{className:c(`mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full ring-1`,t?`bg-primary text-primary-foreground ring-primary`:`bg-background ring-border`),children:t?(0,w.jsx)(m,{className:`h-2.5 w-2.5`,strokeWidth:3}):null}),(0,w.jsxs)(`span`,{className:`min-w-0`,children:[(0,w.jsx)(`span`,{className:`block text-sm font-medium`,children:g(e.labelKey)}),(0,w.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-muted-foreground`,children:g(e.descriptionKey)})]})]},e.value)})})}),(0,w.jsx)(a,{title:g(`sideDockVisibilityTitle`),description:g(`sideDockVisibilityDescription`),control:(0,w.jsx)(o,{id:`appearance-side-dock-visible`,"aria-label":g(`sideDockVisibilityTitle`),checked:D,onCheckedChange:O})})]})})})}export{E as AppearanceSettingsPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ot as e}from"./app-presenter-provider-Cx9MwMtb.js";export{e as AppsPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./chunk-DF37yw5_.js";import{Yt as t,ur as n,xr as r}from"./api-CXWxExzS.js";import{s as i}from"./i18n-ByVUrt9w.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./dialog-
|
|
1
|
+
import{i as e}from"./chunk-DF37yw5_.js";import{Yt as t,ur as n,xr as r}from"./api-CXWxExzS.js";import{s as i}from"./i18n-ByVUrt9w.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./dialog-DB_l9LK0.js";var d=e(r(),1),f=n(),p=({open:e,onOpenChange:n,title:r,description:p,confirmLabel:m=i(`confirm`),cancelLabel:h=i(`cancel`),variant:g=`default`,onConfirm:_,onCancel:v})=>{let y=d.useRef(null);return(0,f.jsx)(u,{open:e,onOpenChange:n,children:(0,f.jsxs)(s,{onOpenAutoFocus:e=>{e.preventDefault(),y.current?.focus()},onCloseAutoFocus:e=>e.preventDefault(),children:[(0,f.jsxs)(a,{showClose:!1,children:[(0,f.jsx)(c,{children:r}),p?(0,f.jsx)(l,{children:p}):null]}),(0,f.jsxs)(o,{className:`gap-2 sm:gap-0`,children:[(0,f.jsx)(t,{type:`button`,variant:`outline`,onClick:()=>{v(),n(!1)},children:h}),(0,f.jsx)(t,{ref:y,type:`button`,variant:g===`destructive`?`destructive`:`default`,onClick:()=>{_(),n(!1)},children:m})]})]})})};export{p as t};
|