@talkjs/react-components 0.0.15 → 0.0.17
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/base.css +1 -1
- package/default.css +1 -1
- package/default.d.ts +10 -7
- package/default.js +192 -175
- package/package.json +3 -3
- package/theming.d.ts +10 -7
- package/theming.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talkjs/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://talkjs.com/?chat"
|
|
6
6
|
},
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@floating-ui/dom": "^1.6.5",
|
|
26
26
|
"@legendapp/state": "3.0.0-alpha.9",
|
|
27
|
-
"@
|
|
28
|
-
"@talkjs/core": "
|
|
27
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
28
|
+
"@talkjs/core": "^1.4.2",
|
|
29
29
|
"autolinker": "^4.0.0",
|
|
30
30
|
"emoji-picker-element": "1.8.2",
|
|
31
31
|
"htm": "^3.1.1",
|
package/theming.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AudioBlock } from '@talkjs/core';
|
|
2
2
|
import { ConversationSnapshot } from '@talkjs/core';
|
|
3
|
+
import { EditMessageParams } from '@talkjs/core';
|
|
4
|
+
import { EditTextMessageParams } from '@talkjs/core';
|
|
3
5
|
import { FileBlock } from '@talkjs/core';
|
|
4
6
|
import { FileToken } from '@talkjs/core';
|
|
5
7
|
import { ImageBlock } from '@talkjs/core';
|
|
@@ -9,6 +11,8 @@ import { ParticipantSnapshot } from '@talkjs/core';
|
|
|
9
11
|
import type * as React_2 from 'react';
|
|
10
12
|
import { ReactElement } from 'react';
|
|
11
13
|
import { ReferencedMessageSnapshot } from '@talkjs/core';
|
|
14
|
+
import { SendMessageParams } from '@talkjs/core';
|
|
15
|
+
import { SendTextMessageParams } from '@talkjs/core';
|
|
12
16
|
import { TextBlock } from '@talkjs/core';
|
|
13
17
|
import { TypingSnapshot } from '@talkjs/core';
|
|
14
18
|
import { UserSnapshot } from '@talkjs/core';
|
|
@@ -130,12 +134,9 @@ export declare interface BrowserPermissionRequest {
|
|
|
130
134
|
|
|
131
135
|
export declare interface Chatbox {
|
|
132
136
|
deleteMessage(messageId: string): Promise<void>;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
custom?: Record<string, string>;
|
|
137
|
-
referencedMessageId?: string;
|
|
138
|
-
}): Promise<void>;
|
|
137
|
+
setEditing(messageId: string | null): void;
|
|
138
|
+
editMessage(messageId: string, params: EditTextMessageParams | EditMessageParams): Promise<void>;
|
|
139
|
+
sendMessage(params: SendTextMessageParams | SendMessageParams): Promise<void>;
|
|
139
140
|
sendFileMessage(message: {
|
|
140
141
|
fileToken: FileToken;
|
|
141
142
|
custom?: Record<string, string>;
|
|
@@ -336,7 +337,7 @@ export declare interface MessageDividerProps {
|
|
|
336
337
|
export declare interface MessageFieldProps {
|
|
337
338
|
conversation: ConversationSnapshot;
|
|
338
339
|
participants: ParticipantSnapshot[];
|
|
339
|
-
referencedMessage: MessageSnapshot;
|
|
340
|
+
referencedMessage: MessageSnapshot | undefined;
|
|
340
341
|
currentUser: UserSnapshot;
|
|
341
342
|
permissions: UserPermissions;
|
|
342
343
|
t: Translation;
|
|
@@ -344,6 +345,7 @@ export declare interface MessageFieldProps {
|
|
|
344
345
|
editor?: EditorController;
|
|
345
346
|
themeCustom?: any;
|
|
346
347
|
device: DeviceFeatures;
|
|
348
|
+
editMessageId: string | undefined;
|
|
347
349
|
}
|
|
348
350
|
|
|
349
351
|
export declare interface MessageListFooterProps {
|
|
@@ -359,6 +361,7 @@ export declare interface MessageListFooterProps {
|
|
|
359
361
|
export declare interface MessagePermissions extends UserPermissions {
|
|
360
362
|
canDeleteMessage: boolean;
|
|
361
363
|
canReplyToMessage: boolean;
|
|
364
|
+
canEditMessage: boolean;
|
|
362
365
|
}
|
|
363
366
|
|
|
364
367
|
export declare interface MessageProps {
|