impact-ui 5.0.2-alpha.1 → 5.0.2-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +1 -1
- package/dist/components/Panel/Panel.types.d.ts +0 -7
- package/dist/components/Panel/Panel.types.d.ts.map +1 -1
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +2 -5
- package/dist/components/TableChat/EmptyContainer.js +3 -3
- package/dist/components/TableChat/TableChatSidePanel.d.ts +1 -2
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +23 -214
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +2 -4
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +24 -55
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +2 -3
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +43 -20
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +2 -37
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +18 -54
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +1 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +81 -90
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.js +65 -0
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +4 -11
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +56 -67
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +1 -8
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +4 -170
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts +1 -5
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +124 -138
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +9 -11
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +106 -102
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +17 -0
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -4
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +215 -327
- package/dist/components/TableChat/components/chatConfig.js +1 -0
- package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableV36/AgGridHeader.js +22 -3
- package/dist/components/TableV36/index.d.ts.map +1 -1
- package/dist/components/TableV36/index.js +8 -135
- package/dist/components/TableV36/tableHeader.d.ts +1 -5
- package/dist/components/TableV36/tableHeader.d.ts.map +1 -1
- package/dist/components/TableV36/tableHeader.js +11 -36
- package/dist/locales/de-DE.json.d.ts +3 -16
- package/dist/locales/de-DE.json.js +3 -15
- package/dist/locales/en-US.json.d.ts +3 -16
- package/dist/locales/en-US.json.js +3 -15
- package/dist/locales/es-ES.json.d.ts +3 -16
- package/dist/locales/es-ES.json.js +3 -15
- package/dist/mcp-component-registry.json +7 -1
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +156 -250
- package/dist/stories/tableV36ChatApiMock.d.ts +74 -222
- package/dist/stories/tableV36ChatApiMock.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/_virtual/Check.js +0 -4
- package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.d.ts +0 -11
- package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.d.ts.map +0 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.js +0 -57
- package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.d.ts +0 -12
- package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.d.ts.map +0 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.js +0 -132
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.js +0 -29
- package/dist/components/TableV36/withChatIndicator.d.ts +0 -3
- package/dist/components/TableV36/withChatIndicator.d.ts.map +0 -1
- package/dist/components/TableV36/withChatIndicator.js +0 -89
- package/dist/node_modules/@mui/icons-material/Check.js +0 -17
|
@@ -34,21 +34,48 @@ export declare const tableV36ChatColumnDefs: ({
|
|
|
34
34
|
pinned?: undefined;
|
|
35
35
|
maxWidth?: undefined;
|
|
36
36
|
})[];
|
|
37
|
-
declare const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
declare const seedChannels: () => ({
|
|
38
|
+
id: number;
|
|
39
|
+
title: string;
|
|
40
|
+
time: string;
|
|
41
|
+
unreadCount: number;
|
|
42
|
+
owner: number;
|
|
43
|
+
} | {
|
|
44
|
+
id: number;
|
|
45
|
+
title: string;
|
|
46
|
+
time: string;
|
|
47
|
+
unreadCount: number;
|
|
48
|
+
owner?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
id: number;
|
|
51
|
+
title: string;
|
|
52
|
+
time: string;
|
|
53
|
+
unreadCount?: undefined;
|
|
54
|
+
owner?: undefined;
|
|
55
|
+
})[];
|
|
56
|
+
type ChatTopic = {
|
|
57
|
+
id: string;
|
|
58
|
+
user: string;
|
|
59
|
+
text: string | null;
|
|
60
|
+
title?: string;
|
|
61
|
+
subtitle?: string | null;
|
|
62
|
+
isChecked: boolean;
|
|
63
|
+
isPinned: boolean;
|
|
64
|
+
unreadCount: number;
|
|
65
|
+
messageCount: number;
|
|
66
|
+
timestamp: string;
|
|
67
|
+
otherProps: Record<string, unknown>;
|
|
68
|
+
};
|
|
69
|
+
declare const seedChatsByChannel: () => Record<number, ChatTopic[]>;
|
|
70
|
+
declare const generateMessages: (chatId: string, page?: number, limit?: number) => {
|
|
41
71
|
id: string;
|
|
42
72
|
author: string;
|
|
43
|
-
authorName: string
|
|
73
|
+
authorName: string;
|
|
44
74
|
content: string;
|
|
45
75
|
timestamp: string;
|
|
46
76
|
date: string;
|
|
47
77
|
showReplyBadge: boolean;
|
|
48
|
-
|
|
49
|
-
authorLabel: string;
|
|
50
|
-
content: string;
|
|
51
|
-
} | undefined;
|
|
78
|
+
replyText: string | null;
|
|
52
79
|
priority: string;
|
|
53
80
|
edited: boolean;
|
|
54
81
|
deleted: boolean;
|
|
@@ -59,23 +86,7 @@ declare const generateMessages: (chatId: string, page?: number, _limit?: number)
|
|
|
59
86
|
created_at: string;
|
|
60
87
|
sender_name: string;
|
|
61
88
|
};
|
|
62
|
-
}
|
|
63
|
-
id: string;
|
|
64
|
-
type: string;
|
|
65
|
-
author: string;
|
|
66
|
-
authorName: string;
|
|
67
|
-
content: string;
|
|
68
|
-
timestamp: string;
|
|
69
|
-
date: string;
|
|
70
|
-
showReplyBadge: boolean;
|
|
71
|
-
showActions: boolean;
|
|
72
|
-
deleted: boolean;
|
|
73
|
-
isPinned: boolean;
|
|
74
|
-
otherProps: {
|
|
75
|
-
created_at: string;
|
|
76
|
-
is_system: boolean;
|
|
77
|
-
};
|
|
78
|
-
})[];
|
|
89
|
+
}[];
|
|
79
90
|
export type TableV36ChatApiStore = {
|
|
80
91
|
channels: ReturnType<typeof seedChannels>;
|
|
81
92
|
chatsByChannel: ReturnType<typeof seedChatsByChannel>;
|
|
@@ -87,16 +98,6 @@ export type TableV36ChatApiStore = {
|
|
|
87
98
|
pinStateByChat: Record<string, boolean>;
|
|
88
99
|
};
|
|
89
100
|
export declare const createTableV36ChatApiStore: () => TableV36ChatApiStore;
|
|
90
|
-
/**
|
|
91
|
-
* Host helper for row chat cell indicator.
|
|
92
|
-
* Returns null when the row has no channel / chats (no icon rendered).
|
|
93
|
-
* Badge shows resolvedChats/totalChats (resolved UI comes later).
|
|
94
|
-
*/
|
|
95
|
-
export declare const getRowChatMetaFromStore: (store: TableV36ChatApiStore) => (rowData: Record<string, unknown> | null | undefined) => {
|
|
96
|
-
totalChats: number;
|
|
97
|
-
resolvedChats: number;
|
|
98
|
-
hasUnread: boolean;
|
|
99
|
-
} | null;
|
|
100
101
|
export type CreateTableV36ApiDrivenChatConfigurationOptions = {
|
|
101
102
|
store: TableV36ChatApiStore;
|
|
102
103
|
/** Bump when store mutates so React recomputes chatConfiguration */
|
|
@@ -120,27 +121,17 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
120
121
|
currentTopicId: null;
|
|
121
122
|
isThreadIconVisible: boolean;
|
|
122
123
|
isPinChatIconVisible: boolean;
|
|
123
|
-
showReplyActions: boolean;
|
|
124
|
-
showFinalize: boolean;
|
|
125
|
-
moreOptions: (message: {
|
|
126
|
-
id?: string;
|
|
127
|
-
}) => {
|
|
128
|
-
label: string;
|
|
129
|
-
value: string;
|
|
130
|
-
onClick: () => void;
|
|
131
|
-
}[];
|
|
132
124
|
emptyChannelStateTitle: string;
|
|
133
125
|
emptyChannelStateSubTitle: string;
|
|
134
126
|
emptyChatStateTitle: string;
|
|
135
127
|
emptyChatStateSubTitle: string;
|
|
136
128
|
currentUserId: number;
|
|
137
|
-
selectedMessageId:
|
|
129
|
+
selectedMessageId: string;
|
|
138
130
|
maxSearchPages: number;
|
|
139
131
|
highlightDuration: number;
|
|
140
132
|
scrollBehavior: string;
|
|
141
133
|
scrollBlock: string;
|
|
142
134
|
highlightColor: null;
|
|
143
|
-
onFinalize: (messageId: string, chatId: string, item: unknown) => Promise<boolean>;
|
|
144
135
|
onRealTimeMessageUpdate: (newMessage: unknown) => void;
|
|
145
136
|
onMessageReply: (messageId: string, message: unknown) => void;
|
|
146
137
|
onMessageBookmark: (messageId: string, message: unknown) => void;
|
|
@@ -148,51 +139,10 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
148
139
|
id: string;
|
|
149
140
|
isPinned: boolean;
|
|
150
141
|
}>;
|
|
151
|
-
onMessageUpdate: (messageId: string, updatedData: {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
edited: boolean;
|
|
156
|
-
id: string;
|
|
157
|
-
author: string;
|
|
158
|
-
authorName: string | undefined;
|
|
159
|
-
timestamp: string;
|
|
160
|
-
date: string;
|
|
161
|
-
showReplyBadge: boolean;
|
|
162
|
-
quote: {
|
|
163
|
-
authorLabel: string;
|
|
164
|
-
content: string;
|
|
165
|
-
} | undefined;
|
|
166
|
-
priority: string;
|
|
167
|
-
deleted: boolean;
|
|
168
|
-
isPinned: boolean;
|
|
169
|
-
showActions: boolean;
|
|
170
|
-
otherProps: {
|
|
171
|
-
sender_id: number;
|
|
172
|
-
created_at: string;
|
|
173
|
-
sender_name: string;
|
|
174
|
-
};
|
|
175
|
-
} | {
|
|
176
|
-
content: string;
|
|
177
|
-
edited: boolean;
|
|
178
|
-
id: string;
|
|
179
|
-
type: string;
|
|
180
|
-
author: string;
|
|
181
|
-
authorName: string;
|
|
182
|
-
timestamp: string;
|
|
183
|
-
date: string;
|
|
184
|
-
showReplyBadge: boolean;
|
|
185
|
-
showActions: boolean;
|
|
186
|
-
deleted: boolean;
|
|
187
|
-
isPinned: boolean;
|
|
188
|
-
otherProps: {
|
|
189
|
-
created_at: string;
|
|
190
|
-
is_system: boolean;
|
|
191
|
-
};
|
|
192
|
-
} | {
|
|
193
|
-
id: string;
|
|
194
|
-
content: string | undefined;
|
|
195
|
-
edited: boolean;
|
|
142
|
+
onMessageUpdate: (messageId: string, updatedData: unknown) => Promise<{
|
|
143
|
+
success: boolean;
|
|
144
|
+
messageId: string;
|
|
145
|
+
updatedData: unknown;
|
|
196
146
|
}>;
|
|
197
147
|
onMessageDelete: (messageId: string) => Promise<{
|
|
198
148
|
success: boolean;
|
|
@@ -238,18 +188,6 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
238
188
|
};
|
|
239
189
|
headerChatConfig: {
|
|
240
190
|
participants: unknown[] | undefined;
|
|
241
|
-
showChatId: boolean;
|
|
242
|
-
showResolve: boolean;
|
|
243
|
-
isResolved: boolean;
|
|
244
|
-
onResolve: (chatId: string) => Promise<{
|
|
245
|
-
success: boolean;
|
|
246
|
-
chatId: string;
|
|
247
|
-
}>;
|
|
248
|
-
onTitleChange: (chatId: string, title: string) => Promise<{
|
|
249
|
-
success: boolean;
|
|
250
|
-
chatId: string;
|
|
251
|
-
title: string;
|
|
252
|
-
}>;
|
|
253
191
|
loadParticipants: (radioValue: string, selectedChannelInfo: unknown, selectedChatInfo: unknown) => Promise<({
|
|
254
192
|
id: number;
|
|
255
193
|
label: string;
|
|
@@ -330,20 +268,15 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
330
268
|
inputChatConfig: {
|
|
331
269
|
onSend: (payload: {
|
|
332
270
|
content?: string;
|
|
333
|
-
quote?: unknown;
|
|
334
|
-
replyToMessageId?: string;
|
|
335
271
|
}, chatId: string) => Promise<{
|
|
336
272
|
id: string;
|
|
337
273
|
author: string;
|
|
338
|
-
authorName: string
|
|
274
|
+
authorName: string;
|
|
339
275
|
content: string;
|
|
340
276
|
timestamp: string;
|
|
341
277
|
date: string;
|
|
342
278
|
showReplyBadge: boolean;
|
|
343
|
-
|
|
344
|
-
authorLabel: string;
|
|
345
|
-
content: string;
|
|
346
|
-
} | undefined;
|
|
279
|
+
replyText: string | null;
|
|
347
280
|
priority: string;
|
|
348
281
|
edited: boolean;
|
|
349
282
|
deleted: boolean;
|
|
@@ -361,7 +294,6 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
361
294
|
onAttachFile: (file: unknown) => void;
|
|
362
295
|
onImageUpload: (image: unknown) => void;
|
|
363
296
|
onEmojiSelect: (emoji: unknown) => void;
|
|
364
|
-
onQuickAction: (option: unknown, chatId: string) => void;
|
|
365
297
|
inputConfig: {
|
|
366
298
|
placeholder: string;
|
|
367
299
|
maxLength: number;
|
|
@@ -371,14 +303,15 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
371
303
|
showQuickAction: boolean;
|
|
372
304
|
quickActionLabel: string;
|
|
373
305
|
allowedFileTypes: string[];
|
|
306
|
+
quickActions: {
|
|
307
|
+
label: string;
|
|
308
|
+
action: string;
|
|
309
|
+
}[];
|
|
374
310
|
};
|
|
375
311
|
};
|
|
376
312
|
leftPanel: {
|
|
377
|
-
channelListTitle: string;
|
|
378
313
|
leftHeaderPanel: {
|
|
379
314
|
showAddChat: boolean;
|
|
380
|
-
showFilterChips: boolean;
|
|
381
|
-
onFilterChipChange: (value: string) => void;
|
|
382
315
|
};
|
|
383
316
|
leftChatPanel: {
|
|
384
317
|
showCheckbox: boolean;
|
|
@@ -393,15 +326,33 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
393
326
|
inputPlaceholder: string;
|
|
394
327
|
textAreaPlaceholder: string;
|
|
395
328
|
};
|
|
396
|
-
loadChannelsList: () => Promise<
|
|
329
|
+
loadChannelsList: () => Promise<({
|
|
330
|
+
id: number;
|
|
331
|
+
title: string;
|
|
332
|
+
time: string;
|
|
333
|
+
unreadCount: number;
|
|
334
|
+
owner: number;
|
|
335
|
+
} | {
|
|
336
|
+
id: number;
|
|
337
|
+
title: string;
|
|
338
|
+
time: string;
|
|
339
|
+
unreadCount: number;
|
|
340
|
+
owner?: undefined;
|
|
341
|
+
} | {
|
|
342
|
+
id: number;
|
|
343
|
+
title: string;
|
|
344
|
+
time: string;
|
|
345
|
+
unreadCount?: undefined;
|
|
346
|
+
owner?: undefined;
|
|
347
|
+
})[]>;
|
|
397
348
|
loadChatList: (selectedChannelInfo: {
|
|
398
|
-
id?:
|
|
399
|
-
}) => Promise<
|
|
349
|
+
id?: number;
|
|
350
|
+
}) => Promise<ChatTopic[]>;
|
|
400
351
|
handleChatName: (formData: {
|
|
401
352
|
chatName?: string;
|
|
402
353
|
chatDescription?: string;
|
|
403
354
|
}, selectedChannelInfo: {
|
|
404
|
-
id?:
|
|
355
|
+
id?: number;
|
|
405
356
|
} | null) => Promise<{
|
|
406
357
|
success: boolean;
|
|
407
358
|
formattedChat: {
|
|
@@ -412,24 +363,16 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
412
363
|
subtitle: string | null;
|
|
413
364
|
isChecked: boolean;
|
|
414
365
|
isPinned: boolean;
|
|
415
|
-
isResolved: boolean;
|
|
416
|
-
displayId: string;
|
|
417
366
|
unreadCount: number;
|
|
418
367
|
messageCount: number;
|
|
419
368
|
timestamp: string;
|
|
420
|
-
createdBy: string;
|
|
421
369
|
otherProps: {
|
|
422
370
|
topic_id: string;
|
|
423
371
|
name: string | undefined;
|
|
424
372
|
description: string | null;
|
|
425
373
|
object_type: string;
|
|
426
374
|
object_ids: string[];
|
|
427
|
-
channel_id: string | number;
|
|
428
375
|
is_pinned: boolean;
|
|
429
|
-
is_resolved: boolean;
|
|
430
|
-
reference_id: string;
|
|
431
|
-
created_by_user: string;
|
|
432
|
-
created_at: string;
|
|
433
376
|
};
|
|
434
377
|
};
|
|
435
378
|
}>;
|
|
@@ -440,94 +383,19 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
440
383
|
directChatList: never[];
|
|
441
384
|
hasDirectChatList: boolean;
|
|
442
385
|
selectedChatId: null;
|
|
443
|
-
/**
|
|
444
|
-
* Select row → Start new chat:
|
|
445
|
-
* Row = channel. Create channel if missing, always create a new chat under it,
|
|
446
|
-
* return openChat so the panel opens the chat window directly.
|
|
447
|
-
* Titles / ids come from host (this mock) — not from the panel.
|
|
448
|
-
*/
|
|
449
|
-
onStartNewChat: (selectedRows?: Array<Record<string, unknown>>) => Promise<{
|
|
450
|
-
success: boolean;
|
|
451
|
-
channel: any;
|
|
452
|
-
channelsList: any[];
|
|
453
|
-
chatList: any[] | undefined;
|
|
454
|
-
openChat: {
|
|
455
|
-
id: string;
|
|
456
|
-
user: string;
|
|
457
|
-
text: null;
|
|
458
|
-
title: string | undefined;
|
|
459
|
-
subtitle: string | null;
|
|
460
|
-
isChecked: boolean;
|
|
461
|
-
isPinned: boolean;
|
|
462
|
-
isResolved: boolean;
|
|
463
|
-
displayId: string;
|
|
464
|
-
unreadCount: number;
|
|
465
|
-
messageCount: number;
|
|
466
|
-
timestamp: string;
|
|
467
|
-
createdBy: string;
|
|
468
|
-
otherProps: {
|
|
469
|
-
topic_id: string;
|
|
470
|
-
name: string | undefined;
|
|
471
|
-
description: string | null;
|
|
472
|
-
object_type: string;
|
|
473
|
-
object_ids: string[];
|
|
474
|
-
channel_id: string | number;
|
|
475
|
-
is_pinned: boolean;
|
|
476
|
-
is_resolved: boolean;
|
|
477
|
-
reference_id: string;
|
|
478
|
-
created_by_user: string;
|
|
479
|
-
created_at: string;
|
|
480
|
-
};
|
|
481
|
-
};
|
|
482
|
-
screen: string;
|
|
483
|
-
}>;
|
|
484
|
-
/**
|
|
485
|
-
* Channel list → select channel: return that channel's chat list only.
|
|
486
|
-
* Do not auto-open a chat (user picks a chat next).
|
|
487
|
-
*/
|
|
488
|
-
onChannelOpen: (channelInfo: {
|
|
489
|
-
id?: string | number;
|
|
490
|
-
}) => Promise<{
|
|
491
|
-
success: boolean;
|
|
492
|
-
screen?: undefined;
|
|
493
|
-
chatList?: undefined;
|
|
494
|
-
} | {
|
|
495
|
-
success: boolean;
|
|
496
|
-
screen: string;
|
|
497
|
-
chatList: any[];
|
|
498
|
-
}>;
|
|
499
|
-
/**
|
|
500
|
-
* Row cell chat icon → same as selecting that channel: chat list only.
|
|
501
|
-
*/
|
|
502
|
-
onOpenChannelFromRow: (selectedRows?: Array<Record<string, unknown>>) => Promise<{
|
|
503
|
-
success: boolean;
|
|
504
|
-
channel?: undefined;
|
|
505
|
-
channelsList?: undefined;
|
|
506
|
-
chatList?: undefined;
|
|
507
|
-
screen?: undefined;
|
|
508
|
-
} | {
|
|
509
|
-
success: boolean;
|
|
510
|
-
channel: any;
|
|
511
|
-
channelsList: any[];
|
|
512
|
-
chatList: any[];
|
|
513
|
-
screen: string;
|
|
514
|
-
}>;
|
|
515
386
|
clearDirectChatList: () => void;
|
|
516
387
|
};
|
|
517
388
|
rightPanel: {
|
|
518
389
|
messagesClearedTrigger: number;
|
|
519
|
-
loadMessages: (chatId: string, page?: number) => Promise<
|
|
390
|
+
loadMessages: (chatId: string, page?: number) => Promise<{
|
|
520
391
|
id: string;
|
|
521
392
|
author: string;
|
|
522
|
-
authorName: string
|
|
393
|
+
authorName: string;
|
|
523
394
|
content: string;
|
|
524
395
|
timestamp: string;
|
|
525
396
|
date: string;
|
|
526
397
|
showReplyBadge: boolean;
|
|
527
|
-
|
|
528
|
-
authorLabel: string;
|
|
529
|
-
content: string;
|
|
530
|
-
} | undefined;
|
|
398
|
+
replyText: string | null;
|
|
531
399
|
priority: string;
|
|
532
400
|
edited: boolean;
|
|
533
401
|
deleted: boolean;
|
|
@@ -538,23 +406,7 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
538
406
|
created_at: string;
|
|
539
407
|
sender_name: string;
|
|
540
408
|
};
|
|
541
|
-
}
|
|
542
|
-
id: string;
|
|
543
|
-
type: string;
|
|
544
|
-
author: string;
|
|
545
|
-
authorName: string;
|
|
546
|
-
content: string;
|
|
547
|
-
timestamp: string;
|
|
548
|
-
date: string;
|
|
549
|
-
showReplyBadge: boolean;
|
|
550
|
-
showActions: boolean;
|
|
551
|
-
deleted: boolean;
|
|
552
|
-
isPinned: boolean;
|
|
553
|
-
otherProps: {
|
|
554
|
-
created_at: string;
|
|
555
|
-
is_system: boolean;
|
|
556
|
-
};
|
|
557
|
-
})[]>;
|
|
409
|
+
}[]>;
|
|
558
410
|
loadOlderMessages: (channelId: string) => Promise<{
|
|
559
411
|
id: string;
|
|
560
412
|
author: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableV36ChatApiMock.d.ts","sourceRoot":"","sources":["../../src/stories/tableV36ChatApiMock.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,eAAO,MAAM,mBAAmB;;;;;;;
|
|
1
|
+
{"version":3,"file":"tableV36ChatApiMock.d.ts","sourceRoot":"","sources":["../../src/stories/t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;;;;;;;;;;;;;;;;;;;;oCAchC,MAAM,UAAU,MAAM;uCAInB,MAAM,UAAU,MAAM;mCAI1B,MAAM,UAAU,MAAM;6BAI5B,OAAO;+BAIL,OAAO;+BAIP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA6CY;YAAE,EAAE,CAAC,EAAE,MAAM,CAAA;SAAE;mCAQ7C;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;YAAC,eAAe,CAAC,EAAE,MAAM,CAAA;SAAE,uBACpC;YAAE,EAAE,CAAC,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;8BAcjB,MAAM;;;;;;;;;;;+BAyBL,MAAM;;;;;;;;;;;;;;;;;;;;uCAYE,MAAM;;;;;;;;CAehD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "impact-ui",
|
|
3
|
-
"version": "5.0.2-alpha.
|
|
3
|
+
"version": "5.0.2-alpha.2",
|
|
4
4
|
"description": "Impact Analytics UI library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components/index.js",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@chromatic-com/storybook": "^5.0.1",
|
|
109
109
|
"@emotion/react": "^11.14.0",
|
|
110
110
|
"@emotion/styled": "^11.14.1",
|
|
111
|
-
"@impactsmartsuite/impact-icons": "0.1.
|
|
111
|
+
"@impactsmartsuite/impact-icons": "^0.1.4",
|
|
112
112
|
"@mui/base": "^5.0.0-alpha.82",
|
|
113
113
|
"@mui/docs": "^5.8.0",
|
|
114
114
|
"@mui/envinfo": "^2.0.6",
|
package/dist/_virtual/Check.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ChatFilterChips: ({ options, value, defaultValue, onChange, className, }: {
|
|
3
|
-
options: any;
|
|
4
|
-
value: any;
|
|
5
|
-
defaultValue?: string | undefined;
|
|
6
|
-
onChange: any;
|
|
7
|
-
className?: string | undefined;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const DEFAULT_CHAT_FILTER_VALUES: string[];
|
|
10
|
-
export default ChatFilterChips;
|
|
11
|
-
//# sourceMappingURL=ChatFilterChips.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFilterChips.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.tsx"],"names":[],"mappings":"AAIA,OAAO,+BAA+B,CAAC;AAIvC,eAAO,MAAM,eAAe,GAAI;;;;;;CAM/B,4CAmDA,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAAwB,CAAC;AAEhE,eAAe,eAAe,CAAC"}
|
package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(270deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--circular{background-color:#e8edf5;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#eceef4 0deg,#e8edf5 80deg,#d5dbe8 160deg,#e8edf5 260deg,#eceef4 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#eceef4,#e8edf5,#d5dbe8,#e8edf5 1turn)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-filter-chips{align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;gap:8px;padding:8px 16px 0;width:100%}.chat-filter-chips .impact-chip-container{flex-shrink:0}.chat-filter-chips .impact-chip-container .MuiChip-filled{min-width:unset}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useEffect, useMemo } from "react";
|
|
4
|
-
import { Chips } from "../../../../Chips/index.js";
|
|
5
|
-
|
|
6
|
-
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
7
|
-
const ChatFilterChips = ({
|
|
8
|
-
options,
|
|
9
|
-
value,
|
|
10
|
-
defaultValue = "all",
|
|
11
|
-
onChange,
|
|
12
|
-
className = ""
|
|
13
|
-
}) => {
|
|
14
|
-
const { t } = useTranslation();
|
|
15
|
-
const [selected, setSelected] = useState(value ?? defaultValue);
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
if (value != null) {
|
|
18
|
-
setSelected(value);
|
|
19
|
-
}
|
|
20
|
-
}, [value]);
|
|
21
|
-
const chips = useMemo(() => {
|
|
22
|
-
if (Array.isArray(options) && options.length > 0) {
|
|
23
|
-
return options.map(
|
|
24
|
-
(opt) => typeof opt === "string" ? { value: opt, label: opt } : {
|
|
25
|
-
value: opt.value,
|
|
26
|
-
label: opt.label ?? opt.value
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
return [
|
|
31
|
-
{ value: "all", label: t("tableChat.filterChips.all") },
|
|
32
|
-
{ value: "starred", label: t("tableChat.filterChips.starred") },
|
|
33
|
-
{ value: "resolved", label: t("tableChat.filterChips.resolved") }
|
|
34
|
-
];
|
|
35
|
-
}, [options, t]);
|
|
36
|
-
const handleClick = (chip) => {
|
|
37
|
-
const next = chip.value;
|
|
38
|
-
if (value == null) {
|
|
39
|
-
setSelected(next);
|
|
40
|
-
}
|
|
41
|
-
onChange == null ? void 0 : onChange(next, chip);
|
|
42
|
-
};
|
|
43
|
-
return /* @__PURE__ */ jsx("div", { className: `chat-filter-chips ${className}`.trim(), role: "group", children: chips.map((chip) => /* @__PURE__ */ jsx(
|
|
44
|
-
Chips,
|
|
45
|
-
{
|
|
46
|
-
className: "chat-filter-chips__chip",
|
|
47
|
-
isActive: selected === chip.value,
|
|
48
|
-
label: chip.label,
|
|
49
|
-
type: "single",
|
|
50
|
-
onClick: () => handleClick(chip)
|
|
51
|
-
},
|
|
52
|
-
chip.value
|
|
53
|
-
)) });
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
ChatFilterChips
|
|
57
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ChatInlineEdit: ({ content, timestamp, pinned, isPinChatIconvisible, onPin, onCancel, onUpdate, }: {
|
|
3
|
-
content: any;
|
|
4
|
-
timestamp: any;
|
|
5
|
-
pinned?: boolean | undefined;
|
|
6
|
-
isPinChatIconvisible?: boolean | undefined;
|
|
7
|
-
onPin: any;
|
|
8
|
-
onCancel: any;
|
|
9
|
-
onUpdate: any;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default ChatInlineEdit;
|
|
12
|
-
//# sourceMappingURL=ChatInlineEdit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInlineEdit.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.tsx"],"names":[],"mappings":"AAKA,OAAO,8BAA8B,CAAC;AA0BtC,eAAO,MAAM,cAAc,GAAI;;;;;;;;CAQ9B,4CAkHA,CAAC;AAEF,eAAe,cAAc,CAAC"}
|