react-native-attachment-kit 1.0.0

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.
Files changed (166) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +327 -0
  3. package/android/CMakeLists.txt +31 -0
  4. package/android/build.gradle +121 -0
  5. package/android/src/main/AndroidManifest.xml +2 -0
  6. package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
  7. package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +1159 -0
  8. package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitPackage.kt +37 -0
  9. package/android/src/oldarch/java/com/rnattachmentkit/NativeRNAttachmentKitSpec.kt +19 -0
  10. package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +1142 -0
  11. package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitPackage.kt +19 -0
  12. package/ios/README.md +213 -0
  13. package/ios/RNAttachmentKit.m +132 -0
  14. package/ios/RNAttachmentKit.swift +1787 -0
  15. package/ios/RNAttachmentKit.xcframework/Info.plist +44 -0
  16. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
  17. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib +0 -0
  18. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/Info.plist +0 -0
  19. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib +0 -0
  20. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +581 -0
  21. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Info.plist +0 -0
  22. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +34376 -0
  23. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +517 -0
  24. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  25. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface +517 -0
  26. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/module.modulemap +3 -0
  27. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Pretendard-SemiBold.otf +0 -0
  28. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  29. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
  30. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
  31. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
  32. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
  33. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
  34. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
  35. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
  36. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
  37. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
  38. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
  39. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
  40. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~light.webp +0 -0
  41. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
  42. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
  43. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
  44. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~light.webp +0 -0
  45. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
  46. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
  47. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
  48. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
  49. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
  50. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
  51. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~dark.webp +0 -0
  52. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~light.webp +0 -0
  53. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  54. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeRequirements +0 -0
  55. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +498 -0
  56. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
  57. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Assets.car +0 -0
  58. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib +0 -0
  59. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/Info.plist +0 -0
  60. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib +0 -0
  61. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +1158 -0
  62. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Info.plist +0 -0
  63. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +34376 -0
  64. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +517 -0
  65. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  66. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +517 -0
  67. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +34376 -0
  68. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +517 -0
  69. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  70. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +517 -0
  71. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/module.modulemap +3 -0
  72. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Pretendard-SemiBold.otf +0 -0
  73. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  74. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
  75. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
  76. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
  77. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
  78. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
  79. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
  80. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
  81. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
  82. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
  83. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
  84. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
  85. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_crop~light.webp +0 -0
  86. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
  87. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
  88. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
  89. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_effect~light.webp +0 -0
  90. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
  91. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
  92. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
  93. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
  94. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
  95. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
  96. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~dark.webp +0 -0
  97. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/ToolbarIcons/ic_editor_text~light.webp +0 -0
  98. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  99. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeRequirements +0 -0
  100. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeResources +553 -0
  101. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
  102. package/ios/RNAttachmentKitAssets/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
  103. package/ios/RNAttachmentKitAssets/Assets.xcassets/AppIcon.appiconset/Contents.json +13 -0
  104. package/ios/RNAttachmentKitAssets/Assets.xcassets/Contents.json +6 -0
  105. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_back.imageset/Contents.json +24 -0
  106. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_back.imageset/ic_back_dark.png +0 -0
  107. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_back.imageset/ic_back_normal.png +0 -0
  108. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_delete.imageset/Contents.json +56 -0
  109. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_delete.imageset/delete_dark.webp +0 -0
  110. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_delete.imageset/delete_normal.webp +0 -0
  111. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_forward.imageset/Contents.json +56 -0
  112. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_forward.imageset/forward_dark.webp +0 -0
  113. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_forward.imageset/forward_normal.webp +0 -0
  114. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_reward.imageset/Contents.json +56 -0
  115. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_reward.imageset/reward_dark.webp +0 -0
  116. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_drawing_reward.imageset/reward_normal.webp +0 -0
  117. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_crop.imageset/Contents.json +52 -0
  118. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_crop.imageset/crop_dark.webp +0 -0
  119. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_crop.imageset/crop_normal.webp +0 -0
  120. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_drawing.imageset/Contents.json +52 -0
  121. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_drawing.imageset/drawing_dark.webp +0 -0
  122. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_drawing.imageset/drawing_normal.webp +0 -0
  123. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_effect.imageset/Contents.json +52 -0
  124. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_effect.imageset/effect_dark.webp +0 -0
  125. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_effect.imageset/effect_normal.webp +0 -0
  126. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_emoji.imageset/Contents.json +52 -0
  127. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_emoji.imageset/emoji_dark.webp +0 -0
  128. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_emoji.imageset/emoji_normal.webp +0 -0
  129. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_text.imageset/Contents.json +52 -0
  130. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_text.imageset/text_dark.webp +0 -0
  131. package/ios/RNAttachmentKitAssets/Assets.xcassets/ic_editor_text.imageset/text_norml.webp +0 -0
  132. package/ios/RNAttachmentKitAssets/Assets.xcassets/rotate_icon.imageset/Contents.json +32 -0
  133. package/ios/RNAttachmentKitAssets/Assets.xcassets/rotate_icon.imageset/rotate_dark.png +0 -0
  134. package/ios/RNAttachmentKitAssets/Assets.xcassets/rotate_icon.imageset/rotate_normal.png +0 -0
  135. package/ios/RNAttachmentKitAssets/Fonts/Pretendard-SemiBold.otf +0 -0
  136. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_reflect~dark.webp +0 -0
  137. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_reflect~light.webp +0 -0
  138. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_rotate~dark.webp +0 -0
  139. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_crop_rotate~light.webp +0 -0
  140. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_delete~dark.webp +0 -0
  141. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_delete~light.webp +0 -0
  142. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_forward~dark.webp +0 -0
  143. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_forward~light.webp +0 -0
  144. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_reward~dark.webp +0 -0
  145. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_drawing_reward~light.webp +0 -0
  146. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_crop~dark.webp +0 -0
  147. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_crop~light.webp +0 -0
  148. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_drawing~dark.webp +0 -0
  149. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_drawing~light.webp +0 -0
  150. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_effect~dark.webp +0 -0
  151. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_effect~light.webp +0 -0
  152. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_emoji~dark.webp +0 -0
  153. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_emoji~light.webp +0 -0
  154. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_eraser~dark.webp +0 -0
  155. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_eraser~light.webp +0 -0
  156. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_mosaic~dark.webp +0 -0
  157. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_mosaic~light.webp +0 -0
  158. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_text~dark.webp +0 -0
  159. package/ios/RNAttachmentKitAssets/ToolbarIcons/ic_editor_text~light.webp +0 -0
  160. package/package.json +68 -0
  161. package/react-native-attachment-kit.podspec +51 -0
  162. package/react-native.config.js +14 -0
  163. package/src/NativeAttachmentKit.ts +26 -0
  164. package/src/index.d.ts +56 -0
  165. package/src/index.ts +359 -0
  166. package/src/types.ts +317 -0
