@ovok/native 1.5.6 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -17
- package/app.plugin.js +104 -0
- package/lib/commonjs/index.js +11 -0
- 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 +91 -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 +3 -1
- package/lib/commonjs/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/inputs.js +48 -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 +25 -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 +79 -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-management/components/bt-provider-child-wrapper.js +123 -21
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js +91 -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 +47 -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 +36 -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 +46 -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 +57 -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 +26 -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 +49 -0
- package/lib/commonjs/modules/bt-management/hooks/use-paired-devices.js.map +1 -0
- package/lib/commonjs/modules/bt-management/index.js +143 -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 -4
- 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 +75 -4
- 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 +57 -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 +111 -3
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.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/testing/fake-ble-manager.js +52 -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 +80 -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 +8 -2
- 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 +23 -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/retry-save.js +65 -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 +12 -0
- 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 +28 -17
- package/lib/commonjs/modules/helpers/utils/sentry-logger.js.map +1 -1
- package/lib/commonjs/modules/helpers/utils/telemetry.js +143 -0
- package/lib/commonjs/modules/helpers/utils/telemetry.js.map +1 -0
- package/lib/commonjs/modules/image/components/optimized-image.js +24 -2
- 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 +42 -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/ui/components/background-sync-setting.js +113 -0
- package/lib/commonjs/modules/ui/components/background-sync-setting.js.map +1 -0
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js +105 -0
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js.map +1 -0
- package/lib/commonjs/modules/ui/components/ecg-strip-viewer.js +165 -0
- package/lib/commonjs/modules/ui/components/ecg-strip-viewer.js.map +1 -0
- package/lib/commonjs/modules/ui/components/health-import-card.js +130 -0
- package/lib/commonjs/modules/ui/components/health-import-card.js.map +1 -0
- package/lib/commonjs/modules/ui/components/manual-entry-form.js +123 -0
- package/lib/commonjs/modules/ui/components/manual-entry-form.js.map +1 -0
- package/lib/commonjs/modules/ui/components/pairing-flow.js +222 -0
- package/lib/commonjs/modules/ui/components/pairing-flow.js.map +1 -0
- package/lib/commonjs/modules/ui/components/supported-devices-catalog-list.js +99 -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 +94 -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 +1 -0
- 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 +85 -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 +3 -1
- package/lib/module/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/inputs.js +48 -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 +25 -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 +74 -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-management/components/bt-provider-child-wrapper.js +123 -21
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js +82 -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 +41 -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 +30 -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 +40 -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 +51 -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 +20 -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 +43 -0
- package/lib/module/modules/bt-management/hooks/use-paired-devices.js.map +1 -0
- package/lib/module/modules/bt-management/index.js +13 -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 -4
- 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 +75 -4
- 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 +57 -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 +111 -3
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.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/testing/fake-ble-manager.js +48 -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 +74 -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 +8 -2
- 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 +23 -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/retry-save.js +60 -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 +1 -0
- 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 +26 -14
- package/lib/module/modules/helpers/utils/sentry-logger.js.map +1 -1
- package/lib/module/modules/helpers/utils/telemetry.js +131 -0
- package/lib/module/modules/helpers/utils/telemetry.js.map +1 -0
- package/lib/module/modules/image/components/optimized-image.js +25 -3
- 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 +42 -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/ui/components/background-sync-setting.js +107 -0
- package/lib/module/modules/ui/components/background-sync-setting.js.map +1 -0
- package/lib/module/modules/ui/components/bluetooth-state-notice.js +99 -0
- package/lib/module/modules/ui/components/bluetooth-state-notice.js.map +1 -0
- package/lib/module/modules/ui/components/ecg-strip-viewer.js +159 -0
- package/lib/module/modules/ui/components/ecg-strip-viewer.js.map +1 -0
- package/lib/module/modules/ui/components/health-import-card.js +124 -0
- package/lib/module/modules/ui/components/health-import-card.js.map +1 -0
- package/lib/module/modules/ui/components/manual-entry-form.js +117 -0
- package/lib/module/modules/ui/components/manual-entry-form.js.map +1 -0
- package/lib/module/modules/ui/components/pairing-flow.js +216 -0
- package/lib/module/modules/ui/components/pairing-flow.js.map +1 -0
- package/lib/module/modules/ui/components/supported-devices-catalog-list.js +93 -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 +89 -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 +1 -0
- 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 +13 -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 +29 -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-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts +46 -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/index.d.ts +13 -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 +9 -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/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/testing/fake-ble-manager.d.ts +16 -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/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/retry-save.d.ts +5 -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 +1 -0
- 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 +68 -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/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 +20 -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 +1 -0
- 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 +13 -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 +29 -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-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts +46 -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/index.d.ts +13 -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 +9 -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/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/testing/fake-ble-manager.d.ts +16 -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/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/retry-save.d.ts +5 -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 +1 -0
- 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 +68 -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/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 +20 -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 +145 -6
|
@@ -4,6 +4,7 @@ import { ForgotPassword } from "./forgot-password.js";
|
|
|
4
4
|
import { Inputs } from "./inputs.js";
|
|
5
5
|
import { LoginForm } from "./login-form.js";
|
|
6
6
|
import { LoginFormProvider } from "./login-form-provider.js";
|
|
7
|
+
import { MfaCodeInput } from "./mfa-code-input.js";
|
|
7
8
|
import { SigninButton } from "./signin-button.js";
|
|
8
9
|
import { Spacing } from "./spacing.js";
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -19,4 +20,5 @@ SignInWithEmail.Inputs = Inputs;
|
|
|
19
20
|
SignInWithEmail.SigninButton = SigninButton;
|
|
20
21
|
SignInWithEmail.Spacing = Spacing;
|
|
21
22
|
SignInWithEmail.ForgotPassword = ForgotPassword;
|
|
23
|
+
SignInWithEmail.MfaCode = MfaCodeInput;
|
|
22
24
|
//# sourceMappingURL=sign-in-with-email.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ForgotPassword","Inputs","LoginForm","LoginFormProvider","SigninButton","Spacing","jsx","_jsx","SignInWithEmail","props","children"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/sign-in-with-email.tsx"],"mappings":";;AAEA,SAASA,cAAc,QAAQ,sBAAmB;AAClD,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,SAAS,QAAQ,iBAAc;AACxC,SAASC,iBAAiB,QAAQ,0BAAuB;AACzD,SAASC,YAAY,QAAQ,oBAAiB;AAC9C,SAASC,OAAO,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpC,OAAO,MAAMC,eAAe,GAAIC,KAAqB,IAAK;EACxD,oBACEF,IAAA,
|
|
1
|
+
{"version":3,"names":["ForgotPassword","Inputs","LoginForm","LoginFormProvider","MfaCodeInput","SigninButton","Spacing","jsx","_jsx","SignInWithEmail","props","children","MfaCode"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/sign-in-with-email.tsx"],"mappings":";;AAEA,SAASA,cAAc,QAAQ,sBAAmB;AAClD,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,SAAS,QAAQ,iBAAc;AACxC,SAASC,iBAAiB,QAAQ,0BAAuB;AACzD,SAASC,YAAY,QAAQ,qBAAkB;AAC/C,SAASC,YAAY,QAAQ,oBAAiB;AAC9C,SAASC,OAAO,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpC,OAAO,MAAMC,eAAe,GAAIC,KAAqB,IAAK;EACxD,oBACEF,IAAA,CAACL,iBAAiB;IAAA,GAAKO,KAAK;IAAAC,QAAA,eAC1BH,IAAA,CAACN,SAAS;MAAA,GAAKQ;IAAK,CAAG;EAAC,CACP,CAAC;AAExB,CAAC;AAEDD,eAAe,CAACR,MAAM,GAAGA,MAAM;AAC/BQ,eAAe,CAACJ,YAAY,GAAGA,YAAY;AAC3CI,eAAe,CAACH,OAAO,GAAGA,OAAO;AACjCG,eAAe,CAACT,cAAc,GAAGA,cAAc;AAC/CS,eAAe,CAACG,OAAO,GAAGR,YAAY","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ import { StyleSheet, View } from "react-native";
|
|
|
5
5
|
import { HelperText, Button, Text } from "react-native-paper";
|
|
6
6
|
import { Conditional } from "../../../../helpers/index.js";
|
|
7
7
|
import { useAppTheme } from "../../../../theme/index.js";
|
|
8
|
+
import { useRateLimitCooldown } from "../../../hooks/use-rate-limit-cooldown.js";
|
|
8
9
|
import { useLoginForm } from "../../hooks/use-login-form.js";
|
|
9
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
export const SigninButton = ({
|
|
@@ -20,8 +21,14 @@ export const SigninButton = ({
|
|
|
20
21
|
const {
|
|
21
22
|
isSubmitting,
|
|
22
23
|
errors,
|
|
23
|
-
|
|
24
|
+
status,
|
|
25
|
+
handleSubmit,
|
|
26
|
+
mfaCode,
|
|
27
|
+
mfaError,
|
|
28
|
+
mfaStep,
|
|
29
|
+
verifyMfa
|
|
24
30
|
} = useLoginForm();
|
|
31
|
+
const rateLimitRemainingMs = useRateLimitCooldown(status?.rateLimitUntil);
|
|
25
32
|
const testID = testIDProp || "signin-button";
|
|
26
33
|
return /*#__PURE__*/_jsxs(View, {
|
|
27
34
|
style: [containerStyle],
|
|
@@ -29,7 +36,8 @@ export const SigninButton = ({
|
|
|
29
36
|
children: [/*#__PURE__*/_jsx(Button, {
|
|
30
37
|
mode: "contained",
|
|
31
38
|
...props,
|
|
32
|
-
onPress: () => handleSubmit(),
|
|
39
|
+
onPress: () => mfaStep ? void verifyMfa() : handleSubmit(),
|
|
40
|
+
disabled: props.disabled || isSubmitting || rateLimitRemainingMs > 0 || (mfaStep ? !mfaCode.trim() : false),
|
|
33
41
|
style: [styles.button, props.style],
|
|
34
42
|
loading: isSubmitting,
|
|
35
43
|
testID: `${testID}-button`,
|
|
@@ -37,15 +45,15 @@ export const SigninButton = ({
|
|
|
37
45
|
style: [styles.loginText, {
|
|
38
46
|
color: theme.colors.onPrimary
|
|
39
47
|
}],
|
|
40
|
-
children: t("sign-in.button")
|
|
48
|
+
children: t(mfaStep ? "sign-in.mfa.verify" : "sign-in.button")
|
|
41
49
|
})
|
|
42
50
|
}), /*#__PURE__*/_jsx(Conditional, {
|
|
43
|
-
condition: !!errors.submit,
|
|
51
|
+
condition: !!(mfaStep ? mfaError : errors.submit),
|
|
44
52
|
children: /*#__PURE__*/_jsx(HelperText, {
|
|
45
53
|
type: "error",
|
|
46
54
|
...helperTextProps,
|
|
47
55
|
testID: `${testID}-helper-text`,
|
|
48
|
-
children: t(errors.submit)
|
|
56
|
+
children: t(mfaStep ? mfaError : errors.submit)
|
|
49
57
|
})
|
|
50
58
|
})]
|
|
51
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTranslation","StyleSheet","View","HelperText","Button","Text","Conditional","useAppTheme","useLoginForm","jsx","_jsx","jsxs","_jsxs","SigninButton","containerStyle","helperTextProps","testID","testIDProp","props","theme","t","isSubmitting","errors","handleSubmit","style","children","mode","onPress","styles","button","loading","loginText","color","colors","onPrimary","condition","submit","type","create","width","fontFamily","fontSize"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/sign-in/components/form/signin-button.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,UAAU,EAAEC,MAAM,EAAEC,IAAI,QAAQ,oBAAoB;AAE7D,SAASC,WAAW,QAAQ,8BAAqB;AACjD,SAASC,WAAW,QAAQ,4BAAmB;AAC/C,SAASC,YAAY,QAAQ,+BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAG1D,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC3BC,cAAc;EACdC,eAAe;EACfC,MAAM,EAAEC,UAAU;EAClB,GAAGC;AACc,CAAC,KAAK;EACvB,MAAMC,KAAK,
|
|
1
|
+
{"version":3,"names":["useTranslation","StyleSheet","View","HelperText","Button","Text","Conditional","useAppTheme","useRateLimitCooldown","useLoginForm","jsx","_jsx","jsxs","_jsxs","SigninButton","containerStyle","helperTextProps","testID","testIDProp","props","theme","t","isSubmitting","errors","status","handleSubmit","mfaCode","mfaError","mfaStep","verifyMfa","rateLimitRemainingMs","rateLimitUntil","style","children","mode","onPress","disabled","trim","styles","button","loading","loginText","color","colors","onPrimary","condition","submit","type","create","width","fontFamily","fontSize"],"sourceRoot":"../../../../../../../src","sources":["modules/auth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C,KACvBF,OAAO,GAAG,CAACF,OAAO,CAACW,IAAI,CAAC,CAAC,GAAG,KAAK,CACnC;MACDL,KAAK,EAAE,CAACM,MAAM,CAACC,MAAM,EAAEpB,KAAK,CAACa,KAAK,CAAE;MACpCQ,OAAO,EAAElB,YAAa;MACtBL,MAAM,EAAE,GAAGA,MAAM,SAAU;MAAAgB,QAAA,eAE3BtB,IAAA,CAACN,IAAI;QAAC2B,KAAK,EAAE,CAACM,MAAM,CAACG,SAAS,EAAE;UAAEC,KAAK,EAAEtB,KAAK,CAACuB,MAAM,CAACC;QAAU,CAAC,CAAE;QAAAX,QAAA,EAChEZ,CAAC,CAACO,OAAO,GAAG,oBAAoB,GAAG,gBAAgB;MAAC,CACjD;IAAC,CACD,CAAC,eAETjB,IAAA,CAACL,WAAW;MAACuC,SAAS,EAAE,CAAC,EAAEjB,OAAO,GAAGD,QAAQ,GAAGJ,MAAM,CAACuB,MAAM,CAAE;MAAAb,QAAA,eAC7DtB,IAAA,CAACR,UAAU;QACT4C,IAAI,EAAC,OAAO;QAAA,GACR/B,eAAe;QACnBC,MAAM,EAAE,GAAGA,MAAM,cAAe;QAAAgB,QAAA,EAE/BZ,CAAC,CAAEO,OAAO,GAAGD,QAAQ,GAAGJ,MAAM,CAACuB,MAAiB;MAAC,CACxC;IAAC,CACF,CAAC;EAAA,CACV,CAAC;AAEX,CAAC;AAED,MAAMR,MAAM,GAAGrC,UAAU,CAAC+C,MAAM,CAAC;EAC/BT,MAAM,EAAE;IACNU,KAAK,EAAE;EACT,CAAC;EACDR,SAAS,EAAE;IACTS,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,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable import/group-exports */
|
|
4
|
+
|
|
5
|
+
export const RATE_LIMIT_MESSAGE_KEY = "auth.rate-limit";
|
|
6
|
+
export const DEFAULT_RATE_LIMIT_RETRY_MS = 60_000;
|
|
7
|
+
/** Supports @ovok/core's typed error while remaining compatible with HTTP 429 adapters. */
|
|
8
|
+
export const getRateLimitDetails = error => {
|
|
9
|
+
const candidate = error ?? {};
|
|
10
|
+
const isRateLimited = candidate.code === "rate_limit" || candidate.status === 429 || candidate.response?.status === 429;
|
|
11
|
+
if (!isRateLimited) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
const retryAfterMs = typeof candidate.retryAfterMs === "number" && candidate.retryAfterMs > 0 ? candidate.retryAfterMs : DEFAULT_RATE_LIMIT_RETRY_MS;
|
|
15
|
+
return {
|
|
16
|
+
messageKey: RATE_LIMIT_MESSAGE_KEY,
|
|
17
|
+
retryAfterMs
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export const setRateLimitFormError = (error, helpers) => {
|
|
21
|
+
const details = getRateLimitDetails(error);
|
|
22
|
+
if (!details) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
helpers.setStatus({
|
|
26
|
+
rateLimitUntil: Date.now() + details.retryAfterMs
|
|
27
|
+
});
|
|
28
|
+
helpers.setFieldError("submit", details.messageKey);
|
|
29
|
+
return details;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=rate-limit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["RATE_LIMIT_MESSAGE_KEY","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;;AAIA,OAAO,MAAMA,sBAAsB,GAAG,iBAAiB;AACvD,OAAO,MAAMC,2BAA2B,GAAG,MAAM;AAcjD;AACA,OAAO,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,EAAEX,sBAAsB;IAAEU;EAAa,CAAC;AAC7D,CAAC;AAED,OAAO,MAAME,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","ignoreList":[]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Platform } from "react-native";
|
|
5
|
+
import { toBluetoothError } from "../bt-management/types/bluetooth-error.js";
|
|
5
6
|
import { startAndroidBluetoothForegroundService, requestAndroidBatteryOptimizationExemption, stopAndroidBluetoothForegroundService } from "./android-background-sync.js";
|
|
6
7
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
const AndroidBluetoothForegroundService = ({
|
|
@@ -32,13 +33,13 @@ const AndroidBluetoothForegroundService = ({
|
|
|
32
33
|
};
|
|
33
34
|
void start().catch(error => {
|
|
34
35
|
onError?.({
|
|
35
|
-
error:
|
|
36
|
+
error: toBluetoothError(error)
|
|
36
37
|
});
|
|
37
38
|
});
|
|
38
39
|
return () => {
|
|
39
40
|
void stopAndroidBluetoothForegroundService().catch(error => {
|
|
40
41
|
onError?.({
|
|
41
|
-
error:
|
|
42
|
+
error: toBluetoothError(error)
|
|
42
43
|
});
|
|
43
44
|
});
|
|
44
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","startAndroidBluetoothForegroundService","requestAndroidBatteryOptimizationExemption","stopAndroidBluetoothForegroundService","Fragment","_Fragment","jsx","_jsx","AndroidBluetoothForegroundService","enabled","children","options","onError","notificationBody","notificationTitle","requestBatteryOptimizationExemption","useEffect","OS","start","undefined","catch","error"
|
|
1
|
+
{"version":3,"names":["React","Platform","toBluetoothError","startAndroidBluetoothForegroundService","requestAndroidBatteryOptimizationExemption","stopAndroidBluetoothForegroundService","Fragment","_Fragment","jsx","_jsx","AndroidBluetoothForegroundService","enabled","children","options","onError","notificationBody","notificationTitle","requestBatteryOptimizationExemption","useEffect","OS","start","undefined","catch","error"],"sourceRoot":"../../../../src","sources":["modules/background-sync/android-bluetooth-foreground-service.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,cAAc;AAIvC,SAASC,gBAAgB,QAAQ,2CAAwC;AAEzE,SACEC,sCAAsC,EACtCC,0CAA0C,EAC1CC,qCAAqC,QAEhC,8BAA2B;AAAC,SAAAC,QAAA,IAAAC,SAAA,EAAAC,GAAA,IAAAC,IAAA;AASnC,MAAMC,iCAAiC,GAAGA,CAAC;EACzCC,OAAO;EACPC,QAAQ;EACRC,OAAO;EACPC;AACsC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
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable import/group-exports */
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A small storage adapter for values needed by a background relaunch.
|
|
7
|
+
*
|
|
8
|
+
* The SDK deliberately does not own authentication or choose an app key. The host
|
|
9
|
+
* supplies a SecureStore-compatible implementation and may use this adapter for a
|
|
10
|
+
* session token, refresh token, or any other background-safe value.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const defaultOptions = {
|
|
14
|
+
keychainAccessible: "AFTER_FIRST_UNLOCK"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** Creates a storage adapter without importing expo-secure-store at module load time. */
|
|
18
|
+
export const createBackgroundSafeClientStorage = ({
|
|
19
|
+
secureStore,
|
|
20
|
+
keyListKey = "@ovok/native/background-safe/keys",
|
|
21
|
+
keychainService
|
|
22
|
+
}) => {
|
|
23
|
+
let knownKeys = new Set();
|
|
24
|
+
const secureOptions = {
|
|
25
|
+
...defaultOptions,
|
|
26
|
+
...(keychainService ? {
|
|
27
|
+
keychainService
|
|
28
|
+
} : {})
|
|
29
|
+
};
|
|
30
|
+
const reload = async () => {
|
|
31
|
+
try {
|
|
32
|
+
const encoded = await secureStore.getItemAsync(keyListKey, secureOptions);
|
|
33
|
+
const parsed = encoded ? JSON.parse(encoded) : [];
|
|
34
|
+
knownKeys = new Set(Array.isArray(parsed) ? parsed.filter(key => typeof key === "string") : []);
|
|
35
|
+
} catch {
|
|
36
|
+
// A protected keychain can reject reads before first unlock. Keep the prior
|
|
37
|
+
// index and allow the caller to retry once the OS makes it available.
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const persistKeyIndex = async () => {
|
|
41
|
+
await secureStore.setItemAsync(keyListKey, JSON.stringify([...knownKeys]), secureOptions);
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
getItem: async key => {
|
|
45
|
+
try {
|
|
46
|
+
return await secureStore.getItemAsync(key, secureOptions);
|
|
47
|
+
} catch {
|
|
48
|
+
// Never delete a value because a protected read failed.
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
setItem: async (key, value) => {
|
|
53
|
+
await secureStore.setItemAsync(key, value, secureOptions);
|
|
54
|
+
knownKeys.add(key);
|
|
55
|
+
await persistKeyIndex();
|
|
56
|
+
},
|
|
57
|
+
removeItem: async key => {
|
|
58
|
+
if (secureStore.deleteItemAsync) {
|
|
59
|
+
await secureStore.deleteItemAsync(key, secureOptions);
|
|
60
|
+
}
|
|
61
|
+
knownKeys.delete(key);
|
|
62
|
+
await persistKeyIndex();
|
|
63
|
+
},
|
|
64
|
+
clear: async () => {
|
|
65
|
+
if (secureStore.deleteItemAsync) {
|
|
66
|
+
await Promise.all([...knownKeys].map(key => secureStore.deleteItemAsync?.(key, secureOptions)));
|
|
67
|
+
}
|
|
68
|
+
knownKeys.clear();
|
|
69
|
+
await persistKeyIndex();
|
|
70
|
+
},
|
|
71
|
+
reload
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=background-safe-storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defaultOptions","keychainAccessible","createBackgroundSafeClientStorage","secureStore","keyListKey","keychainService","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"],"sourceRoot":"../../../../src","sources":["modules/background-sync/background-safe-storage.ts"],"mappings":";;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AA6BA,MAAMA,cAAc,GAAG;EACrBC,kBAAkB,EAAE;AACtB,CAAU;;AAEV;AACA,OAAO,MAAMC,iCAAiC,GAAGA,CAAC;EAChDC,WAAW;EACXC,UAAU,GAAG,mCAAmC;EAChDC;AAC4B,CAAC,KAAkC;EAC/D,IAAIC,SAAS,GAAG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R,GAAG,IAAK;MACzB,IAAIf,WAAW,CAACwB,eAAe,EAAE;QAC/B,MAAMxB,WAAW,CAACwB,eAAe,CAACT,GAAG,EAAEV,aAAa,CAAC;MACvD;MACAF,SAAS,CAACsB,MAAM,CAACV,GAAG,CAAC;MACrB,MAAMC,eAAe,CAAC,CAAC;IACzB,CAAC;IACDU,KAAK,EAAE,MAAAA,CAAA,KAAY;MACjB,IAAI1B,WAAW,CAACwB,eAAe,EAAE;QAC/B,MAAMG,OAAO,CAACC,GAAG,CACf,CAAC,GAAGzB,SAAS,CAAC,CAAC0B,GAAG,CAAEd,GAAG,IACrBf,WAAW,CAACwB,eAAe,GAAGT,GAAG,EAAEV,aAAa,CAClD,CACF,CAAC;MACH;MACAF,SAAS,CAACuB,KAAK,CAAC,CAAC;MACjB,MAAMV,eAAe,CAAC,CAAC;IACzB,CAAC;IACDV;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/background-sync/index.ts"],"mappings":";;AAAA,cAAc,8BAA2B;AACzC,cAAc,2CAAwC;AACtD,cAAc,oBAAiB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/background-sync/index.ts"],"mappings":";;AAAA,cAAc,8BAA2B;AACzC,cAAc,2CAAwC;AACtD,cAAc,oBAAiB;AAC/B,cAAc,8BAA2B","ignoreList":[]}
|
|
@@ -6,10 +6,12 @@ import { AppState } from "react-native";
|
|
|
6
6
|
import { AndroidBluetoothForegroundService, showPushNotification } from "../../background-sync/index.js";
|
|
7
7
|
import { useDeviceList } from "../../bt-device/components/hooks/use-device-list.js";
|
|
8
8
|
import { sentryLogger } from "../../helpers/utils/sentry-logger.js";
|
|
9
|
+
import { BluetoothRuntimeProvider, createBluetoothRuntime } from "../hooks/runtime-context.js";
|
|
9
10
|
import { getRestoredBleState } from "../services/background-sync/background-ble-manager.js";
|
|
10
11
|
import { getBackgroundServiceUUIDs } from "../services/background-sync/background-service-uuids.js";
|
|
11
12
|
import { BackgroundSyncCoordinator } from "../services/background-sync/background-sync-coordinator.js";
|
|
12
13
|
import { BTManager } from "../services/bt-manager.js";
|
|
14
|
+
import { toBluetoothError } from "../types/bluetooth-error.js";
|
|
13
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
16
|
export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
15
17
|
bleManager,
|
|
@@ -20,10 +22,13 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
20
22
|
onDeviceFound,
|
|
21
23
|
onError,
|
|
22
24
|
onDeviceStatusChanged,
|
|
25
|
+
onConnectionEvent,
|
|
23
26
|
onResult,
|
|
27
|
+
resultPolicies,
|
|
24
28
|
backgroundSync
|
|
25
29
|
}) => {
|
|
26
30
|
const btManagerRef = React.useRef(null);
|
|
31
|
+
const runtimeRef = React.useRef(createBluetoothRuntime(bleManager));
|
|
27
32
|
const backgroundSyncRef = React.useRef(backgroundSync);
|
|
28
33
|
const backgroundSyncCoordinatorRef = React.useRef(null);
|
|
29
34
|
const {
|
|
@@ -34,6 +39,7 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
34
39
|
if (!acceptedDevices.length) {
|
|
35
40
|
return;
|
|
36
41
|
}
|
|
42
|
+
const runtime = runtimeRef.current;
|
|
37
43
|
sentryLogger("info", "Creating BTManager");
|
|
38
44
|
const currentBackgroundSync = backgroundSyncRef.current;
|
|
39
45
|
const isBackgroundEnabled = currentBackgroundSync?.enabled === true;
|
|
@@ -48,6 +54,9 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
48
54
|
}),
|
|
49
55
|
...(deliveredEcgFileNames === undefined ? {} : {
|
|
50
56
|
deliveredEcgFileNames
|
|
57
|
+
}),
|
|
58
|
+
...(resultPolicies === undefined ? {} : {
|
|
59
|
+
resultPolicies
|
|
51
60
|
})
|
|
52
61
|
};
|
|
53
62
|
const btManager = Object.keys(managerOptions).length ? new BTManager(bleManager, acceptedDevices, managerOptions) : new BTManager(bleManager, acceptedDevices);
|
|
@@ -75,12 +84,13 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
75
84
|
});
|
|
76
85
|
} catch (error) {
|
|
77
86
|
onError?.({
|
|
78
|
-
error:
|
|
87
|
+
error: toBluetoothError(error)
|
|
79
88
|
});
|
|
80
89
|
}
|
|
81
90
|
}
|
|
82
91
|
}) : null;
|
|
83
92
|
btManagerRef.current = btManager;
|
|
93
|
+
runtime.setManager(btManager);
|
|
84
94
|
backgroundSyncCoordinatorRef.current = coordinator;
|
|
85
95
|
btManager.setBackgroundScanEnabled(isBackgroundEnabled && AppState.currentState !== "active");
|
|
86
96
|
btManager.startScan();
|
|
@@ -88,52 +98,112 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
88
98
|
sentryLogger("info", "Destroying scan service");
|
|
89
99
|
backgroundSyncCoordinatorRef.current = null;
|
|
90
100
|
btManagerRef.current = null;
|
|
101
|
+
runtime.setManager(undefined);
|
|
91
102
|
btManager.destroy();
|
|
92
103
|
};
|
|
93
|
-
}, [acceptedDevices, backgroundSync?.enabled, backgroundSync?.maxRetries, backgroundSync?.retryBackoffMs, backgroundSync?.serviceUUIDs, backgroundSync?.storage, backgroundSync?.storageKey, backgroundSync?.notifications?.enabled, backgroundSync?.notifications?.title, backgroundSync?.notifications?.body, backgroundSync?.notifications?.data, bleManager, deliveredEcgFileNames, onError, oneReadingPerConnection]);
|
|
104
|
+
}, [acceptedDevices, backgroundSync?.enabled, backgroundSync?.maxRetries, backgroundSync?.retryBackoffMs, backgroundSync?.serviceUUIDs, backgroundSync?.storage, backgroundSync?.storageKey, backgroundSync?.notifications?.enabled, backgroundSync?.notifications?.title, backgroundSync?.notifications?.body, backgroundSync?.notifications?.data, bleManager, deliveredEcgFileNames, resultPolicies, onError, oneReadingPerConnection]);
|
|
94
105
|
React.useEffect(() => {
|
|
95
|
-
if (!
|
|
106
|
+
if (!acceptedDevices.length) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const runtime = runtimeRef.current;
|
|
110
|
+
const hasRuntimeListener = runtime.hasListeners("deviceFound");
|
|
111
|
+
if (!onDeviceFound && !hasRuntimeListener) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const manager = btManagerRef.current;
|
|
115
|
+
if (!manager) {
|
|
96
116
|
return;
|
|
97
117
|
}
|
|
98
|
-
|
|
118
|
+
if (onDeviceFound && !hasRuntimeListener) {
|
|
119
|
+
manager.onDeviceFound(onDeviceFound);
|
|
120
|
+
return () => {
|
|
121
|
+
manager.onDeviceFound(undefined);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
manager.onDeviceFound((device, deviceManager) => {
|
|
125
|
+
runtime.upsertDevice(device);
|
|
126
|
+
runtime.emit("deviceFound", device);
|
|
127
|
+
return onDeviceFound?.(device, deviceManager) ?? Promise.resolve();
|
|
128
|
+
});
|
|
99
129
|
return () => {
|
|
100
|
-
|
|
130
|
+
manager.onDeviceFound(undefined);
|
|
101
131
|
};
|
|
102
132
|
}, [onDeviceFound, acceptedDevices]);
|
|
103
133
|
React.useEffect(() => {
|
|
104
|
-
if (!
|
|
134
|
+
if (!acceptedDevices.length) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
const runtime = runtimeRef.current;
|
|
138
|
+
const hasRuntimeListener = runtime.hasListeners("error");
|
|
139
|
+
if (!onError && !hasRuntimeListener) {
|
|
105
140
|
return;
|
|
106
141
|
}
|
|
107
|
-
btManagerRef.current
|
|
142
|
+
const manager = btManagerRef.current;
|
|
143
|
+
if (!manager) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (onError && !hasRuntimeListener) {
|
|
147
|
+
manager.onError(onError);
|
|
148
|
+
return () => {
|
|
149
|
+
manager.onError(undefined);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
manager.onError(data => {
|
|
153
|
+
runtime.emit("error", data);
|
|
154
|
+
onError?.(data);
|
|
155
|
+
});
|
|
108
156
|
return () => {
|
|
109
|
-
|
|
157
|
+
manager.onError(undefined);
|
|
110
158
|
};
|
|
111
159
|
}, [onError, acceptedDevices]);
|
|
112
160
|
React.useEffect(() => {
|
|
113
161
|
if (!acceptedDevices.length) {
|
|
114
162
|
return;
|
|
115
163
|
}
|
|
164
|
+
const runtime = runtimeRef.current;
|
|
165
|
+
const requiresBridge = backgroundSync?.enabled === true || runtime.hasListeners("result");
|
|
166
|
+
if (!onResult && !requiresBridge) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
const manager = btManagerRef.current;
|
|
170
|
+
if (!manager) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (onResult && !requiresBridge) {
|
|
174
|
+
manager.onResult(onResult);
|
|
175
|
+
return () => {
|
|
176
|
+
manager.onResult(undefined);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
116
179
|
const callback = backgroundSync?.enabled === true ? data => {
|
|
117
180
|
onResult?.(data);
|
|
118
181
|
const coordinator = backgroundSyncCoordinatorRef.current;
|
|
119
182
|
if (coordinator) {
|
|
120
183
|
void coordinator.enqueue(data).catch(error => {
|
|
121
184
|
onError?.({
|
|
122
|
-
error:
|
|
185
|
+
error: toBluetoothError(error)
|
|
123
186
|
});
|
|
124
187
|
});
|
|
125
188
|
}
|
|
126
189
|
} : onResult;
|
|
127
|
-
if (!
|
|
190
|
+
if (!acceptedDevices.length) {
|
|
128
191
|
return;
|
|
129
192
|
}
|
|
130
|
-
|
|
193
|
+
manager.onResult(data => {
|
|
194
|
+
runtime.emit("result", data);
|
|
195
|
+
callback?.(data);
|
|
196
|
+
});
|
|
131
197
|
return () => {
|
|
132
|
-
|
|
198
|
+
manager.onResult(undefined);
|
|
133
199
|
};
|
|
134
200
|
}, [backgroundSync?.enabled, onError, onResult, acceptedDevices]);
|
|
135
201
|
React.useEffect(() => {
|
|
136
|
-
if (!
|
|
202
|
+
if (!acceptedDevices.length) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const runtime = runtimeRef.current;
|
|
206
|
+
if (!onDeviceStatusChanged && !runtime.hasListeners("status")) {
|
|
137
207
|
return;
|
|
138
208
|
}
|
|
139
209
|
btManagerRef.current?.onDeviceStatusChanged(({
|
|
@@ -141,6 +211,15 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
141
211
|
deviceData,
|
|
142
212
|
measurementTypeKey
|
|
143
213
|
}) => {
|
|
214
|
+
runtime.setDeviceStatus({
|
|
215
|
+
deviceData,
|
|
216
|
+
status
|
|
217
|
+
});
|
|
218
|
+
runtime.emit("status", {
|
|
219
|
+
status,
|
|
220
|
+
deviceData,
|
|
221
|
+
measurementTypeKey
|
|
222
|
+
});
|
|
144
223
|
setDeviceListItems(prev => {
|
|
145
224
|
const newList = [...prev];
|
|
146
225
|
const index = newList.findIndex(item => item.deviceType === deviceData.name);
|
|
@@ -153,7 +232,7 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
153
232
|
};
|
|
154
233
|
return newList;
|
|
155
234
|
});
|
|
156
|
-
onDeviceStatusChanged({
|
|
235
|
+
onDeviceStatusChanged?.({
|
|
157
236
|
status,
|
|
158
237
|
deviceData,
|
|
159
238
|
measurementTypeKey
|
|
@@ -163,6 +242,26 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
163
242
|
btManagerRef.current?.onDeviceStatusChanged(undefined);
|
|
164
243
|
};
|
|
165
244
|
}, [onDeviceStatusChanged, acceptedDevices, setDeviceListItems]);
|
|
245
|
+
React.useEffect(() => {
|
|
246
|
+
if (!acceptedDevices.length) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
const runtime = runtimeRef.current;
|
|
250
|
+
if (!onConnectionEvent && !runtime.hasListeners("connection")) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
const manager = btManagerRef.current;
|
|
254
|
+
if (!manager || typeof manager.onConnectionEvent !== "function") {
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
manager.onConnectionEvent(event => {
|
|
258
|
+
runtime.emit("connection", event);
|
|
259
|
+
onConnectionEvent?.(event);
|
|
260
|
+
});
|
|
261
|
+
return () => {
|
|
262
|
+
manager.onConnectionEvent(undefined);
|
|
263
|
+
};
|
|
264
|
+
}, [onConnectionEvent, acceptedDevices]);
|
|
166
265
|
React.useEffect(() => {
|
|
167
266
|
if (!acceptedDevices.length || backgroundSync?.enabled !== true) {
|
|
168
267
|
return;
|
|
@@ -176,7 +275,7 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
176
275
|
resetExhausted: true
|
|
177
276
|
}).catch(error => {
|
|
178
277
|
onError?.({
|
|
179
|
-
error:
|
|
278
|
+
error: toBluetoothError(error)
|
|
180
279
|
});
|
|
181
280
|
});
|
|
182
281
|
}, [acceptedDevices, backgroundSync?.enabled, backgroundSync?.restoreStateIdentifier, onError]);
|
|
@@ -189,7 +288,7 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
189
288
|
resetExhausted: true
|
|
190
289
|
}).catch(error => {
|
|
191
290
|
onError?.({
|
|
192
|
-
error:
|
|
291
|
+
error: toBluetoothError(error)
|
|
193
292
|
});
|
|
194
293
|
});
|
|
195
294
|
}
|
|
@@ -198,11 +297,14 @@ export const BTProviderChildWrapper = /*#__PURE__*/React.memo(({
|
|
|
198
297
|
listener.remove();
|
|
199
298
|
};
|
|
200
299
|
}, [onError]);
|
|
201
|
-
return /*#__PURE__*/_jsx(
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
300
|
+
return /*#__PURE__*/_jsx(BluetoothRuntimeProvider, {
|
|
301
|
+
runtime: runtimeRef.current,
|
|
302
|
+
children: /*#__PURE__*/_jsx(AndroidBluetoothForegroundService, {
|
|
303
|
+
enabled: backgroundSync?.enabled === true,
|
|
304
|
+
options: backgroundSync?.android?.foregroundService,
|
|
305
|
+
onError: onError,
|
|
306
|
+
children: children
|
|
307
|
+
})
|
|
206
308
|
});
|
|
207
309
|
});
|
|
208
310
|
//# sourceMappingURL=bt-provider-child-wrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","AppState","AndroidBluetoothForegroundService","showPushNotification","useDeviceList","sentryLogger","getRestoredBleState","getBackgroundServiceUUIDs","BackgroundSyncCoordinator","BTManager","jsx","_jsx","BTProviderChildWrapper","memo","bleManager","acceptedDevices","children","oneReadingPerConnection","deliveredEcgFileNames","onDeviceFound","onError","onDeviceStatusChanged","onResult","backgroundSync","btManagerRef","useRef","backgroundSyncRef","backgroundSyncCoordinatorRef","setDeviceListItems","current","useEffect","length","currentBackgroundSync","isBackgroundEnabled","enabled","backgroundOptions","backgroundEnabled","serviceUUIDs","undefined","managerOptions","btManager","Object","keys","coordinator","result","latest","notifications","body","data","title","deviceData","name","error","Error","String","setBackgroundScanEnabled","currentState","startScan","destroy","maxRetries","retryBackoffMs","storage","storageKey","callback","enqueue","catch","status","measurementTypeKey","prev","newList","index","findIndex","item","deviceType","restoredState","restoreStateIdentifier","connectedPeripherals","restoreDevices","flush","includeExhausted","resetExhausted","listener","addEventListener","state","remove","options","android","foregroundService"],"sourceRoot":"../../../../../src","sources":["modules/bt-management/components/bt-provider-child-wrapper.tsx"],"mappings":";;AAAA;AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SACEC,iCAAiC,EACjCC,oBAAoB,QACf,gCAAuB;AAC9B,SAASC,aAAa,QAAQ,qDAAkD;AAChF,SAASC,YAAY,QAAQ,sCAAmC;AAChE,SAASC,mBAAmB,QAAQ,uDAAoD;AACxF,SAASC,yBAAyB,QAAQ,yDAAsD;AAChG,SAASC,yBAAyB,QAAQ,4DAAyD;AACnG,SAASC,SAAS,QAAQ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EC,iBAAkB;IACpDnE,OAAO,EAAEA,OAAQ;IAAAJ,QAAA,EAEhBA;EAAQ,CACwB,CAAC;AAExC,CACF,CAEsB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","AppState","AndroidBluetoothForegroundService","showPushNotification","useDeviceList","sentryLogger","BluetoothRuntimeProvider","createBluetoothRuntime","getRestoredBleState","getBackgroundServiceUUIDs","BackgroundSyncCoordinator","BTManager","toBluetoothError","jsx","_jsx","BTProviderChildWrapper","memo","bleManager","acceptedDevices","children","oneReadingPerConnection","deliveredEcgFileNames","onDeviceFound","onError","onDeviceStatusChanged","onConnectionEvent","onResult","resultPolicies","backgroundSync","btManagerRef","useRef","runtimeRef","backgroundSyncRef","backgroundSyncCoordinatorRef","setDeviceListItems","current","useEffect","length","runtime","currentBackgroundSync","isBackgroundEnabled","enabled","backgroundOptions","backgroundEnabled","serviceUUIDs","undefined","managerOptions","btManager","Object","keys","coordinator","result","latest","notifications","body","data","title","deviceData","name","error","setManager","setBackgroundScanEnabled","currentState","startScan","destroy","maxRetries","retryBackoffMs","storage","storageKey","hasRuntimeListener","hasListeners","manager","device","deviceManager","upsertDevice","emit","Promise","resolve","requiresBridge","callback","enqueue","catch","status","measurementTypeKey","setDeviceStatus","prev","newList","index","findIndex","item","deviceType","event","restoredState","restoreStateIdentifier","connectedPeripherals","restoreDevices","flush","includeExhausted","resetExhausted","listener","addEventListener","state","remove","options","android","foregroundService"],"sourceRoot":"../../../../../src","sources":["modules/bt-management/components/bt-provider-child-wrapper.tsx"],"mappings":";;AAAA;AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SACEC,iCAAiC,EACjCC,oBAAoB,QACf,gCAAuB;AAC9B,SAASC,aAAa,QAAQ,qDAAkD;AAChF,SAASC,YAAY,QAAQ,sCAAmC;AAChE,SAASC,wBAAwB,EAAEC,sBAAsB,QAAQ,6BAA0B;AAC3F,SAASC,mBAAmB,QAAQ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