iamport-react-native 2.0.14 → 3.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 (426) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +12 -2
  3. package/lib/commonjs/components/Certification/index.js +69 -69
  4. package/lib/commonjs/components/Certification/index.js.map +1 -1
  5. package/lib/commonjs/components/ErrorOnParams/index.js +10 -9
  6. package/lib/commonjs/components/ErrorOnParams/index.js.map +1 -1
  7. package/lib/commonjs/components/Loading/index.js +10 -9
  8. package/lib/commonjs/components/Loading/index.js.map +1 -1
  9. package/lib/commonjs/components/Payment/index.js +91 -92
  10. package/lib/commonjs/components/Payment/index.js.map +1 -1
  11. package/lib/commonjs/constants/index.js.map +1 -1
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/commonjs/package.json +1 -0
  14. package/lib/commonjs/styles.js.map +1 -1
  15. package/lib/commonjs/utils/IamportUrl.js +48 -29
  16. package/lib/commonjs/utils/IamportUrl.js.map +1 -1
  17. package/lib/commonjs/utils/Validation.js +1 -2
  18. package/lib/commonjs/utils/Validation.js.map +1 -1
  19. package/lib/commonjs/utils/ValidationForPayment.js.map +1 -1
  20. package/lib/module/components/Certification/index.js +75 -72
  21. package/lib/module/components/Certification/index.js.map +1 -1
  22. package/lib/module/components/ErrorOnParams/index.js +13 -9
  23. package/lib/module/components/ErrorOnParams/index.js.map +1 -1
  24. package/lib/module/components/Loading/index.js +13 -9
  25. package/lib/module/components/Loading/index.js.map +1 -1
  26. package/lib/module/components/Payment/index.js +95 -93
  27. package/lib/module/components/Payment/index.js.map +1 -1
  28. package/lib/module/constants/index.js +2 -0
  29. package/lib/module/constants/index.js.map +1 -1
  30. package/lib/module/index.js +6 -4
  31. package/lib/module/index.js.map +1 -1
  32. package/lib/module/package.json +1 -0
  33. package/lib/module/styles.js +2 -0
  34. package/lib/module/styles.js.map +1 -1
  35. package/lib/module/utils/IamportUrl.js +51 -29
  36. package/lib/module/utils/IamportUrl.js.map +1 -1
  37. package/lib/module/utils/Validation.js +3 -2
  38. package/lib/module/utils/Validation.js.map +1 -1
  39. package/lib/module/utils/ValidationForPayment.js +4 -2
  40. package/lib/module/utils/ValidationForPayment.js.map +1 -1
  41. package/lib/typescript/package.json +1 -0
  42. package/lib/typescript/{components → src/components}/Certification/index.d.ts +1 -2
  43. package/lib/typescript/src/components/Certification/index.d.ts.map +1 -0
  44. package/lib/typescript/src/components/ErrorOnParams/index.d.ts +6 -0
  45. package/lib/typescript/src/components/ErrorOnParams/index.d.ts.map +1 -0
  46. package/lib/typescript/src/components/Loading/index.d.ts +3 -0
  47. package/lib/typescript/src/components/Loading/index.d.ts.map +1 -0
  48. package/lib/typescript/{components → src/components}/Payment/index.d.ts +1 -2
  49. package/lib/typescript/src/components/Payment/index.d.ts.map +1 -0
  50. package/lib/typescript/src/constants/index.d.ts.map +1 -0
  51. package/lib/typescript/src/index.d.ts.map +1 -0
  52. package/lib/typescript/{styles.d.ts → src/styles.d.ts} +2 -2
  53. package/lib/typescript/src/styles.d.ts.map +1 -0
  54. package/lib/typescript/{utils → src/utils}/IamportUrl.d.ts +8 -7
  55. package/lib/typescript/src/utils/IamportUrl.d.ts.map +1 -0
  56. package/lib/typescript/src/utils/Validation.d.ts.map +1 -0
  57. package/lib/typescript/src/utils/ValidationForPayment.d.ts.map +1 -0
  58. package/package.json +91 -64
  59. package/src/components/Certification/index.tsx +7 -7
  60. package/src/components/ErrorOnParams/index.tsx +1 -2
  61. package/src/components/Loading/index.tsx +1 -2
  62. package/src/components/Payment/index.tsx +6 -6
  63. package/src/utils/IamportUrl.ts +54 -26
  64. package/.circleci/config.yml +0 -98
  65. package/.editorconfig +0 -15
  66. package/.gitattributes +0 -3
  67. package/.gitignore +0 -69
  68. package/.yarnrc +0 -3
  69. package/.yarnrc.yml +0 -1
  70. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  71. package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
  72. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  73. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  74. package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
  75. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  76. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  77. package/android/.gradle/8.9/gc.properties +0 -0
  78. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  79. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  80. package/android/.gradle/vcs-1/gc.properties +0 -0
  81. package/android/build.gradle +0 -128
  82. package/android/gradle.properties +0 -4
  83. package/android/src/main/AndroidManifest.xml +0 -4
  84. package/android/src/main/java/com/iamportreactnative/IamportReactNativePackage.kt +0 -17
  85. package/android/src/main/java/com/iamportreactnative/IamportReactNativeViewManager.kt +0 -20
  86. package/babel.config.js +0 -3
  87. package/example/.gitignore +0 -69
  88. package/example/README.md +0 -44
  89. package/example/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
  90. package/example/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
  91. package/example/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
  92. package/example/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  93. package/example/android/.gradle/7.5.1/dependencies-accessors/gc.properties +0 -0
  94. package/example/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
  95. package/example/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
  96. package/example/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
  97. package/example/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
  98. package/example/android/.gradle/7.5.1/gc.properties +0 -0
  99. package/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  100. package/example/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  101. package/example/android/.gradle/vcs-1/gc.properties +0 -0
  102. package/example/android/app/build.gradle +0 -183
  103. package/example/android/app/debug.keystore +0 -0
  104. package/example/android/app/proguard-rules.pro +0 -10
  105. package/example/android/app/src/debug/AndroidManifest.xml +0 -8
  106. package/example/android/app/src/debug/java/com/example/iamportreactnative/ReactNativeFlipper.java +0 -69
  107. package/example/android/app/src/main/AndroidManifest.xml +0 -34
  108. package/example/android/app/src/main/java/com/example/iamportreactnative/MainActivity.java +0 -15
  109. package/example/android/app/src/main/java/com/example/iamportreactnative/MainApplication.java +0 -80
  110. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  111. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  112. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  113. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  114. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  115. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  116. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  117. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  118. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  119. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  120. package/example/android/app/src/main/res/values/strings.xml +0 -3
  121. package/example/android/app/src/main/res/values/styles.xml +0 -9
  122. package/example/android/build.gradle +0 -21
  123. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  124. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  125. package/example/android/gradle.properties +0 -44
  126. package/example/android/gradlew +0 -183
  127. package/example/android/gradlew.bat +0 -103
  128. package/example/android/settings.gradle +0 -9
  129. package/example/app.json +0 -4
  130. package/example/babel.config.js +0 -11
  131. package/example/index.js +0 -5
  132. package/example/ios/File.swift +0 -8
  133. package/example/ios/Gemfile +0 -7
  134. package/example/ios/Gemfile.lock +0 -99
  135. package/example/ios/IamportReactNativeExample/AppDelegate.h +0 -15
  136. package/example/ios/IamportReactNativeExample/AppDelegate.mm +0 -138
  137. package/example/ios/IamportReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  138. package/example/ios/IamportReactNativeExample/Images.xcassets/Contents.json +0 -6
  139. package/example/ios/IamportReactNativeExample/Info.plist +0 -121
  140. package/example/ios/IamportReactNativeExample/LaunchScreen.storyboard +0 -58
  141. package/example/ios/IamportReactNativeExample/main.m +0 -16
  142. package/example/ios/IamportReactNativeExample-Bridging-Header.h +0 -3
  143. package/example/ios/IamportReactNativeExample.xcodeproj/project.pbxproj +0 -969
  144. package/example/ios/IamportReactNativeExample.xcodeproj/xcshareddata/xcschemes/IamportReactNativeExample.xcscheme +0 -99
  145. package/example/ios/IamportReactNativeExample.xcworkspace/contents.xcworkspacedata +0 -10
  146. package/example/ios/IamportReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  147. package/example/ios/Podfile +0 -57
  148. package/example/ios/Podfile.lock +0 -756
  149. package/example/metro.config.js +0 -66
  150. package/example/package.json +0 -40
  151. package/example/src/App.tsx +0 -17
  152. package/example/src/Certification/index.tsx +0 -30
  153. package/example/src/CertificationResult/index.tsx +0 -79
  154. package/example/src/CertificationTest/index.tsx +0 -214
  155. package/example/src/Home/index.tsx +0 -87
  156. package/example/src/Loading/index.tsx +0 -12
  157. package/example/src/NavigationService.tsx +0 -127
  158. package/example/src/Payment/index.tsx +0 -28
  159. package/example/src/PaymentResult/index.tsx +0 -96
  160. package/example/src/PaymentTest/index.tsx +0 -383
  161. package/example/src/Picker/index.tsx +0 -60
  162. package/example/src/constants.ts +0 -274
  163. package/example/src/utils.ts +0 -83
  164. package/example/yarn.lock +0 -7358
  165. package/exampleForExpo/.buckconfig +0 -6
  166. package/exampleForExpo/.expo/README.md +0 -8
  167. package/exampleForExpo/.expo/devices.json +0 -3
  168. package/exampleForExpo/.gitattributes +0 -1
  169. package/exampleForExpo/.gitignore +0 -125
  170. package/exampleForExpo/.idea/.gitignore +0 -3
  171. package/exampleForExpo/.idea/caches/deviceStreaming.xml +0 -549
  172. package/exampleForExpo/.idea/exampleForExpo.iml +0 -9
  173. package/exampleForExpo/.idea/misc.xml +0 -6
  174. package/exampleForExpo/.idea/modules.xml +0 -8
  175. package/exampleForExpo/.idea/vcs.xml +0 -6
  176. package/exampleForExpo/.idea/workspace.xml +0 -53
  177. package/exampleForExpo/README.md +0 -58
  178. package/exampleForExpo/__tests__/App.js +0 -10
  179. package/exampleForExpo/android/.gitignore +0 -21
  180. package/exampleForExpo/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
  181. package/exampleForExpo/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
  182. package/exampleForExpo/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
  183. package/exampleForExpo/android/.gradle/7.5.1/gc.properties +0 -0
  184. package/exampleForExpo/android/.gradle/vcs-1/gc.properties +0 -0
  185. package/exampleForExpo/android/app/BUCK +0 -55
  186. package/exampleForExpo/android/app/build.gradle +0 -362
  187. package/exampleForExpo/android/app/build_defs.bzl +0 -19
  188. package/exampleForExpo/android/app/debug.keystore +0 -0
  189. package/exampleForExpo/android/app/proguard-rules.pro +0 -14
  190. package/exampleForExpo/android/app/src/debug/AndroidManifest.xml +0 -7
  191. package/exampleForExpo/android/app/src/debug/java/kr/iamport/exampleForExpo/ReactNativeFlipper.java +0 -69
  192. package/exampleForExpo/android/app/src/main/AndroidManifest.xml +0 -34
  193. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainActivity.java +0 -83
  194. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/MainApplication.java +0 -106
  195. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/MainApplicationReactNativeHost.java +0 -117
  196. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/components/MainComponentsRegistry.java +0 -36
  197. package/exampleForExpo/android/app/src/main/java/kr/iamport/exampleForExpo/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
  198. package/exampleForExpo/android/app/src/main/jni/CMakeLists.txt +0 -7
  199. package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -32
  200. package/exampleForExpo/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
  201. package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
  202. package/exampleForExpo/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
  203. package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.cpp +0 -65
  204. package/exampleForExpo/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
  205. package/exampleForExpo/android/app/src/main/jni/OnLoad.cpp +0 -11
  206. package/exampleForExpo/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  207. package/exampleForExpo/android/app/src/main/res/drawable/splashscreen.xml +0 -4
  208. package/exampleForExpo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  209. package/exampleForExpo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  210. package/exampleForExpo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  211. package/exampleForExpo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  212. package/exampleForExpo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  213. package/exampleForExpo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  214. package/exampleForExpo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  215. package/exampleForExpo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  216. package/exampleForExpo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  217. package/exampleForExpo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  218. package/exampleForExpo/android/app/src/main/res/values/colors.xml +0 -4
  219. package/exampleForExpo/android/app/src/main/res/values/strings.xml +0 -3
  220. package/exampleForExpo/android/app/src/main/res/values/styles.xml +0 -17
  221. package/exampleForExpo/android/app/src/main/res/values-night/colors.xml +0 -1
  222. package/exampleForExpo/android/build.gradle +0 -65
  223. package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  224. package/exampleForExpo/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  225. package/exampleForExpo/android/gradle.properties +0 -53
  226. package/exampleForExpo/android/gradlew +0 -240
  227. package/exampleForExpo/android/gradlew.bat +0 -91
  228. package/exampleForExpo/android/settings.gradle +0 -17
  229. package/exampleForExpo/app.json +0 -16
  230. package/exampleForExpo/babel.config.js +0 -11
  231. package/exampleForExpo/index.js +0 -9
  232. package/exampleForExpo/ios/.gitignore +0 -30
  233. package/exampleForExpo/ios/.xcode.env +0 -11
  234. package/exampleForExpo/ios/Podfile +0 -61
  235. package/exampleForExpo/ios/Podfile.lock +0 -734
  236. package/exampleForExpo/ios/Podfile.properties.json +0 -3
  237. package/exampleForExpo/ios/exampleForExpo/AppDelegate.h +0 -9
  238. package/exampleForExpo/ios/exampleForExpo/AppDelegate.mm +0 -166
  239. package/exampleForExpo/ios/exampleForExpo/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  240. package/exampleForExpo/ios/exampleForExpo/Images.xcassets/Contents.json +0 -6
  241. package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
  242. package/exampleForExpo/ios/exampleForExpo/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
  243. package/exampleForExpo/ios/exampleForExpo/Info.plist +0 -118
  244. package/exampleForExpo/ios/exampleForExpo/SplashScreen.storyboard +0 -43
  245. package/exampleForExpo/ios/exampleForExpo/Supporting/Expo.plist +0 -16
  246. package/exampleForExpo/ios/exampleForExpo/exampleForExpo.entitlements +0 -8
  247. package/exampleForExpo/ios/exampleForExpo/main.m +0 -10
  248. package/exampleForExpo/ios/exampleForExpo/noop-file.swift +0 -4
  249. package/exampleForExpo/ios/exampleForExpo.xcodeproj/project.pbxproj +0 -544
  250. package/exampleForExpo/ios/exampleForExpo.xcodeproj/xcshareddata/xcschemes/exampleForExpo.xcscheme +0 -88
  251. package/exampleForExpo/ios/exampleForExpo.xcworkspace/contents.xcworkspacedata +0 -10
  252. package/exampleForExpo/ios/exampleForExpo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  253. package/exampleForExpo/metro.config.js +0 -62
  254. package/exampleForExpo/package.json +0 -40
  255. package/exampleForExpo/src/App.js +0 -14
  256. package/exampleForExpo/src/Certification/index.js +0 -25
  257. package/exampleForExpo/src/CertificationResult/index.js +0 -61
  258. package/exampleForExpo/src/CertificationTest/index.js +0 -151
  259. package/exampleForExpo/src/Home/index.js +0 -80
  260. package/exampleForExpo/src/Loading/index.js +0 -10
  261. package/exampleForExpo/src/NavigationService.js +0 -102
  262. package/exampleForExpo/src/Payment/index.js +0 -23
  263. package/exampleForExpo/src/PaymentResult/index.js +0 -82
  264. package/exampleForExpo/src/PaymentTest/index.js +0 -313
  265. package/exampleForExpo/src/Picker/index.js +0 -19
  266. package/exampleForExpo/src/constants.js +0 -322
  267. package/exampleForExpo/src/utils.js +0 -116
  268. package/exampleForExpo/yarn.lock +0 -9498
  269. package/exampleForManagedExpo/.expo-shared/assets.json +0 -4
  270. package/exampleForManagedExpo/.gitignore +0 -22
  271. package/exampleForManagedExpo/App.js +0 -11
  272. package/exampleForManagedExpo/README.md +0 -33
  273. package/exampleForManagedExpo/app.json +0 -90
  274. package/exampleForManagedExpo/assets/adaptive-icon.png +0 -0
  275. package/exampleForManagedExpo/assets/favicon.png +0 -0
  276. package/exampleForManagedExpo/assets/icon.png +0 -0
  277. package/exampleForManagedExpo/assets/splash.png +0 -0
  278. package/exampleForManagedExpo/babel.config.js +0 -11
  279. package/exampleForManagedExpo/metro.config.js +0 -62
  280. package/exampleForManagedExpo/package.json +0 -36
  281. package/exampleForManagedExpo/src/Certification/index.js +0 -25
  282. package/exampleForManagedExpo/src/CertificationResult/index.js +0 -61
  283. package/exampleForManagedExpo/src/CertificationTest/index.js +0 -151
  284. package/exampleForManagedExpo/src/Home/index.js +0 -80
  285. package/exampleForManagedExpo/src/Loading/index.js +0 -10
  286. package/exampleForManagedExpo/src/NavigationService.js +0 -102
  287. package/exampleForManagedExpo/src/Payment/index.js +0 -23
  288. package/exampleForManagedExpo/src/PaymentResult/index.js +0 -82
  289. package/exampleForManagedExpo/src/PaymentTest/index.js +0 -313
  290. package/exampleForManagedExpo/src/Picker/index.js +0 -19
  291. package/exampleForManagedExpo/src/constants.js +0 -322
  292. package/exampleForManagedExpo/src/utils.js +0 -116
  293. package/exampleForManagedExpo/yarn.lock +0 -9411
  294. package/exampleForWebView/.buckconfig +0 -6
  295. package/exampleForWebView/.eslintrc.js +0 -4
  296. package/exampleForWebView/.gitattributes +0 -3
  297. package/exampleForWebView/.gitignore +0 -68
  298. package/exampleForWebView/.prettierrc.js +0 -7
  299. package/exampleForWebView/.watchmanconfig +0 -1
  300. package/exampleForWebView/README.md +0 -77
  301. package/exampleForWebView/__tests__/App-test.tsx +0 -14
  302. package/exampleForWebView/_editorconfig +0 -3
  303. package/exampleForWebView/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
  304. package/exampleForWebView/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
  305. package/exampleForWebView/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
  306. package/exampleForWebView/android/.gradle/7.5.1/gc.properties +0 -0
  307. package/exampleForWebView/android/.gradle/vcs-1/gc.properties +0 -0
  308. package/exampleForWebView/android/app/BUCK +0 -55
  309. package/exampleForWebView/android/app/build.gradle +0 -313
  310. package/exampleForWebView/android/app/build_defs.bzl +0 -19
  311. package/exampleForWebView/android/app/debug.keystore +0 -0
  312. package/exampleForWebView/android/app/proguard-rules.pro +0 -10
  313. package/exampleForWebView/android/app/src/debug/AndroidManifest.xml +0 -13
  314. package/exampleForWebView/android/app/src/debug/java/com/exampleforwebview/ReactNativeFlipper.java +0 -73
  315. package/exampleForWebView/android/app/src/main/AndroidManifest.xml +0 -26
  316. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainActivity.java +0 -48
  317. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/MainApplication.java +0 -91
  318. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/MainApplicationReactNativeHost.java +0 -116
  319. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/components/MainComponentsRegistry.java +0 -36
  320. package/exampleForWebView/android/app/src/main/java/com/exampleforwebview/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
  321. package/exampleForWebView/android/app/src/main/jni/CMakeLists.txt +0 -7
  322. package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -32
  323. package/exampleForWebView/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
  324. package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
  325. package/exampleForWebView/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
  326. package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.cpp +0 -65
  327. package/exampleForWebView/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
  328. package/exampleForWebView/android/app/src/main/jni/OnLoad.cpp +0 -11
  329. package/exampleForWebView/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  330. package/exampleForWebView/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  331. package/exampleForWebView/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  332. package/exampleForWebView/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  333. package/exampleForWebView/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  334. package/exampleForWebView/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  335. package/exampleForWebView/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  336. package/exampleForWebView/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  337. package/exampleForWebView/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  338. package/exampleForWebView/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  339. package/exampleForWebView/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  340. package/exampleForWebView/android/app/src/main/res/values/strings.xml +0 -3
  341. package/exampleForWebView/android/app/src/main/res/values/styles.xml +0 -9
  342. package/exampleForWebView/android/build.gradle +0 -51
  343. package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  344. package/exampleForWebView/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  345. package/exampleForWebView/android/gradle.properties +0 -40
  346. package/exampleForWebView/android/gradlew +0 -234
  347. package/exampleForWebView/android/gradlew.bat +0 -89
  348. package/exampleForWebView/android/settings.gradle +0 -11
  349. package/exampleForWebView/app.json +0 -4
  350. package/exampleForWebView/babel.config.js +0 -11
  351. package/exampleForWebView/index.js +0 -9
  352. package/exampleForWebView/ios/.xcode.env +0 -11
  353. package/exampleForWebView/ios/Podfile +0 -43
  354. package/exampleForWebView/ios/Podfile.lock +0 -748
  355. package/exampleForWebView/ios/exampleForWebView/AppDelegate.h +0 -8
  356. package/exampleForWebView/ios/exampleForWebView/AppDelegate.mm +0 -133
  357. package/exampleForWebView/ios/exampleForWebView/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  358. package/exampleForWebView/ios/exampleForWebView/Images.xcassets/Contents.json +0 -6
  359. package/exampleForWebView/ios/exampleForWebView/Info.plist +0 -96
  360. package/exampleForWebView/ios/exampleForWebView/LaunchScreen.storyboard +0 -47
  361. package/exampleForWebView/ios/exampleForWebView/main.m +0 -10
  362. package/exampleForWebView/ios/exampleForWebView.xcodeproj/project.pbxproj +0 -723
  363. package/exampleForWebView/ios/exampleForWebView.xcodeproj/xcshareddata/xcschemes/exampleForWebView.xcscheme +0 -88
  364. package/exampleForWebView/ios/exampleForWebView.xcworkspace/contents.xcworkspacedata +0 -10
  365. package/exampleForWebView/ios/exampleForWebView.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  366. package/exampleForWebView/ios/exampleForWebViewTests/Info.plist +0 -24
  367. package/exampleForWebView/ios/exampleForWebViewTests/exampleForWebViewTests.m +0 -66
  368. package/exampleForWebView/manuals/CERTIFICATION.md +0 -223
  369. package/exampleForWebView/manuals/PAYMENT.md +0 -232
  370. package/exampleForWebView/metro.config.js +0 -61
  371. package/exampleForWebView/package.json +0 -54
  372. package/exampleForWebView/src/App.tsx +0 -50
  373. package/exampleForWebView/src/Certification.tsx +0 -54
  374. package/exampleForWebView/src/Home.tsx +0 -49
  375. package/exampleForWebView/src/Loading.tsx +0 -23
  376. package/exampleForWebView/src/Payment.tsx +0 -65
  377. package/exampleForWebView/yarn.lock +0 -7362
  378. package/iamport-react-native.podspec +0 -19
  379. package/ios/IamportReactNative-Bridging-Header.h +0 -1
  380. package/ios/IamportReactNative.xcodeproj/project.pbxproj +0 -293
  381. package/ios/IamportReactNativeViewManager.m +0 -12
  382. package/ios/IamportReactNativeViewManager.swift +0 -32
  383. package/lib/typescript/components/Certification/index.d.ts.map +0 -1
  384. package/lib/typescript/components/ErrorOnParams/index.d.ts +0 -7
  385. package/lib/typescript/components/ErrorOnParams/index.d.ts.map +0 -1
  386. package/lib/typescript/components/Loading/index.d.ts +0 -4
  387. package/lib/typescript/components/Loading/index.d.ts.map +0 -1
  388. package/lib/typescript/components/Payment/index.d.ts.map +0 -1
  389. package/lib/typescript/constants/index.d.ts.map +0 -1
  390. package/lib/typescript/index.d.ts.map +0 -1
  391. package/lib/typescript/styles.d.ts.map +0 -1
  392. package/lib/typescript/utils/IamportUrl.d.ts.map +0 -1
  393. package/lib/typescript/utils/Validation.d.ts.map +0 -1
  394. package/lib/typescript/utils/ValidationForPayment.d.ts.map +0 -1
  395. package/manuals/CALLBACK.md +0 -72
  396. package/manuals/EXAMPLE.md +0 -168
  397. package/manuals/EXPO.md +0 -246
  398. package/manuals/INSTALL.md +0 -31
  399. package/manuals/SETTING.md +0 -140
  400. package/manuals/SUPPORT.md +0 -35
  401. package/manuals/TRANS.md +0 -77
  402. package/manuals/VERSION.md +0 -184
  403. package/manuals/assets/after-linking-iamport.png +0 -0
  404. package/manuals/assets/after-linking-webview.png +0 -0
  405. package/manuals/assets/allow-arbitrary.gif +0 -0
  406. package/manuals/assets/android-studio-avd-manager.png +0 -0
  407. package/manuals/assets/android-studio-build.png +0 -0
  408. package/manuals/assets/app-scheme-registry.gif +0 -0
  409. package/manuals/assets/expo-eject.png +0 -0
  410. package/manuals/assets/ios-emulator-certification.png +0 -0
  411. package/manuals/assets/ios-emulator-home.png +0 -0
  412. package/manuals/assets/ios-emulator-payment.png +0 -0
  413. package/manuals/assets/ios-trans-create-header-file-1.png +0 -0
  414. package/manuals/assets/ios-trans-create-header-file-2.png +0 -0
  415. package/manuals/assets/ios-trans-create-objectivec-file-1.png +0 -0
  416. package/manuals/assets/ios-trans-create-objectivec-file-2.png +0 -0
  417. package/manuals/assets/ios-trans-result.png +0 -0
  418. package/manuals/assets/webview-peer-dependency.png +0 -0
  419. package/scripts/bootstrap.js +0 -24
  420. package/tsconfig.build.json +0 -9
  421. package/tsconfig.json +0 -26
  422. package/yarn.lock +0 -6174
  423. /package/lib/typescript/{constants → src/constants}/index.d.ts +0 -0
  424. /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
  425. /package/lib/typescript/{utils → src/utils}/Validation.d.ts +0 -0
  426. /package/lib/typescript/{utils → src/utils}/ValidationForPayment.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["Validation","constructor","userCode","loading","callback","data","isValid","message","validateUserCode","validateLoading","undefined","validateCallback","validateData","_this$data","popup","getIsValid","getMessage","IMPData","_IMPData","CertificationData","carrier","company","merchant_uid","name","phone","pg","min_age","m_redirect_url","PaymentData","amount","buyer_email","buyer_name","buyer_tel","escrow","pay_method","language","naverPopupMode","naverProducts","naverUseCfm","niceMobileV2","notice_url","currency","custom_data","customer_uid","digital","display","buyer_postcode","app_scheme","biz_num","buyer_addr","tax_free","vbank_due","bypass"],"sourceRoot":"../../../src","sources":["utils/Validation.ts"],"mappings":"AAAA,MAAMA,UAAU,CAAC;EAQfC,WAAWA,CACTC,QAAgB,EAChBC,OAAe,EACfC,QAAiC,EACjCC,IAAsD,EACtD;IACA,IAAI,CAACH,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,IAAI,GAAGA,IAAI;IAEhB,IAAI,CAACC,OAAO,GAAG,IAAI;IACnB,IAAI,CAACC,OAAO,GAAG,EAAE;IAEjB,IAAI,CAACC,gBAAgB,CAAC,CAAC;EACzB;EAEAA,gBAAgBA,CAAA,EAAG;IACjB,IAAI,CAAC,IAAI,CAACN,QAAQ,EAAE;MAClB,IAAI,CAACI,OAAO,GAAG,KAAK;MACpB,IAAI,CAACC,OAAO,GAAG,8BAA8B;MAC7C;IACF;IACA,IAAI,CAACE,eAAe,CAAC,CAAC;EACxB;EAEAA,eAAeA,CAAA,EAAG;IAChB,IAAI,IAAI,CAACN,OAAO,KAAKO,SAAS,IAAI,OAAO,IAAI,CAACP,OAAO,KAAK,QAAQ,EAAE;MAClE,IAAI,CAACG,OAAO,GAAG,KAAK;MACpB,IAAI,CAACC,OAAO,GAAG,8BAA8B;MAC7C;IACF;IACA,IAAI,CAACI,gBAAgB,CAAC,CAAC;EACzB;EAEAA,gBAAgBA,CAAA,EAAG;IACjB,IAAI,IAAI,CAACP,QAAQ,KAAKM,SAAS,IAAI,OAAO,IAAI,CAACN,QAAQ,KAAK,UAAU,EAAE;MACtE,IAAI,CAACE,OAAO,GAAG,KAAK;MAC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CAACX,KAAK,GAAGA,KAAK;MAClB,IAAI,CAACoC,QAAQ,GAAGA,QAAQ;MACxB,IAAI,CAACC,SAAS,GAAGA,SAAS;MAC1B,IAAI,CAACC,MAAM,GAAGA,MAAM;IACtB;IAuBAb,YAAY,GAAa,IAAI;EAa/B;EAACrB,QAAA,CAAAU,WAAA,GAAAA,WAAA;AAAA,GA5LOX,OAAO,KAAPA,OAAO;AA+LjB,SAASjB,UAAU,EAAEiB,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["Validation","constructor","userCode","loading","callback","data","isValid","message","validateUserCode","validateLoading","undefined","validateCallback","validateData","popup","getIsValid","getMessage","IMPData","_IMPData","CertificationData","carrier","company","merchant_uid","name","phone","pg","min_age","m_redirect_url","PaymentData","amount","buyer_email","buyer_name","buyer_tel","escrow","pay_method","language","naverPopupMode","naverProducts","naverUseCfm","niceMobileV2","notice_url","currency","custom_data","customer_uid","digital","display","buyer_postcode","app_scheme","biz_num","buyer_addr","tax_free","vbank_due","bypass"],"sourceRoot":"../../../src","sources":["utils/Validation.ts"],"mappings":";;AAAA,MAAMA,UAAU,CAAC;EAQfC,WAAWA,CACTC,QAAgB,EAChBC,OAAe,EACfC,QAAiC,EACjCC,IAAsD,EACtD;IACA,IAAI,CAACH,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,IAAI,GAAGA,IAAI;IAEhB,IAAI,CAACC,OAAO,GAAG,IAAI;IACnB,IAAI,CAACC,OAAO,GAAG,EAAE;IAEjB,IAAI,CAACC,gBAAgB,CAAC,CAAC;EACzB;EAEAA,gBAAgBA,CAAA,EAAG;IACjB,IAAI,CAAC,IAAI,CAACN,QAAQ,EAAE;MAClB,IAAI,CAACI,OAAO,GAAG,KAAK;MACpB,IAAI,CAACC,OAAO,GAAG,8BAA8B;MAC7C;IACF;IACA,IAAI,CAACE,eAAe,CAAC,CAAC;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cAAc;MACpC,IAAI,CAACL,YAAY,GAAGA,YAAY;MAChC,IAAI,CAACC,IAAI,GAAGA,IAAI;MAChB,IAAI,CAACa,cAAc,GAAGA,cAAc;MACpC,IAAI,CAACC,aAAa,GAAGA,aAAa;MAClC,IAAI,CAACC,WAAW,GAAGA,WAAW;MAC9B,IAAI,CAACC,YAAY,GAAGA,YAAY;MAChC,IAAI,CAACC,UAAU,GAAGA,UAAU;MAC5B,IAAI,CAACN,UAAU,GAAGA,UAAU;MAC5B,IAAI,CAACT,EAAE,GAAGA,EAAE;MACZ,IAAI,CAACX,KAAK,GAAGA,KAAK;MAClB,IAAI,CAACoC,QAAQ,GAAGA,QAAQ;MACxB,IAAI,CAACC,SAAS,GAAGA,SAAS;MAC1B,IAAI,CAACC,MAAM,GAAGA,MAAM;IACtB;IAuBAb,YAAY,GAAa,IAAI;EAa/B;EAACrB,QAAA,CAAAU,WAAA,GAAAA,WAAA;AAAA,GA5LOX,OAAO,KAAPA,OAAO;AA+LjB,SAAShB,UAAU,EAAEgB,OAAO","ignoreList":[]}
