@chat21/chat21-web-widget 5.0.45 → 5.0.46-rc.2
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/CHANGELOG.md +8 -0
- package/angular.json +2 -1
- package/dist/assets/i18n/en.json +1 -1
- package/dist/assets/i18n/es.json +22 -9
- package/dist/assets/i18n/fr.json +20 -7
- package/dist/assets/i18n/it.json +24 -11
- package/dist/assets/twp/index-dev.html +1 -1
- package/dist/iframe-style.css +8 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/src/app/app.component.scss +4 -3
- package/src/app/app.component.spec.ts +59 -18
- package/src/app/component/conversation-detail/conversation/conversation.component.spec.ts +12 -1
- package/src/app/component/conversation-detail/conversation/conversation.component.ts +4 -2
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.spec.ts +7 -4
- package/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.spec.ts +11 -3
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.spec.ts +11 -4
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.spec.ts +9 -59
- package/src/app/component/form/form-builder/form-builder.component.spec.ts +9 -1
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.html +5 -5
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.spec.ts +1 -1
- package/src/app/component/form/inputs/form-textarea/form-textarea.component.ts +1 -1
- package/src/app/component/home/home.component.spec.ts +12 -3
- package/src/app/component/home-conversations/home-conversations.component.spec.ts +9 -1
- package/src/app/component/list-all-conversations/list-all-conversations.component.spec.ts +9 -11
- package/src/app/component/list-conversations/list-conversations.component.spec.ts +9 -1
- package/src/app/component/message/buttons/action-button/action-button.component.scss +1 -0
- package/src/app/component/message/buttons/link-button/link-button.component.scss +1 -0
- package/src/app/component/message/buttons/text-button/text-button.component.scss +1 -0
- package/src/app/component/message/frame/frame.component.spec.ts +16 -3
- package/src/app/component/message/frame/frame.component.ts +2 -2
- package/src/app/component/message/image/image.component.ts +46 -0
- package/src/app/component/message/info-message/info-message.component.spec.ts +9 -1
- package/src/app/component/message/return-receipt/return-receipt.component.spec.ts +17 -2
- package/src/app/component/message/text/text.component.spec.ts +2 -2
- package/src/app/providers/settings-saver.service.ts +1 -1
- package/src/app/utils/globals.ts +1 -1
- package/src/assets/i18n/en.json +1 -1
- package/src/assets/i18n/es.json +22 -9
- package/src/assets/i18n/fr.json +20 -7
- package/src/assets/i18n/it.json +24 -11
- package/src/assets/twp/index-dev.html +1 -1
- package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +6 -47
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +5 -23
- package/src/chat21-core/providers/tiledesk/tiledesk-auth.service.spec.ts +29 -19
- package/src/chat21-core/utils/utils-message.ts +1 -1
- package/src/chat21-core/utils/utils.ts +3 -3
- package/src/iframe-style.css +8 -1
|
@@ -405,20 +405,20 @@ export function detectIfIsMobile(windowContext) {
|
|
|
405
405
|
export function convertColorToRGBA(color, opacity) {
|
|
406
406
|
let result = color;
|
|
407
407
|
// console.log('convertColorToRGBA' + color, opacity);
|
|
408
|
-
if ( color.indexOf('#') > -1 ) {
|
|
408
|
+
if (color && color.indexOf('#') > -1 ) {
|
|
409
409
|
color = color.replace('#', '');
|
|
410
410
|
const r = parseInt(color.substring(0, 2), 16);
|
|
411
411
|
const g = parseInt(color.substring(2, 4), 16);
|
|
412
412
|
const b = parseInt(color.substring(4, 6), 16);
|
|
413
413
|
result = 'rgba(' + r + ',' + g + ',' + b + ',' + opacity / 100 + ')';
|
|
414
|
-
} else if ( color.indexOf('rgba') > -1 ) {
|
|
414
|
+
} else if (color && color.indexOf('rgba') > -1 ) {
|
|
415
415
|
const rgb = color.split(',');
|
|
416
416
|
const r = rgb[0].substring(5);
|
|
417
417
|
const g = rgb[1];
|
|
418
418
|
const b = rgb[2];
|
|
419
419
|
// const b = rgb[2].substring(1, rgb[2].length - 1);
|
|
420
420
|
result = 'rgba(' + r + ',' + g + ',' + b + ',' + opacity / 100 + ')';
|
|
421
|
-
} else if ( color.indexOf('rgb(') > -1 ) {
|
|
421
|
+
} else if (color && color.indexOf('rgb(') > -1 ) {
|
|
422
422
|
const rgb = color.split(',');
|
|
423
423
|
// console.log(rgb);
|
|
424
424
|
const r = rgb[0].substring(4);
|