@copilotkit/react-ui 1.66.3 → 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 +6 -6
- 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.cjs
CHANGED
|
@@ -2778,7 +2778,7 @@ function CopilotPopup(props) {
|
|
|
2778
2778
|
* ```
|
|
2779
2779
|
* 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.
|
|
2780
2780
|
*/
|
|
2781
|
-
function CopilotSidebar(props) {
|
|
2781
|
+
function CopilotSidebar({ fullHeightChildren = false, ...props }) {
|
|
2782
2782
|
props = {
|
|
2783
2783
|
...props,
|
|
2784
2784
|
className: props.className ? props.className + " copilotKitSidebar" : "copilotKitSidebar"
|
|
@@ -2789,7 +2789,11 @@ function CopilotSidebar(props) {
|
|
|
2789
2789
|
setExpandedClassName(open ? "sidebarExpanded" : "");
|
|
2790
2790
|
};
|
|
2791
2791
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2792
|
-
className:
|
|
2792
|
+
className: [
|
|
2793
|
+
"copilotKitSidebarContentWrapper",
|
|
2794
|
+
expandedClassName,
|
|
2795
|
+
fullHeightChildren ? "copilotKitSidebarFullHeightChildren" : ""
|
|
2796
|
+
].filter(Boolean).join(" "),
|
|
2793
2797
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CopilotModal, {
|
|
2794
2798
|
...props,
|
|
2795
2799
|
onSetOpen,
|