@copilotkit/react-ui 1.66.4 → 1.67.0
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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +27 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +21 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +21 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/components/chat/Sidebar.tsx +30 -2
- package/src/components/chat/index.tsx +1 -0
- package/src/css/sidebar-full-height.test.ts +59 -0
- package/src/css/sidebar.css +27 -0
package/dist/index.umd.js
CHANGED
|
@@ -2797,7 +2797,7 @@ rehype_sanitize = __toESM(rehype_sanitize);
|
|
|
2797
2797
|
* ```
|
|
2798
2798
|
* For more information about how to customize the styles, check out the [Customize Look & Feel](/guides/custom-look-and-feel/customize-built-in-ui-components) guide.
|
|
2799
2799
|
*/
|
|
2800
|
-
function CopilotSidebar(props) {
|
|
2800
|
+
function CopilotSidebar({ fullHeightChildren = false, ...props }) {
|
|
2801
2801
|
props = {
|
|
2802
2802
|
...props,
|
|
2803
2803
|
className: props.className ? props.className + " copilotKitSidebar" : "copilotKitSidebar"
|
|
@@ -2809,7 +2809,11 @@ rehype_sanitize = __toESM(rehype_sanitize);
|
|
|
2809
2809
|
setExpandedClassName(open ? "sidebarExpanded" : "");
|
|
2810
2810
|
};
|
|
2811
2811
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2812
|
-
className:
|
|
2812
|
+
className: [
|
|
2813
|
+
"copilotKitSidebarContentWrapper",
|
|
2814
|
+
expandedClassName,
|
|
2815
|
+
fullHeightChildren ? "copilotKitSidebarFullHeightChildren" : ""
|
|
2816
|
+
].filter(Boolean).join(" "),
|
|
2813
2817
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CopilotModal, {
|
|
2814
2818
|
...props,
|
|
2815
2819
|
onSetOpen,
|