@talkjs/react-components 0.0.10 → 0.0.11
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/default.d.ts +8 -8
- package/default.js +8 -14
- package/package.json +2 -2
- package/theming.d.ts +16 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talkjs/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://talkjs.com/?chat"
|
|
6
6
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@floating-ui/dom": "^1.6.5",
|
|
26
26
|
"@legendapp/state": "3.0.0-alpha.9",
|
|
27
27
|
"@reach/menu-button": "^0.18.0",
|
|
28
|
-
"@talkjs/core": "~1.2
|
|
28
|
+
"@talkjs/core": "~1.4.2",
|
|
29
29
|
"autolinker": "^4.0.0",
|
|
30
30
|
"htm": "^3.1.1",
|
|
31
31
|
"lodash.merge": "^4.6.2",
|
package/theming.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { MessageSnapshot } from '@talkjs/core';
|
|
|
8
8
|
import { ParticipantSnapshot } from '@talkjs/core';
|
|
9
9
|
import type * as React_2 from 'react';
|
|
10
10
|
import { ReactElement } from 'react';
|
|
11
|
+
import { ReferencedMessageSnapshot } from '@talkjs/core';
|
|
11
12
|
import { TextBlock } from '@talkjs/core';
|
|
12
13
|
import { TypingSnapshot } from '@talkjs/core';
|
|
13
14
|
import { UserSnapshot } from '@talkjs/core';
|
|
@@ -156,14 +157,14 @@ export declare interface ChatHeaderProps {
|
|
|
156
157
|
currentUser: UserSnapshot;
|
|
157
158
|
t: Translation;
|
|
158
159
|
chatbox: Chatbox;
|
|
159
|
-
themeCustom
|
|
160
|
+
themeCustom?: any;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
export declare interface ContentBlockProps {
|
|
163
164
|
message: MessageSnapshot;
|
|
164
165
|
currentUser: UserSnapshot;
|
|
165
166
|
t: Translation;
|
|
166
|
-
themeCustom
|
|
167
|
+
themeCustom?: any;
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
export { ConversationSnapshot }
|
|
@@ -234,7 +235,7 @@ export declare function i18n(code: string): Translation;
|
|
|
234
235
|
export declare interface IconProps {
|
|
235
236
|
type: "attach" | "chevronLeft" | "left" | "chevronUp" | "up" | "chevronDown" | "down" | "close" | "emoji" | "locationPin" | "more" | "plus" | "search" | "send" | "spinner" | "play" | "pause" | "updown" | "addEmoji" | "microphone" | "mic" | "stop" | "download" | "location" | "email" | "movie" | "image" | "attachment" | "horizontalDots" | "verticalDots" | "reply" | "back";
|
|
236
237
|
className?: string;
|
|
237
|
-
themeCustom
|
|
238
|
+
themeCustom?: any;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
export { ImageBlock }
|
|
@@ -257,7 +258,7 @@ export declare interface MessageActionMenuProps {
|
|
|
257
258
|
message: MessageSnapshot;
|
|
258
259
|
chatbox: Chatbox;
|
|
259
260
|
t: Translation;
|
|
260
|
-
themeCustom
|
|
261
|
+
themeCustom?: any;
|
|
261
262
|
}
|
|
262
263
|
|
|
263
264
|
export declare function MessageContent(props: MessageContentProps): JSX.Element;
|
|
@@ -266,6 +267,7 @@ export declare interface MessageContentProps {
|
|
|
266
267
|
currentUser: UserSnapshot;
|
|
267
268
|
message: MessageSnapshot;
|
|
268
269
|
t: Translation;
|
|
270
|
+
messageStatus: MessageStatus;
|
|
269
271
|
themeCustom: any;
|
|
270
272
|
className?: string;
|
|
271
273
|
}
|
|
@@ -278,7 +280,7 @@ export declare interface MessageDividerProps {
|
|
|
278
280
|
conversation: ConversationSnapshot;
|
|
279
281
|
app: AppMetadata;
|
|
280
282
|
t: Translation;
|
|
281
|
-
themeCustom
|
|
283
|
+
themeCustom?: any;
|
|
282
284
|
}
|
|
283
285
|
|
|
284
286
|
export declare interface MessageFieldProps {
|
|
@@ -290,7 +292,7 @@ export declare interface MessageFieldProps {
|
|
|
290
292
|
t: Translation;
|
|
291
293
|
chatbox: Chatbox;
|
|
292
294
|
editor?: EditorController;
|
|
293
|
-
themeCustom
|
|
295
|
+
themeCustom?: any;
|
|
294
296
|
}
|
|
295
297
|
|
|
296
298
|
export declare interface MessageListFooterProps {
|
|
@@ -300,7 +302,7 @@ export declare interface MessageListFooterProps {
|
|
|
300
302
|
currentUser: UserSnapshot;
|
|
301
303
|
t: Translation;
|
|
302
304
|
chatbox: Chatbox;
|
|
303
|
-
themeCustom
|
|
305
|
+
themeCustom?: any;
|
|
304
306
|
}
|
|
305
307
|
|
|
306
308
|
export declare interface MessagePermissions extends UserPermissions {
|
|
@@ -319,7 +321,7 @@ export declare interface MessageProps {
|
|
|
319
321
|
t: Translation;
|
|
320
322
|
chatbox: Chatbox;
|
|
321
323
|
messageActionMenuAnchorRef: React_2.RefObject<HTMLElement | undefined>;
|
|
322
|
-
themeCustom
|
|
324
|
+
themeCustom?: any;
|
|
323
325
|
}
|
|
324
326
|
|
|
325
327
|
export { MessageSnapshot }
|
|
@@ -357,6 +359,10 @@ export declare interface MissingBrowserPermissionEvent {
|
|
|
357
359
|
type: BrowserPermission;
|
|
358
360
|
}
|
|
359
361
|
|
|
362
|
+
export { ParticipantSnapshot }
|
|
363
|
+
|
|
364
|
+
export { ReferencedMessageSnapshot }
|
|
365
|
+
|
|
360
366
|
export declare interface SendMessageEvent {
|
|
361
367
|
currentUser: UserSnapshot;
|
|
362
368
|
message: MessageSnapshot;
|
|
@@ -475,6 +481,8 @@ declare interface TranslationStrings {
|
|
|
475
481
|
*/
|
|
476
482
|
export declare function twitterAgo(now: number, ts: number, t: Translation): TimeAgo;
|
|
477
483
|
|
|
484
|
+
export { TypingSnapshot }
|
|
485
|
+
|
|
478
486
|
/**
|
|
479
487
|
* returns "Yesterday", "Last Monday", "Tuesday, March 31" or "Monday, March 31 2014", depending on which is most appropriate.
|
|
480
488
|
* @param ts number - unix timestamp (milliseconds)
|