@copilotkit/react-ui 1.9.1 → 1.9.2-next.1
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 +18 -0
- package/dist/{chunk-22YWW4DF.mjs → chunk-6HXS43LW.mjs} +2 -2
- package/dist/{chunk-K7GW355H.mjs → chunk-6JX4WIAX.mjs} +2 -2
- package/dist/{chunk-EYR6B2WC.mjs → chunk-725PPN77.mjs} +2 -2
- package/dist/{chunk-UR72PGU7.mjs → chunk-GVKA7RQQ.mjs} +4 -4
- package/dist/{chunk-6TCUJ3B7.mjs → chunk-QN7T3GWI.mjs} +2 -11
- package/dist/chunk-QN7T3GWI.mjs.map +1 -0
- package/dist/{chunk-4BFN7TU6.mjs → chunk-SGFUVPDB.mjs} +10 -12
- package/dist/chunk-SGFUVPDB.mjs.map +1 -0
- package/dist/components/chat/Header.js +3 -14
- package/dist/components/chat/Header.js.map +1 -1
- package/dist/components/chat/Header.mjs +5 -5
- package/dist/components/chat/Modal.js +3 -14
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +9 -9
- package/dist/components/chat/Popup.js +3 -14
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +10 -10
- package/dist/components/chat/Sidebar.js +3 -14
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +10 -10
- package/dist/components/chat/index.js +3 -14
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +11 -11
- package/dist/components/dev-console/console.js +3 -14
- package/dist/components/dev-console/console.js.map +1 -1
- package/dist/components/dev-console/console.mjs +3 -3
- package/dist/components/dev-console/index.js +3 -14
- package/dist/components/dev-console/index.js.map +1 -1
- package/dist/components/dev-console/index.mjs +3 -3
- package/dist/components/dev-console/utils.d.ts +1 -1
- package/dist/components/dev-console/utils.js +1 -10
- package/dist/components/dev-console/utils.js.map +1 -1
- package/dist/components/dev-console/utils.mjs +1 -1
- package/dist/components/index.js +3 -14
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +15 -15
- package/dist/index.js +3 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/package.json +4 -4
- package/src/components/dev-console/console.tsx +3 -5
- package/src/components/dev-console/utils.ts +2 -17
- package/dist/chunk-4BFN7TU6.mjs.map +0 -1
- package/dist/chunk-6TCUJ3B7.mjs.map +0 -1
- /package/dist/{chunk-22YWW4DF.mjs.map → chunk-6HXS43LW.mjs.map} +0 -0
- /package/dist/{chunk-K7GW355H.mjs.map → chunk-6JX4WIAX.mjs.map} +0 -0
- /package/dist/{chunk-EYR6B2WC.mjs.map → chunk-725PPN77.mjs.map} +0 -0
- /package/dist/{chunk-UR72PGU7.mjs.map → chunk-GVKA7RQQ.mjs.map} +0 -0
|
@@ -3,13 +3,24 @@ import "../chunk-SC6JRFAJ.mjs";
|
|
|
3
3
|
import "../chunk-WB3YULQ4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
CopilotPopup
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-6HXS43LW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
CopilotSidebar
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-6JX4WIAX.mjs";
|
|
10
|
+
import "../chunk-725PPN77.mjs";
|
|
11
11
|
import "../chunk-C3GSYRC3.mjs";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-GVKA7RQQ.mjs";
|
|
13
|
+
import "../chunk-V7W6IM2V.mjs";
|
|
14
|
+
import {
|
|
15
|
+
CopilotDevConsole
|
|
16
|
+
} from "../chunk-SGFUVPDB.mjs";
|
|
17
|
+
import "../chunk-Q5V6S67N.mjs";
|
|
18
|
+
import {
|
|
19
|
+
shouldShowDevConsole
|
|
20
|
+
} from "../chunk-QN7T3GWI.mjs";
|
|
21
|
+
import "../chunk-KXE2JCUH.mjs";
|
|
22
|
+
import "../chunk-NRA3CFEE.mjs";
|
|
23
|
+
import "../chunk-BH6PCAAL.mjs";
|
|
13
24
|
import "../chunk-UFN2VWSR.mjs";
|
|
14
25
|
import {
|
|
15
26
|
CopilotChat
|
|
@@ -45,18 +56,7 @@ import "../chunk-B3D7U7TJ.mjs";
|
|
|
45
56
|
import {
|
|
46
57
|
useChatContext
|
|
47
58
|
} from "../chunk-IEMQ2SQW.mjs";
|
|
48
|
-
import "../chunk-V7W6IM2V.mjs";
|
|
49
|
-
import {
|
|
50
|
-
CopilotDevConsole
|
|
51
|
-
} from "../chunk-4BFN7TU6.mjs";
|
|
52
|
-
import {
|
|
53
|
-
shouldShowDevConsole
|
|
54
|
-
} from "../chunk-6TCUJ3B7.mjs";
|
|
55
|
-
import "../chunk-KXE2JCUH.mjs";
|
|
56
|
-
import "../chunk-NRA3CFEE.mjs";
|
|
57
|
-
import "../chunk-BH6PCAAL.mjs";
|
|
58
59
|
import "../chunk-XWG3L6QC.mjs";
|
|
59
|
-
import "../chunk-Q5V6S67N.mjs";
|
|
60
60
|
import "../chunk-54JAUBUJ.mjs";
|
|
61
61
|
import "../chunk-JGMFJZMG.mjs";
|
|
62
62
|
import "../chunk-S5MBUNGN.mjs";
|
package/dist/index.js
CHANGED
|
@@ -538,16 +538,7 @@ var Button = ({}) => {
|
|
|
538
538
|
// src/components/dev-console/utils.ts
|
|
539
539
|
var import_react_core2 = require("@copilotkit/react-core");
|
|
540
540
|
function shouldShowDevConsole(showDevConsole) {
|
|
541
|
-
|
|
542
|
-
return showDevConsole;
|
|
543
|
-
}
|
|
544
|
-
return getHostname() === "localhost" || getHostname() === "127.0.0.1" || getHostname() === "0.0.0.0" || getHostname() === "::1";
|
|
545
|
-
}
|
|
546
|
-
function getHostname() {
|
|
547
|
-
if (typeof window !== "undefined" && window.location) {
|
|
548
|
-
return window.location.hostname;
|
|
549
|
-
}
|
|
550
|
-
return "";
|
|
541
|
+
return showDevConsole;
|
|
551
542
|
}
|
|
552
543
|
function getPublishedCopilotKitVersion(current, forceCheck = false) {
|
|
553
544
|
return __async(this, null, function* () {
|
|
@@ -954,10 +945,8 @@ function VersionInfo({
|
|
|
954
945
|
currentVersionLabel = `${currentVersion} \u2192 ${latestVersion}`;
|
|
955
946
|
}
|
|
956
947
|
let asideLabel = "";
|
|
957
|
-
if (showDevConsole ===
|
|
958
|
-
asideLabel = "(
|
|
959
|
-
} else if (showDevConsole === true) {
|
|
960
|
-
asideLabel = "(always on)";
|
|
948
|
+
if (showDevConsole === true) {
|
|
949
|
+
asideLabel = "(enabled)";
|
|
961
950
|
}
|
|
962
951
|
const installCommand = [
|
|
963
952
|
`npm install`,
|