@@ -1,5 +1,7 @@
1
- import { Validation } from './Validation';
2
- import { IMPConst } from '../constants';
1
+ "use strict";
2
+
3
+ import { Validation } from "./Validation.js";
4
+ import { IMPConst } from "../constants/index.js";
3
5
  class ValidationForPayment extends Validation {
4
6
  constructor(userCode, loading, callback, data) {
5
7
  super(userCode, loading, callback, data);
@@ -1 +1 @@
1
- {"version":3,"names":["Validation","IMPConst","ValidationForPayment","constructor","userCode","loading","callback","data","validateData","pg","pay_method","merchant_uid","amount","buyer_tel","app_scheme","language","digital","biz_num","customer_uid","naverPopupMode","popup","undefined","isValid","message","pgProvider","split","PG","indexOf","EN_AVAILABLE_PG","includes","LANGUAGE"],"sourceRoot":"../../../src","sources":["utils/ValidationForPayment.ts"],"mappings":"AAAA,SAASA,UAAU,QAAiB,cAAc;AAClD,SAASC,QAAQ,QAAQ,cAAc;AAEvC,MAAMC,oBAAoB,SAASF,UAAU,CAAC;EAC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CAACC,OAAO,GACV,uCAAuC;MACzC;IACF;IAEA,IACEd,EAAE,KAAK,YAAY,IACnBC,UAAU,KAAK,OAAO,IACtBO,OAAO,KAAKI,SAAS,EACrB;MACA,IAAI,CAACC,OAAO,GAAG,KAAK;MACpB,IAAI,CAACC,OAAO,GAAG,4BAA4B;MAC3C;IACF;IAEA,IACE,CAACd,EAAE,KAAK,aAAa,IAAIA,EAAE,KAAK,OAAO,KACvCS,YAAY,KAAKG,SAAS,EAC1B;MACA,IAAI,CAACC,OAAO,GAAG,KAAK;MACpB,IAAI,CAACC,OAAO,GAAG,8BAA8B;MAC7C;IACF;EACF;AACF;AAEA,eAAerB,oBAAoB","ignoreList":[]}
1
+ {"version":3,"names":["Validation","IMPConst","ValidationForPayment","constructor","userCode","loading","callback","data","validateData","pg","pay_method","merchant_uid","amount","buyer_tel","app_scheme","language","digital","biz_num","customer_uid","naverPopupMode","popup","undefined","isValid","message","pgProvider","split","PG","indexOf","EN_AVAILABLE_PG","includes","LANGUAGE"],"sourceRoot":"../../../src","sources":["utils/ValidationForPayment.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAiB,iBAAc;AAClD,SAASC,QAAQ,QAAQ,uBAAc;AAEvC,MAAMC,oBAAoB,SAASF,UAAU,CAAC;EAC5CG,WAAWA,CACTC,QAAgB,EAChBC,OAAe,EACfC,QAAgC,EAChCC,IAAyB,EACzB;IACA,KAAK,CAACH,QAAQ,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,IAAI,CAAC;EAC1C;EAEAC,YAAYA,CAAA,EAAG;IACb,MAAM;MACJC,EAAE;MACFC,UAAU;MACVC,YAAY;MACZC,MAAM;MACNC,SAAS;MACTC,UAAU;MACVC,QAAQ;MACRC,OAAO;MACPC,OAAO;MACPC,YAAY;MACZC,cAAc;MACdC;IACF,CAAC,GAAwB,IAAI,CAACb,IAAI;IAElC,IAAI,IAAI,CAACA,IAAI,KAAKc,SAAS,EAAE;MAC3B,IAAI,CAACC,OAAO,GAAG,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 @@
1
+ {"type":"module"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { IMPData } from '../../utils/Validation';
3
2
  type Props = {
4
3
  userCode: string;
@@ -7,6 +6,6 @@ type Props = {
7
6
  loading?: any;
8
7
  callback: (response: any) => any;
9
8
  };
10
- declare function Certification({ userCode, tierCode, data, loading, callback }: Props): React.JSX.Element;
9
+ declare function Certification({ userCode, tierCode, data, loading, callback }: Props): import("react/jsx-runtime").JSX.Element;
11
10
  export default Certification;
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Certification/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAc,MAAM,wBAAwB,CAAC;AAK7D,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC,iBAAiB,CAAC;IAChC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC;CAClC,CAAC;AAEF,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAwF5E;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ type ErrorProps = {
2
+ message: string;
3
+ };
4
+ declare function ErrorOnParams({ message }: ErrorProps): import("react/jsx-runtime").JSX.Element;
5
+ export default ErrorOnParams;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorOnParams/index.tsx"],"names":[],"mappings":"AAIA,KAAK,UAAU,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,UAAU,2CAO7C;AA8BD,eAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare function Loading(): import("react/jsx-runtime").JSX.Element;
2
+ export default Loading;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Loading/index.tsx"],"names":[],"mappings":"AAIA,iBAAS,OAAO,4CAOf;AAgBD,eAAe,OAAO,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { IMPData } from 'iamport-react-native';
3
2
  type Props = {
4
3
  userCode: string;
@@ -7,6 +6,6 @@ type Props = {
7
6
  loading?: any;
8
7
  callback: (response: any) => any;
9
8
  };
10
- declare function Payment({ userCode, tierCode, data, loading, callback }: Props): React.JSX.Element;
9
+ declare function Payment({ userCode, tierCode, data, loading, callback }: Props): import("react/jsx-runtime").JSX.Element;
11
10
  export default Payment;
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Payment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAYpD,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC;CAClC,CAAC;AAEF,iBAAS,OAAO,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAoNtE;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,kBAAU,QAAQ,CAAC;IACV,MAAM,EAAE,gcAwCL,CAAC;IAEJ,MAAM,UAAU,4OAuBb,CAAC;IACJ,MAAM,QAAQ,uCAAwC,CAAC;IACvD,MAAM,QAAQ,uBAAwB,CAAC;IACvC,MAAM,eAAe,iEAMlB,CAAC;IACJ,MAAM,QAAQ,wCAAyC,CAAC;IAExD,MAAM,qBAAqB,yBAAyB,CAAC;IACrD,MAAM,iBAAiB,gCAAgC,CAAC;IACxD,MAAM,cAAc,4CAA4C,CAAC;IACjE,MAAM,cAAc,sDAC0B,CAAC;IAC/C,MAAM,WAAW,+BAA+B,CAAC;IACjD,MAAM,iBAAiB,+BAA+B,CAAC;IAEvD,MAAM,mBAAmB,8SAUjC,CAAC;IAEO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCpB,CAAC;IAEJ,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiClB,CAAC;CACZ;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,aAAa,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,QAAA,MAAM,GAAG;;;CAGR,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,4 +1,4 @@
1
- declare const viewStyles: {
1
+ declare const viewStyles: Readonly<{
2
2
  wrapper: {
3
3
  flex: number;
4
4
  };
@@ -15,6 +15,6 @@ declare const viewStyles: {
15
15
  flex: number;
16
16
  zIndex: number;
17
17
  };
18
- };
18
+ }>;
19
19
  export default viewStyles;
20
20
  //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/styles.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;EAiBd,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type { IMPData } from 'iamport-react-native';
2
- import queryString from 'query-string';
3
2
  declare class IamportUrl {
4
3
  url: string;
5
4
  scheme: string;
@@ -7,18 +6,20 @@ declare class IamportUrl {
7
6
  package?: string;
8
7
  constructor(url: string);
9
8
  getUrl(): string;
10
- isPaymentOver(redirectUrl: string, data?: IMPData.PaymentData): true | undefined;
9
+ isPaymentOver(redirectUrl: string, data?: IMPData.PaymentData): boolean;
11
10
  isAppUrl(): boolean;
12
11
  isIframeLoaded(): boolean;
13
12
  getAppUrl(): string | undefined;
14
13
  getMarketUrl(): string;
15
- getQuery(): queryString.ParsedQuery<string>;
16
- getStringifiedQuery(): string;
14
+ getQuery(): {
15
+ [k: string]: string;
16
+ };
17
+ getStringifiedQuery(): string | undefined;
17
18
  getInicisTransQuery(redirectUrl: string): {
18
- imp_uid: string | (string | null)[] | null;
19
- merchant_uid: string | (string | null)[] | null;
19
+ imp_uid: string | undefined;
20
+ merchant_uid: string | undefined;
20
21
  };
21
- launchApp(): Promise<any>;
22
+ launchApp(): Promise<void>;
22
23
  }
23
24
  export default IamportUrl;
24
25
  //# sourceMappingURL=IamportUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IamportUrl.d.ts","sourceRoot":"","sources":["../../../../src/utils/IamportUrl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAIpD,cAAM,UAAU;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;gBAEL,GAAG,EA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M,GAAG,MAAM,EAAE,CAAC;QAC/B,UAAU,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE;YACP,IAAI,CAAC,EAAE;gBACL,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,eAAe,EAAE,MAAM,CAAC;aACzB,CAAC;SACH,CAAC;KACH;;CACF;AAED,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValidationForPayment.d.ts","sourceRoot":"","sources":["../../../../src/utils/ValidationForPayment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGnD,cAAM,oBAAqB,SAAQ,UAAU;gBAEzC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,EAChC,IAAI,EAAE,OAAO,CAAC,WAAW;IAK3B,YAAY;CAyHb;AAED,eAAe,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,46 +1,53 @@
1
1
  {
2
2
  "name": "iamport-react-native",
3
- "version": "2.0.14",
3
+ "version": "3.0.0",
4
4
  "description": "리액트 네이티브용 아임포트 결제/본인인증 연동 라이브러리",
5
- "main": "lib/commonjs/index",
6
- "module": "lib/module/index",
7
- "types": "lib/typescript/index.d.ts",
8
- "react-native": "src/index",
9
- "source": "src/index",
5
+ "main": "./lib/module/index.js",
6
+ "types": "./lib/typescript/src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "source": "./src/index.tsx",
10
+ "types": "./lib/typescript/src/index.d.ts",
11
+ "default": "./lib/module/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
10
15
  "files": [
11
16
  "src",
12
17
  "lib",
13
18
  "android",
14
19
  "ios",
15
- "iamport-react-native.podspec",
16
- "!lib/typescript/example",
17
- "!android/build",
20
+ "cpp",
21
+ "*.podspec",
22
+ "react-native.config.js",
18
23
  "!ios/build",
24
+ "!android/build",
25
+ "!android/gradle",
26
+ "!android/gradlew",
27
+ "!android/gradlew.bat",
28
+ "!android/local.properties",
19
29
  "!**/__tests__",
20
30
  "!**/__fixtures__",
21
- "!**/__mocks__"
31
+ "!**/__mocks__",
32
+ "!**/.*",
33
+ "CHANGELOG.md"
22
34
  ],
23
35
  "scripts": {
24
- "test": "echo \"Error: no test specified\" && exit 1",
25
- "typescript": "tsc --noEmit",
36
+ "test": "jest",
37
+ "typecheck": "tsc",
26
38
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
39
+ "clean": "del-cli lib",
27
40
  "prepare": "bob build",
28
- "example": "yarn --cwd example",
29
- "example-expo": "yarn --cwd exampleForExpo",
30
- "example-managed-expo": "yarn --cwd exampleForManagedExpo",
31
- "example-webview": "yarn --cwd exampleForWebView",
32
- "pods-example": "cd example && pod-install --quiet",
33
- "pods-example-webview": "cd exampleForWebView && pod-install --quiet",
34
- "bootstrap": "yarn example && yarn example-expo && yarn example-managed-expo && yarn example-webview &&yarn && yarn pods-example && yarn pods-example-webview"
41
+ "release": "release-it --only-version"
35
42
  },
36
43
  "keywords": [
37
- "iamport",
38
- "react",
39
- "react-native"
44
+ "react-native",
45
+ "ios",
46
+ "android"
40
47
  ],
41
48
  "repository": {
42
49
  "type": "git",
43
- "url": "https://github.com/iamport/iamport-react-native"
50
+ "url": "git+https://github.com/iamport/iamport-react-native.git"
44
51
  },
45
52
  "author": "Hyukgyu Kwon <me@kwon.hk>",
46
53
  "license": "MIT",
@@ -48,54 +55,66 @@
48
55
  "url": "https://github.com/iamport/iamport-react-native/issues"
49
56
  },
50
57
  "homepage": "https://github.com/iamport/iamport-react-native#readme",
58
+ "publishConfig": {
59
+ "registry": "https://registry.npmjs.org/"
60
+ },
51
61
  "devDependencies": {
52
- "@react-native-community/eslint-config": "^3.2.0",
53
- "@types/react": "^18.0.26",
54
- "@types/react-native": "^0.70.8",
55
- "eslint": "^8.30.0",
56
- "eslint-config-prettier": "^8.5.0",
57
- "eslint-plugin-prettier": "^4.2.1",
58
- "pod-install": "^0.1.38",
59
- "prettier": "^2.8.1",
60
- "query-string": "^8.1.0",
61
- "react": "18.2.0",
62
- "react-native": "0.72.6",
63
- "react-native-builder-bob": "^0.20.3",
64
- "react-native-webview": "^13.6.2",
65
- "typescript": "^4.9.4"
62
+ "@changesets/cli": "^2.29.7",
63
+ "@eslint/compat": "^1.3.2",
64
+ "@eslint/eslintrc": "^3.3.1",
65
+ "@eslint/js": "^9.35.0",
66
+ "@evilmartians/lefthook": "^1.12.3",
67
+ "@react-native/babel-preset": "0.81.1",
68
+ "@react-native/eslint-config": "^0.81.1",
69
+ "@release-it/conventional-changelog": "^10.0.1",
70
+ "@types/jest": "^29.5.14",
71
+ "@types/react": "^19.2.4",
72
+ "del-cli": "^6.0.0",
73
+ "eslint": "^9.35.0",
74
+ "eslint-config-prettier": "^10.1.8",
75
+ "eslint-plugin-prettier": "^5.5.4",
76
+ "jest": "^29.7.0",
77
+ "prettier": "^3.6.2",
78
+ "react": "^19.2.0",
79
+ "react-native": "^0.81.5",
80
+ "react-native-builder-bob": "^0.40.14",
81
+ "react-native-webview": "^13.16.0",
82
+ "release-it": "^19.0.4",
83
+ "typescript": "^5.9.2"
66
84
  },
67
85
  "peerDependencies": {
68
- "query-string": "8.x",
69
86
  "react": "*",
70
87
  "react-native": "*",
71
- "react-native-webview": ">=11.x"
88
+ "react-native-webview": "*"
72
89
  },
73
- "resolutions": {
74
- "@types/react": "^18"
90
+ "packageManager": "pnpm@10.22.0+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c",
91
+ "jest": {
92
+ "preset": "react-native",
93
+ "modulePathIgnorePatterns": [
94
+ "<rootDir>/exampleForExpo/node_modules",
95
+ "<rootDir>/exampleForWebView/node_modules",
96
+ "<rootDir>/lib/"
97
+ ]
75
98
  },
76
- "eslintConfig": {
77
- "root": true,
78
- "extends": [
79
- "@react-native-community",
80
- "prettier"
81
- ],
82
- "rules": {
83
- "prettier/prettier": [
84
- "error",
85
- {
86
- "quoteProps": "consistent",
87
- "singleQuote": true,
88
- "tabWidth": 2,
89
- "trailingComma": "es5",
90
- "useTabs": false
99
+ "release-it": {
100
+ "git": {
101
+ "commitMessage": "chore: release ${version}",
102
+ "tagName": "v${version}"
103
+ },
104
+ "npm": {
105
+ "publish": true
106
+ },
107
+ "github": {
108
+ "release": true
109
+ },
110
+ "plugins": {
111
+ "@release-it/conventional-changelog": {
112
+ "preset": {
113
+ "name": "angular"
91
114
  }
92
- ]
115
+ }
93
116
  }
94
117
  },
95
- "eslintIgnore": [
96
- "node_modules/",
97
- "lib/"
98
- ],
99
118
  "prettier": {
100
119
  "quoteProps": "consistent",
101
120
  "singleQuote": true,
@@ -107,8 +126,12 @@
107
126
  "source": "src",
108
127
  "output": "lib",
109
128
  "targets": [
110
- "commonjs",
111
- "module",
129
+ [
130
+ "module",
131
+ {
132
+ "esm": true
133
+ }
134
+ ],
112
135
  [
113
136
  "typescript",
114
137
  {
@@ -117,5 +140,9 @@
117
140
  ]
118
141
  ]
119
142
  },
120
- "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
143
+ "create-react-native-library": {
144
+ "languages": "js",
145
+ "type": "library",
146
+ "version": "0.54.8"
147
+ }
121
148
  }
@@ -1,12 +1,12 @@
1
- import React, { createRef, useState } from 'react';
1
+ import { createRef, useState } from 'react';
2
2
  import { View } from 'react-native';
3
3
  import { WebView } from 'react-native-webview';
4
4
 
5
- import Loading from '../Loading';
6
5
  import ErrorOnParams from '../ErrorOnParams';
6
+ import Loading from '../Loading';
7
7
 
8
- import { IMPData, Validation } from '../../utils/Validation';
9
8
  import { IMPConst } from '../../constants';
9
+ import { IMPData, Validation } from '../../utils/Validation';
10
10
 
11
11
  import viewStyles from '../../styles';
12
12
  import IamportUrl from '../../utils/IamportUrl';
@@ -62,11 +62,11 @@ function Certification({ userCode, tierCode, data, loading, callback }: Props) {
62
62
  }
63
63
  }}
64
64
  onMessage={(e) => {
65
- let data = e.nativeEvent.data;
66
- if (decodeURIComponent(data) !== data) {
67
- data = decodeURIComponent(data);
65
+ let messageData = e.nativeEvent.data;
66
+ if (decodeURIComponent(messageData) !== messageData) {
67
+ messageData = decodeURIComponent(messageData);
68
68
  }
69
- let response = JSON.parse(data);
69
+ let response = JSON.parse(messageData);
70
70
 
71
71
  if (typeof callback === 'function') {
72
72
  callback(response);
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { View, Image, Text, StyleSheet } from 'react-native';
1
+ import { Image, StyleSheet, Text, View } from 'react-native';
3
2
 
4
3
  const logo = require('../../img/iamport-logo.png');
5
4
 
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { View, Image, Text, StyleSheet } from 'react-native';
1
+ import { Image, StyleSheet, Text, View } from 'react-native';
3
2
 
4
3
  const logo = require('../../img/iamport-logo.png');
5
4
 
@@ -1,14 +1,14 @@
1
- import React, { createRef, useEffect, useRef, useState } from 'react';
2
1
  import type { IMPData } from 'iamport-react-native';
3
- import ValidationForPayment from '../../utils/ValidationForPayment';
4
- import ErrorOnParams from '../ErrorOnParams';
2
+ import { createRef, useEffect, useRef, useState } from 'react';
5
3
  import { Linking, Platform, View } from 'react-native';
6
- import { IMPConst } from '../../constants';
7
- import IamportUrl from '../../utils/IamportUrl';
8
4
  import WebView from 'react-native-webview';
5
+ import type { WebViewSource } from 'react-native-webview/lib/WebViewTypes';
6
+ import { IMPConst } from '../../constants';
9
7
  import viewStyles from '../../styles';
8
+ import IamportUrl from '../../utils/IamportUrl';
9
+ import ValidationForPayment from '../../utils/ValidationForPayment';
10
+ import ErrorOnParams from '../ErrorOnParams';
10
11
  import Loading from '../Loading';
11
- import type { WebViewSource } from 'react-native-webview/lib/WebViewTypes';
12
12
 
13
13
  type Props = {
14
14
  userCode: string;
@@ -1,5 +1,4 @@
1
1
  import type { IMPData } from 'iamport-react-native';
2
- import queryString from 'query-string';
3
2
  import { Linking, Platform } from 'react-native';
4
3
  import { IMPConst } from '../constants';
5
4
 
@@ -11,32 +10,36 @@ class IamportUrl {
11
10
 
12
11
  constructor(url: string) {
13
12
  this.url = url;
14
- this.scheme = url.split('://', 1)[0];
15
- let splittedUrl = [this.scheme, url.slice(this.scheme.length + 3)];
13
+ const [scheme, location] = splitFirst(url, '://');
14
+ this.scheme = scheme;
16
15
  if (Platform.OS === 'ios') {
17
16
  this.path = this.scheme.startsWith('itms')
18
- ? `https://${splittedUrl[1]}`
17
+ ? `https://${location}`
19
18
  : this.url;
20
19
  } else if (Platform.OS === 'android') {
21
20
  if (this.isAppUrl()) {
22
21
  if (this.scheme.includes('intent')) {
23
- let intentUrl = splittedUrl[1].split('#Intent;');
24
- let host = intentUrl[0];
25
- let args = intentUrl[1].split(';');
26
-
22
+ const [host, argText] = splitFirst(location!!, '#Intent;');
23
+ const args = argText!!.split(';');
27
24
  if (this.scheme !== 'intent') {
28
- this.scheme = this.scheme.split(':')[1];
25
+ this.scheme = this.scheme.split(':')[1]!!;
29
26
  this.path = this.scheme + '://' + host;
30
27
  }
31
- args.forEach((s) => {
32
- if (s.startsWith('scheme')) {
33
- let scheme = s.split('=')[1];
34
- this.path = scheme + '://' + host;
35
- this.scheme = scheme;
36
- } else if (s.startsWith('package')) {
37
- this.package = s.split('=')[1];
28
+ for (const arg of args) {
29
+ const [key, rawValue] = splitFirst(arg, '=');
30
+ const value =
31
+ rawValue === undefined ? undefined : decodeURIComponent(rawValue);
32
+ switch (key) {
33
+ case 'scheme':
34
+ if (value !== undefined) {
35
+ this.path = `${value}://${host}`;
36
+ this.scheme = value;
37
+ }
38
+ break;
39
+ case 'package':
40
+ this.package = value;
38
41
  }
39
- });
42
+ }
40
43
  } else {
41
44
  this.path = this.url;
42
45
  }
@@ -50,14 +53,13 @@ class IamportUrl {
50
53
  return this.url;
51
54
  }
52
55
 
53
- isPaymentOver(redirectUrl: string, data?: IMPData.PaymentData) {
56
+ isPaymentOver(redirectUrl: string, data?: IMPData.PaymentData): boolean {
54
57
  if (this.url.startsWith(redirectUrl)) {
55
58
  return true;
56
59
  }
57
60
 
58
61
  if (data?.pay_method === 'trans') {
59
- const decodeUrl = decodeURIComponent(this.url);
60
- const parsedUrl = queryString.parse(decodeUrl);
62
+ const searchParams = new URLSearchParams(extractQuery(this.url));
61
63
  const scheme = data?.app_scheme;
62
64
  /**
63
65
  * [IOS] 웹 표준 이니시스 - 실시간 계좌이체 대비
@@ -72,17 +74,17 @@ class IamportUrl {
72
74
  * 이를 위한 isInicisTransPaid 플래그 추가
73
75
  */
74
76
  if (data.pg.startsWith('html5_inicis') && Platform.OS === 'ios') {
75
- const query = parsedUrl;
76
77
  if (
77
- query.m_redirect_url !== null &&
78
+ searchParams.has('m_redirect_url') &&
78
79
  scheme === data.app_scheme?.toLowerCase()
79
80
  ) {
80
- if ((query.m_redirect_url as string | null)?.includes(redirectUrl)) {
81
+ if (searchParams.get('m_redirect_url')?.includes(redirectUrl)) {
81
82
  return true;
82
83
  }
83
84
  }
84
85
  }
85
86
  }
87
+ return false;
86
88
  }
87
89
 
88
90
  isAppUrl() {
@@ -333,12 +335,15 @@ class IamportUrl {
333
335
  }
334
336
 
335
337
  getQuery() {
336
- return queryString.parse(this.getStringifiedQuery());
338
+ return Object.fromEntries(
339
+ new URLSearchParams(this.getStringifiedQuery()).entries()
340
+ );
337
341
  }
338
342
 
339
343
  getStringifiedQuery() {
340
- const decodedUrl = decodeURIComponent(this.url);
341
- return queryString.extract(decodedUrl);
344
+ const query = extractQuery(this.url);
345
+ if (query === undefined) return undefined;
346
+ return decodeQueryParam(query);
342
347
  }
343
348
 
344
349
  getInicisTransQuery(redirectUrl: string) {
@@ -368,4 +373,27 @@ class IamportUrl {
368
373
  }
369
374
  }
370
375
 
376
+ function splitFirst(
377
+ text: string,
378
+ delimiter: string
379
+ ): [string] | [string, string] {
380
+ const index = text.indexOf(delimiter);
381
+ if (index === -1) return [text];
382
+ return [text.slice(0, index), text.slice(index + delimiter.length)];
383
+ }
384
+
385
+ // PG사 URL은 표준적인 URL이 아닐 수 있다.
386
+ function extractQuery(url: string): string | undefined {
387
+ const hashIndex = url.indexOf('#');
388
+ const beforeHash = hashIndex === -1 ? url : url.slice(0, hashIndex);
389
+ const queryIndex = beforeHash.indexOf('?');
390
+ if (queryIndex === -1) return undefined;
391
+ return beforeHash.slice(queryIndex);
392
+ }
393
+
394
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#decoding_query_parameters_from_a_url
395
+ function decodeQueryParam(query: string): string {
396
+ return decodeURIComponent(query.replaceAll('+', ' '));
397
+ }
398
+
371
399
  export default IamportUrl;