@sendbird/uikit-react-native 2.4.0 → 2.4.1

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.
Files changed (40) hide show
  1. package/lib/commonjs/components/ChannelInput/SendInput.js +3 -3
  2. package/lib/commonjs/components/ChannelInput/SendInput.js.map +1 -1
  3. package/lib/commonjs/containers/SendbirdUIKitContainer.js +19 -1
  4. package/lib/commonjs/containers/SendbirdUIKitContainer.js.map +1 -1
  5. package/lib/commonjs/platform/createFileService.expo.js +6 -14
  6. package/lib/commonjs/platform/createFileService.expo.js.map +1 -1
  7. package/lib/commonjs/platform/createFileService.native.js +65 -37
  8. package/lib/commonjs/platform/createFileService.native.js.map +1 -1
  9. package/lib/commonjs/utils/normalizeFile.js +41 -0
  10. package/lib/commonjs/utils/normalizeFile.js.map +1 -0
  11. package/lib/commonjs/version.js +1 -1
  12. package/lib/commonjs/version.js.map +1 -1
  13. package/lib/module/components/ChannelInput/SendInput.js +3 -3
  14. package/lib/module/components/ChannelInput/SendInput.js.map +1 -1
  15. package/lib/module/containers/SendbirdUIKitContainer.js +20 -2
  16. package/lib/module/containers/SendbirdUIKitContainer.js.map +1 -1
  17. package/lib/module/platform/createFileService.expo.js +7 -15
  18. package/lib/module/platform/createFileService.expo.js.map +1 -1
  19. package/lib/module/platform/createFileService.native.js +64 -36
  20. package/lib/module/platform/createFileService.native.js.map +1 -1
  21. package/lib/module/utils/normalizeFile.js +33 -0
  22. package/lib/module/utils/normalizeFile.js.map +1 -0
  23. package/lib/module/version.js +1 -1
  24. package/lib/module/version.js.map +1 -1
  25. package/lib/typescript/src/containers/SendbirdUIKitContainer.d.ts +1 -1
  26. package/lib/typescript/src/utils/normalizeFile.d.ts +4 -0
  27. package/lib/typescript/src/version.d.ts +1 -1
  28. package/package.json +5 -5
  29. package/src/components/ChannelInput/SendInput.tsx +3 -3
  30. package/src/containers/SendbirdUIKitContainer.tsx +20 -1
  31. package/src/platform/createFileService.expo.ts +5 -10
  32. package/src/platform/createFileService.native.ts +53 -28
  33. package/src/utils/normalizeFile.ts +32 -0
  34. package/src/version.ts +1 -1
  35. package/lib/commonjs/utils/fileTypeGuard.js +0 -26
  36. package/lib/commonjs/utils/fileTypeGuard.js.map +0 -1
  37. package/lib/module/utils/fileTypeGuard.js +0 -18
  38. package/lib/module/utils/fileTypeGuard.js.map +0 -1
  39. package/lib/typescript/src/utils/fileTypeGuard.d.ts +0 -4
  40. package/src/utils/fileTypeGuard.ts +0 -10
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- const fileTypeGuard = _ref => {
9
- let {
10
- uri,
11
- size,
12
- name,
13
- type
14
- } = _ref;
15
- if (!uri) return null;
16
- return {
17
- uri,
18
- size: size ?? 0,
19
- name: name ?? '',
20
- type: type ?? ''
21
- };
22
- };
23
-
24
- var _default = fileTypeGuard;
25
- exports.default = _default;
26
- //# sourceMappingURL=fileTypeGuard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["fileTypeGuard","uri","size","name","type"],"sources":["fileTypeGuard.ts"],"sourcesContent":["import type { PartialNullable } from '@sendbird/uikit-utils';\n\nimport type { FilePickerResponse, FileType } from '../platform/types';\n\nconst fileTypeGuard = ({ uri, size, name, type }: PartialNullable<FileType>): FilePickerResponse => {\n if (!uri) return null;\n return { uri, size: size ?? 0, name: name ?? '', type: type ?? '' };\n};\n\nexport default fileTypeGuard;\n"],"mappings":";;;;;;;AAIA,MAAMA,aAAa,GAAG,QAA8E;EAAA,IAA7E;IAAEC,GAAF;IAAOC,IAAP;IAAaC,IAAb;IAAmBC;EAAnB,CAA6E;EAClG,IAAI,CAACH,GAAL,EAAU,OAAO,IAAP;EACV,OAAO;IAAEA,GAAF;IAAOC,IAAI,EAAEA,IAAI,IAAI,CAArB;IAAwBC,IAAI,EAAEA,IAAI,IAAI,EAAtC;IAA0CC,IAAI,EAAEA,IAAI,IAAI;EAAxD,CAAP;AACD,CAHD;;eAKeJ,a"}
@@ -1,18 +0,0 @@
1
- const fileTypeGuard = _ref => {
2
- let {
3
- uri,
4
- size,
5
- name,
6
- type
7
- } = _ref;
8
- if (!uri) return null;
9
- return {
10
- uri,
11
- size: size ?? 0,
12
- name: name ?? '',
13
- type: type ?? ''
14
- };
15
- };
16
-
17
- export default fileTypeGuard;
18
- //# sourceMappingURL=fileTypeGuard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["fileTypeGuard","uri","size","name","type"],"sources":["fileTypeGuard.ts"],"sourcesContent":["import type { PartialNullable } from '@sendbird/uikit-utils';\n\nimport type { FilePickerResponse, FileType } from '../platform/types';\n\nconst fileTypeGuard = ({ uri, size, name, type }: PartialNullable<FileType>): FilePickerResponse => {\n if (!uri) return null;\n return { uri, size: size ?? 0, name: name ?? '', type: type ?? '' };\n};\n\nexport default fileTypeGuard;\n"],"mappings":"AAIA,MAAMA,aAAa,GAAG,QAA8E;EAAA,IAA7E;IAAEC,GAAF;IAAOC,IAAP;IAAaC,IAAb;IAAmBC;EAAnB,CAA6E;EAClG,IAAI,CAACH,GAAL,EAAU,OAAO,IAAP;EACV,OAAO;IAAEA,GAAF;IAAOC,IAAI,EAAEA,IAAI,IAAI,CAArB;IAAwBC,IAAI,EAAEA,IAAI,IAAI,EAAtC;IAA0CC,IAAI,EAAEA,IAAI,IAAI;EAAxD,CAAP;AACD,CAHD;;AAKA,eAAeJ,aAAf"}
@@ -1,4 +0,0 @@
1
- import type { PartialNullable } from '@sendbird/uikit-utils';
2
- import type { FilePickerResponse, FileType } from '../platform/types';
3
- declare const fileTypeGuard: ({ uri, size, name, type }: PartialNullable<FileType>) => FilePickerResponse;
4
- export default fileTypeGuard;
@@ -1,10 +0,0 @@
1
- import type { PartialNullable } from '@sendbird/uikit-utils';
2
-
3
- import type { FilePickerResponse, FileType } from '../platform/types';
4
-
5
- const fileTypeGuard = ({ uri, size, name, type }: PartialNullable<FileType>): FilePickerResponse => {
6
- if (!uri) return null;
7
- return { uri, size: size ?? 0, name: name ?? '', type: type ?? '' };
8
- };
9
-
10
- export default fileTypeGuard;