@wildo-ai/saas-frontend-lib 1.1.16 → 1.1.18
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/LICENSE +114 -26
- package/LICENSE.enterprise +129 -0
- package/dist/esm/companion-exports.d.ts +5 -2
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js +4 -2
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/components/actions/action-bar.d.ts +16 -1
- package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
- package/dist/esm/components/actions/action-bar.js.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
- package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.js +14 -7
- package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.js +15 -0
- package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
- package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
- package/dist/esm/components/auth/Auth_Main.js +5 -0
- package/dist/esm/components/auth/Auth_Main.js.map +1 -1
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
- package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
- package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.js +40 -7
- package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.js +9 -1
- package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
- package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
- package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts.map +1 -1
- package/dist/esm/components/compliance/EmbeddedSigningFrame.js +17 -6
- package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
- package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayField.js +67 -45
- package/dist/esm/components/data-display/DisplayField.js.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
- package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/data-display/approval-seal.d.ts +7 -5
- package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -1
- package/dist/esm/components/data-display/approval-seal.js +10 -4
- package/dist/esm/components/data-display/approval-seal.js.map +1 -1
- package/dist/esm/components/data-display/signature-requests.d.ts +81 -0
- package/dist/esm/components/data-display/signature-requests.d.ts.map +1 -0
- package/dist/esm/components/data-display/signature-requests.js +123 -0
- package/dist/esm/components/data-display/signature-requests.js.map +1 -0
- package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
- package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
- package/dist/esm/components/feedback/empty-state-marker.js +16 -0
- package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
- package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/empty-state.js +2 -1
- package/dist/esm/components/feedback/empty-state.js.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.js +2 -1
- package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.d.ts +25 -1
- package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.js +22 -24
- package/dist/esm/components/flows-actors/approval.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.js +30 -0
- package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
- package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
- package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
- package/dist/esm/components/form/Form.d.ts +2 -0
- package/dist/esm/components/form/Form.d.ts.map +1 -1
- package/dist/esm/components/form/Form.js +1 -0
- package/dist/esm/components/form/Form.js.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
- package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
- package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
- package/dist/esm/components/form/automated/FormField.d.ts +5 -3
- package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/FormField.js +38 -13
- package/dist/esm/components/form/automated/FormField.js.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js +75 -47
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
- package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
- package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
- package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
- package/dist/esm/components/navigation/NavigationItemBadge.d.ts +16 -0
- package/dist/esm/components/navigation/NavigationItemBadge.d.ts.map +1 -1
- package/dist/esm/components/navigation/NavigationItemBadge.js +14 -2
- package/dist/esm/components/navigation/NavigationItemBadge.js.map +1 -1
- package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.d.ts +3 -3
- package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js +3 -3
- package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js.map +1 -1
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts +5 -13
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +30 -255
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts +22 -1
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +57 -26
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +40 -4
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts +1 -1
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +26 -4
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts +31 -0
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts.map +1 -0
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js +42 -0
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js.map +1 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts +76 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts.map +1 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js +268 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js.map +1 -0
- package/dist/esm/components/navigation/command.d.ts +5 -0
- package/dist/esm/components/navigation/command.d.ts.map +1 -1
- package/dist/esm/components/navigation/command.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js +51 -12
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +21 -7
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.js +17 -7
- package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +4 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
- package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
- package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js +4 -1
- package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js.map +1 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +4 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
- package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js +4 -1
- package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js.map +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
- package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
- package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/Group.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/Group.js +4 -1
- package/dist/esm/components/resources/skeleton/Group.js.map +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
- package/dist/esm/components/sections/ContentSectionContainer.d.ts.map +1 -1
- package/dist/esm/components/sections/ContentSectionContainer.js +11 -7
- package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
- package/dist/esm/components/sections/content-section.d.ts +1 -3
- package/dist/esm/components/sections/content-section.d.ts.map +1 -1
- package/dist/esm/components/sections/content-section.js.map +1 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +2 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -1
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +12 -0
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +28 -6
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js.map +1 -1
- package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
- package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
- package/dist/esm/components/settings/SettingsHub.js +14 -4
- package/dist/esm/components/settings/SettingsHub.js.map +1 -1
- package/dist/esm/components/typography/document-heading-level.d.ts +28 -0
- package/dist/esm/components/typography/document-heading-level.d.ts.map +1 -0
- package/dist/esm/components/typography/document-heading-level.js +63 -0
- package/dist/esm/components/typography/document-heading-level.js.map +1 -0
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.js +52 -22
- package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.js +76 -3
- package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
- package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
- package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +47 -12
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +87 -32
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +8 -8
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js +7 -3
- package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js +6 -2
- package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +8 -2
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js +13 -9
- package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +9 -8
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js +2 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +10 -11
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js +2 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js +5 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +7 -3
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
- package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
- package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
- package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
- package/dist/esm/core/app-shell/app-shell.schemas.d.ts +87 -16
- package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
- package/dist/esm/core/app-shell/app-shell.schemas.js +16 -0
- package/dist/esm/core/app-shell/app-shell.schemas.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
- package/dist/esm/core/billing/BillingContext.d.ts +27 -4
- package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
- package/dist/esm/core/billing/BillingContext.js +61 -2
- package/dist/esm/core/billing/BillingContext.js.map +1 -1
- package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
- package/dist/esm/core/billing/useBillingAction.js +3 -2
- package/dist/esm/core/billing/useBillingAction.js.map +1 -1
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
- package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
- package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
- package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
- package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
- package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.js +1 -0
- package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
- package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.js +12 -0
- package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
- package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
- package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
- package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.js +31 -0
- package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
- package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
- package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
- package/dist/esm/core/events/NotificationContext.js +19 -2
- package/dist/esm/core/events/NotificationContext.js.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
- package/dist/esm/core/execution/useExecution.d.ts +3 -3
- package/dist/esm/core/execution/useExecution.js.map +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
- package/dist/esm/core/features/FeatureGate.d.ts +13 -1
- package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
- package/dist/esm/core/features/FeatureGate.js +6 -1
- package/dist/esm/core/features/FeatureGate.js.map +1 -1
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
- package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
- package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
- package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
- package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
- package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
- package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useFeatureAvailability.js +4 -0
- package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
- package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
- package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
- package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
- package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
- package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
- package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
- package/dist/esm/core/navigation/home-resolution.js +46 -0
- package/dist/esm/core/navigation/home-resolution.js.map +1 -0
- package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
- package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.js +13 -18
- package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
- package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
- package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
- package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
- package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
- package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
- package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
- package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.js +25 -0
- package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
- package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
- package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
- package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.js +26 -0
- package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.js +47 -0
- package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +66 -10
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +63 -8
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.js +45 -3
- package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
- package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
- package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
- package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +11 -33
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
- package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
- package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
- package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
- package/dist/esm/core/runtime/identity-routes.js +50 -0
- package/dist/esm/core/runtime/identity-routes.js.map +1 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
- package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
- package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
- package/dist/esm/core/search/command-score.d.ts +33 -0
- package/dist/esm/core/search/command-score.d.ts.map +1 -0
- package/dist/esm/core/search/command-score.js +109 -0
- package/dist/esm/core/search/command-score.js.map +1 -0
- package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.js +4 -0
- package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
- package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.js +7 -2
- package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
- package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
- package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
- package/dist/esm/core/ui/design-token.utils.js +24 -3
- package/dist/esm/core/ui/design-token.utils.js.map +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
- package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/index.d.ts +19 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +22 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/testing/mock-builders.d.ts +1 -1
- package/dist/esm/testing/mock-builders.d.ts.map +1 -1
- package/dist/esm/testing/mock-builders.js +1 -0
- package/dist/esm/testing/mock-builders.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -6
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Auth_OAuthDeviceVerification.labels.js","sourceRoot":"","sources":["../../../../src/components/auth/Auth_OAuthDeviceVerification.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,SAAS,EAET,uBAAuB,EACvB,gCAAgC,GACjC,MAAM,qCAAqC,CAAC;AAE7C,gHAAgH;AAChH,gHAAgH;AAChH,0GAA0G;AAC1G,sCAAsC;AAEtC,MAAM,CAAC,MAAM,0CAA0C,GAA0B;IAC/E;QACE,GAAG,EAAE,gCAAgC,CAAC,KAAK;QAC3C,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,qKAAqK;KAC/K;IACD;QACE,GAAG,EAAE,gCAAgC,CAAC,SAAS;QAC/C,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EAAE,qGAAqG;KAC/G;IACD;QACE,GAAG,EAAE,gCAAgC,CAAC,UAAU;QAChD,IAAI,EAAE,SAAS,CAAC,KAAK;QACrB,OAAO,EAAE,8GAA8G;KACxH;IACD;QACE,GAAG,EAAE,gCAAgC,CAAC,QAAQ;QAC9C,IAAI,EAAE,SAAS,CAAC,MAAM;QACtB,OAAO,EAAE,+EAA+E;KACzF;IACD;QACE,GAAG,EAAE,gCAAgC,CAAC,aAAa;QACnD,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,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AAO;QACvB,OAAO,EAAE,2EAA2E;KACrF;IACD;QACE,GAAG,EAAE,gCAAgC,CAAC,MAAM;QAC5C,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,gFAAgF;KAC1F;IACD;QACE,GAAG,EAAE,gCAAgC,CAAC,eAAe;QACrD,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,yJAAyJ;KACnK;IACD;QACE,GAAG,EAAE,gCAAgC,CAAC,cAAc;QACpD,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,qGAAqG;KAC/G;IACD;QACE,GAAG,EAAE,gCAAgC,CAAC,cAAc;QACpD,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,qJAAqJ;KAC/J;IACD;QACE,GAAG,EAAE,gCAAgC,CAAC,aAAa;QACnD,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,+DAA+D;KACzE;CACF,CAAC;AAEF,uBAAuB,CAAC,qBAAqB,CAAC,wCAAwC,EAAE,0CAA0C,CAAC,CAAC","sourcesContent":["import {\n FrontendComponentType,\n LabelKind,\n type LabellingUnitaryDef,\n registerComponentLabels,\n UserOAuthDeviceVerificationLabel,\n} from '@wildo-ai/presets-components-models';\n\n// Companion-only label metadata for the OAuth device verification page: keys + params + per-key purpose / kind.\n// Statically scanned by the dev companion to plan `components.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION.*` label\n// generation; NOT imported at runtime, so these description strings never ship in the browser bundle (see\n// `labels-bundle-isolation.test.ts`).\n\nexport const PublicLayoutsOAuthDeviceVerificationLabels: LabellingUnitaryDef[] = [\n {\n ref: UserOAuthDeviceVerificationLabel.TITLE,\n kind: LabelKind.HEADING,\n purpose: 'Heading of the page where a signed-in person connects a device or tool that has no browser of its own (a command-line tool, an agent) by entering the code it shows',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.SUB_TITLE,\n kind: LabelKind.DESCRIPTION,\n purpose: 'Supporting line asking the person to type the short code shown on their device or in their terminal',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.CODE_FIELD,\n kind: LabelKind.LABEL,\n purpose: 'Label of the field where the person types the code their device shows (eight letters, for example WDJB-MJHT)',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.CONTINUE,\n kind: LabelKind.BUTTON,\n purpose: 'Button that checks the typed code and shows which application asks for access',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.CONFIRM_TITLE,\n kind: LabelKind.HEADING,\n params: [{ key: 'clientName', meaning: 'display name of the application asking to act on the person\\'s behalf from the device (e.g. \"Acme CLI\")' }],\n purpose: 'Heading telling the person that a named application on a device wants to act on their behalf',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.CONFIRM_CODE,\n kind: LabelKind.DESCRIPTION,\n params: [{ key: 'userCode', meaning: 'the code the person entered, with its dash (e.g. \"WDJB-MJHT\")' }],\n purpose: 'Asks the person to check that their device shows exactly this code before approving',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.POSSESSION_WARNING,\n kind: LabelKind.MESSAGE,\n purpose: 'Warning to approve only a device the person has in front of them and started the sign-in on themselves, never a code someone sent them',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.SCOPES_INTRO,\n kind: LabelKind.LABEL,\n purpose: 'Label introducing the list of identity scopes (such as profile or email) the application asks for',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.AGENT_ENDPOINT,\n kind: LabelKind.LABEL,\n params: [{ key: 'resource', meaning: 'the agent endpoint URL the access will be confined to' }],\n purpose: 'Shows the specific agent endpoint the access is confined to',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.WHOLE_ACCOUNT_ACCESS,\n kind: LabelKind.DESCRIPTION,\n purpose: 'Warning shown instead of the agent endpoint when the device asks for full access to the person\\'s whole account in this application (everything they can do here), not one agent endpoint; only the application\\'s own command-line or desktop client can ask for it',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.KEEPS_ACCESS,\n kind: LabelKind.DESCRIPTION,\n purpose: 'Note that the device will keep this access after today, renewing it by itself, until the person removes it from their authorized apps or signs out everywhere; approving asks them to confirm who they are again',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.APPROVE,\n kind: LabelKind.BUTTON,\n purpose: 'Button that lets the device act on the person\\'s behalf',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.DENY,\n kind: LabelKind.BUTTON,\n purpose: 'Button that refuses the device\\'s request',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.APPROVED,\n kind: LabelKind.HEADING,\n purpose: 'Confirmation that the device is connected and the person can return to it',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.DENIED,\n kind: LabelKind.HEADING,\n purpose: 'Confirmation that the device\\'s request was refused and it will not get access',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.ERROR_NOT_FOUND,\n kind: LabelKind.MESSAGE,\n purpose: 'Error shown when the typed code matches no waiting request: mistyped, expired, or already used; the person can retype it or start again from the device',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.ERROR_TOO_MANY,\n kind: LabelKind.MESSAGE,\n purpose: 'Error shown after too many wrong codes, asking the person to wait a few minutes before trying again',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.ERROR_DECISION,\n kind: LabelKind.MESSAGE,\n purpose: 'Error shown when the approve or deny answer could not be recorded, for example because the request expired; the person starts again from the device',\n },\n {\n ref: UserOAuthDeviceVerificationLabel.ERROR_GENERIC,\n kind: LabelKind.MESSAGE,\n purpose: 'Generic fallback error shown when the page fails unexpectedly',\n },\n];\n\nregisterComponentLabels(FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION, PublicLayoutsOAuthDeviceVerificationLabels);\n"]}
|
|
@@ -4,11 +4,25 @@ import { StepUpRefusalOrigin } from '../../core/requests/wildo-http-client.front
|
|
|
4
4
|
/**
|
|
5
5
|
* The methods a step-up can be made with, strongest first — the order the dialog offers them in.
|
|
6
6
|
*
|
|
7
|
-
* These are the
|
|
8
|
-
* a password
|
|
7
|
+
* These are the local methods `POST /auth/reauth` accepts. A passkey leads because it is phishing-resistant;
|
|
8
|
+
* a password follows the authenticator app because it is the one a stolen session's owner is most likely to
|
|
9
|
+
* have reused. The one-time codes the server sends come last: a texted code (a restricted authenticator) and
|
|
10
|
+
* an emailed one, which the server offers only to an account that signs in through its mailbox or under a
|
|
11
|
+
* policy that names it.
|
|
9
12
|
*/
|
|
10
13
|
export declare const STEP_UP_METHODS: readonly StepUpMethod[];
|
|
11
|
-
export type StepUpMethod = AuthMethod.PASSKEY | AuthMethod.TOTP | AuthMethod.PASSWORD;
|
|
14
|
+
export type StepUpMethod = AuthMethod.PASSKEY | AuthMethod.TOTP | AuthMethod.PASSWORD | StepUpOneTimeCodeMethod;
|
|
15
|
+
/** The step-up methods proven by a code the server sends first (`POST /auth/reauth/one-time-code`). */
|
|
16
|
+
export type StepUpOneTimeCodeMethod = AuthMethod.SMS_OTP | AuthMethod.EMAIL_OTP;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the dialog shows the restricted-authenticator notice: whenever a texted or emailed code is among the methods
|
|
19
|
+
* offered. NIST makes the PSTN (a texted code) the one restricted authenticator and asks for "meaningful notice regarding
|
|
20
|
+
* the restricted authenticator's security risks and the availability of unrestricted alternatives"; an emailed code is
|
|
21
|
+
* weaker still (email "SHALL NOT be used for out-of-band authentication"), and is offered only as the last resort of an
|
|
22
|
+
* account with no other factor.
|
|
23
|
+
* spec-cite: NIST SP 800-63B-4 §3.2.9 and §3.1.3.1 (https://pages.nist.gov/800-63-4/sp800-63b.html).
|
|
24
|
+
*/
|
|
25
|
+
export declare function stepUpOffersRestrictedCode(methods: readonly StepUpMethod[] | null): boolean;
|
|
12
26
|
/**
|
|
13
27
|
* What the person supplied to prove they are still the account holder. The dialog collects it; the
|
|
14
28
|
* step-up context turns it into a single-use token. A passkey carries nothing here because its
|
|
@@ -24,6 +38,9 @@ export type StepUpProof = {
|
|
|
24
38
|
} | {
|
|
25
39
|
method: AuthMethod.TOTP;
|
|
26
40
|
code: string;
|
|
41
|
+
} | {
|
|
42
|
+
method: StepUpOneTimeCodeMethod;
|
|
43
|
+
code: string;
|
|
27
44
|
} | {
|
|
28
45
|
method: AuthMethod.PASSKEY;
|
|
29
46
|
} | {
|
|
@@ -42,9 +59,10 @@ export type StepUpProof = {
|
|
|
42
59
|
*
|
|
43
60
|
* An EMPTY answer is kept empty: it means no factor the account holds can produce this proof, and the
|
|
44
61
|
* dialog says so instead of offering one that would be refused. If the question itself fails, every
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
62
|
+
* method the person types or holds is offered (passkey, authenticator app, password): showing one the
|
|
63
|
+
* account lacks costs a refusal the person can read, while offering nothing leaves them no way through at
|
|
64
|
+
* all. No texted or emailed code and no linked identity is offered then: a code would be SENT to a channel
|
|
65
|
+
* the server may not accept, and a provider cannot be started without the link the answer would name.
|
|
48
66
|
*/
|
|
49
67
|
export declare function resolveStepUpOptions(purpose: ReAuthenticationPurpose): Promise<{
|
|
50
68
|
methods: StepUpMethod[];
|
|
@@ -52,17 +70,20 @@ export declare function resolveStepUpOptions(purpose: ReAuthenticationPurpose):
|
|
|
52
70
|
}>;
|
|
53
71
|
/**
|
|
54
72
|
* The proof the dialog would submit for `method`, or `null` while the input cannot yet be one. A TOTP
|
|
55
|
-
* code is 6 to 8 digits because the digit count is configurable (`totpOperational.digits`)
|
|
73
|
+
* code is 6 to 8 digits because the digit count is configurable (`totpOperational.digits`); a texted or
|
|
74
|
+
* emailed code as long as `OUT_OF_BAND_ONE_TIME_CODE_LENGTH` allows (`otpOperational.*.otpLength`, six to eight), and
|
|
75
|
+
* only once one was sent (`codeSent`).
|
|
56
76
|
*/
|
|
57
77
|
export declare function buildStepUpProof(method: StepUpMethod | null, input: {
|
|
58
78
|
password: string;
|
|
59
79
|
code: string;
|
|
80
|
+
codeSent?: boolean;
|
|
60
81
|
}): StepUpProof | null;
|
|
61
82
|
/**
|
|
62
83
|
* What the dialog offers, from what the account can re-authenticate with (#1633, #2923). A granting organization's
|
|
63
|
-
* policy asks for a second factor, so no password and no linked identity. A proof for ONE decision must be
|
|
64
|
-
*
|
|
65
|
-
* and is never a linked identity, which cannot mint a proof bound to a decision.
|
|
84
|
+
* policy asks for a second factor, so no password, no texted or emailed code and no linked identity. A proof for ONE decision must be a factor a
|
|
85
|
+
* decision ranks (`humanDecisionStepUpAssuranceOf`: never a texted or emailed code) and at least as strong as that
|
|
86
|
+
* decision requires (`minimumAssurance`), and is never a linked identity, which cannot mint a proof bound to a decision.
|
|
66
87
|
*/
|
|
67
88
|
export declare function stepUpOptionsOffered(options: {
|
|
68
89
|
readonly methods: readonly StepUpMethod[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepUpAuthDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/StepUpAuthDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"StepUpAuthDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/StepUpAuthDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,UAAU,EAAqC,uBAAuB,EAAqE,KAAK,+BAA+B,EAAE,KAAK,+BAA+B,EAAE,KAAK,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAWjS,OAAO,EAAE,mBAAmB,EAAE,MAAM,sEAAsE,CAAC;AAO3G;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EAAyG,CAAC;AAE7J,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,QAAQ,GAAG,uBAAuB,CAAC;AAEhH,uGAAuG;AACvG,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC;AAMhF;;;;;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,CAAC,mBAAmB,CAAC,EAAE,+BAA+B,CAAA;CAAE,GAChH;IAAE,OAAO,EAAE,YAAY,EAAE,CAAC;IAAC,aAAa,EAAE,4BAA4B,EAAE,CAAA;CAAE,CAc5E;AAED,UAAU,qBAAqB;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,oFAAoF;IACpF,OAAO,EAAE,uBAAuB,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,+BAA+B,CAAC;IACtD,SAAS,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2R5D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, useEffect, useRef } from 'react';
|
|
3
|
-
import { AuthMethod, humanDecisionStepUpAssuranceMeets, humanDecisionStepUpAssuranceOf } from '@wildo-ai/saas-models';
|
|
3
|
+
import { AuthMethod, OUT_OF_BAND_ONE_TIME_CODE_PATTERN, humanDecisionStepUpAssuranceMeets, humanDecisionStepUpAssuranceOf } from '@wildo-ai/saas-models';
|
|
4
4
|
import { ButtonSize, FrontendComponentType, SecuritySettingsLabel } from '@wildo-ai/presets-components-models';
|
|
5
5
|
import { OperationsConfirmCritical } from '../../components/feedback/operations-confirm-critical.js';
|
|
6
6
|
import { Text } from '../../components/typography/text.js';
|
|
@@ -16,21 +16,42 @@ import { FederatedReAuthenticationFailure, FederatedReAuthenticationFailureReaso
|
|
|
16
16
|
/**
|
|
17
17
|
* The methods a step-up can be made with, strongest first — the order the dialog offers them in.
|
|
18
18
|
*
|
|
19
|
-
* These are the
|
|
20
|
-
* a password
|
|
19
|
+
* These are the local methods `POST /auth/reauth` accepts. A passkey leads because it is phishing-resistant;
|
|
20
|
+
* a password follows the authenticator app because it is the one a stolen session's owner is most likely to
|
|
21
|
+
* have reused. The one-time codes the server sends come last: a texted code (a restricted authenticator) and
|
|
22
|
+
* an emailed one, which the server offers only to an account that signs in through its mailbox or under a
|
|
23
|
+
* policy that names it.
|
|
21
24
|
*/
|
|
22
|
-
export const STEP_UP_METHODS = [AuthMethod.PASSKEY, AuthMethod.TOTP, AuthMethod.PASSWORD];
|
|
25
|
+
export const STEP_UP_METHODS = [AuthMethod.PASSKEY, AuthMethod.TOTP, AuthMethod.PASSWORD, AuthMethod.SMS_OTP, AuthMethod.EMAIL_OTP];
|
|
26
|
+
function isOneTimeCodeStepUpMethod(method) {
|
|
27
|
+
return method === AuthMethod.SMS_OTP || method === AuthMethod.EMAIL_OTP;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Whether the dialog shows the restricted-authenticator notice: whenever a texted or emailed code is among the methods
|
|
31
|
+
* offered. NIST makes the PSTN (a texted code) the one restricted authenticator and asks for "meaningful notice regarding
|
|
32
|
+
* the restricted authenticator's security risks and the availability of unrestricted alternatives"; an emailed code is
|
|
33
|
+
* weaker still (email "SHALL NOT be used for out-of-band authentication"), and is offered only as the last resort of an
|
|
34
|
+
* account with no other factor.
|
|
35
|
+
* spec-cite: NIST SP 800-63B-4 §3.2.9 and §3.1.3.1 (https://pages.nist.gov/800-63-4/sp800-63b.html).
|
|
36
|
+
*/
|
|
37
|
+
export function stepUpOffersRestrictedCode(methods) {
|
|
38
|
+
return methods?.some((method) => isOneTimeCodeStepUpMethod(method)) ?? false;
|
|
39
|
+
}
|
|
23
40
|
const FEDERATED_FAILURE_LABEL = {
|
|
24
41
|
[FederatedReAuthenticationFailureReason.POPUP_BLOCKED]: SecuritySettingsLabel.REAUTH_PROVIDER_POPUP_BLOCKED,
|
|
25
42
|
// Never displayed (a cancelled dialog is closed); mapped so the table stays total over the reasons.
|
|
26
43
|
[FederatedReAuthenticationFailureReason.CANCELLED]: SecuritySettingsLabel.REAUTH_PROVIDER_FAILED,
|
|
27
44
|
[FederatedReAuthenticationFailureReason.TIMED_OUT]: SecuritySettingsLabel.REAUTH_PROVIDER_TIMED_OUT,
|
|
28
45
|
[FederatedReAuthenticationFailureReason.FAILED]: SecuritySettingsLabel.REAUTH_PROVIDER_FAILED,
|
|
46
|
+
[FederatedReAuthenticationFailureReason.PROVIDER_DID_NOT_REAUTHENTICATE]: SecuritySettingsLabel.REAUTH_PROVIDER_DID_NOT_REAUTHENTICATE,
|
|
47
|
+
[FederatedReAuthenticationFailureReason.RATE_LIMITED]: SecuritySettingsLabel.REAUTH_PROVIDER_RATE_LIMITED,
|
|
29
48
|
};
|
|
30
49
|
const METHOD_CHOICE_LABEL = {
|
|
31
50
|
[AuthMethod.PASSKEY]: SecuritySettingsLabel.REAUTH_WITH_PASSKEY,
|
|
32
51
|
[AuthMethod.TOTP]: SecuritySettingsLabel.REAUTH_WITH_TOTP,
|
|
33
52
|
[AuthMethod.PASSWORD]: SecuritySettingsLabel.REAUTH_WITH_PASSWORD,
|
|
53
|
+
[AuthMethod.SMS_OTP]: SecuritySettingsLabel.REAUTH_WITH_SMS_CODE,
|
|
54
|
+
[AuthMethod.EMAIL_OTP]: SecuritySettingsLabel.REAUTH_WITH_EMAIL_CODE,
|
|
34
55
|
};
|
|
35
56
|
/**
|
|
36
57
|
* What this account can re-authenticate with for `purpose`: its local methods, in {@link STEP_UP_METHODS}
|
|
@@ -43,9 +64,10 @@ const METHOD_CHOICE_LABEL = {
|
|
|
43
64
|
*
|
|
44
65
|
* An EMPTY answer is kept empty: it means no factor the account holds can produce this proof, and the
|
|
45
66
|
* dialog says so instead of offering one that would be refused. If the question itself fails, every
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
67
|
+
* method the person types or holds is offered (passkey, authenticator app, password): showing one the
|
|
68
|
+
* account lacks costs a refusal the person can read, while offering nothing leaves them no way through at
|
|
69
|
+
* all. No texted or emailed code and no linked identity is offered then: a code would be SENT to a channel
|
|
70
|
+
* the server may not accept, and a provider cannot be started without the link the answer would name.
|
|
49
71
|
*/
|
|
50
72
|
export async function resolveStepUpOptions(purpose) {
|
|
51
73
|
try {
|
|
@@ -54,12 +76,14 @@ export async function resolveStepUpOptions(purpose) {
|
|
|
54
76
|
return { methods: STEP_UP_METHODS.filter((method) => accepted.has(method)), identityLinks: identityLinks ?? [] };
|
|
55
77
|
}
|
|
56
78
|
catch {
|
|
57
|
-
return { methods:
|
|
79
|
+
return { methods: STEP_UP_METHODS.filter((method) => !isOneTimeCodeStepUpMethod(method)), identityLinks: [] };
|
|
58
80
|
}
|
|
59
81
|
}
|
|
60
82
|
/**
|
|
61
83
|
* The proof the dialog would submit for `method`, or `null` while the input cannot yet be one. A TOTP
|
|
62
|
-
* code is 6 to 8 digits because the digit count is configurable (`totpOperational.digits`)
|
|
84
|
+
* code is 6 to 8 digits because the digit count is configurable (`totpOperational.digits`); a texted or
|
|
85
|
+
* emailed code as long as `OUT_OF_BAND_ONE_TIME_CODE_LENGTH` allows (`otpOperational.*.otpLength`, six to eight), and
|
|
86
|
+
* only once one was sent (`codeSent`).
|
|
63
87
|
*/
|
|
64
88
|
export function buildStepUpProof(method, input) {
|
|
65
89
|
switch (method) {
|
|
@@ -67,6 +91,9 @@ export function buildStepUpProof(method, input) {
|
|
|
67
91
|
return input.password.trim() ? { method, password: input.password } : null;
|
|
68
92
|
case AuthMethod.TOTP:
|
|
69
93
|
return /^\d{6,8}$/.test(input.code.trim()) ? { method, code: input.code.trim() } : null;
|
|
94
|
+
case AuthMethod.SMS_OTP:
|
|
95
|
+
case AuthMethod.EMAIL_OTP:
|
|
96
|
+
return input.codeSent && OUT_OF_BAND_ONE_TIME_CODE_PATTERN.test(input.code.trim()) ? { method, code: input.code.trim() } : null;
|
|
70
97
|
case AuthMethod.PASSKEY:
|
|
71
98
|
return { method };
|
|
72
99
|
default:
|
|
@@ -75,20 +102,24 @@ export function buildStepUpProof(method, input) {
|
|
|
75
102
|
}
|
|
76
103
|
/**
|
|
77
104
|
* What the dialog offers, from what the account can re-authenticate with (#1633, #2923). A granting organization's
|
|
78
|
-
* policy asks for a second factor, so no password and no linked identity. A proof for ONE decision must be
|
|
79
|
-
*
|
|
80
|
-
* and is never a linked identity, which cannot mint a proof bound to a decision.
|
|
105
|
+
* policy asks for a second factor, so no password, no texted or emailed code and no linked identity. A proof for ONE decision must be a factor a
|
|
106
|
+
* decision ranks (`humanDecisionStepUpAssuranceOf`: never a texted or emailed code) and at least as strong as that
|
|
107
|
+
* decision requires (`minimumAssurance`), and is never a linked identity, which cannot mint a proof bound to a decision.
|
|
81
108
|
*/
|
|
82
109
|
export function stepUpOptionsOffered(options, context) {
|
|
83
110
|
const secondFactorOnly = context.origin === StepUpRefusalOrigin.GRANTING_ORGANIZATION;
|
|
84
111
|
const minimumAssurance = context.decisionRequirement?.minimumAssurance;
|
|
85
112
|
const methods = options.methods
|
|
86
|
-
|
|
113
|
+
// A granting organization's second factor is neither a password nor a texted or emailed code: the server refuses a
|
|
114
|
+
// proof minted from a code there, since the code may go to the channel the person signed in through.
|
|
115
|
+
.filter((candidate) => !secondFactorOnly || (candidate !== AuthMethod.PASSWORD && !isOneTimeCodeStepUpMethod(candidate)))
|
|
87
116
|
.filter((candidate) => {
|
|
88
|
-
if (
|
|
117
|
+
if (!context.decisionRequirement)
|
|
89
118
|
return true;
|
|
90
119
|
const assurance = humanDecisionStepUpAssuranceOf(candidate);
|
|
91
|
-
|
|
120
|
+
if (assurance === undefined)
|
|
121
|
+
return false;
|
|
122
|
+
return minimumAssurance === undefined || humanDecisionStepUpAssuranceMeets(assurance, minimumAssurance);
|
|
92
123
|
});
|
|
93
124
|
return { methods, identityLinks: secondFactorOnly || context.decisionRequirement ? [] : [...options.identityLinks] };
|
|
94
125
|
}
|
|
@@ -107,6 +138,11 @@ export const StepUpAuthDialog = ({ open, purpose, origin = StepUpRefusalOrigin.A
|
|
|
107
138
|
const isFederatedPendingRef = useRef(false);
|
|
108
139
|
const [password, setPassword] = useState('');
|
|
109
140
|
const [code, setCode] = useState('');
|
|
141
|
+
// Where the last texted or emailed code went (masked) and how long it lives; `null` until one is sent for the chosen
|
|
142
|
+
// method. A code is entered only once one is sent, and choosing another method forgets it.
|
|
143
|
+
const [codeSent, setCodeSent] = useState(null);
|
|
144
|
+
const [isSendingCode, setIsSendingCode] = useState(false);
|
|
145
|
+
const [sendFailure, setSendFailure] = useState(null);
|
|
110
146
|
// OperationsConfirmCritical calls onOpenChange(false) synchronously after validationCallback.
|
|
111
147
|
// This ref prevents that premature close from cancelling the async re-auth flow.
|
|
112
148
|
const isSubmittingRef = useRef(false);
|
|
@@ -115,6 +151,8 @@ export const StepUpAuthDialog = ({ open, purpose, origin = StepUpRefusalOrigin.A
|
|
|
115
151
|
return;
|
|
116
152
|
setPassword('');
|
|
117
153
|
setCode('');
|
|
154
|
+
setCodeSent(null);
|
|
155
|
+
setSendFailure(null);
|
|
118
156
|
isSubmittingRef.current = false;
|
|
119
157
|
isFederatedPendingRef.current = false;
|
|
120
158
|
setAvailable(null);
|
|
@@ -141,7 +179,30 @@ export const StepUpAuthDialog = ({ open, purpose, origin = StepUpRefusalOrigin.A
|
|
|
141
179
|
isFederatedPendingRef.current = false;
|
|
142
180
|
}
|
|
143
181
|
}, [isLoading]);
|
|
144
|
-
const buildProof = useCallback(() => buildStepUpProof(method, { password, code }), [method, password, code]);
|
|
182
|
+
const buildProof = useCallback(() => buildStepUpProof(method, { password, code, codeSent: isOneTimeCodeStepUpMethod(method) && codeSent?.method === method }), [method, password, code, codeSent]);
|
|
183
|
+
/** Send (or send again) a code for the chosen texted or emailed method; a new one replaces the last. */
|
|
184
|
+
const sendCode = useCallback(async (codeMethod) => {
|
|
185
|
+
setIsSendingCode(true);
|
|
186
|
+
setSendFailure(null);
|
|
187
|
+
try {
|
|
188
|
+
const sent = await getManualCallsHttpClient().sendReAuthenticationCode(codeMethod);
|
|
189
|
+
setCodeSent({ method: codeMethod, destination: sent.destination, expiresInMinutes: sent.expiresInMinutes });
|
|
190
|
+
setCode('');
|
|
191
|
+
}
|
|
192
|
+
catch (error) {
|
|
193
|
+
setSendFailure(error);
|
|
194
|
+
}
|
|
195
|
+
finally {
|
|
196
|
+
setIsSendingCode(false);
|
|
197
|
+
}
|
|
198
|
+
}, []);
|
|
199
|
+
const chooseMethod = useCallback((choice) => {
|
|
200
|
+
setMethod(choice);
|
|
201
|
+
setLink(null);
|
|
202
|
+
setCode('');
|
|
203
|
+
setCodeSent(null);
|
|
204
|
+
setSendFailure(null);
|
|
205
|
+
}, []);
|
|
145
206
|
const nothingOffered = available?.length === 0 && identityLinks.length === 0;
|
|
146
207
|
const handleValidation = useCallback(() => {
|
|
147
208
|
// No method this account holds can produce the proof: the message already says what to do, so Confirm
|
|
@@ -187,6 +248,9 @@ export const StepUpAuthDialog = ({ open, purpose, origin = StepUpRefusalOrigin.A
|
|
|
187
248
|
? SecuritySettingsLabel.REAUTH_GRANTING_ORGANIZATION_DESCRIPTION
|
|
188
249
|
: SecuritySettingsLabel.REAUTH_DESCRIPTION) }), failure !== null && (_jsx(Alert, { variant: "destructive", children: _jsx(AlertDescription, { children: failure instanceof FederatedReAuthenticationFailure
|
|
189
250
|
? t(FEDERATED_FAILURE_LABEL[failure.reason])
|
|
190
|
-
: toUserFacingErrorMessage(failure, t(SecuritySettingsLabel.ERROR)) }) })), nothingOffered && (_jsx(Alert, { children: _jsx(AlertDescription, { children: t(SecuritySettingsLabel.REAUTH_NO_ACCEPTED_METHOD) }) })), available && available.length + identityLinks.length > 1 && (_jsxs("div", { className: "flex flex-wrap gap-2", role: "group", "aria-label": t(SecuritySettingsLabel.REAUTH_TITLE), children: [available.map((choice) => (_jsx(Button, { type: "button", size: ButtonSize.SM, variant: choice === method ? ButtonVariants_Variant.DEFAULT : ButtonVariants_Variant.OUTLINE, "aria-pressed": choice === method, disabled: isLoading, onClick: () =>
|
|
251
|
+
: toUserFacingErrorMessage(failure, t(SecuritySettingsLabel.ERROR)) }) })), nothingOffered && (_jsx(Alert, { children: _jsx(AlertDescription, { children: t(SecuritySettingsLabel.REAUTH_NO_ACCEPTED_METHOD) }) })), available && available.length + identityLinks.length > 1 && (_jsxs("div", { className: "flex flex-wrap gap-2", role: "group", "aria-label": t(SecuritySettingsLabel.REAUTH_TITLE), children: [available.map((choice) => (_jsx(Button, { type: "button", size: ButtonSize.SM, variant: choice === method ? ButtonVariants_Variant.DEFAULT : ButtonVariants_Variant.OUTLINE, "aria-pressed": choice === method, disabled: isLoading, onClick: () => chooseMethod(choice), children: t(METHOD_CHOICE_LABEL[choice]) }, choice))), identityLinks.map((choice) => (_jsx(Button, { type: "button", size: ButtonSize.SM, variant: choice.identityLinkId === link?.identityLinkId ? ButtonVariants_Variant.DEFAULT : ButtonVariants_Variant.OUTLINE, "aria-pressed": choice.identityLinkId === link?.identityLinkId, disabled: isLoading, onClick: () => { setLink(choice); setMethod(null); setCodeSent(null); setSendFailure(null); }, children: tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, SecuritySettingsLabel.REAUTH_WITH_PROVIDER, { provider: choice.displayName }) }, choice.identityLinkId)))] })), stepUpOffersRestrictedCode(available) && (_jsx(Alert, { children: _jsx(AlertDescription, { children: t(SecuritySettingsLabel.REAUTH_RESTRICTED_CODE_NOTICE) }) })), link && (_jsx(Text, { className: "text-sm", children: tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, SecuritySettingsLabel.REAUTH_PROVIDER_PROMPT, { provider: link.displayName }) })), method === AuthMethod.PASSWORD && (_jsxs(Field, { children: [_jsx(FieldLabel, { children: t(SecuritySettingsLabel.REAUTH_PASSWORD) }), _jsx(InputRoot, { type: "password", autoComplete: "current-password", value: password, onChange: (e) => setPassword(e.target.value), placeholder: t(SecuritySettingsLabel.REAUTH_PASSWORD_PLACEHOLDER), disabled: isLoading, onKeyDown: submitOnEnter })] })), method === AuthMethod.TOTP && (_jsxs(Field, { children: [_jsx(FieldLabel, { children: t(SecuritySettingsLabel.REAUTH_TOTP_CODE) }), _jsx(InputRoot, { inputMode: "numeric", autoComplete: "one-time-code", maxLength: 8, value: code, onChange: (e) => setCode(e.target.value.replace(/\D/g, '')), placeholder: t(SecuritySettingsLabel.REAUTH_TOTP_CODE_PLACEHOLDER), disabled: isLoading, onKeyDown: submitOnEnter })] })), method === AuthMethod.PASSKEY && (_jsx(Text, { className: "text-sm", children: t(SecuritySettingsLabel.REAUTH_PASSKEY_PROMPT) })), isOneTimeCodeStepUpMethod(method) && (_jsxs("div", { className: "space-y-3", children: [sendFailure !== null && (_jsx(Alert, { variant: "destructive", children: _jsx(AlertDescription, { children: toUserFacingErrorMessage(sendFailure, t(SecuritySettingsLabel.ERROR)) }) })), codeSent?.method === method && (_jsx(Text, { className: "text-sm", children: tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, SecuritySettingsLabel.REAUTH_CODE_SENT, {
|
|
252
|
+
destination: codeSent.destination,
|
|
253
|
+
minutes: codeSent.expiresInMinutes,
|
|
254
|
+
}) })), _jsx(Button, { type: "button", size: ButtonSize.SM, variant: ButtonVariants_Variant.OUTLINE, disabled: isLoading || isSendingCode, onClick: () => { void sendCode(method); }, children: t(codeSent?.method === method ? SecuritySettingsLabel.REAUTH_RESEND_CODE : SecuritySettingsLabel.REAUTH_SEND_CODE) }), codeSent?.method === method && (_jsxs(Field, { children: [_jsx(FieldLabel, { children: t(SecuritySettingsLabel.REAUTH_ONE_TIME_CODE) }), _jsx(InputRoot, { inputMode: "numeric", autoComplete: "one-time-code", maxLength: 8, value: code, onChange: (e) => setCode(e.target.value.replace(/\D/g, '')), placeholder: t(SecuritySettingsLabel.REAUTH_ONE_TIME_CODE_PLACEHOLDER), disabled: isLoading, onKeyDown: submitOnEnter })] }))] }))] }) }));
|
|
191
255
|
};
|
|
192
256
|
//#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,SAAS,EAAC,SAAS,EACnB,YAAY,EAAC,eAAe,EAC5B,SAAS,EAAE,CAAC,EACZ,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAC3D,WAAW,EAAE,CAAC,CAAC,qBAAqB,CAAC,4BAA4B,CAAC,EAClE,QAAQ,EAAE,SAAS,EACnB,SAAS,EAAE,aAAa,GACxB,IACI,CACT,EACA,MAAM,KAAK,UAAU,CAAC,OAAO,IAAI,CAChC,KAAC,IAAI,IAAC,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,GAAQ,CAClF,IACG,GACoB,CAC7B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useState, useCallback, useEffect, useRef } from 'react';\nimport { AuthMethod, ReAuthenticationPurpose, humanDecisionStepUpAssuranceMeets, humanDecisionStepUpAssuranceOf, type FederatedReAuthenticationMethod, type HumanDecision_StepUpRequirement, type ReAuthenticationIdentityLink } from '@wildo-ai/saas-models';\nimport { ButtonSize, FrontendComponentType, SecuritySettingsLabel } from '@wildo-ai/presets-components-models';\nimport { OperationsConfirmCritical } from '~wildo-frontend-lib/components/feedback/operations-confirm-critical';\nimport { Text } from '~wildo-frontend-lib/components/typography/text';\nimport { InputRoot } from '~wildo-frontend-lib/components/form/controls/input';\nimport { Field, FieldLabel } from '~wildo-frontend-lib/components/form/chromes/field';\nimport { Alert, AlertDescription } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useUserFacingErrorMessage } from '~wildo-frontend-lib/core/errors/useUserFacingErrorMessage';\nimport { getManualCallsHttpClient } from '~wildo-frontend-lib/core/requests/wildo-http-client-manual-calls.frontend.service';\nimport { StepUpRefusalOrigin } from '~wildo-frontend-lib/core/requests/wildo-http-client.frontend.service';\nimport {\n FederatedReAuthenticationFailure,\n FederatedReAuthenticationFailureReason,\n openReAuthenticationWindow,\n} from '~wildo-frontend-lib/core/security/federated-reauthentication.frontend';\n\n/**\n * The methods a step-up can be made with, strongest first — the order the dialog offers them in.\n *\n * These are the three `POST /auth/reauth` accepts. A passkey leads because it is phishing-resistant;\n * a password comes last because it is the one a stolen session's owner is most likely to have reused.\n */\nexport const STEP_UP_METHODS: readonly StepUpMethod[] = [AuthMethod.PASSKEY, AuthMethod.TOTP, AuthMethod.PASSWORD];\n\nexport type StepUpMethod = AuthMethod.PASSKEY | AuthMethod.TOTP | AuthMethod.PASSWORD;\n\n/**\n * What the person supplied to prove they are still the account holder. The dialog collects it; the\n * step-up context turns it into a single-use token. A passkey carries nothing here because its\n * ceremony runs after the dialog confirms — it needs a server challenge first.\n *\n * A federated proof (#1441) carries the linked identity and the window the provider will run in. The\n * window is opened BY THE DIALOG, in the Confirm click, because a browser allows a popup only there;\n * `null` means it refused.\n */\nexport type StepUpProof =\n | { method: AuthMethod.PASSWORD; password: string }\n | { method: AuthMethod.TOTP; code: string }\n | { method: AuthMethod.PASSKEY }\n | { method: FederatedReAuthenticationMethod; identityLinkId: string; popup: Window | null };\n\nconst FEDERATED_FAILURE_LABEL: Record<FederatedReAuthenticationFailureReason, SecuritySettingsLabel> = {\n [FederatedReAuthenticationFailureReason.POPUP_BLOCKED]: SecuritySettingsLabel.REAUTH_PROVIDER_POPUP_BLOCKED,\n // Never displayed (a cancelled dialog is closed); mapped so the table stays total over the reasons.\n [FederatedReAuthenticationFailureReason.CANCELLED]: SecuritySettingsLabel.REAUTH_PROVIDER_FAILED,\n [FederatedReAuthenticationFailureReason.TIMED_OUT]: SecuritySettingsLabel.REAUTH_PROVIDER_TIMED_OUT,\n [FederatedReAuthenticationFailureReason.FAILED]: SecuritySettingsLabel.REAUTH_PROVIDER_FAILED,\n};\n\nconst METHOD_CHOICE_LABEL: Record<StepUpMethod, SecuritySettingsLabel> = {\n [AuthMethod.PASSKEY]: SecuritySettingsLabel.REAUTH_WITH_PASSKEY,\n [AuthMethod.TOTP]: SecuritySettingsLabel.REAUTH_WITH_TOTP,\n [AuthMethod.PASSWORD]: SecuritySettingsLabel.REAUTH_WITH_PASSWORD,\n};\n\n/**\n * What this account can re-authenticate with for `purpose`: its local methods, in {@link STEP_UP_METHODS}\n * order, and the linked identities whose provider can re-authenticate it (#1441). One request answers both.\n *\n * Asked of the server each time the dialog opens (#1417): the answer changes as the person adds and\n * removes authenticators, and for a step-up it is narrowed by the account's step-up policy, which only\n * the server can resolve. Offering what the account merely HOLDS would show a password under a\n * passkey-only policy, accept it, and have the server refuse it.\n *\n * An EMPTY answer is kept empty: it means no factor the account holds can produce this proof, and the\n * dialog says so instead of offering one that would be refused. If the question itself fails, every\n * local method is offered: showing one the account lacks costs a refusal the person can read, while\n * offering nothing leaves them no way through at all. No linked identity is offered then: unlike a local\n * method, a provider cannot be offered blind, because starting one needs the link the answer would name.\n */\nexport async function resolveStepUpOptions(\n purpose: ReAuthenticationPurpose,\n): Promise<{ methods: StepUpMethod[]; identityLinks: ReAuthenticationIdentityLink[] }> {\n try {\n const { methods, identityLinks } = await getManualCallsHttpClient().getReAuthenticationMethods(purpose);\n const accepted = new Set<AuthMethod>(methods);\n return { methods: STEP_UP_METHODS.filter((method) => accepted.has(method)), identityLinks: identityLinks ?? [] };\n } catch {\n return { methods: [...STEP_UP_METHODS], identityLinks: [] };\n }\n}\n\n/**\n * The proof the dialog would submit for `method`, or `null` while the input cannot yet be one. A TOTP\n * code is 6 to 8 digits because the digit count is configurable (`totpOperational.digits`).\n */\nexport function buildStepUpProof(method: StepUpMethod | null, input: { password: string; code: string }): StepUpProof | null {\n switch (method) {\n case AuthMethod.PASSWORD:\n return input.password.trim() ? { method, password: input.password } : null;\n case AuthMethod.TOTP:\n return /^\\d{6,8}$/.test(input.code.trim()) ? { method, code: input.code.trim() } : null;\n case AuthMethod.PASSKEY:\n return { method };\n default:\n return null;\n }\n}\n\n/**\n * What the dialog offers, from what the account can re-authenticate with (#1633, #2923). A granting organization's\n * policy asks for a second factor, so no password and no linked identity. A proof for ONE decision must be at least as\n * strong as that decision requires (`minimumAssurance`, ranked as `humanDecisionStepUpAssuranceOf` ranks the factors),\n * and is never a linked identity, which cannot mint a proof bound to a decision.\n */\nexport function stepUpOptionsOffered(\n options: { readonly methods: readonly StepUpMethod[]; readonly identityLinks: readonly ReAuthenticationIdentityLink[] },\n context: { readonly origin: StepUpRefusalOrigin; readonly decisionRequirement?: HumanDecision_StepUpRequirement },\n): { methods: StepUpMethod[]; identityLinks: ReAuthenticationIdentityLink[] } {\n const secondFactorOnly = context.origin === StepUpRefusalOrigin.GRANTING_ORGANIZATION;\n const minimumAssurance = context.decisionRequirement?.minimumAssurance;\n const methods = options.methods\n .filter((candidate) => !secondFactorOnly || candidate !== AuthMethod.PASSWORD)\n .filter((candidate) => {\n if (minimumAssurance === undefined) return true;\n const assurance = humanDecisionStepUpAssuranceOf(candidate);\n return assurance !== undefined && humanDecisionStepUpAssuranceMeets(assurance, minimumAssurance);\n });\n return { methods, identityLinks: secondFactorOnly || context.decisionRequirement ? [] : [...options.identityLinks] };\n}\n\ninterface StepUpAuthDialogProps {\n open: boolean;\n /** Which proof the refusal asked for; decides which methods are offered (#1417). */\n purpose: ReAuthenticationPurpose;\n /**\n * Who asked (#1633). When it is a GRANTING organization's policy, the proof must be a second factor, so the password\n * and linked identities — which prove a first factor only — are not offered, and the description says whose policy\n * asks. Absent means the account's own policy or the operation.\n */\n origin?: StepUpRefusalOrigin;\n /**\n * #2923: the proof is for ONE decision, which requires at least this of it. Only factors at least `minimumAssurance`\n * strong are offered, and no linked identity, which cannot mint a proof bound to a decision. Absent: a plain step-up.\n */\n decisionRequirement?: HumanDecision_StepUpRequirement;\n onConfirm: (proof: StepUpProof) => void;\n onCancel: () => void;\n /**\n * The caught re-authentication failure, `null` when there is none. Passed as the error itself rather\n * than as text so it is resolved HERE, through the i18n context: a wrong password used to reach the\n * dialog as the backend's i18n reference (`authentication_user_credentials_invalid`).\n */\n failure: unknown;\n isLoading: boolean;\n}\n\nexport const StepUpAuthDialog: React.FC<StepUpAuthDialogProps> = ({\n open,\n purpose,\n origin = StepUpRefusalOrigin.ACCOUNT_OR_OPERATION,\n decisionRequirement,\n onConfirm,\n onCancel,\n failure,\n isLoading,\n}) => {\n const toUserFacingErrorMessage = useUserFacingErrorMessage();\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS });\n const t = useCallback(\n (key: string) => tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, key),\n [tComponent],\n );\n\n // `null` while the server is being asked, so the no-method message never flashes before the answer.\n const [available, setAvailable] = useState<StepUpMethod[] | null>(null);\n const [identityLinks, setIdentityLinks] = useState<ReAuthenticationIdentityLink[]>([]);\n const [method, setMethod] = useState<StepUpMethod | null>(null);\n // The chosen linked identity (#1441). Exclusive with `method`: choosing one clears the other.\n const [link, setLink] = useState<ReAuthenticationIdentityLink | null>(null);\n // Set while the provider's window is open. Cancel stays available then: the person may abandon the\n // provider, and nothing else would ever end the wait early.\n const isFederatedPendingRef = useRef(false);\n const [password, setPassword] = useState('');\n const [code, setCode] = useState('');\n // OperationsConfirmCritical calls onOpenChange(false) synchronously after validationCallback.\n // This ref prevents that premature close from cancelling the async re-auth flow.\n const isSubmittingRef = useRef(false);\n\n useEffect(() => {\n if (!open) return;\n setPassword('');\n setCode('');\n isSubmittingRef.current = false;\n isFederatedPendingRef.current = false;\n setAvailable(null);\n setIdentityLinks([]);\n setMethod(null);\n setLink(null);\n let cancelled = false;\n void resolveStepUpOptions(purpose).then((options) => {\n if (cancelled) return;\n const { methods, identityLinks: links } = stepUpOptionsOffered(options, { origin, ...(decisionRequirement ? { decisionRequirement } : {}) });\n setAvailable(methods);\n setIdentityLinks(links);\n // A local method first when there is one; otherwise the first provider.\n setMethod(methods[0] ?? null);\n setLink(methods.length === 0 ? links[0] ?? null : null);\n });\n return () => { cancelled = true; };\n }, [open, purpose, origin, decisionRequirement]);\n\n // Reset submitting guard when async operation finishes (success closes dialog; error stays open)\n useEffect(() => {\n if (!isLoading) {\n isSubmittingRef.current = false;\n isFederatedPendingRef.current = false;\n }\n }, [isLoading]);\n\n const buildProof = useCallback(() => buildStepUpProof(method, { password, code }), [method, password, code]);\n\n const nothingOffered = available?.length === 0 && identityLinks.length === 0;\n\n const handleValidation = useCallback(() => {\n // No method this account holds can produce the proof: the message already says what to do, so Confirm\n // acknowledges it and closes rather than doing nothing (#1417).\n if (nothingOffered) {\n onCancel();\n return;\n }\n if (link) {\n if (isSubmittingRef.current) return;\n isSubmittingRef.current = true;\n isFederatedPendingRef.current = true;\n // Opened HERE, synchronously in the click, or the browser blocks it (#1441).\n onConfirm({ method: link.method, identityLinkId: link.identityLinkId, popup: openReAuthenticationWindow() });\n return;\n }\n const proof = buildProof();\n if (!proof || isSubmittingRef.current) return;\n isSubmittingRef.current = true;\n onConfirm(proof);\n }, [nothingOffered, link, buildProof, onCancel, onConfirm]);\n\n const handleCancel = useCallback(() => {\n if (isSubmittingRef.current && !isFederatedPendingRef.current) return;\n setPassword('');\n setCode('');\n onCancel();\n }, [onCancel]);\n\n const handleOpenChange = useCallback((nextOpen: boolean) => {\n if (!nextOpen && !isSubmittingRef.current) {\n handleCancel();\n }\n }, [handleCancel]);\n\n const submitOnEnter = (e: React.KeyboardEvent) => {\n if (e.key === 'Enter') handleValidation();\n };\n\n if (!isReady) return null;\n\n return (\n <OperationsConfirmCritical\n open={open}\n onOpenChange={handleOpenChange}\n cancelCallback={handleCancel}\n validationCallback={handleValidation}\n label={t(SecuritySettingsLabel.REAUTH_TITLE)}\n >\n <div className=\"space-y-4 py-4\">\n <Text className=\"text-sm\">{t(origin === StepUpRefusalOrigin.GRANTING_ORGANIZATION\n ? SecuritySettingsLabel.REAUTH_GRANTING_ORGANIZATION_DESCRIPTION\n : SecuritySettingsLabel.REAUTH_DESCRIPTION)}</Text>\n {failure !== null && (\n <Alert variant=\"destructive\">\n <AlertDescription>\n {failure instanceof FederatedReAuthenticationFailure\n ? t(FEDERATED_FAILURE_LABEL[failure.reason])\n : toUserFacingErrorMessage(failure, t(SecuritySettingsLabel.ERROR))}\n </AlertDescription>\n </Alert>\n )}\n {nothingOffered && (\n <Alert>\n <AlertDescription>{t(SecuritySettingsLabel.REAUTH_NO_ACCEPTED_METHOD)}</AlertDescription>\n </Alert>\n )}\n {available && available.length + identityLinks.length > 1 && (\n <div className=\"flex flex-wrap gap-2\" role=\"group\" aria-label={t(SecuritySettingsLabel.REAUTH_TITLE)}>\n {available.map((choice) => (\n <Button\n key={choice}\n type=\"button\"\n size={ButtonSize.SM}\n variant={choice === method ? ButtonVariants_Variant.DEFAULT : ButtonVariants_Variant.OUTLINE}\n aria-pressed={choice === method}\n disabled={isLoading}\n onClick={() => { setMethod(choice); setLink(null); }}\n >\n {t(METHOD_CHOICE_LABEL[choice])}\n </Button>\n ))}\n {identityLinks.map((choice) => (\n <Button\n key={choice.identityLinkId}\n type=\"button\"\n size={ButtonSize.SM}\n variant={choice.identityLinkId === link?.identityLinkId ? ButtonVariants_Variant.DEFAULT : ButtonVariants_Variant.OUTLINE}\n aria-pressed={choice.identityLinkId === link?.identityLinkId}\n disabled={isLoading}\n onClick={() => { setLink(choice); setMethod(null); }}\n >\n {tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, SecuritySettingsLabel.REAUTH_WITH_PROVIDER, { provider: choice.displayName })}\n </Button>\n ))}\n </div>\n )}\n {link && (\n <Text className=\"text-sm\">\n {tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, SecuritySettingsLabel.REAUTH_PROVIDER_PROMPT, { provider: link.displayName })}\n </Text>\n )}\n {method === AuthMethod.PASSWORD && (\n <Field>\n <FieldLabel>{t(SecuritySettingsLabel.REAUTH_PASSWORD)}</FieldLabel>\n <InputRoot\n type=\"password\"\n autoComplete=\"current-password\"\n value={password}\n onChange={(e) => setPassword(e.target.value)}\n placeholder={t(SecuritySettingsLabel.REAUTH_PASSWORD_PLACEHOLDER)}\n disabled={isLoading}\n onKeyDown={submitOnEnter}\n />\n </Field>\n )}\n {method === AuthMethod.TOTP && (\n <Field>\n <FieldLabel>{t(SecuritySettingsLabel.REAUTH_TOTP_CODE)}</FieldLabel>\n <InputRoot\n inputMode=\"numeric\"\n autoComplete=\"one-time-code\"\n maxLength={8}\n value={code}\n onChange={(e) => setCode(e.target.value.replace(/\\D/g, ''))}\n placeholder={t(SecuritySettingsLabel.REAUTH_TOTP_CODE_PLACEHOLDER)}\n disabled={isLoading}\n onKeyDown={submitOnEnter}\n />\n </Field>\n )}\n {method === AuthMethod.PASSKEY && (\n <Text className=\"text-sm\">{t(SecuritySettingsLabel.REAUTH_PASSKEY_PROMPT)}</Text>\n )}\n </div>\n </OperationsConfirmCritical>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"StepUpAuthDialog.js","sourceRoot":"","sources":["../../../../src/components/auth/StepUpAuthDialog.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,iCAAiC,EAA2B,iCAAiC,EAAE,8BAA8B,EAAiH,MAAM,uBAAuB,CAAC;AACjS,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC/G,OAAO,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AAChH,OAAO,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,oDAAoD,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,gBAA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AAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAC3D,WAAW,EAAE,CAAC,CAAC,qBAAqB,CAAC,gCAAgC,CAAC,EACtE,QAAQ,EAAE,SAAS,EACnB,SAAS,EAAE,aAAa,GACxB,IACI,CACT,IACG,CACP,IACG,GACoB,CAC7B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useState, useCallback, useEffect, useRef } from 'react';\nimport { AuthMethod, OUT_OF_BAND_ONE_TIME_CODE_PATTERN, ReAuthenticationPurpose, humanDecisionStepUpAssuranceMeets, humanDecisionStepUpAssuranceOf, type FederatedReAuthenticationMethod, type HumanDecision_StepUpRequirement, type ReAuthenticationIdentityLink } from '@wildo-ai/saas-models';\nimport { ButtonSize, FrontendComponentType, SecuritySettingsLabel } from '@wildo-ai/presets-components-models';\nimport { OperationsConfirmCritical } from '~wildo-frontend-lib/components/feedback/operations-confirm-critical';\nimport { Text } from '~wildo-frontend-lib/components/typography/text';\nimport { InputRoot } from '~wildo-frontend-lib/components/form/controls/input';\nimport { Field, FieldLabel } from '~wildo-frontend-lib/components/form/chromes/field';\nimport { Alert, AlertDescription } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useUserFacingErrorMessage } from '~wildo-frontend-lib/core/errors/useUserFacingErrorMessage';\nimport { getManualCallsHttpClient } from '~wildo-frontend-lib/core/requests/wildo-http-client-manual-calls.frontend.service';\nimport { StepUpRefusalOrigin } from '~wildo-frontend-lib/core/requests/wildo-http-client.frontend.service';\nimport {\n FederatedReAuthenticationFailure,\n FederatedReAuthenticationFailureReason,\n openReAuthenticationWindow,\n} from '~wildo-frontend-lib/core/security/federated-reauthentication.frontend';\n\n/**\n * The methods a step-up can be made with, strongest first — the order the dialog offers them in.\n *\n * These are the local methods `POST /auth/reauth` accepts. A passkey leads because it is phishing-resistant;\n * a password follows the authenticator app because it is the one a stolen session's owner is most likely to\n * have reused. The one-time codes the server sends come last: a texted code (a restricted authenticator) and\n * an emailed one, which the server offers only to an account that signs in through its mailbox or under a\n * policy that names it.\n */\nexport const STEP_UP_METHODS: readonly StepUpMethod[] = [AuthMethod.PASSKEY, AuthMethod.TOTP, AuthMethod.PASSWORD, AuthMethod.SMS_OTP, AuthMethod.EMAIL_OTP];\n\nexport type StepUpMethod = AuthMethod.PASSKEY | AuthMethod.TOTP | AuthMethod.PASSWORD | StepUpOneTimeCodeMethod;\n\n/** The step-up methods proven by a code the server sends first (`POST /auth/reauth/one-time-code`). */\nexport type StepUpOneTimeCodeMethod = AuthMethod.SMS_OTP | AuthMethod.EMAIL_OTP;\n\nfunction isOneTimeCodeStepUpMethod(method: StepUpMethod | null): method is StepUpOneTimeCodeMethod {\n return method === AuthMethod.SMS_OTP || method === AuthMethod.EMAIL_OTP;\n}\n\n/**\n * Whether the dialog shows the restricted-authenticator notice: whenever a texted or emailed code is among the methods\n * offered. NIST makes the PSTN (a texted code) the one restricted authenticator and asks for \"meaningful notice regarding\n * the restricted authenticator's security risks and the availability of unrestricted alternatives\"; an emailed code is\n * weaker still (email \"SHALL NOT be used for out-of-band authentication\"), and is offered only as the last resort of an\n * account with no other factor.\n * spec-cite: NIST SP 800-63B-4 §3.2.9 and §3.1.3.1 (https://pages.nist.gov/800-63-4/sp800-63b.html).\n */\nexport function stepUpOffersRestrictedCode(methods: readonly StepUpMethod[] | null): boolean {\n return methods?.some((method) => isOneTimeCodeStepUpMethod(method)) ?? false;\n}\n\n/**\n * What the person supplied to prove they are still the account holder. The dialog collects it; the\n * step-up context turns it into a single-use token. A passkey carries nothing here because its\n * ceremony runs after the dialog confirms — it needs a server challenge first.\n *\n * A federated proof (#1441) carries the linked identity and the window the provider will run in. The\n * window is opened BY THE DIALOG, in the Confirm click, because a browser allows a popup only there;\n * `null` means it refused.\n */\nexport type StepUpProof =\n | { method: AuthMethod.PASSWORD; password: string }\n | { method: AuthMethod.TOTP; code: string }\n | { method: StepUpOneTimeCodeMethod; code: string }\n | { method: AuthMethod.PASSKEY }\n | { method: FederatedReAuthenticationMethod; identityLinkId: string; popup: Window | null };\n\nconst FEDERATED_FAILURE_LABEL: Record<FederatedReAuthenticationFailureReason, SecuritySettingsLabel> = {\n [FederatedReAuthenticationFailureReason.POPUP_BLOCKED]: SecuritySettingsLabel.REAUTH_PROVIDER_POPUP_BLOCKED,\n // Never displayed (a cancelled dialog is closed); mapped so the table stays total over the reasons.\n [FederatedReAuthenticationFailureReason.CANCELLED]: SecuritySettingsLabel.REAUTH_PROVIDER_FAILED,\n [FederatedReAuthenticationFailureReason.TIMED_OUT]: SecuritySettingsLabel.REAUTH_PROVIDER_TIMED_OUT,\n [FederatedReAuthenticationFailureReason.FAILED]: SecuritySettingsLabel.REAUTH_PROVIDER_FAILED,\n [FederatedReAuthenticationFailureReason.PROVIDER_DID_NOT_REAUTHENTICATE]: SecuritySettingsLabel.REAUTH_PROVIDER_DID_NOT_REAUTHENTICATE,\n [FederatedReAuthenticationFailureReason.RATE_LIMITED]: SecuritySettingsLabel.REAUTH_PROVIDER_RATE_LIMITED,\n};\n\nconst METHOD_CHOICE_LABEL: Record<StepUpMethod, SecuritySettingsLabel> = {\n [AuthMethod.PASSKEY]: SecuritySettingsLabel.REAUTH_WITH_PASSKEY,\n [AuthMethod.TOTP]: SecuritySettingsLabel.REAUTH_WITH_TOTP,\n [AuthMethod.PASSWORD]: SecuritySettingsLabel.REAUTH_WITH_PASSWORD,\n [AuthMethod.SMS_OTP]: SecuritySettingsLabel.REAUTH_WITH_SMS_CODE,\n [AuthMethod.EMAIL_OTP]: SecuritySettingsLabel.REAUTH_WITH_EMAIL_CODE,\n};\n\n/**\n * What this account can re-authenticate with for `purpose`: its local methods, in {@link STEP_UP_METHODS}\n * order, and the linked identities whose provider can re-authenticate it (#1441). One request answers both.\n *\n * Asked of the server each time the dialog opens (#1417): the answer changes as the person adds and\n * removes authenticators, and for a step-up it is narrowed by the account's step-up policy, which only\n * the server can resolve. Offering what the account merely HOLDS would show a password under a\n * passkey-only policy, accept it, and have the server refuse it.\n *\n * An EMPTY answer is kept empty: it means no factor the account holds can produce this proof, and the\n * dialog says so instead of offering one that would be refused. If the question itself fails, every\n * method the person types or holds is offered (passkey, authenticator app, password): showing one the\n * account lacks costs a refusal the person can read, while offering nothing leaves them no way through at\n * all. No texted or emailed code and no linked identity is offered then: a code would be SENT to a channel\n * the server may not accept, and a provider cannot be started without the link the answer would name.\n */\nexport async function resolveStepUpOptions(\n purpose: ReAuthenticationPurpose,\n): Promise<{ methods: StepUpMethod[]; identityLinks: ReAuthenticationIdentityLink[] }> {\n try {\n const { methods, identityLinks } = await getManualCallsHttpClient().getReAuthenticationMethods(purpose);\n const accepted = new Set<AuthMethod>(methods);\n return { methods: STEP_UP_METHODS.filter((method) => accepted.has(method)), identityLinks: identityLinks ?? [] };\n } catch {\n return { methods: STEP_UP_METHODS.filter((method) => !isOneTimeCodeStepUpMethod(method)), identityLinks: [] };\n }\n}\n\n/**\n * The proof the dialog would submit for `method`, or `null` while the input cannot yet be one. A TOTP\n * code is 6 to 8 digits because the digit count is configurable (`totpOperational.digits`); a texted or\n * emailed code as long as `OUT_OF_BAND_ONE_TIME_CODE_LENGTH` allows (`otpOperational.*.otpLength`, six to eight), and\n * only once one was sent (`codeSent`).\n */\nexport function buildStepUpProof(method: StepUpMethod | null, input: { password: string; code: string; codeSent?: boolean }): StepUpProof | null {\n switch (method) {\n case AuthMethod.PASSWORD:\n return input.password.trim() ? { method, password: input.password } : null;\n case AuthMethod.TOTP:\n return /^\\d{6,8}$/.test(input.code.trim()) ? { method, code: input.code.trim() } : null;\n case AuthMethod.SMS_OTP:\n case AuthMethod.EMAIL_OTP:\n return input.codeSent && OUT_OF_BAND_ONE_TIME_CODE_PATTERN.test(input.code.trim()) ? { method, code: input.code.trim() } : null;\n case AuthMethod.PASSKEY:\n return { method };\n default:\n return null;\n }\n}\n\n/**\n * What the dialog offers, from what the account can re-authenticate with (#1633, #2923). A granting organization's\n * policy asks for a second factor, so no password, no texted or emailed code and no linked identity. A proof for ONE decision must be a factor a\n * decision ranks (`humanDecisionStepUpAssuranceOf`: never a texted or emailed code) and at least as strong as that\n * decision requires (`minimumAssurance`), and is never a linked identity, which cannot mint a proof bound to a decision.\n */\nexport function stepUpOptionsOffered(\n options: { readonly methods: readonly StepUpMethod[]; readonly identityLinks: readonly ReAuthenticationIdentityLink[] },\n context: { readonly origin: StepUpRefusalOrigin; readonly decisionRequirement?: HumanDecision_StepUpRequirement },\n): { methods: StepUpMethod[]; identityLinks: ReAuthenticationIdentityLink[] } {\n const secondFactorOnly = context.origin === StepUpRefusalOrigin.GRANTING_ORGANIZATION;\n const minimumAssurance = context.decisionRequirement?.minimumAssurance;\n const methods = options.methods\n // A granting organization's second factor is neither a password nor a texted or emailed code: the server refuses a\n // proof minted from a code there, since the code may go to the channel the person signed in through.\n .filter((candidate) => !secondFactorOnly || (candidate !== AuthMethod.PASSWORD && !isOneTimeCodeStepUpMethod(candidate)))\n .filter((candidate) => {\n if (!context.decisionRequirement) return true;\n const assurance = humanDecisionStepUpAssuranceOf(candidate);\n if (assurance === undefined) return false;\n return minimumAssurance === undefined || humanDecisionStepUpAssuranceMeets(assurance, minimumAssurance);\n });\n return { methods, identityLinks: secondFactorOnly || context.decisionRequirement ? [] : [...options.identityLinks] };\n}\n\ninterface StepUpAuthDialogProps {\n open: boolean;\n /** Which proof the refusal asked for; decides which methods are offered (#1417). */\n purpose: ReAuthenticationPurpose;\n /**\n * Who asked (#1633). When it is a GRANTING organization's policy, the proof must be a second factor, so the password\n * and linked identities — which prove a first factor only — are not offered, and the description says whose policy\n * asks. Absent means the account's own policy or the operation.\n */\n origin?: StepUpRefusalOrigin;\n /**\n * #2923: the proof is for ONE decision, which requires at least this of it. Only factors at least `minimumAssurance`\n * strong are offered, and no linked identity, which cannot mint a proof bound to a decision. Absent: a plain step-up.\n */\n decisionRequirement?: HumanDecision_StepUpRequirement;\n onConfirm: (proof: StepUpProof) => void;\n onCancel: () => void;\n /**\n * The caught re-authentication failure, `null` when there is none. Passed as the error itself rather\n * than as text so it is resolved HERE, through the i18n context: a wrong password used to reach the\n * dialog as the backend's i18n reference (`authentication_user_credentials_invalid`).\n */\n failure: unknown;\n isLoading: boolean;\n}\n\nexport const StepUpAuthDialog: React.FC<StepUpAuthDialogProps> = ({\n open,\n purpose,\n origin = StepUpRefusalOrigin.ACCOUNT_OR_OPERATION,\n decisionRequirement,\n onConfirm,\n onCancel,\n failure,\n isLoading,\n}) => {\n const toUserFacingErrorMessage = useUserFacingErrorMessage();\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS });\n const t = useCallback(\n (key: string) => tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, key),\n [tComponent],\n );\n\n // `null` while the server is being asked, so the no-method message never flashes before the answer.\n const [available, setAvailable] = useState<StepUpMethod[] | null>(null);\n const [identityLinks, setIdentityLinks] = useState<ReAuthenticationIdentityLink[]>([]);\n const [method, setMethod] = useState<StepUpMethod | null>(null);\n // The chosen linked identity (#1441). Exclusive with `method`: choosing one clears the other.\n const [link, setLink] = useState<ReAuthenticationIdentityLink | null>(null);\n // Set while the provider's window is open. Cancel stays available then: the person may abandon the\n // provider, and nothing else would ever end the wait early.\n const isFederatedPendingRef = useRef(false);\n const [password, setPassword] = useState('');\n const [code, setCode] = useState('');\n // Where the last texted or emailed code went (masked) and how long it lives; `null` until one is sent for the chosen\n // method. A code is entered only once one is sent, and choosing another method forgets it.\n const [codeSent, setCodeSent] = useState<{ method: StepUpOneTimeCodeMethod; destination: string; expiresInMinutes: number } | null>(null);\n const [isSendingCode, setIsSendingCode] = useState(false);\n const [sendFailure, setSendFailure] = useState<unknown>(null);\n // OperationsConfirmCritical calls onOpenChange(false) synchronously after validationCallback.\n // This ref prevents that premature close from cancelling the async re-auth flow.\n const isSubmittingRef = useRef(false);\n\n useEffect(() => {\n if (!open) return;\n setPassword('');\n setCode('');\n setCodeSent(null);\n setSendFailure(null);\n isSubmittingRef.current = false;\n isFederatedPendingRef.current = false;\n setAvailable(null);\n setIdentityLinks([]);\n setMethod(null);\n setLink(null);\n let cancelled = false;\n void resolveStepUpOptions(purpose).then((options) => {\n if (cancelled) return;\n const { methods, identityLinks: links } = stepUpOptionsOffered(options, { origin, ...(decisionRequirement ? { decisionRequirement } : {}) });\n setAvailable(methods);\n setIdentityLinks(links);\n // A local method first when there is one; otherwise the first provider.\n setMethod(methods[0] ?? null);\n setLink(methods.length === 0 ? links[0] ?? null : null);\n });\n return () => { cancelled = true; };\n }, [open, purpose, origin, decisionRequirement]);\n\n // Reset submitting guard when async operation finishes (success closes dialog; error stays open)\n useEffect(() => {\n if (!isLoading) {\n isSubmittingRef.current = false;\n isFederatedPendingRef.current = false;\n }\n }, [isLoading]);\n\n const buildProof = useCallback(\n () => buildStepUpProof(method, { password, code, codeSent: isOneTimeCodeStepUpMethod(method) && codeSent?.method === method }),\n [method, password, code, codeSent],\n );\n\n /** Send (or send again) a code for the chosen texted or emailed method; a new one replaces the last. */\n const sendCode = useCallback(async (codeMethod: StepUpOneTimeCodeMethod) => {\n setIsSendingCode(true);\n setSendFailure(null);\n try {\n const sent = await getManualCallsHttpClient().sendReAuthenticationCode(codeMethod);\n setCodeSent({ method: codeMethod, destination: sent.destination, expiresInMinutes: sent.expiresInMinutes });\n setCode('');\n } catch (error) {\n setSendFailure(error);\n } finally {\n setIsSendingCode(false);\n }\n }, []);\n\n const chooseMethod = useCallback((choice: StepUpMethod) => {\n setMethod(choice);\n setLink(null);\n setCode('');\n setCodeSent(null);\n setSendFailure(null);\n }, []);\n\n const nothingOffered = available?.length === 0 && identityLinks.length === 0;\n\n const handleValidation = useCallback(() => {\n // No method this account holds can produce the proof: the message already says what to do, so Confirm\n // acknowledges it and closes rather than doing nothing (#1417).\n if (nothingOffered) {\n onCancel();\n return;\n }\n if (link) {\n if (isSubmittingRef.current) return;\n isSubmittingRef.current = true;\n isFederatedPendingRef.current = true;\n // Opened HERE, synchronously in the click, or the browser blocks it (#1441).\n onConfirm({ method: link.method, identityLinkId: link.identityLinkId, popup: openReAuthenticationWindow() });\n return;\n }\n const proof = buildProof();\n if (!proof || isSubmittingRef.current) return;\n isSubmittingRef.current = true;\n onConfirm(proof);\n }, [nothingOffered, link, buildProof, onCancel, onConfirm]);\n\n const handleCancel = useCallback(() => {\n if (isSubmittingRef.current && !isFederatedPendingRef.current) return;\n setPassword('');\n setCode('');\n onCancel();\n }, [onCancel]);\n\n const handleOpenChange = useCallback((nextOpen: boolean) => {\n if (!nextOpen && !isSubmittingRef.current) {\n handleCancel();\n }\n }, [handleCancel]);\n\n const submitOnEnter = (e: React.KeyboardEvent) => {\n if (e.key === 'Enter') handleValidation();\n };\n\n if (!isReady) return null;\n\n return (\n <OperationsConfirmCritical\n open={open}\n onOpenChange={handleOpenChange}\n cancelCallback={handleCancel}\n validationCallback={handleValidation}\n label={t(SecuritySettingsLabel.REAUTH_TITLE)}\n >\n <div className=\"space-y-4 py-4\">\n <Text className=\"text-sm\">{t(origin === StepUpRefusalOrigin.GRANTING_ORGANIZATION\n ? SecuritySettingsLabel.REAUTH_GRANTING_ORGANIZATION_DESCRIPTION\n : SecuritySettingsLabel.REAUTH_DESCRIPTION)}</Text>\n {failure !== null && (\n <Alert variant=\"destructive\">\n <AlertDescription>\n {failure instanceof FederatedReAuthenticationFailure\n ? t(FEDERATED_FAILURE_LABEL[failure.reason])\n : toUserFacingErrorMessage(failure, t(SecuritySettingsLabel.ERROR))}\n </AlertDescription>\n </Alert>\n )}\n {nothingOffered && (\n <Alert>\n <AlertDescription>{t(SecuritySettingsLabel.REAUTH_NO_ACCEPTED_METHOD)}</AlertDescription>\n </Alert>\n )}\n {available && available.length + identityLinks.length > 1 && (\n <div className=\"flex flex-wrap gap-2\" role=\"group\" aria-label={t(SecuritySettingsLabel.REAUTH_TITLE)}>\n {available.map((choice) => (\n <Button\n key={choice}\n type=\"button\"\n size={ButtonSize.SM}\n variant={choice === method ? ButtonVariants_Variant.DEFAULT : ButtonVariants_Variant.OUTLINE}\n aria-pressed={choice === method}\n disabled={isLoading}\n onClick={() => chooseMethod(choice)}\n >\n {t(METHOD_CHOICE_LABEL[choice])}\n </Button>\n ))}\n {identityLinks.map((choice) => (\n <Button\n key={choice.identityLinkId}\n type=\"button\"\n size={ButtonSize.SM}\n variant={choice.identityLinkId === link?.identityLinkId ? ButtonVariants_Variant.DEFAULT : ButtonVariants_Variant.OUTLINE}\n aria-pressed={choice.identityLinkId === link?.identityLinkId}\n disabled={isLoading}\n onClick={() => { setLink(choice); setMethod(null); setCodeSent(null); setSendFailure(null); }}\n >\n {tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, SecuritySettingsLabel.REAUTH_WITH_PROVIDER, { provider: choice.displayName })}\n </Button>\n ))}\n </div>\n )}\n {/* A texted or emailed code is a restricted authenticator: say so, and name the stronger factors to add. */}\n {stepUpOffersRestrictedCode(available) && (\n <Alert>\n <AlertDescription>{t(SecuritySettingsLabel.REAUTH_RESTRICTED_CODE_NOTICE)}</AlertDescription>\n </Alert>\n )}\n {link && (\n <Text className=\"text-sm\">\n {tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, SecuritySettingsLabel.REAUTH_PROVIDER_PROMPT, { provider: link.displayName })}\n </Text>\n )}\n {method === AuthMethod.PASSWORD && (\n <Field>\n <FieldLabel>{t(SecuritySettingsLabel.REAUTH_PASSWORD)}</FieldLabel>\n <InputRoot\n type=\"password\"\n autoComplete=\"current-password\"\n value={password}\n onChange={(e) => setPassword(e.target.value)}\n placeholder={t(SecuritySettingsLabel.REAUTH_PASSWORD_PLACEHOLDER)}\n disabled={isLoading}\n onKeyDown={submitOnEnter}\n />\n </Field>\n )}\n {method === AuthMethod.TOTP && (\n <Field>\n <FieldLabel>{t(SecuritySettingsLabel.REAUTH_TOTP_CODE)}</FieldLabel>\n <InputRoot\n inputMode=\"numeric\"\n autoComplete=\"one-time-code\"\n maxLength={8}\n value={code}\n onChange={(e) => setCode(e.target.value.replace(/\\D/g, ''))}\n placeholder={t(SecuritySettingsLabel.REAUTH_TOTP_CODE_PLACEHOLDER)}\n disabled={isLoading}\n onKeyDown={submitOnEnter}\n />\n </Field>\n )}\n {method === AuthMethod.PASSKEY && (\n <Text className=\"text-sm\">{t(SecuritySettingsLabel.REAUTH_PASSKEY_PROMPT)}</Text>\n )}\n {isOneTimeCodeStepUpMethod(method) && (\n <div className=\"space-y-3\">\n {sendFailure !== null && (\n <Alert variant=\"destructive\">\n <AlertDescription>{toUserFacingErrorMessage(sendFailure, t(SecuritySettingsLabel.ERROR))}</AlertDescription>\n </Alert>\n )}\n {codeSent?.method === method && (\n <Text className=\"text-sm\">\n {tComponent(FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS, SecuritySettingsLabel.REAUTH_CODE_SENT, {\n destination: codeSent.destination,\n minutes: codeSent.expiresInMinutes,\n })}\n </Text>\n )}\n <Button\n type=\"button\"\n size={ButtonSize.SM}\n variant={ButtonVariants_Variant.OUTLINE}\n disabled={isLoading || isSendingCode}\n onClick={() => { void sendCode(method); }}\n >\n {t(codeSent?.method === method ? SecuritySettingsLabel.REAUTH_RESEND_CODE : SecuritySettingsLabel.REAUTH_SEND_CODE)}\n </Button>\n {codeSent?.method === method && (\n <Field>\n <FieldLabel>{t(SecuritySettingsLabel.REAUTH_ONE_TIME_CODE)}</FieldLabel>\n <InputRoot\n inputMode=\"numeric\"\n autoComplete=\"one-time-code\"\n maxLength={8}\n value={code}\n onChange={(e) => setCode(e.target.value.replace(/\\D/g, ''))}\n placeholder={t(SecuritySettingsLabel.REAUTH_ONE_TIME_CODE_PLACEHOLDER)}\n disabled={isLoading}\n onKeyDown={submitOnEnter}\n />\n </Field>\n )}\n </div>\n )}\n </div>\n </OperationsConfirmCritical>\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppPage_SecuritySettings.labels.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/admin-config/AppPage_SecuritySettings.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,mBAAmB,EAA2B,MAAM,qCAAqC,CAAC;AAM1I,eAAO,MAAM,gCAAgC,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"AppPage_SecuritySettings.labels.d.ts","sourceRoot":"","sources":["../../../../../src/components/auth/admin-config/AppPage_SecuritySettings.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,mBAAmB,EAA2B,MAAM,qCAAqC,CAAC;AAM1I,eAAO,MAAM,gCAAgC,EAAE,mBAAmB,EAwHjE,CAAC"}
|
|
@@ -75,7 +75,26 @@ export const AppLayoutsSecuritySettingsLabels = [
|
|
|
75
75
|
},
|
|
76
76
|
{ ref: 'reauthProviderPopupBlocked', kind: LabelKind.MESSAGE, purpose: 'Error in the re-authentication dialog when the browser blocked the sign-in window from opening; asks the person to allow pop-ups for this site and try again' },
|
|
77
77
|
{ ref: 'reauthProviderTimedOut', kind: LabelKind.MESSAGE, purpose: 'Error in the re-authentication dialog when signing in again at the identity provider was not finished in time (the sign-in window was left open or closed without finishing); they can try again or choose another method' },
|
|
78
|
+
{ ref: 'reauthProviderRateLimited', kind: LabelKind.MESSAGE, purpose: 'Error in the re-authentication dialog when too many sign-ins at an identity provider were started from this device in the last minute; asks the person to wait a minute and try again, or to choose another method' },
|
|
78
79
|
{ ref: 'reauthProviderFailed', kind: LabelKind.MESSAGE, purpose: 'Error in the re-authentication dialog when signing in again at the identity provider did not confirm the person; they can try again or choose another method' },
|
|
80
|
+
{ ref: 'reauthProviderDidNotReauthenticate', kind: LabelKind.MESSAGE, purpose: 'Error in the re-authentication dialog when the company\'s identity provider answered from the sign-in the person already had instead of asking them to sign in again, so it did not confirm them now; tells them to ask their administrator, who can turn re-authentication off for that sign-in connection, and that they can choose another method meanwhile' },
|
|
81
|
+
// A code the application sends by text message or email, used when the account has no stronger way to confirm.
|
|
82
|
+
{ ref: 'reauthWithSmsCode', kind: LabelKind.BUTTON, purpose: 'Choice in the re-authentication dialog: confirm it is you with a one-time code sent by text message to the account\'s verified phone' },
|
|
83
|
+
{ ref: 'reauthWithEmailCode', kind: LabelKind.BUTTON, purpose: 'Choice in the re-authentication dialog: confirm it is you with a one-time code sent by email to the account\'s address' },
|
|
84
|
+
{ ref: 'reauthSendCode', kind: LabelKind.BUTTON, purpose: 'Button in the re-authentication dialog that sends the one-time code by the chosen channel (text message or email)' },
|
|
85
|
+
{ ref: 'reauthResendCode', kind: LabelKind.BUTTON, purpose: 'Button in the re-authentication dialog that sends a new one-time code after one was sent; the new code replaces the earlier one' },
|
|
86
|
+
{
|
|
87
|
+
ref: 'reauthCodeSent',
|
|
88
|
+
kind: LabelKind.MESSAGE,
|
|
89
|
+
purpose: 'Shown in the re-authentication dialog once a one-time code was sent: where it went (partly hidden) and how many minutes it stays valid; asks the person to enter it below',
|
|
90
|
+
params: [
|
|
91
|
+
{ key: 'destination', meaning: 'the phone number or email address the code went to, partly hidden, e.g. ***5678 or p***@example.com' },
|
|
92
|
+
{ key: 'minutes', meaning: 'how many minutes the code stays valid, a whole number' },
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
{ ref: 'reauthOneTimeCode', kind: LabelKind.LABEL, purpose: 'Field label for the one-time code input in the re-authentication dialog, the code received by text message or email' },
|
|
96
|
+
{ ref: 'reauthOneTimeCodePlaceholder', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder inside the one-time code input of the re-authentication dialog, which takes the code just received' },
|
|
97
|
+
{ ref: 'reauthRestrictedCodeNotice', kind: LabelKind.MESSAGE, purpose: 'Notice shown in the re-authentication dialog whenever a code sent by text message or email is offered: such a code is weaker than a passkey or an authenticator app, because whoever controls the phone number or the mailbox can receive it; tells the person they can add a passkey or an authenticator app in their security settings to confirm more safely' },
|
|
79
98
|
{ ref: 'phoneVerify', kind: LabelKind.BUTTON, purpose: 'Button that starts phone-number verification' },
|
|
80
99
|
// Per-factor descriptive copy. The panel presents each authentication factor
|
|
81
100
|
// as a scannable row (icon · name · status badge), so every state owns an
|