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