@bytebrain.ai/bytebrain-ui 0.0.1-alpha-1 → 0.0.1-alpha-1.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 (2) hide show
  1. package/dist/index.js +11 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -810,7 +810,10 @@ var useClickOutside = function useClickOutside(ref, callback) {
810
810
  };
811
811
  function PopupChatWindow(_ref) {
812
812
  var visible = _ref.visible,
813
- onClose = _ref.onClose;
813
+ onClose = _ref.onClose,
814
+ websocketHost = _ref.websocketHost,
815
+ websocketPort = _ref.websocketPort,
816
+ websocketEndpoint = _ref.websocketEndpoint;
814
817
  var ref = useRef();
815
818
  useClickOutside(ref, onClose);
816
819
  var welcome_messages = ["🌟 Greetings from ZIO Chat! 🌟 Have questions about ZIO? Look no further! I'm here to be your ZIO guru. Whether you're a seasoned pro or just starting out, I've got answers tailored just for you. Fire away with your ZIO queries, and I'll hit you back with the best insights I've got. Let's dive into the world of ZIO together!", "🔥 Ignite your ZIO journey with ZIO Chat! 🔥 Ready to unravel the intricacies of ZIO? As your trusty sidekick, I'm here to light the way. No matter if you're wandering through functional forests or traversing effectful landscapes, I've got answers to keep you on track. Your ZIO adventure starts here – ask me anything and let's explore together!", "Hello! 😊 I'm your ZIO Chat Bot, designed to be your go-to resource for all things ZIO! Whether you're new to this powerful functional effect system or a seasoned pro, I'm here to assist you. ZIO empowers you to build concurrent and resilient applications in Scala, offering referential transparency, composable data types, type-safety, and more. So, go ahead and ask me anything about ZIO – I'm here to provide the answers you need! 🤖", "Hi there! 👋 I'm ZIO Chat, your friendly neighborhood ZIO expert. I'm here to help you navigate the world of ZIO. Whether you're a seasoned pro or just starting out, fire away with your ZIO questions. I will hit you back with the best insights I've got. Let's dive into the world of ZIO together!", "🎉 Hey there, ZIO aficionado! 🎉 Step into the ZIO wonderland with me as your guide. Whether you're a functional fanatic or just dipping your toes into the ZIO ecosystem, I'm here to make your journey smooth. Got ZIO questions? I've got answers! Let's navigate the ZIO universe together and unlock its infinite possibilities!", "Hi, fellow coder! 🌟 Welcome to your ZIO adventure with the ZIO Chat Bot. 🚀 Let's master functional Scala together. From referential transparency to concurrent prowess, I've got your back. Ready to dive in? Your questions, my insights – let's conquer ZIO! 💡🤖"];
@@ -821,9 +824,9 @@ function PopupChatWindow(_ref) {
821
824
  }, /*#__PURE__*/React.createElement(ChatPrompt, {
822
825
  title: "ZIO Chat",
823
826
  defaultQuestion: "Write a question about ZIO!",
824
- websocketHost: "localhost",
825
- websocketPort: "8081",
826
- websocketEndpoint: "/chat",
827
+ websocketHost: websocketHost || "localhost",
828
+ websocketPort: websocketPort || "8081",
829
+ websocketEndpoint: websocketEndpoint || "/chat",
827
830
  welcomeMessages: welcome_messages,
828
831
  fullScreen: false
829
832
  }));
@@ -846,7 +849,10 @@ var ChatApp = function ChatApp(props) {
846
849
  onClick: open
847
850
  }, "ZIO Chat!"), /*#__PURE__*/React.createElement(PopupChatWindow, {
848
851
  onClose: close,
849
- visible: isOpen
852
+ visible: isOpen,
853
+ websocketHost: props.websocketHost,
854
+ websocketPort: props.websocketPort,
855
+ websocketEndpoint: props.websocketEndpoint
850
856
  }));
851
857
  };
852
858
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrain.ai/bytebrain-ui",
3
- "version": "0.0.1-alpha-1",
3
+ "version": "0.0.1-alpha-1.1",
4
4
  "engines": {
5
5
  "node": "18.x"
6
6
  },
@@ -103,4 +103,4 @@
103
103
  "react": "^18.2.0",
104
104
  "react-dom": "^18.2.0"
105
105
  }
106
- }
106
+ }