@ovok/native 1.5.6 → 1.6.1
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/README.md +35 -19
- package/android/src/main/AndroidManifest.xml +1 -20
- package/app.plugin.js +181 -0
- package/lib/commonjs/index.js +5 -104
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/auth/delete-account-button/components/delete-account-button.js +2 -0
- package/lib/commonjs/modules/auth/delete-account-button/components/delete-account-button.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-rate-limit-cooldown.js +23 -0
- package/lib/commonjs/modules/auth/hooks/use-rate-limit-cooldown.js.map +1 -0
- package/lib/commonjs/modules/auth/hooks/use-session.js +105 -0
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -0
- package/lib/commonjs/modules/auth/index.js +44 -0
- package/lib/commonjs/modules/auth/index.js.map +1 -1
- package/lib/commonjs/modules/auth/logout-button/components/logout-button.js +5 -2
- package/lib/commonjs/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/inputs.js +50 -1
- package/lib/commonjs/modules/auth/register/components/form/inputs.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-button.js +4 -0
- package/lib/commonjs/modules/auth/register/components/form/register-button.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +6 -0
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/inputs.js +12 -0
- package/lib/commonjs/modules/auth/reset-password/components/form/inputs.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-button.js +4 -0
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-button.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js +7 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/session/components/session-list.js +82 -0
- package/lib/commonjs/modules/auth/session/components/session-list.js.map +1 -0
- package/lib/commonjs/modules/auth/session/events.js +19 -0
- package/lib/commonjs/modules/auth/session/events.js.map +1 -0
- package/lib/commonjs/modules/auth/session/index.js +13 -0
- package/lib/commonjs/modules/auth/session/index.js.map +1 -0
- package/lib/commonjs/modules/auth/session/types/session-list-props.js +6 -0
- package/lib/commonjs/modules/auth/session/types/session-list-props.js.map +1 -0
- package/lib/commonjs/modules/auth/sign-in/components/form/inputs.js +26 -0
- package/lib/commonjs/modules/auth/sign-in/components/form/inputs.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/form/login-form-provider.js +48 -1
- package/lib/commonjs/modules/auth/sign-in/components/form/login-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/form/mfa-code-input.js +58 -0
- package/lib/commonjs/modules/auth/sign-in/components/form/mfa-code-input.js.map +1 -0
- package/lib/commonjs/modules/auth/sign-in/components/form/sign-in-with-email.js +2 -0
- package/lib/commonjs/modules/auth/sign-in/components/form/sign-in-with-email.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/form/signin-button.js +13 -5
- package/lib/commonjs/modules/auth/sign-in/components/form/signin-button.js.map +1 -1
- package/lib/commonjs/modules/auth/types/session.js +2 -0
- package/lib/commonjs/modules/auth/types/session.js.map +1 -0
- package/lib/commonjs/modules/auth/utils/rate-limit.js +37 -0
- package/lib/commonjs/modules/auth/utils/rate-limit.js.map +1 -0
- package/lib/commonjs/modules/background-sync/android-bluetooth-foreground-service.js +3 -2
- package/lib/commonjs/modules/background-sync/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/commonjs/modules/background-sync/background-safe-storage.js +76 -0
- package/lib/commonjs/modules/background-sync/background-safe-storage.js.map +1 -0
- package/lib/commonjs/modules/background-sync/index.js +11 -0
- package/lib/commonjs/modules/background-sync/index.js.map +1 -1
- package/lib/commonjs/modules/bt-device/index.js +0 -22
- package/lib/commonjs/modules/bt-device/index.js.map +1 -1
- package/lib/commonjs/modules/bt-device-instructions/index.js +39 -0
- package/lib/commonjs/modules/bt-device-instructions/index.js.map +1 -0
- package/lib/commonjs/modules/bt-management/components/android-bluetooth-foreground-service.js +64 -0
- package/lib/commonjs/modules/bt-management/components/android-bluetooth-foreground-service.js.map +1 -0
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +94 -26
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js +1 -0
- package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js +95 -0
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-background-sync.js +51 -0
- package/lib/commonjs/modules/bt-management/hooks/use-background-sync.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-state.js +51 -0
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-state.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-device-connection.js +40 -0
- package/lib/commonjs/modules/bt-management/hooks/use-device-connection.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-health-import.js +82 -0
- package/lib/commonjs/modules/bt-management/hooks/use-health-import.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-measurements.js +79 -0
- package/lib/commonjs/modules/bt-management/hooks/use-measurements.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-nearby-devices.js +33 -0
- package/lib/commonjs/modules/bt-management/hooks/use-nearby-devices.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-paired-devices.js +58 -0
- package/lib/commonjs/modules/bt-management/hooks/use-paired-devices.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-scan-control.js +21 -0
- package/lib/commonjs/modules/bt-management/hooks/use-scan-control.js.map +1 -0
- package/lib/commonjs/modules/bt-management/index.js +154 -0
- package/lib/commonjs/modules/bt-management/index.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js +41 -5
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/bt-manager.js +91 -22
- package/lib/commonjs/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-connection-handler.js +59 -0
- package/lib/commonjs/modules/bt-management/services/devices/bt-connection-handler.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +107 -4
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +9 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/measurement-state-machine.js +5 -3
- package/lib/commonjs/modules/bt-management/services/devices/measurement-state-machine.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.main-services.js +12 -0
- package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.main-services.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/push-notification.js +39 -0
- package/lib/commonjs/modules/bt-management/services/push-notification.js.map +1 -0
- package/lib/commonjs/modules/bt-management/testing/fake-ble-manager.js +132 -0
- package/lib/commonjs/modules/bt-management/testing/fake-ble-manager.js.map +1 -0
- package/lib/commonjs/modules/bt-management/testing/index.js +28 -0
- package/lib/commonjs/modules/bt-management/testing/index.js.map +1 -0
- package/lib/commonjs/modules/bt-management/testing/recorded-frames.js +23 -0
- package/lib/commonjs/modules/bt-management/testing/recorded-frames.js.map +1 -0
- package/lib/commonjs/modules/bt-management/types/bluetooth-error.js +82 -0
- package/lib/commonjs/modules/bt-management/types/bluetooth-error.js.map +1 -0
- package/lib/commonjs/modules/bt-management/types/device-connection-event.js +6 -0
- package/lib/commonjs/modules/bt-management/types/device-connection-event.js.map +1 -0
- package/lib/commonjs/modules/bt-management/types/result-policy.js +6 -0
- package/lib/commonjs/modules/bt-management/types/result-policy.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/result-identity.js +63 -0
- package/lib/commonjs/modules/bt-management/utils/result-identity.js.map +1 -0
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js +20 -5
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js +29 -4
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +2 -2
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/sync-progress-manager.js +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/sync-progress-manager.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/generate-observation-entry.js +29 -21
- package/lib/commonjs/modules/data-sync/utils/generate-observation-entry.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/retry-save.js +99 -0
- package/lib/commonjs/modules/data-sync/utils/retry-save.js.map +1 -0
- package/lib/commonjs/modules/helpers/form-items/form-field.js +2 -0
- package/lib/commonjs/modules/helpers/form-items/form-field.js.map +1 -1
- package/lib/commonjs/modules/helpers/index.js +23 -4
- package/lib/commonjs/modules/helpers/index.js.map +1 -1
- package/lib/commonjs/modules/helpers/utils/s-log.js +4 -13
- package/lib/commonjs/modules/helpers/utils/s-log.js.map +1 -1
- package/lib/commonjs/modules/helpers/utils/sentry-logger.js +27 -17
- package/lib/commonjs/modules/helpers/utils/sentry-logger.js.map +1 -1
- package/lib/commonjs/modules/helpers/utils/telemetry.js +230 -0
- package/lib/commonjs/modules/helpers/utils/telemetry.js.map +1 -0
- package/lib/commonjs/modules/image/components/optimized-image.js +31 -6
- package/lib/commonjs/modules/image/components/optimized-image.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-error.js +18 -9
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-error.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-next-button.js +3 -2
- package/lib/commonjs/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-next-button.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-submit-button.js +4 -2
- package/lib/commonjs/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-submit-button.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js +44 -17
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js +2 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/contexts/questionnaire-navigation-context.js.map +1 -1
- package/lib/commonjs/modules/tile/components/task-icon.js +2 -1
- package/lib/commonjs/modules/tile/components/task-icon.js.map +1 -1
- package/lib/commonjs/modules/tile/constants/measurement-icon-svg.js +4 -1
- package/lib/commonjs/modules/tile/constants/measurement-icon-svg.js.map +1 -1
- package/lib/commonjs/modules/ui/components/background-sync-setting.js +123 -0
- package/lib/commonjs/modules/ui/components/background-sync-setting.js.map +1 -0
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js +119 -0
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js.map +1 -0
- package/lib/commonjs/modules/ui/components/ecg-strip-viewer.js +175 -0
- package/lib/commonjs/modules/ui/components/ecg-strip-viewer.js.map +1 -0
- package/lib/commonjs/modules/ui/components/health-import-card.js +141 -0
- package/lib/commonjs/modules/ui/components/health-import-card.js.map +1 -0
- package/lib/commonjs/modules/ui/components/manual-entry-form.js +136 -0
- package/lib/commonjs/modules/ui/components/manual-entry-form.js.map +1 -0
- package/lib/commonjs/modules/ui/components/pairing-flow.js +247 -0
- package/lib/commonjs/modules/ui/components/pairing-flow.js.map +1 -0
- package/lib/commonjs/modules/ui/components/supported-devices-catalog-list.js +107 -0
- package/lib/commonjs/modules/ui/components/supported-devices-catalog-list.js.map +1 -0
- package/lib/commonjs/modules/ui/components/urine-test-result.js +99 -0
- package/lib/commonjs/modules/ui/components/urine-test-result.js.map +1 -0
- package/lib/commonjs/modules/ui/index.js +116 -0
- package/lib/commonjs/modules/ui/index.js.map +1 -0
- package/lib/commonjs/modules/ui/types.js +6 -0
- package/lib/commonjs/modules/ui/types.js.map +1 -0
- package/lib/commonjs/modules/ui/use-ovok-ui.js +51 -0
- package/lib/commonjs/modules/ui/use-ovok-ui.js.map +1 -0
- package/lib/module/index.js +3 -9
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/auth/delete-account-button/components/delete-account-button.js +2 -0
- package/lib/module/modules/auth/delete-account-button/components/delete-account-button.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-rate-limit-cooldown.js +17 -0
- package/lib/module/modules/auth/hooks/use-rate-limit-cooldown.js.map +1 -0
- package/lib/module/modules/auth/hooks/use-session.js +99 -0
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -0
- package/lib/module/modules/auth/index.js +4 -0
- package/lib/module/modules/auth/index.js.map +1 -1
- package/lib/module/modules/auth/logout-button/components/logout-button.js +5 -2
- package/lib/module/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/inputs.js +50 -1
- package/lib/module/modules/auth/register/components/form/inputs.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-button.js +4 -0
- package/lib/module/modules/auth/register/components/form/register-button.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-form-provider.js +6 -0
- package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/inputs.js +12 -0
- package/lib/module/modules/auth/reset-password/components/form/inputs.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/reset-password-button.js +4 -0
- package/lib/module/modules/auth/reset-password/components/form/reset-password-button.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js +7 -1
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/module/modules/auth/session/components/session-list.js +76 -0
- package/lib/module/modules/auth/session/components/session-list.js.map +1 -0
- package/lib/module/modules/auth/session/events.js +13 -0
- package/lib/module/modules/auth/session/events.js.map +1 -0
- package/lib/module/modules/auth/session/index.js +4 -0
- package/lib/module/modules/auth/session/index.js.map +1 -0
- package/lib/module/modules/auth/session/types/session-list-props.js +4 -0
- package/lib/module/modules/auth/session/types/session-list-props.js.map +1 -0
- package/lib/module/modules/auth/sign-in/components/form/inputs.js +26 -0
- package/lib/module/modules/auth/sign-in/components/form/inputs.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js +48 -1
- package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/form/mfa-code-input.js +52 -0
- package/lib/module/modules/auth/sign-in/components/form/mfa-code-input.js.map +1 -0
- package/lib/module/modules/auth/sign-in/components/form/sign-in-with-email.js +2 -0
- package/lib/module/modules/auth/sign-in/components/form/sign-in-with-email.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/form/signin-button.js +13 -5
- package/lib/module/modules/auth/sign-in/components/form/signin-button.js.map +1 -1
- package/lib/module/modules/auth/types/session.js +2 -0
- package/lib/module/modules/auth/types/session.js.map +1 -0
- package/lib/module/modules/auth/utils/rate-limit.js +31 -0
- package/lib/module/modules/auth/utils/rate-limit.js.map +1 -0
- package/lib/module/modules/background-sync/android-bluetooth-foreground-service.js +3 -2
- package/lib/module/modules/background-sync/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/module/modules/background-sync/background-safe-storage.js +71 -0
- package/lib/module/modules/background-sync/background-safe-storage.js.map +1 -0
- package/lib/module/modules/background-sync/index.js +1 -0
- package/lib/module/modules/background-sync/index.js.map +1 -1
- package/lib/module/modules/bt-device/index.js +0 -2
- package/lib/module/modules/bt-device/index.js.map +1 -1
- package/lib/module/modules/bt-device-instructions/index.js +6 -0
- package/lib/module/modules/bt-device-instructions/index.js.map +1 -0
- package/lib/module/modules/bt-management/components/android-bluetooth-foreground-service.js +58 -0
- package/lib/module/modules/bt-management/components/android-bluetooth-foreground-service.js.map +1 -0
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +94 -26
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/module/modules/bt-management/constants/measurement-field-catalog.js +1 -0
- package/lib/module/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js +86 -0
- package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-background-sync.js +45 -0
- package/lib/module/modules/bt-management/hooks/use-background-sync.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-bluetooth-state.js +45 -0
- package/lib/module/modules/bt-management/hooks/use-bluetooth-state.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-device-connection.js +34 -0
- package/lib/module/modules/bt-management/hooks/use-device-connection.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-health-import.js +76 -0
- package/lib/module/modules/bt-management/hooks/use-health-import.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-measurements.js +73 -0
- package/lib/module/modules/bt-management/hooks/use-measurements.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-nearby-devices.js +27 -0
- package/lib/module/modules/bt-management/hooks/use-nearby-devices.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-paired-devices.js +52 -0
- package/lib/module/modules/bt-management/hooks/use-paired-devices.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-scan-control.js +16 -0
- package/lib/module/modules/bt-management/hooks/use-scan-control.js.map +1 -0
- package/lib/module/modules/bt-management/index.js +14 -0
- package/lib/module/modules/bt-management/index.js.map +1 -1
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js +41 -5
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/module/modules/bt-management/services/bt-manager.js +91 -22
- package/lib/module/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-connection-handler.js +59 -0
- package/lib/module/modules/bt-management/services/devices/bt-connection-handler.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +107 -4
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +9 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/measurement-state-machine.js +5 -3
- package/lib/module/modules/bt-management/services/devices/measurement-state-machine.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js +12 -0
- package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js.map +1 -1
- package/lib/module/modules/bt-management/services/push-notification.js +34 -0
- package/lib/module/modules/bt-management/services/push-notification.js.map +1 -0
- package/lib/module/modules/bt-management/testing/fake-ble-manager.js +127 -0
- package/lib/module/modules/bt-management/testing/fake-ble-manager.js.map +1 -0
- package/lib/module/modules/bt-management/testing/index.js +5 -0
- package/lib/module/modules/bt-management/testing/index.js.map +1 -0
- package/lib/module/modules/bt-management/testing/recorded-frames.js +17 -0
- package/lib/module/modules/bt-management/testing/recorded-frames.js.map +1 -0
- package/lib/module/modules/bt-management/types/bluetooth-error.js +76 -0
- package/lib/module/modules/bt-management/types/bluetooth-error.js.map +1 -0
- package/lib/module/modules/bt-management/types/device-connection-event.js +4 -0
- package/lib/module/modules/bt-management/types/device-connection-event.js.map +1 -0
- package/lib/module/modules/bt-management/types/result-policy.js +4 -0
- package/lib/module/modules/bt-management/types/result-policy.js.map +1 -0
- package/lib/module/modules/bt-management/utils/result-identity.js +57 -0
- package/lib/module/modules/bt-management/utils/result-identity.js.map +1 -0
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js +20 -5
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/services/base-health-sync-service.js +29 -4
- package/lib/module/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/data-processor.js +2 -2
- package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/sync-progress-manager.js +1 -1
- package/lib/module/modules/data-sync/services/managers/sync-progress-manager.js.map +1 -1
- package/lib/module/modules/data-sync/utils/generate-observation-entry.js +29 -21
- package/lib/module/modules/data-sync/utils/generate-observation-entry.js.map +1 -1
- package/lib/module/modules/data-sync/utils/retry-save.js +92 -0
- package/lib/module/modules/data-sync/utils/retry-save.js.map +1 -0
- package/lib/module/modules/helpers/form-items/form-field.js +2 -0
- package/lib/module/modules/helpers/form-items/form-field.js.map +1 -1
- package/lib/module/modules/helpers/index.js +2 -1
- package/lib/module/modules/helpers/index.js.map +1 -1
- package/lib/module/modules/helpers/utils/s-log.js +4 -12
- package/lib/module/modules/helpers/utils/s-log.js.map +1 -1
- package/lib/module/modules/helpers/utils/sentry-logger.js +25 -14
- package/lib/module/modules/helpers/utils/sentry-logger.js.map +1 -1
- package/lib/module/modules/helpers/utils/telemetry.js +218 -0
- package/lib/module/modules/helpers/utils/telemetry.js.map +1 -0
- package/lib/module/modules/image/components/optimized-image.js +32 -7
- package/lib/module/modules/image/components/optimized-image.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-error.js +20 -11
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-error.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-next-button.js +3 -2
- package/lib/module/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-next-button.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-submit-button.js +4 -2
- package/lib/module/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-submit-button.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js +44 -17
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js +2 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/contexts/questionnaire-navigation-context.js.map +1 -1
- package/lib/module/modules/tile/components/task-icon.js +2 -1
- package/lib/module/modules/tile/components/task-icon.js.map +1 -1
- package/lib/module/modules/tile/constants/measurement-icon-svg.js +4 -1
- package/lib/module/modules/tile/constants/measurement-icon-svg.js.map +1 -1
- package/lib/module/modules/ui/components/background-sync-setting.js +117 -0
- package/lib/module/modules/ui/components/background-sync-setting.js.map +1 -0
- package/lib/module/modules/ui/components/bluetooth-state-notice.js +113 -0
- package/lib/module/modules/ui/components/bluetooth-state-notice.js.map +1 -0
- package/lib/module/modules/ui/components/ecg-strip-viewer.js +169 -0
- package/lib/module/modules/ui/components/ecg-strip-viewer.js.map +1 -0
- package/lib/module/modules/ui/components/health-import-card.js +135 -0
- package/lib/module/modules/ui/components/health-import-card.js.map +1 -0
- package/lib/module/modules/ui/components/manual-entry-form.js +130 -0
- package/lib/module/modules/ui/components/manual-entry-form.js.map +1 -0
- package/lib/module/modules/ui/components/pairing-flow.js +241 -0
- package/lib/module/modules/ui/components/pairing-flow.js.map +1 -0
- package/lib/module/modules/ui/components/supported-devices-catalog-list.js +101 -0
- package/lib/module/modules/ui/components/supported-devices-catalog-list.js.map +1 -0
- package/lib/module/modules/ui/components/urine-test-result.js +94 -0
- package/lib/module/modules/ui/components/urine-test-result.js.map +1 -0
- package/lib/module/modules/ui/index.js +13 -0
- package/lib/module/modules/ui/index.js.map +1 -0
- package/lib/module/modules/ui/types.js +4 -0
- package/lib/module/modules/ui/types.js.map +1 -0
- package/lib/module/modules/ui/use-ovok-ui.js +45 -0
- package/lib/module/modules/ui/use-ovok-ui.js.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +0 -9
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/delete-account-button/components/delete-account-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-rate-limit-cooldown.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-rate-limit-cooldown.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/logout-button/components/logout-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/reset-password-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/components/session-list.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/auth/session/components/session-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/events.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/auth/session/events.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/auth/session/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/types/session-list-props.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/auth/session/types/session-list-props.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/mfa-code-input.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/mfa-code-input.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/sign-in-with-email.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/sign-in-with-email.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/signin-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/sign-in.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/sign-in.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/contexts/login-form-context.d.ts +2 -46
- package/lib/typescript/commonjs/src/modules/auth/sign-in/contexts/login-form-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/hooks/use-login-form.d.ts +1 -47
- package/lib/typescript/commonjs/src/modules/auth/sign-in/hooks/use-login-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-context-type.d.ts +11 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/login-form-context-type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/types/session.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/auth/types/session.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/utils/rate-limit.d.ts +11 -0
- package/lib/typescript/commonjs/src/modules/auth/utils/rate-limit.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/background-sync/android-bluetooth-foreground-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/background-sync/background-safe-storage.d.ts +31 -0
- package/lib/typescript/commonjs/src/modules/background-sync/background-safe-storage.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/background-sync/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/background-sync/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/index.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-device/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device-instructions/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-device-instructions/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/components/android-bluetooth-foreground-service.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/bt-management/components/android-bluetooth-foreground-service.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts +48 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-background-sync.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-background-sync.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bluetooth-state.d.ts +11 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bluetooth-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-device-connection.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-device-connection.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-health-import.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-health-import.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-measurements.d.ts +11 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-measurements.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-nearby-devices.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-nearby-devices.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-paired-devices.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-paired-devices.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-scan-control.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-scan-control.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts +22 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-connection-handler.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-connection-handler.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +10 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/measurement-state-machine.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/measurement-state-machine.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/spo/spo2.main-services.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/push-notification.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/push-notification.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/testing/fake-ble-manager.d.ts +33 -0
- package/lib/typescript/commonjs/src/modules/bt-management/testing/fake-ble-manager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/testing/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/testing/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/testing/recorded-frames.d.ts +12 -0
- package/lib/typescript/commonjs/src/modules/bt-management/testing/recorded-frames.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/background-sync.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/background-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/bluetooth-error.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/bluetooth-error.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-children-props.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-children-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/command-sequencer.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/command-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/error-callback.d.ts +5 -2
- package/lib/typescript/commonjs/src/modules/bt-management/types/error-callback.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/i-bt-managed-device.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/i-bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-callback.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-callback.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-progress-manager.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/sync-progress.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/sync-progress.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/generate-observation-entry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/retry-save.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/retry-save.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-field.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/helpers/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/utils/s-log.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/utils/sentry-logger.d.ts +7 -1
- package/lib/typescript/commonjs/src/modules/helpers/utils/sentry-logger.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/utils/telemetry.d.ts +69 -0
- package/lib/typescript/commonjs/src/modules/helpers/utils/telemetry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/image/components/optimized-image.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/image/components/optimized-image.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/image/types/optimized-image-props.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/image/types/optimized-image-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/content/questionnaire-content-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-next-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-submit-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-navigation-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/contexts/questionnaire-navigation-context.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/contexts/questionnaire-navigation-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/tile/components/task-icon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/tile/constants/measurement-icon-svg.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/tile/constants/measurement-icon-svg.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/background-sync-setting.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/ui/components/background-sync-setting.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts +12 -0
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/ecg-strip-viewer.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/ui/components/ecg-strip-viewer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/health-import-card.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/ui/components/health-import-card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/pairing-flow.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/ui/components/pairing-flow.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/supported-devices-catalog-list.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/ui/components/supported-devices-catalog-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/modules/ui/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/types.d.ts +24 -0
- package/lib/typescript/commonjs/src/modules/ui/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/use-ovok-ui.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/ui/use-ovok-ui.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +0 -9
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/delete-account-button/components/delete-account-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-rate-limit-cooldown.d.ts +2 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-rate-limit-cooldown.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +16 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/index.d.ts +4 -0
- package/lib/typescript/module/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/logout-button/components/logout-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/form/register-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/reset-password-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/components/session-list.d.ts +4 -0
- package/lib/typescript/module/src/modules/auth/session/components/session-list.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/events.d.ts +5 -0
- package/lib/typescript/module/src/modules/auth/session/events.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/auth/session/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/types/session-list-props.d.ts +5 -0
- package/lib/typescript/module/src/modules/auth/session/types/session-list-props.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/mfa-code-input.d.ts +9 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/mfa-code-input.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/sign-in-with-email.d.ts +4 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/sign-in-with-email.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/signin-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/sign-in.d.ts +4 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/sign-in.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/contexts/login-form-context.d.ts +2 -46
- package/lib/typescript/module/src/modules/auth/sign-in/contexts/login-form-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/hooks/use-login-form.d.ts +1 -47
- package/lib/typescript/module/src/modules/auth/sign-in/hooks/use-login-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-context-type.d.ts +11 -1
- package/lib/typescript/module/src/modules/auth/sign-in/types/login-form-context-type.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/types/session.d.ts +10 -0
- package/lib/typescript/module/src/modules/auth/types/session.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/utils/rate-limit.d.ts +11 -0
- package/lib/typescript/module/src/modules/auth/utils/rate-limit.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/background-sync/android-bluetooth-foreground-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/background-sync/background-safe-storage.d.ts +31 -0
- package/lib/typescript/module/src/modules/background-sync/background-safe-storage.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/background-sync/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/background-sync/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/index.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-device/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device-instructions/index.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-device-instructions/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/components/android-bluetooth-foreground-service.d.ts +14 -0
- package/lib/typescript/module/src/modules/bt-management/components/android-bluetooth-foreground-service.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts +48 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-background-sync.d.ts +14 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-background-sync.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bluetooth-state.d.ts +11 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bluetooth-state.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-device-connection.d.ts +7 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-device-connection.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-health-import.d.ts +16 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-health-import.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-measurements.d.ts +11 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-measurements.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-nearby-devices.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-nearby-devices.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-paired-devices.d.ts +16 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-paired-devices.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-scan-control.d.ts +7 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-scan-control.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/index.d.ts +14 -0
- package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts +22 -0
- package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-connection-handler.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-connection-handler.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +10 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/measurement-state-machine.d.ts +3 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/measurement-state-machine.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/spo/spo2.main-services.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/push-notification.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/push-notification.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/testing/fake-ble-manager.d.ts +33 -0
- package/lib/typescript/module/src/modules/bt-management/testing/fake-ble-manager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/testing/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/testing/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/testing/recorded-frames.d.ts +12 -0
- package/lib/typescript/module/src/modules/bt-management/testing/recorded-frames.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/background-sync.d.ts +3 -1
- package/lib/typescript/module/src/modules/bt-management/types/background-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/bluetooth-error.d.ts +23 -0
- package/lib/typescript/module/src/modules/bt-management/types/bluetooth-error.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-children-props.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-children-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/command-sequencer.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/types/command-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-connection-event.d.ts +16 -0
- package/lib/typescript/module/src/modules/bt-management/types/device-connection-event.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/error-callback.d.ts +5 -2
- package/lib/typescript/module/src/modules/bt-management/types/error-callback.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/i-bt-managed-device.d.ts +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/i-bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/result-callback.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/types/result-callback.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts +10 -0
- package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts +4 -0
- package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/sync-progress-manager.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +2 -0
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/sync-progress.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/sync-progress.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/generate-observation-entry.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/retry-save.d.ts +6 -0
- package/lib/typescript/module/src/modules/data-sync/utils/retry-save.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/helpers/form-items/form-field.d.ts +4 -1
- package/lib/typescript/module/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/index.d.ts +2 -1
- package/lib/typescript/module/src/modules/helpers/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/utils/s-log.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/utils/sentry-logger.d.ts +7 -1
- package/lib/typescript/module/src/modules/helpers/utils/sentry-logger.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/utils/telemetry.d.ts +69 -0
- package/lib/typescript/module/src/modules/helpers/utils/telemetry.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/image/components/optimized-image.d.ts +1 -1
- package/lib/typescript/module/src/modules/image/components/optimized-image.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/image/types/optimized-image-props.d.ts +4 -0
- package/lib/typescript/module/src/modules/image/types/optimized-image-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/content/questionnaire-content-error.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-next-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/navigation/questionnaire-navigation-submit-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-navigation-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/contexts/questionnaire-navigation-context.d.ts +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/contexts/questionnaire-navigation-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation.d.ts +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts +2 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/tile/components/task-icon.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/tile/constants/measurement-icon-svg.d.ts +1 -0
- package/lib/typescript/module/src/modules/tile/constants/measurement-icon-svg.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/background-sync-setting.d.ts +9 -0
- package/lib/typescript/module/src/modules/ui/components/background-sync-setting.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts +12 -0
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/ecg-strip-viewer.d.ts +17 -0
- package/lib/typescript/module/src/modules/ui/components/ecg-strip-viewer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/health-import-card.d.ts +13 -0
- package/lib/typescript/module/src/modules/ui/components/health-import-card.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts +21 -0
- package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/pairing-flow.d.ts +15 -0
- package/lib/typescript/module/src/modules/ui/components/pairing-flow.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/supported-devices-catalog-list.d.ts +16 -0
- package/lib/typescript/module/src/modules/ui/components/supported-devices-catalog-list.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts +10 -0
- package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/index.d.ts +11 -0
- package/lib/typescript/module/src/modules/ui/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/types.d.ts +24 -0
- package/lib/typescript/module/src/modules/ui/types.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/use-ovok-ui.d.ts +7 -0
- package/lib/typescript/module/src/modules/ui/use-ovok-ui.d.ts.map +1 -0
- package/package.json +146 -7
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.subscribeSessionChanges = exports.notifySessionChanged = void 0;
|
|
7
|
+
/* eslint-disable import/group-exports */
|
|
8
|
+
|
|
9
|
+
const listeners = new Set();
|
|
10
|
+
const subscribeSessionChanges = listener => {
|
|
11
|
+
listeners.add(listener);
|
|
12
|
+
return () => listeners.delete(listener);
|
|
13
|
+
};
|
|
14
|
+
exports.subscribeSessionChanges = subscribeSessionChanges;
|
|
15
|
+
const notifySessionChanged = () => {
|
|
16
|
+
listeners.forEach(listener => listener());
|
|
17
|
+
};
|
|
18
|
+
exports.notifySessionChanged = notifySessionChanged;
|
|
19
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["listeners","Set","subscribeSessionChanges","listener","add","delete","exports","notifySessionChanged","forEach"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/events.ts"],"mappings":";;;;;;AAAA;;AAIA,MAAMA,SAAS,GAAG,IAAIC,GAAG,CAAwB,CAAC;AAE3C,MAAMC,uBAAuB,GAClCC,QAA+B,IACd;EACjBH,SAAS,CAACI,GAAG,CAACD,QAAQ,CAAC;EAEvB,OAAO,MAAMH,SAAS,CAACK,MAAM,CAACF,QAAQ,CAAC;AACzC,CAAC;AAACG,OAAA,CAAAJ,uBAAA,GAAAA,uBAAA;AAEK,MAAMK,oBAAoB,GAAGA,CAAA,KAAY;EAC9CP,SAAS,CAACQ,OAAO,CAAEL,QAAQ,IAAKA,QAAQ,CAAC,CAAC,CAAC;AAC7C,CAAC;AAACG,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SessionList", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _sessionList.SessionList;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _sessionList = require("./components/session-list.js");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_sessionList","require"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["modules/auth/session/types/session-list-props.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -12,6 +12,8 @@ var _reactNativePaper = require("react-native-paper");
|
|
|
12
12
|
var _index = require("../../../../helpers/index.js");
|
|
13
13
|
var _index2 = require("../../../../theme/index.js");
|
|
14
14
|
var _loginFormContext = require("../../contexts/login-form-context.js");
|
|
15
|
+
var _useLoginForm = require("../../hooks/use-login-form.js");
|
|
16
|
+
var _mfaCodeInput = require("./mfa-code-input.js");
|
|
15
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
19
|
const Inputs = ({
|
|
@@ -23,7 +25,18 @@ const Inputs = ({
|
|
|
23
25
|
t
|
|
24
26
|
} = (0, _reactI18next.useTranslation)();
|
|
25
27
|
const theme = (0, _index2.useAppTheme)();
|
|
28
|
+
const {
|
|
29
|
+
handleSubmit,
|
|
30
|
+
mfaStep
|
|
31
|
+
} = (0, _useLoginForm.useLoginForm)();
|
|
26
32
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
33
|
+
const passwordRef = React.useRef(null);
|
|
34
|
+
if (mfaStep) {
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mfaCodeInput.MfaCodeInput, {
|
|
36
|
+
testID: testID ? `${testID}-mfa-code` : undefined,
|
|
37
|
+
style: style
|
|
38
|
+
});
|
|
39
|
+
}
|
|
27
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
28
41
|
style: [{
|
|
29
42
|
gap: theme.spacing(4)
|
|
@@ -37,6 +50,12 @@ const Inputs = ({
|
|
|
37
50
|
context: _loginFormContext.LoginFormContext,
|
|
38
51
|
testID: testID ? `${testID}-email` : undefined,
|
|
39
52
|
...inputProps,
|
|
53
|
+
autoFocus: inputProps?.autoFocus ?? true,
|
|
54
|
+
returnKeyType: inputProps?.returnKeyType ?? "next",
|
|
55
|
+
onSubmitEditing: event => {
|
|
56
|
+
inputProps?.onSubmitEditing?.(event);
|
|
57
|
+
passwordRef.current?.focus();
|
|
58
|
+
},
|
|
40
59
|
style: [inputProps?.containerStyle]
|
|
41
60
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.FormField, {
|
|
42
61
|
label: t("sign-in.password"),
|
|
@@ -54,6 +73,13 @@ const Inputs = ({
|
|
|
54
73
|
}),
|
|
55
74
|
testID: testID ? `${testID}-password` : undefined,
|
|
56
75
|
...inputProps,
|
|
76
|
+
inputRef: passwordRef,
|
|
77
|
+
autoFocus: inputProps?.autoFocus ?? false,
|
|
78
|
+
returnKeyType: inputProps?.returnKeyType ?? "done",
|
|
79
|
+
onSubmitEditing: event => {
|
|
80
|
+
inputProps?.onSubmitEditing?.(event);
|
|
81
|
+
void handleSubmit();
|
|
82
|
+
},
|
|
57
83
|
style: [inputProps?.containerStyle]
|
|
58
84
|
})]
|
|
59
85
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_iconsaxReactNativejs","require","React","_interopRequireWildcard","_reactI18next","_reactNative","_reactNativePaper","_index","_index2","_loginFormContext","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Inputs","testID","inputProps","style","useTranslation","theme","useAppTheme","showPassword","setShowPassword","useState","jsxs","View","gap","spacing","children","
|
|
1
|
+
{"version":3,"names":["_iconsaxReactNativejs","require","React","_interopRequireWildcard","_reactI18next","_reactNative","_reactNativePaper","_index","_index2","_loginFormContext","_useLoginForm","_mfaCodeInput","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Inputs","testID","inputProps","style","useTranslation","theme","useAppTheme","handleSubmit","mfaStep","useLoginForm","showPassword","setShowPassword","useState","passwordRef","useRef","jsx","MfaCodeInput","undefined","jsxs","View","gap","spacing","children","FormField","label","keyboardType","name","autoCapitalize","context","LoginFormContext","autoFocus","returnKeyType","onSubmitEditing","event","current","focus","containerStyle","secureTextEntry","maxLength","right","TextInput","Icon","icon","props","Eye","EyeSlash","onPress","prev","inputRef","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/inputs.tsx"],"mappings":";;;;;;AAAA,IAAAA,qBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAEA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AAEA,IAAAU,aAAA,GAAAV,OAAA;AAAgD,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAE,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,K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cf,UAAU;MACd8C,QAAQ,EAAEnC,WAAY;MACtBiB,SAAS,EAAE5B,UAAU,EAAE4B,SAAS,IAAI,KAAM;MAC1CC,aAAa,EAAE7B,UAAU,EAAE6B,aAAa,IAAI,MAAO;MACnDC,eAAe,EAAGC,KAAK,IAAK;QAC1B/B,UAAU,EAAE8B,eAAe,GAAGC,KAAK,CAAC;QACpC,KAAK1B,YAAY,CAAC,CAAC;MACrB,CAAE;MACFJ,KAAK,EAAE,CAACD,UAAU,EAAEkC,cAAc;IAAE,CACrC,CAAC;EAAA,CACE,CAAC;AAEX,CAAC;AAACa,OAAA,CAAAjD,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -8,6 +8,8 @@ var _core = require("@ovok/core");
|
|
|
8
8
|
var _formik = require("formik");
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _safeJsonParse = require("../../../../helpers/utils/safe-json-parse.js");
|
|
11
|
+
var _events = require("../../../session/events.js");
|
|
12
|
+
var _rateLimit = require("../../../utils/rate-limit.js");
|
|
11
13
|
var _loginFormContext = require("../../contexts/login-form-context.js");
|
|
12
14
|
var _createLoginValidationSchema = require("../../utils/create-login-validation-schema.js");
|
|
13
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -22,6 +24,9 @@ const LoginFormProvider = ({
|
|
|
22
24
|
onError
|
|
23
25
|
}) => {
|
|
24
26
|
const client = (0, _core.useClient)();
|
|
27
|
+
const [mfaStep, setMfaStep] = _react.default.useState(null);
|
|
28
|
+
const [mfaCode, setMfaCode] = _react.default.useState("");
|
|
29
|
+
const [mfaError, setMfaError] = _react.default.useState(null);
|
|
25
30
|
const loginValidationSchema = _react.default.useMemo(() => (0, _createLoginValidationSchema.createLoginValidationSchema)(customValidations), [customValidations]);
|
|
26
31
|
const formik = (0, _formik.useFormik)({
|
|
27
32
|
initialValues: {
|
|
@@ -48,6 +53,12 @@ const LoginFormProvider = ({
|
|
|
48
53
|
tenantCode
|
|
49
54
|
};
|
|
50
55
|
const loginResponse = await client.login(body);
|
|
56
|
+
if ("verify" in loginResponse) {
|
|
57
|
+
setMfaStep(loginResponse);
|
|
58
|
+
setMfaCode("");
|
|
59
|
+
setMfaError(null);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
51
62
|
const data = {
|
|
52
63
|
accessToken: loginResponse.accessToken,
|
|
53
64
|
refreshToken: loginResponse.refreshToken,
|
|
@@ -55,9 +66,13 @@ const LoginFormProvider = ({
|
|
|
55
66
|
project: loginResponse.project?.reference
|
|
56
67
|
};
|
|
57
68
|
await client.setActiveLogin(data);
|
|
69
|
+
(0, _events.notifySessionChanged)();
|
|
58
70
|
onSuccess?.(loginResponse);
|
|
59
71
|
} catch (error) {
|
|
60
72
|
onError?.(error);
|
|
73
|
+
if ((0, _rateLimit.setRateLimitFormError)(error, formikHelpers)) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
61
76
|
const typedError = error;
|
|
62
77
|
const parsedError = (0, _safeJsonParse.safeJsonParse)(typedError?.message);
|
|
63
78
|
const generalErrorMessage = typedError?.message || parsedError?.error?.message;
|
|
@@ -72,9 +87,41 @@ const LoginFormProvider = ({
|
|
|
72
87
|
}
|
|
73
88
|
}
|
|
74
89
|
});
|
|
90
|
+
const verifyMfa = _react.default.useCallback(async () => {
|
|
91
|
+
if (!mfaStep || !mfaCode.trim() || formik.isSubmitting) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
formik.setSubmitting(true);
|
|
95
|
+
setMfaError(null);
|
|
96
|
+
try {
|
|
97
|
+
const loginResponse = await mfaStep.verify(mfaCode.trim());
|
|
98
|
+
const data = {
|
|
99
|
+
accessToken: loginResponse.accessToken,
|
|
100
|
+
refreshToken: loginResponse.refreshToken,
|
|
101
|
+
profile: loginResponse.profile?.reference,
|
|
102
|
+
project: loginResponse.project?.reference
|
|
103
|
+
};
|
|
104
|
+
await client.setActiveLogin(data);
|
|
105
|
+
(0, _events.notifySessionChanged)();
|
|
106
|
+
setMfaStep(null);
|
|
107
|
+
setMfaCode("");
|
|
108
|
+
onSuccess?.(loginResponse);
|
|
109
|
+
} catch (error) {
|
|
110
|
+
onError?.(error);
|
|
111
|
+
setMfaError(error?.message || "sign-in.mfa.invalid");
|
|
112
|
+
} finally {
|
|
113
|
+
formik.setSubmitting(false);
|
|
114
|
+
}
|
|
115
|
+
}, [client, formik, mfaCode, mfaStep, onError, onSuccess]);
|
|
75
116
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_loginFormContext.LoginFormContext.Provider, {
|
|
76
117
|
value: {
|
|
77
|
-
...formik
|
|
118
|
+
...formik,
|
|
119
|
+
mfaStep,
|
|
120
|
+
mfaCode,
|
|
121
|
+
mfaError,
|
|
122
|
+
setMfaCode,
|
|
123
|
+
verifyMfa,
|
|
124
|
+
onMfaSuccess: onSuccess
|
|
78
125
|
},
|
|
79
126
|
children: children
|
|
80
127
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_core","require","_formik","_react","_interopRequireDefault","_safeJsonParse","_loginFormContext","_createLoginValidationSchema","_jsxRuntime","e","__esModule","default","LoginFormProvider","children","customValidations","loginType","tenantCode","onSubmit","onSuccess","onError","client","useClient","
|
|
1
|
+
{"version":3,"names":["_core","require","_formik","_react","_interopRequireDefault","_safeJsonParse","_events","_rateLimit","_loginFormContext","_createLoginValidationSchema","_jsxRuntime","e","__esModule","default","LoginFormProvider","children","customValidations","loginType","tenantCode","onSubmit","onSuccess","onError","client","useClient","mfaStep","setMfaStep","React","useState","mfaCode","setMfaCode","mfaError","setMfaError","loginValidationSchema","useMemo","createLoginValidationSchema","formik","useFormik","initialValues","email","password","submit","validateOnBlur","validationSchema","values","formikHelpers","body","type","loginResponse","login","data","accessToken","refreshToken","profile","reference","project","setActiveLogin","notifySessionChanged","error","setRateLimitFormError","typedError","parsedError","safeJsonParse","message","generalErrorMessage","fieldErrors","errors","emailError","find","path","includes","passwordError","setFieldError","verifyMfa","useCallback","trim","isSubmitting","setSubmitting","verify","jsx","LoginFormContext","Provider","value","onMfaSuccess","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/login-form-provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AAGA,IAAAQ,4BAAA,GAAAR,OAAA;AAAyF,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElF,MAAMG,iBAEZ,GAAGA,CAAC;EACHC,QAAQ;EACRC,iBAAiB;EACjBC,SAAS;EACTC,UAAU;EACVC,QAAQ;EACRC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,MAAMC,MAAM,GAAG,IAAAC,eAAS,EAAC,CAAC;EAE1B,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAGlC,IAAI,CAAC;EAEf,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGH,cAAK,CAACC,QAAQ,CAAC,EAAE,CAAC;EAChD,MAAM,CAACG,QAAQ,EAAEC,WAAW,CAAC,GAAGL,cAAK,CAACC,QAAQ,CAAgB,IAAI,CAAC;EAEnE,MAAMK,qBAAqB,GAAGN,cAAK,CAACO,OAAO,CACzC,MAAM,IAAAC,wDAA2B,EAAClB,iBAAiB,CAAC,EACpD,CAACA,iBAAiB,CACpB,CAAC;EAED,MAAMmB,MAAM,GAAG,IAAAC,iBAAS,EAAkB;IACxCC,aAAa,EAAE;MACbC,KAAK,EAAE,EAAE;MACTC,QAAQ,EAAE,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;QACXC,WAAW,EAAEH,aAAa,CAACG,WAAW;QACtCC,YAAY,EAAEJ,aAAa,CAACI,YAAY;QACxCC,OAAO,EAAEL,aAAa,CAACK,OAAO,EAAEC,SAAS;QACzCC,OAAO,EAAEP,aAAa,CAACO,OAAO,EAAED;MAClC,CAAC;MAED,MAAM/B,MAAM,CAACiC,cAAc,CAACN,IAAI,CAAC;MACjC,IAAAO,4BAAoB,EAAC,CAAC;MACtB/B,UAAU,CAAC,IAAI,CAAC;MAChBI,UAAU,CAAC,EAAE,CAAC;MACdT,SAAS,GAAG2B,aAAa,CAAC;IAC5B,CAAC,CAAC,OAAOU,KAAK,EAAE;MACdpC,OAAO,GAAGoC,KAAc,CAAC;MACzB1B,WAAW,CAAE0B,KAAK,EAAYK,OAAO,IAAI,qBAAqB,CAAC;IACjE,CAAC,SAAS;MACR3B,MAAM,CAACyC,aAAa,CAAC,KAAK,CAAC;IAC7B;EACF,CAAC,EAAE,CAACtD,MAAM,EAAEa,MAAM,EAAEP,OAAO,EAAEJ,OAAO,EAAEH,OAAO,EAAED,SAAS,CAAC,CAAC;EAE1D,oBACE,IAAAV,WAAA,CAAAoE,GAAA,EAACtE,iBAAA,CAAAuE,gBAAgB,CAACC,QAAQ;IACxBC,KAAK,EAAE;MACL,GAAG9C,MAAM;MACTX,OAAO;MACPI,OAAO;MACPE,QAAQ;MACRD,UAAU;MACV2C,SAAS;MACTU,YAAY,EAAE9D;IAChB,CAAE;IAAAL,QAAA,EAEDA;EAAQ,CACgB,CAAC;AAEhC,CAAC;AAACoE,OAAA,CAAArE,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MfaCodeInput = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactI18next = require("react-i18next");
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _reactNativePaper = require("react-native-paper");
|
|
11
|
+
var _index = require("../../../../theme/index.js");
|
|
12
|
+
var _useLoginForm = require("../../hooks/use-login-form.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
const MfaCodeInput = ({
|
|
16
|
+
testID,
|
|
17
|
+
style
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
20
|
+
t
|
|
21
|
+
} = (0, _reactI18next.useTranslation)();
|
|
22
|
+
const theme = (0, _index.useAppTheme)();
|
|
23
|
+
const {
|
|
24
|
+
mfaCode,
|
|
25
|
+
mfaError,
|
|
26
|
+
setMfaCode,
|
|
27
|
+
verifyMfa
|
|
28
|
+
} = (0, _useLoginForm.useLoginForm)();
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
30
|
+
style: [{
|
|
31
|
+
gap: theme.spacing(1.5)
|
|
32
|
+
}, style],
|
|
33
|
+
testID: testID,
|
|
34
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativePaper.TextInput, {
|
|
35
|
+
mode: "outlined",
|
|
36
|
+
autoFocus: true,
|
|
37
|
+
autoCapitalize: "none",
|
|
38
|
+
autoCorrect: false,
|
|
39
|
+
autoComplete: "one-time-code",
|
|
40
|
+
textContentType: "oneTimeCode",
|
|
41
|
+
keyboardType: "number-pad",
|
|
42
|
+
label: t("sign-in.mfa.code"),
|
|
43
|
+
value: mfaCode,
|
|
44
|
+
onChangeText: setMfaCode,
|
|
45
|
+
onSubmitEditing: () => void verifyMfa(),
|
|
46
|
+
returnKeyType: "done",
|
|
47
|
+
maxLength: 8,
|
|
48
|
+
error: !!mfaError,
|
|
49
|
+
testID: testID ? `${testID}-input` : "sign-in-mfa-code-input"
|
|
50
|
+
}), mfaError ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativePaper.HelperText, {
|
|
51
|
+
type: "error",
|
|
52
|
+
testID: testID ? `${testID}-error` : undefined,
|
|
53
|
+
children: t(mfaError)
|
|
54
|
+
}) : null]
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
exports.MfaCodeInput = MfaCodeInput;
|
|
58
|
+
//# sourceMappingURL=mfa-code-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactI18next","_reactNative","_reactNativePaper","_index","_useLoginForm","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MfaCodeInput","testID","style","useTranslation","theme","useAppTheme","mfaCode","mfaError","setMfaCode","verifyMfa","useLoginForm","jsxs","View","gap","spacing","children","jsx","TextInput","mode","autoFocus","autoCapitalize","autoCorrect","autoComplete","textContentType","keyboardType","label","value","onChangeText","onSubmitEditing","returnKeyType","maxLength","error","HelperText","type","undefined","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/mfa-code-input.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,O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require("./inputs.js");
|
|
9
9
|
var _loginForm = require("./login-form.js");
|
|
10
10
|
var _loginFormProvider = require("./login-form-provider.js");
|
|
11
|
+
var _mfaCodeInput = require("./mfa-code-input.js");
|
|
11
12
|
var _signinButton = require("./signin-button.js");
|
|
12
13
|
var _spacing = require("./spacing.js");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -24,4 +25,5 @@ SignInWithEmail.Inputs = _inputs.Inputs;
|
|
|
24
25
|
SignInWithEmail.SigninButton = _signinButton.SigninButton;
|
|
25
26
|
SignInWithEmail.Spacing = _spacing.Spacing;
|
|
26
27
|
SignInWithEmail.ForgotPassword = _forgotPassword.ForgotPassword;
|
|
28
|
+
SignInWithEmail.MfaCode = _mfaCodeInput.MfaCodeInput;
|
|
27
29
|
//# sourceMappingURL=sign-in-with-email.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_forgotPassword","require","_inputs","_loginForm","_loginFormProvider","_signinButton","_spacing","_jsxRuntime","SignInWithEmail","props","jsx","LoginFormProvider","children","LoginForm","exports","Inputs","SigninButton","Spacing","ForgotPassword"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/sign-in-with-email.tsx"],"mappings":";;;;;;AAEA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,
|
|
1
|
+
{"version":3,"names":["_forgotPassword","require","_inputs","_loginForm","_loginFormProvider","_mfaCodeInput","_signinButton","_spacing","_jsxRuntime","SignInWithEmail","props","jsx","LoginFormProvider","children","LoginForm","exports","Inputs","SigninButton","Spacing","ForgotPassword","MfaCode","MfaCodeInput"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/sign-in-with-email.tsx"],"mappings":";;;;;;AAEA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAAoC,IAAAO,WAAA,GAAAP,OAAA;AAE7B,MAAMQ,eAAe,GAAIC,KAAqB,IAAK;EACxD,oBACE,IAAAF,WAAA,CAAAG,GAAA,EAACP,kBAAA,CAAAQ,iBAAiB;IAAA,GAAKF,KAAK;IAAAG,QAAA,eAC1B,IAAAL,WAAA,CAAAG,GAAA,EAACR,UAAA,CAAAW,SAAS;MAAA,GAAKJ;IAAK,CAAG;EAAC,CACP,CAAC;AAExB,CAAC;AAACK,OAAA,CAAAN,eAAA,GAAAA,eAAA;AAEFA,eAAe,CAACO,MAAM,GAAGA,cAAM;AAC/BP,eAAe,CAACQ,YAAY,GAAGA,0BAAY;AAC3CR,eAAe,CAACS,OAAO,GAAGA,gBAAO;AACjCT,eAAe,CAACU,cAAc,GAAGA,8BAAc;AAC/CV,eAAe,CAACW,OAAO,GAAGC,0BAAY","ignoreList":[]}
|
|
@@ -9,6 +9,7 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _reactNativePaper = require("react-native-paper");
|
|
10
10
|
var _index = require("../../../../helpers/index.js");
|
|
11
11
|
var _index2 = require("../../../../theme/index.js");
|
|
12
|
+
var _useRateLimitCooldown = require("../../../hooks/use-rate-limit-cooldown.js");
|
|
12
13
|
var _useLoginForm = require("../../hooks/use-login-form.js");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
const SigninButton = ({
|
|
@@ -24,8 +25,14 @@ const SigninButton = ({
|
|
|
24
25
|
const {
|
|
25
26
|
isSubmitting,
|
|
26
27
|
errors,
|
|
27
|
-
|
|
28
|
+
status,
|
|
29
|
+
handleSubmit,
|
|
30
|
+
mfaCode,
|
|
31
|
+
mfaError,
|
|
32
|
+
mfaStep,
|
|
33
|
+
verifyMfa
|
|
28
34
|
} = (0, _useLoginForm.useLoginForm)();
|
|
35
|
+
const rateLimitRemainingMs = (0, _useRateLimitCooldown.useRateLimitCooldown)(status?.rateLimitUntil);
|
|
29
36
|
const testID = testIDProp || "signin-button";
|
|
30
37
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
31
38
|
style: [containerStyle],
|
|
@@ -33,7 +40,8 @@ const SigninButton = ({
|
|
|
33
40
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativePaper.Button, {
|
|
34
41
|
mode: "contained",
|
|
35
42
|
...props,
|
|
36
|
-
onPress: () => handleSubmit(),
|
|
43
|
+
onPress: () => mfaStep ? void verifyMfa() : handleSubmit(),
|
|
44
|
+
disabled: props.disabled || isSubmitting || rateLimitRemainingMs > 0 || (mfaStep ? !mfaCode.trim() : false),
|
|
37
45
|
style: [styles.button, props.style],
|
|
38
46
|
loading: isSubmitting,
|
|
39
47
|
testID: `${testID}-button`,
|
|
@@ -41,15 +49,15 @@ const SigninButton = ({
|
|
|
41
49
|
style: [styles.loginText, {
|
|
42
50
|
color: theme.colors.onPrimary
|
|
43
51
|
}],
|
|
44
|
-
children: t("sign-in.button")
|
|
52
|
+
children: t(mfaStep ? "sign-in.mfa.verify" : "sign-in.button")
|
|
45
53
|
})
|
|
46
54
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Conditional, {
|
|
47
|
-
condition: !!errors.submit,
|
|
55
|
+
condition: !!(mfaStep ? mfaError : errors.submit),
|
|
48
56
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativePaper.HelperText, {
|
|
49
57
|
type: "error",
|
|
50
58
|
...helperTextProps,
|
|
51
59
|
testID: `${testID}-helper-text`,
|
|
52
|
-
children: t(errors.submit)
|
|
60
|
+
children: t(mfaStep ? mfaError : errors.submit)
|
|
53
61
|
})
|
|
54
62
|
})]
|
|
55
63
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactI18next","require","_reactNative","_reactNativePaper","_index","_index2","_useLoginForm","_jsxRuntime","SigninButton","containerStyle","helperTextProps","testID","testIDProp","props","theme","useAppTheme","t","useTranslation","isSubmitting","errors","handleSubmit","useLoginForm","jsxs","View","style","children","jsx","Button","mode","onPress","styles","button","loading","Text","loginText","color","colors","onPrimary","Conditional","condition","submit","HelperText","type","exports","StyleSheet","create","width","fontFamily","fontSize"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/signin-button.tsx"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,
|
|
1
|
+
{"version":3,"names":["_reactI18next","require","_reactNative","_reactNativePaper","_index","_index2","_useRateLimitCooldown","_useLoginForm","_jsxRuntime","SigninButton","containerStyle","helperTextProps","testID","testIDProp","props","theme","useAppTheme","t","useTranslation","isSubmitting","errors","status","handleSubmit","mfaCode","mfaError","mfaStep","verifyMfa","useLoginForm","rateLimitRemainingMs","useRateLimitCooldown","rateLimitUntil","jsxs","View","style","children","jsx","Button","mode","onPress","disabled","trim","styles","button","loading","Text","loginText","color","colors","onPrimary","Conditional","condition","submit","HelperText","type","exports","StyleSheet","create","width","fontFamily","fontSize"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/signin-button.tsx"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAA0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AA,CAAA2B,GAAA,EAAChC,iBAAA,CAAAyC,IAAI;QAACX,KAAK,EAAE,CAACQ,MAAM,CAACI,SAAS,EAAE;UAAEC,KAAK,EAAE/B,KAAK,CAACgC,MAAM,CAACC;QAAU,CAAC,CAAE;QAAAd,QAAA,EAChEjB,CAAC,CAACQ,OAAO,GAAG,oBAAoB,GAAG,gBAAgB;MAAC,CACjD;IAAC,CACD,CAAC,eAET,IAAAjB,WAAA,CAAA2B,GAAA,EAAC/B,MAAA,CAAA6C,WAAW;MAACC,SAAS,EAAE,CAAC,EAAEzB,OAAO,GAAGD,QAAQ,GAAGJ,MAAM,CAAC+B,MAAM,CAAE;MAAAjB,QAAA,eAC7D,IAAA1B,WAAA,CAAA2B,GAAA,EAAChC,iBAAA,CAAAiD,UAAU;QACTC,IAAI,EAAC,OAAO;QAAA,GACR1C,eAAe;QACnBC,MAAM,EAAE,GAAGA,MAAM,cAAe;QAAAsB,QAAA,EAE/BjB,CAAC,CAAEQ,OAAO,GAAGD,QAAQ,GAAGJ,MAAM,CAAC+B,MAAiB;MAAC,CACxC;IAAC,CACF,CAAC;EAAA,CACV,CAAC;AAEX,CAAC;AAACG,OAAA,CAAA7C,YAAA,GAAAA,YAAA;AAEF,MAAMgC,MAAM,GAAGc,uBAAU,CAACC,MAAM,CAAC;EAC/Bd,MAAM,EAAE;IACNe,KAAK,EAAE;EACT,CAAC;EACDZ,SAAS,EAAE;IACTa,UAAU,EAAE,gBAAgB;IAC5BC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["modules/auth/types/session.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.setRateLimitFormError = exports.getRateLimitDetails = exports.RATE_LIMIT_MESSAGE_KEY = exports.DEFAULT_RATE_LIMIT_RETRY_MS = void 0;
|
|
7
|
+
/* eslint-disable import/group-exports */
|
|
8
|
+
|
|
9
|
+
const RATE_LIMIT_MESSAGE_KEY = exports.RATE_LIMIT_MESSAGE_KEY = "auth.rate-limit";
|
|
10
|
+
const DEFAULT_RATE_LIMIT_RETRY_MS = exports.DEFAULT_RATE_LIMIT_RETRY_MS = 60_000;
|
|
11
|
+
/** Supports @ovok/core's typed error while remaining compatible with HTTP 429 adapters. */
|
|
12
|
+
const getRateLimitDetails = error => {
|
|
13
|
+
const candidate = error ?? {};
|
|
14
|
+
const isRateLimited = candidate.code === "rate_limit" || candidate.status === 429 || candidate.response?.status === 429;
|
|
15
|
+
if (!isRateLimited) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
const retryAfterMs = typeof candidate.retryAfterMs === "number" && candidate.retryAfterMs > 0 ? candidate.retryAfterMs : DEFAULT_RATE_LIMIT_RETRY_MS;
|
|
19
|
+
return {
|
|
20
|
+
messageKey: RATE_LIMIT_MESSAGE_KEY,
|
|
21
|
+
retryAfterMs
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
exports.getRateLimitDetails = getRateLimitDetails;
|
|
25
|
+
const setRateLimitFormError = (error, helpers) => {
|
|
26
|
+
const details = getRateLimitDetails(error);
|
|
27
|
+
if (!details) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
helpers.setStatus({
|
|
31
|
+
rateLimitUntil: Date.now() + details.retryAfterMs
|
|
32
|
+
});
|
|
33
|
+
helpers.setFieldError("submit", details.messageKey);
|
|
34
|
+
return details;
|
|
35
|
+
};
|
|
36
|
+
exports.setRateLimitFormError = setRateLimitFormError;
|
|
37
|
+
//# sourceMappingURL=rate-limit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["RATE_LIMIT_MESSAGE_KEY","exports","DEFAULT_RATE_LIMIT_RETRY_MS","getRateLimitDetails","error","candidate","isRateLimited","code","status","response","undefined","retryAfterMs","messageKey","setRateLimitFormError","helpers","details","setStatus","rateLimitUntil","Date","now","setFieldError"],"sourceRoot":"../../../../../src","sources":["modules/auth/utils/rate-limit.ts"],"mappings":";;;;;;AAAA;;AAIO,MAAMA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,iBAAiB;AAChD,MAAME,2BAA2B,GAAAD,OAAA,CAAAC,2BAAA,GAAG,MAAM;AAcjD;AACO,MAAMC,mBAAmB,GAAIC,KAAc,IAAmC;EACnF,MAAMC,SAAS,GAAID,KAAK,IAAI,CAAC,CAAoB;EAEjD,MAAME,aAAa,GACjBD,SAAS,CAACE,IAAI,KAAK,YAAY,IAC/BF,SAAS,CAACG,MAAM,KAAK,GAAG,IACxBH,SAAS,CAACI,QAAQ,EAAED,MAAM,KAAK,GAAG;EAEpC,IAAI,CAACF,aAAa,EAAE;IAClB,OAAOI,SAAS;EAClB;EAEA,MAAMC,YAAY,GAChB,OAAON,SAAS,CAACM,YAAY,KAAK,QAAQ,IAAIN,SAAS,CAACM,YAAY,GAAG,CAAC,GACpEN,SAAS,CAACM,YAAY,GACtBT,2BAA2B;EAEjC,OAAO;IAAEU,UAAU,EAAEZ,sBAAsB;IAAEW;EAAa,CAAC;AAC7D,CAAC;AAACV,OAAA,CAAAE,mBAAA,GAAAA,mBAAA;AAEK,MAAMU,qBAAqB,GAAGA,CACnCT,KAAc,EACdU,OAAyB,KACQ;EACjC,MAAMC,OAAO,GAAGZ,mBAAmB,CAACC,KAAK,CAAC;EAE1C,IAAI,CAACW,OAAO,EAAE;IACZ,OAAOL,SAAS;EAClB;EAEAI,OAAO,CAACE,SAAS,CAAC;IAAEC,cAAc,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGJ,OAAO,CAACJ;EAAa,CAAC,CAAC;EACxEG,OAAO,CAACM,aAAa,CAAC,QAAQ,EAAEL,OAAO,CAACH,UAAU,CAAC;EAEnD,OAAOG,OAAO;AAChB,CAAC;AAACd,OAAA,CAAAY,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.AndroidBluetoothForegroundService = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
+
var _bluetoothError = require("../bt-management/types/bluetooth-error.js");
|
|
9
10
|
var _androidBackgroundSync = require("./android-background-sync.js");
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -37,13 +38,13 @@ const AndroidBluetoothForegroundService = ({
|
|
|
37
38
|
};
|
|
38
39
|
void start().catch(error => {
|
|
39
40
|
onError?.({
|
|
40
|
-
error:
|
|
41
|
+
error: (0, _bluetoothError.toBluetoothError)(error)
|
|
41
42
|
});
|
|
42
43
|
});
|
|
43
44
|
return () => {
|
|
44
45
|
void (0, _androidBackgroundSync.stopAndroidBluetoothForegroundService)().catch(error => {
|
|
45
46
|
onError?.({
|
|
46
|
-
error:
|
|
47
|
+
error: (0, _bluetoothError.toBluetoothError)(error)
|
|
47
48
|
});
|
|
48
49
|
});
|
|
49
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_androidBackgroundSync","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AndroidBluetoothForegroundService","enabled","children","options","onError","notificationBody","notificationTitle","requestBatteryOptimizationExemption","useEffect","Platform","OS","start","requestAndroidBatteryOptimizationExemption","startAndroidBluetoothForegroundService","undefined","catch","error","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_bluetoothError","_androidBackgroundSync","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AndroidBluetoothForegroundService","enabled","children","options","onError","notificationBody","notificationTitle","requestBatteryOptimizationExemption","useEffect","Platform","OS","start","requestAndroidBatteryOptimizationExemption","startAndroidBluetoothForegroundService","undefined","catch","error","toBluetoothError","stopAndroidBluetoothForegroundService","jsx","Fragment","exports"],"sourceRoot":"../../../../src","sources":["modules/background-sync/android-bluetooth-foreground-service.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,eAAA,GAAAF,OAAA;AAEA,IAAAG,sBAAA,GAAAH,OAAA;AAKmC,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,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ClE,CAAC,CAAC;IACJ,CAAC;IAED,KAAKK,KAAK,CAAC,CAAC,CAACI,KAAK,CAAEC,KAAc,IAAK;MACnCZ,OAAO,GAAG;QAAEY,KAAK,EAAE,IAAAC,gCAAgB,EAACD,KAAK;MAAE,CAAC,CAAC;IAC/C,CAAC,CAAC;IAEJ,OAAO,MAAM;MACX,KAAK,IAAAE,4DAAqC,EAAC,CAAC,CAACH,KAAK,CAAEC,KAAc,IAAK;QACrEZ,OAAO,GAAG;UAAEY,KAAK,EAAE,IAAAC,gCAAgB,EAACD,KAAK;QAAE,CAAC,CAAC;MAC/C,CAAC,CAAC;IACJ,CAAC;EACH,CAAC,EAAE,CACDf,OAAO,EACPI,gBAAgB,EAChBC,iBAAiB,EACjBF,OAAO,EACPG,mCAAmC,CACpC,CAAC;EAEF,oBAAO,IAAA3B,WAAA,CAAAuC,GAAA,EAAAvC,WAAA,CAAAwC,QAAA;IAAAlB,QAAA,EAAGA;EAAQ,CAAG,CAAC;AACxB,CAAC;AAACmB,OAAA,CAAArB,iCAAA,GAAAA,iCAAA","ignoreList":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createBackgroundSafeClientStorage = void 0;
|
|
7
|
+
/* eslint-disable import/group-exports */
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A small storage adapter for values needed by a background relaunch.
|
|
11
|
+
*
|
|
12
|
+
* The SDK deliberately does not own authentication or choose an app key. The host
|
|
13
|
+
* supplies a SecureStore-compatible implementation and may use this adapter for a
|
|
14
|
+
* session token, refresh token, or any other background-safe value.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** Creates a storage adapter without importing expo-secure-store at module load time. */
|
|
18
|
+
const createBackgroundSafeClientStorage = ({
|
|
19
|
+
secureStore,
|
|
20
|
+
keyListKey = "@ovok/native/background-safe/keys",
|
|
21
|
+
keychainService,
|
|
22
|
+
keychainAccessible = 0
|
|
23
|
+
}) => {
|
|
24
|
+
let knownKeys = new Set();
|
|
25
|
+
const secureOptions = {
|
|
26
|
+
keychainAccessible,
|
|
27
|
+
...(keychainService ? {
|
|
28
|
+
keychainService
|
|
29
|
+
} : {})
|
|
30
|
+
};
|
|
31
|
+
const reload = async () => {
|
|
32
|
+
try {
|
|
33
|
+
const encoded = await secureStore.getItemAsync(keyListKey, secureOptions);
|
|
34
|
+
const parsed = encoded ? JSON.parse(encoded) : [];
|
|
35
|
+
knownKeys = new Set(Array.isArray(parsed) ? parsed.filter(key => typeof key === "string") : []);
|
|
36
|
+
} catch {
|
|
37
|
+
// A protected keychain can reject reads before first unlock. Keep the prior
|
|
38
|
+
// index and allow the caller to retry once the OS makes it available.
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const persistKeyIndex = async () => {
|
|
42
|
+
await secureStore.setItemAsync(keyListKey, JSON.stringify([...knownKeys]), secureOptions);
|
|
43
|
+
};
|
|
44
|
+
return {
|
|
45
|
+
getItem: async key => {
|
|
46
|
+
try {
|
|
47
|
+
return await secureStore.getItemAsync(key, secureOptions);
|
|
48
|
+
} catch {
|
|
49
|
+
// Never delete a value because a protected read failed.
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
setItem: async (key, value) => {
|
|
54
|
+
await secureStore.setItemAsync(key, value, secureOptions);
|
|
55
|
+
knownKeys.add(key);
|
|
56
|
+
await persistKeyIndex();
|
|
57
|
+
},
|
|
58
|
+
removeItem: async key => {
|
|
59
|
+
if (secureStore.deleteItemAsync) {
|
|
60
|
+
await secureStore.deleteItemAsync(key, secureOptions);
|
|
61
|
+
}
|
|
62
|
+
knownKeys.delete(key);
|
|
63
|
+
await persistKeyIndex();
|
|
64
|
+
},
|
|
65
|
+
clear: async () => {
|
|
66
|
+
if (secureStore.deleteItemAsync) {
|
|
67
|
+
await Promise.all([...knownKeys].map(key => secureStore.deleteItemAsync?.(key, secureOptions)));
|
|
68
|
+
}
|
|
69
|
+
knownKeys.clear();
|
|
70
|
+
await persistKeyIndex();
|
|
71
|
+
},
|
|
72
|
+
reload
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
exports.createBackgroundSafeClientStorage = createBackgroundSafeClientStorage;
|
|
76
|
+
//# sourceMappingURL=background-safe-storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createBackgroundSafeClientStorage","secureStore","keyListKey","keychainService","keychainAccessible","knownKeys","Set","secureOptions","reload","encoded","getItemAsync","parsed","JSON","parse","Array","isArray","filter","key","persistKeyIndex","setItemAsync","stringify","getItem","setItem","value","add","removeItem","deleteItemAsync","delete","clear","Promise","all","map","exports"],"sourceRoot":"../../../../src","sources":["modules/background-sync/background-safe-storage.ts"],"mappings":";;;;;;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgCA;AACO,MAAMA,iCAAiC,GAAGA,CAAC;EAChDC,WAAW;EACXC,UAAU,GAAG,mCAAmC;EAChDC,eAAe;EACfC,kBAAkB,GAAG;AACO,CAAC,KAAkC;EAC/D,IAAIC,SAAS,GAAG,IAAIC,GAAG,CAAS,CAAC;EAEjC,MAAMC,aAAa,GAAG;IACpBH,kBAAkB;IAClB,IAAID,eAAe,GAAG;MAAEA;IAAgB,CAAC,GAAG,CAAC,CAAC;EAChD,CAAC;EAED,MAAMK,MAAM,GAAG,MAAAA,CAAA,KAA2B;IACxC,IAAI;MACF,MAAMC,OAAO,GAAG,MAAMR,WAAW,CAACS,YAAY,CAACR,UAAU,EAAEK,aAAa,CAAC;MACzE,MAAMI,MAAe,GAAGF,OAAO,GAAGG,IAAI,CAACC,KAAK,CAACJ,OAAO,CAAC,GAAG,EAAE;MAE1DJ,SAAS,GAAG,IAAIC,GAAG,CACjBQ,KAAK,CAACC,OAAO,CAACJ,MAAM,CAAC,GACjBA,MAAM,CAACK,MAAM,CAAEC,GA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AC;MACjB,MAAMV,eAAe,CAAC,CAAC;IACzB,CAAC;IACDV;EACF,CAAC;AACH,CAAC;AAACwB,OAAA,CAAAhC,iCAAA,GAAAA,iCAAA","ignoreList":[]}
|
|
@@ -36,4 +36,15 @@ Object.keys(_notifications).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
+
var _backgroundSafeStorage = require("./background-safe-storage.js");
|
|
40
|
+
Object.keys(_backgroundSafeStorage).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _backgroundSafeStorage[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _backgroundSafeStorage[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
39
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_androidBackgroundSync","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_androidBluetoothForegroundService","_notifications"],"sourceRoot":"../../../../src","sources":["modules/background-sync/index.ts"],"mappings":";;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,sBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,sBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,sBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,kCAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,kCAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,kCAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,kCAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,cAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,cAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,cAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,cAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_androidBackgroundSync","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_androidBluetoothForegroundService","_notifications","_backgroundSafeStorage"],"sourceRoot":"../../../../src","sources":["modules/background-sync/index.ts"],"mappings":";;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,sBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,sBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,sBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,kCAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,kCAAA,EAAAN,O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