impact-ui 5.0.2-alpha.2 → 5.0.2-alpha.3
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/_virtual/Check.js +4 -0
- package/dist/_virtual/index4.js +2 -4
- package/dist/_virtual/index5.js +3 -3
- package/dist/_virtual/index6.js +4 -2
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +4 -3
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Panel/Panel.types.d.ts +7 -0
- 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 +5 -2
- package/dist/components/TableChat/EmptyContainer.js +3 -3
- package/dist/components/TableChat/TableChatSidePanel.d.ts +2 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +216 -23
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +7 -2
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +92 -24
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +3 -2
- package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.d.ts +11 -0
- package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.d.ts.map +1 -0
- package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.js +57 -0
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +20 -43
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +37 -2
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +54 -18
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +4 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +90 -81
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +51 -16
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +68 -57
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +8 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +170 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.d.ts +12 -0
- package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.d.ts.map +1 -0
- package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.js +132 -0
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts +5 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +138 -124
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +11 -9
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +102 -106
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +0 -17
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +4 -1
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.js +29 -0
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +327 -215
- package/dist/components/TableChat/components/chatConfig.js +0 -1
- package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableV36/AgGridHeader.js +3 -22
- package/dist/components/TableV36/index.d.ts.map +1 -1
- package/dist/components/TableV36/index.js +138 -8
- package/dist/components/TableV36/tableHeader.d.ts +6 -1
- package/dist/components/TableV36/tableHeader.d.ts.map +1 -1
- package/dist/components/TableV36/tableHeader.js +39 -11
- package/dist/components/TableV36/withChatIndicator.d.ts +3 -0
- package/dist/components/TableV36/withChatIndicator.d.ts.map +1 -0
- package/dist/components/TableV36/withChatIndicator.js +89 -0
- package/dist/locales/de-DE.json.d.ts +18 -3
- package/dist/locales/de-DE.json.js +17 -3
- package/dist/locales/en-US.json.d.ts +18 -3
- package/dist/locales/en-US.json.js +17 -3
- package/dist/locales/es-ES.json.d.ts +18 -3
- package/dist/locales/es-ES.json.js +17 -3
- package/dist/mcp-component-registry.json +1 -7
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +3 -1
- package/dist/node_modules/@mui/icons-material/Check.js +17 -0
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/stories/tableV36ChatApiMock.d.ts +226 -74
- package/dist/stories/tableV36ChatApiMock.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.js +0 -65
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-11-03T07:30:24.729Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"Menu": {
|
|
6
6
|
"title": "Components/Menu",
|
|
@@ -5755,12 +5755,6 @@
|
|
|
5755
5755
|
],
|
|
5756
5756
|
"required": false
|
|
5757
5757
|
},
|
|
5758
|
-
"extraNumericFormatOptions": {
|
|
5759
|
-
"description": "Additional Numeric Values options appended after Full / K / M / B in Table Settings → Format.",
|
|
5760
|
-
"type": "Array<{ label: string; value: string }>",
|
|
5761
|
-
"defaultValue": "undefined",
|
|
5762
|
-
"required": false
|
|
5763
|
-
},
|
|
5764
5758
|
"isSaveViewEnabled": {
|
|
5765
5759
|
"description": "If true, enables Save View feature in table settings.",
|
|
5766
5760
|
"type": "boolean",
|
|
@@ -3667,7 +3667,8 @@ var ReplyChatIcon = (props, ref) => /* @__PURE__ */ jsx(
|
|
|
3667
3667
|
)
|
|
3668
3668
|
}
|
|
3669
3669
|
);
|
|
3670
|
-
forwardRef(ReplyChatIcon);
|
|
3670
|
+
var ForwardRef157 = forwardRef(ReplyChatIcon);
|
|
3671
|
+
var ReplyChatIcon_default = ForwardRef157;
|
|
3671
3672
|
var ReplyIcon = (props, ref) => /* @__PURE__ */ jsx(
|
|
3672
3673
|
"svg",
|
|
3673
3674
|
{
|
|
@@ -5244,6 +5245,7 @@ export {
|
|
|
5244
5245
|
PanelView_default as PanelView,
|
|
5245
5246
|
PersonUser_default as PersonUser,
|
|
5246
5247
|
PinnedIcon_default as PinnedIcon,
|
|
5248
|
+
ReplyChatIcon_default as ReplyChatIcon,
|
|
5247
5249
|
Search_default as Search,
|
|
5248
5250
|
SearchIconTable_default as SearchIconTable,
|
|
5249
5251
|
ShowAll_default as ShowAll,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __exports as Check } from "../../../_virtual/Check.js";
|
|
2
|
+
import require$$0 from "@babel/runtime/helpers/interopRequireDefault";
|
|
3
|
+
import { __require as requireCreateSvgIcon } from "./utils/createSvgIcon.js";
|
|
4
|
+
import require$$2 from "react/jsx-runtime";
|
|
5
|
+
var _interopRequireDefault = require$$0;
|
|
6
|
+
Object.defineProperty(Check, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
var default_1 = Check.default = void 0;
|
|
10
|
+
var _createSvgIcon = _interopRequireDefault(requireCreateSvgIcon());
|
|
11
|
+
var _jsxRuntime = require$$2;
|
|
12
|
+
default_1 = Check.default = (0, _createSvgIcon.default)(/* @__PURE__ */ (0, _jsxRuntime.jsx)("path", {
|
|
13
|
+
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
14
|
+
}), "Check");
|
|
15
|
+
export {
|
|
16
|
+
default_1 as default
|
|
17
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __exports as colorManipulator } from "../../../_virtual/colorManipulator.js";
|
|
2
2
|
import require$$0 from "@babel/runtime/helpers/interopRequireDefault";
|
|
3
|
-
import require$$1 from "../../../_virtual/
|
|
4
|
-
import require$$2 from "../../../_virtual/
|
|
3
|
+
import require$$1 from "../../../_virtual/index5.js";
|
|
4
|
+
import require$$2 from "../../../_virtual/index6.js";
|
|
5
5
|
var _interopRequireDefault = require$$0;
|
|
6
6
|
Object.defineProperty(colorManipulator, "__esModule", {
|
|
7
7
|
value: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as reactIs } from "../../../../_virtual/
|
|
1
|
+
import { __module as reactIs } from "../../../../_virtual/index4.js";
|
|
2
2
|
import { __require as requireReactIs_production_min } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as requireReactIs_development } from "./cjs/react-is.development.js";
|
|
4
4
|
var hasRequiredReactIs;
|
|
@@ -34,48 +34,21 @@ export declare const tableV36ChatColumnDefs: ({
|
|
|
34
34
|
pinned?: undefined;
|
|
35
35
|
maxWidth?: undefined;
|
|
36
36
|
})[];
|
|
37
|
-
declare const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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) => {
|
|
37
|
+
declare const seedChatsByChannel: () => Record<string, any[]>;
|
|
38
|
+
declare const seedChannels: () => any[];
|
|
39
|
+
/** Page 1: ~8 calendar days (date badge → weekday → Yesterday → Today). Older pages: prior week. */
|
|
40
|
+
declare const generateMessages: (chatId: string, page?: number, _limit?: number) => ({
|
|
71
41
|
id: string;
|
|
72
42
|
author: string;
|
|
73
|
-
authorName: string;
|
|
43
|
+
authorName: string | undefined;
|
|
74
44
|
content: string;
|
|
75
45
|
timestamp: string;
|
|
76
46
|
date: string;
|
|
77
47
|
showReplyBadge: boolean;
|
|
78
|
-
|
|
48
|
+
quote: {
|
|
49
|
+
authorLabel: string;
|
|
50
|
+
content: string;
|
|
51
|
+
} | undefined;
|
|
79
52
|
priority: string;
|
|
80
53
|
edited: boolean;
|
|
81
54
|
deleted: boolean;
|
|
@@ -86,7 +59,23 @@ declare const generateMessages: (chatId: string, page?: number, limit?: number)
|
|
|
86
59
|
created_at: string;
|
|
87
60
|
sender_name: string;
|
|
88
61
|
};
|
|
89
|
-
}
|
|
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
|
+
})[];
|
|
90
79
|
export type TableV36ChatApiStore = {
|
|
91
80
|
channels: ReturnType<typeof seedChannels>;
|
|
92
81
|
chatsByChannel: ReturnType<typeof seedChatsByChannel>;
|
|
@@ -98,6 +87,18 @@ export type TableV36ChatApiStore = {
|
|
|
98
87
|
pinStateByChat: Record<string, boolean>;
|
|
99
88
|
};
|
|
100
89
|
export declare const createTableV36ChatApiStore: () => TableV36ChatApiStore;
|
|
90
|
+
/**
|
|
91
|
+
* Host helper for row chat cell indicator.
|
|
92
|
+
* Returns null when the row has no chats (no icon rendered).
|
|
93
|
+
* Cell badge is always resolvedChats/totalChats — same whether the chats live on a
|
|
94
|
+
* row-owned channel or a space that includes this row (Space label is channel-list only).
|
|
95
|
+
* Prefer a row-owned channel that has chats; otherwise a space with chats.
|
|
96
|
+
*/
|
|
97
|
+
export declare const getRowChatMetaFromStore: (store: TableV36ChatApiStore) => (rowData: Record<string, unknown> | null | undefined) => {
|
|
98
|
+
totalChats: number;
|
|
99
|
+
resolvedChats: number;
|
|
100
|
+
hasUnread: boolean;
|
|
101
|
+
} | null;
|
|
101
102
|
export type CreateTableV36ApiDrivenChatConfigurationOptions = {
|
|
102
103
|
store: TableV36ChatApiStore;
|
|
103
104
|
/** Bump when store mutates so React recomputes chatConfiguration */
|
|
@@ -121,17 +122,27 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
121
122
|
currentTopicId: null;
|
|
122
123
|
isThreadIconVisible: boolean;
|
|
123
124
|
isPinChatIconVisible: boolean;
|
|
125
|
+
showReplyActions: boolean;
|
|
126
|
+
showFinalize: boolean;
|
|
127
|
+
moreOptions: (message: {
|
|
128
|
+
id?: string;
|
|
129
|
+
}) => {
|
|
130
|
+
label: string;
|
|
131
|
+
value: string;
|
|
132
|
+
onClick: () => void;
|
|
133
|
+
}[];
|
|
124
134
|
emptyChannelStateTitle: string;
|
|
125
135
|
emptyChannelStateSubTitle: string;
|
|
126
136
|
emptyChatStateTitle: string;
|
|
127
137
|
emptyChatStateSubTitle: string;
|
|
128
138
|
currentUserId: number;
|
|
129
|
-
selectedMessageId:
|
|
139
|
+
selectedMessageId: null;
|
|
130
140
|
maxSearchPages: number;
|
|
131
141
|
highlightDuration: number;
|
|
132
142
|
scrollBehavior: string;
|
|
133
143
|
scrollBlock: string;
|
|
134
144
|
highlightColor: null;
|
|
145
|
+
onFinalize: (messageId: string, chatId: string, item: unknown) => Promise<boolean>;
|
|
135
146
|
onRealTimeMessageUpdate: (newMessage: unknown) => void;
|
|
136
147
|
onMessageReply: (messageId: string, message: unknown) => void;
|
|
137
148
|
onMessageBookmark: (messageId: string, message: unknown) => void;
|
|
@@ -139,10 +150,51 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
139
150
|
id: string;
|
|
140
151
|
isPinned: boolean;
|
|
141
152
|
}>;
|
|
142
|
-
onMessageUpdate: (messageId: string, updatedData:
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
153
|
+
onMessageUpdate: (messageId: string, updatedData: {
|
|
154
|
+
content?: string;
|
|
155
|
+
}) => Promise<{
|
|
156
|
+
content: string;
|
|
157
|
+
edited: boolean;
|
|
158
|
+
id: string;
|
|
159
|
+
author: string;
|
|
160
|
+
authorName: string | undefined;
|
|
161
|
+
timestamp: string;
|
|
162
|
+
date: string;
|
|
163
|
+
showReplyBadge: boolean;
|
|
164
|
+
quote: {
|
|
165
|
+
authorLabel: string;
|
|
166
|
+
content: string;
|
|
167
|
+
} | undefined;
|
|
168
|
+
priority: string;
|
|
169
|
+
deleted: boolean;
|
|
170
|
+
isPinned: boolean;
|
|
171
|
+
showActions: boolean;
|
|
172
|
+
otherProps: {
|
|
173
|
+
sender_id: number;
|
|
174
|
+
created_at: string;
|
|
175
|
+
sender_name: string;
|
|
176
|
+
};
|
|
177
|
+
} | {
|
|
178
|
+
content: string;
|
|
179
|
+
edited: boolean;
|
|
180
|
+
id: string;
|
|
181
|
+
type: string;
|
|
182
|
+
author: string;
|
|
183
|
+
authorName: string;
|
|
184
|
+
timestamp: string;
|
|
185
|
+
date: string;
|
|
186
|
+
showReplyBadge: boolean;
|
|
187
|
+
showActions: boolean;
|
|
188
|
+
deleted: boolean;
|
|
189
|
+
isPinned: boolean;
|
|
190
|
+
otherProps: {
|
|
191
|
+
created_at: string;
|
|
192
|
+
is_system: boolean;
|
|
193
|
+
};
|
|
194
|
+
} | {
|
|
195
|
+
id: string;
|
|
196
|
+
content: string | undefined;
|
|
197
|
+
edited: boolean;
|
|
146
198
|
}>;
|
|
147
199
|
onMessageDelete: (messageId: string) => Promise<{
|
|
148
200
|
success: boolean;
|
|
@@ -188,6 +240,18 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
188
240
|
};
|
|
189
241
|
headerChatConfig: {
|
|
190
242
|
participants: unknown[] | undefined;
|
|
243
|
+
showChatId: boolean;
|
|
244
|
+
showResolve: boolean;
|
|
245
|
+
isResolved: boolean;
|
|
246
|
+
onResolve: (chatId: string) => Promise<{
|
|
247
|
+
success: boolean;
|
|
248
|
+
chatId: string;
|
|
249
|
+
}>;
|
|
250
|
+
onTitleChange: (chatId: string, title: string) => Promise<{
|
|
251
|
+
success: boolean;
|
|
252
|
+
chatId: string;
|
|
253
|
+
title: string;
|
|
254
|
+
}>;
|
|
191
255
|
loadParticipants: (radioValue: string, selectedChannelInfo: unknown, selectedChatInfo: unknown) => Promise<({
|
|
192
256
|
id: number;
|
|
193
257
|
label: string;
|
|
@@ -268,15 +332,20 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
268
332
|
inputChatConfig: {
|
|
269
333
|
onSend: (payload: {
|
|
270
334
|
content?: string;
|
|
335
|
+
quote?: unknown;
|
|
336
|
+
replyToMessageId?: string;
|
|
271
337
|
}, chatId: string) => Promise<{
|
|
272
338
|
id: string;
|
|
273
339
|
author: string;
|
|
274
|
-
authorName: string;
|
|
340
|
+
authorName: string | undefined;
|
|
275
341
|
content: string;
|
|
276
342
|
timestamp: string;
|
|
277
343
|
date: string;
|
|
278
344
|
showReplyBadge: boolean;
|
|
279
|
-
|
|
345
|
+
quote: {
|
|
346
|
+
authorLabel: string;
|
|
347
|
+
content: string;
|
|
348
|
+
} | undefined;
|
|
280
349
|
priority: string;
|
|
281
350
|
edited: boolean;
|
|
282
351
|
deleted: boolean;
|
|
@@ -294,6 +363,7 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
294
363
|
onAttachFile: (file: unknown) => void;
|
|
295
364
|
onImageUpload: (image: unknown) => void;
|
|
296
365
|
onEmojiSelect: (emoji: unknown) => void;
|
|
366
|
+
onQuickAction: (option: unknown, chatId: string) => void;
|
|
297
367
|
inputConfig: {
|
|
298
368
|
placeholder: string;
|
|
299
369
|
maxLength: number;
|
|
@@ -303,15 +373,14 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
303
373
|
showQuickAction: boolean;
|
|
304
374
|
quickActionLabel: string;
|
|
305
375
|
allowedFileTypes: string[];
|
|
306
|
-
quickActions: {
|
|
307
|
-
label: string;
|
|
308
|
-
action: string;
|
|
309
|
-
}[];
|
|
310
376
|
};
|
|
311
377
|
};
|
|
312
378
|
leftPanel: {
|
|
379
|
+
channelListTitle: string;
|
|
313
380
|
leftHeaderPanel: {
|
|
314
381
|
showAddChat: boolean;
|
|
382
|
+
showFilterChips: boolean;
|
|
383
|
+
onFilterChipChange: (value: string) => void;
|
|
315
384
|
};
|
|
316
385
|
leftChatPanel: {
|
|
317
386
|
showCheckbox: boolean;
|
|
@@ -326,33 +395,15 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
326
395
|
inputPlaceholder: string;
|
|
327
396
|
textAreaPlaceholder: string;
|
|
328
397
|
};
|
|
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
|
-
})[]>;
|
|
398
|
+
loadChannelsList: () => Promise<any[]>;
|
|
348
399
|
loadChatList: (selectedChannelInfo: {
|
|
349
|
-
id?: number;
|
|
350
|
-
}) => Promise<
|
|
400
|
+
id?: string | number;
|
|
401
|
+
}) => Promise<any[]>;
|
|
351
402
|
handleChatName: (formData: {
|
|
352
403
|
chatName?: string;
|
|
353
404
|
chatDescription?: string;
|
|
354
405
|
}, selectedChannelInfo: {
|
|
355
|
-
id?: number;
|
|
406
|
+
id?: string | number;
|
|
356
407
|
} | null) => Promise<{
|
|
357
408
|
success: boolean;
|
|
358
409
|
formattedChat: {
|
|
@@ -363,16 +414,24 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
363
414
|
subtitle: string | null;
|
|
364
415
|
isChecked: boolean;
|
|
365
416
|
isPinned: boolean;
|
|
417
|
+
isResolved: boolean;
|
|
418
|
+
displayId: string;
|
|
366
419
|
unreadCount: number;
|
|
367
420
|
messageCount: number;
|
|
368
421
|
timestamp: string;
|
|
422
|
+
createdBy: string;
|
|
369
423
|
otherProps: {
|
|
370
424
|
topic_id: string;
|
|
371
425
|
name: string | undefined;
|
|
372
426
|
description: string | null;
|
|
373
427
|
object_type: string;
|
|
374
428
|
object_ids: string[];
|
|
429
|
+
channel_id: string | number;
|
|
375
430
|
is_pinned: boolean;
|
|
431
|
+
is_resolved: boolean;
|
|
432
|
+
reference_id: string;
|
|
433
|
+
created_by_user: string;
|
|
434
|
+
created_at: string;
|
|
376
435
|
};
|
|
377
436
|
};
|
|
378
437
|
}>;
|
|
@@ -383,19 +442,96 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
383
442
|
directChatList: never[];
|
|
384
443
|
hasDirectChatList: boolean;
|
|
385
444
|
selectedChatId: null;
|
|
445
|
+
/**
|
|
446
|
+
* Select row(s) → Start new chat / Create a space:
|
|
447
|
+
* Same create flow. Multi-select (or options.isSpace) creates a space channel —
|
|
448
|
+
* host returns `isSpace: true` (or `badge` / `badgeLabel`) so the list shows the Space badge.
|
|
449
|
+
* Titles / ids come from host (this mock) — not from the panel.
|
|
450
|
+
*/
|
|
451
|
+
onStartNewChat: (selectedRows?: Array<Record<string, unknown>>, options?: {
|
|
452
|
+
isSpace?: boolean;
|
|
453
|
+
}) => Promise<{
|
|
454
|
+
success: boolean;
|
|
455
|
+
channel: any;
|
|
456
|
+
channelsList: any[];
|
|
457
|
+
chatList: any[] | undefined;
|
|
458
|
+
openChat: {
|
|
459
|
+
id: string;
|
|
460
|
+
user: string;
|
|
461
|
+
text: null;
|
|
462
|
+
title: string | undefined;
|
|
463
|
+
subtitle: string | null;
|
|
464
|
+
isChecked: boolean;
|
|
465
|
+
isPinned: boolean;
|
|
466
|
+
isResolved: boolean;
|
|
467
|
+
displayId: string;
|
|
468
|
+
unreadCount: number;
|
|
469
|
+
messageCount: number;
|
|
470
|
+
timestamp: string;
|
|
471
|
+
createdBy: string;
|
|
472
|
+
otherProps: {
|
|
473
|
+
topic_id: string;
|
|
474
|
+
name: string | undefined;
|
|
475
|
+
description: string | null;
|
|
476
|
+
object_type: string;
|
|
477
|
+
object_ids: string[];
|
|
478
|
+
channel_id: string | number;
|
|
479
|
+
is_pinned: boolean;
|
|
480
|
+
is_resolved: boolean;
|
|
481
|
+
reference_id: string;
|
|
482
|
+
created_by_user: string;
|
|
483
|
+
created_at: string;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
screen: string;
|
|
487
|
+
}>;
|
|
488
|
+
/**
|
|
489
|
+
* Channel list → select channel: return that channel's chat list only.
|
|
490
|
+
* Do not auto-open a chat (user picks a chat next).
|
|
491
|
+
*/
|
|
492
|
+
onChannelOpen: (channelInfo: {
|
|
493
|
+
id?: string | number;
|
|
494
|
+
}) => Promise<{
|
|
495
|
+
success: boolean;
|
|
496
|
+
screen?: undefined;
|
|
497
|
+
chatList?: undefined;
|
|
498
|
+
} | {
|
|
499
|
+
success: boolean;
|
|
500
|
+
screen: string;
|
|
501
|
+
chatList: any[];
|
|
502
|
+
}>;
|
|
503
|
+
/**
|
|
504
|
+
* Row cell chat icon → same as selecting that channel: chat list only.
|
|
505
|
+
*/
|
|
506
|
+
onOpenChannelFromRow: (selectedRows?: Array<Record<string, unknown>>) => Promise<{
|
|
507
|
+
success: boolean;
|
|
508
|
+
channel?: undefined;
|
|
509
|
+
channelsList?: undefined;
|
|
510
|
+
chatList?: undefined;
|
|
511
|
+
screen?: undefined;
|
|
512
|
+
} | {
|
|
513
|
+
success: boolean;
|
|
514
|
+
channel: any;
|
|
515
|
+
channelsList: any[];
|
|
516
|
+
chatList: any[];
|
|
517
|
+
screen: string;
|
|
518
|
+
}>;
|
|
386
519
|
clearDirectChatList: () => void;
|
|
387
520
|
};
|
|
388
521
|
rightPanel: {
|
|
389
522
|
messagesClearedTrigger: number;
|
|
390
|
-
loadMessages: (chatId: string, page?: number) => Promise<{
|
|
523
|
+
loadMessages: (chatId: string, page?: number) => Promise<({
|
|
391
524
|
id: string;
|
|
392
525
|
author: string;
|
|
393
|
-
authorName: string;
|
|
526
|
+
authorName: string | undefined;
|
|
394
527
|
content: string;
|
|
395
528
|
timestamp: string;
|
|
396
529
|
date: string;
|
|
397
530
|
showReplyBadge: boolean;
|
|
398
|
-
|
|
531
|
+
quote: {
|
|
532
|
+
authorLabel: string;
|
|
533
|
+
content: string;
|
|
534
|
+
} | undefined;
|
|
399
535
|
priority: string;
|
|
400
536
|
edited: boolean;
|
|
401
537
|
deleted: boolean;
|
|
@@ -406,7 +542,23 @@ export declare const createTableV36ApiDrivenChatConfiguration: ({ store, revisio
|
|
|
406
542
|
created_at: string;
|
|
407
543
|
sender_name: string;
|
|
408
544
|
};
|
|
409
|
-
}
|
|
545
|
+
} | {
|
|
546
|
+
id: string;
|
|
547
|
+
type: string;
|
|
548
|
+
author: string;
|
|
549
|
+
authorName: string;
|
|
550
|
+
content: string;
|
|
551
|
+
timestamp: string;
|
|
552
|
+
date: string;
|
|
553
|
+
showReplyBadge: boolean;
|
|
554
|
+
showActions: boolean;
|
|
555
|
+
deleted: boolean;
|
|
556
|
+
isPinned: boolean;
|
|
557
|
+
otherProps: {
|
|
558
|
+
created_at: string;
|
|
559
|
+
is_system: boolean;
|
|
560
|
+
};
|
|
561
|
+
})[]>;
|
|
410
562
|
loadOlderMessages: (channelId: string) => Promise<{
|
|
411
563
|
id: string;
|
|
412
564
|
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/tableV36ChatApiMock.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,eAAO,MAAM,mBAAmB;;;;;;;GAU/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;IAkBlC,CAAC;AAMF,QAAA,MAAM,kBAAkB,QAAO,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAwGjD,CAAC;AAIH,QAAA,MAAM,YAAY,QAAO,GAAG,EA0B3B,CAAC;AAqEF,oGAAoG;AACpG,QAAA,MAAM,gBAAgB,GAAI,QAAQ,MAAM,EAAE,aAAQ,EAAE,eAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8C9D,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IAC1C,cAAc,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACtD,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;IACpE,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;I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;;;;;QAgFhC;;;WAGG;qCACgC;YAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE;;;;;;;;;QAa3D;;WAEG;8CACwC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;+BAuC5C,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA0BE,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.3",
|
|
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": "
|
|
111
|
+
"@impactsmartsuite/impact-icons": "0.1.8-beta.3",
|
|
112
112
|
"@mui/base": "^5.0.0-alpha.82",
|
|
113
113
|
"@mui/docs": "^5.8.0",
|
|
114
114
|
"@mui/envinfo": "^2.0.6",
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
4
|
-
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
5
|
-
const ThreeDotIcon = getAssetUrl("icons/treedotIcon.svg");
|
|
6
|
-
const TreadChatIcon = getAssetUrl("icons/treadChatIcon.svg");
|
|
7
|
-
const PinnedIcon = getAssetUrl("icons/pinedIcon.svg");
|
|
8
|
-
const UnpinIcon = getAssetUrl("icons/unpinedIcon.svg");
|
|
9
|
-
const ChatEditedMessageType = ({
|
|
10
|
-
content,
|
|
11
|
-
timestamp,
|
|
12
|
-
handleClickOnMoreOptions,
|
|
13
|
-
priority = "default",
|
|
14
|
-
edited = false,
|
|
15
|
-
onThreadClick,
|
|
16
|
-
pinned,
|
|
17
|
-
onPin
|
|
18
|
-
}) => {
|
|
19
|
-
const { t } = useTranslation();
|
|
20
|
-
const [showPinned, setShowPinned] = useState(pinned);
|
|
21
|
-
const handlePin = async (isPinned) => {
|
|
22
|
-
try {
|
|
23
|
-
const response = await onPin(isPinned);
|
|
24
|
-
console.log("Response: [DefaultMessageType]", response);
|
|
25
|
-
if (response) {
|
|
26
|
-
setShowPinned(isPinned);
|
|
27
|
-
}
|
|
28
|
-
return response;
|
|
29
|
-
} catch (error) {
|
|
30
|
-
console.error("Error pinning message:", error);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
return /* @__PURE__ */ jsxs("div", { className: `message-text ${priority}`, children: [
|
|
34
|
-
typeof content === "string" ? /* @__PURE__ */ jsx("p", { children: content }) : content,
|
|
35
|
-
/* @__PURE__ */ jsxs("div", { className: `message-header ${!isUser ? "flex-end" : ""}`, children: [
|
|
36
|
-
/* @__PURE__ */ jsxs("div", { className: "message-action-container", children: [
|
|
37
|
-
/* @__PURE__ */ jsx("img", { alt: "threedot", src: ThreeDotIcon, onClick: handleClickOnMoreOptions }),
|
|
38
|
-
/* @__PURE__ */ jsx("img", { alt: "treaddd", src: TreadChatIcon, onClick: onThreadClick })
|
|
39
|
-
] }),
|
|
40
|
-
/* @__PURE__ */ jsxs("div", { className: "message-action-info-container", children: [
|
|
41
|
-
/* @__PURE__ */ jsx(
|
|
42
|
-
"img",
|
|
43
|
-
{
|
|
44
|
-
alt: "unpinned",
|
|
45
|
-
height: 12.63,
|
|
46
|
-
src: pinned ? PinnedIcon : UnpinIcon,
|
|
47
|
-
style: { cursor: "pointer" },
|
|
48
|
-
width: 12.63,
|
|
49
|
-
onClick: () => handlePin(!showPinned)
|
|
50
|
-
}
|
|
51
|
-
),
|
|
52
|
-
/* @__PURE__ */ jsxs("span", { className: "message-action-info", children: [
|
|
53
|
-
timestamp,
|
|
54
|
-
edited && /* @__PURE__ */ jsxs("span", { className: "edited-label", children: [
|
|
55
|
-
" ",
|
|
56
|
-
t("commentsPanel.edited")
|
|
57
|
-
] })
|
|
58
|
-
] })
|
|
59
|
-
] })
|
|
60
|
-
] })
|
|
61
|
-
] });
|
|
62
|
-
};
|
|
63
|
-
export {
|
|
64
|
-
ChatEditedMessageType as default
|
|
65
|
-
};
|