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