@widergy/mobile-ui 2.1.1 → 2.1.3
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.1.3](https://github.com/widergy/mobile-ui/compare/v2.1.2...v2.1.3) (2025-11-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [CX-1400] keyboard adjustable height bottom sheet ([#463](https://github.com/widergy/mobile-ui/issues/463)) ([0d4dbfb](https://github.com/widergy/mobile-ui/commit/0d4dbfbefa8d31570a4c56e7fd8faa876d90d548))
|
|
7
|
+
|
|
8
|
+
## [2.1.2](https://github.com/widergy/mobile-ui/compare/v2.1.1...v2.1.2) (2025-10-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* [CX-1362] attachment name lost on back step ([c392792](https://github.com/widergy/mobile-ui/commit/c392792e941767072adad41c0701b672720c2745))
|
|
14
|
+
|
|
1
15
|
## [2.1.1](https://github.com/widergy/mobile-ui/compare/v2.1.0...v2.1.1) (2025-10-20)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -150,8 +150,8 @@ export const getInitialValuesFrom = files =>
|
|
|
150
150
|
files
|
|
151
151
|
?.map(fileBlob => {
|
|
152
152
|
// eslint-disable-next-line no-underscore-dangle
|
|
153
|
-
const fileData = fileBlob?.
|
|
153
|
+
const fileData = fileBlob?._data || {};
|
|
154
154
|
|
|
155
|
-
return fileData ? { name: fileData?.name, size: fileData?.size } : null;
|
|
155
|
+
return fileData ? { name: fileBlob?.name || fileData?.name, size: fileData?.size } : null;
|
|
156
156
|
})
|
|
157
157
|
.filter(file => file !== null) || [];
|
|
@@ -55,13 +55,18 @@ const UTBottomSheet = ({
|
|
|
55
55
|
|
|
56
56
|
const theme = useTheme();
|
|
57
57
|
|
|
58
|
-
const handleKeyboardDidShow = useCallback(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
const handleKeyboardDidShow = useCallback(
|
|
59
|
+
e => {
|
|
60
|
+
if (!adjustableHeight) {
|
|
61
|
+
if (IS_IOS) {
|
|
62
|
+
setModalHeight(screenHeight);
|
|
63
|
+
} else {
|
|
64
|
+
setModalHeight(screenHeight - e.endCoordinates.height);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[adjustableHeight]
|
|
69
|
+
);
|
|
65
70
|
|
|
66
71
|
const handleKeyboardDidHide = useCallback(() => {
|
|
67
72
|
setModalHeight(height);
|
|
@@ -11,7 +11,8 @@ export const isImageByUri = uri => {
|
|
|
11
11
|
return uCaseUri.includes('.JPG') || uCaseUri.includes('.JPEG') || uCaseUri.includes('PNG');
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export const blobToFile = (blob, type) =>
|
|
14
|
+
export const blobToFile = (blob, type, customName) =>
|
|
15
|
+
new File([blob], customName || blob.data?.name || blob.name || 'archivo', { type });
|
|
15
16
|
|
|
16
17
|
// We use the XMLHttpRequest API since the fetch API does not behave correctly under new sdks on Android
|
|
17
18
|
export const uriToBlob = uri => {
|
package/package.json
CHANGED