@ovok/native 1.6.50 → 1.6.51
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 +21 -0
- package/lib/commonjs/index.js +18 -7
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/auth/default-translation.js +6 -1
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
- package/lib/commonjs/modules/auth/delete-account-button/components/delete-account-button.js +9 -14
- package/lib/commonjs/modules/auth/delete-account-button/components/delete-account-button.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-auth-action.js +41 -0
- package/lib/commonjs/modules/auth/hooks/use-auth-action.js.map +1 -0
- package/lib/commonjs/modules/auth/hooks/use-delete-account.js +27 -0
- package/lib/commonjs/modules/auth/hooks/use-delete-account.js.map +1 -0
- package/lib/commonjs/modules/auth/hooks/use-session.js +14 -86
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-sign-in.js +66 -0
- package/lib/commonjs/modules/auth/hooks/use-sign-in.js.map +1 -0
- package/lib/commonjs/modules/auth/hooks/use-sign-out.js +15 -0
- package/lib/commonjs/modules/auth/hooks/use-sign-out.js.map +1 -0
- package/lib/commonjs/modules/auth/hooks/use-social-sign-in.js +92 -0
- package/lib/commonjs/modules/auth/hooks/use-social-sign-in.js.map +1 -0
- package/lib/commonjs/modules/auth/index.js +55 -0
- package/lib/commonjs/modules/auth/index.js.map +1 -1
- package/lib/commonjs/modules/auth/logout-button/components/logout-button.js +11 -16
- package/lib/commonjs/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js +5 -3
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/contexts/profile-form-context.js +1 -1
- package/lib/commonjs/modules/auth/profile/contexts/profile-form-context.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/hooks/use-profile-form.js +1 -1
- package/lib/commonjs/modules/auth/profile/hooks/use-profile-form.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +6 -4
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/inputs.js +2 -4
- 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-form-provider.js +6 -4
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/contexts/reset-password-form-context.js +1 -1
- package/lib/commonjs/modules/auth/reset-password/contexts/reset-password-form-context.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/hooks/use-reset-password-form.js +1 -1
- package/lib/commonjs/modules/auth/reset-password/hooks/use-reset-password-form.js.map +1 -1
- package/lib/commonjs/modules/auth/session/logout-session.js +29 -0
- package/lib/commonjs/modules/auth/session/logout-session.js.map +1 -0
- package/lib/commonjs/modules/auth/session/session-store.js +152 -0
- package/lib/commonjs/modules/auth/session/session-store.js.map +1 -0
- package/lib/commonjs/modules/auth/sign-in/components/form/login-form-provider.js +25 -41
- package/lib/commonjs/modules/auth/sign-in/components/form/login-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.js +13 -12
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.js +4 -4
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/contexts/login-form-context.js +1 -1
- package/lib/commonjs/modules/auth/sign-in/contexts/login-form-context.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/hooks/use-login-form.js +1 -1
- package/lib/commonjs/modules/auth/sign-in/hooks/use-login-form.js.map +1 -1
- package/lib/commonjs/modules/bt-device/components/device-list-provider.js +5 -4
- package/lib/commonjs/modules/bt-device/components/device-list-provider.js.map +1 -1
- package/lib/commonjs/modules/bt-device/components/hooks/use-device-list.js +1 -1
- package/lib/commonjs/modules/bt-device/components/hooks/use-device-list.js.map +1 -1
- package/lib/commonjs/modules/bt-device/contexts/device-list-context.js +1 -4
- package/lib/commonjs/modules/bt-device/contexts/device-list-context.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +176 -84
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider.js +3 -2
- package/lib/commonjs/modules/bt-management/components/bt-provider.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js +146 -14
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-background-sync.js +17 -11
- package/lib/commonjs/modules/bt-management/hooks/use-background-sync.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-permission.js +100 -0
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-permission.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-state.js +13 -26
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-state.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-bt-device.js +148 -0
- package/lib/commonjs/modules/bt-management/hooks/use-bt-device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-device-connection.js +10 -26
- 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 +7 -76
- package/lib/commonjs/modules/bt-management/hooks/use-health-import.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-measurements.js +43 -57
- package/lib/commonjs/modules/bt-management/hooks/use-measurements.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-nearby-devices.js +12 -16
- 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 +31 -12
- 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 +12 -55
- 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 +6 -4
- package/lib/commonjs/modules/bt-management/hooks/use-scan-control.js.map +1 -1
- package/lib/commonjs/modules/bt-management/index.js +133 -11
- package/lib/commonjs/modules/bt-management/index.js.map +1 -1
- package/lib/commonjs/modules/cms/hooks/use-cms-content.js +50 -0
- package/lib/commonjs/modules/cms/hooks/use-cms-content.js.map +1 -0
- package/lib/commonjs/modules/cms/hooks/use-cms-locale.js +20 -0
- package/lib/commonjs/modules/cms/hooks/use-cms-locale.js.map +1 -0
- package/lib/commonjs/modules/cms/hooks/use-cms-translations.js +50 -0
- package/lib/commonjs/modules/cms/hooks/use-cms-translations.js.map +1 -0
- package/lib/commonjs/modules/cms/index.js +39 -0
- package/lib/commonjs/modules/cms/index.js.map +1 -0
- package/lib/commonjs/modules/cms/merge-cms-translations.js +49 -0
- package/lib/commonjs/modules/cms/merge-cms-translations.js.map +1 -0
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js +23 -18
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js +19 -18
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js +20 -0
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -0
- package/lib/commonjs/modules/data-sync/contexts/health-authorization-context.js +18 -0
- package/lib/commonjs/modules/data-sync/contexts/health-authorization-context.js.map +1 -0
- package/lib/commonjs/modules/data-sync/hooks/use-health-import.js +81 -0
- package/lib/commonjs/modules/data-sync/hooks/use-health-import.js.map +1 -0
- package/lib/commonjs/modules/data-sync/index.js +37 -0
- package/lib/commonjs/modules/data-sync/index.js.map +1 -1
- package/lib/commonjs/modules/helpers/hooks/use-shallow-stable-value.js +20 -0
- package/lib/commonjs/modules/helpers/hooks/use-shallow-stable-value.js.map +1 -0
- package/lib/commonjs/modules/language-switcher/components/language-switcher.js +12 -4
- package/lib/commonjs/modules/language-switcher/components/language-switcher.js.map +1 -1
- package/lib/commonjs/modules/language-switcher/components/option/context/language-option-context.js +1 -1
- package/lib/commonjs/modules/language-switcher/components/option/context/language-option-context.js.map +1 -1
- package/lib/commonjs/modules/language-switcher/components/option/language-switcher-option.js +5 -4
- package/lib/commonjs/modules/language-switcher/components/option/language-switcher-option.js.map +1 -1
- package/lib/commonjs/modules/socket/components/socket-provider.js +78 -73
- package/lib/commonjs/modules/socket/components/socket-provider.js.map +1 -1
- package/lib/commonjs/modules/tab/components/tab-provider.js +12 -1
- package/lib/commonjs/modules/tab/components/tab-provider.js.map +1 -1
- package/lib/commonjs/modules/tab/contexts/tab-context.js +1 -1
- package/lib/commonjs/modules/tab/contexts/tab-context.js.map +1 -1
- package/lib/commonjs/modules/tab/hooks/use-tab.js +1 -1
- package/lib/commonjs/modules/tab/hooks/use-tab.js.map +1 -1
- package/lib/commonjs/modules/ui/components/health-import-card.js +2 -3
- package/lib/commonjs/modules/ui/components/health-import-card.js.map +1 -1
- package/lib/commonjs/modules/ui/components/pairing-flow.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/auth/default-translation.js +3 -1
- package/lib/module/modules/auth/default-translation.js.map +1 -1
- package/lib/module/modules/auth/delete-account-button/components/delete-account-button.js +9 -14
- package/lib/module/modules/auth/delete-account-button/components/delete-account-button.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-auth-action.js +36 -0
- package/lib/module/modules/auth/hooks/use-auth-action.js.map +1 -0
- package/lib/module/modules/auth/hooks/use-delete-account.js +22 -0
- package/lib/module/modules/auth/hooks/use-delete-account.js.map +1 -0
- package/lib/module/modules/auth/hooks/use-session.js +17 -88
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-sign-in.js +61 -0
- package/lib/module/modules/auth/hooks/use-sign-in.js.map +1 -0
- package/lib/module/modules/auth/hooks/use-sign-out.js +10 -0
- package/lib/module/modules/auth/hooks/use-sign-out.js.map +1 -0
- package/lib/module/modules/auth/hooks/use-social-sign-in.js +86 -0
- package/lib/module/modules/auth/hooks/use-social-sign-in.js.map +1 -0
- package/lib/module/modules/auth/index.js +5 -0
- package/lib/module/modules/auth/index.js.map +1 -1
- package/lib/module/modules/auth/logout-button/components/logout-button.js +11 -16
- package/lib/module/modules/auth/logout-button/components/logout-button.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form-provider.js +5 -3
- package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/module/modules/auth/profile/contexts/profile-form-context.js +1 -1
- package/lib/module/modules/auth/profile/contexts/profile-form-context.js.map +1 -1
- package/lib/module/modules/auth/profile/hooks/use-profile-form.js +1 -1
- package/lib/module/modules/auth/profile/hooks/use-profile-form.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-form-provider.js +6 -4
- package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/inputs.js +2 -4
- 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-form-provider.js +6 -4
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/module/modules/auth/reset-password/contexts/reset-password-form-context.js +1 -1
- package/lib/module/modules/auth/reset-password/contexts/reset-password-form-context.js.map +1 -1
- package/lib/module/modules/auth/reset-password/hooks/use-reset-password-form.js +1 -1
- package/lib/module/modules/auth/reset-password/hooks/use-reset-password-form.js.map +1 -1
- package/lib/module/modules/auth/session/logout-session.js +24 -0
- package/lib/module/modules/auth/session/logout-session.js.map +1 -0
- package/lib/module/modules/auth/session/session-store.js +148 -0
- package/lib/module/modules/auth/session/session-store.js.map +1 -0
- package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js +25 -41
- package/lib/module/modules/auth/sign-in/components/form/login-form-provider.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.js +13 -12
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.js +4 -4
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.js.map +1 -1
- package/lib/module/modules/auth/sign-in/contexts/login-form-context.js +1 -1
- package/lib/module/modules/auth/sign-in/contexts/login-form-context.js.map +1 -1
- package/lib/module/modules/auth/sign-in/hooks/use-login-form.js +1 -1
- package/lib/module/modules/auth/sign-in/hooks/use-login-form.js.map +1 -1
- package/lib/module/modules/bt-device/components/device-list-provider.js +5 -4
- package/lib/module/modules/bt-device/components/device-list-provider.js.map +1 -1
- package/lib/module/modules/bt-device/components/hooks/use-device-list.js +1 -1
- package/lib/module/modules/bt-device/components/hooks/use-device-list.js.map +1 -1
- package/lib/module/modules/bt-device/contexts/device-list-context.js +1 -4
- package/lib/module/modules/bt-device/contexts/device-list-context.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +175 -84
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider.js +3 -2
- package/lib/module/modules/bt-management/components/bt-provider.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js +144 -13
- package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-background-sync.js +17 -11
- package/lib/module/modules/bt-management/hooks/use-background-sync.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-bluetooth-permission.js +94 -0
- package/lib/module/modules/bt-management/hooks/use-bluetooth-permission.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-bluetooth-state.js +13 -26
- package/lib/module/modules/bt-management/hooks/use-bluetooth-state.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-bt-device.js +142 -0
- package/lib/module/modules/bt-management/hooks/use-bt-device.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-device-connection.js +11 -26
- 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 +2 -73
- package/lib/module/modules/bt-management/hooks/use-health-import.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-measurements.js +44 -58
- package/lib/module/modules/bt-management/hooks/use-measurements.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-nearby-devices.js +13 -17
- 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 +31 -12
- 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 +12 -54
- 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 +6 -4
- package/lib/module/modules/bt-management/hooks/use-scan-control.js.map +1 -1
- package/lib/module/modules/bt-management/index.js +8 -1
- package/lib/module/modules/bt-management/index.js.map +1 -1
- package/lib/module/modules/cms/hooks/use-cms-content.js +44 -0
- package/lib/module/modules/cms/hooks/use-cms-content.js.map +1 -0
- package/lib/module/modules/cms/hooks/use-cms-locale.js +16 -0
- package/lib/module/modules/cms/hooks/use-cms-locale.js.map +1 -0
- package/lib/module/modules/cms/hooks/use-cms-translations.js +45 -0
- package/lib/module/modules/cms/hooks/use-cms-translations.js.map +1 -0
- package/lib/module/modules/cms/index.js +6 -0
- package/lib/module/modules/cms/index.js.map +1 -0
- package/lib/module/modules/cms/merge-cms-translations.js +46 -0
- package/lib/module/modules/cms/merge-cms-translations.js.map +1 -0
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js +23 -18
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js +18 -17
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js +16 -0
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -0
- package/lib/module/modules/data-sync/contexts/health-authorization-context.js +13 -0
- package/lib/module/modules/data-sync/contexts/health-authorization-context.js.map +1 -0
- package/lib/module/modules/data-sync/hooks/use-health-import.js +76 -0
- package/lib/module/modules/data-sync/hooks/use-health-import.js.map +1 -0
- package/lib/module/modules/data-sync/index.js +2 -0
- package/lib/module/modules/data-sync/index.js.map +1 -1
- package/lib/module/modules/helpers/hooks/use-shallow-stable-value.js +14 -0
- package/lib/module/modules/helpers/hooks/use-shallow-stable-value.js.map +1 -0
- package/lib/module/modules/language-switcher/components/language-switcher.js +11 -4
- package/lib/module/modules/language-switcher/components/language-switcher.js.map +1 -1
- package/lib/module/modules/language-switcher/components/option/context/language-option-context.js +1 -1
- package/lib/module/modules/language-switcher/components/option/context/language-option-context.js.map +1 -1
- package/lib/module/modules/language-switcher/components/option/language-switcher-option.js +5 -4
- package/lib/module/modules/language-switcher/components/option/language-switcher-option.js.map +1 -1
- package/lib/module/modules/socket/components/socket-provider.js +78 -73
- package/lib/module/modules/socket/components/socket-provider.js.map +1 -1
- package/lib/module/modules/tab/components/tab-provider.js +11 -1
- package/lib/module/modules/tab/components/tab-provider.js.map +1 -1
- package/lib/module/modules/tab/contexts/tab-context.js +1 -1
- package/lib/module/modules/tab/contexts/tab-context.js.map +1 -1
- package/lib/module/modules/tab/hooks/use-tab.js +1 -1
- package/lib/module/modules/tab/hooks/use-tab.js.map +1 -1
- package/lib/module/modules/ui/components/health-import-card.js +1 -2
- package/lib/module/modules/ui/components/health-import-card.js.map +1 -1
- package/lib/module/modules/ui/components/pairing-flow.js.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +53 -1
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/delete-account-button/components/delete-account-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-auth-action.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-auth-action.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-delete-account.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-delete-account.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +6 -4
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-in.d.ts +24 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-in.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-out.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-out.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/logout-button/components/logout-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/contexts/profile-form-context.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/contexts/profile-form-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/hooks/use-profile-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts +1 -1
- 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/session/logout-session.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/contexts/login-form-context.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/contexts/login-form-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/components/device-list-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/components/hooks/use-device-list.d.ts +1 -5
- package/lib/typescript/commonjs/src/modules/bt-device/components/hooks/use-device-list.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/contexts/device-list-context.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/bt-device/contexts/device-list-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts +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/components/bt-provider.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/bt-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts +40 -9
- 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-bluetooth-permission.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bluetooth-permission.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bluetooth-state.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bt-device.d.ts +31 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bt-device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-device-connection.d.ts +2 -2
- 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 +2 -15
- 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 +1 -0
- 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.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-props.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-content.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-content.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-locale.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-locale.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-translations.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/cms/hooks/use-cms-translations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/cms/index.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/cms/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/cms/merge-cms-translations.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/cms/merge-cms-translations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts +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/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/components/data-sync.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/contexts/health-authorization-context.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/data-sync/contexts/health-authorization-context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-health-import.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-health-import.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/data-sync/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/hooks/use-shallow-stable-value.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/helpers/hooks/use-shallow-stable-value.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/language-switcher/components/language-switcher.d.ts +6 -5
- package/lib/typescript/commonjs/src/modules/language-switcher/components/language-switcher.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/language-switcher/components/option/context/language-option-context.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/language-switcher/components/option/context/language-option-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/socket/components/socket-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/tab/components/tab-provider.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/tab/components/tab-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/tab/contexts/tab-context.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/tab/contexts/tab-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/health-import-card.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/ui/components/health-import-card.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/pairing-flow.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts +53 -1
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/delete-account-button/components/delete-account-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-auth-action.d.ts +13 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-auth-action.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-delete-account.d.ts +8 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-delete-account.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +6 -4
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-sign-in.d.ts +24 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-sign-in.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-sign-out.d.ts +4 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-sign-out.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.d.ts +14 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/index.d.ts +5 -0
- package/lib/typescript/module/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/logout-button/components/logout-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/contexts/profile-form-context.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/profile/contexts/profile-form-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/hooks/use-profile-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/contexts/reset-password-form-context.d.ts +1 -1
- 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/session/logout-session.d.ts +6 -0
- package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts +21 -0
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/contexts/login-form-context.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/contexts/login-form-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/components/device-list-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/components/hooks/use-device-list.d.ts +1 -5
- package/lib/typescript/module/src/modules/bt-device/components/hooks/use-device-list.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/contexts/device-list-context.d.ts +3 -2
- package/lib/typescript/module/src/modules/bt-device/contexts/device-list-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts +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/components/bt-provider.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/bt-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts +40 -9
- 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-bluetooth-permission.d.ts +17 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bluetooth-permission.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bluetooth-state.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bt-device.d.ts +31 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bt-device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-device-connection.d.ts +2 -2
- 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 +2 -15
- 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 +1 -0
- 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.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/index.d.ts +6 -1
- package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-props.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-content.d.ts +9 -0
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-content.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-locale.d.ts +7 -0
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-locale.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-translations.d.ts +10 -0
- package/lib/typescript/module/src/modules/cms/hooks/use-cms-translations.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/cms/index.d.ts +4 -0
- package/lib/typescript/module/src/modules/cms/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/cms/merge-cms-translations.d.ts +13 -0
- package/lib/typescript/module/src/modules/cms/merge-cms-translations.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts +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/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +4 -0
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/components/data-sync.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/contexts/health-authorization-context.d.ts +17 -0
- package/lib/typescript/module/src/modules/data-sync/contexts/health-authorization-context.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/hooks/use-health-import.d.ts +17 -0
- package/lib/typescript/module/src/modules/data-sync/hooks/use-health-import.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/data-sync/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +1 -0
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/hooks/use-shallow-stable-value.d.ts +2 -0
- package/lib/typescript/module/src/modules/helpers/hooks/use-shallow-stable-value.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/language-switcher/components/language-switcher.d.ts +6 -5
- package/lib/typescript/module/src/modules/language-switcher/components/language-switcher.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/language-switcher/components/option/context/language-option-context.d.ts +1 -1
- package/lib/typescript/module/src/modules/language-switcher/components/option/context/language-option-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/socket/components/socket-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/tab/components/tab-provider.d.ts +2 -1
- package/lib/typescript/module/src/modules/tab/components/tab-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/tab/contexts/tab-context.d.ts +1 -1
- package/lib/typescript/module/src/modules/tab/contexts/tab-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/health-import-card.d.ts +1 -2
- package/lib/typescript/module/src/modules/ui/components/health-import-card.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/pairing-flow.d.ts.map +1 -1
- package/package.json +3 -3
package/lib/typescript/module/src/modules/auth/profile/contexts/profile-form-context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/contexts/profile-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"profile-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/contexts/profile-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;oBAG+wB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAD9yB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-profile-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/hooks/use-profile-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-profile-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/hooks/use-profile-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;oBAW0oB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADrqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/register-form-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"register-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/register-form-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AASpE,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CACzC,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CA4H3C,CAAC"}
|
package/lib/typescript/module/src/modules/auth/reset-password/components/form/inputs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAI5E,eAAO,MAAM,MAAM,GAAI,+BAA+B,eAAe,
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAI5E,eAAO,MAAM,MAAM,GAAI,+BAA+B,eAAe,sBAyDpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset-password-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAGhG,eAAO,MAAM,yBAAyB,GAAI,mDAMvC,8BAA8B,gCA4DhC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ResetPasswordContextType } from "../types/reset-password-context-type";
|
|
3
|
-
export declare const ResetPasswordFormContext: React.Context<ResetPasswordContextType>;
|
|
3
|
+
export declare const ResetPasswordFormContext: React.Context<ResetPasswordContextType | null>;
|
|
4
4
|
//# sourceMappingURL=reset-password-form-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/reset-password/contexts/reset-password-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"reset-password-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/reset-password/contexts/reset-password-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,eAAO,MAAM,wBAAwB,gDACuB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface SessionLogoutClient {
|
|
2
|
+
logout: () => Promise<void>;
|
|
3
|
+
}
|
|
4
|
+
/** Uses one native/provider logout path for hooks and the built-in logout control. */
|
|
5
|
+
export declare const logoutSession: (client: SessionLogoutClient) => Promise<void>;
|
|
6
|
+
//# sourceMappingURL=logout-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/logout-session.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAID,sFAAsF;AACtF,eAAO,MAAM,aAAa,GAAI,QAAQ,mBAAmB,KAAG,OAAO,CAAC,IAAI,CAmBvE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useClient } from "@ovok/core";
|
|
2
|
+
import { OvokNativeSession, SessionRevokeOption, SessionStatus } from "../types/session";
|
|
3
|
+
type Client = ReturnType<typeof useClient>;
|
|
4
|
+
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
|
+
interface SessionSnapshot {
|
|
6
|
+
status: SessionStatus;
|
|
7
|
+
profile?: Profile;
|
|
8
|
+
sessions: OvokNativeSession[];
|
|
9
|
+
error?: Error;
|
|
10
|
+
}
|
|
11
|
+
interface SessionStore {
|
|
12
|
+
snapshot: SessionSnapshot;
|
|
13
|
+
subscribe: (listener: () => void) => () => void;
|
|
14
|
+
refresh: (includeSessions: boolean) => Promise<void>;
|
|
15
|
+
refreshSessions: () => Promise<void>;
|
|
16
|
+
logout: () => Promise<void>;
|
|
17
|
+
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
declare const getSessionStore: (client: Client) => SessionStore;
|
|
20
|
+
export { getSessionStore };
|
|
21
|
+
//# sourceMappingURL=session-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIzF,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAE9D,UAAU,eAAe;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAQD,UAAU,YAAY;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAChD,OAAO,EAAE,CAAC,eAAe,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAuJD,QAAA,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,YAazC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/lib/typescript/module/src/modules/auth/sign-in/components/form/login-form-provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/sign-in/components/form/login-form-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"login-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/sign-in/components/form/login-form-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CACtC,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CA0IxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-login-button.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/sign-in/components/social-logins/apple-login-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"apple-login-button.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/sign-in/components/social-logins/apple-login-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,gBAAgB,GAAI,iFAS9B,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,6BAuG1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-login-button.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/sign-in/components/social-logins/google-login-button.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"google-login-button.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/sign-in/components/social-logins/google-login-button.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,eAAO,MAAM,iBAAiB,GAAI,uHAW/B,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,sBAwG3C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LoginFormContextType } from "../types/login-form-context-type";
|
|
3
|
-
export declare const LoginFormContext: React.Context<LoginFormContextType>;
|
|
3
|
+
export declare const LoginFormContext: React.Context<LoginFormContextType | null>;
|
|
4
4
|
//# sourceMappingURL=login-form-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/sign-in/contexts/login-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"login-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/sign-in/contexts/login-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,eAAO,MAAM,gBAAgB,4CAE5B,CAAC"}
|
package/lib/typescript/module/src/modules/bt-device/components/device-list-provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-list-provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/components/device-list-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,kBAAkB,GAAI,eAEhC;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,
|
|
1
|
+
{"version":3,"file":"device-list-provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/components/device-list-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,kBAAkB,GAAI,eAEhC;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,sBAcA,CAAC"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useDeviceList: () => {
|
|
3
|
-
deviceListItems: import("../..").DeviceListItem[];
|
|
4
|
-
setDeviceListItems: React.Dispatch<React.SetStateAction<import("../..").DeviceListItem[]>>;
|
|
5
|
-
};
|
|
1
|
+
export declare const useDeviceList: () => import("../..").DeviceListContextValue;
|
|
6
2
|
//# sourceMappingURL=use-device-list.d.ts.map
|
package/lib/typescript/module/src/modules/bt-device/components/hooks/use-device-list.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-device-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-device/components/hooks/use-device-list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-device-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-device/components/hooks/use-device-list.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,8CAUzB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DeviceListItem } from "../types/device-list-item";
|
|
3
|
-
export
|
|
3
|
+
export interface DeviceListContextValue {
|
|
4
4
|
deviceListItems: DeviceListItem[];
|
|
5
5
|
setDeviceListItems: React.Dispatch<React.SetStateAction<DeviceListItem[]>>;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
|
+
export declare const DeviceListContext: React.Context<DeviceListContextValue | null>;
|
|
7
8
|
//# sourceMappingURL=device-list-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-list-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/contexts/device-list-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,
|
|
1
|
+
{"version":3,"file":"device-list-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/contexts/device-list-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;CAC5E;AAED,eAAO,MAAM,iBAAiB,8CAC4B,CAAC"}
|
package/lib/typescript/module/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { AcceptedDevice } from "../types/accepted-device";
|
|
3
3
|
import { BTProviderChildWrapperProps } from "../types/btprovider-children-props";
|
|
4
|
-
export declare const BTProviderChildWrapper: <T extends readonly AcceptedDevice[]>(
|
|
4
|
+
export declare const BTProviderChildWrapper: <T extends readonly AcceptedDevice[]>({ bleManager, acceptedDevices, children, oneReadingPerConnection, deliveredEcgFileNames, deliveredFileNames, clearDeviceHistory, onDeviceFound, onError, onDeviceStatusChanged, onConnectionEvent, onResult, resultPolicies, clockSync, autoConnect, autoConnectDelayMs, onDeviceSelectionRequired, backgroundSync, }: React.PropsWithChildren<BTProviderChildWrapperProps<T>>) => React.JSX.Element;
|
|
5
5
|
//# sourceMappingURL=bt-provider-child-wrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bt-provider-child-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bt-provider-child-wrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"bt-provider-child-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bt-provider-child-wrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AA4BjF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,SAAS,cAAc,EAAE,EAAE,uTAmBvE,KAAK,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,sBAsd3D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AcceptedDevice } from "../types/accepted-device";
|
|
3
3
|
import { BTProviderProps } from "../types/btprovider-props";
|
|
4
|
-
export declare const BTProvider: <T extends readonly AcceptedDevice[]>({ permissionFallback, onAccessPermissionChanged, ...props }: React.PropsWithChildren<BTProviderProps<T>>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
4
|
+
export declare const BTProvider: <T extends readonly AcceptedDevice[]>({ permissionFallback, gateOnPermission, onAccessPermissionChanged, ...props }: React.PropsWithChildren<BTProviderProps<T>>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
5
5
|
//# sourceMappingURL=bt-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bt-provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bt-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAK5D,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,SAAS,cAAc,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"bt-provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bt-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAK5D,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,SAAS,cAAc,EAAE,EAAE,+EAK7D,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,oSAkB7C,CAAC"}
|
|
@@ -5,8 +5,14 @@ import { DeviceConnectionEvent } from "../types/device-connection-event";
|
|
|
5
5
|
import { DeviceData } from "../types/device-data";
|
|
6
6
|
import { DeviceKey } from "../types/device-key";
|
|
7
7
|
import { DeviceStatus } from "../types/device-status";
|
|
8
|
+
import { DeviceStatusChangeCallback } from "../types/device-status-change-callback";
|
|
8
9
|
import { ErrorCallback } from "../types/error-callback";
|
|
9
10
|
import { ResultCallback } from "../types/result-callback";
|
|
11
|
+
/** Typed union exposed when a host listens to every accepted device. */
|
|
12
|
+
export type RuntimeResult = ResultCallback<DeviceKey>;
|
|
13
|
+
export type RuntimeError = ErrorCallback;
|
|
14
|
+
export type RuntimeConnectionEvent = DeviceConnectionEvent;
|
|
15
|
+
export type RuntimeBluetoothState = "unknown" | "on" | "off" | "unauthorized" | "unsupported";
|
|
10
16
|
export interface RuntimeDevice {
|
|
11
17
|
id: string;
|
|
12
18
|
deviceData: DeviceData;
|
|
@@ -17,36 +23,61 @@ export interface RuntimeDevice {
|
|
|
17
23
|
disconnect: () => Promise<void>;
|
|
18
24
|
};
|
|
19
25
|
status?: DeviceStatus;
|
|
26
|
+
latestResult?: RuntimeResult;
|
|
27
|
+
results?: readonly RuntimeResult[];
|
|
28
|
+
events?: readonly RuntimeConnectionEvent[];
|
|
29
|
+
}
|
|
30
|
+
export interface RuntimeEventMap {
|
|
31
|
+
deviceFound: RuntimeDevice;
|
|
32
|
+
pairedDevices: {
|
|
33
|
+
storageKey: string;
|
|
34
|
+
};
|
|
35
|
+
error: RuntimeError;
|
|
36
|
+
status: DeviceStatusChangeCallback;
|
|
37
|
+
result: RuntimeResult;
|
|
38
|
+
connection: RuntimeConnectionEvent;
|
|
39
|
+
}
|
|
40
|
+
export type RuntimeEvent = keyof RuntimeEventMap;
|
|
41
|
+
export interface BluetoothRuntimeSnapshot {
|
|
42
|
+
devices: readonly RuntimeDevice[];
|
|
43
|
+
backgroundScanEnabled: boolean;
|
|
44
|
+
managerReady: boolean;
|
|
45
|
+
bluetoothState: RuntimeBluetoothState;
|
|
20
46
|
}
|
|
21
47
|
export interface BluetoothRuntime {
|
|
22
48
|
bleManager?: BleManager;
|
|
23
49
|
manager?: BluetoothRuntimeManager;
|
|
24
50
|
subscribeState: (callback: () => void) => () => void;
|
|
51
|
+
getSnapshot: () => BluetoothRuntimeSnapshot;
|
|
25
52
|
devices: readonly RuntimeDevice[];
|
|
26
|
-
|
|
53
|
+
getBackgroundScanEnabled: () => boolean;
|
|
54
|
+
initializeBackgroundScanEnabled: (enabled: boolean) => void;
|
|
55
|
+
setBackgroundScanEnabled: (enabled: boolean) => void;
|
|
56
|
+
setBluetoothState: (state: RuntimeBluetoothState) => void;
|
|
57
|
+
subscribe: <K extends RuntimeEvent>(event: K, callback: (value: RuntimeEventMap[K]) => void) => () => void;
|
|
27
58
|
hasListeners: (event: RuntimeEvent) => boolean;
|
|
28
|
-
emit: <
|
|
59
|
+
emit: <K extends RuntimeEvent>(event: K, value: RuntimeEventMap[K]) => void;
|
|
29
60
|
setManager: (manager?: BluetoothRuntimeManager) => void;
|
|
30
61
|
setAutoConnect: (enabled: boolean, delayMs?: number, onDeviceSelectionRequired?: Parameters<BTManager<readonly never[]>["setAutoConnect"]>[2]) => void;
|
|
31
62
|
getPairedDeviceIds: (storageKey: string) => readonly string[] | undefined;
|
|
32
63
|
loadPairedDeviceIds: (storageKey: string, load: () => Promise<readonly string[]>) => Promise<readonly string[]>;
|
|
33
64
|
setPairedDeviceIds: (storageKey: string, ids: readonly string[]) => void;
|
|
34
65
|
upsertDevice: (device: RuntimeDevice["device"]) => void;
|
|
66
|
+
setDeviceResult: (result: RuntimeResult) => void;
|
|
67
|
+
getResultConnectionId: (result: RuntimeResult) => number;
|
|
68
|
+
clearResults: () => void;
|
|
69
|
+
setDeviceConnectionEvent: (event: RuntimeConnectionEvent) => void;
|
|
35
70
|
setDeviceStatus: (value: {
|
|
36
71
|
deviceData: DeviceData;
|
|
37
72
|
status: DeviceStatus;
|
|
38
73
|
}) => void;
|
|
39
74
|
}
|
|
40
75
|
export type BluetoothRuntimeManager = Pick<BTManager<readonly never[]>, "setBackgroundScanEnabled" | "pauseScan" | "resumeScan" | "forget" | "setAutoConnect">;
|
|
41
|
-
export
|
|
42
|
-
export declare const createBluetoothRuntime: (bleManager?: BleManager) => BluetoothRuntime;
|
|
76
|
+
export declare const createBluetoothRuntime: (bleManager?: BleManager, initialBackgroundScanEnabled?: boolean) => BluetoothRuntime;
|
|
43
77
|
export declare const BluetoothRuntimeProvider: ({ runtime, children, }: React.PropsWithChildren<{
|
|
44
78
|
runtime: BluetoothRuntime;
|
|
45
79
|
}>) => React.JSX.Element;
|
|
46
80
|
export declare const useBluetoothRuntime: () => BluetoothRuntime;
|
|
47
|
-
export declare const useRuntimeEvent: <
|
|
48
|
-
|
|
49
|
-
export type RuntimeResult = ResultCallback<DeviceKey>;
|
|
50
|
-
export type RuntimeError = ErrorCallback;
|
|
51
|
-
export type RuntimeConnectionEvent = DeviceConnectionEvent;
|
|
81
|
+
export declare const useRuntimeEvent: <K extends RuntimeEvent>(event: K, callback: (value: RuntimeEventMap[K]) => void) => void;
|
|
82
|
+
export declare const useBluetoothSelector: <Selection>(selector: (snapshot: BluetoothRuntimeSnapshot) => Selection, isEqual?: (previous: Selection, next: Selection) => boolean) => Selection;
|
|
52
83
|
//# sourceMappingURL=runtime-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/runtime-context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,UAAU,CAAC;QACvB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7B,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;KACjC,CAAC;IACF,MAAM,CAAC,EAAE,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/runt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WAAW,GACX,YAAY,GACZ,QAAQ,GACR,gBAAgB,CACnB,CAAC;AAIF,eAAO,MAAM,sBAAsB,GACjC,aAAa,UAAU,EACvB,+BAA+B,OAAO,KACrC,gBAwSF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,wBAGtC,KAAK,CAAC,iBAAiB,CAAC;IAAE,OAAO,EAAE,gBAAgB,CAAA;CAAE,CAAC,sBAExD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,gBAQtC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,YAAY,EACpD,OAAO,CAAC,EACR,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,KAC5C,IAUF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,EAC5C,UAAU,CAAC,QAAQ,EAAE,wBAAwB,KAAK,SAAS,EAC3D,UAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,KAAK,OAAmB,KACrE,SA+BF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-background-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-background-sync.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,KAAK,GAAG,YAAY,GAAG,SAAS,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC9D;AAED,eAAO,MAAM,iBAAiB,GAAI,2DAI/B,wBAA6B,KAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"use-background-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-background-sync.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,KAAK,GAAG,YAAY,GAAG,SAAS,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC9D;AAED,eAAO,MAAM,iBAAiB,GAAI,2DAI/B,wBAA6B,KAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;CAkDf,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type BluetoothPermissionStatus = "unknown" | "granted" | "denied" | "blocked";
|
|
2
|
+
interface UseBluetoothPermissionOptions {
|
|
3
|
+
requestOnMount?: boolean;
|
|
4
|
+
requestPermission?: () => Promise<boolean>;
|
|
5
|
+
onPermissionChanged?: (granted: boolean) => void;
|
|
6
|
+
onRequestError?: (error: unknown) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const requestBluetoothPermission: () => Promise<boolean>;
|
|
9
|
+
declare const useBluetoothPermission: ({ requestOnMount, requestPermission, onPermissionChanged, onRequestError, }?: UseBluetoothPermissionOptions) => {
|
|
10
|
+
status: BluetoothPermissionStatus;
|
|
11
|
+
request: () => Promise<boolean>;
|
|
12
|
+
requestPermission: () => Promise<boolean>;
|
|
13
|
+
openSettings: () => void;
|
|
14
|
+
accessPermission: boolean | undefined;
|
|
15
|
+
};
|
|
16
|
+
export { BluetoothPermissionStatus, requestBluetoothPermission, UseBluetoothPermissionOptions, useBluetoothPermission, };
|
|
17
|
+
//# sourceMappingURL=use-bluetooth-permission.d.ts.map
|
package/lib/typescript/module/src/modules/bt-management/hooks/use-bluetooth-permission.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-bluetooth-permission.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-bluetooth-permission.ts"],"names":[],"mappings":"AAIA,KAAK,yBAAyB,GAC1B,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,CAAC;AAEd,UAAU,6BAA6B;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3C;AAgDD,QAAA,MAAM,0BAA0B,QAAa,OAAO,CAAC,OAAO,CACR,CAAC;AAErD,QAAA,MAAM,sBAAsB,GAAI,8EAK7B,6BAAkC;;mBAYG,OAAO,CAAC,OAAO,CAAC;6BAAhB,OAAO,CAAC,OAAO,CAAC;;;CAmEvD,CAAC;AAEF,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,sBAAsB,GACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-bluetooth-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-bluetooth-state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-bluetooth-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-bluetooth-state.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAS,MAAM,sBAAsB,CAAC;AAKzD,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,KAAK,GAAG,cAAc,GAAG,aAAa,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5C;AAED,eAAO,MAAM,iBAAiB,GAAI,qCAG/B,wBAA6B,KAAG;IACjC,KAAK,EAAE,cAAc,CAAC;IACtB,iBAAiB,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CAoC3C,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Characteristic } from "react-native-ble-plx";
|
|
2
|
+
import { DeviceKey } from "../types/device-key";
|
|
3
|
+
import { RuntimeDevice, RuntimeResult } from "./runtime-context";
|
|
4
|
+
interface UseBTDeviceOptions {
|
|
5
|
+
id?: string;
|
|
6
|
+
autoConnect?: boolean;
|
|
7
|
+
allowRawAccess?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface RawBluetoothAccess {
|
|
10
|
+
read: (serviceUUID: string, characteristicUUID: string) => Promise<Characteristic>;
|
|
11
|
+
write: (serviceUUID: string, characteristicUUID: string, base64Value: string, withResponse?: boolean) => Promise<Characteristic>;
|
|
12
|
+
}
|
|
13
|
+
declare class DeviceSelectionRequiredError extends Error {
|
|
14
|
+
constructor(model: DeviceKey, ids: readonly string[]);
|
|
15
|
+
}
|
|
16
|
+
declare const useBTDevice: (model: DeviceKey, { id, autoConnect, allowRawAccess }?: UseBTDeviceOptions) => {
|
|
17
|
+
model: DeviceKey;
|
|
18
|
+
devices: RuntimeDevice[];
|
|
19
|
+
device: RuntimeDevice | undefined;
|
|
20
|
+
requiresSelection: boolean;
|
|
21
|
+
status: import("..").DeviceStatus | undefined;
|
|
22
|
+
latestResult: RuntimeResult | undefined;
|
|
23
|
+
results: readonly RuntimeResult[];
|
|
24
|
+
events: readonly import("..").DeviceConnectionEvent[];
|
|
25
|
+
select: (deviceId: string) => boolean;
|
|
26
|
+
connect: () => Promise<void>;
|
|
27
|
+
disconnect: () => Promise<void>;
|
|
28
|
+
raw: RawBluetoothAccess | undefined;
|
|
29
|
+
};
|
|
30
|
+
export { DeviceSelectionRequiredError, RawBluetoothAccess, UseBTDeviceOptions, useBTDevice, };
|
|
31
|
+
//# sourceMappingURL=use-bt-device.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-bt-device.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-bt-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAuB,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAEL,aAAa,EACb,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAE3B,UAAU,kBAAkB;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IACnF,KAAK,EAAE,CACL,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,MAAM,EACnB,YAAY,CAAC,EAAE,OAAO,KACnB,OAAO,CAAC,cAAc,CAAC,CAAC;CAC9B;AAED,cAAM,4BAA6B,SAAQ,KAAK;gBAClC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,MAAM,EAAE;CAIrD;AAmCD,QAAA,MAAM,WAAW,GACf,OAAO,SAAS,EAChB,sCAAqD,kBAAuB;;;;;;;;;uBAoDhC,MAAM;;;;CAoGnD,CAAC;AAEF,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,GACZ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DeviceConnectionEvent } from "../types/device-connection-event";
|
|
2
1
|
import { DeviceStatus } from "../types/device-status";
|
|
2
|
+
import { RuntimeConnectionEvent } from "./runtime-context";
|
|
3
3
|
export declare const useDeviceConnection: (id?: string) => {
|
|
4
4
|
status?: DeviceStatus;
|
|
5
|
-
events: readonly
|
|
5
|
+
events: readonly RuntimeConnectionEvent[];
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=use-device-connection.d.ts.map
|
package/lib/typescript/module/src/modules/bt-management/hooks/use-device-connection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-device-connection.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-device-connection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-device-connection.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-device-connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EACL,sBAAsB,EAEvB,MAAM,mBAAmB,CAAC;AAI3B,eAAO,MAAM,mBAAmB,GAC9B,KAAK,MAAM,KACV;IAAE,MAAM,CAAC,EAAE,YAAY,CAAC;IAAC,MAAM,EAAE,SAAS,sBAAsB,EAAE,CAAA;CAsBpE,CAAC"}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
request: (types: readonly TType[], background: boolean) => Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
export declare const useHealthImport: <TType extends string>({ types, background, adapter, }: {
|
|
6
|
-
types: readonly TType[];
|
|
7
|
-
background?: boolean;
|
|
8
|
-
adapter: HealthImportAdapter<TType>;
|
|
9
|
-
}) => {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
setEnabled: (enabled: boolean) => Promise<void>;
|
|
12
|
-
statusByType: Partial<Record<TType, Awaited<ReturnType<HealthImportAdapter<TType>["getStatus"]>>>>;
|
|
13
|
-
notShared: readonly TType[];
|
|
14
|
-
error?: Error;
|
|
15
|
-
};
|
|
1
|
+
/** @deprecated Import useHealthImport from the data-sync module instead. */
|
|
2
|
+
export { useHealthImport, type HealthImportAdapter, } from "../../data-sync/hooks/use-health-import";
|
|
16
3
|
//# sourceMappingURL=use-health-import.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-health-import.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-health-import.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-health-import.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-health-import.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EACL,eAAe,EACf,KAAK,mBAAmB,GACzB,MAAM,yCAAyC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-measurements.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-measurements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,
|
|
1
|
+
{"version":3,"file":"use-measurements.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-measurements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EACL,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAqED,eAAO,MAAM,eAAe,GAC1B,WAAW,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,EAC1C,yBAAsC,sBAA2B,KAChE;IAAE,YAAY,EAAE,SAAS,aAAa,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAA;CAiC7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-nearby-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-nearby-devices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,
|
|
1
|
+
{"version":3,"file":"use-nearby-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-nearby-devices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EACL,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,gBAAgB,QAAO;IAClC,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;IAClC,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;CA8B1D,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-paired-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-paired-devices.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAuB,MAAM,mBAAmB,CAAC;AAEvE,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,GAAI,oCAI9B,uBAAuB,KAAG;IAC3B,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,IAAI,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-paired-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-paired-devices.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAuB,MAAM,mBAAmB,CAAC;AAEvE,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,GAAI,oCAI9B,uBAAuB,KAAG;IAC3B,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,IAAI,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAuGvC,CAAC"}
|
|
@@ -3,5 +3,6 @@ import { IntegratedDevices } from "../types/integrated-devices";
|
|
|
3
3
|
export declare const useRequestPermissions: ({ onAccessPermissionChanged, }: Pick<BTProviderProps<IntegratedDevices[]>, "onAccessPermissionChanged">) => {
|
|
4
4
|
accessPermission: boolean | undefined;
|
|
5
5
|
openBleSetting: () => void;
|
|
6
|
+
requestPermission: () => Promise<boolean>;
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=use-request-permissions.d.ts.map
|
package/lib/typescript/module/src/modules/bt-management/hooks/use-request-permissions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-request-permissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-request-permissions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-request-permissions.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-request-permissions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIhE,eAAO,MAAM,qBAAqB,GAAI,gCAEnC,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,CAAC,EAAE,2BAA2B,CAAC;;;;CAezE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-scan-control.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-scan-control.ts"],"names":[],"mappings":"AAIA,0DAA0D;AAC1D,eAAO,MAAM,cAAc,QAAO;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"use-scan-control.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-scan-control.ts"],"names":[],"mappings":"AAIA,0DAA0D;AAC1D,eAAO,MAAM,cAAc,QAAO;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,IAAI,CAAC;CAkBxB,CAAC"}
|
|
@@ -90,13 +90,18 @@ export * from "./components/bt-provider";
|
|
|
90
90
|
export * from "./components/bluetooth-device-picker";
|
|
91
91
|
export * from "./components/default-permission-fallback";
|
|
92
92
|
export * from "./hooks/use-request-permissions";
|
|
93
|
+
export * from "./hooks/use-bluetooth-permission";
|
|
93
94
|
export * from "./hooks/runtime-context";
|
|
94
95
|
export * from "./hooks/use-bluetooth-state";
|
|
95
96
|
export * from "./hooks/use-nearby-devices";
|
|
96
97
|
export * from "./hooks/use-paired-devices";
|
|
97
98
|
export * from "./hooks/use-device-connection";
|
|
99
|
+
export * from "./hooks/use-bt-device";
|
|
98
100
|
export * from "./hooks/use-measurements";
|
|
99
101
|
export * from "./hooks/use-background-sync";
|
|
100
|
-
|
|
102
|
+
/** @deprecated Import useHealthImport from @ovok/native/data-sync instead. */
|
|
103
|
+
export { useHealthImport, } from "../data-sync/hooks/use-health-import";
|
|
104
|
+
/** @deprecated Import HealthImportAdapter from @ovok/native/data-sync instead. */
|
|
105
|
+
export type { HealthImportAdapter, } from "../data-sync/hooks/use-health-import";
|
|
101
106
|
export * from "./hooks/use-scan-control";
|
|
102
107
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/bt-management/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C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;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAE5C,8EAA8E;AAC9E,OAAO,EACL,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAE9C,kFAAkF;AAClF,YAAY,EACV,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,cAAc,0BAA0B,CAAC"}
|
|
@@ -6,5 +6,7 @@ export interface BTProviderProps<T extends readonly AcceptedDevice[]> extends BT
|
|
|
6
6
|
* Callback to be called when the access permission is not granted and the user is asked to open the settings
|
|
7
7
|
*/
|
|
8
8
|
permissionFallback?: () => React.ReactNode;
|
|
9
|
+
/** Keep children mounted while permission is pending or denied when false (default). */
|
|
10
|
+
gateOnPermission?: boolean;
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=btprovider-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"btprovider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/btprovider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,SAAS,cAAc,EAAE,CAClE,SAAQ,2BAA2B,CAAC,CAAC,CAAC;IACtC,yBAAyB,CAAC,EAAE,CAAC,gBAAgB,EAAE,OAAO,KAAK,IAAI,CAAC;IAEhE;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"btprovider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/btprovider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,SAAS,cAAc,EAAE,CAClE,SAAQ,2BAA2B,CAAC,CAAC,CAAC;IACtC,yBAAyB,CAAC,EAAE,CAAC,gBAAgB,EAAE,OAAO,KAAK,IAAI,CAAC;IAEhE;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IAE3C,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OvokCmsDocument, OvokCmsListOptions, OvokCmsOptions, OvokCmsPage, OvokRequestState } from "@ovok/core";
|
|
2
|
+
declare const useCmsDocument: <T extends object = OvokCmsDocument>(collection: string, slug: string | undefined, options?: OvokCmsOptions) => OvokRequestState<T>;
|
|
3
|
+
declare const useCmsDocuments: <T extends object = OvokCmsDocument>(collection: string, options?: OvokCmsListOptions) => OvokRequestState<OvokCmsPage<T>>;
|
|
4
|
+
/** With `tenantCode`, readable before sign-in. */
|
|
5
|
+
declare const useLegalPage: (slug: string | undefined, options?: OvokCmsOptions) => OvokRequestState<OvokCmsDocument>;
|
|
6
|
+
/** Newest first unless `sort` says otherwise. Needs a session. */
|
|
7
|
+
declare const useReleaseNotes: (options?: OvokCmsListOptions) => OvokRequestState<OvokCmsPage>;
|
|
8
|
+
export { useCmsDocument, useCmsDocuments, useLegalPage, useReleaseNotes };
|
|
9
|
+
//# sourceMappingURL=use-cms-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-cms-content.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/cms/hooks/use-cms-content.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,gBAAgB,EAKjB,MAAM,YAAY,CAAC;AASpB,QAAA,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,GAAG,eAAe,EACxD,YAAY,MAAM,EAClB,MAAM,MAAM,GAAG,SAAS,EACxB,UAAS,cAAmB,KAC3B,gBAAgB,CAAC,CAAC,CAIpB,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,CAAC,SAAS,MAAM,GAAG,eAAe,EACzD,YAAY,MAAM,EAClB,UAAS,kBAAuB,KAC/B,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC,CAIjC,CAAC;AAEF,kDAAkD;AAClD,QAAA,MAAM,YAAY,GAChB,MAAM,MAAM,GAAG,SAAS,EACxB,UAAS,cAAmB,KAC3B,gBAAgB,CAAC,eAAe,CAIlC,CAAC;AAEF,kEAAkE;AAClE,QAAA,MAAM,eAAe,GAAI,UAAS,kBAAuB,KAAG,gBAAgB,CAAC,WAAW,CAIvF,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OvokCmsLocale } from "@ovok/core";
|
|
2
|
+
/**
|
|
3
|
+
* The app's i18next language as an Ovok CMS locale ("de-DE" reads "de"; a
|
|
4
|
+
* language the CMS doesn't carry reads "en"). Follows `i18n.changeLanguage`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useCmsLocale: () => OvokCmsLocale;
|
|
7
|
+
//# sourceMappingURL=use-cms-locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-cms-locale.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/cms/hooks/use-cms-locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,YAAY,CAAC;AAGxD;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,aAI/B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OvokCmsOptions, OvokRequestState, OvokTranslations } from "@ovok/core";
|
|
2
|
+
/**
|
|
3
|
+
* Loads the CMS `translations` collection into the app's i18next instance:
|
|
4
|
+
* read in the i18next language unless `options.locale` is set, and added under
|
|
5
|
+
* its CMS locale ("de", which a "de-DE" language still resolves through). The
|
|
6
|
+
* app's own strings still win; the CMS replaces the SDK's built-in English.
|
|
7
|
+
* Call it once, near the root; signed out, pass `tenantCode`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useCmsTranslations: (options?: OvokCmsOptions) => OvokRequestState<OvokTranslations>;
|
|
10
|
+
//# sourceMappingURL=use-cms-translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-cms-translations.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/cms/hooks/use-cms-translations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAGjB,MAAM,YAAY,CAAC;AAQpB;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAS,cAAmB,KAAG,gBAAgB,CAAC,gBAAgB,CAuBlG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cms/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OvokTranslations } from "@ovok/core";
|
|
2
|
+
import { i18n as I18n } from "i18next";
|
|
3
|
+
/**
|
|
4
|
+
* Merges CMS translations into i18next's "translation" namespace under `lng`.
|
|
5
|
+
* The app's own strings win over the CMS, and the CMS wins over the SDK's
|
|
6
|
+
* built-in English: a text is written only where `lng` has none, where it is
|
|
7
|
+
* still the SDK's English default, or where it is still what this helper
|
|
8
|
+
* wrote last time, so a refreshed CMS text replaces its own older one.
|
|
9
|
+
* Returns whether anything changed.
|
|
10
|
+
*/
|
|
11
|
+
declare const mergeCmsTranslations: (i18n: I18n, lng: string, translations: OvokTranslations) => boolean;
|
|
12
|
+
export { mergeCmsTranslations };
|
|
13
|
+
//# sourceMappingURL=merge-cms-translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-cms-translations.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/cms/merge-cms-translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAuB,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,SAAS,CAAC;AAuBvC;;;;;;;GAOG;AACH,QAAA,MAAM,oBAAoB,GAAI,MAAM,IAAI,EAAE,KAAK,MAAM,EAAE,cAAc,gBAAgB,KAAG,OAsBvF,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|