@uzum-tech/ui 1.7.2 → 1.8.1
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 +1673 -996
- package/dist/index.prod.js +3 -3
- package/es/chat/index.d.ts +6 -1
- package/es/chat/index.js +3 -0
- package/es/chat/src/Chat.d.ts +19 -6
- package/es/chat/src/Chat.js +54 -14
- package/es/chat/src/ChatListItems.d.ts +7782 -0
- package/es/chat/src/ChatListItems.js +188 -0
- package/es/chat/src/ChatMessages.d.ts +7805 -0
- package/es/chat/src/ChatMessages.js +325 -0
- package/es/chat/src/ChatParts/ChatAttachment.js +4 -3
- package/es/chat/src/ChatParts/MainArea.d.ts +0 -2
- package/es/chat/src/ChatParts/MainArea.js +108 -229
- package/es/chat/src/ChatParts/Sidebar.js +16 -80
- package/es/chat/src/interface.d.ts +10 -1
- package/es/chat/src/styles/index.cssr.js +16 -16
- package/es/chat/styles/light.d.ts +1 -1
- package/es/chat/styles/light.js +15 -3
- package/es/locales/common/arDZ.js +2 -1
- package/es/locales/common/deDE.js +2 -1
- package/es/locales/common/enGB.js +2 -1
- package/es/locales/common/enUS.d.ts +1 -0
- package/es/locales/common/enUS.js +2 -1
- package/es/locales/common/eo.js +2 -1
- package/es/locales/common/esAR.js +2 -1
- package/es/locales/common/faIR.js +2 -1
- package/es/locales/common/frFR.js +2 -1
- package/es/locales/common/idID.js +2 -1
- package/es/locales/common/itIT.js +2 -1
- package/es/locales/common/jaJP.js +2 -1
- package/es/locales/common/koKR.js +2 -1
- package/es/locales/common/nbNO.js +2 -1
- package/es/locales/common/nlNL.js +2 -1
- package/es/locales/common/plPL.js +2 -1
- package/es/locales/common/ptBR.js +2 -1
- package/es/locales/common/ruRU.js +2 -1
- package/es/locales/common/skSK.js +2 -1
- package/es/locales/common/svSE.js +2 -1
- package/es/locales/common/thTH.js +2 -1
- package/es/locales/common/trTR.js +2 -1
- package/es/locales/common/ukUA.js +2 -1
- package/es/locales/common/viVN.js +2 -1
- package/es/locales/common/zhCN.js +2 -1
- package/es/locales/common/zhTW.js +2 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/chat/index.d.ts +6 -1
- package/lib/chat/index.js +9 -1
- package/lib/chat/src/Chat.d.ts +19 -6
- package/lib/chat/src/Chat.js +53 -13
- package/lib/chat/src/ChatListItems.d.ts +7782 -0
- package/lib/chat/src/ChatListItems.js +194 -0
- package/lib/chat/src/ChatMessages.d.ts +7805 -0
- package/lib/chat/src/ChatMessages.js +331 -0
- package/lib/chat/src/ChatParts/ChatAttachment.js +4 -3
- package/lib/chat/src/ChatParts/MainArea.d.ts +0 -2
- package/lib/chat/src/ChatParts/MainArea.js +107 -228
- package/lib/chat/src/ChatParts/Sidebar.js +17 -78
- package/lib/chat/src/interface.d.ts +10 -1
- package/lib/chat/src/styles/index.cssr.js +16 -16
- package/lib/chat/styles/light.d.ts +1 -1
- package/lib/chat/styles/light.js +15 -3
- package/lib/locales/common/arDZ.js +2 -1
- package/lib/locales/common/deDE.js +2 -1
- package/lib/locales/common/enGB.js +2 -1
- package/lib/locales/common/enUS.d.ts +1 -0
- package/lib/locales/common/enUS.js +2 -1
- package/lib/locales/common/eo.js +2 -1
- package/lib/locales/common/esAR.js +2 -1
- package/lib/locales/common/faIR.js +2 -1
- package/lib/locales/common/frFR.js +2 -1
- package/lib/locales/common/idID.js +2 -1
- package/lib/locales/common/itIT.js +2 -1
- package/lib/locales/common/jaJP.js +2 -1
- package/lib/locales/common/koKR.js +2 -1
- package/lib/locales/common/nbNO.js +2 -1
- package/lib/locales/common/nlNL.js +2 -1
- package/lib/locales/common/plPL.js +2 -1
- package/lib/locales/common/ptBR.js +2 -1
- package/lib/locales/common/ruRU.js +2 -1
- package/lib/locales/common/skSK.js +2 -1
- package/lib/locales/common/svSE.js +2 -1
- package/lib/locales/common/thTH.js +2 -1
- package/lib/locales/common/trTR.js +2 -1
- package/lib/locales/common/ukUA.js +2 -1
- package/lib/locales/common/viVN.js +2 -1
- package/lib/locales/common/zhCN.js +2 -1
- package/lib/locales/common/zhTW.js +2 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +2 -0
- package/web-types.json +149 -1
- package/es/chat/src/ChatGlobalState.d.ts +0 -13
- package/es/chat/src/ChatGlobalState.js +0 -32
- package/lib/chat/src/ChatGlobalState.d.ts +0 -13
- package/lib/chat/src/ChatGlobalState.js +0 -36
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class ChatGlobalState {
|
|
2
|
-
private static instance;
|
|
3
|
-
private readonly notificationsShown;
|
|
4
|
-
private readonly openedChats;
|
|
5
|
-
private constructor();
|
|
6
|
-
static getInstance(): ChatGlobalState;
|
|
7
|
-
hasNotificationShown(chatId: string | number | symbol): boolean;
|
|
8
|
-
markNotificationShown(chatId: string | number | symbol): void;
|
|
9
|
-
isChatOpened(chatId: string | number | symbol): boolean;
|
|
10
|
-
markChatOpened(chatId: string | number | symbol): void;
|
|
11
|
-
markChatClosed(chatId: string | number | symbol): void;
|
|
12
|
-
reset(): void;
|
|
13
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export class ChatGlobalState {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.notificationsShown = new Set();
|
|
4
|
-
this.openedChats = new Set();
|
|
5
|
-
}
|
|
6
|
-
static getInstance() {
|
|
7
|
-
if (!ChatGlobalState.instance) {
|
|
8
|
-
ChatGlobalState.instance = new ChatGlobalState();
|
|
9
|
-
}
|
|
10
|
-
return ChatGlobalState.instance;
|
|
11
|
-
}
|
|
12
|
-
hasNotificationShown(chatId) {
|
|
13
|
-
return this.notificationsShown.has(chatId);
|
|
14
|
-
}
|
|
15
|
-
markNotificationShown(chatId) {
|
|
16
|
-
this.notificationsShown.add(chatId);
|
|
17
|
-
}
|
|
18
|
-
isChatOpened(chatId) {
|
|
19
|
-
return this.openedChats.has(chatId);
|
|
20
|
-
}
|
|
21
|
-
markChatOpened(chatId) {
|
|
22
|
-
this.openedChats.add(chatId);
|
|
23
|
-
}
|
|
24
|
-
markChatClosed(chatId) {
|
|
25
|
-
this.openedChats.delete(chatId);
|
|
26
|
-
}
|
|
27
|
-
reset() {
|
|
28
|
-
this.notificationsShown.clear();
|
|
29
|
-
this.openedChats.clear();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
ChatGlobalState.instance = null;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class ChatGlobalState {
|
|
2
|
-
private static instance;
|
|
3
|
-
private readonly notificationsShown;
|
|
4
|
-
private readonly openedChats;
|
|
5
|
-
private constructor();
|
|
6
|
-
static getInstance(): ChatGlobalState;
|
|
7
|
-
hasNotificationShown(chatId: string | number | symbol): boolean;
|
|
8
|
-
markNotificationShown(chatId: string | number | symbol): void;
|
|
9
|
-
isChatOpened(chatId: string | number | symbol): boolean;
|
|
10
|
-
markChatOpened(chatId: string | number | symbol): void;
|
|
11
|
-
markChatClosed(chatId: string | number | symbol): void;
|
|
12
|
-
reset(): void;
|
|
13
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChatGlobalState = void 0;
|
|
4
|
-
class ChatGlobalState {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.notificationsShown = new Set();
|
|
7
|
-
this.openedChats = new Set();
|
|
8
|
-
}
|
|
9
|
-
static getInstance() {
|
|
10
|
-
if (!ChatGlobalState.instance) {
|
|
11
|
-
ChatGlobalState.instance = new ChatGlobalState();
|
|
12
|
-
}
|
|
13
|
-
return ChatGlobalState.instance;
|
|
14
|
-
}
|
|
15
|
-
hasNotificationShown(chatId) {
|
|
16
|
-
return this.notificationsShown.has(chatId);
|
|
17
|
-
}
|
|
18
|
-
markNotificationShown(chatId) {
|
|
19
|
-
this.notificationsShown.add(chatId);
|
|
20
|
-
}
|
|
21
|
-
isChatOpened(chatId) {
|
|
22
|
-
return this.openedChats.has(chatId);
|
|
23
|
-
}
|
|
24
|
-
markChatOpened(chatId) {
|
|
25
|
-
this.openedChats.add(chatId);
|
|
26
|
-
}
|
|
27
|
-
markChatClosed(chatId) {
|
|
28
|
-
this.openedChats.delete(chatId);
|
|
29
|
-
}
|
|
30
|
-
reset() {
|
|
31
|
-
this.notificationsShown.clear();
|
|
32
|
-
this.openedChats.clear();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.ChatGlobalState = ChatGlobalState;
|
|
36
|
-
ChatGlobalState.instance = null;
|