@react-native-ohos/react-native-image-crop-picker 0.51.2-rc.1 → 0.51.2-rc.2

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
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## 鸿蒙化Log
4
4
 
5
+ ### v0.51.2-rc.2
6
+
7
+ - fix: When canceling the photo selection, do not display an error prompt on the interface.
8
+ - pre-release: @react-native-ohos/react-native-image-crop-picker@0.51.2-rc.2
9
+
5
10
  ### v0.51.2-rc.1
6
11
 
7
12
  - feat: Updated the synchronization community to version 0.51.1, and modified and added attributes of third-party library components.
@@ -3,7 +3,7 @@
3
3
  "description": "Please describe the basic information.",
4
4
  "main": "index.ets",
5
5
  "type": "module",
6
- "version": "0.51.2-rc.1",
6
+ "version": "0.51.2-rc.2",
7
7
  "dependencies": {
8
8
  "@rnoh/react-native-openharmony": "file:../../node_modules/@react-native-oh/react-native-harmony/harmony/react_native_openharmony.har"
9
9
  },
@@ -356,9 +356,8 @@ export class ImageCropPickerTurboModule extends TurboModule implements ImageCrop
356
356
 
357
357
  return this.getPickerResult(options, sourceFilePaths, tempFilePaths);
358
358
  } catch (error) {
359
- Logger.error(`${TAG} PhotoViewPicker failed err: ${JSON.stringify(error)}`);
360
359
  return new Promise(async (res, rej) => {
361
- rej('PhotoViewPicker is failed')
360
+ Logger.error(`${TAG} PhotoViewPicker failed err: ${JSON.stringify(error)}`);
362
361
  })
363
362
  }
364
363
  }
@@ -942,7 +941,6 @@ export class ImageCropPickerTurboModule extends TurboModule implements ImageCrop
942
941
  AppStorage.setOrCreate('showCropFrame', showCropFrame);
943
942
  AppStorage.setOrCreate('freeStyleCropEnabled', freeStyleCropEnabled);
944
943
  AppStorage.setOrCreate('cropperCircleOverlay', cropperCircleOverlay);
945
-
946
944
  try {
947
945
  let want: Want = {
948
946
  "bundleName": bundleName,
@@ -5,7 +5,7 @@
5
5
  export namespace ImageCropPicker {
6
6
  export const NAME = 'ImageCropPicker' as const
7
7
 
8
- export type CropperOptions = {multiple?: boolean, minFiles?: number, maxFiles?: number, waitAnimationEnd?: boolean, smartAlbums?: unknown[], useFrontCamera?: boolean, loadingLabelText?: string, showsSelectedCount?: boolean, sortOrder?: string, hideBottomControls?: boolean, writeTempFile?: boolean, mediaType: string, width?: number, height?: number, includeBase64?: boolean, includeExif?: boolean, forceJpg?: boolean, cropping?: boolean, avoidEmptySpaceAroundImage?: boolean, cropperActiveWidgetColor?: string, cropperStatusBarLight?: boolean, cropperNavigationBarLight?: boolean, cropperToolbarColor?: string, cropperToolbarWidgetColor?: string, cropperToolbarTitle?: string, freeStyleCropEnabled?: boolean, cropperTintColor?: string, cropperCircleOverlay?: boolean, cropperCancelText?: string, cropperCancelColor?: string, cropperChooseText?: string, cropperChooseColor?: string, cropperRotateButtonHidden?: boolean, showCropGuidelines?: boolean, showCropFrame?: boolean, enableRotationGesture?: boolean, disableCropperColorSetters?: boolean, compressImageMaxWidth?: number, compressImageMaxHeight?: number, compressImageQuality?: number, path: string}
8
+ export type CropperOptions = {multiple?: boolean, minFiles?: number, maxFiles?: number, waitAnimationEnd?: boolean, smartAlbums?: unknown[], useFrontCamera?: boolean, loadingLabelText?: string, showsSelectedCount?: boolean, sortOrder?: string, hideBottomControls?: boolean, writeTempFile?: boolean, mediaType: string, width?: number, height?: number, includeBase64?: boolean, includeExif?: boolean, forceJpg?: boolean, cropping?: boolean, avoidEmptySpaceAroundImage?: boolean, cropperActiveWidgetColor?: string, cropperStatusBarColor?: string, cropperToolbarColor?: string, cropperToolbarWidgetColor?: string, cropperToolbarTitle?: string, freeStyleCropEnabled?: boolean, cropperTintColor?: string, cropperCircleOverlay?: boolean, cropperCancelText?: string, cropperCancelColor?: string, cropperChooseText?: string, cropperChooseColor?: string, cropperRotateButtonHidden?: boolean, showCropGuidelines?: boolean, showCropFrame?: boolean, enableRotationGesture?: boolean, disableCropperColorSetters?: boolean, compressImageMaxWidth?: number, compressImageMaxHeight?: number, compressImageQuality?: number, path: string}
9
9
 
10
10
  export type Exif = {}
11
11
 
Binary file
package/index.d.ts CHANGED
@@ -222,20 +222,12 @@ declare module "react-native-image-crop-picker" {
222
222
  cropperActiveWidgetColor?: string;
223
223
 
224
224
  /**
225
- * When cropping image, true for light status bar (dark icons), false for dark status bar (light icons).
225
+ * When cropping image, determines the color of StatusBar.
226
226
  *
227
227
  * @platform Android only
228
- * @default true
229
- */
230
- cropperStatusBarLight?: boolean;
231
-
232
- /**
233
- * When cropping image, true for light navigation bar (dark icons), false for dark navigation bar (light icons).
234
- *
235
- * @platform Android only
236
- * @default false
228
+ * @default '#424242'
237
229
  */
238
- cropperNavigationBarLight?: boolean;
230
+ cropperStatusBarColor?: string;
239
231
 
240
232
  /**
241
233
  * When cropping image, determines the color of Toolbar.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-image-crop-picker",
3
- "version": "0.51.2-rc.1",
3
+ "version": "0.51.2-rc.2",
4
4
  "description": "Select single or multiple images, with cropping option",
5
5
  "main": "js/index.js",
6
6
  "scripts": {
@@ -34,7 +34,7 @@
34
34
  "react-native-image-crop-picker": "^0.51.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@react-native-oh/react-native-harmony-cli": "file:./packages/react-native-oh-react-native-harmony-cli-0.82.1.tgz"
37
+ "@react-native-oh/react-native-harmony-cli": "file:./packages/rnoh-react-native-harmony-cli-0.82.1.tgz"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "*",