@smileid/usesmileid 12.0.0-beta01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +130 -0
- package/dist/camera/camera_configuration.d.ts +31 -0
- package/dist/camera/camera_configuration.d.ts.map +1 -0
- package/dist/camera/camera_configuration.js +2 -0
- package/dist/camera/camera_configuration.js.map +1 -0
- package/dist/camera/camera_defaults.d.ts +25 -0
- package/dist/camera/camera_defaults.d.ts.map +1 -0
- package/dist/camera/camera_defaults.js +22 -0
- package/dist/camera/camera_defaults.js.map +1 -0
- package/dist/camera/camera_lens.d.ts +13 -0
- package/dist/camera/camera_lens.d.ts.map +1 -0
- package/dist/camera/camera_lens.js +12 -0
- package/dist/camera/camera_lens.js.map +1 -0
- package/dist/camera/camera_permissions.d.ts +18 -0
- package/dist/camera/camera_permissions.d.ts.map +1 -0
- package/dist/camera/camera_permissions.js +23 -0
- package/dist/camera/camera_permissions.js.map +1 -0
- package/dist/camera/camera_preview_image.d.ts +18 -0
- package/dist/camera/camera_preview_image.d.ts.map +1 -0
- package/dist/camera/camera_preview_image.js +8 -0
- package/dist/camera/camera_preview_image.js.map +1 -0
- package/dist/camera/document_image_pipeline.d.ts +24 -0
- package/dist/camera/document_image_pipeline.d.ts.map +1 -0
- package/dist/camera/document_image_pipeline.js +70 -0
- package/dist/camera/document_image_pipeline.js.map +1 -0
- package/dist/camera/document_resize_target.d.ts +13 -0
- package/dist/camera/document_resize_target.d.ts.map +1 -0
- package/dist/camera/document_resize_target.js +17 -0
- package/dist/camera/document_resize_target.js.map +1 -0
- package/dist/camera/focus_state.d.ts +31 -0
- package/dist/camera/focus_state.d.ts.map +1 -0
- package/dist/camera/focus_state.js +13 -0
- package/dist/camera/focus_state.js.map +1 -0
- package/dist/camera/frame_processor_plugin.d.ts +28 -0
- package/dist/camera/frame_processor_plugin.d.ts.map +1 -0
- package/dist/camera/frame_processor_plugin.js +21 -0
- package/dist/camera/frame_processor_plugin.js.map +1 -0
- package/dist/camera/orientation_degrees.d.ts +11 -0
- package/dist/camera/orientation_degrees.d.ts.map +1 -0
- package/dist/camera/orientation_degrees.js +21 -0
- package/dist/camera/orientation_degrees.js.map +1 -0
- package/dist/camera/use_smile_id_camera_preview.d.ts +64 -0
- package/dist/camera/use_smile_id_camera_preview.d.ts.map +1 -0
- package/dist/camera/use_smile_id_camera_preview.js +141 -0
- package/dist/camera/use_smile_id_camera_preview.js.map +1 -0
- package/dist/camera/use_smile_id_camera_system.d.ts +97 -0
- package/dist/camera/use_smile_id_camera_system.d.ts.map +1 -0
- package/dist/camera/use_smile_id_camera_system.js +185 -0
- package/dist/camera/use_smile_id_camera_system.js.map +1 -0
- package/dist/camera/use_smile_id_frame_processor.d.ts +38 -0
- package/dist/camera/use_smile_id_frame_processor.d.ts.map +1 -0
- package/dist/camera/use_smile_id_frame_processor.js +2 -0
- package/dist/camera/use_smile_id_frame_processor.js.map +1 -0
- package/dist/camera/use_smile_id_frame_stream.d.ts +70 -0
- package/dist/camera/use_smile_id_frame_stream.d.ts.map +1 -0
- package/dist/camera/use_smile_id_frame_stream.js +93 -0
- package/dist/camera/use_smile_id_frame_stream.js.map +1 -0
- package/dist/core/exception/builder_validation_exception.d.ts +29 -0
- package/dist/core/exception/builder_validation_exception.d.ts.map +1 -0
- package/dist/core/exception/builder_validation_exception.js +37 -0
- package/dist/core/exception/builder_validation_exception.js.map +1 -0
- package/dist/core/exception/capture_validation_exceptions.d.ts +9 -0
- package/dist/core/exception/capture_validation_exceptions.d.ts.map +1 -0
- package/dist/core/exception/capture_validation_exceptions.js +9 -0
- package/dist/core/exception/capture_validation_exceptions.js.map +1 -0
- package/dist/core/exception/consent_validation_exceptions.d.ts +8 -0
- package/dist/core/exception/consent_validation_exceptions.d.ts.map +1 -0
- package/dist/core/exception/consent_validation_exceptions.js +8 -0
- package/dist/core/exception/consent_validation_exceptions.js.map +1 -0
- package/dist/core/exception/duplicate_screen_type_exception.d.ts +13 -0
- package/dist/core/exception/duplicate_screen_type_exception.d.ts.map +1 -0
- package/dist/core/exception/duplicate_screen_type_exception.js +20 -0
- package/dist/core/exception/duplicate_screen_type_exception.js.map +1 -0
- package/dist/core/exception/empty_screens_block_exception.d.ts +11 -0
- package/dist/core/exception/empty_screens_block_exception.d.ts.map +1 -0
- package/dist/core/exception/empty_screens_block_exception.js +17 -0
- package/dist/core/exception/empty_screens_block_exception.js.map +1 -0
- package/dist/core/exception/flow_exceptions.d.ts +27 -0
- package/dist/core/exception/flow_exceptions.d.ts.map +1 -0
- package/dist/core/exception/flow_exceptions.js +37 -0
- package/dist/core/exception/flow_exceptions.js.map +1 -0
- package/dist/core/exception/index.d.ts +41 -0
- package/dist/core/exception/index.d.ts.map +1 -0
- package/dist/core/exception/index.js +53 -0
- package/dist/core/exception/index.js.map +1 -0
- package/dist/core/exception/invalid_consent_config_exception.d.ts +13 -0
- package/dist/core/exception/invalid_consent_config_exception.d.ts.map +1 -0
- package/dist/core/exception/invalid_consent_config_exception.js +18 -0
- package/dist/core/exception/invalid_consent_config_exception.js.map +1 -0
- package/dist/core/exception/invalid_consent_information_exception.d.ts +14 -0
- package/dist/core/exception/invalid_consent_information_exception.d.ts.map +1 -0
- package/dist/core/exception/invalid_consent_information_exception.js +19 -0
- package/dist/core/exception/invalid_consent_information_exception.js.map +1 -0
- package/dist/core/exception/invalid_document_capture_config_exception.d.ts +14 -0
- package/dist/core/exception/invalid_document_capture_config_exception.d.ts.map +1 -0
- package/dist/core/exception/invalid_document_capture_config_exception.js +20 -0
- package/dist/core/exception/invalid_document_capture_config_exception.js.map +1 -0
- package/dist/core/exception/invalid_field_value_exception.d.ts +16 -0
- package/dist/core/exception/invalid_field_value_exception.d.ts.map +1 -0
- package/dist/core/exception/invalid_field_value_exception.js +20 -0
- package/dist/core/exception/invalid_field_value_exception.js.map +1 -0
- package/dist/core/exception/invalid_job_type_screen_config_exception.d.ts +36 -0
- package/dist/core/exception/invalid_job_type_screen_config_exception.d.ts.map +1 -0
- package/dist/core/exception/invalid_job_type_screen_config_exception.js +61 -0
- package/dist/core/exception/invalid_job_type_screen_config_exception.js.map +1 -0
- package/dist/core/exception/invalid_missing_capture_type_exception.d.ts +11 -0
- package/dist/core/exception/invalid_missing_capture_type_exception.d.ts.map +1 -0
- package/dist/core/exception/invalid_missing_capture_type_exception.js +17 -0
- package/dist/core/exception/invalid_missing_capture_type_exception.js.map +1 -0
- package/dist/core/exception/invalid_screen_order_exception.d.ts +17 -0
- package/dist/core/exception/invalid_screen_order_exception.d.ts.map +1 -0
- package/dist/core/exception/invalid_screen_order_exception.js +22 -0
- package/dist/core/exception/invalid_screen_order_exception.js.map +1 -0
- package/dist/core/exception/invalid_selfie_capture_config_exception.d.ts +14 -0
- package/dist/core/exception/invalid_selfie_capture_config_exception.d.ts.map +1 -0
- package/dist/core/exception/invalid_selfie_capture_config_exception.js +20 -0
- package/dist/core/exception/invalid_selfie_capture_config_exception.js.map +1 -0
- package/dist/core/exception/issue_severity.d.ts +14 -0
- package/dist/core/exception/issue_severity.d.ts.map +1 -0
- package/dist/core/exception/issue_severity.js +13 -0
- package/dist/core/exception/issue_severity.js.map +1 -0
- package/dist/core/exception/job_validation_exceptions.d.ts +12 -0
- package/dist/core/exception/job_validation_exceptions.d.ts.map +1 -0
- package/dist/core/exception/job_validation_exceptions.js +12 -0
- package/dist/core/exception/job_validation_exceptions.js.map +1 -0
- package/dist/core/exception/liveness_frame_count_exception.d.ts +15 -0
- package/dist/core/exception/liveness_frame_count_exception.d.ts.map +1 -0
- package/dist/core/exception/liveness_frame_count_exception.js +19 -0
- package/dist/core/exception/liveness_frame_count_exception.js.map +1 -0
- package/dist/core/exception/missing_capture_for_preview_exception.d.ts +14 -0
- package/dist/core/exception/missing_capture_for_preview_exception.d.ts.map +1 -0
- package/dist/core/exception/missing_capture_for_preview_exception.js +22 -0
- package/dist/core/exception/missing_capture_for_preview_exception.js.map +1 -0
- package/dist/core/exception/missing_job_type_exception.d.ts +11 -0
- package/dist/core/exception/missing_job_type_exception.d.ts.map +1 -0
- package/dist/core/exception/missing_job_type_exception.js +17 -0
- package/dist/core/exception/missing_job_type_exception.js.map +1 -0
- package/dist/core/exception/missing_ml_configuration_block_exception.d.ts +11 -0
- package/dist/core/exception/missing_ml_configuration_block_exception.d.ts.map +1 -0
- package/dist/core/exception/missing_ml_configuration_block_exception.js +19 -0
- package/dist/core/exception/missing_ml_configuration_block_exception.js.map +1 -0
- package/dist/core/exception/missing_network_configuration_block_exception.d.ts +11 -0
- package/dist/core/exception/missing_network_configuration_block_exception.d.ts.map +1 -0
- package/dist/core/exception/missing_network_configuration_block_exception.js +19 -0
- package/dist/core/exception/missing_network_configuration_block_exception.js.map +1 -0
- package/dist/core/exception/missing_partner_config_exception.d.ts +18 -0
- package/dist/core/exception/missing_partner_config_exception.d.ts.map +1 -0
- package/dist/core/exception/missing_partner_config_exception.js +35 -0
- package/dist/core/exception/missing_partner_config_exception.js.map +1 -0
- package/dist/core/exception/missing_required_field_exception.d.ts +13 -0
- package/dist/core/exception/missing_required_field_exception.d.ts.map +1 -0
- package/dist/core/exception/missing_required_field_exception.js +18 -0
- package/dist/core/exception/missing_required_field_exception.js.map +1 -0
- package/dist/core/exception/screen_config_validation_exceptions.d.ts +11 -0
- package/dist/core/exception/screen_config_validation_exceptions.d.ts.map +1 -0
- package/dist/core/exception/screen_config_validation_exceptions.js +11 -0
- package/dist/core/exception/screen_config_validation_exceptions.js.map +1 -0
- package/dist/core/exception/use_smile_id_attestation_exception.d.ts +12 -0
- package/dist/core/exception/use_smile_id_attestation_exception.d.ts.map +1 -0
- package/dist/core/exception/use_smile_id_attestation_exception.js +12 -0
- package/dist/core/exception/use_smile_id_attestation_exception.js.map +1 -0
- package/dist/core/exception/use_smile_id_builder_exception.d.ts +19 -0
- package/dist/core/exception/use_smile_id_builder_exception.d.ts.map +1 -0
- package/dist/core/exception/use_smile_id_builder_exception.js +19 -0
- package/dist/core/exception/use_smile_id_builder_exception.js.map +1 -0
- package/dist/core/exception/use_smile_id_camera_exception.d.ts +13 -0
- package/dist/core/exception/use_smile_id_camera_exception.d.ts.map +1 -0
- package/dist/core/exception/use_smile_id_camera_exception.js +13 -0
- package/dist/core/exception/use_smile_id_camera_exception.js.map +1 -0
- package/dist/core/exception/use_smile_id_error_code.d.ts +78 -0
- package/dist/core/exception/use_smile_id_error_code.d.ts.map +1 -0
- package/dist/core/exception/use_smile_id_error_code.js +70 -0
- package/dist/core/exception/use_smile_id_error_code.js.map +1 -0
- package/dist/core/exception/use_smile_id_exception.d.ts +27 -0
- package/dist/core/exception/use_smile_id_exception.d.ts.map +1 -0
- package/dist/core/exception/use_smile_id_exception.js +39 -0
- package/dist/core/exception/use_smile_id_exception.js.map +1 -0
- package/dist/core/exception/use_smile_id_general_exception.d.ts +13 -0
- package/dist/core/exception/use_smile_id_general_exception.d.ts.map +1 -0
- package/dist/core/exception/use_smile_id_general_exception.js +13 -0
- package/dist/core/exception/use_smile_id_general_exception.js.map +1 -0
- package/dist/core/exception/use_smile_id_network_exception.d.ts +117 -0
- package/dist/core/exception/use_smile_id_network_exception.d.ts.map +1 -0
- package/dist/core/exception/use_smile_id_network_exception.js +203 -0
- package/dist/core/exception/use_smile_id_network_exception.js.map +1 -0
- package/dist/core/exception/use_smile_id_validation_exception.d.ts +13 -0
- package/dist/core/exception/use_smile_id_validation_exception.d.ts.map +1 -0
- package/dist/core/exception/use_smile_id_validation_exception.js +13 -0
- package/dist/core/exception/use_smile_id_validation_exception.js.map +1 -0
- package/dist/core/models/config.d.ts +35 -0
- package/dist/core/models/config.d.ts.map +1 -0
- package/dist/core/models/config.js +2 -0
- package/dist/core/models/config.js.map +1 -0
- package/dist/core/models/document_capture_mode.d.ts +34 -0
- package/dist/core/models/document_capture_mode.d.ts.map +1 -0
- package/dist/core/models/document_capture_mode.js +23 -0
- package/dist/core/models/document_capture_mode.js.map +1 -0
- package/dist/core/models/document_type.d.ts +52 -0
- package/dist/core/models/document_type.d.ts.map +1 -0
- package/dist/core/models/document_type.js +45 -0
- package/dist/core/models/document_type.js.map +1 -0
- package/dist/core/models/flow_step.d.ts +10 -0
- package/dist/core/models/flow_step.d.ts.map +1 -0
- package/dist/core/models/flow_step.js +16 -0
- package/dist/core/models/flow_step.js.map +1 -0
- package/dist/core/models/head_turn_direction.d.ts +11 -0
- package/dist/core/models/head_turn_direction.d.ts.map +1 -0
- package/dist/core/models/head_turn_direction.js +14 -0
- package/dist/core/models/head_turn_direction.js.map +1 -0
- package/dist/core/models/job_type.d.ts +34 -0
- package/dist/core/models/job_type.d.ts.map +1 -0
- package/dist/core/models/job_type.js +43 -0
- package/dist/core/models/job_type.js.map +1 -0
- package/dist/core/models/ml_config.d.ts +41 -0
- package/dist/core/models/ml_config.d.ts.map +1 -0
- package/dist/core/models/ml_config.js +27 -0
- package/dist/core/models/ml_config.js.map +1 -0
- package/dist/core/models/network_config.d.ts +127 -0
- package/dist/core/models/network_config.d.ts.map +1 -0
- package/dist/core/models/network_config.js +41 -0
- package/dist/core/models/network_config.js.map +1 -0
- package/dist/core/models/params.d.ts +92 -0
- package/dist/core/models/params.d.ts.map +1 -0
- package/dist/core/models/params.js +5 -0
- package/dist/core/models/params.js.map +1 -0
- package/dist/core/models/result.d.ts +29 -0
- package/dist/core/models/result.d.ts.map +1 -0
- package/dist/core/models/result.js +18 -0
- package/dist/core/models/result.js.map +1 -0
- package/dist/data/api/auth/token_holder.d.ts +40 -0
- package/dist/data/api/auth/token_holder.d.ts.map +1 -0
- package/dist/data/api/auth/token_holder.js +67 -0
- package/dist/data/api/auth/token_holder.js.map +1 -0
- package/dist/data/api/interceptors/gzip_interceptor.d.ts +21 -0
- package/dist/data/api/interceptors/gzip_interceptor.d.ts.map +1 -0
- package/dist/data/api/interceptors/gzip_interceptor.js +29 -0
- package/dist/data/api/interceptors/gzip_interceptor.js.map +1 -0
- package/dist/data/api/interceptors/logging_interceptor.d.ts +26 -0
- package/dist/data/api/interceptors/logging_interceptor.d.ts.map +1 -0
- package/dist/data/api/interceptors/logging_interceptor.js +108 -0
- package/dist/data/api/interceptors/logging_interceptor.js.map +1 -0
- package/dist/data/api/interceptors/sensitive_headers.d.ts +26 -0
- package/dist/data/api/interceptors/sensitive_headers.d.ts.map +1 -0
- package/dist/data/api/interceptors/sensitive_headers.js +42 -0
- package/dist/data/api/interceptors/sensitive_headers.js.map +1 -0
- package/dist/data/api/interceptors/smile_auth_interceptor.d.ts +22 -0
- package/dist/data/api/interceptors/smile_auth_interceptor.d.ts.map +1 -0
- package/dist/data/api/interceptors/smile_auth_interceptor.js +71 -0
- package/dist/data/api/interceptors/smile_auth_interceptor.js.map +1 -0
- package/dist/data/api/interceptors/smile_integrity_interceptor.d.ts +39 -0
- package/dist/data/api/interceptors/smile_integrity_interceptor.d.ts.map +1 -0
- package/dist/data/api/interceptors/smile_integrity_interceptor.js +66 -0
- package/dist/data/api/interceptors/smile_integrity_interceptor.js.map +1 -0
- package/dist/data/api/interceptors/smile_request_mac_interceptor.d.ts +34 -0
- package/dist/data/api/interceptors/smile_request_mac_interceptor.d.ts.map +1 -0
- package/dist/data/api/interceptors/smile_request_mac_interceptor.js +66 -0
- package/dist/data/api/interceptors/smile_request_mac_interceptor.js.map +1 -0
- package/dist/data/api/interceptors/token_refresh_interceptor.d.ts +45 -0
- package/dist/data/api/interceptors/token_refresh_interceptor.d.ts.map +1 -0
- package/dist/data/api/interceptors/token_refresh_interceptor.js +58 -0
- package/dist/data/api/interceptors/token_refresh_interceptor.js.map +1 -0
- package/dist/data/api/smile_id_api.d.ts +124 -0
- package/dist/data/api/smile_id_api.d.ts.map +1 -0
- package/dist/data/api/smile_id_api.js +371 -0
- package/dist/data/api/smile_id_api.js.map +1 -0
- package/dist/data/dsl/builder/cache_config_builder.d.ts +20 -0
- package/dist/data/dsl/builder/cache_config_builder.d.ts.map +1 -0
- package/dist/data/dsl/builder/cache_config_builder.js +23 -0
- package/dist/data/dsl/builder/cache_config_builder.js.map +1 -0
- package/dist/data/dsl/builder/config_builder.d.ts +77 -0
- package/dist/data/dsl/builder/config_builder.d.ts.map +1 -0
- package/dist/data/dsl/builder/config_builder.js +111 -0
- package/dist/data/dsl/builder/config_builder.js.map +1 -0
- package/dist/data/dsl/builder/interceptor_config_builder.d.ts +46 -0
- package/dist/data/dsl/builder/interceptor_config_builder.d.ts.map +1 -0
- package/dist/data/dsl/builder/interceptor_config_builder.js +69 -0
- package/dist/data/dsl/builder/interceptor_config_builder.js.map +1 -0
- package/dist/data/dsl/builder/retry_config_builder.d.ts +21 -0
- package/dist/data/dsl/builder/retry_config_builder.d.ts.map +1 -0
- package/dist/data/dsl/builder/retry_config_builder.js +31 -0
- package/dist/data/dsl/builder/retry_config_builder.js.map +1 -0
- package/dist/data/dsl/builder/timeout_config_builder.d.ts +16 -0
- package/dist/data/dsl/builder/timeout_config_builder.d.ts.map +1 -0
- package/dist/data/dsl/builder/timeout_config_builder.js +22 -0
- package/dist/data/dsl/builder/timeout_config_builder.js.map +1 -0
- package/dist/data/dsl/use_smile_id_network_builder.d.ts +37 -0
- package/dist/data/dsl/use_smile_id_network_builder.d.ts.map +1 -0
- package/dist/data/dsl/use_smile_id_network_builder.js +66 -0
- package/dist/data/dsl/use_smile_id_network_builder.js.map +1 -0
- package/dist/data/factory/networking_factory.d.ts +53 -0
- package/dist/data/factory/networking_factory.d.ts.map +1 -0
- package/dist/data/factory/networking_factory.js +164 -0
- package/dist/data/factory/networking_factory.js.map +1 -0
- package/dist/data/model/image_dimensions.d.ts +16 -0
- package/dist/data/model/image_dimensions.d.ts.map +1 -0
- package/dist/data/model/image_dimensions.js +2 -0
- package/dist/data/model/image_dimensions.js.map +1 -0
- package/dist/data/model/job_request.d.ts +130 -0
- package/dist/data/model/job_request.d.ts.map +1 -0
- package/dist/data/model/job_request.js +2 -0
- package/dist/data/model/job_request.js.map +1 -0
- package/dist/data/model/job_submission_response.d.ts +18 -0
- package/dist/data/model/job_submission_response.d.ts.map +1 -0
- package/dist/data/model/job_submission_response.js +2 -0
- package/dist/data/model/job_submission_response.js.map +1 -0
- package/dist/data/model/sdk_config.d.ts +54 -0
- package/dist/data/model/sdk_config.d.ts.map +1 -0
- package/dist/data/model/sdk_config.js +68 -0
- package/dist/data/model/sdk_config.js.map +1 -0
- package/dist/data/model/sdk_config_capture.d.ts +39 -0
- package/dist/data/model/sdk_config_capture.d.ts.map +1 -0
- package/dist/data/model/sdk_config_capture.js +69 -0
- package/dist/data/model/sdk_config_capture.js.map +1 -0
- package/dist/data/model/sdk_config_source.d.ts +25 -0
- package/dist/data/model/sdk_config_source.d.ts.map +1 -0
- package/dist/data/model/sdk_config_source.js +24 -0
- package/dist/data/model/sdk_config_source.js.map +1 -0
- package/dist/data/repository/use_smile_id_repository.d.ts +19 -0
- package/dist/data/repository/use_smile_id_repository.d.ts.map +1 -0
- package/dist/data/repository/use_smile_id_repository.js +2 -0
- package/dist/data/repository/use_smile_id_repository.js.map +1 -0
- package/dist/data/repository/use_smile_id_repository_impl.d.ts +29 -0
- package/dist/data/repository/use_smile_id_repository_impl.d.ts.map +1 -0
- package/dist/data/repository/use_smile_id_repository_impl.js +75 -0
- package/dist/data/repository/use_smile_id_repository_impl.js.map +1 -0
- package/dist/data/security/request_canonicalizer.d.ts +4 -0
- package/dist/data/security/request_canonicalizer.d.ts.map +1 -0
- package/dist/data/security/request_canonicalizer.js +120 -0
- package/dist/data/security/request_canonicalizer.js.map +1 -0
- package/dist/data/security/request_timestamp.d.ts +11 -0
- package/dist/data/security/request_timestamp.d.ts.map +1 -0
- package/dist/data/security/request_timestamp.js +13 -0
- package/dist/data/security/request_timestamp.js.map +1 -0
- package/dist/data/security/signing_crypto.d.ts +25 -0
- package/dist/data/security/signing_crypto.d.ts.map +1 -0
- package/dist/data/security/signing_crypto.js +145 -0
- package/dist/data/security/signing_crypto.js.map +1 -0
- package/dist/data/security/smile_id_crypto_error.d.ts +11 -0
- package/dist/data/security/smile_id_crypto_error.d.ts.map +1 -0
- package/dist/data/security/smile_id_crypto_error.js +14 -0
- package/dist/data/security/smile_id_crypto_error.js.map +1 -0
- package/dist/data/security/smile_id_crypto_manager.d.ts +30 -0
- package/dist/data/security/smile_id_crypto_manager.d.ts.map +1 -0
- package/dist/data/security/smile_id_crypto_manager.js +40 -0
- package/dist/data/security/smile_id_crypto_manager.js.map +1 -0
- package/dist/data/smile_id_urls.d.ts +12 -0
- package/dist/data/smile_id_urls.d.ts.map +1 -0
- package/dist/data/smile_id_urls.js +14 -0
- package/dist/data/smile_id_urls.js.map +1 -0
- package/dist/data/util/retry_util.d.ts +27 -0
- package/dist/data/util/retry_util.d.ts.map +1 -0
- package/dist/data/util/retry_util.js +68 -0
- package/dist/data/util/retry_util.js.map +1 -0
- package/dist/data/util/use_smile_id_token_decoder.d.ts +33 -0
- package/dist/data/util/use_smile_id_token_decoder.d.ts.map +1 -0
- package/dist/data/util/use_smile_id_token_decoder.js +102 -0
- package/dist/data/util/use_smile_id_token_decoder.js.map +1 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +142 -0
- package/dist/index.js.map +1 -0
- package/dist/l10n/strings_en.d.ts +131 -0
- package/dist/l10n/strings_en.d.ts.map +1 -0
- package/dist/l10n/strings_en.js +141 -0
- package/dist/l10n/strings_en.js.map +1 -0
- package/dist/l10n/use_smile_id_localizations.d.ts +173 -0
- package/dist/l10n/use_smile_id_localizations.d.ts.map +1 -0
- package/dist/l10n/use_smile_id_localizations.js +487 -0
- package/dist/l10n/use_smile_id_localizations.js.map +1 -0
- package/dist/l10n/use_smile_id_localizations_provider.d.ts +26 -0
- package/dist/l10n/use_smile_id_localizations_provider.d.ts.map +1 -0
- package/dist/l10n/use_smile_id_localizations_provider.js +53 -0
- package/dist/l10n/use_smile_id_localizations_provider.js.map +1 -0
- package/dist/metadata/document_image_origin.d.ts +20 -0
- package/dist/metadata/document_image_origin.d.ts.map +1 -0
- package/dist/metadata/document_image_origin.js +19 -0
- package/dist/metadata/document_image_origin.js.map +1 -0
- package/dist/metadata/optional_native_modules.d.ts +85 -0
- package/dist/metadata/optional_native_modules.d.ts.map +1 -0
- package/dist/metadata/optional_native_modules.js +101 -0
- package/dist/metadata/optional_native_modules.js.map +1 -0
- package/dist/metadata/use_smile_id_metadata.d.ts +69 -0
- package/dist/metadata/use_smile_id_metadata.d.ts.map +1 -0
- package/dist/metadata/use_smile_id_metadata.js +116 -0
- package/dist/metadata/use_smile_id_metadata.js.map +1 -0
- package/dist/metadata/use_smile_id_metadata_factory.d.ts +82 -0
- package/dist/metadata/use_smile_id_metadata_factory.d.ts.map +1 -0
- package/dist/metadata/use_smile_id_metadata_factory.js +320 -0
- package/dist/metadata/use_smile_id_metadata_factory.js.map +1 -0
- package/dist/presentation/assets/svg/instruction_svg_strings.d.ts +17 -0
- package/dist/presentation/assets/svg/instruction_svg_strings.d.ts.map +1 -0
- package/dist/presentation/assets/svg/instruction_svg_strings.js +21 -0
- package/dist/presentation/assets/svg/instruction_svg_strings.js.map +1 -0
- package/dist/presentation/assets/svg/svg_strings.d.ts +29 -0
- package/dist/presentation/assets/svg/svg_strings.d.ts.map +1 -0
- package/dist/presentation/assets/svg/svg_strings.js +140 -0
- package/dist/presentation/assets/svg/svg_strings.js.map +1 -0
- package/dist/presentation/components/face_oval_defaults.d.ts +41 -0
- package/dist/presentation/components/face_oval_defaults.d.ts.map +1 -0
- package/dist/presentation/components/face_oval_defaults.js +41 -0
- package/dist/presentation/components/face_oval_defaults.js.map +1 -0
- package/dist/presentation/components/helpers/animated_lottie_view.d.ts +9 -0
- package/dist/presentation/components/helpers/animated_lottie_view.d.ts.map +1 -0
- package/dist/presentation/components/helpers/animated_lottie_view.js +9 -0
- package/dist/presentation/components/helpers/animated_lottie_view.js.map +1 -0
- package/dist/presentation/components/helpers/capture_instruction_animation_spec.d.ts +26 -0
- package/dist/presentation/components/helpers/capture_instruction_animation_spec.d.ts.map +1 -0
- package/dist/presentation/components/helpers/capture_instruction_animation_spec.js +47 -0
- package/dist/presentation/components/helpers/capture_instruction_animation_spec.js.map +1 -0
- package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.d.ts +70 -0
- package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.d.ts.map +1 -0
- package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.js +49 -0
- package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.js.map +1 -0
- package/dist/presentation/components/helpers/scaled_oval_geometry.d.ts +24 -0
- package/dist/presentation/components/helpers/scaled_oval_geometry.d.ts.map +1 -0
- package/dist/presentation/components/helpers/scaled_oval_geometry.js +29 -0
- package/dist/presentation/components/helpers/scaled_oval_geometry.js.map +1 -0
- package/dist/presentation/components/icons/index.d.ts +82 -0
- package/dist/presentation/components/icons/index.d.ts.map +1 -0
- package/dist/presentation/components/icons/index.js +97 -0
- package/dist/presentation/components/icons/index.js.map +1 -0
- package/dist/presentation/components/status_indicator_state.d.ts +20 -0
- package/dist/presentation/components/status_indicator_state.d.ts.map +1 -0
- package/dist/presentation/components/status_indicator_state.js +19 -0
- package/dist/presentation/components/status_indicator_state.js.map +1 -0
- package/dist/presentation/components/use_smile_id_attribution.d.ts +19 -0
- package/dist/presentation/components/use_smile_id_attribution.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_attribution.js +25 -0
- package/dist/presentation/components/use_smile_id_attribution.js.map +1 -0
- package/dist/presentation/components/use_smile_id_back_button.d.ts +15 -0
- package/dist/presentation/components/use_smile_id_back_button.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_back_button.js +38 -0
- package/dist/presentation/components/use_smile_id_back_button.js.map +1 -0
- package/dist/presentation/components/use_smile_id_button.d.ts +20 -0
- package/dist/presentation/components/use_smile_id_button.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_button.js +63 -0
- package/dist/presentation/components/use_smile_id_button.js.map +1 -0
- package/dist/presentation/components/use_smile_id_capture_content.d.ts +58 -0
- package/dist/presentation/components/use_smile_id_capture_content.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_capture_content.js +131 -0
- package/dist/presentation/components/use_smile_id_capture_content.js.map +1 -0
- package/dist/presentation/components/use_smile_id_capture_instruction_animation.d.ts +20 -0
- package/dist/presentation/components/use_smile_id_capture_instruction_animation.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_capture_instruction_animation.js +50 -0
- package/dist/presentation/components/use_smile_id_capture_instruction_animation.js.map +1 -0
- package/dist/presentation/components/use_smile_id_capture_spinner.d.ts +9 -0
- package/dist/presentation/components/use_smile_id_capture_spinner.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_capture_spinner.js +30 -0
- package/dist/presentation/components/use_smile_id_capture_spinner.js.map +1 -0
- package/dist/presentation/components/use_smile_id_captured_document_image.d.ts +23 -0
- package/dist/presentation/components/use_smile_id_captured_document_image.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_captured_document_image.js +41 -0
- package/dist/presentation/components/use_smile_id_captured_document_image.js.map +1 -0
- package/dist/presentation/components/use_smile_id_captured_image_oval.d.ts +41 -0
- package/dist/presentation/components/use_smile_id_captured_image_oval.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_captured_image_oval.js +63 -0
- package/dist/presentation/components/use_smile_id_captured_image_oval.js.map +1 -0
- package/dist/presentation/components/use_smile_id_card_surface.d.ts +17 -0
- package/dist/presentation/components/use_smile_id_card_surface.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_card_surface.js +37 -0
- package/dist/presentation/components/use_smile_id_card_surface.js.map +1 -0
- package/dist/presentation/components/use_smile_id_confirmation_buttons.d.ts +18 -0
- package/dist/presentation/components/use_smile_id_confirmation_buttons.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_confirmation_buttons.js +48 -0
- package/dist/presentation/components/use_smile_id_confirmation_buttons.js.map +1 -0
- package/dist/presentation/components/use_smile_id_consent_row.d.ts +18 -0
- package/dist/presentation/components/use_smile_id_consent_row.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_consent_row.js +32 -0
- package/dist/presentation/components/use_smile_id_consent_row.js.map +1 -0
- package/dist/presentation/components/use_smile_id_content_card.d.ts +21 -0
- package/dist/presentation/components/use_smile_id_content_card.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_content_card.js +41 -0
- package/dist/presentation/components/use_smile_id_content_card.js.map +1 -0
- package/dist/presentation/components/use_smile_id_document_capture_controls.d.ts +27 -0
- package/dist/presentation/components/use_smile_id_document_capture_controls.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_document_capture_controls.js +77 -0
- package/dist/presentation/components/use_smile_id_document_capture_controls.js.map +1 -0
- package/dist/presentation/components/use_smile_id_document_frame_glyph.d.ts +17 -0
- package/dist/presentation/components/use_smile_id_document_frame_glyph.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_document_frame_glyph.js +17 -0
- package/dist/presentation/components/use_smile_id_document_frame_glyph.js.map +1 -0
- package/dist/presentation/components/use_smile_id_document_overlay.d.ts +25 -0
- package/dist/presentation/components/use_smile_id_document_overlay.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_document_overlay.js +118 -0
- package/dist/presentation/components/use_smile_id_document_overlay.js.map +1 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_animation.d.ts +24 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_animation.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_animation.js +91 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_animation.js.map +1 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_clip.d.ts +24 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_clip.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_clip.js +74 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_clip.js.map +1 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_direction_animation.d.ts +25 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_direction_animation.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_direction_animation.js +21 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_direction_animation.js.map +1 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_full_animation.d.ts +13 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_full_animation.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_full_animation.js +14 -0
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_full_animation.js.map +1 -0
- package/dist/presentation/components/use_smile_id_expandable_icon.d.ts +22 -0
- package/dist/presentation/components/use_smile_id_expandable_icon.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_expandable_icon.js +55 -0
- package/dist/presentation/components/use_smile_id_expandable_icon.js.map +1 -0
- package/dist/presentation/components/use_smile_id_face_oval_image.d.ts +26 -0
- package/dist/presentation/components/use_smile_id_face_oval_image.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_face_oval_image.js +41 -0
- package/dist/presentation/components/use_smile_id_face_oval_image.js.map +1 -0
- package/dist/presentation/components/use_smile_id_face_overlay.d.ts +23 -0
- package/dist/presentation/components/use_smile_id_face_overlay.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_face_overlay.js +194 -0
- package/dist/presentation/components/use_smile_id_face_overlay.js.map +1 -0
- package/dist/presentation/components/use_smile_id_face_silhouette_overlay.d.ts +15 -0
- package/dist/presentation/components/use_smile_id_face_silhouette_overlay.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_face_silhouette_overlay.js +19 -0
- package/dist/presentation/components/use_smile_id_face_silhouette_overlay.js.map +1 -0
- package/dist/presentation/components/use_smile_id_failed_content.d.ts +19 -0
- package/dist/presentation/components/use_smile_id_failed_content.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_failed_content.js +44 -0
- package/dist/presentation/components/use_smile_id_failed_content.js.map +1 -0
- package/dist/presentation/components/use_smile_id_guideline_thumbnail.d.ts +12 -0
- package/dist/presentation/components/use_smile_id_guideline_thumbnail.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_guideline_thumbnail.js +96 -0
- package/dist/presentation/components/use_smile_id_guideline_thumbnail.js.map +1 -0
- package/dist/presentation/components/use_smile_id_instruction_card.d.ts +31 -0
- package/dist/presentation/components/use_smile_id_instruction_card.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_instruction_card.js +43 -0
- package/dist/presentation/components/use_smile_id_instruction_card.js.map +1 -0
- package/dist/presentation/components/use_smile_id_instructions_hero.d.ts +26 -0
- package/dist/presentation/components/use_smile_id_instructions_hero.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_instructions_hero.js +144 -0
- package/dist/presentation/components/use_smile_id_instructions_hero.js.map +1 -0
- package/dist/presentation/components/use_smile_id_learn_more_content.d.ts +24 -0
- package/dist/presentation/components/use_smile_id_learn_more_content.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_learn_more_content.js +70 -0
- package/dist/presentation/components/use_smile_id_learn_more_content.js.map +1 -0
- package/dist/presentation/components/use_smile_id_loading_content.d.ts +14 -0
- package/dist/presentation/components/use_smile_id_loading_content.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_loading_content.js +31 -0
- package/dist/presentation/components/use_smile_id_loading_content.js.map +1 -0
- package/dist/presentation/components/use_smile_id_loading_indicator.d.ts +15 -0
- package/dist/presentation/components/use_smile_id_loading_indicator.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_loading_indicator.js +48 -0
- package/dist/presentation/components/use_smile_id_loading_indicator.js.map +1 -0
- package/dist/presentation/components/use_smile_id_oval_border_palette.d.ts +12 -0
- package/dist/presentation/components/use_smile_id_oval_border_palette.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_oval_border_palette.js +45 -0
- package/dist/presentation/components/use_smile_id_oval_border_palette.js.map +1 -0
- package/dist/presentation/components/use_smile_id_partner_icon.d.ts +18 -0
- package/dist/presentation/components/use_smile_id_partner_icon.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_partner_icon.js +34 -0
- package/dist/presentation/components/use_smile_id_partner_icon.js.map +1 -0
- package/dist/presentation/components/use_smile_id_processing_center_indicator.d.ts +26 -0
- package/dist/presentation/components/use_smile_id_processing_center_indicator.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_processing_center_indicator.js +44 -0
- package/dist/presentation/components/use_smile_id_processing_center_indicator.js.map +1 -0
- package/dist/presentation/components/use_smile_id_rounded_checkbox.d.ts +18 -0
- package/dist/presentation/components/use_smile_id_rounded_checkbox.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_rounded_checkbox.js +41 -0
- package/dist/presentation/components/use_smile_id_rounded_checkbox.js.map +1 -0
- package/dist/presentation/components/use_smile_id_status_indicator.d.ts +16 -0
- package/dist/presentation/components/use_smile_id_status_indicator.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_status_indicator.js +22 -0
- package/dist/presentation/components/use_smile_id_status_indicator.js.map +1 -0
- package/dist/presentation/components/use_smile_id_success_content.d.ts +17 -0
- package/dist/presentation/components/use_smile_id_success_content.d.ts.map +1 -0
- package/dist/presentation/components/use_smile_id_success_content.js +39 -0
- package/dist/presentation/components/use_smile_id_success_content.js.map +1 -0
- package/dist/presentation/flow/analytics/use_smile_id_analytics_event.d.ts +77 -0
- package/dist/presentation/flow/analytics/use_smile_id_analytics_event.d.ts.map +1 -0
- package/dist/presentation/flow/analytics/use_smile_id_analytics_event.js +71 -0
- package/dist/presentation/flow/analytics/use_smile_id_analytics_event.js.map +1 -0
- package/dist/presentation/flow/config/flow_configuration.d.ts +12 -0
- package/dist/presentation/flow/config/flow_configuration.d.ts.map +1 -0
- package/dist/presentation/flow/config/flow_configuration.js +2 -0
- package/dist/presentation/flow/config/flow_configuration.js.map +1 -0
- package/dist/presentation/flow/dsl/builder/config_builder.d.ts +15 -0
- package/dist/presentation/flow/dsl/builder/config_builder.d.ts.map +1 -0
- package/dist/presentation/flow/dsl/builder/config_builder.js +20 -0
- package/dist/presentation/flow/dsl/builder/config_builder.js.map +1 -0
- package/dist/presentation/flow/dsl/builder/ml_builder.d.ts +80 -0
- package/dist/presentation/flow/dsl/builder/ml_builder.d.ts.map +1 -0
- package/dist/presentation/flow/dsl/builder/ml_builder.js +163 -0
- package/dist/presentation/flow/dsl/builder/ml_builder.js.map +1 -0
- package/dist/presentation/flow/dsl/builder/screens_builder.d.ts +122 -0
- package/dist/presentation/flow/dsl/builder/screens_builder.d.ts.map +1 -0
- package/dist/presentation/flow/dsl/builder/screens_builder.js +119 -0
- package/dist/presentation/flow/dsl/builder/screens_builder.js.map +1 -0
- package/dist/presentation/flow/dsl/builder/theme_builder.d.ts +44 -0
- package/dist/presentation/flow/dsl/builder/theme_builder.d.ts.map +1 -0
- package/dist/presentation/flow/dsl/builder/theme_builder.js +70 -0
- package/dist/presentation/flow/dsl/builder/theme_builder.js.map +1 -0
- package/dist/presentation/flow/dsl/flow_build_result.d.ts +35 -0
- package/dist/presentation/flow/dsl/flow_build_result.d.ts.map +1 -0
- package/dist/presentation/flow/dsl/flow_build_result.js +2 -0
- package/dist/presentation/flow/dsl/flow_build_result.js.map +1 -0
- package/dist/presentation/flow/dsl/use_smile_id_builder.d.ts +59 -0
- package/dist/presentation/flow/dsl/use_smile_id_builder.d.ts.map +1 -0
- package/dist/presentation/flow/dsl/use_smile_id_builder.js +49 -0
- package/dist/presentation/flow/dsl/use_smile_id_builder.js.map +1 -0
- package/dist/presentation/flow/dsl/use_smile_id_flow_builder.d.ts +241 -0
- package/dist/presentation/flow/dsl/use_smile_id_flow_builder.d.ts.map +1 -0
- package/dist/presentation/flow/dsl/use_smile_id_flow_builder.js +308 -0
- package/dist/presentation/flow/dsl/use_smile_id_flow_builder.js.map +1 -0
- package/dist/presentation/flow/flow_navigation_context.d.ts +17 -0
- package/dist/presentation/flow/flow_navigation_context.d.ts.map +1 -0
- package/dist/presentation/flow/flow_navigation_context.js +34 -0
- package/dist/presentation/flow/flow_navigation_context.js.map +1 -0
- package/dist/presentation/flow/flow_navigation_manager.d.ts +217 -0
- package/dist/presentation/flow/flow_navigation_manager.d.ts.map +1 -0
- package/dist/presentation/flow/flow_navigation_manager.js +766 -0
- package/dist/presentation/flow/flow_navigation_manager.js.map +1 -0
- package/dist/presentation/flow/graph/screen_renderer.d.ts +16 -0
- package/dist/presentation/flow/graph/screen_renderer.d.ts.map +1 -0
- package/dist/presentation/flow/graph/screen_renderer.js +31 -0
- package/dist/presentation/flow/graph/screen_renderer.js.map +1 -0
- package/dist/presentation/flow/job_submission_state.d.ts +23 -0
- package/dist/presentation/flow/job_submission_state.d.ts.map +1 -0
- package/dist/presentation/flow/job_submission_state.js +2 -0
- package/dist/presentation/flow/job_submission_state.js.map +1 -0
- package/dist/presentation/flow/model/instruction_guideline.d.ts +17 -0
- package/dist/presentation/flow/model/instruction_guideline.d.ts.map +1 -0
- package/dist/presentation/flow/model/instruction_guideline.js +2 -0
- package/dist/presentation/flow/model/instruction_guideline.js.map +1 -0
- package/dist/presentation/flow/model/instructions_defaults.d.ts +27 -0
- package/dist/presentation/flow/model/instructions_defaults.d.ts.map +1 -0
- package/dist/presentation/flow/model/instructions_defaults.js +82 -0
- package/dist/presentation/flow/model/instructions_defaults.js.map +1 -0
- package/dist/presentation/flow/screen/helpers/face_session_config.d.ts +25 -0
- package/dist/presentation/flow/screen/helpers/face_session_config.d.ts.map +1 -0
- package/dist/presentation/flow/screen/helpers/face_session_config.js +65 -0
- package/dist/presentation/flow/screen/helpers/face_session_config.js.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_capture_screen.d.ts +13 -0
- package/dist/presentation/flow/screen/orchestrated_capture_screen.d.ts.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_capture_screen.js +203 -0
- package/dist/presentation/flow/screen/orchestrated_capture_screen.js.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_consent_screen.d.ts +14 -0
- package/dist/presentation/flow/screen/orchestrated_consent_screen.d.ts.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_consent_screen.js +47 -0
- package/dist/presentation/flow/screen/orchestrated_consent_screen.js.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_instructions_screen.d.ts +12 -0
- package/dist/presentation/flow/screen/orchestrated_instructions_screen.d.ts.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_instructions_screen.js +47 -0
- package/dist/presentation/flow/screen/orchestrated_instructions_screen.js.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_preview_screen.d.ts +12 -0
- package/dist/presentation/flow/screen/orchestrated_preview_screen.d.ts.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_preview_screen.js +40 -0
- package/dist/presentation/flow/screen/orchestrated_preview_screen.js.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_processing_screen.d.ts +11 -0
- package/dist/presentation/flow/screen/orchestrated_processing_screen.d.ts.map +1 -0
- package/dist/presentation/flow/screen/orchestrated_processing_screen.js +59 -0
- package/dist/presentation/flow/screen/orchestrated_processing_screen.js.map +1 -0
- package/dist/presentation/flow/screen/use_smile_id_orchestrated_screen_host.d.ts +23 -0
- package/dist/presentation/flow/screen/use_smile_id_orchestrated_screen_host.d.ts.map +1 -0
- package/dist/presentation/flow/screen/use_smile_id_orchestrated_screen_host.js +22 -0
- package/dist/presentation/flow/screen/use_smile_id_orchestrated_screen_host.js.map +1 -0
- package/dist/presentation/flow/screen/validation_error_screen.d.ts +12 -0
- package/dist/presentation/flow/screen/validation_error_screen.d.ts.map +1 -0
- package/dist/presentation/flow/screen/validation_error_screen.js +87 -0
- package/dist/presentation/flow/screen/validation_error_screen.js.map +1 -0
- package/dist/presentation/flow/use_smile_id_flow.d.ts +54 -0
- package/dist/presentation/flow/use_smile_id_flow.d.ts.map +1 -0
- package/dist/presentation/flow/use_smile_id_flow.js +264 -0
- package/dist/presentation/flow/use_smile_id_flow.js.map +1 -0
- package/dist/presentation/flow/validation/flow_validator.d.ts +107 -0
- package/dist/presentation/flow/validation/flow_validator.d.ts.map +1 -0
- package/dist/presentation/flow/validation/flow_validator.js +286 -0
- package/dist/presentation/flow/validation/flow_validator.js.map +1 -0
- package/dist/presentation/flow/validation/job_type_validator.d.ts +124 -0
- package/dist/presentation/flow/validation/job_type_validator.d.ts.map +1 -0
- package/dist/presentation/flow/validation/job_type_validator.js +420 -0
- package/dist/presentation/flow/validation/job_type_validator.js.map +1 -0
- package/dist/presentation/flow/validation/validation_state.d.ts +59 -0
- package/dist/presentation/flow/validation/validation_state.d.ts.map +1 -0
- package/dist/presentation/flow/validation/validation_state.js +23 -0
- package/dist/presentation/flow/validation/validation_state.js.map +1 -0
- package/dist/presentation/screen/helpers/capture_screen_helpers.d.ts +29 -0
- package/dist/presentation/screen/helpers/capture_screen_helpers.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/capture_screen_helpers.js +133 -0
- package/dist/presentation/screen/helpers/capture_screen_helpers.js.map +1 -0
- package/dist/presentation/screen/helpers/capture_ui_state.d.ts +54 -0
- package/dist/presentation/screen/helpers/capture_ui_state.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/capture_ui_state.js +179 -0
- package/dist/presentation/screen/helpers/capture_ui_state.js.map +1 -0
- package/dist/presentation/screen/helpers/consent_screen_helpers.d.ts +39 -0
- package/dist/presentation/screen/helpers/consent_screen_helpers.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/consent_screen_helpers.js +68 -0
- package/dist/presentation/screen/helpers/consent_screen_helpers.js.map +1 -0
- package/dist/presentation/screen/helpers/ess_turn_haptics.d.ts +27 -0
- package/dist/presentation/screen/helpers/ess_turn_haptics.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/ess_turn_haptics.js +53 -0
- package/dist/presentation/screen/helpers/ess_turn_haptics.js.map +1 -0
- package/dist/presentation/screen/helpers/feedback_debouncer.d.ts +37 -0
- package/dist/presentation/screen/helpers/feedback_debouncer.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/feedback_debouncer.js +77 -0
- package/dist/presentation/screen/helpers/feedback_debouncer.js.map +1 -0
- package/dist/presentation/screen/helpers/instructions_screen_helpers.d.ts +43 -0
- package/dist/presentation/screen/helpers/instructions_screen_helpers.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/instructions_screen_helpers.js +50 -0
- package/dist/presentation/screen/helpers/instructions_screen_helpers.js.map +1 -0
- package/dist/presentation/screen/helpers/preview_screen_helpers.d.ts +29 -0
- package/dist/presentation/screen/helpers/preview_screen_helpers.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/preview_screen_helpers.js +27 -0
- package/dist/presentation/screen/helpers/preview_screen_helpers.js.map +1 -0
- package/dist/presentation/screen/helpers/processing_screen_helpers.d.ts +13 -0
- package/dist/presentation/screen/helpers/processing_screen_helpers.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/processing_screen_helpers.js +12 -0
- package/dist/presentation/screen/helpers/processing_screen_helpers.js.map +1 -0
- package/dist/presentation/screen/helpers/scan_state_to_overlay_state.d.ts +21 -0
- package/dist/presentation/screen/helpers/scan_state_to_overlay_state.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/scan_state_to_overlay_state.js +104 -0
- package/dist/presentation/screen/helpers/scan_state_to_overlay_state.js.map +1 -0
- package/dist/presentation/screen/helpers/use_capture_orientation_lock.d.ts +16 -0
- package/dist/presentation/screen/helpers/use_capture_orientation_lock.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/use_capture_orientation_lock.js +37 -0
- package/dist/presentation/screen/helpers/use_capture_orientation_lock.js.map +1 -0
- package/dist/presentation/screen/helpers/use_debounced_feedback_key.d.ts +9 -0
- package/dist/presentation/screen/helpers/use_debounced_feedback_key.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/use_debounced_feedback_key.js +44 -0
- package/dist/presentation/screen/helpers/use_debounced_feedback_key.js.map +1 -0
- package/dist/presentation/screen/helpers/use_document_orientation_lock.d.ts +24 -0
- package/dist/presentation/screen/helpers/use_document_orientation_lock.d.ts.map +1 -0
- package/dist/presentation/screen/helpers/use_document_orientation_lock.js +47 -0
- package/dist/presentation/screen/helpers/use_document_orientation_lock.js.map +1 -0
- package/dist/presentation/screen/use_smile_id_capture_screen.d.ts +71 -0
- package/dist/presentation/screen/use_smile_id_capture_screen.d.ts.map +1 -0
- package/dist/presentation/screen/use_smile_id_capture_screen.js +438 -0
- package/dist/presentation/screen/use_smile_id_capture_screen.js.map +1 -0
- package/dist/presentation/screen/use_smile_id_consent_screen.d.ts +56 -0
- package/dist/presentation/screen/use_smile_id_consent_screen.d.ts.map +1 -0
- package/dist/presentation/screen/use_smile_id_consent_screen.js +175 -0
- package/dist/presentation/screen/use_smile_id_consent_screen.js.map +1 -0
- package/dist/presentation/screen/use_smile_id_document_back_instructions.d.ts +24 -0
- package/dist/presentation/screen/use_smile_id_document_back_instructions.d.ts.map +1 -0
- package/dist/presentation/screen/use_smile_id_document_back_instructions.js +51 -0
- package/dist/presentation/screen/use_smile_id_document_back_instructions.js.map +1 -0
- package/dist/presentation/screen/use_smile_id_document_preview_screen.d.ts +24 -0
- package/dist/presentation/screen/use_smile_id_document_preview_screen.d.ts.map +1 -0
- package/dist/presentation/screen/use_smile_id_document_preview_screen.js +64 -0
- package/dist/presentation/screen/use_smile_id_document_preview_screen.js.map +1 -0
- package/dist/presentation/screen/use_smile_id_instructions_screen.d.ts +39 -0
- package/dist/presentation/screen/use_smile_id_instructions_screen.d.ts.map +1 -0
- package/dist/presentation/screen/use_smile_id_instructions_screen.js +65 -0
- package/dist/presentation/screen/use_smile_id_instructions_screen.js.map +1 -0
- package/dist/presentation/screen/use_smile_id_permission_screen.d.ts +16 -0
- package/dist/presentation/screen/use_smile_id_permission_screen.d.ts.map +1 -0
- package/dist/presentation/screen/use_smile_id_permission_screen.js +28 -0
- package/dist/presentation/screen/use_smile_id_permission_screen.js.map +1 -0
- package/dist/presentation/screen/use_smile_id_preview_screen.d.ts +42 -0
- package/dist/presentation/screen/use_smile_id_preview_screen.d.ts.map +1 -0
- package/dist/presentation/screen/use_smile_id_preview_screen.js +81 -0
- package/dist/presentation/screen/use_smile_id_preview_screen.js.map +1 -0
- package/dist/presentation/screen/use_smile_id_processing_screen.d.ts +55 -0
- package/dist/presentation/screen/use_smile_id_processing_screen.d.ts.map +1 -0
- package/dist/presentation/screen/use_smile_id_processing_screen.js +84 -0
- package/dist/presentation/screen/use_smile_id_processing_screen.js.map +1 -0
- package/dist/presentation/state/processing_state.d.ts +25 -0
- package/dist/presentation/state/processing_state.d.ts.map +1 -0
- package/dist/presentation/state/processing_state.js +2 -0
- package/dist/presentation/state/processing_state.js.map +1 -0
- package/dist/presentation/state/use_smile_id_overlay_state.d.ts +44 -0
- package/dist/presentation/state/use_smile_id_overlay_state.d.ts.map +1 -0
- package/dist/presentation/state/use_smile_id_overlay_state.js +56 -0
- package/dist/presentation/state/use_smile_id_overlay_state.js.map +1 -0
- package/dist/presentation/theme/theme.d.ts +131 -0
- package/dist/presentation/theme/theme.d.ts.map +1 -0
- package/dist/presentation/theme/theme.js +224 -0
- package/dist/presentation/theme/theme.js.map +1 -0
- package/dist/presentation/theme/theme_context.d.ts +14 -0
- package/dist/presentation/theme/theme_context.d.ts.map +1 -0
- package/dist/presentation/theme/theme_context.js +31 -0
- package/dist/presentation/theme/theme_context.js.map +1 -0
- package/dist/presentation/theme/use_smile_id_motion.d.ts +13 -0
- package/dist/presentation/theme/use_smile_id_motion.d.ts.map +1 -0
- package/dist/presentation/theme/use_smile_id_motion.js +13 -0
- package/dist/presentation/theme/use_smile_id_motion.js.map +1 -0
- package/dist/presentation/theme/use_use_smile_id_fonts.d.ts +14 -0
- package/dist/presentation/theme/use_use_smile_id_fonts.d.ts.map +1 -0
- package/dist/presentation/theme/use_use_smile_id_fonts.js +64 -0
- package/dist/presentation/theme/use_use_smile_id_fonts.js.map +1 -0
- package/dist/presentation/utils/force_max_brightness.d.ts +46 -0
- package/dist/presentation/utils/force_max_brightness.d.ts.map +1 -0
- package/dist/presentation/utils/force_max_brightness.js +105 -0
- package/dist/presentation/utils/force_max_brightness.js.map +1 -0
- package/dist/presentation/utils/locale_utils.d.ts +25 -0
- package/dist/presentation/utils/locale_utils.d.ts.map +1 -0
- package/dist/presentation/utils/locale_utils.js +66 -0
- package/dist/presentation/utils/locale_utils.js.map +1 -0
- package/dist/presentation/utils/use_reduced_motion.d.ts +3 -0
- package/dist/presentation/utils/use_reduced_motion.d.ts.map +1 -0
- package/dist/presentation/utils/use_reduced_motion.js +24 -0
- package/dist/presentation/utils/use_reduced_motion.js.map +1 -0
- package/package.json +113 -0
- package/src/__tests__/dsl.test.ts +1115 -0
- package/src/__tests__/enum_parity.test.ts +84 -0
- package/src/__tests__/react_native_mock.tsx +210 -0
- package/src/__tests__/setup_react_native.ts +353 -0
- package/src/__tests__/theme.test.ts +156 -0
- package/src/camera/__tests__/camera_defaults.test.ts +28 -0
- package/src/camera/__tests__/camera_lens.test.ts +18 -0
- package/src/camera/__tests__/document_resize_target.test.ts +44 -0
- package/src/camera/__tests__/focus_state.test.ts +48 -0
- package/src/camera/__tests__/orientation_degrees.test.ts +21 -0
- package/src/camera/__tests__/use_smile_id_frame_stream.test.ts +227 -0
- package/src/camera/camera_configuration.ts +32 -0
- package/src/camera/camera_defaults.ts +23 -0
- package/src/camera/camera_lens.ts +13 -0
- package/src/camera/camera_permissions.ts +36 -0
- package/src/camera/camera_preview_image.ts +19 -0
- package/src/camera/document_image_pipeline.ts +101 -0
- package/src/camera/document_resize_target.ts +22 -0
- package/src/camera/focus_state.ts +26 -0
- package/src/camera/orientation_degrees.ts +22 -0
- package/src/camera/use_smile_id_camera_preview.tsx +256 -0
- package/src/camera/use_smile_id_camera_system.ts +236 -0
- package/src/camera/use_smile_id_frame_stream.ts +189 -0
- package/src/core/exception/__tests__/network_exception_mapper.test.ts +179 -0
- package/src/core/exception/builder_validation_exception.ts +40 -0
- package/src/core/exception/capture_validation_exceptions.ts +8 -0
- package/src/core/exception/consent_validation_exceptions.ts +7 -0
- package/src/core/exception/duplicate_screen_type_exception.ts +22 -0
- package/src/core/exception/empty_screens_block_exception.ts +19 -0
- package/src/core/exception/flow_exceptions.test.ts +39 -0
- package/src/core/exception/flow_exceptions.ts +42 -0
- package/src/core/exception/index.ts +73 -0
- package/src/core/exception/invalid_consent_config_exception.ts +20 -0
- package/src/core/exception/invalid_consent_information_exception.ts +21 -0
- package/src/core/exception/invalid_document_capture_config_exception.ts +22 -0
- package/src/core/exception/invalid_field_value_exception.ts +21 -0
- package/src/core/exception/invalid_job_type_screen_config_exception.ts +70 -0
- package/src/core/exception/invalid_missing_capture_type_exception.ts +19 -0
- package/src/core/exception/invalid_screen_order_exception.ts +28 -0
- package/src/core/exception/invalid_selfie_capture_config_exception.ts +22 -0
- package/src/core/exception/issue_severity.ts +14 -0
- package/src/core/exception/job_validation_exceptions.ts +11 -0
- package/src/core/exception/liveness_frame_count_exception.ts +21 -0
- package/src/core/exception/missing_capture_for_preview_exception.ts +24 -0
- package/src/core/exception/missing_job_type_exception.ts +20 -0
- package/src/core/exception/missing_ml_configuration_block_exception.ts +21 -0
- package/src/core/exception/missing_network_configuration_block_exception.ts +22 -0
- package/src/core/exception/missing_partner_config_exception.ts +38 -0
- package/src/core/exception/missing_required_field_exception.ts +19 -0
- package/src/core/exception/screen_config_validation_exceptions.ts +10 -0
- package/src/core/exception/use_smile_id_attestation_exception.ts +11 -0
- package/src/core/exception/use_smile_id_builder_exception.ts +18 -0
- package/src/core/exception/use_smile_id_camera_exception.ts +12 -0
- package/src/core/exception/use_smile_id_error_code.ts +83 -0
- package/src/core/exception/use_smile_id_exception.ts +52 -0
- package/src/core/exception/use_smile_id_general_exception.ts +12 -0
- package/src/core/exception/use_smile_id_network_exception.ts +279 -0
- package/src/core/exception/use_smile_id_validation_exception.ts +12 -0
- package/src/core/models/__tests__/document_capture_mode.test.ts +43 -0
- package/src/core/models/__tests__/document_type.test.ts +64 -0
- package/src/core/models/__tests__/job_type.test.ts +48 -0
- package/src/core/models/config.ts +36 -0
- package/src/core/models/document_capture_mode.ts +46 -0
- package/src/core/models/document_type.ts +77 -0
- package/src/core/models/flow_step.ts +17 -0
- package/src/core/models/head_turn_direction.ts +15 -0
- package/src/core/models/job_type.ts +53 -0
- package/src/core/models/ml_config.ts +47 -0
- package/src/core/models/network_config.ts +138 -0
- package/src/core/models/params.ts +98 -0
- package/src/core/models/result.test.ts +20 -0
- package/src/core/models/result.ts +32 -0
- package/src/data/api/__tests__/smile_id_api.test.ts +1197 -0
- package/src/data/api/auth/token_holder.ts +72 -0
- package/src/data/api/interceptors/__tests__/logging_interceptor.test.ts +252 -0
- package/src/data/api/interceptors/__tests__/sensitive_headers.test.ts +29 -0
- package/src/data/api/interceptors/__tests__/smile_integrity_interceptor.test.ts +156 -0
- package/src/data/api/interceptors/__tests__/smile_request_mac_interceptor.test.ts +98 -0
- package/src/data/api/interceptors/__tests__/token_refresh_interceptor.test.ts +173 -0
- package/src/data/api/interceptors/gzip_interceptor.ts +31 -0
- package/src/data/api/interceptors/logging_interceptor.ts +155 -0
- package/src/data/api/interceptors/sensitive_headers.ts +46 -0
- package/src/data/api/interceptors/smile_auth_interceptor.ts +88 -0
- package/src/data/api/interceptors/smile_integrity_interceptor.ts +79 -0
- package/src/data/api/interceptors/smile_request_mac_interceptor.ts +93 -0
- package/src/data/api/interceptors/token_refresh_interceptor.ts +122 -0
- package/src/data/api/smile_id_api.ts +488 -0
- package/src/data/dsl/builder/__tests__/interceptor_config_builder.test.ts +173 -0
- package/src/data/dsl/builder/cache_config_builder.ts +26 -0
- package/src/data/dsl/builder/config_builder.ts +125 -0
- package/src/data/dsl/builder/interceptor_config_builder.ts +81 -0
- package/src/data/dsl/builder/retry_config_builder.ts +36 -0
- package/src/data/dsl/builder/timeout_config_builder.ts +24 -0
- package/src/data/dsl/use_smile_id_network_builder.ts +69 -0
- package/src/data/factory/__tests__/networking_factory_order.test.ts +201 -0
- package/src/data/factory/__tests__/signed_job_submission_headers.test.ts +110 -0
- package/src/data/factory/networking_factory.ts +188 -0
- package/src/data/model/__tests__/sdk_config.test.ts +85 -0
- package/src/data/model/__tests__/sdk_config_capture.test.ts +140 -0
- package/src/data/model/image_dimensions.ts +15 -0
- package/src/data/model/job_request.ts +150 -0
- package/src/data/model/job_submission_response.ts +17 -0
- package/src/data/model/sdk_config.ts +74 -0
- package/src/data/model/sdk_config_capture.ts +78 -0
- package/src/data/model/sdk_config_source.ts +26 -0
- package/src/data/repository/__tests__/use_smile_id_repository.test.ts +118 -0
- package/src/data/repository/use_smile_id_repository.ts +19 -0
- package/src/data/repository/use_smile_id_repository_impl.ts +94 -0
- package/src/data/security/__tests__/smile_id_crypto_manager.test.ts +158 -0
- package/src/data/security/request_canonicalizer.ts +148 -0
- package/src/data/security/request_timestamp.ts +12 -0
- package/src/data/security/signing_crypto.ts +219 -0
- package/src/data/security/smile_id_crypto_error.ts +13 -0
- package/src/data/security/smile_id_crypto_manager.ts +46 -0
- package/src/data/smile_id_urls.ts +13 -0
- package/src/data/util/__tests__/retry_util.test.ts +157 -0
- package/src/data/util/__tests__/use_smile_id_token_decoder.test.ts +195 -0
- package/src/data/util/retry_util.ts +72 -0
- package/src/data/util/use_smile_id_token_decoder.ts +138 -0
- package/src/index.ts +512 -0
- package/src/l10n/__tests__/use_smile_id_localizations.test.ts +127 -0
- package/src/l10n/strings_en.ts +171 -0
- package/src/l10n/use_smile_id_localizations.ts +688 -0
- package/src/l10n/use_smile_id_localizations_provider.tsx +71 -0
- package/src/metadata/__tests__/use_smile_id_metadata.test.ts +436 -0
- package/src/metadata/document_image_origin.ts +22 -0
- package/src/metadata/optional_native_modules.ts +120 -0
- package/src/metadata/use_smile_id_metadata.ts +182 -0
- package/src/metadata/use_smile_id_metadata_factory.ts +385 -0
- package/src/presentation/assets/fonts/DMSans-Bold.ttf +0 -0
- package/src/presentation/assets/fonts/DMSans-ExtraBold.ttf +0 -0
- package/src/presentation/assets/fonts/DMSans-Medium.ttf +0 -0
- package/src/presentation/assets/fonts/DMSans-Regular.ttf +0 -0
- package/src/presentation/assets/fonts/DMSans-SemiBold.ttf +0 -0
- package/src/presentation/assets/fonts/OFL.txt +93 -0
- package/src/presentation/assets/si_dark_lighting_animation.json +927 -0
- package/src/presentation/assets/si_device_orientation_animation.json +850 -0
- package/src/presentation/assets/si_document_green_book_hero_animation.json +4668 -0
- package/src/presentation/assets/si_document_hero_animation.json +4799 -0
- package/src/presentation/assets/si_document_hero_back_animation.json +2039 -0
- package/src/presentation/assets/si_document_passport_hero_animation.json +14491 -0
- package/src/presentation/assets/si_ess_animation_all_directions.json +5575 -0
- package/src/presentation/assets/si_selfie_hero_animation.json +1439 -0
- package/src/presentation/assets/si_smile_to_capture_animation.json +1439 -0
- package/src/presentation/assets/svg/instruction_svg_strings.ts +32 -0
- package/src/presentation/assets/svg/si_attribution.svg +19 -0
- package/src/presentation/assets/svg/si_attribution_dark.svg +19 -0
- package/src/presentation/assets/svg/si_checkbox_check.svg +3 -0
- package/src/presentation/assets/svg/si_consent_biometric.svg +9 -0
- package/src/presentation/assets/svg/si_consent_biometric_dark.svg +9 -0
- package/src/presentation/assets/svg/si_consent_contact.svg +8 -0
- package/src/presentation/assets/svg/si_consent_contact_dark.svg +8 -0
- package/src/presentation/assets/svg/si_consent_device.svg +12 -0
- package/src/presentation/assets/svg/si_consent_device_dark.svg +12 -0
- package/src/presentation/assets/svg/si_consent_personal.svg +6 -0
- package/src/presentation/assets/svg/si_consent_personal_dark.svg +6 -0
- package/src/presentation/assets/svg/si_expand_more.svg +3 -0
- package/src/presentation/assets/svg/si_plus.svg +4 -0
- package/src/presentation/assets/svg/si_smile_consent_icon.svg +4 -0
- package/src/presentation/assets/svg/svg_strings.ts +158 -0
- package/src/presentation/components/__tests__/capture_instruction_animation_spec.test.ts +49 -0
- package/src/presentation/components/__tests__/enhanced_smart_selfie_animation_frames.test.ts +91 -0
- package/src/presentation/components/__tests__/use_smile_id_capture_content.test.tsx +348 -0
- package/src/presentation/components/__tests__/use_smile_id_confirmation_buttons.test.tsx +131 -0
- package/src/presentation/components/__tests__/use_smile_id_enhanced_smart_selfie_clip.test.tsx +252 -0
- package/src/presentation/components/__tests__/use_smile_id_enhanced_smart_selfie_direction_animation.test.tsx +138 -0
- package/src/presentation/components/__tests__/use_smile_id_face_overlay.test.tsx +211 -0
- package/src/presentation/components/__tests__/use_smile_id_guideline_thumbnail.test.tsx +79 -0
- package/src/presentation/components/__tests__/use_smile_id_instructions_hero.test.tsx +79 -0
- package/src/presentation/components/__tests__/use_smile_id_loading_indicator.test.tsx +45 -0
- package/src/presentation/components/__tests__/use_smile_id_oval_border_palette.test.ts +101 -0
- package/src/presentation/components/face_oval_defaults.ts +51 -0
- package/src/presentation/components/helpers/__tests__/scaled_oval_geometry.test.ts +69 -0
- package/src/presentation/components/helpers/animated_lottie_view.ts +9 -0
- package/src/presentation/components/helpers/capture_instruction_animation_spec.ts +77 -0
- package/src/presentation/components/helpers/enhanced_smart_selfie_animation_frames.ts +70 -0
- package/src/presentation/components/helpers/scaled_oval_geometry.ts +44 -0
- package/src/presentation/components/icons/index.tsx +287 -0
- package/src/presentation/components/status_indicator_state.ts +21 -0
- package/src/presentation/components/use_smile_id_attribution.tsx +48 -0
- package/src/presentation/components/use_smile_id_back_button.tsx +59 -0
- package/src/presentation/components/use_smile_id_button.tsx +93 -0
- package/src/presentation/components/use_smile_id_capture_content.tsx +344 -0
- package/src/presentation/components/use_smile_id_capture_instruction_animation.tsx +84 -0
- package/src/presentation/components/use_smile_id_capture_spinner.tsx +63 -0
- package/src/presentation/components/use_smile_id_captured_document_image.tsx +86 -0
- package/src/presentation/components/use_smile_id_captured_image_oval.tsx +151 -0
- package/src/presentation/components/use_smile_id_card_surface.tsx +54 -0
- package/src/presentation/components/use_smile_id_confirmation_buttons.tsx +123 -0
- package/src/presentation/components/use_smile_id_consent_row.tsx +58 -0
- package/src/presentation/components/use_smile_id_content_card.tsx +65 -0
- package/src/presentation/components/use_smile_id_document_capture_controls.tsx +155 -0
- package/src/presentation/components/use_smile_id_document_frame_glyph.tsx +162 -0
- package/src/presentation/components/use_smile_id_document_overlay.tsx +245 -0
- package/src/presentation/components/use_smile_id_enhanced_smart_selfie_clip.tsx +152 -0
- package/src/presentation/components/use_smile_id_enhanced_smart_selfie_direction_animation.tsx +46 -0
- package/src/presentation/components/use_smile_id_enhanced_smart_selfie_full_animation.tsx +29 -0
- package/src/presentation/components/use_smile_id_expandable_icon.tsx +102 -0
- package/src/presentation/components/use_smile_id_face_oval_image.tsx +90 -0
- package/src/presentation/components/use_smile_id_face_overlay.tsx +387 -0
- package/src/presentation/components/use_smile_id_face_silhouette_overlay.tsx +27 -0
- package/src/presentation/components/use_smile_id_failed_content.tsx +94 -0
- package/src/presentation/components/use_smile_id_guideline_thumbnail.tsx +134 -0
- package/src/presentation/components/use_smile_id_instructions_hero.tsx +245 -0
- package/src/presentation/components/use_smile_id_learn_more_content.tsx +115 -0
- package/src/presentation/components/use_smile_id_loading_content.tsx +54 -0
- package/src/presentation/components/use_smile_id_loading_indicator.tsx +81 -0
- package/src/presentation/components/use_smile_id_oval_border_palette.ts +60 -0
- package/src/presentation/components/use_smile_id_partner_icon.tsx +56 -0
- package/src/presentation/components/use_smile_id_processing_center_indicator.tsx +77 -0
- package/src/presentation/components/use_smile_id_rounded_checkbox.tsx +67 -0
- package/src/presentation/components/use_smile_id_status_indicator.tsx +44 -0
- package/src/presentation/components/use_smile_id_success_content.tsx +76 -0
- package/src/presentation/flow/__tests__/document_flow_navigation.test.ts +285 -0
- package/src/presentation/flow/__tests__/flow_navigation_manager.test.ts +1163 -0
- package/src/presentation/flow/analytics/__tests__/use_smile_id_analytics_event.test.ts +105 -0
- package/src/presentation/flow/analytics/use_smile_id_analytics_event.ts +83 -0
- package/src/presentation/flow/config/flow_configuration.ts +12 -0
- package/src/presentation/flow/dsl/builder/__tests__/ml_builder.test.ts +161 -0
- package/src/presentation/flow/dsl/builder/__tests__/theme_builder.test.ts +102 -0
- package/src/presentation/flow/dsl/builder/config_builder.ts +22 -0
- package/src/presentation/flow/dsl/builder/ml_builder.ts +201 -0
- package/src/presentation/flow/dsl/builder/screens_builder.ts +180 -0
- package/src/presentation/flow/dsl/builder/theme_builder.ts +102 -0
- package/src/presentation/flow/dsl/flow_build_result.ts +37 -0
- package/src/presentation/flow/dsl/use_smile_id_builder.tsx +123 -0
- package/src/presentation/flow/dsl/use_smile_id_flow_builder.ts +402 -0
- package/src/presentation/flow/flow_navigation_context.tsx +50 -0
- package/src/presentation/flow/flow_navigation_manager.ts +985 -0
- package/src/presentation/flow/graph/screen_renderer.tsx +35 -0
- package/src/presentation/flow/job_submission_state.ts +17 -0
- package/src/presentation/flow/model/instruction_guideline.ts +15 -0
- package/src/presentation/flow/model/instructions_defaults.ts +120 -0
- package/src/presentation/flow/screen/helpers/__tests__/face_session_config.test.ts +115 -0
- package/src/presentation/flow/screen/helpers/face_session_config.ts +77 -0
- package/src/presentation/flow/screen/orchestrated_capture_screen.tsx +296 -0
- package/src/presentation/flow/screen/orchestrated_consent_screen.tsx +66 -0
- package/src/presentation/flow/screen/orchestrated_instructions_screen.tsx +102 -0
- package/src/presentation/flow/screen/orchestrated_preview_screen.tsx +72 -0
- package/src/presentation/flow/screen/orchestrated_processing_screen.tsx +111 -0
- package/src/presentation/flow/screen/use_smile_id_orchestrated_screen_host.tsx +39 -0
- package/src/presentation/flow/screen/validation_error_screen.tsx +147 -0
- package/src/presentation/flow/use_smile_id_flow.tsx +338 -0
- package/src/presentation/flow/validation/__tests__/flow_validator.test.ts +398 -0
- package/src/presentation/flow/validation/__tests__/job_type_validator.test.ts +704 -0
- package/src/presentation/flow/validation/flow_validator.ts +433 -0
- package/src/presentation/flow/validation/job_type_validator.ts +645 -0
- package/src/presentation/flow/validation/validation_state.ts +65 -0
- package/src/presentation/screen/__tests__/capture_screen_helpers.test.ts +112 -0
- package/src/presentation/screen/__tests__/capture_ui_state.test.ts +379 -0
- package/src/presentation/screen/__tests__/consent_screen_helpers.test.ts +63 -0
- package/src/presentation/screen/__tests__/ess_turn_haptics.test.ts +78 -0
- package/src/presentation/screen/__tests__/feedback_debouncer.test.ts +111 -0
- package/src/presentation/screen/__tests__/instructions_screen_helpers.test.ts +142 -0
- package/src/presentation/screen/__tests__/preview_screen_helpers.test.ts +53 -0
- package/src/presentation/screen/__tests__/processing_screen_helpers.test.ts +39 -0
- package/src/presentation/screen/__tests__/scan_state_to_overlay_state.test.ts +203 -0
- package/src/presentation/screen/__tests__/use_smile_id_capture_screen.test.tsx +616 -0
- package/src/presentation/screen/__tests__/use_smile_id_consent_screen.test.tsx +288 -0
- package/src/presentation/screen/__tests__/use_smile_id_document_back_instructions.test.tsx +136 -0
- package/src/presentation/screen/__tests__/use_smile_id_instructions_screen.test.tsx +245 -0
- package/src/presentation/screen/__tests__/use_smile_id_preview_screen.test.tsx +223 -0
- package/src/presentation/screen/__tests__/use_smile_id_processing_screen.test.tsx +333 -0
- package/src/presentation/screen/helpers/capture_screen_helpers.ts +151 -0
- package/src/presentation/screen/helpers/capture_ui_state.ts +298 -0
- package/src/presentation/screen/helpers/consent_screen_helpers.ts +106 -0
- package/src/presentation/screen/helpers/ess_turn_haptics.ts +67 -0
- package/src/presentation/screen/helpers/feedback_debouncer.ts +89 -0
- package/src/presentation/screen/helpers/instructions_screen_helpers.ts +108 -0
- package/src/presentation/screen/helpers/preview_screen_helpers.ts +41 -0
- package/src/presentation/screen/helpers/processing_screen_helpers.ts +27 -0
- package/src/presentation/screen/helpers/scan_state_to_overlay_state.ts +128 -0
- package/src/presentation/screen/helpers/use_capture_orientation_lock.ts +46 -0
- package/src/presentation/screen/helpers/use_debounced_feedback_key.ts +52 -0
- package/src/presentation/screen/use_smile_id_capture_screen.tsx +635 -0
- package/src/presentation/screen/use_smile_id_consent_screen.tsx +382 -0
- package/src/presentation/screen/use_smile_id_document_back_instructions.tsx +134 -0
- package/src/presentation/screen/use_smile_id_document_preview_screen.tsx +142 -0
- package/src/presentation/screen/use_smile_id_instructions_screen.tsx +194 -0
- package/src/presentation/screen/use_smile_id_permission_screen.tsx +52 -0
- package/src/presentation/screen/use_smile_id_preview_screen.tsx +159 -0
- package/src/presentation/screen/use_smile_id_processing_screen.tsx +223 -0
- package/src/presentation/state/__tests__/use_smile_id_overlay_state.test.ts +30 -0
- package/src/presentation/state/processing_state.ts +19 -0
- package/src/presentation/state/use_smile_id_overlay_state.ts +70 -0
- package/src/presentation/theme/theme.ts +399 -0
- package/src/presentation/theme/theme_context.tsx +45 -0
- package/src/presentation/theme/use_smile_id_motion.ts +12 -0
- package/src/presentation/theme/use_use_smile_id_fonts.ts +71 -0
- package/src/presentation/utils/__tests__/force_max_brightness.test.tsx +237 -0
- package/src/presentation/utils/__tests__/locale_utils.test.ts +37 -0
- package/src/presentation/utils/force_max_brightness.tsx +113 -0
- package/src/presentation/utils/locale_utils.ts +71 -0
- package/src/presentation/utils/use_reduced_motion.ts +26 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrated_capture_screen.js","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/orchestrated_capture_screen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAS5C,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,SAAS,GACV,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,+EAA+E;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAC;AAExF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,kCAAkC,EAAE,MAAM,sDAAsD,CAA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CAAC,CAAC;gCAC1C,uBAAuB,CAAC,IAAI,CAAC,CAAC;4BAChC,CAAC;4BACD,OAAO;wBACT,CAAC;wBACD,IACE,YAAY;4BACZ,mBAAmB,KAAK,YAAY,CAAC,IAAI,EACzC,CAAC;4BACD,iBAAiB,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;4BACnD,cAAc,EAAE,CAAC;4BACjB,OAAO;wBACT,CAAC;wBACD,uBAAuB;wBACvB,iBAAiB,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;wBACpD,cAAc,EAAE,CAAC;oBACnB,CAAC,CAAC,CAAC;gBACP,CAAC,GACD,CACH,CAAC;QACJ,CAAC,GACD,CACH,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,qBAAqB,CAC5B,MAAoC,EACpC,WAAwB;IAExB,MAAM,UAAU,GACd,WAAW,KAAK,WAAW,CAAC,MAAM;QAChC,CAAC,CAAC,qBAAqB,CAAC,MAAM;QAC9B,CAAC,CAAC,qBAAqB,CAAC,QAAQ,CAAC;IACrC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,EAAE,GAAG,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ConsentConfigBuilder } from "../dsl/builder/screens_builder";
|
|
2
|
+
export type OrchestratedConsentScreenProps = {
|
|
3
|
+
readonly configuration: ConsentConfigBuilder;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Orchestrated consent screen. On allow: stores the
|
|
7
|
+
* `ConsentInformation` on the navigation manager, fires the partner-
|
|
8
|
+
* supplied `onConsentGranted` callback, then advances the cursor.
|
|
9
|
+
* On deny: exits the flow with a `failed` reason carrying a
|
|
10
|
+
* "consent denied" error so the orchestrator's `onResult` reports
|
|
11
|
+
* the failure cleanly.
|
|
12
|
+
*/
|
|
13
|
+
export declare function OrchestratedConsentScreen({ configuration, }: OrchestratedConsentScreenProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=orchestrated_consent_screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrated_consent_screen.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/orchestrated_consent_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAO3E,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC;CAC9C,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,aAAa,GACd,EAAE,8BAA8B,+BA4ChC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { UseSmileIDCrashReporting } from "@smileid/usesmileid_bridge";
|
|
3
|
+
import { ConsentDeniedException } from "../../../core/exception";
|
|
4
|
+
import { UseSmileIDConsentScreen } from "../../screen/use_smile_id_consent_screen";
|
|
5
|
+
import { UseSmileIDOrchestratedScreenHost } from "./use_smile_id_orchestrated_screen_host";
|
|
6
|
+
/**
|
|
7
|
+
* Orchestrated consent screen. On allow: stores the
|
|
8
|
+
* `ConsentInformation` on the navigation manager, fires the partner-
|
|
9
|
+
* supplied `onConsentGranted` callback, then advances the cursor.
|
|
10
|
+
* On deny: exits the flow with a `failed` reason carrying a
|
|
11
|
+
* "consent denied" error so the orchestrator's `onResult` reports
|
|
12
|
+
* the failure cleanly.
|
|
13
|
+
*/
|
|
14
|
+
export function OrchestratedConsentScreen({ configuration, }) {
|
|
15
|
+
return (_jsx(UseSmileIDOrchestratedScreenHost, { content: ({ navigationManager, onNavigateNext }) => (_jsx(UseSmileIDConsentScreen, { partnerName: configuration.partnerName, ...(configuration.partnerIcon !== undefined
|
|
16
|
+
? { partnerIcon: configuration.partnerIcon }
|
|
17
|
+
: {}), ...(configuration.partnerPrivacyPolicyUrl !== undefined
|
|
18
|
+
? { partnerPrivacyPolicyUrl: configuration.partnerPrivacyPolicyUrl }
|
|
19
|
+
: {}), showAttribution: configuration.showAttribution, onAllow: (info) => {
|
|
20
|
+
// Store on the manager first so the consent payload is
|
|
21
|
+
// available to the next screen (or the eventual
|
|
22
|
+
// submission). Then fire the partner hook so partner-side
|
|
23
|
+
// analytics see the consent before navigation.
|
|
24
|
+
navigationManager.setConsent(info);
|
|
25
|
+
try {
|
|
26
|
+
configuration.onConsentGranted?.(info);
|
|
27
|
+
}
|
|
28
|
+
catch (err) {
|
|
29
|
+
// Concrete scenario: partner's `onConsentGranted`
|
|
30
|
+
// throws (e.g., their analytics SDK is in a bad
|
|
31
|
+
// state). Don't let that crash the SDK — route through
|
|
32
|
+
// crash reporting so partner observability picks it up.
|
|
33
|
+
UseSmileIDCrashReporting.captureException(err);
|
|
34
|
+
}
|
|
35
|
+
onNavigateNext();
|
|
36
|
+
}, onDeny: () => {
|
|
37
|
+
// Exit the flow with a failed reason; the orchestrator
|
|
38
|
+
// converts that to `onResult({ status: 'failure', error })`.
|
|
39
|
+
// Typed `ConsentDeniedException` (with timestamp) so partners
|
|
40
|
+
// can distinguish a deliberate denial from other failures.
|
|
41
|
+
navigationManager.exit({
|
|
42
|
+
kind: "failed",
|
|
43
|
+
error: new ConsentDeniedException({ timestamp: Date.now() }),
|
|
44
|
+
});
|
|
45
|
+
} })) }));
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=orchestrated_consent_screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrated_consent_screen.js","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/orchestrated_consent_screen.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,uBAAuB,EA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AAK,EAAE,IAAI,sBAAsB,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;iBAC7D,CAAC,CAAC;YACL,CAAC,GACD,CACH,GACD,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InstructionsConfigBuilder } from "../dsl/builder/screens_builder";
|
|
2
|
+
export type OrchestratedInstructionsScreenProps = {
|
|
3
|
+
readonly configuration: InstructionsConfigBuilder;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Orchestrated instructions screen. Resolves the partner config into concrete
|
|
7
|
+
* screen props — `enhancedLivenessEnabled` drives the hero swap and the
|
|
8
|
+
* `showHeroOvalProgress = !enhancedLivenessEnabled` suppression — and gates
|
|
9
|
+
* Continue on the camera permission before advancing.
|
|
10
|
+
*/
|
|
11
|
+
export declare function OrchestratedInstructionsScreen({ configuration, }: OrchestratedInstructionsScreenProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=orchestrated_instructions_screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrated_instructions_screen.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/orchestrated_instructions_screen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAchF,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,CAAC,aAAa,EAAE,yBAAyB,CAAC;CACnD,CAAC;AAIF;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,EAC7C,aAAa,GACd,EAAE,mCAAmC,+BAarC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { UseSmileIDInstructionsScreen } from "../../screen/use_smile_id_instructions_screen";
|
|
4
|
+
import { UseSmileIDOrchestratedScreenHost, } from "./use_smile_id_orchestrated_screen_host";
|
|
5
|
+
import { resolveInstructionsConfig } from "../../screen/helpers/instructions_screen_helpers";
|
|
6
|
+
import { useUseSmileIDLocalizations } from "../../../l10n/use_smile_id_localizations_provider";
|
|
7
|
+
import { getCameraPermissionStatus, requestCameraPermission, } from "../../../camera/camera_permissions";
|
|
8
|
+
/**
|
|
9
|
+
* Orchestrated instructions screen. Resolves the partner config into concrete
|
|
10
|
+
* screen props — `enhancedLivenessEnabled` drives the hero swap and the
|
|
11
|
+
* `showHeroOvalProgress = !enhancedLivenessEnabled` suppression — and gates
|
|
12
|
+
* Continue on the camera permission before advancing.
|
|
13
|
+
*/
|
|
14
|
+
export function OrchestratedInstructionsScreen({ configuration, }) {
|
|
15
|
+
const localizations = useUseSmileIDLocalizations();
|
|
16
|
+
return (_jsx(UseSmileIDOrchestratedScreenHost, { content: (renderProps) => (_jsx(OrchestratedInstructionsContent, { renderProps: renderProps, configuration: configuration, localizations: localizations })) }));
|
|
17
|
+
}
|
|
18
|
+
// A real component so its hooks run at the top level, not inside the host's
|
|
19
|
+
// render callback (Rules of Hooks).
|
|
20
|
+
function OrchestratedInstructionsContent({ renderProps: { navigationManager, onBack, onNavigateNext }, configuration, localizations, }) {
|
|
21
|
+
const onContinueWithPermission = useCallback(async () => {
|
|
22
|
+
const current = await getCameraPermissionStatus();
|
|
23
|
+
if (current === "granted") {
|
|
24
|
+
onNavigateNext();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const next = await requestCameraPermission();
|
|
28
|
+
if (next === "granted") {
|
|
29
|
+
onNavigateNext();
|
|
30
|
+
}
|
|
31
|
+
// On denial, stay on the Instructions screen rather than advancing
|
|
32
|
+
// into a camera screen against a denied permission.
|
|
33
|
+
}, [onNavigateNext]);
|
|
34
|
+
const documentType = navigationManager.documentType;
|
|
35
|
+
const resolved = resolveInstructionsConfig(configuration, {
|
|
36
|
+
enhancedLivenessEnabled: navigationManager.enhancedLivenessEnabled,
|
|
37
|
+
...(documentType ? { documentType } : {}),
|
|
38
|
+
}, localizations);
|
|
39
|
+
return (_jsx(UseSmileIDInstructionsScreen, { titlePrefix: resolved.titlePrefix, titleEmphasis: resolved.titleEmphasis, heroSource: resolved.heroSource, guidelinesSectionTitle: resolved.guidelinesSectionTitle, guidelines: resolved.guidelines, showAttribution: resolved.showAttribution, showHeroOval: resolved.showHeroOval, showHeroOvalProgress: resolved.showHeroOvalProgress, ...(configuration.continueButton
|
|
40
|
+
? {
|
|
41
|
+
// Adapt the config slot `{ onClick, enabled }` to the screen's
|
|
42
|
+
// `{ onClick }` (Continue is always actionable).
|
|
43
|
+
continueButton: ({ onClick }) => configuration.continueButton?.({ onClick, enabled: true }),
|
|
44
|
+
}
|
|
45
|
+
: {}), onContinue: onContinueWithPermission, onBack: onBack }));
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=orchestrated_instructions_screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrated_instructions_screen.js","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/orchestrated_instructions_screen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EACL,gCAAgC,GAEjC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAE/F,OAAO,EACL,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAQ5C;;;;;GAKG;AACH,MAAM,UAAU,8BAA8B,CAAC,EAC7C,aAAa,GACuB;IACpC,MAAM,aAAa,GAAG,0BAA0B,EAAE,CAAC;IACnD,OAAO,CACL,KAAC,gCAAgC,IAC/B,OAAO,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,CACxB,KAAC,+BAA+B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,oBAAoB,EAAE,QAAQ,CAAC,oBAAoB,KAC/C,CAAC,aAAa,CAAC,cAAc;YAC/B,CAAC,CAAC;gBACE,+DAA+D;gBAC/D,iDAAiD;gBACjD,cAAc,EAAE,CAAC,EAAE,OAAO,EAA2B,EAAE,EAAE,CACvD,aAAa,CAAC,cAAc,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;aAC7D;YACH,CAAC,CAAC,EAAE,CAAC,EACP,UAAU,EAAE,wBAAwB,EACpC,MAAM,EAAE,MAAM,GACd,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PreviewConfigBuilder } from "../dsl/builder/screens_builder";
|
|
2
|
+
export type OrchestratedPreviewScreenProps = {
|
|
3
|
+
readonly configuration: PreviewConfigBuilder;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Orchestrated preview screen — renders the document preview (the side just
|
|
7
|
+
* captured, once per side via the manager's per-side loop) or the selfie
|
|
8
|
+
* preview. Accept advances; Reject rewinds and discards that side, but only
|
|
9
|
+
* when the partner opted in via `allowRetake`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function OrchestratedPreviewScreen({ configuration, }: OrchestratedPreviewScreenProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=orchestrated_preview_screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrated_preview_screen.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/orchestrated_preview_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAK3E,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,aAAa,EAAE,oBAAoB,CAAC;CAC9C,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,aAAa,GACd,EAAE,8BAA8B,+BAsDhC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { UseSmileIDPreviewScreen } from "../../screen/use_smile_id_preview_screen";
|
|
3
|
+
import { UseSmileIDDocumentPreviewScreen } from "../../screen/use_smile_id_document_preview_screen";
|
|
4
|
+
import { UseSmileIDOrchestratedScreenHost } from "./use_smile_id_orchestrated_screen_host";
|
|
5
|
+
/**
|
|
6
|
+
* Orchestrated preview screen — renders the document preview (the side just
|
|
7
|
+
* captured, once per side via the manager's per-side loop) or the selfie
|
|
8
|
+
* preview. Accept advances; Reject rewinds and discards that side, but only
|
|
9
|
+
* when the partner opted in via `allowRetake`.
|
|
10
|
+
*/
|
|
11
|
+
export function OrchestratedPreviewScreen({ configuration, }) {
|
|
12
|
+
return (_jsx(UseSmileIDOrchestratedScreenHost, { content: ({ navigationManager, onBack, onNavigateNext }) => {
|
|
13
|
+
if (navigationManager.currentPreviewIsDocument()) {
|
|
14
|
+
const documentPath = navigationManager.currentDocumentPreviewPath();
|
|
15
|
+
return (_jsx(UseSmileIDDocumentPreviewScreen, { documentOrientation: navigationManager.documentType?.orientation ?? "Landscape", showAttribution: configuration.showAttribution, ...(documentPath !== undefined
|
|
16
|
+
? { capturedDocumentPath: documentPath }
|
|
17
|
+
: {}), onAccept: onNavigateNext, onReject: () => {
|
|
18
|
+
if (configuration.allowRetake) {
|
|
19
|
+
navigationManager.retakeCurrentDocumentSide();
|
|
20
|
+
onBack();
|
|
21
|
+
}
|
|
22
|
+
}, onClose: () => navigationManager.exit() }));
|
|
23
|
+
}
|
|
24
|
+
return (_jsx(UseSmileIDPreviewScreen, { allowRetake: configuration.allowRetake, showAttribution: configuration.showAttribution, ...(navigationManager.captured.selfiePath !== undefined
|
|
25
|
+
? { capturedSelfiePath: navigationManager.captured.selfiePath }
|
|
26
|
+
: {}), ...(configuration.continueButton
|
|
27
|
+
? {
|
|
28
|
+
continueButton: ({ onClick }) => configuration.continueButton?.({ onClick, enabled: true }),
|
|
29
|
+
}
|
|
30
|
+
: {}), ...(configuration.cancelButton
|
|
31
|
+
? {
|
|
32
|
+
cancelButton: ({ onClick }) => configuration.cancelButton?.({ onClick, enabled: true }),
|
|
33
|
+
}
|
|
34
|
+
: {}), onAccept: onNavigateNext, onReject: () => {
|
|
35
|
+
if (configuration.allowRetake)
|
|
36
|
+
onBack();
|
|
37
|
+
} }));
|
|
38
|
+
} }));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=orchestrated_preview_screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrated_preview_screen.js","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/orchestrated_preview_screen.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AACpG,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAM3F;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,EACxC,aAAa,GACkB;IAC/B,OAAO,CACL,KAAC,gCAAgC,IAC/B,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE;YACzD,IAAI,iBAAiB,CAAC,wBAAwB,EAAE,EAAE,CAAC;gBACjD,MAAM,YAAY,GAAG,iBAAiB,CAAC,0BAA0B,EAAE,CAAC;gBACpE,OAAO,CACL,KAAC,+BAA+B,IAC9B,mBAAmB,EACjB,iBAAiB,CAAC,YAAY,EAAE,WAAW,IAAI,WAAW,EAE5D,eAAe,EAAE,aAAa,CAAC,eAAe,KAC1C,CAAC,YAAY,KAAK,SAAS;wBAC7B,CAAC,CAAC,EAAE,oBAAoB,EAAE,YAAY,EAAE;wBACxC,CAAC,CAAC,EAAE,CAAC,EACP,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,GAAG,EAAE;wBACb,IAAI,aA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ps = {
|
|
3
|
+
readonly configuration: ProcessingConfigBuilder;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Orchestrated processing screen. Mounts the visual processing screen,
|
|
7
|
+
* kicks off submission via the navigation manager, and routes
|
|
8
|
+
* `Continue` / `Retry` / `Exit` taps back into the flow.
|
|
9
|
+
*/
|
|
10
|
+
export declare function OrchestratedProcessingScreen({ configuration, }: OrchestratedProcessingScreenProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=orchestrated_processing_screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrated_processing_screen.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/orchestrated_processing_screen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAe9E,MAAM,MAAM,iCAAiC,GAAG;IAC9C,QAAQ,CAAC,aAAa,EAAE,uBAAuB,CAAC;CACjD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,aAAa,GACd,EAAE,iCAAiC,+BAYnC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
import { UseSmileIDProcessingScreen, } from "../../screen/use_smile_id_processing_screen";
|
|
4
|
+
import { UseSmileIDOrchestratedScreenHost } from "./use_smile_id_orchestrated_screen_host";
|
|
5
|
+
import { ProcessingCancelledException } from "../../../core/exception";
|
|
6
|
+
import { JobType, requiresDocument, requiresSelfie, } from "../../../core/models/job_type";
|
|
7
|
+
/**
|
|
8
|
+
* Orchestrated processing screen. Mounts the visual processing screen,
|
|
9
|
+
* kicks off submission via the navigation manager, and routes
|
|
10
|
+
* `Continue` / `Retry` / `Exit` taps back into the flow.
|
|
11
|
+
*/
|
|
12
|
+
export function OrchestratedProcessingScreen({ configuration, }) {
|
|
13
|
+
return (_jsx(UseSmileIDOrchestratedScreenHost, { content: ({ navigationManager, onNavigateNext }) => (_jsx(ProcessingScreenBody, { processingConfig: configuration, navigationManager: navigationManager, onContinue: onNavigateNext })) }));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Inner component — split out so the mount `useEffect` lives in a hook
|
|
17
|
+
* caller; the host's `content` render prop can't host hooks directly.
|
|
18
|
+
*/
|
|
19
|
+
function ProcessingScreenBody(props) {
|
|
20
|
+
const { navigationManager } = props;
|
|
21
|
+
// Mount-only: kicks off submission once per manager identity. The dep
|
|
22
|
+
// is the manager (stable per parent useMemo), not a fresh closure, so
|
|
23
|
+
// it doesn't refire on every host re-render; also guarded internally.
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
navigationManager.beginSubmissionIfNeeded();
|
|
26
|
+
}, [navigationManager]);
|
|
27
|
+
const jobType = navigationManager.configuration.network?.config?.jobType ?? JobType.unknown;
|
|
28
|
+
// Document jobs render the captured front document (not the selfie oval);
|
|
29
|
+
// the front path supersedes showFaceOval.
|
|
30
|
+
const documentImageUri = requiresDocument(jobType)
|
|
31
|
+
? navigationManager.captured.frontDocumentPath
|
|
32
|
+
: undefined;
|
|
33
|
+
const documentOrientation = navigationManager.documentType?.orientation;
|
|
34
|
+
return (_jsx(UseSmileIDProcessingScreen, { state: mapToProcessingState(navigationManager.jobSubmissionState), showFaceOval: requiresSelfie(jobType) || requiresDocument(jobType), showProgressPercentage: props.processingConfig.showProgressPercentage, showAttribution: props.processingConfig.showAttribution, ...(documentImageUri !== undefined ? { documentImageUri } : {}), ...(documentImageUri !== undefined && documentOrientation !== undefined
|
|
35
|
+
? { documentOrientation }
|
|
36
|
+
: {}), ...(navigationManager.captured.selfiePath !== undefined
|
|
37
|
+
? { capturedSelfiePath: navigationManager.captured.selfiePath }
|
|
38
|
+
: {}), onContinue: props.onContinue, onRetry: () => navigationManager.retrySubmission(), onExit: () => navigationManager.exit({
|
|
39
|
+
kind: "failed",
|
|
40
|
+
error: new ProcessingCancelledException(),
|
|
41
|
+
}) }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Translate `JobSubmissionState` to the screen's `ProcessingState`.
|
|
45
|
+
* `notAttempted` maps to `loading` so the brief pre-submission window
|
|
46
|
+
* doesn't render an empty card.
|
|
47
|
+
*/
|
|
48
|
+
function mapToProcessingState(state) {
|
|
49
|
+
switch (state.kind) {
|
|
50
|
+
case "notAttempted":
|
|
51
|
+
case "loading":
|
|
52
|
+
return { kind: "loading" };
|
|
53
|
+
case "success":
|
|
54
|
+
return { kind: "success", message: state.response.message };
|
|
55
|
+
case "failure":
|
|
56
|
+
return { kind: "failed", errorMessage: state.error.message };
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=orchestrated_processing_screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrated_processing_screen.js","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/orchestrated_processing_screen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EACL,0BAA0B,GAE3B,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAC3F,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EACL,OAAO,EACP,gBAAgB,EAChB,cAAc,GACf,MAAM,+BAA+B,CAAC;AAMvC;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAAC,EAC3C,aAAa,GACqB;IAClC,OAAO,CACL,KAAC,gCAAgC,IAC/B,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CAClD,KAAC,oBAAoB,IACnB,gBAAgB,EAAE,aAAa,EAC/B,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,cAAc,GAC1B,CACH,GACD,CACH,CAAC;AACJ,CAAC;AAQD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U,EAAE;YAC/D,CAAC,CAAC,EAAE,CAAC,EACP,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,eAAe,EAAE,EAClD,MAAM,EAAE,GAAG,EAAE,CACX,iBAAiB,CAAC,IAAI,CAAC;YACrB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,IAAI,4BAA4B,EAAE;SAC1C,CAAC,GAEJ,CACH,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,oBAAoB,CAAC,KAAyB;IACrD,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,cAAc,CAAC;QACpB,KAAK,SAAS;YACZ,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC7B,KAAK,SAAS;YACZ,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QAC9D,KAAK,SAAS;YACZ,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IACjE,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { FlowNavigationManager } from "../flow_navigation_manager";
|
|
3
|
+
export type OrchestratedScreenHostContent = (args: {
|
|
4
|
+
readonly navigationManager: FlowNavigationManager;
|
|
5
|
+
readonly onBack: () => void;
|
|
6
|
+
readonly onNavigateNext: () => void;
|
|
7
|
+
}) => ReactNode;
|
|
8
|
+
export type UseSmileIDOrchestratedScreenHostProps = {
|
|
9
|
+
readonly content: OrchestratedScreenHostContent;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Shared host for every `OrchestratedXxxScreen`. Reads the
|
|
13
|
+
* `FlowNavigationManager` from context and provides pre-wired
|
|
14
|
+
* `onBack` / `onNavigateNext` callbacks.
|
|
15
|
+
*
|
|
16
|
+
* Concrete scenario this catches: a partner mounts an
|
|
17
|
+
* `OrchestratedXxxScreen` outside `<UseSmileIDBuilder>`. The
|
|
18
|
+
* `useFlowNavigation()` call throws a loud "called outside
|
|
19
|
+
* `<UseSmileIDBuilder>`" error rather than silently no-op-ing on
|
|
20
|
+
* `navigateToNext()` / `navigateBack()`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function UseSmileIDOrchestratedScreenHost({ content, }: UseSmileIDOrchestratedScreenHostProps): import("react").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=use_smile_id_orchestrated_screen_host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use_smile_id_orchestrated_screen_host.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/use_smile_id_orchestrated_screen_host.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,MAAM,6BAA6B,GAAG,CAAC,IAAI,EAAE;IACjD,QAAQ,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,cAAc,EAAE,MAAM,IAAI,CAAC;CACrC,KAAK,SAAS,CAAC;AAEhB,MAAM,MAAM,qCAAqC,GAAG;IAClD,QAAQ,CAAC,OAAO,EAAE,6BAA6B,CAAC;CACjD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,OAAO,GACR,EAAE,qCAAqC,+BAWvC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useFlowNavigation } from "../flow_navigation_context";
|
|
3
|
+
/**
|
|
4
|
+
* Shared host for every `OrchestratedXxxScreen`. Reads the
|
|
5
|
+
* `FlowNavigationManager` from context and provides pre-wired
|
|
6
|
+
* `onBack` / `onNavigateNext` callbacks.
|
|
7
|
+
*
|
|
8
|
+
* Concrete scenario this catches: a partner mounts an
|
|
9
|
+
* `OrchestratedXxxScreen` outside `<UseSmileIDBuilder>`. The
|
|
10
|
+
* `useFlowNavigation()` call throws a loud "called outside
|
|
11
|
+
* `<UseSmileIDBuilder>`" error rather than silently no-op-ing on
|
|
12
|
+
* `navigateToNext()` / `navigateBack()`.
|
|
13
|
+
*/
|
|
14
|
+
export function UseSmileIDOrchestratedScreenHost({ content, }) {
|
|
15
|
+
const navigationManager = useFlowNavigation();
|
|
16
|
+
return (_jsx(_Fragment, { children: content({
|
|
17
|
+
navigationManager,
|
|
18
|
+
onBack: () => navigationManager.navigateBack(),
|
|
19
|
+
onNavigateNext: () => navigationManager.navigateToNext(),
|
|
20
|
+
}) }));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=use_smile_id_orchestrated_screen_host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use_smile_id_orchestrated_screen_host.js","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/use_smile_id_orchestrated_screen_host.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAa/D;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gCAAgC,CAAC,EAC/C,OAAO,GAC+B;IACtC,MAAM,iBAAiB,GAAG,iBAAiB,EAAE,CAAC;IAC9C,OAAO,CACL,4BACG,OAAO,CAAC;YACP,iBAAiB;YACjB,MAAM,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,YAAY,EAAE;YAC9C,cAAc,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,cAAc,EAAE;SACzD,CAAC,GACD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ValidationStateInvalid } from "../validation/validation_state";
|
|
2
|
+
/**
|
|
3
|
+
* Debug-mode screen that lists every validation issue produced by
|
|
4
|
+
* the builder when `enableDebugMode` is set on the config block.
|
|
5
|
+
* Production partners receive the same information via
|
|
6
|
+
* `onResult.failure` instead of seeing this screen.
|
|
7
|
+
*/
|
|
8
|
+
export type ValidationErrorScreenProps = {
|
|
9
|
+
readonly validationState: ValidationStateInvalid;
|
|
10
|
+
};
|
|
11
|
+
export declare function ValidationErrorScreen({ validationState, }: ValidationErrorScreenProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=validation_error_screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation_error_screen.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/validation_error_screen.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,eAAe,EAAE,sBAAsB,CAAC;CAClD,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,eAAe,GAChB,EAAE,0BAA0B,+BA2B5B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ScrollView, StyleSheet, Text, View } from "react-native";
|
|
3
|
+
import { SafeAreaView } from "react-native-safe-area-context";
|
|
4
|
+
import { IssueSeverity } from "../../../core/exception/issue_severity";
|
|
5
|
+
export function ValidationErrorScreen({ validationState, }) {
|
|
6
|
+
const { issues } = validationState;
|
|
7
|
+
return (_jsx(SafeAreaView, { style: styles.root, edges: ["top", "bottom"], children: _jsxs(ScrollView, { contentContainerStyle: styles.content, children: [_jsx(Text, { style: styles.icon, children: "\u26A0\uFE0F" }), _jsx(Text, { style: styles.heading, children: "UseSmileID Configuration Error" }), _jsxs(Text, { style: styles.subheading, children: ["Found ", issues.length, " issue(s) in your flow configuration"] }), issues.map((issue, index) => (_jsx(IssueCard, { issue: issue, index: index + 1, total: issues.length }, `${index}-${issue.errorCode ?? "unknown"}`))), _jsx(Text, { style: styles.footer, children: "This error screen only appears in development. Fix the issues above to continue." })] }) }));
|
|
8
|
+
}
|
|
9
|
+
function IssueCard({ issue, index, total }) {
|
|
10
|
+
const severityColor = issue.severity === IssueSeverity.error ? "#B91C1C" : "#B45309";
|
|
11
|
+
return (_jsxs(View, { style: styles.card, children: [_jsxs(Text, { style: [styles.severity, { color: severityColor }], children: ["Issue ", index, " of ", total, " \u2014 ", issue.severity] }), _jsx(Text, { style: styles.message, children: issue.message }), issue.suggestedFix.trim().length > 0 ? (_jsxs(View, { style: styles.fixBox, children: [_jsx(Text, { style: styles.fixLabel, children: "\uD83D\uDCA1 Suggested Fix:" }), _jsx(Text, { style: styles.fixText, children: issue.suggestedFix })] })) : null] }));
|
|
12
|
+
}
|
|
13
|
+
const styles = StyleSheet.create({
|
|
14
|
+
root: {
|
|
15
|
+
flex: 1,
|
|
16
|
+
backgroundColor: "#FEE2E2",
|
|
17
|
+
},
|
|
18
|
+
content: {
|
|
19
|
+
padding: 16,
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
},
|
|
22
|
+
icon: {
|
|
23
|
+
fontSize: 56,
|
|
24
|
+
marginTop: 32,
|
|
25
|
+
},
|
|
26
|
+
heading: {
|
|
27
|
+
fontSize: 22,
|
|
28
|
+
fontWeight: "bold",
|
|
29
|
+
color: "#B91C1C",
|
|
30
|
+
marginTop: 16,
|
|
31
|
+
textAlign: "center",
|
|
32
|
+
},
|
|
33
|
+
subheading: {
|
|
34
|
+
fontSize: 16,
|
|
35
|
+
color: "#7F1D1D",
|
|
36
|
+
marginTop: 8,
|
|
37
|
+
textAlign: "center",
|
|
38
|
+
},
|
|
39
|
+
card: {
|
|
40
|
+
width: "100%",
|
|
41
|
+
backgroundColor: "#FFFFFF",
|
|
42
|
+
borderRadius: 12,
|
|
43
|
+
padding: 16,
|
|
44
|
+
marginTop: 16,
|
|
45
|
+
elevation: 2,
|
|
46
|
+
shadowColor: "#000",
|
|
47
|
+
shadowOffset: { width: 0, height: 1 },
|
|
48
|
+
shadowOpacity: 0.1,
|
|
49
|
+
shadowRadius: 2,
|
|
50
|
+
},
|
|
51
|
+
severity: {
|
|
52
|
+
fontSize: 12,
|
|
53
|
+
fontWeight: "bold",
|
|
54
|
+
textTransform: "uppercase",
|
|
55
|
+
},
|
|
56
|
+
message: {
|
|
57
|
+
fontSize: 16,
|
|
58
|
+
color: "#1F2937",
|
|
59
|
+
marginTop: 8,
|
|
60
|
+
fontWeight: "500",
|
|
61
|
+
},
|
|
62
|
+
fixBox: {
|
|
63
|
+
backgroundColor: "#DBEAFE",
|
|
64
|
+
borderRadius: 8,
|
|
65
|
+
padding: 12,
|
|
66
|
+
marginTop: 12,
|
|
67
|
+
},
|
|
68
|
+
fixLabel: {
|
|
69
|
+
fontSize: 13,
|
|
70
|
+
fontWeight: "bold",
|
|
71
|
+
color: "#1E40AF",
|
|
72
|
+
},
|
|
73
|
+
fixText: {
|
|
74
|
+
fontSize: 14,
|
|
75
|
+
color: "#1E3A8A",
|
|
76
|
+
fontFamily: "Courier",
|
|
77
|
+
marginTop: 4,
|
|
78
|
+
},
|
|
79
|
+
footer: {
|
|
80
|
+
fontSize: 12,
|
|
81
|
+
color: "#7F1D1D",
|
|
82
|
+
marginTop: 24,
|
|
83
|
+
opacity: 0.7,
|
|
84
|
+
textAlign: "center",
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=validation_error_screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation_error_screen.js","sourceRoot":"","sources":["../../../../src/presentation/flow/screen/validation_error_screen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,M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MAAM;QACnB,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QACrC,aAAa,EAAE,GAAG;QAClB,YAAY,EAAE,CAAC;KAChB;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,aAAa,EAAE,WAAW;KAC3B;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,KAAK;KAClB;IACD,MAAM,EAAE;QACN,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,CAAC;QACf,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,EAAE;KACd;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,MAAM;QAClB,KAAK,EAAE,SAAS;KACjB;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,SAAS;QACrB,SAAS,EAAE,CAAC;KACb;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,GAAG;QACZ,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { FlowConfiguration } from "./config/flow_configuration";
|
|
2
|
+
import type { FlowBuildResult } from "./dsl/flow_build_result";
|
|
3
|
+
import { type UseSmileIDResult } from "../../core/models/result";
|
|
4
|
+
import type { JobSubmissionResponse } from "../../data/model/job_submission_response";
|
|
5
|
+
export type FlowInvalidDispatcherProps = {
|
|
6
|
+
readonly result: Extract<FlowBuildResult, {
|
|
7
|
+
kind: "invalid";
|
|
8
|
+
}>;
|
|
9
|
+
readonly onResult: (result: UseSmileIDResult<JobSubmissionResponse>) => void;
|
|
10
|
+
readonly enableDebugMode: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Routes the validation failure through the partner's `onResult`
|
|
14
|
+
* after first paint. When `enableDebugMode` is set on the builder,
|
|
15
|
+
* additionally renders [ValidationErrorScreen] with every failed
|
|
16
|
+
* rule so the partner has a complete picture during development.
|
|
17
|
+
* Production renders nothing — `onResult.failure` is the only
|
|
18
|
+
* surface partners see.
|
|
19
|
+
*
|
|
20
|
+
* `onResult` and `enableDebugMode` are passed in as separate props
|
|
21
|
+
* (sourced from the builder reference by `<UseSmileIDBuilder>`) rather
|
|
22
|
+
* than embedded on the `result`.
|
|
23
|
+
*
|
|
24
|
+
* @internal Used by `<UseSmileIDBuilder>`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function FlowInvalidDispatcher({ result, onResult, enableDebugMode, }: FlowInvalidDispatcherProps): import("react").JSX.Element | null;
|
|
27
|
+
export type FlowSuccessRendererProps = {
|
|
28
|
+
readonly configuration: FlowConfiguration;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Walks the partner through the configured screen list, dispatches
|
|
32
|
+
* frames to the chosen analyzer, submits the resulting artifacts, and
|
|
33
|
+
* notifies the partner via `configuration.onResult`.
|
|
34
|
+
*
|
|
35
|
+
* **What's wired today:**
|
|
36
|
+
* - `FlowNavigationManager` cursor — `navigateToNext()` /
|
|
37
|
+
* `navigateBack()` advance the screen index and subscribers re-render.
|
|
38
|
+
* - Crash reporting lifecycle — `enable()` on mount when
|
|
39
|
+
* `configuration.config.enableCrashReporting !== false`, `disable()`
|
|
40
|
+
* on unmount.
|
|
41
|
+
* - Localizations resolution — explicit override → device-locale
|
|
42
|
+
* auto-resolve → English defaults.
|
|
43
|
+
* - Exit handling — converts `FlowExitReason` to `UseSmileIDResult`
|
|
44
|
+
* and calls `configuration.onResult` (wrapped in try/catch routing
|
|
45
|
+
* partner-handler exceptions through crash reporting).
|
|
46
|
+
*
|
|
47
|
+
* **Still stub:** the screen visuals themselves (see `screens/*.tsx`)
|
|
48
|
+
* and the analyzer-dispatch + job-submission pipeline. Cursor moves
|
|
49
|
+
* end-to-end today; analyzer wire-up is the next milestone.
|
|
50
|
+
*
|
|
51
|
+
* @internal Used by `<UseSmileIDBuilder>`.
|
|
52
|
+
*/
|
|
53
|
+
export declare function FlowSuccessRenderer({ configuration, }: FlowSuccessRendererProps): import("react").JSX.Element;
|
|
54
|
+
//# sourceMappingURL=use_smile_id_flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use_smile_id_flow.d.ts","sourceRoot":"","sources":["../../../src/presentation/flow/use_smile_id_flow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAc/D,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AA2BtF,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IAC/D,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAAC;IAC7E,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,QAAQ,EACR,eAAe,GAChB,EAAE,0BAA0B,sCAwB5B;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;CAC3C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,GACd,EAAE,wBAAwB,+BAgN1B"}
|