@smileid/usesmileid 12.0.0-beta01 → 12.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 (403) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +701 -89
  3. package/dist/camera/camera_defaults.d.ts +14 -9
  4. package/dist/camera/camera_defaults.d.ts.map +1 -1
  5. package/dist/camera/camera_defaults.js +11 -9
  6. package/dist/camera/camera_defaults.js.map +1 -1
  7. package/dist/camera/orientation_degrees.d.ts +5 -6
  8. package/dist/camera/orientation_degrees.d.ts.map +1 -1
  9. package/dist/camera/orientation_degrees.js +5 -6
  10. package/dist/camera/orientation_degrees.js.map +1 -1
  11. package/dist/core/models/document_capture_mode.d.ts +8 -0
  12. package/dist/core/models/document_capture_mode.d.ts.map +1 -1
  13. package/dist/core/models/document_capture_mode.js +24 -0
  14. package/dist/core/models/document_capture_mode.js.map +1 -1
  15. package/dist/core/models/document_type.d.ts +2 -2
  16. package/dist/core/models/document_type.d.ts.map +1 -1
  17. package/dist/core/models/document_type.js +6 -4
  18. package/dist/core/models/document_type.js.map +1 -1
  19. package/dist/core/models/result.d.ts +9 -8
  20. package/dist/core/models/result.d.ts.map +1 -1
  21. package/dist/core/models/result.js +5 -6
  22. package/dist/core/models/result.js.map +1 -1
  23. package/dist/data/api/interceptors/smile_auth_interceptor.js +1 -1
  24. package/dist/data/api/interceptors/smile_auth_interceptor.js.map +1 -1
  25. package/dist/data/api/interceptors/smile_integrity_interceptor.d.ts +11 -0
  26. package/dist/data/api/interceptors/smile_integrity_interceptor.d.ts.map +1 -1
  27. package/dist/data/api/interceptors/smile_integrity_interceptor.js +13 -0
  28. package/dist/data/api/interceptors/smile_integrity_interceptor.js.map +1 -1
  29. package/dist/data/api/interceptors/smile_request_mac_interceptor.d.ts +8 -0
  30. package/dist/data/api/interceptors/smile_request_mac_interceptor.d.ts.map +1 -1
  31. package/dist/data/api/interceptors/smile_request_mac_interceptor.js +11 -0
  32. package/dist/data/api/interceptors/smile_request_mac_interceptor.js.map +1 -1
  33. package/dist/data/compression/compressible_asset.d.ts +41 -0
  34. package/dist/data/compression/compressible_asset.d.ts.map +1 -0
  35. package/dist/data/compression/compressible_asset.js +34 -0
  36. package/dist/data/compression/compressible_asset.js.map +1 -0
  37. package/dist/data/compression/payload_compression_config.d.ts +36 -0
  38. package/dist/data/compression/payload_compression_config.d.ts.map +1 -0
  39. package/dist/data/compression/payload_compression_config.js +52 -0
  40. package/dist/data/compression/payload_compression_config.js.map +1 -0
  41. package/dist/data/compression/payload_compression_runner.d.ts +29 -0
  42. package/dist/data/compression/payload_compression_runner.d.ts.map +1 -0
  43. package/dist/data/compression/payload_compression_runner.js +55 -0
  44. package/dist/data/compression/payload_compression_runner.js.map +1 -0
  45. package/dist/data/compression/payload_compressor.d.ts +40 -0
  46. package/dist/data/compression/payload_compressor.d.ts.map +1 -0
  47. package/dist/data/compression/payload_compressor.js +126 -0
  48. package/dist/data/compression/payload_compressor.js.map +1 -0
  49. package/dist/data/compression/uri_compressible_asset.d.ts +23 -0
  50. package/dist/data/compression/uri_compressible_asset.d.ts.map +1 -0
  51. package/dist/data/compression/uri_compressible_asset.js +77 -0
  52. package/dist/data/compression/uri_compressible_asset.js.map +1 -0
  53. package/dist/data/dsl/builder/cache_config_builder.d.ts +2 -1
  54. package/dist/data/dsl/builder/cache_config_builder.d.ts.map +1 -1
  55. package/dist/data/dsl/builder/cache_config_builder.js +2 -1
  56. package/dist/data/dsl/builder/cache_config_builder.js.map +1 -1
  57. package/dist/data/dsl/builder/config_builder.d.ts +40 -14
  58. package/dist/data/dsl/builder/config_builder.d.ts.map +1 -1
  59. package/dist/data/dsl/builder/config_builder.js +40 -14
  60. package/dist/data/dsl/builder/config_builder.js.map +1 -1
  61. package/dist/data/dsl/builder/interceptor_config_builder.d.ts +9 -7
  62. package/dist/data/dsl/builder/interceptor_config_builder.d.ts.map +1 -1
  63. package/dist/data/dsl/builder/interceptor_config_builder.js +9 -7
  64. package/dist/data/dsl/builder/interceptor_config_builder.js.map +1 -1
  65. package/dist/data/dsl/builder/retry_config_builder.d.ts +16 -1
  66. package/dist/data/dsl/builder/retry_config_builder.d.ts.map +1 -1
  67. package/dist/data/dsl/builder/retry_config_builder.js +16 -1
  68. package/dist/data/dsl/builder/retry_config_builder.js.map +1 -1
  69. package/dist/data/dsl/builder/timeout_config_builder.d.ts +4 -0
  70. package/dist/data/dsl/builder/timeout_config_builder.d.ts.map +1 -1
  71. package/dist/data/dsl/builder/timeout_config_builder.js +4 -0
  72. package/dist/data/dsl/builder/timeout_config_builder.js.map +1 -1
  73. package/dist/data/dsl/use_smile_id_network_builder.d.ts +17 -0
  74. package/dist/data/dsl/use_smile_id_network_builder.d.ts.map +1 -1
  75. package/dist/data/dsl/use_smile_id_network_builder.js +17 -0
  76. package/dist/data/dsl/use_smile_id_network_builder.js.map +1 -1
  77. package/dist/data/factory/networking_factory.d.ts.map +1 -1
  78. package/dist/data/factory/networking_factory.js +11 -1
  79. package/dist/data/factory/networking_factory.js.map +1 -1
  80. package/dist/data/repository/use_smile_id_repository_impl.d.ts +6 -0
  81. package/dist/data/repository/use_smile_id_repository_impl.d.ts.map +1 -1
  82. package/dist/data/repository/use_smile_id_repository_impl.js +82 -8
  83. package/dist/data/repository/use_smile_id_repository_impl.js.map +1 -1
  84. package/dist/data/security/request_canonicalizer.d.ts.map +1 -1
  85. package/dist/data/security/request_canonicalizer.js +14 -2
  86. package/dist/data/security/request_canonicalizer.js.map +1 -1
  87. package/dist/data/security/security_policy.d.ts +43 -0
  88. package/dist/data/security/security_policy.d.ts.map +1 -0
  89. package/dist/data/security/security_policy.js +61 -0
  90. package/dist/data/security/security_policy.js.map +1 -0
  91. package/dist/data/util/retry_util.d.ts +1 -1
  92. package/dist/data/util/retry_util.d.ts.map +1 -1
  93. package/dist/data/util/retry_util.js +2 -1
  94. package/dist/data/util/retry_util.js.map +1 -1
  95. package/dist/data/util/use_smile_id_token_decoder.d.ts +22 -0
  96. package/dist/data/util/use_smile_id_token_decoder.d.ts.map +1 -1
  97. package/dist/data/util/use_smile_id_token_decoder.js +58 -24
  98. package/dist/data/util/use_smile_id_token_decoder.js.map +1 -1
  99. package/dist/l10n/strings_en.d.ts +2 -1
  100. package/dist/l10n/strings_en.d.ts.map +1 -1
  101. package/dist/l10n/strings_en.js +2 -1
  102. package/dist/l10n/strings_en.js.map +1 -1
  103. package/dist/l10n/use_smile_id_localizations.d.ts +1 -0
  104. package/dist/l10n/use_smile_id_localizations.d.ts.map +1 -1
  105. package/dist/l10n/use_smile_id_localizations.js +3 -0
  106. package/dist/l10n/use_smile_id_localizations.js.map +1 -1
  107. package/dist/metadata/builder_configuration.d.ts +39 -0
  108. package/dist/metadata/builder_configuration.d.ts.map +1 -0
  109. package/dist/metadata/builder_configuration.js +34 -0
  110. package/dist/metadata/builder_configuration.js.map +1 -0
  111. package/dist/metadata/captured_image_properties.d.ts +11 -0
  112. package/dist/metadata/captured_image_properties.d.ts.map +1 -0
  113. package/dist/metadata/captured_image_properties.js +11 -0
  114. package/dist/metadata/captured_image_properties.js.map +1 -0
  115. package/dist/metadata/device_orientation_collector.d.ts +17 -0
  116. package/dist/metadata/device_orientation_collector.d.ts.map +1 -0
  117. package/dist/metadata/device_orientation_collector.js +66 -0
  118. package/dist/metadata/device_orientation_collector.js.map +1 -0
  119. package/dist/metadata/geolocation.d.ts +20 -0
  120. package/dist/metadata/geolocation.d.ts.map +1 -0
  121. package/dist/metadata/geolocation.js +40 -0
  122. package/dist/metadata/geolocation.js.map +1 -0
  123. package/dist/metadata/metadata_configuration_mappers.d.ts +48 -0
  124. package/dist/metadata/metadata_configuration_mappers.d.ts.map +1 -0
  125. package/dist/metadata/metadata_configuration_mappers.js +171 -0
  126. package/dist/metadata/metadata_configuration_mappers.js.map +1 -0
  127. package/dist/metadata/model_configuration.d.ts +41 -0
  128. package/dist/metadata/model_configuration.d.ts.map +1 -0
  129. package/dist/metadata/model_configuration.js +44 -0
  130. package/dist/metadata/model_configuration.js.map +1 -0
  131. package/dist/metadata/optional_native_modules.d.ts +79 -3
  132. package/dist/metadata/optional_native_modules.d.ts.map +1 -1
  133. package/dist/metadata/optional_native_modules.js +108 -3
  134. package/dist/metadata/optional_native_modules.js.map +1 -1
  135. package/dist/metadata/use_smile_id_metadata.d.ts +45 -7
  136. package/dist/metadata/use_smile_id_metadata.d.ts.map +1 -1
  137. package/dist/metadata/use_smile_id_metadata.js +85 -13
  138. package/dist/metadata/use_smile_id_metadata.js.map +1 -1
  139. package/dist/metadata/use_smile_id_metadata_factory.d.ts +37 -0
  140. package/dist/metadata/use_smile_id_metadata_factory.d.ts.map +1 -1
  141. package/dist/metadata/use_smile_id_metadata_factory.js +184 -12
  142. package/dist/metadata/use_smile_id_metadata_factory.js.map +1 -1
  143. package/dist/presentation/assets/svg/document_shimmer_strings.d.ts +14 -0
  144. package/dist/presentation/assets/svg/document_shimmer_strings.d.ts.map +1 -0
  145. package/dist/presentation/assets/svg/document_shimmer_strings.js +14 -0
  146. package/dist/presentation/assets/svg/document_shimmer_strings.js.map +1 -0
  147. package/dist/presentation/assets/svg/instruction_svg_strings.d.ts +12 -4
  148. package/dist/presentation/assets/svg/instruction_svg_strings.d.ts.map +1 -1
  149. package/dist/presentation/assets/svg/instruction_svg_strings.js +19 -8
  150. package/dist/presentation/assets/svg/instruction_svg_strings.js.map +1 -1
  151. package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.d.ts +0 -5
  152. package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.d.ts.map +1 -1
  153. package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.js +0 -5
  154. package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.js.map +1 -1
  155. package/dist/presentation/components/icons/index.d.ts +24 -8
  156. package/dist/presentation/components/icons/index.d.ts.map +1 -1
  157. package/dist/presentation/components/icons/index.js +31 -11
  158. package/dist/presentation/components/icons/index.js.map +1 -1
  159. package/dist/presentation/components/use_smile_id_attribution.d.ts +1 -1
  160. package/dist/presentation/components/use_smile_id_button.d.ts +2 -2
  161. package/dist/presentation/components/use_smile_id_button.js +4 -4
  162. package/dist/presentation/components/use_smile_id_button.js.map +1 -1
  163. package/dist/presentation/components/use_smile_id_capture_content.d.ts +13 -0
  164. package/dist/presentation/components/use_smile_id_capture_content.d.ts.map +1 -1
  165. package/dist/presentation/components/use_smile_id_capture_content.js +15 -9
  166. package/dist/presentation/components/use_smile_id_capture_content.js.map +1 -1
  167. package/dist/presentation/components/use_smile_id_captured_document_image.d.ts +2 -3
  168. package/dist/presentation/components/use_smile_id_captured_document_image.d.ts.map +1 -1
  169. package/dist/presentation/components/use_smile_id_captured_document_image.js +1 -3
  170. package/dist/presentation/components/use_smile_id_captured_document_image.js.map +1 -1
  171. package/dist/presentation/components/use_smile_id_document_capture_controls.d.ts +12 -6
  172. package/dist/presentation/components/use_smile_id_document_capture_controls.d.ts.map +1 -1
  173. package/dist/presentation/components/use_smile_id_document_capture_controls.js +59 -16
  174. package/dist/presentation/components/use_smile_id_document_capture_controls.js.map +1 -1
  175. package/dist/presentation/components/use_smile_id_document_overlay.d.ts +22 -5
  176. package/dist/presentation/components/use_smile_id_document_overlay.d.ts.map +1 -1
  177. package/dist/presentation/components/use_smile_id_document_overlay.js +80 -40
  178. package/dist/presentation/components/use_smile_id_document_overlay.js.map +1 -1
  179. package/dist/presentation/components/use_smile_id_document_shimmer.d.ts +15 -0
  180. package/dist/presentation/components/use_smile_id_document_shimmer.d.ts.map +1 -0
  181. package/dist/presentation/components/use_smile_id_document_shimmer.js +23 -0
  182. package/dist/presentation/components/use_smile_id_document_shimmer.js.map +1 -0
  183. package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_clip.d.ts.map +1 -1
  184. package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_clip.js +1 -3
  185. package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_clip.js.map +1 -1
  186. package/dist/presentation/components/use_smile_id_guideline_thumbnail.d.ts.map +1 -1
  187. package/dist/presentation/components/use_smile_id_guideline_thumbnail.js +84 -1
  188. package/dist/presentation/components/use_smile_id_guideline_thumbnail.js.map +1 -1
  189. package/dist/presentation/components/use_smile_id_instructions_hero.d.ts +3 -1
  190. package/dist/presentation/components/use_smile_id_instructions_hero.d.ts.map +1 -1
  191. package/dist/presentation/components/use_smile_id_instructions_hero.js +18 -3
  192. package/dist/presentation/components/use_smile_id_instructions_hero.js.map +1 -1
  193. package/dist/presentation/components/use_smile_id_oval_border_palette.d.ts.map +1 -1
  194. package/dist/presentation/components/use_smile_id_oval_border_palette.js +7 -3
  195. package/dist/presentation/components/use_smile_id_oval_border_palette.js.map +1 -1
  196. package/dist/presentation/flow/dsl/builder/config_builder.d.ts +12 -0
  197. package/dist/presentation/flow/dsl/builder/config_builder.d.ts.map +1 -1
  198. package/dist/presentation/flow/dsl/builder/config_builder.js +12 -0
  199. package/dist/presentation/flow/dsl/builder/config_builder.js.map +1 -1
  200. package/dist/presentation/flow/dsl/builder/ml_builder.d.ts +13 -4
  201. package/dist/presentation/flow/dsl/builder/ml_builder.d.ts.map +1 -1
  202. package/dist/presentation/flow/dsl/builder/ml_builder.js +3 -2
  203. package/dist/presentation/flow/dsl/builder/ml_builder.js.map +1 -1
  204. package/dist/presentation/flow/dsl/builder/screens_builder.d.ts +111 -10
  205. package/dist/presentation/flow/dsl/builder/screens_builder.d.ts.map +1 -1
  206. package/dist/presentation/flow/dsl/builder/screens_builder.js +111 -10
  207. package/dist/presentation/flow/dsl/builder/screens_builder.js.map +1 -1
  208. package/dist/presentation/flow/dsl/builder/theme_builder.d.ts +15 -2
  209. package/dist/presentation/flow/dsl/builder/theme_builder.d.ts.map +1 -1
  210. package/dist/presentation/flow/dsl/builder/theme_builder.js +15 -2
  211. package/dist/presentation/flow/dsl/builder/theme_builder.js.map +1 -1
  212. package/dist/presentation/flow/dsl/use_smile_id_builder.d.ts +6 -4
  213. package/dist/presentation/flow/dsl/use_smile_id_builder.d.ts.map +1 -1
  214. package/dist/presentation/flow/dsl/use_smile_id_builder.js.map +1 -1
  215. package/dist/presentation/flow/dsl/use_smile_id_flow_builder.d.ts +62 -36
  216. package/dist/presentation/flow/dsl/use_smile_id_flow_builder.d.ts.map +1 -1
  217. package/dist/presentation/flow/dsl/use_smile_id_flow_builder.js +62 -36
  218. package/dist/presentation/flow/dsl/use_smile_id_flow_builder.js.map +1 -1
  219. package/dist/presentation/flow/flow_navigation_manager.d.ts +39 -4
  220. package/dist/presentation/flow/flow_navigation_manager.d.ts.map +1 -1
  221. package/dist/presentation/flow/flow_navigation_manager.js +141 -10
  222. package/dist/presentation/flow/flow_navigation_manager.js.map +1 -1
  223. package/dist/presentation/flow/model/instruction_guideline.d.ts +9 -0
  224. package/dist/presentation/flow/model/instruction_guideline.d.ts.map +1 -1
  225. package/dist/presentation/flow/model/instructions_defaults.d.ts +11 -2
  226. package/dist/presentation/flow/model/instructions_defaults.d.ts.map +1 -1
  227. package/dist/presentation/flow/model/instructions_defaults.js +73 -25
  228. package/dist/presentation/flow/model/instructions_defaults.js.map +1 -1
  229. package/dist/presentation/flow/screen/orchestrated_capture_screen.d.ts.map +1 -1
  230. package/dist/presentation/flow/screen/orchestrated_capture_screen.js +36 -12
  231. package/dist/presentation/flow/screen/orchestrated_capture_screen.js.map +1 -1
  232. package/dist/presentation/flow/screen/orchestrated_instructions_screen.js +1 -1
  233. package/dist/presentation/flow/screen/orchestrated_instructions_screen.js.map +1 -1
  234. package/dist/presentation/flow/screen/orchestrated_preview_screen.d.ts.map +1 -1
  235. package/dist/presentation/flow/screen/orchestrated_preview_screen.js +3 -1
  236. package/dist/presentation/flow/screen/orchestrated_preview_screen.js.map +1 -1
  237. package/dist/presentation/flow/screen/orchestrated_processing_screen.js +3 -3
  238. package/dist/presentation/flow/screen/orchestrated_processing_screen.js.map +1 -1
  239. package/dist/presentation/flow/validation/job_type_validator.d.ts.map +1 -1
  240. package/dist/presentation/flow/validation/job_type_validator.js +14 -0
  241. package/dist/presentation/flow/validation/job_type_validator.js.map +1 -1
  242. package/dist/presentation/screen/helpers/capture_screen_helpers.d.ts.map +1 -1
  243. package/dist/presentation/screen/helpers/capture_screen_helpers.js +1 -0
  244. package/dist/presentation/screen/helpers/capture_screen_helpers.js.map +1 -1
  245. package/dist/presentation/screen/helpers/instructions_screen_helpers.d.ts +1 -0
  246. package/dist/presentation/screen/helpers/instructions_screen_helpers.d.ts.map +1 -1
  247. package/dist/presentation/screen/helpers/instructions_screen_helpers.js +6 -2
  248. package/dist/presentation/screen/helpers/instructions_screen_helpers.js.map +1 -1
  249. package/dist/presentation/screen/helpers/scan_state_to_overlay_state.js +3 -0
  250. package/dist/presentation/screen/helpers/scan_state_to_overlay_state.js.map +1 -1
  251. package/dist/presentation/screen/use_smile_id_capture_screen.d.ts +17 -1
  252. package/dist/presentation/screen/use_smile_id_capture_screen.d.ts.map +1 -1
  253. package/dist/presentation/screen/use_smile_id_capture_screen.js +153 -18
  254. package/dist/presentation/screen/use_smile_id_capture_screen.js.map +1 -1
  255. package/dist/presentation/screen/use_smile_id_document_preview_screen.d.ts +2 -3
  256. package/dist/presentation/screen/use_smile_id_document_preview_screen.d.ts.map +1 -1
  257. package/dist/presentation/screen/use_smile_id_document_preview_screen.js +16 -11
  258. package/dist/presentation/screen/use_smile_id_document_preview_screen.js.map +1 -1
  259. package/dist/presentation/screen/use_smile_id_instructions_screen.d.ts +2 -0
  260. package/dist/presentation/screen/use_smile_id_instructions_screen.d.ts.map +1 -1
  261. package/dist/presentation/screen/use_smile_id_instructions_screen.js +2 -1
  262. package/dist/presentation/screen/use_smile_id_instructions_screen.js.map +1 -1
  263. package/dist/presentation/screen/use_smile_id_preview_screen.d.ts +7 -6
  264. package/dist/presentation/screen/use_smile_id_preview_screen.d.ts.map +1 -1
  265. package/dist/presentation/screen/use_smile_id_preview_screen.js +9 -8
  266. package/dist/presentation/screen/use_smile_id_preview_screen.js.map +1 -1
  267. package/dist/presentation/screen/use_smile_id_processing_screen.d.ts +2 -3
  268. package/dist/presentation/screen/use_smile_id_processing_screen.d.ts.map +1 -1
  269. package/dist/presentation/screen/use_smile_id_processing_screen.js +3 -2
  270. package/dist/presentation/screen/use_smile_id_processing_screen.js.map +1 -1
  271. package/dist/presentation/theme/theme.d.ts +1 -1
  272. package/dist/presentation/theme/theme.d.ts.map +1 -1
  273. package/dist/presentation/theme/theme.js +20 -18
  274. package/dist/presentation/theme/theme.js.map +1 -1
  275. package/dist/presentation/utils/force_max_brightness.d.ts +4 -4
  276. package/package.json +26 -6
  277. package/src/__tests__/react_native_mock.tsx +8 -0
  278. package/src/camera/camera_defaults.ts +11 -9
  279. package/src/camera/orientation_degrees.ts +5 -6
  280. package/src/core/models/__tests__/document_type.test.ts +6 -4
  281. package/src/core/models/document_capture_mode.ts +27 -0
  282. package/src/core/models/document_type.ts +6 -4
  283. package/src/core/models/result.ts +9 -8
  284. package/src/data/api/interceptors/__tests__/smile_integrity_interceptor.test.ts +37 -1
  285. package/src/data/api/interceptors/__tests__/smile_request_mac_interceptor.test.ts +59 -1
  286. package/src/data/api/interceptors/smile_auth_interceptor.ts +1 -1
  287. package/src/data/api/interceptors/smile_integrity_interceptor.ts +20 -0
  288. package/src/data/api/interceptors/smile_request_mac_interceptor.ts +13 -0
  289. package/src/data/compression/__tests__/payload_compressor.test.ts +200 -0
  290. package/src/data/compression/__tests__/payload_compressor_real_jpeg.test.ts +222 -0
  291. package/src/data/compression/compressible_asset.ts +62 -0
  292. package/src/data/compression/payload_compression_config.ts +53 -0
  293. package/src/data/compression/payload_compression_runner.ts +102 -0
  294. package/src/data/compression/payload_compressor.ts +164 -0
  295. package/src/data/compression/uri_compressible_asset.ts +85 -0
  296. package/src/data/dsl/builder/cache_config_builder.ts +3 -1
  297. package/src/data/dsl/builder/config_builder.ts +45 -14
  298. package/src/data/dsl/builder/interceptor_config_builder.ts +9 -7
  299. package/src/data/dsl/builder/retry_config_builder.ts +22 -1
  300. package/src/data/dsl/builder/timeout_config_builder.ts +7 -0
  301. package/src/data/dsl/use_smile_id_network_builder.ts +17 -0
  302. package/src/data/factory/networking_factory.ts +14 -1
  303. package/src/data/repository/__tests__/network_retries.test.ts +117 -0
  304. package/src/data/repository/use_smile_id_repository_impl.ts +96 -9
  305. package/src/data/security/__tests__/security_policy.test.ts +96 -0
  306. package/src/data/security/__tests__/smile_id_crypto_manager.test.ts +18 -0
  307. package/src/data/security/request_canonicalizer.ts +15 -2
  308. package/src/data/security/security_policy.ts +70 -0
  309. package/src/data/util/__tests__/use_smile_id_token_decoder.test.ts +57 -1
  310. package/src/data/util/retry_util.ts +3 -2
  311. package/src/data/util/use_smile_id_token_decoder.ts +76 -28
  312. package/src/l10n/strings_en.ts +2 -1
  313. package/src/l10n/use_smile_id_localizations.ts +3 -0
  314. package/src/metadata/__tests__/device_orientation_collector.test.ts +15 -0
  315. package/src/metadata/__tests__/metadata_configuration_mappers.test.ts +215 -0
  316. package/src/metadata/__tests__/metadata_configuration_objects.test.ts +85 -0
  317. package/src/metadata/__tests__/metadata_device_context.test.ts +147 -0
  318. package/src/metadata/__tests__/metadata_golden_fixture.json +13 -0
  319. package/src/metadata/__tests__/metadata_payload_golden.test.ts +193 -0
  320. package/src/metadata/__tests__/use_smile_id_metadata.test.ts +18 -24
  321. package/src/metadata/builder_configuration.ts +63 -0
  322. package/src/metadata/captured_image_properties.ts +10 -0
  323. package/src/metadata/device_orientation_collector.ts +75 -0
  324. package/src/metadata/geolocation.ts +46 -0
  325. package/src/metadata/metadata_configuration_mappers.ts +234 -0
  326. package/src/metadata/model_configuration.ts +68 -0
  327. package/src/metadata/optional_native_modules.ts +157 -3
  328. package/src/metadata/use_smile_id_metadata.ts +140 -17
  329. package/src/metadata/use_smile_id_metadata_factory.ts +195 -11
  330. package/src/presentation/assets/si_ess_animation_all_directions.json +1300 -286
  331. package/src/presentation/assets/svg/document_shimmer_strings.ts +17 -0
  332. package/src/presentation/assets/svg/instruction_svg_strings.ts +34 -12
  333. package/src/presentation/components/__tests__/enhanced_smart_selfie_animation_frames.test.ts +1 -3
  334. package/src/presentation/components/__tests__/use_smile_id_enhanced_smart_selfie_clip.test.tsx +3 -4
  335. package/src/presentation/components/__tests__/use_smile_id_guideline_thumbnail.test.tsx +34 -1
  336. package/src/presentation/components/__tests__/use_smile_id_instructions_hero.test.tsx +27 -0
  337. package/src/presentation/components/__tests__/use_smile_id_oval_border_palette.test.ts +7 -5
  338. package/src/presentation/components/helpers/enhanced_smart_selfie_animation_frames.ts +0 -6
  339. package/src/presentation/components/icons/index.tsx +65 -18
  340. package/src/presentation/components/use_smile_id_attribution.tsx +1 -1
  341. package/src/presentation/components/use_smile_id_button.tsx +4 -4
  342. package/src/presentation/components/use_smile_id_capture_content.tsx +36 -12
  343. package/src/presentation/components/use_smile_id_captured_document_image.tsx +3 -8
  344. package/src/presentation/components/use_smile_id_document_capture_controls.tsx +103 -39
  345. package/src/presentation/components/use_smile_id_document_overlay.tsx +134 -44
  346. package/src/presentation/components/use_smile_id_document_shimmer.tsx +51 -0
  347. package/src/presentation/components/use_smile_id_enhanced_smart_selfie_clip.tsx +0 -3
  348. package/src/presentation/components/use_smile_id_guideline_thumbnail.tsx +131 -2
  349. package/src/presentation/components/use_smile_id_instructions_hero.tsx +100 -59
  350. package/src/presentation/components/use_smile_id_oval_border_palette.ts +7 -3
  351. package/src/presentation/flow/__tests__/document_flow_navigation.test.ts +200 -1
  352. package/src/presentation/flow/dsl/builder/config_builder.ts +14 -0
  353. package/src/presentation/flow/dsl/builder/ml_builder.ts +13 -4
  354. package/src/presentation/flow/dsl/builder/screens_builder.ts +111 -10
  355. package/src/presentation/flow/dsl/builder/theme_builder.ts +19 -2
  356. package/src/presentation/flow/dsl/use_smile_id_builder.tsx +6 -4
  357. package/src/presentation/flow/dsl/use_smile_id_flow_builder.ts +62 -36
  358. package/src/presentation/flow/flow_navigation_manager.ts +179 -13
  359. package/src/presentation/flow/model/instruction_guideline.ts +6 -0
  360. package/src/presentation/flow/model/instructions_defaults.ts +103 -25
  361. package/src/presentation/flow/screen/orchestrated_capture_screen.tsx +43 -10
  362. package/src/presentation/flow/screen/orchestrated_instructions_screen.tsx +1 -0
  363. package/src/presentation/flow/screen/orchestrated_preview_screen.tsx +4 -2
  364. package/src/presentation/flow/screen/orchestrated_processing_screen.tsx +3 -3
  365. package/src/presentation/flow/validation/__tests__/job_type_validator.test.ts +64 -0
  366. package/src/presentation/flow/validation/job_type_validator.ts +24 -0
  367. package/src/presentation/screen/__tests__/instructions_screen_helpers.test.ts +15 -3
  368. package/src/presentation/screen/__tests__/use_smile_id_capture_screen.test.tsx +6 -4
  369. package/src/presentation/screen/helpers/capture_screen_helpers.ts +1 -0
  370. package/src/presentation/screen/helpers/instructions_screen_helpers.ts +7 -2
  371. package/src/presentation/screen/helpers/scan_state_to_overlay_state.ts +3 -0
  372. package/src/presentation/screen/use_smile_id_capture_screen.tsx +234 -36
  373. package/src/presentation/screen/use_smile_id_document_preview_screen.tsx +32 -22
  374. package/src/presentation/screen/use_smile_id_instructions_screen.tsx +4 -0
  375. package/src/presentation/screen/use_smile_id_preview_screen.tsx +9 -9
  376. package/src/presentation/screen/use_smile_id_processing_screen.tsx +7 -7
  377. package/src/presentation/theme/theme.ts +21 -19
  378. package/src/presentation/utils/force_max_brightness.tsx +4 -4
  379. package/dist/camera/frame_processor_plugin.d.ts +0 -28
  380. package/dist/camera/frame_processor_plugin.d.ts.map +0 -1
  381. package/dist/camera/frame_processor_plugin.js +0 -21
  382. package/dist/camera/frame_processor_plugin.js.map +0 -1
  383. package/dist/camera/use_smile_id_frame_processor.d.ts +0 -38
  384. package/dist/camera/use_smile_id_frame_processor.d.ts.map +0 -1
  385. package/dist/camera/use_smile_id_frame_processor.js +0 -2
  386. package/dist/camera/use_smile_id_frame_processor.js.map +0 -1
  387. package/dist/presentation/components/use_smile_id_document_frame_glyph.d.ts +0 -17
  388. package/dist/presentation/components/use_smile_id_document_frame_glyph.d.ts.map +0 -1
  389. package/dist/presentation/components/use_smile_id_document_frame_glyph.js +0 -17
  390. package/dist/presentation/components/use_smile_id_document_frame_glyph.js.map +0 -1
  391. package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_animation.d.ts +0 -24
  392. package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_animation.d.ts.map +0 -1
  393. package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_animation.js +0 -91
  394. package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_animation.js.map +0 -1
  395. package/dist/presentation/components/use_smile_id_instruction_card.d.ts +0 -31
  396. package/dist/presentation/components/use_smile_id_instruction_card.d.ts.map +0 -1
  397. package/dist/presentation/components/use_smile_id_instruction_card.js +0 -43
  398. package/dist/presentation/components/use_smile_id_instruction_card.js.map +0 -1
  399. package/dist/presentation/screen/helpers/use_document_orientation_lock.d.ts +0 -24
  400. package/dist/presentation/screen/helpers/use_document_orientation_lock.d.ts.map +0 -1
  401. package/dist/presentation/screen/helpers/use_document_orientation_lock.js +0 -47
  402. package/dist/presentation/screen/helpers/use_document_orientation_lock.js.map +0 -1
  403. package/src/presentation/components/use_smile_id_document_frame_glyph.tsx +0 -162
