@nicorp/nui 0.11.0 → 0.11.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.
package/dist/index.d.ts CHANGED
@@ -123,7 +123,7 @@ export declare const audioPlayerVariants: (props?: ({
123
123
  size?: "default" | "sm" | "lg" | null | undefined;
124
124
  } & ClassProp) | undefined) => string;
125
125
 
126
- export declare function AudioPlaylist({ tracks, showWaveform, defaultRepeatMode, defaultShuffle, autoPlay, onTrackChange, onPlayStateChange, className, }: AudioPlaylistProps): JSX_2.Element | null;
126
+ export declare function AudioPlaylist({ tracks, showWaveform, defaultRepeatMode, defaultShuffle, autoPlay, onTrackChange, onPlayStateChange, className, }: AudioPlaylistProps): JSX_2.Element;
127
127
 
128
128
  export declare interface AudioPlaylistProps {
129
129
  tracks: AudioTrack[];
@@ -1053,7 +1053,7 @@ export declare interface ImageCompareProps extends React_2.HTMLAttributes<HTMLDi
1053
1053
  onPositionChange?: (position: number) => void;
1054
1054
  }
1055
1055
 
1056
- export declare function ImageCropper({ src, aspectRatio, minSize, maxSize, initialCrop, outputFormat, outputQuality, onCropComplete, onCropChange, showGrid, circular, className, }: ImageCropperProps): JSX_2.Element;
1056
+ export declare function ImageCropper({ src, aspectRatio, minSize, maxSize, initialCrop, outputFormat, outputQuality, onCropComplete, onCropChange, onError, showGrid, circular, className, }: ImageCropperProps): JSX_2.Element;
1057
1057
 
1058
1058
  export declare interface ImageCropperProps {
1059
1059
  src: string;
@@ -1065,6 +1065,7 @@ export declare interface ImageCropperProps {
1065
1065
  outputQuality?: number;
1066
1066
  onCropComplete?: (blob: Blob, dataUrl: string) => void;
1067
1067
  onCropChange?: (crop: CropArea) => void;
1068
+ onError?: (error: Error) => void;
1068
1069
  showGrid?: boolean;
1069
1070
  circular?: boolean;
1070
1071
  className?: string;
@@ -1363,6 +1364,7 @@ export declare interface NUILocale {
1363
1364
  audioPlayer_unmute: string;
1364
1365
  audioPlayer_seek: string;
1365
1366
  audioPlayer_volume: string;
1367
+ audioPlayer_error: string;
1366
1368
  audioRecorder_startRecording: string;
1367
1369
  audioRecorder_stopRecording: string;
1368
1370
  audioRecorder_pauseRecording: string;
@@ -1370,6 +1372,7 @@ export declare interface NUILocale {
1370
1372
  audioRecorder_reRecord: string;
1371
1373
  audioRecorder_microphoneAccess: string;
1372
1374
  audioWaveform_label: string;
1375
+ audioWaveform_error: string;
1373
1376
  audioPlaylist_shuffle: string;
1374
1377
  audioPlaylist_repeatOff: string;
1375
1378
  audioPlaylist_repeatAll: string;
@@ -1378,6 +1381,7 @@ export declare interface NUILocale {
1378
1381
  audioPlaylist_nextTrack: string;
1379
1382
  /** Use {current} and {total} placeholders */
1380
1383
  audioPlaylist_trackOf: string;
1384
+ audioPlaylist_empty: string;
1381
1385
  videoPlayer_play: string;
1382
1386
  videoPlayer_pause: string;
1383
1387
  videoPlayer_mute: string;
@@ -1413,6 +1417,7 @@ export declare interface NUILocale {
1413
1417
  imageCropper_label: string;
1414
1418
  imageCropper_crop: string;
1415
1419
  imageCropper_reset: string;
1420
+ imageCropper_cropFailed: string;
1416
1421
  imageCompare_slider: string;
1417
1422
  imageCompare_before: string;
1418
1423
  imageCompare_after: string;