isometrik-plugin-chat-sdk 2.0.16 → 2.0.17
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/cjs/{app-globals-95486d77.js → app-globals-170f9e71.js} +3 -3
- package/dist/cjs/{app-globals-95486d77.js.map → app-globals-170f9e71.js.map} +1 -1
- package/dist/cjs/attachment-preview_22.cjs.entry.js +135 -46
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
- package/dist/cjs/contracts-dfc84075.js.map +1 -1
- package/dist/cjs/{drawer-960b3f5d.js → drawer-00a2323a.js} +2 -2
- package/dist/cjs/{drawer-960b3f5d.js.map → drawer-00a2323a.js.map} +1 -1
- package/dist/cjs/forward-memebers.cjs.entry.js +15 -9
- package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -1
- package/dist/cjs/{group-members-1205fc4c.js → group-members-b3bea06e.js} +5 -5
- package/dist/cjs/{group-members-1205fc4c.js.map → group-members-b3bea06e.js.map} +1 -1
- package/dist/cjs/{groupcast-c93d4a7d.js → groupcast-3cb44a25.js} +16 -16
- package/dist/cjs/{groupcast-c93d4a7d.js.map → groupcast-3cb44a25.js.map} +1 -1
- package/dist/cjs/{groupcast-5e3d49c4.js → groupcast-4239cbfc.js} +7 -7
- package/dist/cjs/{groupcast-5e3d49c4.js.map → groupcast-4239cbfc.js.map} +1 -1
- package/dist/cjs/{index-66f98408.js → index-3411923c.js} +2 -1
- package/dist/cjs/index-3411923c.js.map +1 -0
- package/dist/cjs/index.cjs.js +7 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/isometrik-webchat.cjs.js +9 -8
- package/dist/cjs/isometrik-webchat.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +9 -8
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/local-notification-bdd04d7a.js +259 -0
- package/dist/cjs/local-notification-bdd04d7a.js.map +1 -0
- package/dist/cjs/login-page_3.cjs.entry.js +62 -28
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/cjs/media-gallery.cjs.entry.js +1 -1
- package/dist/cjs/member-add.cjs.entry.js +5 -6
- package/dist/cjs/member-add.cjs.entry.js.map +1 -1
- package/dist/cjs/{message-reaction-8f93a048.js → message-reaction-82a4f93c.js} +5 -5
- package/dist/cjs/{message-reaction-8f93a048.js.map → message-reaction-82a4f93c.js.map} +1 -1
- package/dist/cjs/reaction-container.cjs.entry.js +3 -4
- package/dist/cjs/reaction-container.cjs.entry.js.map +1 -1
- package/dist/cjs/{runtime-controls-959fe6ed.js → runtime-controls-99f378d4.js} +9 -4
- package/dist/cjs/runtime-controls-99f378d4.js.map +1 -0
- package/dist/cjs/{send-media-2dadbb03.js → send-media-7c865c19.js} +13 -11
- package/dist/cjs/send-media-7c865c19.js.map +1 -0
- package/dist/cjs/signup-page.cjs.entry.js +2 -2
- package/dist/cjs/spinner-loader.cjs.entry.js +1 -1
- package/dist/cjs/{index.m-ff115b26.js → toast-91093c84.js} +156 -1
- package/dist/cjs/{index.m-ff115b26.js.map → toast-91093c84.js.map} +1 -1
- package/dist/cjs/toast-notification.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +22 -8
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js +10 -4
- package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/chat-tile/chat-tile.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +64 -3
- package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/new chat/new-chat.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/spinner-loader/spinner-loader.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/toast-notification/toast-notification.js +3 -3
- package/dist/collection/components/Login.js +1 -1
- package/dist/collection/components/Signup.js +2 -2
- package/dist/collection/components/my-component/web-chat/WebChat.js +61 -2
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/offline-host.js +11 -0
- package/dist/collection/components/my-component/web-chat/offline-host.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/public-send.js +10 -0
- package/dist/collection/components/my-component/web-chat/public-send.js.map +1 -1
- package/dist/collection/components/theme-provider.js +1 -1
- package/dist/collection/lib/chat/conversation-notifications.js +26 -0
- package/dist/collection/lib/chat/conversation-notifications.js.map +1 -0
- package/dist/collection/lib/chat/index.js +3 -0
- package/dist/collection/lib/chat/index.js.map +1 -1
- package/dist/collection/lib/chat/local-notification.js +118 -0
- package/dist/collection/lib/chat/local-notification.js.map +1 -0
- package/dist/collection/lib/chat/message-notification.js +134 -0
- package/dist/collection/lib/chat/message-notification.js.map +1 -0
- package/dist/collection/lib/chat/send-media.js +3 -1
- package/dist/collection/lib/chat/send-media.js.map +1 -1
- package/dist/collection/lib/custom-ui/contracts.js.map +1 -1
- package/dist/collection/lib/custom-ui/index.js.map +1 -1
- package/dist/collection/lib/mqtt/dispatch.js +17 -1
- package/dist/collection/lib/mqtt/dispatch.js.map +1 -1
- package/dist/collection/sdk/init.js +5 -0
- package/dist/collection/sdk/init.js.map +1 -1
- package/dist/components/ChatFooter.js +21 -8
- package/dist/components/ChatFooter.js.map +1 -1
- package/dist/components/GroupCast2.js +1 -1
- package/dist/components/Login.js +1 -1
- package/dist/components/WebChat.js +39 -1
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/contact-info2.js +87 -5
- package/dist/components/contact-info2.js.map +1 -1
- package/dist/components/context-menu2.js +1 -1
- package/dist/components/contracts.js.map +1 -1
- package/dist/components/forward-memebers.js +10 -4
- package/dist/components/forward-memebers.js.map +1 -1
- package/dist/components/index.js +5 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/local-notification.js +254 -0
- package/dist/components/local-notification.js.map +1 -0
- package/dist/components/media-gallery.js +1 -1
- package/dist/components/send-media.js +3 -1
- package/dist/components/send-media.js.map +1 -1
- package/dist/components/signup-page.js +2 -2
- package/dist/components/spinner-loader2.js +1 -1
- package/dist/components/theme-provider2.js +1 -1
- package/dist/components/toast-notification.js +3 -3
- package/dist/esm/{app-globals-879c137f.js → app-globals-15a6ef50.js} +3 -3
- package/dist/esm/{app-globals-879c137f.js.map → app-globals-15a6ef50.js.map} +1 -1
- package/dist/esm/attachment-preview_22.entry.js +107 -18
- package/dist/esm/attachment-preview_22.entry.js.map +1 -1
- package/dist/esm/contracts-50f4ddae.js.map +1 -1
- package/dist/esm/{drawer-d54c2f10.js → drawer-7de04622.js} +2 -2
- package/dist/esm/{drawer-d54c2f10.js.map → drawer-7de04622.js.map} +1 -1
- package/dist/esm/forward-memebers.entry.js +13 -7
- package/dist/esm/forward-memebers.entry.js.map +1 -1
- package/dist/esm/{group-members-d603f29f.js → group-members-36cf9395.js} +2 -2
- package/dist/esm/{group-members-d603f29f.js.map → group-members-36cf9395.js.map} +1 -1
- package/dist/esm/{groupcast-9c7d2a32.js → groupcast-cc10c6a4.js} +2 -2
- package/dist/esm/{groupcast-9c7d2a32.js.map → groupcast-cc10c6a4.js.map} +1 -1
- package/dist/esm/{groupcast-58a59d64.js → groupcast-ea2466c8.js} +3 -3
- package/dist/esm/{groupcast-58a59d64.js.map → groupcast-ea2466c8.js.map} +1 -1
- package/dist/esm/{index-4c865e34.js → index-142896ce.js} +2 -2
- package/dist/esm/index-142896ce.js.map +1 -0
- package/dist/esm/index.js +8 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isometrik-webchat.js +9 -8
- package/dist/esm/isometrik-webchat.js.map +1 -1
- package/dist/esm/loader.js +9 -8
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/local-notification-4c1e166d.js +254 -0
- package/dist/esm/local-notification-4c1e166d.js.map +1 -0
- package/dist/esm/login-page_3.entry.js +45 -11
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/esm/media-gallery.entry.js +1 -1
- package/dist/esm/member-add.entry.js +5 -6
- package/dist/esm/member-add.entry.js.map +1 -1
- package/dist/esm/{message-reaction-0a2bb115.js → message-reaction-0d2ef75f.js} +2 -2
- package/dist/esm/{message-reaction-0a2bb115.js.map → message-reaction-0d2ef75f.js.map} +1 -1
- package/dist/esm/reaction-container.entry.js +3 -4
- package/dist/esm/reaction-container.entry.js.map +1 -1
- package/dist/esm/{runtime-controls-6b7c852a.js → runtime-controls-8a22625e.js} +9 -4
- package/dist/esm/runtime-controls-8a22625e.js.map +1 -0
- package/dist/esm/{send-media-ac360d8e.js → send-media-5527ee9f.js} +5 -3
- package/dist/esm/send-media-5527ee9f.js.map +1 -0
- package/dist/esm/signup-page.entry.js +2 -2
- package/dist/esm/spinner-loader.entry.js +1 -1
- package/dist/esm/{index.m-8c70037f.js → toast-a1531088.js} +156 -2
- package/dist/esm/{index.m-8c70037f.js.map → toast-a1531088.js.map} +1 -1
- package/dist/esm/toast-notification.entry.js +3 -3
- package/dist/isometrik-webchat/index.esm.js +1 -1
- package/dist/isometrik-webchat/index.esm.js.map +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
- package/dist/isometrik-webchat/{p-586f6978.entry.js → p-08ba6153.entry.js} +2 -2
- package/dist/isometrik-webchat/p-1db79cfb.js +2 -0
- package/dist/isometrik-webchat/p-343f50b4.js +7 -0
- package/dist/isometrik-webchat/p-343f50b4.js.map +1 -0
- package/dist/isometrik-webchat/{p-5d98a8a0.js → p-4671fe73.js} +2 -2
- package/dist/isometrik-webchat/{p-ca47d693.entry.js → p-52a575c0.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-b1330793.js → p-54267fe0.js} +2 -2
- package/dist/isometrik-webchat/p-54267fe0.js.map +1 -0
- package/dist/isometrik-webchat/p-5b965e04.js +2 -0
- package/dist/isometrik-webchat/p-5b965e04.js.map +1 -0
- package/dist/isometrik-webchat/p-5d1877d1.entry.js +2 -0
- package/dist/isometrik-webchat/{p-ba6de4e2.entry.js.map → p-5d1877d1.entry.js.map} +1 -1
- package/dist/isometrik-webchat/p-643457b8.js +2 -0
- package/dist/isometrik-webchat/p-643457b8.js.map +1 -0
- package/dist/isometrik-webchat/p-6fc95e0e.js +2 -0
- package/dist/isometrik-webchat/p-6fc95e0e.js.map +1 -0
- package/dist/isometrik-webchat/{p-d6fd2dd7.entry.js → p-925da2c0.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-1dc52239.js → p-925decda.js} +2 -2
- package/dist/isometrik-webchat/p-adc45831.js.map +1 -1
- package/dist/isometrik-webchat/p-bf71ce5e.entry.js +2 -0
- package/dist/isometrik-webchat/p-bf71ce5e.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-1953573d.js → p-c08055fe.js} +2 -2
- package/dist/isometrik-webchat/p-c49de274.entry.js +2 -0
- package/dist/isometrik-webchat/{p-6024bf2a.entry.js.map → p-c49de274.entry.js.map} +1 -1
- package/dist/isometrik-webchat/{p-04fdbd0a.js → p-c591fa45.js} +2 -2
- package/dist/isometrik-webchat/{p-9db196a4.entry.js → p-cbb1179b.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-46e0048e.js → p-dab06d54.js} +2 -2
- package/dist/isometrik-webchat/p-e5ffe038.entry.js +2 -0
- package/dist/isometrik-webchat/p-e5ffe038.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-ffbbe278.entry.js +2 -0
- package/dist/isometrik-webchat/p-ffbbe278.entry.js.map +1 -0
- package/dist/types/components/ChatUIComponent/shared/contact-info/contact-info.d.ts +5 -0
- package/dist/types/components/my-component/web-chat/WebChat.d.ts +21 -0
- package/dist/types/components.d.ts +36 -0
- package/dist/types/lib/chat/conversation-notifications.d.ts +12 -0
- package/dist/types/lib/chat/index.d.ts +3 -0
- package/dist/types/lib/chat/local-notification.d.ts +39 -0
- package/dist/types/lib/chat/message-notification.d.ts +37 -0
- package/dist/types/lib/chat/send-media.d.ts +3 -0
- package/dist/types/lib/custom-ui/contracts.d.ts +10 -0
- package/dist/types/lib/custom-ui/index.d.ts +6 -1
- package/dist/types/sdk/init.d.ts +21 -0
- package/docs/CUSTOMIZATION.md +30 -0
- package/docs/INTEGRATION.md +20 -4
- package/package.json +1 -1
- package/dist/cjs/index-66f98408.js.map +0 -1
- package/dist/cjs/runtime-controls-959fe6ed.js.map +0 -1
- package/dist/cjs/send-media-2dadbb03.js.map +0 -1
- package/dist/cjs/toast-75ef0607.js +0 -159
- package/dist/cjs/toast-75ef0607.js.map +0 -1
- package/dist/esm/index-4c865e34.js.map +0 -1
- package/dist/esm/runtime-controls-6b7c852a.js.map +0 -1
- package/dist/esm/send-media-ac360d8e.js.map +0 -1
- package/dist/esm/toast-45ac7913.js +0 -157
- package/dist/esm/toast-45ac7913.js.map +0 -1
- package/dist/isometrik-webchat/p-0c06a021.js +0 -2
- package/dist/isometrik-webchat/p-0c06a021.js.map +0 -1
- package/dist/isometrik-webchat/p-217b9dc2.js +0 -2
- package/dist/isometrik-webchat/p-217b9dc2.js.map +0 -1
- package/dist/isometrik-webchat/p-30855ba7.js +0 -2
- package/dist/isometrik-webchat/p-30855ba7.js.map +0 -1
- package/dist/isometrik-webchat/p-39b6adef.entry.js +0 -2
- package/dist/isometrik-webchat/p-39b6adef.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-57d958b8.entry.js +0 -2
- package/dist/isometrik-webchat/p-57d958b8.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-6024bf2a.entry.js +0 -2
- package/dist/isometrik-webchat/p-79d1a171.js +0 -2
- package/dist/isometrik-webchat/p-7af9a7f3.entry.js +0 -2
- package/dist/isometrik-webchat/p-7af9a7f3.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-8f17345f.js +0 -7
- package/dist/isometrik-webchat/p-8f17345f.js.map +0 -1
- package/dist/isometrik-webchat/p-b1330793.js.map +0 -1
- package/dist/isometrik-webchat/p-ba6de4e2.entry.js +0 -2
- /package/dist/isometrik-webchat/{p-586f6978.entry.js.map → p-08ba6153.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-79d1a171.js.map → p-1db79cfb.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-5d98a8a0.js.map → p-4671fe73.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-ca47d693.entry.js.map → p-52a575c0.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-d6fd2dd7.entry.js.map → p-925da2c0.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-1dc52239.js.map → p-925decda.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-1953573d.js.map → p-c08055fe.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-04fdbd0a.js.map → p-c591fa45.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-9db196a4.entry.js.map → p-cbb1179b.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-46e0048e.js.map → p-dab06d54.js.map} +0 -0
|
@@ -7,17 +7,17 @@ const chatCreds = require('./chat-creds-2dbc4087.js');
|
|
|
7
7
|
const IsometrikLogo = require('./IsometrikLogo-9e642f65.js');
|
|
8
8
|
const content = require('./content-ebca062a.js');
|
|
9
9
|
const chatAssets = require('./chat-assets-686620e7.js');
|
|
10
|
-
const groupcast = require('./groupcast-
|
|
11
|
-
const drawer = require('./drawer-
|
|
10
|
+
const groupcast = require('./groupcast-4239cbfc.js');
|
|
11
|
+
const drawer = require('./drawer-00a2323a.js');
|
|
12
12
|
const helpers = require('./helpers-154861e9.js');
|
|
13
|
-
const
|
|
13
|
+
const toast = require('./toast-91093c84.js');
|
|
14
14
|
const groupMembers = require('./group-members-5a82ec8a.js');
|
|
15
|
-
const groupcast$1 = require('./groupcast-
|
|
16
|
-
const sendMedia = require('./send-media-
|
|
15
|
+
const groupcast$1 = require('./groupcast-3cb44a25.js');
|
|
16
|
+
const sendMedia = require('./send-media-7c865c19.js');
|
|
17
|
+
const localNotification = require('./local-notification-bdd04d7a.js');
|
|
17
18
|
const client = require('./client-80851676.js');
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const index$1 = require('./index-66f98408.js');
|
|
19
|
+
const groupMembers$1 = require('./group-members-b3bea06e.js');
|
|
20
|
+
const index$1 = require('./index-3411923c.js');
|
|
21
21
|
require('./destroy-chat-7ae8fc99.js');
|
|
22
22
|
|
|
23
23
|
const MAX_OUTBOX_MEDIA_BYTES = 12 * 1024 * 1024;
|
|
@@ -146,7 +146,7 @@ const ThemeProvider = class {
|
|
|
146
146
|
return normalized;
|
|
147
147
|
}
|
|
148
148
|
render() {
|
|
149
|
-
return (index.h("div", { key: '
|
|
149
|
+
return (index.h("div", { key: '3f2ce7856d9723fc814306fd96d6be87c56df990', class: `theme-provider-container theme-${this.mode}` }, index.h("slot", { key: '76ee5a9c2920e4c5648c8d07ddaddaebc04bfb12' })));
|
|
150
150
|
}
|
|
151
151
|
get hostElement() { return index.getElement(this); }
|
|
152
152
|
static get watchers() { return {
|
|
@@ -481,7 +481,7 @@ function handleLifecycleMqtt(parsedMessage, ctx) {
|
|
|
481
481
|
* Actions are handled in named sections below — search for ACTION: <name>.
|
|
482
482
|
*/
|
|
483
483
|
async function dispatchMqttMessage(parsedMessage, ctx) {
|
|
484
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
|
|
484
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12;
|
|
485
485
|
if (!parsedMessage || !parsedMessage.action)
|
|
486
486
|
return;
|
|
487
487
|
handleLifecycleMqtt(parsedMessage, ctx);
|
|
@@ -888,7 +888,7 @@ async function dispatchMqttMessage(parsedMessage, ctx) {
|
|
|
888
888
|
// Membership system events often lack messageId — skip delivery ACK.
|
|
889
889
|
if ((parsedMessage === null || parsedMessage === void 0 ? void 0 : parsedMessage.messageId) && !isSystemMembershipAction(parsedMessage === null || parsedMessage === void 0 ? void 0 : parsedMessage.action)) {
|
|
890
890
|
try {
|
|
891
|
-
await
|
|
891
|
+
await toast.M.getInstance().message.putIndicateDelivered({
|
|
892
892
|
conversationId: parsedMessage === null || parsedMessage === void 0 ? void 0 : parsedMessage.conversationId,
|
|
893
893
|
messageId: parsedMessage === null || parsedMessage === void 0 ? void 0 : parsedMessage.messageId,
|
|
894
894
|
});
|
|
@@ -946,6 +946,20 @@ async function dispatchMqttMessage(parsedMessage, ctx) {
|
|
|
946
946
|
if ((totalUnreadConversation === null || totalUnreadConversation === void 0 ? void 0 : totalUnreadConversation.length) > 0) {
|
|
947
947
|
unreadCountStore.updateTotalUnreadCount(totalUnreadConversation === null || totalUnreadConversation === void 0 ? void 0 : totalUnreadConversation.length);
|
|
948
948
|
}
|
|
949
|
+
// Local inbound alert (host can disable / customize via init props).
|
|
950
|
+
const conversation = localNotification.findConversationForPush(parsedMessage.conversationId, ctx.allConversationList, ctx.conversationMetaData);
|
|
951
|
+
const pushMuted = ((_10 = conversation === null || conversation === void 0 ? void 0 : conversation.config) === null || _10 === void 0 ? void 0 : _10.pushNotifications) === false;
|
|
952
|
+
if (!pushMuted && ((_11 = parsedMessage === null || parsedMessage === void 0 ? void 0 : parsedMessage.events) === null || _11 === void 0 ? void 0 : _11.sendPushNotification) !== false) {
|
|
953
|
+
localNotification.showLocalMessageNotification(parsedMessage, {
|
|
954
|
+
pushCtx: localNotification.messagePushContextFrom({
|
|
955
|
+
userMetaData: {
|
|
956
|
+
userName: parsedMessage.senderName || ((_12 = parsedMessage.senderInfo) === null || _12 === void 0 ? void 0 : _12.userName),
|
|
957
|
+
},
|
|
958
|
+
conversation,
|
|
959
|
+
}),
|
|
960
|
+
conversationPushEnabled: true,
|
|
961
|
+
});
|
|
962
|
+
}
|
|
949
963
|
}
|
|
950
964
|
}
|
|
951
965
|
|
|
@@ -967,7 +981,7 @@ function enqueueMqttTask(host, task) {
|
|
|
967
981
|
}
|
|
968
982
|
|
|
969
983
|
const getTotalUnreadConversationsCount = async () => {
|
|
970
|
-
const response = await
|
|
984
|
+
const response = await toast.M.getInstance().Conversation.getConversationUnreadCount();
|
|
971
985
|
return response?.count;
|
|
972
986
|
};
|
|
973
987
|
|
|
@@ -1125,6 +1139,10 @@ async function sendOutboxItem(host, item) {
|
|
|
1125
1139
|
if (!files.length)
|
|
1126
1140
|
throw new Error('Media outbox item has no files');
|
|
1127
1141
|
const attachments = sendMedia.prepareMediaAttachments(files);
|
|
1142
|
+
const pushContext = localNotification.messagePushContextFrom({
|
|
1143
|
+
userMetaData: host.userMetaData,
|
|
1144
|
+
conversation: localNotification.findConversationForPush(item.conversationId, host.allConversationList, host.conversationMetaData),
|
|
1145
|
+
});
|
|
1128
1146
|
const apiId = await sendMedia.uploadAndPostMediaMessage({
|
|
1129
1147
|
conversationId: item.conversationId,
|
|
1130
1148
|
deviceId,
|
|
@@ -1134,6 +1152,7 @@ async function sendOutboxItem(host, item) {
|
|
|
1134
1152
|
replyMessage: item.parentMessageId
|
|
1135
1153
|
? { messageId: item.parentMessageId }
|
|
1136
1154
|
: null,
|
|
1155
|
+
pushContext,
|
|
1137
1156
|
});
|
|
1138
1157
|
if (apiId && item.conversationId === host.selectedConversationId) {
|
|
1139
1158
|
host.allMessages = (host.allMessages || []).map((m) => m.messageId === item.localId
|
|
@@ -1154,7 +1173,11 @@ async function sendOutboxItem(host, item) {
|
|
|
1154
1173
|
body: item.body,
|
|
1155
1174
|
metaData: item.metaData || {},
|
|
1156
1175
|
};
|
|
1157
|
-
|
|
1176
|
+
localNotification.withHostMessagePushFields(payload, localNotification.messagePushContextFrom({
|
|
1177
|
+
userMetaData: host.userMetaData,
|
|
1178
|
+
conversation: localNotification.findConversationForPush(item.conversationId, host.allConversationList, host.conversationMetaData),
|
|
1179
|
+
}), host);
|
|
1180
|
+
const res = await toast.M.getInstance().message.postMessages(payload);
|
|
1158
1181
|
const apiId = res === null || res === void 0 ? void 0 : res.messageId;
|
|
1159
1182
|
if (apiId && item.conversationId === host.selectedConversationId) {
|
|
1160
1183
|
host.allMessages = (host.allMessages || []).map((m) => m.messageId === item.localId
|
|
@@ -1448,7 +1471,7 @@ async function hostGetMessages(host, skip, conversationId) {
|
|
|
1448
1471
|
}
|
|
1449
1472
|
async function hostGetMessageUnreadCount(host) {
|
|
1450
1473
|
try {
|
|
1451
|
-
const res = await
|
|
1474
|
+
const res = await toast.M.getInstance().message.getUnreadCount({
|
|
1452
1475
|
converationId: host.selectedConversationId,
|
|
1453
1476
|
});
|
|
1454
1477
|
host.unreadMessageCountFromApi = res.count;
|
|
@@ -1560,6 +1583,12 @@ async function hostGetGroupCastContacts(host, skip = 0) {
|
|
|
1560
1583
|
/**
|
|
1561
1584
|
* Public sendText / sendMedia implementations for <web-chat>.
|
|
1562
1585
|
*/
|
|
1586
|
+
function pushContextFor(host, conversationId) {
|
|
1587
|
+
return localNotification.messagePushContextFrom({
|
|
1588
|
+
userMetaData: host.userMetaData,
|
|
1589
|
+
conversation: localNotification.findConversationForPush(conversationId, host.allConversationList, null),
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1563
1592
|
async function hostSendText(host, body, conversationId) {
|
|
1564
1593
|
var _a, _b, _c;
|
|
1565
1594
|
const text = (body || '').trim();
|
|
@@ -1617,7 +1646,8 @@ async function hostSendText(host, body, conversationId) {
|
|
|
1617
1646
|
body: text,
|
|
1618
1647
|
metaData: localMessage.metaData || {},
|
|
1619
1648
|
};
|
|
1620
|
-
|
|
1649
|
+
localNotification.withHostMessagePushFields(payload, pushContextFor(host, id), host);
|
|
1650
|
+
const res = await toast.M.getInstance().message.postMessages(payload);
|
|
1621
1651
|
const apiId = res === null || res === void 0 ? void 0 : res.messageId;
|
|
1622
1652
|
if (apiId) {
|
|
1623
1653
|
host.allMessages = host.allMessages.map(m => m.messageId === localId
|
|
@@ -1707,6 +1737,7 @@ async function hostSendMedia(host, files, conversationId, caption) {
|
|
|
1707
1737
|
attachments,
|
|
1708
1738
|
replyMessage: reply,
|
|
1709
1739
|
caption,
|
|
1740
|
+
pushContext: pushContextFor(host, id),
|
|
1710
1741
|
});
|
|
1711
1742
|
if (apiId) {
|
|
1712
1743
|
host.allMessages = host.allMessages.map(m => m.messageId === localId
|
|
@@ -1969,7 +2000,7 @@ async function onMqttConnected(host) {
|
|
|
1969
2000
|
if (host.selectedConversationId) {
|
|
1970
2001
|
if (!host.isInitialCallDone) {
|
|
1971
2002
|
try {
|
|
1972
|
-
await
|
|
2003
|
+
await toast.M.getInstance().message.putRead({ conversationId: host.selectedConversationId });
|
|
1973
2004
|
}
|
|
1974
2005
|
catch (_c) {
|
|
1975
2006
|
/* non-fatal */
|
|
@@ -2009,7 +2040,7 @@ function onMqttUnavailable(host, reason, error) {
|
|
|
2009
2040
|
async function hostSetupMqttClient(host) {
|
|
2010
2041
|
const deviceID = await helpers.getDeviceID();
|
|
2011
2042
|
const clientId = host.isometrikUserId || host.isometrikUserIdFromCookie;
|
|
2012
|
-
const mqttClient =
|
|
2043
|
+
const mqttClient = toast.M.getInstance().initializeMqtt({
|
|
2013
2044
|
hostUri: host.hostUrl || chatCreds.MQTT_CREDS.URL,
|
|
2014
2045
|
clientId,
|
|
2015
2046
|
licenseKey: host.licenseKey || chatCreds.isometrikFlutterAppSecrets.licenseKey,
|
|
@@ -2095,7 +2126,7 @@ async function hostHandleForwardMessage(host, parsedMessage) {
|
|
|
2095
2126
|
* Pure-ish: API calls + list patches. WebChat applies results to @State.
|
|
2096
2127
|
*/
|
|
2097
2128
|
async function apiClearConversationLocal(conversationId) {
|
|
2098
|
-
await
|
|
2129
|
+
await toast.M.getInstance().Conversation.deleteConversationLocal({ conversationId });
|
|
2099
2130
|
}
|
|
2100
2131
|
function patchListAfterClear(list, conversationId) {
|
|
2101
2132
|
return (list || []).map(conversation => {
|
|
@@ -2106,22 +2137,22 @@ function patchListAfterClear(list, conversationId) {
|
|
|
2106
2137
|
});
|
|
2107
2138
|
}
|
|
2108
2139
|
async function apiDeleteConversation(conversationId) {
|
|
2109
|
-
await
|
|
2140
|
+
await toast.M.getInstance().Conversation.deleteConversationClear({ conversationId });
|
|
2110
2141
|
}
|
|
2111
2142
|
function removeConversationFromList(list, conversationId) {
|
|
2112
2143
|
return (list || []).filter(c => c.conversationId !== conversationId);
|
|
2113
2144
|
}
|
|
2114
2145
|
async function apiBlockUser(opponentId) {
|
|
2115
|
-
await
|
|
2146
|
+
await toast.M.getInstance().user.postUserBlock({ opponentId });
|
|
2116
2147
|
}
|
|
2117
2148
|
async function apiUnblockUser(opponentId) {
|
|
2118
|
-
await
|
|
2149
|
+
await toast.M.getInstance().user.postUserUnblock({ opponentId });
|
|
2119
2150
|
}
|
|
2120
2151
|
async function apiDeleteMessageSelf(payload) {
|
|
2121
|
-
await
|
|
2152
|
+
await toast.M.getInstance().message.deleteMessageSelf(payload);
|
|
2122
2153
|
}
|
|
2123
2154
|
async function apiDeleteMessageEveryone(payload) {
|
|
2124
|
-
await
|
|
2155
|
+
await toast.M.getInstance().message.deleteMessagesEveryone(payload);
|
|
2125
2156
|
}
|
|
2126
2157
|
function removeMessageById(messages, messageId) {
|
|
2127
2158
|
return (messages || []).filter((m) => m.messageId !== messageId);
|
|
@@ -2142,12 +2173,12 @@ function patchListAfterMessageDelete(list, remainingMessages, payload) {
|
|
|
2142
2173
|
}));
|
|
2143
2174
|
}
|
|
2144
2175
|
async function apiFindBlockedUser(searchTag, opponentUserId) {
|
|
2145
|
-
const findRes = await
|
|
2176
|
+
const findRes = await toast.M.getInstance().user.getUserBlock({ searchTag });
|
|
2146
2177
|
const users = (findRes === null || findRes === void 0 ? void 0 : findRes.users) || [];
|
|
2147
2178
|
return (users === null || users === void 0 ? void 0 : users.find((u) => (u === null || u === void 0 ? void 0 : u.userId) === opponentUserId)) ? true : null;
|
|
2148
2179
|
}
|
|
2149
2180
|
async function apiCreateDmConversation(selectedContactId, selectedContactName) {
|
|
2150
|
-
return
|
|
2181
|
+
return toast.M.getInstance().Conversation.postConversation({
|
|
2151
2182
|
typingEvents: true,
|
|
2152
2183
|
readEvents: true,
|
|
2153
2184
|
pushNotifications: true,
|
|
@@ -2267,7 +2298,7 @@ async function hostOpenRightSidebar(host, event) {
|
|
|
2267
2298
|
}
|
|
2268
2299
|
async function hostGetConversationId(host, selectedContactId, selectedContactName) {
|
|
2269
2300
|
try {
|
|
2270
|
-
const res = await
|
|
2301
|
+
const res = await toast.M.getInstance().Conversation.postConversation({
|
|
2271
2302
|
typingEvents: true,
|
|
2272
2303
|
readEvents: true,
|
|
2273
2304
|
pushNotifications: true,
|
|
@@ -2367,7 +2398,7 @@ async function hostConversationUpdate(host, event) {
|
|
|
2367
2398
|
host.allConversationList = host.allConversationList.map((conv) => conv.conversationId === conversationId ? Object.assign(Object.assign({}, conv), { conversationImageUrl: value }) : conv);
|
|
2368
2399
|
}
|
|
2369
2400
|
try {
|
|
2370
|
-
const response = await
|
|
2401
|
+
const response = await toast.M.getInstance().Conversation.getConversationDetails(conversationId, 'true');
|
|
2371
2402
|
if (response) {
|
|
2372
2403
|
host.allConversationList = host.allConversationList.map((conv) => conv.conversationId === conversationId ? Object.assign(Object.assign({}, conv), response) : conv);
|
|
2373
2404
|
if (host.selectedConversationId === conversationId) {
|
|
@@ -2904,6 +2935,9 @@ const WebChat = class {
|
|
|
2904
2935
|
this.showConversationList = true;
|
|
2905
2936
|
this.showRightPanel = true;
|
|
2906
2937
|
this.showMqttStatus = true;
|
|
2938
|
+
this.enablePushNotifications = true;
|
|
2939
|
+
this.enableLocalNotifications = true;
|
|
2940
|
+
this.onLocalNotification = undefined;
|
|
2907
2941
|
this.unreadConversations = [];
|
|
2908
2942
|
this.allLinks = undefined;
|
|
2909
2943
|
this.allLinksCount = undefined;
|
|
@@ -3393,7 +3427,7 @@ const Login = class {
|
|
|
3393
3427
|
document.cookie = `${name}=${value};${expires};path=/;SameSite=Lax${secure}`;
|
|
3394
3428
|
}
|
|
3395
3429
|
render() {
|
|
3396
|
-
return (index.h("div", { key: '
|
|
3430
|
+
return (index.h("div", { key: '96d0072b31dd11ec9acd36d4a91605930fdcc1d9', class: "login-page-container" }, index.h("div", { key: 'fd0c9bd7c9600daab7331fc128d47a1aa13a259e', class: "login-banner-container" }, index.h("div", { key: 'b974335f6eb4a150429ab8e314f22a365c925f07', class: "login-banner-logo", innerHTML: IsometrikLogo.isometrikLogo }), index.h("div", { key: '4c4d114a06266322b2827dfd9c7da1e838a8a734', class: "login-banner-text" }, index.h("h1", { key: '435d5db15c593d2baa1369767790c1d68ec5b942' }, "\"Revolutionizing How You Chat.\""), index.h("p", { key: '7380d6b71475efa1bfc9881bb948da517d7d41ba' }, "\"Welcome to the future of chatting \u2013 simple, fast, and inclusive. Start connecting like never before!\""), index.h("img", { key: 'c06bb7957922e952cf0b4522c91c02fcc27acff5', src: chatAssets.Login_banner, alt: "Login Page", style: { width: '300px', height: '300px' } }))), index.h("div", { key: '89a4a96653d13ac0c18b8a80a16a5551b018f1b5', class: "login-container" }, index.h("div", { key: '7093d4620468237c321162e834c97de16c5fb50a', class: "login-container-logo", innerHTML: IsometrikLogo.isometrikLogo }), index.h("div", { key: '6df7a798e50faacd7accbad74f483c206db1bf43', class: "login-container-inner" }, index.h("div", { key: '739eea348708219336a2e13664d6e36870ee837b', class: "login-header" }, index.h("h2", { key: '5d4540a4a2d7dbfcacb4486e17692e83948f23b9' }, content.WEB_CONTENT.LOGIN), index.h("p", { key: 'b6c20625bd518e066efd6d1e6c5a019df01ae873' }, content.WEB_CONTENT.LOGIN_DESC)), index.h("form", { key: '76f97e1188c1eb295b8baacee408cc66935ee393', class: "login-form", onSubmit: this.handleSubmit }, index.h("div", { key: 'a715109d5909d34e9e9e609b9796683800167a3f', class: "form-group" }, index.h("label", { key: 'af9b51b92f6f212dae5976e1217dad29bf9208c2', htmlFor: "username" }, content.WEB_CONTENT.EMAIL), index.h("input", { key: 'b273d490922d22e348b9e47e18f37c4a369c7c5b', type: "email", id: "username", value: this.username, onInput: (e) => (this.username = e.target.value), placeholder: content.WEB_CONTENT.EMAIL })), index.h("div", { key: 'e50fddcfd047dbdaa2f54c4699be2e497882ab53', class: "form-group" }, index.h("label", { key: 'aabdcf4bb4e590366ab17b7f0751b73b0c25a891', htmlFor: "password" }, content.WEB_CONTENT.PASSWORD), index.h("div", { key: '08d2dda9e78ca2e0fa3c34e33ca9b3d39edc107c', class: "password-input-wrapper" }, index.h("input", { key: 'd6b04bb8d9df997a13b30ba18d83f7cf5327dee1', type: this.showPassword ? 'text' : 'password', id: "password", value: this.password, onInput: (e) => (this.password = e.target.value), placeholder: content.WEB_CONTENT.PASSWORD }), index.h("button", { key: '18869d45a732c83eb844afa70ab78f4596840e4e', type: "button", class: "password-toggle-button", onClick: () => (this.showPassword = !this.showPassword), "aria-label": this.showPassword ? 'Hide password' : 'Show password' }, this.showPassword ? (index.h("svg", { class: "password-toggle-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), index.h("line", { x1: "1", y1: "1", x2: "23", y2: "23" }))) : (index.h("svg", { class: "password-toggle-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), index.h("circle", { cx: "12", cy: "12", r: "3" })))))), this.errorMessage && index.h("div", { key: 'd2d98de1c3e5858cf8d4e657613ace35983eb13f', class: "error-message" }, this.errorMessage), index.h("button", { key: 'aead76f3b3b22ca30dbd36b619f7d43c03545aa3', type: "submit", class: "login-button", disabled: !this.username || !this.password || this.isLoading }, this.isLoading ? 'Logging in...' : 'Log In'))))));
|
|
3397
3431
|
}
|
|
3398
3432
|
};
|
|
3399
3433
|
Login.style = ":host {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100dvh;\n background: var(--bg-primary-color);\n font-family: 'Simpli Norm', sans-serif;\n }\n\n .login-container {\n padding: 2rem;\n border-radius: 10px;\n width: 50%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background:var(--bg-secondary-color);\n }\n\n .login-header {\n text-align: center;\n color: var(--text-primary-color);\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 2rem;\n }\n\n .login-form {\n display: flex;\n flex-direction: column;\n gap: 1.5rem;\n width: 100%;\n max-width: 400px;\n }\n\n .form-group {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n }\n\n .form-group label {\n color: var(--text-primary-color);\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.01em;\n }\n\n .form-group input {\n padding: 0.875rem 1rem;\n border: 1.5px solid var(--bg-grey-color);\n border-radius: 12px;\n background: var(--bg-primary-color);\n color: var(--text-primary-color);\n outline: none;\n font-size: 15px;\n transition: all 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n }\n\n .password-input-wrapper {\n position: relative;\n display: flex;\n align-items: center;\n }\n\n .password-input-wrapper input {\n padding-right: 3rem;\n }\n\n .password-toggle-button {\n position: absolute;\n right: 0.75rem;\n background: none;\n border: none;\n cursor: pointer;\n padding: 0.25rem;\n display: flex;\n align-items: center;\n justify-content: center;\n color: rgba(0, 0, 0, 0.5);\n transition: color 0.2s ease;\n outline: none;\n }\n\n .password-toggle-button:hover {\n color: var(--base-color);\n }\n\n .password-toggle-button:focus {\n color: var(--base-color);\n }\n\n .password-toggle-icon {\n width: 20px;\n height: 20px;\n stroke: currentColor;\n fill: none;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n\n .form-group input::placeholder {\n color: rgba(0, 0, 0, 0.4);\n opacity: 0.6;\n }\n\n .form-group input:focus {\n border-color: var(--base-color);\n box-shadow: 0 0 0 3px rgba(122, 144, 247, 0.1);\n transform: translateY(-1px);\n }\n\n .form-group input:hover:not(:focus) {\n border-color: rgba(122, 144, 247, 0.5);\n }\n\n .login-button {\n background: var(--base-color);\n color: white;\n padding: 0.875rem 2rem;\n border: none;\n border-radius: 12px;\n cursor: pointer;\n font-weight: 600;\n font-size: 15px;\n transition: all 0.2s ease;\n width: 100%;\n margin-top: 0.5rem;\n box-shadow: 0 2px 8px rgba(122, 144, 247, 0.3);\n }\n\n .login-button:hover:not(:disabled) {\n background: rgba(122, 144, 247, 0.9);\n transform: translateY(-2px);\n box-shadow: 0 4px 12px rgba(122, 144, 247, 0.4);\n }\n\n .login-button:active:not(:disabled) {\n transform: translateY(0);\n box-shadow: 0 2px 6px rgba(122, 144, 247, 0.3);\n }\n\n .login-button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n transform: none;\n box-shadow: none;\n }\n\n .error-message {\n color: var(--text-danger-color);\n font-size: 0.875rem;\n text-align: center;\n margin-top: 0.5rem;\n padding: 0.75rem;\n background: rgba(220, 53, 69, 0.1);\n border-radius: 8px;\n border: 1px solid rgba(220, 53, 69, 0.2);\n }\n\n .login-page-container {\n display: flex;\n align-items: center;\n height: 100%;\n width: 100%;\n overflow: hidden;\n }\n .login-banner-container {\n background: var(--bg-primary-light);\n width: 50%;\n height: 100%;\n position: relative;\n padding: 20px;\n overflow: hidden;\n }\n\n .login-banner-logo {\n padding: 30px 20px;\n }\n\n .login-container-logo {\n padding: 30px 20px;\n position: absolute;\n top: 0;\n margin:auto;\n display: none;\n }\n\n\n .login-header h2 {\n font-size: 2rem;\n font-weight: 700;\n color: var(--text-primary-color);\n margin: 0 0 0.5rem 0;\n letter-spacing: -0.02em;\n }\n\n .login-header p {\n font-size: 0.95rem;\n font-weight: 400;\n color: rgba(0, 0, 0, 0.6);\n width: 90%;\n text-align: center;\n line-height: 1.5;\n margin: 0;\n }\n .login-banner-text {\n padding: 20px;\n display:flex;\n align-items:center;\n flex-direction:column;\n }\n .login-banner-text h1 {\n font-size: 2.5rem;\n font-weight: 600;\n color: var(--base-color);\n width: 70%;\n }\n\n .login-banner-text p {\n font-size: 1.2rem;\n font-weight: 400;\n color: var(--text-primary-color);\n width: 70%;\n line-height: 1.4rem;\n }\n\n \n\n .login-image-overlay div {\n position: absolute;\n width: 187px;\n height: 187px;\n filter: blur(14px);\n border-radius: 50%;\n background: linear-gradient(225.81deg, #d8dffe 15.93%, #7a90f7 100%);\n \n \n }\n /* Style for WebKit browsers (Chrome, Safari, newer versions of Opera) */\n input:-webkit-autofill,\n input:-webkit-autofill:hover,\n input:-webkit-autofill:focus,\n input:-webkit-autofill:active {\n -webkit-text-fill-color: var(--text-primary-color) !important;\n transition: background-color 5000s ease-in-out 0s;\n border: 0.5px solid var(--bg-grey-color);\n }\n\n input:autofill {\n background-color: var(--bg-primary-color) !important;\n color: var(--text-primary-color) !important;\n border: 0.5px solid var(--bg-grey-color);\n }\n\n input:-internal-autofill-selected {\n background-color: var(--bg-primary-color) !important;\n color: var(--text-primary-color) !important;\n border: 0.5px solid var(--bg-grey-color);\n }\n\n .login-image-overlay div:first-child {\n top: -52px;\n right: -63px;\n }\n\n .login-container-inner {\n padding: 2.5rem 2rem;\n border-radius: 24px;\n background: var(--bg-primary-color);\n box-shadow: 0px 10px 40px 0px var(--shadow-color);\n width: 100%;\n max-width: 450px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .login-image-overlay div:nth-child(2) {\n bottom: -102px;\n left: -103px;\n height: 359px;\n width: 359px;\n }\n\n .login-footer {\n text-align: center;\n font-size: 14px;\n }\n\n .login-footer a {\n cursor: pointer;\n text-decoration: underline;\n\n }\n @media (max-width: 768px) {\n .login-banner-container {\n display: none;\n }\n\n .login-container {\n width: 100%;\n padding:1rem;\n }\n\n .login-container-logo {\n display: block;\n }\n }";
|