@copilotz/chat-ui 0.1.36 → 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.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: `h-full transition-all duration-300 ease-in-out overflow-hidden ${state.showSidebar ? "w-80" : "w-0"}`,
5336
- children: state.showSidebar && /* @__PURE__ */ jsx25("div", { className: "flex flex-col h-full border-l bg-background animate-in slide-in-from-right-4 duration-300 w-80", children: renderCustomComponent() })
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
  ] })