@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
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotPopup
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-6HXS43LW.mjs";
|
|
4
|
+
import "../../chunk-725PPN77.mjs";
|
|
5
5
|
import "../../chunk-C3GSYRC3.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-GVKA7RQQ.mjs";
|
|
7
|
+
import "../../chunk-V7W6IM2V.mjs";
|
|
8
|
+
import "../../chunk-SGFUVPDB.mjs";
|
|
9
|
+
import "../../chunk-Q5V6S67N.mjs";
|
|
10
|
+
import "../../chunk-QN7T3GWI.mjs";
|
|
11
|
+
import "../../chunk-KXE2JCUH.mjs";
|
|
12
|
+
import "../../chunk-NRA3CFEE.mjs";
|
|
13
|
+
import "../../chunk-BH6PCAAL.mjs";
|
|
7
14
|
import "../../chunk-UFN2VWSR.mjs";
|
|
8
15
|
import "../../chunk-RT4HE74K.mjs";
|
|
9
16
|
import "../../chunk-UKCPOBQM.mjs";
|
|
@@ -23,14 +30,7 @@ import "../../chunk-YTXEWDNC.mjs";
|
|
|
23
30
|
import "../../chunk-KENCH7RN.mjs";
|
|
24
31
|
import "../../chunk-B3D7U7TJ.mjs";
|
|
25
32
|
import "../../chunk-IEMQ2SQW.mjs";
|
|
26
|
-
import "../../chunk-V7W6IM2V.mjs";
|
|
27
|
-
import "../../chunk-4BFN7TU6.mjs";
|
|
28
|
-
import "../../chunk-6TCUJ3B7.mjs";
|
|
29
|
-
import "../../chunk-KXE2JCUH.mjs";
|
|
30
|
-
import "../../chunk-NRA3CFEE.mjs";
|
|
31
|
-
import "../../chunk-BH6PCAAL.mjs";
|
|
32
33
|
import "../../chunk-XWG3L6QC.mjs";
|
|
33
|
-
import "../../chunk-Q5V6S67N.mjs";
|
|
34
34
|
import "../../chunk-54JAUBUJ.mjs";
|
|
35
35
|
import "../../chunk-JGMFJZMG.mjs";
|
|
36
36
|
import "../../chunk-S5MBUNGN.mjs";
|
|
@@ -526,16 +526,7 @@ var Button = ({}) => {
|
|
|
526
526
|
// src/components/dev-console/utils.ts
|
|
527
527
|
var import_react_core2 = require("@copilotkit/react-core");
|
|
528
528
|
function shouldShowDevConsole(showDevConsole) {
|
|
529
|
-
|
|
530
|
-
return showDevConsole;
|
|
531
|
-
}
|
|
532
|
-
return getHostname() === "localhost" || getHostname() === "127.0.0.1" || getHostname() === "0.0.0.0" || getHostname() === "::1";
|
|
533
|
-
}
|
|
534
|
-
function getHostname() {
|
|
535
|
-
if (typeof window !== "undefined" && window.location) {
|
|
536
|
-
return window.location.hostname;
|
|
537
|
-
}
|
|
538
|
-
return "";
|
|
529
|
+
return showDevConsole;
|
|
539
530
|
}
|
|
540
531
|
function getPublishedCopilotKitVersion(current, forceCheck = false) {
|
|
541
532
|
return __async(this, null, function* () {
|
|
@@ -942,10 +933,8 @@ function VersionInfo({
|
|
|
942
933
|
currentVersionLabel = `${currentVersion} \u2192 ${latestVersion}`;
|
|
943
934
|
}
|
|
944
935
|
let asideLabel = "";
|
|
945
|
-
if (showDevConsole ===
|
|
946
|
-
asideLabel = "(
|
|
947
|
-
} else if (showDevConsole === true) {
|
|
948
|
-
asideLabel = "(always on)";
|
|
936
|
+
if (showDevConsole === true) {
|
|
937
|
+
asideLabel = "(enabled)";
|
|
949
938
|
}
|
|
950
939
|
const installCommand = [
|
|
951
940
|
`npm install`,
|