bibot 1.0.60 → 1.0.62
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 +36 -15
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +36 -15
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
    
        package/dist/index.js
    CHANGED
    
    | @@ -3830,12 +3830,12 @@ function SendMessageIcon(_ref) { | |
| 3830 3830 | 
             
              return React__default.createElement("svg", {
         | 
| 3831 3831 | 
             
                xmlns: 'http://www.w3.org/2000/svg',
         | 
| 3832 3832 | 
             
                className: 'icon icon-tabler icon-tabler-send-2',
         | 
| 3833 | 
            -
                width: ' | 
| 3834 | 
            -
                height: ' | 
| 3833 | 
            +
                width: '30',
         | 
| 3834 | 
            +
                height: '30',
         | 
| 3835 3835 | 
             
                viewBox: '0 0 24 24',
         | 
| 3836 | 
            -
                strokeWidth: '1 | 
| 3836 | 
            +
                strokeWidth: '1',
         | 
| 3837 3837 | 
             
                stroke: color,
         | 
| 3838 | 
            -
                fill: '# | 
| 3838 | 
            +
                fill: '#e8e8e8',
         | 
| 3839 3839 | 
             
                strokeLinecap: 'round',
         | 
| 3840 3840 | 
             
                strokeLinejoin: 'round'
         | 
| 3841 3841 | 
             
              }, React__default.createElement("path", {
         | 
| @@ -4127,16 +4127,39 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) { | |
| 4127 4127 | 
             
              }, React.createElement("div", {
         | 
| 4128 4128 | 
             
                style: {
         | 
| 4129 4129 | 
             
                  display: 'flex',
         | 
| 4130 | 
            -
                   | 
| 4131 | 
            -
             | 
| 4132 | 
            -
             | 
| 4133 | 
            -
             | 
| 4130 | 
            +
                  flexDirection: 'column'
         | 
| 4131 | 
            +
                }
         | 
| 4132 | 
            +
              }, React.createElement("div", {
         | 
| 4133 | 
            +
                style: {
         | 
| 4134 | 
            +
                  display: 'flex',
         | 
| 4135 | 
            +
                  alignItems: 'center'
         | 
| 4136 | 
            +
                }
         | 
| 4137 | 
            +
              }, React.createElement(Avatar, {
         | 
| 4138 | 
            +
                borderColor: '#fff',
         | 
| 4139 | 
            +
                width: '36px',
         | 
| 4140 | 
            +
                height: '36px',
         | 
| 4141 | 
            +
                source: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.logo_url
         | 
| 4142 | 
            +
              }), React.createElement("small", {
         | 
| 4143 | 
            +
                style: {
         | 
| 4144 | 
            +
                  marginLeft: 5
         | 
| 4145 | 
            +
                }
         | 
| 4146 | 
            +
              }, " ", chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.title)), React.createElement("div", {
         | 
| 4147 | 
            +
                style: {
         | 
| 4148 | 
            +
                  backgroundColor: '#dedede',
         | 
| 4149 | 
            +
                  marginBottom: 20,
         | 
| 4150 | 
            +
                  width: 300,
         | 
| 4151 | 
            +
                  marginLeft: 15,
         | 
| 4152 | 
            +
                  marginTop: 5,
         | 
| 4153 | 
            +
                  borderTopRightRadius: 20,
         | 
| 4154 | 
            +
                  borderBottomRightRadius: 20,
         | 
| 4155 | 
            +
                  borderBottomLeftRadius: 20
         | 
| 4134 4156 | 
             
                }
         | 
| 4135 4157 | 
             
              }, React.createElement("p", {
         | 
| 4136 4158 | 
             
                style: {
         | 
| 4137 | 
            -
                  fontSize: ' | 
| 4159 | 
            +
                  fontSize: '16px',
         | 
| 4160 | 
            +
                  paddingLeft: 10
         | 
| 4138 4161 | 
             
                }
         | 
| 4139 | 
            -
              }, "Are you looking for answers to any of these questions? Click for an answer ")), questions.map(function (question, index) {
         | 
| 4162 | 
            +
              }, "Are you looking for answers to any of these questions? Click for an answer "))), questions.map(function (question, index) {
         | 
| 4140 4163 | 
             
                var _chatBubbleConfig$col;
         | 
| 4141 4164 | 
             
                return React.createElement("div", {
         | 
| 4142 4165 | 
             
                  key: index,
         | 
| @@ -4147,7 +4170,7 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) { | |
| 4147 4170 | 
             
                    margin: '7px',
         | 
| 4148 4171 | 
             
                    textAlign: 'start',
         | 
| 4149 4172 | 
             
                    padding: '14px',
         | 
| 4150 | 
            -
                    borderRadius: ' | 
| 4173 | 
            +
                    borderRadius: '16px',
         | 
| 4151 4174 | 
             
                    cursor: 'pointer'
         | 
| 4152 4175 | 
             
                  },
         | 
| 4153 4176 | 
             
                  onClick: function onClick() {
         | 
| @@ -4219,7 +4242,6 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) { | |
| 4219 4242 | 
             
                  zIndex: 9999
         | 
| 4220 4243 | 
             
                }
         | 
| 4221 4244 | 
             
              }, chatIsOpen && React.createElement("div", {
         | 
| 4222 | 
            -
                className: styles['chat-window'],
         | 
| 4223 4245 | 
             
                style: {
         | 
| 4224 4246 | 
             
                  backgroundColor: '#fff',
         | 
| 4225 4247 | 
             
                  position: 'absolute',
         | 
| @@ -4237,14 +4259,13 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) { | |
| 4237 4259 | 
             
                className: styles['chat-header'],
         | 
| 4238 4260 | 
             
                style: {
         | 
| 4239 4261 | 
             
                  backgroundColor: (_chatBubbleConfig$col = chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color) != null ? _chatBubbleConfig$col : '#dedede',
         | 
| 4240 | 
            -
                  height: 50,
         | 
| 4241 4262 | 
             
                  borderTopLeftRadius: 8,
         | 
| 4242 4263 | 
             
                  borderTopRightRadius: 8,
         | 
| 4243 4264 | 
             
                  display: 'flex',
         | 
| 4244 4265 | 
             
                  alignItems: 'center',
         | 
| 4245 4266 | 
             
                  justifyContent: 'flex-start',
         | 
| 4246 4267 | 
             
                  paddingInline: 15,
         | 
| 4247 | 
            -
                  paddingBlock:  | 
| 4268 | 
            +
                  paddingBlock: 20
         | 
| 4248 4269 | 
             
                }
         | 
| 4249 4270 | 
             
              }, React.createElement("div", {
         | 
| 4250 4271 | 
             
                style: {
         | 
| @@ -4393,7 +4414,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) { | |
| 4393 4414 | 
             
                  return sendInputInquiry();
         | 
| 4394 4415 | 
             
                }
         | 
| 4395 4416 | 
             
              }, React.createElement(SendMessageIcon, {
         | 
| 4396 | 
            -
                color: '# | 
| 4417 | 
            +
                color: isLoading ? '#cdcdcd' : chatBubbleConfig.color
         | 
| 4397 4418 | 
             
              }))), React.createElement("div", {
         | 
| 4398 4419 | 
             
                style: {
         | 
| 4399 4420 | 
             
                  backgroundColor: '#f9f9f9',
         |