@@ -3,44 +3,98 @@ import { DocumentCaptureMode } from "../../../../core/models/document_capture_mo
3
3
  export { CaptureType };
4
4
  // --- Per-screen builders ---------------------------------------------------
5
5
  export class ConsentConfigBuilder {
6
+ /** Your company name, shown in the consent copy. */
6
7
  partnerName = "";
7
- /** Partner brand mark rendered next to the Smile ID icon at the top of the consent screen. */
8
+ /**
9
+ * Optional partner logo shown on the consent screen, rendered next to
10
+ * the Smile ID icon at the top.
11
+ */
8
12
  partnerIcon;
13
+ /** URL of your privacy policy, linked from the consent screen. */
9
14
  partnerPrivacyPolicyUrl;
15
+ /**
16
+ * Whether to show the "Powered by Smile ID" attribution. Defaults to
17
+ * true.
18
+ */
10
19
  showAttribution = true;
20
+ /**
21
+ * Callback invoked with the `ConsentInformation` when the user grants
22
+ * consent.
23
+ */
11
24
  onConsentGranted;
25
+ /** Provides a custom allow/agree button in place of the default. */
12
26
  allowButton;
27
+ /** Provides a custom deny/cancel button in place of the default. */
13
28
  denyButton;
14
29
  }
