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