@webinex/chatify 2.0.0-alpha13 → 2.0.0-alpha14

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.
Files changed (143) hide show
  1. package/dist/{Chatify-CwAfN1wu.js → Chatify-CP2jgo8d.js} +191 -118
  2. package/dist/Chatify-CP2jgo8d.js.map +1 -0
  3. package/dist/Chatify.css +28 -0
  4. package/dist/audit.js +3 -2
  5. package/dist/audit.js.map +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/types/audit/index.d.ts +17 -15
  8. package/dist/types/ui/Chat/ChatContext.d.ts +2 -0
  9. package/dist/types/ui/Chat/ChatPanel.d.ts +7 -0
  10. package/dist/types/ui/Chat/ChatView.d.ts +4 -2
  11. package/dist/types/ui/ChatGroup/ChatGroupContext.d.ts +4 -1
  12. package/dist/types/ui/ChatGroup/ChatGroupPanel.d.ts +21 -2
  13. package/dist/types/ui/Conversation/Conversation.d.ts +1 -0
  14. package/dist/types/ui/Conversation/ConversationContext.d.ts +1 -0
  15. package/dist/types/ui/Conversation/ConversationHeader.d.ts +4 -1
  16. package/dist/types/ui/localizer.d.ts +4 -1
  17. package/dist/types/ui/useCompact.d.ts +4 -0
  18. package/package.json +81 -81
  19. package/src/audit/AuditChatList.tsx +25 -25
  20. package/src/audit/AuditConversationPanel.tsx +49 -48
  21. package/src/audit/AuditPanel.tsx +76 -76
  22. package/src/audit/AuditPanelCustomizeValue.ts +11 -11
  23. package/src/audit/AuditSearch.tsx +89 -89
  24. package/src/audit/AuditSearchValue.tsx +42 -42
  25. package/src/audit/auditApi.tsx +113 -113
  26. package/src/audit/index.d.ts +18 -18
  27. package/src/audit/index.tsx +28 -28
  28. package/src/audit/styles.scss +72 -72
  29. package/src/core/api/api.ts +675 -675
  30. package/src/core/api/baseApi.ts +38 -38
  31. package/src/core/api/index.ts +1 -1
  32. package/src/core/client.ts +298 -298
  33. package/src/core/constants.ts +1 -1
  34. package/src/core/debounce.ts +90 -90
  35. package/src/core/index.ts +4 -4
  36. package/src/core/types.tsx +182 -182
  37. package/src/index.ts +2 -2
  38. package/src/styles/aside.scss +34 -26
  39. package/src/styles/chat-list.scss +138 -138
  40. package/src/styles/chat.scss +11 -11
  41. package/src/styles/conversation.scss +199 -200
  42. package/src/styles/index.scss +227 -220
  43. package/src/styles/input.scss +148 -148
  44. package/src/styles/keyframes.scss +14 -14
  45. package/src/styles/members.scss +30 -13
  46. package/src/styles/mixins.scss +38 -25
  47. package/src/styles/variables.scss +13 -13
  48. package/src/ui/Chat/ChatContext.tsx +32 -30
  49. package/src/ui/Chat/ChatEditableHeaderName.tsx +63 -63
  50. package/src/ui/Chat/ChatHeaderActions.tsx +19 -19
  51. package/src/ui/Chat/ChatPanel.tsx +46 -30
  52. package/src/ui/Chat/ChatView.tsx +122 -115
  53. package/src/ui/Chat/Members/ChatMembersButton.tsx +9 -9
  54. package/src/ui/Chat/Members/ChatMembersPanel.tsx +128 -112
  55. package/src/ui/Chat/Members/ChatMembersPreview.tsx +25 -25
  56. package/src/ui/Chat/Members/index.ts +13 -13
  57. package/src/ui/Chat/index.ts +6 -6
  58. package/src/ui/ChatGroup/AutoReply/AutoReplyButton.tsx +21 -21
  59. package/src/ui/ChatGroup/AutoReply/AutoReplyForm.tsx +50 -50
  60. package/src/ui/ChatGroup/AutoReply/AutoReplyPanel.tsx +94 -94
  61. package/src/ui/ChatGroup/AutoReply/AutoReplyPeriodInput.tsx +22 -22
  62. package/src/ui/ChatGroup/AutoReply/AutoReplyTextInput.tsx +22 -22
  63. package/src/ui/ChatGroup/AutoReply/index.ts +19 -19
  64. package/src/ui/ChatGroup/ChatGroupContext.tsx +63 -61
  65. package/src/ui/ChatGroup/ChatGroupPanel.tsx +110 -75
  66. package/src/ui/ChatGroup/Create/CreateChatButton.tsx +15 -15
  67. package/src/ui/ChatGroup/Create/CreateChatForm.tsx +36 -36
  68. package/src/ui/ChatGroup/Create/CreateChatMemberInput.tsx +65 -65
  69. package/src/ui/ChatGroup/Create/CreateChatNameInput.tsx +25 -25
  70. package/src/ui/ChatGroup/Create/CreateChatPanel.tsx +45 -45
  71. package/src/ui/ChatGroup/Create/index.ts +19 -19
  72. package/src/ui/ChatGroup/Layout/ChatGroupActions.tsx +15 -15
  73. package/src/ui/ChatGroup/Layout/ChatGroupAside.tsx +12 -12
  74. package/src/ui/ChatGroup/Layout/ChatGroupBody.tsx +17 -10
  75. package/src/ui/ChatGroup/Layout/ChatGroupFooter.tsx +3 -3
  76. package/src/ui/ChatGroup/Layout/ChatGroupHeader.tsx +5 -5
  77. package/src/ui/ChatGroup/Layout/ChatGroupMain.tsx +21 -19
  78. package/src/ui/ChatGroup/Layout/index.ts +22 -22
  79. package/src/ui/ChatGroup/List/ChatListPanel.tsx +28 -28
  80. package/src/ui/ChatGroup/List/index.ts +8 -8
  81. package/src/ui/ChatGroup/index.ts +6 -6
  82. package/src/ui/Chatify.tsx +15 -15
  83. package/src/ui/Conversation/Conversation.tsx +96 -92
  84. package/src/ui/Conversation/ConversationActions.tsx +12 -12
  85. package/src/ui/Conversation/ConversationBody.tsx +28 -28
  86. package/src/ui/Conversation/ConversationContext.ts +31 -30
  87. package/src/ui/Conversation/ConversationHeader.tsx +35 -19
  88. package/src/ui/Conversation/ConversationName.tsx +7 -7
  89. package/src/ui/Conversation/InputBox/InputBox.tsx +126 -126
  90. package/src/ui/Conversation/InputBox/InputBoxFile.tsx +38 -38
  91. package/src/ui/Conversation/InputBox/InputBoxFileList.tsx +21 -21
  92. package/src/ui/Conversation/InputBox/InputFilesBox.tsx +78 -78
  93. package/src/ui/Conversation/InputBox/InputSubmitButtonBox.tsx +26 -26
  94. package/src/ui/Conversation/InputBox/InputTextBox.tsx +63 -61
  95. package/src/ui/Conversation/InputBox/index.ts +23 -23
  96. package/src/ui/Conversation/Message/MessageAuthor.tsx +13 -13
  97. package/src/ui/Conversation/Message/MessageBox.tsx +20 -20
  98. package/src/ui/Conversation/Message/MessageContent.tsx +15 -15
  99. package/src/ui/Conversation/Message/MessageFile.tsx +54 -54
  100. package/src/ui/Conversation/Message/MessageFileList.tsx +14 -14
  101. package/src/ui/Conversation/Message/MessageInfoBox.tsx +28 -28
  102. package/src/ui/Conversation/Message/MessageRow.tsx +28 -28
  103. package/src/ui/Conversation/Message/MessageText.tsx +7 -7
  104. package/src/ui/Conversation/Message/index.ts +28 -28
  105. package/src/ui/Conversation/NextObserver/NextMessagesObserver.tsx +47 -47
  106. package/src/ui/Conversation/NextObserver/index.ts +1 -1
  107. package/src/ui/Conversation/ReadObserver/MessageReadObserver.tsx +49 -49
  108. package/src/ui/Conversation/ReadObserver/index.ts +1 -1
  109. package/src/ui/Conversation/SendingMessage/SendingMessageBox.tsx +16 -16
  110. package/src/ui/Conversation/SendingMessage/SendingMessageContent.tsx +13 -13
  111. package/src/ui/Conversation/SendingMessage/SendingMessageInfoBox.tsx +13 -13
  112. package/src/ui/Conversation/SendingMessage/SendingMessageText.tsx +7 -7
  113. package/src/ui/Conversation/SendingMessage/index.ts +16 -16
  114. package/src/ui/Conversation/SystemMessage/SystemMessageBox.tsx +20 -20
  115. package/src/ui/Conversation/SystemMessage/SystemMessageRow.tsx +28 -28
  116. package/src/ui/Conversation/SystemMessage/index.ts +10 -10
  117. package/src/ui/Conversation/index.ts +13 -13
  118. package/src/ui/Thread/ThreadActions.tsx +22 -22
  119. package/src/ui/Thread/ThreadContext.ts +13 -13
  120. package/src/ui/Thread/ThreadPanel.tsx +128 -127
  121. package/src/ui/Thread/index.tsx +3 -3
  122. package/src/ui/color.ts +20 -20
  123. package/src/ui/common/Avatar.tsx +20 -20
  124. package/src/ui/common/ChatList/ChatList.tsx +83 -84
  125. package/src/ui/common/ChatList/ChatListItemAvatar.tsx +22 -22
  126. package/src/ui/common/ChatList/ChatListItemBox.tsx +32 -32
  127. package/src/ui/common/ChatList/ChatListItemLastMessage.tsx +15 -15
  128. package/src/ui/common/ChatList/ChatListItemLastMessageAuthor.tsx +15 -15
  129. package/src/ui/common/ChatList/ChatListItemLastMessageContent.tsx +21 -21
  130. package/src/ui/common/ChatList/ChatListItemLastMessageSentAt.tsx +22 -22
  131. package/src/ui/common/ChatList/ChatListItemName.tsx +8 -8
  132. package/src/ui/common/ChatList/ChatListItemUnreadCount.tsx +12 -12
  133. package/src/ui/common/ChatList/ChatListValue.ts +9 -9
  134. package/src/ui/common/ChatList/index.ts +32 -32
  135. package/src/ui/common/Icon.tsx +48 -48
  136. package/src/ui/common/MessageSkeleton.tsx +20 -20
  137. package/src/ui/common/index.ts +14 -14
  138. package/src/ui/customize.tsx +51 -51
  139. package/src/ui/index.ts +11 -11
  140. package/src/ui/localizer.tsx +148 -137
  141. package/src/ui/useCompact.tsx +32 -0
  142. package/src/ui/useFormatter.tsx +17 -17
  143. package/dist/Chatify-CwAfN1wu.js.map +0 -1
