bibot 1.0.26 → 1.0.28

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/dist/index.js CHANGED
@@ -3712,7 +3712,7 @@ var useBiBotChatBot = function useBiBotChatBot(_ref) {
3712
3712
  sendInputInquiry();
3713
3713
  askPredefinedQuestion(question);
3714
3714
  setUserInput('');
3715
- setShowPredefinedQuestions(true);
3715
+ setShowPredefinedQuestions(false);
3716
3716
  };
3717
3717
  var getChatBubbleConfig = React.useCallback(function () {
3718
3718
  try {
@@ -4078,10 +4078,34 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4078
4078
  chatBubbleConfig = _useBiBotChatBot.chatBubbleConfig;
4079
4079
  return React.createElement("div", {
4080
4080
  style: {
4081
- height: '50%',
4082
- color: '#000'
4081
+ height: '100%',
4082
+ color: '#000',
4083
+ backgroundColor: '#fff',
4084
+ padding: 10,
4085
+ borderRadius: '6px'
4086
+ }
4087
+ }, React.createElement("div", {
4088
+ style: {
4089
+ display: 'flex',
4090
+ justifyContent: 'center',
4091
+ alignItems: 'center',
4092
+ flexDirection: 'column'
4093
+ }
4094
+ }, React.createElement(Avatar, {
4095
+ borderColor: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
4096
+ width: '35px',
4097
+ height: '35px',
4098
+ source: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.logo_url
4099
+ }), React.createElement("h6", {
4100
+ style: {
4101
+ marginBlock: '1px'
4102
+ }
4103
+ }, "Welcome!"), React.createElement("p", {
4104
+ style: {
4105
+ fontSize: '14px',
4106
+ fontWeight: 'bold'
4083
4107
  }
4084
- }, questions.map(function (question, index) {
4108
+ }, "Are you looking for any of these questions? Click for an answer ")), questions.map(function (question, index) {
4085
4109
  var _chatBubbleConfig$col;
4086
4110
  return React.createElement("div", {
4087
4111
  key: index,
@@ -4251,7 +4275,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4251
4275
  },
4252
4276
  className: 'message'
4253
4277
  }, ' ', React.createElement(Loader, null)), showPredefinedQuestions && predefinedQuestions && predefinedQuestions.length > 0 && React.createElement(PredefinedQuestions, {
4254
- questions: predefinedQuestions.slice(0, 5),
4278
+ questions: predefinedQuestions.slice(0, 3),
4255
4279
  onSelect: handlePredefinedQuestionSelect,
4256
4280
  clientId: clientId
4257
4281
  }), React.createElement("div", {