@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
|
@@ -20,6 +20,20 @@
|
|
|
20
20
|
* section: it wins whenever the gated config admits it (see `active` below).
|
|
21
21
|
*/
|
|
22
22
|
import React from 'react';
|
|
23
|
+
import type { SettingsSectionTarget } from '../../core/config/settings-hub.frontend.schemas';
|
|
24
|
+
/** Resolves a display label for a section/sub-tab ref, falling back to the authored label. */
|
|
25
|
+
type SettingsLabelResolver = (ref: string, fallbackLabel: string) => string;
|
|
26
|
+
/**
|
|
27
|
+
* One section's content, whatever its target: an engine panel, a registered component, a resource surface, or a strip
|
|
28
|
+
* of sub-tabs. Exported for the identity portal, which mounts some of the hub's destinations as pages of their own, with
|
|
29
|
+
* no rail, and renders them through this same renderer rather than a copy.
|
|
30
|
+
*/
|
|
31
|
+
export declare function SettingsTargetRenderer({ target, resolveSubTabLabel, subTabRef, onSubTabChange, }: {
|
|
32
|
+
target: SettingsSectionTarget;
|
|
33
|
+
resolveSubTabLabel: SettingsLabelResolver;
|
|
34
|
+
subTabRef?: string;
|
|
35
|
+
onSubTabChange?: (subTabRef: string) => void;
|
|
36
|
+
}): React.JSX.Element;
|
|
23
37
|
export interface SettingsHubProps {
|
|
24
38
|
/** The section the URL names. It is open whenever the gated config admits it; until then, the config default. */
|
|
25
39
|
sectionRef?: string;
|
|
@@ -27,4 +41,5 @@ export interface SettingsHubProps {
|
|
|
27
41
|
subTabRef?: string;
|
|
28
42
|
}
|
|
29
43
|
export declare function SettingsHub({ sectionRef, subTabRef }: SettingsHubProps): React.JSX.Element;
|
|
44
|
+
export {};
|
|
30
45
|
//# sourceMappingURL=SettingsHub.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsHub.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/SettingsHub.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAkD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SettingsHub.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/SettingsHub.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAkD,MAAM,OAAO,CAAC;AA4BvE,OAAO,KAAK,EAKV,qBAAqB,EAEtB,MAAM,+DAA+D,CAAC;AAkGvE,8FAA8F;AAC9F,KAAK,qBAAqB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,MAAM,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,kBAAkB,EAClB,SAAS,EACT,cAAc,GACf,EAAE;IACD,MAAM,EAAE,qBAAqB,CAAC;IAC9B,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsCpB;AAqED,MAAM,WAAW,gBAAgB;IAC/B,iHAAiH;IACjH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAsV1F"}
|
|
@@ -45,12 +45,14 @@ import { AppPage_ModelCostBreakdownSettings, ModelCostBreakdownScope } from './A
|
|
|
45
45
|
import { AppPage_RepresentativeActivitySettings } from './AppPage_RepresentativeActivitySettings.js';
|
|
46
46
|
import { AppPage_AgentWorkEvaluationExportSettings } from './AppPage_AgentWorkEvaluationExportSettings.js';
|
|
47
47
|
import { ComponentRegistryService } from '../../core/components-registry/component-registry.frontend.service.js';
|
|
48
|
+
import { RegisteredComponentRoot } from '../../core/components-registry/RegisteredComponentRoot.js';
|
|
48
49
|
import { ComponentNotInjected } from '../../core/components-registry/ComponentNotInjected.js';
|
|
49
50
|
import { SettingsPanelRef, SettingsSectionTargetKind } from '../../core/config/settings-hub.frontend.schemas.js';
|
|
50
51
|
import { CommonRoutePaths } from '../../core/runtime/routes.frontend.definitions.js';
|
|
51
52
|
import { useVisibleSettingsHubConfig } from '../../core/config/useVisibleSettingsHubConfig.js';
|
|
52
53
|
import { useI18n } from '../../core/i18n/useI18n.js';
|
|
53
54
|
import { FeatureGate } from '../../core/features/FeatureGate.js';
|
|
55
|
+
import { RequiredFeaturesGatePresentation } from '../../core/features/required-features-gate-presentation.js';
|
|
54
56
|
import { useFeatureAvailability } from '../../core/features/useFeatureAvailability.js';
|
|
55
57
|
import { Alert, AlertDescription } from '../../components/overlays/containers/alert.js';
|
|
56
58
|
import { FeatureUnavailabilityBehavior } from '@wildo-ai/saas-models';
|
|
@@ -136,7 +138,12 @@ function SettingsEnginePanel({ panelRef }) {
|
|
|
136
138
|
return _jsx(AppPage_AgentWorkEvaluationExportSettings, {});
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
|
-
|
|
141
|
+
/**
|
|
142
|
+
* One section's content, whatever its target: an engine panel, a registered component, a resource surface, or a strip
|
|
143
|
+
* of sub-tabs. Exported for the identity portal, which mounts some of the hub's destinations as pages of their own, with
|
|
144
|
+
* no rail, and renders them through this same renderer rather than a copy.
|
|
145
|
+
*/
|
|
146
|
+
export function SettingsTargetRenderer({ target, resolveSubTabLabel, subTabRef, onSubTabChange, }) {
|
|
140
147
|
switch (target.kind) {
|
|
141
148
|
case SettingsSectionTargetKind.ENGINE_PANEL:
|
|
142
149
|
return _jsx(SettingsEnginePanel, { panelRef: target.panelRef });
|
|
@@ -145,7 +152,7 @@ function SettingsTargetRenderer({ target, resolveSubTabLabel, subTabRef, onSubTa
|
|
|
145
152
|
if (!CustomComponent) {
|
|
146
153
|
return _jsx(ComponentNotInjected, { componentType: target.componentRef, componentName: target.componentRef });
|
|
147
154
|
}
|
|
148
|
-
return (_jsx(React.Suspense, { fallback: _jsx("div", { className: "h-8 animate-pulse motion-reduce:animate-none bg-muted rounded", "aria-hidden": "true" }), children: _jsx(CustomComponent, {}) }));
|
|
155
|
+
return (_jsx(React.Suspense, { fallback: _jsx("div", { className: "h-8 animate-pulse motion-reduce:animate-none bg-muted rounded", "aria-hidden": "true" }), children: _jsx(RegisteredComponentRoot, { componentRef: target.componentRef, children: _jsx(CustomComponent, {}) }) }));
|
|
149
156
|
}
|
|
150
157
|
case SettingsSectionTargetKind.RESOURCE_OPERATION:
|
|
151
158
|
return (_jsx(SettingsResourceOperationPanel, { resourceType: target.resourceType, operation: target.operation, operationVariant: target.operationVariant }));
|
|
@@ -351,7 +358,10 @@ export function SettingsHub({ sectionRef, subTabRef }) {
|
|
|
351
358
|
// first cut of this lost the selected fill while every other class held.
|
|
352
359
|
railItemRecipe.base, railItemRecipe.states.focus, railItemRecipe.states.selected, railItemRecipe.motion.transition), children: [section.icon && renderIcon(section.icon, { size: IconSize.SM }), tSettingsHubSection(section.ref, section.label)] }, section.ref));
|
|
353
360
|
}) })] }, block.group?.ref ?? '__ungrouped'))) })] }, category.ref));
|
|
354
|
-
}) }), _jsx("div", { className: cn('min-w-0 flex-1 overflow-y-auto p-card-lg', isMobile && !mobileShowsSection && 'hidden'), children: config.sections.filter(section => section.ref === active).map(section => (_jsx(React.Fragment, { children: section.entitlementFeatureId ? (
|
|
361
|
+
}) }), _jsx("div", { className: cn('min-w-0 flex-1 overflow-y-auto p-card-lg', isMobile && !mobileShowsSection && 'hidden'), children: config.sections.filter(section => section.ref === active).map(section => (_jsx(React.Fragment, { children: section.entitlementFeatureId && section.entitlementWithholdsContent ? (
|
|
362
|
+
// The feature sells the CONTENT (the organization audit log): nothing is configured to keep, and the
|
|
363
|
+
// backend refuses the read without it, so the feature's prompt takes the content's place.
|
|
364
|
+
_jsx("div", { className: "space-y-card", children: _jsx(FeatureGate, { featureId: section.entitlementFeatureId, children: _jsx(SettingsTargetRenderer, { target: section.target, resolveSubTabLabel: tSettingsHubSection, subTabRef: section.ref === active ? subTabRef : undefined, onSubTabChange: handleSubTabChange }) }) })) : section.entitlementFeatureId ? (
|
|
355
365
|
// Section SURVIVED because the app OFFERS this feature (`runtimeAvailability`
|
|
356
366
|
// capability = plan-independent `isFeatureOffered`), or because something is still
|
|
357
367
|
// configured here (#3126). Render its body through the entitlement gate: entitled →
|
|
@@ -398,6 +408,6 @@ function EntitlementGatedSettingsSection({ featureId, keptConfigurationNotice, c
|
|
|
398
408
|
// Entitled, or a HIDE feature: the gate renders the content, or nothing.
|
|
399
409
|
return _jsx("div", { className: "space-y-card", children: _jsx(FeatureGate, { featureId: featureId, children: children }) });
|
|
400
410
|
}
|
|
401
|
-
return (_jsxs("div", { className: "space-y-card", children: [_jsx(Alert, { variant: "info", children: _jsx(AlertDescription, { children: keptConfigurationNotice }) }), hasUpgradePath && _jsx(FeatureGate, { featureId: featureId, children: null }), children] }));
|
|
411
|
+
return (_jsxs("div", { className: "space-y-card", children: [_jsx(Alert, { variant: "info", children: _jsx(AlertDescription, { children: keptConfigurationNotice }) }), hasUpgradePath && _jsx(FeatureGate, { featureId: featureId, presentation: RequiredFeaturesGatePresentation.TILE, children: null }), children] }));
|
|
402
412
|
}
|
|
403
413
|
//# sourceMappingURL=SettingsHub.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsHub.js","sourceRoot":"","sources":["../../../../src/components/settings/SettingsHub.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;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KAAC,KAAK,IAAC,OAAO,EAAC,MAAM,YACnB,KAAC,gBAAgB,cAAE,uBAAuB,GAAoB,GACxD,EAEP,cAAc,IAAI,KAAC,WAAW,IAAC,SAAS,EAAE,SAAS,YAAG,IAAI,GAAe,EACzE,QAAQ,IACL,CACP,CAAC;AACJ,CAAC","sourcesContent":["/**\n * SettingsHub — the unified settings surface.\n *\n * Renders the declarative `ResolvedSettingsHubConfig` as a vertical NAVIGATION rail beside a\n * content panel. Categories become labelled groups of links, each destination addressed by its own\n * URL. A section's `target` resolves to a framework panel, an auto-rendered resource surface, a\n * custom component, or a set of horizontal sub-tabs.\n *\n * The rail was a `Tabs`/`TabsList` until 2026-09-19, chosen so that section state and keyboard\n * roving came from the primitive rather than being hand-rolled. It became navigation because a\n * tablist switches panels WITHIN a view while these are thirty destinations that each own a URL —\n * and the keyboard argument dissolves rather than transferring: roving tabindex is a tablist\n * requirement, and navigation wants ordinary Tab order through links. See the rail's own comment.\n *\n * The SUB-TABS are still `Tabs`, correctly: Configuration/Connections inside one destination is\n * exactly what a tablist is for.\n *\n * Mounted by `NavigationContentRenderer` for `NavigationContentType.SETTINGS_HUB`\n * (always in the overlay zone). The `sectionRef` prop names the open\n * section: it wins whenever the gated config admits it (see `active` below).\n */\nimport React, { useCallback, useEffect, useMemo, useRef } from 'react';\nimport { Link, useNavigate } from 'react-router';\nimport { ViewportBreakpoint } from '@wildo-ai/zod-decorators';\nimport { CorePresetNames, FrontendComponentType, SelectableVariant, TypographyVariant, UIBehavior } from '@wildo-ai/presets-components-models';\nimport { Tabs, TabsList, TabsTrigger, TabsContent } from '~wildo-frontend-lib/components/sections/tabs';\nimport { Separator } from '~wildo-frontend-lib/components/layout/separator';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { ButtonSize } from '@wildo-ai/presets-components-models';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { IconSize, StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { AppPage_SecuritySettings } from '~wildo-frontend-lib/components/auth/admin-config/AppPage_SecuritySettings';\nimport { AppPage_AppearanceSettings } from './AppPage_AppearanceSettings';\nimport { AppPage_InvitationsSettings } from './AppPage_InvitationsSettings';\nimport { AppPage_BillingSettings } from './AppPage_BillingSettings';\nimport { ExternalProvider_Connection_OwnerScope } from '@wildo-ai/external-connectors-models';\nimport { AppPage_ConnectedAccountsSettings } from './AppPage_ConnectedAccountsSettings';\nimport { AppPage_AgentWorkOverrideRateSettings } from './AppPage_AgentWorkOverrideRateSettings';\nimport { AppPage_AutonomousAgentsSettings } from './AppPage_AutonomousAgentsSettings';\nimport { AgentActivityScope, AppPage_AgentActivitySettings } from './AppPage_AgentActivitySettings';\nimport { AppPage_ModelCostBreakdownSettings, ModelCostBreakdownScope } from './AppPage_ModelCostBreakdownSettings';\nimport { AppPage_RepresentativeActivitySettings } from './AppPage_RepresentativeActivitySettings';\nimport { AppPage_AgentWorkEvaluationExportSettings } from './AppPage_AgentWorkEvaluationExportSettings';\nimport { ComponentRegistryService } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.service';\nimport { ComponentNotInjected } from '~wildo-frontend-lib/core/components-registry/ComponentNotInjected';\nimport { SettingsPanelRef, SettingsSectionTargetKind } from '~wildo-frontend-lib/core/config/settings-hub.frontend.schemas';\nimport type {\n ResolvedSettingsHubConfig,\n SettingsCategory,\n SettingsCategoryGroup,\n SettingsSection,\n SettingsSectionTarget,\n SettingsSubTabsTarget,\n} from '~wildo-frontend-lib/core/config/settings-hub.frontend.schemas';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport { useVisibleSettingsHubConfig } from '~wildo-frontend-lib/core/config/useVisibleSettingsHubConfig';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { FeatureGate } from '~wildo-frontend-lib/core/features/FeatureGate';\nimport { useFeatureAvailability } from '~wildo-frontend-lib/core/features/useFeatureAvailability';\nimport { Alert, AlertDescription } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { FeatureUnavailabilityBehavior } from '@wildo-ai/saas-models';\nimport { LoadingGate } from '~wildo-frontend-lib/core/loading/LoadingGate';\nimport { SettingsResourceOperationPanel } from './SettingsResourceOperationPanel';\n\n// ──────────────────────────────────────────────────────────────\n// Config helpers\n// ──────────────────────────────────────────────────────────────\n\nfunction orderedCategories(config: ResolvedSettingsHubConfig): SettingsCategory[] {\n return [...config.categories].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n}\n\nfunction sectionsForCategory(config: ResolvedSettingsHubConfig, categoryRef: string): SettingsSection[] {\n return config.sections\n .filter(section => section.categoryRef === categoryRef)\n .sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n}\n\n/**\n * A category's rail in sub-category blocks (#2329): its ungrouped sections first, with no heading, then each declared\n * group in order with its sections. A group no placed section names draws nothing, and a section naming an undeclared\n * group (refused by the DEV verifier) is drawn with the ungrouped ones rather than lost.\n */\nfunction railBlocks(category: SettingsCategory, sections: SettingsSection[]): Array<{ group?: SettingsCategoryGroup; sections: SettingsSection[] }> {\n const groups = [...(category.groups ?? [])].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n const declared = new Set(groups.map(group => group.ref));\n const ungrouped = sections.filter(section => section.groupRef === undefined || !declared.has(section.groupRef));\n return [\n ...(ungrouped.length > 0 ? [{ sections: ungrouped }] : []),\n ...groups\n .map(group => ({ group, sections: sections.filter(section => section.groupRef === group.ref) }))\n .filter(block => block.sections.length > 0),\n ];\n}\n\n/** Resolve the section to open: requested → config default → first section. */\nfunction resolveActiveSection(config: ResolvedSettingsHubConfig, sectionRef?: string): string | undefined {\n if (sectionRef && config.sections.some(section => section.ref === sectionRef)) return sectionRef;\n if (config.defaultSectionRef && config.sections.some(section => section.ref === config.defaultSectionRef)) {\n return config.defaultSectionRef;\n }\n return config.sections[0]?.ref;\n}\n\n// ──────────────────────────────────────────────────────────────\n// Target rendering (function declarations → hoisted for mutual recursion\n// between a SUB_TABS target and its leaf targets)\n// ──────────────────────────────────────────────────────────────\n\nfunction SettingsEnginePanel({ panelRef }: { panelRef: SettingsPanelRef }): React.JSX.Element {\n switch (panelRef) {\n case SettingsPanelRef.SECURITY:\n return <AppPage_SecuritySettings />;\n case SettingsPanelRef.APPEARANCE:\n return <AppPage_AppearanceSettings />;\n case SettingsPanelRef.INVITATIONS:\n return <AppPage_InvitationsSettings />;\n case SettingsPanelRef.BILLING:\n return <AppPage_BillingSettings />;\n case SettingsPanelRef.CONNECTED_ACCOUNTS:\n return <AppPage_ConnectedAccountsSettings ownerScope={ExternalProvider_Connection_OwnerScope.USER} />;\n case SettingsPanelRef.ORGANIZATION_CONNECTED_ACCOUNTS:\n // The scope is passed EXPLICITLY at both sites rather than left to the component's default.\n // A default is invisible at the call site, and the one thing a reader must be able to see here\n // is whose account each panel connects.\n return <AppPage_ConnectedAccountsSettings ownerScope={ExternalProvider_Connection_OwnerScope.ORGANIZATION} />;\n case SettingsPanelRef.APPLICATION_CONNECTED_ACCOUNTS:\n // The application's own account (#3579): the third owner, passed explicitly for the same reason.\n return <AppPage_ConnectedAccountsSettings ownerScope={ExternalProvider_Connection_OwnerScope.APPLICATION} />;\n case SettingsPanelRef.AGENT_WORK_OVERRIDE_RATE:\n return <AppPage_AgentWorkOverrideRateSettings />;\n case SettingsPanelRef.AUTONOMOUS_AGENTS:\n return <AppPage_AutonomousAgentsSettings />;\n case SettingsPanelRef.AGENT_ACTIVITY:\n // Whose runs are passed EXPLICITLY at both sites, as for connected accounts above (#3990).\n return <AppPage_AgentActivitySettings scope={AgentActivityScope.ORGANIZATION} />;\n case SettingsPanelRef.APPLICATION_AGENT_ACTIVITY:\n return <AppPage_AgentActivitySettings scope={AgentActivityScope.APPLICATION} />;\n case SettingsPanelRef.MODEL_COST_BREAKDOWN:\n // Whose cost is passed EXPLICITLY at both sites, as for connected accounts above.\n return <AppPage_ModelCostBreakdownSettings scope={ModelCostBreakdownScope.APPLICATION} />;\n case SettingsPanelRef.REPRESENTING_ORGANIZATION_MODEL_COST_BREAKDOWN:\n return <AppPage_ModelCostBreakdownSettings scope={ModelCostBreakdownScope.REPRESENTING_ORGANIZATION} />;\n case SettingsPanelRef.REPRESENTATIVE_ACTIVITY:\n return <AppPage_RepresentativeActivitySettings />;\n case SettingsPanelRef.AGENT_WORK_EVALUATION_EXPORT:\n return <AppPage_AgentWorkEvaluationExportSettings />;\n }\n}\n\n/** Resolves a display label for a section/sub-tab ref, falling back to the authored label. */\ntype SettingsLabelResolver = (ref: string, fallbackLabel: string) => string;\n\nfunction SettingsTargetRenderer({\n target,\n resolveSubTabLabel,\n subTabRef,\n onSubTabChange,\n}: {\n target: SettingsSectionTarget;\n resolveSubTabLabel: SettingsLabelResolver;\n subTabRef?: string;\n onSubTabChange?: (subTabRef: string) => void;\n}): React.JSX.Element {\n switch (target.kind) {\n case SettingsSectionTargetKind.ENGINE_PANEL:\n return <SettingsEnginePanel panelRef={target.panelRef} />;\n case SettingsSectionTargetKind.CUSTOM_COMPONENT: {\n const CustomComponent = ComponentRegistryService.resolve(\n target.componentRef,\n CorePresetNames.DEFAULT,\n );\n if (!CustomComponent) {\n return <ComponentNotInjected componentType={target.componentRef} componentName={target.componentRef} />;\n }\n return (\n <React.Suspense fallback={<div className=\"h-8 animate-pulse motion-reduce:animate-none bg-muted rounded\" aria-hidden=\"true\" />}>\n <CustomComponent />\n </React.Suspense>\n );\n }\n case SettingsSectionTargetKind.RESOURCE_OPERATION:\n return (\n <SettingsResourceOperationPanel\n resourceType={target.resourceType}\n operation={target.operation}\n operationVariant={target.operationVariant}\n />\n );\n case SettingsSectionTargetKind.SUB_TABS:\n return (\n <SettingsSubTabs\n target={target}\n resolveSubTabLabel={resolveSubTabLabel}\n subTabRef={subTabRef}\n onSubTabChange={onSubTabChange}\n />\n );\n }\n}\n\n/**\n * The sub-tab strip inside one section.\n *\n * The active tab is URL-DRIVEN since 2026-09-17. It used to be `useState(target.subTabs[0]?.ref)` —\n * local state that read nothing from the URL — so all twenty-one sub-tab panels in the shipped\n * catalogue were unaddressable: every link to a sub-tabbed section opened its FIRST tab, and\n * \"Single sign-on → Connections\" could not be sent to anybody. That contradicted the hub's own\n * contract, which is that the URL is its single source of truth, and it made the outcome banner a\n * connect-callback renders depend on tab ORDER rather than on the URL it returns to.\n *\n * A `subTabRef` the section does not declare is IGNORED rather than refused: the tab falls back to\n * the first entry, so a stale bookmark or a hand-typed segment still opens the section instead of an\n * error. `onSubTabChange` writes the selection back, which is what makes the strip a navigation\n * control rather than a widget with a URL beside it.\n */\nfunction SettingsSubTabs({\n target,\n resolveSubTabLabel,\n subTabRef,\n onSubTabChange,\n}: {\n target: SettingsSubTabsTarget;\n resolveSubTabLabel: SettingsLabelResolver;\n subTabRef?: string;\n onSubTabChange?: (subTabRef: string) => void;\n}): React.JSX.Element | null {\n const active = target.subTabs.some(subTab => subTab.ref === subTabRef)\n ? subTabRef\n : target.subTabs[0]?.ref;\n if (target.subTabs.length === 0) return null;\n return (\n <Tabs value={active} onValueChange={next => onSubTabChange?.(next)}>\n <TabsList>\n {target.subTabs.map(subTab => (\n // `data-ref` is the i18n-independent automation hook (labels are\n // runtime-translated; e2e drives must never key off them).\n <TabsTrigger key={subTab.ref} value={subTab.ref} data-ref={subTab.ref}>\n {resolveSubTabLabel(subTab.ref, subTab.label)}\n </TabsTrigger>\n ))}\n </TabsList>\n {target.subTabs.map(subTab => (\n <TabsContent key={subTab.ref} value={subTab.ref}>\n {/* Leaf targets only (schema forbids nested sub-tabs); the resolver is\n still threaded to satisfy the shared renderer signature. */}\n <SettingsTargetRenderer target={subTab.target} resolveSubTabLabel={resolveSubTabLabel} />\n </TabsContent>\n ))}\n </Tabs>\n );\n}\n\n/**\n * A rail item's layout classes — full-width, left-aligned, icon-tolerant.\n *\n * Carried here rather than reused from the tab trigger because the rail is no longer a tab: this is\n * a navigation item and owns its own shape. Only the SELECTED treatment is shared, and that comes\n * from the theme recipe rather than from a copied class string, so a theme change still reaches\n * both.\n */\nconst RAIL_ITEM_CLASSES =\n \"inline-flex w-full cursor-pointer items-center justify-start gap-1.5 whitespace-nowrap rounded-md px-card-sm py-item text-sm font-medium no-underline [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\";\n\n// ──────────────────────────────────────────────────────────────\n// Hub\n// ──────────────────────────────────────────────────────────────\n\nexport interface SettingsHubProps {\n /** The section the URL names. It is open whenever the gated config admits it; until then, the config default. */\n sectionRef?: string;\n /** Sub-tab of `sectionRef` to pre-open; ignored when the section declares no such tab. */\n subTabRef?: string;\n}\n\nexport function SettingsHub({ sectionRef, subTabRef }: SettingsHubProps): React.JSX.Element {\n const config = useVisibleSettingsHubConfig();\n const categories = useMemo(() => orderedCategories(config), [config]);\n /*\n * The open section is DERIVED from the URL and the gated config, on every render. It is not\n * state, and it was until 2026-10-02 (#2190), when it held a fallback that outlived its reason.\n *\n * The gated config arrives in stages: on a cold load the first answer is built before the\n * organization's features resolve, so a feature-gated destination (`sso`, `scim`) is absent from\n * it. The old state machine resolved `/settings/sso` against that first config, fell back to the\n * first section (Profile), then kept Profile when `sso` joined the config, because Profile was\n * still selectable. Its URL effect did not help, since `sectionRef` never changed. A deep link or\n * a reload of a gated destination therefore opened the wrong pane for good, while a rail click\n * opened the right one.\n *\n * Deriving it removes the \"current choice\" that a fallback could become. The URL can stand for\n * the person's choice because the rail's links write it (`to` + `replace`) and nothing else\n * selects a section, so `sectionRef` is always the section the person last asked for. Whenever it\n * is selectable it is the open section, whatever order the gating signals land in. When it is not\n * (yet) selectable, the default stands in, and the requested section takes over the moment the\n * config admits it. The earlier concern that kept `config` out of the sync effect, config\n * identity churning and resetting a rail click, has no purchase here: a click changes\n * `sectionRef` itself, so a re-derivation can only re-confirm it.\n */\n const active = useMemo(() => resolveActiveSection(config, sectionRef), [config, sectionRef]);\n const routerNavigate = useNavigate();\n\n /*\n * In-hub navigation WRITES the URL. Until 2026-09-17 it did not, at either level: the rail set\n * local state and the sub-tab strip held its own, so the address bar kept whatever section the\n * hub was opened at. Deep-linking IN worked and linking OUT never did — you could be looking at\n * Administration → Single sign-on → Connections with `/settings/profile` in the address bar, and\n * no sequence of clicks produced a URL for where you were.\n *\n * REPLACE rather than push, deliberately. A settings rail is a switcher, not a trail: pushing\n * would make Back walk every section a person browsed before leaving the hub, which is the\n * behaviour the overlay's own dismiss already owns. Replace keeps the address bar truthful and\n * leaves Back meaning \"leave settings\".\n *\n * The overlay reconciler converges on the new URL — it keys on section AND sub-tab, so a tab\n * switch inside one section is seen as a change rather than as already-correct. There is no loop:\n * only a user gesture calls these, and the reconciler emits no navigation of its own.\n */\n // The SECTION half of this used to be `navigateToSection`, which the rail's triggers called. The\n // rail's links now carry `to` + `replace` themselves, and `active` is derived from the URL\n // (see its declaration above) — so the helper had no caller left. The SUB-TAB half stays: those really are tabs.\n\n const handleSubTabChange = useCallback((nextSubTabRef: string) => {\n if (!active) return;\n routerNavigate(`${CommonRoutePaths.settings}/${active}/${nextSubTabRef}`, { replace: true });\n }, [active, routerNavigate]);\n\n /*\n * On a small screen the hub is a BACK-STACK rather than two panes.\n *\n * It had no responsive treatment at all before 2026-09-17 — a fixed `w-60 shrink-0` rail at every\n * width, which is 240px of a ~375px viewport, and the rail is now thirty entries rather than\n * sixteen. The back-stack is chosen over a drawer or a collapsed select because the panel BELOW\n * already works this way: `SettingsSectionNavigationHost` keeps a section's own drill-ins\n * (view → edit → back) inside the panel, so mobile becomes the same mechanism one level up\n * instead of a second navigation concept.\n *\n * WHICH screen shows is the URL's business, not local state: `/settings` is the list and\n * `/settings/:sectionRef` is a section. That falls out of the hub's own contract — the URL is its\n * single source of truth — and it means Back, a deep link and a shared link all agree without any\n * of them being special-cased.\n *\n * Both panes stay MOUNTED and only their classes change. `field-chrome-and-sections.md` Gotcha 1b\n * records what the alternative costs: a chrome that swapped element structure across a breakpoint\n * remounted its control and dropped a pending edit on resize. Hiding is a class here for exactly\n * that reason.\n */\n const { UIConfig, getRecipe } = useUI();\n /*\n * The rail item's SELECTED styling comes from the theme's SELECTABLE/FILLED recipe — the same one\n * the vertical tab trigger used, so the rail looks exactly as it did and still follows whatever a\n * theme dresses it in. The recipe keys on `data-state`, which each link sets from `active`.\n */\n const railItemRecipe = getRecipe(UIBehavior.SELECTABLE, SelectableVariant.FILLED);\n const eyebrowRecipe = getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.EYEBROW);\n // A sub-category heading (#2329) sits one step below its category's eyebrow.\n const groupHeadingRecipe = getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.LABEL);\n const { renderIcon } = useIconRegistry();\n const isMobile = UIConfig?.currentBreakpoint === ViewportBreakpoint.MOBILE;\n const mobileShowsSection = isMobile && Boolean(sectionRef);\n\n const handleBackToSections = useCallback(() => {\n routerNavigate(CommonRoutePaths.settings, { replace: true });\n }, [routerNavigate]);\n\n\n const { tComponent, tSettingsHubCategory, tSettingsHubGroup, tSettingsHubSection, isReady } = useI18n({\n component: FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB,\n });\n // Hub chrome labels (title, rail aria-label) read from the scoped component\n // namespace. Copy is owned by the labelling pipeline (declared in the sibling\n // `.labels.ts`), so there are deliberately no inline fallback strings — the\n // hub gates on `isReady` below, the same convention as the panels it hosts\n // (`AppPage_SecuritySettings` / `AppPage_AppearanceSettings`). The dynamic\n // category/section labels keep their config-authored `fallbackLabel` (the\n // required contract of `tSettingsHubCategory` / `tSettingsHubSection`).\n const t = useCallback(\n (key: string) => tComponent(FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB, key),\n [tComponent],\n );\n\n /** The pushed section's own label — the mobile header's only cue for where you are. */\n const activeSectionLabel = useMemo(() => {\n const section = config.sections.find(candidate => candidate.ref === active);\n return section ? tSettingsHubSection(section.ref, section.label) : undefined;\n }, [config.sections, active, tSettingsHubSection]);\n\n /*\n * Bring the OPEN section into view when it is not — and only then.\n *\n * The rail carries thirty destinations and scrolls, so a cold load or a deep link at a section\n * near the bottom (`/settings/webhooks`) renders a list scrolled to the top with nothing on it\n * marked: the one cue that says where you are is off screen, and the reader has to scroll a list\n * of thirty to find out.\n *\n * `block: 'nearest'` is what makes this safe to run on every section change rather than only on\n * mount: it is defined to move the container by the MINIMUM needed, so an item already fully\n * visible — the ordinary case when somebody clicks the rail — is not scrolled at all. That is the\n * whole reason it is 'nearest' and not 'center', which would yank the list on every click and\n * replace one annoyance with another.\n *\n * It pairs with, and does not substitute for, the key fix in `getContentKey`: this positions the\n * rail, that one stops the rail being rebuilt (and its scroll offset discarded) on every click.\n * Without the key fix this would fire into a freshly mounted `<nav>` each time and merely make the\n * reset land somewhere else.\n */\n const activeRailItemRef = useRef<HTMLAnchorElement | null>(null);\n useEffect(() => {\n if (!active) return;\n activeRailItemRef.current?.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n }, [active]);\n\n /*\n * Gate on label readiness so the hub chrome never flashes raw key paths — copy is pipeline-owned\n * with no inline fallback, matching the hosted panels.\n *\n * Through `LoadingGate` rather than `if (!isReady) return null`, which is what this was until\n * 2026-09-17. Returning null is correct about the raw keys and wrong about everything else: the\n * overlay is already open and mounted by the time the hub renders, so a null gave a person an\n * empty dialog with no indication that anything was coming — and the wait got longer as the rail\n * grew. `LoadingGate` keeps the same guarantee (children are not rendered until ready) and lets\n * the ENCLOSING SURFACE POLICY choose the treatment, which for an overlay is to overlay the\n * children rather than to blank them. The hub does not pick a visual here on purpose: that choice\n * belongs to the surface it is hosted in, and hard-coding a skeleton would override a policy the\n * design system already owns.\n */\n return (\n <LoadingGate readiness={[{ id: 'settings-hub-labels', isReady }]}>\n {/*\n `min-w-0` is REQUIRED: this is the grid item of the (fixed-width) dialog surface.\n Without it the item keeps its default `min-width: auto` and cannot shrink below its\n content's min-content width — a wide field row (e.g. a file card with a long\n filename, or a text input) then pushes the whole two-pane body past the dialog edge,\n and the dialog's `overflow-x: hidden` clips the right side of every field. `min-w-0`\n lets the item fit the track so the content pane (and its form) reflow within it.\n */}\n <div className=\"flex h-full min-h-0 flex-col min-w-0\">\n <header className=\"flex h-14 shrink-0 items-center gap-item border-b px-card-lg\">\n {mobileShowsSection && (\n <Button\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.ICON_SM}\n aria-label={t('backToSections')}\n onClick={handleBackToSections}\n >\n {renderIcon(StandardIconReference.BACK, { size: IconSize.SM })}\n </Button>\n )}\n {/* On mobile the header names the SECTION you pushed into — without it the back-stack loses\n the one cue that says where you are, since the rail that said so is off screen. */}\n <h2 className=\"truncate text-base font-semibold tracking-tight\">\n {mobileShowsSection ? activeSectionLabel ?? t('title') : t('title')}\n </h2>\n </header>\n <div className=\"flex min-h-0 flex-1\">\n {/*\n * The rail is NAVIGATION, not a tablist, and until 2026-09-19 it was rendered as one —\n * thirty `<button role=\"tab\">` in a `TabsList`. Three things followed, all measured on the\n * running application:\n *\n * - No destination could be OPENED any other way. `/settings/members` is a real route the\n * hub already writes to the address bar, but with no `href` there was nothing to\n * ⌘-click, middle-click or \"copy link address\" — the one gesture an operator uses to\n * send a colleague to a setting.\n * - The ARIA pattern was wrong for what this is. A tablist switches panels WITHIN a view;\n * a list of destinations that each own a URL is navigation (WAI-ARIA APG). That is not a\n * preference — it decides what an assistive technology announces and how it is reached.\n * - The category headings carried `role=\"presentation\"`, so they were invisible to\n * assistive technology, and a tablist cannot nest labelled groups anyway. That left AT\n * users with a flat list of thirty items containing NINE duplicated names — \"General\",\n * \"Entitlements\", \"API keys\", \"Connected accounts\", \"Single sign-on\", \"User\n * provisioning\", \"Audit streaming\", \"Webhooks\" and \"Audit log\" each appear under two\n * scopes — with nothing to tell the pairs apart.\n *\n * A `<nav>` of grouped links fixes all three at once, and the keyboard concern the previous\n * shape was chosen for DISSOLVES rather than needing to be reimplemented: roving tabindex\n * is a tablist requirement. Navigation uses ordinary Tab order through links, which is what\n * a reader expects and what the browser already does.\n *\n * `replace` is kept from the old `navigateToSection` and for its reason: a settings rail is\n * a switcher, not a trail, so Back means \"leave settings\" rather than walking every section\n * somebody browsed.\n */}\n <nav\n aria-label={t('sectionsNavLabel')}\n className={cn(\n 'overflow-y-auto px-card-sm py-card',\n // Desktop: the fixed rail beside the content. Mobile: the full-width first screen of the\n // back-stack, with no divider because there is nothing beside it.\n isMobile ? 'w-full flex-1' : 'w-60 shrink-0 border-e',\n mobileShowsSection && 'hidden',\n )}\n >\n {categories.map((category, index) => {\n const sections = sectionsForCategory(config, category.ref);\n if (sections.length === 0) return null;\n const categoryLabelId = `settings-hub-category-${category.ref}`;\n return (\n <React.Fragment key={category.ref}>\n {index > 0 && <Separator className=\"my-item\" />}\n {/* Named, not decorative: this heading is the ONLY thing distinguishing the nine\n section labels that appear under two scopes, so it has to reach AT. */}\n <div\n id={categoryLabelId}\n className={cn(\"px-card-sm py-card-sm\", eyebrowRecipe.base)}\n >\n {tSettingsHubCategory(category.ref, category.label)}\n </div>\n <div role=\"group\" aria-labelledby={categoryLabelId}>\n {railBlocks(category, sections).map(block => (\n <React.Fragment key={block.group?.ref ?? '__ungrouped'}>\n {block.group && (\n <div\n id={`${categoryLabelId}-group-${block.group.ref}`}\n className={cn('px-card-sm pt-card-sm pb-item-xs text-muted-foreground', groupHeadingRecipe.base)}\n >\n {tSettingsHubGroup(category.ref, block.group.ref, block.group.label)}\n </div>\n )}\n <div role={block.group ? 'group' : undefined} aria-labelledby={block.group ? `${categoryLabelId}-group-${block.group.ref}` : undefined}>\n {block.sections.map(section => {\n const isActive = section.ref === active;\n return (\n // `data-ref` = i18n-independent automation hook (see sub-tabs above).\n <Link\n key={section.ref}\n // Only the OPEN item is tracked — the effect above needs one element, and a\n // ref on all thirty would be thirty callbacks re-created every render.\n ref={isActive ? activeRailItemRef : undefined}\n to={`${CommonRoutePaths.settings}/${section.ref}`}\n replace\n data-ref={section.ref}\n aria-current={isActive ? 'page' : undefined}\n data-state={isActive ? 'active' : 'inactive'}\n className={cn(\n RAIL_ITEM_CLASSES,\n // Composed part by part, exactly as the tab trigger does — `getRecipe`\n // returns a STRUCTURE (base / states / motion), not a class string, and\n // handing the object to `cn()` silently yields nothing. That is how the\n // first cut of this lost the selected fill while every other class held.\n railItemRecipe.base,\n railItemRecipe.states.focus,\n railItemRecipe.states.selected,\n railItemRecipe.motion.transition,\n )}\n >\n {/* The destination's glyph, sized by the rail item's own `[&_svg]:size-4`. Declared on every\n engine destination (#2378); a section that names none is drawn by its words alone. */}\n {section.icon && renderIcon(section.icon, { size: IconSize.SM })}\n {tSettingsHubSection(section.ref, section.label)}\n </Link>\n );\n })}\n </div>\n </React.Fragment>\n ))}\n </div>\n </React.Fragment>\n );\n })}\n </nav>\n <div\n className={cn(\n 'min-w-0 flex-1 overflow-y-auto p-card-lg',\n isMobile && !mobileShowsSection && 'hidden',\n )}\n >\n {/*\n * ONE section renders — the active one. `TabsContent` unmounts its inactive panels\n * anyway, so this is the same mounting behaviour written directly rather than delegated\n * to a primitive the rail no longer uses.\n */}\n {config.sections.filter(section => section.ref === active).map(section => (\n <React.Fragment key={section.ref}>\n {section.entitlementFeatureId ? (\n // Section SURVIVED because the app OFFERS this feature (`runtimeAvailability`\n // capability = plan-independent `isFeatureOffered`), or because something is still\n // configured here (#3126). Render its body through the entitlement gate: entitled →\n // the config surface; offered-but-not-entitled → the policy-driven upgrade/add-on\n // prompt; configured but sold by no plan → the kept-configuration notice alone.\n // Never a silent disappearance.\n <EntitlementGatedSettingsSection featureId={section.entitlementFeatureId} keptConfigurationNotice={t('entitlementLapsedConfigurationKept')}>\n <SettingsTargetRenderer\n target={section.target}\n resolveSubTabLabel={tSettingsHubSection}\n subTabRef={section.ref === active ? subTabRef : undefined}\n onSubTabChange={handleSubTabChange}\n />\n </EntitlementGatedSettingsSection>\n ) : (\n <SettingsTargetRenderer\n target={section.target}\n resolveSubTabLabel={tSettingsHubSection}\n subTabRef={section.ref === active ? subTabRef : undefined}\n onSubTabChange={handleSubTabChange}\n />\n )}\n </React.Fragment>\n ))}\n </div>\n </div>\n </div>\n </LoadingGate>\n );\n}\n\n/**\n * A settings section whose content the organization must be ENTITLED to (#2367).\n *\n * Not entitled: a notice says what happened to whatever was configured there. The backend keeps that configuration and\n * stops applying it while the entitlement is missing (single sign-on stops being required, a directory may only read\n * and remove access, security events stop being exported, webhooks stop being delivered), and it applies again on its\n * own once the entitlement returns. Without the notice an administrator whose plan lapsed would read the prompt as\n * \"this was never set up\", or as \"it was deleted\". Where a plan sells the feature, the upgrade prompt follows it.\n *\n * Then the section's CONTENT, still (#3162). An action that REMOVES access stays usable under a lapse: revoking a SCIM\n * token, switching security-event export off, removing an SSO connection. Only an action that ADDS or USES the\n * capability is gated, and each such operation already declares the feature it needs (`requiredFeatures`, enforced by\n * the backend), which the action bar renders locked with the upgrade path. The content used to be REPLACED by the\n * prompt, so a live directory token that only revocation can retire could be revoked through the API alone: the one\n * action an administrator most needs after a lapse was the one the screen hid. Fail closed means a credential can\n * always be cut off from the product, never that the product hides it.\n *\n * A feature whose unavailability behaviour is HIDE renders nothing, notice and content included.\n *\n * The rail also keeps such a section when the feature is not offered at all but something is still configured there\n * (#3126: a lapse no plan in the catalogue sells). Then there is no upgrade to offer, so the section shows the notice\n * and its content: an upgrade prompt whose \"View Upgrade Options\" leads to no plan that grants the feature would send\n * the administrator looking for a purchase that does not exist.\n *\n * Keyed on the absence of an upgrade path rather than on the unavailability behaviour, deliberately: the only sections\n * that reach this unentitled with no upgrade path are the engine's configured-survival case, since an offered feature\n * always has one. An application section declaring `entitlementFeatureId` without a runtime gate would also land here\n * and lose a CONTACT_ADMIN or DISABLE prompt; none exists, and such a section should pair the declaration with its\n * runtime gate as `SettingsSection.entitlementFeatureId` asks.\n */\nfunction EntitlementGatedSettingsSection({ featureId, keptConfigurationNotice, children }: {\n featureId: string;\n keptConfigurationNotice: string;\n children: React.ReactNode;\n}): React.JSX.Element {\n const availability = useFeatureAvailability(featureId);\n const showsNotice = !availability.isAvailable && availability.behavior !== FeatureUnavailabilityBehavior.HIDE;\n const hasUpgradePath = (availability.upgradeOptions?.length ?? 0) > 0;\n if (!showsNotice) {\n // Entitled, or a HIDE feature: the gate renders the content, or nothing.\n return <div className=\"space-y-card\"><FeatureGate featureId={featureId}>{children}</FeatureGate></div>;\n }\n return (\n <div className=\"space-y-card\">\n <Alert variant=\"info\">\n <AlertDescription>{keptConfigurationNotice}</AlertDescription>\n </Alert>\n {/* The prompt alone: the gate renders its prompt in place of nothing, since the feature is unavailable here. */}\n {hasUpgradePath && <FeatureGate featureId={featureId}>{null}</FeatureGate>}\n {children}\n </div>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"SettingsHub.js","sourceRoot":"","sources":["../../../../src/components/settings/SettingsHub.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAC/I,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AACxG,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EA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AAC,WAAW,IAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,gCAAgC,CAAC,IAAI,YAAG,IAAI,GAAe,EAC9H,QAAQ,IACL,CACP,CAAC;AACJ,CAAC","sourcesContent":["/**\n * SettingsHub — the unified settings surface.\n *\n * Renders the declarative `ResolvedSettingsHubConfig` as a vertical NAVIGATION rail beside a\n * content panel. Categories become labelled groups of links, each destination addressed by its own\n * URL. A section's `target` resolves to a framework panel, an auto-rendered resource surface, a\n * custom component, or a set of horizontal sub-tabs.\n *\n * The rail was a `Tabs`/`TabsList` until 2026-09-19, chosen so that section state and keyboard\n * roving came from the primitive rather than being hand-rolled. It became navigation because a\n * tablist switches panels WITHIN a view while these are thirty destinations that each own a URL —\n * and the keyboard argument dissolves rather than transferring: roving tabindex is a tablist\n * requirement, and navigation wants ordinary Tab order through links. See the rail's own comment.\n *\n * The SUB-TABS are still `Tabs`, correctly: Configuration/Connections inside one destination is\n * exactly what a tablist is for.\n *\n * Mounted by `NavigationContentRenderer` for `NavigationContentType.SETTINGS_HUB`\n * (always in the overlay zone). The `sectionRef` prop names the open\n * section: it wins whenever the gated config admits it (see `active` below).\n */\nimport React, { useCallback, useEffect, useMemo, useRef } from 'react';\nimport { Link, useNavigate } from 'react-router';\nimport { ViewportBreakpoint } from '@wildo-ai/zod-decorators';\nimport { CorePresetNames, FrontendComponentType, SelectableVariant, TypographyVariant, UIBehavior } from '@wildo-ai/presets-components-models';\nimport { Tabs, TabsList, TabsTrigger, TabsContent } from '~wildo-frontend-lib/components/sections/tabs';\nimport { Separator } from '~wildo-frontend-lib/components/layout/separator';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { ButtonSize } from '@wildo-ai/presets-components-models';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { IconSize, StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { AppPage_SecuritySettings } from '~wildo-frontend-lib/components/auth/admin-config/AppPage_SecuritySettings';\nimport { AppPage_AppearanceSettings } from './AppPage_AppearanceSettings';\nimport { AppPage_InvitationsSettings } from './AppPage_InvitationsSettings';\nimport { AppPage_BillingSettings } from './AppPage_BillingSettings';\nimport { ExternalProvider_Connection_OwnerScope } from '@wildo-ai/external-connectors-models';\nimport { AppPage_ConnectedAccountsSettings } from './AppPage_ConnectedAccountsSettings';\nimport { AppPage_AgentWorkOverrideRateSettings } from './AppPage_AgentWorkOverrideRateSettings';\nimport { AppPage_AutonomousAgentsSettings } from './AppPage_AutonomousAgentsSettings';\nimport { AgentActivityScope, AppPage_AgentActivitySettings } from './AppPage_AgentActivitySettings';\nimport { AppPage_ModelCostBreakdownSettings, ModelCostBreakdownScope } from './AppPage_ModelCostBreakdownSettings';\nimport { AppPage_RepresentativeActivitySettings } from './AppPage_RepresentativeActivitySettings';\nimport { AppPage_AgentWorkEvaluationExportSettings } from './AppPage_AgentWorkEvaluationExportSettings';\nimport { ComponentRegistryService } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.service';\nimport { RegisteredComponentRoot } from '~wildo-frontend-lib/core/components-registry/RegisteredComponentRoot';\nimport { ComponentNotInjected } from '~wildo-frontend-lib/core/components-registry/ComponentNotInjected';\nimport { SettingsPanelRef, SettingsSectionTargetKind } from '~wildo-frontend-lib/core/config/settings-hub.frontend.schemas';\nimport type {\n ResolvedSettingsHubConfig,\n SettingsCategory,\n SettingsCategoryGroup,\n SettingsSection,\n SettingsSectionTarget,\n SettingsSubTabsTarget,\n} from '~wildo-frontend-lib/core/config/settings-hub.frontend.schemas';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport { useVisibleSettingsHubConfig } from '~wildo-frontend-lib/core/config/useVisibleSettingsHubConfig';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { FeatureGate } from '~wildo-frontend-lib/core/features/FeatureGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\nimport { useFeatureAvailability } from '~wildo-frontend-lib/core/features/useFeatureAvailability';\nimport { Alert, AlertDescription } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { FeatureUnavailabilityBehavior } from '@wildo-ai/saas-models';\nimport { LoadingGate } from '~wildo-frontend-lib/core/loading/LoadingGate';\nimport { SettingsResourceOperationPanel } from './SettingsResourceOperationPanel';\n\n// ──────────────────────────────────────────────────────────────\n// Config helpers\n// ──────────────────────────────────────────────────────────────\n\nfunction orderedCategories(config: ResolvedSettingsHubConfig): SettingsCategory[] {\n return [...config.categories].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n}\n\nfunction sectionsForCategory(config: ResolvedSettingsHubConfig, categoryRef: string): SettingsSection[] {\n return config.sections\n .filter(section => section.categoryRef === categoryRef)\n .sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n}\n\n/**\n * A category's rail in sub-category blocks (#2329): its ungrouped sections first, with no heading, then each declared\n * group in order with its sections. A group no placed section names draws nothing, and a section naming an undeclared\n * group (refused by the DEV verifier) is drawn with the ungrouped ones rather than lost.\n */\nfunction railBlocks(category: SettingsCategory, sections: SettingsSection[]): Array<{ group?: SettingsCategoryGroup; sections: SettingsSection[] }> {\n const groups = [...(category.groups ?? [])].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n const declared = new Set(groups.map(group => group.ref));\n const ungrouped = sections.filter(section => section.groupRef === undefined || !declared.has(section.groupRef));\n return [\n ...(ungrouped.length > 0 ? [{ sections: ungrouped }] : []),\n ...groups\n .map(group => ({ group, sections: sections.filter(section => section.groupRef === group.ref) }))\n .filter(block => block.sections.length > 0),\n ];\n}\n\n/** Resolve the section to open: requested → config default → first section. */\nfunction resolveActiveSection(config: ResolvedSettingsHubConfig, sectionRef?: string): string | undefined {\n if (sectionRef && config.sections.some(section => section.ref === sectionRef)) return sectionRef;\n if (config.defaultSectionRef && config.sections.some(section => section.ref === config.defaultSectionRef)) {\n return config.defaultSectionRef;\n }\n return config.sections[0]?.ref;\n}\n\n// ──────────────────────────────────────────────────────────────\n// Target rendering (function declarations → hoisted for mutual recursion\n// between a SUB_TABS target and its leaf targets)\n// ──────────────────────────────────────────────────────────────\n\nfunction SettingsEnginePanel({ panelRef }: { panelRef: SettingsPanelRef }): React.JSX.Element {\n switch (panelRef) {\n case SettingsPanelRef.SECURITY:\n return <AppPage_SecuritySettings />;\n case SettingsPanelRef.APPEARANCE:\n return <AppPage_AppearanceSettings />;\n case SettingsPanelRef.INVITATIONS:\n return <AppPage_InvitationsSettings />;\n case SettingsPanelRef.BILLING:\n return <AppPage_BillingSettings />;\n case SettingsPanelRef.CONNECTED_ACCOUNTS:\n return <AppPage_ConnectedAccountsSettings ownerScope={ExternalProvider_Connection_OwnerScope.USER} />;\n case SettingsPanelRef.ORGANIZATION_CONNECTED_ACCOUNTS:\n // The scope is passed EXPLICITLY at both sites rather than left to the component's default.\n // A default is invisible at the call site, and the one thing a reader must be able to see here\n // is whose account each panel connects.\n return <AppPage_ConnectedAccountsSettings ownerScope={ExternalProvider_Connection_OwnerScope.ORGANIZATION} />;\n case SettingsPanelRef.APPLICATION_CONNECTED_ACCOUNTS:\n // The application's own account (#3579): the third owner, passed explicitly for the same reason.\n return <AppPage_ConnectedAccountsSettings ownerScope={ExternalProvider_Connection_OwnerScope.APPLICATION} />;\n case SettingsPanelRef.AGENT_WORK_OVERRIDE_RATE:\n return <AppPage_AgentWorkOverrideRateSettings />;\n case SettingsPanelRef.AUTONOMOUS_AGENTS:\n return <AppPage_AutonomousAgentsSettings />;\n case SettingsPanelRef.AGENT_ACTIVITY:\n // Whose runs are passed EXPLICITLY at both sites, as for connected accounts above (#3990).\n return <AppPage_AgentActivitySettings scope={AgentActivityScope.ORGANIZATION} />;\n case SettingsPanelRef.APPLICATION_AGENT_ACTIVITY:\n return <AppPage_AgentActivitySettings scope={AgentActivityScope.APPLICATION} />;\n case SettingsPanelRef.MODEL_COST_BREAKDOWN:\n // Whose cost is passed EXPLICITLY at both sites, as for connected accounts above.\n return <AppPage_ModelCostBreakdownSettings scope={ModelCostBreakdownScope.APPLICATION} />;\n case SettingsPanelRef.REPRESENTING_ORGANIZATION_MODEL_COST_BREAKDOWN:\n return <AppPage_ModelCostBreakdownSettings scope={ModelCostBreakdownScope.REPRESENTING_ORGANIZATION} />;\n case SettingsPanelRef.REPRESENTATIVE_ACTIVITY:\n return <AppPage_RepresentativeActivitySettings />;\n case SettingsPanelRef.AGENT_WORK_EVALUATION_EXPORT:\n return <AppPage_AgentWorkEvaluationExportSettings />;\n }\n}\n\n/** Resolves a display label for a section/sub-tab ref, falling back to the authored label. */\ntype SettingsLabelResolver = (ref: string, fallbackLabel: string) => string;\n\n/**\n * One section's content, whatever its target: an engine panel, a registered component, a resource surface, or a strip\n * of sub-tabs. Exported for the identity portal, which mounts some of the hub's destinations as pages of their own, with\n * no rail, and renders them through this same renderer rather than a copy.\n */\nexport function SettingsTargetRenderer({\n target,\n resolveSubTabLabel,\n subTabRef,\n onSubTabChange,\n}: {\n target: SettingsSectionTarget;\n resolveSubTabLabel: SettingsLabelResolver;\n subTabRef?: string;\n onSubTabChange?: (subTabRef: string) => void;\n}): React.JSX.Element {\n switch (target.kind) {\n case SettingsSectionTargetKind.ENGINE_PANEL:\n return <SettingsEnginePanel panelRef={target.panelRef} />;\n case SettingsSectionTargetKind.CUSTOM_COMPONENT: {\n const CustomComponent = ComponentRegistryService.resolve(\n target.componentRef,\n CorePresetNames.DEFAULT,\n );\n if (!CustomComponent) {\n return <ComponentNotInjected componentType={target.componentRef} componentName={target.componentRef} />;\n }\n return (\n <React.Suspense fallback={<div className=\"h-8 animate-pulse motion-reduce:animate-none bg-muted rounded\" aria-hidden=\"true\" />}>\n <RegisteredComponentRoot componentRef={target.componentRef}>\n <CustomComponent />\n </RegisteredComponentRoot>\n </React.Suspense>\n );\n }\n case SettingsSectionTargetKind.RESOURCE_OPERATION:\n return (\n <SettingsResourceOperationPanel\n resourceType={target.resourceType}\n operation={target.operation}\n operationVariant={target.operationVariant}\n />\n );\n case SettingsSectionTargetKind.SUB_TABS:\n return (\n <SettingsSubTabs\n target={target}\n resolveSubTabLabel={resolveSubTabLabel}\n subTabRef={subTabRef}\n onSubTabChange={onSubTabChange}\n />\n );\n }\n}\n\n/**\n * The sub-tab strip inside one section.\n *\n * The active tab is URL-DRIVEN since 2026-09-17. It used to be `useState(target.subTabs[0]?.ref)` —\n * local state that read nothing from the URL — so all twenty-one sub-tab panels in the shipped\n * catalogue were unaddressable: every link to a sub-tabbed section opened its FIRST tab, and\n * \"Single sign-on → Connections\" could not be sent to anybody. That contradicted the hub's own\n * contract, which is that the URL is its single source of truth, and it made the outcome banner a\n * connect-callback renders depend on tab ORDER rather than on the URL it returns to.\n *\n * A `subTabRef` the section does not declare is IGNORED rather than refused: the tab falls back to\n * the first entry, so a stale bookmark or a hand-typed segment still opens the section instead of an\n * error. `onSubTabChange` writes the selection back, which is what makes the strip a navigation\n * control rather than a widget with a URL beside it.\n */\nfunction SettingsSubTabs({\n target,\n resolveSubTabLabel,\n subTabRef,\n onSubTabChange,\n}: {\n target: SettingsSubTabsTarget;\n resolveSubTabLabel: SettingsLabelResolver;\n subTabRef?: string;\n onSubTabChange?: (subTabRef: string) => void;\n}): React.JSX.Element | null {\n const active = target.subTabs.some(subTab => subTab.ref === subTabRef)\n ? subTabRef\n : target.subTabs[0]?.ref;\n if (target.subTabs.length === 0) return null;\n return (\n <Tabs value={active} onValueChange={next => onSubTabChange?.(next)}>\n <TabsList>\n {target.subTabs.map(subTab => (\n // `data-ref` is the i18n-independent automation hook (labels are\n // runtime-translated; e2e drives must never key off them).\n <TabsTrigger key={subTab.ref} value={subTab.ref} data-ref={subTab.ref}>\n {resolveSubTabLabel(subTab.ref, subTab.label)}\n </TabsTrigger>\n ))}\n </TabsList>\n {target.subTabs.map(subTab => (\n <TabsContent key={subTab.ref} value={subTab.ref}>\n {/* Leaf targets only (schema forbids nested sub-tabs); the resolver is\n still threaded to satisfy the shared renderer signature. */}\n <SettingsTargetRenderer target={subTab.target} resolveSubTabLabel={resolveSubTabLabel} />\n </TabsContent>\n ))}\n </Tabs>\n );\n}\n\n/**\n * A rail item's layout classes — full-width, left-aligned, icon-tolerant.\n *\n * Carried here rather than reused from the tab trigger because the rail is no longer a tab: this is\n * a navigation item and owns its own shape. Only the SELECTED treatment is shared, and that comes\n * from the theme recipe rather than from a copied class string, so a theme change still reaches\n * both.\n */\nconst RAIL_ITEM_CLASSES =\n \"inline-flex w-full cursor-pointer items-center justify-start gap-1.5 whitespace-nowrap rounded-md px-card-sm py-item text-sm font-medium no-underline [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\";\n\n// ──────────────────────────────────────────────────────────────\n// Hub\n// ──────────────────────────────────────────────────────────────\n\nexport interface SettingsHubProps {\n /** The section the URL names. It is open whenever the gated config admits it; until then, the config default. */\n sectionRef?: string;\n /** Sub-tab of `sectionRef` to pre-open; ignored when the section declares no such tab. */\n subTabRef?: string;\n}\n\nexport function SettingsHub({ sectionRef, subTabRef }: SettingsHubProps): React.JSX.Element {\n const config = useVisibleSettingsHubConfig();\n const categories = useMemo(() => orderedCategories(config), [config]);\n /*\n * The open section is DERIVED from the URL and the gated config, on every render. It is not\n * state, and it was until 2026-10-02 (#2190), when it held a fallback that outlived its reason.\n *\n * The gated config arrives in stages: on a cold load the first answer is built before the\n * organization's features resolve, so a feature-gated destination (`sso`, `scim`) is absent from\n * it. The old state machine resolved `/settings/sso` against that first config, fell back to the\n * first section (Profile), then kept Profile when `sso` joined the config, because Profile was\n * still selectable. Its URL effect did not help, since `sectionRef` never changed. A deep link or\n * a reload of a gated destination therefore opened the wrong pane for good, while a rail click\n * opened the right one.\n *\n * Deriving it removes the \"current choice\" that a fallback could become. The URL can stand for\n * the person's choice because the rail's links write it (`to` + `replace`) and nothing else\n * selects a section, so `sectionRef` is always the section the person last asked for. Whenever it\n * is selectable it is the open section, whatever order the gating signals land in. When it is not\n * (yet) selectable, the default stands in, and the requested section takes over the moment the\n * config admits it. The earlier concern that kept `config` out of the sync effect, config\n * identity churning and resetting a rail click, has no purchase here: a click changes\n * `sectionRef` itself, so a re-derivation can only re-confirm it.\n */\n const active = useMemo(() => resolveActiveSection(config, sectionRef), [config, sectionRef]);\n const routerNavigate = useNavigate();\n\n /*\n * In-hub navigation WRITES the URL. Until 2026-09-17 it did not, at either level: the rail set\n * local state and the sub-tab strip held its own, so the address bar kept whatever section the\n * hub was opened at. Deep-linking IN worked and linking OUT never did — you could be looking at\n * Administration → Single sign-on → Connections with `/settings/profile` in the address bar, and\n * no sequence of clicks produced a URL for where you were.\n *\n * REPLACE rather than push, deliberately. A settings rail is a switcher, not a trail: pushing\n * would make Back walk every section a person browsed before leaving the hub, which is the\n * behaviour the overlay's own dismiss already owns. Replace keeps the address bar truthful and\n * leaves Back meaning \"leave settings\".\n *\n * The overlay reconciler converges on the new URL — it keys on section AND sub-tab, so a tab\n * switch inside one section is seen as a change rather than as already-correct. There is no loop:\n * only a user gesture calls these, and the reconciler emits no navigation of its own.\n */\n // The SECTION half of this used to be `navigateToSection`, which the rail's triggers called. The\n // rail's links now carry `to` + `replace` themselves, and `active` is derived from the URL\n // (see its declaration above) — so the helper had no caller left. The SUB-TAB half stays: those really are tabs.\n\n const handleSubTabChange = useCallback((nextSubTabRef: string) => {\n if (!active) return;\n routerNavigate(`${CommonRoutePaths.settings}/${active}/${nextSubTabRef}`, { replace: true });\n }, [active, routerNavigate]);\n\n /*\n * On a small screen the hub is a BACK-STACK rather than two panes.\n *\n * It had no responsive treatment at all before 2026-09-17 — a fixed `w-60 shrink-0` rail at every\n * width, which is 240px of a ~375px viewport, and the rail is now thirty entries rather than\n * sixteen. The back-stack is chosen over a drawer or a collapsed select because the panel BELOW\n * already works this way: `SettingsSectionNavigationHost` keeps a section's own drill-ins\n * (view → edit → back) inside the panel, so mobile becomes the same mechanism one level up\n * instead of a second navigation concept.\n *\n * WHICH screen shows is the URL's business, not local state: `/settings` is the list and\n * `/settings/:sectionRef` is a section. That falls out of the hub's own contract — the URL is its\n * single source of truth — and it means Back, a deep link and a shared link all agree without any\n * of them being special-cased.\n *\n * Both panes stay MOUNTED and only their classes change. `field-chrome-and-sections.md` Gotcha 1b\n * records what the alternative costs: a chrome that swapped element structure across a breakpoint\n * remounted its control and dropped a pending edit on resize. Hiding is a class here for exactly\n * that reason.\n */\n const { UIConfig, getRecipe } = useUI();\n /*\n * The rail item's SELECTED styling comes from the theme's SELECTABLE/FILLED recipe — the same one\n * the vertical tab trigger used, so the rail looks exactly as it did and still follows whatever a\n * theme dresses it in. The recipe keys on `data-state`, which each link sets from `active`.\n */\n const railItemRecipe = getRecipe(UIBehavior.SELECTABLE, SelectableVariant.FILLED);\n const eyebrowRecipe = getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.EYEBROW);\n // A sub-category heading (#2329) sits one step below its category's eyebrow.\n const groupHeadingRecipe = getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.LABEL);\n const { renderIcon } = useIconRegistry();\n const isMobile = UIConfig?.currentBreakpoint === ViewportBreakpoint.MOBILE;\n const mobileShowsSection = isMobile && Boolean(sectionRef);\n\n const handleBackToSections = useCallback(() => {\n routerNavigate(CommonRoutePaths.settings, { replace: true });\n }, [routerNavigate]);\n\n\n const { tComponent, tSettingsHubCategory, tSettingsHubGroup, tSettingsHubSection, isReady } = useI18n({\n component: FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB,\n });\n // Hub chrome labels (title, rail aria-label) read from the scoped component\n // namespace. Copy is owned by the labelling pipeline (declared in the sibling\n // `.labels.ts`), so there are deliberately no inline fallback strings — the\n // hub gates on `isReady` below, the same convention as the panels it hosts\n // (`AppPage_SecuritySettings` / `AppPage_AppearanceSettings`). The dynamic\n // category/section labels keep their config-authored `fallbackLabel` (the\n // required contract of `tSettingsHubCategory` / `tSettingsHubSection`).\n const t = useCallback(\n (key: string) => tComponent(FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB, key),\n [tComponent],\n );\n\n /** The pushed section's own label — the mobile header's only cue for where you are. */\n const activeSectionLabel = useMemo(() => {\n const section = config.sections.find(candidate => candidate.ref === active);\n return section ? tSettingsHubSection(section.ref, section.label) : undefined;\n }, [config.sections, active, tSettingsHubSection]);\n\n /*\n * Bring the OPEN section into view when it is not — and only then.\n *\n * The rail carries thirty destinations and scrolls, so a cold load or a deep link at a section\n * near the bottom (`/settings/webhooks`) renders a list scrolled to the top with nothing on it\n * marked: the one cue that says where you are is off screen, and the reader has to scroll a list\n * of thirty to find out.\n *\n * `block: 'nearest'` is what makes this safe to run on every section change rather than only on\n * mount: it is defined to move the container by the MINIMUM needed, so an item already fully\n * visible — the ordinary case when somebody clicks the rail — is not scrolled at all. That is the\n * whole reason it is 'nearest' and not 'center', which would yank the list on every click and\n * replace one annoyance with another.\n *\n * It pairs with, and does not substitute for, the key fix in `getContentKey`: this positions the\n * rail, that one stops the rail being rebuilt (and its scroll offset discarded) on every click.\n * Without the key fix this would fire into a freshly mounted `<nav>` each time and merely make the\n * reset land somewhere else.\n */\n const activeRailItemRef = useRef<HTMLAnchorElement | null>(null);\n useEffect(() => {\n if (!active) return;\n activeRailItemRef.current?.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n }, [active]);\n\n /*\n * Gate on label readiness so the hub chrome never flashes raw key paths — copy is pipeline-owned\n * with no inline fallback, matching the hosted panels.\n *\n * Through `LoadingGate` rather than `if (!isReady) return null`, which is what this was until\n * 2026-09-17. Returning null is correct about the raw keys and wrong about everything else: the\n * overlay is already open and mounted by the time the hub renders, so a null gave a person an\n * empty dialog with no indication that anything was coming — and the wait got longer as the rail\n * grew. `LoadingGate` keeps the same guarantee (children are not rendered until ready) and lets\n * the ENCLOSING SURFACE POLICY choose the treatment, which for an overlay is to overlay the\n * children rather than to blank them. The hub does not pick a visual here on purpose: that choice\n * belongs to the surface it is hosted in, and hard-coding a skeleton would override a policy the\n * design system already owns.\n */\n return (\n <LoadingGate readiness={[{ id: 'settings-hub-labels', isReady }]}>\n {/*\n `min-w-0` is REQUIRED: this is the grid item of the (fixed-width) dialog surface.\n Without it the item keeps its default `min-width: auto` and cannot shrink below its\n content's min-content width — a wide field row (e.g. a file card with a long\n filename, or a text input) then pushes the whole two-pane body past the dialog edge,\n and the dialog's `overflow-x: hidden` clips the right side of every field. `min-w-0`\n lets the item fit the track so the content pane (and its form) reflow within it.\n */}\n <div className=\"flex h-full min-h-0 flex-col min-w-0\">\n <header className=\"flex h-14 shrink-0 items-center gap-item border-b px-card-lg\">\n {mobileShowsSection && (\n <Button\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.ICON_SM}\n aria-label={t('backToSections')}\n onClick={handleBackToSections}\n >\n {renderIcon(StandardIconReference.BACK, { size: IconSize.SM })}\n </Button>\n )}\n {/* On mobile the header names the SECTION you pushed into — without it the back-stack loses\n the one cue that says where you are, since the rail that said so is off screen. */}\n <h2 className=\"truncate text-base font-semibold tracking-tight\">\n {mobileShowsSection ? activeSectionLabel ?? t('title') : t('title')}\n </h2>\n </header>\n <div className=\"flex min-h-0 flex-1\">\n {/*\n * The rail is NAVIGATION, not a tablist, and until 2026-09-19 it was rendered as one —\n * thirty `<button role=\"tab\">` in a `TabsList`. Three things followed, all measured on the\n * running application:\n *\n * - No destination could be OPENED any other way. `/settings/members` is a real route the\n * hub already writes to the address bar, but with no `href` there was nothing to\n * ⌘-click, middle-click or \"copy link address\" — the one gesture an operator uses to\n * send a colleague to a setting.\n * - The ARIA pattern was wrong for what this is. A tablist switches panels WITHIN a view;\n * a list of destinations that each own a URL is navigation (WAI-ARIA APG). That is not a\n * preference — it decides what an assistive technology announces and how it is reached.\n * - The category headings carried `role=\"presentation\"`, so they were invisible to\n * assistive technology, and a tablist cannot nest labelled groups anyway. That left AT\n * users with a flat list of thirty items containing NINE duplicated names — \"General\",\n * \"Entitlements\", \"API keys\", \"Connected accounts\", \"Single sign-on\", \"User\n * provisioning\", \"Audit streaming\", \"Webhooks\" and \"Audit log\" each appear under two\n * scopes — with nothing to tell the pairs apart.\n *\n * A `<nav>` of grouped links fixes all three at once, and the keyboard concern the previous\n * shape was chosen for DISSOLVES rather than needing to be reimplemented: roving tabindex\n * is a tablist requirement. Navigation uses ordinary Tab order through links, which is what\n * a reader expects and what the browser already does.\n *\n * `replace` is kept from the old `navigateToSection` and for its reason: a settings rail is\n * a switcher, not a trail, so Back means \"leave settings\" rather than walking every section\n * somebody browsed.\n */}\n <nav\n aria-label={t('sectionsNavLabel')}\n className={cn(\n 'overflow-y-auto px-card-sm py-card',\n // Desktop: the fixed rail beside the content. Mobile: the full-width first screen of the\n // back-stack, with no divider because there is nothing beside it.\n isMobile ? 'w-full flex-1' : 'w-60 shrink-0 border-e',\n mobileShowsSection && 'hidden',\n )}\n >\n {categories.map((category, index) => {\n const sections = sectionsForCategory(config, category.ref);\n if (sections.length === 0) return null;\n const categoryLabelId = `settings-hub-category-${category.ref}`;\n return (\n <React.Fragment key={category.ref}>\n {index > 0 && <Separator className=\"my-item\" />}\n {/* Named, not decorative: this heading is the ONLY thing distinguishing the nine\n section labels that appear under two scopes, so it has to reach AT. */}\n <div\n id={categoryLabelId}\n className={cn(\"px-card-sm py-card-sm\", eyebrowRecipe.base)}\n >\n {tSettingsHubCategory(category.ref, category.label)}\n </div>\n <div role=\"group\" aria-labelledby={categoryLabelId}>\n {railBlocks(category, sections).map(block => (\n <React.Fragment key={block.group?.ref ?? '__ungrouped'}>\n {block.group && (\n <div\n id={`${categoryLabelId}-group-${block.group.ref}`}\n className={cn('px-card-sm pt-card-sm pb-item-xs text-muted-foreground', groupHeadingRecipe.base)}\n >\n {tSettingsHubGroup(category.ref, block.group.ref, block.group.label)}\n </div>\n )}\n <div role={block.group ? 'group' : undefined} aria-labelledby={block.group ? `${categoryLabelId}-group-${block.group.ref}` : undefined}>\n {block.sections.map(section => {\n const isActive = section.ref === active;\n return (\n // `data-ref` = i18n-independent automation hook (see sub-tabs above).\n <Link\n key={section.ref}\n // Only the OPEN item is tracked — the effect above needs one element, and a\n // ref on all thirty would be thirty callbacks re-created every render.\n ref={isActive ? activeRailItemRef : undefined}\n to={`${CommonRoutePaths.settings}/${section.ref}`}\n replace\n data-ref={section.ref}\n aria-current={isActive ? 'page' : undefined}\n data-state={isActive ? 'active' : 'inactive'}\n className={cn(\n RAIL_ITEM_CLASSES,\n // Composed part by part, exactly as the tab trigger does — `getRecipe`\n // returns a STRUCTURE (base / states / motion), not a class string, and\n // handing the object to `cn()` silently yields nothing. That is how the\n // first cut of this lost the selected fill while every other class held.\n railItemRecipe.base,\n railItemRecipe.states.focus,\n railItemRecipe.states.selected,\n railItemRecipe.motion.transition,\n )}\n >\n {/* The destination's glyph, sized by the rail item's own `[&_svg]:size-4`. Declared on every\n engine destination (#2378); a section that names none is drawn by its words alone. */}\n {section.icon && renderIcon(section.icon, { size: IconSize.SM })}\n {tSettingsHubSection(section.ref, section.label)}\n </Link>\n );\n })}\n </div>\n </React.Fragment>\n ))}\n </div>\n </React.Fragment>\n );\n })}\n </nav>\n <div\n className={cn(\n 'min-w-0 flex-1 overflow-y-auto p-card-lg',\n isMobile && !mobileShowsSection && 'hidden',\n )}\n >\n {/*\n * ONE section renders — the active one. `TabsContent` unmounts its inactive panels\n * anyway, so this is the same mounting behaviour written directly rather than delegated\n * to a primitive the rail no longer uses.\n */}\n {config.sections.filter(section => section.ref === active).map(section => (\n <React.Fragment key={section.ref}>\n {section.entitlementFeatureId && section.entitlementWithholdsContent ? (\n // The feature sells the CONTENT (the organization audit log): nothing is configured to keep, and the\n // backend refuses the read without it, so the feature's prompt takes the content's place.\n <div className=\"space-y-card\">\n <FeatureGate featureId={section.entitlementFeatureId}>\n <SettingsTargetRenderer\n target={section.target}\n resolveSubTabLabel={tSettingsHubSection}\n subTabRef={section.ref === active ? subTabRef : undefined}\n onSubTabChange={handleSubTabChange}\n />\n </FeatureGate>\n </div>\n ) : section.entitlementFeatureId ? (\n // Section SURVIVED because the app OFFERS this feature (`runtimeAvailability`\n // capability = plan-independent `isFeatureOffered`), or because something is still\n // configured here (#3126). Render its body through the entitlement gate: entitled →\n // the config surface; offered-but-not-entitled → the policy-driven upgrade/add-on\n // prompt; configured but sold by no plan → the kept-configuration notice alone.\n // Never a silent disappearance.\n <EntitlementGatedSettingsSection featureId={section.entitlementFeatureId} keptConfigurationNotice={t('entitlementLapsedConfigurationKept')}>\n <SettingsTargetRenderer\n target={section.target}\n resolveSubTabLabel={tSettingsHubSection}\n subTabRef={section.ref === active ? subTabRef : undefined}\n onSubTabChange={handleSubTabChange}\n />\n </EntitlementGatedSettingsSection>\n ) : (\n <SettingsTargetRenderer\n target={section.target}\n resolveSubTabLabel={tSettingsHubSection}\n subTabRef={section.ref === active ? subTabRef : undefined}\n onSubTabChange={handleSubTabChange}\n />\n )}\n </React.Fragment>\n ))}\n </div>\n </div>\n </div>\n </LoadingGate>\n );\n}\n\n/**\n * A settings section whose content the organization must be ENTITLED to (#2367).\n *\n * Not entitled: a notice says what happened to whatever was configured there. The backend keeps that configuration and\n * stops applying it while the entitlement is missing (single sign-on stops being required, a directory may only read\n * and remove access, security events stop being exported, webhooks stop being delivered), and it applies again on its\n * own once the entitlement returns. Without the notice an administrator whose plan lapsed would read the prompt as\n * \"this was never set up\", or as \"it was deleted\". Where a plan sells the feature, the upgrade prompt follows it.\n *\n * Then the section's CONTENT, still (#3162). An action that REMOVES access stays usable under a lapse: revoking a SCIM\n * token, switching security-event export off, removing an SSO connection. Only an action that ADDS or USES the\n * capability is gated, and each such operation already declares the feature it needs (`requiredFeatures`, enforced by\n * the backend), which the action bar renders locked with the upgrade path. The content used to be REPLACED by the\n * prompt, so a live directory token that only revocation can retire could be revoked through the API alone: the one\n * action an administrator most needs after a lapse was the one the screen hid. Fail closed means a credential can\n * always be cut off from the product, never that the product hides it.\n *\n * A feature whose unavailability behaviour is HIDE renders nothing, notice and content included.\n *\n * The rail also keeps such a section when the feature is not offered at all but something is still configured there\n * (#3126: a lapse no plan in the catalogue sells). Then there is no upgrade to offer, so the section shows the notice\n * and its content: an upgrade prompt whose \"View Upgrade Options\" leads to no plan that grants the feature would send\n * the administrator looking for a purchase that does not exist.\n *\n * Keyed on the absence of an upgrade path rather than on the unavailability behaviour, deliberately: the only sections\n * that reach this unentitled with no upgrade path are the engine's configured-survival case, since an offered feature\n * always has one. An application section declaring `entitlementFeatureId` without a runtime gate would also land here\n * and lose a CONTACT_ADMIN or DISABLE prompt; none exists, and such a section should pair the declaration with its\n * runtime gate as `SettingsSection.entitlementFeatureId` asks.\n */\nfunction EntitlementGatedSettingsSection({ featureId, keptConfigurationNotice, children }: {\n featureId: string;\n keptConfigurationNotice: string;\n children: React.ReactNode;\n}): React.JSX.Element {\n const availability = useFeatureAvailability(featureId);\n const showsNotice = !availability.isAvailable && availability.behavior !== FeatureUnavailabilityBehavior.HIDE;\n const hasUpgradePath = (availability.upgradeOptions?.length ?? 0) > 0;\n if (!showsNotice) {\n // Entitled, or a HIDE feature: the gate renders the content, or nothing.\n return <div className=\"space-y-card\"><FeatureGate featureId={featureId}>{children}</FeatureGate></div>;\n }\n return (\n <div className=\"space-y-card\">\n <Alert variant=\"info\">\n <AlertDescription>{keptConfigurationNotice}</AlertDescription>\n </Alert>\n {/* The prompt alone, as a locked card above the kept configuration: the gate renders it in place of nothing. */}\n {hasUpgradePath && <FeatureGate featureId={featureId} presentation={RequiredFeaturesGatePresentation.TILE}>{null}</FeatureGate>}\n {children}\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A heading level in the document outline, `h1` … `h6`.
|
|
4
|
+
*/
|
|
5
|
+
export type DocumentHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
|
+
/** The level a heading rendered here takes. */
|
|
7
|
+
export declare function useDocumentHeadingLevel(): DocumentHeadingLevel;
|
|
8
|
+
/** One level deeper than `level`, stopping at 6. */
|
|
9
|
+
export declare function nestedDocumentHeadingLevel(level: DocumentHeadingLevel): DocumentHeadingLevel;
|
|
10
|
+
/** The tag name for a level: `'h1'` … `'h6'`. */
|
|
11
|
+
export declare function documentHeadingTag(level: DocumentHeadingLevel): 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
12
|
+
/**
|
|
13
|
+
* Set the level headings beneath take. A surface that renders its own heading above framework chrome without
|
|
14
|
+
* wrapping that chrome in {@link NestedDocumentHeadingLevel} (a custom page with an `h2` of its own, say) uses it to
|
|
15
|
+
* place the chrome correctly in its outline.
|
|
16
|
+
*/
|
|
17
|
+
export declare function DocumentHeadingLevelHost({ level, children }: {
|
|
18
|
+
level: DocumentHeadingLevel;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}): React.ReactElement;
|
|
21
|
+
/**
|
|
22
|
+
* Wrap the content a heading owns, so a heading inside it takes the next level. Render the heading itself OUTSIDE
|
|
23
|
+
* it, at {@link useDocumentHeadingLevel}.
|
|
24
|
+
*/
|
|
25
|
+
export declare function NestedDocumentHeadingLevel({ children }: {
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
}): React.ReactElement;
|
|
28
|
+
//# sourceMappingURL=document-heading-level.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-heading-level.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/document-heading-level.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAoCxD,+CAA+C;AAC/C,wBAAgB,uBAAuB,IAAI,oBAAoB,CAE9D;AAED,oDAAoD;AACpD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,oBAAoB,GAAG,oBAAoB,CAE5F;AAED,iDAAiD;AACjD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAEvG;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,EAAE,oBAAoB,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,YAAY,CAE5I;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,YAAY,CAG1G"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The level the NEXT heading takes where it is rendered, decided by what is above it in the page, never by the
|
|
4
|
+
* component drawing it.
|
|
5
|
+
*
|
|
6
|
+
* ## Why the chrome cannot pick its own level
|
|
7
|
+
*
|
|
8
|
+
* A heading's level is a fact about the OUTLINE: it says which heading this one belongs under. The framework's
|
|
9
|
+
* chrome (a field group, a chart card, a section panel, a list's group label) renders the same component in places
|
|
10
|
+
* whose outlines differ: directly under the page's `h1` on a record page, under a section panel's heading, under a
|
|
11
|
+
* collapsible-all heading. Every one of them was a hard-coded `h3`, so on a record page the outline went `h1 → h3`
|
|
12
|
+
* and the levels skipped. The first live accessibility audit of Wonder Todos (axe-core `heading-order`, #3867)
|
|
13
|
+
* reported exactly that on the record read view (a chart card's "My Week by Status" `h3`) and the create form (the
|
|
14
|
+
* "Workflow" group `h3`), each with the record title `h1` the only heading above it.
|
|
15
|
+
*
|
|
16
|
+
* spec-cite: WCAG 2.2 SC 1.3.1 (Info and Relationships), technique H42; axe-core rule id `heading-order`, which
|
|
17
|
+
* reports a heading whose level is more than one deeper than the heading before it.
|
|
18
|
+
*
|
|
19
|
+
* ## The rule
|
|
20
|
+
*
|
|
21
|
+
* - With no host the level is **2**: a framework surface renders beneath its page title, which is the page's one
|
|
22
|
+
* `h1` (`ResourceHeaderTitleHeading`, `ViewLayout_Header`). A surface with no `h1` above it then starts its
|
|
23
|
+
* outline at `h2`, which skips nothing.
|
|
24
|
+
* - A component that DRAWS a heading reads {@link useDocumentHeadingLevel} for its own level, and wraps the content
|
|
25
|
+
* that heading owns in {@link NestedDocumentHeadingLevel}, so a heading inside it is one level deeper.
|
|
26
|
+
* - A `<legend>` is not a heading, so a section named by a legend does not nest its content.
|
|
27
|
+
* - The level stops at 6: HTML has no `h7`, and an outline six levels deep has bigger problems than its last tag.
|
|
28
|
+
*
|
|
29
|
+
* Rejected: a `level` prop threaded through each chrome component. Every caller would have to know its outline
|
|
30
|
+
* position, which is precisely the knowledge a reused component does not have — the `titleTag: 'h4'` a collapsible
|
|
31
|
+
* container passed to its panels was the one place that did this, and it was right only while that container sat
|
|
32
|
+
* directly under an `h2`.
|
|
33
|
+
*/
|
|
34
|
+
const DocumentHeadingLevelContext = React.createContext(2);
|
|
35
|
+
/** The level a heading rendered here takes. */
|
|
36
|
+
export function useDocumentHeadingLevel() {
|
|
37
|
+
return React.useContext(DocumentHeadingLevelContext);
|
|
38
|
+
}
|
|
39
|
+
/** One level deeper than `level`, stopping at 6. */
|
|
40
|
+
export function nestedDocumentHeadingLevel(level) {
|
|
41
|
+
return Math.min(level + 1, 6);
|
|
42
|
+
}
|
|
43
|
+
/** The tag name for a level: `'h1'` … `'h6'`. */
|
|
44
|
+
export function documentHeadingTag(level) {
|
|
45
|
+
return `h${level}`;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Set the level headings beneath take. A surface that renders its own heading above framework chrome without
|
|
49
|
+
* wrapping that chrome in {@link NestedDocumentHeadingLevel} (a custom page with an `h2` of its own, say) uses it to
|
|
50
|
+
* place the chrome correctly in its outline.
|
|
51
|
+
*/
|
|
52
|
+
export function DocumentHeadingLevelHost({ level, children }) {
|
|
53
|
+
return React.createElement(DocumentHeadingLevelContext.Provider, { value: level }, children);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Wrap the content a heading owns, so a heading inside it takes the next level. Render the heading itself OUTSIDE
|
|
57
|
+
* it, at {@link useDocumentHeadingLevel}.
|
|
58
|
+
*/
|
|
59
|
+
export function NestedDocumentHeadingLevel({ children }) {
|
|
60
|
+
const level = useDocumentHeadingLevel();
|
|
61
|
+
return React.createElement(DocumentHeadingLevelContext.Provider, { value: nestedDocumentHeadingLevel(level) }, children);
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=document-heading-level.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-heading-level.js","sourceRoot":"","sources":["../../../../src/components/typography/document-heading-level.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,2BAA2B,GAAG,KAAK,CAAC,aAAa,CAAuB,CAAC,CAAC,CAAA;AAEhF,+CAA+C;AAC/C,MAAM,UAAU,uBAAuB;IACrC,OAAO,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAA;AACtD,CAAC;AAED,oDAAoD;AACpD,MAAM,UAAU,0BAA0B,CAAC,KAA2B;IACpE,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAyB,CAAA;AACvD,CAAC;AAED,iDAAiD;AACjD,MAAM,UAAU,kBAAkB,CAAC,KAA2B;IAC5D,OAAO,IAAI,KAAK,EAAW,CAAA;AAC7B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAA8D;IACtH,OAAO,KAAK,CAAC,aAAa,CAAC,2BAA2B,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC9F,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CAAC,EAAE,QAAQ,EAAiC;IACpF,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAA;IACvC,OAAO,KAAK,CAAC,aAAa,CAAC,2BAA2B,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;AAC1H,CAAC","sourcesContent":["import React from 'react'\n\n/**\n * A heading level in the document outline, `h1` … `h6`.\n */\nexport type DocumentHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6\n\n/**\n * The level the NEXT heading takes where it is rendered, decided by what is above it in the page, never by the\n * component drawing it.\n *\n * ## Why the chrome cannot pick its own level\n *\n * A heading's level is a fact about the OUTLINE: it says which heading this one belongs under. The framework's\n * chrome (a field group, a chart card, a section panel, a list's group label) renders the same component in places\n * whose outlines differ: directly under the page's `h1` on a record page, under a section panel's heading, under a\n * collapsible-all heading. Every one of them was a hard-coded `h3`, so on a record page the outline went `h1 → h3`\n * and the levels skipped. The first live accessibility audit of Wonder Todos (axe-core `heading-order`, #3867)\n * reported exactly that on the record read view (a chart card's \"My Week by Status\" `h3`) and the create form (the\n * \"Workflow\" group `h3`), each with the record title `h1` the only heading above it.\n *\n * spec-cite: WCAG 2.2 SC 1.3.1 (Info and Relationships), technique H42; axe-core rule id `heading-order`, which\n * reports a heading whose level is more than one deeper than the heading before it.\n *\n * ## The rule\n *\n * - With no host the level is **2**: a framework surface renders beneath its page title, which is the page's one\n * `h1` (`ResourceHeaderTitleHeading`, `ViewLayout_Header`). A surface with no `h1` above it then starts its\n * outline at `h2`, which skips nothing.\n * - A component that DRAWS a heading reads {@link useDocumentHeadingLevel} for its own level, and wraps the content\n * that heading owns in {@link NestedDocumentHeadingLevel}, so a heading inside it is one level deeper.\n * - A `<legend>` is not a heading, so a section named by a legend does not nest its content.\n * - The level stops at 6: HTML has no `h7`, and an outline six levels deep has bigger problems than its last tag.\n *\n * Rejected: a `level` prop threaded through each chrome component. Every caller would have to know its outline\n * position, which is precisely the knowledge a reused component does not have — the `titleTag: 'h4'` a collapsible\n * container passed to its panels was the one place that did this, and it was right only while that container sat\n * directly under an `h2`.\n */\nconst DocumentHeadingLevelContext = React.createContext<DocumentHeadingLevel>(2)\n\n/** The level a heading rendered here takes. */\nexport function useDocumentHeadingLevel(): DocumentHeadingLevel {\n return React.useContext(DocumentHeadingLevelContext)\n}\n\n/** One level deeper than `level`, stopping at 6. */\nexport function nestedDocumentHeadingLevel(level: DocumentHeadingLevel): DocumentHeadingLevel {\n return Math.min(level + 1, 6) as DocumentHeadingLevel\n}\n\n/** The tag name for a level: `'h1'` … `'h6'`. */\nexport function documentHeadingTag(level: DocumentHeadingLevel): 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' {\n return `h${level}` as const\n}\n\n/**\n * Set the level headings beneath take. A surface that renders its own heading above framework chrome without\n * wrapping that chrome in {@link NestedDocumentHeadingLevel} (a custom page with an `h2` of its own, say) uses it to\n * place the chrome correctly in its outline.\n */\nexport function DocumentHeadingLevelHost({ level, children }: { level: DocumentHeadingLevel; children: React.ReactNode }): React.ReactElement {\n return React.createElement(DocumentHeadingLevelContext.Provider, { value: level }, children)\n}\n\n/**\n * Wrap the content a heading owns, so a heading inside it takes the next level. Render the heading itself OUTSIDE\n * it, at {@link useDocumentHeadingLevel}.\n */\nexport function NestedDocumentHeadingLevel({ children }: { children: React.ReactNode }): React.ReactElement {\n const level = useDocumentHeadingLevel()\n return React.createElement(DocumentHeadingLevelContext.Provider, { value: nestedDocumentHeadingLevel(level) }, children)\n}\n"]}
|
|
@@ -80,8 +80,9 @@ export interface ChartDashboardProps {
|
|
|
80
80
|
* Each tile is headed by the chart view's own title (`views.chart.resources.<resourceType>.<ref>.title`, the words
|
|
81
81
|
* its route and launcher use) and drawn through `EmbedChart`: the chart's feature gate, the host composite's scope and
|
|
82
82
|
* a failure kept inside the tile. A tile whose chart the viewer may not read — the backend's aggregation gate would
|
|
83
|
-
* refuse it: no LIST role on its resource or on a resource it joins,
|
|
84
|
-
* or only a role confined there to its holder's own or assigned
|
|
83
|
+
* refuse it: no LIST role (nor, beside `auditReads`, aggregate-reader role) on its resource or on a resource it joins,
|
|
84
|
+
* or outside the chart's own `accessControl.roles`, or only a LIST role confined there to its holder's own or assigned
|
|
85
|
+
* rows (a chart reads every row in scope) — is not drawn,
|
|
85
86
|
* and the grid closes up. A dashboard with nothing the viewer may read renders nothing.
|
|
86
87
|
*
|
|
87
88
|
* A KPI tile (a chart view whose chart is `ChartType.KPI`) shows one figure under that title, hidden by the same rule.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartDashboard.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-dashboard/ChartDashboard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAa,MAAM,uBAAuB,CAAC;AAMlG,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,wDAAwD,CAAC;AAShE,iIAAiI;AACjI;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,mDAAmD;IACnD,GAAG,QAAQ;IACX;;;OAGG;IACH,KAAK,UAAU;IACf,8FAA8F;IAC9F,IAAI,SAAS;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;IACrB,iHAAiH;IACjH,YAAY,EAAE,MAAM,CAAC;IACrB,uGAAuG;IACvG,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,oGAAoG;IACpG,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,qFAAqF;IACrF,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACrC,sFAAsF;IACtF,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED
|
|
1
|
+
{"version":3,"file":"ChartDashboard.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/chart-dashboard/ChartDashboard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAa,MAAM,uBAAuB,CAAC;AAMlG,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,wDAAwD,CAAC;AAShE,iIAAiI;AACjI;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,mDAAmD;IACnD,GAAG,QAAQ;IACX;;;OAGG;IACH,KAAK,UAAU;IACf,8FAA8F;IAC9F,IAAI,SAAS;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;IACrB,iHAAiH;IACjH,YAAY,EAAE,MAAM,CAAC;IACrB,uGAAuG;IACvG,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,oGAAoG;IACpG,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,qFAAqF;IACrF,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACrC,sFAAsF;IACtF,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,OAAoC,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAmCnJ;AAoDD,sIAAsI;AACtI;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE;IAAE,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,4BAA4B,EAAE,eAAe,CAAC,GAC1J,4BAA4B,CAU9B;AACD,gEAAgE"}
|
|
@@ -31,7 +31,7 @@ import { defineCompositeView, } from '../../../core/config/composite-view.schema
|
|
|
31
31
|
import { Text } from '../../../components/typography/text.js';
|
|
32
32
|
import { EmbedChart } from '../../../components/resources/embeds/ResourceEmbeds.js';
|
|
33
33
|
import { CompositeLayout } from '../../../components/views/composite-view/CompositeLayout.js';
|
|
34
|
-
import { viewerMayReadChart } from '
|
|
34
|
+
import { viewerMayReadChart } from '../../../core/navigation/chart-read-gate.js';
|
|
35
35
|
import { arrangeChartDashboardTiles, defaultChartDashboardTileHeight } from './chart-dashboard-layout.utils.js';
|
|
36
36
|
import { ChartDashboardLayoutReadState, useChartDashboardLayout } from './useChartDashboardLayout.js';
|
|
37
37
|
import { ChartDashboardLayoutControl } from './ChartDashboardLayoutEditor.js';
|
|
@@ -59,8 +59,9 @@ export var ChartDashboardColumns;
|
|
|
59
59
|
* Each tile is headed by the chart view's own title (`views.chart.resources.<resourceType>.<ref>.title`, the words
|
|
60
60
|
* its route and launcher use) and drawn through `EmbedChart`: the chart's feature gate, the host composite's scope and
|
|
61
61
|
* a failure kept inside the tile. A tile whose chart the viewer may not read — the backend's aggregation gate would
|
|
62
|
-
* refuse it: no LIST role on its resource or on a resource it joins,
|
|
63
|
-
* or only a role confined there to its holder's own or assigned
|
|
62
|
+
* refuse it: no LIST role (nor, beside `auditReads`, aggregate-reader role) on its resource or on a resource it joins,
|
|
63
|
+
* or outside the chart's own `accessControl.roles`, or only a LIST role confined there to its holder's own or assigned
|
|
64
|
+
* rows (a chart reads every row in scope) — is not drawn,
|
|
64
65
|
* and the grid closes up. A dashboard with nothing the viewer may read renders nothing.
|
|
65
66
|
*
|
|
66
67
|
* A KPI tile (a chart view whose chart is `ChartType.KPI`) shows one figure under that title, hidden by the same rule.
|