react-native-ensys-camera-x 1.0.7
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/CustomCamera.podspec +20 -0
- package/LICENSE +20 -0
- package/README.md +833 -0
- package/android/build.gradle +135 -0
- package/android/consumer-rules.pro +47 -0
- package/android/src/main/AndroidManifest.xml +72 -0
- package/android/src/main/java/android/print/PdfPrint.java +51 -0
- package/android/src/main/java/com/customcamera/AnimatedImageViewManager.kt +199 -0
- package/android/src/main/java/com/customcamera/AudioPlayerView.kt +322 -0
- package/android/src/main/java/com/customcamera/AudioRecorder.kt +506 -0
- package/android/src/main/java/com/customcamera/BarcodeScannerActivity.kt +361 -0
- package/android/src/main/java/com/customcamera/BlurBackgroundView.kt +199 -0
- package/android/src/main/java/com/customcamera/CacheCleanupManager.kt +386 -0
- package/android/src/main/java/com/customcamera/CameraAspectRatioMode.kt +77 -0
- package/android/src/main/java/com/customcamera/CameraAsset.kt +211 -0
- package/android/src/main/java/com/customcamera/CameraTheme.kt +479 -0
- package/android/src/main/java/com/customcamera/CompressionCacheStore.kt +504 -0
- package/android/src/main/java/com/customcamera/CompressionFileNameUtils.kt +7 -0
- package/android/src/main/java/com/customcamera/CompressionProfile.kt +195 -0
- package/android/src/main/java/com/customcamera/CustomCameraActivity.kt +7291 -0
- package/android/src/main/java/com/customcamera/CustomCameraFileProvider.kt +9 -0
- package/android/src/main/java/com/customcamera/CustomCameraModule.kt +2479 -0
- package/android/src/main/java/com/customcamera/CustomCameraPackage.kt +53 -0
- package/android/src/main/java/com/customcamera/DisplayUtils.kt +9 -0
- package/android/src/main/java/com/customcamera/DocumentPreviewView.kt +846 -0
- package/android/src/main/java/com/customcamera/DrawingView.kt +214 -0
- package/android/src/main/java/com/customcamera/EmojiPickerData.kt +228 -0
- package/android/src/main/java/com/customcamera/FilterStripAdapter.kt +158 -0
- package/android/src/main/java/com/customcamera/GifSupport.kt +215 -0
- package/android/src/main/java/com/customcamera/GlobalAudioPlayer.kt +320 -0
- package/android/src/main/java/com/customcamera/ImageExporter.kt +1394 -0
- package/android/src/main/java/com/customcamera/ImageFormatSupport.kt +163 -0
- package/android/src/main/java/com/customcamera/Localization.kt +206 -0
- package/android/src/main/java/com/customcamera/MediaAdapters.kt +758 -0
- package/android/src/main/java/com/customcamera/MediaCacheManager.kt +782 -0
- package/android/src/main/java/com/customcamera/MediaExportFormats.kt +201 -0
- package/android/src/main/java/com/customcamera/MediaFileIo.kt +310 -0
- package/android/src/main/java/com/customcamera/MediaMetadataStore.kt +494 -0
- package/android/src/main/java/com/customcamera/MediaPreviewEditor.kt +14865 -0
- package/android/src/main/java/com/customcamera/MediaPublisher.kt +423 -0
- package/android/src/main/java/com/customcamera/MediaStorageWorkflow.kt +722 -0
- package/android/src/main/java/com/customcamera/MediaStoreRepository.kt +378 -0
- package/android/src/main/java/com/customcamera/MediaThumbnailView.kt +286 -0
- package/android/src/main/java/com/customcamera/MediaUtils.kt +37 -0
- package/android/src/main/java/com/customcamera/NativeVideoViewManager.kt +845 -0
- package/android/src/main/java/com/customcamera/OfficeDocumentConverter.kt +2791 -0
- package/android/src/main/java/com/customcamera/PendingCaptureCrops.kt +88 -0
- package/android/src/main/java/com/customcamera/PowerPointPreview.kt +4077 -0
- package/android/src/main/java/com/customcamera/RecentPickerStore.kt +74 -0
- package/android/src/main/java/com/customcamera/SecureFileEraser.kt +411 -0
- package/android/src/main/java/com/customcamera/SecureKeyModule.kt +88 -0
- package/android/src/main/java/com/customcamera/SecureMediaDeleter.kt +493 -0
- package/android/src/main/java/com/customcamera/StickerPickerData.kt +107 -0
- package/android/src/main/java/com/customcamera/SvgDrawable.kt +175 -0
- package/android/src/main/java/com/customcamera/SvgIconViewManager.kt +77 -0
- package/android/src/main/java/com/customcamera/TextEntryController.kt +553 -0
- package/android/src/main/java/com/customcamera/ThumbnailLoader.kt +455 -0
- package/android/src/main/java/com/customcamera/UploadService.kt +909 -0
- package/android/src/main/java/com/customcamera/VideoEditUtils.kt +210 -0
- package/android/src/main/java/com/customcamera/VideoRotationTranscoder.kt +1992 -0
- package/android/src/main/java/com/customcamera/gif/AnimatedGifEncoder.kt +473 -0
- package/android/src/main/java/com/customcamera/gif/GifDecoder.kt +690 -0
- package/android/src/main/java/com/customcamera/gif/GifFramesDrawable.kt +160 -0
- package/android/src/main/java/com/customcamera/gif/GifHttp.kt +112 -0
- package/android/src/main/java/com/customcamera/gif/GifImageLoader.kt +186 -0
- package/android/src/main/java/com/customcamera/gif/GifModels.kt +74 -0
- package/android/src/main/java/com/customcamera/gif/GifProvider.kt +49 -0
- package/android/src/main/java/com/customcamera/gif/GifProviders.kt +27 -0
- package/android/src/main/java/com/customcamera/gif/GifRepository.kt +124 -0
- package/android/src/main/java/com/customcamera/gif/GifSafety.kt +33 -0
- package/android/src/main/java/com/customcamera/gif/GiphyGifProvider.kt +146 -0
- package/android/src/main/java/com/customcamera/gif/LZWEncoder.kt +258 -0
- package/android/src/main/java/com/customcamera/gif/NeuQuant.kt +435 -0
- package/android/src/main/java/com/customcamera/gif/TenorGifProvider.kt +147 -0
- package/android/src/main/res/drawable/bg_brush_selected.xml +5 -0
- package/android/src/main/res/drawable/bg_color_swatch.xml +5 -0
- package/android/src/main/res/drawable/bg_editor_toolbar.xml +6 -0
- package/android/src/main/res/drawable/bg_icon_circle.xml +5 -0
- package/android/src/main/res/drawable/bg_icon_circle_light.xml +5 -0
- package/android/src/main/res/drawable/bg_mode_tab_active.xml +6 -0
- package/android/src/main/res/drawable/bg_pill.xml +6 -0
- package/android/src/main/res/drawable/bg_recording_dot.xml +6 -0
- package/android/src/main/res/drawable/bg_selection_badge.xml +8 -0
- package/android/src/main/res/drawable/bg_send_button.xml +5 -0
- package/android/src/main/res/drawable/bg_shutter_inner.xml +5 -0
- package/android/src/main/res/drawable/bg_shutter_recording.xml +6 -0
- package/android/src/main/res/drawable/bg_shutter_ring.xml +8 -0
- package/android/src/main/res/drawable/bg_shutter_video_idle.xml +5 -0
- package/android/src/main/res/drawable/bg_thumbnail.xml +9 -0
- package/android/src/main/res/drawable/ic_aspect_ratio.xml +17 -0
- package/android/src/main/res/drawable/ic_audio.xml +10 -0
- package/android/src/main/res/drawable/ic_back.xml +10 -0
- package/android/src/main/res/drawable/ic_brush_medium.xml +12 -0
- package/android/src/main/res/drawable/ic_brush_thick.xml +12 -0
- package/android/src/main/res/drawable/ic_brush_thin.xml +12 -0
- package/android/src/main/res/drawable/ic_check.xml +17 -0
- package/android/src/main/res/drawable/ic_chevron_down.xml +10 -0
- package/android/src/main/res/drawable/ic_chevron_up.xml +13 -0
- package/android/src/main/res/drawable/ic_clear_drawing.xml +10 -0
- package/android/src/main/res/drawable/ic_close.xml +10 -0
- package/android/src/main/res/drawable/ic_cover.xml +9 -0
- package/android/src/main/res/drawable/ic_crop.xml +10 -0
- package/android/src/main/res/drawable/ic_delete.xml +9 -0
- package/android/src/main/res/drawable/ic_document.xml +10 -0
- package/android/src/main/res/drawable/ic_done.xml +10 -0
- package/android/src/main/res/drawable/ic_download.xml +10 -0
- package/android/src/main/res/drawable/ic_emoji.xml +10 -0
- package/android/src/main/res/drawable/ic_filter.xml +10 -0
- package/android/src/main/res/drawable/ic_flash_auto.xml +7 -0
- package/android/src/main/res/drawable/ic_flash_off.xml +23 -0
- package/android/src/main/res/drawable/ic_flash_on.xml +16 -0
- package/android/src/main/res/drawable/ic_flip.xml +15 -0
- package/android/src/main/res/drawable/ic_gallery.xml +10 -0
- package/android/src/main/res/drawable/ic_gif.xml +24 -0
- package/android/src/main/res/drawable/ic_lock.xml +19 -0
- package/android/src/main/res/drawable/ic_lock_open.xml +22 -0
- package/android/src/main/res/drawable/ic_marker.xml +10 -0
- package/android/src/main/res/drawable/ic_more_vert.xml +18 -0
- package/android/src/main/res/drawable/ic_overlay_close.xml +19 -0
- package/android/src/main/res/drawable/ic_overlay_resize.xml +18 -0
- package/android/src/main/res/drawable/ic_pause.xml +10 -0
- package/android/src/main/res/drawable/ic_photo_mode.xml +10 -0
- package/android/src/main/res/drawable/ic_play.xml +10 -0
- package/android/src/main/res/drawable/ic_redo.xml +10 -0
- package/android/src/main/res/drawable/ic_rotate.xml +9 -0
- package/android/src/main/res/drawable/ic_send.xml +10 -0
- package/android/src/main/res/drawable/ic_share.xml +10 -0
- package/android/src/main/res/drawable/ic_stat_upload.xml +10 -0
- package/android/src/main/res/drawable/ic_sticker.xml +24 -0
- package/android/src/main/res/drawable/ic_text.xml +10 -0
- package/android/src/main/res/drawable/ic_text_align_center.xml +11 -0
- package/android/src/main/res/drawable/ic_text_align_left.xml +11 -0
- package/android/src/main/res/drawable/ic_text_align_right.xml +11 -0
- package/android/src/main/res/drawable/ic_text_bg.xml +11 -0
- package/android/src/main/res/drawable/ic_trim.xml +23 -0
- package/android/src/main/res/drawable/ic_undo.xml +10 -0
- package/android/src/main/res/drawable/ic_video_mode.xml +10 -0
- package/android/src/main/res/drawable/ic_video_note.xml +13 -0
- package/android/src/main/res/drawable/ic_volume_off.xml +9 -0
- package/android/src/main/res/drawable/ic_volume_on.xml +9 -0
- package/android/src/main/res/drawable/sticker_heart.xml +9 -0
- package/android/src/main/res/drawable/sticker_smile.xml +9 -0
- package/android/src/main/res/drawable/sticker_star.xml +9 -0
- package/android/src/main/res/drawable/sticker_thumbsup.xml +9 -0
- package/android/src/main/res/values/colors.xml +34 -0
- package/android/src/main/res/values/ids.xml +15 -0
- package/android/src/main/res/values/strings.xml +15 -0
- package/android/src/main/res/values/styles.xml +20 -0
- package/android/src/main/res/xml/file_paths.xml +34 -0
- package/ios/CustomCamera.h +5 -0
- package/ios/CustomCamera.mm +214 -0
- package/lib/module/AudioPlayerContext.js +233 -0
- package/lib/module/AudioPlayerContext.js.map +1 -0
- package/lib/module/CameraPreview.js +304 -0
- package/lib/module/CameraPreview.js.map +1 -0
- package/lib/module/NativeAnimatedImageView.js +41 -0
- package/lib/module/NativeAnimatedImageView.js.map +1 -0
- package/lib/module/NativeAudioPlayerView.js +33 -0
- package/lib/module/NativeAudioPlayerView.js.map +1 -0
- package/lib/module/NativeBlurView.js +35 -0
- package/lib/module/NativeBlurView.js.map +1 -0
- package/lib/module/NativeCustomCamera.js +128 -0
- package/lib/module/NativeCustomCamera.js.map +1 -0
- package/lib/module/NativeCustomCamera.web.js +143 -0
- package/lib/module/NativeCustomCamera.web.js.map +1 -0
- package/lib/module/NativeCustomVideoView.js +5 -0
- package/lib/module/NativeCustomVideoView.js.map +1 -0
- package/lib/module/NativeDocumentPreviewView.js +156 -0
- package/lib/module/NativeDocumentPreviewView.js.map +1 -0
- package/lib/module/NativeMediaThumbnailView.js +110 -0
- package/lib/module/NativeMediaThumbnailView.js.map +1 -0
- package/lib/module/NativeSvgIcon.js +32 -0
- package/lib/module/NativeSvgIcon.js.map +1 -0
- package/lib/module/ResponsivePreviewContainer.js +171 -0
- package/lib/module/ResponsivePreviewContainer.js.map +1 -0
- package/lib/module/accessibility.js +61 -0
- package/lib/module/accessibility.js.map +1 -0
- package/lib/module/config.js +352 -0
- package/lib/module/config.js.map +1 -0
- package/lib/module/cpuOptimization.js +296 -0
- package/lib/module/cpuOptimization.js.map +1 -0
- package/lib/module/db/DatabaseManager.js +191 -0
- package/lib/module/db/DatabaseManager.js.map +1 -0
- package/lib/module/db/MediaMapper.js +284 -0
- package/lib/module/db/MediaMapper.js.map +1 -0
- package/lib/module/db/MediaRepository.js +242 -0
- package/lib/module/db/MediaRepository.js.map +1 -0
- package/lib/module/db/index.js +41 -0
- package/lib/module/db/index.js.map +1 -0
- package/lib/module/db/migrations.js +180 -0
- package/lib/module/db/migrations.js.map +1 -0
- package/lib/module/db/react-native-sqlcipher.d.js +2 -0
- package/lib/module/db/react-native-sqlcipher.d.js.map +1 -0
- package/lib/module/db/secureKey.js +87 -0
- package/lib/module/db/secureKey.js.map +1 -0
- package/lib/module/db/types.js +57 -0
- package/lib/module/db/types.js.map +1 -0
- package/lib/module/db/useMediaDatabase.js +123 -0
- package/lib/module/db/useMediaDatabase.js.map +1 -0
- package/lib/module/defaultIcons.js +2259 -0
- package/lib/module/defaultIcons.js.map +1 -0
- package/lib/module/deviceCapabilities.js +408 -0
- package/lib/module/deviceCapabilities.js.map +1 -0
- package/lib/module/errors.js +267 -0
- package/lib/module/errors.js.map +1 -0
- package/lib/module/iconConfig.js +796 -0
- package/lib/module/iconConfig.js.map +1 -0
- package/lib/module/icons.js +514 -0
- package/lib/module/icons.js.map +1 -0
- package/lib/module/index.js +251 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/jest-globals.d.js +2 -0
- package/lib/module/jest-globals.d.js.map +1 -0
- package/lib/module/library/MediaLibrary.js +107 -0
- package/lib/module/library/MediaLibrary.js.map +1 -0
- package/lib/module/library/MediaLibraryScreen.js +2597 -0
- package/lib/module/library/MediaLibraryScreen.js.map +1 -0
- package/lib/module/library/components/AudioPreview.js +74 -0
- package/lib/module/library/components/AudioPreview.js.map +1 -0
- package/lib/module/library/components/DocumentPreview.js +331 -0
- package/lib/module/library/components/DocumentPreview.js.map +1 -0
- package/lib/module/library/components/ExpandableFab.js +343 -0
- package/lib/module/library/components/ExpandableFab.js.map +1 -0
- package/lib/module/library/components/FileTiles.js +251 -0
- package/lib/module/library/components/FileTiles.js.map +1 -0
- package/lib/module/library/components/ImagePreview.js +70 -0
- package/lib/module/library/components/ImagePreview.js.map +1 -0
- package/lib/module/library/components/MediaMetadataHeader.js +175 -0
- package/lib/module/library/components/MediaMetadataHeader.js.map +1 -0
- package/lib/module/library/components/RecordAudioScreen.js +816 -0
- package/lib/module/library/components/RecordAudioScreen.js.map +1 -0
- package/lib/module/library/components/VideoPreview.js +453 -0
- package/lib/module/library/components/VideoPreview.js.map +1 -0
- package/lib/module/library/components/ViewerCounter.js +55 -0
- package/lib/module/library/components/ViewerCounter.js.map +1 -0
- package/lib/module/library/compressionEstimate.js +507 -0
- package/lib/module/library/compressionEstimate.js.map +1 -0
- package/lib/module/library/fileMetadata.js +196 -0
- package/lib/module/library/fileMetadata.js.map +1 -0
- package/lib/module/library/index.js +42 -0
- package/lib/module/library/index.js.map +1 -0
- package/lib/module/library/libraryIconRegistry.js +69 -0
- package/lib/module/library/libraryIconRegistry.js.map +1 -0
- package/lib/module/library/libraryIcons.js +858 -0
- package/lib/module/library/libraryIcons.js.map +1 -0
- package/lib/module/library/localizedFormat.js +181 -0
- package/lib/module/library/localizedFormat.js.map +1 -0
- package/lib/module/library/palette.js +225 -0
- package/lib/module/library/palette.js.map +1 -0
- package/lib/module/library/responsive.js +53 -0
- package/lib/module/library/responsive.js.map +1 -0
- package/lib/module/locales.js +416 -0
- package/lib/module/locales.js.map +1 -0
- package/lib/module/localization.js +1064 -0
- package/lib/module/localization.js.map +1 -0
- package/lib/module/logger.js +20 -0
- package/lib/module/logger.js.map +1 -0
- package/lib/module/lowMemoryCache.js +206 -0
- package/lib/module/lowMemoryCache.js.map +1 -0
- package/lib/module/mediaHistory.js +33 -0
- package/lib/module/mediaHistory.js.map +1 -0
- package/lib/module/mediaStorageService.js +402 -0
- package/lib/module/mediaStorageService.js.map +1 -0
- package/lib/module/memory.js +79 -0
- package/lib/module/memory.js.map +1 -0
- package/lib/module/nativeActions.js +307 -0
- package/lib/module/nativeActions.js.map +1 -0
- package/lib/module/nativeComponentSupport.js +61 -0
- package/lib/module/nativeComponentSupport.js.map +1 -0
- package/lib/module/networkPerformance.js +24 -0
- package/lib/module/networkPerformance.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/performance.js +104 -0
- package/lib/module/performance.js.map +1 -0
- package/lib/module/performanceMonitor.js +155 -0
- package/lib/module/performanceMonitor.js.map +1 -0
- package/lib/module/permissions.js +370 -0
- package/lib/module/permissions.js.map +1 -0
- package/lib/module/rendering.js +40 -0
- package/lib/module/rendering.js.map +1 -0
- package/lib/module/security.js +18 -0
- package/lib/module/security.js.map +1 -0
- package/lib/module/state.js +266 -0
- package/lib/module/state.js.map +1 -0
- package/lib/module/storage.js +400 -0
- package/lib/module/storage.js.map +1 -0
- package/lib/module/theme.js +390 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils.js +115 -0
- package/lib/module/utils.js.map +1 -0
- package/lib/module/validation.js +288 -0
- package/lib/module/validation.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/AudioPlayerContext.d.ts +27 -0
- package/lib/typescript/src/AudioPlayerContext.d.ts.map +1 -0
- package/lib/typescript/src/CameraPreview.d.ts +13 -0
- package/lib/typescript/src/CameraPreview.d.ts.map +1 -0
- package/lib/typescript/src/NativeAnimatedImageView.d.ts +33 -0
- package/lib/typescript/src/NativeAnimatedImageView.d.ts.map +1 -0
- package/lib/typescript/src/NativeAudioPlayerView.d.ts +12 -0
- package/lib/typescript/src/NativeAudioPlayerView.d.ts.map +1 -0
- package/lib/typescript/src/NativeBlurView.d.ts +12 -0
- package/lib/typescript/src/NativeBlurView.d.ts.map +1 -0
- package/lib/typescript/src/NativeCustomCamera.d.ts +167 -0
- package/lib/typescript/src/NativeCustomCamera.d.ts.map +1 -0
- package/lib/typescript/src/NativeCustomCamera.web.d.ts +47 -0
- package/lib/typescript/src/NativeCustomCamera.web.d.ts.map +1 -0
- package/lib/typescript/src/NativeCustomVideoView.d.ts +30 -0
- package/lib/typescript/src/NativeCustomVideoView.d.ts.map +1 -0
- package/lib/typescript/src/NativeDocumentPreviewView.d.ts +48 -0
- package/lib/typescript/src/NativeDocumentPreviewView.d.ts.map +1 -0
- package/lib/typescript/src/NativeMediaThumbnailView.d.ts +54 -0
- package/lib/typescript/src/NativeMediaThumbnailView.d.ts.map +1 -0
- package/lib/typescript/src/NativeSvgIcon.d.ts +25 -0
- package/lib/typescript/src/NativeSvgIcon.d.ts.map +1 -0
- package/lib/typescript/src/ResponsivePreviewContainer.d.ts +92 -0
- package/lib/typescript/src/ResponsivePreviewContainer.d.ts.map +1 -0
- package/lib/typescript/src/accessibility.d.ts +20 -0
- package/lib/typescript/src/accessibility.d.ts.map +1 -0
- package/lib/typescript/src/config.d.ts +145 -0
- package/lib/typescript/src/config.d.ts.map +1 -0
- package/lib/typescript/src/cpuOptimization.d.ts +63 -0
- package/lib/typescript/src/cpuOptimization.d.ts.map +1 -0
- package/lib/typescript/src/db/DatabaseManager.d.ts +48 -0
- package/lib/typescript/src/db/DatabaseManager.d.ts.map +1 -0
- package/lib/typescript/src/db/MediaMapper.d.ts +77 -0
- package/lib/typescript/src/db/MediaMapper.d.ts.map +1 -0
- package/lib/typescript/src/db/MediaRepository.d.ts +66 -0
- package/lib/typescript/src/db/MediaRepository.d.ts.map +1 -0
- package/lib/typescript/src/db/index.d.ts +23 -0
- package/lib/typescript/src/db/index.d.ts.map +1 -0
- package/lib/typescript/src/db/migrations.d.ts +31 -0
- package/lib/typescript/src/db/migrations.d.ts.map +1 -0
- package/lib/typescript/src/db/secureKey.d.ts +10 -0
- package/lib/typescript/src/db/secureKey.d.ts.map +1 -0
- package/lib/typescript/src/db/types.d.ts +115 -0
- package/lib/typescript/src/db/types.d.ts.map +1 -0
- package/lib/typescript/src/db/useMediaDatabase.d.ts +41 -0
- package/lib/typescript/src/db/useMediaDatabase.d.ts.map +1 -0
- package/lib/typescript/src/defaultIcons.d.ts +139 -0
- package/lib/typescript/src/defaultIcons.d.ts.map +1 -0
- package/lib/typescript/src/deviceCapabilities.d.ts +92 -0
- package/lib/typescript/src/deviceCapabilities.d.ts.map +1 -0
- package/lib/typescript/src/errors.d.ts +95 -0
- package/lib/typescript/src/errors.d.ts.map +1 -0
- package/lib/typescript/src/iconConfig.d.ts +176 -0
- package/lib/typescript/src/iconConfig.d.ts.map +1 -0
- package/lib/typescript/src/icons.d.ts +217 -0
- package/lib/typescript/src/icons.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +104 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/library/MediaLibrary.d.ts +57 -0
- package/lib/typescript/src/library/MediaLibrary.d.ts.map +1 -0
- package/lib/typescript/src/library/MediaLibraryScreen.d.ts +51 -0
- package/lib/typescript/src/library/MediaLibraryScreen.d.ts.map +1 -0
- package/lib/typescript/src/library/components/AudioPreview.d.ts +6 -0
- package/lib/typescript/src/library/components/AudioPreview.d.ts.map +1 -0
- package/lib/typescript/src/library/components/DocumentPreview.d.ts +10 -0
- package/lib/typescript/src/library/components/DocumentPreview.d.ts.map +1 -0
- package/lib/typescript/src/library/components/ExpandableFab.d.ts +39 -0
- package/lib/typescript/src/library/components/ExpandableFab.d.ts.map +1 -0
- package/lib/typescript/src/library/components/FileTiles.d.ts +8 -0
- package/lib/typescript/src/library/components/FileTiles.d.ts.map +1 -0
- package/lib/typescript/src/library/components/ImagePreview.d.ts +5 -0
- package/lib/typescript/src/library/components/ImagePreview.d.ts.map +1 -0
- package/lib/typescript/src/library/components/MediaMetadataHeader.d.ts +16 -0
- package/lib/typescript/src/library/components/MediaMetadataHeader.d.ts.map +1 -0
- package/lib/typescript/src/library/components/RecordAudioScreen.d.ts +8 -0
- package/lib/typescript/src/library/components/RecordAudioScreen.d.ts.map +1 -0
- package/lib/typescript/src/library/components/VideoPreview.d.ts +20 -0
- package/lib/typescript/src/library/components/VideoPreview.d.ts.map +1 -0
- package/lib/typescript/src/library/components/ViewerCounter.d.ts +13 -0
- package/lib/typescript/src/library/components/ViewerCounter.d.ts.map +1 -0
- package/lib/typescript/src/library/compressionEstimate.d.ts +313 -0
- package/lib/typescript/src/library/compressionEstimate.d.ts.map +1 -0
- package/lib/typescript/src/library/fileMetadata.d.ts +33 -0
- package/lib/typescript/src/library/fileMetadata.d.ts.map +1 -0
- package/lib/typescript/src/library/index.d.ts +40 -0
- package/lib/typescript/src/library/index.d.ts.map +1 -0
- package/lib/typescript/src/library/libraryIconRegistry.d.ts +35 -0
- package/lib/typescript/src/library/libraryIconRegistry.d.ts.map +1 -0
- package/lib/typescript/src/library/libraryIcons.d.ts +85 -0
- package/lib/typescript/src/library/libraryIcons.d.ts.map +1 -0
- package/lib/typescript/src/library/localizedFormat.d.ts +49 -0
- package/lib/typescript/src/library/localizedFormat.d.ts.map +1 -0
- package/lib/typescript/src/library/palette.d.ts +104 -0
- package/lib/typescript/src/library/palette.d.ts.map +1 -0
- package/lib/typescript/src/library/responsive.d.ts +15 -0
- package/lib/typescript/src/library/responsive.d.ts.map +1 -0
- package/lib/typescript/src/locales.d.ts +103 -0
- package/lib/typescript/src/locales.d.ts.map +1 -0
- package/lib/typescript/src/localization.d.ts +1051 -0
- package/lib/typescript/src/localization.d.ts.map +1 -0
- package/lib/typescript/src/logger.d.ts +4 -0
- package/lib/typescript/src/logger.d.ts.map +1 -0
- package/lib/typescript/src/lowMemoryCache.d.ts +64 -0
- package/lib/typescript/src/lowMemoryCache.d.ts.map +1 -0
- package/lib/typescript/src/mediaHistory.d.ts +3 -0
- package/lib/typescript/src/mediaHistory.d.ts.map +1 -0
- package/lib/typescript/src/mediaStorageService.d.ts +155 -0
- package/lib/typescript/src/mediaStorageService.d.ts.map +1 -0
- package/lib/typescript/src/memory.d.ts +21 -0
- package/lib/typescript/src/memory.d.ts.map +1 -0
- package/lib/typescript/src/nativeActions.d.ts +174 -0
- package/lib/typescript/src/nativeActions.d.ts.map +1 -0
- package/lib/typescript/src/nativeComponentSupport.d.ts +30 -0
- package/lib/typescript/src/nativeComponentSupport.d.ts.map +1 -0
- package/lib/typescript/src/networkPerformance.d.ts +12 -0
- package/lib/typescript/src/networkPerformance.d.ts.map +1 -0
- package/lib/typescript/src/performance.d.ts +32 -0
- package/lib/typescript/src/performance.d.ts.map +1 -0
- package/lib/typescript/src/performanceMonitor.d.ts +45 -0
- package/lib/typescript/src/performanceMonitor.d.ts.map +1 -0
- package/lib/typescript/src/permissions.d.ts +132 -0
- package/lib/typescript/src/permissions.d.ts.map +1 -0
- package/lib/typescript/src/rendering.d.ts +9 -0
- package/lib/typescript/src/rendering.d.ts.map +1 -0
- package/lib/typescript/src/security.d.ts +6 -0
- package/lib/typescript/src/security.d.ts.map +1 -0
- package/lib/typescript/src/state.d.ts +102 -0
- package/lib/typescript/src/state.d.ts.map +1 -0
- package/lib/typescript/src/storage.d.ts +117 -0
- package/lib/typescript/src/storage.d.ts.map +1 -0
- package/lib/typescript/src/theme.d.ts +15 -0
- package/lib/typescript/src/theme.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +802 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/utils.d.ts +50 -0
- package/lib/typescript/src/utils.d.ts.map +1 -0
- package/lib/typescript/src/validation.d.ts +52 -0
- package/lib/typescript/src/validation.d.ts.map +1 -0
- package/package.json +204 -0
- package/react-native.config.js +17 -0
- package/src/AudioPlayerContext.tsx +220 -0
- package/src/CameraPreview.tsx +352 -0
- package/src/NativeAnimatedImageView.tsx +71 -0
- package/src/NativeAudioPlayerView.tsx +39 -0
- package/src/NativeBlurView.tsx +40 -0
- package/src/NativeCustomCamera.ts +305 -0
- package/src/NativeCustomCamera.web.ts +192 -0
- package/src/NativeCustomVideoView.ts +30 -0
- package/src/NativeDocumentPreviewView.tsx +196 -0
- package/src/NativeMediaThumbnailView.tsx +167 -0
- package/src/NativeSvgIcon.tsx +46 -0
- package/src/ResponsivePreviewContainer.tsx +227 -0
- package/src/accessibility.ts +80 -0
- package/src/config.ts +406 -0
- package/src/cpuOptimization.ts +365 -0
- package/src/db/DatabaseManager.ts +212 -0
- package/src/db/MediaMapper.ts +377 -0
- package/src/db/MediaRepository.ts +313 -0
- package/src/db/index.ts +73 -0
- package/src/db/migrations.ts +222 -0
- package/src/db/react-native-sqlcipher.d.ts +76 -0
- package/src/db/secureKey.ts +100 -0
- package/src/db/types.ts +123 -0
- package/src/db/useMediaDatabase.ts +191 -0
- package/src/defaultIcons.tsx +2390 -0
- package/src/deviceCapabilities.ts +438 -0
- package/src/errors.ts +350 -0
- package/src/iconConfig.tsx +962 -0
- package/src/icons.tsx +788 -0
- package/src/index.tsx +763 -0
- package/src/jest-globals.d.ts +9 -0
- package/src/library/MediaLibrary.tsx +141 -0
- package/src/library/MediaLibraryScreen.tsx +3003 -0
- package/src/library/components/AudioPreview.tsx +73 -0
- package/src/library/components/DocumentPreview.tsx +361 -0
- package/src/library/components/ExpandableFab.tsx +342 -0
- package/src/library/components/FileTiles.tsx +252 -0
- package/src/library/components/ImagePreview.tsx +72 -0
- package/src/library/components/MediaMetadataHeader.tsx +208 -0
- package/src/library/components/RecordAudioScreen.tsx +845 -0
- package/src/library/components/VideoPreview.tsx +478 -0
- package/src/library/components/ViewerCounter.tsx +71 -0
- package/src/library/compressionEstimate.ts +662 -0
- package/src/library/fileMetadata.ts +212 -0
- package/src/library/index.ts +66 -0
- package/src/library/libraryIconRegistry.tsx +86 -0
- package/src/library/libraryIcons.tsx +928 -0
- package/src/library/localizedFormat.ts +207 -0
- package/src/library/palette.ts +281 -0
- package/src/library/responsive.ts +49 -0
- package/src/locales.ts +381 -0
- package/src/localization.ts +1947 -0
- package/src/logger.ts +20 -0
- package/src/lowMemoryCache.ts +218 -0
- package/src/mediaHistory.ts +42 -0
- package/src/mediaStorageService.ts +546 -0
- package/src/memory.ts +102 -0
- package/src/nativeActions.ts +422 -0
- package/src/nativeComponentSupport.ts +60 -0
- package/src/networkPerformance.ts +30 -0
- package/src/performance.ts +137 -0
- package/src/performanceMonitor.ts +219 -0
- package/src/permissions.ts +403 -0
- package/src/rendering.ts +47 -0
- package/src/security.ts +19 -0
- package/src/state.ts +333 -0
- package/src/storage.ts +453 -0
- package/src/theme.tsx +467 -0
- package/src/types.ts +946 -0
- package/src/utils.ts +177 -0
- package/src/validation.ts +372 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../../src/localization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAMZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzD,MAAM,WAAW,kBAAkB;IAEjC,GAAG,EAAE,MAAM,CAAC;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AAE;IAAE,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAQ7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger.ts"],"names":[],"mappings":"AAGA,wBAAgB,MAAM,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAI/C;AAED,wBAAgB,OAAO,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAIhD;AAED,wBAAgB,QAAQ,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAIjD"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Low-memory optimized cache for media operations
|
|
3
|
+
* Designed specifically for devices with 2GB-4GB RAM
|
|
4
|
+
*/
|
|
5
|
+
import type { ImageCropOptions } from './types';
|
|
6
|
+
export declare class LowMemoryCache {
|
|
7
|
+
private cache;
|
|
8
|
+
private maxSizeMb;
|
|
9
|
+
private currentSize;
|
|
10
|
+
/**
|
|
11
|
+
* Create a low-memory cache
|
|
12
|
+
* @param maxSizeMb Maximum cache size in megabytes (default: 20MB for low-end devices)
|
|
13
|
+
*/
|
|
14
|
+
constructor(maxSizeMb?: number);
|
|
15
|
+
/**
|
|
16
|
+
* Get cached value
|
|
17
|
+
*/
|
|
18
|
+
get(key: string): Promise<string | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Set cached value with size awareness
|
|
21
|
+
*/
|
|
22
|
+
set(key: string, value: string, size: number): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Estimate size of cached item (conservative estimate)
|
|
25
|
+
*/
|
|
26
|
+
private estimateSize;
|
|
27
|
+
/**
|
|
28
|
+
* Clear the entire cache
|
|
29
|
+
*/
|
|
30
|
+
clear(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Handle memory warning from system
|
|
33
|
+
* Evicts 50% of cache immediately
|
|
34
|
+
*/
|
|
35
|
+
onMemoryWarning(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Get current cache size in bytes
|
|
38
|
+
*/
|
|
39
|
+
size(): number;
|
|
40
|
+
/**
|
|
41
|
+
* Get number of items in cache
|
|
42
|
+
*/
|
|
43
|
+
count(): number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Process media with low-memory optimizations
|
|
47
|
+
*/
|
|
48
|
+
export declare function processMediaForLowEnd(uri: string, options: ImageCropOptions, isLowEndDevice?: boolean): Promise<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Memory-efficient batch processing for low-end devices
|
|
51
|
+
*/
|
|
52
|
+
export declare function processInSmallBatches<T, R>(items: T[], batchSize: number, processor: (item: T, batchIndex: number, itemIndex: number) => Promise<R>, onProgress?: (progress: number) => void, isLowEndDevice?: boolean): Promise<R[]>;
|
|
53
|
+
/**
|
|
54
|
+
* Get optimized image dimensions for low-end devices
|
|
55
|
+
*/
|
|
56
|
+
export declare function getOptimizedImageDimensions(originalWidth: number, originalHeight: number, isLowEndDevice?: boolean): {
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Check if device should use low-memory optimizations
|
|
62
|
+
*/
|
|
63
|
+
export declare function shouldUseLowMemoryOptimizations(ram: 'low' | 'medium' | 'high', processor: 'weak' | 'medium' | 'strong'): boolean;
|
|
64
|
+
//# sourceMappingURL=lowMemoryCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lowMemoryCache.d.ts","sourceRoot":"","sources":["../../../src/lowMemoryCache.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhD,qBAAa,cAAc;IACzB,OAAO,CAAC,KAAK,CAAsB;IACnC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CA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Q,GAAG,MAAM,EAC9B,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,GACtC,OAAO,CAGT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaHistory.d.ts","sourceRoot":"","sources":["../../../src/mediaHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAS3C,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,WAAW,EAAE,EAC7B,cAAc,EAAE,WAAW,EAAE,GAC5B,WAAW,EAAE,CA6Bf"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { CameraAsset } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Media Storage Service - Complete media lifecycle management
|
|
4
|
+
* Handles capture -> cache -> publish workflow with automatic cleanup
|
|
5
|
+
*/
|
|
6
|
+
export declare class MediaStorageService {
|
|
7
|
+
private storageManager;
|
|
8
|
+
private memoryManager;
|
|
9
|
+
private isInitialized;
|
|
10
|
+
/**
|
|
11
|
+
* Initialize the media storage service
|
|
12
|
+
*/
|
|
13
|
+
initialize(): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Set up periodic cleanup for Android devices
|
|
16
|
+
*/
|
|
17
|
+
private setupPeriodicCleanup;
|
|
18
|
+
/**
|
|
19
|
+
* Handle media capture - automatically stores in cache
|
|
20
|
+
*/
|
|
21
|
+
handleMediaCapture(mediaAssets: CameraAsset[], options?: {
|
|
22
|
+
autoPublish?: boolean;
|
|
23
|
+
moveMode?: boolean;
|
|
24
|
+
cleanupThresholdMB?: number;
|
|
25
|
+
}): Promise<{
|
|
26
|
+
success: boolean;
|
|
27
|
+
cachedAssets: CameraAsset[];
|
|
28
|
+
publishedAssets?: CameraAsset[];
|
|
29
|
+
error?: string;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Validate media assets before processing
|
|
33
|
+
*/
|
|
34
|
+
private validateMediaAssets;
|
|
35
|
+
/**
|
|
36
|
+
* Publish cached media to document directory
|
|
37
|
+
*/
|
|
38
|
+
publishCachedMedia(mediaIds: string[], options?: {
|
|
39
|
+
moveMode?: boolean;
|
|
40
|
+
retryFailed?: boolean;
|
|
41
|
+
}): Promise<{
|
|
42
|
+
success: boolean;
|
|
43
|
+
results: Array<{
|
|
44
|
+
mediaId: string;
|
|
45
|
+
success: boolean;
|
|
46
|
+
targetUri?: string;
|
|
47
|
+
error?: string;
|
|
48
|
+
}>;
|
|
49
|
+
totalCount: number;
|
|
50
|
+
successCount: number;
|
|
51
|
+
failureCount: number;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* Check cache size and cleanup if needed
|
|
55
|
+
*/
|
|
56
|
+
checkAndCleanupCache(thresholdMB?: number): Promise<{
|
|
57
|
+
cleanupPerformed: boolean;
|
|
58
|
+
filesRemoved?: number;
|
|
59
|
+
spaceFreedMB?: number;
|
|
60
|
+
}>;
|
|
61
|
+
/**
|
|
62
|
+
* Get all cached media with enhanced metadata
|
|
63
|
+
*/
|
|
64
|
+
getCachedMedia(): Promise<CameraAsset[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Get all published media with enhanced metadata
|
|
67
|
+
*/
|
|
68
|
+
getPublishedMedia(): Promise<CameraAsset[]>;
|
|
69
|
+
/**
|
|
70
|
+
* Enhance media metadata with additional computed properties
|
|
71
|
+
*/
|
|
72
|
+
private enhanceMediaMetadata;
|
|
73
|
+
/**
|
|
74
|
+
* Delete media from storage
|
|
75
|
+
*/
|
|
76
|
+
deleteMedia(mediaId: string): Promise<boolean>;
|
|
77
|
+
/**
|
|
78
|
+
* Get comprehensive storage statistics
|
|
79
|
+
*/
|
|
80
|
+
getStorageStatistics(): Promise<{
|
|
81
|
+
cacheUsage: {
|
|
82
|
+
count: number;
|
|
83
|
+
sizeMB: number;
|
|
84
|
+
percentageFull: number;
|
|
85
|
+
};
|
|
86
|
+
documentUsage: {
|
|
87
|
+
count: number;
|
|
88
|
+
sizeMB: number;
|
|
89
|
+
};
|
|
90
|
+
totalAvailableMB: number;
|
|
91
|
+
needsCleanup: boolean;
|
|
92
|
+
duplicatesCount: number;
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* Get failed transfer operations that can be retried
|
|
96
|
+
*/
|
|
97
|
+
getFailedTransfers(): Promise<Array<{
|
|
98
|
+
mediaId: string;
|
|
99
|
+
error: string;
|
|
100
|
+
retryCount: number;
|
|
101
|
+
originalUri?: string;
|
|
102
|
+
}>>;
|
|
103
|
+
/**
|
|
104
|
+
* Clean up the service - release resources
|
|
105
|
+
*/
|
|
106
|
+
cleanup(): void;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Get the media storage service instance
|
|
110
|
+
*/
|
|
111
|
+
export declare function getMediaStorageService(): MediaStorageService;
|
|
112
|
+
/**
|
|
113
|
+
* Quick access functions for common operations
|
|
114
|
+
*/
|
|
115
|
+
export declare function initializeMediaStorageService(): Promise<void>;
|
|
116
|
+
export declare function handleCapturedMedia(assets: CameraAsset[], options?: {
|
|
117
|
+
autoPublish?: boolean;
|
|
118
|
+
moveMode?: boolean;
|
|
119
|
+
cleanupThresholdMB?: number;
|
|
120
|
+
}): Promise<{
|
|
121
|
+
success: boolean;
|
|
122
|
+
cachedAssets: CameraAsset[];
|
|
123
|
+
publishedAssets?: CameraAsset[];
|
|
124
|
+
error?: string;
|
|
125
|
+
}>;
|
|
126
|
+
export declare function publishAllCachedMedia(options?: {
|
|
127
|
+
moveMode?: boolean;
|
|
128
|
+
retryFailed?: boolean;
|
|
129
|
+
}): Promise<{
|
|
130
|
+
success: boolean;
|
|
131
|
+
results: Array<{
|
|
132
|
+
mediaId: string;
|
|
133
|
+
success: boolean;
|
|
134
|
+
targetUri?: string;
|
|
135
|
+
error?: string;
|
|
136
|
+
}>;
|
|
137
|
+
totalCount: number;
|
|
138
|
+
successCount: number;
|
|
139
|
+
failureCount: number;
|
|
140
|
+
}>;
|
|
141
|
+
export declare function getStorageSummary(): Promise<{
|
|
142
|
+
cacheUsage: {
|
|
143
|
+
count: number;
|
|
144
|
+
sizeMB: number;
|
|
145
|
+
percentageFull: number;
|
|
146
|
+
};
|
|
147
|
+
documentUsage: {
|
|
148
|
+
count: number;
|
|
149
|
+
sizeMB: number;
|
|
150
|
+
};
|
|
151
|
+
totalAvailableMB: number;
|
|
152
|
+
needsCleanup: boolean;
|
|
153
|
+
duplicatesCount: number;
|
|
154
|
+
}>;
|
|
155
|
+
//# sourceMappingURL=mediaStorageService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaStorageService.d.ts","sourceRoot":"","sources":["../../../src/mediaStorageService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,SAAS,CAAC;AAIhE;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,cAAc,CAA4B;IAClD,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBjC;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAM5B;;OAEG;IACG,kBAAkB,CACtB,WAAW,EAAE,WAAW,EAAE,EAC1B,OAAO,GAAE;QACP,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;KACxB,GACL,OAAO,CAAC;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,YAAY,EAAE,WAAW,EAAE,CAAC;QAC5B,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;QAChC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAsFF;;OAEG;YACW,mBAAmB;IA4CjC;;OAEG;IACG,kBAAkB,CACtB,QAAQ,EAAE,MAAM,EAAE,EAClB,OAAO,GAAE;QACP,QAAQ,CAAC,EAAE,OAAO,CAAC;Q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M,CAAC;QACf,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,aAAa,EAAE;QACb,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,CAGD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class MemoryManager {
|
|
2
|
+
private readonly store;
|
|
3
|
+
private readonly maxSize;
|
|
4
|
+
private currentSize;
|
|
5
|
+
constructor(maxSizeMB?: number);
|
|
6
|
+
set(key: string, value: unknown): void;
|
|
7
|
+
get(key: string): unknown | undefined;
|
|
8
|
+
delete(key: string): void;
|
|
9
|
+
clear(): void;
|
|
10
|
+
get size(): number;
|
|
11
|
+
get capacity(): number;
|
|
12
|
+
get usageRatio(): number;
|
|
13
|
+
private estimateSize;
|
|
14
|
+
}
|
|
15
|
+
export declare class WeakCache<K extends object, V> {
|
|
16
|
+
private readonly store;
|
|
17
|
+
set(key: K, value: V): void;
|
|
18
|
+
get(key: K): V | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare function processMediaInChunksMemory<T>(items: T[], batchSize: number | undefined, processor: (chunk: T[]) => Promise<void> | void): Promise<void>;
|
|
21
|
+
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/memory.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8B;IACpD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,WAAW,CAAK;gBAEZ,SAAS,SAAK;IAI1B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAmBtC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAKrC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAQzB,KAAK,IAAI,IAAI;IAKb,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,OAAO,CAAC,YAAY;CAoBrB;AAED,qBAAa,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC;IACxC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuB;IAE7C,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAI3B,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;CAG3B;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAChD,KAAK,EAAE,CAAC,EAAE,EACV,SAAS,oBAAK,EACd,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAC9C,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { CameraAsset, CameraPickerOptions, CameraPickerResult, FilePickerOptions, GalleryEditorOptions, MediaEditorOptions, MediaMetadata, AudioRecordingOptions, AudioRecordingResult, AudioRecordingStopResult, AudioRecordingState, SecureDeleteOptions, SecureDeleteResult } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The native TurboModule, or a safe empty stand-in.
|
|
4
|
+
*
|
|
5
|
+
* Resolved lazily through `require` (not a static import) so that importing any
|
|
6
|
+
* part of this package in a plain Node/Jest environment — where the native
|
|
7
|
+
* module is absent — does not throw at module-evaluation time. Calls made
|
|
8
|
+
* against the stand-in fail individually instead of taking the whole bundle
|
|
9
|
+
* down at import.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getCustomCameraModule(): import("./NativeCustomCamera").Spec;
|
|
12
|
+
export declare function openCameraPicker(options?: CameraPickerOptions): Promise<CameraPickerResult>;
|
|
13
|
+
/**
|
|
14
|
+
* Open the native document picker (Android Storage Access Framework). Resolves with the same
|
|
15
|
+
* `{ cancelled, assets }` shape as {@link openCameraPicker}; each asset has `type: 'document'`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function openDocumentPicker(options?: FilePickerOptions): Promise<CameraPickerResult>;
|
|
18
|
+
/**
|
|
19
|
+
* Open the native audio picker (Android Storage Access Framework, scoped to `audio/*`). Resolves
|
|
20
|
+
* with the same `{ cancelled, assets }` shape as {@link openCameraPicker}; each asset has
|
|
21
|
+
* `type: 'audio'`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function openAudioPicker(options?: FilePickerOptions): Promise<CameraPickerResult>;
|
|
24
|
+
/**
|
|
25
|
+
* Open the native image/video picker (Android Storage Access Framework, scoped to `image/*` and
|
|
26
|
+
* `video/*`). Resolves with the same `{ cancelled, assets }` shape as {@link openCameraPicker};
|
|
27
|
+
* each asset has `type: 'photo'` or `type: 'video'` depending on the MIME type.
|
|
28
|
+
*/
|
|
29
|
+
export declare function openImageVideoPicker(options?: FilePickerOptions): Promise<CameraPickerResult>;
|
|
30
|
+
/**
|
|
31
|
+
* Open EXISTING photos/videos on the camera's own preview/editor screens.
|
|
32
|
+
*
|
|
33
|
+
* This is not a second editor: it is the same native Activity, the same preview/editor controller
|
|
34
|
+
* and the same tool set freshly captured media opens on — crop, rotate, draw, text, stickers,
|
|
35
|
+
* emoji, filters, export/compress for images; trim, mute, cover frame, compress for videos — and it
|
|
36
|
+
* finishes through the same send pipeline (cache → edit → publish to Documents). The result
|
|
37
|
+
* therefore has the identical `{ cancelled, assets }` shape as {@link openCameraPicker}, and the
|
|
38
|
+
* assets it returns are indistinguishable from captured ones downstream.
|
|
39
|
+
*
|
|
40
|
+
* The number of items picks the screen, exactly as it does for captures:
|
|
41
|
+
* • ONE item — `{ uri }` or a single-entry `items` — opens the single-asset image/video editor.
|
|
42
|
+
* • SEVERAL items open the multi-media Add More + Send preview, holding the whole selection in the
|
|
43
|
+
* order given, with its strip, per-item removal and one Send for the lot.
|
|
44
|
+
*
|
|
45
|
+
* Resolves with `cancelled: true` when the user backs out, or when nothing in the selection can be
|
|
46
|
+
* opened (unreadable files, or uris that are neither image nor video).
|
|
47
|
+
*/
|
|
48
|
+
export declare function openMediaEditor(options: MediaEditorOptions): Promise<CameraPickerResult>;
|
|
49
|
+
/**
|
|
50
|
+
* One-call "pick from the gallery, then edit" flow: opens the device gallery
|
|
51
|
+
* ({@link openImageVideoPicker}) with unlimited selection, detects whether each chosen item is an
|
|
52
|
+
* image or a video, and hands the lot to {@link openMediaEditor} — so picked media lands on the
|
|
53
|
+
* same screens a capture does, with the same tools and the same send behaviour.
|
|
54
|
+
*
|
|
55
|
+
* Selection count drives the navigation, exactly as it does for captures: one item goes straight to
|
|
56
|
+
* the image or video editor; several go to the multi-media Add More + Send preview, carrying every
|
|
57
|
+
* item — images and videos in any combination — in the order they were picked.
|
|
58
|
+
*
|
|
59
|
+
* Resolves `{ cancelled: true, assets: [] }` when the user backs out of either step, and when
|
|
60
|
+
* nothing in the selection can be opened as media at all. Never throws for a cancel; genuine
|
|
61
|
+
* failures (no Activity, unusable uris) still reject like the underlying calls do.
|
|
62
|
+
*/
|
|
63
|
+
export declare function openGalleryEditor(options?: GalleryEditorOptions): Promise<CameraPickerResult>;
|
|
64
|
+
/**
|
|
65
|
+
* Opens a document uri in an external viewer (Android `ACTION_VIEW`). Resolves `true` when an
|
|
66
|
+
* app was launched to view it, `false` when no handler is available. `mimeType` may be empty —
|
|
67
|
+
* the native side falls back to inferring it from the uri.
|
|
68
|
+
*/
|
|
69
|
+
export declare function openDocument(uri: string, mimeType?: string): Promise<boolean>;
|
|
70
|
+
export declare function startUpload(uris: string[], uploadUrl: string): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Securely delete ONE media item natively, and report exactly what happened.
|
|
73
|
+
*
|
|
74
|
+
* The native implementation measures the file's exact size, overwrites it with
|
|
75
|
+
* encrypted cryptographically secure random data 2 MB larger than that size
|
|
76
|
+
* (written in fixed-size chunks and flushed to storage, so a multi-gigabyte
|
|
77
|
+
* video never lands in RAM), unlinks the file, then removes thumbnails, cached
|
|
78
|
+
* copies, derived variants (compressed / exported / edited / cover frames) and
|
|
79
|
+
* native metadata references. It runs entirely off the main thread.
|
|
80
|
+
*
|
|
81
|
+
* Pass `assetId` whenever you have it: derived variants are named after it, so
|
|
82
|
+
* omitting it leaves those extra copies of the same media on disk.
|
|
83
|
+
*
|
|
84
|
+
* Inspect {@link SecureDeleteResult.fullySecure} before reporting success —
|
|
85
|
+
* a file can be deleted while its overwrite failed, and the two must not be
|
|
86
|
+
* presented to the user identically. Failures are logged natively.
|
|
87
|
+
*
|
|
88
|
+
* Removing the SQLCipher row is the caller's job (see `useMediaDatabase`), and
|
|
89
|
+
* should happen only after this resolves.
|
|
90
|
+
*/
|
|
91
|
+
export declare function secureDeleteMedia(uri: string, options?: SecureDeleteOptions): Promise<SecureDeleteResult>;
|
|
92
|
+
/**
|
|
93
|
+
* Share one or more media uris through the native Android share sheet
|
|
94
|
+
* (Intent.ACTION_SEND for a single item, ACTION_SEND_MULTIPLE for several)
|
|
95
|
+
* with the correct MIME type for images, videos, documents and audio.
|
|
96
|
+
* Resolves `true` when the share chooser was launched.
|
|
97
|
+
*/
|
|
98
|
+
export declare function shareMedia(uris: string[], mimeType: string): Promise<boolean>;
|
|
99
|
+
export declare function getMediaMetadata(uri: string): Promise<MediaMetadata>;
|
|
100
|
+
/**
|
|
101
|
+
* The byte length of the exact clip the recording process finalized under `mediaId`, or 0 when the
|
|
102
|
+
* native layer remembers none. A freshly recorded clip's cached file is swapped in the background
|
|
103
|
+
* for a smaller aspect-cropped re-encode; this reports the pre-crop recorded length so a preview
|
|
104
|
+
* shows the same size the recording counter approached and the editor's "Original" row shows,
|
|
105
|
+
* rather than the smaller file now on disk. Returns 0 for gallery media, user-compressed/exported
|
|
106
|
+
* copies, trimmed clips, and anything after an app restart — callers then fall back to the real
|
|
107
|
+
* on-disk size.
|
|
108
|
+
*/
|
|
109
|
+
export declare function getRecordedOriginalSize(mediaId: string): Promise<number>;
|
|
110
|
+
export declare function startAudioRecording(options?: AudioRecordingOptions): Promise<AudioRecordingResult>;
|
|
111
|
+
export declare function stopAudioRecording(): Promise<AudioRecordingStopResult>;
|
|
112
|
+
export declare function cancelAudioRecording(): Promise<{
|
|
113
|
+
deleted: boolean;
|
|
114
|
+
}>;
|
|
115
|
+
export declare function stopAndPublishAudioRecording(): Promise<CameraAsset>;
|
|
116
|
+
export declare function pauseAudioRecording(): Promise<void>;
|
|
117
|
+
export declare function resumeAudioRecording(): Promise<void>;
|
|
118
|
+
export declare function getAudioRecordingState(): Promise<AudioRecordingState>;
|
|
119
|
+
export declare function getAudioAmplitude(): Promise<number>;
|
|
120
|
+
/**
|
|
121
|
+
* Re-encode a video smaller, resolving with a URI for the new file. The original is only ever
|
|
122
|
+
* read — never overwritten, moved or deleted.
|
|
123
|
+
*
|
|
124
|
+
* `qualityOrOption` is a QUALITY RATIO: `'25%'` and `'0.25'` both mean "keep a quarter of the
|
|
125
|
+
* quality" (so a LOWER value is stronger compression), and only a string starting with
|
|
126
|
+
* `'Original'` (quality ratio 1.0) resolves the input URI back untouched.
|
|
127
|
+
*/
|
|
128
|
+
export declare function compressVideo(uri: string, qualityOrOption: string): Promise<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Re-encode a still image smaller, resolving with a URI for the new file. The original is only
|
|
131
|
+
* ever read — never overwritten, moved or deleted.
|
|
132
|
+
*
|
|
133
|
+
* `qualityOrOption` is a QUALITY RATIO, exactly as {@link compressVideo} takes: `'25%'` and
|
|
134
|
+
* `'0.25'` both mean "keep a quarter of the quality" (so a LOWER value is stronger compression),
|
|
135
|
+
* and only `'Original Image'` (quality ratio 1.0) resolves the input URI back untouched — every
|
|
136
|
+
* level below it, from `'5%'` up to `'99%'`, runs the encoder. An image that is already as small as
|
|
137
|
+
* it can get also resolves the input URI, since a "compressed" copy would only be larger.
|
|
138
|
+
*
|
|
139
|
+
* The compressed copy comes back as JPEG, or as lossy WebP when the source could be carrying
|
|
140
|
+
* transparency, so an image with an alpha channel is never flattened onto white.
|
|
141
|
+
*/
|
|
142
|
+
export declare function compressImage(uri: string, qualityOrOption: string): Promise<string>;
|
|
143
|
+
/** One measured progress report from an in-flight {@link compressVideo} / {@link compressImage}. */
|
|
144
|
+
export interface CompressionProgressEvent {
|
|
145
|
+
/** The `uri` argument the compression was started with — how a live report is told from a stale one. */
|
|
146
|
+
uri: string;
|
|
147
|
+
/** The `qualityOrOption` argument the compression was started with. */
|
|
148
|
+
option: string;
|
|
149
|
+
/** How much of the work is DONE, 0..1. Monotonic per compression, and exactly 1 when it ends. */
|
|
150
|
+
progress: number;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Subscribe to measured progress from {@link compressVideo} and {@link compressImage}.
|
|
154
|
+
*
|
|
155
|
+
* The reports are measurements, not predictions: the video transcode reports the encoder's own
|
|
156
|
+
* output position against the clip's duration, and the still compressor reports the encodes its
|
|
157
|
+
* quality search has spent. That is what makes a real remaining time derivable — `elapsed /
|
|
158
|
+
* progress` is the total the job is actually on course for — instead of counting a fixed estimate
|
|
159
|
+
* down and either running out mid-compression or still promising seconds after it has finished.
|
|
160
|
+
*
|
|
161
|
+
* Notes for callers:
|
|
162
|
+
* - Reports are throttled natively (a few per second at most), so this is safe to render from.
|
|
163
|
+
* - `progress` reaches 1 when the work ends, but do not WAIT for it: a compression that fails part
|
|
164
|
+
* way through resolves its promise (or rejects) without a final report on every path. Treat the
|
|
165
|
+
* promise as the completion signal and these events purely as progress.
|
|
166
|
+
* - Media whose length cannot be read reports only its start and end, so treat a quiet compression
|
|
167
|
+
* as "progress unknown", never as "stalled".
|
|
168
|
+
*
|
|
169
|
+
* @returns the subscription; call `.remove()` to stop listening.
|
|
170
|
+
*/
|
|
171
|
+
export declare function addCompressionProgressListener(listener: (event: CompressionProgressEvent) => void): {
|
|
172
|
+
remove: () => void;
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=nativeActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeActions.d.ts","sourceRoot":"","sources":["../../../src/nativeActions.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EAEpB,kBAAkB,EAClB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,wCAgBpC;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,kBAAkB,CAAC,CAI7B;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,kBAAkB,CAAC,CAI7B;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,kBAAkB,CAAC,CAI7B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,kBAAkB,CAAC,CAI7B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAI7B;AAwDD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,kBAAkB,CAAC,CAwB7B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,MAAW,GACpB,OAAO,CAAC,OAAO,CAAC,CAElB;AAED,wBAAgB,WAAW,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,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED,oGAAoG;AACpG,MAAM,WAAW,wBAAwB;IACvC,wGAAwG;IACxG,GAAG,EAAE,MAAM,CAAC;IACZ,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,iGAAiG;IACjG,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,GAClD;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAExB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolution helpers for this library's optional native views.
|
|
3
|
+
*
|
|
4
|
+
* Every native view here is optional by design: the JS half of the library is published as
|
|
5
|
+
* plain source and can be running against a host app whose native module was built before that
|
|
6
|
+
* view existed (or against a platform that has no native half at all). The JS must therefore be
|
|
7
|
+
* able to answer "is this view actually in the binary?" — and answer it *before* rendering.
|
|
8
|
+
*/
|
|
9
|
+
import type { ComponentType } from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The native component registered under [name], or `null` when this build does not have it.
|
|
12
|
+
*
|
|
13
|
+
* `requireNativeComponent` resolves its view config LAZILY: the call itself always succeeds and
|
|
14
|
+
* the UIManager lookup only happens when React first renders the element. Wrapping the call in
|
|
15
|
+
* try/catch — the shape this library used previously — therefore cannot see a missing view
|
|
16
|
+
* manager, so `isNative…Available()` reported `true` and the first row that rendered the view
|
|
17
|
+
* threw `requireNativeComponent: '<name>' was not found in the UIManager` instead of quietly
|
|
18
|
+
* taking the fallback. Asking the UIManager up front makes the answer truthful, which is what
|
|
19
|
+
* every caller's fallback path depends on.
|
|
20
|
+
*/
|
|
21
|
+
export declare function resolveNativeComponent<Props extends object>(name: string): ComponentType<Props> | null;
|
|
22
|
+
/**
|
|
23
|
+
* A URI ReactNative's `<Image>` can actually load.
|
|
24
|
+
*
|
|
25
|
+
* The media database stores plain absolute paths (`/data/user/0/…/Documents/media_documents/
|
|
26
|
+
* photo.jpg`), and Fresco needs a scheme: pointed at a bare path it renders nothing at all and
|
|
27
|
+
* reports no error, which is indistinguishable from an empty tile.
|
|
28
|
+
*/
|
|
29
|
+
export declare function toImageSourceUri(uri?: string | null): string | undefined;
|
|
30
|
+
//# sourceMappingURL=nativeComponentSupport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeComponentSupport.d.ts","sourceRoot":"","sources":["../../../src/nativeComponentSupport.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,SAAS,MAAM,EACzD,IAAI,EAAE,MAAM,GACX,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI,CAU7B;AAeD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAGxE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { validateUploadUrl } from './validation';
|
|
2
|
+
export declare function checkNetworkConnectivity(): Promise<boolean>;
|
|
3
|
+
export declare function adaptiveUpload(uri: string, uploadUrl: string): Promise<{
|
|
4
|
+
ok: boolean;
|
|
5
|
+
uri: string;
|
|
6
|
+
uploadUrl: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function estimateBandwidth(): number;
|
|
9
|
+
export declare class NetworkMonitor {
|
|
10
|
+
check(): Promise<boolean>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=networkPerformance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkPerformance.d.ts","sourceRoot":"","sources":["../../../src/networkPerformance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,OAAO,CAAC,CAEjE;AAED,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAQ1D;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,qBAAa,cAAc;IACnB,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;CAGhC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PerformanceMetrics } from './types';
|
|
2
|
+
import { measurePerformance as measurePerformanceMonitor } from './performanceMonitor';
|
|
3
|
+
export { measurePerformance } from './performanceMonitor';
|
|
4
|
+
export declare function debounce<T extends (...args: unknown[]) => unknown>(fn: T, wait?: number): T;
|
|
5
|
+
export declare function throttle<T extends (...args: unknown[]) => unknown>(fn: T, wait?: number): T;
|
|
6
|
+
export declare class MediaCache<T = unknown> {
|
|
7
|
+
private readonly store;
|
|
8
|
+
set(key: string, value: T): void;
|
|
9
|
+
get(key: string): T | undefined;
|
|
10
|
+
delete(key: string): void;
|
|
11
|
+
clear(): void;
|
|
12
|
+
}
|
|
13
|
+
export declare class BackgroundOperationManager {
|
|
14
|
+
private readonly queue;
|
|
15
|
+
enqueue(operation: () => Promise<unknown>): Promise<unknown>;
|
|
16
|
+
private runNext;
|
|
17
|
+
}
|
|
18
|
+
export declare class LazyLoader<T = unknown> {
|
|
19
|
+
private readonly factory;
|
|
20
|
+
private value;
|
|
21
|
+
private isLoading;
|
|
22
|
+
private error;
|
|
23
|
+
constructor(factory: () => T);
|
|
24
|
+
load(): T;
|
|
25
|
+
reset(): void;
|
|
26
|
+
get isLoaded(): boolean;
|
|
27
|
+
get hasError(): boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare function processMediaInChunks<T>(items: T[], batchSize: number | undefined, processor: (chunk: T[]) => Promise<void> | void): Promise<void>;
|
|
30
|
+
export type { PerformanceMetrics };
|
|
31
|
+
export { measurePerformanceMonitor as measurePerformanceMonitorImpl };
|
|
32
|
+
//# sourceMappingURL=performance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance.d.ts","sourceRoot":"","sources":["../../../src/performance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAChE,EAAE,EAAE,CAAC,EACL,IAAI,SAAI,GAaF,CAAC,CACR;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAChE,EAAE,EAAE,CAAC,EACL,IAAI,SAAI,GAUF,CAAC,CACR;AAED,qBAAa,UAAU,CAAC,CAAC,GAAG,OAAO;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAE9C,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAIhC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAI/B,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzB,KAAK,IAAI,IAAI;CAGd;AAED,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqC;IAErD,OAAO,CAAC,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;YAKpD,OAAO;CActB;AAED,qBAAa,UAAU,CAAC,CAAC,GAAG,OAAO;IAKrB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJpC,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,KAAK,CAAiB;gBAED,OAAO,EAAE,MAAM,CAAC;IAE7C,IAAI,IAAI,CAAC;IAqBT,KAAK,IAAI,IAAI;IAKb,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;CACF;AAED,wBAAsB,oBAAoB,CAAC,CAAC,EAC1C,KAAK,EAAE,CAAC,EAAE,EACV,SAAS,oBAAK,EACd,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAC9C,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,YAAY,EAAE,kBAAkB,EAAE,CAAC;AACnC,OAAO,EAAE,yBAAyB,IAAI,6BAA6B,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance monitoring for camera operations
|
|
3
|
+
*/
|
|
4
|
+
import type { PerformanceMetrics } from './types';
|
|
5
|
+
export declare class PerformanceMonitor {
|
|
6
|
+
private static instance;
|
|
7
|
+
private metrics;
|
|
8
|
+
private maxMetrics;
|
|
9
|
+
private performanceThresholds;
|
|
10
|
+
private performanceWarnings;
|
|
11
|
+
private constructor();
|
|
12
|
+
static getInstance(): PerformanceMonitor;
|
|
13
|
+
trackMetric(metric: PerformanceMetrics): void;
|
|
14
|
+
getMetrics(): PerformanceMetrics[];
|
|
15
|
+
getPerformanceWarnings(): Array<{
|
|
16
|
+
metric: PerformanceMetrics;
|
|
17
|
+
reason: string;
|
|
18
|
+
}>;
|
|
19
|
+
clearMetrics(): void;
|
|
20
|
+
clearWarnings(): void;
|
|
21
|
+
setThresholds(thresholds: {
|
|
22
|
+
slowOperationMs?: number;
|
|
23
|
+
verySlowOperationMs?: number;
|
|
24
|
+
highMemoryMb?: number;
|
|
25
|
+
veryHighMemoryMb?: number;
|
|
26
|
+
}): void;
|
|
27
|
+
private checkPerformanceWarnings;
|
|
28
|
+
private reportMetrics;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Measure operation performance
|
|
32
|
+
*/
|
|
33
|
+
export declare function measurePerformance<T>(operationName: string, operation: () => Promise<T>): Promise<{
|
|
34
|
+
result: T;
|
|
35
|
+
metrics: PerformanceMetrics;
|
|
36
|
+
}>;
|
|
37
|
+
/**
|
|
38
|
+
* Get current memory usage (approximate)
|
|
39
|
+
*/
|
|
40
|
+
export declare function getMemoryUsage(): number;
|
|
41
|
+
/**
|
|
42
|
+
* Log performance metrics
|
|
43
|
+
*/
|
|
44
|
+
export declare function logPerformanceMetrics(metrics: PerformanceMetrics): void;
|
|
45
|
+
//# sourceMappingURL=performanceMonitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performanceMonitor.d.ts","sourceRoot":"","sources":["../../../src/performanceMonitor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAqB;IAC5C,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,qBAAqB,CAK3B;IACF,OAAO,CAAC,mBAAmB,CAGnB;IAER,OAAO;WAKO,WAAW,IAAI,kBAAkB;IAOxC,WAAW,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAU7C,UAAU,IAAI,kBAAkB,EAAE;IAIlC,sBAAsB,IAAI,KAAK,CAAC;QACrC,MAAM,EAAE,kBAAkB,CAAC;QAC3B,MAAM,EAAE,MAAM,CAAC;KA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