@docyrus/ui-pro-ai-assistant 0.3.0 → 0.3.2
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/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22671,7 +22671,10 @@ var AssistantView = ({ ref, ...props }) => {
|
|
|
22671
22671
|
activeAgent?.name ?? commonProps.title ?? "Assistant"
|
|
22672
22672
|
] }) : null;
|
|
22673
22673
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22674
|
-
showHeader && /* @__PURE__ */ jsxs("div", { className:
|
|
22674
|
+
showHeader && /* @__PURE__ */ jsxs("div", { className: cn(
|
|
22675
|
+
"relative z-50 flex items-center justify-between h-12 px-3 border-b shrink-0 bg-background",
|
|
22676
|
+
!isSidebarOpen && enableSidebar && "ml-10"
|
|
22677
|
+
), children: [
|
|
22675
22678
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
22676
22679
|
enableNavDropdown && /* @__PURE__ */ jsxs(DropdownMenu$1, { children: [
|
|
22677
22680
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
@@ -22873,7 +22876,7 @@ var AssistantView = ({ ref, ...props }) => {
|
|
|
22873
22876
|
/* @__PURE__ */ jsx("div", { className: cn(
|
|
22874
22877
|
"flex flex-col min-h-0 overflow-hidden transition-all duration-200",
|
|
22875
22878
|
canvasWork ? "w-2/5" : "flex-1",
|
|
22876
|
-
|
|
22879
|
+
""
|
|
22877
22880
|
), children: activeTab === 1 ? (
|
|
22878
22881
|
// Sessions View
|
|
22879
22882
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 min-h-0 overflow-hidden", children: [
|
|
@@ -24550,6 +24553,7 @@ function ThreadHeaderInline({
|
|
|
24550
24553
|
onMoveToProject,
|
|
24551
24554
|
onProjectContextClick,
|
|
24552
24555
|
isFullscreen = false,
|
|
24556
|
+
isSidebarOpen = true,
|
|
24553
24557
|
t
|
|
24554
24558
|
}) {
|
|
24555
24559
|
const dropdownZClass = isFullscreen ? "z-[10000]" : "";
|
|
@@ -24569,7 +24573,7 @@ function ThreadHeaderInline({
|
|
|
24569
24573
|
setEditValue(null);
|
|
24570
24574
|
}
|
|
24571
24575
|
};
|
|
24572
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex-none h-10 flex bg-background items-center justify-between border-b border-x border-border px-3 mx-3 rounded-b-md
|
|
24576
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex-none h-10 flex bg-background items-center justify-between border-b border-x border-border px-3 mx-3 rounded-b-md shrink-0", !isSidebarOpen && "ml-12"), children: [
|
|
24573
24577
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [
|
|
24574
24578
|
projectContext?.id && onProjectContextClick && /* @__PURE__ */ jsx(
|
|
24575
24579
|
Button,
|
|
@@ -25278,6 +25282,7 @@ var DocyAssistant = ({
|
|
|
25278
25282
|
projects: projectState.projects,
|
|
25279
25283
|
projectContext: projectState.projectContext,
|
|
25280
25284
|
isFullscreen: opts.isFullscreen,
|
|
25285
|
+
isSidebarOpen: uiState.isSidebarOpen,
|
|
25281
25286
|
onSaveTitle: async (newTitle) => {
|
|
25282
25287
|
await updateSession(
|
|
25283
25288
|
apiClient,
|