@cometchat/chat-uikit-react 5.0.16 → 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.
@@ -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.16",
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.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
  },