@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,6 +1,6 @@
1
1
  import {
2
2
  CopilotModal
3
- } from "../../chunk-725PPN77.mjs";
3
+ } from "../../chunk-XZI6DUGE.mjs";
4
4
  import "../../chunk-C3GSYRC3.mjs";
5
5
  import "../../chunk-GVKA7RQQ.mjs";
6
6
  import "../../chunk-V7W6IM2V.mjs";
@@ -3145,8 +3145,10 @@ var CopilotModal = (_a) => {
3145
3145
  onSetOpen == null ? void 0 : onSetOpen(open);
3146
3146
  setOpenState(open);
3147
3147
  };
3148
+ const memoizedHeader = (0, import_react14.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Header2, {}), [Header2]);
3149
+ const memoizedChildren = (0, import_react14.useMemo)(() => children, [children]);
3148
3150
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ChatContextProvider, { icons, labels, open: openState, setOpen, children: [
3149
- children,
3151
+ memoizedChildren,
3150
3152
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className, children: [
3151
3153
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button2, {}),
3152
3154
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
@@ -3156,7 +3158,7 @@ var CopilotModal = (_a) => {
3156
3158
  shortcut,
3157
3159
  hitEscapeToClose,
3158
3160
  children: [
3159
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Header2, {}),
3161
+ memoizedHeader,
3160
3162
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3161
3163
  CopilotChat,
3162
3164
  __spreadProps(__spreadValues({}, props), {