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