@@ -1,220 +1,227 @@
1
- @use './variables.scss' as vars;
2
- @use './mixins.scss' as mixins;
3
- @use './keyframes.scss';
4
- @use './aside.scss';
5
- @use './chat.scss';
6
- @use './input.scss';
7
- @use './members.scss';
8
- @use './chat-list.scss';
9
- @use './conversation.scss';
10
-
11
- .wxchtf-message.--my .wxchtf-file-list .wxchtf-file {
12
- background-color: darken($color: vars.$myMessageBackground, $amount: 3%);
13
- }
14
-
15
- .wxchtf-message .wxchtf-message-text + .wxchtf-file-list {
16
- margin-top: 1rem;
17
- }
18
-
19
- .wxchtf-message .wxchtf-file-list {
20
- .wxchtf-file {
21
- display: flex;
22
- flex-flow: row nowrap;
23
- align-items: center;
24
- gap: 1rem;
25
- background-color: darken($color: vars.$messageBackground, $amount: 3%);
26
- border-radius: 15px;
27
- padding: 0.5rem;
28
-
29
- .wxchtf-file-info {
30
- min-width: 0;
31
- }
32
-
33
- .wxchtf-size {
34
- color: vars.$strokeColor;
35
- font-size: 0.8rem;
36
- }
37
-
38
- .wxchtf-name {
39
- font-size: 0.9rem;
40
- overflow: hidden;
41
- white-space: nowrap;
42
- text-overflow: ellipsis;
43
- }
44
-
45
- .ant-btn {
46
- border: 2px solid vars.$linkColor;
47
- border-radius: 50%;
48
-
49
- &:hover {
50
- border-color: lighten($color: vars.$linkColor, $amount: 15%);
51
- }
52
- }
53
-
54
- & + .wxchtf-file {
55
- margin-top: 1rem;
56
- }
57
- }
58
- }
59
-
60
- .wxchtf-chatify {
61
- display: flex;
62
- flex-flow: column nowrap;
63
- background: vars.$background;
64
- border-radius: vars.$radius;
65
-
66
- .wxchtf-header {
67
- min-height: 2rem;
68
- }
69
-
70
- .wxchtf-body {
71
- flex: 1 0;
72
- display: flex;
73
- flex-flow: row nowrap;
74
- }
75
-
76
- .wxchtf-footer {
77
- min-height: 2rem;
78
- }
79
-
80
- .wxchtf-add-btn-wrapper {
81
- width: 100%;
82
- text-align: right;
83
- padding-inline: 0.5rem;
84
- margin-bottom: 1rem;
85
-
86
- .wxchtf-add-btn,
87
- .wxchtf-add-btn-settings {
88
- border: none;
89
- background-color: #e4f7f7;
90
- height: 50px;
91
- line-height: 50px;
92
- font-weight: 600;
93
- opacity: 0.9;
94
- box-shadow: none;
95
- }
96
-
97
- > .wxchtf-add-btn {
98
- padding: 0 24px;
99
- min-width: 150px;
100
- border-radius: 50px;
101
- }
102
-
103
- > .wxchtf-add-btn-settings {
104
- padding: 0 16px;
105
- min-width: 50px;
106
- border-radius: 50px;
107
- }
108
-
109
- > .wxchtf-add-btn-group {
110
- display: inline-flex;
111
-
112
- .wxchtf-add-btn-wrapper {
113
- width: auto;
114
- padding-inline: 0;
115
- margin-bottom: 0;
116
- }
117
-
118
- .wxchtf-add-btn {
119
- padding: 0 18px;
120
- min-width: 120px;
121
- border-radius: 50px 0 0 50px;
122
- }
123
-
124
- .wxchtf-add-btn-settings {
125
- padding: 0 14px;
126
- min-width: 44px;
127
- border-radius: 0 50px 50px 0;
128
- border-left: 1px solid rgba(0, 0, 0, 0.06);
129
- }
130
- }
131
- }
132
- }
133
-
134
- .wxchtf-main {
135
- flex: auto;
136
- display: flex;
137
- flex-flow: column nowrap;
138
- border-top-right-radius: vars.$radius;
139
- border-bottom-right-radius: vars.$radius;
140
- box-shadow: 0px 6px 30px 0px #0cd9e214, 0px 1px 12px 0px #006e720f;
141
- z-index: 2;
142
- min-width: 0;
143
-
144
- .wxchtf-create-chat-panel,
145
- .wxchtf-auto-reply-panel {
146
- display: flex;
147
- flex-flow: column nowrap;
148
- justify-content: center;
149
- align-items: center;
150
- height: 100%;
151
- position: relative;
152
-
153
- .wxchtf-create-chat-panel-close,
154
- .wxchtf-auto-reply-panel-close {
155
- position: absolute;
156
- right: 25px;
157
- top: 25px;
158
- }
159
-
160
- form {
161
- padding: 2rem;
162
- max-width: 700px;
163
- width: 100%;
164
- }
165
- }
166
-
167
- .wxchtf-auto-reply-panel {
168
- .wxchtf-auto-reply-panel-header {
169
- width: 100%;
170
- max-width: 700px;
171
- padding: 0 2rem;
172
- margin-bottom: 0.5rem;
173
- display: flex;
174
- align-items: center;
175
- justify-content: space-between;
176
-
177
- h3 {
178
- margin: 0;
179
- }
180
-
181
- .wxchtf-auto-reply-panel-clear {
182
- padding: 0;
183
- }
184
- }
185
- }
186
-
187
- .wxchtf-create-chat-panel {
188
- form {
189
- .wxchtf-create-chat-member-input-list {
190
- max-height: 15rem;
191
- overflow-y: auto;
192
- @include mixins.scrollbar();
193
-
194
- .ant-list-item {
195
- padding-inline: 0.5rem;
196
-
197
- &.--selected {
198
- background-color: #e6f4ff;
199
- }
200
-
201
- .ant-checkbox-wrapper {
202
- width: 100%;
203
-
204
- & > span:last-child {
205
- flex: 1;
206
-
207
- .ant-list-item-meta {
208
- align-items: center;
209
-
210
- .ant-list-item-meta-content h4 {
211
- margin-bottom: 0;
212
- }
213
- }
214
- }
215
- }
216
- }
217
- }
218
- }
219
- }
220
- }
1
+ @use './variables.scss' as vars;
2
+ @use './mixins.scss' as mixins;
3
+ @use './keyframes.scss';
4
+ @use './aside.scss';
5
+ @use './chat.scss';
6
+ @use './input.scss';
7
+ @use './members.scss';
8
+ @use './chat-list.scss';
9
+ @use './conversation.scss';
10
+
11
+ .wxchtf-message.--my .wxchtf-file-list .wxchtf-file {
12
+ background-color: darken($color: vars.$myMessageBackground, $amount: 3%);
13
+ }
14
+
15
+ .wxchtf-message .wxchtf-message-text + .wxchtf-file-list {
16
+ margin-top: 1rem;
17
+ }
18
+
19
+ .wxchtf-message .wxchtf-file-list {
20
+ .wxchtf-file {
21
+ display: flex;
22
+ flex-flow: row nowrap;
23
+ align-items: center;
24
+ gap: 1rem;
25
+ background-color: darken($color: vars.$messageBackground, $amount: 3%);
26
+ border-radius: 15px;
27
+ padding: 0.5rem;
28
+
29
+ .wxchtf-file-info {
30
+ min-width: 0;
31
+ }
32
+
33
+ .wxchtf-size {
34
+ color: vars.$strokeColor;
35
+ font-size: 0.8rem;
36
+ }
37
+
38
+ .wxchtf-name {
39
+ font-size: 0.9rem;
40
+ overflow: hidden;
41
+ white-space: nowrap;
42
+ text-overflow: ellipsis;
43
+ }
44
+
45
+ .ant-btn {
46
+ border: 2px solid vars.$linkColor;
47
+ border-radius: 50%;
48
+
49
+ &:hover {
50
+ border-color: lighten($color: vars.$linkColor, $amount: 15%);
51
+ }
52
+ }
53
+
54
+ & + .wxchtf-file {
55
+ margin-top: 1rem;
56
+ }
57
+ }
58
+ }
59
+
60
+ .wxchtf-chatify {
61
+ display: flex;
62
+ flex-flow: column nowrap;
63
+ background: vars.$background;
64
+ border-radius: vars.$radius;
65
+
66
+ .wxchtf-header {
67
+ min-height: 2rem;
68
+ }
69
+
70
+ .wxchtf-body {
71
+ flex: 1 0;
72
+ display: flex;
73
+ flex-flow: row nowrap;
74
+ }
75
+
76
+ .wxchtf-footer {
77
+ min-height: 2rem;
78
+ }
79
+
80
+ .wxchtf-add-btn-wrapper {
81
+ width: 100%;
82
+ text-align: right;
83
+ padding-inline: 0.5rem;
84
+ margin-bottom: 1rem;
85
+
86
+ .wxchtf-add-btn,
87
+ .wxchtf-add-btn-settings {
88
+ border: none;
89
+ background-color: #e4f7f7;
90
+ height: 50px;
91
+ line-height: 50px;
92
+ font-weight: 600;
93
+ opacity: 0.9;
94
+ box-shadow: none;
95
+ }
96
+
97
+ > .wxchtf-add-btn {
98
+ padding: 0 24px;
99
+ min-width: 150px;
100
+ border-radius: 50px;
101
+ }
102
+
103
+ > .wxchtf-add-btn-settings {
104
+ padding: 0 16px;
105
+ min-width: 50px;
106
+ border-radius: 50px;
107
+ }
108
+
109
+ > .wxchtf-add-btn-group {
110
+ display: inline-flex;
111
+
112
+ .wxchtf-add-btn-wrapper {
113
+ width: auto;
114
+ padding-inline: 0;
115
+ margin-bottom: 0;
116
+ }
117
+
118
+ .wxchtf-add-btn {
119
+ padding: 0 18px;
120
+ min-width: 120px;
121
+ border-radius: 50px 0 0 50px;
122
+ }
123
+
124
+ .wxchtf-add-btn-settings {
125
+ padding: 0 14px;
126
+ min-width: 44px;
127
+ border-radius: 0 50px 50px 0;
128
+ border-left: 1px solid rgba(0, 0, 0, 0.06);
129
+ }
130
+ }
131
+ }
132
+ }
133
+
134
+ .wxchtf-chat-group.--compact {
135
+ .wxchtf-main {
136
+ border-top-left-radius: vars.$radius;
137
+ border-bottom-left-radius: vars.$radius;
138
+ }
139
+ }
140
+
141
+ .wxchtf-main {
142
+ flex: auto;
143
+ display: flex;
144
+ flex-flow: column nowrap;
145
+ border-top-right-radius: vars.$radius;
146
+ border-bottom-right-radius: vars.$radius;
147
+ box-shadow: 0px 6px 30px 0px #0cd9e214, 0px 1px 12px 0px #006e720f;
148
+ z-index: 2;
149
+ min-width: 0;
150
+
151
+ .wxchtf-create-chat-panel,
152
+ .wxchtf-auto-reply-panel {
153
+ display: flex;
154
+ flex-flow: column nowrap;
155
+ justify-content: center;
156
+ align-items: center;
157
+ height: 100%;
158
+ position: relative;
159
+
160
+ .wxchtf-create-chat-panel-close,
161
+ .wxchtf-auto-reply-panel-close {
162
+ position: absolute;
163
+ right: 25px;
164
+ top: 25px;
165
+ }
166
+
167
+ form {
168
+ padding: 2rem;
169
+ max-width: 700px;
170
+ width: 100%;
171
+ }
172
+ }
173
+
174
+ .wxchtf-auto-reply-panel {
175
+ .wxchtf-auto-reply-panel-header {
176
+ width: 100%;
177
+ max-width: 700px;
178
+ padding: 0 2rem;
179
+ margin-bottom: 0.5rem;
180
+ display: flex;
181
+ align-items: center;
182
+ justify-content: space-between;
183
+
184
+ h3 {
185
+ margin: 0;
186
+ }
187
+
188
+ .wxchtf-auto-reply-panel-clear {
189
+ padding: 0;
190
+ }
191
+ }
192
+ }
193
+
194
+ .wxchtf-create-chat-panel {
195
+ form {
196
+ .wxchtf-create-chat-member-input-list {
197
+ max-height: 15rem;
198
+ overflow-y: auto;
199
+ @include mixins.scrollbar();
200
+
201
+ .ant-list-item {
202
+ padding-inline: 0.5rem;
203
+
204
+ &.--selected {
205
+ background-color: #e6f4ff;
206
+ }
207
+
208
+ .ant-checkbox-wrapper {
209
+ width: 100%;
210
+
211
+ & > span:last-child {
212
+ flex: 1;
213
+
214
+ .ant-list-item-meta {
215
+ align-items: center;
216
+
217
+ .ant-list-item-meta-content h4 {
218
+ margin-bottom: 0;
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }