@wildo-ai/saas-frontend-lib 1.1.17 → 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/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/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 +14 -9
- 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 +31 -18
- 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/app-level/useMenuBarBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +5 -3
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.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 +47 -11
- 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 +17 -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 +13 -6
- 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.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/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/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/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/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 +33 -7
- 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 +69 -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 +35 -9
- 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 +69 -21
- 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 +6 -7
- 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/heatmap.builder.js +2 -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/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 +7 -7
- 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/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 +6 -8
- 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/statistical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -1
- 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/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 +27 -6
- 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 +30 -7
- 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 +4 -0
- 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/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 +14 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +17 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Auth_Main.js","sourceRoot":"","sources":["../../../../src/components/auth/Auth_Main.tsx"],"names":[],"mappings":";AACA,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EAClB,4BAA4B,EAC5B,iBAAiB,EACjB,yBAAyB,GAI1B,MAAM,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C,IAAI,cACH,KAAC,IAAI,IAAC,IAAI,EAAE,gBAAgB,YAAG,CAAC,CAAC,aAAa,CAAC,eAAe,CAAC,GAAQ,GAClE,CACR,EAEA,IAAI,CAAC,OAAO,KAAK,kBAAkB,CAAC,MAAM;2BACtC,YAAY,CAAC,kBAAkB,CAAC,2BAA2B,IAAI,CAClE,MAAC,IAAI,eACF,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,GAAG,EACjC,KAAC,IAAI,IAAC,IAAI,EAAE,YAAY,YAAG,CAAC,CAAC,aAAa,CAAC,WAAW,CAAC,GAAQ,IAC1D,CACR,EAOD,KAAC,qBAAqB,IAAC,KAAK,EAAE,CAAC,CAAC,aAAa,CAAC,mBAAmB,CAAC,GAAI,IAClE,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,SAAS,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,GAAG,KAAK,EAAmE;IACvI,MAAM,SAAS,GAAG,uBAAuB,CAA2C,qBAAqB,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;IACzJ,QAAQ,CAAC,0BAA0B,MAAM,cAAc,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,WAAW,EAAE,CAAC,CAAC;IACjH,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["\nimport React, { useMemo, useState, useCallback, useEffect, useRef } from 'react';\nimport { Navigate, useLocation } from 'react-router';\nimport { FrontendComponentType, UserAuthLabel } from '@wildo-ai/presets-components-models';\nimport { ValidationMode } from '@wildo-ai/zod-decorators';\nimport {\n AuthMethod,\n AuthRedirectErrorCode,\n AuthSessionPurpose,\n getEnabledFirstFactorMethods,\n getEnabledMethods,\n AuthIdentifyFormDtoSchema,\n type AuthIdentifyFormDto,\n type AvailableMethod,\n type AuthenticationResponse,\n} from '@wildo-ai/saas-models';\nimport { useUserOrgs } from '~wildo-frontend-lib/core/security/useUserOrgs';\nimport { useAuthSession } from '~wildo-frontend-lib/core/security/useAuthSession';\nimport { SessionEndReason } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { PasskeyAutofillExpiredError, PasskeySignInMediation } from '~wildo-frontend-lib/core/security/security.frontend.schemas';\nimport { browserSupportsWebAuthnAutofill, WebAuthnAbortService } from '@simplewebauthn/browser';\nimport { organizationOnboardingNavigationTarget } from '~wildo-frontend-lib/core/security/organization-onboarding.frontend.utils';\nimport { useResolvedAuthConfig } from '~wildo-frontend-lib/core/security/useResolvedAuthConfig';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { AutomatedForm } from '~wildo-frontend-lib/components/form/automated/AutomatedForm';\nimport { Button, ButtonLabelOverflow, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { FormLayout } from '~wildo-frontend-lib/components/resources/skeleton/FormLayout';\nimport { FormField } from '~wildo-frontend-lib/components/form/automated/FormField';\nimport { SubmitButton } from '~wildo-frontend-lib/components/resources/skeleton/SubmitButton';\nimport { Heading } from '~wildo-frontend-lib/components/typography/heading';\nimport { Text } from '~wildo-frontend-lib/components/typography/text';\nimport { Link } from '~wildo-frontend-lib/components/typography/link';\nimport { Alert, AlertDescription, type AlertVariants_Variant } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport {\n appendAuthRedirectToPath,\n extractAuthRedirectFromSearch,\n resolvePostAuthRedirect,\n} from '~wildo-frontend-lib/core/security/auth-redirect.frontend.utils';\nimport { collectFrontendProviderDisplayLabelKeys } from '~wildo-frontend-lib/core/external-providers/frontend-provider-display-label.frontend.utils';\nimport { resolveOAuthProviderDisplayLabel, resolvePublicOAuthProviderEntries } from '~wildo-frontend-lib/components/auth/utils/oauth-provider-display-label.frontend.utils';\n\nimport { OAuthProvidersSection, SSO_PROVIDER_BRAND_META } from '~wildo-frontend-lib/components/auth/utils/OAuthProvidersSection';\nimport { useMfaContinuationNavigation } from '~wildo-frontend-lib/components/auth/utils/useMfaContinuationNavigation';\nimport { LabeledDivider } from '~wildo-frontend-lib/components/auth/utils/LabeledDivider';\nimport { AuthPrivacyNoticeLink } from '~wildo-frontend-lib/components/auth/utils/AuthPrivacyNoticeLink';\nimport { AUTH_METHOD_COMPONENTS, type AuthMethodComponentProps } from '~wildo-frontend-lib/components/auth/methods/auth-method-components';\nimport { resolveAuthMethodChoiceLabel } from '~wildo-frontend-lib/components/auth/methods/auth-method-presentation';\nimport { AuthMethodChoiceList } from '~wildo-frontend-lib/components/auth/utils/AuthMethodChoiceList';\nimport { AuthMethodIcon } from '~wildo-frontend-lib/components/auth/utils/AuthMethodIcon';\n\nimport { ComponentPresetProps } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas'\nimport { createComponentResolver } from '~wildo-frontend-lib/core/components-registry/component-resolver.frontend.helper'\nimport { CorePresetNames } from '@wildo-ai/presets-components-models'\n\nconst logger = LoggerFrontendService.getLogger();\nconst logDebug = logger.debugByType('Auth_Main');\nlogger.setDebugTypeLogging('Auth_Main', false);\n\n/**\n * Self-sufficient template for the email identification form.\n * Reads auth error from `useUserOrgs()`, labels from `useI18n()`.\n */\nconst IdentifyFormTemplate: React.FC = () => {\n const { auth } = useUserOrgs();\n const { tComponent, isReady } = useI18n({\n component: FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH,\n });\n const t = (key: string) => tComponent(FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH, key);\n\n if (!isReady) return null;\n\n return (\n <FormLayout>\n <FormField name=\"email\" />\n\n {auth.error && (\n <Alert variant=\"destructive\">\n <AlertDescription>{auth.error}</AlertDescription>\n </Alert>\n )}\n\n <SubmitButton\n label={t(UserAuthLabel.CONTINUE)}\n submittingLabel=\"…\"\n fullWidth\n />\n </FormLayout>\n );\n};\n\n/**\n * Resolve once the sign-in email field carrying the `webauthn` autocomplete token is in the document.\n *\n * Passkey autofill must start AFTER that input exists: the browser attaches its passkey list to it, and\n * the WebAuthn helper refuses to start a conditional request without one. The form renders\n * asynchronously (it waits for its labels), so this polls one frame at a time, bounded, and answers\n * `null` if the field never appears — autofill is then simply not offered.\n */\nfunction waitForPasskeyAutofillField(timeoutMs: number): Promise<Element | null> {\n const selector = 'input[autocomplete~=\"webauthn\"]';\n return new Promise((resolve) => {\n const deadline = Date.now() + timeoutMs;\n const probe = () => {\n const field = document.querySelector(selector);\n if (field || Date.now() >= deadline) {\n resolve(field);\n return;\n }\n requestAnimationFrame(probe);\n };\n probe();\n });\n}\n\n/** How long the page waits for the email field before giving up on offering passkey autofill. */\nconst PASSKEY_AUTOFILL_FIELD_WAIT_MS = 3000;\n\n/**\n * The authored words for each code an external sign-in redirects back with (#2567). Total over\n * `AuthRedirectErrorCode`, so a code added to the vocabulary must be given words here before it compiles.\n */\nconst AUTH_REDIRECT_ERROR_LABELS: Record<AuthRedirectErrorCode, { label: UserAuthLabel; variant: AlertVariants_Variant }> = {\n [AuthRedirectErrorCode.SAML_LOGIN_FAILED]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n [AuthRedirectErrorCode.SAML_AUTH_FAILED]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n [AuthRedirectErrorCode.MISSING_PARAMS]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n [AuthRedirectErrorCode.OAUTH_FAILED]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n // A sign-out that did not finish at the provider is a caution, not a failure of what the person asked for here.\n [AuthRedirectErrorCode.SAML_SLO_FAILED]: { label: UserAuthLabel.PROVIDER_SIGN_OUT_FAILED, variant: 'warning' },\n};\n\n// --- Contract ---\nexport interface PublicLayoutPreset_UserAuth_DefaultProps {\n}\n\nexport const PublicLayoutPreset_UserAuth_Default = ({}: PublicLayoutPreset_UserAuth_DefaultProps): React.JSX.Element => {\n const { auth, identifyByEmail, initiateOAuth2Login } = useUserOrgs();\n const { signInWithPasskey, endedSessionReason } = useAuthSession();\n const resolvedAuth = useResolvedAuthConfig();\n const location = useLocation();\n const enabledSocialOAuth2Providers = useMemo(() => {\n return resolvePublicOAuthProviderEntries({\n publicProviders: resolvedAuth.globalAuth?.socialOAuth2Providers,\n });\n }, [resolvedAuth.globalAuth?.socialOAuth2Providers]);\n const socialOAuth2ProviderLabelKeys = useMemo(() => {\n return collectFrontendProviderDisplayLabelKeys(\n enabledSocialOAuth2Providers.map((provider) => provider.displayNameLabelKey),\n );\n }, [enabledSocialOAuth2Providers]);\n const { t: translate, tComponent, isReady } = useI18n({\n component: FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH,\n keys: socialOAuth2ProviderLabelKeys,\n });\n\n const t = (key: string) => tComponent(FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH, key);\n const publicRoutes = CommonRoutePaths;\n const postAuthRedirect = useMemo(\n () => resolvePostAuthRedirect(location.search),\n [location.search],\n );\n const authRedirectTarget = useMemo(\n () => extractAuthRedirectFromSearch(location.search),\n [location.search],\n );\n /**\n * An external sign-in sent the person back here with an error code (#2567). Only the CODE is read, and it chooses\n * authored words; any text the URL carries is never shown, because a link can carry any sentence and the page would\n * present it as the application's own error. An unrecognised code reads as a failed provider sign-in.\n */\n const redirectedAuthError = useMemo(() => {\n const code = new URLSearchParams(location.search).get('error');\n if (!code) return null;\n const { label, variant } = AUTH_REDIRECT_ERROR_LABELS[code as AuthRedirectErrorCode]\n ?? { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' as const };\n return { text: tComponent(FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH, label), variant };\n }, [location.search, tComponent]);\n /**\n * Why the person is here when the BACKEND ended their session (#2541), in authored words. An account that can no\n * longer sign in (deactivated, suspended, pending) is told that an administrator must restore it, because trying\n * again cannot work; any other refused session is told it ended and to sign in again.\n */\n const endedSessionNotice = endedSessionReason === SessionEndReason.ACCOUNT_NOT_ACTIVE\n ? { text: t(UserAuthLabel.ACCOUNT_NOT_ACTIVE_NOTICE), variant: 'destructive' as const }\n : endedSessionReason === SessionEndReason.SESSION_ENDED\n ? { text: t(UserAuthLabel.SESSION_ENDED_NOTICE), variant: 'info' as const }\n : null;\n const passwordLostHref = useMemo(\n () => appendAuthRedirectToPath(publicRoutes.passwordLost, authRedirectTarget),\n [authRedirectTarget, publicRoutes.passwordLost],\n );\n const registerHref = useMemo(\n () => appendAuthRedirectToPath(publicRoutes.register, authRedirectTarget),\n [authRedirectTarget, publicRoutes.register],\n );\n\n const [activeMethod, setActiveMethod] = useState<AuthMethod | null>(null);\n\n // Shared with the registration screen (#972), so a session owing a second factor is routed one way.\n useMfaContinuationNavigation({\n mfaRequired: auth.mfaRequired,\n mfaSessionId: auth.mfaSessionId,\n usableSecondFactorMethods: auth.usableSecondFactorMethods,\n email: auth.identification?.email,\n authRedirectTarget,\n });\n\n const hasIdentification = !!auth.identification;\n const sessionId = auth.identification?.sessionId || '';\n const email = auth.identification?.email || '';\n\n const availableFirstFactorMethods: AvailableMethod[] = useMemo(() => {\n if (!hasIdentification || !auth.identification?.userExists) return [];\n const methods = auth.identification?.firstFactorMethods || [];\n // Rendered in the order the server sent (#1218). The backend orders by `AUTH_METHOD_PRECEDENCE` and computes\n // `defaultFirstFactorMethod` as the head of that same list, so re-sorting here would put a different method first\n // from the one the server named as the default — which is exactly what it used to do for an SSO-routed domain.\n return methods.filter((m) => AUTH_METHOD_COMPONENTS[m.method as AuthMethod]);\n }, [hasIdentification, auth.identification]);\n\n const defaultMethod = useMemo(() => {\n if (availableFirstFactorMethods.length === 0) return null;\n const defaultFromBackend = auth.identification?.defaultFirstFactorMethod as AuthMethod | undefined;\n if (defaultFromBackend && AUTH_METHOD_COMPONENTS[defaultFromBackend]) return defaultFromBackend;\n return availableFirstFactorMethods[0].method as AuthMethod;\n }, [availableFirstFactorMethods, auth.identification?.defaultFirstFactorMethod]);\n\n const currentActiveMethod = activeMethod || defaultMethod;\n const alternativeMethods = availableFirstFactorMethods.filter(\n (m) => m.method !== currentActiveMethod\n );\n\n /*\n * Does the person's organization REQUIRE the method currently shown? (#1220)\n *\n * `enforcedFirstFactor` is set by the backend only where an enterprise connection declares\n * `enforcement.requireSSO`. Until #1220 this arrived as a `required` boolean that NOTHING here read\n * — a claim on the wire that no surface checked — and it could not safely be read, because the same\n * field was also set on any method that can serve as a second factor whenever the user type demands\n * MFA. Consuming that would have announced a passkey as a mandatory first factor.\n *\n * Read on the ACTIVE method rather than on the list, because the notice explains the thing the\n * person is looking at. The interesting case is the one where alternatives exist beside it: a tenant\n * that allows a password fallback, or that names break-glass accounts and therefore keeps the\n * password field for EVERY address at the domain so the list cannot be read as an oracle for who\n * those accounts are. There the two methods look like peers and are not.\n */\n const activeMethodIsOrganizationEnforced = availableFirstFactorMethods.some(\n (m) => m.method === currentActiveMethod && m.enforcedFirstFactor,\n );\n\n const handleOAuth2Click = async (providerRef: string) => {\n try {\n await initiateOAuth2Login(providerRef, authRedirectTarget);\n } catch {\n // Error is already handled in AuthSessionContext\n }\n };\n\n const handleIdentify = async (data: AuthIdentifyFormDto) => {\n await identifyByEmail(data.email);\n };\n\n const handleFirstFactorSuccess = useCallback((_response: AuthenticationResponse) => {\n // Token storage and MFA redirect are handled by AuthSessionContext\n // and the authenticateWithPassword flow respectively.\n // Nothing to do here — the auth state update triggers re-renders\n // and the MFA redirect is handled at the page level.\n }, []);\n\n const handleFirstFactorError = useCallback((_error: string) => {\n // Errors are displayed within each method component\n }, []);\n\n const hasSocialOAuth2Providers = enabledSocialOAuth2Providers.length > 0;\n const showIdentifyForm = !hasIdentification || !auth.identification?.userExists;\n const showPreIdentifyOAuth = hasSocialOAuth2Providers && showIdentifyForm;\n\n /*\n * The identifier step is the door to EVERY method reached by saying who you are, so it is offered\n * when ANY identify-reachable method is enabled — not when PASSWORD is (#1219). Gating it on the\n * password made a user type that signs in by magic link unable to sign in at all: the email address\n * is the one thing that sign-in needs, and the page hid the field that collects it.\n *\n * The password INPUT stays gated on the password, and by a stronger authority than this map: it is a\n * Phase-2 method component, rendered only for a method the identify RESPONSE returned for this\n * person. So nothing below has to re-decide it.\n *\n * `EXTERNAL_OAUTH2` counts only when a social provider actually resolves, mirroring\n * `_buildAvailableMethodObject`, which returns null for it when the application configures none.\n *\n * An UNRESOLVED policy offers the step. The identifier form is not an access control — the backend\n * decides what a person may use, and refuses on its own — so treating \"I do not know yet\" as\n * \"closed\" would lock the whole sign-in page over a config the page had not loaded, while\n * protecting nothing.\n */\n const identifyReachableMethods = useMemo(() => {\n const methods = getEnabledFirstFactorMethods(resolvedAuth.userTypeAuth?.authMethodsEnabled);\n if (!hasSocialOAuth2Providers) methods.delete(AuthMethod.EXTERNAL_OAUTH2);\n return methods;\n }, [hasSocialOAuth2Providers, resolvedAuth.userTypeAuth?.authMethodsEnabled]);\n const isIdentifierStepOffered = !resolvedAuth.userTypeAuth?.authMethodsEnabled || identifyReachableMethods.size > 0;\n\n const showDivider = showPreIdentifyOAuth && isIdentifierStepOffered;\n\n /*\n * Username-less passkey sign-in is offered before any email is typed, when the application enables\n * passkeys for this frontend's user type and the browser speaks WebAuthn. Not during re-authentication:\n * a re-proof must be the SAME person, and a discoverable ceremony lets the device pick any account.\n */\n // Read through the shared helper: `authMethodsEnabled` accepts both `true` and `{ enabled: true }`, and the\n // backend decides with the same helper, so the page must not offer less than the server accepts.\n const isPasskeySignInOffered = getEnabledMethods(resolvedAuth.userTypeAuth?.authMethodsEnabled).has(AuthMethod.PASSKEY)\n && auth.purpose !== AuthSessionPurpose.REAUTH\n && typeof window !== 'undefined'\n && !!window.PublicKeyCredential;\n /*\n * The page offers NO way in: no identifier step, no passkey button, no social provider (#1255).\n *\n * Without this it rendered the heading and subtitle and then nothing — the one alert below that\n * could speak is gated on `auth.error`, and with no form nothing can produce an error. The three\n * terms are exactly the three entry points rendered in the identify phase, so a passkey-only or\n * social-only type is not a dead end and gets no notice. An UNRESOLVED policy offers the identifier\n * step (see `isIdentifierStepOffered`), so this never flashes while the config is loading.\n */\n const offersNoEntryPoint = showIdentifyForm && !isIdentifierStepOffered && !isPasskeySignInOffered && !showPreIdentifyOAuth;\n /*\n * The address was identified and the backend offered it NO method (#3119): the post-identification twin of the notice\n * above. Without it the page showed the heading and then nothing, with no way forward. The case that produced it is\n * an account a directory provisioned (its local sign-in methods are switched off by the directory's rule) at a domain whose\n * organization has switched single sign-on routing off; the enterprise callbacks then refuse that domain too, so no\n * button could be offered honestly, and only whoever manages the person's sign-in can open a way. The list itself is\n * the backend's to decide and is not touched here: this adds the sentence, it removes nothing another address gets.\n */\n const offersNoMethodForAddress = !showIdentifyForm && availableFirstFactorMethods.length === 0;\n /*\n * While a ceremony the person started with the button is open, autofill must not restart: starting a\n * WebAuthn request aborts the pending one, so a restart timed after the button would close the picker\n * the person is looking at. When the button ceremony ends — refused or cancelled; a success leaves the\n * page — `autofillEpoch` moves and the autofill effect starts a fresh wait.\n */\n const buttonCeremonyLiveRef = useRef(false);\n const [autofillEpoch, setAutofillEpoch] = useState(0);\n\n const handlePasskeySignInClick = useCallback(async () => {\n buttonCeremonyLiveRef.current = true;\n try {\n await signInWithPasskey(PasskeySignInMediation.MODAL);\n } catch {\n // Already reported: the context puts the user-facing message on `auth.error`, which the email\n // form renders. Caught here only so a refused ceremony is not an unhandled rejection.\n } finally {\n buttonCeremonyLiveRef.current = false;\n setAutofillEpoch((epoch) => epoch + 1);\n }\n }, [signInWithPasskey]);\n\n /*\n * Passkey AUTOFILL: while the email form is on screen, a conditional passkey request waits for the\n * person to pick a passkey from the email field's autofill list. It is cancelled when the form goes\n * away (an email was submitted, or sign-in completed), and a modal request started by the button\n * replaces it — the WebAuthn helper aborts the pending one itself.\n */\n /*\n * The latest `signInWithPasskey`, read through a ref so the autofill effect does NOT re-run when the\n * callback's identity changes. The effect's cleanup cancels the one global WebAuthn ceremony, so a\n * re-run triggered by an unrelated context re-render would cancel a ceremony the person started with\n * the button, and open a second session for nothing.\n */\n const signInWithPasskeyRef = useRef(signInWithPasskey);\n signInWithPasskeyRef.current = signInWithPasskey;\n\n useEffect(() => {\n if (!isReady || !showIdentifyForm || !isPasskeySignInOffered) return undefined;\n let cancelled = false;\n void (async () => {\n if (!(await browserSupportsWebAuthnAutofill())) return;\n const field = await waitForPasskeyAutofillField(PASSKEY_AUTOFILL_FIELD_WAIT_MS);\n // One waiting request at a time, restarted only when its challenge ran out. Anything else ends the\n // loop: the page moved on, the button began its own ceremony, or a picked passkey failed (already\n // reported on `auth.error`). An idle sign-in tab therefore costs one options call per sign-in window\n // (the `expiresInSeconds` the server answered), which is what the per-IP limit on the options door is\n // sized against.\n while (!cancelled) {\n try {\n await signInWithPasskeyRef.current(PasskeySignInMediation.CONDITIONAL);\n return;\n } catch (error) {\n if (!(error instanceof PasskeyAutofillExpiredError) || buttonCeremonyLiveRef.current) return;\n }\n }\n })();\n return () => {\n cancelled = true;\n WebAuthnAbortService.cancelCeremony();\n };\n }, [isReady, showIdentifyForm, isPasskeySignInOffered, autofillEpoch]);\n\n useEffect(() => {\n logDebug(\n `Render isReady=${isReady} accessToken=${auth.accessToken ? 'yes' : 'no'} authLoading=${auth.isLoading ? 'yes' : 'no'} identification=${hasIdentification ? 'yes' : 'no'} showIdentify=${showIdentifyForm ? 'yes' : 'no'} activeMethod=${currentActiveMethod ?? 'none'}`,\n );\n }, [isReady, auth.accessToken, auth.isLoading, hasIdentification, showIdentifyForm, currentActiveMethod]);\n\n // Parked at organization onboarding (#1090): the organization is the only step left, whatever this screen was doing.\n const organizationOnboardingTarget = organizationOnboardingNavigationTarget(auth, authRedirectTarget);\n if (organizationOnboardingTarget) {\n return <Navigate to={organizationOnboardingTarget} replace />;\n }\n\n if (auth.accessToken) {\n return <Navigate to={postAuthRedirect} replace />;\n }\n\n if (!isReady) return null;\n\n /*\n * ONE element owns the vertical rhythm of the screen. Every block used to bring its own margin, so\n * whichever pair nobody had thought about got none — the \"Forgot password?\" link sat flush against the\n * last alternative-method button (measured: 0px). The container spaces every adjacent pair, including\n * ones a future phase adds.\n *\n * `space-y-group` (block flow) and NOT `flex flex-col gap-group`, because of `LabeledDivider`'s own\n * `my-group`. In block flow the sibling margin and the divider's margin COLLAPSE, so an \"or\" divider\n * gets one group-step each side — the spacing it has on the registration and invitation screens, which\n * are block flow too. A flex gap does not collapse with margins and gave this screen twice that.\n */\n return (\n <div className=\"space-y-group\">\n <div className=\"text-center space-y-item-xs\">\n <Heading>\n {auth.purpose === AuthSessionPurpose.REAUTH\n ? t(UserAuthLabel.REAUTH_TITLE)\n : t(UserAuthLabel.TITLE)}\n </Heading>\n <Text className=\"max-w-sm mx-auto\">\n {auth.purpose === AuthSessionPurpose.REAUTH\n ? t(UserAuthLabel.REAUTH_SUB_TITLE)\n : t(UserAuthLabel.SUB_TITLE)}\n </Text>\n </div>\n\n {showPreIdentifyOAuth && (\n <OAuthProvidersSection\n providers={enabledSocialOAuth2Providers}\n onProviderClick={handleOAuth2Click}\n isLoading={auth.isLoading}\n continueWithLabel={t(UserAuthLabel.CONTINUE_WITH)}\n translate={translate}\n dividerLabel={t(UserAuthLabel.DIVIDER_OR)}\n showDivider={showDivider}\n />\n )}\n\n {!auth.error && endedSessionNotice && (\n <Alert variant={endedSessionNotice.variant} data-session-ended-notice={endedSessionReason ?? undefined}>\n <AlertDescription>{endedSessionNotice.text}</AlertDescription>\n </Alert>\n )}\n\n {!auth.error && redirectedAuthError && (\n <Alert variant={redirectedAuthError.variant}>\n <AlertDescription>{redirectedAuthError.text}</AlertDescription>\n </Alert>\n )}\n\n {/* Phase 1: Identification — email input before any method is shown */}\n {showIdentifyForm && isIdentifierStepOffered && (\n <AutomatedForm\n key=\"identify\"\n schema={AuthIdentifyFormDtoSchema}\n defaultValues={{ email: '' }}\n onSubmit={handleIdentify}\n validationMode={ValidationMode.ON_BLUR}\n disabled={auth.isLoading}\n labels={{\n fields: { email: t(UserAuthLabel.EMAIL_ADDRESS) },\n }}\n layoutTemplate={IdentifyFormTemplate}\n />\n )}\n\n {/* Phase 1b: Username-less passkey sign-in — the device offers the person's accounts */}\n {showIdentifyForm && isPasskeySignInOffered && (\n <>\n <LabeledDivider label={t(UserAuthLabel.DIVIDER_OR)} />\n <Button\n variant={ButtonVariants_Variant.OUTLINE}\n className=\"w-full\"\n labelOverflow={ButtonLabelOverflow.WRAP}\n onClick={handlePasskeySignInClick}\n disabled={auth.isLoading}\n data-passkey-sign-in=\"\"\n >\n <AuthMethodIcon method={AuthMethod.PASSKEY} />\n {t(UserAuthLabel.PASSKEY_SIGN_IN)}\n </Button>\n </>\n )}\n\n {/* Phase 2: After identification — render active first-factor method */}\n {currentActiveMethod && !showIdentifyForm && (() => {\n const MethodComponent = AUTH_METHOD_COMPONENTS[currentActiveMethod];\n if (!MethodComponent) return null;\n const methodConfig = availableFirstFactorMethods.find((m) => m.method === currentActiveMethod);\n if (!methodConfig) return null;\n\n const props: AuthMethodComponentProps = {\n sessionId,\n email,\n methodConfig,\n onSuccess: handleFirstFactorSuccess,\n onError: handleFirstFactorError,\n factorLevel: 'first',\n isLoading: auth.isLoading,\n t,\n authRedirectTarget,\n };\n\n return <MethodComponent {...props} />;\n })()}\n\n {/*\n The enforcement notice belongs with the alternatives, not with the method above: on its own an\n enforced method needs no explanation — it is simply how you sign in. What needs explaining is\n why a password field is sitting underneath one.\n */}\n {activeMethodIsOrganizationEnforced && alternativeMethods.length > 0 && !showIdentifyForm && (\n <Text>{t(UserAuthLabel.ORGANIZATION_ENFORCED_METHOD)}</Text>\n )}\n\n {/* Phase 3: Alternative methods — shown as buttons below the active method */}\n {alternativeMethods.length > 0 && !showIdentifyForm && (\n <>\n <LabeledDivider label={t(UserAuthLabel.OTHER_METHODS_DIVIDER)} />\n\n <AuthMethodChoiceList\n methods={alternativeMethods.map((method) => method.method as AuthMethod)}\n /*\n * Named by the PROVIDER where the descriptor names one — \"Continue with Google\", the same\n * words the pre-identify buttons and the active enterprise method already use. The\n * descriptor is looked up rather than passed through the list's props because the list is\n * shared with the second-factor and enrollment choosers, which have no descriptors; the\n * naming data belongs to this surface, not to the list.\n *\n * `find` by method is sound because `identify` emits at most ONE entry per method — a\n * method standing for several providers carries them in its own `oauth2ProviderRefs`,\n * which is exactly the case the resolver declines to name.\n */\n labelFor={(method) => resolveAuthMethodChoiceLabel(method, {\n offeredMethod: alternativeMethods.find((candidate) => candidate.method === method),\n socialProviders: enabledSocialOAuth2Providers,\n continueWithTemplate: t(UserAuthLabel.CONTINUE_WITH),\n translateLabel: (label) => t(label),\n resolveSocialProviderLabel: (provider) => resolveOAuthProviderDisplayLabel({\n providerRef: provider.providerRef,\n displayName: provider.displayName,\n displayNameLabelKey: provider.displayNameLabelKey,\n brandLabel: SSO_PROVIDER_BRAND_META[provider.providerRef]?.label,\n translate,\n }),\n })}\n onSelect={setActiveMethod}\n disabled={auth.isLoading}\n />\n </>\n )}\n\n {offersNoEntryPoint && (\n <Alert data-auth-no-entry-point=\"\">\n <AlertDescription>{t(UserAuthLabel.NO_SIGN_IN_METHOD_AVAILABLE)}</AlertDescription>\n </Alert>\n )}\n\n {offersNoMethodForAddress && (\n <Alert data-auth-no-method-for-address=\"\">\n <AlertDescription>{t(UserAuthLabel.NO_SIGN_IN_METHOD_FOR_ADDRESS)}</AlertDescription>\n </Alert>\n )}\n\n {/* No identifier form to carry it: the error has nowhere else to be read. */}\n {!isIdentifierStepOffered && !hasIdentification && auth.error && (\n <Alert variant=\"destructive\">\n <AlertDescription>{auth.error}</AlertDescription>\n </Alert>\n )}\n\n {/*\n Navigation AWAY from this form (recover a password, create an account) is a different group\n from the actions above it, so it sits one extra group-step apart rather than at the plain gap.\n */}\n <div className=\"text-center space-y-item pt-group\">\n {/*\n Password recovery belongs to the PASSWORD step, and to no other (#1220).\n \n This used to render on `hasIdentification && userExists`, and `userExists` is hard-wired\n `true` on every identify response for enumeration safety — so it reduced to \"any address that\n has been typed\". It offered recovery to an account with no password at all, and to a domain\n routed to its own identity provider, where the link leads somewhere the person's credential\n does not live. It also sat in a sibling element outside the method-render block, so no branch\n could have conditioned it on the active method.\n \n Gated on the ACTIVE method rather than on `PASSWORD` merely being offered: someone who has\n switched to a passkey is not looking at a password field, and recovery beside it is an answer\n to a question they did not ask.\n */}\n {currentActiveMethod === AuthMethod.PASSWORD && !showIdentifyForm && (\n <Text>\n <Link href={passwordLostHref}>{t(UserAuthLabel.FORGOT_PASSWORD)}</Link>\n </Text>\n )}\n\n {auth.purpose !== AuthSessionPurpose.REAUTH\n && resolvedAuth.registrationConfig.publicRegistrationAvailable && (\n <Text>\n {t(UserAuthLabel.NO_ACCOUNT)}{' '}\n <Link href={registerHref}>{t(UserAuthLabel.SIGNUP_LINK)}</Link>\n </Text>\n )}\n\n {/*\n The privacy notice (#2976). Sign-in is the first screen most people meet, and for staff provisioned by an\n identity provider often the only one before their data is processed; `AuthPrivacyNoticeLink` records why, and\n draws nothing while the application serves no notice.\n */}\n <AuthPrivacyNoticeLink label={t(UserAuthLabel.PRIVACY_NOTICE_LINK)} />\n </div>\n </div>\n );\n};\n\nexport function Auth_Main({ preset = CorePresetNames.DEFAULT, ...props }: PublicLayoutPreset_UserAuth_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const Component = createComponentResolver<PublicLayoutPreset_UserAuth_DefaultProps>(FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH, 'Auth_Main')(preset);\n logDebug(`Resolve wrapper preset=${preset} component=${Component.displayName ?? Component.name ?? 'anonymous'}`);\n return <Component {...props} />;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Auth_Main.js","sourceRoot":"","sources":["../../../../src/components/auth/Auth_Main.tsx"],"names":[],"mappings":";AACA,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAA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Q,CAAC,0BAA0B,MAAM,cAAc,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,WAAW,EAAE,CAAC,CAAC;IACjH,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["\nimport React, { useMemo, useState, useCallback, useEffect, useRef } from 'react';\nimport { Navigate, useLocation } from 'react-router';\nimport { FrontendComponentType, UserAuthLabel } from '@wildo-ai/presets-components-models';\nimport { ValidationMode } from '@wildo-ai/zod-decorators';\nimport {\n AuthMethod,\n AuthRedirectErrorCode,\n AuthSessionPurpose,\n getEnabledFirstFactorMethods,\n getEnabledMethods,\n AuthIdentifyFormDtoSchema,\n type AuthIdentifyFormDto,\n type AvailableMethod,\n type AuthenticationResponse,\n} from '@wildo-ai/saas-models';\nimport { useUserOrgs } from '~wildo-frontend-lib/core/security/useUserOrgs';\nimport { useAuthSession } from '~wildo-frontend-lib/core/security/useAuthSession';\nimport { SessionEndReason } from '~wildo-frontend-lib/core/events/events.frontend.schemas';\nimport { PasskeyAutofillExpiredError, PasskeySignInMediation } from '~wildo-frontend-lib/core/security/security.frontend.schemas';\nimport { browserSupportsWebAuthnAutofill, WebAuthnAbortService } from '@simplewebauthn/browser';\nimport { organizationOnboardingNavigationTarget } from '~wildo-frontend-lib/core/security/organization-onboarding.frontend.utils';\nimport { useResolvedAuthConfig } from '~wildo-frontend-lib/core/security/useResolvedAuthConfig';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { AutomatedForm } from '~wildo-frontend-lib/components/form/automated/AutomatedForm';\nimport { Button, ButtonLabelOverflow, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { FormLayout } from '~wildo-frontend-lib/components/resources/skeleton/FormLayout';\nimport { FormField } from '~wildo-frontend-lib/components/form/automated/FormField';\nimport { SubmitButton } from '~wildo-frontend-lib/components/resources/skeleton/SubmitButton';\nimport { Heading } from '~wildo-frontend-lib/components/typography/heading';\nimport { Text } from '~wildo-frontend-lib/components/typography/text';\nimport { Link } from '~wildo-frontend-lib/components/typography/link';\nimport { Alert, AlertDescription, type AlertVariants_Variant } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport {\n appendAuthRedirectToPath,\n extractAuthRedirectFromSearch,\n resolvePostAuthRedirect,\n} from '~wildo-frontend-lib/core/security/auth-redirect.frontend.utils';\nimport { collectFrontendProviderDisplayLabelKeys } from '~wildo-frontend-lib/core/external-providers/frontend-provider-display-label.frontend.utils';\nimport { resolveOAuthProviderDisplayLabel, resolvePublicOAuthProviderEntries } from '~wildo-frontend-lib/components/auth/utils/oauth-provider-display-label.frontend.utils';\n\nimport { OAuthProvidersSection, SSO_PROVIDER_BRAND_META } from '~wildo-frontend-lib/components/auth/utils/OAuthProvidersSection';\nimport { useMfaContinuationNavigation } from '~wildo-frontend-lib/components/auth/utils/useMfaContinuationNavigation';\nimport { LabeledDivider } from '~wildo-frontend-lib/components/auth/utils/LabeledDivider';\nimport { AuthPrivacyNoticeLink } from '~wildo-frontend-lib/components/auth/utils/AuthPrivacyNoticeLink';\nimport { AUTH_METHOD_COMPONENTS, type AuthMethodComponentProps } from '~wildo-frontend-lib/components/auth/methods/auth-method-components';\nimport { resolveAuthMethodChoiceLabel } from '~wildo-frontend-lib/components/auth/methods/auth-method-presentation';\nimport { AuthMethodChoiceList } from '~wildo-frontend-lib/components/auth/utils/AuthMethodChoiceList';\nimport { AuthMethodIcon } from '~wildo-frontend-lib/components/auth/utils/AuthMethodIcon';\n\nimport { ComponentPresetProps } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas'\nimport { createComponentResolver } from '~wildo-frontend-lib/core/components-registry/component-resolver.frontend.helper'\nimport { CorePresetNames } from '@wildo-ai/presets-components-models'\n\nconst logger = LoggerFrontendService.getLogger();\nconst logDebug = logger.debugByType('Auth_Main');\nlogger.setDebugTypeLogging('Auth_Main', false);\n\n/**\n * Self-sufficient template for the email identification form.\n * Reads auth error from `useUserOrgs()`, labels from `useI18n()`.\n */\nconst IdentifyFormTemplate: React.FC = () => {\n const { auth } = useUserOrgs();\n const { tComponent, isReady } = useI18n({\n component: FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH,\n });\n const t = (key: string) => tComponent(FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH, key);\n\n if (!isReady) return null;\n\n return (\n <FormLayout>\n <FormField name=\"email\" />\n\n {auth.error && (\n <Alert variant=\"destructive\">\n <AlertDescription>{auth.error}</AlertDescription>\n </Alert>\n )}\n\n <SubmitButton\n label={t(UserAuthLabel.CONTINUE)}\n submittingLabel=\"…\"\n fullWidth\n />\n </FormLayout>\n );\n};\n\n/**\n * Resolve once the sign-in email field carrying the `webauthn` autocomplete token is in the document.\n *\n * Passkey autofill must start AFTER that input exists: the browser attaches its passkey list to it, and\n * the WebAuthn helper refuses to start a conditional request without one. The form renders\n * asynchronously (it waits for its labels), so this polls one frame at a time, bounded, and answers\n * `null` if the field never appears — autofill is then simply not offered.\n */\nfunction waitForPasskeyAutofillField(timeoutMs: number): Promise<Element | null> {\n const selector = 'input[autocomplete~=\"webauthn\"]';\n return new Promise((resolve) => {\n const deadline = Date.now() + timeoutMs;\n const probe = () => {\n const field = document.querySelector(selector);\n if (field || Date.now() >= deadline) {\n resolve(field);\n return;\n }\n requestAnimationFrame(probe);\n };\n probe();\n });\n}\n\n/** How long the page waits for the email field before giving up on offering passkey autofill. */\nconst PASSKEY_AUTOFILL_FIELD_WAIT_MS = 3000;\n\n/**\n * The authored words for each code an external sign-in redirects back with (#2567). Total over\n * `AuthRedirectErrorCode`, so a code added to the vocabulary must be given words here before it compiles.\n */\nconst AUTH_REDIRECT_ERROR_LABELS: Record<AuthRedirectErrorCode, { label: UserAuthLabel; variant: AlertVariants_Variant }> = {\n [AuthRedirectErrorCode.SAML_LOGIN_FAILED]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n [AuthRedirectErrorCode.SAML_AUTH_FAILED]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n [AuthRedirectErrorCode.MISSING_PARAMS]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n [AuthRedirectErrorCode.OAUTH_FAILED]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n // A sign-out that did not finish at the provider is a caution, not a failure of what the person asked for here.\n [AuthRedirectErrorCode.SAML_SLO_FAILED]: { label: UserAuthLabel.PROVIDER_SIGN_OUT_FAILED, variant: 'warning' },\n // Sent only to the re-authentication popup's page, which hands it to the step-up dialog and its own words; mapped so\n // the table stays total, and so a hand-typed URL on the sign-in page still reads as a failed provider sign-in.\n [AuthRedirectErrorCode.REAUTHENTICATION_NOT_FRESH]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n // Also popup-only, mapped for the same reasons.\n [AuthRedirectErrorCode.REAUTHENTICATION_RATE_LIMITED]: { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' },\n};\n\n// --- Contract ---\nexport interface PublicLayoutPreset_UserAuth_DefaultProps {\n}\n\nexport const PublicLayoutPreset_UserAuth_Default = ({}: PublicLayoutPreset_UserAuth_DefaultProps): React.JSX.Element => {\n const { auth, identifyByEmail, initiateOAuth2Login } = useUserOrgs();\n const { signInWithPasskey, endedSessionReason } = useAuthSession();\n const resolvedAuth = useResolvedAuthConfig();\n const location = useLocation();\n const enabledSocialOAuth2Providers = useMemo(() => {\n return resolvePublicOAuthProviderEntries({\n publicProviders: resolvedAuth.globalAuth?.socialOAuth2Providers,\n });\n }, [resolvedAuth.globalAuth?.socialOAuth2Providers]);\n const socialOAuth2ProviderLabelKeys = useMemo(() => {\n return collectFrontendProviderDisplayLabelKeys(\n enabledSocialOAuth2Providers.map((provider) => provider.displayNameLabelKey),\n );\n }, [enabledSocialOAuth2Providers]);\n const { t: translate, tComponent, isReady } = useI18n({\n component: FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH,\n keys: socialOAuth2ProviderLabelKeys,\n });\n\n const t = (key: string) => tComponent(FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH, key);\n const publicRoutes = CommonRoutePaths;\n const postAuthRedirect = useMemo(\n () => resolvePostAuthRedirect(location.search),\n [location.search],\n );\n const authRedirectTarget = useMemo(\n () => extractAuthRedirectFromSearch(location.search),\n [location.search],\n );\n /**\n * An external sign-in sent the person back here with an error code (#2567). Only the CODE is read, and it chooses\n * authored words; any text the URL carries is never shown, because a link can carry any sentence and the page would\n * present it as the application's own error. An unrecognised code reads as a failed provider sign-in.\n */\n const redirectedAuthError = useMemo(() => {\n const code = new URLSearchParams(location.search).get('error');\n if (!code) return null;\n const { label, variant } = AUTH_REDIRECT_ERROR_LABELS[code as AuthRedirectErrorCode]\n ?? { label: UserAuthLabel.PROVIDER_SIGN_IN_FAILED, variant: 'destructive' as const };\n return { text: tComponent(FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH, label), variant };\n }, [location.search, tComponent]);\n /**\n * Why the person is here when the BACKEND ended their session (#2541), in authored words. An account that can no\n * longer sign in (deactivated, suspended, pending) is told that an administrator must restore it, because trying\n * again cannot work; any other refused session is told it ended and to sign in again.\n */\n const endedSessionNotice = endedSessionReason === SessionEndReason.ACCOUNT_NOT_ACTIVE\n ? { text: t(UserAuthLabel.ACCOUNT_NOT_ACTIVE_NOTICE), variant: 'destructive' as const }\n : endedSessionReason === SessionEndReason.SESSION_ENDED\n ? { text: t(UserAuthLabel.SESSION_ENDED_NOTICE), variant: 'info' as const }\n : null;\n const passwordLostHref = useMemo(\n () => appendAuthRedirectToPath(publicRoutes.passwordLost, authRedirectTarget),\n [authRedirectTarget, publicRoutes.passwordLost],\n );\n const registerHref = useMemo(\n () => appendAuthRedirectToPath(publicRoutes.register, authRedirectTarget),\n [authRedirectTarget, publicRoutes.register],\n );\n\n const [activeMethod, setActiveMethod] = useState<AuthMethod | null>(null);\n\n // Shared with the registration screen (#972), so a session owing a second factor is routed one way.\n useMfaContinuationNavigation({\n mfaRequired: auth.mfaRequired,\n mfaSessionId: auth.mfaSessionId,\n usableSecondFactorMethods: auth.usableSecondFactorMethods,\n email: auth.identification?.email,\n authRedirectTarget,\n });\n\n const hasIdentification = !!auth.identification;\n const sessionId = auth.identification?.sessionId || '';\n const email = auth.identification?.email || '';\n\n const availableFirstFactorMethods: AvailableMethod[] = useMemo(() => {\n if (!hasIdentification || !auth.identification?.userExists) return [];\n const methods = auth.identification?.firstFactorMethods || [];\n // Rendered in the order the server sent (#1218). The backend orders by `AUTH_METHOD_PRECEDENCE` and computes\n // `defaultFirstFactorMethod` as the head of that same list, so re-sorting here would put a different method first\n // from the one the server named as the default — which is exactly what it used to do for an SSO-routed domain.\n return methods.filter((m) => AUTH_METHOD_COMPONENTS[m.method as AuthMethod]);\n }, [hasIdentification, auth.identification]);\n\n const defaultMethod = useMemo(() => {\n if (availableFirstFactorMethods.length === 0) return null;\n const defaultFromBackend = auth.identification?.defaultFirstFactorMethod as AuthMethod | undefined;\n if (defaultFromBackend && AUTH_METHOD_COMPONENTS[defaultFromBackend]) return defaultFromBackend;\n return availableFirstFactorMethods[0].method as AuthMethod;\n }, [availableFirstFactorMethods, auth.identification?.defaultFirstFactorMethod]);\n\n const currentActiveMethod = activeMethod || defaultMethod;\n const alternativeMethods = availableFirstFactorMethods.filter(\n (m) => m.method !== currentActiveMethod\n );\n\n /*\n * Does the person's organization REQUIRE the method currently shown? (#1220)\n *\n * `enforcedFirstFactor` is set by the backend only where an enterprise connection declares\n * `enforcement.requireSSO`. Until #1220 this arrived as a `required` boolean that NOTHING here read\n * — a claim on the wire that no surface checked — and it could not safely be read, because the same\n * field was also set on any method that can serve as a second factor whenever the user type demands\n * MFA. Consuming that would have announced a passkey as a mandatory first factor.\n *\n * Read on the ACTIVE method rather than on the list, because the notice explains the thing the\n * person is looking at. The interesting case is the one where alternatives exist beside it: a tenant\n * that allows a password fallback, or that names break-glass accounts and therefore keeps the\n * password field for EVERY address at the domain so the list cannot be read as an oracle for who\n * those accounts are. There the two methods look like peers and are not.\n */\n const activeMethodIsOrganizationEnforced = availableFirstFactorMethods.some(\n (m) => m.method === currentActiveMethod && m.enforcedFirstFactor,\n );\n\n const handleOAuth2Click = async (providerRef: string) => {\n try {\n await initiateOAuth2Login(providerRef, authRedirectTarget);\n } catch {\n // Error is already handled in AuthSessionContext\n }\n };\n\n const handleIdentify = async (data: AuthIdentifyFormDto) => {\n await identifyByEmail(data.email);\n };\n\n const handleFirstFactorSuccess = useCallback((_response: AuthenticationResponse) => {\n // Token storage and MFA redirect are handled by AuthSessionContext\n // and the authenticateWithPassword flow respectively.\n // Nothing to do here — the auth state update triggers re-renders\n // and the MFA redirect is handled at the page level.\n }, []);\n\n const handleFirstFactorError = useCallback((_error: string) => {\n // Errors are displayed within each method component\n }, []);\n\n const hasSocialOAuth2Providers = enabledSocialOAuth2Providers.length > 0;\n const showIdentifyForm = !hasIdentification || !auth.identification?.userExists;\n const showPreIdentifyOAuth = hasSocialOAuth2Providers && showIdentifyForm;\n\n /*\n * The identifier step is the door to EVERY method reached by saying who you are, so it is offered\n * when ANY identify-reachable method is enabled — not when PASSWORD is (#1219). Gating it on the\n * password made a user type that signs in by magic link unable to sign in at all: the email address\n * is the one thing that sign-in needs, and the page hid the field that collects it.\n *\n * The password INPUT stays gated on the password, and by a stronger authority than this map: it is a\n * Phase-2 method component, rendered only for a method the identify RESPONSE returned for this\n * person. So nothing below has to re-decide it.\n *\n * `EXTERNAL_OAUTH2` counts only when a social provider actually resolves, mirroring\n * `_buildAvailableMethodObject`, which returns null for it when the application configures none.\n *\n * An UNRESOLVED policy offers the step. The identifier form is not an access control — the backend\n * decides what a person may use, and refuses on its own — so treating \"I do not know yet\" as\n * \"closed\" would lock the whole sign-in page over a config the page had not loaded, while\n * protecting nothing.\n */\n const identifyReachableMethods = useMemo(() => {\n const methods = getEnabledFirstFactorMethods(resolvedAuth.userTypeAuth?.authMethodsEnabled);\n if (!hasSocialOAuth2Providers) methods.delete(AuthMethod.EXTERNAL_OAUTH2);\n return methods;\n }, [hasSocialOAuth2Providers, resolvedAuth.userTypeAuth?.authMethodsEnabled]);\n const isIdentifierStepOffered = !resolvedAuth.userTypeAuth?.authMethodsEnabled || identifyReachableMethods.size > 0;\n\n const showDivider = showPreIdentifyOAuth && isIdentifierStepOffered;\n\n /*\n * Username-less passkey sign-in is offered before any email is typed, when the application enables\n * passkeys for this frontend's user type and the browser speaks WebAuthn. Not during re-authentication:\n * a re-proof must be the SAME person, and a discoverable ceremony lets the device pick any account.\n */\n // Read through the shared helper: `authMethodsEnabled` accepts both `true` and `{ enabled: true }`, and the\n // backend decides with the same helper, so the page must not offer less than the server accepts.\n const isPasskeySignInOffered = getEnabledMethods(resolvedAuth.userTypeAuth?.authMethodsEnabled).has(AuthMethod.PASSKEY)\n && auth.purpose !== AuthSessionPurpose.REAUTH\n && typeof window !== 'undefined'\n && !!window.PublicKeyCredential;\n /*\n * The page offers NO way in: no identifier step, no passkey button, no social provider (#1255).\n *\n * Without this it rendered the heading and subtitle and then nothing — the one alert below that\n * could speak is gated on `auth.error`, and with no form nothing can produce an error. The three\n * terms are exactly the three entry points rendered in the identify phase, so a passkey-only or\n * social-only type is not a dead end and gets no notice. An UNRESOLVED policy offers the identifier\n * step (see `isIdentifierStepOffered`), so this never flashes while the config is loading.\n */\n const offersNoEntryPoint = showIdentifyForm && !isIdentifierStepOffered && !isPasskeySignInOffered && !showPreIdentifyOAuth;\n /*\n * The address was identified and the backend offered it NO method (#3119): the post-identification twin of the notice\n * above. Without it the page showed the heading and then nothing, with no way forward. The case that produced it is\n * an account a directory provisioned (its local sign-in methods are switched off by the directory's rule) at a domain whose\n * organization has switched single sign-on routing off; the enterprise callbacks then refuse that domain too, so no\n * button could be offered honestly, and only whoever manages the person's sign-in can open a way. The list itself is\n * the backend's to decide and is not touched here: this adds the sentence, it removes nothing another address gets.\n */\n const offersNoMethodForAddress = !showIdentifyForm && availableFirstFactorMethods.length === 0;\n /*\n * While a ceremony the person started with the button is open, autofill must not restart: starting a\n * WebAuthn request aborts the pending one, so a restart timed after the button would close the picker\n * the person is looking at. When the button ceremony ends — refused or cancelled; a success leaves the\n * page — `autofillEpoch` moves and the autofill effect starts a fresh wait.\n */\n const buttonCeremonyLiveRef = useRef(false);\n const [autofillEpoch, setAutofillEpoch] = useState(0);\n\n const handlePasskeySignInClick = useCallback(async () => {\n buttonCeremonyLiveRef.current = true;\n try {\n await signInWithPasskey(PasskeySignInMediation.MODAL);\n } catch {\n // Already reported: the context puts the user-facing message on `auth.error`, which the email\n // form renders. Caught here only so a refused ceremony is not an unhandled rejection.\n } finally {\n buttonCeremonyLiveRef.current = false;\n setAutofillEpoch((epoch) => epoch + 1);\n }\n }, [signInWithPasskey]);\n\n /*\n * Passkey AUTOFILL: while the email form is on screen, a conditional passkey request waits for the\n * person to pick a passkey from the email field's autofill list. It is cancelled when the form goes\n * away (an email was submitted, or sign-in completed), and a modal request started by the button\n * replaces it — the WebAuthn helper aborts the pending one itself.\n */\n /*\n * The latest `signInWithPasskey`, read through a ref so the autofill effect does NOT re-run when the\n * callback's identity changes. The effect's cleanup cancels the one global WebAuthn ceremony, so a\n * re-run triggered by an unrelated context re-render would cancel a ceremony the person started with\n * the button, and open a second session for nothing.\n */\n const signInWithPasskeyRef = useRef(signInWithPasskey);\n signInWithPasskeyRef.current = signInWithPasskey;\n\n useEffect(() => {\n if (!isReady || !showIdentifyForm || !isPasskeySignInOffered) return undefined;\n let cancelled = false;\n void (async () => {\n if (!(await browserSupportsWebAuthnAutofill())) return;\n const field = await waitForPasskeyAutofillField(PASSKEY_AUTOFILL_FIELD_WAIT_MS);\n // One waiting request at a time, restarted only when its challenge ran out. Anything else ends the\n // loop: the page moved on, the button began its own ceremony, or a picked passkey failed (already\n // reported on `auth.error`). An idle sign-in tab therefore costs one options call per sign-in window\n // (the `expiresInSeconds` the server answered), which is what the per-IP limit on the options door is\n // sized against.\n while (!cancelled) {\n try {\n await signInWithPasskeyRef.current(PasskeySignInMediation.CONDITIONAL);\n return;\n } catch (error) {\n if (!(error instanceof PasskeyAutofillExpiredError) || buttonCeremonyLiveRef.current) return;\n }\n }\n })();\n return () => {\n cancelled = true;\n WebAuthnAbortService.cancelCeremony();\n };\n }, [isReady, showIdentifyForm, isPasskeySignInOffered, autofillEpoch]);\n\n useEffect(() => {\n logDebug(\n `Render isReady=${isReady} accessToken=${auth.accessToken ? 'yes' : 'no'} authLoading=${auth.isLoading ? 'yes' : 'no'} identification=${hasIdentification ? 'yes' : 'no'} showIdentify=${showIdentifyForm ? 'yes' : 'no'} activeMethod=${currentActiveMethod ?? 'none'}`,\n );\n }, [isReady, auth.accessToken, auth.isLoading, hasIdentification, showIdentifyForm, currentActiveMethod]);\n\n // Parked at organization onboarding (#1090): the organization is the only step left, whatever this screen was doing.\n const organizationOnboardingTarget = organizationOnboardingNavigationTarget(auth, authRedirectTarget);\n if (organizationOnboardingTarget) {\n return <Navigate to={organizationOnboardingTarget} replace />;\n }\n\n if (auth.accessToken) {\n return <Navigate to={postAuthRedirect} replace />;\n }\n\n if (!isReady) return null;\n\n /*\n * ONE element owns the vertical rhythm of the screen. Every block used to bring its own margin, so\n * whichever pair nobody had thought about got none — the \"Forgot password?\" link sat flush against the\n * last alternative-method button (measured: 0px). The container spaces every adjacent pair, including\n * ones a future phase adds.\n *\n * `space-y-group` (block flow) and NOT `flex flex-col gap-group`, because of `LabeledDivider`'s own\n * `my-group`. In block flow the sibling margin and the divider's margin COLLAPSE, so an \"or\" divider\n * gets one group-step each side — the spacing it has on the registration and invitation screens, which\n * are block flow too. A flex gap does not collapse with margins and gave this screen twice that.\n */\n return (\n <div className=\"space-y-group\">\n <div className=\"text-center space-y-item-xs\">\n <Heading>\n {auth.purpose === AuthSessionPurpose.REAUTH\n ? t(UserAuthLabel.REAUTH_TITLE)\n : t(UserAuthLabel.TITLE)}\n </Heading>\n <Text className=\"max-w-sm mx-auto\">\n {auth.purpose === AuthSessionPurpose.REAUTH\n ? t(UserAuthLabel.REAUTH_SUB_TITLE)\n : t(UserAuthLabel.SUB_TITLE)}\n </Text>\n </div>\n\n {showPreIdentifyOAuth && (\n <OAuthProvidersSection\n providers={enabledSocialOAuth2Providers}\n onProviderClick={handleOAuth2Click}\n isLoading={auth.isLoading}\n continueWithLabel={t(UserAuthLabel.CONTINUE_WITH)}\n translate={translate}\n dividerLabel={t(UserAuthLabel.DIVIDER_OR)}\n showDivider={showDivider}\n />\n )}\n\n {!auth.error && endedSessionNotice && (\n <Alert variant={endedSessionNotice.variant} data-session-ended-notice={endedSessionReason ?? undefined}>\n <AlertDescription>{endedSessionNotice.text}</AlertDescription>\n </Alert>\n )}\n\n {!auth.error && redirectedAuthError && (\n <Alert variant={redirectedAuthError.variant}>\n <AlertDescription>{redirectedAuthError.text}</AlertDescription>\n </Alert>\n )}\n\n {/* Phase 1: Identification — email input before any method is shown */}\n {showIdentifyForm && isIdentifierStepOffered && (\n <AutomatedForm\n key=\"identify\"\n schema={AuthIdentifyFormDtoSchema}\n defaultValues={{ email: '' }}\n onSubmit={handleIdentify}\n validationMode={ValidationMode.ON_BLUR}\n disabled={auth.isLoading}\n labels={{\n fields: { email: t(UserAuthLabel.EMAIL_ADDRESS) },\n }}\n layoutTemplate={IdentifyFormTemplate}\n />\n )}\n\n {/* Phase 1b: Username-less passkey sign-in — the device offers the person's accounts */}\n {showIdentifyForm && isPasskeySignInOffered && (\n <>\n <LabeledDivider label={t(UserAuthLabel.DIVIDER_OR)} />\n <Button\n variant={ButtonVariants_Variant.OUTLINE}\n className=\"w-full\"\n labelOverflow={ButtonLabelOverflow.WRAP}\n onClick={handlePasskeySignInClick}\n disabled={auth.isLoading}\n data-passkey-sign-in=\"\"\n >\n <AuthMethodIcon method={AuthMethod.PASSKEY} />\n {t(UserAuthLabel.PASSKEY_SIGN_IN)}\n </Button>\n </>\n )}\n\n {/* Phase 2: After identification — render active first-factor method */}\n {currentActiveMethod && !showIdentifyForm && (() => {\n const MethodComponent = AUTH_METHOD_COMPONENTS[currentActiveMethod];\n if (!MethodComponent) return null;\n const methodConfig = availableFirstFactorMethods.find((m) => m.method === currentActiveMethod);\n if (!methodConfig) return null;\n\n const props: AuthMethodComponentProps = {\n sessionId,\n email,\n methodConfig,\n onSuccess: handleFirstFactorSuccess,\n onError: handleFirstFactorError,\n factorLevel: 'first',\n isLoading: auth.isLoading,\n t,\n authRedirectTarget,\n };\n\n return <MethodComponent {...props} />;\n })()}\n\n {/*\n The enforcement notice belongs with the alternatives, not with the method above: on its own an\n enforced method needs no explanation — it is simply how you sign in. What needs explaining is\n why a password field is sitting underneath one.\n */}\n {activeMethodIsOrganizationEnforced && alternativeMethods.length > 0 && !showIdentifyForm && (\n <Text>{t(UserAuthLabel.ORGANIZATION_ENFORCED_METHOD)}</Text>\n )}\n\n {/* Phase 3: Alternative methods — shown as buttons below the active method */}\n {alternativeMethods.length > 0 && !showIdentifyForm && (\n <>\n <LabeledDivider label={t(UserAuthLabel.OTHER_METHODS_DIVIDER)} />\n\n <AuthMethodChoiceList\n methods={alternativeMethods.map((method) => method.method as AuthMethod)}\n /*\n * Named by the PROVIDER where the descriptor names one — \"Continue with Google\", the same\n * words the pre-identify buttons and the active enterprise method already use. The\n * descriptor is looked up rather than passed through the list's props because the list is\n * shared with the second-factor and enrollment choosers, which have no descriptors; the\n * naming data belongs to this surface, not to the list.\n *\n * `find` by method is sound because `identify` emits at most ONE entry per method — a\n * method standing for several providers carries them in its own `oauth2ProviderRefs`,\n * which is exactly the case the resolver declines to name.\n */\n labelFor={(method) => resolveAuthMethodChoiceLabel(method, {\n offeredMethod: alternativeMethods.find((candidate) => candidate.method === method),\n socialProviders: enabledSocialOAuth2Providers,\n continueWithTemplate: t(UserAuthLabel.CONTINUE_WITH),\n translateLabel: (label) => t(label),\n resolveSocialProviderLabel: (provider) => resolveOAuthProviderDisplayLabel({\n providerRef: provider.providerRef,\n displayName: provider.displayName,\n displayNameLabelKey: provider.displayNameLabelKey,\n brandLabel: SSO_PROVIDER_BRAND_META[provider.providerRef]?.label,\n translate,\n }),\n })}\n onSelect={setActiveMethod}\n disabled={auth.isLoading}\n />\n </>\n )}\n\n {offersNoEntryPoint && (\n <Alert data-auth-no-entry-point=\"\">\n <AlertDescription>{t(UserAuthLabel.NO_SIGN_IN_METHOD_AVAILABLE)}</AlertDescription>\n </Alert>\n )}\n\n {offersNoMethodForAddress && (\n <Alert data-auth-no-method-for-address=\"\">\n <AlertDescription>{t(UserAuthLabel.NO_SIGN_IN_METHOD_FOR_ADDRESS)}</AlertDescription>\n </Alert>\n )}\n\n {/* No identifier form to carry it: the error has nowhere else to be read. */}\n {!isIdentifierStepOffered && !hasIdentification && auth.error && (\n <Alert variant=\"destructive\">\n <AlertDescription>{auth.error}</AlertDescription>\n </Alert>\n )}\n\n {/*\n Navigation AWAY from this form (recover a password, create an account) is a different group\n from the actions above it, so it sits one extra group-step apart rather than at the plain gap.\n */}\n <div className=\"text-center space-y-item pt-group\">\n {/*\n Password recovery belongs to the PASSWORD step, and to no other (#1220).\n \n This used to render on `hasIdentification && userExists`, and `userExists` is hard-wired\n `true` on every identify response for enumeration safety — so it reduced to \"any address that\n has been typed\". It offered recovery to an account with no password at all, and to a domain\n routed to its own identity provider, where the link leads somewhere the person's credential\n does not live. It also sat in a sibling element outside the method-render block, so no branch\n could have conditioned it on the active method.\n \n Gated on the ACTIVE method rather than on `PASSWORD` merely being offered: someone who has\n switched to a passkey is not looking at a password field, and recovery beside it is an answer\n to a question they did not ask.\n */}\n {currentActiveMethod === AuthMethod.PASSWORD && !showIdentifyForm && (\n <Text>\n <Link href={passwordLostHref}>{t(UserAuthLabel.FORGOT_PASSWORD)}</Link>\n </Text>\n )}\n\n {auth.purpose !== AuthSessionPurpose.REAUTH\n && resolvedAuth.registrationConfig.publicRegistrationAvailable && (\n <Text>\n {t(UserAuthLabel.NO_ACCOUNT)}{' '}\n <Link href={registerHref}>{t(UserAuthLabel.SIGNUP_LINK)}</Link>\n </Text>\n )}\n\n {/*\n The privacy notice (#2976). Sign-in is the first screen most people meet, and for staff provisioned by an\n identity provider often the only one before their data is processed; `AuthPrivacyNoticeLink` records why, and\n draws nothing while the application serves no notice.\n */}\n <AuthPrivacyNoticeLink label={t(UserAuthLabel.PRIVACY_NOTICE_LINK)} />\n </div>\n </div>\n );\n};\n\nexport function Auth_Main({ preset = CorePresetNames.DEFAULT, ...props }: PublicLayoutPreset_UserAuth_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const Component = createComponentResolver<PublicLayoutPreset_UserAuth_DefaultProps>(FrontendComponentType.PUBLIC_LAYOUTS_USER_AUTH, 'Auth_Main')(preset);\n logDebug(`Resolve wrapper preset=${preset} component=${Component.displayName ?? Component.name ?? 'anonymous'}`);\n return <Component {...props} />;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentPresetProps } from '../../core/components-registry/component-registry.frontend.schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the device verification preset. The page is driven by the address (the optional code) and the session, so it
|
|
5
|
+
* takes no props; the interface satisfies the preset-wrapper contract every `PUBLIC_LAYOUTS` page shares.
|
|
6
|
+
*/
|
|
7
|
+
export interface PublicLayoutPreset_OAuthDeviceVerification_DefaultProps {
|
|
8
|
+
/** Reserved: the page is address- and session-driven and accepts no props. */
|
|
9
|
+
readonly _selfDriven?: never;
|
|
10
|
+
}
|
|
11
|
+
/** Default preset implementation for {@link FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION}. */
|
|
12
|
+
export declare const PublicLayoutPreset_OAuthDeviceVerification_Default: (_props: PublicLayoutPreset_OAuthDeviceVerification_DefaultProps) => React.JSX.Element;
|
|
13
|
+
/**
|
|
14
|
+
* Preset-resolving wrapper for the device verification page (mirrors every other `PUBLIC_LAYOUTS` page). Resolves
|
|
15
|
+
* `PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION` to its registered preset, so an application can swap in a branded page
|
|
16
|
+
* through the component registry.
|
|
17
|
+
*/
|
|
18
|
+
export declare function Auth_OAuthDeviceVerification({ preset, ...props }: PublicLayoutPreset_OAuthDeviceVerification_DefaultProps & ComponentPresetProps): React.JSX.Element;
|
|
19
|
+
//# sourceMappingURL=Auth_OAuthDeviceVerification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Auth_OAuthDeviceVerification.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/Auth_OAuthDeviceVerification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAWxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kFAAkF,CAAC;AAqDxH;;;GAGG;AACH,MAAM,WAAW,uDAAuD;IACtE,8EAA8E;IAC9E,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC;CAC9B;AAYD,gHAAgH;AAChH,eAAO,MAAM,kDAAkD,GAC7D,QAAQ,uDAAuD,KAC9D,KAAK,CAAC,GAAG,CAAC,OA4JZ,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,MAAgC,EAChC,GAAG,KAAK,EACT,EAAE,uDAAuD,GAAG,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAMpG"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Navigate, useSearchParams } from 'react-router';
|
|
5
|
+
import { OAUTH_DEVICE_VERIFICATION_USER_CODE_PARAM, OAuthConsentDecision, OAuthDelegatedAccessReach, OAuthDeviceDecisionOutcome, } from '@wildo-ai/saas-models';
|
|
6
|
+
import { CorePresetNames, FrontendComponentType, UserOAuthDeviceVerificationLabel } from '@wildo-ai/presets-components-models';
|
|
7
|
+
import { createComponentResolver } from '../../core/components-registry/component-resolver.frontend.helper.js';
|
|
8
|
+
import { Button, ButtonVariants_Variant } from '../../components/actions/button.js';
|
|
9
|
+
import { Input } from '../../components/form/controls/input.js';
|
|
10
|
+
import { Heading } from '../../components/typography/heading.js';
|
|
11
|
+
import { Text } from '../../components/typography/text.js';
|
|
12
|
+
import { Alert, AlertDescription } from '../../components/overlays/containers/alert.js';
|
|
13
|
+
import { LoadingSpinner } from '../../components/feedback/loading-spinner.js';
|
|
14
|
+
import { useI18n } from '../../core/i18n/useI18n.js';
|
|
15
|
+
import { getManualCallsHttpClient } from '../../core/requests/wildo-http-client-manual-calls.frontend.service.js';
|
|
16
|
+
import { isBackendRefusal } from '../../core/errors/backend-refusal.frontend.js';
|
|
17
|
+
import { useUserOrgs } from '../../core/security/useUserOrgs.js';
|
|
18
|
+
import { CommonRoutePaths } from '../../core/runtime/routes.frontend.definitions.js';
|
|
19
|
+
import { appendAuthRedirectToPath, buildAuthRedirectTarget } from '../../core/security/auth-redirect.frontend.utils.js';
|
|
20
|
+
/**
|
|
21
|
+
* The OAuth device authorization grant's verification page, the body rendered by `AuthPage_OAuthDeviceVerification`.
|
|
22
|
+
*
|
|
23
|
+
* A client with no browser of its own (a command-line tool, an agent host) showed the person a short code and this page's
|
|
24
|
+
* address. Signed in here, the person types the code (or arrives with it already in the address, from a QR code or a
|
|
25
|
+
* link), sees which client asks to act for them, for which identity scopes, at which agent endpoint or with access to
|
|
26
|
+
* their whole account, and whether it keeps that access after today, and the code again, and approves or denies. An
|
|
27
|
+
* approval that hands lasting or whole-account access asks the person to confirm who they are again first (the shared
|
|
28
|
+
* re-authentication dialog the http client opens on the server's step-up refusal). The device learns the outcome on its next poll; nothing is sent back to it from here.
|
|
29
|
+
*
|
|
30
|
+
* spec-cite: RFC 8628 §3.3 — the server "prompts the end user to identify the device authorization session by entering
|
|
31
|
+
* the `user_code`", "should then inform the user about the action they are undertaking and ask them to approve or deny
|
|
32
|
+
* the request", and "the server instructs the user to return to their device"; §3.3.1 — arriving with the code in the
|
|
33
|
+
* address, the server "SHOULD display the `user_code` to the user and ask them to verify that it matches".
|
|
34
|
+
*
|
|
35
|
+
* The page always asks: even a code arriving in the address is shown for comparison before anything is decided, which is
|
|
36
|
+
* the remote-phishing defence the specification recommends (§5.4). A signed-out person is sent to sign in first and
|
|
37
|
+
* returned here with the code intact; signing in is where the organization's authentication policy and second factor
|
|
38
|
+
* apply.
|
|
39
|
+
*
|
|
40
|
+
* Copy is resolved through {@link UserOAuthDeviceVerificationLabel} (component `PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION`);
|
|
41
|
+
* the label metadata lives in the companion-scanned `Auth_OAuthDeviceVerification.labels.ts`.
|
|
42
|
+
*/
|
|
43
|
+
/** Where the page stands. */
|
|
44
|
+
var DeviceVerificationStep;
|
|
45
|
+
(function (DeviceVerificationStep) {
|
|
46
|
+
/** Waiting for the person to type the code. */
|
|
47
|
+
DeviceVerificationStep["ENTER_CODE"] = "enterCode";
|
|
48
|
+
/** A lookup or a decision is in flight. */
|
|
49
|
+
DeviceVerificationStep["BUSY"] = "busy";
|
|
50
|
+
/** The request is shown; the person approves or denies. */
|
|
51
|
+
DeviceVerificationStep["CONFIRM"] = "confirm";
|
|
52
|
+
/** Approved: the device will receive its token. */
|
|
53
|
+
DeviceVerificationStep["APPROVED"] = "approved";
|
|
54
|
+
/** Denied: the device will be refused. */
|
|
55
|
+
DeviceVerificationStep["DENIED"] = "denied";
|
|
56
|
+
})(DeviceVerificationStep || (DeviceVerificationStep = {}));
|
|
57
|
+
/** The label that explains a failed lookup or decision: too many attempts, or no pending request with this code. */
|
|
58
|
+
function failureLabel(error, fallback) {
|
|
59
|
+
// The limit is the framework's refusal envelope (429); a code with no pending request is the OAuth error body (400),
|
|
60
|
+
// which carries no envelope, so its status is read off the rejected request directly.
|
|
61
|
+
if (isBackendRefusal(error) && error.httpStatus === 429)
|
|
62
|
+
return UserOAuthDeviceVerificationLabel.ERROR_TOO_MANY;
|
|
63
|
+
const status = error?.httpStatus;
|
|
64
|
+
if (status === 400)
|
|
65
|
+
return UserOAuthDeviceVerificationLabel.ERROR_NOT_FOUND;
|
|
66
|
+
return fallback;
|
|
67
|
+
}
|
|
68
|
+
/** Default preset implementation for {@link FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION}. */
|
|
69
|
+
export const PublicLayoutPreset_OAuthDeviceVerification_Default = (_props) => {
|
|
70
|
+
const { auth } = useUserOrgs();
|
|
71
|
+
const { tComponent, isReady } = useI18n({ component: FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION });
|
|
72
|
+
const [searchParams] = useSearchParams();
|
|
73
|
+
const codeFromAddress = searchParams.get(OAUTH_DEVICE_VERIFICATION_USER_CODE_PARAM) ?? '';
|
|
74
|
+
const [code, setCode] = useState(codeFromAddress);
|
|
75
|
+
const [step, setStep] = useState(DeviceVerificationStep.ENTER_CODE);
|
|
76
|
+
const [pending, setPending] = useState(null);
|
|
77
|
+
// Held as a label KEY, so the message stays translatable.
|
|
78
|
+
const [errorLabel, setErrorLabel] = useState(null);
|
|
79
|
+
// A synchronous latch: a double click can dispatch twice before React re-renders the busy state.
|
|
80
|
+
const inFlightRef = useRef(false);
|
|
81
|
+
const accessToken = auth?.accessToken;
|
|
82
|
+
const t = (key, params) => tComponent(FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION, key, params);
|
|
83
|
+
const lookUp = useCallback(async (enteredCode) => {
|
|
84
|
+
if (inFlightRef.current || enteredCode.trim() === '')
|
|
85
|
+
return;
|
|
86
|
+
inFlightRef.current = true;
|
|
87
|
+
setStep(DeviceVerificationStep.BUSY);
|
|
88
|
+
setErrorLabel(null);
|
|
89
|
+
try {
|
|
90
|
+
const found = await getManualCallsHttpClient().oauthDeviceLookup(enteredCode);
|
|
91
|
+
setPending(found);
|
|
92
|
+
setStep(DeviceVerificationStep.CONFIRM);
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
setErrorLabel(failureLabel(error, UserOAuthDeviceVerificationLabel.ERROR_GENERIC));
|
|
96
|
+
setStep(DeviceVerificationStep.ENTER_CODE);
|
|
97
|
+
}
|
|
98
|
+
finally {
|
|
99
|
+
inFlightRef.current = false;
|
|
100
|
+
}
|
|
101
|
+
}, []);
|
|
102
|
+
// A code that arrived in the address is looked up at once, then SHOWN for comparison: nothing is decided without the
|
|
103
|
+
// person reading it.
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
if (accessToken && codeFromAddress)
|
|
106
|
+
void lookUp(codeFromAddress);
|
|
107
|
+
}, [accessToken, codeFromAddress, lookUp]);
|
|
108
|
+
const decide = useCallback(async (decision) => {
|
|
109
|
+
if (!pending || inFlightRef.current)
|
|
110
|
+
return;
|
|
111
|
+
inFlightRef.current = true;
|
|
112
|
+
setStep(DeviceVerificationStep.BUSY);
|
|
113
|
+
setErrorLabel(null);
|
|
114
|
+
try {
|
|
115
|
+
const { status } = await getManualCallsHttpClient().oauthDeviceDecision(pending.user_code, decision);
|
|
116
|
+
setStep(status === OAuthDeviceDecisionOutcome.APPROVED ? DeviceVerificationStep.APPROVED : DeviceVerificationStep.DENIED);
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
// The request may already be decided or expired; the person starts again from the device.
|
|
120
|
+
setErrorLabel(failureLabel(error, UserOAuthDeviceVerificationLabel.ERROR_DECISION));
|
|
121
|
+
setPending(null);
|
|
122
|
+
setStep(DeviceVerificationStep.ENTER_CODE);
|
|
123
|
+
}
|
|
124
|
+
finally {
|
|
125
|
+
inFlightRef.current = false;
|
|
126
|
+
}
|
|
127
|
+
}, [pending]);
|
|
128
|
+
// Signed out → sign in, returning to this page with the code intact.
|
|
129
|
+
if (!accessToken) {
|
|
130
|
+
const target = buildAuthRedirectTarget({ pathname: CommonRoutePaths.oauthDeviceVerification, search: `?${searchParams.toString()}` });
|
|
131
|
+
return _jsx(Navigate, { to: appendAuthRedirectToPath(CommonRoutePaths.login, target), replace: true });
|
|
132
|
+
}
|
|
133
|
+
if (!isReady || step === DeviceVerificationStep.BUSY) {
|
|
134
|
+
return (_jsx("div", { className: "py-region flex justify-center", children: _jsx(LoadingSpinner, {}) }));
|
|
135
|
+
}
|
|
136
|
+
if (step === DeviceVerificationStep.APPROVED || step === DeviceVerificationStep.DENIED) {
|
|
137
|
+
return (_jsx("div", { className: "text-center space-y-item-xs", children: _jsx(Heading, { children: t(step === DeviceVerificationStep.APPROVED ? UserOAuthDeviceVerificationLabel.APPROVED : UserOAuthDeviceVerificationLabel.DENIED) }) }));
|
|
138
|
+
}
|
|
139
|
+
if (step === DeviceVerificationStep.CONFIRM && pending) {
|
|
140
|
+
return (_jsxs("div", { className: "space-y-group", children: [_jsxs("div", { className: "text-center space-y-item-xs", children: [_jsx(Heading, { children: t(UserOAuthDeviceVerificationLabel.CONFIRM_TITLE, { clientName: pending.client.name }) }), _jsx(Text, { className: "max-w-sm mx-auto", children: t(UserOAuthDeviceVerificationLabel.CONFIRM_CODE, { userCode: pending.user_code }) })] }), _jsx(Alert, { children: _jsx(AlertDescription, { children: t(UserOAuthDeviceVerificationLabel.POSSESSION_WARNING) }) }), pending.scopes.length > 0 && (_jsxs("div", { className: "space-y-element", children: [_jsx(Text, { className: "font-medium", children: t(UserOAuthDeviceVerificationLabel.SCOPES_INTRO) }), _jsx("ul", { className: "space-y-item-xs", children: pending.scopes.map((scope) => (_jsx("li", { children: _jsx(Text, { children: scope }) }, scope))) })] })), pending.access_reach === OAuthDelegatedAccessReach.WHOLE_ACCOUNT ? (_jsx(Alert, { variant: "destructive", children: _jsx(AlertDescription, { children: t(UserOAuthDeviceVerificationLabel.WHOLE_ACCOUNT_ACCESS) }) })) : (_jsx(Text, { className: "text-sm break-all", children: t(UserOAuthDeviceVerificationLabel.AGENT_ENDPOINT, { resource: pending.resource }) })), pending.keeps_access && _jsx(Text, { className: "text-sm", children: t(UserOAuthDeviceVerificationLabel.KEEPS_ACCESS) }), _jsxs("div", { className: "flex gap-element", children: [_jsx(Button, { variant: ButtonVariants_Variant.OUTLINE, className: "flex-1", onClick: () => decide(OAuthConsentDecision.DENY), children: t(UserOAuthDeviceVerificationLabel.DENY) }), _jsx(Button, { variant: ButtonVariants_Variant.DEFAULT, className: "flex-1", onClick: () => decide(OAuthConsentDecision.APPROVE), children: t(UserOAuthDeviceVerificationLabel.APPROVE) })] })] }));
|
|
141
|
+
}
|
|
142
|
+
return (_jsxs("form", { className: "space-y-group", onSubmit: (event) => {
|
|
143
|
+
event.preventDefault();
|
|
144
|
+
void lookUp(code);
|
|
145
|
+
}, children: [_jsxs("div", { className: "text-center space-y-item-xs", children: [_jsx(Heading, { children: t(UserOAuthDeviceVerificationLabel.TITLE) }), _jsx(Text, { className: "max-w-sm mx-auto", children: t(UserOAuthDeviceVerificationLabel.SUB_TITLE) })] }), errorLabel && (_jsx(Alert, { variant: "destructive", children: _jsx(AlertDescription, { children: t(errorLabel) }) })), _jsxs("label", { className: "block space-y-item-xs", children: [_jsx(Text, { className: "font-medium", children: t(UserOAuthDeviceVerificationLabel.CODE_FIELD) }), _jsx(Input, { name: "user_code", schema: z.string(), type: "text", autoComplete: "one-time-code", value: code, onChange: (value) => setCode(String(value)) })] }), _jsx(Button, { type: "submit", variant: ButtonVariants_Variant.DEFAULT, className: "w-full", disabled: code.trim() === '', children: t(UserOAuthDeviceVerificationLabel.CONTINUE) })] }));
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Preset-resolving wrapper for the device verification page (mirrors every other `PUBLIC_LAYOUTS` page). Resolves
|
|
149
|
+
* `PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION` to its registered preset, so an application can swap in a branded page
|
|
150
|
+
* through the component registry.
|
|
151
|
+
*/
|
|
152
|
+
export function Auth_OAuthDeviceVerification({ preset = CorePresetNames.DEFAULT, ...props }) {
|
|
153
|
+
const Component = createComponentResolver(FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION, 'Auth_OAuthDeviceVerification')(preset);
|
|
154
|
+
return _jsx(Component, { ...props });
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=Auth_OAuthDeviceVerification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Auth_OAuthDeviceVerification.js","sourceRoot":"","sources":["../../../../src/components/auth/Auth_OAuthDeviceVerification.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EACL,yCAAyC,EACzC,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,GAE3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AAE/H,OAAO,EAAE,uBAAuB,EAAE,MAAM,iFAAiF,CAAC;AAC1H,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,KAAK,EAAE,MAAM,oDAAoD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mFAAmF,CAAC;AAC7H,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AO,EAAE,sBAAsB,CAAC,OAAO,EAAE,SAAS,EAAC,QAAQ,EAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,YAC3G,CAAC,CAAC,gCAAgC,CAAC,QAAQ,CAAC,GACtC,IACJ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAAC,EAC3C,MAAM,GAAG,eAAe,CAAC,OAAO,EAChC,GAAG,KAAK,EACuE;IAC/E,MAAM,SAAS,GAAG,uBAAuB,CACvC,qBAAqB,CAAC,wCAAwC,EAC9D,8BAA8B,CAC/B,CAAC,MAAM,CAAC,CAAC;IACV,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport { z } from 'zod';\nimport { Navigate, useSearchParams } from 'react-router';\nimport {\n OAUTH_DEVICE_VERIFICATION_USER_CODE_PARAM,\n OAuthConsentDecision,\n OAuthDelegatedAccessReach,\n OAuthDeviceDecisionOutcome,\n type OAuthDeviceLookupResponse,\n} from '@wildo-ai/saas-models';\nimport { CorePresetNames, FrontendComponentType, UserOAuthDeviceVerificationLabel } from '@wildo-ai/presets-components-models';\nimport { ComponentPresetProps } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas';\nimport { createComponentResolver } from '~wildo-frontend-lib/core/components-registry/component-resolver.frontend.helper';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { Input } from '~wildo-frontend-lib/components/form/controls/input';\nimport { Heading } from '~wildo-frontend-lib/components/typography/heading';\nimport { Text } from '~wildo-frontend-lib/components/typography/text';\nimport { Alert, AlertDescription } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { LoadingSpinner } from '~wildo-frontend-lib/components/feedback/loading-spinner';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { getManualCallsHttpClient } from '~wildo-frontend-lib/core/requests/wildo-http-client-manual-calls.frontend.service';\nimport { isBackendRefusal } from '~wildo-frontend-lib/core/errors/backend-refusal.frontend';\nimport { useUserOrgs } from '~wildo-frontend-lib/core/security/useUserOrgs';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport { appendAuthRedirectToPath, buildAuthRedirectTarget } from '~wildo-frontend-lib/core/security/auth-redirect.frontend.utils';\n\n/**\n * The OAuth device authorization grant's verification page, the body rendered by `AuthPage_OAuthDeviceVerification`.\n *\n * A client with no browser of its own (a command-line tool, an agent host) showed the person a short code and this page's\n * address. Signed in here, the person types the code (or arrives with it already in the address, from a QR code or a\n * link), sees which client asks to act for them, for which identity scopes, at which agent endpoint or with access to\n * their whole account, and whether it keeps that access after today, and the code again, and approves or denies. An\n * approval that hands lasting or whole-account access asks the person to confirm who they are again first (the shared\n * re-authentication dialog the http client opens on the server's step-up refusal). The device learns the outcome on its next poll; nothing is sent back to it from here.\n *\n * spec-cite: RFC 8628 §3.3 — the server \"prompts the end user to identify the device authorization session by entering\n * the `user_code`\", \"should then inform the user about the action they are undertaking and ask them to approve or deny\n * the request\", and \"the server instructs the user to return to their device\"; §3.3.1 — arriving with the code in the\n * address, the server \"SHOULD display the `user_code` to the user and ask them to verify that it matches\".\n *\n * The page always asks: even a code arriving in the address is shown for comparison before anything is decided, which is\n * the remote-phishing defence the specification recommends (§5.4). A signed-out person is sent to sign in first and\n * returned here with the code intact; signing in is where the organization's authentication policy and second factor\n * apply.\n *\n * Copy is resolved through {@link UserOAuthDeviceVerificationLabel} (component `PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION`);\n * the label metadata lives in the companion-scanned `Auth_OAuthDeviceVerification.labels.ts`.\n */\n\n/** Where the page stands. */\nenum DeviceVerificationStep {\n /** Waiting for the person to type the code. */\n ENTER_CODE = 'enterCode',\n /** A lookup or a decision is in flight. */\n BUSY = 'busy',\n /** The request is shown; the person approves or denies. */\n CONFIRM = 'confirm',\n /** Approved: the device will receive its token. */\n APPROVED = 'approved',\n /** Denied: the device will be refused. */\n DENIED = 'denied',\n}\n\n/**\n * Props for the device verification preset. The page is driven by the address (the optional code) and the session, so it\n * takes no props; the interface satisfies the preset-wrapper contract every `PUBLIC_LAYOUTS` page shares.\n */\nexport interface PublicLayoutPreset_OAuthDeviceVerification_DefaultProps {\n /** Reserved: the page is address- and session-driven and accepts no props. */\n readonly _selfDriven?: never;\n}\n\n/** The label that explains a failed lookup or decision: too many attempts, or no pending request with this code. */\nfunction failureLabel(error: unknown, fallback: UserOAuthDeviceVerificationLabel): UserOAuthDeviceVerificationLabel {\n // The limit is the framework's refusal envelope (429); a code with no pending request is the OAuth error body (400),\n // which carries no envelope, so its status is read off the rejected request directly.\n if (isBackendRefusal(error) && error.httpStatus === 429) return UserOAuthDeviceVerificationLabel.ERROR_TOO_MANY;\n const status = (error as { httpStatus?: unknown } | null)?.httpStatus;\n if (status === 400) return UserOAuthDeviceVerificationLabel.ERROR_NOT_FOUND;\n return fallback;\n}\n\n/** Default preset implementation for {@link FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION}. */\nexport const PublicLayoutPreset_OAuthDeviceVerification_Default = (\n _props: PublicLayoutPreset_OAuthDeviceVerification_DefaultProps,\n): React.JSX.Element => {\n const { auth } = useUserOrgs();\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION });\n const [searchParams] = useSearchParams();\n const codeFromAddress = searchParams.get(OAUTH_DEVICE_VERIFICATION_USER_CODE_PARAM) ?? '';\n const [code, setCode] = useState(codeFromAddress);\n const [step, setStep] = useState<DeviceVerificationStep>(DeviceVerificationStep.ENTER_CODE);\n const [pending, setPending] = useState<OAuthDeviceLookupResponse | null>(null);\n // Held as a label KEY, so the message stays translatable.\n const [errorLabel, setErrorLabel] = useState<UserOAuthDeviceVerificationLabel | null>(null);\n // A synchronous latch: a double click can dispatch twice before React re-renders the busy state.\n const inFlightRef = useRef(false);\n const accessToken = auth?.accessToken;\n\n const t = (key: string, params?: Record<string, string>): string =>\n tComponent(FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION, key, params);\n\n const lookUp = useCallback(async (enteredCode: string) => {\n if (inFlightRef.current || enteredCode.trim() === '') return;\n inFlightRef.current = true;\n setStep(DeviceVerificationStep.BUSY);\n setErrorLabel(null);\n try {\n const found = await getManualCallsHttpClient().oauthDeviceLookup(enteredCode);\n setPending(found);\n setStep(DeviceVerificationStep.CONFIRM);\n } catch (error) {\n setErrorLabel(failureLabel(error, UserOAuthDeviceVerificationLabel.ERROR_GENERIC));\n setStep(DeviceVerificationStep.ENTER_CODE);\n } finally {\n inFlightRef.current = false;\n }\n }, []);\n\n // A code that arrived in the address is looked up at once, then SHOWN for comparison: nothing is decided without the\n // person reading it.\n useEffect(() => {\n if (accessToken && codeFromAddress) void lookUp(codeFromAddress);\n }, [accessToken, codeFromAddress, lookUp]);\n\n const decide = useCallback(async (decision: OAuthConsentDecision) => {\n if (!pending || inFlightRef.current) return;\n inFlightRef.current = true;\n setStep(DeviceVerificationStep.BUSY);\n setErrorLabel(null);\n try {\n const { status } = await getManualCallsHttpClient().oauthDeviceDecision(pending.user_code, decision);\n setStep(status === OAuthDeviceDecisionOutcome.APPROVED ? DeviceVerificationStep.APPROVED : DeviceVerificationStep.DENIED);\n } catch (error) {\n // The request may already be decided or expired; the person starts again from the device.\n setErrorLabel(failureLabel(error, UserOAuthDeviceVerificationLabel.ERROR_DECISION));\n setPending(null);\n setStep(DeviceVerificationStep.ENTER_CODE);\n } finally {\n inFlightRef.current = false;\n }\n }, [pending]);\n\n // Signed out → sign in, returning to this page with the code intact.\n if (!accessToken) {\n const target = buildAuthRedirectTarget({ pathname: CommonRoutePaths.oauthDeviceVerification, search: `?${searchParams.toString()}` });\n return <Navigate to={appendAuthRedirectToPath(CommonRoutePaths.login, target)} replace />;\n }\n\n if (!isReady || step === DeviceVerificationStep.BUSY) {\n return (\n <div className=\"py-region flex justify-center\">\n <LoadingSpinner />\n </div>\n );\n }\n\n if (step === DeviceVerificationStep.APPROVED || step === DeviceVerificationStep.DENIED) {\n return (\n <div className=\"text-center space-y-item-xs\">\n <Heading>{t(step === DeviceVerificationStep.APPROVED ? UserOAuthDeviceVerificationLabel.APPROVED : UserOAuthDeviceVerificationLabel.DENIED)}</Heading>\n </div>\n );\n }\n\n if (step === DeviceVerificationStep.CONFIRM && pending) {\n return (\n <div className=\"space-y-group\">\n <div className=\"text-center space-y-item-xs\">\n <Heading>{t(UserOAuthDeviceVerificationLabel.CONFIRM_TITLE, { clientName: pending.client.name })}</Heading>\n <Text className=\"max-w-sm mx-auto\">{t(UserOAuthDeviceVerificationLabel.CONFIRM_CODE, { userCode: pending.user_code })}</Text>\n </div>\n <Alert>\n <AlertDescription>{t(UserOAuthDeviceVerificationLabel.POSSESSION_WARNING)}</AlertDescription>\n </Alert>\n {pending.scopes.length > 0 && (\n <div className=\"space-y-element\">\n <Text className=\"font-medium\">{t(UserOAuthDeviceVerificationLabel.SCOPES_INTRO)}</Text>\n <ul className=\"space-y-item-xs\">\n {pending.scopes.map((scope) => (\n <li key={scope}>\n <Text>{scope}</Text>\n </li>\n ))}\n </ul>\n </div>\n )}\n {/* What the approval reaches: whole-account access is never described as an agent endpoint (RFC 8628 §3.3, §5.4). */}\n {pending.access_reach === OAuthDelegatedAccessReach.WHOLE_ACCOUNT ? (\n <Alert variant=\"destructive\">\n <AlertDescription>{t(UserOAuthDeviceVerificationLabel.WHOLE_ACCOUNT_ACCESS)}</AlertDescription>\n </Alert>\n ) : (\n <Text className=\"text-sm break-all\">{t(UserOAuthDeviceVerificationLabel.AGENT_ENDPOINT, { resource: pending.resource })}</Text>\n )}\n {pending.keeps_access && <Text className=\"text-sm\">{t(UserOAuthDeviceVerificationLabel.KEEPS_ACCESS)}</Text>}\n <div className=\"flex gap-element\">\n <Button variant={ButtonVariants_Variant.OUTLINE} className=\"flex-1\" onClick={() => decide(OAuthConsentDecision.DENY)}>\n {t(UserOAuthDeviceVerificationLabel.DENY)}\n </Button>\n <Button variant={ButtonVariants_Variant.DEFAULT} className=\"flex-1\" onClick={() => decide(OAuthConsentDecision.APPROVE)}>\n {t(UserOAuthDeviceVerificationLabel.APPROVE)}\n </Button>\n </div>\n </div>\n );\n }\n\n return (\n <form\n className=\"space-y-group\"\n onSubmit={(event) => {\n event.preventDefault();\n void lookUp(code);\n }}\n >\n <div className=\"text-center space-y-item-xs\">\n <Heading>{t(UserOAuthDeviceVerificationLabel.TITLE)}</Heading>\n <Text className=\"max-w-sm mx-auto\">{t(UserOAuthDeviceVerificationLabel.SUB_TITLE)}</Text>\n </div>\n {errorLabel && (\n <Alert variant=\"destructive\">\n <AlertDescription>{t(errorLabel)}</AlertDescription>\n </Alert>\n )}\n <label className=\"block space-y-item-xs\">\n <Text className=\"font-medium\">{t(UserOAuthDeviceVerificationLabel.CODE_FIELD)}</Text>\n <Input\n name=\"user_code\"\n schema={z.string()}\n type=\"text\"\n autoComplete=\"one-time-code\"\n value={code}\n onChange={(value) => setCode(String(value))}\n />\n </label>\n <Button type=\"submit\" variant={ButtonVariants_Variant.DEFAULT} className=\"w-full\" disabled={code.trim() === ''}>\n {t(UserOAuthDeviceVerificationLabel.CONTINUE)}\n </Button>\n </form>\n );\n};\n\n/**\n * Preset-resolving wrapper for the device verification page (mirrors every other `PUBLIC_LAYOUTS` page). Resolves\n * `PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION` to its registered preset, so an application can swap in a branded page\n * through the component registry.\n */\nexport function Auth_OAuthDeviceVerification({\n preset = CorePresetNames.DEFAULT,\n ...props\n}: PublicLayoutPreset_OAuthDeviceVerification_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const Component = createComponentResolver<PublicLayoutPreset_OAuthDeviceVerification_DefaultProps>(\n FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION,\n 'Auth_OAuthDeviceVerification',\n )(preset);\n return <Component {...props} />;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Auth_OAuthDeviceVerification.labels.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/Auth_OAuthDeviceVerification.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EAGzB,MAAM,qCAAqC,CAAC;AAO7C,eAAO,MAAM,0CAA0C,EAAE,mBAAmB,EAmG3E,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { FrontendComponentType, LabelKind, registerComponentLabels, UserOAuthDeviceVerificationLabel, } from '@wildo-ai/presets-components-models';
|
|
2
|
+
// Companion-only label metadata for the OAuth device verification page: keys + params + per-key purpose / kind.
|
|
3
|
+
// Statically scanned by the dev companion to plan `components.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION.*` label
|
|
4
|
+
// generation; NOT imported at runtime, so these description strings never ship in the browser bundle (see
|
|
5
|
+
// `labels-bundle-isolation.test.ts`).
|
|
6
|
+
export const PublicLayoutsOAuthDeviceVerificationLabels = [
|
|
7
|
+
{
|
|
8
|
+
ref: UserOAuthDeviceVerificationLabel.TITLE,
|
|
9
|
+
kind: LabelKind.HEADING,
|
|
10
|
+
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',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
ref: UserOAuthDeviceVerificationLabel.SUB_TITLE,
|
|
14
|
+
kind: LabelKind.DESCRIPTION,
|
|
15
|
+
purpose: 'Supporting line asking the person to type the short code shown on their device or in their terminal',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
ref: UserOAuthDeviceVerificationLabel.CODE_FIELD,
|
|
19
|
+
kind: LabelKind.LABEL,
|
|
20
|
+
purpose: 'Label of the field where the person types the code their device shows (eight letters, for example WDJB-MJHT)',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
ref: UserOAuthDeviceVerificationLabel.CONTINUE,
|
|
24
|
+
kind: LabelKind.BUTTON,
|
|
25
|
+
purpose: 'Button that checks the typed code and shows which application asks for access',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
ref: UserOAuthDeviceVerificationLabel.CONFIRM_TITLE,
|
|
29
|
+
kind: LabelKind.HEADING,
|
|
30
|
+
params: [{ key: 'clientName', meaning: 'display name of the application asking to act on the person\'s behalf from the device (e.g. "Acme CLI")' }],
|
|
31
|
+
purpose: 'Heading telling the person that a named application on a device wants to act on their behalf',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
ref: UserOAuthDeviceVerificationLabel.CONFIRM_CODE,
|
|
35
|
+
kind: LabelKind.DESCRIPTION,
|
|
36
|
+
params: [{ key: 'userCode', meaning: 'the code the person entered, with its dash (e.g. "WDJB-MJHT")' }],
|
|
37
|
+
purpose: 'Asks the person to check that their device shows exactly this code before approving',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
ref: UserOAuthDeviceVerificationLabel.POSSESSION_WARNING,
|
|
41
|
+
kind: LabelKind.MESSAGE,
|
|
42
|
+
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',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
ref: UserOAuthDeviceVerificationLabel.SCOPES_INTRO,
|
|
46
|
+
kind: LabelKind.LABEL,
|
|
47
|
+
purpose: 'Label introducing the list of identity scopes (such as profile or email) the application asks for',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
ref: UserOAuthDeviceVerificationLabel.AGENT_ENDPOINT,
|
|
51
|
+
kind: LabelKind.LABEL,
|
|
52
|
+
params: [{ key: 'resource', meaning: 'the agent endpoint URL the access will be confined to' }],
|
|
53
|
+
purpose: 'Shows the specific agent endpoint the access is confined to',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
ref: UserOAuthDeviceVerificationLabel.WHOLE_ACCOUNT_ACCESS,
|
|
57
|
+
kind: LabelKind.DESCRIPTION,
|
|
58
|
+
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',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
ref: UserOAuthDeviceVerificationLabel.KEEPS_ACCESS,
|
|
62
|
+
kind: LabelKind.DESCRIPTION,
|
|
63
|
+
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',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
ref: UserOAuthDeviceVerificationLabel.APPROVE,
|
|
67
|
+
kind: LabelKind.BUTTON,
|
|
68
|
+
purpose: 'Button that lets the device act on the person\'s behalf',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
ref: UserOAuthDeviceVerificationLabel.DENY,
|
|
72
|
+
kind: LabelKind.BUTTON,
|
|
73
|
+
purpose: 'Button that refuses the device\'s request',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
ref: UserOAuthDeviceVerificationLabel.APPROVED,
|
|
77
|
+
kind: LabelKind.HEADING,
|
|
78
|
+
purpose: 'Confirmation that the device is connected and the person can return to it',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
ref: UserOAuthDeviceVerificationLabel.DENIED,
|
|
82
|
+
kind: LabelKind.HEADING,
|
|
83
|
+
purpose: 'Confirmation that the device\'s request was refused and it will not get access',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
ref: UserOAuthDeviceVerificationLabel.ERROR_NOT_FOUND,
|
|
87
|
+
kind: LabelKind.MESSAGE,
|
|
88
|
+
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',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
ref: UserOAuthDeviceVerificationLabel.ERROR_TOO_MANY,
|
|
92
|
+
kind: LabelKind.MESSAGE,
|
|
93
|
+
purpose: 'Error shown after too many wrong codes, asking the person to wait a few minutes before trying again',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
ref: UserOAuthDeviceVerificationLabel.ERROR_DECISION,
|
|
97
|
+
kind: LabelKind.MESSAGE,
|
|
98
|
+
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',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
ref: UserOAuthDeviceVerificationLabel.ERROR_GENERIC,
|
|
102
|
+
kind: LabelKind.MESSAGE,
|
|
103
|
+
purpose: 'Generic fallback error shown when the page fails unexpectedly',
|
|
104
|
+
},
|
|
105
|
+
];
|
|
106
|
+
registerComponentLabels(FrontendComponentType.PUBLIC_LAYOUTS_OAUTH_DEVICE_VERIFICATION, PublicLayoutsOAuthDeviceVerificationLabels);
|
|
107
|
+
//# sourceMappingURL=Auth_OAuthDeviceVerification.labels.js.map
|