15
30
  export class InstructionsConfigBuilder {
16
- /** Leading title text (title-text colour). Defaults to the localized prefix. */
31
+ /**
32
+ * The leading, non-emphasized part of the instructions screen title.
33
+ * Defaults to the localized prefix.
34
+ */
17
35
  titlePrefix;
18
- /** Emphasized word (primary colour, own line). Defaults to the localized "selfie". */
36
+ /**
37
+ * The emphasized (highlighted) part of the instructions screen title.
38
+ * Defaults to the localized "selfie".
39
+ */
19
40
  titleEmphasis;
20
- /** Lottie hero. Unset uses the selfie hero (or the ESS hero when enhanced liveness is on). */
41
+ /**
42
+ * Name of the hero animation asset shown at the top of the
43
+ * instructions screen. Unset uses the selfie hero (or the ESS hero
44
+ * when enhanced liveness is on).
45
+ */
21
46
  heroAnimation;
22
- /** Capture-guidelines section title (rendered uppercase). */
47
+ /** Heading for the list of capture guidelines (rendered uppercase). */
23
48
  guidelinesSectionTitle;
24
- /** Capture-guideline tiles; push to customize. Empty uses the defaults. */
49
+ /** The list of guideline items shown to the user. Empty uses the defaults. */
25
50
  guidelines = [];
51
+ /**
52
+ * Whether to show the "Powered by Smile ID" attribution. Defaults to
53
+ * true.
54
+ */
26
55
  showAttribution = true;
27
- /** Draw the face-oval ring around the hero animation. */
56
+ /** When true, draws the face-oval ring around the hero animation. */
28
57
  showHeroOval = true;
58
+ /** Provides a custom continue button in place of the default. */
29
59
  continueButton;
30
60
  }
