@ovok/native 1.10.3 → 1.10.4
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/modules/auth/default-translation.js +17 -0
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-session.js +3 -0
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +1 -0
- 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 +1 -0
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store-refresh.js +125 -0
- package/lib/commonjs/modules/auth/session/session-store-refresh.js.map +1 -0
- package/lib/commonjs/modules/auth/session/session-store-request-state.js +73 -0
- package/lib/commonjs/modules/auth/session/session-store-request-state.js.map +1 -0
- package/lib/commonjs/modules/auth/session/session-store-types.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store.js +36 -115
- package/lib/commonjs/modules/auth/session/session-store.js.map +1 -1
- package/lib/commonjs/modules/auth/utils/sign-in-error.js +4 -2
- package/lib/commonjs/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/apple-health-sync-service.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +47 -21
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js +19 -16
- package/lib/commonjs/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js +17 -4
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js +168 -5
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-record-timing.js +52 -0
- package/lib/commonjs/modules/data-sync/utils/health-record-timing.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/normalize-core-health-observation.js +74 -0
- package/lib/commonjs/modules/data-sync/utils/normalize-core-health-observation.js.map +1 -0
- package/lib/commonjs/modules/picker-sheet/components/value-wheel-picker.js +41 -0
- package/lib/commonjs/modules/picker-sheet/components/value-wheel-picker.js.map +1 -0
- package/lib/commonjs/modules/picker-sheet/components/wheel-picker.js +56 -15
- package/lib/commonjs/modules/picker-sheet/components/wheel-picker.js.map +1 -1
- package/lib/commonjs/modules/picker-sheet/index.js +11 -0
- package/lib/commonjs/modules/picker-sheet/index.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/README.md +59 -20
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-item.js +8 -0
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-item.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js +8 -0
- package/lib/commonjs/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js +8 -3
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js +9 -3
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +18 -8
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js +41 -2
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js +43 -5
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/header/questionnaire-header-title.js +3 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/header/questionnaire-header-title.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js +37 -11
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form.js +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js +9 -3
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-initial-selected-values.js +5 -3
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-initial-selected-values.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-navigation-handlers.js +15 -4
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-navigation-handlers.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js +14 -7
- package/lib/commonjs/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/index.js +20 -0
- package/lib/commonjs/modules/questionnaire-response-form/index.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/types/questionnaire-form-values.js +4 -0
- package/lib/commonjs/modules/questionnaire-response-form/types/questionnaire-item-render-props.js +6 -0
- package/lib/commonjs/modules/questionnaire-response-form/types/questionnaire-item-render-props.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/types/response-values.js +4 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/condition-utils.js +37 -6
- package/lib/commonjs/modules/questionnaire-response-form/utils/condition-utils.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/conditions/fhir-condition.js +148 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/conditions/fhir-condition.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/create-answer-from-value.js +127 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/create-answer-from-value.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/fields/get-option-text.js +4 -3
- package/lib/commonjs/modules/questionnaire-response-form/utils/fields/get-option-text.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/form-utils.js +71 -64
- package/lib/commonjs/modules/questionnaire-response-form/utils/form-utils.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/form-validation.js +23 -5
- package/lib/commonjs/modules/questionnaire-response-form/utils/form-validation.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js +10 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js +83 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-date-utils.js +54 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-date-utils.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js +75 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js +63 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js +49 -18
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-picker-options.js +117 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-picker-options.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js +109 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +2 -2
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/translate-fhir-text.js +36 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/translate-fhir-text.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js +49 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js.map +1 -0
- package/lib/commonjs/modules/ui/components/prerequisite-gate.js +73 -0
- package/lib/commonjs/modules/ui/components/prerequisite-gate.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 +9 -7
- package/lib/commonjs/polyfills/index.js.map +1 -1
- package/lib/module/modules/auth/default-translation.js +17 -0
- package/lib/module/modules/auth/default-translation.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-session.js +3 -0
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-form-provider.js +1 -0
- 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 +1 -0
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/module/modules/auth/session/session-store-refresh.js +121 -0
- package/lib/module/modules/auth/session/session-store-refresh.js.map +1 -0
- package/lib/module/modules/auth/session/session-store-request-state.js +69 -0
- package/lib/module/modules/auth/session/session-store-request-state.js.map +1 -0
- package/lib/module/modules/auth/session/session-store-types.js.map +1 -1
- package/lib/module/modules/auth/session/session-store.js +36 -115
- package/lib/module/modules/auth/session/session-store.js.map +1 -1
- package/lib/module/modules/auth/utils/sign-in-error.js +4 -2
- package/lib/module/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
- package/lib/module/modules/data-sync/services/apple-health-sync-service.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +47 -21
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-records-to-observation.js +19 -16
- package/lib/module/modules/data-sync/utils/convert-records-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +17 -4
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-data-catalog.js +168 -5
- package/lib/module/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-record-timing.js +47 -0
- package/lib/module/modules/data-sync/utils/health-record-timing.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
- package/lib/module/modules/data-sync/utils/normalize-core-health-observation.js +69 -0
- package/lib/module/modules/data-sync/utils/normalize-core-health-observation.js.map +1 -0
- package/lib/module/modules/picker-sheet/components/value-wheel-picker.js +36 -0
- package/lib/module/modules/picker-sheet/components/value-wheel-picker.js.map +1 -0
- package/lib/module/modules/picker-sheet/components/wheel-picker.js +56 -15
- package/lib/module/modules/picker-sheet/components/wheel-picker.js.map +1 -1
- package/lib/module/modules/picker-sheet/index.js +1 -0
- package/lib/module/modules/picker-sheet/index.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/README.md +59 -20
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-item.js +8 -0
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-item.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js +8 -0
- package/lib/module/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js +8 -3
- package/lib/module/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js +9 -3
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js +18 -8
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-date-field.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js +42 -3
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js +41 -3
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/header/questionnaire-header-title.js +3 -1
- package/lib/module/modules/questionnaire-response-form/components/header/questionnaire-header-title.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js +37 -11
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form.js +1 -0
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js +9 -3
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-navigation-provider.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/hooks/use-initial-selected-values.js +5 -3
- package/lib/module/modules/questionnaire-response-form/hooks/use-initial-selected-values.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/hooks/use-navigation-handlers.js +15 -4
- package/lib/module/modules/questionnaire-response-form/hooks/use-navigation-handlers.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js +14 -7
- package/lib/module/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/index.js +2 -0
- package/lib/module/modules/questionnaire-response-form/index.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/types/questionnaire-form-values.js +2 -0
- package/lib/module/modules/questionnaire-response-form/types/questionnaire-item-render-props.js +4 -0
- package/lib/module/modules/questionnaire-response-form/types/questionnaire-item-render-props.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/types/response-values.js +2 -0
- package/lib/module/modules/questionnaire-response-form/utils/condition-utils.js +37 -6
- package/lib/module/modules/questionnaire-response-form/utils/condition-utils.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/conditions/fhir-condition.js +140 -0
- package/lib/module/modules/questionnaire-response-form/utils/conditions/fhir-condition.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/create-answer-from-value.js +122 -0
- package/lib/module/modules/questionnaire-response-form/utils/create-answer-from-value.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/fields/get-option-text.js +4 -3
- package/lib/module/modules/questionnaire-response-form/utils/fields/get-option-text.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/form-utils.js +71 -64
- package/lib/module/modules/questionnaire-response-form/utils/form-utils.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/form-validation.js +23 -5
- package/lib/module/modules/questionnaire-response-form/utils/form-validation.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js +5 -0
- package/lib/module/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js +77 -0
- package/lib/module/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-date-utils.js +49 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-date-utils.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js +71 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-constraints.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js +57 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js +49 -18
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-picker-options.js +112 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-picker-options.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js +105 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +2 -2
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/translate-fhir-text.js +31 -0
- package/lib/module/modules/questionnaire-response-form/utils/translate-fhir-text.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js +44 -0
- package/lib/module/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js.map +1 -0
- package/lib/module/modules/ui/components/prerequisite-gate.js +67 -0
- package/lib/module/modules/ui/components/prerequisite-gate.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 +11 -1
- package/lib/module/polyfills/index.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.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-store-refresh.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +8 -2
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts +2 -3
- package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/apple-health-sync-service.d.ts +4 -5
- package/lib/typescript/commonjs/src/modules/data-sync/services/apple-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +4 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts +7 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts +3 -2
- 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/convert-records-to-observation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -4
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts +3 -1
- 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-record-timing.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-record-timing.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts +6 -5
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/normalize-core-health-observation.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/normalize-core-health-observation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/picker-sheet/components/value-wheel-picker.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/picker-sheet/components/value-wheel-picker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/picker-sheet/components/wheel-picker.d.ts +7 -3
- package/lib/typescript/commonjs/src/modules/picker-sheet/components/wheel-picker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/picker-sheet/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/picker-sheet/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/content/questionnaire-content-item.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts +9 -3
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts +5 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/header/questionnaire-header-title.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-navigation-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-initial-selected-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/index.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts +7 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts +11 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts +5 -2
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/response-values.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/types/response-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/condition-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-utils.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-validation.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/form-validation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts +22 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/ui/components/prerequisite-gate.d.ts +19 -0
- package/lib/typescript/commonjs/src/modules/ui/components/prerequisite-gate.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 +7 -1
- package/lib/typescript/commonjs/src/polyfills/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts +17 -0
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +4 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-session.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-store-refresh.d.ts +8 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts +23 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +8 -2
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts +2 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts +2 -3
- package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/apple-health-sync-service.d.ts +4 -5
- package/lib/typescript/module/src/modules/data-sync/services/apple-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +4 -2
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts +7 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +2 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts +3 -2
- 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/convert-records-to-observation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-samples-to-observation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -4
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/utils/get-total-samples-count.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts +3 -1
- 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-record-timing.d.ts +10 -0
- package/lib/typescript/module/src/modules/data-sync/utils/health-record-timing.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts +6 -5
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/normalize-core-health-observation.d.ts +13 -0
- package/lib/typescript/module/src/modules/data-sync/utils/normalize-core-health-observation.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/picker-sheet/components/value-wheel-picker.d.ts +21 -0
- package/lib/typescript/module/src/modules/picker-sheet/components/value-wheel-picker.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/picker-sheet/components/wheel-picker.d.ts +7 -3
- package/lib/typescript/module/src/modules/picker-sheet/components/wheel-picker.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/picker-sheet/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/picker-sheet/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/content/questionnaire-content-item.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/content/questionnaire-content-specific-item.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/common/questionnaire-field-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-choice-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts +3 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-date-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts +9 -3
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-item-renderer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts +5 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/header/questionnaire-header-title.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-navigation-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-initial-selected-values.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts +6 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-navigation-handlers.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts +2 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/hooks/use-questionnaire-navigation-state.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/index.d.ts +4 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts +7 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/extended-questionnaire-item.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts +6 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-context-type.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts +3 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts +11 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts +5 -2
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-form-values.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts +15 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-item-render-props.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts +5 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/questionnaire-navigation-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/response-values.d.ts +2 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/types/response-values.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/condition-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts +9 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/conditions/fhir-condition.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts +7 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/fields/get-option-text.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-utils.d.ts +4 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-validation.d.ts +4 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/form-validation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts +3 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-answerable-questionnaire-item.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts +8 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/is-valid-questionnaire-answer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts +5 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-date-utils.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts +22 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-constraints.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts +10 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-item-value-constraint-validators.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts +2 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-navigation-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts +15 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-picker-options.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts +5 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-string-constraint-validator.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +3 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts +4 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/translate-fhir-text.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts +6 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ui/components/prerequisite-gate.d.ts +19 -0
- package/lib/typescript/module/src/modules/ui/components/prerequisite-gate.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 +7 -1
- package/lib/typescript/module/src/polyfills/index.d.ts.map +1 -1
- package/package.json +3 -3
package/lib/commonjs/modules/questionnaire-response-form/utils/validate-questionnaire-item-value.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.validateQuestionnaireItemValue = void 0;
|
|
7
|
+
var _createAnswerFromValue = require("./create-answer-from-value.js");
|
|
8
|
+
var _isValidQuestionnaireAnswer = require("./is-valid-questionnaire-answer.js");
|
|
9
|
+
var _questionnaireItemConstraints = require("./questionnaire-item-constraints.js");
|
|
10
|
+
var _questionnaireItemValueConstraintValidators = require("./questionnaire-item-value-constraint-validators.js");
|
|
11
|
+
var _questionnaireStringConstraintValidator = require("./questionnaire-string-constraint-validator.js");
|
|
12
|
+
const hasValue = value => value !== undefined && value !== null && value !== "";
|
|
13
|
+
const getAnswerValue = (value, item) => {
|
|
14
|
+
const answer = (0, _createAnswerFromValue.createAnswerFromValue)(value, item);
|
|
15
|
+
if (!answer) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
const key = (0, _isValidQuestionnaireAnswer.getAnswerValueKey)(answer);
|
|
19
|
+
return key ? answer[key] : undefined;
|
|
20
|
+
};
|
|
21
|
+
const validateQuestionnaireItemValue = (value, item, answers = {}, resolver, unitOptionsResolver) => {
|
|
22
|
+
if (!hasValue(value)) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
const answer = getAnswerValue(value, item);
|
|
26
|
+
if (answer === undefined) {
|
|
27
|
+
return "invalid-answer";
|
|
28
|
+
}
|
|
29
|
+
const constraints = (0, _questionnaireItemConstraints.getQuestionnaireItemConstraints)(item, answers, resolver, unitOptionsResolver);
|
|
30
|
+
if (constraints.unresolvedDynamicBounds.length > 0) {
|
|
31
|
+
return "unresolved-constraint";
|
|
32
|
+
}
|
|
33
|
+
const lengthViolation = (0, _questionnaireItemValueConstraintValidators.validateAnswerLength)(value, answer, item, constraints);
|
|
34
|
+
if (lengthViolation) {
|
|
35
|
+
return lengthViolation;
|
|
36
|
+
}
|
|
37
|
+
if (typeof answer === "number") {
|
|
38
|
+
return (0, _questionnaireItemValueConstraintValidators.validateNumberConstraints)(answer, constraints);
|
|
39
|
+
}
|
|
40
|
+
if (typeof answer === "string") {
|
|
41
|
+
return (0, _questionnaireStringConstraintValidator.validateStringConstraints)(answer, item, constraints);
|
|
42
|
+
}
|
|
43
|
+
if (typeof answer === "object" && answer !== null && "value" in answer) {
|
|
44
|
+
return (0, _questionnaireItemValueConstraintValidators.validateQuantityConstraints)(answer, constraints);
|
|
45
|
+
}
|
|
46
|
+
return undefined;
|
|
47
|
+
};
|
|
48
|
+
exports.validateQuestionnaireItemValue = validateQuestionnaireItemValue;
|
|
49
|
+
//# sourceMappingURL=validate-questionnaire-item-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_createAnswerFromValue","require","_isValidQuestionnaireAnswer","_questionnaireItemConstraints","_questionnaireItemValueConstraintValidators","_questionnaireStringConstraintValidator","hasValue","value","undefined","getAnswerValue","item","answer","createAnswerFromValue","key","getAnswerValueKey","validateQuestionnaireItemValue","answers","resolver","unitOptionsResolver","constraints","getQuestionnaireItemConstraints","unresolvedDynamicBounds","length","lengthViolation","validateAnswerLength","validateNumberConstraints","validateStringConstraints","validateQuantityConstraints","exports"],"sourceRoot":"../../../../../src","sources":["modules/questionnaire-response-form/utils/validate-questionnaire-item-value.ts"],"mappings":";;;;;;AAKA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,2BAAA,GAAAD,OAAA;AACA,IAAAE,6BAAA,GAAAF,OAAA;AAKA,IAAAG,2CAAA,GAAAH,OAAA;AAKA,IAAAI,uCAAA,GAAAJ,OAAA;AAUA,MAAMK,QAAQ,GAAIC,KAAc,IAC9BA,KAAK,KAAKC,SAAS,IAAID,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAK,EAAE;AAEvD,MAAME,cAAc,GAAGA,CACrBF,KAA6B,EAC7BG,IAA+B,KACnB;EACZ,MAAMC,MAAM,GAAG,IAAAC,4CAAqB,EAACL,KAAK,EAAEG,IAAI,CAAC;EAEjD,IAAI,CAACC,MAAM,EAAE;IACX,OAAOH,SAAS;EAClB;EAEA,MAAMK,GAAG,GAAG,IAAAC,6CAAiB,EAACH,MAAM,CAAC;EAErC,OAAOE,GAAG,GAAIF,MAAM,CAA6BE,GAAG,CAAC,GAAGL,SAAS;AACnE,CAAC;AAEM,MAAMO,8BAA8B,GAAGA,CAC5CR,KAA6B,EAC7BG,IAA+B,EAC/BM,OAAuB,GAAG,CAAC,CAAC,EAC5BC,QAA0C,EAC1CC,mBAAsD,KACN;EAChD,IAAI,CAACZ,QAAQ,CAACC,KAAK,CAAC,EAAE;IACpB,OAAOC,SAAS;EAClB;EAEA,MAAMG,MAAM,GAAGF,cAAc,CAACF,KAAK,EAAEG,IAAI,CAAC;EAE1C,IAAIC,MAAM,KAAKH,SAAS,EAAE;IACxB,OAAO,gBAAgB;EACzB;EAEA,MAAMW,WAAW,GAAG,IAAAC,6DAA+B,EACjDV,IAAI,EACJM,OAAO,EACPC,QAAQ,EACRC,mBACF,CAAC;EAED,IAAIC,WAAW,CAACE,uBAAuB,CAACC,MAAM,GAAG,CAAC,EAAE;IAClD,OAAO,uBAAuB;EAChC;EAEA,MAAMC,eAAe,GAAG,IAAAC,gEAAoB,EAC1CjB,KAAK,EACLI,MAAM,EACND,IAAI,EACJS,WACF,CAAC;EAED,IAAII,eAAe,EAAE;IACnB,OAAOA,eAAe;EACxB;EAEA,IAAI,OAAOZ,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAO,IAAAc,qEAAyB,EAACd,MAAM,EAAEQ,WAAW,CAAC;EACvD;EAEA,IAAI,OAAOR,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAO,IAAAe,iEAAyB,EAACf,MAAM,EAAED,IAAI,EAAES,WAAW,CAAC;EAC7D;EAEA,IAAI,OAAOR,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,IAAI,IAAI,OAAO,IAAIA,MAAM,EAAE;IACtE,OAAO,IAAAgB,uEAA2B,EAAChB,MAAM,EAAcQ,WAAW,CAAC;EACrE;EAEA,OAAOX,SAAS;AAClB,CAAC;AAACoB,OAAA,CAAAb,8BAAA,GAAAA,8BAAA","ignoreList":[]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PrerequisiteGate = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
|
+
/**
|
|
11
|
+
* Loads host-defined, account-scoped prerequisites before rendering children.
|
|
12
|
+
* This is a UI gate only; backend authorization remains authoritative.
|
|
13
|
+
*/
|
|
14
|
+
const PrerequisiteGate = ({
|
|
15
|
+
scopeKey,
|
|
16
|
+
check,
|
|
17
|
+
pending = null,
|
|
18
|
+
renderRequired,
|
|
19
|
+
onError,
|
|
20
|
+
children
|
|
21
|
+
}) => {
|
|
22
|
+
const checkRef = React.useRef(check);
|
|
23
|
+
const onErrorRef = React.useRef(onError);
|
|
24
|
+
const [attempt, setAttempt] = React.useState(0);
|
|
25
|
+
const [result, setResult] = React.useState();
|
|
26
|
+
React.useEffect(() => {
|
|
27
|
+
checkRef.current = check;
|
|
28
|
+
onErrorRef.current = onError;
|
|
29
|
+
}, [check, onError]);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
let active = true;
|
|
32
|
+
void Promise.resolve().then(() => checkRef.current()).then(requirement => {
|
|
33
|
+
if (active) {
|
|
34
|
+
setResult({
|
|
35
|
+
scopeKey,
|
|
36
|
+
attempt,
|
|
37
|
+
requirement: requirement ?? null
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}).catch(error => {
|
|
41
|
+
if (active) {
|
|
42
|
+
setResult({
|
|
43
|
+
scopeKey,
|
|
44
|
+
attempt,
|
|
45
|
+
requirement: null
|
|
46
|
+
});
|
|
47
|
+
onErrorRef.current?.(error);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return () => {
|
|
51
|
+
active = false;
|
|
52
|
+
};
|
|
53
|
+
}, [scopeKey, attempt]);
|
|
54
|
+
const refresh = React.useCallback(() => {
|
|
55
|
+
setAttempt(current => current + 1);
|
|
56
|
+
}, []);
|
|
57
|
+
const currentResult = result?.scopeKey === scopeKey && result.attempt === attempt ? result : undefined;
|
|
58
|
+
if (!currentResult) {
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
60
|
+
children: pending
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (currentResult.requirement === null) {
|
|
64
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
65
|
+
children: children
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
69
|
+
children: renderRequired(currentResult.requirement, refresh)
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
exports.PrerequisiteGate = PrerequisiteGate;
|
|
73
|
+
//# sourceMappingURL=prerequisite-gate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PrerequisiteGate","scopeKey","check","pending","renderRequired","onError","children","checkRef","useRef","onErrorRef","attempt","setAttempt","useState","result","setResult","useEffect","current","active","Promise","resolve","then","requirement","catch","error","refresh","useCallback","currentResult","undefined","jsx","Fragment","exports"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/prerequisite-gate.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,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zC,WAAA,CAAAgD,GAAA,EAAAhD,WAAA,CAAAiD,QAAA;MAAAvB,QAAA,EAAGA;IAAQ,CAAG,CAAC;EACxB;EAEA,oBAAO,IAAA1B,WAAA,CAAAgD,GAAA,EAAAhD,WAAA,CAAAiD,QAAA;IAAAvB,QAAA,EAAGF,cAAc,CAACsB,aAAa,CAACL,WAAW,EAAEG,OAAO;EAAC,CAAG,CAAC;AAClE,CAAC;AAACM,OAAA,CAAA9B,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -47,6 +47,17 @@ Object.keys(_flowFrame).forEach(function (key) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
+
var _prerequisiteGate = require("./components/prerequisite-gate.js");
|
|
51
|
+
Object.keys(_prerequisiteGate).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _prerequisiteGate[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _prerequisiteGate[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
50
61
|
var _manualEntryForm = require("./components/manual-entry-form.js");
|
|
51
62
|
Object.keys(_manualEntryForm).forEach(function (key) {
|
|
52
63
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_useOvokUi","_ecgStripViewer","_flowFrame","_manualEntryForm","_supportedDevicesCatalogList","_bluetoothStateNotice","_pairingFlow","_nearbyDevicePrompt","_urineTestResult","_healthImportCard","_backgroundSyncSetting","_measurementTrendChart","_calendar","_periodCalendar"],"sourceRoot":"../../../../src","sources":["modules/ui/index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAA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AK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,UAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,
|
|
1
|
+
{"version":3,"names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_useOvokUi","_ecgStripViewer","_flowFrame","_prerequisiteGate","_manualEntryForm","_supportedDevicesCatalogList","_bluetoothStateNotice","_pairingFlow","_nearbyDevicePrompt","_urineTestResult","_healthImportCard","_backgroundSyncSetting","_measurementTrendChart","_calendar","_periodCalendar"],"sourceRoot":"../../../../src","sources":["modules/ui/index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,eAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,eAAA,EAAAP,OAAA,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AD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAe,eAAA,CAAAnB,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -45,17 +45,19 @@ Object.defineProperty(exports, "initWebSocketManager", {
|
|
|
45
45
|
return _expoPolyfills.initWebSocketManager;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
get: function () {
|
|
51
|
-
return _expoPolyfills.polyfillMedplumWebAPIs;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "polyfillMedplumWebAPIs", {
|
|
48
|
+
exports.polyfillMedplumWebAPIs = exports.initializeOvokNativeRuntime = void 0;
|
|
49
|
+
Object.defineProperty(exports, "polyfillOvokWebAPIs", {
|
|
55
50
|
enumerable: true,
|
|
56
51
|
get: function () {
|
|
57
52
|
return _expoPolyfills.polyfillMedplumWebAPIs;
|
|
58
53
|
}
|
|
59
54
|
});
|
|
60
55
|
var _expoPolyfills = require("@medplum/expo-polyfills");
|
|
56
|
+
/* eslint-disable import/group-exports */
|
|
57
|
+
|
|
58
|
+
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
59
|
+
const polyfillMedplumWebAPIs = exports.polyfillMedplumWebAPIs = _expoPolyfills.polyfillMedplumWebAPIs;
|
|
60
|
+
|
|
61
|
+
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
62
|
+
const initializeOvokNativeRuntime = exports.initializeOvokNativeRuntime = _expoPolyfills.polyfillMedplumWebAPIs;
|
|
61
63
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_expoPolyfills","require"],"sourceRoot":"../../../src","sources":["polyfills/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_expoPolyfills","require","polyfillMedplumWebAPIs","exports","polyfillOvokWebAPIs","initializeOvokNativeRuntime"],"sourceRoot":"../../../src","sources":["polyfills/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,cAAA,GAAAC,OAAA;AAFA;;AAgBA;AACO,MAAMC,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAGE,qCAAmB;;AAEzD;AACO,MAAMC,2BAA2B,GAAAF,OAAA,CAAAE,2BAAA,GAAGD,qCAAmB","ignoreList":[]}
|
|
@@ -11,6 +11,15 @@ export const defaultTranslation = {
|
|
|
11
11
|
cancel: "Cancel",
|
|
12
12
|
delete: "Delete"
|
|
13
13
|
},
|
|
14
|
+
"questionnaire-form": {
|
|
15
|
+
item: {
|
|
16
|
+
unsupported: "This question type ({{type}}) is not supported. You can continue without answering it."
|
|
17
|
+
},
|
|
18
|
+
picker: {
|
|
19
|
+
increase: "Increase value",
|
|
20
|
+
decrease: "Decrease value"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
14
23
|
profile: {
|
|
15
24
|
form: {
|
|
16
25
|
error: {
|
|
@@ -28,6 +37,10 @@ export const defaultTranslation = {
|
|
|
28
37
|
register: {
|
|
29
38
|
"already-have-account": "Already have an account? <login/>",
|
|
30
39
|
button: "Create account",
|
|
40
|
+
errors: {
|
|
41
|
+
network: "Unable to connect. Check your connection and try again.",
|
|
42
|
+
generic: "Unable to create account. Please try again."
|
|
43
|
+
},
|
|
31
44
|
name: "First name",
|
|
32
45
|
"full-name": "Full name",
|
|
33
46
|
"or-register-with": "Or register with",
|
|
@@ -39,6 +52,10 @@ export const defaultTranslation = {
|
|
|
39
52
|
"reset-password": {
|
|
40
53
|
accountType: "Account type",
|
|
41
54
|
email: "Email",
|
|
55
|
+
errors: {
|
|
56
|
+
network: "Unable to connect. Check your connection and try again.",
|
|
57
|
+
generic: "Unable to request a password reset. Please try again."
|
|
58
|
+
},
|
|
42
59
|
patient: "Patient",
|
|
43
60
|
practitioner: "Practitioner",
|
|
44
61
|
"reset-password": "Reset password",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["i18n","defaultTranslation","auth","common","cancel","delete","profile","form","error","network","generic","phone","country","invalid","searchCountry","save","register","button","name","subtitle","surname","title","accountType","email","patient","practitioner","success","settings","logout","apple","footer","google","mfa","code","verify","password","
|
|
1
|
+
{"version":3,"names":["i18n","defaultTranslation","auth","common","cancel","delete","item","unsupported","picker","increase","decrease","profile","form","error","network","generic","phone","country","invalid","searchCountry","save","register","button","errors","name","subtitle","surname","title","accountType","email","patient","practitioner","success","settings","logout","apple","footer","google","mfa","code","verify","password","unavailable","addResourceBundle","resources","options","englishResources","Object","assign","en","existingTranslation","translation"],"sourceRoot":"../../../../src","sources":["modules/auth/default-translation.ts"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,SAAS;;AAE1B;AACA,OAAO,MAAMC,kBAAkB,GAAG;EAChCC,IAAI,EAAE;IAAE,YAAY,EAAE;EAAsD,CAAC;EAC7EC,MAAM,EAAE;IAAEC,MAAM,EAAE,QAAQ;IAAEC,MAAM,EAAE;EAAS,CAAC;EAC9C,oBAAoB,EAAE;IACpBC,IAAI,EAAE;MACJC,WAAW,EACT;IACJ,CAAC;IACDC,MAAM,EAAE;MACNC,QAAQ,EAAE,gBAAgB;MAC1BC,QAAQ,EAAE;IACZ;EACF,CAAC;EACDC,OAAO,EAAE;IACPC,IAAI,EAAE;MACJC,KAAK,EAAE;QACLC,OAAO,EAAE,+CAA+C;QACxDC,OAAO,EAAE;MACX,CAAC;MACDC,KAAK,EAAE;QACLC,OAAO,EAAE,SAAS;QAClBC,OAAO,EAAE,sDAAsD;QAC/DC,aAAa,EAAE;MACjB;IACF,CAAC;IACDC,IAAI,EAAE;EACR,CAAC;EACDC,QAAQ,EAAE;IACR,sBAAsB,EAAE,mCAAmC;IAC3DC,MAAM,EAAE,gBAAgB;IACxBC,MAAM,EAAE;MACNT,OAAO,EAAE,yDAAyD;MAClEC,OAAO,EAAE;IACX,CAAC;IACDS,IAAI,EAAE,YAAY;IAClB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EAAE;EAChD3C,IAAI,CAAC2C,iBAAiB,CAAC,IAAI,EAAE,aAAa,EAAE1C,kBAAkB,EAAE,IAAI,EAAE,KAAK,CAAC;AAC9E,CAAC,MAAM;EACL,MAAM2C,SAAS,GAAG5C,IAAI,CAAC6C,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;EAE5BnD,IAAI,CAAC6C,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,EAAE/C,kBAAkB,EAAEiD,mBAAmB;IACxE,CAAC;EACH,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -30,12 +30,15 @@ const useSession = ({
|
|
|
30
30
|
return {
|
|
31
31
|
status: snapshot.status,
|
|
32
32
|
isAuthenticated: snapshot.status === "authenticated" || snapshot.status === "offline",
|
|
33
|
+
accounts: snapshot.accounts,
|
|
33
34
|
profile: snapshot.profile,
|
|
34
35
|
sessions: snapshot.sessions,
|
|
35
36
|
loading: snapshot.status === "loading",
|
|
36
37
|
error: snapshot.error,
|
|
37
38
|
refresh,
|
|
38
39
|
refreshSessions: store.refreshSessions,
|
|
40
|
+
switchAccount: store.switchAccount,
|
|
41
|
+
removeAccount: store.removeAccount,
|
|
39
42
|
logout: store.logout,
|
|
40
43
|
revokeSessions: store.revokeSessions
|
|
41
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useClient","React","AppState","subscribeSessionChanges","getSessionStore","useSession","sessions","fetchSessions","refreshOnForeground","client","store","useMemo","snapshot","useSyncExternalStore","subscribe","refresh","useCallback","useEffect","subscription","addEventListener","nextState","undefined","unsubscribe","remove","status","isAuthenticated","profile","loading","error","refreshSessions","logout","revokeSessions"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-session.ts"],"mappings":";;AAAA,SAASA,SAAS,
|
|
1
|
+
{"version":3,"names":["useClient","React","AppState","subscribeSessionChanges","getSessionStore","useSession","sessions","fetchSessions","refreshOnForeground","client","store","useMemo","snapshot","useSyncExternalStore","subscribe","refresh","useCallback","useEffect","subscription","addEventListener","nextState","undefined","unsubscribe","remove","status","isAuthenticated","accounts","profile","loading","error","refreshSessions","switchAccount","removeAccount","logout","revokeSessions"],"sourceRoot":"../../../../../src","sources":["modules/auth/hooks/use-session.ts"],"mappings":";;AAAA,SAASA,SAAS,QAA+B,YAAY;AAC7D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,uBAAuB,QAAQ,sBAAmB;AAC3D,SAASC,eAAe,QAAQ,6BAA0B;AA8B1D;AACA,MAAMC,UAAU,GAAGA,CAAC;EAClBC,QAAQ,EAAEC,aAAa,GAAG,IAAI;EAC9BC,mBAAmB,GAAG;AACL,CAAC,GAAG,CAAC,CAAC,KAAuB;EAC9C,MAAMC,MAAM,GAAGT,SAAS,CAAC,CAAC;EAC1B,MAAMU,KAAK,GAAGT,KAAK,CAACU,OAAO,CAAC,MAAMP,eAAe,CAACK,MAAM,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAEpE,MAAMG,QAAQ,GAAGX,KAAK,CAACY,oBAAoB,CACzCH,KAAK,CAACI,SAAS,EACf,MAAMJ,KAAK,CAACE,QAAQ,EACpB,MAAMF,KAAK,CAACE,QACd,CAAC;EAED,MAAMG,OAAO,GAAGd,KAAK,CAACe,WAAW,CAC/B,MAAMN,KAAK,CAACK,OAAO,CA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,"names":["useClient","useFormik","React","useShallowStableValue","notifySessionChanged","setRateLimitFormError","parseSignInError","RegisterFormContext","createRegisterValidationSchema","jsx","_jsx","isClinicianInviteStep","response","nextStep","RegisterFormProvider","children","customValidations","defaultValues","tenantCode","continueAsPatientToken","nameField","toRegisterNames","onSubmit","onSuccess","onError","onNextStep","client","singleName","registerValidationSchema","useMemo","disablePasswordConfirm","passwordConfirm","initialValues","email","password","name","surname","fullName","filter","Boolean","join","submit","formik","validateOnBlur","validationSchema","values","formikHelpers","mappedNames","undefined","registerValues","updatedValues","registerResponse","register","data","accessToken","refreshToken","profile","project","setActiveLogin","error","parsedError","isSignIn","fieldErrors","emailError","find","fieldError","path","includes","message","passwordError","setFieldError","contextValue","Provider","value"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/register/components/form/register-form-provider.tsx"],"mappings":";;AAAA,SACEA,SAAS,QAGJ,YAAY;AACnB,SAASC,SAAS,QAAQ,QAAQ;AAClC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,qBAAqB,QAAQ,uDAAoD;AAC1F,SAASC,oBAAoB,QAAQ,4BAAyB;AAC9D,SAASC,qBAAqB,QAAQ,8BAA2B;AACjE,SAASC,gBAAgB,QAAQ,iCAA8B;AAC/D,SAASC,mBAAmB,QAAQ,yCAAsC;AAG1E,SAASC,8BAA8B,QAAQ,kDAA+C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/F,MAAMC,qBAAqB,GACzBC,QAA0B,IAE1B,UAAU,IAAIA,QAAQ,IAAIA,QAAQ,CAACC,QAAQ,KAAK,kBAAkB;AAEpE,OAAO,MAAMC,oBAEZ,GAAGA,CAAC;EACHC,QAAQ;EACRC,iBAAiB;EACjBC,aAAa;EACbC,UAAU;EACVC,sBAAsB;EACtBC,SAAS;EACTC,eAAe;EACfC,QAAQ;EACRC,SAAS;EACTC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAMC,MAAM,GAAG1B,SAAS,CAAC,CAAC;EAC1B,MA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Ac,CAACZ,QAAQ;MAC9B,MAAMa,aAAa,GAAG;QACpB,GAAGD,cAAc;QACjB,IAAIF,WAAW,IAAI,CAAC,CAAC,CAAC;QACtBhB,eAAe,EAAEd,aAAa,EAAEc,eAAe,GAC3Cc,MAAM,CAACX,QAAQ,GACfW,MAAM,CAACd,eAAe;QAC1Bb,UAAU;QACV,IAAIC,sBAAsB,KAAK6B,SAAS,GACpC;UAAE7B;QAAuB,CAAC,GAC1B,CAAC,CAAC;MACR,CAAC;MAED,IAAIG,QAAQ,EAAE;QACZ,OAAOA,QAAQ,CAAC4B,aAAa,EAAEJ,aAAa,CAAC;MAC/C;MAEA,IAAI;QACF,MAAMK,gBAAgB,GAAG,MAAMzB,MAAM,CAAC0B,QAAQ,CAACF,aAAa,CAAC;QAE7D,IAAIvC,qBAAqB,CAACwC,gBAAgB,CAAC,EAAE;UAC3C1B,UAAU,GAAG0B,gBAAgB,CAAC;UAE9B;QACF;QAEA,MAAME,IAAI,GAAG;UACXC,WAAW,EAAEH,gBAAgB,CAACG,WAAW;UACzCC,YAAY,EAAEJ,gBAAgB,CAACI,YAAY;UAC3CC,OAAO,EAAEL,gBAAgB,CAACK,OAAO;UACjCC,OAAO,EAAEN,gBAAgB,CAACM;QAC5B,CAAC;QAED,MAAM/B,MAAM,CAACgC,cAAc,CAACL,IAAI,CAAC;QACjCjD,oBAAoB,CAAC,CAAC;QAEtBmB,SAAS,GAAG4B,gBAAgB,CAAC;MAC/B,CAAC,CAAC,OAAOQ,KAAK,EAAE;QACd,MAAMC,WAAW,GAAGtD,gBAAgB,CAACqD,KAAK,EAAE;
|
|
1
|
+
{"version":3,"names":["useClient","useFormik","React","useShallowStableValue","notifySessionChanged","setRateLimitFormError","parseSignInError","RegisterFormContext","createRegisterValidationSchema","jsx","_jsx","isClinicianInviteStep","response","nextStep","RegisterFormProvider","children","customValidations","defaultValues","tenantCode","continueAsPatientToken","nameField","toRegisterNames","onSubmit","onSuccess","onError","onNextStep","client","singleName","registerValidationSchema","useMemo","disablePasswordConfirm","passwordConfirm","initialValues","email","password","name","surname","fullName","filter","Boolean","join","submit","formik","validateOnBlur","validationSchema","values","formikHelpers","mappedNames","undefined","registerValues","updatedValues","registerResponse","register","data","accessToken","refreshToken","profile","project","setActiveLogin","error","parsedError","errorScope","isSignIn","fieldErrors","emailError","find","fieldError","path","includes","message","passwordError","setFieldError","contextValue","Provider","value"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/register/components/form/register-form-provider.tsx"],"mappings":";;AAAA,SACEA,SAAS,QAGJ,YAAY;AACnB,SAASC,SAAS,QAAQ,QAAQ;AAClC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,qBAAqB,QAAQ,uDAAoD;AAC1F,SAASC,oBAAoB,QAAQ,4BAAyB;AAC9D,SAASC,qBAAqB,QAAQ,8BAA2B;AACjE,SAASC,gBAAgB,QAAQ,iCAA8B;AAC/D,SAASC,mBAAmB,QAAQ,yCAAsC;AAG1E,SAASC,8BAA8B,QAAQ,kDAA+C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/F,MAAMC,qBAAqB,GACzBC,QAA0B,IAE1B,UAAU,IAAIA,QAAQ,IAAIA,QAAQ,CAACC,QAAQ,KAAK,kBAAkB;AAEpE,OAAO,MAAMC,oBAEZ,GAAGA,CAAC;EACHC,QAAQ;EACRC,iBAAiB;EACjBC,aAAa;EACbC,UAAU;EACVC,sBAAsB;EACtBC,SAAS;EACTC,eAAe;EACfC,QAAQ;EACRC,SAAS;EACTC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAMC,MAAM,GAAG1B,SAAS,CAAC,CAAC;EAC1B,MAAM2B,UAAU,GAAGP,SAAS,KAAK,QAAQ;EAEzC,MAAMQ,wBAAwB,GAAG1B,KAAK,CAAC2B,OAAO,CAC5C,MACErB,8BAA8B,CAAC;IAC7BQ,iBAAiB;IACjBc,sBAAsB,EAAE,CAAC,CAACb,aAAa,EAAEc,eAAe;IACxDJ,UAAU;IACVN;EAC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AACC,IAAI,CAACC,QAAQ,CAAC,UAAU,CACrC,CAAC,EAAEC,OAAO;QAEV,IAAI,CAACL,UAAU,IAAI,CAACM,aAAa,EAAE;UACjCxB,aAAa,CAACyB,aAAa,CAAC,QAAQ,EAAEX,WAAW,CAACD,KAAK,CAACU,OAAO,CAAC;QAClE;QAEAvB,aAAa,CAACyB,aAAa,CAAC,OAAO,EAAEP,UAAU,CAAC;QAChDlB,aAAa,CAACyB,aAAa,CAAC,UAAU,EAAED,aAAa,CAAC;MACxD;IACF;EACF,CAAC,CAAC;EAEF,MAAME,YAAY,GAAGrE,qBAAqB,CAAC;IACzC,GAAGuC,MAAM;IACTzB,aAAa;IACbG,SAAS;IACTC;EACF,CAAC,CAAC;EAEF,oBACEX,IAAA,CAACH,mBAAmB,CAACkE,QAAQ;IAACC,KAAK,EAAEF,YAAa;IAAAzD,QAAA,EAC/CA;EAAQ,CACmB,CAAC;AAEnC,CAAC","ignoreList":[]}
|
package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useClient","useFormik","i18n","Yup","useShallowStableValue","setRateLimitFormError","parseSignInError","ResetPasswordFormContext","jsx","_jsx","ResetPasswordFormProvider","children","type","onSubmit","onSuccess","onError","client","formik","initialValues","email","submit","validationSchema","object","string","trim","lowercase","matches","required","oneOf","values","helpers","resetPassword","data","message","t","error","parsedError","isSignIn","setFieldError","contextValue","typeLocked","undefined","Provider","value"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AACtC,SAASC,SAAS,QAAQ,QAAQ;AAClC,OAAOC,IAAI,MAAM,SAAS;AAC1B,OAAO,KAAKC,GAAG,MAAM,KAAK;AAE1B,SAASC,qBAAqB,QAAQ,uDAAoD;AAC1F,SAASC,qBAAqB,QAAQ,8BAA2B;AACjE,SAASC,gBAAgB,QAA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":["useClient","useFormik","i18n","Yup","useShallowStableValue","setRateLimitFormError","parseSignInError","ResetPasswordFormContext","jsx","_jsx","ResetPasswordFormProvider","children","type","onSubmit","onSuccess","onError","client","formik","initialValues","email","submit","validationSchema","object","string","trim","lowercase","matches","required","oneOf","values","helpers","resetPassword","data","message","t","error","parsedError","errorScope","isSignIn","setFieldError","contextValue","typeLocked","undefined","Provider","value"],"sourceRoot":"../../../../../../../src","sources":["modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,YAAY;AACtC,SAASC,SAAS,QAAQ,QAAQ;AAClC,OAAOC,IAAI,MAAM,SAAS;AAC1B,OAAO,KAAKC,GAAG,MAAM,KAAK;AAE1B,SAASC,qBAAqB,QAAQ,uDAAoD;AAC1F,SAASC,qBAAqB,QAAQ,8BAA2B;AACjE,SAASC,gBAAgB,QAAQ,iCAA8B;AAC/D,SAASC,wBAAwB,QAAQ,+CAA4C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAItF,OAAO,MAAMC,yBAAyB,GAAGA,CAAC;EACxCC,QAAQ;EACRC,IAAI;EACJC,QAAQ;EACRC,SAAS;EACTC;AAC8B,CAAC,KAAK;EACpC,MAAMC,MAAM,GAAGhB,SAAS,CAAC,CAAC;EAE1B,MAAMiB,MAAM,GAAGhB,SAAS,CAA0B;IAChDiB,aAAa,EAAE;MACbC,KAAK,EAAE,EAAE;MACTP,IAAI,EAAEA,IAAI,IAAI,SAAS;MACvBQ,MAAM,EAAE;IACV,CAAC;IACDC,gBAAgB,EAAElB,GAAG,CAACmB,MAAM,CAAC;MAC3BH,KAAK,EAAEhB,GAAG,CAACoB,MAAM,CAAC,CAAC,CAChBC,IAAI,CAAC,CAAC,CACNC,SAAS,CAAC,CAAC,CACXN,KAAK,CAAC,4BAA4B,CAAC,CACnCO,OAAO,CACN,kDAAkD,EAClD,4BACF,CAAC,CACAC,QAAQ,CAAC,6BAA6B,CAAC;MAC1Cf,IAAI,EAAET,GAAG,CAACoB,MAAM,CAAC,CAAC,CAACK,KAAK,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC;IACtD,CAAC,CAAC;IACFf,QAAQ,EAAE,MAAAA,CAAOgB,MAAM,EAAEC,OAAO,KAAK;MACnC,IAAIjB,QAAQ,EAAE;QACZ,OAAOA,QAAQ,CAACgB,MAAM,EAAEC,OAAO,CAAC;MAClC;MAEA,IAAI;QACF,MAAMd,MAAM,CAACe,aAAa,CAACF,MAAM,CAAC;QAElC,MAAMG,IAAI,GAAG;UACXC,OAAO,EAAE/B,IAAI,CAACgC,CAAC,CAAC,wBAAwB;QAC1C,CAAC;QAEDpB,SAAS,GAAGkB,IAAI,CAAC;MACnB,CAAC,CAAC,OAAOG,KAAK,EAAE;QACd,MAAMC,WAAW,GAAG9B,gBAAgB,CAAC6B,KAAK,EAAE;UAC1CE,UAAU,EAAE,gBAAgB;UAC5BC,QAAQ,EAAE;QACZ,CAAC,CAAC;QAEFvB,OAAO,GAAGqB,WAAW,CAACD,KAAK,CAAC;QAE5B,IAAI9B,qBAAqB,CAAC+B,WAAW,CAACD,KAAK,EAAEL,OAAO,CAAC,EAAE;UACrD;QACF;QAEAA,OAAO,CAACS,aAAa,CAAC,QAAQ,EAAEH,WAAW,CAACD,KAAK,CAACF,OAAO,CAAC;MAC5D;IACF;EACF,CAAC,CAAC;EAEF,MAAMO,YAAY,GAAGpC,qBAAqB,CAAC;IACzC,GAAGa,MAAM;IACTwB,UAAU,EAAE7B,IAAI,KAAK8B;EACvB,CAAC,CAAC;EAEF,oBACEjC,IAAA,CAACF,wBAAwB,CAACoC,QAAQ;IAACC,KAAK,EAAEJ,YAAa;IAAA7B,QAAA,EACpDA;EAAQ,CACwB,CAAC;AAExC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getHttpStatus, toError } from "./session-errors.js";
|
|
4
|
+
import { normalizeSession } from "./session-store-types.js";
|
|
5
|
+
const createSessionRefreshActions = (client, requestState, getStore, notify) => {
|
|
6
|
+
const refresh = async includeSessions => {
|
|
7
|
+
const store = getStore();
|
|
8
|
+
requestState.syncActiveAccount();
|
|
9
|
+
if (!client.getActiveLogin()) {
|
|
10
|
+
requestState.nextRevision();
|
|
11
|
+
store.snapshot = {
|
|
12
|
+
status: "signed-out",
|
|
13
|
+
accounts: requestState.getAccounts(),
|
|
14
|
+
sessions: []
|
|
15
|
+
};
|
|
16
|
+
notify();
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const revision = requestState.nextRevision();
|
|
20
|
+
const previousSnapshot = store.snapshot;
|
|
21
|
+
if (store.snapshot.status !== "authenticated" && store.snapshot.status !== "offline") {
|
|
22
|
+
store.snapshot = {
|
|
23
|
+
...store.snapshot,
|
|
24
|
+
status: "loading",
|
|
25
|
+
error: undefined
|
|
26
|
+
};
|
|
27
|
+
notify();
|
|
28
|
+
}
|
|
29
|
+
const currentProfileRequest = requestState.getProfileRequest();
|
|
30
|
+
const currentSessionsRequest = includeSessions ? requestState.getSessionsRequest() : undefined;
|
|
31
|
+
const [profileResult, sessionsResult] = await Promise.all([currentProfileRequest.then(profile => ({
|
|
32
|
+
profile
|
|
33
|
+
}), error => ({
|
|
34
|
+
error
|
|
35
|
+
})), (currentSessionsRequest ?? Promise.resolve(previousSnapshot.sessions)).then(sessions => ({
|
|
36
|
+
sessions
|
|
37
|
+
}), error => ({
|
|
38
|
+
error
|
|
39
|
+
}))]);
|
|
40
|
+
if (!requestState.isCurrent(revision)) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const profile = "profile" in profileResult ? profileResult.profile : previousSnapshot.profile;
|
|
44
|
+
const sessions = "sessions" in sessionsResult ? sessionsResult.sessions : previousSnapshot.sessions;
|
|
45
|
+
const error = "error" in profileResult ? profileResult.error : "error" in sessionsResult ? sessionsResult.error : undefined;
|
|
46
|
+
const accounts = requestState.getAccounts();
|
|
47
|
+
const nextSnapshot = !client.getActiveLogin() || getHttpStatus(error) === 401 ? {
|
|
48
|
+
status: "signed-out",
|
|
49
|
+
accounts,
|
|
50
|
+
sessions: [],
|
|
51
|
+
error: error === undefined ? undefined : toError(error)
|
|
52
|
+
} : "error" in profileResult ? {
|
|
53
|
+
status: "offline",
|
|
54
|
+
accounts,
|
|
55
|
+
profile,
|
|
56
|
+
sessions: sessions.map(normalizeSession),
|
|
57
|
+
error: toError(profileResult.error)
|
|
58
|
+
} : {
|
|
59
|
+
status: "authenticated",
|
|
60
|
+
accounts,
|
|
61
|
+
profile,
|
|
62
|
+
sessions: sessions.map(normalizeSession),
|
|
63
|
+
error: "error" in sessionsResult ? toError(sessionsResult.error) : undefined
|
|
64
|
+
};
|
|
65
|
+
store.snapshot = nextSnapshot;
|
|
66
|
+
notify();
|
|
67
|
+
};
|
|
68
|
+
const refreshSessions = async () => {
|
|
69
|
+
const store = getStore();
|
|
70
|
+
requestState.syncActiveAccount();
|
|
71
|
+
if (!client.getActiveLogin()) {
|
|
72
|
+
store.snapshot = {
|
|
73
|
+
...store.snapshot,
|
|
74
|
+
accounts: requestState.getAccounts(),
|
|
75
|
+
sessions: []
|
|
76
|
+
};
|
|
77
|
+
notify();
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const revision = requestState.revision;
|
|
81
|
+
try {
|
|
82
|
+
const sessions = await requestState.getSessionsRequest();
|
|
83
|
+
if (!requestState.isCurrent(revision)) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
store.snapshot = {
|
|
87
|
+
...store.snapshot,
|
|
88
|
+
accounts: requestState.getAccounts(),
|
|
89
|
+
sessions: sessions.map(normalizeSession),
|
|
90
|
+
error: undefined
|
|
91
|
+
};
|
|
92
|
+
notify();
|
|
93
|
+
} catch (cause) {
|
|
94
|
+
if (!requestState.isCurrent(revision)) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const error = toError(cause);
|
|
98
|
+
if (!client.getActiveLogin() || getHttpStatus(cause) === 401) {
|
|
99
|
+
store.snapshot = {
|
|
100
|
+
status: "signed-out",
|
|
101
|
+
accounts: requestState.getAccounts(),
|
|
102
|
+
sessions: [],
|
|
103
|
+
error
|
|
104
|
+
};
|
|
105
|
+
} else {
|
|
106
|
+
store.snapshot = {
|
|
107
|
+
...store.snapshot,
|
|
108
|
+
error
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
notify();
|
|
112
|
+
throw error;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
return {
|
|
116
|
+
refresh,
|
|
117
|
+
refreshSessions
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export { createSessionRefreshActions };
|
|
121
|
+
//# sourceMappingURL=session-store-refresh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getHttpStatus","toError","normalizeSession","createSessionRefreshActions","client","requestState","getStore","notify","refresh","includeSessions","store","syncActiveAccount","getActiveLogin","nextRevision","snapshot","status","accounts","getAccounts","sessions","revision","previousSnapshot","error","undefined","currentProfileRequest","getProfileRequest","currentSessionsRequest","getSessionsRequest","profileResult","sessionsResult","Promise","all","then","profile","resolve","isCurrent","nextSnapshot","map","refreshSessions","cause"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/session-store-refresh.ts"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,OAAO,QAAQ,qBAAkB;AAEzD,SACEC,gBAAgB,QAIX,0BAAuB;AAE9B,MAAMC,2BAA2B,GAAGA,CAClCC,MAAc,EACdC,YAAsC,EACtCC,QAA4B,EAC5BC,MAAkB,KACf;EACH,MAAMC,OAAO,GAAG,MAAOC,eAAwB,IAAK;IAClD,MAAMC,KAAK,GAAGJ,QAAQ,CAAC,CAAC;IAExBD,YAAY,CAACM,iBAAiB,CAAC,CAAC;IAEhC,IAAI,CAACP,MAAM,CAACQ,cAAc,CAAC,CAAC,EAAE;MAC5BP,YAAY,CAACQ,YAAY,CAAC,CAAC;MAC3BH,KAAK,C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MACAd,MAAM,CAAC,CAAC;MACR,MAAMc,KAAK;IACb;EACF,CAAC;EAED,OAAO;IAAEb,OAAO;IAAE6B;EAAgB,CAAC;AACrC,CAAC;AAED,SAASlC,2BAA2B","ignoreList":[]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
class SessionStoreRequestState {
|
|
4
|
+
profileNeedsRefresh = false;
|
|
5
|
+
hasActiveAccount = false;
|
|
6
|
+
authRevision = 0;
|
|
7
|
+
constructor(client, sessionClient) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
this.sessionClient = sessionClient;
|
|
10
|
+
}
|
|
11
|
+
getAccounts = () => this.sessionClient.getSavedAccounts();
|
|
12
|
+
getActiveAccountId = () => this.getAccounts().find(account => account.active)?.id ?? this.client.getActiveLogin()?.profile?.reference;
|
|
13
|
+
syncActiveAccount = () => {
|
|
14
|
+
const nextAccountId = this.getActiveAccountId();
|
|
15
|
+
if (this.hasActiveAccount && this.activeAccountId !== nextAccountId) {
|
|
16
|
+
this.invalidate();
|
|
17
|
+
}
|
|
18
|
+
this.activeAccountId = nextAccountId;
|
|
19
|
+
this.hasActiveAccount = true;
|
|
20
|
+
};
|
|
21
|
+
invalidate = () => {
|
|
22
|
+
this.authRevision += 1;
|
|
23
|
+
this.profileRequest = undefined;
|
|
24
|
+
this.sessionsRequest = undefined;
|
|
25
|
+
this.profileNeedsRefresh = false;
|
|
26
|
+
this.activeAccountId = this.getActiveAccountId();
|
|
27
|
+
this.hasActiveAccount = true;
|
|
28
|
+
};
|
|
29
|
+
nextRevision = () => ++this.authRevision;
|
|
30
|
+
get revision() {
|
|
31
|
+
return this.authRevision;
|
|
32
|
+
}
|
|
33
|
+
isCurrent = revision => revision === this.authRevision;
|
|
34
|
+
getProfileRequest = () => {
|
|
35
|
+
if (!this.profileRequest) {
|
|
36
|
+
const requestAccountId = this.getActiveAccountId();
|
|
37
|
+
const request = (this.profileNeedsRefresh ? this.client.refetchProfile() : this.client.getProfileAsync()).then(profile => {
|
|
38
|
+
if (requestAccountId === this.getActiveAccountId()) {
|
|
39
|
+
this.profileNeedsRefresh = false;
|
|
40
|
+
}
|
|
41
|
+
return profile;
|
|
42
|
+
}).catch(cause => {
|
|
43
|
+
if (requestAccountId === this.getActiveAccountId()) {
|
|
44
|
+
this.profileNeedsRefresh = true;
|
|
45
|
+
}
|
|
46
|
+
throw cause;
|
|
47
|
+
}).finally(() => {
|
|
48
|
+
if (this.profileRequest === request) {
|
|
49
|
+
this.profileRequest = undefined;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
this.profileRequest = request;
|
|
53
|
+
}
|
|
54
|
+
return this.profileRequest;
|
|
55
|
+
};
|
|
56
|
+
getSessionsRequest = () => {
|
|
57
|
+
if (!this.sessionsRequest) {
|
|
58
|
+
const request = this.sessionClient.getSessions().finally(() => {
|
|
59
|
+
if (this.sessionsRequest === request) {
|
|
60
|
+
this.sessionsRequest = undefined;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
this.sessionsRequest = request;
|
|
64
|
+
}
|
|
65
|
+
return this.sessionsRequest;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export { SessionStoreRequestState };
|
|
69
|
+
//# sourceMappingURL=session-store-request-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SessionStoreRequestState","profileNeedsRefresh","hasActiveAccount","authRevision","constructor","client","sessionClient","getAccounts","getSavedAccounts","getActiveAccountId","find","account","active","id","getActiveLogin","profile","reference","syncActiveAccount","nextAccountId","activeAccountId","invalidate","profileRequest","undefined","sessionsRequest","nextRevision","revision","isCurrent","getProfileRequest","requestAccountId","request","refetchProfile","getProfileAsync","then","catch","cause","finally","getSessionsRequest","getSessions"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/session-store-request-state.ts"],"mappings":";;AAOA,MAAMA,wBAAwB,CAAC;EAGrBC,mBAAmB,GAAG,KAAK;EAE3BC,gBAAg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AChC;IAEA,OAAO,IAAI,CAACN,eAAe;EAC7B,CAAC;AACH;AAEA,SAASvB,wBAAwB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["normalizeSession","session","legacy","id","authMethod","remoteAddress","ip","lastUpdated","lastActiveAt","createdAt"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/session-store-types.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["normalizeSession","session","legacy","id","authMethod","remoteAddress","ip","lastUpdated","lastActiveAt","createdAt"],"sourceRoot":"../../../../../src","sources":["modules/auth/session/session-store-types.ts"],"mappings":";;AAsCA,MAAMA,gBAAgB,GAAIC,OAA0B,IAAwB;EAC1E,MAAMC,MAAM,GAAGD,OAId;EAED,OAAO;IACLE,EAAE,EAAEF,OAAO,CAACE,EAAE;IACdC,UAAU,EAAEH,OAAO,CAACG,UAAU;IAC9BC,aAAa,EAAEJ,OAAO,CAACI,aAAa,IAAIH,MAAM,CAACI,EAAE;IACjDC,WAAW,EAAEN,OAAO,CAACM,WAAW,IAAIL,MAAM,CAACM,YAAY,IAAIN,MAAM,CAACO;EACpE,CAAC;AACH,CAAC;AAED,SAAST,gBAAgB","ignoreList":[]}
|