@ovok/native 1.10.0 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/index.js +13 -2
- package/lib/commonjs/index.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 +21 -38
- 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 +8 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-choice-field.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-field-component.js +2 -0
- package/lib/commonjs/modules/auth/profile/components/profile-form-field-component.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js +45 -35
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form.js +2 -0
- package/lib/commonjs/modules/auth/profile/components/profile-form.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 +7 -6
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.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.js +54 -21
- 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 +4 -4
- 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-device/constants/supported-device-catalog-entries.js +2 -2
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js +7 -3
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +30 -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 +44 -0
- package/lib/commonjs/modules/bt-management/hooks/declined-device-storage.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 +11 -15
- 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/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/services/devices/lepu/lepu.device-names.js +4 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.device-names.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/helpers/form-items/form-field.js +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-field.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 +15 -6
- 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/components/nearby-device-prompt.js +7 -4
- package/lib/commonjs/modules/ui/components/nearby-device-prompt.js.map +1 -1
- package/lib/commonjs/modules/ui/index.js +11 -0
- package/lib/commonjs/modules/ui/index.js.map +1 -1
- package/lib/commonjs/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/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 +18 -40
- 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 +9 -2
- package/lib/module/modules/auth/profile/components/profile-form-choice-field.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form-field-component.js +2 -0
- package/lib/module/modules/auth/profile/components/profile-form-field-component.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form-provider.js +45 -35
- package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form.js +2 -0
- package/lib/module/modules/auth/profile/components/profile-form.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 +7 -6
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.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.js +54 -21
- 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 +4 -4
- 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-device/constants/supported-device-catalog-entries.js +3 -3
- package/lib/module/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
- package/lib/module/modules/bt-device/constants/supported-devices.js +7 -3
- package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +31 -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 +39 -0
- package/lib/module/modules/bt-management/hooks/declined-device-storage.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 +11 -15
- 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/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/services/devices/lepu/lepu.device-names.js +4 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.device-names.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/helpers/form-items/form-field.js +1 -1
- package/lib/module/modules/helpers/form-items/form-field.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 +15 -6
- 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/components/nearby-device-prompt.js +7 -4
- package/lib/module/modules/ui/components/nearby-device-prompt.js.map +1 -1
- package/lib/module/modules/ui/index.js +1 -0
- package/lib/module/modules/ui/index.js.map +1 -1
- package/lib/module/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/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 +4 -2
- 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-field-component.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/components/profile-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts +5 -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/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.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 +1 -0
- 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-device/constants/supported-device-catalog-entries.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-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 +5 -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/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 +1 -0
- 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/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.device-names.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/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/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.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/components/nearby-device-prompt.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/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/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 +4 -2
- 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-field-component.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/components/profile-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts +5 -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/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.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 +1 -0
- 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-device/constants/supported-device-catalog-entries.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-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 +5 -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/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 +1 -0
- 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/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts +3 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.device-names.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/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/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.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/components/nearby-device-prompt.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/src/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 +5 -3
|
@@ -25,7 +25,9 @@ export const BluetoothStateNotice = ({
|
|
|
25
25
|
const Text = slots.Text ?? PaperText;
|
|
26
26
|
const {
|
|
27
27
|
state,
|
|
28
|
-
requestPermission: request
|
|
28
|
+
requestPermission: request,
|
|
29
|
+
permissionStatus,
|
|
30
|
+
openSettings: openAppSettings
|
|
29
31
|
} = useBluetoothState({
|
|
30
32
|
bleManager,
|
|
31
33
|
requestPermission
|
|
@@ -35,7 +37,7 @@ export const BluetoothStateNotice = ({
|
|
|
35
37
|
if (state === "on") {
|
|
36
38
|
return null;
|
|
37
39
|
}
|
|
38
|
-
const
|
|
40
|
+
const openBluetoothSettings = async () => {
|
|
39
41
|
if (onOpenSettings) {
|
|
40
42
|
await onOpenSettings();
|
|
41
43
|
return;
|
|
@@ -46,12 +48,19 @@ export const BluetoothStateNotice = ({
|
|
|
46
48
|
}
|
|
47
49
|
await Linking.openURL("App-Prefs:Bluetooth");
|
|
48
50
|
};
|
|
51
|
+
const openPermissionSettings = async () => {
|
|
52
|
+
if (onOpenSettings) {
|
|
53
|
+
await onOpenSettings();
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
await openAppSettings();
|
|
57
|
+
};
|
|
49
58
|
const takeAction = async () => {
|
|
50
59
|
setBusy(true);
|
|
51
60
|
setActionError(undefined);
|
|
52
61
|
try {
|
|
53
|
-
if (settingsAction) {
|
|
54
|
-
await
|
|
62
|
+
if (settingsAction || state === "unauthorized" && permissionStatus === "blocked") {
|
|
63
|
+
await openPermissionSettings();
|
|
55
64
|
} else if (state === "unauthorized") {
|
|
56
65
|
const granted = await request();
|
|
57
66
|
if (granted) {
|
|
@@ -59,7 +68,7 @@ export const BluetoothStateNotice = ({
|
|
|
59
68
|
}
|
|
60
69
|
}
|
|
61
70
|
if (state === "off") {
|
|
62
|
-
await
|
|
71
|
+
await openBluetoothSettings();
|
|
63
72
|
}
|
|
64
73
|
} catch (cause) {
|
|
65
74
|
setActionError(cause instanceof Error ? cause.message : String(cause));
|
|
@@ -74,7 +83,7 @@ export const BluetoothStateNotice = ({
|
|
|
74
83
|
} : state === "unauthorized" ? {
|
|
75
84
|
heading: title ?? "Bluetooth permission is required",
|
|
76
85
|
body: Platform.OS === "android" ? "Allow Nearby devices permission to find health devices." : "Allow Bluetooth access to find health devices.",
|
|
77
|
-
action: "Allow access"
|
|
86
|
+
action: permissionStatus === "blocked" ? "Open app settings" : "Allow access"
|
|
78
87
|
} : {
|
|
79
88
|
heading: title ?? "Bluetooth is off",
|
|
80
89
|
body: "Turn on Bluetooth to find and connect to health devices.",
|
|
@@ -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","busy","setBusy","useState","actionError","setActionError","
|
|
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","permissionStatus","openSettings","openAppSettings","busy","setBusy","useState","actionError","setActionError","openBluetoothSettings","OS","sendIntent","openURL","openPermissionSettings","takeAction","undefined","granted","cause","Error","message","String","heading","body","action","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,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,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;AAE3B,SAASC,iBAAiB,QAAQ,8BAAqB;AAEvD,SAASC,SAAS,QAAQ,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAgB3C,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,KAAK;IAAEC;EAAM,CAAC,GAAGhB,SAAS,CAACc,OAAO,CAAC;EAC3C,MAAMrB,MAAM,GAAGuB,KAAK,CAACvB,MAAM,IAAIC,WAAW;EAC1C,MAAMC,IAAI,GAAGqB,KAAK,CAACrB,IAAI,IAAIC,SAAS;EACpC,MAA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AAQ;MAAAF,QAAA,gBAC1B3C,IAAA,CAACL,IAAI;QAACkB,KAAK,EAAEA,KAAM;QAACiC,OAAO,EAAC,aAAa;QAAAH,QAAA,EAAEH,YAAY,CAACH;MAAO,CAAO,CAAC,eACvErC,IAAA,CAACL,IAAI;QAACkB,KAAK,EAAEA,KAAM;QAAA8B,QAAA,EAAEH,YAAY,CAACF;MAAI,CAAO,CAAC,EAC7Cf,WAAW,iBAAIvB,IAAA,CAACL,IAAI;QAACkB,KAAK,EAAEA,KAAM;QAAC4B,KAAK,EAAE;UAAEM,KAAK,EAAElC,KAAK,CAACmC,MAAM,CAACC;QAAM,CAAE;QAAAN,QAAA,EAAEpB;MAAW,CAAO,CAAC,EAC7FgB,MAAM,iBACLvC,IAAA,CAACT,MAAM;QAACsB,KAAK,EAAEA,KAAM;QAACqC,OAAO,EAAE9B,IAAK;QAAC+B,QAAQ,EAAE/B,IAAK;QAACgC,IAAI,EAAC,WAAW;QAACC,OAAO,EAAEA,CAAA,KAAM,KAAKvB,UAAU,CAAC,CAAE;QAAAa,QAAA,EACpGJ;MAAM,CACD,CACT;IAAA,CACG;EAAC,CACH,CAAC;AAEX,CAAC;AAED,MAAMK,MAAM,GAAGvD,UAAU,CAACiE,MAAM,CAAC;EAAET,OAAO,EAAE;IAAEU,GAAG,EAAE,EAAE;IAAEC,OAAO,EAAE;EAAG;AAAE,CAAC,CAAC","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,oBAAoB;AACtD,SAAeC,YAAY,QAAQ,gCAAgC;AAInE,SAASC,SAAS,QAAQ,mBAAgB;AAAC,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AAmB3C;AACA,OAAO,MAAMC,SAAS,GAAGA,CAAC;EACxBC,QAAQ;EACRC,KAAK;EACLC,MAAM;EACNC,MAAM;EACNC,MAAM;EACNC,SAAS,GAAG,MAAM;EAClBC,WAAW;EACXC,UAAU;EACVC,0BAA0B;EAC1BC,aAAa,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ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a;EAAC,CACX,CAAC;AAEnB,CAAC;AAED,MAAMkC,MAAM,GAAGhD,UAAU,CAACsE,MAAM,CAAC;EAC/BrB,QAAQ,EAAE;IAAEsB,IAAI,EAAE;EAAE,CAAC;EACrBpB,QAAQ,EAAE;IAAEoB,IAAI,EAAE;EAAE,CAAC;EACrBnB,MAAM,EAAE;IAAEmB,IAAI,EAAE,CAAC;IAAEC,GAAG,EAAE,EAAE;IAAEC,OAAO,EAAE;EAAG,CAAC;EACzC5D,MAAM,EAAE;IAAE2D,GAAG,EAAE;EAAG,CAAC;EACnBnB,OAAO,EAAE;IAAEqB,UAAU,EAAE,QAAQ;IAAEC,aAAa,EAAE,KAAK;IAAEH,GAAG,EAAE;EAAG,CAAC;EAChEd,UAAU,EAAE;IAAEkB,SAAS,EAAE,EAAE;IAAEC,cAAc,EAAE;EAAS,CAAC;EACvDf,aAAa,EAAE;IAAEgB,YAAY,EAAE,GAAG;IAAEC,MAAM,EAAE,CAAC;IAAEC,QAAQ,EAAE;EAAS,CAAC;EACnEd,YAAY,EAAE;IAAEY,YAAY,EAAE,GAAG;IAAEC,MAAM,EAAE;EAAO,CAAC;EACnDV,OAAO,EAAE;IAAEE,IAAI,EAAE;EAAE,CAAC;EACpBzD,MAAM,EAAE;IAAEmE,UAAU,EAAE;EAAE;AAC1B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -45,8 +45,11 @@ export const NearbyDevicePrompt = ({
|
|
|
45
45
|
const Button = uiSlots.Button ?? PaperButton;
|
|
46
46
|
const Card = uiSlots.Card ?? PaperCard;
|
|
47
47
|
const Activity = uiSlots.ActivityIndicator ?? PaperActivityIndicator;
|
|
48
|
-
const
|
|
49
|
-
const
|
|
48
|
+
const deviceName = device ? deviceTitle(device.deviceData) : "";
|
|
49
|
+
const interpolateDeviceName = text => text.replace(/\{\{\s*name\s*\}\}/g, deviceName);
|
|
50
|
+
const copy = (key, fallback) => interpolateDeviceName(labels?.[key] ?? fallback);
|
|
51
|
+
const title = device ? copy("title", `A ${deviceName} is nearby. Is it yours?`) : "";
|
|
52
|
+
const hintCopy = hint ?? labels?.hint;
|
|
50
53
|
const errorCopy = error ? pairingErrorMessage(error, labels) : undefined;
|
|
51
54
|
return /*#__PURE__*/_jsx(Modal, {
|
|
52
55
|
visible: Boolean(device),
|
|
@@ -67,10 +70,10 @@ export const NearbyDevicePrompt = ({
|
|
|
67
70
|
theme: theme,
|
|
68
71
|
variant: "titleLarge",
|
|
69
72
|
children: title
|
|
70
|
-
}) : null,
|
|
73
|
+
}) : null, hintCopy ? Text ? /*#__PURE__*/_jsx(Text, {
|
|
71
74
|
theme: theme,
|
|
72
75
|
variant: "bodyMedium",
|
|
73
|
-
children:
|
|
76
|
+
children: interpolateDeviceName(hintCopy)
|
|
74
77
|
}) : null : null, errorCopy && Text ? /*#__PURE__*/_jsx(Text, {
|
|
75
78
|
theme: theme,
|
|
76
79
|
variant: "bodyMedium",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Modal","StyleSheet","View","ActivityIndicator","PaperActivityIndicator","Button","PaperButton","Card","PaperCard","Text","PaperText","deviceTitle","useNearbyDeviceOffer","useOvokUi","pairingErrorMessage","jsx","_jsx","jsxs","_jsxs","NearbyDevicePrompt","storage","storageKey","declinedStorageKey","enabled","hint","onPaired","onError","labels","testID","theme","themeOverride","slots","uiSlots","device","status","error","accept","decline","later","Activity","copy","key","fallback","title","
|
|
1
|
+
{"version":3,"names":["Modal","StyleSheet","View","ActivityIndicator","PaperActivityIndicator","Button","PaperButton","Card","PaperCard","Text","PaperText","deviceTitle","useNearbyDeviceOffer","useOvokUi","pairingErrorMessage","jsx","_jsx","jsxs","_jsxs","NearbyDevicePrompt","storage","storageKey","declinedStorageKey","enabled","hint","onPaired","onError","labels","testID","theme","themeOverride","slots","uiSlots","device","status","error","accept","decline","later","Activity","deviceName","deviceData","interpolateDeviceName","text","replace","copy","key","fallback","title","hintCopy","errorCopy","undefined","visible","Boolean","transparent","animationType","onRequestClose","children","accessibilityViewIsModal","style","styles","backdrop","backgroundColor","mode","card","variant","color","colors","pairing","actions","disabled","onPress","catch","loading","create","alignItems","flex","justifyContent","padding","gap","maxWidth","width","flexDirection","flexWrap"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/nearby-device-prompt.tsx"],"mappings":";;AAAA,SACEA,KAAK,EACLC,UAAU,EACVC,IAAI,QACC,cAAc;AACrB,SACEC,iBAAiB,IAAIC,sBAAsB,EAC3CC,MAAM,IAAIC,WAAW,EACrBC,IAAI,IAAIC,SAAS,EACjBC,IAAI,IAAIC,SAAS,QACZ,oBAAoB;AAE3B,SAGEC,WAAW,EACXC,oBAAoB,QACf,8BAAqB;AAE5B,SAASC,SAAS,QAAQ,mBAAgB;AAE1C,SAASC,mBAAmB,QAAQ,4BAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAc9D,OAAO,MAAMC,kBAAkB,GAAGA,CAAC;EACjCC,OAAO;EACPC,UAAU;EACVC,kBAAkB;EAClBC,OAAO,GAAG,IAAI;EACdC,IAAI;EACJC,QAAQ;EACRC,OAAO;EACPC,MAAM;EACNC,MAAM;EACNC,KAAK,EAAEC,aAAa;EACpBC;AACuB,CAAC,KAAK;EAC7B,MAAM;IAAEF,KAAK;IAAEE,KAAK,EAAEC;EAAQ,CAAC,GAAGnB,SAAS,CAAC;IAAEgB,KAAK,EAAEC,aAAa;IAAEC;EAAM,CAAC,CAAC;EAE5E,MAAM;IAAEE,MAAM;IAAEC,MAAM;IAAEC,KAAK;IAAEC,MAAM;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAG1B,oBAAoB,CAAC;IAC7EQ,OAAO;IACPC,UAAU;IACVC,kBAAkB;IAClBC,OAAO;IACPE,QAAQ;IACRC;EACF,CAAC,CAAC;EAEF,MAAMjB,IAAI,GAAGuB,OAAO,CAACvB,IAAI,IAAIC,SAAS;EACtC,MAAML,MAAM,GAAG2B,OAAO,CAAC3B,MAAM,IAAIC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C,cAAc,EAAE,QAAQ;IACxBC,OAAO,EAAE;EACX,CAAC;EACDd,IAAI,EAAE;IACJe,GAAG,EAAE,EAAE;IACPC,QAAQ,EAAE,GAAG;IACbF,OAAO,EAAE,EAAE;IACXG,KAAK,EAAE;EACT,CAAC;EACDb,OAAO,EAAE;IAAEO,UAAU,EAAE,QAAQ;IAAEO,aAAa,EAAE,KAAK;IAAEH,GAAG,EAAE;EAAE,CAAC;EAC/DV,OAAO,EAAE;IAAEa,aAAa,EAAE,KAAK;IAAEC,QAAQ,EAAE,MAAM;IAAEN,cAAc,EAAE;EAAW;AAChF,CAAC,CAAC","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"}
|
|
@@ -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"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { type CountryCode } from "libphonenumber-js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
+
import { getPhoneCountries, type CountryName } from "../utils/phone-countries";
|
|
3
4
|
type FormPhoneFieldProps = {
|
|
4
5
|
name: string;
|
|
5
6
|
fieldName: string;
|
|
6
7
|
label: string;
|
|
7
8
|
defaultCountry: CountryCode;
|
|
9
|
+
countryName?: CountryName;
|
|
8
10
|
disabled?: boolean;
|
|
9
11
|
testID?: string;
|
|
10
12
|
};
|
|
11
|
-
|
|
12
|
-
export {};
|
|
13
|
+
declare const FormPhoneField: ({ name, fieldName, label, defaultCountry, countryName, disabled, testID, }: FormPhoneFieldProps) => React.JSX.Element;
|
|
14
|
+
export { FormPhoneField, getPhoneCountries };
|
|
13
15
|
//# sourceMappingURL=form-phone-field.d.ts.map
|
package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-field.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-phone-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/form-phone-field.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-phone-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/form-phone-field.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EACL,iBAAiB,EACjB,KAAK,WAAW,EAEjB,MAAM,0BAA0B,CAAC;AAIlC,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,cAAc,GAAI,4EAQrB,mBAAmB,sBAuHrB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-choice-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-choice-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,6CAMpC,2BAA2B,
|
|
1
|
+
{"version":3,"file":"profile-form-choice-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-choice-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,6CAMpC,2BAA2B,sBAuC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-field-component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-field-component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAK/D,UAAU,8BAA8B;IACtC,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC9C,8BAA8B,
|
|
1
|
+
{"version":3,"file":"profile-form-field-component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-field-component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAK/D,UAAU,8BAA8B;IACtC,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC9C,8BAA8B,CA8E/B,CAAC"}
|
package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAQ/D,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CACxC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"profile-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAQ/D,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CACxC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CA8J1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,eAAO,MAAM,WAAW,GAAI,4BAIzB,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"profile-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,eAAO,MAAM,WAAW,GAAI,4BAIzB,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,gCAwCpC,CAAC"}
|
|
@@ -48,6 +48,11 @@ export type ProfileFormField = ProfileFormFieldBase & ({
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "phone";
|
|
50
50
|
defaultCountry: CountryCode;
|
|
51
|
+
/**
|
|
52
|
+
* Supplies localized country names when the runtime does not provide
|
|
53
|
+
* Intl.DisplayNames for the current language (for example, Hermes).
|
|
54
|
+
*/
|
|
55
|
+
countryName?: (code: CountryCode, language: string) => string;
|
|
51
56
|
});
|
|
52
57
|
export {};
|
|
53
58
|
//# sourceMappingURL=profile-form-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-field.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CA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IACE,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"profile-form-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-field.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,cAAc,EAAE,CAAC;CACjE,CAAC;AAEF,KAAK,mBAAmB,GAAG,IAAI,CAC7B,cAAc,EACd,OAAO,GAAG,cAAc,GAAG,QAAQ,CACpC,CAAC;AAEF,KAAK,cAAc,GAAG,IAAI,CACxB,cAAc,CAAC,OAAO,mBAAmB,CAAC,EAC1C,QAAQ,GAAG,aAAa,GAAG,a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AAC;CAC/D,CACJ,CAAC"}
|
|
@@ -7,7 +7,7 @@ export type ProfileFormProps = {
|
|
|
7
7
|
fields: ProfileFormField[];
|
|
8
8
|
style?: StyleProp<ViewStyle>;
|
|
9
9
|
testID?: string;
|
|
10
|
-
onSuccess?: (response: Patient, values: ProfileFormValues) => void;
|
|
10
|
+
onSuccess?: (response: Patient, values: ProfileFormValues) => Promise<void> | void;
|
|
11
11
|
onSubmit?: (values: ProfileFormValues, formikHelpers: FormikHelpers<ProfileFormValues>) => Promise<void> | void;
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=profile-form-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAE3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"profile-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAE3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CACV,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,iBAAiB,KACtB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAC5C,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CountryCode } from "libphonenumber-js";
|
|
2
|
+
type PhoneCountry = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: CountryCode;
|
|
5
|
+
};
|
|
6
|
+
type CountryName = (code: CountryCode, language: string) => string;
|
|
7
|
+
declare const getPhoneCountries: (language: string, countryName?: CountryName) => PhoneCountry[];
|
|
8
|
+
export { getPhoneCountries };
|
|
9
|
+
export type { CountryName, PhoneCountry };
|
|
10
|
+
//# sourceMappingURL=phone-countries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone-countries.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/utils/phone-countries.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;AAiBnE,QAAA,MAAM,iBAAiB,GACrB,UAAU,MAAM,EAChB,cAAc,WAAW,KACxB,YAAY,EAyDd,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/inputs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,+BAA+B,eAAe,
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/inputs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,+BAA+B,eAAe,sBAsOpE,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":"
|
|
1
|
+
{"version":3,"file":"register-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/register-form-provider.tsx"],"names":[],"mappings":"AAMA,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,CAyI3C,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":"AAQA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAGhG,eAAO,MAAM,yBAAyB,GAAI,mDAMvC,8BAA8B,gCA4DhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-errors.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-errors.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAmBhD,CAAC;AAEF,QAAA,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,KACyB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +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;
|
|
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;AAKzF,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;AAgMD,QAAA,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,YAazC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,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;AAM1B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,gBAAgB,GAAI,iFAS9B,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,6BA2F1C,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;AAO/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,eAAO,MAAM,iBAAiB,GAAI,uHAW/B,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,sBA4F3C,CAAC"}
|
|
@@ -6,5 +6,5 @@ export interface OvokNativeSession {
|
|
|
6
6
|
lastUpdated?: string;
|
|
7
7
|
}
|
|
8
8
|
export type SessionRevokeOption = "current" | "other" | "all" | string;
|
|
9
|
-
export type SessionStatus = "loading" | "authenticated" | "signed-out";
|
|
9
|
+
export type SessionStatus = "loading" | "authenticated" | "offline" | "signed-out";
|
|
10
10
|
//# sourceMappingURL=session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/types/session.ts"],"names":[],"mappings":"AAEA,0DAA0D;AAC1D,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAEvE,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,eAAe,GAAG,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/types/session.ts"],"names":[],"mappings":"AAEA,0DAA0D;AAC1D,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAEvE,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,GAAG,YAAY,CAAC"}
|