@copilotz/chat-ui 0.1.37 → 0.1.38
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.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +0 -6
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -221,6 +221,8 @@ interface ChatConfig {
|
|
|
221
221
|
onClose: () => void;
|
|
222
222
|
isMobile: boolean;
|
|
223
223
|
}) => ReactNode);
|
|
224
|
+
/** Desktop panel width in pixels (default: 320) */
|
|
225
|
+
panelWidth?: number;
|
|
224
226
|
};
|
|
225
227
|
/** Additional actions to render in the header */
|
|
226
228
|
headerActions?: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -221,6 +221,8 @@ interface ChatConfig {
|
|
|
221
221
|
onClose: () => void;
|
|
222
222
|
isMobile: boolean;
|
|
223
223
|
}) => ReactNode);
|
|
224
|
+
/** Desktop panel width in pixels (default: 320) */
|
|
225
|
+
panelWidth?: number;
|
|
224
226
|
};
|
|
225
227
|
/** Additional actions to render in the header */
|
|
226
228
|
headerActions?: ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -5332,8 +5332,16 @@ var ChatUI = ({
|
|
|
5332
5332
|
config?.customComponent?.component && !isMobile && /* @__PURE__ */ jsx25(
|
|
5333
5333
|
"div",
|
|
5334
5334
|
{
|
|
5335
|
-
className:
|
|
5336
|
-
|
|
5335
|
+
className: "h-full transition-all duration-300 ease-in-out overflow-hidden",
|
|
5336
|
+
style: { width: state.showSidebar ? config.customComponent.panelWidth ?? 320 : 0 },
|
|
5337
|
+
children: state.showSidebar && /* @__PURE__ */ jsx25(
|
|
5338
|
+
"div",
|
|
5339
|
+
{
|
|
5340
|
+
className: "flex flex-col h-full border-l bg-background animate-in slide-in-from-right-4 duration-300",
|
|
5341
|
+
style: { width: config.customComponent.panelWidth ?? 320 },
|
|
5342
|
+
children: renderCustomComponent()
|
|
5343
|
+
}
|
|
5344
|
+
)
|
|
5337
5345
|
}
|
|
5338
5346
|
)
|
|
5339
5347
|
] })
|