@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
|
@@ -4,7 +4,6 @@ export default cB('chat', `
|
|
|
4
4
|
max-height: 100%;
|
|
5
5
|
min-height: 0;
|
|
6
6
|
display: flex;
|
|
7
|
-
overflow: hidden;
|
|
8
7
|
box-sizing: border-box;
|
|
9
8
|
.u-list-item__text {
|
|
10
9
|
grid-template-columns: 1fr !important;
|
|
@@ -13,7 +12,6 @@ export default cB('chat', `
|
|
|
13
12
|
height: 100%;
|
|
14
13
|
max-height: 100%;
|
|
15
14
|
min-height: 0;
|
|
16
|
-
overflow: hidden;
|
|
17
15
|
}
|
|
18
16
|
`, [cB('chat-sidebar', `
|
|
19
17
|
max-width: 388px;
|
|
@@ -24,10 +22,10 @@ export default cB('chat', `
|
|
|
24
22
|
background-color: var(--u-sidebar-background-color);
|
|
25
23
|
border: 1px solid var(--u-sidebar-border-color);
|
|
26
24
|
border-radius: 20px;
|
|
27
|
-
overflow: hidden;
|
|
28
25
|
`, [cE('header', `
|
|
29
|
-
padding: 16px 16px 0 16px;
|
|
30
26
|
flex-shrink: 0;
|
|
27
|
+
`), cE('header-container', `
|
|
28
|
+
padding: 16px 16px 4px 16px;
|
|
31
29
|
`), cE('header-main', `
|
|
32
30
|
flex: 0 0 48%;
|
|
33
31
|
min-width: 0;
|
|
@@ -43,7 +41,7 @@ export default cB('chat', `
|
|
|
43
41
|
overflow-y: auto;
|
|
44
42
|
min-height: 0;
|
|
45
43
|
padding: 16px;
|
|
46
|
-
padding-top:
|
|
44
|
+
padding-top: 8px;
|
|
47
45
|
`), cE('item', `
|
|
48
46
|
padding: 12px 16px;
|
|
49
47
|
width: 100%;
|
|
@@ -137,7 +135,6 @@ export default cB('chat', `
|
|
|
137
135
|
`), cE('item-status sup', `
|
|
138
136
|
padding: 2px 6px 2px 5px;
|
|
139
137
|
height: 22px;
|
|
140
|
-
--u-color: var(--u-unread-notification-background-color);
|
|
141
138
|
`), cE('item-status-icon', `
|
|
142
139
|
color: var(--u-sidebar-item-time-color);
|
|
143
140
|
`, [cM('read', `
|
|
@@ -159,7 +156,6 @@ export default cB('chat', `
|
|
|
159
156
|
height: 100%;
|
|
160
157
|
max-height: 100%;
|
|
161
158
|
min-height: 0;
|
|
162
|
-
overflow: hidden;
|
|
163
159
|
`, [cE('header', `
|
|
164
160
|
border-bottom: 1px solid var(--u-border-color);
|
|
165
161
|
width: 100%;
|
|
@@ -175,7 +171,7 @@ export default cB('chat', `
|
|
|
175
171
|
color: var(--u-unread-notification-text-color);
|
|
176
172
|
padding: 6px 12px;
|
|
177
173
|
text-align: center;
|
|
178
|
-
font-size:
|
|
174
|
+
font-size: 14px;
|
|
179
175
|
font-weight: 500;
|
|
180
176
|
margin: 8px 0;
|
|
181
177
|
display: flex;
|
|
@@ -209,8 +205,19 @@ export default cB('chat', `
|
|
|
209
205
|
color: var(--u-date-separator-color);
|
|
210
206
|
padding: 4px 12px;
|
|
211
207
|
border-radius: 12px;
|
|
212
|
-
font-size:
|
|
208
|
+
font-size: 14px;
|
|
213
209
|
font-weight: 500;
|
|
210
|
+
`)]), cE('mark', `
|
|
211
|
+
display: flex;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
margin: 12px 0;
|
|
214
|
+
width: 100%;
|
|
215
|
+
`, [c('span', `
|
|
216
|
+
padding: 6px 12px;
|
|
217
|
+
border-radius: 8px;
|
|
218
|
+
color: var(--u-text-color-secondary);
|
|
219
|
+
background-color: var(--u-date-separator-background-color);
|
|
220
|
+
text-align: center;
|
|
214
221
|
`)]), cE('message', `
|
|
215
222
|
display: flex;
|
|
216
223
|
margin-bottom: 8px;
|
|
@@ -326,13 +333,6 @@ export default cB('chat', `
|
|
|
326
333
|
`), cE('input', `
|
|
327
334
|
flex: 1;
|
|
328
335
|
margin-right: 4px;
|
|
329
|
-
--u-color: #F3F4F6 !important;
|
|
330
|
-
--u-color-focus: #F3F4F6 !important;
|
|
331
|
-
--u-border: none !important;
|
|
332
|
-
--u-border-focus: none !important;
|
|
333
|
-
--u-border-hover: none !important;
|
|
334
|
-
--u-box-shadow: none !important;
|
|
335
|
-
--u-box-shadow-focus: none !important;
|
|
336
336
|
`), cE('attach-btn', `
|
|
337
337
|
margin-left: 4px;
|
|
338
338
|
flex-shrink: 0;
|
|
@@ -35,7 +35,6 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
35
35
|
borderRadius: string;
|
|
36
36
|
errorColor: string;
|
|
37
37
|
};
|
|
38
|
-
export type ChatThemeVars = ReturnType<typeof self>;
|
|
39
38
|
declare const chatLight: import("../../_mixins").Theme<"Chat", {
|
|
40
39
|
backgroundColor: string;
|
|
41
40
|
borderColor: string;
|
|
@@ -686,4 +685,5 @@ declare const chatLight: import("../../_mixins").Theme<"Chat", {
|
|
|
686
685
|
}, any>;
|
|
687
686
|
}>;
|
|
688
687
|
export default chatLight;
|
|
688
|
+
export type ChatThemeVars = ReturnType<typeof self>;
|
|
689
689
|
export type ChatTheme = typeof chatLight;
|
package/es/chat/styles/light.js
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import { inputLight } from '../../input/styles';
|
|
2
|
+
import { self as inputSelf } from '../../input/styles/light';
|
|
2
3
|
import { emptyLight } from '../../empty/styles';
|
|
3
4
|
import { selectLight } from '../../select/styles';
|
|
4
5
|
import { avatarLight } from '../../avatar/styles';
|
|
5
6
|
import { badgeLight } from '../../badge/styles';
|
|
7
|
+
import { self as badgeSelf } from '../../badge/styles/light';
|
|
6
8
|
import { buttonLight } from '../../button/styles';
|
|
7
9
|
import { iconLight } from '../../icon/styles';
|
|
8
10
|
import { listLight } from '../../list/styles';
|
|
9
11
|
import { typographyLight } from '../../typography/styles';
|
|
10
12
|
import { commonLight } from '../../_styles/common';
|
|
11
13
|
import { createTheme } from '../../_mixins';
|
|
14
|
+
const chatInputLight = Object.assign(Object.assign({}, inputLight), { self(vars) {
|
|
15
|
+
const originalInputSelf = inputSelf(vars);
|
|
16
|
+
const { elementsTertiary } = vars;
|
|
17
|
+
return Object.assign(Object.assign({}, originalInputSelf), { color: elementsTertiary, colorFocus: elementsTertiary, border: 'none', borderFocus: 'none', borderHover: 'none', boxShadow: 'none', boxShadowFocus: 'none' });
|
|
18
|
+
} });
|
|
19
|
+
const chatBadgeLight = Object.assign(Object.assign({}, badgeLight), { self(vars) {
|
|
20
|
+
const originalBadgeSelf = badgeSelf(vars);
|
|
21
|
+
const { brandPrimary400, elementsSecondary } = vars;
|
|
22
|
+
return Object.assign(Object.assign({}, originalBadgeSelf), { color: brandPrimary400, textColor: elementsSecondary });
|
|
23
|
+
} });
|
|
12
24
|
export const self = (vars) => {
|
|
13
25
|
const { borderRadiusLarge, elementsQuaternary, elementsTertiary, textTertiary, textPrimary, textSecondary, surfacePrimary, brandPrimary500, brandPrimary400, transparencySecondary, elementsSecondary, elementsDarkQuinary, staticRed, staticWhite } = vars;
|
|
14
26
|
return {
|
|
@@ -43,7 +55,7 @@ export const self = (vars) => {
|
|
|
43
55
|
unreadNotificationTextColor: elementsSecondary,
|
|
44
56
|
typingIndicatorColor: textSecondary,
|
|
45
57
|
dateSeparatorColor: textTertiary,
|
|
46
|
-
dateSeparatorBackgroundColor:
|
|
58
|
+
dateSeparatorBackgroundColor: 'transparent',
|
|
47
59
|
borderRadius: borderRadiusLarge,
|
|
48
60
|
errorColor: staticRed
|
|
49
61
|
};
|
|
@@ -52,11 +64,11 @@ const chatLight = createTheme({
|
|
|
52
64
|
name: 'Chat',
|
|
53
65
|
common: commonLight,
|
|
54
66
|
peers: {
|
|
55
|
-
Input:
|
|
67
|
+
Input: chatInputLight,
|
|
56
68
|
Empty: emptyLight,
|
|
57
69
|
Select: selectLight,
|
|
58
70
|
Avatar: avatarLight,
|
|
59
|
-
Badge:
|
|
71
|
+
Badge: chatBadgeLight,
|
|
60
72
|
Button: buttonLight,
|
|
61
73
|
Icon: iconLight,
|
|
62
74
|
List: listLight,
|
|
@@ -128,7 +128,8 @@ const arDZ = {
|
|
|
128
128
|
inputPlaceholder: 'Type a message...',
|
|
129
129
|
typingText: 'Typing...',
|
|
130
130
|
retryText: 'Resend',
|
|
131
|
-
closeButtonText: 'Close chat'
|
|
131
|
+
closeButtonText: 'Close chat',
|
|
132
|
+
unreadNotificationText: 'new messages'
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
export default arDZ;
|
|
@@ -128,7 +128,8 @@ const deDE = {
|
|
|
128
128
|
inputPlaceholder: 'Type a message...',
|
|
129
129
|
typingText: 'Typing...',
|
|
130
130
|
retryText: 'Resend',
|
|
131
|
-
closeButtonText: 'Close chat'
|
|
131
|
+
closeButtonText: 'Close chat',
|
|
132
|
+
unreadNotificationText: 'new messages'
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
export default deDE;
|
|
@@ -129,7 +129,8 @@ const enGB = {
|
|
|
129
129
|
inputPlaceholder: 'Type a message...',
|
|
130
130
|
typingText: 'Typing...',
|
|
131
131
|
retryText: 'Resend',
|
|
132
|
-
closeButtonText: 'Close chat'
|
|
132
|
+
closeButtonText: 'Close chat',
|
|
133
|
+
unreadNotificationText: 'new messages'
|
|
133
134
|
}
|
|
134
135
|
};
|
|
135
136
|
export default enGB;
|
|
@@ -129,7 +129,8 @@ const enUS = {
|
|
|
129
129
|
inputPlaceholder: 'Type a message...',
|
|
130
130
|
typingText: 'Typing...',
|
|
131
131
|
retryText: 'Resend',
|
|
132
|
-
closeButtonText: 'Close chat'
|
|
132
|
+
closeButtonText: 'Close chat',
|
|
133
|
+
unreadNotificationText: 'new messages'
|
|
133
134
|
}
|
|
134
135
|
};
|
|
135
136
|
export default enUS;
|
package/es/locales/common/eo.js
CHANGED
|
@@ -130,7 +130,8 @@ const eo = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
export default eo;
|
|
@@ -132,7 +132,8 @@ const esAR = {
|
|
|
132
132
|
inputPlaceholder: 'Type a message...',
|
|
133
133
|
typingText: 'Typing...',
|
|
134
134
|
retryText: 'Resend',
|
|
135
|
-
closeButtonText: 'Close chat'
|
|
135
|
+
closeButtonText: 'Close chat',
|
|
136
|
+
unreadNotificationText: 'new messages'
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
139
|
export default esAR;
|
|
@@ -128,7 +128,8 @@ const faIR = {
|
|
|
128
128
|
inputPlaceholder: 'Type a message...',
|
|
129
129
|
typingText: 'Typing...',
|
|
130
130
|
retryText: 'Resend',
|
|
131
|
-
closeButtonText: 'Close chat'
|
|
131
|
+
closeButtonText: 'Close chat',
|
|
132
|
+
unreadNotificationText: 'new messages'
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
export default faIR;
|
|
@@ -128,7 +128,8 @@ const frFR = {
|
|
|
128
128
|
inputPlaceholder: 'Type a message...',
|
|
129
129
|
typingText: 'Typing...',
|
|
130
130
|
retryText: 'Resend',
|
|
131
|
-
closeButtonText: 'Close chat'
|
|
131
|
+
closeButtonText: 'Close chat',
|
|
132
|
+
unreadNotificationText: 'new messages'
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
export default frFR;
|
|
@@ -132,7 +132,8 @@ const idID = {
|
|
|
132
132
|
inputPlaceholder: 'Type a message...',
|
|
133
133
|
typingText: 'Typing...',
|
|
134
134
|
retryText: 'Resend',
|
|
135
|
-
closeButtonText: 'Close chat'
|
|
135
|
+
closeButtonText: 'Close chat',
|
|
136
|
+
unreadNotificationText: 'new messages'
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
139
|
export default idID;
|
|
@@ -131,7 +131,8 @@ const itIT = {
|
|
|
131
131
|
inputPlaceholder: 'Type a message...',
|
|
132
132
|
typingText: 'Typing...',
|
|
133
133
|
retryText: 'Resend',
|
|
134
|
-
closeButtonText: 'Close chat'
|
|
134
|
+
closeButtonText: 'Close chat',
|
|
135
|
+
unreadNotificationText: 'new messages'
|
|
135
136
|
}
|
|
136
137
|
};
|
|
137
138
|
export default itIT;
|
|
@@ -131,7 +131,8 @@ const jaJP = {
|
|
|
131
131
|
inputPlaceholder: 'Type a message...',
|
|
132
132
|
typingText: 'Typing...',
|
|
133
133
|
retryText: 'Resend',
|
|
134
|
-
closeButtonText: 'Close chat'
|
|
134
|
+
closeButtonText: 'Close chat',
|
|
135
|
+
unreadNotificationText: 'new messages'
|
|
135
136
|
}
|
|
136
137
|
};
|
|
137
138
|
export default jaJP;
|
|
@@ -131,7 +131,8 @@ const koKR = {
|
|
|
131
131
|
inputPlaceholder: 'Type a message...',
|
|
132
132
|
typingText: 'Typing...',
|
|
133
133
|
retryText: 'Resend',
|
|
134
|
-
closeButtonText: 'Close chat'
|
|
134
|
+
closeButtonText: 'Close chat',
|
|
135
|
+
unreadNotificationText: 'new messages'
|
|
135
136
|
}
|
|
136
137
|
};
|
|
137
138
|
export default koKR;
|
|
@@ -132,7 +132,8 @@ const nbNO = {
|
|
|
132
132
|
inputPlaceholder: 'Type a message...',
|
|
133
133
|
typingText: 'Typing...',
|
|
134
134
|
retryText: 'Resend',
|
|
135
|
-
closeButtonText: 'Close chat'
|
|
135
|
+
closeButtonText: 'Close chat',
|
|
136
|
+
unreadNotificationText: 'new messages'
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
139
|
export default nbNO;
|
|
@@ -130,7 +130,8 @@ const nlNL = {
|
|
|
130
130
|
inputPlaceholder: 'Type a message...',
|
|
131
131
|
typingText: 'Typing...',
|
|
132
132
|
retryText: 'Resend',
|
|
133
|
-
closeButtonText: 'Close chat'
|
|
133
|
+
closeButtonText: 'Close chat',
|
|
134
|
+
unreadNotificationText: 'new messages'
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
export default nlNL;
|
|
@@ -131,7 +131,8 @@ const plPL = {
|
|
|
131
131
|
inputPlaceholder: 'Type a message...',
|
|
132
132
|
typingText: 'Typing...',
|
|
133
133
|
retryText: 'Resend',
|
|
134
|
-
closeButtonText: 'Close chat'
|
|
134
|
+
closeButtonText: 'Close chat',
|
|
135
|
+
unreadNotificationText: 'new messages'
|
|
135
136
|
}
|
|
136
137
|
};
|
|
137
138
|
export default plPL;
|
|
@@ -128,7 +128,8 @@ const ptBR = {
|
|
|
128
128
|
inputPlaceholder: 'Type a message...',
|
|
129
129
|
typingText: 'Typing...',
|
|
130
130
|
retryText: 'Resend',
|
|
131
|
-
closeButtonText: 'Close chat'
|
|
131
|
+
closeButtonText: 'Close chat',
|
|
132
|
+
unreadNotificationText: 'new messages'
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
export default ptBR;
|
|
@@ -133,7 +133,8 @@ const ruRu = {
|
|
|
133
133
|
inputPlaceholder: 'Написать сообщение...',
|
|
134
134
|
typingText: 'Печатает...',
|
|
135
135
|
retryText: 'Повторно отправить',
|
|
136
|
-
closeButtonText: 'Завершить чат'
|
|
136
|
+
closeButtonText: 'Завершить чат',
|
|
137
|
+
unreadNotificationText: 'новых сообщений'
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
export default ruRu;
|
|
@@ -132,7 +132,8 @@ const skSK = {
|
|
|
132
132
|
inputPlaceholder: 'Type a message...',
|
|
133
133
|
typingText: 'Typing...',
|
|
134
134
|
retryText: 'Resend',
|
|
135
|
-
closeButtonText: 'Close chat'
|
|
135
|
+
closeButtonText: 'Close chat',
|
|
136
|
+
unreadNotificationText: 'new messages'
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
139
|
export default skSK;
|
|
@@ -128,7 +128,8 @@ const svSE = {
|
|
|
128
128
|
inputPlaceholder: 'Type a message...',
|
|
129
129
|
typingText: 'Typing...',
|
|
130
130
|
retryText: 'Resend',
|
|
131
|
-
closeButtonText: 'Close chat'
|
|
131
|
+
closeButtonText: 'Close chat',
|
|
132
|
+
unreadNotificationText: 'new messages'
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
export default svSE;
|
|
@@ -132,7 +132,8 @@ const thTH = {
|
|
|
132
132
|
inputPlaceholder: 'Type a message...',
|
|
133
133
|
typingText: 'Typing...',
|
|
134
134
|
retryText: 'Resend',
|
|
135
|
-
closeButtonText: 'Close chat'
|
|
135
|
+
closeButtonText: 'Close chat',
|
|
136
|
+
unreadNotificationText: 'new messages'
|
|
136
137
|
}
|
|
137
138
|
};
|
|
138
139
|
export default thTH;
|
|
@@ -129,7 +129,8 @@ const trTR = {
|
|
|
129
129
|
inputPlaceholder: 'Type a message...',
|
|
130
130
|
typingText: 'Typing...',
|
|
131
131
|
retryText: 'Resend',
|
|
132
|
-
closeButtonText: 'Close chat'
|
|
132
|
+
closeButtonText: 'Close chat',
|
|
133
|
+
unreadNotificationText: 'new messages'
|
|
133
134
|
}
|
|
134
135
|
};
|
|
135
136
|
export default trTR;
|
|
@@ -129,7 +129,8 @@ const ukUA = {
|
|
|
129
129
|
inputPlaceholder: 'Type a message...',
|
|
130
130
|
typingText: 'Typing...',
|
|
131
131
|
retryText: 'Resend',
|
|
132
|
-
closeButtonText: 'Close chat'
|
|
132
|
+
closeButtonText: 'Close chat',
|
|
133
|
+
unreadNotificationText: 'new messages'
|
|
133
134
|
}
|
|
134
135
|
};
|
|
135
136
|
export default ukUA;
|
|
@@ -128,7 +128,8 @@ const viVN = {
|
|
|
128
128
|
inputPlaceholder: 'Type a message...',
|
|
129
129
|
typingText: 'Typing...',
|
|
130
130
|
retryText: 'Resend',
|
|
131
|
-
closeButtonText: 'Close chat'
|
|
131
|
+
closeButtonText: 'Close chat',
|
|
132
|
+
unreadNotificationText: 'new messages'
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
export default viVN;
|
|
@@ -128,7 +128,8 @@ const zhCN = {
|
|
|
128
128
|
inputPlaceholder: 'Type a message...',
|
|
129
129
|
typingText: 'Typing...',
|
|
130
130
|
retryText: 'Resend',
|
|
131
|
-
closeButtonText: 'Close chat'
|
|
131
|
+
closeButtonText: 'Close chat',
|
|
132
|
+
unreadNotificationText: 'new messages'
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
export default zhCN;
|
|
@@ -128,7 +128,8 @@ const zhTW = {
|
|
|
128
128
|
inputPlaceholder: 'Type a message...',
|
|
129
129
|
typingText: 'Typing...',
|
|
130
130
|
retryText: 'Resend',
|
|
131
|
-
closeButtonText: 'Close chat'
|
|
131
|
+
closeButtonText: 'Close chat',
|
|
132
|
+
unreadNotificationText: 'new messages'
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
export default zhTW;
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.8.1";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.
|
|
1
|
+
export default '1.8.1';
|
package/lib/chat/index.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
export { default as UChat } from './src/Chat';
|
|
2
|
-
export
|
|
2
|
+
export { default as UChatListItems } from './src/ChatListItems';
|
|
3
|
+
export { default as UChatMessages } from './src/ChatMessages';
|
|
4
|
+
export type { ChatId, ChatProps, ChatListItemProps, ChatMessageProps, ChatMarkProps, ChatHeaderProps, ChatFooterProps, ChatListHeaderProps, ChatSlots, ChatListItemSlots, ChatMessageSlots, ChatMarkSlots, ChatHeaderSlots, ChatFooterSlots, ChatListItemData, ChatMessageData, ChatAttachment, OnChatSelect, OnMessageSend, OnAttachmentUpload, OnFilterChange, OnLoadMoreChats, OnNetworkError, OnUploadError, OnSendError, ChatInst, ChatListInst, chatInjectionKey } from './src/interface';
|
|
5
|
+
export { MessageStatus, ChatMessageType, ChatMarkType } from './src/interface';
|
|
6
|
+
export type { ChatListItemsProps } from './src/ChatListItems';
|
|
7
|
+
export type { ChatMessagesProps } from './src/ChatMessages';
|
package/lib/chat/index.js
CHANGED
|
@@ -3,6 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UChat = void 0;
|
|
6
|
+
exports.ChatMarkType = exports.ChatMessageType = exports.MessageStatus = exports.UChatMessages = exports.UChatListItems = exports.UChat = void 0;
|
|
7
7
|
var Chat_1 = require("./src/Chat");
|
|
8
8
|
Object.defineProperty(exports, "UChat", { enumerable: true, get: function () { return __importDefault(Chat_1).default; } });
|
|
9
|
+
var ChatListItems_1 = require("./src/ChatListItems");
|
|
10
|
+
Object.defineProperty(exports, "UChatListItems", { enumerable: true, get: function () { return __importDefault(ChatListItems_1).default; } });
|
|
11
|
+
var ChatMessages_1 = require("./src/ChatMessages");
|
|
12
|
+
Object.defineProperty(exports, "UChatMessages", { enumerable: true, get: function () { return __importDefault(ChatMessages_1).default; } });
|
|
13
|
+
var interface_1 = require("./src/interface");
|
|
14
|
+
Object.defineProperty(exports, "MessageStatus", { enumerable: true, get: function () { return interface_1.MessageStatus; } });
|
|
15
|
+
Object.defineProperty(exports, "ChatMessageType", { enumerable: true, get: function () { return interface_1.ChatMessageType; } });
|
|
16
|
+
Object.defineProperty(exports, "ChatMarkType", { enumerable: true, get: function () { return interface_1.ChatMarkType; } });
|
package/lib/chat/src/Chat.d.ts
CHANGED
|
@@ -115,6 +115,10 @@ export declare const chatProps: {
|
|
|
115
115
|
type: PropType<ChatPropsType["closeButtonText"]>;
|
|
116
116
|
default: undefined;
|
|
117
117
|
};
|
|
118
|
+
unreadNotificationText: {
|
|
119
|
+
type: PropType<ChatPropsType["unreadNotificationText"]>;
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
118
122
|
chatItemsLoading: {
|
|
119
123
|
type: PropType<ChatPropsType["chatItemsLoading"]>;
|
|
120
124
|
default: boolean;
|
|
@@ -2241,6 +2245,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2241
2245
|
type: PropType<ChatPropsType["closeButtonText"]>;
|
|
2242
2246
|
default: undefined;
|
|
2243
2247
|
};
|
|
2248
|
+
unreadNotificationText: {
|
|
2249
|
+
type: PropType<ChatPropsType["unreadNotificationText"]>;
|
|
2250
|
+
default: undefined;
|
|
2251
|
+
};
|
|
2244
2252
|
chatItemsLoading: {
|
|
2245
2253
|
type: PropType<ChatPropsType["chatItemsLoading"]>;
|
|
2246
2254
|
default: boolean;
|
|
@@ -5285,6 +5293,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5285
5293
|
type: PropType<ChatPropsType["closeButtonText"]>;
|
|
5286
5294
|
default: undefined;
|
|
5287
5295
|
};
|
|
5296
|
+
unreadNotificationText: {
|
|
5297
|
+
type: PropType<ChatPropsType["unreadNotificationText"]>;
|
|
5298
|
+
default: undefined;
|
|
5299
|
+
};
|
|
5288
5300
|
chatItemsLoading: {
|
|
5289
5301
|
type: PropType<ChatPropsType["chatItemsLoading"]>;
|
|
5290
5302
|
default: boolean;
|
|
@@ -7312,15 +7324,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7312
7324
|
typingText: string | undefined;
|
|
7313
7325
|
retryText: string | undefined;
|
|
7314
7326
|
closeButtonText: string | undefined;
|
|
7327
|
+
unreadNotificationText: string | undefined;
|
|
7315
7328
|
maxHeight: string | number;
|
|
7316
7329
|
emptyProps: Partial<Partial<import("../..").EmptyProps> | undefined>;
|
|
7330
|
+
chatItems: ChatListItemData[] | undefined;
|
|
7331
|
+
selectedChatId: import("./interface").ChatId | undefined;
|
|
7332
|
+
typingChatIds: (string | number | symbol)[];
|
|
7333
|
+
onChatSelect: import("./interface").OnChatSelect | undefined;
|
|
7334
|
+
messages: ChatMessageData[] | undefined;
|
|
7335
|
+
onMessageRetry: ((message: ChatMessageData) => void) | undefined;
|
|
7317
7336
|
onChatClose: () => void;
|
|
7318
7337
|
onChatShare: () => void;
|
|
7319
7338
|
onUserProfile: () => void;
|
|
7320
7339
|
headerActions: (() => import("vue").VNodeChild)[] | undefined;
|
|
7321
|
-
chatItems: ChatListItemData[] | undefined;
|
|
7322
|
-
selectedChatId: import("./interface").ChatId | undefined;
|
|
7323
|
-
messages: ChatMessageData[] | undefined;
|
|
7324
7340
|
listEmptyProps: Partial<Partial<import("../..").EmptyProps> | undefined>;
|
|
7325
7341
|
listHeaderTitle: string | (() => import("vue").VNodeChild) | undefined;
|
|
7326
7342
|
listHeaderActions: (() => import("vue").VNodeChild)[] | undefined;
|
|
@@ -7343,14 +7359,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7343
7359
|
chatItemsLoadingCount: number | undefined;
|
|
7344
7360
|
messagesLoading: boolean | undefined;
|
|
7345
7361
|
messagesLoadingCount: number | undefined;
|
|
7346
|
-
onChatSelect: import("./interface").OnChatSelect | undefined;
|
|
7347
|
-
onMessageRetry: ((message: ChatMessageData) => void) | undefined;
|
|
7348
7362
|
onAttachmentUpload: import("./interface").OnAttachmentUpload | undefined;
|
|
7349
7363
|
onFilterChange: import("./interface").OnFilterChange | undefined;
|
|
7350
7364
|
onLoadMoreChats: import("./interface").OnLoadMoreChats | undefined;
|
|
7351
7365
|
onNetworkError: import("./interface").OnNetworkError | undefined;
|
|
7352
7366
|
onUploadError: import("./interface").OnUploadError | undefined;
|
|
7353
7367
|
onSendError: import("./interface").OnSendError | undefined;
|
|
7354
|
-
typingChatIds: (string | number | symbol)[];
|
|
7355
7368
|
}, {}>;
|
|
7356
7369
|
export default _default;
|