@ovok/native 1.10.1 → 1.10.3
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 +5 -5
- package/lib/commonjs/index.js +13 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/auth/default-translation.js +5 -0
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
- package/lib/commonjs/modules/auth/delete-account-button/components/delete-account-button.js +17 -2
- 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 +12 -5
- package/lib/commonjs/modules/auth/hooks/use-auth-action.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-session.js +1 -1
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-sign-in.js +4 -4
- package/lib/commonjs/modules/auth/hooks/use-sign-in.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-social-sign-in.js +2 -10
- package/lib/commonjs/modules/auth/hooks/use-social-sign-in.js.map +1 -1
- package/lib/commonjs/modules/auth/index.js +11 -0
- package/lib/commonjs/modules/auth/index.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/form-phone-country-picker.js +97 -0
- package/lib/commonjs/modules/auth/profile/components/form-phone-country-picker.js.map +1 -0
- package/lib/commonjs/modules/auth/profile/components/form-phone-field.js +17 -57
- package/lib/commonjs/modules/auth/profile/components/form-phone-field.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-choice-field.js +4 -0
- package/lib/commonjs/modules/auth/profile/components/profile-form-choice-field.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js +4 -7
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/utils/phone-countries.js +55 -0
- package/lib/commonjs/modules/auth/profile/utils/phone-countries.js.map +1 -0
- package/lib/commonjs/modules/auth/register/components/form/inputs.js +6 -1
- package/lib/commonjs/modules/auth/register/components/form/inputs.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +12 -12
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js +10 -9
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/session/logout-session.js +5 -2
- package/lib/commonjs/modules/auth/session/logout-session.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-errors.js +21 -0
- package/lib/commonjs/modules/auth/session/session-errors.js.map +1 -0
- package/lib/commonjs/modules/auth/session/session-store-types.js +17 -0
- package/lib/commonjs/modules/auth/session/session-store-types.js.map +1 -0
- package/lib/commonjs/modules/auth/session/session-store.js +77 -32
- package/lib/commonjs/modules/auth/session/session-store.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.js +5 -10
- 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 -9
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.js.map +1 -1
- package/lib/commonjs/modules/auth/utils/sign-in-error.js +10 -6
- package/lib/commonjs/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/commonjs/modules/auth/utils/sign-out-google.js +10 -3
- package/lib/commonjs/modules/auth/utils/sign-out-google.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +35 -6
- 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 +12 -4
- package/lib/commonjs/modules/bt-management/components/bt-provider.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/default-permission-fallback.js +43 -3
- package/lib/commonjs/modules/bt-management/components/default-permission-fallback.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/declined-device-storage.js +79 -0
- package/lib/commonjs/modules/bt-management/hooks/declined-device-storage.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/nearby-device-offer-state.js +25 -0
- package/lib/commonjs/modules/bt-management/hooks/nearby-device-offer-state.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/nearby-device-offer-types.js +6 -0
- package/lib/commonjs/modules/bt-management/hooks/nearby-device-offer-types.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js +12 -2
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-permission.js +7 -0
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-permission.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-state.js +11 -2
- package/lib/commonjs/modules/bt-management/hooks/use-bluetooth-state.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-nearby-device-offer.js +28 -46
- package/lib/commonjs/modules/bt-management/hooks/use-nearby-device-offer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-request-permissions.js +3 -1
- package/lib/commonjs/modules/bt-management/hooks/use-request-permissions.js.map +1 -1
- package/lib/commonjs/modules/bt-management/index.js +12 -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 +11 -0
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- 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 +5 -2
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/types/bluetooth-error.js +2 -1
- package/lib/commonjs/modules/bt-management/types/bluetooth-error.js.map +1 -1
- package/lib/commonjs/modules/bt-management/types/bluetooth-permission-status.js +2 -0
- package/lib/commonjs/modules/bt-management/types/bluetooth-permission-status.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +33 -19
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js +51 -11
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-units.js +1 -0
- package/lib/commonjs/modules/data-sync/utils/health-units.js.map +1 -1
- package/lib/commonjs/modules/progress-ring/components/progress-ring.js +94 -0
- package/lib/commonjs/modules/progress-ring/components/progress-ring.js.map +1 -0
- package/lib/commonjs/modules/progress-ring/index.js +28 -0
- package/lib/commonjs/modules/progress-ring/index.js.map +1 -0
- package/lib/commonjs/modules/progress-ring/types/progress-ring-props.js +6 -0
- package/lib/commonjs/modules/progress-ring/types/progress-ring-props.js.map +1 -0
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js +45 -20
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/commonjs/modules/ui/components/flow-frame.js +163 -0
- package/lib/commonjs/modules/ui/components/flow-frame.js.map +1 -0
- package/lib/commonjs/modules/ui/default-translation.js +50 -0
- package/lib/commonjs/modules/ui/default-translation.js.map +1 -0
- package/lib/commonjs/modules/ui/index.js +11 -0
- package/lib/commonjs/modules/ui/index.js.map +1 -1
- package/lib/commonjs/polyfills/index.js +12 -0
- package/lib/commonjs/polyfills/index.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 +5 -0
- package/lib/module/modules/auth/default-translation.js.map +1 -1
- package/lib/module/modules/auth/delete-account-button/components/delete-account-button.js +17 -2
- 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 +12 -5
- package/lib/module/modules/auth/hooks/use-auth-action.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-session.js +1 -1
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-sign-in.js +4 -4
- package/lib/module/modules/auth/hooks/use-sign-in.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-social-sign-in.js +2 -10
- package/lib/module/modules/auth/hooks/use-social-sign-in.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/profile/components/form-phone-country-picker.js +92 -0
- package/lib/module/modules/auth/profile/components/form-phone-country-picker.js.map +1 -0
- package/lib/module/modules/auth/profile/components/form-phone-field.js +10 -55
- package/lib/module/modules/auth/profile/components/form-phone-field.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form-choice-field.js +5 -1
- package/lib/module/modules/auth/profile/components/profile-form-choice-field.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form-provider.js +4 -7
- package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/module/modules/auth/profile/utils/phone-countries.js +49 -0
- package/lib/module/modules/auth/profile/utils/phone-countries.js.map +1 -0
- package/lib/module/modules/auth/register/components/form/inputs.js +6 -1
- package/lib/module/modules/auth/register/components/form/inputs.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-form-provider.js +12 -12
- package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js +9 -9
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/module/modules/auth/session/logout-session.js +5 -2
- package/lib/module/modules/auth/session/logout-session.js.map +1 -1
- package/lib/module/modules/auth/session/session-errors.js +16 -0
- package/lib/module/modules/auth/session/session-errors.js.map +1 -0
- package/lib/module/modules/auth/session/session-store-types.js +13 -0
- package/lib/module/modules/auth/session/session-store-types.js.map +1 -0
- package/lib/module/modules/auth/session/session-store.js +76 -31
- package/lib/module/modules/auth/session/session-store.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.js +5 -10
- 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 -9
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.js.map +1 -1
- package/lib/module/modules/auth/utils/sign-in-error.js +9 -6
- package/lib/module/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/module/modules/auth/utils/sign-out-google.js +10 -3
- package/lib/module/modules/auth/utils/sign-out-google.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +36 -7
- 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 +12 -4
- package/lib/module/modules/bt-management/components/bt-provider.js.map +1 -1
- package/lib/module/modules/bt-management/components/default-permission-fallback.js +43 -4
- package/lib/module/modules/bt-management/components/default-permission-fallback.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/declined-device-storage.js +71 -0
- package/lib/module/modules/bt-management/hooks/declined-device-storage.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/nearby-device-offer-state.js +20 -0
- package/lib/module/modules/bt-management/hooks/nearby-device-offer-state.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/nearby-device-offer-types.js +4 -0
- package/lib/module/modules/bt-management/hooks/nearby-device-offer-types.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/runtime-context.js +12 -2
- package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-bluetooth-permission.js +2 -1
- package/lib/module/modules/bt-management/hooks/use-bluetooth-permission.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-bluetooth-state.js +11 -2
- package/lib/module/modules/bt-management/hooks/use-bluetooth-state.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-nearby-device-offer.js +26 -44
- package/lib/module/modules/bt-management/hooks/use-nearby-device-offer.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-request-permissions.js +3 -1
- 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 +11 -0
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- 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 +5 -2
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/types/bluetooth-error.js +2 -1
- package/lib/module/modules/bt-management/types/bluetooth-error.js.map +1 -1
- package/lib/module/modules/bt-management/types/bluetooth-permission-status.js +2 -0
- package/lib/module/modules/bt-management/types/bluetooth-permission-status.js.map +1 -0
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +33 -19
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-data-catalog.js +51 -11
- package/lib/module/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-units.js +1 -0
- package/lib/module/modules/data-sync/utils/health-units.js.map +1 -1
- package/lib/module/modules/progress-ring/components/progress-ring.js +88 -0
- package/lib/module/modules/progress-ring/components/progress-ring.js.map +1 -0
- package/lib/module/modules/progress-ring/index.js +5 -0
- package/lib/module/modules/progress-ring/index.js.map +1 -0
- package/lib/module/modules/progress-ring/types/progress-ring-props.js +4 -0
- package/lib/module/modules/progress-ring/types/progress-ring-props.js.map +1 -0
- package/lib/module/modules/ui/components/bluetooth-state-notice.js +45 -20
- package/lib/module/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/module/modules/ui/components/flow-frame.js +157 -0
- package/lib/module/modules/ui/components/flow-frame.js.map +1 -0
- package/lib/module/modules/ui/default-translation.js +45 -0
- package/lib/module/modules/ui/default-translation.js.map +1 -0
- package/lib/module/modules/ui/index.js +1 -0
- package/lib/module/modules/ui/index.js.map +1 -1
- package/lib/module/polyfills/index.js +1 -1
- package/lib/module/polyfills/index.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 +5 -0
- 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.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-country-picker.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-country-picker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-field.d.ts +1 -6
- package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-choice-field.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/types/profile-form-field.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-props.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/utils/phone-countries.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/utils/phone-countries.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-errors.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +27 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts +1 -18
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.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/types/session.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/types/session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.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.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/default-permission-fallback.d.ts +3 -3
- package/lib/typescript/commonjs/src/modules/bt-management/components/default-permission-fallback.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/declined-device-storage.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/declined-device-storage.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts +3 -0
- 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-bluetooth-permission.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bluetooth-permission.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bluetooth-state.d.ts +3 -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-nearby-device-offer.d.ts +7 -14
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-nearby-device-offer.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/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/bt-management/types/background-sync.d.ts +7 -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.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/bluetooth-permission-status.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/bluetooth-permission-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-children-props.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-children-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-props.d.ts +9 -2
- package/lib/typescript/commonjs/src/modules/bt-management/types/btprovider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement.d.ts +5 -7
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-measurement.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-callback.d.ts +7 -2
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-callback.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/progress-ring/components/progress-ring.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/progress-ring/components/progress-ring.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/progress-ring/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/progress-ring/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/progress-ring/types/progress-ring-props.d.ts +12 -0
- package/lib/typescript/commonjs/src/modules/progress-ring/types/progress-ring-props.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts +8 -5
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/flow-frame.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/ui/components/flow-frame.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/default-translation.d.ts +30 -0
- package/lib/typescript/commonjs/src/modules/ui/default-translation.d.ts.map +1 -0
- 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/polyfills/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/polyfills/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/type-tests/result-callback.d.ts +9 -0
- package/lib/typescript/commonjs/type-tests/result-callback.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts +5 -0
- 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.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/index.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/components/form-phone-country-picker.d.ts +14 -0
- package/lib/typescript/module/src/modules/auth/profile/components/form-phone-country-picker.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/profile/components/form-phone-field.d.ts +1 -6
- package/lib/typescript/module/src/modules/auth/profile/components/form-phone-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/components/profile-form-choice-field.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/types/profile-form-field.d.ts +4 -0
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-props.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/utils/phone-countries.d.ts +10 -0
- package/lib/typescript/module/src/modules/auth/profile/utils/phone-countries.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/register/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-errors.d.ts +4 -0
- package/lib/typescript/module/src/modules/auth/session/session-errors.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +27 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts +1 -18
- package/lib/typescript/module/src/modules/auth/session/session-store.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/types/session.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/types/session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts +3 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-out-google.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.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/default-permission-fallback.d.ts +3 -3
- package/lib/typescript/module/src/modules/bt-management/components/default-permission-fallback.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/declined-device-storage.d.ts +14 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/declined-device-storage.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts +6 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts +15 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts +3 -0
- 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-bluetooth-permission.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bluetooth-permission.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bluetooth-state.d.ts +3 -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-nearby-device-offer.d.ts +7 -14
- package/lib/typescript/module/src/modules/bt-management/hooks/use-nearby-device-offer.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/index.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-device.d.ts +2 -2
- package/lib/typescript/module/src/modules/bt-management/types/background-sync.d.ts +7 -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.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/bluetooth-permission-status.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/types/bluetooth-permission-status.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-children-props.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-children-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-props.d.ts +9 -2
- package/lib/typescript/module/src/modules/bt-management/types/btprovider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-measurement.d.ts +5 -7
- package/lib/typescript/module/src/modules/bt-management/types/custom-measurement.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +2 -2
- package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/result-callback.d.ts +7 -2
- package/lib/typescript/module/src/modules/bt-management/types/result-callback.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts +2 -0
- package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/progress-ring/components/progress-ring.d.ts +3 -0
- package/lib/typescript/module/src/modules/progress-ring/components/progress-ring.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/progress-ring/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/progress-ring/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/progress-ring/types/progress-ring-props.d.ts +12 -0
- package/lib/typescript/module/src/modules/progress-ring/types/progress-ring-props.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts +8 -5
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/flow-frame.d.ts +23 -0
- package/lib/typescript/module/src/modules/ui/components/flow-frame.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/default-translation.d.ts +30 -0
- package/lib/typescript/module/src/modules/ui/default-translation.d.ts.map +1 -0
- 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/polyfills/index.d.ts +1 -1
- package/lib/typescript/module/src/polyfills/index.d.ts.map +1 -1
- package/lib/typescript/module/type-tests/result-callback.d.ts +9 -0
- package/lib/typescript/module/type-tests/result-callback.d.ts.map +1 -0
- package/package.json +6 -7
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Pressable, StyleSheet, View } from "react-native";
|
|
4
|
+
import Svg, { Circle } from "react-native-svg";
|
|
5
|
+
import { useAppTheme } from "../../theme/index.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export const ProgressRing = ({
|
|
8
|
+
progress,
|
|
9
|
+
size = 48,
|
|
10
|
+
strokeWidth = 4,
|
|
11
|
+
color,
|
|
12
|
+
trackColor,
|
|
13
|
+
children,
|
|
14
|
+
onPress,
|
|
15
|
+
style,
|
|
16
|
+
...props
|
|
17
|
+
}) => {
|
|
18
|
+
const theme = useAppTheme();
|
|
19
|
+
const isKnown = typeof progress === "number" && Number.isFinite(progress);
|
|
20
|
+
const normalizedProgress = isKnown ? Math.min(1, Math.max(0, progress)) : null;
|
|
21
|
+
const center = size / 2;
|
|
22
|
+
const radius = Math.max(0, (size - strokeWidth) / 2);
|
|
23
|
+
const circumference = 2 * Math.PI * radius;
|
|
24
|
+
const accessibilityValue = normalizedProgress === null ? {
|
|
25
|
+
min: 0,
|
|
26
|
+
max: 100
|
|
27
|
+
} : {
|
|
28
|
+
min: 0,
|
|
29
|
+
max: 100,
|
|
30
|
+
now: Math.round(normalizedProgress * 100)
|
|
31
|
+
};
|
|
32
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
33
|
+
...props,
|
|
34
|
+
accessibilityRole: onPress ? "button" : "progressbar",
|
|
35
|
+
accessibilityValue: accessibilityValue,
|
|
36
|
+
onPress: onPress,
|
|
37
|
+
style: [styles.container, {
|
|
38
|
+
width: size,
|
|
39
|
+
height: size
|
|
40
|
+
}, style],
|
|
41
|
+
children: [/*#__PURE__*/_jsxs(Svg, {
|
|
42
|
+
width: size,
|
|
43
|
+
height: size,
|
|
44
|
+
viewBox: `0 0 ${size} ${size}`,
|
|
45
|
+
children: [/*#__PURE__*/_jsx(Circle, {
|
|
46
|
+
cx: center,
|
|
47
|
+
cy: center,
|
|
48
|
+
r: radius,
|
|
49
|
+
fill: "none",
|
|
50
|
+
stroke: trackColor ?? theme.colors.gray[300],
|
|
51
|
+
strokeWidth: strokeWidth
|
|
52
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
53
|
+
cx: center,
|
|
54
|
+
cy: center,
|
|
55
|
+
r: radius,
|
|
56
|
+
fill: "none",
|
|
57
|
+
stroke: normalizedProgress === null ? trackColor ?? theme.colors.gray[500] : color ?? theme.colors.primary,
|
|
58
|
+
strokeWidth: strokeWidth,
|
|
59
|
+
strokeLinecap: "round",
|
|
60
|
+
strokeDasharray: normalizedProgress === null ? `${strokeWidth * 1.5} ${strokeWidth}` : circumference,
|
|
61
|
+
strokeDashoffset: normalizedProgress === null ? 0 : circumference * (1 - normalizedProgress),
|
|
62
|
+
rotation: -90,
|
|
63
|
+
originX: center,
|
|
64
|
+
originY: center
|
|
65
|
+
})]
|
|
66
|
+
}), children != null && /*#__PURE__*/_jsx(View, {
|
|
67
|
+
pointerEvents: "box-none",
|
|
68
|
+
style: styles.content,
|
|
69
|
+
children: children
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
const styles = StyleSheet.create({
|
|
74
|
+
container: {
|
|
75
|
+
alignItems: "center",
|
|
76
|
+
justifyContent: "center"
|
|
77
|
+
},
|
|
78
|
+
content: {
|
|
79
|
+
position: "absolute",
|
|
80
|
+
top: 0,
|
|
81
|
+
right: 0,
|
|
82
|
+
bottom: 0,
|
|
83
|
+
left: 0,
|
|
84
|
+
alignItems: "center",
|
|
85
|
+
justifyContent: "center"
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
//# sourceMappingURL=progress-ring.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Pressable","StyleSheet","View","Svg","Circle","useAppTheme","jsx","_jsx","jsxs","_jsxs","ProgressRing","progress","size","strokeWidth","color","trackColor","children","onPress","style","props","theme","isKnown","Number","isFinite","normalizedProgress","Math","min","max","center","radius","circumference","PI","accessibilityValue","now","round","accessibilityRole","styles","container","width","height","viewBox","cx","cy","r","fill","stroke","colors","gray","primary","strokeLinecap","strokeDasharray","strokeDashoffset","rotation","originX","originY","pointerEvents","content","create","alignItems","justifyContent","position","top","right","bottom","left"],"sourceRoot":"../../../../../src","sources":["modules/progress-ring/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4B,QAAQ,EAAE,CAAC,EAAG;QACdC,OAAO,EAAEzB,MAAO;QAChB0B,OAAO,EAAE1B;MAAO,CACjB,CAAC;IAAA,CACC,CAAC,EACLZ,QAAQ,IAAI,IAAI,iBACfT,IAAA,CAACL,IAAI;MAACqD,aAAa,EAAC,UAAU;MAACrC,KAAK,EAAEkB,MAAM,CAACoB,OAAQ;MAAAxC,QAAA,EAClDA;IAAQ,CACL,CACP;EAAA,CACQ,CAAC;AAEhB,CAAC;AAED,MAAMoB,MAAM,GAAGnC,UAAU,CAACwD,MAAM,CAAC;EAC/BpB,SAAS,EAAE;IACTqB,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDH,OAAO,EAAE;IACPI,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,CAAC;IACPN,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/progress-ring/index.ts"],"mappings":";;AAAA,cAAc,+BAA4B;AAC1C,cAAc,gCAA6B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["modules/progress-ring/types/progress-ring-props.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
/* eslint-disable import/group-exports */
|
|
4
|
+
|
|
3
5
|
import * as React from "react";
|
|
6
|
+
import { useTranslation } from "react-i18next";
|
|
4
7
|
import { Linking, Platform, StyleSheet, View } from "react-native";
|
|
5
8
|
import { Button as PaperButton, Card as PaperCard, Text as PaperText } from "react-native-paper";
|
|
6
9
|
import { useBluetoothState } from "../../bt-management/index.js";
|
|
10
|
+
import "../default-translation.js";
|
|
7
11
|
import { useOvokUi } from "../use-ovok-ui.js";
|
|
8
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
13
|
export const BluetoothStateNotice = ({
|
|
@@ -16,6 +20,9 @@ export const BluetoothStateNotice = ({
|
|
|
16
20
|
testID,
|
|
17
21
|
...uiProps
|
|
18
22
|
}) => {
|
|
23
|
+
const {
|
|
24
|
+
t
|
|
25
|
+
} = useTranslation();
|
|
19
26
|
const {
|
|
20
27
|
theme,
|
|
21
28
|
slots
|
|
@@ -25,17 +32,19 @@ export const BluetoothStateNotice = ({
|
|
|
25
32
|
const Text = slots.Text ?? PaperText;
|
|
26
33
|
const {
|
|
27
34
|
state,
|
|
28
|
-
requestPermission: request
|
|
35
|
+
requestPermission: request,
|
|
36
|
+
permissionStatus,
|
|
37
|
+
openSettings: openAppSettings
|
|
29
38
|
} = useBluetoothState({
|
|
30
39
|
bleManager,
|
|
31
40
|
requestPermission
|
|
32
41
|
});
|
|
33
42
|
const [busy, setBusy] = React.useState(false);
|
|
34
|
-
const [
|
|
43
|
+
const [actionFailed, setActionFailed] = React.useState(false);
|
|
35
44
|
if (state === "on") {
|
|
36
45
|
return null;
|
|
37
46
|
}
|
|
38
|
-
const
|
|
47
|
+
const openBluetoothSettings = async () => {
|
|
39
48
|
if (onOpenSettings) {
|
|
40
49
|
await onOpenSettings();
|
|
41
50
|
return;
|
|
@@ -46,12 +55,19 @@ export const BluetoothStateNotice = ({
|
|
|
46
55
|
}
|
|
47
56
|
await Linking.openURL("App-Prefs:Bluetooth");
|
|
48
57
|
};
|
|
58
|
+
const openPermissionSettings = async () => {
|
|
59
|
+
if (onOpenSettings) {
|
|
60
|
+
await onOpenSettings();
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
await openAppSettings();
|
|
64
|
+
};
|
|
49
65
|
const takeAction = async () => {
|
|
50
66
|
setBusy(true);
|
|
51
|
-
|
|
67
|
+
setActionFailed(false);
|
|
52
68
|
try {
|
|
53
|
-
if (settingsAction) {
|
|
54
|
-
await
|
|
69
|
+
if (settingsAction || state === "unauthorized" && permissionStatus === "blocked") {
|
|
70
|
+
await openPermissionSettings();
|
|
55
71
|
} else if (state === "unauthorized") {
|
|
56
72
|
const granted = await request();
|
|
57
73
|
if (granted) {
|
|
@@ -59,30 +75,39 @@ export const BluetoothStateNotice = ({
|
|
|
59
75
|
}
|
|
60
76
|
}
|
|
61
77
|
if (state === "off") {
|
|
62
|
-
await
|
|
78
|
+
await openBluetoothSettings();
|
|
63
79
|
}
|
|
64
|
-
} catch
|
|
65
|
-
|
|
80
|
+
} catch {
|
|
81
|
+
setActionFailed(true);
|
|
66
82
|
} finally {
|
|
67
83
|
setBusy(false);
|
|
68
84
|
}
|
|
69
85
|
};
|
|
70
86
|
const copy = state === "unsupported" ? {
|
|
71
|
-
heading: title ?? "
|
|
72
|
-
body: "
|
|
87
|
+
heading: title ?? t("bluetooth-state-notice.unsupported.heading"),
|
|
88
|
+
body: t("bluetooth-state-notice.unsupported.body"),
|
|
73
89
|
action: undefined
|
|
90
|
+
} : state === "unauthorized" && permissionStatus === "blocked" ? {
|
|
91
|
+
heading: title ?? t("bluetooth-state-notice.blocked.heading"),
|
|
92
|
+
body: t("bluetooth-state-notice.blocked.body"),
|
|
93
|
+
action: t("bluetooth-state-notice.blocked.action")
|
|
94
|
+
} : state === "unauthorized" && permissionStatus === "denied" ? {
|
|
95
|
+
heading: title ?? t("bluetooth-state-notice.denied.heading"),
|
|
96
|
+
body: t("bluetooth-state-notice.denied.body"),
|
|
97
|
+
action: t("bluetooth-state-notice.denied.action")
|
|
74
98
|
} : state === "unauthorized" ? {
|
|
75
|
-
heading: title ?? "
|
|
76
|
-
body:
|
|
77
|
-
action: "
|
|
99
|
+
heading: title ?? t("bluetooth-state-notice.unauthorized.heading"),
|
|
100
|
+
body: t("bluetooth-state-notice.unauthorized.body"),
|
|
101
|
+
action: t("bluetooth-state-notice.unauthorized.action")
|
|
78
102
|
} : {
|
|
79
|
-
heading: title ?? "
|
|
80
|
-
body: "
|
|
81
|
-
action: "
|
|
103
|
+
heading: title ?? t("bluetooth-state-notice.off.heading"),
|
|
104
|
+
body: t("bluetooth-state-notice.off.body"),
|
|
105
|
+
action: t("bluetooth-state-notice.off.action")
|
|
82
106
|
};
|
|
83
107
|
const resolvedCopy = {
|
|
84
108
|
...copy,
|
|
85
|
-
...copyOverride?.[state]
|
|
109
|
+
...copyOverride?.[state],
|
|
110
|
+
...copyOverride?.[permissionStatus]
|
|
86
111
|
};
|
|
87
112
|
const action = settingsAction ?? resolvedCopy.action;
|
|
88
113
|
return /*#__PURE__*/_jsx(Card, {
|
|
@@ -100,12 +125,12 @@ export const BluetoothStateNotice = ({
|
|
|
100
125
|
}), /*#__PURE__*/_jsx(Text, {
|
|
101
126
|
theme: theme,
|
|
102
127
|
children: resolvedCopy.body
|
|
103
|
-
}),
|
|
128
|
+
}), actionFailed && /*#__PURE__*/_jsx(Text, {
|
|
104
129
|
theme: theme,
|
|
105
130
|
style: {
|
|
106
131
|
color: theme.colors.error
|
|
107
132
|
},
|
|
108
|
-
children:
|
|
133
|
+
children: t("bluetooth-state-notice.action-error")
|
|
109
134
|
}), action && /*#__PURE__*/_jsx(Button, {
|
|
110
135
|
theme: theme,
|
|
111
136
|
loading: busy,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Linking","Platform","StyleSheet","View","Button","PaperButton","Card","PaperCard","Text","PaperText","useBluetoothState","useOvokUi","jsx","_jsx","jsxs","_jsxs","BluetoothStateNotice","bleManager","requestPermission","onOpenSettings","title","copy","copyOverride","settingsAction","testID","uiProps","theme","slots","state","request","
|
|
1
|
+
{"version":3,"names":["React","useTranslation","Linking","Platform","StyleSheet","View","Button","PaperButton","Card","PaperCard","Text","PaperText","useBluetoothState","useOvokUi","jsx","_jsx","jsxs","_jsxs","BluetoothStateNotice","bleManager","requestPermission","onOpenSettings","title","copy","copyOverride","settingsAction","testID","uiProps","t","theme","slots","state","request","permissionStatus","openSettings","openAppSettings","busy","setBusy","useState","actionFailed","setActionFailed","openBluetoothSettings","OS","sendIntent","openURL","openPermissionSettings","takeAction","granted","heading","body","action","undefined","resolvedCopy","style","borderRadius","children","styles","content","variant","color","colors","error","loading","disabled","mode","onPress","create","gap","padding"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/bluetooth-state-notice.tsx"],"mappings":";;AAAA;;AAEA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,OAAO,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAElE,SACEC,MAAM,IAAIC,WAAW,EACrBC,IAAI,IAAIC,SAAS,EACjBC,IAAI,IAAIC,SAAS,QACZ,oBAAoB;AAI3B,SAASC,iBAAiB,QAAQ,8BAAqB;AACvD,OAAO,2BAAwB;AAE/B,SAASC,SAAS,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAuB3C,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACnCC,UAAU;EACVC,iBAAiB;EACjBC,cAAc;EACdC,KAAK;EACLC,IAAI,EAAEC,YAAY;EAClBC,cAAc;EACdC,MAAM;EACN,GAAGC;AACsB,CAAC,KAAK;EAC/B,MAAM;IAAEC;EAAE,CAAC,GAAG3B,cAAc,CAAC,CAAC;EAC9B,MAAM;IAAE4B,KAAK;IAAEC;EAAM,CAAC,GAAGjB,SAAS,CAACc,OAAO,CAAC;EAC3C,MAAMrB,MAAM,GAAGwB,KAAK,CAACxB,MAAM,IAAIC,WAAW;EAC1C,MAAMC,IAAI,GAAGsB,KAAK,CAACtB,IAAI,IAAIC,SAAS;EACpC,MAAMC,IAAI,GAAGoB,KAAK,CAACpB,IAAI,IAAIC,SAAS;EAEpC,MAAM;IACJoB,KAAK;IACLX,iBAAiB,EAAEY,OAAO;IAC1BC,gBAAg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ignoreList":[]}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { BackHandler, KeyboardAvoidingView, Platform, Pressable, StyleSheet, View } from "react-native";
|
|
5
|
+
import { Text as PaperText } from "react-native-paper";
|
|
6
|
+
import { SafeAreaView } from "react-native-safe-area-context";
|
|
7
|
+
import { useOvokUi } from "../use-ovok-ui.js";
|
|
8
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
/** Layout primitive for host-owned, multi-step flows. It does not navigate or save data. */
|
|
10
|
+
export const FlowFrame = ({
|
|
11
|
+
children,
|
|
12
|
+
title,
|
|
13
|
+
header,
|
|
14
|
+
footer,
|
|
15
|
+
onBack,
|
|
16
|
+
backLabel = "Back",
|
|
17
|
+
currentStep,
|
|
18
|
+
totalSteps,
|
|
19
|
+
progressAccessibilityLabel,
|
|
20
|
+
safeAreaEdges = ["top", "right", "bottom", "left"],
|
|
21
|
+
keyboardBehavior = "padding",
|
|
22
|
+
keyboardVerticalOffset = 0,
|
|
23
|
+
contentStyle,
|
|
24
|
+
handleAndroidBack = true,
|
|
25
|
+
style,
|
|
26
|
+
testID = "flow-frame",
|
|
27
|
+
theme: themeOverride,
|
|
28
|
+
slots,
|
|
29
|
+
...viewProps
|
|
30
|
+
}) => {
|
|
31
|
+
const {
|
|
32
|
+
theme,
|
|
33
|
+
slots: uiSlots
|
|
34
|
+
} = useOvokUi({
|
|
35
|
+
theme: themeOverride,
|
|
36
|
+
slots
|
|
37
|
+
});
|
|
38
|
+
const Text = uiSlots.Text ?? PaperText;
|
|
39
|
+
const hasProgress = Number.isInteger(currentStep) && Number.isInteger(totalSteps) && (currentStep ?? 0) > 0 && (totalSteps ?? 0) > 0;
|
|
40
|
+
const stepCount = hasProgress ? totalSteps : 0;
|
|
41
|
+
const step = hasProgress ? Math.max(1, Math.min(stepCount, currentStep)) : 0;
|
|
42
|
+
const progress = hasProgress ? step / stepCount : 0;
|
|
43
|
+
React.useEffect(() => {
|
|
44
|
+
if (Platform.OS !== "android" || !handleAndroidBack || !onBack) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
const subscription = BackHandler.addEventListener("hardwareBackPress", () => onBack() !== false);
|
|
48
|
+
return () => subscription.remove();
|
|
49
|
+
}, [handleAndroidBack, onBack]);
|
|
50
|
+
return /*#__PURE__*/_jsx(SafeAreaView, {
|
|
51
|
+
...viewProps,
|
|
52
|
+
edges: safeAreaEdges,
|
|
53
|
+
style: [styles.safeArea, style],
|
|
54
|
+
testID: testID,
|
|
55
|
+
children: /*#__PURE__*/_jsx(KeyboardAvoidingView, {
|
|
56
|
+
behavior: keyboardBehavior,
|
|
57
|
+
keyboardVerticalOffset: keyboardVerticalOffset,
|
|
58
|
+
style: styles.keyboard,
|
|
59
|
+
testID: `${testID}-keyboard`,
|
|
60
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
61
|
+
style: [styles.layout, contentStyle],
|
|
62
|
+
children: [title || onBack || hasProgress || header ? /*#__PURE__*/_jsxs(View, {
|
|
63
|
+
style: styles.header,
|
|
64
|
+
testID: `${testID}-header`,
|
|
65
|
+
children: [onBack || title ? /*#__PURE__*/_jsxs(View, {
|
|
66
|
+
style: styles.heading,
|
|
67
|
+
children: [onBack ? /*#__PURE__*/_jsx(Pressable, {
|
|
68
|
+
accessibilityRole: "button",
|
|
69
|
+
accessibilityLabel: backLabel,
|
|
70
|
+
hitSlop: 8,
|
|
71
|
+
onPress: () => onBack(),
|
|
72
|
+
style: styles.backButton,
|
|
73
|
+
testID: `${testID}-back`,
|
|
74
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
|
75
|
+
theme: theme,
|
|
76
|
+
variant: "labelLarge",
|
|
77
|
+
children: ["\u2039 ", backLabel]
|
|
78
|
+
})
|
|
79
|
+
}) : null, title ? /*#__PURE__*/_jsx(Text, {
|
|
80
|
+
accessibilityRole: "header",
|
|
81
|
+
theme: theme,
|
|
82
|
+
variant: "titleLarge",
|
|
83
|
+
children: title
|
|
84
|
+
}) : null]
|
|
85
|
+
}) : null, hasProgress ? /*#__PURE__*/_jsx(View, {
|
|
86
|
+
accessibilityRole: "progressbar",
|
|
87
|
+
accessibilityLabel: progressAccessibilityLabel ?? `Step ${step} of ${stepCount}`,
|
|
88
|
+
accessibilityValue: {
|
|
89
|
+
min: 1,
|
|
90
|
+
max: stepCount,
|
|
91
|
+
now: step
|
|
92
|
+
},
|
|
93
|
+
style: [styles.progressTrack, {
|
|
94
|
+
backgroundColor: theme.colors.outlineVariant
|
|
95
|
+
}],
|
|
96
|
+
testID: `${testID}-progress`,
|
|
97
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
98
|
+
style: [styles.progressFill, {
|
|
99
|
+
backgroundColor: theme.colors.primary,
|
|
100
|
+
width: `${progress * 100}%`
|
|
101
|
+
}]
|
|
102
|
+
})
|
|
103
|
+
}) : null, header]
|
|
104
|
+
}) : null, /*#__PURE__*/_jsx(View, {
|
|
105
|
+
style: styles.content,
|
|
106
|
+
testID: `${testID}-content`,
|
|
107
|
+
children: children
|
|
108
|
+
}), footer ? /*#__PURE__*/_jsx(View, {
|
|
109
|
+
style: styles.footer,
|
|
110
|
+
testID: `${testID}-footer`,
|
|
111
|
+
children: footer
|
|
112
|
+
}) : null]
|
|
113
|
+
})
|
|
114
|
+
})
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
const styles = StyleSheet.create({
|
|
118
|
+
safeArea: {
|
|
119
|
+
flex: 1
|
|
120
|
+
},
|
|
121
|
+
keyboard: {
|
|
122
|
+
flex: 1
|
|
123
|
+
},
|
|
124
|
+
layout: {
|
|
125
|
+
flex: 1,
|
|
126
|
+
gap: 16,
|
|
127
|
+
padding: 16
|
|
128
|
+
},
|
|
129
|
+
header: {
|
|
130
|
+
gap: 12
|
|
131
|
+
},
|
|
132
|
+
heading: {
|
|
133
|
+
alignItems: "center",
|
|
134
|
+
flexDirection: "row",
|
|
135
|
+
gap: 12
|
|
136
|
+
},
|
|
137
|
+
backButton: {
|
|
138
|
+
minHeight: 44,
|
|
139
|
+
justifyContent: "center"
|
|
140
|
+
},
|
|
141
|
+
progressTrack: {
|
|
142
|
+
borderRadius: 999,
|
|
143
|
+
height: 6,
|
|
144
|
+
overflow: "hidden"
|
|
145
|
+
},
|
|
146
|
+
progressFill: {
|
|
147
|
+
borderRadius: 999,
|
|
148
|
+
height: "100%"
|
|
149
|
+
},
|
|
150
|
+
content: {
|
|
151
|
+
flex: 1
|
|
152
|
+
},
|
|
153
|
+
footer: {
|
|
154
|
+
flexShrink: 0
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
//# sourceMappingURL=flow-frame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","BackHandler","KeyboardAvoidingView","Platform","Pressable","StyleSheet","View","Text","PaperText","SafeAreaView","useOvokUi","jsxs","_jsxs","jsx","_jsx","FlowFrame","children","title","header","footer","onBack","backLabel","currentStep","totalSteps","progressAccessibilityLabel","safeAreaEdges","keyboardBehavior","keyboardVerticalOffset","contentStyle","handleAndroidBack","style","testID","theme","themeOverride","slots","viewProps","uiSlots","hasProgress","Number","isInteger","stepCount","step","Math","max","min","progress","useEffect","OS","undefined","subscription","addEventListener","remove","edges","styles","safeArea","behavior","keyboard","layout","heading","accessibilityRole","accessibilityLabel","hitSlop","onPress","backButton","variant","accessibilityValue","now","progressTrack","backgroundColor","colors","outlineVariant","progressFill","primary","width","content","create","flex","gap","padding","alignItems","flexDirection","minHeight","justifyContent","borderRadius","height","overflow","flexShrink"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/flow-frame.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,WAAW,EACXC,oBAAoB,EACpBC,QAAQ,EACRC,SAAS,EAETC,UAAU,EACVC,IAAI,QAGC,cAAc;AACrB,SAASC,IAAI,IAAIC,SAAS,QAAQ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
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import i18n from "i18next";
|
|
4
|
+
export const defaultUiTranslation = {
|
|
5
|
+
"bluetooth-state-notice": {
|
|
6
|
+
off: {
|
|
7
|
+
heading: "Bluetooth is off",
|
|
8
|
+
body: "Turn on Bluetooth to find and connect to health devices.",
|
|
9
|
+
action: "Open Bluetooth settings"
|
|
10
|
+
},
|
|
11
|
+
unsupported: {
|
|
12
|
+
heading: "Bluetooth is not supported",
|
|
13
|
+
body: "This device cannot use Bluetooth Low Energy."
|
|
14
|
+
},
|
|
15
|
+
unauthorized: {
|
|
16
|
+
heading: "Bluetooth permission is required",
|
|
17
|
+
body: "Allow Bluetooth access to find health devices.",
|
|
18
|
+
action: "Allow access"
|
|
19
|
+
},
|
|
20
|
+
denied: {
|
|
21
|
+
heading: "Bluetooth permission is required",
|
|
22
|
+
body: "Allow Bluetooth access to find health devices.",
|
|
23
|
+
action: "Allow access"
|
|
24
|
+
},
|
|
25
|
+
blocked: {
|
|
26
|
+
heading: "Bluetooth permission is blocked",
|
|
27
|
+
body: "Allow Bluetooth access in app settings to find health devices.",
|
|
28
|
+
action: "Open app settings"
|
|
29
|
+
},
|
|
30
|
+
"action-error": "Bluetooth settings could not be opened. Please try again."
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
if (typeof i18n.addResourceBundle === "function") {
|
|
34
|
+
i18n.addResourceBundle("en", "translation", defaultUiTranslation, true, false);
|
|
35
|
+
} else {
|
|
36
|
+
const resources = i18n.options.resources ?? {};
|
|
37
|
+
const englishResources = Object.assign({}, resources.en);
|
|
38
|
+
const existingTranslation = Object.assign({}, englishResources.translation);
|
|
39
|
+
i18n.options.resources = Object.assign({}, resources, {
|
|
40
|
+
en: Object.assign({}, englishResources, {
|
|
41
|
+
translation: Object.assign({}, defaultUiTranslation, existingTranslation)
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=default-translation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["i18n","defaultUiTranslation","off","heading","body","action","unsupported","unauthorized","denied","blocked","addResourceBundle","resources","options","englishResources","Object","assign","en","existingTranslation","translation"],"sourceRoot":"../../../../src","sources":["modules/ui/default-translation.ts"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,SAAS;AAE1B,OAAO,MAAMC,oBAAoB,GAAG;EAClC,wBAAwB,EAAE;IACxBC,GAAG,EAAE;MACHC,OAAO,EAAE,kBAAkB;MAC3BC,IAAI,EAAE,0DAA0D;MAChEC,MAAM,EAAE;IACV,CAAC;IACDC,WAAW,EAAE;MACXH,OAAO,EAAE,4BAA4B;MACrCC,IAAI,EAAE;IACR,CAAC;IACDG,YAAY,EAAE;MACZJ,OAAO,EAAE,kCAAkC;MAC3CC,IAAI,EAAE,gDAAgD;MACtDC,MAAM,EAAE;IACV,CAAC;IACDG,MAAM,EAAE;MACNL,OAAO,EAAE,kCAAkC;MAC3CC,IAAI,EAAE,gDAAgD;MACtDC,MAAM,EAAE;IACV,CAAC;IACDI,OAAO,EAAE;MACPN,OAAO,EAAE,iCAAiC;MAC1CC,IAAI,EAAE,gEAAgE;MACtEC,MAAM,EAAE;IACV,CAAC;IACD,cAAc,EAAE;EAClB;AACF,CAAC;AAED,IAAI,OAAOL,IAAI,CAACU,iBAAiB,KAAK,UAAU,EAAE;EAChDV,IAAI,CAACU,iBAAiB,CACpB,IAAI,EACJ,aAAa,EACbT,oBAAoB,EACpB,IAAI,EACJ,KACF,CAAC;AACH,CAAC,MAAM;EACL,MAAMU,SAAS,GAAGX,IAAI,CAACY,OAAO,CAACD,SAAS,IAAI,CAAC,CAAC;EAE9C,MAAME,gBAAgB,GAAGC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEJ,SAAS,CAACK,EAAE,CAGtD;EAED,MAAMC,mBAAmB,GAAGH,MAAM,CAACC,MAAM,CACvC,CAAC,CAAC,EACFF,gBAAgB,CAACK,WACnB,CAA4B;EAE5BlB,IAAI,CAACY,OAAO,CAACD,SAAS,GAAGG,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEJ,SAAS,EAAE;IACpDK,EAAE,EAAEF,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEF,gBAAgB,EAAE;MACtCK,WAAW,EAAEJ,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEd,oBAAoB,EAAEgB,mBAAmB;IAC1E,CAAC;EACH,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export * from "./types.js";
|
|
4
4
|
export * from "./use-ovok-ui.js";
|
|
5
5
|
export * from "./components/ecg-strip-viewer.js";
|
|
6
|
+
export * from "./components/flow-frame.js";
|
|
6
7
|
export * from "./components/manual-entry-form.js";
|
|
7
8
|
export * from "./components/supported-devices-catalog-list.js";
|
|
8
9
|
export * from "./components/bluetooth-state-notice.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/ui/index.ts"],"mappings":";;AAAA,cAAc,YAAS;AACvB,cAAc,kBAAe;AAC7B,cAAc,kCAA+B;AAC7C,cAAc,mCAAgC;AAC9C,cAAc,gDAA6C;AAC3D,cAAc,wCAAqC;AACnD,cAAc,8BAA2B;AACzC,cAAc,sCAAmC;AACjD,cAAc,mCAAgC;AAC9C,cAAc,oCAAiC;AAC/C,cAAc,yCAAsC;AACpD,cAAc,yCAAsC;AACpD,cAAc,0BAAuB;AACrC,cAAc,iCAA8B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["modules/ui/index.ts"],"mappings":";;AAAA,cAAc,YAAS;AACvB,cAAc,kBAAe;AAC7B,cAAc,kCAA+B;AAC7C,cAAc,4BAAyB;AACvC,cAAc,mCAAgC;AAC9C,cAAc,gDAA6C;AAC3D,cAAc,wCAAqC;AACnD,cAAc,8BAA2B;AACzC,cAAc,sCAAmC;AACjD,cAAc,mCAAgC;AAC9C,cAAc,oCAAiC;AAC/C,cAAc,yCAAsC;AACpD,cAAc,yCAAsC;AACpD,cAAc,0BAAuB;AACrC,cAAc,iCAA8B","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
export { polyfillMedplumWebAPIs, ExpoClientStorage, ExtendedExpoCrypto, IExpoClientStorage, PolyfillEnabledConfig, cleanupMedplumWebAPIs, initWebSocketManager } from "@medplum/expo-polyfills";
|
|
3
|
+
export { polyfillMedplumWebAPIs, polyfillMedplumWebAPIs as initializeOvokNativeRuntime, ExpoClientStorage, ExtendedExpoCrypto, IExpoClientStorage, PolyfillEnabledConfig, cleanupMedplumWebAPIs, cleanupMedplumWebAPIs as cleanupOvokNativeRuntime, initWebSocketManager } from "@medplum/expo-polyfills";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["polyfillMedplumWebAPIs","ExpoClientStorage","ExtendedExpoCrypto","IExpoClientStorage","PolyfillEnabledConfig","cleanupMedplumWebAPIs","initWebSocketManager"],"sourceRoot":"../../../src","sources":["polyfills/index.ts"],"mappings":";;AAAA,SACEA,sBAAsB,
|
|
1
|
+
{"version":3,"names":["polyfillMedplumWebAPIs","initializeOvokNativeRuntime","ExpoClientStorage","ExtendedExpoCrypto","IExpoClientStorage","PolyfillEnabledConfig","cleanupMedplumWebAPIs","cleanupOvokNativeRuntime","initWebSocketManager"],"sourceRoot":"../../../src","sources":["polyfills/index.ts"],"mappings":";;AAAA,SACEA,sBAAsB,EACtBA,sBAAsB,IAAIC,2BAA2B,EACrDC,iBAAiB,EACjBC,kBAAkB,EAClBC,kBAAkB,EAClBC,qBAAqB,EACrBC,qBAAqB,EACrBA,qBAAqB,IAAIC,wBAAwB,EACjDC,oBAAoB,QACf,yBAAyB","ignoreList":[]}
|
|
@@ -14,6 +14,7 @@ export * from "./polyfills";
|
|
|
14
14
|
export * from "./modules/language-switcher";
|
|
15
15
|
export * from "./modules/journal";
|
|
16
16
|
export * from "./modules/progress-bar";
|
|
17
|
+
export * from "./modules/progress-ring";
|
|
17
18
|
export * from "./modules/patient";
|
|
18
19
|
export * from "./modules/questionnaire-response-form";
|
|
19
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uCAAuC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uCAAuC,CAAC"}
|
|
@@ -9,6 +9,10 @@ export declare const defaultTranslation: {
|
|
|
9
9
|
};
|
|
10
10
|
profile: {
|
|
11
11
|
form: {
|
|
12
|
+
error: {
|
|
13
|
+
network: string;
|
|
14
|
+
generic: string;
|
|
15
|
+
};
|
|
12
16
|
phone: {
|
|
13
17
|
country: string;
|
|
14
18
|
invalid: string;
|
|
@@ -34,6 +38,7 @@ export declare const defaultTranslation: {
|
|
|
34
38
|
patient: string;
|
|
35
39
|
practitioner: string;
|
|
36
40
|
"reset-password": string;
|
|
41
|
+
success: string;
|
|
37
42
|
subtitle: string;
|
|
38
43
|
title: string;
|
|
39
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-account-button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/delete-account-button/components/delete-account-button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,eAAO,MAAM,mBAAmB,GAAI,kDAMjC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"delete-account-button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/delete-account-button/components/delete-account-button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,eAAO,MAAM,mBAAmB,GAAI,kDAMjC,wBAAwB,sBAuH1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-auth-action.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/hooks/use-auth-action.ts"],"names":[],"mappings":"AAEA,KAAK,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEjE,UAAU,eAAe,CAAC,OAAO;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,GAAG,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,aAAa,GAAI,KAAK,SAAS,OAAO,EAAE,EAAE,OAAO,EACrD,QAAQ,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,KAC3C,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG;IAAE,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"use-auth-action.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/hooks/use-auth-action.ts"],"names":[],"mappings":"AAEA,KAAK,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEjE,UAAU,eAAe,CAAC,OAAO;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,GAAG,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,aAAa,GAAI,KAAK,SAAS,OAAO,EAAE,EAAE,OAAO,EACrD,QAAQ,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,KAC3C,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG;IAAE,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;CA8CrF,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-social-sign-in.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/hooks/use-social-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAa,MAAM,YAAY,CAAC;AAcrD,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GACD;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"use-social-sign-in.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/hooks/use-social-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAa,MAAM,YAAY,CAAC;AAcrD,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GACD;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAY9C,eAAO,MAAM,eAAe,GAAI,SAAS,mBAAmB;;CAgF3D,CAAC"}
|
|
@@ -12,7 +12,7 @@ export * from "./hooks/use-social-sign-in";
|
|
|
12
12
|
export * from "./hooks/use-sign-out";
|
|
13
13
|
export * from "./hooks/use-delete-account";
|
|
14
14
|
export * from "./utils/rate-limit";
|
|
15
|
-
export
|
|
15
|
+
export * from "./utils/sign-in-error";
|
|
16
16
|
export * from "./hooks/use-session";
|
|
17
17
|
export * from "./session";
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/index.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAE/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/index.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAE/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC"}
|
package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-country-picker.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { PhoneCountry } from "../utils/phone-countries";
|
|
3
|
+
type FormPhoneCountryPickerProps = {
|
|
4
|
+
country: PhoneCountry["value"];
|
|
5
|
+
countries: PhoneCountry[];
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
label: string;
|
|
8
|
+
onChange: (country: PhoneCountry) => void;
|
|
9
|
+
searchPlaceholder: string;
|
|
10
|
+
testID?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const FormPhoneCountryPicker: ({ country, countries, disabled, label, onChange, searchPlaceholder, testID, }: FormPhoneCountryPickerProps) => React.JSX.Element;
|
|
13
|
+
export { FormPhoneCountryPicker };
|
|
14
|
+
//# sourceMappingURL=form-phone-country-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-phone-country-picker.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/form-phone-country-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC/B,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,sBAAsB,GAAI,+EAQ7B,2BAA2B,sBA6E7B,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|