@cometchat/chat-uikit-react 5.0.15 → 5.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/dist/index.d.ts +37 -26
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatEditPreview.css +4 -0
- package/dist/styles/CometChatMessageList.css +4 -0
- package/dist/styles/components/CometChatEditPreview.css +4 -0
- package/dist/styles/components/CometChatMessageList.css +4 -0
- package/dist/types/constants/CometChatUIKitConstants.d.ts +5 -0
- package/dist/types/utils/util.d.ts +6 -0
- package/package.json +2 -2
|
@@ -314,6 +314,10 @@ width: fit-content;
|
|
|
314
314
|
box-sizing: border-box;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
.cometchat-message-list__body--spacing-top .cometchat-list__body-intersection-top{
|
|
318
|
+
margin-bottom: var(--cometchat-spacing-8);
|
|
319
|
+
}
|
|
320
|
+
|
|
317
321
|
/* Message indicator inside message list */
|
|
318
322
|
.cometchat-message-list__message-indicator {
|
|
319
323
|
margin-bottom: 8px;
|
|
@@ -314,6 +314,10 @@ width: fit-content;
|
|
|
314
314
|
box-sizing: border-box;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
.cometchat-message-list__body--spacing-top .cometchat-list__body-intersection-top{
|
|
318
|
+
margin-bottom: var(--cometchat-spacing-8);
|
|
319
|
+
}
|
|
320
|
+
|
|
317
321
|
/* Message indicator inside message list */
|
|
318
322
|
.cometchat-message-list__message-indicator {
|
|
319
323
|
margin-bottom: 8px;
|
|
@@ -6,6 +6,11 @@ export declare class CometChatUIKitConstants {
|
|
|
6
6
|
call: string;
|
|
7
7
|
interactive: string;
|
|
8
8
|
}>;
|
|
9
|
+
static mimeTypes: Readonly<{
|
|
10
|
+
audio: "audio/*, .aac, .aif, .aiff, .caf, .mp3, .mp4, .wav, .m4a, .wma, .flac, .alac, .oga, .ra, .ram, .mid, .midi, .mka, .opus, .ac3, .amr, .ape, .dts, .wv, .tta, .pcm, .snd, .au, .cda, .vox, .m4b, .m3u, .pls, .ogg";
|
|
11
|
+
video: "video/*, .mov, .mp4, .m4v, .avi, .mpg, .mpeg, .m2ts, .mts, .3gp, .3g2, .flv, .wmv, .vob, .ts, .webm, .f4v, .f4a, .f4b, .swf, .rm, .rmvb, .divx, .xvid, .mxf, .asf, .amv, .smv, .avchd, .qt";
|
|
12
|
+
image: "image/*, .heic, .heif, .jpg, .jpeg, .png, .gif, .bmp, .tiff, .tif, .psd, .svg, .ico, .raw, .dng, .eps, .webp, .jfif, .jp2, .jpf, .jpx, .jpm, .mj2, .hdr, .exr, .pbm, .pgm, .ppm, .pnm, .tga, .dds, .svgz, .djvu, .ai, .cdr";
|
|
13
|
+
}>;
|
|
9
14
|
static MessageTypes: Readonly<{
|
|
10
15
|
text: string;
|
|
11
16
|
file: string;
|
|
@@ -55,4 +55,10 @@ export declare const sanitizeHtmlStringToFragment: (html: string, textFormatterA
|
|
|
55
55
|
* Also removes any script or executable content
|
|
56
56
|
*/
|
|
57
57
|
export declare const sanitizeToSpanOnly: (htmlString: string, regexPatterns: RegExp[][]) => string;
|
|
58
|
+
/**
|
|
59
|
+
* @function shouldShowCustomMimeTypes
|
|
60
|
+
* @description Returns true if the device is running either iOS (iPhone, iPad, iPod) or macOS.
|
|
61
|
+
* @returns {boolean} True if the device is an Apple device (iOS or macOS), false otherwise.
|
|
62
|
+
*/
|
|
63
|
+
export declare const shouldShowCustomMimeTypes: () => boolean;
|
|
58
64
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.17",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
6
|
"exports": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"./css-variables.css": "./dist/styles/css-variables.css"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@cometchat/chat-sdk-javascript": "^4.1.
|
|
11
|
+
"@cometchat/chat-sdk-javascript": "^4.1.2",
|
|
12
12
|
"@rollup/plugin-json": "^6.1.0",
|
|
13
13
|
"rxjs": "^7.8.1"
|
|
14
14
|
},
|