@copilotkit/react-ui 1.9.2-next.2 → 1.9.2-next.4

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.
@@ -2,11 +2,11 @@ import "../../chunk-SC6JRFAJ.mjs";
2
2
  import "../../chunk-WB3YULQ4.mjs";
3
3
  import {
4
4
  CopilotPopup
5
- } from "../../chunk-6HXS43LW.mjs";
5
+ } from "../../chunk-GBGU4ZR6.mjs";
6
6
  import {
7
7
  CopilotSidebar
8
- } from "../../chunk-6JX4WIAX.mjs";
9
- import "../../chunk-725PPN77.mjs";
8
+ } from "../../chunk-KGKVOUC3.mjs";
9
+ import "../../chunk-XZI6DUGE.mjs";
10
10
  import "../../chunk-C3GSYRC3.mjs";
11
11
  import "../../chunk-GVKA7RQQ.mjs";
12
12
  import "../../chunk-V7W6IM2V.mjs";
@@ -3156,8 +3156,10 @@ var CopilotModal = (_a) => {
3156
3156
  onSetOpen == null ? void 0 : onSetOpen(open);
3157
3157
  setOpenState(open);
3158
3158
  };
3159
+ const memoizedHeader = (0, import_react14.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Header2, {}), [Header2]);
3160
+ const memoizedChildren = (0, import_react14.useMemo)(() => children, [children]);
3159
3161
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ChatContextProvider, { icons, labels, open: openState, setOpen, children: [
3160
- children,
3162
+ memoizedChildren,
3161
3163
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className, children: [
3162
3164
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button2, {}),
3163
3165
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
@@ -3167,7 +3169,7 @@ var CopilotModal = (_a) => {
3167
3169
  shortcut,
3168
3170
  hitEscapeToClose,
3169
3171
  children: [
3170
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Header2, {}),
3172
+ memoizedHeader,
3171
3173
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3172
3174
  CopilotChat,
3173
3175
  __spreadProps(__spreadValues({}, props), {