@wildo-ai/saas-frontend-lib 1.1.16 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +114 -26
- package/LICENSE.enterprise +129 -0
- package/dist/esm/companion-exports.d.ts +5 -2
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js +4 -2
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/components/actions/action-bar.d.ts +16 -1
- package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
- package/dist/esm/components/actions/action-bar.js.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
- package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.js +14 -7
- package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.js +15 -0
- package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
- package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
- package/dist/esm/components/auth/Auth_Main.js +5 -0
- package/dist/esm/components/auth/Auth_Main.js.map +1 -1
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
- package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
- package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.js +40 -7
- package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.js +9 -1
- package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
- package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
- package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts.map +1 -1
- package/dist/esm/components/compliance/EmbeddedSigningFrame.js +17 -6
- package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
- package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayField.js +67 -45
- package/dist/esm/components/data-display/DisplayField.js.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
- package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/data-display/approval-seal.d.ts +7 -5
- package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -1
- package/dist/esm/components/data-display/approval-seal.js +10 -4
- package/dist/esm/components/data-display/approval-seal.js.map +1 -1
- package/dist/esm/components/data-display/signature-requests.d.ts +81 -0
- package/dist/esm/components/data-display/signature-requests.d.ts.map +1 -0
- package/dist/esm/components/data-display/signature-requests.js +123 -0
- package/dist/esm/components/data-display/signature-requests.js.map +1 -0
- package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
- package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
- package/dist/esm/components/feedback/empty-state-marker.js +16 -0
- package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
- package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/empty-state.js +2 -1
- package/dist/esm/components/feedback/empty-state.js.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.js +2 -1
- package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.d.ts +25 -1
- package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.js +22 -24
- package/dist/esm/components/flows-actors/approval.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.js +30 -0
- package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
- package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
- package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
- package/dist/esm/components/form/Form.d.ts +2 -0
- package/dist/esm/components/form/Form.d.ts.map +1 -1
- package/dist/esm/components/form/Form.js +1 -0
- package/dist/esm/components/form/Form.js.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
- package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
- package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
- package/dist/esm/components/form/automated/FormField.d.ts +5 -3
- package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/FormField.js +38 -13
- package/dist/esm/components/form/automated/FormField.js.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js +75 -47
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
- package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
- package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
- package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
- package/dist/esm/components/navigation/NavigationItemBadge.d.ts +16 -0
- package/dist/esm/components/navigation/NavigationItemBadge.d.ts.map +1 -1
- package/dist/esm/components/navigation/NavigationItemBadge.js +14 -2
- package/dist/esm/components/navigation/NavigationItemBadge.js.map +1 -1
- package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.d.ts +3 -3
- package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js +3 -3
- package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js.map +1 -1
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts +5 -13
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +30 -255
- package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts +22 -1
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +57 -26
- package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +40 -4
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts +1 -1
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +26 -4
- package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts +31 -0
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts.map +1 -0
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js +42 -0
- package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js.map +1 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts +76 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts.map +1 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js +268 -0
- package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js.map +1 -0
- package/dist/esm/components/navigation/command.d.ts +5 -0
- package/dist/esm/components/navigation/command.d.ts.map +1 -1
- package/dist/esm/components/navigation/command.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js +51 -12
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +21 -7
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.js +17 -7
- package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +4 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
- package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
- package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js +4 -1
- package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js.map +1 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +4 -1
- package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
- package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.d.ts.map +1 -1
- package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js +4 -1
- package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js.map +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
- package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
- package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/Group.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/Group.js +4 -1
- package/dist/esm/components/resources/skeleton/Group.js.map +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
- package/dist/esm/components/sections/ContentSectionContainer.d.ts.map +1 -1
- package/dist/esm/components/sections/ContentSectionContainer.js +11 -7
- package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
- package/dist/esm/components/sections/content-section.d.ts +1 -3
- package/dist/esm/components/sections/content-section.d.ts.map +1 -1
- package/dist/esm/components/sections/content-section.js.map +1 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +2 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -1
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +12 -0
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +28 -6
- package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js.map +1 -1
- package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
- package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
- package/dist/esm/components/settings/SettingsHub.js +14 -4
- package/dist/esm/components/settings/SettingsHub.js.map +1 -1
- package/dist/esm/components/typography/document-heading-level.d.ts +28 -0
- package/dist/esm/components/typography/document-heading-level.d.ts.map +1 -0
- package/dist/esm/components/typography/document-heading-level.js +63 -0
- package/dist/esm/components/typography/document-heading-level.js.map +1 -0
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.js +52 -22
- package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.js +76 -3
- package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
- package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
- package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +47 -12
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +87 -32
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +8 -8
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js +7 -3
- package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js +6 -2
- package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +8 -2
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js +13 -9
- package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +9 -8
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js +2 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +10 -11
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js +2 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js +5 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +7 -3
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
- package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
- package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
- package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
- package/dist/esm/core/app-shell/app-shell.schemas.d.ts +87 -16
- package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
- package/dist/esm/core/app-shell/app-shell.schemas.js +16 -0
- package/dist/esm/core/app-shell/app-shell.schemas.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
- package/dist/esm/core/billing/BillingContext.d.ts +27 -4
- package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
- package/dist/esm/core/billing/BillingContext.js +61 -2
- package/dist/esm/core/billing/BillingContext.js.map +1 -1
- package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
- package/dist/esm/core/billing/useBillingAction.js +3 -2
- package/dist/esm/core/billing/useBillingAction.js.map +1 -1
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
- package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
- package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
- package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
- package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
- package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.js +1 -0
- package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
- package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.js +12 -0
- package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
- package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
- package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
- package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.js +31 -0
- package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
- package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
- package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
- package/dist/esm/core/events/NotificationContext.js +19 -2
- package/dist/esm/core/events/NotificationContext.js.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
- package/dist/esm/core/execution/useExecution.d.ts +3 -3
- package/dist/esm/core/execution/useExecution.js.map +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
- package/dist/esm/core/features/FeatureGate.d.ts +13 -1
- package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
- package/dist/esm/core/features/FeatureGate.js +6 -1
- package/dist/esm/core/features/FeatureGate.js.map +1 -1
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
- package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
- package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
- package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
- package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
- package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
- package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useFeatureAvailability.js +4 -0
- package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
- package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
- package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
- package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
- package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
- package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
- package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
- package/dist/esm/core/navigation/home-resolution.js +46 -0
- package/dist/esm/core/navigation/home-resolution.js.map +1 -0
- package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
- package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.js +13 -18
- package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
- package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
- package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
- package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
- package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
- package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
- package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
- package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.js +25 -0
- package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
- package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
- package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
- package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.js +26 -0
- package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.js +47 -0
- package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +66 -10
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +63 -8
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.js +45 -3
- package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
- package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
- package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
- package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +11 -33
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
- package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
- package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
- package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
- package/dist/esm/core/runtime/identity-routes.js +50 -0
- package/dist/esm/core/runtime/identity-routes.js.map +1 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
- package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
- package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
- package/dist/esm/core/search/command-score.d.ts +33 -0
- package/dist/esm/core/search/command-score.d.ts.map +1 -0
- package/dist/esm/core/search/command-score.js +109 -0
- package/dist/esm/core/search/command-score.js.map +1 -0
- package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.js +4 -0
- package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
- package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.js +7 -2
- package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
- package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
- package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
- package/dist/esm/core/ui/design-token.utils.js +24 -3
- package/dist/esm/core/ui/design-token.utils.js.map +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
- package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/index.d.ts +19 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +22 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/testing/mock-builders.d.ts +1 -1
- package/dist/esm/testing/mock-builders.d.ts.map +1 -1
- package/dist/esm/testing/mock-builders.js +1 -0
- package/dist/esm/testing/mock-builders.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -6
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout_AuthenticatedRoute.js","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_AuthenticatedRoute.tsx"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;AAEH,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAC;AAChG,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAClI,OAAO,EACL,uBAAuB,EACvB,uBAAuB,GAExB,MAAM,4EAA4E,CAAC;AACpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,oEAAoE,CAAC;AACtH,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAC1G,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AA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ACO,CAC7C,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * AppLayout_AuthenticatedRoute\n *\n * Layout route component for authenticated pages.\n * Uses React Router's Outlet to render nested routes inside the MainContainer shell.\n *\n * This ensures that ALL authenticated routes (resource pages, home, etc.)\n * are wrapped with the application shell (sidebar, menubar, etc.)\n */\n\nimport React, { useContext, useEffect, useMemo, useRef } from 'react';\nimport { Outlet, Navigate, useLocation, useNavigate } from 'react-router';\nimport { ErrorCustomMessageReference, ErrorType } from '@wildo-ai/saas-models';\nimport { useUserOrgs } from '~wildo-frontend-lib/core/security/useUserOrgs';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport {\n appendAuthRedirectToPath,\n buildAuthRedirectTarget,\n} from '~wildo-frontend-lib/core/security/auth-redirect.frontend.utils';\nimport { useRouteOrganizationAccess, useRouteOrganizationId } from '~wildo-frontend-lib/core/security/useRouteOrganizationAccess';\nimport {\n RouteOrganizationAccess,\n RouteOrganizationFollow,\n type RouteOrganizationDecision,\n} from '~wildo-frontend-lib/core/security/route-organization-access.frontend.utils';\nimport { RouteOrganizationDecisionContext } from '~wildo-frontend-lib/core/security/RouteOrganizationDecisionContext';\nimport { useRouteOrganizationFollow } from '~wildo-frontend-lib/core/security/useRouteOrganizationFollow';\nimport { useNotification } from '~wildo-frontend-lib/core/events/useNotification';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { resolveUserFacingErrorMessage } from '~wildo-frontend-lib/core/errors/user-facing-error-message.frontend.utils';\nimport { LoadingSpinner } from '~wildo-frontend-lib/components/feedback/loading-spinner';\nimport { AppLayout_MainContainer } from './AppLayout_MainContainer';\nimport { AppLayout_ConsentGate } from './AppLayout_ConsentGate';\nimport { AppLayout_DocumentAcceptanceGate } from './AppLayout_DocumentAcceptanceGate';\nimport { ApplicationContext } from '~wildo-frontend-lib/core/runtime/ApplicationContext.shared';\n\ninterface AppLayout_AuthenticatedRouteProps {\n /** Redirect path for unauthenticated users */\n redirectTo?: string;\n}\n\n/**\n * A spinner in place of page content.\n *\n * I-5: the registry-resolved `LoadingSpinner` exposes `role=\"status\"` + `aria-live=\"polite\"` for screen\n * readers; no text is rendered here intentionally — i18n is not guaranteed to be ready during the early\n * auth-restore phase, and a localized aria-label would couple this layout to a component-scope translation\n * key it has no natural home for.\n */\nconst AppLayout_ContentLoading: React.FC = () => (\n <div className=\"flex items-center justify-center w-full min-h-[200px]\">\n <LoadingSpinner />\n </div>\n);\n\n/**\n * Leaves a route whose organization the server refused to this account: sends it to the home page and says why.\n *\n * The words come from `errors_messages` / `errors_guidance` under\n * {@link ErrorCustomMessageReference.AUTHORIZATION_ORGANIZATION_NOT_ACCESSIBLE}, through the same resolver\n * the global error toast uses, so this notice is authored and translated like every other error.\n *\n * The ref guards a single notice per refusal: StrictMode runs the effect twice, and the translators change\n * identity on every i18n render.\n */\nconst AppLayout_OrganizationAccessRefused: React.FC = () => {\n const navigate = useNavigate();\n const { notifyWarning } = useNotification();\n const { tErrorMessage, tErrorGuidance } = useI18n();\n const handledRef = useRef(false);\n\n useEffect(() => {\n if (handledRef.current) {\n return;\n }\n handledRef.current = true;\n notifyWarning(resolveUserFacingErrorMessage(\n { type: ErrorType.AUTHORIZATION, customMessageReference: ErrorCustomMessageReference.AUTHORIZATION_ORGANIZATION_NOT_ACCESSIBLE },\n { translators: { tErrorMessage, tErrorGuidance } },\n ));\n navigate(CommonRoutePaths.home, { replace: true });\n }, [navigate, notifyWarning, tErrorMessage, tErrorGuidance]);\n\n return <AppLayout_ContentLoading />;\n};\n\n/**\n * Layout route that wraps authenticated content with MainContainer.\n * Redirects to login if user is not authenticated.\n * Waits while authenticated restore is still unresolved so the shell does not\n * render against prevalidated scope hints. After restore completes, a missing\n * AppScope organization remains a valid authenticated shell state.\n *\n * A route addressing an organization this account cannot open is left for the\n * home page with a notice, before any page content loads (see\n * {@link RouteOrganizationAccess}). This is the one layout every signed-in route\n * renders through, so resource, composite, chart, custom, flows and execution\n * routes are all covered, whatever path brought the person there.\n *\n * A route addressing an organization this account IS an active member of makes it the session's current\n * organization before the page renders (see {@link RouteOrganizationFollow}, #2247), so every request and every\n * reader of the current organization agrees with the organization the page shows. The decision is also published\n * to the navigation zones, which hold their own entries by it (#2276): in session the page is a zone entry, and the\n * entry is pushed before the route moves.\n */\nexport const AppLayout_AuthenticatedRoute: React.FC<AppLayout_AuthenticatedRouteProps> = ({\n redirectTo = CommonRoutePaths.login,\n}) => {\n const { auth } = useUserOrgs();\n const shellCompanions = useContext(ApplicationContext)?.shellCompanions ?? [];\n const appScope = useAppScopeSafe();\n const location = useLocation();\n const routeOrganizationAccess = useRouteOrganizationAccess();\n // The session follows the organization the route names (#2247): see `RouteOrganizationFollow`.\n const routeOrganizationFollow = useRouteOrganizationFollow(routeOrganizationAccess);\n const routeOrganizationId = useRouteOrganizationId() ?? null;\n // The route's content is withheld while its organization is verified, refused, or being followed. Published to the\n // navigation zones (#2276): in session the page is rendered from the zone stacks, not this outlet, so a zone entry\n // addressing the route's organization is held by this same decision (`decideZoneEntryOrganizationHold`).\n const routeContentHeld = routeOrganizationAccess === RouteOrganizationAccess.VERIFYING\n || routeOrganizationAccess === RouteOrganizationAccess.REFUSED\n || routeOrganizationFollow === RouteOrganizationFollow.FOLLOWING;\n const routeOrganizationDecision = useMemo<RouteOrganizationDecision>(\n () => ({ routeOrganizationId, routeContentHeld }),\n [routeOrganizationId, routeContentHeld],\n );\n const currentOrganizationId = appScope?.currentOrganizationId;\n const isAuthenticated = !!auth.accessToken;\n const redirectTarget = buildAuthRedirectTarget(location);\n const loginRedirectPath = appendAuthRedirectToPath(redirectTo, redirectTarget);\n\n // Not authenticated - redirect to login\n if (!isAuthenticated) {\n return <Navigate to={loginRedirectPath} replace />;\n }\n\n // Wait while restore is unresolved so children do not render against\n // prevalidated organization hints. Once restore is complete, missing org is\n // still a valid authenticated shell state for org-optional flows.\n if (auth.isRestoringSession || (!auth.sessionRestored && !currentOrganizationId)) {\n return (\n <AppLayout_MainContainer>\n <AppLayout_ContentLoading />\n </AppLayout_MainContainer>\n );\n }\n\n // The page's own reads would carry the route's organization, so the route outlet (which syncs the route\n // into the navigation zones and starts those reads) is withheld until the server has answered. Only the\n // outlet is swapped: the shell below keeps the same element tree, so the sidebar, menubar and zone stacks\n // stay mounted while an organization is verified.\n let routeContent: React.ReactNode = <Outlet />;\n // Likewise while the session is being moved into the route's organization (#2247): the page's reads and roles\n // must start in the organization the page shows, never in the one the session was in before. (Features are then\n // refetched for it; until they land `FeaturesContext` reports loading, which its readers wait on.)\n if (routeOrganizationAccess === RouteOrganizationAccess.REFUSED) {\n routeContent = <AppLayout_OrganizationAccessRefused />;\n } else if (routeContentHeld) {\n routeContent = <AppLayout_ContentLoading />;\n }\n\n // The consent gate wraps the SHELL, never the outlet. Signed-in page content is rendered from the\n // navigation zone stacks, and this outlet is only the PRIMARY zone's fallback while that stack is empty —\n // it is unmounted once the route has synced into the stack. A gate around it left the page after that sync\n // (a live browser never showed the prompt, #977), and the shell could navigate past it. Around the shell it\n // holds on every signed-in render: a missing REQUIRED purpose withholds the whole application (its panel\n // carries sign-out), and an undecided optional purpose prompts in a fixed panel over it. See\n // `AppLayout_ConsentGate`.\n // The document acceptance gate sits OUTSIDE the consent gate, so a person agrees to the terms before\n // being asked about processing: while an acceptance is owed the consent gate is not rendered at all,\n // and its non-blocking prompt cannot float over the acceptance panel. Both wrap the whole shell, for the\n // reason above. See `AppLayout_DocumentAcceptanceGate`.\n // Shell companions (`ApplicationMainProviderOptions.shellCompanions`) sit beside the shell, inside both\n // gates and only once the session is restored: they live exactly as long as the signed-in shell does,\n // on every page, and never read before a person has agreed to what the application does.\n return (\n <RouteOrganizationDecisionContext.Provider value={routeOrganizationDecision}>\n <AppLayout_DocumentAcceptanceGate>\n <AppLayout_ConsentGate>\n {shellCompanions.map((Companion, index) => <Companion key={index} />)}\n <AppLayout_MainContainer>\n {routeContent}\n </AppLayout_MainContainer>\n </AppLayout_ConsentGate>\n </AppLayout_DocumentAcceptanceGate>\n </RouteOrganizationDecisionContext.Provider>\n );\n};\n\n\n"]}
|
|
1
|
+
{"version":3,"file":"AppLayout_AuthenticatedRoute.js","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_AuthenticatedRoute.tsx"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;AAEH,OAAc,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AACnI,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAC;AAClI,OAAO,EACL,uBAAuB,EACvB,uBAAuB,GAExB,MAAM,4EAA4E,CAAC;AACpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,oEAAoE,CAAC;AACtH,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAC1G,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,0EAA0E,CAAC;AACzH,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,kBAAkB,E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AAgB,EAAE,CAAC;QAC5B,YAAY,GAAG,KAAC,wBAAwB,KAAG,CAAC;IAC9C,CAAC;IAED,kGAAkG;IAClG,0GAA0G;IAC1G,2GAA2G;IAC3G,4GAA4G;IAC5G,yGAAyG;IACzG,6FAA6F;IAC7F,2BAA2B;IAC3B,qGAAqG;IACrG,qGAAqG;IACrG,yGAAyG;IACzG,wDAAwD;IACxD,wGAAwG;IACxG,sGAAsG;IACtG,yFAAyF;IACzF,OAAO,CACL,KAAC,gCAAgC,CAAC,QAAQ,IAAC,KAAK,EAAE,yBAAyB,YACzE,KAAC,gCAAgC,cAC/B,MAAC,qBAAqB,eACnB,eAAe,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,KAAC,SAAS,MAAM,KAAK,CAAI,CAAC,EACrE,KAAC,uBAAuB,cACrB,YAAY,GACW,IACJ,GACS,GACO,CAC7C,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * AppLayout_AuthenticatedRoute\n *\n * Layout route component for authenticated pages.\n * Uses React Router's Outlet to render nested routes inside the MainContainer shell.\n *\n * This ensures that ALL authenticated routes (resource pages, home, etc.)\n * are wrapped with the application shell (sidebar, menubar, etc.)\n */\n\nimport React, { useContext, useEffect, useMemo, useRef } from 'react';\nimport { Outlet, Navigate, useNavigate } from 'react-router';\nimport { ErrorCustomMessageReference, ErrorType } from '@wildo-ai/saas-models';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport { AuthenticatedRouteEntry, useAuthenticatedRouteEntry } from '~wildo-frontend-lib/core/security/useAuthenticatedRouteEntry';\nimport { useRouteOrganizationAccess, useRouteOrganizationId } from '~wildo-frontend-lib/core/security/useRouteOrganizationAccess';\nimport {\n RouteOrganizationAccess,\n RouteOrganizationFollow,\n type RouteOrganizationDecision,\n} from '~wildo-frontend-lib/core/security/route-organization-access.frontend.utils';\nimport { RouteOrganizationDecisionContext } from '~wildo-frontend-lib/core/security/RouteOrganizationDecisionContext';\nimport { useRouteOrganizationFollow } from '~wildo-frontend-lib/core/security/useRouteOrganizationFollow';\nimport { useNotification } from '~wildo-frontend-lib/core/events/useNotification';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { resolveUserFacingErrorMessage } from '~wildo-frontend-lib/core/errors/user-facing-error-message.frontend.utils';\nimport { LoadingSpinner } from '~wildo-frontend-lib/components/feedback/loading-spinner';\nimport { AppLayout_MainContainer } from './AppLayout_MainContainer';\nimport { AppLayout_ConsentGate } from './AppLayout_ConsentGate';\nimport { AppLayout_DocumentAcceptanceGate } from './AppLayout_DocumentAcceptanceGate';\nimport { ApplicationContext } from '~wildo-frontend-lib/core/runtime/ApplicationContext.shared';\n\ninterface AppLayout_AuthenticatedRouteProps {\n /** Redirect path for unauthenticated users */\n redirectTo?: string;\n}\n\n/**\n * A spinner in place of page content.\n *\n * I-5: the registry-resolved `LoadingSpinner` exposes `role=\"status\"` + `aria-live=\"polite\"` for screen\n * readers; no text is rendered here intentionally — i18n is not guaranteed to be ready during the early\n * auth-restore phase, and a localized aria-label would couple this layout to a component-scope translation\n * key it has no natural home for.\n */\nconst AppLayout_ContentLoading: React.FC = () => (\n <div className=\"flex items-center justify-center w-full min-h-[200px]\">\n <LoadingSpinner />\n </div>\n);\n\n/**\n * Leaves a route whose organization the server refused to this account: sends it to the home page and says why.\n *\n * The words come from `errors_messages` / `errors_guidance` under\n * {@link ErrorCustomMessageReference.AUTHORIZATION_ORGANIZATION_NOT_ACCESSIBLE}, through the same resolver\n * the global error toast uses, so this notice is authored and translated like every other error.\n *\n * The ref guards a single notice per refusal: StrictMode runs the effect twice, and the translators change\n * identity on every i18n render.\n */\nconst AppLayout_OrganizationAccessRefused: React.FC = () => {\n const navigate = useNavigate();\n const { notifyWarning } = useNotification();\n const { tErrorMessage, tErrorGuidance } = useI18n();\n const handledRef = useRef(false);\n\n useEffect(() => {\n if (handledRef.current) {\n return;\n }\n handledRef.current = true;\n notifyWarning(resolveUserFacingErrorMessage(\n { type: ErrorType.AUTHORIZATION, customMessageReference: ErrorCustomMessageReference.AUTHORIZATION_ORGANIZATION_NOT_ACCESSIBLE },\n { translators: { tErrorMessage, tErrorGuidance } },\n ));\n navigate(CommonRoutePaths.home, { replace: true });\n }, [navigate, notifyWarning, tErrorMessage, tErrorGuidance]);\n\n return <AppLayout_ContentLoading />;\n};\n\n/**\n * Layout route that wraps authenticated content with MainContainer.\n * Redirects to login if user is not authenticated.\n * Waits while authenticated restore is still unresolved so the shell does not\n * render against prevalidated scope hints. After restore completes, a missing\n * AppScope organization remains a valid authenticated shell state.\n *\n * A route addressing an organization this account cannot open is left for the\n * home page with a notice, before any page content loads (see\n * {@link RouteOrganizationAccess}). This is the one layout every signed-in route\n * renders through, so resource, composite, chart, custom, flows and execution\n * routes are all covered, whatever path brought the person there.\n *\n * A route addressing an organization this account IS an active member of makes it the session's current\n * organization before the page renders (see {@link RouteOrganizationFollow}, #2247), so every request and every\n * reader of the current organization agrees with the organization the page shows. The decision is also published\n * to the navigation zones, which hold their own entries by it (#2276): in session the page is a zone entry, and the\n * entry is pushed before the route moves.\n */\nexport const AppLayout_AuthenticatedRoute: React.FC<AppLayout_AuthenticatedRouteProps> = ({\n redirectTo = CommonRoutePaths.login,\n}) => {\n const { entry, signInPath } = useAuthenticatedRouteEntry(redirectTo);\n const shellCompanions = useContext(ApplicationContext)?.shellCompanions ?? [];\n const routeOrganizationAccess = useRouteOrganizationAccess();\n // The session follows the organization the route names (#2247): see `RouteOrganizationFollow`.\n const routeOrganizationFollow = useRouteOrganizationFollow(routeOrganizationAccess);\n const routeOrganizationId = useRouteOrganizationId() ?? null;\n // The route's content is withheld while its organization is verified, refused, or being followed. Published to the\n // navigation zones (#2276): in session the page is rendered from the zone stacks, not this outlet, so a zone entry\n // addressing the route's organization is held by this same decision (`decideZoneEntryOrganizationHold`).\n const routeContentHeld = routeOrganizationAccess === RouteOrganizationAccess.VERIFYING\n || routeOrganizationAccess === RouteOrganizationAccess.REFUSED\n || routeOrganizationFollow === RouteOrganizationFollow.FOLLOWING;\n const routeOrganizationDecision = useMemo<RouteOrganizationDecision>(\n () => ({ routeOrganizationId, routeContentHeld }),\n [routeOrganizationId, routeContentHeld],\n );\n // Not authenticated - redirect to login\n if (entry === AuthenticatedRouteEntry.SIGN_IN) {\n return <Navigate to={signInPath} replace />;\n }\n\n // Wait while restore is unresolved so children do not render against\n // prevalidated organization hints. Once restore is complete, missing org is\n // still a valid authenticated shell state for org-optional flows.\n if (entry === AuthenticatedRouteEntry.RESTORING) {\n return (\n <AppLayout_MainContainer>\n <AppLayout_ContentLoading />\n </AppLayout_MainContainer>\n );\n }\n\n // The page's own reads would carry the route's organization, so the route outlet (which syncs the route\n // into the navigation zones and starts those reads) is withheld until the server has answered. Only the\n // outlet is swapped: the shell below keeps the same element tree, so the sidebar, menubar and zone stacks\n // stay mounted while an organization is verified.\n let routeContent: React.ReactNode = <Outlet />;\n // Likewise while the session is being moved into the route's organization (#2247): the page's reads and roles\n // must start in the organization the page shows, never in the one the session was in before. (Features are then\n // refetched for it; until they land `FeaturesContext` reports loading, which its readers wait on.)\n if (routeOrganizationAccess === RouteOrganizationAccess.REFUSED) {\n routeContent = <AppLayout_OrganizationAccessRefused />;\n } else if (routeContentHeld) {\n routeContent = <AppLayout_ContentLoading />;\n }\n\n // The consent gate wraps the SHELL, never the outlet. Signed-in page content is rendered from the\n // navigation zone stacks, and this outlet is only the PRIMARY zone's fallback while that stack is empty —\n // it is unmounted once the route has synced into the stack. A gate around it left the page after that sync\n // (a live browser never showed the prompt, #977), and the shell could navigate past it. Around the shell it\n // holds on every signed-in render: a missing REQUIRED purpose withholds the whole application (its panel\n // carries sign-out), and an undecided optional purpose prompts in a fixed panel over it. See\n // `AppLayout_ConsentGate`.\n // The document acceptance gate sits OUTSIDE the consent gate, so a person agrees to the terms before\n // being asked about processing: while an acceptance is owed the consent gate is not rendered at all,\n // and its non-blocking prompt cannot float over the acceptance panel. Both wrap the whole shell, for the\n // reason above. See `AppLayout_DocumentAcceptanceGate`.\n // Shell companions (`ApplicationMainProviderOptions.shellCompanions`) sit beside the shell, inside both\n // gates and only once the session is restored: they live exactly as long as the signed-in shell does,\n // on every page, and never read before a person has agreed to what the application does.\n return (\n <RouteOrganizationDecisionContext.Provider value={routeOrganizationDecision}>\n <AppLayout_DocumentAcceptanceGate>\n <AppLayout_ConsentGate>\n {shellCompanions.map((Companion, index) => <Companion key={index} />)}\n <AppLayout_MainContainer>\n {routeContent}\n </AppLayout_MainContainer>\n </AppLayout_ConsentGate>\n </AppLayout_DocumentAcceptanceGate>\n </RouteOrganizationDecisionContext.Provider>\n );\n};\n\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout_DecisionInbox.d.ts","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_DecisionInbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AppLayout_DecisionInbox.d.ts","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_DecisionInbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAO3D"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { SectionMode } from '@wildo-ai/zod-decorators';
|
|
3
2
|
import { CompositeLayout } from '../../components/views/composite-view/CompositeLayout.js';
|
|
4
|
-
import {
|
|
5
|
-
import { FlowsActors_ApprovalQueue } from '../../components/flows-actors/approval.js';
|
|
3
|
+
import { DecisionInboxSection } from './DecisionInboxSection.js';
|
|
6
4
|
/**
|
|
7
5
|
* The engine's decision inbox page, at `/decisions` (`EnginePageRef.DECISIONS`, #2527): every pending decision the
|
|
8
6
|
* signed-in person may act on.
|
|
@@ -19,6 +17,6 @@ import { FlowsActors_ApprovalQueue } from '../../components/flows-actors/approva
|
|
|
19
17
|
*/
|
|
20
18
|
export function AppLayout_DecisionInbox() {
|
|
21
19
|
// Solo CARD: one embedded surface drawing its own list chrome (title, count, filter, read states).
|
|
22
|
-
return (_jsx(CompositeLayout, { children: _jsx(
|
|
20
|
+
return (_jsx(CompositeLayout, { children: _jsx(DecisionInboxSection, {}) }));
|
|
23
21
|
}
|
|
24
22
|
//# sourceMappingURL=AppLayout_DecisionInbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout_DecisionInbox.js","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_DecisionInbox.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AppLayout_DecisionInbox.js","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_DecisionInbox.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qEAAqE,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,uBAAuB;IACrC,mGAAmG;IACnG,OAAO,CACL,KAAC,eAAe,cACd,KAAC,oBAAoB,KAAG,GACR,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\n\nimport { CompositeLayout } from '~wildo-frontend-lib/components/views/composite-view/CompositeLayout';\nimport { DecisionInboxSection } from './DecisionInboxSection';\n\n/**\n * The engine's decision inbox page, at `/decisions` (`EnginePageRef.DECISIONS`, #2527): every pending decision the\n * signed-in person may act on.\n *\n * The ENGINE places it, so an application whose agents can wait on a person's decision needs no page of its own. Wonder\n * Todos and Wonder Ledger each hand-mounted the same composition before this, and every other application left the\n * reviewer a notification about a decision with no page to answer it from. The sidebar row that leads here is shown\n * only when the application declares a gate or a per-representative approval and the viewer holds a role a decision can wait on\n * (`appConfig.decisionInbox`; an OWNER gate counts as `APP_USER`).\n *\n * Nothing here decides WHOSE decisions are shown: the server lists only those the caller may act on, re-checked with the\n * rule each act is checked by, so the page needs no role gate of its own. A person who reaches it by URL with nothing\n * routed to them sees the inbox's own empty state, never someone else's decision.\n */\nexport function AppLayout_DecisionInbox(): React.JSX.Element {\n // Solo CARD: one embedded surface drawing its own list chrome (title, count, filter, read states).\n return (\n <CompositeLayout>\n <DecisionInboxSection />\n </CompositeLayout>\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout_Home.d.ts","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_Home.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAwBlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kFAAkF,CAAA;AAKvH,MAAM,WAAW,iCAAiC;CACjD;AAkGD,eAAO,MAAM,4BAA4B,GAAI,IAAI,iCAAiC,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"AppLayout_Home.d.ts","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_Home.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAwBlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kFAAkF,CAAA;AAKvH,MAAM,WAAW,iCAAiC;CACjD;AAkGD,eAAO,MAAM,4BAA4B,GAAI,IAAI,iCAAiC,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAiIxG,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAAE,MAAgC,EAAE,GAAG,KAAK,EAAE,EAAE,iCAAiC,GAAG,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAG1J"}
|
|
@@ -4,7 +4,7 @@ import { useLocation } from 'react-router';
|
|
|
4
4
|
import { LifecycleStage, ActivationCriterionType } from '@wildo-ai/saas-models';
|
|
5
5
|
import { useLifecycle, useProgression } from '../../core/guidance/useGuidance.js';
|
|
6
6
|
import { useI18n } from '../../core/i18n/useI18n.js';
|
|
7
|
-
import {
|
|
7
|
+
import { useResolvedHome } from '../../core/navigation/home-resolution.js';
|
|
8
8
|
import { useResourceRegistry } from '../../core/resources/useResourceRegistry.js';
|
|
9
9
|
import { frontendResourceUtils } from '../../core/resources/frontend-resource.utils.js';
|
|
10
10
|
import { ProgressionMilestoneTracker } from '../../components/progression/ProgressionMilestoneTracker.js';
|
|
@@ -42,7 +42,10 @@ function HomeGenericWelcome() {
|
|
|
42
42
|
// ─── Main Home Preset ───────────────────────────────────────────
|
|
43
43
|
export const AppLayoutPreset_Home_Default = ({}) => {
|
|
44
44
|
const { currentStage, isEnabled, isLoading, activationProgress } = useLifecycle();
|
|
45
|
-
|
|
45
|
+
// The home for THIS person: their audience's when `homeDefinition.audienceHomes` names one they belong to, else the
|
|
46
|
+
// default (#4576). Unresolved only while audience homes wait on the person's roles; nothing renders or redirects
|
|
47
|
+
// until then, so a redirect is never taken to a home that is not theirs.
|
|
48
|
+
const { isResolved: isHomeResolved, home } = useResolvedHome();
|
|
46
49
|
const { registry } = useResourceRegistry();
|
|
47
50
|
const location = useLocation();
|
|
48
51
|
const { navigate } = useNavigationController();
|
|
@@ -52,15 +55,15 @@ export const AppLayoutPreset_Home_Default = ({}) => {
|
|
|
52
55
|
// early return below), so the URL stays `/` instead of redirecting to the
|
|
53
56
|
// composite's `/composite/<ref>` canonical route. The composite remains
|
|
54
57
|
// separately addressable at that route via `NavigationContentAreas`.
|
|
55
|
-
const compositeHomeRef =
|
|
58
|
+
const compositeHomeRef = home?.compositeViewReference;
|
|
56
59
|
const homeRedirectTarget = useMemo(() => {
|
|
57
|
-
if (!
|
|
60
|
+
if (!home)
|
|
58
61
|
return null;
|
|
59
62
|
// Composite homes render in place (no redirect target) — see above.
|
|
60
|
-
if (
|
|
63
|
+
if (home.compositeViewReference)
|
|
61
64
|
return null;
|
|
62
65
|
// Resource operation redirect
|
|
63
|
-
const opPath =
|
|
66
|
+
const opPath = home.resourceOperationPath;
|
|
64
67
|
if (!opPath)
|
|
65
68
|
return null;
|
|
66
69
|
const resourceConfig = registry.resourceConfigurations[opPath.resourceType];
|
|
@@ -88,7 +91,7 @@ export const AppLayoutPreset_Home_Default = ({}) => {
|
|
|
88
91
|
},
|
|
89
92
|
urlPath: resolvedHomeNavigation.resolvedUrl,
|
|
90
93
|
};
|
|
91
|
-
}, [appScope,
|
|
94
|
+
}, [appScope, home, registry]);
|
|
92
95
|
useEffect(() => {
|
|
93
96
|
if (!homeRedirectTarget) {
|
|
94
97
|
return;
|
|
@@ -103,6 +106,10 @@ export const AppLayoutPreset_Home_Default = ({}) => {
|
|
|
103
106
|
replaceBrowserHistory: true,
|
|
104
107
|
});
|
|
105
108
|
}, [homeRedirectTarget, location.pathname, navigate]);
|
|
109
|
+
// Nothing renders until the home is known (an audience home waiting on the person's roles), so neither the
|
|
110
|
+
// default nor another audience's home flashes before theirs.
|
|
111
|
+
if (!isHomeResolved)
|
|
112
|
+
return null;
|
|
106
113
|
// Composite-reference home: render the composite view in place so the app
|
|
107
114
|
// root URL stays `/`. Mirrors the canonical composite render in
|
|
108
115
|
// `NavigationContentAreas` (PRIMARY zone). This short-circuits the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLayout_Home.js","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_Home.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAE7F,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EA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K,cAAc,CAAC,OAAO,CAAC;QAC5B,KAAK,cAAc,CAAC,SAAS,CAAC;QAC9B,KAAK,cAAc,CAAC,OAAO,CAAC;QAC5B;YACE,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,GAAG,KAAK,EAA4D;IACrI,MAAM,SAAS,GAAG,uBAAuB,CAAoC,qBAAqB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC/I,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["import React, { useEffect, useMemo } from 'react';\nimport { useLocation } from 'react-router';\nimport { LifecycleStage, ActivationCriterionType } from '@wildo-ai/saas-models';\n\nimport { useLifecycle, useProgression } from '~wildo-frontend-lib/core/guidance/useGuidance';\nimport type { LifecycleContextSlice } from '~wildo-frontend-lib/core/guidance/GuidanceContext';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { frontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { ProgressionMilestoneTracker } from '~wildo-frontend-lib/components/progression/ProgressionMilestoneTracker';\nimport { NavigationUtils } from '~wildo-frontend-lib/core/navigation/navigation.utils';\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\nimport {\n APP_LEVEL_NAVIGATION_SOURCE,\n NavigationContentType,\n NavigationZone,\n type NavigationContent,\n} from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { useNavigationController } from '~wildo-frontend-lib/core/navigation/useNavigationController';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\n\n// ─── Sub-component Props ────────────────────────────────────────\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, FrontendComponentType } from '@wildo-ai/presets-components-models'\n\n// --- Contract ---\nexport interface AppLayoutPreset_Home_DefaultProps {\n}\n\ninterface HomeActivationProgressProps {\n activationProgress: LifecycleContextSlice['activationProgress'];\n}\n\ninterface HomeWelcomeBackBannerProps {\n stage: LifecycleStage;\n}\n\ninterface HomeRedirectTarget {\n content: NavigationContent;\n urlPath: string;\n}\n\n// ─── Sub-components (registered as preset components for app-custom override) ──\n\nfunction HomeActivationProgress({ activationProgress }: HomeActivationProgressProps): React.JSX.Element {\n const { tLifecycle, tActivationCriterion, isReady } = useI18n({ keys: ['lifecycle'] });\n const { criteriaMet, criteria, totalCriteria, metCriteria, isFullyActivated } = activationProgress;\n\n return (\n <div style={{ padding: '2rem', maxWidth: 600, margin: '0 auto' }}>\n <h2>{tLifecycle('home_activation_progress.title')}</h2>\n <p>{tLifecycle('home_activation_progress.description')}</p>\n\n {totalCriteria > 0 && (\n <div style={{ marginTop: '1rem' }}>\n <div style={{ marginBottom: '0.5rem' }}>\n {metCriteria} / {totalCriteria}\n </div>\n <div className=\"w-full h-2 bg-muted rounded overflow-hidden\">\n <div\n className={`h-full rounded transition-all duration-[var(--motion-duration-normal)] ease-in-out ${isFullyActivated ? 'bg-success' : 'bg-primary'}`}\n style={{ width: `${totalCriteria > 0 ? (metCriteria / totalCriteria) * 100 : 0}%` }}\n />\n </div>\n\n <ul style={{ listStyle: 'none', padding: 0, marginTop: '1rem' }}>\n {criteria.map((criterion, index) => {\n const ref = criterion.criterionType === ActivationCriterionType.MILESTONE ? criterion.milestoneRef : criterion.guidanceFlowRef;\n const met = criteriaMet[ref] ?? false;\n return (\n <li key={ref ?? index} style={{ padding: '0.25rem 0', display: 'flex', alignItems: 'center', gap: '0.5rem' }}>\n <span>{met ? '✓' : '○'}</span>\n <span style={{ opacity: met ? 0.6 : 1 }}>{tActivationCriterion(criterion)}</span>\n </li>\n );\n })}\n </ul>\n </div>\n )}\n </div>\n );\n}\n\nfunction HomeWelcomeBackBanner({ stage }: HomeWelcomeBackBannerProps): React.JSX.Element {\n const { tLifecycle, tLifecycleStage } = useI18n({ keys: ['lifecycle'] });\n\n return (\n <div className=\"px-8 py-4 bg-success/5 rounded-lg mb-4\">\n <strong>{tLifecycle('home_welcome_back.title')}</strong>\n <p style={{ margin: '0.25rem 0 0' }}>\n {tLifecycle('home_welcome_back.message', { stage: tLifecycleStage(stage) })}\n </p>\n </div>\n );\n}\n\nfunction HomeDashboard(): React.JSX.Element {\n const { tLifecycle, isReady } = useI18n({ keys: ['lifecycle'] });\n const { milestoneDefinitions, isLoading: progressionLoading } = useProgression();\n const hasProgression = !progressionLoading && milestoneDefinitions.length > 0;\n\n return (\n <div style={{ padding: '2rem', maxWidth: 800, margin: '0 auto' }}>\n <h2>{tLifecycle('home_dashboard.title')}</h2>\n <p>{tLifecycle('home_dashboard.description')}</p>\n {hasProgression && (\n <div className=\"mt-6\">\n <ProgressionMilestoneTracker />\n </div>\n )}\n </div>\n );\n}\n\nfunction HomeGenericWelcome(): React.JSX.Element {\n const { tComponent } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_HOME });\n return (\n <div style={{ padding: '2rem', maxWidth: 600, margin: '0 auto', textAlign: 'center' }}>\n <h2>{tComponent(FrontendComponentType.APP_LAYOUTS_HOME, 'welcomeTitle')}</h2>\n </div>\n );\n}\n\n// ─── Main Home Preset ───────────────────────────────────────────\n\nexport const AppLayoutPreset_Home_Default = ({}: AppLayoutPreset_Home_DefaultProps): React.JSX.Element | null => {\n const { currentStage, isEnabled, isLoading, activationProgress } = useLifecycle();\n const { homeDefinition } = useUI();\n const { registry } = useResourceRegistry();\n const location = useLocation();\n const { navigate } = useNavigationController();\n const appScope = useAppScopeSafe();\n\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_HOME });\n\n // A composite-reference home renders IN PLACE at the app root `/` (see the\n // early return below), so the URL stays `/` instead of redirecting to the\n // composite's `/composite/<ref>` canonical route. The composite remains\n // separately addressable at that route via `NavigationContentAreas`.\n const compositeHomeRef = homeDefinition?.compositeViewReference;\n\n const homeRedirectTarget = useMemo<HomeRedirectTarget | null>(() => {\n if (!homeDefinition) return null;\n\n // Composite homes render in place (no redirect target) — see above.\n if (homeDefinition.compositeViewReference) return null;\n\n // Resource operation redirect\n const opPath = homeDefinition.resourceOperationPath;\n if (!opPath) return null;\n\n const resourceConfig = registry.resourceConfigurations[opPath.resourceType];\n if (!resourceConfig) return null;\n\n const operation = resourceConfig.operations.find(\n (op) => String(op.operationIdentifier) === String(opPath.operationIdentifier)\n && Boolean(op.isOperationDefault ?? true) === opPath.isOperationDefault\n && Boolean(op.isBulkOperation ?? false) === opPath.isBulkOperation\n && String(op.variantKey ?? '') === String(opPath.variantKey ?? '')\n );\n if (!operation) return null;\n\n const resolvedHomeNavigation = NavigationUtils.resolveResourceUrl(\n resourceConfig as any,\n operation as any,\n appScope?.buildContextResourceIdentifiers?.() ?? {},\n registry.allResourceFieldIdentifiers,\n opPath.parentResourcesRequirements,\n );\n\n if (!resolvedHomeNavigation?.resolvedUrl) {\n return null;\n }\n\n return {\n content: {\n contentType: NavigationContentType.RESOURCE_OPERATION,\n resourceContext: frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType: opPath.resourceType,\n operation,\n contextResourceIdentifiers: appScope?.buildContextResourceIdentifiers?.() ?? {},\n parentResourcesRequirements: opPath.parentResourcesRequirements,\n }),\n },\n urlPath: resolvedHomeNavigation.resolvedUrl,\n };\n }, [appScope, homeDefinition, registry]);\n\n useEffect(() => {\n if (!homeRedirectTarget) {\n return;\n }\n\n if (homeRedirectTarget.urlPath === location.pathname) {\n return;\n }\n\n navigate({\n content: homeRedirectTarget.content,\n urlPath: homeRedirectTarget.urlPath,\n initiator: { sourceZone: APP_LEVEL_NAVIGATION_SOURCE },\n replaceBrowserHistory: true,\n });\n }, [homeRedirectTarget, location.pathname, navigate]);\n\n // Composite-reference home: render the composite view in place so the app\n // root URL stays `/`. Mirrors the canonical composite render in\n // `NavigationContentAreas` (PRIMARY zone). This short-circuits the\n // lifecycle-based default home (activation progress / dashboard) — an app\n // that authors a composite home owns the full landing surface.\n if (compositeHomeRef) {\n return (\n <CompositeView\n viewRef={compositeHomeRef}\n navigationZone={NavigationZone.PRIMARY}\n />\n );\n }\n\n if (!isReady) return null;\n\n if (isLoading) {\n return <div style={{ padding: '2rem', textAlign: 'center' }}>{tComponent(FrontendComponentType.APP_LAYOUTS_HOME, 'loading')}</div>;\n }\n\n if (!isEnabled || !currentStage) {\n return <HomeGenericWelcome />;\n }\n\n switch (currentStage) {\n case LifecycleStage.SIGNED_UP:\n return <HomeActivationProgress activationProgress={activationProgress} />;\n\n case LifecycleStage.REACTIVATED:\n return (\n <>\n <HomeWelcomeBackBanner stage={currentStage} />\n <HomeDashboard />\n </>\n );\n\n case LifecycleStage.DORMANT:\n case LifecycleStage.ACTIVATED:\n case LifecycleStage.ENGAGED:\n default:\n return <HomeDashboard />;\n }\n};\n\nexport function AppLayout_Home({ preset = CorePresetNames.DEFAULT, ...props }: AppLayoutPreset_Home_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const Component = createComponentResolver<AppLayoutPreset_Home_DefaultProps>(FrontendComponentType.APP_LAYOUTS_HOME, 'AppLayout_Home')(preset);\n return <Component {...props} />;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"AppLayout_Home.js","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_Home.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,M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CAAC;IAChC,CAAC;IAED,QAAQ,YAAY,EAAE,CAAC;QACrB,KAAK,cAAc,CAAC,SAAS;YAC3B,OAAO,KAAC,sBAAsB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CAAC;QAE5E,KAAK,cAAc,CAAC,WAAW;YAC7B,OAAO,CACL,8BACE,KAAC,qBAAqB,IAAC,KAAK,EAAE,YAAY,GAAI,EAC9C,KAAC,aAAa,KAAG,IAChB,CACJ,CAAC;QAEJ,KAAK,cAAc,CAAC,OAAO,CAAC;QAC5B,KAAK,cAAc,CAAC,SAAS,CAAC;QAC9B,KAAK,cAAc,CAAC,OAAO,CAAC;QAC5B;YACE,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,GAAG,KAAK,EAA4D;IACrI,MAAM,SAAS,GAAG,uBAAuB,CAAoC,qBAAqB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC/I,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["import React, { useEffect, useMemo } from 'react';\nimport { useLocation } from 'react-router';\nimport { LifecycleStage, ActivationCriterionType } from '@wildo-ai/saas-models';\n\nimport { useLifecycle, useProgression } from '~wildo-frontend-lib/core/guidance/useGuidance';\nimport type { LifecycleContextSlice } from '~wildo-frontend-lib/core/guidance/GuidanceContext';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useResolvedHome } from '~wildo-frontend-lib/core/navigation/home-resolution';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { frontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { ProgressionMilestoneTracker } from '~wildo-frontend-lib/components/progression/ProgressionMilestoneTracker';\nimport { NavigationUtils } from '~wildo-frontend-lib/core/navigation/navigation.utils';\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\nimport {\n APP_LEVEL_NAVIGATION_SOURCE,\n NavigationContentType,\n NavigationZone,\n type NavigationContent,\n} from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { useNavigationController } from '~wildo-frontend-lib/core/navigation/useNavigationController';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\n\n// ─── Sub-component Props ────────────────────────────────────────\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, FrontendComponentType } from '@wildo-ai/presets-components-models'\n\n// --- Contract ---\nexport interface AppLayoutPreset_Home_DefaultProps {\n}\n\ninterface HomeActivationProgressProps {\n activationProgress: LifecycleContextSlice['activationProgress'];\n}\n\ninterface HomeWelcomeBackBannerProps {\n stage: LifecycleStage;\n}\n\ninterface HomeRedirectTarget {\n content: NavigationContent;\n urlPath: string;\n}\n\n// ─── Sub-components (registered as preset components for app-custom override) ──\n\nfunction HomeActivationProgress({ activationProgress }: HomeActivationProgressProps): React.JSX.Element {\n const { tLifecycle, tActivationCriterion, isReady } = useI18n({ keys: ['lifecycle'] });\n const { criteriaMet, criteria, totalCriteria, metCriteria, isFullyActivated } = activationProgress;\n\n return (\n <div style={{ padding: '2rem', maxWidth: 600, margin: '0 auto' }}>\n <h2>{tLifecycle('home_activation_progress.title')}</h2>\n <p>{tLifecycle('home_activation_progress.description')}</p>\n\n {totalCriteria > 0 && (\n <div style={{ marginTop: '1rem' }}>\n <div style={{ marginBottom: '0.5rem' }}>\n {metCriteria} / {totalCriteria}\n </div>\n <div className=\"w-full h-2 bg-muted rounded overflow-hidden\">\n <div\n className={`h-full rounded transition-all duration-[var(--motion-duration-normal)] ease-in-out ${isFullyActivated ? 'bg-success' : 'bg-primary'}`}\n style={{ width: `${totalCriteria > 0 ? (metCriteria / totalCriteria) * 100 : 0}%` }}\n />\n </div>\n\n <ul style={{ listStyle: 'none', padding: 0, marginTop: '1rem' }}>\n {criteria.map((criterion, index) => {\n const ref = criterion.criterionType === ActivationCriterionType.MILESTONE ? criterion.milestoneRef : criterion.guidanceFlowRef;\n const met = criteriaMet[ref] ?? false;\n return (\n <li key={ref ?? index} style={{ padding: '0.25rem 0', display: 'flex', alignItems: 'center', gap: '0.5rem' }}>\n <span>{met ? '✓' : '○'}</span>\n <span style={{ opacity: met ? 0.6 : 1 }}>{tActivationCriterion(criterion)}</span>\n </li>\n );\n })}\n </ul>\n </div>\n )}\n </div>\n );\n}\n\nfunction HomeWelcomeBackBanner({ stage }: HomeWelcomeBackBannerProps): React.JSX.Element {\n const { tLifecycle, tLifecycleStage } = useI18n({ keys: ['lifecycle'] });\n\n return (\n <div className=\"px-8 py-4 bg-success/5 rounded-lg mb-4\">\n <strong>{tLifecycle('home_welcome_back.title')}</strong>\n <p style={{ margin: '0.25rem 0 0' }}>\n {tLifecycle('home_welcome_back.message', { stage: tLifecycleStage(stage) })}\n </p>\n </div>\n );\n}\n\nfunction HomeDashboard(): React.JSX.Element {\n const { tLifecycle, isReady } = useI18n({ keys: ['lifecycle'] });\n const { milestoneDefinitions, isLoading: progressionLoading } = useProgression();\n const hasProgression = !progressionLoading && milestoneDefinitions.length > 0;\n\n return (\n <div style={{ padding: '2rem', maxWidth: 800, margin: '0 auto' }}>\n <h2>{tLifecycle('home_dashboard.title')}</h2>\n <p>{tLifecycle('home_dashboard.description')}</p>\n {hasProgression && (\n <div className=\"mt-6\">\n <ProgressionMilestoneTracker />\n </div>\n )}\n </div>\n );\n}\n\nfunction HomeGenericWelcome(): React.JSX.Element {\n const { tComponent } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_HOME });\n return (\n <div style={{ padding: '2rem', maxWidth: 600, margin: '0 auto', textAlign: 'center' }}>\n <h2>{tComponent(FrontendComponentType.APP_LAYOUTS_HOME, 'welcomeTitle')}</h2>\n </div>\n );\n}\n\n// ─── Main Home Preset ───────────────────────────────────────────\n\nexport const AppLayoutPreset_Home_Default = ({}: AppLayoutPreset_Home_DefaultProps): React.JSX.Element | null => {\n const { currentStage, isEnabled, isLoading, activationProgress } = useLifecycle();\n // The home for THIS person: their audience's when `homeDefinition.audienceHomes` names one they belong to, else the\n // default (#4576). Unresolved only while audience homes wait on the person's roles; nothing renders or redirects\n // until then, so a redirect is never taken to a home that is not theirs.\n const { isResolved: isHomeResolved, home } = useResolvedHome();\n const { registry } = useResourceRegistry();\n const location = useLocation();\n const { navigate } = useNavigationController();\n const appScope = useAppScopeSafe();\n\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_HOME });\n\n // A composite-reference home renders IN PLACE at the app root `/` (see the\n // early return below), so the URL stays `/` instead of redirecting to the\n // composite's `/composite/<ref>` canonical route. The composite remains\n // separately addressable at that route via `NavigationContentAreas`.\n const compositeHomeRef = home?.compositeViewReference;\n\n const homeRedirectTarget = useMemo<HomeRedirectTarget | null>(() => {\n if (!home) return null;\n\n // Composite homes render in place (no redirect target) — see above.\n if (home.compositeViewReference) return null;\n\n // Resource operation redirect\n const opPath = home.resourceOperationPath;\n if (!opPath) return null;\n\n const resourceConfig = registry.resourceConfigurations[opPath.resourceType];\n if (!resourceConfig) return null;\n\n const operation = resourceConfig.operations.find(\n (op) => String(op.operationIdentifier) === String(opPath.operationIdentifier)\n && Boolean(op.isOperationDefault ?? true) === opPath.isOperationDefault\n && Boolean(op.isBulkOperation ?? false) === opPath.isBulkOperation\n && String(op.variantKey ?? '') === String(opPath.variantKey ?? '')\n );\n if (!operation) return null;\n\n const resolvedHomeNavigation = NavigationUtils.resolveResourceUrl(\n resourceConfig as any,\n operation as any,\n appScope?.buildContextResourceIdentifiers?.() ?? {},\n registry.allResourceFieldIdentifiers,\n opPath.parentResourcesRequirements,\n );\n\n if (!resolvedHomeNavigation?.resolvedUrl) {\n return null;\n }\n\n return {\n content: {\n contentType: NavigationContentType.RESOURCE_OPERATION,\n resourceContext: frontendResourceUtils.createFrontendResourceOperationContextFromOperation({\n resourceType: opPath.resourceType,\n operation,\n contextResourceIdentifiers: appScope?.buildContextResourceIdentifiers?.() ?? {},\n parentResourcesRequirements: opPath.parentResourcesRequirements,\n }),\n },\n urlPath: resolvedHomeNavigation.resolvedUrl,\n };\n }, [appScope, home, registry]);\n\n useEffect(() => {\n if (!homeRedirectTarget) {\n return;\n }\n\n if (homeRedirectTarget.urlPath === location.pathname) {\n return;\n }\n\n navigate({\n content: homeRedirectTarget.content,\n urlPath: homeRedirectTarget.urlPath,\n initiator: { sourceZone: APP_LEVEL_NAVIGATION_SOURCE },\n replaceBrowserHistory: true,\n });\n }, [homeRedirectTarget, location.pathname, navigate]);\n\n // Nothing renders until the home is known (an audience home waiting on the person's roles), so neither the\n // default nor another audience's home flashes before theirs.\n if (!isHomeResolved) return null;\n\n // Composite-reference home: render the composite view in place so the app\n // root URL stays `/`. Mirrors the canonical composite render in\n // `NavigationContentAreas` (PRIMARY zone). This short-circuits the\n // lifecycle-based default home (activation progress / dashboard) — an app\n // that authors a composite home owns the full landing surface.\n if (compositeHomeRef) {\n return (\n <CompositeView\n viewRef={compositeHomeRef}\n navigationZone={NavigationZone.PRIMARY}\n />\n );\n }\n\n if (!isReady) return null;\n\n if (isLoading) {\n return <div style={{ padding: '2rem', textAlign: 'center' }}>{tComponent(FrontendComponentType.APP_LAYOUTS_HOME, 'loading')}</div>;\n }\n\n if (!isEnabled || !currentStage) {\n return <HomeGenericWelcome />;\n }\n\n switch (currentStage) {\n case LifecycleStage.SIGNED_UP:\n return <HomeActivationProgress activationProgress={activationProgress} />;\n\n case LifecycleStage.REACTIVATED:\n return (\n <>\n <HomeWelcomeBackBanner stage={currentStage} />\n <HomeDashboard />\n </>\n );\n\n case LifecycleStage.DORMANT:\n case LifecycleStage.ACTIVATED:\n case LifecycleStage.ENGAGED:\n default:\n return <HomeDashboard />;\n }\n};\n\nexport function AppLayout_Home({ preset = CorePresetNames.DEFAULT, ...props }: AppLayoutPreset_Home_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const Component = createComponentResolver<AppLayoutPreset_Home_DefaultProps>(FrontendComponentType.APP_LAYOUTS_HOME, 'AppLayout_Home')(preset);\n return <Component {...props} />;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentPresetProps } from '../../core/components-registry/component-registry.frontend.schemas';
|
|
3
|
+
export interface AppLayoutPreset_IdentityPortalContainer_DefaultProps {
|
|
4
|
+
/** The signed-in portal page. */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The identity portal's signed-in shell: the application's identity, the portal's pages and sign-out around the page,
|
|
9
|
+
* in place of the product shell. A preset draws it from `useIdentityPortalShellLayout()`, which also reports it
|
|
10
|
+
* initialized; the default lives in `@wildo-ai/presets-components`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function AppLayout_IdentityPortalContainer({ preset, ...props }: AppLayoutPreset_IdentityPortalContainer_DefaultProps & ComponentPresetProps): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=AppLayout_IdentityPortalContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppLayout_IdentityPortalContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_IdentityPortalContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kFAAkF,CAAC;AAMxH,MAAM,WAAW,oDAAoD;IACnE,iCAAiC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,EAAE,MAAgC,EAAE,GAAG,KAAK,EAAE,EAAE,oDAAoD,GAAG,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAKhM"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createComponentResolver } from '../../core/components-registry/component-resolver.frontend.helper.js';
|
|
3
|
+
import { FrontendComponentType, CorePresetNames } from '@wildo-ai/presets-components-models';
|
|
4
|
+
import { useOrganizationDocumentTitle } from '../../core/branding/useOrganizationDocumentTitle.js';
|
|
5
|
+
/**
|
|
6
|
+
* The identity portal's signed-in shell: the application's identity, the portal's pages and sign-out around the page,
|
|
7
|
+
* in place of the product shell. A preset draws it from `useIdentityPortalShellLayout()`, which also reports it
|
|
8
|
+
* initialized; the default lives in `@wildo-ai/presets-components`.
|
|
9
|
+
*/
|
|
10
|
+
export function AppLayout_IdentityPortalContainer({ preset = CorePresetNames.DEFAULT, ...props }) {
|
|
11
|
+
// The signed-in tab names the organization's product while its branding is in effect, as the product shell's does.
|
|
12
|
+
useOrganizationDocumentTitle();
|
|
13
|
+
const Component = createComponentResolver(FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER, 'AppLayout_IdentityPortalContainer')(preset);
|
|
14
|
+
return _jsx(Component, { ...props });
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=AppLayout_IdentityPortalContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppLayout_IdentityPortalContainer.js","sourceRoot":"","sources":["../../../../src/components/app/AppLayout_IdentityPortalContainer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iFAAiF,CAAC;AAC1H,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,gEAAgE,CAAC;AAQ9G;;;;GAIG;AACH,MAAM,UAAU,iCAAiC,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,GAAG,KAAK,EAA+E;IAC3K,mHAAmH;IACnH,4BAA4B,EAAE,CAAC;IAC/B,MAAM,SAAS,GAAG,uBAAuB,CAAuD,qBAAqB,CAAC,qCAAqC,EAAE,mCAAmC,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1M,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["import React from 'react';\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 { FrontendComponentType, CorePresetNames } from '@wildo-ai/presets-components-models';\nimport { useOrganizationDocumentTitle } from '~wildo-frontend-lib/core/branding/useOrganizationDocumentTitle';\n\n// --- Contract ---\nexport interface AppLayoutPreset_IdentityPortalContainer_DefaultProps {\n /** The signed-in portal page. */\n children: React.ReactNode;\n}\n\n/**\n * The identity portal's signed-in shell: the application's identity, the portal's pages and sign-out around the page,\n * in place of the product shell. A preset draws it from `useIdentityPortalShellLayout()`, which also reports it\n * initialized; the default lives in `@wildo-ai/presets-components`.\n */\nexport function AppLayout_IdentityPortalContainer({ preset = CorePresetNames.DEFAULT, ...props }: AppLayoutPreset_IdentityPortalContainer_DefaultProps & ComponentPresetProps): React.JSX.Element {\n // The signed-in tab names the organization's product while its branding is in effect, as the product shell's does.\n useOrganizationDocumentTitle();\n const Component = createComponentResolver<AppLayoutPreset_IdentityPortalContainer_DefaultProps>(FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER, 'AppLayout_IdentityPortalContainer')(preset);\n return <Component {...props} />;\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The decision inbox itself: one card that draws its own list chrome (title, count, filter, read states) over every
|
|
4
|
+
* pending decision the signed-in person may act on.
|
|
5
|
+
*
|
|
6
|
+
* Both surfaces render this one component, so they show the same inbox: the product places it in its composite layout
|
|
7
|
+
* (`AppLayout_DecisionInbox`), and the identity portal renders it on its own page, with no views around it.
|
|
8
|
+
*/
|
|
9
|
+
export declare function DecisionInboxSection(): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=DecisionInboxSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DecisionInboxSection.d.ts","sourceRoot":"","sources":["../../../../src/components/app/DecisionInboxSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAMxD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SectionMode } from '@wildo-ai/zod-decorators';
|
|
3
|
+
import { Section } from '../../components/resources/skeleton/Section.js';
|
|
4
|
+
import { FlowsActors_ApprovalQueue } from '../../components/flows-actors/approval.js';
|
|
5
|
+
/**
|
|
6
|
+
* The decision inbox itself: one card that draws its own list chrome (title, count, filter, read states) over every
|
|
7
|
+
* pending decision the signed-in person may act on.
|
|
8
|
+
*
|
|
9
|
+
* Both surfaces render this one component, so they show the same inbox: the product places it in its composite layout
|
|
10
|
+
* (`AppLayout_DecisionInbox`), and the identity portal renders it on its own page, with no views around it.
|
|
11
|
+
*/
|
|
12
|
+
export function DecisionInboxSection() {
|
|
13
|
+
return (_jsx(Section, { name: "decisions", appearance: SectionMode.CARD, children: _jsx(FlowsActors_ApprovalQueue, {}) }));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=DecisionInboxSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DecisionInboxSection.js","sourceRoot":"","sources":["../../../../src/components/app/DecisionInboxSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,2DAA2D,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AAEjG;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO,CACL,KAAC,OAAO,IAAC,IAAI,EAAC,WAAW,EAAC,UAAU,EAAE,WAAW,CAAC,IAAI,YACpD,KAAC,yBAAyB,KAAG,GACrB,CACX,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { SectionMode } from '@wildo-ai/zod-decorators';\n\nimport { Section } from '~wildo-frontend-lib/components/resources/skeleton/Section';\nimport { FlowsActors_ApprovalQueue } from '~wildo-frontend-lib/components/flows-actors/approval';\n\n/**\n * The decision inbox itself: one card that draws its own list chrome (title, count, filter, read states) over every\n * pending decision the signed-in person may act on.\n *\n * Both surfaces render this one component, so they show the same inbox: the product places it in its composite layout\n * (`AppLayout_DecisionInbox`), and the identity portal renders it on its own page, with no views around it.\n */\nexport function DecisionInboxSection(): React.JSX.Element {\n return (\n <Section name=\"decisions\" appearance={SectionMode.CARD}>\n <FlowsActors_ApprovalQueue />\n </Section>\n );\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Layout route for the identity portal's signed-in pages: the portal's slim shell around the page, in place of the
|
|
4
|
+
* product shell and its navigation zones.
|
|
5
|
+
*
|
|
6
|
+
* Entry is decided exactly as the product's (`useAuthenticatedRouteEntry`): no session sends the person to sign in with
|
|
7
|
+
* a way back, and nothing renders while a session is restored. The document-acceptance and consent gates wrap the shell
|
|
8
|
+
* as they do in the product, so a person agrees to what the application does before any portal page reads for them.
|
|
9
|
+
*
|
|
10
|
+
* There is no route organization to verify or follow here: no portal route names an organization.
|
|
11
|
+
*/
|
|
12
|
+
export declare function IdentityPortalLayout_AuthenticatedRoute(): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=IdentityPortalLayout_AuthenticatedRoute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityPortalLayout_AuthenticatedRoute.d.ts","sourceRoot":"","sources":["../../../../src/components/app/IdentityPortalLayout_AuthenticatedRoute.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B;;;;;;;;;GASG;AACH,wBAAgB,uCAAuC,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CA0B3E"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Navigate, Outlet } from 'react-router';
|
|
3
|
+
import { LoadingSpinner } from '../../components/feedback/loading-spinner.js';
|
|
4
|
+
import { AuthenticatedRouteEntry, useAuthenticatedRouteEntry } from '../../core/security/useAuthenticatedRouteEntry.js';
|
|
5
|
+
import { AppLayout_IdentityPortalContainer } from './AppLayout_IdentityPortalContainer.js';
|
|
6
|
+
import { AppLayout_ConsentGate } from './AppLayout_ConsentGate.js';
|
|
7
|
+
import { AppLayout_DocumentAcceptanceGate } from './AppLayout_DocumentAcceptanceGate.js';
|
|
8
|
+
/**
|
|
9
|
+
* Layout route for the identity portal's signed-in pages: the portal's slim shell around the page, in place of the
|
|
10
|
+
* product shell and its navigation zones.
|
|
11
|
+
*
|
|
12
|
+
* Entry is decided exactly as the product's (`useAuthenticatedRouteEntry`): no session sends the person to sign in with
|
|
13
|
+
* a way back, and nothing renders while a session is restored. The document-acceptance and consent gates wrap the shell
|
|
14
|
+
* as they do in the product, so a person agrees to what the application does before any portal page reads for them.
|
|
15
|
+
*
|
|
16
|
+
* There is no route organization to verify or follow here: no portal route names an organization.
|
|
17
|
+
*/
|
|
18
|
+
export function IdentityPortalLayout_AuthenticatedRoute() {
|
|
19
|
+
const { entry, signInPath } = useAuthenticatedRouteEntry();
|
|
20
|
+
if (entry === AuthenticatedRouteEntry.SIGN_IN) {
|
|
21
|
+
return _jsx(Navigate, { to: signInPath, replace: true });
|
|
22
|
+
}
|
|
23
|
+
if (entry === AuthenticatedRouteEntry.RESTORING) {
|
|
24
|
+
return (_jsx(AppLayout_IdentityPortalContainer, { children: _jsx("div", { className: "flex items-center justify-center w-full min-h-[200px]", children: _jsx(LoadingSpinner, {}) }) }));
|
|
25
|
+
}
|
|
26
|
+
return (_jsx(AppLayout_DocumentAcceptanceGate, { children: _jsx(AppLayout_ConsentGate, { children: _jsx(AppLayout_IdentityPortalContainer, { children: _jsx(Outlet, {}) }) }) }));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=IdentityPortalLayout_AuthenticatedRoute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityPortalLayout_AuthenticatedRoute.js","sourceRoot":"","sources":["../../../../src/components/app/IdentityPortalLayout_AuthenticatedRoute.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAE,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AACnI,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAEtF;;;;;;;;;GASG;AACH,MAAM,UAAU,uCAAuC;IACrD,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,0BAA0B,EAAE,CAAC;IAE3D,IAAI,KAAK,KAAK,uBAAuB,CAAC,OAAO,EAAE,CAAC;QAC9C,OAAO,KAAC,QAAQ,IAAC,EAAE,EAAE,UAAU,EAAE,OAAO,SAAG,CAAC;IAC9C,CAAC;IAED,IAAI,KAAK,KAAK,uBAAuB,CAAC,SAAS,EAAE,CAAC;QAChD,OAAO,CACL,KAAC,iCAAiC,cAChC,cAAK,SAAS,EAAC,uDAAuD,YACpE,KAAC,cAAc,KAAG,GACd,GAC4B,CACrC,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,gCAAgC,cAC/B,KAAC,qBAAqB,cACpB,KAAC,iCAAiC,cAChC,KAAC,MAAM,KAAG,GACwB,GACd,GACS,CACpC,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { Navigate, Outlet } from 'react-router';\n\nimport { LoadingSpinner } from '~wildo-frontend-lib/components/feedback/loading-spinner';\nimport { AuthenticatedRouteEntry, useAuthenticatedRouteEntry } from '~wildo-frontend-lib/core/security/useAuthenticatedRouteEntry';\nimport { AppLayout_IdentityPortalContainer } from './AppLayout_IdentityPortalContainer';\nimport { AppLayout_ConsentGate } from './AppLayout_ConsentGate';\nimport { AppLayout_DocumentAcceptanceGate } from './AppLayout_DocumentAcceptanceGate';\n\n/**\n * Layout route for the identity portal's signed-in pages: the portal's slim shell around the page, in place of the\n * product shell and its navigation zones.\n *\n * Entry is decided exactly as the product's (`useAuthenticatedRouteEntry`): no session sends the person to sign in with\n * a way back, and nothing renders while a session is restored. The document-acceptance and consent gates wrap the shell\n * as they do in the product, so a person agrees to what the application does before any portal page reads for them.\n *\n * There is no route organization to verify or follow here: no portal route names an organization.\n */\nexport function IdentityPortalLayout_AuthenticatedRoute(): React.JSX.Element {\n const { entry, signInPath } = useAuthenticatedRouteEntry();\n\n if (entry === AuthenticatedRouteEntry.SIGN_IN) {\n return <Navigate to={signInPath} replace />;\n }\n\n if (entry === AuthenticatedRouteEntry.RESTORING) {\n return (\n <AppLayout_IdentityPortalContainer>\n <div className=\"flex items-center justify-center w-full min-h-[200px]\">\n <LoadingSpinner />\n </div>\n </AppLayout_IdentityPortalContainer>\n );\n }\n\n return (\n <AppLayout_DocumentAcceptanceGate>\n <AppLayout_ConsentGate>\n <AppLayout_IdentityPortalContainer>\n <Outlet />\n </AppLayout_IdentityPortalContainer>\n </AppLayout_ConsentGate>\n </AppLayout_DocumentAcceptanceGate>\n );\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The identity portal's home page, at `/`: where a person lands after signing in, after a sign-in callback with no page
|
|
4
|
+
* to return to, and when they leave the chat-link page. It says who is signed in and leads to what they can do here.
|
|
5
|
+
*
|
|
6
|
+
* At the product's own home path on purpose, so every default landing (`resolvePostAuthRedirect`'s fallback, a link the
|
|
7
|
+
* backend builds to the application's root) reaches it with no knowledge of which surface it runs on.
|
|
8
|
+
*/
|
|
9
|
+
export declare function IdentityPortalPage_Home(): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=IdentityPortalPage_Home.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityPortalPage_Home.d.ts","sourceRoot":"","sources":["../../../../src/components/app/IdentityPortalPage_Home.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAyC3D"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FrontendComponentType, IdentityPortalLabel } from '@wildo-ai/presets-components-models';
|
|
3
|
+
import { Card, CardDescription, CardHeader, CardTitle } from '../../components/sections/card.js';
|
|
4
|
+
import { Heading } from '../../components/typography/heading.js';
|
|
5
|
+
import { Link } from '../../components/typography/link.js';
|
|
6
|
+
import { Text } from '../../components/typography/text.js';
|
|
7
|
+
import { useI18n } from '../../core/i18n/useI18n.js';
|
|
8
|
+
import { useUserOrgs } from '../../core/security/useUserOrgs.js';
|
|
9
|
+
import { IdentityPortalPageRef, useIdentityPortalPages } from '../../core/app-shell/useIdentityPortalShellLayout.js';
|
|
10
|
+
import { useIdentityPortalSettingsDestinations } from '../../core/config/identity-portal-settings.frontend.js';
|
|
11
|
+
import { APPLICATION_SETTINGS_PATH, EngineSettingsDestinationRef } from '@wildo-ai/saas-models';
|
|
12
|
+
const COMPONENT = FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER;
|
|
13
|
+
/** What each page the home leads to is for, in the reader's words. The home page itself is not listed. */
|
|
14
|
+
const PAGE_DESCRIPTIONS = {
|
|
15
|
+
[IdentityPortalPageRef.DECISIONS]: IdentityPortalLabel.HOME_DECISIONS_DESCRIPTION,
|
|
16
|
+
[IdentityPortalPageRef.ACCOUNT_SECURITY]: IdentityPortalLabel.HOME_ACCOUNT_SECURITY_DESCRIPTION,
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The identity portal's home page, at `/`: where a person lands after signing in, after a sign-in callback with no page
|
|
20
|
+
* to return to, and when they leave the chat-link page. It says who is signed in and leads to what they can do here.
|
|
21
|
+
*
|
|
22
|
+
* At the product's own home path on purpose, so every default landing (`resolvePostAuthRedirect`'s fallback, a link the
|
|
23
|
+
* backend builds to the application's root) reaches it with no knowledge of which surface it runs on.
|
|
24
|
+
*/
|
|
25
|
+
export function IdentityPortalPage_Home() {
|
|
26
|
+
const { user } = useUserOrgs();
|
|
27
|
+
const pages = useIdentityPortalPages();
|
|
28
|
+
const { tComponent, isReady } = useI18n({ component: COMPONENT });
|
|
29
|
+
// The settings pages this person may open on the portal, named as the product's Settings Hub names them. Account
|
|
30
|
+
// security already has its card above.
|
|
31
|
+
const settings = useIdentityPortalSettingsDestinations();
|
|
32
|
+
const { tSettingsHubSection, isReady: settingsWordsReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB });
|
|
33
|
+
const settingsPages = settings.sections.filter((section) => section.ref !== EngineSettingsDestinationRef.SECURITY);
|
|
34
|
+
const t = (key, params) => tComponent(COMPONENT, key, params);
|
|
35
|
+
const identity = user?.email ?? '';
|
|
36
|
+
if (!isReady || !settingsWordsReady)
|
|
37
|
+
return _jsx(_Fragment, {});
|
|
38
|
+
return (_jsxs("div", { className: "flex flex-col gap-section", children: [_jsxs("div", { className: "flex flex-col gap-element-sm", children: [_jsx(Heading, { level: 1, children: t(IdentityPortalLabel.HOME_TITLE) }), identity !== '' && _jsx(Text, { className: "text-muted-foreground", children: t(IdentityPortalLabel.HOME_SIGNED_IN_AS, { identity }) })] }), pages.filter((page) => PAGE_DESCRIPTIONS[page.ref]).map((page) => (_jsx(Card, { children: _jsxs(CardHeader, { children: [_jsx(CardTitle, { children: _jsx(Link, { href: page.path, children: page.label }) }), _jsx(CardDescription, { children: t(PAGE_DESCRIPTIONS[page.ref]) })] }) }, page.ref))), settingsPages.map((section) => (_jsx(Card, { children: _jsx(CardHeader, { children: _jsx(CardTitle, { children: _jsx(Link, { href: `${APPLICATION_SETTINGS_PATH}/${section.ref}`, children: tSettingsHubSection(section.ref, section.label) }) }) }) }, section.ref)))] }));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=IdentityPortalPage_Home.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityPortalPage_Home.js","sourceRoot":"","sources":["../../../../src/components/app/IdentityPortalPage_Home.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAEjG,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,iEAAiE,CAAC;AAChI,OAAO,EAAE,qCAAqC,EAAE,MAAM,mEAAmE,CAAC;AAC1H,OAAO,EAAE,yBAAyB,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C,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,YAAG,CAAC,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAW,EAC/D,QAAQ,KAAK,EAAE,IAAI,KAAC,IAAI,IAAC,SAAS,EAAC,uBAAuB,YAAE,CAAC,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAQ,IACvH,EACL,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACjE,KAAC,IAAI,cACH,MAAC,UAAU,eACT,KAAC,SAAS,cACR,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,YAAG,IAAI,CAAC,KAAK,GAAQ,GAChC,EACZ,KAAC,eAAe,cAAE,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAwB,CAAC,GAAmB,IAC/E,IANJ,IAAI,CAAC,GAAG,CAOZ,CACR,CAAC,EACD,aAAa,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAC9B,KAAC,IAAI,cACH,KAAC,UAAU,cACT,KAAC,SAAS,cACR,KAAC,IAAI,IAAC,IAAI,EAAE,GAAG,yBAAyB,IAAI,OAAO,CAAC,GAAG,EAAE,YAAG,mBAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,GAAQ,GACzG,GACD,IALJ,OAAO,CAAC,GAAG,CAMf,CACR,CAAC,IACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { FrontendComponentType, IdentityPortalLabel } from '@wildo-ai/presets-components-models';\n\nimport { Card, CardDescription, CardHeader, CardTitle } from '~wildo-frontend-lib/components/sections/card';\nimport { Heading } from '~wildo-frontend-lib/components/typography/heading';\nimport { Link } from '~wildo-frontend-lib/components/typography/link';\nimport { Text } from '~wildo-frontend-lib/components/typography/text';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useUserOrgs } from '~wildo-frontend-lib/core/security/useUserOrgs';\nimport { IdentityPortalPageRef, useIdentityPortalPages } from '~wildo-frontend-lib/core/app-shell/useIdentityPortalShellLayout';\nimport { useIdentityPortalSettingsDestinations } from '~wildo-frontend-lib/core/config/identity-portal-settings.frontend';\nimport { APPLICATION_SETTINGS_PATH, EngineSettingsDestinationRef } from '@wildo-ai/saas-models';\n\nconst COMPONENT = FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER;\n\n/** What each page the home leads to is for, in the reader's words. The home page itself is not listed. */\nconst PAGE_DESCRIPTIONS: Readonly<Partial<Record<IdentityPortalPageRef, IdentityPortalLabel>>> = {\n [IdentityPortalPageRef.DECISIONS]: IdentityPortalLabel.HOME_DECISIONS_DESCRIPTION,\n [IdentityPortalPageRef.ACCOUNT_SECURITY]: IdentityPortalLabel.HOME_ACCOUNT_SECURITY_DESCRIPTION,\n};\n\n/**\n * The identity portal's home page, at `/`: where a person lands after signing in, after a sign-in callback with no page\n * to return to, and when they leave the chat-link page. It says who is signed in and leads to what they can do here.\n *\n * At the product's own home path on purpose, so every default landing (`resolvePostAuthRedirect`'s fallback, a link the\n * backend builds to the application's root) reaches it with no knowledge of which surface it runs on.\n */\nexport function IdentityPortalPage_Home(): React.JSX.Element {\n const { user } = useUserOrgs();\n const pages = useIdentityPortalPages();\n const { tComponent, isReady } = useI18n({ component: COMPONENT });\n // The settings pages this person may open on the portal, named as the product's Settings Hub names them. Account\n // security already has its card above.\n const settings = useIdentityPortalSettingsDestinations();\n const { tSettingsHubSection, isReady: settingsWordsReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB });\n const settingsPages = settings.sections.filter((section) => section.ref !== EngineSettingsDestinationRef.SECURITY);\n const t = (key: IdentityPortalLabel, params?: Record<string, string>): string => tComponent(COMPONENT, key, params);\n const identity = user?.email ?? '';\n\n if (!isReady || !settingsWordsReady) return <></>;\n\n return (\n <div className=\"flex flex-col gap-section\">\n <div className=\"flex flex-col gap-element-sm\">\n <Heading level={1}>{t(IdentityPortalLabel.HOME_TITLE)}</Heading>\n {identity !== '' && <Text className=\"text-muted-foreground\">{t(IdentityPortalLabel.HOME_SIGNED_IN_AS, { identity })}</Text>}\n </div>\n {pages.filter((page) => PAGE_DESCRIPTIONS[page.ref]).map((page) => (\n <Card key={page.ref}>\n <CardHeader>\n <CardTitle>\n <Link href={page.path}>{page.label}</Link>\n </CardTitle>\n <CardDescription>{t(PAGE_DESCRIPTIONS[page.ref] as IdentityPortalLabel)}</CardDescription>\n </CardHeader>\n </Card>\n ))}\n {settingsPages.map((section) => (\n <Card key={section.ref}>\n <CardHeader>\n <CardTitle>\n <Link href={`${APPLICATION_SETTINGS_PATH}/${section.ref}`}>{tSettingsHubSection(section.ref, section.label)}</Link>\n </CardTitle>\n </CardHeader>\n </Card>\n ))}\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* One of the Settings Hub's destinations, as a page of the identity portal, at the path the product's hub opens it at
|
|
4
|
+
* (`/settings/<destination>`, `/settings/<destination>/<sub-tab>`).
|
|
5
|
+
*
|
|
6
|
+
* The portal has no Settings Hub: an application whose one frontend is its portal still needs a few of the hub's pages
|
|
7
|
+
* (its OAuth clients, its chat connection and chat accounts, which client its agents run as, a member's own chat
|
|
8
|
+
* accounts and invitations). Each renders through the hub's own `SettingsTargetRenderer`, so the page is the product's
|
|
9
|
+
* section and not a copy, under the portal's slim shell, with no rail.
|
|
10
|
+
*
|
|
11
|
+
* Which destinations, and who sees each, is the hub's own answer: `IDENTITY_PORTAL_SETTINGS_DESTINATIONS` names them,
|
|
12
|
+
* and `useIdentityPortalSettingsDestinations` gates them with the hub's role, scope and capability checks. A destination
|
|
13
|
+
* that is not on the list, or that this person may not open, answers the not-found page, never an empty page.
|
|
14
|
+
*/
|
|
15
|
+
export declare function IdentityPortalPage_SettingsDestination(): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=IdentityPortalPage_SettingsDestination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityPortalPage_SettingsDestination.d.ts","sourceRoot":"","sources":["../../../../src/components/app/IdentityPortalPage_SettingsDestination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAU3C;;;;;;;;;;;;GAYG;AACH,wBAAgB,sCAAsC,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAgB1E"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import { useNavigate, useParams } from 'react-router';
|
|
4
|
+
import { FrontendComponentType } from '@wildo-ai/presets-components-models';
|
|
5
|
+
import { SettingsTargetRenderer } from '../../components/settings/SettingsHub.js';
|
|
6
|
+
import { useIdentityPortalSettingsDestinations } from '../../core/config/identity-portal-settings.frontend.js';
|
|
7
|
+
import { RouterErrorBoundary } from '../../core/errors/RouterErrorBoundary.js';
|
|
8
|
+
import { useI18n } from '../../core/i18n/useI18n.js';
|
|
9
|
+
import { CommonRoutePaths } from '../../core/runtime/routes.frontend.definitions.js';
|
|
10
|
+
/**
|
|
11
|
+
* One of the Settings Hub's destinations, as a page of the identity portal, at the path the product's hub opens it at
|
|
12
|
+
* (`/settings/<destination>`, `/settings/<destination>/<sub-tab>`).
|
|
13
|
+
*
|
|
14
|
+
* The portal has no Settings Hub: an application whose one frontend is its portal still needs a few of the hub's pages
|
|
15
|
+
* (its OAuth clients, its chat connection and chat accounts, which client its agents run as, a member's own chat
|
|
16
|
+
* accounts and invitations). Each renders through the hub's own `SettingsTargetRenderer`, so the page is the product's
|
|
17
|
+
* section and not a copy, under the portal's slim shell, with no rail.
|
|
18
|
+
*
|
|
19
|
+
* Which destinations, and who sees each, is the hub's own answer: `IDENTITY_PORTAL_SETTINGS_DESTINATIONS` names them,
|
|
20
|
+
* and `useIdentityPortalSettingsDestinations` gates them with the hub's role, scope and capability checks. A destination
|
|
21
|
+
* that is not on the list, or that this person may not open, answers the not-found page, never an empty page.
|
|
22
|
+
*/
|
|
23
|
+
export function IdentityPortalPage_SettingsDestination() {
|
|
24
|
+
const { sectionRef, subTabRef } = useParams();
|
|
25
|
+
const settings = useIdentityPortalSettingsDestinations();
|
|
26
|
+
const navigate = useNavigate();
|
|
27
|
+
const { tSettingsHubSection, isReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB });
|
|
28
|
+
const section = settings.sections.find((candidate) => candidate.ref === sectionRef);
|
|
29
|
+
// A sub-tab switch writes the URL, replacing the entry, as the hub's own strip does.
|
|
30
|
+
const onSubTabChange = useCallback((nextSubTabRef) => {
|
|
31
|
+
if (section)
|
|
32
|
+
navigate(`${CommonRoutePaths.settings}/${section.ref}/${nextSubTabRef}`, { replace: true });
|
|
33
|
+
}, [navigate, section]);
|
|
34
|
+
if (!section)
|
|
35
|
+
return _jsx(RouterErrorBoundary, {});
|
|
36
|
+
// The section's content as the hub renders it, which carries its own heading; the hub adds none above it either.
|
|
37
|
+
if (!isReady)
|
|
38
|
+
return _jsx(_Fragment, {});
|
|
39
|
+
return _jsx(SettingsTargetRenderer, { target: section.target, resolveSubTabLabel: tSettingsHubSection, subTabRef: subTabRef, onSubTabChange: onSubTabChange });
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=IdentityPortalPage_SettingsDestination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityPortalPage_SettingsDestination.js","sourceRoot":"","sources":["../../../../src/components/app/IdentityPortalPage_SettingsDestination.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,SA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AAC;IAC3B,OAAO,KAAC,sBAAsB,IAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,GAAI,CAAC;AAC3J,CAAC","sourcesContent":["import React, { useCallback } from 'react';\nimport { useNavigate, useParams } from 'react-router';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\n\nimport { SettingsTargetRenderer } from '~wildo-frontend-lib/components/settings/SettingsHub';\nimport { useIdentityPortalSettingsDestinations } from '~wildo-frontend-lib/core/config/identity-portal-settings.frontend';\nimport { RouterErrorBoundary } from '~wildo-frontend-lib/core/errors/RouterErrorBoundary';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\n\n/**\n * One of the Settings Hub's destinations, as a page of the identity portal, at the path the product's hub opens it at\n * (`/settings/<destination>`, `/settings/<destination>/<sub-tab>`).\n *\n * The portal has no Settings Hub: an application whose one frontend is its portal still needs a few of the hub's pages\n * (its OAuth clients, its chat connection and chat accounts, which client its agents run as, a member's own chat\n * accounts and invitations). Each renders through the hub's own `SettingsTargetRenderer`, so the page is the product's\n * section and not a copy, under the portal's slim shell, with no rail.\n *\n * Which destinations, and who sees each, is the hub's own answer: `IDENTITY_PORTAL_SETTINGS_DESTINATIONS` names them,\n * and `useIdentityPortalSettingsDestinations` gates them with the hub's role, scope and capability checks. A destination\n * that is not on the list, or that this person may not open, answers the not-found page, never an empty page.\n */\nexport function IdentityPortalPage_SettingsDestination(): React.JSX.Element {\n const { sectionRef, subTabRef } = useParams();\n const settings = useIdentityPortalSettingsDestinations();\n const navigate = useNavigate();\n const { tSettingsHubSection, isReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB });\n const section = settings.sections.find((candidate) => candidate.ref === sectionRef);\n\n // A sub-tab switch writes the URL, replacing the entry, as the hub's own strip does.\n const onSubTabChange = useCallback((nextSubTabRef: string) => {\n if (section) navigate(`${CommonRoutePaths.settings}/${section.ref}/${nextSubTabRef}`, { replace: true });\n }, [navigate, section]);\n\n if (!section) return <RouterErrorBoundary />;\n // The section's content as the hub renders it, which carries its own heading; the hub adds none above it either.\n if (!isReady) return <></>;\n return <SettingsTargetRenderer target={section.target} resolveSubTabLabel={tSettingsHubSection} subTabRef={subTabRef} onSubTabChange={onSubTabChange} />;\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentPresetProps } from '../../core/components-registry/component-registry.frontend.schemas';
|
|
3
|
+
/** Props for the decision-answer page preset. Self-driven from the link's query and the session, so it takes none. */
|
|
4
|
+
export interface PublicLayoutPreset_DecisionEmailAnswer_DefaultProps {
|
|
5
|
+
/** Reserved: the page is URL/session-driven and currently accepts no props. */
|
|
6
|
+
readonly _selfDriven?: never;
|
|
7
|
+
}
|
|
8
|
+
/** Default preset implementation for {@link FrontendComponentType.PUBLIC_LAYOUTS_DECISION_EMAIL_ANSWER}. */
|
|
9
|
+
export declare const PublicLayoutPreset_DecisionEmailAnswer_Default: (_props: PublicLayoutPreset_DecisionEmailAnswer_DefaultProps) => React.JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* Preset-resolving wrapper for the decision-answer page (mirrors every other `PUBLIC_LAYOUTS` page), so an application
|
|
12
|
+
* can swap in its own through the component registry. {@link AuthPage_DecisionEmailAnswer} renders this wrapper.
|
|
13
|
+
*/
|
|
14
|
+
export declare function Auth_DecisionEmailAnswer({ preset, ...props }: PublicLayoutPreset_DecisionEmailAnswer_DefaultProps & ComponentPresetProps): React.JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Auth_DecisionEmailAnswer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Auth_DecisionEmailAnswer.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/Auth_DecisionEmailAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAsBxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kFAAkF,CAAC;AAyFxH,sHAAsH;AACtH,MAAM,WAAW,mDAAmD;IAClE,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC;CAC9B;AAKD,4GAA4G;AAC5G,eAAO,MAAM,8CAA8C,GACzD,QAAQ,mDAAmD,KAC1D,KAAK,CAAC,GAAG,CAAC,OAsPZ,CAAC;AAEF;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,MAAgC,EAChC,GAAG,KAAK,EACT,EAAE,mDAAmD,GAAG,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAMhG"}
|