31
61
  export class SelfieCaptureConfigBuilder {
62
+ /**
63
+ * When true, lets an assisting agent flip to the rear camera to capture
64
+ * the subject. Defaults to false.
65
+ */
32
66
  allowAgentMode = false;
67
+ /**
68
+ * When true, uses the enhanced active-liveness capture path. Defaults
69
+ * to false.
70
+ */
33
71
  enableEnhancedLiveness = false;
34
72
  }
35
73
  export class DocumentCaptureConfigBuilder {
36
- /** The document being captured. **Required** — missing it fails validation. */
74
+ /**
75
+ * The kind of document being captured, which drives the capture
76
+ * framing and aspect ratio. **Required** — missing it fails validation.
77
+ */
37
78
  documentType;
38
- /** When the photo is taken. Defaults to auto-capture with a 10s manual fallback. */
79
+ /**
80
+ * Whether the document is captured automatically when held steady, or
81
+ * manually by shutter. Defaults to auto-capture with a 10s manual
82
+ * fallback.
83
+ */
39
84
  captureMode = DocumentCaptureMode.AutoCaptureWithManualFallback();
85
+ /**
86
+ * When true, lets the user pick an existing document image from the
87
+ * gallery. Defaults to false.
88
+ */
40
89
  allowGalleryUpload = false;
90
+ /** When true, captures both the front and back of the document. Defaults to true. */
41
91
  captureBothSides = true;
92
+ /** When true, lets the user skip capturing the back side. Defaults to false. */
42
93
  allowSkipBack = false;
43
- /** Optional aspect ratio hint — e.g. CR-80 ID card = 1.586. */
94
+ /**
95
+ * Optional fixed aspect ratio for the document frame when the ID's
96
+ * dimensions are known in advance — e.g. CR-80 ID card = 1.586.
97
+ */
44
98
  knownIdAspectRatio;
45
99
  /** The `documentType`'s aspect ratio when present, otherwise `knownIdAspectRatio`. */
46
100
  get resolvedAspectRatio() {
@@ -48,15 +102,25 @@ export class DocumentCaptureConfigBuilder {
48
102
  }
49
103
  }
50
104
  export class CaptureConfigBuilder {
105
+ /** What this screen captures — a selfie or a document. Required. */
51
106
  captureType;
107
+ /** Provides a custom start/capture button in place of the default. */
52
108
  startButton;
53
109
  _selfie;
54
110
  _document;
111
+ /**
112
+ * Configures selfie-specific capture options (agent mode, enhanced
113
+ * liveness).
114
+ */
55
115
  selfie(block) {
56
116
  if (!this._selfie)
57
117
  this._selfie = new SelfieCaptureConfigBuilder();
58
118
  block(this._selfie);
59
119
  }
120
+ /**
121
+ * Configures document-specific capture options (document type, capture
122
+ * mode, gallery upload, two-sided capture).
123
+ */
60
124
  document(block) {
61
125
  if (!this._document)
62
126
  this._document = new DocumentCaptureConfigBuilder();
@@ -72,41 +136,78 @@ export class CaptureConfigBuilder {
72
136
  }
73
137
  }
74
138
  export class PreviewConfigBuilder {
139
+ /** Whether the preview screen offers a retake action. */
75
140
  allowRetake = true;
141
+ /**
142
+ * Whether to show the "Powered by Smile ID" attribution. Defaults to
143
+ * true.
144
+ */
76
145
  showAttribution = true;
146
+ /** Provides a custom continue button in place of the default. */
77
147
  continueButton;
148
+ /** Provides a custom cancel button in place of the default. */
78
149
  cancelButton;
79
150
  }
80
151
  export class ProcessingConfigBuilder {
152
+ /**
153
+ * When true, shows a numeric progress percentage while the job is
154
+ * processing.
155
+ */
81
156
  showProgressPercentage = true;
157
+ /**
158
+ * Whether to show the "Powered by Smile ID" attribution. Defaults to
159
+ * true.
160
+ */
82
161
  showAttribution = true;
162
+ /** Provides a custom continue button in place of the default. */
83
163
  continueButton;
164
+ /** Provides a custom retry button in place of the default. */
84
165
  retryButton;
166
+ /** Provides a custom exit button in place of the default. */
85
167
  exitButton;
86
168
  }
87
169
  // --- Top-level screens builder ---------------------------------------------
88
170
  export class ScreensBuilder {
89
171
  _steps = [];
172
+ /**
173
+ * Adds a consent screen that collects the user's agreement to
174
+ * biometric data processing before capture.
175
+ */
90
176
  consent(block) {
91
177
  const config = new ConsentConfigBuilder();
92
178
  block?.(config);
93
179
  this._steps.push({ kind: "consent", config });
94
180
  }
181
+ /**
182
+ * Adds an instructions screen explaining what the user is about to do.
183
+ */
95
184
  instructions(block) {
96
185
  const config = new InstructionsConfigBuilder();
97
186
  block?.(config);
98
187
  this._steps.push({ kind: "instructions", config });
99
188
  }
189
+ /**
190
+ * Adds a capture screen that runs the camera and on-device detection
191
+ * for a selfie or document.
192
+ */
100
193
  capture(block) {
101
194
  const config = new CaptureConfigBuilder();
102
195
  block(config);
103
196
  this._steps.push({ kind: "capture", config });
104
197
  }
198
+ /**
199
+ * Adds a preview screen that lets the user review the captured image
200
+ * and optionally retake it.
201
+ */
105
202
  preview(block) {
106
203
  const config = new PreviewConfigBuilder();
107
204
  block?.(config);
108
205
  this._steps.push({ kind: "preview", config });
109
206
  }
207
+ /**
208
+ * Adds a processing screen shown while the job is submitted, displaying
209
+ * success, failure, or retry states.
210
+ */
110
211
  processing(block) {
111
212
  const config = new ProcessingConfigBuilder();
112
213
  block?.(config);
@@ -1 +1 @@
1
- {"version":3,"file":"screens_builder.js","sourceRoot":"","sources":["../../../../../src/presentation/flow/dsl/builder/screens_builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAKpF,OAAO,EAAE,WAAW,EAAE,CAAC;AAqBvB,8EAA8E;AAE9E,MAAM,OAAO,oBAAoB;IAC/B,WAAW,GAAG,EAAE,CAAC;IACjB,8FAA8F;IAC9F,WAAW,CAAa;IACxB,uBAAuB,CAAU;IACjC,eAAe,GAAG,IAAI,CAAC;IACvB,gBAAgB,CAAsC;IACtD,WAAW,CAAc;IACzB,UAAU,CAAc;CACzB;AAED,MAAM,OAAO,yBAAyB;IACpC,gFAAgF;IAChF,WAAW,CAAU;IACrB,sFAAsF;IACtF,aAAa,CAAU;IACvB,8FAA8F;IAC9F,aAAa,CAAuB;IACpC,6DAA6D;IAC7D,sBAAsB,CAAU;IAChC,2EAA2E;IAC3E,UAAU,GAA2B,EAAE,CAAC;IACxC,eAAe,GAAG,IAAI,CAAC;IACvB,yDAAyD;IACzD,YAAY,GAAG,IAAI,CAAC;IACpB,cAAc,CAAc;CAC7B;AAED,MAAM,OAAO,0BAA0B;IACrC,cAAc,GAAG,KAAK,CAAC;IACvB,sBAAsB,GAAG,KAAK,CAAC;CAChC;AAED,MAAM,OAAO,4BAA4B;IACvC,+EAA+E;IAC/E,YAAY,CAAgB;IAC5B,oFAAoF;IACpF,WAAW,GACT,mBAAmB,CAAC,6BAA6B,EAAE,CAAC;IACtD,kBAAkB,GAAG,KAAK,CAAC;IAC3B,gBAAgB,GAAG,IAAI,CAAC;IACxB,aAAa,GAAG,KAAK,CAAC;IACtB,+DAA+D;IAC/D,kBAAkB,CAAU;IAE5B,sFAAsF;IACtF,IAAI,mBAAmB;QACrB,O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IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,YAAY,CAAC,KAA8C;QACzD,MAAM,MAAM,GAAG,IAAI,yBAAyB,EAAE,CAAC;QAC/C,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;QAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,CAAC,KAAwC;QAC9C,MAAM,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;QAC1C,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,KAAyC;QAC/C,MAAM,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;QAC1C,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;QAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,UAAU,CAAC,KAA4C;QACrD,MAAM,MAAM,GAAG,IAAI,uBAAuB,EAAE,CAAC;QAC7C,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;QAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IACnD,CAAC;IAED,KAAK;QACH,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
1
+ {"version":3,"file":"screens_builder.js","sourceRoot":"","sources":["../../../../../src/presentation/flow/dsl/builder/screens_builder.ts"],"names":[],"mappings":"AACA,OAAO,E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CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
@@ -17,17 +17,30 @@ export type ThemeConfiguration = {
17
17
  * picks light or dark at mount time based on the active color scheme.
18
18
  */
19
19
  export declare class ThemeConfigBuilder {
20
+ /** Primary brand color used for key actions and accents. */
20
21
  primaryColor?: AdaptiveColor;
22
+ /**
23
+ * Foreground color used on top of the primary color (for example
24
+ * button text).
25
+ */
21
26
  primaryForeground?: AdaptiveColor;
27
+ /** Secondary color used for less prominent surfaces and actions. */
22
28
  secondaryColor?: AdaptiveColor;
29
+ /** Accent color used for highlights and selected states. */
23
30
  accentColor?: AdaptiveColor;
31
+ /** Optional font family applied to all SDK text. */
24
32
  fontFamily?: string;
33
+ /** Corner radius applied to buttons. */
25
34
  buttonShape?: number;
35
+ /** Corner radius applied to cards and surfaces. */
26
36
  cardShape?: number;
27
- /** Helper to create an `AdaptiveColor` with explicit light/dark values. */
37
+ /**
38
+ * Builds an adaptive color that resolves to the light or dark value
39
+ * based on the active appearance.
40
+ */
28
41
  color(light: string, dark: string): AdaptiveColor;
29
42
  /**
30
- * Helper to create a button/card shape value. Returns the input
43
+ * Builds a corner-shape value from the given radius. Returns the input
31
44
  * radius unchanged — React Native resolves shape at render time via
32
45
  * `borderRadius`, so the `buttonShape` / `cardShape` properties are
33
46
  * plain numbers.
@@ -1 +1 @@
1
- {"version":3,"file":"theme_builder.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flow/dsl/builder/theme_builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAE9B,iEAAiE;AACjE,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,2E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AAiB,CAAC,EAAE,aAAa,CAAC;IAElC,oEAAoE;IACpE,cAAc,CAAC,EAAE,aAAa,CAAC;IAE/B,4DAA4D;IAC5D,WAAW,CAAC,EAAE,aAAa,CAAC;IAE5B,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa;IAIjD;;;;;OAKG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAI7B;;;;OAIG;IACH,KAAK,IAAI,kBAAkB;IAO3B,OAAO,CAAC,QAAQ;CAmCjB"}
@@ -7,19 +7,32 @@ import { DEFAULT_FONT_FAMILY, defaultDarkTheme, defaultLightTheme, typographyWit
7
7
  * picks light or dark at mount time based on the active color scheme.
8
8
  */
9
9
  export class ThemeConfigBuilder {
10
+ /** Primary brand color used for key actions and accents. */
10
11
  primaryColor;
12
+ /**
13
+ * Foreground color used on top of the primary color (for example
14
+ * button text).
15
+ */
11
16
  primaryForeground;
17
+ /** Secondary color used for less prominent surfaces and actions. */
12
18
  secondaryColor;
19
+ /** Accent color used for highlights and selected states. */
13
20
  accentColor;
21
+ /** Optional font family applied to all SDK text. */
14
22
  fontFamily;
23
+ /** Corner radius applied to buttons. */
15
24
  buttonShape;
25
+ /** Corner radius applied to cards and surfaces. */
16
26
  cardShape;
17
- /** Helper to create an `AdaptiveColor` with explicit light/dark values. */
27
+ /**
28
+ * Builds an adaptive color that resolves to the light or dark value
29
+ * based on the active appearance.
30
+ */
18
31
  color(light, dark) {
19
32
  return Object.freeze({ light, dark });
20
33
  }
21
34
  /**
22
- * Helper to create a button/card shape value. Returns the input
35
+ * Builds a corner-shape value from the given radius. Returns the input
23
36
  * radius unchanged — React Native resolves shape at render time via
24
37
  * `borderRadius`, so the `buttonShape` / `cardShape` properties are
25
38
  * plain numbers.
@@ -1 +1 @@
1
- {"version":3,"file":"theme_builder.js","sourceRoot":"","sources":["../../../../../src/presentation/flow/dsl/builder/theme_builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,GAGzB,MAAM,sBAAsB,CAAC;AAc9B;;;;;;GAMG;AACH,MAAM,OAAO,kBAAkB;IAC7B,YAAY,CAAiB;IAC7B,iBAAiB,CAAiB;IAClC,cAAc,CAAiB;IAC/B,WAAW,CAAiB;IAE5B,UAAU,CAAU;IAEpB,WAAW,CAAU;IACrB,SAAS,CAAU;IAEnB,2EAA2E;IAC3E,KAAK,CAAC,KAAa,EAAE,IAAY;QAC/B,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACxC,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAc;QAClB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACH,KAAK;QACH,OAAO,MAAM,CAAC,MAAM,CAAC;YACnB,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;YAChD,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;SAC9C,CAAC,CAAC;IACL,CAAC;IAEO,QAAQ,CACd,OAAyB,EACzB,IAAqB;QAErB,MAAM,IAAI,GAAG,CAAC,CAA4B,EAAsB,EAAE,CAChE,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC3C,uEAAuE;QACvE,oEAAoE;QACpE,uEAAuE;QACvE,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxC,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAA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owBuilder } from "./use_smile_id_flow_builder";
2
2
  import type { FlowBuildResult } from "./flow_build_result";
3
3
  /**
4
- * Top-level partner entry point. Configures the flow declaratively
5
- * via the `builder` closure, then renders the result. The component
6
- * owns the build-and-dispatch lifecycle internally — partners never
7
- * touch the intermediate [FlowBuildResult].
4
+ * Entry point for a UseSmileID identity-verification flow. Host this in
5
+ * your UI and configure the flow inside the builder closure — declare
6
+ * the screens, network credentials, theme, and ML analyzers, then handle
7
+ * the terminal outcome via `onResult`. The component owns the
8
+ * build-and-dispatch lifecycle internally — partners never touch the
9
+ * intermediate [FlowBuildResult].
8
10
  *
9
11
  * export function VerifyScreen({ onComplete }) {
10
12
  * return (
@@ -1 +1 @@
1
- {"version":3,"file":"use_smile_id_builder.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flow/dsl/use_smile_id_builder.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,qBAAqB,EAEtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,sBAAsB,+BAwCpE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,GAClD,eAAe,CAIjB;AAED,OAAO,EACL,qBAAqB,EACrB,KAAK,yBAAyB,GAC/B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"use_smile_id_builder.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flow/dsl/use_smile_id_builder.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,qBAAqB,EAEtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,sBAAsB,+BAwCpE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,GAClD,eAAe,CAIjB;AAED,OAAO,EACL,qBAAqB,EACrB,KAAK,yBAAyB,GAC/B,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use_smile_id_builder.js","sourceRoot":"","sources":["../../../../src/presentation/flow/dsl/use_smile_id_builder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qBAAqB,GAEtB,MAAM,6BAA6B,CAAC;AAgDrC,MAAM,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAA0B;IACnE,2DAA2D;IAC3D,6DAA6D;IAC7D,gBAAgB;IAChB,EAAE;IACF,mEAAmE;IACnE,oEAAoE;IACpE,gEAAgE;IAChE,mEAAmE;IACnE,gEAAgE;IAChE,iEAAiE;IACjE,mDAAmD;IACnD,uDAAuD;IACvD,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE;QAC3C,MAAM,WAAW,GAAG,IAAI,qBAAqB,EAAE,CAAC;QAChD,OAAO,CAAC,WAAW,CAAC,CAAC;QACrB,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,EAAE,CAAC;QAClC,OAAO;YACL,MAAM,EAAE,KAAK;YACb,WAAW,EAAE;gBACX,QAAQ,EAAE,WAAW,CAAC,QAAQ;gBAC9B,eAAe,EAEX,WAGD,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,eAAe,KAAK,IAAI;aAC9C;SACF,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,CACL,KAAC,qBAAqB,IACpB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,eAAe,EAAE,WAAW,CAAC,eAAe,GAC5C,CACH,CAAC;IACJ,CAAC;IACD,OAAO,KAAC,mBAAmB,IAAC,aAAa,EAAE,MAAM,CAAC,aAAa,GAAI,CAAC;AACtE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAC/B,SAAmD;IAEnD,MAAM,OAAO,GAAG,IAAI,qBAAqB,EAAE,CAAC;IAC5C,SAAS,CAAC,OAAO,CAAC,CAAC;IACnB,OAAO,OAAO,CAAC,KAAK,EAAE,CAAC;AACzB,CAAC;AAED,OAAO,EACL,qBAAqB,GAEtB,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"use_smile_id_builder.js","sourceRoot":"","sources":["../../../../src/presentation/flow/dsl/use_smile_id_builder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qBAAqB,GAEtB,MAAM,6BAA6B,CAAC;AAkDrC,MAAM,UAAU,iBAA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uilder {
70
70
  */
71
71
  localizations?: UseSmileIDLocalizations;
72
72
  /**
73
- * Notified when the flow completes (success or failure). Defaults
74
- * to a no-op so partners who don't need result handling still get
75
- * a valid configuration; in production set this to wire the
76
- * server-issued `JobSubmissionResponse` (`userId` / `jobId` /
77
- * `status` / `message` / `createdAt`) into the partner's job-status
78
- * pipeline.
73
+ * Invoked once when the flow terminates — with the submitted job on
74
+ * success, a typed error on failure, or a cancellation when the user
75
+ * exits before completing. Wire the returned user id / job id into
76
+ * your job-status pipeline. Defaults to a no-op so partners who don't
77
+ * need result handling still get a valid configuration; the
78
+ * server-issued `JobSubmissionResponse` carries `userId` / `jobId` /
79
+ * `status` / `message` / `createdAt`.
79
80
  */
80
81
  onResult: (result: UseSmileIDResult<JobSubmissionResponse>) => void;
81
82
  /**
82
- * Optional. Notified for each analytics event during the flow.
83
- * Stub note: orchestrator does not yet emit events — see
84
- * `docs/Architecture.md § Rollout`.
83
+ * Invoked for every analytics event the SDK emits during the flow.
84
+ * Optional — leave unset to ignore analytics.
85
85
  */
86
86
  onAnalyticsEvent?: (event: UseSmileIDAnalyticsEvent) => void;
87
87
  private _config?;
@@ -90,15 +90,19 @@ export declare class UseSmileIDFlowBuilder {
90
90
  private _ml?;
91
91
  private _screens?;
92
92
  /**
93
- * `b.config((c) => { c.enableCrashReporting = false; })`
93
+ * Configures global SDK feature flags (debug mode, offline mode, crash
94
+ * reporting). Repeated calls compose against the same configuration —
95
+ * `enableCrashReporting` set in one call and `enableDebugMode` set in
96
+ * another both end up on the final config.
94
97
  *
95
- * Compose-friendly: repeated calls reuse the same builder, so
96
- * `enableCrashReporting` set in one call and `enableDebugMode` set
97
- * in another both end up on the final config.
98
+ * `b.config((c) => { c.enableCrashReporting = false; })`
98
99
  */
99
100
  config(block: (c: UseSmileIDConfigBuilder) => void): void;
100
101
  /**
101
- * `b.theme((t) => { t.primaryColor = '#1A73E8'; t.buttonShape = 12; })`
102
+ * Configures the visual theme — colors, fonts, and corner shapes —
103
+ * applied to every SDK screen in the flow.
104
+ *
105
+ * `b.theme((t) => { t.primaryColor = t.color('#1A73E8', '#4DA3FF'); t.buttonShape = 12; })`
102
106
  *
103
107
  * Each call replaces the prior theme builder — partners typically
104
108
  * configure the theme in one place, and accumulating across helpers
@@ -107,6 +111,10 @@ export declare class UseSmileIDFlowBuilder {
107
111
  */
108
112
  theme(block: (t: ThemeConfigBuilder) => void): void;
109
113
  /**
114
+ * Configures the network stack: partner credentials, job type,
115
+ * timeouts, retry policy, response cache, and custom interceptors.
116
+ * Required for any flow that submits a job.
117
+ *
110
118
  * `b.network((n) => { n.config((c) => { c.partnerConfig((p) => { p.partnerId = ...; }); }); })`
111
119
  *
112
120
  * Each call replaces the prior network builder. Network config
@@ -115,10 +123,17 @@ export declare class UseSmileIDFlowBuilder {
115
123
  */
116
124
  network(block: (n: UseSmileIDNetworkBuilder) => void): void;
117
125
  /**
126
+ * Registers the on-device ML analyzers used for face and document
127
+ * detection, keyed by capture type.
128
+ *
118
129
  * `b.ml((m) => { m.analyzers((a) => { a.forCaptureType(CaptureType.selfie, (face) => face.add(useSmileIDVisionFace)); }); })`
119
130
  */
120
131
  ml(block: (m: UseSmileIDMLBuilder) => void): void;
121
132
  /**
133
+ * Declares the ordered sequence of screens the flow presents. Screens
134
+ * render in the order they are added; the same screen type may be
135
+ * added more than once.
136
+ *
122
137
  * `b.screens((screens) => { screens.instructions(); screens.capture((c) => { c.captureType = CaptureType.selfie; }); })`
123
138
  *
124
139
  * Each screen-builder call appends a step to the orchestrator's
@@ -126,10 +141,11 @@ export declare class UseSmileIDFlowBuilder {
126
141
  */
127
142
  screens(block: (s: ScreensBuilder) => void): void;
128
143
  /**
129
- * Quick triage of the in-progress builder state. Today the only
130
- * rule it surfaces is the empty-screens-block error — `b.screens`
131
- * must register at least one screen before the builder can produce
132
- * a flow.
144
+ * Runs a pre-flight check of the current builder configuration and
145
+ * returns a `ValidationState` describing any blocking issues, without
146
+ * throwing. Today the only rule it surfaces is the empty-screens-block
147
+ * error — `b.screens` must register at least one screen before the
148
+ * builder can produce a flow.
133
149
  *
134
150
  * The full rule set (screen ordering, dependency rules, KYC and
135
151
  * consent payload validation, etc.) runs inside `build()` and is
@@ -137,38 +153,48 @@ export declare class UseSmileIDFlowBuilder {
137
153
  * the full picture during configuration should call
138
154
  * `useSmileIDBuilder(...)` and pattern-match on the returned
139
155
  * `result.kind`.
156
+ *
157
+ * @returns a `ValidationState` describing any blocking issues.
140
158
  */
141
159
  validate(): ValidationState;
142
160
  /**
143
- * Validate a `ConsentInformation` payload in isolation — useful
144
- * when the source of truth is dynamic (e.g. a payload pulled from
145
- * partner storage or a remote config) and the partner wants to
146
- * pre-flight it before assigning to `b.consentInformation`.
161
+ * Validates a `ConsentInformation` payload in isolation and returns a
162
+ * `ValidationState`, without throwing. Useful when the payload comes
163
+ * from dynamic partner storage or remote config — pre-flight it before
164
+ * assigning to `b.consentInformation`.
147
165
  */
148
166
  validateConsent(consent: ConsentInformation): ValidationState;
149
167
  /**
150
- * Validate an `EnhancedKYCParams` payload in isolation — useful
151
- * when the partner pulls KYC fields from a form or remote config
152
- * and wants to pre-flight them before assigning to
153
- * `b.enhancedKYCParams`.
168
+ * Validates an `EnhancedKYCParams` payload in isolation and returns a
169
+ * `ValidationState`, without throwing. Useful when the partner pulls
170
+ * KYC fields from a form or remote config and wants to pre-flight them
171
+ * before assigning to `b.enhancedKYCParams`.
154
172
  */
155
173
  validateEnhancedKYCParams(params: EnhancedKYCParams): ValidationState;
156
174
  /**
157
- * Validate a `BiometricKYCParams` payload in isolation. Same
158
- * semantics as `validateEnhancedKYCParams` — same field rules,
159
- * different param shape.
175
+ * Validates a `BiometricKYCParams` payload in isolation and returns a
176
+ * `ValidationState`, without throwing.
160
177
  */
161
178
  validateBiometricKYCParams(params: BiometricKYCParams): ValidationState;
162
- /** Validate a `DocumentVerificationParams` payload in isolation. */
179
+ /**
180
+ * Validates a `DocumentVerificationParams` payload in isolation and
181
+ * returns a `ValidationState`, without throwing. Only `country` is
182
+ * required; `idType` is optional.
183
+ */
163
184
  validateDocumentVerificationParams(params: DocumentVerificationParams): ValidationState;
164
- /** Validate an `EnhancedDocumentVerificationParams` payload in isolation. */
185
+ /**
186
+ * Validates an `EnhancedDocumentVerificationParams` payload in
187
+ * isolation and returns a `ValidationState`, without throwing. Both
188
+ * `country` and `idType` are required.
189
+ */
165
190
  validateEnhancedDocumentVerificationParams(params: EnhancedDocumentVerificationParams): ValidationState;
166
191
  /**
167
- * Validate a `UserDetails` payload in isolation — useful when the
168
- * partner pulls user PII from a form or remote config and wants to
169
- * pre-flight it before assigning to `b.userDetails`. Surfaces the
170
- * same dotted-path field names (`userDetails.givenNames` etc.) that
171
- * the in-build validator emits.
192
+ * Validates a `UserDetails` payload in isolation and returns a
193
+ * `ValidationState`, without throwing. Useful when the partner pulls
194
+ * user PII from a form or remote config and wants to pre-flight it
195
+ * before assigning to `b.userDetails`. Surfaces the same dotted-path
196
+ * field names (`userDetails.givenNames` etc.) that the in-build
197
+ * validator emits.
172
198
  */
173
199
  validateUserDetails(userDetails: UserDetails): ValidationState;
174
200
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"use_smile_id_flow_builder.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flow/dsl/use_smile_id_flow_builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,kCAAkC,EAClC,WAAW,EACZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;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