Skip to content

Commit 4753e30

Browse files
committed
Add version 2.16.1
1 parent 8bf294f commit 4753e30

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [2.16.1]
2+
3+
### Fixed
4+
5+
* [react-native-videoeditorsdk] Fixed error when cancelling the editor.
6+
* [react-native-videoeditorsdk] Fixed missing export of `VideoSegment` type.
7+
* [react-native-videoeditorsdk] Fixed wrong types for `VESDK.openEditor`.
8+
19
## [2.16.0]
210

311
### Added

index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare class VESDK {
6060
* @note Remote resources are not optimized and therefore should be downloaded
6161
* in advance and then passed to the editor as local resources.
6262
*
63-
* @param {AssetURI | [AssetURI] | [VideoSegment] | {uri: string}} video The source of the video to be edited.
63+
* @param {AssetURI | AssetURI[] | VideoSegment[] | {uri: string}} video The source of the video to be edited.
6464
* Can be either a URI, an object with a member `uri`, or an asset reference
6565
* which can be optained by, e.g., `require('./video.mp4')` as `number`.
6666
*
@@ -78,7 +78,7 @@ declare class VESDK {
7878
* is dismissed without exporting the edited video.
7979
*/
8080
static openEditor(
81-
video: AssetURI | [AssetURI] | [VideoSegment] | { uri: string },
81+
video: AssetURI | AssetURI[] | VideoSegment[] | { uri: string },
8282
configuration?: Configuration,
8383
serialization?: object,
8484
videoSize?: Size
@@ -183,5 +183,5 @@ declare class VideoEditorModal extends Component<
183183
> {}
184184

185185
export * from "./configuration";
186-
export { VESDK, VideoEditorModal };
186+
export { VESDK, VideoEditorModal, VideoSegment };
187187

index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class VESDK {
123123
* @note Remote resources are not optimized and therefore should be downloaded
124124
* in advance and then passed to the editor as local resources.
125125
*
126-
* @param {AssetURI | [AssetURI] | [VideoSegment] | {uri: string}} video The source of the video to be edited.
126+
* @param {AssetURI | AssetURI[] | VideoSegment[] | {uri: string}} video The source of the video to be edited.
127127
* Can be either a URI, an object with a member `uri`, or an asset reference
128128
* which can be optained by, e.g., `require('./video.mp4')` as `number`.
129129
*
@@ -174,9 +174,9 @@ class VESDK {
174174
source = resolveStaticAsset(video, isAndroid);
175175
result = await RNVideoEditorSDK.present(source, configuration, resolvedSerialization);
176176
}
177-
const resolvedResult = {...result}
178-
179-
if (configuration.export.video.segments == true) {
177+
if (result == null) return null;
178+
const resolvedResult = {...result};
179+
if (configuration?.export?.video?.segments == true) {
180180
const release = () => {
181181
if (isAndroid) {
182182
return RNVideoEditorSDK.releaseTemporaryData(result.identifier);

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-videoeditorsdk",
33
"title": "React Native module for VideoEditor SDK",
4-
"version": "2.16.0",
4+
"version": "2.16.1",
55
"description": "A React Native module for VideoEditor SDK. Integrate the video editor into your own HTML5, iOS or Android app - in minutes!",
66
"main": "index.js",
77
"typings": "index.d.ts",
@@ -35,6 +35,6 @@
3535
"react-native": ">=0.60.0 <1.0.x"
3636
},
3737
"dependencies": {
38-
"react-native-imglysdk": "2.16.0"
38+
"react-native-imglysdk": "2.16.1"
3939
}
4040
}

0 commit comments

Comments
 (0)