@ovok/native 1.6.0 → 1.6.2
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 +8 -2
- package/android/src/main/AndroidManifest.xml +1 -20
- package/android/src/main/java/com/ovok/sdk/backgroundsync/OvokBackgroundSyncModule.java +25 -3
- package/android/src/main/java/com/ovok/sdk/backgroundsync/OvokHealthConnectWorker.java +6 -2
- package/app.plugin.js +86 -7
- package/lib/commonjs/index.js +5 -115
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/auth/default-translation.js +69 -0
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -0
- 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-session.js +47 -17
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/commonjs/modules/auth/index.js +1 -0
- package/lib/commonjs/modules/auth/index.js.map +1 -1
- package/lib/commonjs/modules/auth/logout-button/components/logout-button.js +30 -3
- package/lib/commonjs/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form.js +0 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/inputs.js +10 -8
- package/lib/commonjs/modules/auth/register/components/form/inputs.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-button.js +2 -2
- package/lib/commonjs/modules/auth/register/components/form/register-button.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/header/description.js +0 -1
- package/lib/commonjs/modules/auth/register/components/header/description.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/header/title.js +5 -2
- package/lib/commonjs/modules/auth/register/components/header/title.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/login-link.js +4 -3
- package/lib/commonjs/modules/auth/register/components/login-link.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/register-with-separator.js +1 -2
- package/lib/commonjs/modules/auth/register/components/register-with-separator.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/inputs.js +6 -3
- 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 +2 -2
- 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 +6 -2
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/header/description.js +0 -1
- package/lib/commonjs/modules/auth/reset-password/components/header/description.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/header/title.js +5 -2
- package/lib/commonjs/modules/auth/reset-password/components/header/title.js.map +1 -1
- package/lib/commonjs/modules/auth/session/components/session-list.js +8 -6
- package/lib/commonjs/modules/auth/session/components/session-list.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/footer.js +0 -1
- package/lib/commonjs/modules/auth/sign-in/components/footer.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/form/inputs.js +4 -3
- package/lib/commonjs/modules/auth/sign-in/components/form/inputs.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/form/signin-button.js +2 -2
- package/lib/commonjs/modules/auth/sign-in/components/form/signin-button.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/header/description.js +0 -1
- package/lib/commonjs/modules/auth/sign-in/components/header/description.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/header/title.js +5 -2
- package/lib/commonjs/modules/auth/sign-in/components/header/title.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/login-with-separator.js +1 -2
- package/lib/commonjs/modules/auth/sign-in/components/login-with-separator.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/register-link.js +4 -3
- package/lib/commonjs/modules/auth/sign-in/components/register-link.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/site-url.js +1 -3
- package/lib/commonjs/modules/auth/sign-in/components/site-url.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-text.js +1 -3
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-text.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-text.js +1 -3
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-text.js.map +1 -1
- package/lib/commonjs/modules/auth/utils/sign-out-google.js +16 -0
- package/lib/commonjs/modules/auth/utils/sign-out-google.js.map +1 -0
- package/lib/commonjs/modules/background-sync/background-safe-storage.js +3 -6
- package/lib/commonjs/modules/background-sync/background-safe-storage.js.map +1 -1
- package/lib/commonjs/modules/breathing-exercise/components/method-name.js +0 -1
- package/lib/commonjs/modules/breathing-exercise/components/method-name.js.map +1 -1
- package/lib/commonjs/modules/breathing-exercise/components/remaining-time.js +0 -1
- package/lib/commonjs/modules/breathing-exercise/components/remaining-time.js.map +1 -1
- package/lib/commonjs/modules/bt-device/components/item/status.js +1 -2
- package/lib/commonjs/modules/bt-device/components/item/status.js.map +1 -1
- package/lib/commonjs/modules/bt-device/components/item/sub-title.js +1 -2
- package/lib/commonjs/modules/bt-device/components/item/sub-title.js.map +1 -1
- package/lib/commonjs/modules/bt-device/components/item/title.js +1 -2
- package/lib/commonjs/modules/bt-device/components/item/title.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js +4 -2
- package/lib/commonjs/modules/bt-device/constants/supported-devices.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/bluetooth-device-picker.js +2 -1
- package/lib/commonjs/modules/bt-management/components/bluetooth-device-picker.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +43 -54
- 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 +18 -1
- package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js +56 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-background-sync.js +8 -4
- package/lib/commonjs/modules/bt-management/hooks/use-background-sync.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-device-connection.js +5 -1
- package/lib/commonjs/modules/bt-management/hooks/use-device-connection.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-health-import.js +48 -12
- package/lib/commonjs/modules/bt-management/hooks/use-health-import.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-measurements.js +40 -18
- package/lib/commonjs/modules/bt-management/hooks/use-measurements.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-nearby-devices.js +8 -1
- package/lib/commonjs/modules/bt-management/hooks/use-nearby-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-paired-devices.js +27 -9
- package/lib/commonjs/modules/bt-management/hooks/use-paired-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-request-permissions.js +5 -8
- package/lib/commonjs/modules/bt-management/hooks/use-request-permissions.js.map +1 -1
- 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 +22 -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 +4 -1
- 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 -37
- package/lib/commonjs/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/boso/boso.medicus.js +9 -6
- package/lib/commonjs/modules/bt-management/services/devices/boso/boso.medicus.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +97 -2
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.files.js +74 -0
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.files.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +52 -0
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/bt-connection-handler.js +4 -3
- 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 +43 -28
- 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 +10 -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 +2 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.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 +81 -1
- package/lib/commonjs/modules/bt-management/testing/fake-ble-manager.js.map +1 -1
- package/lib/commonjs/modules/bt-management/types/bluetooth-error.js +8 -2
- package/lib/commonjs/modules/bt-management/types/bluetooth-error.js.map +1 -1
- package/lib/commonjs/modules/bt-management/utils/device-title.js +17 -0
- package/lib/commonjs/modules/bt-management/utils/device-title.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/result-identity.js +1 -1
- package/lib/commonjs/modules/bt-management/utils/result-identity.js.map +1 -1
- package/lib/commonjs/modules/content/content-card/components/cover-badge.js +1 -3
- package/lib/commonjs/modules/content/content-card/components/cover-badge.js.map +1 -1
- package/lib/commonjs/modules/content/content-card/components/title.js +1 -3
- package/lib/commonjs/modules/content/content-card/components/title.js.map +1 -1
- package/lib/commonjs/modules/content/content-detail/components/content-detail-rich-content.js +1 -1
- package/lib/commonjs/modules/content/content-detail/components/content-detail-rich-content.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js +12 -3
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/manually-request-sheet/description.js +2 -2
- package/lib/commonjs/modules/data-sync/components/manually-request-sheet/description.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/manually-request-sheet/title.js +0 -1
- package/lib/commonjs/modules/data-sync/components/manually-request-sheet/title.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/sync-progress-list/sync-progress-list.js +30 -21
- package/lib/commonjs/modules/data-sync/components/sync-progress-list/sync-progress-list.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js +7 -1
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js +13 -0
- package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js +19 -4
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/generate-observation-entry.js +30 -21
- package/lib/commonjs/modules/data-sync/utils/generate-observation-entry.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-observation-device.js +55 -0
- package/lib/commonjs/modules/data-sync/utils/health-observation-device.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/retry-save.js +40 -6
- package/lib/commonjs/modules/data-sync/utils/retry-save.js.map +1 -1
- package/lib/commonjs/modules/diary/components/no-data.js +1 -2
- package/lib/commonjs/modules/diary/components/no-data.js.map +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-date-field.js +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-date-field.js.map +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-select.js +13 -13
- package/lib/commonjs/modules/helpers/form-items/form-select.js.map +1 -1
- package/lib/commonjs/modules/helpers/index.js +11 -4
- package/lib/commonjs/modules/helpers/index.js.map +1 -1
- package/lib/commonjs/modules/helpers/utils/sentry-logger.js +2 -3
- package/lib/commonjs/modules/helpers/utils/sentry-logger.js.map +1 -1
- package/lib/commonjs/modules/helpers/utils/telemetry.js +133 -46
- package/lib/commonjs/modules/helpers/utils/telemetry.js.map +1 -1
- package/lib/commonjs/modules/image/components/optimized-image.js +29 -8
- package/lib/commonjs/modules/image/components/optimized-image.js.map +1 -1
- package/lib/commonjs/modules/journal/past-journal/components/title.js +0 -1
- package/lib/commonjs/modules/journal/past-journal/components/title.js.map +1 -1
- package/lib/commonjs/modules/language-switcher/components/option/label.js +0 -1
- package/lib/commonjs/modules/language-switcher/components/option/label.js.map +1 -1
- package/lib/commonjs/modules/measurement/components/date-range.js +4 -3
- package/lib/commonjs/modules/measurement/components/date-range.js.map +1 -1
- package/lib/commonjs/modules/measurement/components/measurement-list-item.js +10 -10
- package/lib/commonjs/modules/measurement/components/measurement-list-item.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js +3 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/commonjs/modules/setting/components/list-header.js +1 -2
- package/lib/commonjs/modules/setting/components/list-header.js.map +1 -1
- package/lib/commonjs/modules/setting/components/setting-list-item.js +0 -1
- package/lib/commonjs/modules/setting/components/setting-list-item.js.map +1 -1
- package/lib/commonjs/modules/tab/components/tab-item.js +0 -1
- package/lib/commonjs/modules/tab/components/tab-item.js.map +1 -1
- package/lib/commonjs/modules/theme/utils/generate-theme.js +35 -4
- package/lib/commonjs/modules/theme/utils/generate-theme.js.map +1 -1
- package/lib/commonjs/modules/tile/components/measured-value.js +0 -3
- package/lib/commonjs/modules/tile/components/measured-value.js.map +1 -1
- package/lib/commonjs/modules/tile/components/title.js +0 -1
- package/lib/commonjs/modules/tile/components/title.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 +20 -4
- package/lib/commonjs/modules/ui/components/background-sync-setting.js.map +1 -1
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js +33 -6
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/commonjs/modules/ui/components/ecg-strip-viewer.js +10 -0
- package/lib/commonjs/modules/ui/components/ecg-strip-viewer.js.map +1 -1
- package/lib/commonjs/modules/ui/components/health-import-card.js +25 -2
- package/lib/commonjs/modules/ui/components/health-import-card.js.map +1 -1
- package/lib/commonjs/modules/ui/components/manual-entry-form.js +14 -1
- package/lib/commonjs/modules/ui/components/manual-entry-form.js.map +1 -1
- package/lib/commonjs/modules/ui/components/measurement-trend-chart.js +95 -0
- package/lib/commonjs/modules/ui/components/measurement-trend-chart.js.map +1 -0
- package/lib/commonjs/modules/ui/components/pairing-flow.js +103 -34
- package/lib/commonjs/modules/ui/components/pairing-flow.js.map +1 -1
- package/lib/commonjs/modules/ui/components/supported-devices-catalog-list.js +11 -4
- package/lib/commonjs/modules/ui/components/supported-devices-catalog-list.js.map +1 -1
- package/lib/commonjs/modules/ui/components/urine-test-result.js +7 -2
- package/lib/commonjs/modules/ui/components/urine-test-result.js.map +1 -1
- package/lib/commonjs/modules/ui/index.js +11 -0
- package/lib/commonjs/modules/ui/index.js.map +1 -1
- package/lib/commonjs/modules/ui/use-ovok-ui.js +5 -2
- package/lib/commonjs/modules/ui/use-ovok-ui.js.map +1 -1
- package/lib/module/index.js +3 -10
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/auth/default-translation.js +68 -0
- package/lib/module/modules/auth/default-translation.js.map +1 -0
- 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-session.js +47 -17
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/module/modules/auth/index.js +1 -0
- package/lib/module/modules/auth/index.js.map +1 -1
- package/lib/module/modules/auth/logout-button/components/logout-button.js +30 -3
- package/lib/module/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form.js +0 -1
- package/lib/module/modules/auth/profile/components/profile-form.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/inputs.js +10 -8
- package/lib/module/modules/auth/register/components/form/inputs.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-button.js +2 -2
- package/lib/module/modules/auth/register/components/form/register-button.js.map +1 -1
- package/lib/module/modules/auth/register/components/header/description.js +0 -1
- package/lib/module/modules/auth/register/components/header/description.js.map +1 -1
- package/lib/module/modules/auth/register/components/header/title.js +5 -2
- package/lib/module/modules/auth/register/components/header/title.js.map +1 -1
- package/lib/module/modules/auth/register/components/login-link.js +4 -3
- package/lib/module/modules/auth/register/components/login-link.js.map +1 -1
- package/lib/module/modules/auth/register/components/register-with-separator.js +1 -2
- package/lib/module/modules/auth/register/components/register-with-separator.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/inputs.js +6 -3
- 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 +2 -2
- 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 +6 -2
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/header/description.js +0 -1
- package/lib/module/modules/auth/reset-password/components/header/description.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/header/title.js +5 -2
- package/lib/module/modules/auth/reset-password/components/header/title.js.map +1 -1
- package/lib/module/modules/auth/session/components/session-list.js +8 -6
- package/lib/module/modules/auth/session/components/session-list.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/footer.js +0 -1
- package/lib/module/modules/auth/sign-in/components/footer.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/form/inputs.js +4 -3
- package/lib/module/modules/auth/sign-in/components/form/inputs.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/form/signin-button.js +2 -2
- package/lib/module/modules/auth/sign-in/components/form/signin-button.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/header/description.js +0 -1
- package/lib/module/modules/auth/sign-in/components/header/description.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/header/title.js +5 -2
- package/lib/module/modules/auth/sign-in/components/header/title.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/login-with-separator.js +1 -2
- package/lib/module/modules/auth/sign-in/components/login-with-separator.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/register-link.js +4 -3
- package/lib/module/modules/auth/sign-in/components/register-link.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/site-url.js +1 -3
- package/lib/module/modules/auth/sign-in/components/site-url.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-text.js +1 -3
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-text.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-text.js +1 -3
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-text.js.map +1 -1
- package/lib/module/modules/auth/utils/sign-out-google.js +12 -0
- package/lib/module/modules/auth/utils/sign-out-google.js.map +1 -0
- package/lib/module/modules/background-sync/background-safe-storage.js +3 -6
- package/lib/module/modules/background-sync/background-safe-storage.js.map +1 -1
- package/lib/module/modules/breathing-exercise/components/method-name.js +0 -1
- package/lib/module/modules/breathing-exercise/components/method-name.js.map +1 -1
- package/lib/module/modules/breathing-exercise/components/remaining-time.js +0 -1
- package/lib/module/modules/breathing-exercise/components/remaining-time.js.map +1 -1
- package/lib/module/modules/bt-device/components/item/status.js +1 -2
- package/lib/module/modules/bt-device/components/item/status.js.map +1 -1
- package/lib/module/modules/bt-device/components/item/sub-title.js +1 -2
- package/lib/module/modules/bt-device/components/item/sub-title.js.map +1 -1
- package/lib/module/modules/bt-device/components/item/title.js +1 -2
- package/lib/module/modules/bt-device/components/item/title.js.map +1 -1
- package/lib/module/modules/bt-device/constants/supported-devices.js +4 -2
- package/lib/module/modules/bt-device/constants/supported-devices.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/bluetooth-device-picker.js +2 -1
- package/lib/module/modules/bt-management/components/bluetooth-device-picker.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +42 -53
- 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 +18 -1
- package/lib/module/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js +56 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-background-sync.js +8 -4
- package/lib/module/modules/bt-management/hooks/use-background-sync.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-device-connection.js +5 -1
- package/lib/module/modules/bt-management/hooks/use-device-connection.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-health-import.js +48 -12
- package/lib/module/modules/bt-management/hooks/use-health-import.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-measurements.js +40 -18
- package/lib/module/modules/bt-management/hooks/use-measurements.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-nearby-devices.js +8 -1
- package/lib/module/modules/bt-management/hooks/use-nearby-devices.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-paired-devices.js +27 -9
- package/lib/module/modules/bt-management/hooks/use-paired-devices.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-request-permissions.js +5 -8
- package/lib/module/modules/bt-management/hooks/use-request-permissions.js.map +1 -1
- 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 +2 -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 +4 -1
- 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 -37
- package/lib/module/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/boso/boso.medicus.js +9 -6
- package/lib/module/modules/bt-management/services/devices/boso/boso.medicus.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +98 -2
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.files.js +68 -0
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.files.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +48 -0
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/bt-connection-handler.js +4 -3
- 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 +44 -29
- 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 +10 -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 +2 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.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 +79 -0
- package/lib/module/modules/bt-management/testing/fake-ble-manager.js.map +1 -1
- package/lib/module/modules/bt-management/types/bluetooth-error.js +8 -2
- package/lib/module/modules/bt-management/types/bluetooth-error.js.map +1 -1
- package/lib/module/modules/bt-management/utils/device-title.js +12 -0
- package/lib/module/modules/bt-management/utils/device-title.js.map +1 -0
- package/lib/module/modules/bt-management/utils/result-identity.js +1 -1
- package/lib/module/modules/bt-management/utils/result-identity.js.map +1 -1
- package/lib/module/modules/content/content-card/components/cover-badge.js +1 -3
- package/lib/module/modules/content/content-card/components/cover-badge.js.map +1 -1
- package/lib/module/modules/content/content-card/components/title.js +1 -3
- package/lib/module/modules/content/content-card/components/title.js.map +1 -1
- package/lib/module/modules/content/content-detail/components/content-detail-rich-content.js +1 -1
- package/lib/module/modules/content/content-detail/components/content-detail-rich-content.js.map +1 -1
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js +12 -3
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/components/manually-request-sheet/description.js +2 -2
- package/lib/module/modules/data-sync/components/manually-request-sheet/description.js.map +1 -1
- package/lib/module/modules/data-sync/components/manually-request-sheet/title.js +0 -1
- package/lib/module/modules/data-sync/components/manually-request-sheet/title.js.map +1 -1
- package/lib/module/modules/data-sync/components/sync-progress-list/sync-progress-list.js +30 -21
- package/lib/module/modules/data-sync/components/sync-progress-list/sync-progress-list.js.map +1 -1
- package/lib/module/modules/data-sync/services/base-health-sync-service.js +8 -2
- package/lib/module/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-records-to-observation.js +13 -0
- package/lib/module/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +19 -4
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/generate-observation-entry.js +30 -21
- package/lib/module/modules/data-sync/utils/generate-observation-entry.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-observation-device.js +50 -0
- package/lib/module/modules/data-sync/utils/health-observation-device.js.map +1 -0
- package/lib/module/modules/data-sync/utils/retry-save.js +39 -7
- package/lib/module/modules/data-sync/utils/retry-save.js.map +1 -1
- package/lib/module/modules/diary/components/no-data.js +1 -2
- package/lib/module/modules/diary/components/no-data.js.map +1 -1
- package/lib/module/modules/helpers/form-items/form-date-field.js +1 -1
- package/lib/module/modules/helpers/form-items/form-date-field.js.map +1 -1
- package/lib/module/modules/helpers/form-items/form-select.js +13 -13
- package/lib/module/modules/helpers/form-items/form-select.js.map +1 -1
- package/lib/module/modules/helpers/index.js +1 -1
- package/lib/module/modules/helpers/index.js.map +1 -1
- package/lib/module/modules/helpers/utils/sentry-logger.js +3 -4
- package/lib/module/modules/helpers/utils/sentry-logger.js.map +1 -1
- package/lib/module/modules/helpers/utils/telemetry.js +133 -46
- package/lib/module/modules/helpers/utils/telemetry.js.map +1 -1
- package/lib/module/modules/image/components/optimized-image.js +29 -8
- package/lib/module/modules/image/components/optimized-image.js.map +1 -1
- package/lib/module/modules/journal/past-journal/components/title.js +0 -1
- package/lib/module/modules/journal/past-journal/components/title.js.map +1 -1
- package/lib/module/modules/language-switcher/components/option/label.js +0 -1
- package/lib/module/modules/language-switcher/components/option/label.js.map +1 -1
- package/lib/module/modules/measurement/components/date-range.js +4 -3
- package/lib/module/modules/measurement/components/date-range.js.map +1 -1
- package/lib/module/modules/measurement/components/measurement-list-item.js +10 -10
- package/lib/module/modules/measurement/components/measurement-list-item.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js +3 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/module/modules/setting/components/list-header.js +1 -2
- package/lib/module/modules/setting/components/list-header.js.map +1 -1
- package/lib/module/modules/setting/components/setting-list-item.js +0 -1
- package/lib/module/modules/setting/components/setting-list-item.js.map +1 -1
- package/lib/module/modules/tab/components/tab-item.js +0 -1
- package/lib/module/modules/tab/components/tab-item.js.map +1 -1
- package/lib/module/modules/theme/utils/generate-theme.js +35 -4
- package/lib/module/modules/theme/utils/generate-theme.js.map +1 -1
- package/lib/module/modules/tile/components/measured-value.js +0 -3
- package/lib/module/modules/tile/components/measured-value.js.map +1 -1
- package/lib/module/modules/tile/components/title.js +0 -1
- package/lib/module/modules/tile/components/title.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 +20 -4
- package/lib/module/modules/ui/components/background-sync-setting.js.map +1 -1
- package/lib/module/modules/ui/components/bluetooth-state-notice.js +33 -6
- package/lib/module/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/module/modules/ui/components/ecg-strip-viewer.js +10 -0
- package/lib/module/modules/ui/components/ecg-strip-viewer.js.map +1 -1
- package/lib/module/modules/ui/components/health-import-card.js +25 -2
- package/lib/module/modules/ui/components/health-import-card.js.map +1 -1
- package/lib/module/modules/ui/components/manual-entry-form.js +14 -1
- package/lib/module/modules/ui/components/manual-entry-form.js.map +1 -1
- package/lib/module/modules/ui/components/measurement-trend-chart.js +91 -0
- package/lib/module/modules/ui/components/measurement-trend-chart.js.map +1 -0
- package/lib/module/modules/ui/components/pairing-flow.js +106 -37
- package/lib/module/modules/ui/components/pairing-flow.js.map +1 -1
- package/lib/module/modules/ui/components/supported-devices-catalog-list.js +12 -5
- package/lib/module/modules/ui/components/supported-devices-catalog-list.js.map +1 -1
- package/lib/module/modules/ui/components/urine-test-result.js +7 -2
- package/lib/module/modules/ui/components/urine-test-result.js.map +1 -1
- package/lib/module/modules/ui/index.js +1 -0
- package/lib/module/modules/ui/index.js.map +1 -1
- package/lib/module/modules/ui/use-ovok-ui.js +6 -3
- package/lib/module/modules/ui/use-ovok-ui.js.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +0 -10
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts.map +1 -0
- 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-session.d.ts +8 -2
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts +1 -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 +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/logout-button/types/logout-button-props.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/auth/logout-button/types/logout-button-props.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/header/title.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/login-link.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 +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/reset-password/components/header/title.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts +2 -46
- package/lib/typescript/commonjs/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/hooks/use-reset-password-form.d.ts +1 -47
- package/lib/typescript/commonjs/src/modules/auth/reset-password/hooks/use-reset-password-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/types/reset-password-context-type.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/types/reset-password-context-type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/types/reset-password-form-provider-props.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/auth/reset-password/types/reset-password-form-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/components/session-list.d.ts.map +1 -1
- 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/signin-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/header/title.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/register-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/types/session.d.ts +2 -5
- package/lib/typescript/commonjs/src/modules/auth/types/session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/background-sync/background-safe-storage.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/background-sync/background-safe-storage.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.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/bluetooth-device-picker.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/constants/measurement-field-catalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts +9 -3
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-background-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-device-connection.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-health-import.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-measurements.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-nearby-devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-paired-devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-request-permissions.d.ts.map +1 -1
- 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 +2 -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 +9 -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/boso/boso.medicus.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +17 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +28 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -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 +7 -0
- 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/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 +17 -0
- package/lib/typescript/commonjs/src/modules/bt-management/testing/fake-ble-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/background-sync.d.ts +2 -0
- 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 +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/bluetooth-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-children-props.d.ts +7 -1
- 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/custom-device-definition.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/device-title.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/device-title.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
- 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/components/manually-request-sheet/description.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/sync-progress-list/sync-progress-list.d.ts +8 -5
- package/lib/typescript/commonjs/src/modules/data-sync/components/sync-progress-list/sync-progress-list.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/utils/convert-records-to-observation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.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/health-observation-device.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-observation-device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/retry-save.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/retry-save.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-date-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-select.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/index.d.ts.map +1 -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 +3 -2
- package/lib/typescript/commonjs/src/modules/helpers/utils/telemetry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/image/components/optimized-image.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/measurement/components/date-range.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/measurement/components/measurement-list-item.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/measurement/types/measurement-list-item-props.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/measurement/types/measurement-list-item-props.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/theme/hooks/use-app-theme.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/theme/hooks/use-app-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/theme/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/theme/types/theme-provider-props.d.ts +12 -3
- package/lib/typescript/commonjs/src/modules/theme/types/theme-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/theme/utils/generate-theme.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/theme/utils/generate-theme.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 +4 -1
- package/lib/typescript/commonjs/src/modules/ui/components/background-sync-setting.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts +7 -1
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/ecg-strip-viewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/health-import-card.d.ts +5 -1
- package/lib/typescript/commonjs/src/modules/ui/components/health-import-card.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/ui/components/manual-entry-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/measurement-trend-chart.d.ts +19 -0
- package/lib/typescript/commonjs/src/modules/ui/components/measurement-trend-chart.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/pairing-flow.d.ts +16 -1
- package/lib/typescript/commonjs/src/modules/ui/components/pairing-flow.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/supported-devices-catalog-list.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/types.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/ui/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/use-ovok-ui.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +0 -10
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts +2 -0
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts.map +1 -0
- 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-session.d.ts +8 -2
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/index.d.ts +1 -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 +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/logout-button/types/logout-button-props.d.ts +6 -1
- package/lib/typescript/module/src/modules/auth/logout-button/types/logout-button-props.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/header/title.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/login-link.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 +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/reset-password/components/header/title.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts +2 -46
- package/lib/typescript/module/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/hooks/use-reset-password-form.d.ts +1 -47
- package/lib/typescript/module/src/modules/auth/reset-password/hooks/use-reset-password-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/types/reset-password-context-type.d.ts +3 -1
- package/lib/typescript/module/src/modules/auth/reset-password/types/reset-password-context-type.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/types/reset-password-form-provider-props.d.ts +1 -0
- package/lib/typescript/module/src/modules/auth/reset-password/types/reset-password-form-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/components/session-list.d.ts.map +1 -1
- 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/signin-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/header/title.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/register-link.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/types/session.d.ts +2 -5
- package/lib/typescript/module/src/modules/auth/types/session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-out-google.d.ts +3 -0
- package/lib/typescript/module/src/modules/auth/utils/sign-out-google.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/background-sync/background-safe-storage.d.ts +3 -1
- package/lib/typescript/module/src/modules/background-sync/background-safe-storage.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.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/bluetooth-device-picker.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/constants/measurement-field-catalog.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts +9 -3
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-background-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-device-connection.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-health-import.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-measurements.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-nearby-devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-paired-devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-request-permissions.d.ts.map +1 -1
- 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 +2 -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 +9 -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/boso/boso.medicus.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +17 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts +17 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.files.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +28 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -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 +7 -0
- 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/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 +17 -0
- package/lib/typescript/module/src/modules/bt-management/testing/fake-ble-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/background-sync.d.ts +2 -0
- 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 +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/bluetooth-error.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-children-props.d.ts +7 -1
- 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/custom-device-definition.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/device-title.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/utils/device-title.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/utils/result-identity.d.ts.map +1 -1
- 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/components/manually-request-sheet/description.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/sync-progress-list/sync-progress-list.d.ts +8 -5
- package/lib/typescript/module/src/modules/data-sync/components/sync-progress-list/sync-progress-list.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/utils/convert-records-to-observation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.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/health-observation-device.d.ts +9 -0
- package/lib/typescript/module/src/modules/data-sync/utils/health-observation-device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/retry-save.d.ts +3 -2
- package/lib/typescript/module/src/modules/data-sync/utils/retry-save.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/form-items/form-date-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/form-items/form-select.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/index.d.ts +1 -1
- package/lib/typescript/module/src/modules/helpers/index.d.ts.map +1 -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 +3 -2
- package/lib/typescript/module/src/modules/helpers/utils/telemetry.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/image/components/optimized-image.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/measurement/components/date-range.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/measurement/components/measurement-list-item.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/measurement/types/measurement-list-item-props.d.ts +2 -0
- package/lib/typescript/module/src/modules/measurement/types/measurement-list-item-props.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/theme/hooks/use-app-theme.d.ts +3 -1
- package/lib/typescript/module/src/modules/theme/hooks/use-app-theme.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/theme/index.d.ts +1 -1
- package/lib/typescript/module/src/modules/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/theme/types/theme-provider-props.d.ts +12 -3
- package/lib/typescript/module/src/modules/theme/types/theme-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/theme/utils/generate-theme.d.ts +3 -1
- package/lib/typescript/module/src/modules/theme/utils/generate-theme.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 +4 -1
- package/lib/typescript/module/src/modules/ui/components/background-sync-setting.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts +7 -1
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/ecg-strip-viewer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/health-import-card.d.ts +5 -1
- package/lib/typescript/module/src/modules/ui/components/health-import-card.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts +2 -1
- package/lib/typescript/module/src/modules/ui/components/manual-entry-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/measurement-trend-chart.d.ts +19 -0
- package/lib/typescript/module/src/modules/ui/components/measurement-trend-chart.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/pairing-flow.d.ts +16 -1
- package/lib/typescript/module/src/modules/ui/components/pairing-flow.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/supported-devices-catalog-list.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/urine-test-result.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/types.d.ts +4 -1
- package/lib/typescript/module/src/modules/ui/types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/use-ovok-ui.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import i18n from "i18next";
|
|
4
|
+
const defaultTranslation = {
|
|
5
|
+
common: {
|
|
6
|
+
cancel: "Cancel",
|
|
7
|
+
delete: "Delete"
|
|
8
|
+
},
|
|
9
|
+
profile: {
|
|
10
|
+
save: "Save"
|
|
11
|
+
},
|
|
12
|
+
register: {
|
|
13
|
+
"already-have-account": "Already have an account? Sign in",
|
|
14
|
+
button: "Create account",
|
|
15
|
+
name: "First name",
|
|
16
|
+
"or-register-with": "Or register with",
|
|
17
|
+
"password-confirm": "Confirm password",
|
|
18
|
+
subtitle: "Create your account",
|
|
19
|
+
surname: "Last name",
|
|
20
|
+
title: "Create account"
|
|
21
|
+
},
|
|
22
|
+
"reset-password": {
|
|
23
|
+
accountType: "Account type",
|
|
24
|
+
email: "Email",
|
|
25
|
+
patient: "Patient",
|
|
26
|
+
practitioner: "Practitioner",
|
|
27
|
+
"reset-password": "Reset password",
|
|
28
|
+
subtitle: "Request a password reset link",
|
|
29
|
+
title: "Reset password"
|
|
30
|
+
},
|
|
31
|
+
settings: {
|
|
32
|
+
"delete-account": "Delete account",
|
|
33
|
+
"delete-account-confirmation": "Are you sure you want to delete your account?",
|
|
34
|
+
logout: "Sign out",
|
|
35
|
+
"no-sessions": "No active sessions",
|
|
36
|
+
"sign-out-other-devices": "Sign out other devices"
|
|
37
|
+
},
|
|
38
|
+
"sign-in": {
|
|
39
|
+
apple: "Continue with Apple",
|
|
40
|
+
button: "Sign in",
|
|
41
|
+
"dont-have-account": "Don't have an account? Register",
|
|
42
|
+
email: "Email",
|
|
43
|
+
"forgot-password": "Forgot password?",
|
|
44
|
+
footer: "By continuing, you agree to our terms.",
|
|
45
|
+
google: "Continue with Google",
|
|
46
|
+
mfa: {
|
|
47
|
+
code: "Verification code",
|
|
48
|
+
verify: "Verify"
|
|
49
|
+
},
|
|
50
|
+
"or-login-with": "Or sign in with",
|
|
51
|
+
password: "Password",
|
|
52
|
+
subtitle: "Sign in to continue",
|
|
53
|
+
title: "Sign in"
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
if (typeof i18n.addResourceBundle === "function") {
|
|
57
|
+
i18n.addResourceBundle("en", "translation", defaultTranslation, true, false);
|
|
58
|
+
} else {
|
|
59
|
+
const resources = i18n.options.resources ?? {};
|
|
60
|
+
const englishResources = Object.assign({}, resources.en);
|
|
61
|
+
const existingTranslation = Object.assign({}, englishResources.translation);
|
|
62
|
+
i18n.options.resources = Object.assign({}, resources, {
|
|
63
|
+
en: Object.assign({}, englishResources, {
|
|
64
|
+
translation: Object.assign({}, defaultTranslation, existingTranslation)
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=default-translation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["i18n","defaultTranslation","common","cancel","delete","profile","save","register","button","name","subtitle","surname","title","accountType","email","patient","practitioner","settings","logout","apple","footer","google","mfa","code","verify","password","addResourceBundle","resources","options","englishResources","Object","assign","en","existingTranslation","translation"],"sourceRoot":"../../../../src","sources":["modules/auth/default-translation.ts"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,SAAS;AAE1B,MAAMC,kBAAkB,GAAG;EACzBC,MAAM,EAAE;IAAEC,MAAM,EAAE,QAAQ;IAAEC,MAAM,EAAE;EAAS,CAAC;EAC9CC,OAAO,EAAE;IAAEC,IAAI,EAAE;EAAO,CAAC;EACzBC,QAAQ,EAAE;IACR,sBAAsB,EAAE,kCAAkC;IAC1DC,MAAM,EAAE,gBAAgB;IACxBC,IAAI,EAAE,YAAY;IAClB,kBAAkB,EAAE,kBAAkB;IACtC,kBAAkB,EAAE,kBAAkB;IACtCC,QAAQ,EAAE,qBAAqB;IAC/BC,OAAO,EAAE,WAAW;IACpBC,KAAK,EAAE;EACT,CAAC;EACD,gBAAgB,EAAE;IAChBC,WAAW,EAAE,cAAc;IAC3BC,KAAK,EAAE,OAAO;IACdC,OAAO,EAAE,SAAS;IAClBC,YAAY,EAAE,cAAc;IAC5B,gBAAgB,EAAE,gBAAgB;IAClCN,QAAQ,EAAE,+BAA+B;IACzCE,KAAK,EAAE;EACT,CAAC;EACDK,QAAQ,EAAE;IACR,gBAAgB,EAAE,gBAAgB;IAClC,6BAA6B,EAC3B,+CAA+C;IACjDC,MAAM,EAAE,UAAU;IAClB,aAAa,EAAE,oBAAoB;IACnC,wBAAwB,EAA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, Portal, Text } from "react-native-paper";
|
|
|
9
9
|
import { SettingListItem } from "../../../setting/index.js";
|
|
10
10
|
import { useAppTheme } from "../../../theme/index.js";
|
|
11
11
|
import { notifySessionChanged } from "../../session/events.js";
|
|
12
|
+
import { signOutGoogleIfNeeded } from "../../utils/sign-out-google.js";
|
|
12
13
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
14
|
export const DeleteAccountButton = ({
|
|
14
15
|
title,
|
|
@@ -37,6 +38,7 @@ export const DeleteAccountButton = ({
|
|
|
37
38
|
wipe: true
|
|
38
39
|
});
|
|
39
40
|
await client.clearActiveLogin();
|
|
41
|
+
await signOutGoogleIfNeeded();
|
|
40
42
|
notifySessionChanged();
|
|
41
43
|
onSuccess?.();
|
|
42
44
|
} catch (error) {
|
package/lib/module/modules/auth/delete-account-button/components/delete-account-button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useClient","ProfileDelete","React","useTranslation","StyleSheet","View","Button","Modal","Portal","Text","SettingListItem","useAppTheme","notifySessionChanged","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","DeleteAccountButton","title","onError","onSuccess","onPress","props","theme","t","client","showDeleteModal","setShowDeleteModal","useState","handlePress","useCallback","hideModal","handleDeleteAccount","requestDeleteUser","days","wipe","clearActiveLogin","error","err","children","leftIcon","color","colors","visible","onDismiss","contentContainerStyle","backgroundColor","background","padding","spacing","borderRadius","marginHorizontal","gap","testID","undefined","variant","style","onSurfaceDisabled","styles","modalButtons","paddingTop","buttonWrapper","mode","textColor","onSurface","create","flexDirection","justifyContent","flex"],"sourceRoot":"../../../../../../src","sources":["modules/auth/delete-account-button/components/delete-account-button.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AACtC,SAASC,aAAa,QAAQ,wBAAwB;AACtD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,MAAM,EAAEC,KAAK,EAAEC,MAAM,EAAEC,IAAI,QAAQ,oBAAoB;AAEhE,SAASC,eAAe,QAAQ,2BAAkB;AAClD,SAASC,WAAW,QAAQ,yBAAgB;AAC5C,SAASC,oBAAoB,QAAQ,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;
|
|
1
|
+
{"version":3,"names":["useClient","ProfileDelete","React","useTranslation","StyleSheet","View","Button","Modal","Portal","Text","SettingListItem","useAppTheme","notifySessionChanged","signOutGoogleIfNeeded","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","DeleteAccountButton","title","onError","onSuccess","onPress","props","theme","t","client","showDeleteModal","setShowDeleteModal","useState","handlePress","useCallback","hideModal","handleDeleteAccount","requestDeleteUser","days","wipe","clearActiveLogin","error","err","children","leftIcon","color","colors","visible","onDismiss","contentContainerStyle","backgroundColor","background","padding","spacing","borderRadius","marginHorizontal","gap","testID","undefined","variant","style","onSurfaceDisabled","styles","modalButtons","paddingTop","buttonWrapper","mode","textColor","onSurface","create","flexDirection","justifyContent","flex"],"sourceRoot":"../../../../../../src","sources":["modules/auth/delete-account-button/components/delete-account-button.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AACtC,SAASC,aAAa,QAAQ,wBAAwB;AACtD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,MAAM,EAAEC,KAAK,EAAEC,MAAM,EAAEC,IAAI,QAAQ,oBAAoB;AAEhE,SAASC,eAAe,QAAQ,2BAAkB;AAClD,SAASC,WAAW,QAAQ,yBAAgB;AAC5C,SAASC,oBAAoB,QAAQ,yBAAsB;AAC3D,SAASC,qBAAqB,QAAQ,gCAA6B;AAAC,SAAAC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@ import { useClient } from "@ovok/core";
|
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { AppState } from "react-native";
|
|
6
6
|
import { notifySessionChanged, subscribeSessionChanges } from "../session/events.js";
|
|
7
|
+
const normalizeSession = session => {
|
|
8
|
+
const legacy = session;
|
|
9
|
+
return {
|
|
10
|
+
id: session.id,
|
|
11
|
+
authMethod: session.authMethod,
|
|
12
|
+
remoteAddress: session.remoteAddress ?? legacy.ip,
|
|
13
|
+
lastUpdated: session.lastUpdated ?? legacy.lastActiveAt ?? legacy.createdAt
|
|
14
|
+
};
|
|
15
|
+
};
|
|
7
16
|
/** Reads and manages the server-side sessions exposed by @ovok/core. */
|
|
8
|
-
export const useSession = (
|
|
17
|
+
export const useSession = ({
|
|
18
|
+
sessions: fetchSessions = true,
|
|
19
|
+
refreshOnForeground = true
|
|
20
|
+
} = {}) => {
|
|
9
21
|
const client = useClient();
|
|
10
22
|
const sessionClient = React.useMemo(() => client, [client]);
|
|
11
23
|
const mounted = React.useRef(true);
|
|
@@ -24,32 +36,49 @@ export const useSession = () => {
|
|
|
24
36
|
return;
|
|
25
37
|
}
|
|
26
38
|
try {
|
|
27
|
-
const [nextProfile, nextSessions] = await Promise.all([client.getProfileAsync(), sessionClient.getSessions()]);
|
|
39
|
+
const [nextProfile, nextSessions] = await Promise.all([client.getProfileAsync(), fetchSessions ? sessionClient.getSessions() : Promise.resolve([])]);
|
|
28
40
|
if (!mounted.current) {
|
|
29
41
|
return;
|
|
30
42
|
}
|
|
31
43
|
setStatus("authenticated");
|
|
32
44
|
setProfile(nextProfile);
|
|
33
|
-
setSessions(nextSessions);
|
|
45
|
+
setSessions(nextSessions.map(normalizeSession));
|
|
34
46
|
setError(undefined);
|
|
35
47
|
} catch (nextError) {
|
|
36
48
|
if (mounted.current) {
|
|
37
|
-
setStatus("
|
|
49
|
+
setStatus("signed-out");
|
|
50
|
+
setProfile(undefined);
|
|
51
|
+
setSessions([]);
|
|
38
52
|
setError(nextError instanceof Error ? nextError : new Error(String(nextError)));
|
|
39
53
|
}
|
|
40
54
|
}
|
|
41
|
-
}, [client, sessionClient]);
|
|
42
|
-
const
|
|
43
|
-
|
|
55
|
+
}, [client, fetchSessions, sessionClient]);
|
|
56
|
+
const refreshSessions = React.useCallback(async () => {
|
|
57
|
+
if (!client.getActiveLogin()) {
|
|
58
|
+
if (mounted.current) {
|
|
59
|
+
setSessions([]);
|
|
60
|
+
}
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const nextSessions = await sessionClient.getSessions();
|
|
44
64
|
if (mounted.current) {
|
|
45
|
-
|
|
46
|
-
setProfile(undefined);
|
|
47
|
-
setSessions([]);
|
|
48
|
-
setError(undefined);
|
|
65
|
+
setSessions(nextSessions.map(normalizeSession));
|
|
49
66
|
}
|
|
67
|
+
}, [client, sessionClient]);
|
|
68
|
+
const logout = React.useCallback(async () => {
|
|
69
|
+
try {
|
|
70
|
+
await sessionClient.logout();
|
|
71
|
+
} finally {
|
|
72
|
+
if (mounted.current) {
|
|
73
|
+
setStatus("signed-out");
|
|
74
|
+
setProfile(undefined);
|
|
75
|
+
setSessions([]);
|
|
76
|
+
setError(undefined);
|
|
77
|
+
}
|
|
50
78
|
|
|
51
|
-
|
|
52
|
-
|
|
79
|
+
// The core client owns the token; this tells other mounted hooks to refresh.
|
|
80
|
+
notifySessionChanged();
|
|
81
|
+
}
|
|
53
82
|
}, [sessionClient]);
|
|
54
83
|
const revokeSessions = React.useCallback(async option => {
|
|
55
84
|
await sessionClient.revokeSessions(option);
|
|
@@ -58,18 +87,18 @@ export const useSession = () => {
|
|
|
58
87
|
React.useEffect(() => {
|
|
59
88
|
mounted.current = true;
|
|
60
89
|
void refresh();
|
|
61
|
-
const subscription = AppState.addEventListener("change", nextState => {
|
|
90
|
+
const subscription = refreshOnForeground ? AppState.addEventListener("change", nextState => {
|
|
62
91
|
if (nextState === "active") {
|
|
63
92
|
void refresh();
|
|
64
93
|
}
|
|
65
|
-
});
|
|
94
|
+
}) : undefined;
|
|
66
95
|
const unsubscribe = subscribeSessionChanges(() => void refresh());
|
|
67
96
|
return () => {
|
|
68
97
|
mounted.current = false;
|
|
69
|
-
subscription
|
|
98
|
+
subscription?.remove();
|
|
70
99
|
unsubscribe();
|
|
71
100
|
};
|
|
72
|
-
}, [refresh]);
|
|
101
|
+
}, [refresh, refreshOnForeground]);
|
|
73
102
|
return {
|
|
74
103
|
status,
|
|
75
104
|
isAuthenticated: status === "authenticated",
|
|
@@ -78,6 +107,7 @@ export const useSession = () => {
|
|
|
78
107
|
loading: status === "loading",
|
|
79
108
|
error,
|
|
80
109
|
refresh,
|
|
110
|
+
refreshSessions,
|
|
81
111
|
logout,
|
|
82
112
|
revokeSessions
|
|
83
113
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useClient","React","AppState","notifySessionChanged","subscribeSessionChanges","useSession","client","sessionClient","useMemo","mounted","useRef","status","setStatus","useState","profile","setProfile","
|
|
1
|
+
{"version":3,"names":["useClient","React","AppState","notifySessionChanged","subscribeSessionChanges","normalizeSession","session","legacy","id","authMethod","remoteAddress","ip","lastUpdated","lastActiveAt","createdAt","useSession","sessions","fetchSessions","refreshOnForeground","client","sessionClient","useMemo","mounted","useRef","status","setStatus","useState","profile","setProfile","setSessions","error","setError","refresh","useCallback","getActiveLogin","current","undefined","nextProfile","nextSessions","Promise","all","getProfileAsync","getSessions","resolve","map","nextError","Error","String","refreshSessions","logout","revokeSessions","option","useEffect","subscription","addEventListener","nextState","unsubscribe","remove","isAuthenticated","loading"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-session.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AACtC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,oBAAoB,EAAEC,uBAAuB,QAAQ,sBAAmB;AAajF,MAAMC,gBAAgB,GAAIC,OAA0B,IAAwB;EAC1E,MAAMC,MAAM,GAAG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,EAAEd,mBAAmB,CAAC,CAAC;EAElC,OAAO;IACLM,MAAM;IACNkC,eAAe,EAAElC,MAAM,KAAK,eAAe;IAC3CG,OAAO;IACPX,QAAQ;IACR2C,OAAO,EAAEnC,MAAM,KAAK,SAAS;IAC7BM,KAAK;IACLE,OAAO;IACPgB,eAAe;IACfC,MAAM;IACNC;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/auth/index.tsx"],"mappings":";;AAAA,cAAc,oBAAW;AACzB,cAAc,qBAAY;AAC1B,cAAc,oBAAW;AACzB,cAAc,kCAAyB;AACvC,cAAc,0BAAiB;AAC/B,cAAc,2BAAkB;AAChC,cAAc,oCAAiC;AAC/C,cAAc,uBAAoB;AAClC,cAAc,wBAAqB;AACnC,cAAc,oBAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/auth/index.tsx"],"mappings":";;AAAA,OAAO,0BAAuB;AAE9B,cAAc,oBAAW;AACzB,cAAc,qBAAY;AAC1B,cAAc,oBAAW;AACzB,cAAc,kCAAyB;AACvC,cAAc,0BAAiB;AAC/B,cAAc,2BAAkB;AAChC,cAAc,oCAAiC;AAC/C,cAAc,uBAAoB;AAClC,cAAc,wBAAqB;AACnC,cAAc,oBAAW","ignoreList":[]}
|
|
@@ -4,30 +4,57 @@ import { useClient } from "@ovok/core";
|
|
|
4
4
|
import { LogoutCurve } from "iconsax-react-nativejs";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
|
+
import { Button as PaperButton } from "react-native-paper";
|
|
7
8
|
import { SettingListItem } from "../../../setting/index.js";
|
|
8
9
|
import { notifySessionChanged } from "../../session/events.js";
|
|
10
|
+
import { signOutGoogleIfNeeded } from "../../utils/sign-out-google.js";
|
|
9
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
12
|
export const LogoutButton = ({
|
|
11
13
|
title,
|
|
12
14
|
onError,
|
|
13
15
|
onSuccess,
|
|
14
16
|
onPress,
|
|
17
|
+
variant = "row",
|
|
18
|
+
loading = false,
|
|
19
|
+
Button = PaperButton,
|
|
15
20
|
...props
|
|
16
21
|
}) => {
|
|
17
22
|
const {
|
|
18
23
|
t
|
|
19
24
|
} = useTranslation();
|
|
20
25
|
const client = useClient();
|
|
26
|
+
const [busy, setBusy] = React.useState(false);
|
|
21
27
|
const handleLogout = React.useCallback(async () => {
|
|
28
|
+
if (busy) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
setBusy(true);
|
|
22
32
|
try {
|
|
23
33
|
onPress?.();
|
|
24
34
|
await client.logout();
|
|
25
|
-
|
|
26
|
-
onSuccess?.();
|
|
35
|
+
await signOutGoogleIfNeeded();
|
|
27
36
|
} catch (error) {
|
|
28
37
|
onError?.(error);
|
|
38
|
+
} finally {
|
|
39
|
+
notifySessionChanged();
|
|
40
|
+
onSuccess?.();
|
|
41
|
+
setBusy(false);
|
|
29
42
|
}
|
|
30
|
-
}, [client, onSuccess, onError, onPress]);
|
|
43
|
+
}, [busy, client, onSuccess, onError, onPress]);
|
|
44
|
+
if (variant === "button") {
|
|
45
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
46
|
+
testID: props.testID,
|
|
47
|
+
accessibilityLabel: props.accessibilityLabel,
|
|
48
|
+
mode: "contained",
|
|
49
|
+
loading: loading || busy,
|
|
50
|
+
disabled: props.disabled || loading || busy,
|
|
51
|
+
onPress: handleLogout,
|
|
52
|
+
style: [{
|
|
53
|
+
width: "100%"
|
|
54
|
+
}, props.style],
|
|
55
|
+
children: title || t("settings.logout")
|
|
56
|
+
});
|
|
57
|
+
}
|
|
31
58
|
return /*#__PURE__*/_jsx(SettingListItem, {
|
|
32
59
|
title: title || t("settings.logout"),
|
|
33
60
|
leftIcon: props => /*#__PURE__*/_jsx(LogoutCurve, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useClient","LogoutCurve","React","useTranslation","SettingListItem","notifySessionChanged","jsx","_jsx","LogoutButton","title","onError","onSuccess","onPress","props","t","client","handleLogout","useCallback","logout","error","leftIcon"],"sourceRoot":"../../../../../../src","sources":["modules/auth/logout-button/components/logout-button.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AACtC,SAASC,WAAW,QAAQ,wBAAwB;AACpD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;
|
|
1
|
+
{"version":3,"names":["useClient","LogoutCurve","React","useTranslation","Button","PaperButton","SettingListItem","notifySessionChanged","signOutGoogleIfNeeded","jsx","_jsx","LogoutButton","title","onError","onSuccess","onPress","variant","loading","props","t","client","busy","setBusy","useState","handleLogout","useCallback","logout","error","testID","accessibilityLabel","mode","disabled","style","width","children","leftIcon"],"sourceRoot":"../../../../../../src","sources":["modules/auth/logout-button/components/logout-button.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AACtC,SAASC,WAAW,QAAQ,wBAAwB;AACpD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,MAAM,IAAIC,WAAW,QAAQ,oBAAoB;AAE1D,SAASC,eAAe,QAAQ,2BAAkB;AAClD,SAASC,oBAAoB,QAAQ,yBAAsB;AAC3D,SAASC,qBAAqB,QAAQ,gCAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGpE,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC3BC,KAAK;EACLC,OAAO;EACPC,SAAS;EACTC,OAAO;EACPC,OAAO,GAAG,KAAK;EACfC,OAAO,GAAG,KAAK;EACfb,MAAM,GAAGC,WAAW;EACpB,GAAGa;AACc,CAAC,KAAK;EACvB,MAAM;IAAEC;EAAE,CAAC,GAAGhB,cAAc,CAAC,CAAC;EAC9B,MAAMiB,MAAM,GAAGpB,SAAS,CAAC,CAAC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AW;MAAA,GAAKiB;IAAK,CAAG,CAAE;IAAA,GAC5CA,KAAK;IACTH,OAAO,EAAES;EAAa,CACvB,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTranslation","StyleSheet","View","Button","HelperText","Text","Conditional","useAppTheme","useProfileForm","ProfileFormFieldComponent","jsx","_jsx","jsxs","_jsxs","ProfileForm","style","fields","testID","theme","t","isSubmitting","errors","handleSubmit","styles","container","padding","spacing","children","gap","map","field","name","mode","onPress","button","loading","buttonText","color","colors","onPrimary","condition","submit","type","create","flex","input","width","
|
|
1
|
+
{"version":3,"names":["useTranslation","StyleSheet","View","Button","HelperText","Text","Conditional","useAppTheme","useProfileForm","ProfileFormFieldComponent","jsx","_jsx","jsxs","_jsxs","ProfileForm","style","fields","testID","theme","t","isSubmitting","errors","handleSubmit","styles","container","padding","spacing","children","gap","map","field","name","mode","onPress","button","loading","buttonText","color","colors","onPrimary","condition","submit","type","create","flex","input","width","fontSize"],"sourceRoot":"../../../../../../src","sources":["modules/auth/profile/components/profile-form.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,MAAM,EAAEC,UAAU,EAAEC,IAAI,QAAQ,oBAAoB;AAE7D,SAASC,WAAW,QAAQ,2BAAkB;AAC9C,SAASC,WAAW,QAAQ,yBAAgB;AAC5C,SAASC,cAAc,QAAQ,8BAA2B;AAG1D,SAASC,yBAAyB,QAAQ,mCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE3E,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAC1BC,KAAK;EACLC,MAAM;EACNC;AACkC,CAAC,KAAK;EACxC,MAAMC,KAAK,GAAGX,WAAW,CAAC,CAAC;EAE3B,MAAM;IAAEY;EAAE,CAAC,GAAGnB,cAAc,CAAC,CAAC;EAE9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C,CAACE,MAAM,CAACoB,MAAgB;QAAC,CAAa;MAAC,CACvD,CAAC;IAAA,CACV,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMlB,MAAM,GAAGtB,UAAU,CAAC0C,MAAM,CAAC;EAC/BnB,SAAS,EAAE;IACToB,IAAI,EAAE;EACR,CAAC;EAEDC,KAAK,EAAE;IACLC,KAAK,EAAE;EACT,CAAC;EAEDZ,MAAM,EAAE;IACNY,KAAK,EAAE;EACT,CAAC;EAEDpB,OAAO,EAAE;IACPkB,IAAI,EAAE;EACR,CAAC;EAEDR,UAAU,EAAE;IACVW,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -51,8 +51,8 @@ export const Inputs = ({
|
|
|
51
51
|
context: RegisterFormContext,
|
|
52
52
|
...inputProps,
|
|
53
53
|
inputRef: nameRef,
|
|
54
|
-
autoFocus: !defaultValues?.name,
|
|
55
|
-
returnKeyType: "next",
|
|
54
|
+
autoFocus: inputProps?.autoFocus ?? !defaultValues?.name,
|
|
55
|
+
returnKeyType: inputProps?.returnKeyType ?? "next",
|
|
56
56
|
onSubmitEditing: event => {
|
|
57
57
|
inputProps?.onSubmitEditing?.(event);
|
|
58
58
|
submitOrFocus(surnameRef, emailRef, passwordRef, passwordConfirmRef);
|
|
@@ -67,8 +67,8 @@ export const Inputs = ({
|
|
|
67
67
|
context: RegisterFormContext,
|
|
68
68
|
...inputProps,
|
|
69
69
|
inputRef: surnameRef,
|
|
70
|
-
autoFocus: !!defaultValues?.name && !defaultValues?.surname,
|
|
71
|
-
returnKeyType: "next",
|
|
70
|
+
autoFocus: inputProps?.autoFocus ?? (!!defaultValues?.name && !defaultValues?.surname),
|
|
71
|
+
returnKeyType: inputProps?.returnKeyType ?? "next",
|
|
72
72
|
onSubmitEditing: event => {
|
|
73
73
|
inputProps?.onSubmitEditing?.(event);
|
|
74
74
|
submitOrFocus(emailRef, passwordRef, passwordConfirmRef);
|
|
@@ -85,8 +85,8 @@ export const Inputs = ({
|
|
|
85
85
|
context: RegisterFormContext,
|
|
86
86
|
...inputProps,
|
|
87
87
|
inputRef: emailRef,
|
|
88
|
-
autoFocus: !!defaultValues?.name && !!defaultValues?.surname,
|
|
89
|
-
returnKeyType: "next",
|
|
88
|
+
autoFocus: inputProps?.autoFocus ?? (!!defaultValues?.name && !!defaultValues?.surname),
|
|
89
|
+
returnKeyType: inputProps?.returnKeyType ?? "next",
|
|
90
90
|
onSubmitEditing: event => {
|
|
91
91
|
inputProps?.onSubmitEditing?.(event);
|
|
92
92
|
submitOrFocus(passwordRef, passwordConfirmRef);
|
|
@@ -111,7 +111,8 @@ export const Inputs = ({
|
|
|
111
111
|
}),
|
|
112
112
|
...inputProps,
|
|
113
113
|
inputRef: passwordRef,
|
|
114
|
-
|
|
114
|
+
autoFocus: inputProps?.autoFocus ?? (!!defaultValues?.name && !!defaultValues?.surname && !!defaultValues?.email && !defaultValues?.password),
|
|
115
|
+
returnKeyType: inputProps?.returnKeyType ?? (defaultValues?.passwordConfirm || defaultValues?.password ? "done" : "next"),
|
|
115
116
|
onSubmitEditing: event => {
|
|
116
117
|
inputProps?.onSubmitEditing?.(event);
|
|
117
118
|
submitOrFocus(passwordConfirmRef);
|
|
@@ -136,7 +137,8 @@ export const Inputs = ({
|
|
|
136
137
|
}),
|
|
137
138
|
...inputProps,
|
|
138
139
|
inputRef: passwordConfirmRef,
|
|
139
|
-
|
|
140
|
+
autoFocus: inputProps?.autoFocus ?? (!!defaultValues?.name && !!defaultValues?.surname && !!defaultValues?.email && !!defaultValues?.password && !defaultValues?.passwordConfirm),
|
|
141
|
+
returnKeyType: inputProps?.returnKeyType ?? "done",
|
|
140
142
|
onSubmitEditing: event => {
|
|
141
143
|
inputProps?.onSubmitEditing?.(event);
|
|
142
144
|
void handleSubmit();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Eye","EyeSlash","React","useTranslation","View","TextInput","Conditional","FormField","useAppTheme","RegisterFormContext","useRegisterForm","jsx","_jsx","jsxs","_jsxs","Inputs","testID","inputProps","style","t","theme","defaultValues","handleSubmit","showPassword","setShowPassword","useState","showPasswordConfirm","setShowPasswordConfirm","nameRef","useRef","surnameRef","emailRef","passwordRef","passwordConfirmRef","submitOrFocus","useCallback","refs","next","find","ref","current","focus","gap","spacing","children","condition","name","label","context","inputRef","autoFocus","returnKeyType","onSubmitEditing","event","containerStyle","surname","email","keyboardType","autoCapitalize","password","secureTextEntry","maxLength","right","Icon","icon","props","onPress","prev","passwordConfirm"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/register/components/form/inputs.tsx"],"mappings":";;AAAA,SAASA,GAAG,EAAEC,QAAQ,QAAQ,wBAAwB;AACtD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,WAAW,EAAEC,SAAS,QAAQ,8BAAqB;AAC5D,SAASC,WAAW,QAAQ,4BAAmB;AAC/C,SAASC,mBAAmB,QAAQ,yCAAsC;AAC1E,SAASC,eAAe,QAAQ,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGhE,OAAO,MAAMC,MAAM,GAAGA,CAAC;EAAEC,MAAM;EAAEC,UAAU;EAAEC;AAAuB,CAAC,KAAK;EACxE,MAAM;IAAEC;EAAE,CAAC,GAAGhB,cAAc,CAAC,CAAC;EAC9B,MAAMiB,KAAK,GAAGZ,WAAW,CAAC,CAAC;EAE3B,MAAM;IAAEa,aAAa;IAAEC;EAAa,CAAC,GAAGZ,eAAe,CAAC,CAAC;EAEzD,MAAM,CAACa,YAAY,EAAEC,eAAe,CAAC,GAAGtB,KAAK,CAACuB,QAAQ,CAAC,KAAK,CAAC;EAC7D,MAAM,CAACC,mBAAmB,EAAEC,sBAAsB,CAAC,GAAGzB,KAAK,CAACuB,QAAQ,CAAC,KAAK,CAAC;EAC3E,MAAMG,OAAO,GAAG1B,KAAK,CAAC2B,MAAM,CAAwB,IAAI,CAAC;EACzD,MAAMC,UAAU,GAAG5B,KAAK,CAAC2B,MAAM,CAAwB,IAAI,CAAC;EAC5D,MAAME,QAAQ,GAAG7B,KAAK,CAAC2B,MAAM,CAAwB,IAAI,CAAC;EAC1D,MAAMG,WAAW,GAAG9B,KAAK,CAAC2B,MAAM,CAAwB,IAAI,CAAC;EAE7D,MAAMI,kBAAkB,GAAG/B,KAAK,CAAC2B,MAAM,CAAwB,IAAI,CAAC;EAEpE,MAAMK,aAAa,GAAGhC,KAAK,CAACiC,WAAW,CACrC,CAAC,GAAGC,IAAqD,KAAK;IAC5D,MAAMC,IAAI,GAAGD,IAAI,CAACE,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACC,OAAO,CAAC,EAAEA,OAAO;IAErD,IAAIH,IAAI,EAAE;MACRA,IAAI,CAACI,KAAK,CAAC,CAAC;IACd,CAAC,MAAM;MACL,KAAKnB,YAAY,CAAC,CAAC;IACrB;EACF,CAAC,EACD,CAACA,YAAY,CACf,CAAC;EAED,oBACER,KAAA,CAACV,IAAI;IACHc,KAAK,EAAE,CACL;MACEwB,GAAG,EAAEtB,KAAK,CAACuB,OAAO,CAAC,CAAC;IACtB,CAAC,EACDzB,KAAK,CACL;IACFF,MAAM,EAAEA,MAAO;IAAA4B,QAAA,gBAEfhC,IAAA,CAACN,WAAW;MAACuC,SAAS,EAAE,CAACxB,aAAa,EAAEyB,IAAK;MAAAF,QAAA,eAC3ChC,IAAA,CAACL,SAAS;QACRwC,KAAK,EAAE5B,CAAC,CAAC,eAAe,CAAE;QAC1B2B,IAAI,EAAC,MAAM;QACXE,OAAO,EAAEvC,mBAAoB;QAAA,GACzBQ,UAAU;QACdgC,QAAQ,EAAErB,OAAQ;QAClBsB,SAAS,
|
|
1
|
+
{"version":3,"names":["Eye","EyeSlash","React","useTranslation","View","TextInput","Conditional","FormField","useAppTheme","RegisterFormContext","useRegisterForm","jsx","_jsx","jsxs","_jsxs","Inputs","testID","inputProps","style","t","theme","defaultValues","handleSubmit","showPassword","setShowPassword","useState","showPasswordConfirm","setShowPasswordConfirm","nameRef","useRef","surnameRef","emailRef","passwordRef","passwordConfirmRef","submitOrFocus","useCallback","refs","next","find","ref","current","focus","gap","spacing","children","condition","name","label","context","inputRef","autoFocus","returnKeyType","onSubmitEditing","event","containerStyle","surname","email","keyboardType","autoCapitalize","password","secureTextEntry","maxLength","right","Icon","icon","props","onPress","prev","passwordConfirm"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/register/components/form/inputs.tsx"],"mappings":";;AAAA,SAASA,GAAG,EAAEC,QAAQ,QAAQ,wBAAwB;AACtD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,SAAS,QAAQ,oBAAoB;AAE9C,SAASC,WAAW,EAAEC,SAAS,QAAQ,8BAAqB;AAC5D,SAASC,WAAW,QAAQ,4BAAmB;AAC/C,SAASC,mBAAmB,QAAQ,yCAAsC;AAC1E,SAASC,eAAe,QAAQ,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGhE,OAAO,MAAMC,MAAM,GAAGA,CAAC;EAAEC,MAAM;EAAEC,UAAU;EAAEC;AAAuB,CAAC,KAAK;EACxE,MAAM;IAAEC;EAAE,CAAC,GAAGhB,cAAc,CAAC,CAAC;EAC9B,MAAMiB,KAAK,GAAGZ,WAAW,CAAC,CAAC;EAE3B,MAAM;IAAEa,aAAa;IAAEC;EAAa,CAAC,GAAGZ,eAAe,CAAC,CAAC;EAEzD,MAAM,CAACa,YAAY,EAAEC,eAAe,CAAC,GAAGtB,KAAK,CAACuB,QAAQ,CAAC,KAAK,CAAC;EAC7D,MAAM,CAACC,mBAAmB,EAAEC,sBAAsB,CAAC,GAAGzB,KAAK,CAACu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CAAC,CAACnC,aAAa,EAAEsC,QAAQ,IACzB,CAACtC,aAAa,EAAE+C,eAAe,CAC/B;QACFjB,aAAa,EAAElC,UAAU,EAAEkC,aAAa,IAAI,MAAO;QACnDC,eAAe,EAAGC,KAAK,IAAK;UAC1BpC,UAAU,EAAEmC,eAAe,GAAGC,KAAK,CAAC;UACpC,KAAK/B,YAAY,CAAC,CAAC;QACrB,CAAE;QACFJ,KAAK,EAAE,CAACD,UAAU,EAAEqC,cAAc;MAAE,CACrC;IAAC,CACS,CAAC;EAAA,CACV,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -39,7 +39,8 @@ export const RegisterButton = ({
|
|
|
39
39
|
testID: `${testID}-button`,
|
|
40
40
|
children: /*#__PURE__*/_jsx(Text, {
|
|
41
41
|
style: [styles.buttonText, {
|
|
42
|
-
color: theme.colors.onPrimary
|
|
42
|
+
color: theme.colors.onPrimary,
|
|
43
|
+
fontFamily: theme.fonts.labelLarge.fontFamily
|
|
43
44
|
}],
|
|
44
45
|
children: t("register.button")
|
|
45
46
|
})
|
|
@@ -59,7 +60,6 @@ const styles = StyleSheet.create({
|
|
|
59
60
|
width: "100%"
|
|
60
61
|
},
|
|
61
62
|
buttonText: {
|
|
62
|
-
fontFamily: "DMSans_700Bold",
|
|
63
63
|
fontSize: 16
|
|
64
64
|
}
|
|
65
65
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTranslation","StyleSheet","View","Button","HelperText","Text","Conditional","useAppTheme","useRateLimitCooldown","useRegisterForm","jsx","_jsx","jsxs","_jsxs","RegisterButton","containerStyle","helperTextProps","testID","testIDProp","props","theme","t","isSubmitting","errors","status","handleSubmit","rateLimitRemainingMs","rateLimitUntil","style","children","mode","onPress","disabled","styles","button","loading","buttonText","color","colors","onPrimary","condition","submit","type","create","width","
|
|
1
|
+
{"version":3,"names":["useTranslation","StyleSheet","View","Button","HelperText","Text","Conditional","useAppTheme","useRateLimitCooldown","useRegisterForm","jsx","_jsx","jsxs","_jsxs","RegisterButton","containerStyle","helperTextProps","testID","testIDProp","props","theme","t","isSubmitting","errors","status","handleSubmit","rateLimitRemainingMs","rateLimitUntil","style","children","mode","onPress","disabled","styles","button","loading","buttonText","color","colors","onPrimary","fontFamily","fonts","labelLarge","condition","submit","type","create","width","fontSize"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/register/components/form/register-button.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,MAAM,EAAEC,UAAU,EAAEC,IAAI,QAAQ,oBAAoB;AAE7D,SAASC,WAAW,QAAQ,8BAAqB;AACjD,SAASC,WAAW,QAAQ,4BAAmB;AAC/C,SAASC,oBAAoB,QAAQ,2CAAwC;AAC7E,SAASC,eAAe,QAAQ,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGhE,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,cAAc;EACdC,eAAe;EACfC,MAAM,EAAEC,UAAU;EAClB,GAAGC;AACgB,CAAC,KAAK;EACzB,MAAMC,KAAK,GAAGb,WAAW,CAAC,CAAC;EAC3B,MAAM;IAAEc;EAAE,CAAC,GAAGrB,cAAc,CAAC,CAAC;EAC9B,MAAM;IAAEsB,YAAY;IAAEC,MAAM;IAAEC,MAAM;IAAEC;EAAa,CAAC,GAAGhB,eAAe,CAAC,CAAC;EAExE,MAAMiB,oBAAoB,GAAGlB,oBAAoB,CAC9CgB,MAAM,EAA8CG,cACvD,CAAC;EAED,MAAMV,MAAM,GAAGC,UAAU,IAAI,iBAAiB;EAE9C,oBACEL,KAAA,CAACX,IAAI;IAAC0B,KAAK,EAAE,CAACb,cAAc,CAAE;IAACE,MAAM,EAAE,GAAGA,MAAM,YAAa;IAAAY,QAAA,gBAC3DlB,IAAA,CAACR,MAAM;MACL2B,IAAI,EAAC,WAAW;MAAA,GACZX,KAAK;MACTY,OAAO,EAAEA,CAAA,KAAMN,YAAY,CAAC,CAAE;MAC9BO,QAAQ,EAAEb,KAAK,CAACa,QAAQ,IAAIV,YAAY,IAAII,oBAAoB,GAAG,CAAE;MACrEE,KAAK,EAAE,CAACK,MAAM,CAACC,MAAM,EAAEf,KAAK,CAACS,KAAK,CAAE;MACpCO,OAAO,EAAEb,YAAa;MACtBL,MAAM,EAAE,GAAGA,MAAM,SAAU;MAAAY,QAAA,eAE3BlB,IAAA,CAACN,IAAI;QAACuB,KAAK,EAAE,CAACK,MAAM,CAACG,UAAU,EAAE;UAAEC,KAAK,EAAEjB,KAAK,CAACkB,MAAM,CAACC,SAAS;UAAEC,UAAU,EAAEpB,KAAK,CAACqB,KAAK,CAACC,UAAU,CAACF;QAAW,CAAC,CAAE;QAAAX,QAAA,EAEhHR,CAAC,CAAC,iBAAiB;MAAC,CACjB;IAAC,CACD,CAAC,eAETV,IAAA,CAACL,WAAW;MAACqC,SAAS,EAAE,CAAC,CAACpB,MAAM,CAACqB,MAAO;MAAAf,QAAA,eACtClB,IAAA,CAACP,UAAU;QACTyC,IAAI,EAAC,OAAO;QAAA,GACR7B,eAAe;QACnBC,MAAM,EAAE,GAAGA,MAAM,cAAe;QAAAY,QAAA,EAE/BR,CAAC,CAACE,MAAM,CAACqB,MAAgB;MAAC,CACjB;IAAC,CACF,CAAC;EAAA,CACV,CAAC;AAEX,CAAC;AAED,MAAMX,MAAM,GAAGhC,UAAU,CAAC6C,MAAM,CAAC;EAC/BZ,MAAM,EAAE;IACNa,KAAK,EAAE;EACT,CAAC;EACDX,UAAU,EAAE;IACVY,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useTranslation","StyleSheet","Text","useAppTheme","jsx","_jsx","Description","children","props","t","colors","style","styles","description","color","onSurfaceDisabled","create","fontSize","
|
|
1
|
+
{"version":3,"names":["React","useTranslation","StyleSheet","Text","useAppTheme","jsx","_jsx","Description","children","props","t","colors","style","styles","description","color","onSurfaceDisabled","create","fontSize","lineHeight"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/register/components/header/description.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAA0BC,IAAI,QAAmB,oBAAoB;AAErE,SAASC,WAAW,QAAQ,4BAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAMhD,OAAO,MAAMC,WAAW,GAAGA,CAA4B;EACrDC,QAAQ;EACR,GAAGC;AACgB,CAAC,KAAK;EACzB,MAAM;IAAEC;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC;EAC9B,MAAM;IAAEU;EAAO,CAAC,GAAGP,WAAW,CAAC,CAAC;EAEhC,oBACEE,IAAA,CAACH,IAAI;IAAA,GACCM,KAAK;IACTG,KAAK,EAAE,CACLC,MAAM,CAACC,WAAW,EAClB;MAAEC,KAAK,EAAEJ,MAAM,CAACK;IAAkB,CAAC,EACnCP,KAAK,CAACG,KAAK,CACX;IAAAJ,QAAA,EAEDA,QAAQ,IAAIE,CAAC,CAAC,mBAAmB;EAAC,CAC/B,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGX,UAAU,CAACe,MAAM,CAAC;EAC/BH,WAAW,EAAE;IACXI,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { StyleSheet } from "react-native";
|
|
6
6
|
import { Text } from "react-native-paper";
|
|
7
|
+
import { useAppTheme } from "../../../../theme/index.js";
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
export const Title = ({
|
|
9
10
|
children,
|
|
@@ -12,16 +13,18 @@ export const Title = ({
|
|
|
12
13
|
const {
|
|
13
14
|
t
|
|
14
15
|
} = useTranslation();
|
|
16
|
+
const theme = useAppTheme();
|
|
15
17
|
return /*#__PURE__*/_jsx(Text, {
|
|
16
18
|
...props,
|
|
17
|
-
style: [styles.title,
|
|
19
|
+
style: [styles.title, {
|
|
20
|
+
fontFamily: theme.fonts.titleLarge.fontFamily
|
|
21
|
+
}, props.style],
|
|
18
22
|
children: children || t("register.title")
|
|
19
23
|
});
|
|
20
24
|
};
|
|
21
25
|
const styles = StyleSheet.create({
|
|
22
26
|
title: {
|
|
23
27
|
fontSize: 24,
|
|
24
|
-
fontFamily: "DMSans_700Bold",
|
|
25
28
|
fontWeight: "600",
|
|
26
29
|
lineHeight: 38.4
|
|
27
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useTranslation","StyleSheet","Text","jsx","_jsx","Title","children","props","t","style","styles","title","
|
|
1
|
+
{"version":3,"names":["React","useTranslation","StyleSheet","Text","useAppTheme","jsx","_jsx","Title","children","props","t","theme","style","styles","title","fontFamily","fonts","titleLarge","create","fontSize","fontWeight","lineHeight"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/register/components/header/title.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAA0BC,IAAI,QAAmB,oBAAoB;AAErE,SAASC,WAAW,QAAQ,4BAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAMhD,OAAO,MAAMC,KAAK,GAAGA,CAA4B;EAC/CC,QAAQ;EACR,GAAGC;AACU,CAAC,KAAK;EACnB,MAAM;IAAEC;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC;EAC9B,MAAMU,KAAK,GAAGP,WAAW,CAAC,CAAC;EAE3B,oBACEE,IAAA,CAACH,IAAI;IAAA,GAAKM,KAAK;IAAEG,KAAK,EAAE,CAACC,MAAM,CAACC,KAAK,EAAE;MAAEC,UAAU,EAAEJ,KAAK,CAACK,KAAK,CAACC,UAAU,CAACF;IAAW,CAAC,EAAEN,KAAK,CAACG,KAAK,CAAE;IAAAJ,QAAA,EACpGA,QAAQ,IAAIE,CAAC,CAAC,gBAAgB;EAAC,CAC5B,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGX,UAAU,CAACgB,MAAM,CAAC;EAC/BJ,KAAK,EAAE;IACLK,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -15,7 +15,9 @@ export const LoginLink = ({
|
|
|
15
15
|
const theme = useAppTheme();
|
|
16
16
|
return /*#__PURE__*/_jsx(Text, {
|
|
17
17
|
...props,
|
|
18
|
-
style: [styles.text,
|
|
18
|
+
style: [styles.text, {
|
|
19
|
+
fontFamily: theme.fonts.titleLarge.fontFamily
|
|
20
|
+
}, props.style],
|
|
19
21
|
children: /*#__PURE__*/_jsx(Trans, {
|
|
20
22
|
i18nKey: "register.already-have-account",
|
|
21
23
|
components: {
|
|
@@ -34,8 +36,7 @@ export const LoginLink = ({
|
|
|
34
36
|
const styles = StyleSheet.create({
|
|
35
37
|
text: {
|
|
36
38
|
textAlign: "center",
|
|
37
|
-
fontSize: 14
|
|
38
|
-
fontFamily: "DMSans_700Bold"
|
|
39
|
+
fontSize: 14
|
|
39
40
|
}
|
|
40
41
|
});
|
|
41
42
|
//# sourceMappingURL=login-link.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Trans","useTranslation","StyleSheet","Text","useAppTheme","jsx","_jsx","LoginLink","onPress","props","t","theme","style","styles","text","children","i18nKey","components","login","color","colors","primary","fontWeight","create","textAlign","fontSize"
|
|
1
|
+
{"version":3,"names":["Trans","useTranslation","StyleSheet","Text","useAppTheme","jsx","_jsx","LoginLink","onPress","props","t","theme","style","styles","text","fontFamily","fonts","titleLarge","children","i18nKey","components","login","color","colors","primary","fontWeight","create","textAlign","fontSize"],"sourceRoot":"../../../../../../src","sources":["modules/auth/register/components/login-link.tsx"],"mappings":";;AAAA,SAASA,KAAK,EAAEC,cAAc,QAAQ,eAAe;AACrD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAAoBC,IAAI,QAAyB,oBAAoB;AAErE,SAASC,WAAW,QAAQ,yBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE7C,OAAO,MAAMC,SAAS,GAAGA,CAAmC;EAC1DC,OAAO;EACP,GAAGC;AACkC,CAAC,KAAK;EAC3C,MAAM;IAAEC;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC;EAC9B,MAAMU,KAAK,GAAGP,WAAW,CAAC,CAAC;EAE3B,oBACEE,IAAA,CAACH,IAAI;IAAA,GACCM,KAAK;IACTG,KAAK,EAAE,CACLC,MAAM,CAACC,IAAI,EACX;MAAEC,UAAU,EAAEJ,KAAK,CAACK,KAAK,CAACC,UAAU,CAACF;IAAW,CAAC,EACjDN,KAAK,CAACG,KAAK,CACX;IAAAM,QAAA,eAEFZ,IAAA,CAACN,KAAK;MACJmB,OAAO,EAAC,+BAA+B;MACvCC,UAAU,EAAE;QACVC,KAAK,eACHf,IAAA,CAACH,IAAI;UACHS,KAAK,EAAE,CAAC;YAAEU,KAAK,EAAEX,KAAK,CAACY,MAAM,CAACC,OAAO;YAAEC,UAAU,EAAE;UAAM,CAAC,CAAE;UAC5DjB,OAAO,EAAEA,OAAQ;UAAAU,QAAA,EAEhBR,CAAC,CAAC,eAAe;QAAC,CACf;MAEV;IAAE,CACH;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGX,UAAU,CAACwB,MAAM,CAAC;EAC/BZ,IAAI,EAAE;IACJa,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useTranslation","StyleSheet","Text","View","useAppTheme","jsx","_jsx","jsxs","_jsxs","RegisterWithSeparator","textColor","lineColor","testID","t","theme","style","styles","separator","gap","spacing","children","separatorLine","backgroundColor","colors","outlineVariant","text","color","onSurfaceDisabled","create","flexDirection","alignItems","justifyContent","flex","height","fontWeight"
|
|
1
|
+
{"version":3,"names":["useTranslation","StyleSheet","Text","View","useAppTheme","jsx","_jsx","jsxs","_jsxs","RegisterWithSeparator","textColor","lineColor","testID","t","theme","style","styles","separator","gap","spacing","children","separatorLine","backgroundColor","colors","outlineVariant","text","color","onSurfaceDisabled","create","flexDirection","alignItems","justifyContent","flex","height","fontWeight"],"sourceRoot":"../../../../../../src","sources":["modules/auth/register/components/register-with-separator.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAErD,SAASC,WAAW,QAAQ,yBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAK7C,OAAO,MAAMC,qBAAqB,GAAGA,CAAC;EACpCC,SAAS;EACTC,SAAS;EACTC;AAC0B,CAAC,KAAK;EAChC,MAAM;IAAEC;EAAE,CAAC,GAAGb,cAAc,CAAC,CAAC;EAC9B,MAAMc,KAAK,GAAGV,WAAW,CAAC,CAAC;EAE3B,oBACEI,KAAA,CAACL,IAAI;IAACY,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAE;MAAEC,GAAG,EAAEJ,KAAK,CAACK,OAAO,CAAC,CAAC;IAAE,CAAC,CAAE;IAACP,MAAM,EAAEA,MAAO;IAAAQ,QAAA,gBACzEd,IAAA,CAACH,IAAI;MACHY,KAAK,EAAE,CACLC,MAAM,CAACK,aAAa,EACpB;QACEC,eAAe,EAAEX,SAAS,IAAIG,KAAK,CAACS,MAAM,CAACC;MAC7C,CAAC,CACD;MACFZ,MAAM,EAAE,GAAGA,MAAM;IAAQ,CAC1B,CAAC,eACFN,I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