@ovok/native 1.6.1 → 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/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 +4 -2
- 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 +22 -6
- 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 +27 -1
- 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/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 +4 -1
- 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 +5 -3
- 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/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/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-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 +37 -14
- 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 +17 -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 +52 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-paired-devices.js +20 -11
- 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/index.js +11 -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 +5 -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 +56 -16
- 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 +0 -1
- 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 +22 -2
- 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 +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/types/bluetooth-error.js +4 -0
- 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/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/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/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 +1 -0
- 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/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/image/components/optimized-image.js +18 -0
- 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/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/ui/components/background-sync-setting.js +11 -5
- package/lib/commonjs/modules/ui/components/background-sync-setting.js.map +1 -1
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js +19 -6
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/commonjs/modules/ui/components/health-import-card.js +15 -3
- package/lib/commonjs/modules/ui/components/health-import-card.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 +75 -31
- package/lib/commonjs/modules/ui/components/pairing-flow.js.map +1 -1
- package/lib/commonjs/modules/ui/components/supported-devices-catalog-list.js +3 -4
- package/lib/commonjs/modules/ui/components/supported-devices-catalog-list.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 +3 -0
- package/lib/commonjs/modules/ui/use-ovok-ui.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 +22 -6
- 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 +27 -1
- 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/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 +4 -1
- 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 +5 -3
- 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/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/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-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 +37 -14
- 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 +17 -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 +52 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-paired-devices.js +20 -11
- 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/index.js +1 -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 +5 -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 +56 -16
- 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 +0 -1
- 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 +22 -2
- 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 +1 -0
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
- package/lib/module/modules/bt-management/types/bluetooth-error.js +4 -0
- 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/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/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/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 +1 -0
- 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/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/image/components/optimized-image.js +18 -0
- 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/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/ui/components/background-sync-setting.js +11 -5
- package/lib/module/modules/ui/components/background-sync-setting.js.map +1 -1
- package/lib/module/modules/ui/components/bluetooth-state-notice.js +19 -6
- package/lib/module/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/module/modules/ui/components/health-import-card.js +15 -3
- package/lib/module/modules/ui/components/health-import-card.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 +78 -34
- package/lib/module/modules/ui/components/pairing-flow.js.map +1 -1
- package/lib/module/modules/ui/components/supported-devices-catalog-list.js +4 -5
- package/lib/module/modules/ui/components/supported-devices-catalog-list.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 +4 -1
- package/lib/module/modules/ui/use-ovok-ui.js.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/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/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/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/bt-device/constants/supported-devices.d.ts.map +1 -1
- 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/hooks/runtime-context.d.ts +6 -2
- 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-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/index.d.ts +1 -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 +6 -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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/bt-device/constants/supported-devices.d.ts.map +1 -1
- 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/hooks/runtime-context.d.ts +6 -2
- 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-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/index.d.ts +1 -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 +6 -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/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/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/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/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/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/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/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/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/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/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/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 +2 -2
|
@@ -7,15 +7,46 @@ exports.generateTheme = void 0;
|
|
|
7
7
|
var _reactNativePaper = require("react-native-paper");
|
|
8
8
|
const generateTheme = theme => {
|
|
9
9
|
const base = theme.dark ? _reactNativePaper.MD3DarkTheme : _reactNativePaper.MD3LightTheme;
|
|
10
|
+
const spacingScale = typeof theme.spacingMultiplier === "number" ? undefined : theme.spacingMultiplier;
|
|
11
|
+
const borderRadiusScale = typeof theme.borderRadiusMultiplier === "number" ? undefined : theme.borderRadiusMultiplier;
|
|
12
|
+
const fontFamily = fontWeight => {
|
|
13
|
+
switch (fontWeight) {
|
|
14
|
+
case "700":
|
|
15
|
+
return "DMSans_700Bold";
|
|
16
|
+
case "500":
|
|
17
|
+
return "DMSans_500Medium";
|
|
18
|
+
default:
|
|
19
|
+
return "DMSans_400Regular";
|
|
20
|
+
}
|
|
21
|
+
};
|
|
10
22
|
return {
|
|
11
23
|
...base,
|
|
12
24
|
colors: {
|
|
13
25
|
...base.colors,
|
|
14
|
-
...theme.colors
|
|
26
|
+
...theme.colors,
|
|
27
|
+
...theme.extraColors
|
|
28
|
+
},
|
|
29
|
+
roundness: typeof theme.borderRadiusMultiplier === "number" ? theme.borderRadiusMultiplier : theme.borderRadiusMultiplier.md ?? theme.borderRadiusMultiplier.medium ?? 4,
|
|
30
|
+
fonts: {
|
|
31
|
+
...Object.fromEntries(Object.entries(base.fonts).map(([key, value]) => {
|
|
32
|
+
const family = /^(display|headline|title)/.test(key) ? theme.fonts?.display : theme.fonts?.body;
|
|
33
|
+
const defaultFamily = key === "titleLarge" ? "DMSans_700Bold" : key === "headlineSmall" || key === "bodyMedium" ? value.fontFamily : fontFamily(value.fontWeight);
|
|
34
|
+
return [key, {
|
|
35
|
+
...value,
|
|
36
|
+
fontFamily: family ?? defaultFamily
|
|
37
|
+
}];
|
|
38
|
+
})),
|
|
39
|
+
...(theme.fonts?.mono ? {
|
|
40
|
+
mono: {
|
|
41
|
+
...base.fonts.bodySmall,
|
|
42
|
+
fontFamily: theme.fonts.mono
|
|
43
|
+
}
|
|
44
|
+
} : {})
|
|
15
45
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
46
|
+
spacing: value => spacingScale?.[String(value)] ?? value * (typeof theme.spacingMultiplier === "number" ? theme.spacingMultiplier : 1),
|
|
47
|
+
borderRadius: value => borderRadiusScale?.[String(value)] ?? value * (typeof theme.borderRadiusMultiplier === "number" ? theme.borderRadiusMultiplier : 1),
|
|
48
|
+
spacingScale,
|
|
49
|
+
borderRadiusScale,
|
|
19
50
|
dark: theme.dark
|
|
20
51
|
};
|
|
21
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativePaper","require","generateTheme","theme","base","dark","MD3DarkTheme","MD3LightTheme","colors","roundness","
|
|
1
|
+
{"version":3,"names":["_reactNativePaper","require","generateTheme","theme","base","dark","MD3DarkTheme","MD3LightTheme","spacingScale","spacingMultiplier","undefined","borderRadiusScale","borderRadiusMultiplier","fontFamily","fontWeight","colors","extraColors","roundness","md","medium","fonts","Object","fromEntries","entries","map","key","value","family","test","display","body","defaultFamily","mono","bodySmall","spacing","String","borderRadius","exports"],"sourceRoot":"../../../../../src","sources":["modules/theme/utils/generate-theme.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAIO,MAAMC,aAAa,GAAIC,KAAkC,IAAK;EACnE,MAAMC,IAAI,GAAGD,KAAK,CAACE,IAAI,GAAGC,8BAAY,GAAGC,+BAAa;EAEtD,MAAMC,YAAY,GAChB,OAAOL,KAAK,CAACM,iBAAiB,KAAK,QAAQ,GACvCC,SAAS,GACTP,KAAK,CAACM,iBAAiB;EAE7B,MAAME,iBAAiB,GACrB,OAAOR,KAAK,CAACS,sBAAsB,KAAK,QAAQ,GAC5CF,SAAS,GACTP,KAAK,CAACS,sBAAsB;EA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EpB,UAAU,EAAEV,KAAK,CAACiB,KAAK,CAACY;QAAK;MAAE,CAAC,GACnE,CAAC,CAAC;IACR,CAAsB;IACtBE,OAAO,EAAGR,KAAa,IACrBlB,YAAY,GAAG2B,MAAM,CAACT,KAAK,CAAC,CAAC,IAC7BA,KAAK,IACF,OAAOvB,KAAK,CAACM,iBAAiB,KAAK,QAAQ,GACxCN,KAAK,CAACM,iBAAiB,GACvB,CAAC,CAAC;IACV2B,YAAY,EAAGV,KAAa,IAC1Bf,iBAAiB,GAAGwB,MAAM,CAACT,KAAK,CAAC,CAAC,IAClCA,KAAK,IACF,OAAOvB,KAAK,CAACS,sBAAsB,KAAK,QAAQ,GAC7CT,KAAK,CAACS,sBAAsB,GAC5B,CAAC,CAAC;IACVJ,YAAY;IACZG,iBAAiB;IAEjBN,IAAI,EAAEF,KAAK,CAACE;EACd,CAAC;AACH,CAAC;AAACgC,OAAA,CAAAnC,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -44,15 +44,12 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
44
44
|
alignItems: "baseline"
|
|
45
45
|
},
|
|
46
46
|
value: {
|
|
47
|
-
fontFamily: "DMSans_700Bold",
|
|
48
47
|
fontSize: 24
|
|
49
48
|
},
|
|
50
49
|
unit: {
|
|
51
|
-
fontFamily: "DMSans_400Regular",
|
|
52
50
|
fontSize: 14
|
|
53
51
|
},
|
|
54
52
|
time: {
|
|
55
|
-
fontFamily: "DMSans_400Regular",
|
|
56
53
|
fontSize: 12
|
|
57
54
|
}
|
|
58
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_reactNativePaper","_index","_jsxRuntime","MeasuredValue","props","theme","useAppTheme","jsxs","View","style","testID","children","styles","valueContainer","gap","spacing","jsx","Text","variant","value","color","colors","primary","unit","onSurfaceDisabled","time","exports","StyleSheet","create","flexDirection","alignItems","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativePaper","_index","_jsxRuntime","MeasuredValue","props","theme","useAppTheme","jsxs","View","style","testID","children","styles","valueContainer","gap","spacing","jsx","Text","variant","value","color","colors","primary","unit","onSurfaceDisabled","time","exports","StyleSheet","create","flexDirection","alignItems","fontSize"],"sourceRoot":"../../../../../src","sources":["modules/tile/components/measured-value.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAA0C,IAAAG,WAAA,GAAAH,OAAA;AAGnC,MAAMI,aAAa,GAAIC,KAAyB,IAAK;EAC1D,MAAMC,KAAK,GAAG,IAAAC,kBAAW,EAAC,CAAC;EAE3B,oBACE,IAAAJ,WAAA,CAAAK,IAAA,EAACT,YAAA,CAAAU,IAAI;IAACC,KAAK,EAAEL,KAAK,CAACK,KAAM;IAACC,MAAM,EAAEN,KAAK,CAACM,MAAO;IAAAC,QAAA,gBAC7C,IAAAT,WAAA,CAAAK,IAAA,EAACT,YAAA,CAAAU,IAAI;MAACC,KAAK,EAAE,CAACG,MAAM,CAACC,cAAc,EAAE;QAAEC,GAAG,EAAET,KAAK,CAACU,OAAO,CAAC,CAAC;MAAE,CAAC,CAAE;MAAAJ,QAAA,gBAC9D,IAAAT,WAAA,CAAAc,GAAA,EAAChB,iBAAA,CAAAiB,IAAI;QACHC,OAAO,EAAC,YAAY;QACpBT,KAAK,EAAE,CAACG,MAAM,CAACO,KAAK,EAAE;UAAEC,KAAK,EAAEf,KAAK,CAACgB,MAAM,CAACC;QAAQ,CAAC,CAAE;QAAAX,QAAA,EAEtDP,KAAK,CAACe;MAAK,CACR,CAAC,eACP,IAAAjB,WAAA,CAAAc,GAAA,EAAChB,iBAAA,CAAAiB,IAAI;QAACR,KAAK,EAAE,CAACG,MAAM,CAACW,IAAI,EAAE;UAAEH,KAAK,EAAEf,KAAK,CAACgB,MAAM,CAACG;QAAkB,CAAC,CAAE;QAAAb,QAAA,EACnEP,KAAK,CAACmB;MAAI,CACP,CAAC;IAAA,CACH,CAAC,eAEP,IAAArB,WAAA,CAAAc,GAAA,EAAChB,iBAAA,CAAAiB,IAAI;MAACR,KAAK,EAAE,CAACG,MAAM,CAACa,IAAI,EAAE;QAAEL,KAAK,EAAEf,KAAK,CAACgB,MAAM,CAACG;MAAkB,CAAC,CAAE;MAAAb,QAAA,EACnEP,KAAK,CAACqB;IAAI,CACP,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAvB,aAAA,GAAAA,aAAA;AAEF,MAAMS,MAAM,GAAGe,uBAAU,CAACC,MAAM,CAAC;EAC/Bf,cAAc,EAAE;IACdgB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACDX,KAAK,EAAE;IACLY,QAAQ,EAAE;EACZ,CAAC;EACDR,IAAI,EAAE;IACJQ,QAAQ,EAAE;EACZ,CAAC;EACDN,IAAI,EAAE;IACJM,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativePaper","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Title","children","style","testID","jsx","Text","variant","styles","title","exports","StyleSheet","create","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativePaper","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Title","children","style","testID","jsx","Text","variant","styles","title","exports","StyleSheet","create","fontSize"],"sourceRoot":"../../../../../src","sources":["modules/tile/components/title.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAA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,MAAM,EAAEA,MAAO;IAAAF,QAAA,EACrEA;EAAQ,CACL,CAAC;AAEX,CAAC;AAACQ,OAAA,CAAAT,KAAA,GAAAA,KAAA;AAEF,MAAMO,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAC/BH,KAAK,EAAE;IACLI,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -21,6 +21,9 @@ const BackgroundSyncSetting = ({
|
|
|
21
21
|
testID,
|
|
22
22
|
theme: themeOverride,
|
|
23
23
|
slots,
|
|
24
|
+
description = platformDescription,
|
|
25
|
+
statusLabels,
|
|
26
|
+
reasonLabels,
|
|
24
27
|
enabled: initialEnabled,
|
|
25
28
|
canEnable,
|
|
26
29
|
onEnabledChange
|
|
@@ -34,6 +37,8 @@ const BackgroundSyncSetting = ({
|
|
|
34
37
|
});
|
|
35
38
|
const Card = resolvedSlots.Card ?? _reactNativePaper.Card;
|
|
36
39
|
const Text = resolvedSlots.Text ?? _reactNativePaper.Text;
|
|
40
|
+
const SwitchSlot = resolvedSlots.Switch ?? _reactNativePaper.Switch;
|
|
41
|
+
const Activity = resolvedSlots.ActivityIndicator ?? _reactNativePaper.ActivityIndicator;
|
|
37
42
|
const {
|
|
38
43
|
enabled,
|
|
39
44
|
setEnabled,
|
|
@@ -54,7 +59,8 @@ const BackgroundSyncSetting = ({
|
|
|
54
59
|
setBusy(false);
|
|
55
60
|
}
|
|
56
61
|
};
|
|
57
|
-
const
|
|
62
|
+
const statusKey = status === "on" ? "on" : status === "restricted" ? "restricted" : status === "blocked" ? "blocked" : "off";
|
|
63
|
+
const statusText = statusLabels?.[statusKey] ?? statusKey.charAt(0).toUpperCase() + statusKey.slice(1);
|
|
58
64
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Card, {
|
|
59
65
|
theme: theme,
|
|
60
66
|
testID: testID,
|
|
@@ -75,9 +81,9 @@ const BackgroundSyncSetting = ({
|
|
|
75
81
|
theme: theme,
|
|
76
82
|
children: statusText
|
|
77
83
|
})]
|
|
78
|
-
}), busy ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
84
|
+
}), busy ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Activity, {
|
|
79
85
|
theme: theme
|
|
80
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
86
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(SwitchSlot, {
|
|
81
87
|
accessibilityLabel: title,
|
|
82
88
|
theme: theme,
|
|
83
89
|
value: enabled,
|
|
@@ -88,13 +94,13 @@ const BackgroundSyncSetting = ({
|
|
|
88
94
|
style: {
|
|
89
95
|
color: theme.colors.onSurfaceVariant
|
|
90
96
|
},
|
|
91
|
-
children:
|
|
97
|
+
children: description
|
|
92
98
|
}), reason && /*#__PURE__*/(0, _jsxRuntime.jsx)(Text, {
|
|
93
99
|
theme: theme,
|
|
94
100
|
style: {
|
|
95
101
|
color: theme.colors.error
|
|
96
102
|
},
|
|
97
|
-
children: reason
|
|
103
|
+
children: reasonLabels?.[reason] ?? reason
|
|
98
104
|
}), error && /*#__PURE__*/(0, _jsxRuntime.jsx)(Text, {
|
|
99
105
|
theme: theme,
|
|
100
106
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativePaper","_index","_useOvokUi","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","platformDescription","Platform","select","ios","android","BackgroundSyncSetting","title","testID","theme","themeOverride","slots","enabled","initialEnabled","canEnable","onEnabledChange","resolvedSlots","useOvokUi","Card","PaperCard","Text","PaperText","setEnabled","status","reason","error","useBackgroundSync","busy","setBusy","useState","toggle","next","statusText","jsx","style","borderRadius","children","jsxs","View","styles","content","header","grow","variant","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativePaper","_index","_useOvokUi","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","platformDescription","Platform","select","ios","android","BackgroundSyncSetting","title","testID","theme","themeOverride","slots","description","statusLabels","reasonLabels","enabled","initialEnabled","canEnable","onEnabledChange","resolvedSlots","useOvokUi","Card","PaperCard","Text","PaperText","SwitchSlot","Switch","Activity","ActivityIndicator","setEnabled","status","reason","error","useBackgroundSync","busy","setBusy","useState","toggle","next","statusKey","statusText","charAt","toUpperCase","slice","jsx","style","borderRadius","children","jsxs","View","styles","content","header","grow","variant","accessibilityLabel","value","onValueChange","color","colors","onSurfaceVariant","message","exports","StyleSheet","create","padding","alignItems","flexDirection","gap","paddingBottom","flex"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/background-sync-setting.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAOA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AAA2C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAA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KAAK,EAAEjD,KAAK,CAACkD,MAAM,CAAC3B;QAAM,CAAE;QAAAe,QAAA,EAAEf,KAAK,CAAC6B;MAAO,CAAO,CAAC;IAAA,CACtF;EAAC,CACH,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAxD,qBAAA,GAAAA,qBAAA;AAEF,MAAM4C,MAAM,GAAGa,uBAAU,CAACC,MAAM,CAAC;EAC/Bb,OAAO,EAAE;IAAEc,OAAO,EAAE;EAAG,CAAC;EACxBb,MAAM,EAAE;IAAEc,UAAU,EAAE,QAAQ;IAAEC,aAAa,EAAE,KAAK;IAAEC,GAAG,EAAE,CAAC;IAAEC,aAAa,EAAE;EAAE,CAAC;EAChFhB,IAAI,EAAE;IAAEiB,IAAI,EAAE;EAAE;AAClB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -16,6 +16,8 @@ const BluetoothStateNotice = ({
|
|
|
16
16
|
requestPermission,
|
|
17
17
|
onOpenSettings,
|
|
18
18
|
title,
|
|
19
|
+
copy: copyOverride,
|
|
20
|
+
settingsAction,
|
|
19
21
|
testID,
|
|
20
22
|
...uiProps
|
|
21
23
|
}) => {
|
|
@@ -43,13 +45,19 @@ const BluetoothStateNotice = ({
|
|
|
43
45
|
await onOpenSettings();
|
|
44
46
|
return;
|
|
45
47
|
}
|
|
46
|
-
|
|
48
|
+
if (_reactNative.Platform.OS === "android") {
|
|
49
|
+
await _reactNative.Linking.sendIntent("android.settings.BLUETOOTH_SETTINGS");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
await _reactNative.Linking.openURL("App-Prefs:Bluetooth");
|
|
47
53
|
};
|
|
48
54
|
const takeAction = async () => {
|
|
49
55
|
setBusy(true);
|
|
50
56
|
setActionError(undefined);
|
|
51
57
|
try {
|
|
52
|
-
if (
|
|
58
|
+
if (settingsAction) {
|
|
59
|
+
await openSettings();
|
|
60
|
+
} else if (state === "unauthorized") {
|
|
53
61
|
const granted = await request();
|
|
54
62
|
if (granted) {
|
|
55
63
|
return;
|
|
@@ -77,6 +85,11 @@ const BluetoothStateNotice = ({
|
|
|
77
85
|
body: "Turn on Bluetooth to find and connect to health devices.",
|
|
78
86
|
action: "Open Bluetooth settings"
|
|
79
87
|
};
|
|
88
|
+
const resolvedCopy = {
|
|
89
|
+
...copy,
|
|
90
|
+
...copyOverride?.[state]
|
|
91
|
+
};
|
|
92
|
+
const action = settingsAction ?? resolvedCopy.action;
|
|
80
93
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Card, {
|
|
81
94
|
theme: theme,
|
|
82
95
|
testID: testID,
|
|
@@ -88,23 +101,23 @@ const BluetoothStateNotice = ({
|
|
|
88
101
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Text, {
|
|
89
102
|
theme: theme,
|
|
90
103
|
variant: "titleMedium",
|
|
91
|
-
children:
|
|
104
|
+
children: resolvedCopy.heading
|
|
92
105
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Text, {
|
|
93
106
|
theme: theme,
|
|
94
|
-
children:
|
|
107
|
+
children: resolvedCopy.body
|
|
95
108
|
}), actionError && /*#__PURE__*/(0, _jsxRuntime.jsx)(Text, {
|
|
96
109
|
theme: theme,
|
|
97
110
|
style: {
|
|
98
111
|
color: theme.colors.error
|
|
99
112
|
},
|
|
100
113
|
children: actionError
|
|
101
|
-
}),
|
|
114
|
+
}), action && /*#__PURE__*/(0, _jsxRuntime.jsx)(Button, {
|
|
102
115
|
theme: theme,
|
|
103
116
|
loading: busy,
|
|
104
117
|
disabled: busy,
|
|
105
118
|
mode: "contained",
|
|
106
119
|
onPress: () => void takeAction(),
|
|
107
|
-
children:
|
|
120
|
+
children: action
|
|
108
121
|
})]
|
|
109
122
|
})
|
|
110
123
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativePaper","_index","_useOvokUi","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BluetoothStateNotice","bleManager","requestPermission","onOpenSettings","title","testID","uiProps","theme","slots","useOvokUi","Button","PaperButton","Card","PaperCard","Text","PaperText","state","request","useBluetoothState","busy","setBusy","useState","actionError","setActionError","openSettings","Linking","takeAction","undefined","granted","cause","Error","message","String","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativePaper","_index","_useOvokUi","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BluetoothStateNotice","bleManager","requestPermission","onOpenSettings","title","copy","copyOverride","settingsAction","testID","uiProps","theme","slots","useOvokUi","Button","PaperButton","Card","PaperCard","Text","PaperText","state","request","useBluetoothState","busy","setBusy","useState","actionError","setActionError","openSettings","Platform","OS","Linking","sendIntent","openURL","takeAction","undefined","granted","cause","Error","message","String","heading","body","action","resolvedCopy","jsx","style","borderRadius","children","jsxs","View","styles","content","variant","color","colors","error","loading","disabled","mode","onPress","exports","StyleSheet","create","gap","padding"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/bluetooth-state-notice.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AAMA,IAAAG,MAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AAA2C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAA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E;UAAEQ,KAAK,EAAE3C,KAAK,CAAC4C,MAAM,CAACC;QAAM,CAAE;QAAAR,QAAA,EAAEtB;MAAW,CAAO,CAAC,EAC7FiB,MAAM,iBACL,IAAA9D,WAAA,CAAAgE,GAAA,EAAC/B,MAAM;QAACH,KAAK,EAAEA,KAAM;QAAC8C,OAAO,EAAElC,IAAK;QAACmC,QAAQ,EAAEnC,IAAK;QAACoC,IAAI,EAAC,WAAW;QAACC,OAAO,EAAEA,CAAA,KAAM,KAAK1B,UAAU,CAAC,CAAE;QAAAc,QAAA,EACpGL;MAAM,CACD,CACT;IAAA,CACG;EAAC,CACH,CAAC;AAEX,CAAC;AAACkB,OAAA,CAAA5D,oBAAA,GAAAA,oBAAA;AAEF,MAAMkD,MAAM,GAAGW,uBAAU,CAACC,MAAM,CAAC;EAAEX,OAAO,EAAE;IAAEY,GAAG,EAAE,EAAE;IAAEC,OAAO,EAAE;EAAG;AAAE,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,6 +8,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativePaper = require("react-native-paper");
|
|
10
10
|
var _index = require("../../bt-management/index.js");
|
|
11
|
+
var _index2 = require("../../data-sync/index.js");
|
|
11
12
|
var _useOvokUi = require("../use-ovok-ui.js");
|
|
12
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -31,6 +32,9 @@ const HealthImportCard = ({
|
|
|
31
32
|
background = false,
|
|
32
33
|
title = "Health data import",
|
|
33
34
|
labelForType = type => type,
|
|
35
|
+
progress,
|
|
36
|
+
statusLabels,
|
|
37
|
+
reasonLabels,
|
|
34
38
|
testID,
|
|
35
39
|
...uiProps
|
|
36
40
|
}) => {
|
|
@@ -41,6 +45,8 @@ const HealthImportCard = ({
|
|
|
41
45
|
const Button = slots.Button ?? _reactNativePaper.Button;
|
|
42
46
|
const Card = slots.Card ?? _reactNativePaper.Card;
|
|
43
47
|
const Text = slots.Text ?? _reactNativePaper.Text;
|
|
48
|
+
const SwitchSlot = slots.Switch ?? _reactNativePaper.Switch;
|
|
49
|
+
const Activity = slots.ActivityIndicator ?? _reactNativePaper.ActivityIndicator;
|
|
44
50
|
const {
|
|
45
51
|
enabled,
|
|
46
52
|
setEnabled,
|
|
@@ -76,9 +82,9 @@ const HealthImportCard = ({
|
|
|
76
82
|
variant: "titleMedium",
|
|
77
83
|
style: styles.grow,
|
|
78
84
|
children: title
|
|
79
|
-
}), busy ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
85
|
+
}), busy ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Activity, {
|
|
80
86
|
theme: theme
|
|
81
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
87
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(SwitchSlot, {
|
|
82
88
|
accessibilityLabel: title,
|
|
83
89
|
theme: theme,
|
|
84
90
|
value: enabled,
|
|
@@ -93,7 +99,13 @@ const HealthImportCard = ({
|
|
|
93
99
|
theme: theme,
|
|
94
100
|
children: statusLabel(statusByType[type])
|
|
95
101
|
})]
|
|
96
|
-
}, type)),
|
|
102
|
+
}, type)), progress && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.SyncProgressList, {
|
|
103
|
+
progress: progress,
|
|
104
|
+
labelForType: type => labelForType(type),
|
|
105
|
+
statusLabels: statusLabels,
|
|
106
|
+
reasonLabels: reasonLabels,
|
|
107
|
+
Text: Text
|
|
108
|
+
}), notShared.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(Text, {
|
|
97
109
|
theme: theme,
|
|
98
110
|
style: [styles.notice, {
|
|
99
111
|
color: theme.colors.onSurfaceVariant
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativePaper","_index","_useOvokUi","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","statusLabel","status","HealthImportCard","types","adapter","background","title","labelForType","type","testID","uiProps","theme","slots","useOvokUi","Button","PaperButton","Card","PaperCard","Text","PaperText","enabled","setEnabled","statusByType","notShared","error","useHealthImport","busy","setBusy","useState","toggle","next","jsx","style","borderRadius","children","jsxs","View","styles","content","header","variant","grow","
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativePaper","_index","_index2","_useOvokUi","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","statusLabel","status","HealthImportCard","types","adapter","background","title","labelForType","type","progress","statusLabels","reasonLabels","testID","uiProps","theme","slots","useOvokUi","Button","PaperButton","Card","PaperCard","Text","PaperText","SwitchSlot","Switch","Activity","ActivityIndicator","enabled","setEnabled","statusByType","notShared","error","useHealthImport","busy","setBusy","useState","toggle","next","jsx","style","borderRadius","children","jsxs","View","styles","content","header","variant","grow","accessibilityLabel","value","onValueChange","map","row","SyncProgressList","length","notice","color","colors","onSurfaceVariant","message","mode","disabled","onPress","exports","StyleSheet","create","padding","alignItems","flexDirection","gap","flex","justifyContent","paddingVertical","paddingBottom","paddingTop"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/health-import-card.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,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AA,CACL;EAAC,CACH,CAAC;AAEX,CAAC;AAACqC,OAAA,CAAA9D,gBAAA,GAAAA,gBAAA;AAEF,MAAM0C,MAAM,GAAGqB,uBAAU,CAACC,MAAM,CAAC;EAC/BrB,OAAO,EAAE;IAAEsB,OAAO,EAAE;EAAG,CAAC;EACxBrB,MAAM,EAAE;IAAEsB,UAAU,EAAE,QAAQ;IAAEC,aAAa,EAAE,KAAK;IAAEC,GAAG,EAAE;EAAE,CAAC;EAC9DtB,IAAI,EAAE;IAAEuB,IAAI,EAAE;EAAE,CAAC;EACjBlB,GAAG,EAAE;IAAEgB,aAAa,EAAE,KAAK;IAAEG,cAAc,EAAE,eAAe;IAAEC,eAAe,EAAE;EAAE,CAAC;EAClFjB,MAAM,EAAE;IAAEkB,aAAa,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAE;AAC7C,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Sparkline = exports.MeasurementTrendChart = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
10
|
+
var _useOvokUi = require("../use-ovok-ui.js");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
const MeasurementTrendChartComponent = ({
|
|
14
|
+
readings,
|
|
15
|
+
normalRange,
|
|
16
|
+
thresholds = [],
|
|
17
|
+
width = 320,
|
|
18
|
+
height = 160,
|
|
19
|
+
testID,
|
|
20
|
+
...uiProps
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
theme
|
|
24
|
+
} = (0, _useOvokUi.useOvokUi)(uiProps);
|
|
25
|
+
const padding = 8;
|
|
26
|
+
const values = readings.flatMap(reading => reading.values);
|
|
27
|
+
const domainValues = [...values, ...(normalRange ?? []), ...thresholds];
|
|
28
|
+
if (!domainValues.length) {
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
30
|
+
testID: testID,
|
|
31
|
+
style: {
|
|
32
|
+
height,
|
|
33
|
+
width
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const min = Math.min(...domainValues);
|
|
38
|
+
const max = Math.max(...domainValues);
|
|
39
|
+
const range = max === min ? 1 : max - min;
|
|
40
|
+
const times = readings.map(reading => reading.at);
|
|
41
|
+
const firstAt = times[0] ?? 0;
|
|
42
|
+
const lastAt = times[times.length - 1] ?? firstAt;
|
|
43
|
+
const timeRange = lastAt === firstAt ? 1 : lastAt - firstAt;
|
|
44
|
+
const x = (at, index) => padding + (lastAt === firstAt ? index / Math.max(1, readings.length - 1) : (at - firstAt) / timeRange) * (width - padding * 2);
|
|
45
|
+
const y = value => padding + (max - value) / range * (height - padding * 2);
|
|
46
|
+
const seriesCount = Math.max(...readings.map(reading => reading.values.length), 0);
|
|
47
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
48
|
+
testID: testID,
|
|
49
|
+
style: styles.container,
|
|
50
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
51
|
+
width: width,
|
|
52
|
+
height: height,
|
|
53
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
54
|
+
children: [normalRange && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
55
|
+
x: padding,
|
|
56
|
+
y: y(normalRange[1]),
|
|
57
|
+
width: width - padding * 2,
|
|
58
|
+
height: Math.max(0, y(normalRange[0]) - y(normalRange[1])),
|
|
59
|
+
fill: theme.colors.secondaryContainer,
|
|
60
|
+
opacity: 0.55
|
|
61
|
+
}), thresholds.map(threshold => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
62
|
+
x1: padding,
|
|
63
|
+
x2: width - padding,
|
|
64
|
+
y1: y(threshold),
|
|
65
|
+
y2: y(threshold),
|
|
66
|
+
stroke: theme.colors.error,
|
|
67
|
+
strokeDasharray: "4 4"
|
|
68
|
+
}, threshold)), Array.from({
|
|
69
|
+
length: seriesCount
|
|
70
|
+
}, (_, series) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Polyline, {
|
|
71
|
+
points: readings.map((reading, index) => {
|
|
72
|
+
const value = reading.values[series];
|
|
73
|
+
return value === undefined ? undefined : `${x(reading.at, index)},${y(value)}`;
|
|
74
|
+
}).filter(point => point !== undefined).join(" "),
|
|
75
|
+
fill: "none",
|
|
76
|
+
stroke: theme.colors.primary,
|
|
77
|
+
strokeWidth: 2,
|
|
78
|
+
strokeLinejoin: "round",
|
|
79
|
+
strokeLinecap: "round"
|
|
80
|
+
}, series))]
|
|
81
|
+
})
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
const MeasurementTrendChart = exports.MeasurementTrendChart = /*#__PURE__*/React.memo(MeasurementTrendChartComponent);
|
|
85
|
+
const Sparkline = exports.Sparkline = /*#__PURE__*/React.memo(props => /*#__PURE__*/(0, _jsxRuntime.jsx)(MeasurementTrendChart, {
|
|
86
|
+
...props,
|
|
87
|
+
height: props.height ?? 48,
|
|
88
|
+
width: props.width ?? 160
|
|
89
|
+
}));
|
|
90
|
+
const styles = _reactNative.StyleSheet.create({
|
|
91
|
+
container: {
|
|
92
|
+
overflow: "hidden"
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=measurement-trend-chart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeSvg","_useOvokUi","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MeasurementTrendChartComponent","readings","normalRange","thresholds","width","height","testID","uiProps","theme","useOvokUi","padding","values","flatMap","reading","domainValues","length","jsx","View","style","min","Math","max","range","times","map","at","firstAt","lastAt","timeRange","x","index","y","value","seriesCount","styles","container","children","jsxs","viewBox","Rect","fill","colors","secondaryContainer","opacity","threshold","Line","x1","x2","y1","y2","stroke","error","strokeDasharray","Array","from","_","series","Polyline","points","undefined","filter","point","join","primary","strokeWidth","strokeLinejoin","strokeLinecap","MeasurementTrendChart","exports","memo","Sparkline","props","StyleSheet","create","overflow"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/measurement-trend-chart.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAH,uBAAA,CAAAC,OAAA;AAGA,IAAAG,UAAA,GAAAH,OAAA;AAA2C,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SA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