@@ -0,0 +1,517 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
3
+ // swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name RNAttachmentKit
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
5
+ import AVFoundation
6
+ import CoreImage
7
+ import CoreText
8
+ import CryptoKit
9
+ import DeveloperToolsSupport
10
+ import Foundation
11
+ import ImageIO
12
+ import Photos
13
+ import Swift
14
+ import SwiftUI
15
+ import UIKit
16
+ import _Concurrency
17
+ import _StringProcessing
18
+ import _SwiftConcurrencyShims
19
+ @objc @_Concurrency.MainActor @preconcurrency public class GalleryBaseViewController : UIKit.UIViewController {
20
+ @_Concurrency.MainActor @preconcurrency public var onImagesSelected: (([(Photos.PHAsset?, UIKit.UIImage)]) -> Swift.Void)?
21
+ @_Concurrency.MainActor @preconcurrency public var onSelectionChanged: ((Swift.Int, Swift.Int) -> Swift.Void)?
22
+ @_Concurrency.MainActor @preconcurrency public var onSingleImageTappedForEdit: ((Photos.PHAsset, CoreFoundation.CGRect, UIKit.UIImage?) -> Swift.Void)?
23
+ @_Concurrency.MainActor @preconcurrency public var allowsEditing: Swift.Bool
24
+ @_Concurrency.MainActor @preconcurrency public var profileMode: Swift.Bool
25
+ @_Concurrency.MainActor @preconcurrency public var onProfileCropComplete: ((Photos.PHAsset, UIKit.UIImage) -> Swift.Void)?
26
+ @_Concurrency.MainActor @preconcurrency public var editingAsset: Photos.PHAsset?
27
+ @_Concurrency.MainActor @preconcurrency public var profileCropTransitionDelegate: (any UIKit.UIViewControllerTransitioningDelegate)?
28
+ @_Concurrency.MainActor @preconcurrency public var maxSelection: Swift.Int
29
+ @_Concurrency.MainActor @preconcurrency public var forceMultiMode: Swift.Bool
30
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public init()
31
+ @_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
32
+ @_Concurrency.MainActor @preconcurrency public var maxWidth: Swift.Int
33
+ @_Concurrency.MainActor @preconcurrency public var maxHeight: Swift.Int
34
+ @_Concurrency.MainActor @preconcurrency public var outputFormat: Swift.String
35
+ @_Concurrency.MainActor @preconcurrency public var allItemsText: Swift.String
36
+ @_Concurrency.MainActor @preconcurrency public var selectedItemsText: Swift.String
37
+ @_Concurrency.MainActor @preconcurrency public var doneButtonText: Swift.String
38
+ @_Concurrency.MainActor @preconcurrency public var recentsAlbumText: Swift.String
39
+ @_Concurrency.MainActor @preconcurrency public var languageCode: Swift.String {
40
+ get
41
+ set
42
+ }
43
+ @_Concurrency.MainActor @preconcurrency public var themeColorHex: Swift.String?
44
+ @_Concurrency.MainActor @preconcurrency public var parsedThemeColor: UIKit.UIColor {
45
+ get
46
+ }
47
+ @_Concurrency.MainActor @preconcurrency public var allAssets: [Photos.PHAsset] {
48
+ get
49
+ }
50
+ @_Concurrency.MainActor @preconcurrency final public let galleryID: Swift.String
51
+ @_Concurrency.MainActor @preconcurrency public var selectedAssets: [Photos.PHAsset]
52
+ @_Concurrency.MainActor @preconcurrency public var editedImages: [Swift.String : UIKit.UIImage]
53
+ @_Concurrency.MainActor @preconcurrency public var selectedAssetsSet: Swift.Set<Swift.String>
54
+ @_Concurrency.MainActor @preconcurrency public var hiddenAssetId: Swift.String?
55
+ @_Concurrency.MainActor @preconcurrency public var collectionView: UIKit.UICollectionView {
56
+ get
57
+ set
58
+ }
59
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
60
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillAppear(_ animated: Swift.Bool)
61
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidAppear(_ animated: Swift.Bool)
62
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func traitCollectionDidChange(_ previousTraitCollection: UIKit.UITraitCollection?)
63
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
64
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
65
+ @_Concurrency.MainActor @preconcurrency public func forceCleanupBeforeDismiss()
66
+ @_Concurrency.MainActor @preconcurrency public func refreshThumbnails(for changed: [Photos.PHAsset])
67
+ @_Concurrency.MainActor @preconcurrency public func sendSelectionFromEditor()
68
+ @_Concurrency.MainActor @preconcurrency public var hasReturnedImages: Swift.Bool
69
+ @_Concurrency.MainActor @preconcurrency public func updateNavigationBarForSelection()
70
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func didReceiveMemoryWarning()
71
+ @objc deinit
72
+ }
73
+ @objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency final public class GalleryViewController : RNAttachmentKit.GalleryBaseViewController {
74
+ @_Concurrency.MainActor @preconcurrency final public var customTransitioningDelegate: any UIKit.UIViewControllerTransitioningDelegate {
75
+ get
76
+ set
77
+ }
78
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidLoad()
79
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewWillAppear(_ animated: Swift.Bool)
80
+ @_Concurrency.MainActor @preconcurrency @objc override final public func traitCollectionDidChange(_ previousTraitCollection: UIKit.UITraitCollection?)
81
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidLayoutSubviews()
82
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidAppear(_ animated: Swift.Bool)
83
+ @_Concurrency.MainActor @preconcurrency @objc override final public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
84
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public init()
85
+ @_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
86
+ @objc deinit
87
+ }
88
+ public struct FilterState {
89
+ public var filterId: Swift.String
90
+ public var intensity: CoreFoundation.CGFloat
91
+ public init(filterId: Swift.String, intensity: CoreFoundation.CGFloat)
92
+ }
93
+ @objc @_Concurrency.MainActor @preconcurrency public class ImageEditorViewController : UIKit.UIViewController {
94
+ @_Concurrency.MainActor @preconcurrency public var languageCode: Swift.String
95
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public init()
96
+ @_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
97
+ @_Concurrency.MainActor @preconcurrency public var allAssets: [Photos.PHAsset]
98
+ @_Concurrency.MainActor @preconcurrency public var standaloneImage: UIKit.UIImage?
99
+ @_Concurrency.MainActor @preconcurrency public var currentIndex: Swift.Int
100
+ @_Concurrency.MainActor @preconcurrency public var filterStates: [Swift.Int : RNAttachmentKit.FilterState]
101
+ @_Concurrency.MainActor @preconcurrency public var croppedImages: [Swift.Int : UIKit.UIImage]
102
+ @_Concurrency.MainActor @preconcurrency public var singlePhotoMode: Swift.Bool
103
+ @_Concurrency.MainActor @preconcurrency public var disableCrop: Swift.Bool
104
+ @_Concurrency.MainActor @preconcurrency public var selectedAssets: [Photos.PHAsset]
105
+ @_Concurrency.MainActor @preconcurrency public var onSelectionToggled: ((Photos.PHAsset, Swift.Bool) -> Swift.Void)?
106
+ @_Concurrency.MainActor @preconcurrency public var replaceSelectionWhenFull: Swift.Bool
107
+ @_Concurrency.MainActor @preconcurrency public var onEditDeleted: ((Photos.PHAsset) -> Swift.Void)?
108
+ @_Concurrency.MainActor @preconcurrency public var onConfirm: ((Photos.PHAsset?, UIKit.UIImage?, RNAttachmentKit.FilterState, Swift.String) -> Swift.Void)?
109
+ @_Concurrency.MainActor @preconcurrency public var onConfirmMulti: (([Photos.PHAsset], [Photos.PHAsset : UIKit.UIImage], [Photos.PHAsset : RNAttachmentKit.FilterState]) -> Swift.Void)?
110
+ @_Concurrency.MainActor @preconcurrency public var onSendMulti: (([Photos.PHAsset], [Photos.PHAsset : UIKit.UIImage], [Photos.PHAsset : RNAttachmentKit.FilterState]) -> Swift.Void)?
111
+ @_Concurrency.MainActor @preconcurrency public var onCancel: (() -> Swift.Void)?
112
+ @_Concurrency.MainActor @preconcurrency public var themeColor: UIKit.UIColor?
113
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
114
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func traitCollectionDidChange(_ previousTraitCollection: UIKit.UITraitCollection?)
115
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLayoutSubviews()
116
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
117
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
118
+ @objc deinit
119
+ }
120
+ extension RNAttachmentKit.ImageEditorViewController : UIKit.UIGestureRecognizerDelegate {
121
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
122
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func gestureRecognizer(_ gestureRecognizer: UIKit.UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
123
+ }
124
+ extension RNAttachmentKit.ImageEditorViewController : UIKit.UICollectionViewDataSource {
125
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ cv: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
126
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ cv: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
127
+ }
128
+ extension RNAttachmentKit.ImageEditorViewController : UIKit.UICollectionViewDelegate, UIKit.UICollectionViewDelegateFlowLayout {
129
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didSelectItemAt indexPath: Foundation.IndexPath)
130
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ cv: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, sizeForItemAt indexPath: Foundation.IndexPath) -> CoreFoundation.CGSize
131
+ }
132
+ extension RNAttachmentKit.ImageEditorViewController {
133
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
134
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
135
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndScrollingAnimation(_ scrollView: UIKit.UIScrollView)
136
+ }
137
+ extension RNAttachmentKit.ImageEditorViewController : UIKit.UICollectionViewDataSourcePrefetching {
138
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ cv: UIKit.UICollectionView, prefetchItemsAt indexPaths: [Foundation.IndexPath])
139
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ cv: UIKit.UICollectionView, cancelPrefetchingForItemsAt indexPaths: [Foundation.IndexPath])
140
+ }
141
+ public struct Album {
142
+ public let collection: Photos.PHAssetCollection
143
+ public let title: Swift.String
144
+ public let count: Swift.Int
145
+ public var identifier: Swift.String {
146
+ get
147
+ }
148
+ public var isRecents: Swift.Bool {
149
+ get
150
+ }
151
+ }
152
+ @_hasMissingDesignatedInitializers public class PhotoManager {
153
+ public var languageCode: Swift.String
154
+ public static let shared: RNAttachmentKit.PhotoManager
155
+ public func resetCachingManager()
156
+ public func fetchAlbums(completion: @escaping ([RNAttachmentKit.Album]) -> Swift.Void)
157
+ public func fetchInitialPhotos(from album: RNAttachmentKit.Album? = nil, completion: @escaping ([Photos.PHAsset]) -> Swift.Void)
158
+ public func fetchAllPhotosMetadata(from album: RNAttachmentKit.Album? = nil, skip: Swift.Int = 0, completion: @escaping ([Photos.PHAsset]) -> Swift.Void)
159
+ public func fetchInitialPhotos(completion: @escaping ([Photos.PHAsset]) -> Swift.Void)
160
+ public func fetchAllPhotosMetadata(skip: Swift.Int = 0, completion: @escaping ([Photos.PHAsset]) -> Swift.Void)
161
+ public func fetchAllPhotos(completion: @escaping ([Photos.PHAsset]) -> Swift.Void)
162
+ public var thumbnailImageManager: Photos.PHImageManager {
163
+ get
164
+ }
165
+ public func requestThumbnail(for asset: Photos.PHAsset, targetSize: CoreFoundation.CGSize, completion: @escaping (UIKit.UIImage?) -> Swift.Void) -> Photos.PHImageRequestID
166
+ public func requestFullImage(for asset: Photos.PHAsset, targetSize: CoreFoundation.CGSize, progressHandler: ((Swift.Double) -> Swift.Void)? = nil, completion: @escaping (UIKit.UIImage?) -> Swift.Void) -> Photos.PHImageRequestID
167
+ public func startCachingImages(for assets: [Photos.PHAsset], targetSize: CoreFoundation.CGSize)
168
+ public func stopCachingImages(for assets: [Photos.PHAsset], targetSize: CoreFoundation.CGSize)
169
+ public func stopCachingAllImages()
170
+ @objc deinit
171
+ }
172
+ public struct ImageFilter {
173
+ public let id: Swift.String
174
+ public let name: Swift.String
175
+ public let apply: (CoreImage.CIImage, CoreFoundation.CGFloat) -> CoreImage.CIImage?
176
+ }
177
+ @_hasMissingDesignatedInitializers public class FilterManager {
178
+ public static let shared: RNAttachmentKit.FilterManager
179
+ final public let context: CoreImage.CIContext
180
+ final public let filters: [RNAttachmentKit.ImageFilter]
181
+ @objc deinit
182
+ }
183
+ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UICollectionViewDataSource {
184
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
185
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
186
+ }
187
+ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UICollectionViewDelegate, UIKit.UICollectionViewDelegateFlowLayout {
188
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didSelectItemAt indexPath: Foundation.IndexPath)
189
+ @_Concurrency.MainActor @preconcurrency public func refreshSelectionAfterEdit()
190
+ @_Concurrency.MainActor @preconcurrency public func updateSelectedCellNumbers()
191
+ @_Concurrency.MainActor @preconcurrency public func notifySelectionChanged()
192
+ @_Concurrency.MainActor @preconcurrency public func setHiddenAsset(_ asset: Photos.PHAsset?, scrollIntoView: Swift.Bool = false)
193
+ @_Concurrency.MainActor @preconcurrency public func frameForAsset(_ asset: Photos.PHAsset) -> CoreFoundation.CGRect?
194
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
195
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
196
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
197
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, sizeForItemAt indexPath: Foundation.IndexPath) -> CoreFoundation.CGSize
198
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLayoutSubviews()
199
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillTransition(to size: CoreFoundation.CGSize, with coordinator: any UIKit.UIViewControllerTransitionCoordinator)
200
+ }
201
+ @available(iOS 15.0, *)
202
+ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UISheetPresentationControllerDelegate {
203
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func sheetPresentationControllerDidChangeSelectedDetentIdentifier(_ sheetPresentationController: UIKit.UISheetPresentationController)
204
+ }
205
+ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UICollectionViewDataSourcePrefetching {
206
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, prefetchItemsAt indexPaths: [Foundation.IndexPath])
207
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cancelPrefetchingForItemsAt indexPaths: [Foundation.IndexPath])
208
+ }
209
+ extension RNAttachmentKit.GalleryBaseViewController : RNAttachmentKit.TelegramGalleryLayoutDelegate {
210
+ @_Concurrency.MainActor @preconcurrency public func isCameraCell(at indexPath: Foundation.IndexPath) -> Swift.Bool
211
+ }
212
+ public protocol TelegramGalleryLayoutDelegate : AnyObject {
213
+ func isCameraCell(at indexPath: Foundation.IndexPath) -> Swift.Bool
214
+ }
215
+ @objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class TelegramGalleryLayout : UIKit.UICollectionViewLayout {
216
+ @_Concurrency.MainActor @preconcurrency weak public var delegate: (any RNAttachmentKit.TelegramGalleryLayoutDelegate)?
217
+ @_Concurrency.MainActor @preconcurrency public var numberOfColumns: Swift.Int
218
+ @_Concurrency.MainActor @preconcurrency public var cellPadding: CoreFoundation.CGFloat
219
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func prepare()
220
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public var collectionViewContentSize: CoreFoundation.CGSize {
221
+ @objc get
222
+ }
223
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func layoutAttributesForElements(in rect: CoreFoundation.CGRect) -> [UIKit.UICollectionViewLayoutAttributes]?
224
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func layoutAttributesForItem(at indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewLayoutAttributes?
225
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func shouldInvalidateLayout(forBoundsChange newBounds: CoreFoundation.CGRect) -> Swift.Bool
226
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func invalidateLayout()
227
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public init()
228
+ @_Concurrency.MainActor @preconcurrency @objc required dynamic public init?(coder: Foundation.NSCoder)
229
+ @objc deinit
230
+ }
231
+ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UIImagePickerControllerDelegate, UIKit.UINavigationControllerDelegate {
232
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func imagePickerController(_ picker: UIKit.UIImagePickerController, didFinishPickingMediaWithInfo info: [UIKit.UIImagePickerController.InfoKey : Any])
233
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func imagePickerControllerDidCancel(_ picker: UIKit.UIImagePickerController)
234
+ }
235
+ extension RNAttachmentKit.GalleryBaseViewController : UIKit.UIAdaptivePresentationControllerDelegate {
236
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func presentationControllerDidDismiss(_ presentationController: UIKit.UIPresentationController)
237
+ }
238
+ @_hasMissingDesignatedInitializers public class LicenseManager {
239
+ public static let shared: RNAttachmentKit.LicenseManager
240
+ public func initialize(with key: Swift.String) -> Swift.Bool
241
+ public func isValidLicense() -> Swift.Bool
242
+ @objc deinit
243
+ }
244
+ @_hasMissingDesignatedInitializers public class ViewerImageCache {
245
+ public static let shared: RNAttachmentKit.ViewerImageCache
246
+ public func hasCache(for url: Swift.String) -> Swift.Bool
247
+ public func getMemoryImage(for url: Swift.String) -> UIKit.UIImage?
248
+ public func getDiskImageSynchronously(for url: Swift.String) -> UIKit.UIImage?
249
+ public func setMemoryImage(_ image: UIKit.UIImage, for url: Swift.String)
250
+ public func saveImage(_ image: UIKit.UIImage, for url: Swift.String)
251
+ @objc deinit
252
+ }
253
+ @objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor @preconcurrency public class RemoteImageViewerViewController : UIKit.UIViewController {
254
+ @_Concurrency.MainActor @preconcurrency public var onPageChanged: ((Swift.Int) -> Swift.Void)?
255
+ @_Concurrency.MainActor @preconcurrency public var prefersPlaceholderThumbnails: Swift.Bool
256
+ @_Concurrency.MainActor @preconcurrency public var hasMoreItems: Swift.Bool {
257
+ get
258
+ set
259
+ }
260
+ @_Concurrency.MainActor @preconcurrency public var titleProvider: ((Swift.Int) -> Swift.String?)?
261
+ @_Concurrency.MainActor @preconcurrency public var deleteOptionsProvider: ((Swift.Int) -> [RNAttachmentKit.RemoteImageViewerViewController.DeleteOption])?
262
+ @_Concurrency.MainActor @preconcurrency public var singleItemActionsOnly: Swift.Bool
263
+ @_Concurrency.MainActor @preconcurrency public var suppressGroupDeleteMessage: Swift.Bool
264
+ @_Concurrency.MainActor @preconcurrency public var onViewerWillClose: (() -> Swift.Void)?
265
+ @_Concurrency.MainActor @preconcurrency public var themeColor: UIKit.UIColor
266
+ @_Concurrency.MainActor @preconcurrency public var languageCode: Swift.String
267
+ @_Concurrency.MainActor @preconcurrency public var viewerTitle: Swift.String?
268
+ @_Concurrency.MainActor @preconcurrency public var placeholderImages: [Swift.String]?
269
+ @_Concurrency.MainActor @preconcurrency public var cacheFiles: [Swift.String]?
270
+ @_Concurrency.MainActor @preconcurrency public var showActionButtons: Swift.Bool
271
+ @_Concurrency.MainActor @preconcurrency public var saveAllText: Swift.String?
272
+ @_Concurrency.MainActor @preconcurrency public var saveOneText: Swift.String?
273
+ @_Concurrency.MainActor @preconcurrency public var shareAllText: Swift.String?
274
+ @_Concurrency.MainActor @preconcurrency public var shareOneText: Swift.String?
275
+ @_Concurrency.MainActor @preconcurrency public var actionCancelText: Swift.String?
276
+ @_Concurrency.MainActor @preconcurrency public var deleteConfirmTitle: Swift.String?
277
+ @_Concurrency.MainActor @preconcurrency public var deleteConfirmMessage: Swift.String?
278
+ @_Concurrency.MainActor @preconcurrency public var deleteConfirmGroupMessage: Swift.String?
279
+ @_Concurrency.MainActor @preconcurrency public var deleteButtonText: Swift.String?
280
+ public struct DeleteOption {
281
+ public let key: Swift.String
282
+ public let label: Swift.String
283
+ public let destructive: Swift.Bool
284
+ public init(key: Swift.String, label: Swift.String, destructive: Swift.Bool)
285
+ }
286
+ @_Concurrency.MainActor @preconcurrency public var deleteOptions: [RNAttachmentKit.RemoteImageViewerViewController.DeleteOption]
287
+ @_Concurrency.MainActor @preconcurrency public var onImageDeleted: ((Swift.Int, Swift.String, Swift.String?) -> Swift.Void)?
288
+ @_Concurrency.MainActor @preconcurrency public var onWillDismissForDelete: (() -> Swift.Void)?
289
+ @_Concurrency.MainActor @preconcurrency public func appendImages(urls: [Swift.String], placeholders: [Swift.String]?, cacheFiles newCacheFiles: [Swift.String]?)
290
+ @_Concurrency.MainActor @preconcurrency public static func isImageCached(for urlString: Swift.String) -> Swift.Bool
291
+ @_Concurrency.MainActor @preconcurrency public static func prefetchImage(from urlString: Swift.String, completion: @escaping (UIKit.UIImage?) -> Swift.Void)
292
+ @_Concurrency.MainActor @preconcurrency public init(imageUrls: [Swift.String], initialIndex: Swift.Int)
293
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLoad()
294
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidLayoutSubviews()
295
+ @objc deinit
296
+ }
297
+ extension RNAttachmentKit.RemoteImageViewerViewController : UIKit.UIGestureRecognizerDelegate {
298
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
299
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func gestureRecognizer(_ gestureRecognizer: UIKit.UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
300
+ }
301
+ extension RNAttachmentKit.RemoteImageViewerViewController : UIKit.UIScrollViewDelegate {
302
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
303
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
304
+ }
305
+ extension RNAttachmentKit.RemoteImageViewerViewController : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegate {
306
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
307
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
308
+ @_Concurrency.MainActor @preconcurrency @objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didSelectItemAt indexPath: Foundation.IndexPath)
309
+ }
310
+ public struct Localizer {
311
+ public static let supportedLanguageCodes: [Swift.String]
312
+ public static func normalize(_ languageCode: Swift.String) -> Swift.String
313
+ public static func getString(key: Swift.String, languageCode: Swift.String) -> Swift.String
314
+ }
315
+ public struct MediaGalleryItem {
316
+ public let id: Swift.String
317
+ public let groupId: Swift.String
318
+ public let timestamp: Swift.Double
319
+ public let thumbUri: Swift.String?
320
+ public let imageUri: Swift.String
321
+ public let cacheFile: Swift.String?
322
+ public let isMine: Swift.Bool
323
+ public let width: Swift.Int?
324
+ public let height: Swift.Int?
325
+ public init(id: Swift.String, groupId: Swift.String, timestamp: Swift.Double, thumbUri: Swift.String?, imageUri: Swift.String, cacheFile: Swift.String? = nil, isMine: Swift.Bool = false, width: Swift.Int? = nil, height: Swift.Int? = nil)
326
+ public init?(dictionary d: [Swift.String : Any])
327
+ public func toDictionary() -> [Swift.String : Any]
328
+ public var localThumbPath: Swift.String? {
329
+ get
330
+ }
331
+ }
332
+ public struct MediaGalleryPage {
333
+ public let items: [RNAttachmentKit.MediaGalleryItem]
334
+ public let nextCursor: Swift.String?
335
+ public let hasMore: Swift.Bool
336
+ public init(items: [RNAttachmentKit.MediaGalleryItem], nextCursor: Swift.String?, hasMore: Swift.Bool)
337
+ }
338
+ public protocol MediaGalleryDataSource : AnyObject {
339
+ func loadPage(params: [Swift.String : Any], cursor: Swift.String?, limit: Swift.Int, completion: @escaping (RNAttachmentKit.MediaGalleryPage) -> Swift.Void)
340
+ }
341
+ public enum MediaGalleryRegistry {
342
+ public static func register(_ name: Swift.String, _ source: any RNAttachmentKit.MediaGalleryDataSource)
343
+ public static func unregister(_ name: Swift.String)
344
+ public static func source(named name: Swift.String) -> (any RNAttachmentKit.MediaGalleryDataSource)?
345
+ }
346
+ public protocol MediaGalleryStoreObserver : AnyObject {
347
+ func mediaGalleryStore(_ store: RNAttachmentKit.MediaGalleryStore, didAppend range: Swift.Range<Swift.Int>)
348
+ func mediaGalleryStore(_ store: RNAttachmentKit.MediaGalleryStore, didRemoveAt indices: [Swift.Int], items: [RNAttachmentKit.MediaGalleryItem])
349
+ func mediaGalleryStoreDidChangeState(_ store: RNAttachmentKit.MediaGalleryStore)
350
+ }
351
+ final public class MediaGalleryStore {
352
+ public enum Source {
353
+ case native(any RNAttachmentKit.MediaGalleryDataSource, params: [Swift.String : Any])
354
+ case javascript
355
+ }
356
+ public static let firstPageLimit: Swift.Int
357
+ public static let nextPageLimit: Swift.Int
358
+ final public let galleryId: Swift.String
359
+ final public var items: [RNAttachmentKit.MediaGalleryItem] {
360
+ get
361
+ }
362
+ final public var hasMore: Swift.Bool {
363
+ get
364
+ }
365
+ final public var isLoading: Swift.Bool {
366
+ get
367
+ }
368
+ final public var didLoadFirstPage: Swift.Bool {
369
+ get
370
+ }
371
+ final public var isClosed: Swift.Bool {
372
+ get
373
+ }
374
+ final public var onNeedPage: ((Swift.String?) -> Swift.Void)?
375
+ public init(galleryId: Swift.String, source: RNAttachmentKit.MediaGalleryStore.Source, initialItems: [RNAttachmentKit.MediaGalleryItem] = [], nextCursor: Swift.String? = nil, hasMore: Swift.Bool = true)
376
+ final public var count: Swift.Int {
377
+ get
378
+ }
379
+ final public func item(at index: Swift.Int) -> RNAttachmentKit.MediaGalleryItem?
380
+ final public func index(ofId id: Swift.String) -> Swift.Int?
381
+ final public func addObserver(_ observer: any RNAttachmentKit.MediaGalleryStoreObserver)
382
+ final public func removeObserver(_ observer: any RNAttachmentKit.MediaGalleryStoreObserver)
383
+ final public func requestNextPage()
384
+ final public func appendExternal(_ page: RNAttachmentKit.MediaGalleryPage)
385
+ @discardableResult
386
+ final public func removeGroups(_ groupIds: Swift.Set<Swift.String>) -> [Swift.Int]
387
+ final public func close()
388
+ @objc deinit
389
+ }
390
+ final public class MediaGalleryDemoDataSource : RNAttachmentKit.MediaGalleryDataSource {
391
+ public static let name: Swift.String
392
+ public init()
393
+ final public func loadPage(params: [Swift.String : Any], cursor: Swift.String?, limit: Swift.Int, completion: @escaping (RNAttachmentKit.MediaGalleryPage) -> Swift.Void)
394
+ @objc deinit
395
+ }
396
+ public struct MediaGalleryTheme {
397
+ public var isDark: Swift.Bool
398
+ public var screenBg: UIKit.UIColor?
399
+ public var cellBg: UIKit.UIColor?
400
+ public var skeleton: UIKit.UIColor?
401
+ public var titleColor: UIKit.UIColor?
402
+ public var subTextColor: UIKit.UIColor?
403
+ public init(isDark: Swift.Bool)
404
+ }
405
+ public enum MediaGalleryGridPreference {
406
+ public static let choices: [Swift.Int]
407
+ public static var saved: Swift.Int? {
408
+ get
409
+ }
410
+ public static func save(_ columns: Swift.Int)
411
+ public static func gridSizeString(_ columns: Swift.Int) -> Swift.String
412
+ }
413
+ public struct MediaGalleryConfig {
414
+ public var galleryId: Swift.String
415
+ public var title: Swift.String
416
+ public var columns: Swift.Int
417
+ public var spacing: CoreFoundation.CGFloat
418
+ public var theme: RNAttachmentKit.MediaGalleryTheme
419
+ public var languageCode: Swift.String
420
+ public var emptyTitle: Swift.String
421
+ public var emptySubtitle: Swift.String
422
+ public var countMoreFormat: Swift.String
423
+ public var viewerOptions: [Swift.String : Any]
424
+ public init(dictionary o: [Swift.String : Any])
425
+ }
426
+ public enum MediaGalleryColor {
427
+ public static func parse(_ string: Swift.String?) -> UIKit.UIColor?
428
+ }
429
+ @objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor @preconcurrency final public class MediaGalleryViewController : UIKit.UIViewController {
430
+ @_Concurrency.MainActor @preconcurrency final public let store: RNAttachmentKit.MediaGalleryStore
431
+ @_Concurrency.MainActor @preconcurrency final public let config: RNAttachmentKit.MediaGalleryConfig
432
+ @_Concurrency.MainActor @preconcurrency final public var onClosed: (() -> Swift.Void)?
433
+ @_Concurrency.MainActor @preconcurrency final public var onItemDeleted: ((RNAttachmentKit.MediaGalleryItem, Swift.String?) -> Swift.Void)?
434
+ @_Concurrency.MainActor @preconcurrency final public var onGridSizeChanged: ((Swift.Int) -> Swift.Void)?
435
+ @_Concurrency.MainActor @preconcurrency final public var columns: Swift.Int {
436
+ get
437
+ }
438
+ @_Concurrency.MainActor @preconcurrency final public var customTransitioningDelegate: any UIKit.UIViewControllerTransitioningDelegate {
439
+ get
440
+ set
441
+ }
442
+ @_Concurrency.MainActor @preconcurrency public init(store: RNAttachmentKit.MediaGalleryStore, config: RNAttachmentKit.MediaGalleryConfig)
443
+ @objc deinit
444
+ @_Concurrency.MainActor @preconcurrency final public func makePresentableController() -> UIKit.UINavigationController
445
+ @_Concurrency.MainActor @preconcurrency @objc override final public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
446
+ @objc get
447
+ }
448
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidLoad()
449
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewWillAppear(_ animated: Swift.Bool)
450
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidAppear(_ animated: Swift.Bool)
451
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidLayoutSubviews()
452
+ @_Concurrency.MainActor @preconcurrency @objc override final public func viewDidDisappear(_ animated: Swift.Bool)
453
+ @_Concurrency.MainActor @preconcurrency final public func setGridColumns(_ n: Swift.Int, userInitiated: Swift.Bool = false)
454
+ @_Concurrency.MainActor @preconcurrency final public func scrollItemIntoViewIfNeeded(_ index: Swift.Int)
455
+ }
456
+ extension RNAttachmentKit.MediaGalleryViewController : RNAttachmentKit.MediaGalleryStoreObserver {
457
+ @_Concurrency.MainActor @preconcurrency final public func mediaGalleryStore(_ store: RNAttachmentKit.MediaGalleryStore, didAppend range: Swift.Range<Swift.Int>)
458
+ @_Concurrency.MainActor @preconcurrency final public func mediaGalleryStore(_ store: RNAttachmentKit.MediaGalleryStore, didRemoveAt indices: [Swift.Int], items: [RNAttachmentKit.MediaGalleryItem])
459
+ @_Concurrency.MainActor @preconcurrency final public func mediaGalleryStoreDidChangeState(_ store: RNAttachmentKit.MediaGalleryStore)
460
+ }
461
+ extension RNAttachmentKit.MediaGalleryViewController : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegate, UIKit.UICollectionViewDataSourcePrefetching {
462
+ @_Concurrency.MainActor @preconcurrency @objc final public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
463
+ @_Concurrency.MainActor @preconcurrency @objc final public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
464
+ @_Concurrency.MainActor @preconcurrency @objc final public func collectionView(_ collectionView: UIKit.UICollectionView, didEndDisplaying cell: UIKit.UICollectionViewCell, forItemAt indexPath: Foundation.IndexPath)
465
+ @_Concurrency.MainActor @preconcurrency @objc final public func collectionView(_ collectionView: UIKit.UICollectionView, shouldHighlightItemAt indexPath: Foundation.IndexPath) -> Swift.Bool
466
+ @_Concurrency.MainActor @preconcurrency @objc final public func collectionView(_ collectionView: UIKit.UICollectionView, didSelectItemAt indexPath: Foundation.IndexPath)
467
+ @_Concurrency.MainActor @preconcurrency @objc final public func collectionView(_ collectionView: UIKit.UICollectionView, prefetchItemsAt indexPaths: [Foundation.IndexPath])
468
+ @_Concurrency.MainActor @preconcurrency @objc final public func collectionView(_ collectionView: UIKit.UICollectionView, cancelPrefetchingForItemsAt indexPaths: [Foundation.IndexPath])
469
+ @_Concurrency.MainActor @preconcurrency @objc final public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
470
+ @_Concurrency.MainActor @preconcurrency @objc final public func scrollViewWillBeginDragging(_ scrollView: UIKit.UIScrollView)
471
+ @_Concurrency.MainActor @preconcurrency @objc final public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
472
+ @_Concurrency.MainActor @preconcurrency @objc final public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
473
+ }
474
+ @_hasMissingDesignatedInitializers public class ImageProcessor {
475
+ public static let shared: RNAttachmentKit.ImageProcessor
476
+ public func applyWatermarkIfNeeded(_ image: UIKit.UIImage) -> UIKit.UIImage
477
+ public func applyEvaluationWatermark(to image: UIKit.UIImage) -> UIKit.UIImage
478
+ @objc deinit
479
+ }
480
+ @_inheritsConvenienceInitializers @objc @_Concurrency.MainActor @preconcurrency public class ImageEditorTransitionDelegate : ObjectiveC.NSObject, UIKit.UIViewControllerTransitioningDelegate {
481
+ @_Concurrency.MainActor @preconcurrency public var sourceFrame: CoreFoundation.CGRect
482
+ @_Concurrency.MainActor @preconcurrency public var sourceImage: UIKit.UIImage?
483
+ @_Concurrency.MainActor @preconcurrency public var uncroppedImage: UIKit.UIImage?
484
+ @_Concurrency.MainActor @preconcurrency public var assetAspectRatio: CoreFoundation.CGFloat
485
+ @_Concurrency.MainActor @preconcurrency public var asset: Photos.PHAsset?
486
+ @_Concurrency.MainActor @preconcurrency public var frameProvider: ((Photos.PHAsset) -> CoreFoundation.CGRect?)?
487
+ @_Concurrency.MainActor @preconcurrency public var disablePresentationAnimation: Swift.Bool
488
+ @_Concurrency.MainActor @preconcurrency public var onCurrentAssetChanged: ((Photos.PHAsset) -> Swift.Void)?
489
+ @_Concurrency.MainActor @preconcurrency public var onEditorClosed: (() -> Swift.Void)?
490
+ @_Concurrency.MainActor @preconcurrency public var openDuration: Swift.Double
491
+ @_Concurrency.MainActor @preconcurrency public var closeDuration: Swift.Double
492
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public init()
493
+ @_Concurrency.MainActor @preconcurrency @objc public func animationController(forPresented presented: UIKit.UIViewController, presenting: UIKit.UIViewController, source: UIKit.UIViewController) -> (any UIKit.UIViewControllerAnimatedTransitioning)?
494
+ @_Concurrency.MainActor @preconcurrency @objc public func animationController(forDismissed dismissed: UIKit.UIViewController) -> (any UIKit.UIViewControllerAnimatedTransitioning)?
495
+ @objc deinit
496
+ }
497
+ @objc @_inheritsConvenienceInitializers @_Concurrency.MainActor @preconcurrency public class ZoomTransitionAnimator : ObjectiveC.NSObject, UIKit.UIViewControllerAnimatedTransitioning {
498
+ @_Concurrency.MainActor @preconcurrency public var isPresenting: Swift.Bool
499
+ @_Concurrency.MainActor @preconcurrency public var sourceRect: CoreFoundation.CGRect
500
+ @_Concurrency.MainActor @preconcurrency public var sourceImage: UIKit.UIImage?
501
+ @_Concurrency.MainActor @preconcurrency public var imageAspectRatio: CoreFoundation.CGFloat?
502
+ @_Concurrency.MainActor @preconcurrency public var animationType: Swift.String
503
+ @_Concurrency.MainActor @preconcurrency public var closeAnimationType: Swift.String?
504
+ @_Concurrency.MainActor @preconcurrency public var sourceBorderRadius: CoreFoundation.CGFloat
505
+ @_Concurrency.MainActor @preconcurrency public var sourceBorderCorners: QuartzCore.CACornerMask
506
+ @_Concurrency.MainActor @preconcurrency public var sourceBackgroundColor: UIKit.UIColor
507
+ @_Concurrency.MainActor @preconcurrency public var fadeOutOnDismiss: Swift.Bool
508
+ @_Concurrency.MainActor @preconcurrency public func updateMaskView()
509
+ @_Concurrency.MainActor @preconcurrency public var openDuration: Swift.Double
510
+ @_Concurrency.MainActor @preconcurrency public var closeDuration: Swift.Double
511
+ @_Concurrency.MainActor @preconcurrency @objc public func transitionDuration(using transitionContext: (any UIKit.UIViewControllerContextTransitioning)?) -> Foundation.TimeInterval
512
+ @_Concurrency.MainActor @preconcurrency @objc public func animateTransition(using transitionContext: any UIKit.UIViewControllerContextTransitioning)
513
+ @_Concurrency.MainActor @preconcurrency @objc override dynamic public init()
514
+ @objc deinit
515
+ }
516
+ extension RNAttachmentKit.ImageEditorTransitionDelegate : Swift.Sendable {}
517
+ extension RNAttachmentKit.ZoomTransitionAnimator : Swift.Sendable {}
@@ -0,0 +1,3 @@
1
+ framework module RNAttachmentKit {
2
+ header "RNAttachmentKit-Swift.h"
3
+ }