@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.
Files changed (49) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{chunk-22YWW4DF.mjs → chunk-6HXS43LW.mjs} +2 -2
  3. package/dist/{chunk-K7GW355H.mjs → chunk-6JX4WIAX.mjs} +2 -2
  4. package/dist/{chunk-EYR6B2WC.mjs → chunk-725PPN77.mjs} +2 -2
  5. package/dist/{chunk-UR72PGU7.mjs → chunk-GVKA7RQQ.mjs} +4 -4
  6. package/dist/{chunk-6TCUJ3B7.mjs → chunk-QN7T3GWI.mjs} +2 -11
  7. package/dist/chunk-QN7T3GWI.mjs.map +1 -0
  8. package/dist/{chunk-4BFN7TU6.mjs → chunk-SGFUVPDB.mjs} +10 -12
  9. package/dist/chunk-SGFUVPDB.mjs.map +1 -0
  10. package/dist/components/chat/Header.js +3 -14
  11. package/dist/components/chat/Header.js.map +1 -1
  12. package/dist/components/chat/Header.mjs +5 -5
  13. package/dist/components/chat/Modal.js +3 -14
  14. package/dist/components/chat/Modal.js.map +1 -1
  15. package/dist/components/chat/Modal.mjs +9 -9
  16. package/dist/components/chat/Popup.js +3 -14
  17. package/dist/components/chat/Popup.js.map +1 -1
  18. package/dist/components/chat/Popup.mjs +10 -10
  19. package/dist/components/chat/Sidebar.js +3 -14
  20. package/dist/components/chat/Sidebar.js.map +1 -1
  21. package/dist/components/chat/Sidebar.mjs +10 -10
  22. package/dist/components/chat/index.js +3 -14
  23. package/dist/components/chat/index.js.map +1 -1
  24. package/dist/components/chat/index.mjs +11 -11
  25. package/dist/components/dev-console/console.js +3 -14
  26. package/dist/components/dev-console/console.js.map +1 -1
  27. package/dist/components/dev-console/console.mjs +3 -3
  28. package/dist/components/dev-console/index.js +3 -14
  29. package/dist/components/dev-console/index.js.map +1 -1
  30. package/dist/components/dev-console/index.mjs +3 -3
  31. package/dist/components/dev-console/utils.d.ts +1 -1
  32. package/dist/components/dev-console/utils.js +1 -10
  33. package/dist/components/dev-console/utils.js.map +1 -1
  34. package/dist/components/dev-console/utils.mjs +1 -1
  35. package/dist/components/index.js +3 -14
  36. package/dist/components/index.js.map +1 -1
  37. package/dist/components/index.mjs +15 -15
  38. package/dist/index.js +3 -14
  39. package/dist/index.js.map +1 -1
  40. package/dist/index.mjs +15 -15
  41. package/package.json +4 -4
  42. package/src/components/dev-console/console.tsx +3 -5
  43. package/src/components/dev-console/utils.ts +2 -17
  44. package/dist/chunk-4BFN7TU6.mjs.map +0 -1
  45. package/dist/chunk-6TCUJ3B7.mjs.map +0 -1
  46. /package/dist/{chunk-22YWW4DF.mjs.map → chunk-6HXS43LW.mjs.map} +0 -0
  47. /package/dist/{chunk-K7GW355H.mjs.map → chunk-6JX4WIAX.mjs.map} +0 -0
  48. /package/dist/{chunk-EYR6B2WC.mjs.map → chunk-725PPN77.mjs.map} +0 -0
  49. /package/dist/{chunk-UR72PGU7.mjs.map → chunk-GVKA7RQQ.mjs.map} +0 -0
@@ -1,9 +1,16 @@
1
1
  import {
2
2
  CopilotSidebar
3
- } from "../../chunk-K7GW355H.mjs";
4
- import "../../chunk-EYR6B2WC.mjs";
3
+ } from "../../chunk-6JX4WIAX.mjs";
4
+ import "../../chunk-725PPN77.mjs";
5
5
  import "../../chunk-C3GSYRC3.mjs";
6
- import "../../chunk-UR72PGU7.mjs";
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";
@@ -534,16 +534,7 @@ var Button = ({}) => {
534
534
  // src/components/dev-console/utils.ts
535
535
  var import_react_core2 = require("@copilotkit/react-core");
536
536
  function shouldShowDevConsole(showDevConsole) {
537
- if (typeof showDevConsole === "boolean") {
538
- return showDevConsole;
539
- }
540
- return getHostname() === "localhost" || getHostname() === "127.0.0.1" || getHostname() === "0.0.0.0" || getHostname() === "::1";
541
- }
542
- function getHostname() {
543
- if (typeof window !== "undefined" && window.location) {
544
- return window.location.hostname;
545
- }
546
- return "";
537
+ return showDevConsole;
547
538
  }
548
539
  function getPublishedCopilotKitVersion(current, forceCheck = false) {
549
540
  return __async(this, null, function* () {
@@ -950,10 +941,8 @@ function VersionInfo({
950
941
  currentVersionLabel = `${currentVersion} \u2192 ${latestVersion}`;
951
942
  }
952
943
  let asideLabel = "";
953
- if (showDevConsole === "auto") {
954
- asideLabel = "(localhost only)";
955
- } else if (showDevConsole === true) {
956
- asideLabel = "(always on)";
944
+ if (showDevConsole === true) {
945
+ asideLabel = "(enabled)";
957
946
  }
958
947
  const installCommand = [
959
948
  `npm install`,