@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
|
@@ -5,6 +5,27 @@ export declare function buildNavigationViewLabelKey(params: {
|
|
|
5
5
|
family: NavigationViewLabelFamily;
|
|
6
6
|
translationRef: string;
|
|
7
7
|
}): string;
|
|
8
|
+
/**
|
|
9
|
+
* The segment that follows a chart view's label prefix in a series' label key. A reader that has to recognise a series
|
|
10
|
+
* key (the labelling pipeline) splits on it, so the shape has this one source.
|
|
11
|
+
*/
|
|
12
|
+
export declare const CHART_SERIES_LABEL_SEGMENT = "series";
|
|
13
|
+
/**
|
|
14
|
+
* The label key of one series of a chart view: the name its legend and tooltip show. Every series of a chart view has
|
|
15
|
+
* one, under the view's own label keys (`views.chart.<translationRef>.series.<seriesRef>`), so the labelling pipeline
|
|
16
|
+
* plans and words it like the chart's title, and a series nobody has worded yet shows its key rather than English
|
|
17
|
+
* written into the chart definition. A series that declares `nameKey` (an existing label, such as a resource field's)
|
|
18
|
+
* is named by that key instead.
|
|
19
|
+
*/
|
|
20
|
+
export declare function buildChartSeriesLabelKey(translationRef: string, seriesRef: string): string;
|
|
21
|
+
/** The segment that follows a chart view's label prefix in a mark's label key (see `buildChartMarkLabelKey`). */
|
|
22
|
+
export declare const CHART_MARK_LABEL_SEGMENT = "marks";
|
|
23
|
+
/**
|
|
24
|
+
* The label key of one mark (a reference line or a highlighted point) of a chart view: the words it shows, under the
|
|
25
|
+
* view's own label keys (`views.chart.<translationRef>.marks.<markRef>`), planned like the series' names. A mark that
|
|
26
|
+
* names another label in `labelKey` shows that one instead.
|
|
27
|
+
*/
|
|
28
|
+
export declare function buildChartMarkLabelKey(translationRef: string, markRef: string): string;
|
|
8
29
|
export declare function buildApplicationViewTranslationRef(viewRef: string): string;
|
|
9
30
|
export declare function buildResourceViewTranslationRef(resourceType: string, localRef: string): string;
|
|
10
31
|
export declare function resolveCompositeViewTranslationRef(viewRef: string): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-title-resolution.d.ts","sourceRoot":"","sources":["../../../../src/core/navigation/view-title-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,qCAAqC,CAAC;AAU7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,wBAAgB,0BAA0B,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IAClD,MAAM,EAAE,yBAAyB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;CACxB,GAAG,MAAM,CAET;AAED,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE1E;AAED,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,GACf,MAAM,CAER;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,GACd,MAAM,GAAG,SAAS,CAiBpB;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,yBAAyB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,qBAAqB,CAAC;CACpC,GAAG,yBAAyB,GAAG,SAAS,CAoDxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,qBAAqB,CAAC;IACnC,cAAc,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,MAAM,CAAC;IACjE,KAAK,EAAE,CACL,MAAM,EAAE,yBAAyB,EACjC,cAAc,EAAE,MAAM,EACtB,GAAG,EAAE,OAAO,KACT,MAAM,CAAC;CACb,GAAG,MAAM,CAmBT"}
|
|
1
|
+
{"version":3,"file":"view-title-resolution.d.ts","sourceRoot":"","sources":["../../../../src/core/navigation/view-title-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,qCAAqC,CAAC;AAU7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,wBAAgB,0BAA0B,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IAClD,MAAM,EAAE,yBAAyB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;CACxB,GAAG,MAAM,CAET;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,WAAW,CAAC;AAEnD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,cAAc,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1F;AAED,iHAAiH;AACjH,eAAO,MAAM,wBAAwB,UAAU,CAAC;AAEhD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtF;AAED,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE1E;AAED,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,GACf,MAAM,CAER;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,GACd,MAAM,GAAG,SAAS,CAiBpB;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,yBAAyB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,qBAAqB,CAAC;CACpC,GAAG,yBAAyB,GAAG,SAAS,CAoDxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,qBAAqB,CAAC;IACnC,cAAc,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,MAAM,CAAC;IACjE,KAAK,EAAE,CACL,MAAM,EAAE,yBAAyB,EACjC,cAAc,EAAE,MAAM,EACtB,GAAG,EAAE,OAAO,KACT,MAAM,CAAC;CACb,GAAG,MAAM,CAmBT"}
|
|
@@ -8,6 +8,31 @@ export function buildCompositeViewLabelKey(translationRef) {
|
|
|
8
8
|
export function buildNavigationViewLabelKey(params) {
|
|
9
9
|
return `${LabellingTypes.VIEWS}.${params.family}.${params.translationRef}`;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* The segment that follows a chart view's label prefix in a series' label key. A reader that has to recognise a series
|
|
13
|
+
* key (the labelling pipeline) splits on it, so the shape has this one source.
|
|
14
|
+
*/
|
|
15
|
+
export const CHART_SERIES_LABEL_SEGMENT = 'series';
|
|
16
|
+
/**
|
|
17
|
+
* The label key of one series of a chart view: the name its legend and tooltip show. Every series of a chart view has
|
|
18
|
+
* one, under the view's own label keys (`views.chart.<translationRef>.series.<seriesRef>`), so the labelling pipeline
|
|
19
|
+
* plans and words it like the chart's title, and a series nobody has worded yet shows its key rather than English
|
|
20
|
+
* written into the chart definition. A series that declares `nameKey` (an existing label, such as a resource field's)
|
|
21
|
+
* is named by that key instead.
|
|
22
|
+
*/
|
|
23
|
+
export function buildChartSeriesLabelKey(translationRef, seriesRef) {
|
|
24
|
+
return `${buildNavigationViewLabelKey({ family: NavigationViewLabelFamily.CHART, translationRef })}.${CHART_SERIES_LABEL_SEGMENT}.${seriesRef}`;
|
|
25
|
+
}
|
|
26
|
+
/** The segment that follows a chart view's label prefix in a mark's label key (see `buildChartMarkLabelKey`). */
|
|
27
|
+
export const CHART_MARK_LABEL_SEGMENT = 'marks';
|
|
28
|
+
/**
|
|
29
|
+
* The label key of one mark (a reference line or a highlighted point) of a chart view: the words it shows, under the
|
|
30
|
+
* view's own label keys (`views.chart.<translationRef>.marks.<markRef>`), planned like the series' names. A mark that
|
|
31
|
+
* names another label in `labelKey` shows that one instead.
|
|
32
|
+
*/
|
|
33
|
+
export function buildChartMarkLabelKey(translationRef, markRef) {
|
|
34
|
+
return `${buildNavigationViewLabelKey({ family: NavigationViewLabelFamily.CHART, translationRef })}.${CHART_MARK_LABEL_SEGMENT}.${markRef}`;
|
|
35
|
+
}
|
|
11
36
|
export function buildApplicationViewTranslationRef(viewRef) {
|
|
12
37
|
return `app.${viewRef}`;
|
|
13
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-title-resolution.js","sourceRoot":"","sources":["../../../../src/core/navigation/view-title-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,2CAA2C,EAC3C,wCAAwC,GACzC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,UAAU,0BAA0B,CAAC,cAAsB;IAC/D,OAAO,GAAG,cAAc,CAAC,eAAe,IAAI,cAAc,EAAE,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,MAG3C;IACC,OAAO,GAAG,cAAc,CAAC,KAAK,IAAI,MAAM,C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AO,CAAC;QACxB,CAAC;QAED,OAAO,MAAM,CAAC,cAAc,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,UAAU,GAAG,gCAAgC,CAAC;QAClD,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,WAAW,EAAE,MAAM,CAAC,WAAW;KAChC,CAAC,CAAC;IACH,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,OAAO,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAC7E,CAAC","sourcesContent":["import {\n LabellingTypes,\n NavigationViewLabelFamily,\n} from '@wildo-ai/presets-components-models';\nimport {\n buildApplicationCompositeViewTranslationRef,\n buildResourceCompositeViewTranslationRef,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n} from '~wildo-frontend-lib/core/config/inserted-view.frontend.schemas';\nimport { NavigationContentType } from './navigation.schemas';\n\nexport function buildCompositeViewLabelKey(translationRef: string): string {\n return `${LabellingTypes.COMPOSITE_VIEWS}.${translationRef}`;\n}\n\nexport function buildNavigationViewLabelKey(params: {\n family: NavigationViewLabelFamily;\n translationRef: string;\n}): string {\n return `${LabellingTypes.VIEWS}.${params.family}.${params.translationRef}`;\n}\n\nexport function buildApplicationViewTranslationRef(viewRef: string): string {\n return `app.${viewRef}`;\n}\n\nexport function buildResourceViewTranslationRef(\n resourceType: string,\n localRef: string,\n): string {\n return `resources.${resourceType}.${localRef}`;\n}\n\nexport function resolveCompositeViewTranslationRef(\n viewRef: string,\n): string | undefined {\n const insertedView = parseFrontendInsertedViewRef(viewRef);\n if (!insertedView) {\n return buildApplicationCompositeViewTranslationRef(viewRef);\n }\n if (insertedView.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW) {\n return undefined;\n }\n\n if (insertedView.hostKind === FrontendInsertedViewHostKind.RESOURCE) {\n return buildResourceCompositeViewTranslationRef(\n insertedView.hostRef,\n insertedView.localRef,\n );\n }\n\n return buildApplicationCompositeViewTranslationRef(insertedView.localRef);\n}\n\nexport interface NavigationViewLabelTarget {\n family: NavigationViewLabelFamily;\n translationRef: string;\n}\n\nexport function resolveNavigationViewLabelTarget(params: {\n viewRef: string;\n contentType: NavigationContentType;\n}): NavigationViewLabelTarget | undefined {\n const insertedView = parseFrontendInsertedViewRef(params.viewRef);\n\n if (params.contentType === NavigationContentType.CHART_VIEW) {\n if (insertedView?.viewKind === FrontendInsertedViewKind.CHART_VIEW) {\n return {\n family: NavigationViewLabelFamily.CHART,\n translationRef: buildResourceViewTranslationRef(\n insertedView.hostRef,\n insertedView.localRef,\n ),\n };\n }\n\n return {\n family: NavigationViewLabelFamily.CHART,\n translationRef: buildApplicationViewTranslationRef(params.viewRef),\n };\n }\n\n if (params.contentType === NavigationContentType.EXECUTION_VIEW) {\n if (insertedView?.viewKind === FrontendInsertedViewKind.EXECUTION_VIEW) {\n return {\n family: NavigationViewLabelFamily.EXECUTION,\n translationRef: buildResourceViewTranslationRef(\n insertedView.hostRef,\n insertedView.localRef,\n ),\n };\n }\n\n return {\n family: NavigationViewLabelFamily.EXECUTION,\n translationRef: buildApplicationViewTranslationRef(params.viewRef),\n };\n }\n\n if (params.contentType === NavigationContentType.FULL_CUSTOM_VIEW) {\n return {\n family: NavigationViewLabelFamily.FULL_CUSTOM,\n translationRef: buildApplicationViewTranslationRef(params.viewRef),\n };\n }\n\n if (params.contentType === NavigationContentType.FLOWS_ACTORS_VIEW) {\n return {\n family: NavigationViewLabelFamily.FLOWS_ACTORS,\n translationRef: buildApplicationViewTranslationRef(params.viewRef),\n };\n }\n\n return undefined;\n}\n\n/**\n * Resolve the display title for a navigable view surface.\n *\n * Composite views have a first-class translation identity and must resolve\n * through `composite_views.{translationRef}.title`. Other supported view\n * families resolve through `views.{family}.{translationRef}.title`.\n *\n * ## A missing title is never `''`\n *\n * Every caller NAMES something with the answer — a sidebar item, a command-menu entry, a dialog\n * title, an inserted-view link — and `''` there is a control with no accessible name: still there,\n * still focusable, and silent. axe reports it as a critical `button-name` (#1411), and a screen\n * reader announces \"button\".\n *\n * `tCompositeView` / `tView` used to answer `''` for a missing title, so this function patched the\n * gap with the view's own ref. Since #1450 the resolvers answer the KEY PATH themselves — one\n * decision, in one place, for the header and the navigation control alike — so nothing is patched\n * here any more. (#1411's note argued a HEADER \"is right to disappear rather than show a key\"; that\n * is the half #1450 overturned: a page with no header says nothing about the label being owed.)\n *\n * The view ref is still the answer where there is NO label identity to resolve at all — no\n * translation ref, no label target — because then there is no key to show.\n * The loading window is a different case and is handled upstream, by `useLauncherResolutionContext`\n * not resolving anything before its label bundles settle.\n */\nexport function resolveNavigationViewTitle(params: {\n viewRef: string;\n contentType: NavigationContentType;\n tCompositeView: (translationRef: string, key: 'title') => string;\n tView: (\n family: NavigationViewLabelFamily,\n translationRef: string,\n key: 'title',\n ) => string;\n}): string {\n if (params.contentType === NavigationContentType.COMPOSITE_VIEW) {\n const translationRef = resolveCompositeViewTranslationRef(params.viewRef);\n if (!translationRef) {\n return params.viewRef;\n }\n\n return params.tCompositeView(translationRef, 'title');\n }\n\n const viewTarget = resolveNavigationViewLabelTarget({\n viewRef: params.viewRef,\n contentType: params.contentType,\n });\n if (!viewTarget) {\n return params.viewRef;\n }\n\n return params.tView(viewTarget.family, viewTarget.translationRef, 'title');\n}\n"]}
|
|
1
|
+
{"version":3,"file":"view-title-resolution.js","sourceRoot":"","sources":["../../../../src/core/navigation/view-title-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,2CAA2C,EAC3C,wCAAwC,GACzC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,GAC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OAAO,CAAC,CAAC;AAC7E,CAAC","sourcesContent":["import {\n LabellingTypes,\n NavigationViewLabelFamily,\n} from '@wildo-ai/presets-components-models';\nimport {\n buildApplicationCompositeViewTranslationRef,\n buildResourceCompositeViewTranslationRef,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n} from '~wildo-frontend-lib/core/config/inserted-view.frontend.schemas';\nimport { NavigationContentType } from './navigation.schemas';\n\nexport function buildCompositeViewLabelKey(translationRef: string): string {\n return `${LabellingTypes.COMPOSITE_VIEWS}.${translationRef}`;\n}\n\nexport function buildNavigationViewLabelKey(params: {\n family: NavigationViewLabelFamily;\n translationRef: string;\n}): string {\n return `${LabellingTypes.VIEWS}.${params.family}.${params.translationRef}`;\n}\n\n/**\n * The segment that follows a chart view's label prefix in a series' label key. A reader that has to recognise a series\n * key (the labelling pipeline) splits on it, so the shape has this one source.\n */\nexport const CHART_SERIES_LABEL_SEGMENT = 'series';\n\n/**\n * The label key of one series of a chart view: the name its legend and tooltip show. Every series of a chart view has\n * one, under the view's own label keys (`views.chart.<translationRef>.series.<seriesRef>`), so the labelling pipeline\n * plans and words it like the chart's title, and a series nobody has worded yet shows its key rather than English\n * written into the chart definition. A series that declares `nameKey` (an existing label, such as a resource field's)\n * is named by that key instead.\n */\nexport function buildChartSeriesLabelKey(translationRef: string, seriesRef: string): string {\n return `${buildNavigationViewLabelKey({ family: NavigationViewLabelFamily.CHART, translationRef })}.${CHART_SERIES_LABEL_SEGMENT}.${seriesRef}`;\n}\n\n/** The segment that follows a chart view's label prefix in a mark's label key (see `buildChartMarkLabelKey`). */\nexport const CHART_MARK_LABEL_SEGMENT = 'marks';\n\n/**\n * The label key of one mark (a reference line or a highlighted point) of a chart view: the words it shows, under the\n * view's own label keys (`views.chart.<translationRef>.marks.<markRef>`), planned like the series' names. A mark that\n * names another label in `labelKey` shows that one instead.\n */\nexport function buildChartMarkLabelKey(translationRef: string, markRef: string): string {\n return `${buildNavigationViewLabelKey({ family: NavigationViewLabelFamily.CHART, translationRef })}.${CHART_MARK_LABEL_SEGMENT}.${markRef}`;\n}\n\nexport function buildApplicationViewTranslationRef(viewRef: string): string {\n return `app.${viewRef}`;\n}\n\nexport function buildResourceViewTranslationRef(\n resourceType: string,\n localRef: string,\n): string {\n return `resources.${resourceType}.${localRef}`;\n}\n\nexport function resolveCompositeViewTranslationRef(\n viewRef: string,\n): string | undefined {\n const insertedView = parseFrontendInsertedViewRef(viewRef);\n if (!insertedView) {\n return buildApplicationCompositeViewTranslationRef(viewRef);\n }\n if (insertedView.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW) {\n return undefined;\n }\n\n if (insertedView.hostKind === FrontendInsertedViewHostKind.RESOURCE) {\n return buildResourceCompositeViewTranslationRef(\n insertedView.hostRef,\n insertedView.localRef,\n );\n }\n\n return buildApplicationCompositeViewTranslationRef(insertedView.localRef);\n}\n\nexport interface NavigationViewLabelTarget {\n family: NavigationViewLabelFamily;\n translationRef: string;\n}\n\nexport function resolveNavigationViewLabelTarget(params: {\n viewRef: string;\n contentType: NavigationContentType;\n}): NavigationViewLabelTarget | undefined {\n const insertedView = parseFrontendInsertedViewRef(params.viewRef);\n\n if (params.contentType === NavigationContentType.CHART_VIEW) {\n if (insertedView?.viewKind === FrontendInsertedViewKind.CHART_VIEW) {\n return {\n family: NavigationViewLabelFamily.CHART,\n translationRef: buildResourceViewTranslationRef(\n insertedView.hostRef,\n insertedView.localRef,\n ),\n };\n }\n\n return {\n family: NavigationViewLabelFamily.CHART,\n translationRef: buildApplicationViewTranslationRef(params.viewRef),\n };\n }\n\n if (params.contentType === NavigationContentType.EXECUTION_VIEW) {\n if (insertedView?.viewKind === FrontendInsertedViewKind.EXECUTION_VIEW) {\n return {\n family: NavigationViewLabelFamily.EXECUTION,\n translationRef: buildResourceViewTranslationRef(\n insertedView.hostRef,\n insertedView.localRef,\n ),\n };\n }\n\n return {\n family: NavigationViewLabelFamily.EXECUTION,\n translationRef: buildApplicationViewTranslationRef(params.viewRef),\n };\n }\n\n if (params.contentType === NavigationContentType.FULL_CUSTOM_VIEW) {\n return {\n family: NavigationViewLabelFamily.FULL_CUSTOM,\n translationRef: buildApplicationViewTranslationRef(params.viewRef),\n };\n }\n\n if (params.contentType === NavigationContentType.FLOWS_ACTORS_VIEW) {\n return {\n family: NavigationViewLabelFamily.FLOWS_ACTORS,\n translationRef: buildApplicationViewTranslationRef(params.viewRef),\n };\n }\n\n return undefined;\n}\n\n/**\n * Resolve the display title for a navigable view surface.\n *\n * Composite views have a first-class translation identity and must resolve\n * through `composite_views.{translationRef}.title`. Other supported view\n * families resolve through `views.{family}.{translationRef}.title`.\n *\n * ## A missing title is never `''`\n *\n * Every caller NAMES something with the answer — a sidebar item, a command-menu entry, a dialog\n * title, an inserted-view link — and `''` there is a control with no accessible name: still there,\n * still focusable, and silent. axe reports it as a critical `button-name` (#1411), and a screen\n * reader announces \"button\".\n *\n * `tCompositeView` / `tView` used to answer `''` for a missing title, so this function patched the\n * gap with the view's own ref. Since #1450 the resolvers answer the KEY PATH themselves — one\n * decision, in one place, for the header and the navigation control alike — so nothing is patched\n * here any more. (#1411's note argued a HEADER \"is right to disappear rather than show a key\"; that\n * is the half #1450 overturned: a page with no header says nothing about the label being owed.)\n *\n * The view ref is still the answer where there is NO label identity to resolve at all — no\n * translation ref, no label target — because then there is no key to show.\n * The loading window is a different case and is handled upstream, by `useLauncherResolutionContext`\n * not resolving anything before its label bundles settle.\n */\nexport function resolveNavigationViewTitle(params: {\n viewRef: string;\n contentType: NavigationContentType;\n tCompositeView: (translationRef: string, key: 'title') => string;\n tView: (\n family: NavigationViewLabelFamily,\n translationRef: string,\n key: 'title',\n ) => string;\n}): string {\n if (params.contentType === NavigationContentType.COMPOSITE_VIEW) {\n const translationRef = resolveCompositeViewTranslationRef(params.viewRef);\n if (!translationRef) {\n return params.viewRef;\n }\n\n return params.tCompositeView(translationRef, 'title');\n }\n\n const viewTarget = resolveNavigationViewLabelTarget({\n viewRef: params.viewRef,\n contentType: params.contentType,\n });\n if (!viewTarget) {\n return params.viewRef;\n }\n\n return params.tView(viewTarget.family, viewTarget.translationRef, 'title');\n}\n"]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The viewer as a FIELD READER (#4434): who the per-role field read rule (`.readableBy(roles)`, #4411) asks about when the
|
|
3
|
+
* interface decides whether to show a field.
|
|
4
|
+
*
|
|
5
|
+
* The backend withholds a `readableBy` field from a response for a viewer who holds none of its roles, and the response
|
|
6
|
+
* DTO declares such a field optional. A screen that derived its columns, form fields and detail rows from the schema then
|
|
7
|
+
* showed an empty cell or an empty field, which reads as "no value" when the truth is "not shown to you". So the screen
|
|
8
|
+
* asks the backend's question itself and shows no column, no field and no row.
|
|
9
|
+
*
|
|
10
|
+
* ONE decision, the shell's: {@link viewerHoldsOneOfRoles} over the viewer's effective roles, expanded against the
|
|
11
|
+
* application's own role tables, so a custom role inheriting a reader role reads the field exactly as the backend lets it.
|
|
12
|
+
* The field-level half is the shared {@link isFieldValueDisclosableTo}, the predicate every backend exit uses: a rule whose
|
|
13
|
+
* roles cannot be read is readable by nobody, and a backend-only field by no one.
|
|
14
|
+
*
|
|
15
|
+
* Roles not loaded yet are empty (`LauncherEffectiveRoles`), so a restricted field appears once they arrive and is never
|
|
16
|
+
* shown first and withdrawn after: the fail-closed direction. The backend stays the authority; this decides display only.
|
|
17
|
+
*/
|
|
18
|
+
import { type ReactNode } from 'react';
|
|
19
|
+
import { type FieldReader } from '@wildo-ai/saas-models';
|
|
20
|
+
import type { z } from 'zod';
|
|
21
|
+
import { FrontendResourceUtils } from '../resources/frontend-resource.utils';
|
|
22
|
+
import { type LauncherEffectiveRoles } from './viewer-roles';
|
|
23
|
+
/** The viewer's roles as a {@link FieldReader}: it may read a field when it holds one of the field's reader roles. */
|
|
24
|
+
export declare function viewerFieldReader(effectiveRoles: LauncherEffectiveRoles): FieldReader;
|
|
25
|
+
/** Provides the reader of the viewer's roles IN `organizationId` (`undefined`: the current organization). */
|
|
26
|
+
export declare function ViewerFieldReaderProvider({ organizationId, children }: {
|
|
27
|
+
readonly organizationId: string | undefined;
|
|
28
|
+
readonly children?: ReactNode;
|
|
29
|
+
}): ReactNode;
|
|
30
|
+
/** The viewer as a {@link FieldReader} in one organization (`undefined`: the current one), stable while their roles are. */
|
|
31
|
+
export declare function useViewerFieldReaderInOrganization(organizationId: string | undefined): FieldReader;
|
|
32
|
+
/**
|
|
33
|
+
* The viewer as a {@link FieldReader}: the one the enclosing surface provides for its records' organization, else the
|
|
34
|
+
* viewer in their current organization.
|
|
35
|
+
*/
|
|
36
|
+
export declare function useViewerFieldReader(): FieldReader;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the viewer is shown this field at all. `false` for a field whose value the backend never sends this viewer: a
|
|
39
|
+
* `readableBy` field they may not read, or a backend-only field. An absent schema is shown (nothing to judge it by).
|
|
40
|
+
*/
|
|
41
|
+
export declare function viewerMaySeeField(fieldSchema: z.ZodTypeAny | undefined, reader: FieldReader): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* {@link viewerMaySeeField} for a field at a PATH (#4459 F8): the field itself, and every ancestor on its path. The backend
|
|
44
|
+
* withholds a restricted object WHOLE, so a layout placing `address.city` under a restricted `address` would draw an empty
|
|
45
|
+
* row though `city` declares no rule of its own. `schemaAt` resolves a path prefix (`address`, `items[0]`) the way the
|
|
46
|
+
* calling surface resolves its fields; a prefix it cannot resolve is not judged (nothing to judge it by).
|
|
47
|
+
*/
|
|
48
|
+
export declare function viewerMaySeeFieldOnPath(fieldSchema: z.ZodTypeAny | undefined, path: string | undefined, schemaAt: (pathPrefix: string) => z.ZodTypeAny | undefined, reader: FieldReader): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The names among `fieldNames` the viewer is shown, against the schema shape that declares them: the columns of a table,
|
|
51
|
+
* the body of a list card. A name the shape does not declare is kept (nothing to judge it by).
|
|
52
|
+
*/
|
|
53
|
+
export declare function fieldsTheViewerMaySee(fieldNames: readonly string[], shape: Readonly<Record<string, unknown>> | null | undefined, reader: FieldReader): string[];
|
|
54
|
+
type CollectionResourceConfiguration = Parameters<typeof FrontendResourceUtils.detectSummaryFields>[0];
|
|
55
|
+
/**
|
|
56
|
+
* The summary fields of a collection the viewer is shown (#4434): its columns, the body of its cards. The one derivation the
|
|
57
|
+
* list and search layouts use, so the wiring is pinned in one place.
|
|
58
|
+
*/
|
|
59
|
+
export declare function useViewerSummaryFields(resourceConfig: CollectionResourceConfiguration): string[];
|
|
60
|
+
/**
|
|
61
|
+
* The sort and filter controls of a collection the viewer is offered (#4434 review F5): a field they may not read is
|
|
62
|
+
* neither a sort key nor a filter, nor a board's columns (the board takes its grouping field's definition from the filter
|
|
63
|
+
* fields). Offering it would sort or filter on a value the backend withholds from them, and name a field the screen
|
|
64
|
+
* otherwise hides.
|
|
65
|
+
*
|
|
66
|
+
* The authored filter PRESETS pass the same filter (#4459 F13): a preset that assigns a field the viewer may not read is
|
|
67
|
+
* not offered, since applying it would filter on that field. `presetFilters` absent: `undefined` back.
|
|
68
|
+
*/
|
|
69
|
+
export declare function useViewerCollectionControls<FilterField extends {
|
|
70
|
+
readonly fieldName: string;
|
|
71
|
+
}, Preset extends {
|
|
72
|
+
readonly filters: Readonly<Record<string, unknown>>;
|
|
73
|
+
} = {
|
|
74
|
+
readonly filters: Readonly<Record<string, unknown>>;
|
|
75
|
+
}>(resourceConfig: CollectionResourceConfiguration, sortFields: readonly string[], filterFields: readonly FilterField[], presetFilters?: readonly Preset[]): {
|
|
76
|
+
readonly sortFields: string[];
|
|
77
|
+
readonly filterFields: FilterField[];
|
|
78
|
+
readonly presetFilters: Preset[] | undefined;
|
|
79
|
+
};
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=viewer-field-reader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewer-field-reader.d.ts","sourceRoot":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AS,MAAM,EAAE,EAC7B,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EAC3D,MAAM,EAAE,WAAW,GAClB,MAAM,EAAE,CAEV;AAED,KAAK,+BAA+B,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvG;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,+BAA+B,GAAG,MAAM,EAAE,CAOhG;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,SAAS;IAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EAClD,MAAM,SAAS;IAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAAE,EAEhI,cAAc,EAAE,+BAA+B,EAC/C,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,YAAY,EAAE,SAAS,WAAW,EAAE,EACpC,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,GAChC;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,YAAY,EAAE,WAAW,EAAE,CAAC;IAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,CAUvH"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The viewer as a FIELD READER (#4434): who the per-role field read rule (`.readableBy(roles)`, #4411) asks about when the
|
|
3
|
+
* interface decides whether to show a field.
|
|
4
|
+
*
|
|
5
|
+
* The backend withholds a `readableBy` field from a response for a viewer who holds none of its roles, and the response
|
|
6
|
+
* DTO declares such a field optional. A screen that derived its columns, form fields and detail rows from the schema then
|
|
7
|
+
* showed an empty cell or an empty field, which reads as "no value" when the truth is "not shown to you". So the screen
|
|
8
|
+
* asks the backend's question itself and shows no column, no field and no row.
|
|
9
|
+
*
|
|
10
|
+
* ONE decision, the shell's: {@link viewerHoldsOneOfRoles} over the viewer's effective roles, expanded against the
|
|
11
|
+
* application's own role tables, so a custom role inheriting a reader role reads the field exactly as the backend lets it.
|
|
12
|
+
* The field-level half is the shared {@link isFieldValueDisclosableTo}, the predicate every backend exit uses: a rule whose
|
|
13
|
+
* roles cannot be read is readable by nobody, and a backend-only field by no one.
|
|
14
|
+
*
|
|
15
|
+
* Roles not loaded yet are empty (`LauncherEffectiveRoles`), so a restricted field appears once they arrive and is never
|
|
16
|
+
* shown first and withdrawn after: the fail-closed direction. The backend stays the authority; this decides display only.
|
|
17
|
+
*/
|
|
18
|
+
import { createContext, createElement, useContext, useMemo } from 'react';
|
|
19
|
+
import { isFieldValueDisclosableTo } from '@wildo-ai/saas-models';
|
|
20
|
+
import { FrontendResourceUtils } from '../resources/frontend-resource.utils.js';
|
|
21
|
+
import { useViewerEffectiveRoles, useViewerEffectiveRolesInOrganization } from './launcher-runtime-availability.js';
|
|
22
|
+
import { viewerHoldsOneOfRoles } from './viewer-roles.js';
|
|
23
|
+
/** The viewer's roles as a {@link FieldReader}: it may read a field when it holds one of the field's reader roles. */
|
|
24
|
+
export function viewerFieldReader(effectiveRoles) {
|
|
25
|
+
return { mayRead: (roles) => roles.length > 0 && viewerHoldsOneOfRoles(roles, effectiveRoles) };
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The reader a surface supplies for the organization its records belong to (#4434 review F2). The backend reads a field's
|
|
29
|
+
* roles in the REQUEST's organization, and a record of another tenant (a platform operator who opened it from the
|
|
30
|
+
* directory) is read there, not in the viewer's current organization: the same rule the shell's write offers follow
|
|
31
|
+
* (#2473). A surface that knows the organization provides it with {@link ViewerFieldReaderProvider}; below it, every field
|
|
32
|
+
* asks that reader.
|
|
33
|
+
*/
|
|
34
|
+
const ViewerFieldReaderContext = createContext(undefined);
|
|
35
|
+
/** Provides the reader of the viewer's roles IN `organizationId` (`undefined`: the current organization). */
|
|
36
|
+
export function ViewerFieldReaderProvider({ organizationId, children }) {
|
|
37
|
+
const reader = useViewerFieldReaderInOrganization(organizationId);
|
|
38
|
+
return createElement(ViewerFieldReaderContext.Provider, { value: reader }, children);
|
|
39
|
+
}
|
|
40
|
+
/** The viewer as a {@link FieldReader} in one organization (`undefined`: the current one), stable while their roles are. */
|
|
41
|
+
export function useViewerFieldReaderInOrganization(organizationId) {
|
|
42
|
+
const effectiveRoles = useViewerEffectiveRolesInOrganization(organizationId);
|
|
43
|
+
return useMemo(() => viewerFieldReader(effectiveRoles), [effectiveRoles]);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The viewer as a {@link FieldReader}: the one the enclosing surface provides for its records' organization, else the
|
|
47
|
+
* viewer in their current organization.
|
|
48
|
+
*/
|
|
49
|
+
export function useViewerFieldReader() {
|
|
50
|
+
const provided = useContext(ViewerFieldReaderContext);
|
|
51
|
+
const effectiveRoles = useViewerEffectiveRoles();
|
|
52
|
+
const current = useMemo(() => viewerFieldReader(effectiveRoles), [effectiveRoles]);
|
|
53
|
+
return provided ?? current;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Whether the viewer is shown this field at all. `false` for a field whose value the backend never sends this viewer: a
|
|
57
|
+
* `readableBy` field they may not read, or a backend-only field. An absent schema is shown (nothing to judge it by).
|
|
58
|
+
*/
|
|
59
|
+
export function viewerMaySeeField(fieldSchema, reader) {
|
|
60
|
+
return fieldSchema === undefined || isFieldValueDisclosableTo(fieldSchema, reader);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* {@link viewerMaySeeField} for a field at a PATH (#4459 F8): the field itself, and every ancestor on its path. The backend
|
|
64
|
+
* withholds a restricted object WHOLE, so a layout placing `address.city` under a restricted `address` would draw an empty
|
|
65
|
+
* row though `city` declares no rule of its own. `schemaAt` resolves a path prefix (`address`, `items[0]`) the way the
|
|
66
|
+
* calling surface resolves its fields; a prefix it cannot resolve is not judged (nothing to judge it by).
|
|
67
|
+
*/
|
|
68
|
+
export function viewerMaySeeFieldOnPath(fieldSchema, path, schemaAt, reader) {
|
|
69
|
+
if (!viewerMaySeeField(fieldSchema, reader))
|
|
70
|
+
return false;
|
|
71
|
+
const segments = path ? path.split('.') : [];
|
|
72
|
+
for (let length = 1; length < segments.length; length += 1) {
|
|
73
|
+
if (!viewerMaySeeField(schemaAt(segments.slice(0, length).join('.')), reader))
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The names among `fieldNames` the viewer is shown, against the schema shape that declares them: the columns of a table,
|
|
80
|
+
* the body of a list card. A name the shape does not declare is kept (nothing to judge it by).
|
|
81
|
+
*/
|
|
82
|
+
export function fieldsTheViewerMaySee(fieldNames, shape, reader) {
|
|
83
|
+
return fieldNames.filter((fieldName) => viewerMaySeeField(shape?.[fieldName], reader));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The summary fields of a collection the viewer is shown (#4434): its columns, the body of its cards. The one derivation the
|
|
87
|
+
* list and search layouts use, so the wiring is pinned in one place.
|
|
88
|
+
*/
|
|
89
|
+
export function useViewerSummaryFields(resourceConfig) {
|
|
90
|
+
const reader = useViewerFieldReader();
|
|
91
|
+
return useMemo(() => fieldsTheViewerMaySee(FrontendResourceUtils.detectSummaryFields(resourceConfig), FrontendResourceUtils.resolveFieldShapeOfAnyVariant(resourceConfig), reader), [resourceConfig, reader]);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The sort and filter controls of a collection the viewer is offered (#4434 review F5): a field they may not read is
|
|
95
|
+
* neither a sort key nor a filter, nor a board's columns (the board takes its grouping field's definition from the filter
|
|
96
|
+
* fields). Offering it would sort or filter on a value the backend withholds from them, and name a field the screen
|
|
97
|
+
* otherwise hides.
|
|
98
|
+
*
|
|
99
|
+
* The authored filter PRESETS pass the same filter (#4459 F13): a preset that assigns a field the viewer may not read is
|
|
100
|
+
* not offered, since applying it would filter on that field. `presetFilters` absent: `undefined` back.
|
|
101
|
+
*/
|
|
102
|
+
export function useViewerCollectionControls(resourceConfig, sortFields, filterFields, presetFilters) {
|
|
103
|
+
const reader = useViewerFieldReader();
|
|
104
|
+
return useMemo(() => {
|
|
105
|
+
const shape = FrontendResourceUtils.resolveFieldShapeOfAnyVariant(resourceConfig);
|
|
106
|
+
return {
|
|
107
|
+
sortFields: fieldsTheViewerMaySee(sortFields, shape, reader),
|
|
108
|
+
filterFields: filterFields.filter((filterField) => viewerMaySeeField(shape?.[filterField.fieldName], reader)),
|
|
109
|
+
presetFilters: presetFilters?.filter((preset) => Object.keys(preset.filters).every((fieldName) => viewerMaySeeField(shape?.[fieldName], reader))),
|
|
110
|
+
};
|
|
111
|
+
}, [resourceConfig, sortFields, filterFields, presetFilters, reader]);
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=viewer-field-reader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewer-field-reader.js","sourceRoot":"","sources":["../../../../src/core/navigation/viewer-field-reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAkB,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAoB,MAAM,uBAAuB,CAAC;AAGpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,qCAAqC,EAAE,MAAM,iCAAiC,CAAC;AACjH,OAAO,EAAE,qBAAqB,EAA+B,MAAM,gBAAgB,CAAC;AAEpF,sHAAsH;AACtH,MAAM,UAAU,iBAAiB,CAAC,cAAsC;IACtE,O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EjC,MAAM,MAAM,GAAG,oBAAoB,EAAE,CAAC;IACtC,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,MAAM,KAAK,GAAG,qBAAqB,CAAC,6BAA6B,CAAC,cAAc,CAAC,CAAC;QAClF,OAAO;YACL,UAAU,EAAE,qBAAqB,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC;YAC5D,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;YAC7G,aAAa,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC,SAAS,CAA6B,EAAE,MAAM,CAAC,CAAC,CAAC;SAC9K,CAAC;IACJ,CAAC,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;AACxE,CAAC","sourcesContent":["/**\n * The viewer as a FIELD READER (#4434): who the per-role field read rule (`.readableBy(roles)`, #4411) asks about when the\n * interface decides whether to show a field.\n *\n * The backend withholds a `readableBy` field from a response for a viewer who holds none of its roles, and the response\n * DTO declares such a field optional. A screen that derived its columns, form fields and detail rows from the schema then\n * showed an empty cell or an empty field, which reads as \"no value\" when the truth is \"not shown to you\". So the screen\n * asks the backend's question itself and shows no column, no field and no row.\n *\n * ONE decision, the shell's: {@link viewerHoldsOneOfRoles} over the viewer's effective roles, expanded against the\n * application's own role tables, so a custom role inheriting a reader role reads the field exactly as the backend lets it.\n * The field-level half is the shared {@link isFieldValueDisclosableTo}, the predicate every backend exit uses: a rule whose\n * roles cannot be read is readable by nobody, and a backend-only field by no one.\n *\n * Roles not loaded yet are empty (`LauncherEffectiveRoles`), so a restricted field appears once they arrive and is never\n * shown first and withdrawn after: the fail-closed direction. The backend stays the authority; this decides display only.\n */\nimport { createContext, createElement, useContext, useMemo, type ReactNode } from 'react';\nimport { isFieldValueDisclosableTo, type FieldReader } from '@wildo-ai/saas-models';\nimport type { z } from 'zod';\n\nimport { FrontendResourceUtils } from '../resources/frontend-resource.utils';\nimport { useViewerEffectiveRoles, useViewerEffectiveRolesInOrganization } from './launcher-runtime-availability';\nimport { viewerHoldsOneOfRoles, type LauncherEffectiveRoles } from './viewer-roles';\n\n/** The viewer's roles as a {@link FieldReader}: it may read a field when it holds one of the field's reader roles. */\nexport function viewerFieldReader(effectiveRoles: LauncherEffectiveRoles): FieldReader {\n return { mayRead: (roles) => roles.length > 0 && viewerHoldsOneOfRoles(roles, effectiveRoles) };\n}\n\n/**\n * The reader a surface supplies for the organization its records belong to (#4434 review F2). The backend reads a field's\n * roles in the REQUEST's organization, and a record of another tenant (a platform operator who opened it from the\n * directory) is read there, not in the viewer's current organization: the same rule the shell's write offers follow\n * (#2473). A surface that knows the organization provides it with {@link ViewerFieldReaderProvider}; below it, every field\n * asks that reader.\n */\nconst ViewerFieldReaderContext = createContext<FieldReader | undefined>(undefined);\n\n/** Provides the reader of the viewer's roles IN `organizationId` (`undefined`: the current organization). */\nexport function ViewerFieldReaderProvider({ organizationId, children }: { readonly organizationId: string | undefined; readonly children?: ReactNode }): ReactNode {\n const reader = useViewerFieldReaderInOrganization(organizationId);\n return createElement(ViewerFieldReaderContext.Provider, { value: reader }, children);\n}\n\n/** The viewer as a {@link FieldReader} in one organization (`undefined`: the current one), stable while their roles are. */\nexport function useViewerFieldReaderInOrganization(organizationId: string | undefined): FieldReader {\n const effectiveRoles = useViewerEffectiveRolesInOrganization(organizationId);\n return useMemo(() => viewerFieldReader(effectiveRoles), [effectiveRoles]);\n}\n\n/**\n * The viewer as a {@link FieldReader}: the one the enclosing surface provides for its records' organization, else the\n * viewer in their current organization.\n */\nexport function useViewerFieldReader(): FieldReader {\n const provided = useContext(ViewerFieldReaderContext);\n const effectiveRoles = useViewerEffectiveRoles();\n const current = useMemo(() => viewerFieldReader(effectiveRoles), [effectiveRoles]);\n return provided ?? current;\n}\n\n/**\n * Whether the viewer is shown this field at all. `false` for a field whose value the backend never sends this viewer: a\n * `readableBy` field they may not read, or a backend-only field. An absent schema is shown (nothing to judge it by).\n */\nexport function viewerMaySeeField(fieldSchema: z.ZodTypeAny | undefined, reader: FieldReader): boolean {\n return fieldSchema === undefined || isFieldValueDisclosableTo(fieldSchema, reader);\n}\n\n/**\n * {@link viewerMaySeeField} for a field at a PATH (#4459 F8): the field itself, and every ancestor on its path. The backend\n * withholds a restricted object WHOLE, so a layout placing `address.city` under a restricted `address` would draw an empty\n * row though `city` declares no rule of its own. `schemaAt` resolves a path prefix (`address`, `items[0]`) the way the\n * calling surface resolves its fields; a prefix it cannot resolve is not judged (nothing to judge it by).\n */\nexport function viewerMaySeeFieldOnPath(\n fieldSchema: z.ZodTypeAny | undefined,\n path: string | undefined,\n schemaAt: (pathPrefix: string) => z.ZodTypeAny | undefined,\n reader: FieldReader,\n): boolean {\n if (!viewerMaySeeField(fieldSchema, reader)) return false;\n const segments = path ? path.split('.') : [];\n for (let length = 1; length < segments.length; length += 1) {\n if (!viewerMaySeeField(schemaAt(segments.slice(0, length).join('.')), reader)) return false;\n }\n return true;\n}\n\n/**\n * The names among `fieldNames` the viewer is shown, against the schema shape that declares them: the columns of a table,\n * the body of a list card. A name the shape does not declare is kept (nothing to judge it by).\n */\nexport function fieldsTheViewerMaySee(\n fieldNames: readonly string[],\n shape: Readonly<Record<string, unknown>> | null | undefined,\n reader: FieldReader,\n): string[] {\n return fieldNames.filter((fieldName) => viewerMaySeeField(shape?.[fieldName] as z.ZodTypeAny | undefined, reader));\n}\n\ntype CollectionResourceConfiguration = Parameters<typeof FrontendResourceUtils.detectSummaryFields>[0];\n\n/**\n * The summary fields of a collection the viewer is shown (#4434): its columns, the body of its cards. The one derivation the\n * list and search layouts use, so the wiring is pinned in one place.\n */\nexport function useViewerSummaryFields(resourceConfig: CollectionResourceConfiguration): string[] {\n const reader = useViewerFieldReader();\n return useMemo(() => fieldsTheViewerMaySee(\n FrontendResourceUtils.detectSummaryFields(resourceConfig),\n FrontendResourceUtils.resolveFieldShapeOfAnyVariant(resourceConfig),\n reader,\n ), [resourceConfig, reader]);\n}\n\n/**\n * The sort and filter controls of a collection the viewer is offered (#4434 review F5): a field they may not read is\n * neither a sort key nor a filter, nor a board's columns (the board takes its grouping field's definition from the filter\n * fields). Offering it would sort or filter on a value the backend withholds from them, and name a field the screen\n * otherwise hides.\n *\n * The authored filter PRESETS pass the same filter (#4459 F13): a preset that assigns a field the viewer may not read is\n * not offered, since applying it would filter on that field. `presetFilters` absent: `undefined` back.\n */\nexport function useViewerCollectionControls<\n FilterField extends { readonly fieldName: string },\n Preset extends { readonly filters: Readonly<Record<string, unknown>> } = { readonly filters: Readonly<Record<string, unknown>> },\n>(\n resourceConfig: CollectionResourceConfiguration,\n sortFields: readonly string[],\n filterFields: readonly FilterField[],\n presetFilters?: readonly Preset[],\n): { readonly sortFields: string[]; readonly filterFields: FilterField[]; readonly presetFilters: Preset[] | undefined } {\n const reader = useViewerFieldReader();\n return useMemo(() => {\n const shape = FrontendResourceUtils.resolveFieldShapeOfAnyVariant(resourceConfig);\n return {\n sortFields: fieldsTheViewerMaySee(sortFields, shape, reader),\n filterFields: filterFields.filter((filterField) => viewerMaySeeField(shape?.[filterField.fieldName], reader)),\n presetFilters: presetFilters?.filter((preset) => Object.keys(preset.filters).every((fieldName) => viewerMaySeeField(shape?.[fieldName] as z.ZodTypeAny | undefined, reader))),\n };\n }, [resourceConfig, sortFields, filterFields, presetFilters, reader]);\n}\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The viewer's roles, and the ONE role-visibility decision of the app shell over them (#4252: moved out of
|
|
3
|
+
* `launcher-resolution.ts` so a gate the launcher asks, such as the chart read gate, can use them without an import
|
|
4
|
+
* cycle).
|
|
5
|
+
*/
|
|
6
|
+
import { type ApplicationRoleTables, type UserSelfAccessProfile } from '@wildo-ai/saas-models';
|
|
7
|
+
/**
|
|
8
|
+
* The viewer's roles as a role check needs them: kept apart by scope, because each scope's hierarchy is resolved
|
|
9
|
+
* against its own role table (`userRolesSatisfyRequiredRoles`). Organization roles are the CURRENT organization's
|
|
10
|
+
* only. Built by `useViewerEffectiveRoles`, the one place they are derived.
|
|
11
|
+
*
|
|
12
|
+
* Roles not known yet (permissions not loaded, an anonymous visitor) are EMPTY, not absent: the viewer holds no role,
|
|
13
|
+
* so a role-gated entry appears once the roles arrive rather than being offered and then withdrawn. That is the
|
|
14
|
+
* project's fail-closed rule; an unrestricted entry, or one open to anonymous visitors, is unaffected.
|
|
15
|
+
*/
|
|
16
|
+
export interface LauncherEffectiveRoles {
|
|
17
|
+
applicationRoles: string[];
|
|
18
|
+
organizationRoles: string[];
|
|
19
|
+
/**
|
|
20
|
+
* The application's role tables these roles are expanded against, and what a role neither table knows does
|
|
21
|
+
* (`useApplicationRoleTables`). Carried with the roles so no check can expand them against the wrong tables.
|
|
22
|
+
*/
|
|
23
|
+
roleTables: ApplicationRoleTables;
|
|
24
|
+
/** The organization `organizationRoles` are held in — the one a decision about an organization's resource is made in. */
|
|
25
|
+
organizationId: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* The backend's own account of this viewer's access (`user-self | access_profile`, #2381), or `null` when not loaded.
|
|
28
|
+
* It is what lets {@link viewerMayPerformOperation} see a grant the memberships cannot: an organization-unit one.
|
|
29
|
+
*/
|
|
30
|
+
accessProfile: UserSelfAccessProfile | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The ONE role-visibility decision of the app shell: OR semantics through the role hierarchy, the decision the
|
|
34
|
+
* backend's operation-role check makes. Shared by launcher items and Settings Hub sections, which used to answer it
|
|
35
|
+
* differently (the hub compared role names with no hierarchy, so an owner failed a gate naming the administrator role).
|
|
36
|
+
* The roles are expanded against the application's own tables, so a custom role passes exactly the gates the backend
|
|
37
|
+
* would let it through, and a role neither table knows passes none. An empty or absent requirement is open.
|
|
38
|
+
*/
|
|
39
|
+
export declare function viewerHoldsOneOfRoles(requiredRoles: readonly string[] | undefined, effectiveRoles: LauncherEffectiveRoles): boolean;
|
|
40
|
+
//# sourceMappingURL=viewer-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewer-roles.d.ts","sourceRoot":"","sources":["../../../../src/core/navigation/viewer-roles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAiC,KAAK,qBAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9H;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,UAAU,EAAE,qBAAqB,CAAC;IAClC,yHAAyH;IACzH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,aAAa,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC7C;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EAAE,cAAc,EAAE,sBAAsB,GAAG,OAAO,CAUnI"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The viewer's roles, and the ONE role-visibility decision of the app shell over them (#4252: moved out of
|
|
3
|
+
* `launcher-resolution.ts` so a gate the launcher asks, such as the chart read gate, can use them without an import
|
|
4
|
+
* cycle).
|
|
5
|
+
*/
|
|
6
|
+
import { userRolesSatisfyRequiredRoles } from '@wildo-ai/saas-models';
|
|
7
|
+
/**
|
|
8
|
+
* The ONE role-visibility decision of the app shell: OR semantics through the role hierarchy, the decision the
|
|
9
|
+
* backend's operation-role check makes. Shared by launcher items and Settings Hub sections, which used to answer it
|
|
10
|
+
* differently (the hub compared role names with no hierarchy, so an owner failed a gate naming the administrator role).
|
|
11
|
+
* The roles are expanded against the application's own tables, so a custom role passes exactly the gates the backend
|
|
12
|
+
* would let it through, and a role neither table knows passes none. An empty or absent requirement is open.
|
|
13
|
+
*/
|
|
14
|
+
export function viewerHoldsOneOfRoles(requiredRoles, effectiveRoles) {
|
|
15
|
+
if (!requiredRoles?.length)
|
|
16
|
+
return true;
|
|
17
|
+
return userRolesSatisfyRequiredRoles({
|
|
18
|
+
requiredRoles,
|
|
19
|
+
userAppRoles: effectiveRoles.applicationRoles,
|
|
20
|
+
userOrgRoles: effectiveRoles.organizationRoles,
|
|
21
|
+
appRolesConfig: effectiveRoles.roleTables.appRolesConfig,
|
|
22
|
+
orgRolesConfig: effectiveRoles.roleTables.orgRolesConfig,
|
|
23
|
+
unresolvableRoles: effectiveRoles.roleTables.unresolvableRoles,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=viewer-roles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewer-roles.js","sourceRoot":"","sources":["../../../../src/core/navigation/viewer-roles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,6BAA6B,EAA0D,MAAM,uBAAuB,CAAC;AA4B9H;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CAAC,aAA4C,EAAE,cAAsC;IACxH,IAAI,CAAC,aAAa,EAAE,MAAM;QAAE,OAAO,IAAI,CAAC;IACxC,OAAO,6BAA6B,CAAC;QACnC,aAAa;QACb,YAAY,EAAE,cAAc,CAAC,gBAAgB;QAC7C,YAAY,EAAE,cAAc,CAAC,iBAAiB;QAC9C,cAAc,EAAE,cAAc,CAAC,UAAU,CAAC,cAAc;QACxD,cAAc,EAAE,cAAc,CAAC,UAAU,CAAC,cAAc;QACxD,iBAAiB,EAAE,cAAc,CAAC,UAAU,CAAC,iBAAiB;KAC/D,CAAC,CAAC;AACL,CAAC","sourcesContent":["/**\n * The viewer's roles, and the ONE role-visibility decision of the app shell over them (#4252: moved out of\n * `launcher-resolution.ts` so a gate the launcher asks, such as the chart read gate, can use them without an import\n * cycle).\n */\nimport { userRolesSatisfyRequiredRoles, type ApplicationRoleTables, type UserSelfAccessProfile } from '@wildo-ai/saas-models';\n\n/**\n * The viewer's roles as a role check needs them: kept apart by scope, because each scope's hierarchy is resolved\n * against its own role table (`userRolesSatisfyRequiredRoles`). Organization roles are the CURRENT organization's\n * only. Built by `useViewerEffectiveRoles`, the one place they are derived.\n *\n * Roles not known yet (permissions not loaded, an anonymous visitor) are EMPTY, not absent: the viewer holds no role,\n * so a role-gated entry appears once the roles arrive rather than being offered and then withdrawn. That is the\n * project's fail-closed rule; an unrestricted entry, or one open to anonymous visitors, is unaffected.\n */\nexport interface LauncherEffectiveRoles {\n applicationRoles: string[];\n organizationRoles: string[];\n /**\n * The application's role tables these roles are expanded against, and what a role neither table knows does\n * (`useApplicationRoleTables`). Carried with the roles so no check can expand them against the wrong tables.\n */\n roleTables: ApplicationRoleTables;\n /** The organization `organizationRoles` are held in — the one a decision about an organization's resource is made in. */\n organizationId: string | null;\n /**\n * The backend's own account of this viewer's access (`user-self | access_profile`, #2381), or `null` when not loaded.\n * It is what lets {@link viewerMayPerformOperation} see a grant the memberships cannot: an organization-unit one.\n */\n accessProfile: UserSelfAccessProfile | null;\n}\n\n/**\n * The ONE role-visibility decision of the app shell: OR semantics through the role hierarchy, the decision the\n * backend's operation-role check makes. Shared by launcher items and Settings Hub sections, which used to answer it\n * differently (the hub compared role names with no hierarchy, so an owner failed a gate naming the administrator role).\n * The roles are expanded against the application's own tables, so a custom role passes exactly the gates the backend\n * would let it through, and a role neither table knows passes none. An empty or absent requirement is open.\n */\nexport function viewerHoldsOneOfRoles(requiredRoles: readonly string[] | undefined, effectiveRoles: LauncherEffectiveRoles): boolean {\n if (!requiredRoles?.length) return true;\n return userRolesSatisfyRequiredRoles({\n requiredRoles,\n userAppRoles: effectiveRoles.applicationRoles,\n userOrgRoles: effectiveRoles.organizationRoles,\n appRolesConfig: effectiveRoles.roleTables.appRolesConfig,\n orgRolesConfig: effectiveRoles.roleTables.orgRolesConfig,\n unresolvableRoles: effectiveRoles.roleTables.unresolvableRoles,\n });\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When the person last interacted with the page, so a request sent without them can say so.
|
|
3
|
+
*
|
|
4
|
+
* A session's inactivity timeout counts from the last request the person made, and the server decides what that is
|
|
5
|
+
* (`session-activity.backend.utils.ts` in the backend library). The page also sends requests nobody asked for: polling, a
|
|
6
|
+
* chart's auto-refresh, the analytics flush, a refetch a broadcast triggered. Counted as activity, those would keep an
|
|
7
|
+
* unattended tab signed in for ever. So the HTTP client marks every request sent when nobody has interacted with the
|
|
8
|
+
* page for {@link USER_INTERACTION_ACTIVITY_WINDOW_MS} with `x-wildo-background-request: 1`, and the server records no
|
|
9
|
+
* activity for it. One mark at the one place every authenticated request passes, rather than a mark per poll: a poll
|
|
10
|
+
* nobody marked would quietly defeat the timeout.
|
|
11
|
+
*
|
|
12
|
+
* Interaction is a key press, a pointer press, a touch or a wheel turn anywhere in the document: acts only a person
|
|
13
|
+
* makes. A scroll is not one (a page scrolls itself: `scrollIntoView`, a feed or a chat following new content), nor a
|
|
14
|
+
* pointer move (a browser sends one when the layout shifts under a still cursor); a person scrolling turns the wheel,
|
|
15
|
+
* presses a key, or drags, which is a pointer press. Opening the page counts: the clock starts when this module is
|
|
16
|
+
* first evaluated.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* A request sent this soon after the person's last interaction is theirs. Long enough to cover what one action sets off
|
|
20
|
+
* (a save, then the refetches it causes), short against any timeout (two minutes at least).
|
|
21
|
+
*/
|
|
22
|
+
export declare const USER_INTERACTION_ACTIVITY_WINDOW_MS = 30000;
|
|
23
|
+
/** Note an interaction now. */
|
|
24
|
+
export declare function noteUserInteraction(now?: number): void;
|
|
25
|
+
/** Whether a request sent now is sent without the person: nobody has interacted with the page within the window. */
|
|
26
|
+
export declare function isSentWithoutUser(now?: number): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Listen for the person's interactions on `target` (the document), and answer the function that stops listening. The
|
|
29
|
+
* listeners are passive and capture-phase, so nothing the page does stops one from being seen.
|
|
30
|
+
*/
|
|
31
|
+
export declare function startUserInteractionClock(target: Pick<Document, 'addEventListener' | 'removeEventListener'>): () => void;
|
|
32
|
+
//# sourceMappingURL=user-interaction-clock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-interaction-clock.d.ts","sourceRoot":"","sources":["../../../../src/core/requests/user-interaction-clock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AACH,eAAO,MAAM,mCAAmC,QAAS,CAAC;AAM1D,+BAA+B;AAC/B,wBAAgB,mBAAmB,CAAC,GAAG,GAAE,MAAmB,GAAG,IAAI,CAElE;AAED,oHAAoH;AACpH,wBAAgB,iBAAiB,CAAC,GAAG,GAAE,MAAmB,GAAG,OAAO,CAEnE;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,kBAAkB,GAAG,qBAAqB,CAAC,GAAG,MAAM,IAAI,CAOxH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When the person last interacted with the page, so a request sent without them can say so.
|
|
3
|
+
*
|
|
4
|
+
* A session's inactivity timeout counts from the last request the person made, and the server decides what that is
|
|
5
|
+
* (`session-activity.backend.utils.ts` in the backend library). The page also sends requests nobody asked for: polling, a
|
|
6
|
+
* chart's auto-refresh, the analytics flush, a refetch a broadcast triggered. Counted as activity, those would keep an
|
|
7
|
+
* unattended tab signed in for ever. So the HTTP client marks every request sent when nobody has interacted with the
|
|
8
|
+
* page for {@link USER_INTERACTION_ACTIVITY_WINDOW_MS} with `x-wildo-background-request: 1`, and the server records no
|
|
9
|
+
* activity for it. One mark at the one place every authenticated request passes, rather than a mark per poll: a poll
|
|
10
|
+
* nobody marked would quietly defeat the timeout.
|
|
11
|
+
*
|
|
12
|
+
* Interaction is a key press, a pointer press, a touch or a wheel turn anywhere in the document: acts only a person
|
|
13
|
+
* makes. A scroll is not one (a page scrolls itself: `scrollIntoView`, a feed or a chat following new content), nor a
|
|
14
|
+
* pointer move (a browser sends one when the layout shifts under a still cursor); a person scrolling turns the wheel,
|
|
15
|
+
* presses a key, or drags, which is a pointer press. Opening the page counts: the clock starts when this module is
|
|
16
|
+
* first evaluated.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* A request sent this soon after the person's last interaction is theirs. Long enough to cover what one action sets off
|
|
20
|
+
* (a save, then the refetches it causes), short against any timeout (two minutes at least).
|
|
21
|
+
*/
|
|
22
|
+
export const USER_INTERACTION_ACTIVITY_WINDOW_MS = 30_000;
|
|
23
|
+
const INTERACTION_EVENTS = ['keydown', 'pointerdown', 'touchstart', 'wheel'];
|
|
24
|
+
let lastInteractionAt = Date.now();
|
|
25
|
+
/** Note an interaction now. */
|
|
26
|
+
export function noteUserInteraction(now = Date.now()) {
|
|
27
|
+
lastInteractionAt = now;
|
|
28
|
+
}
|
|
29
|
+
/** Whether a request sent now is sent without the person: nobody has interacted with the page within the window. */
|
|
30
|
+
export function isSentWithoutUser(now = Date.now()) {
|
|
31
|
+
return now - lastInteractionAt > USER_INTERACTION_ACTIVITY_WINDOW_MS;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Listen for the person's interactions on `target` (the document), and answer the function that stops listening. The
|
|
35
|
+
* listeners are passive and capture-phase, so nothing the page does stops one from being seen.
|
|
36
|
+
*/
|
|
37
|
+
export function startUserInteractionClock(target) {
|
|
38
|
+
const onInteraction = () => { lastInteractionAt = Date.now(); };
|
|
39
|
+
const options = { capture: true, passive: true };
|
|
40
|
+
for (const event of INTERACTION_EVENTS)
|
|
41
|
+
target.addEventListener(event, onInteraction, options);
|
|
42
|
+
return () => {
|
|
43
|
+
for (const event of INTERACTION_EVENTS)
|
|
44
|
+
target.removeEventListener(event, onInteraction, options);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=user-interaction-clock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-interaction-clock.js","sourceRoot":"","sources":["../../../../src/core/requests/user-interaction-clock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,MAAM,CAAC;AAE1D,MAAM,kBAAkB,GAAG,CAAC,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,CAAU,CAAC;AAEtF,IAAI,iBAAiB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AAEnC,+BAA+B;AAC/B,MAAM,UAAU,mBAAmB,CAAC,MAAc,IAAI,CAAC,GAAG,EAAE;IAC1D,iBAAiB,GAAG,GAAG,CAAC;AAC1B,CAAC;AAED,oHAAoH;AACpH,MAAM,UAAU,iBAAiB,CAAC,MAAc,IAAI,CAAC,GAAG,EAAE;IACxD,OAAO,GAAG,GAAG,iBAAiB,GAAG,mCAAmC,CAAC;AACvE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAAkE;IAC1G,MAAM,aAAa,GAAG,GAAS,EAAE,GAAG,iBAAiB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;IACtE,MAAM,OAAO,GAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC1E,KAAK,MAAM,KAAK,IAAI,kBAAkB;QAAE,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAC/F,OAAO,GAAG,EAAE;QACV,KAAK,MAAM,KAAK,IAAI,kBAAkB;YAAE,MAAM,CAAC,mBAAmB,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * When the person last interacted with the page, so a request sent without them can say so.\n *\n * A session's inactivity timeout counts from the last request the person made, and the server decides what that is\n * (`session-activity.backend.utils.ts` in the backend library). The page also sends requests nobody asked for: polling, a\n * chart's auto-refresh, the analytics flush, a refetch a broadcast triggered. Counted as activity, those would keep an\n * unattended tab signed in for ever. So the HTTP client marks every request sent when nobody has interacted with the\n * page for {@link USER_INTERACTION_ACTIVITY_WINDOW_MS} with `x-wildo-background-request: 1`, and the server records no\n * activity for it. One mark at the one place every authenticated request passes, rather than a mark per poll: a poll\n * nobody marked would quietly defeat the timeout.\n *\n * Interaction is a key press, a pointer press, a touch or a wheel turn anywhere in the document: acts only a person\n * makes. A scroll is not one (a page scrolls itself: `scrollIntoView`, a feed or a chat following new content), nor a\n * pointer move (a browser sends one when the layout shifts under a still cursor); a person scrolling turns the wheel,\n * presses a key, or drags, which is a pointer press. Opening the page counts: the clock starts when this module is\n * first evaluated.\n */\n\n/**\n * A request sent this soon after the person's last interaction is theirs. Long enough to cover what one action sets off\n * (a save, then the refetches it causes), short against any timeout (two minutes at least).\n */\nexport const USER_INTERACTION_ACTIVITY_WINDOW_MS = 30_000;\n\nconst INTERACTION_EVENTS = ['keydown', 'pointerdown', 'touchstart', 'wheel'] as const;\n\nlet lastInteractionAt = Date.now();\n\n/** Note an interaction now. */\nexport function noteUserInteraction(now: number = Date.now()): void {\n lastInteractionAt = now;\n}\n\n/** Whether a request sent now is sent without the person: nobody has interacted with the page within the window. */\nexport function isSentWithoutUser(now: number = Date.now()): boolean {\n return now - lastInteractionAt > USER_INTERACTION_ACTIVITY_WINDOW_MS;\n}\n\n/**\n * Listen for the person's interactions on `target` (the document), and answer the function that stops listening. The\n * listeners are passive and capture-phase, so nothing the page does stops one from being seen.\n */\nexport function startUserInteractionClock(target: Pick<Document, 'addEventListener' | 'removeEventListener'>): () => void {\n const onInteraction = (): void => { lastInteractionAt = Date.now(); };\n const options: AddEventListenerOptions = { capture: true, passive: true };\n for (const event of INTERACTION_EVENTS) target.addEventListener(event, onInteraction, options);\n return () => {\n for (const event of INTERACTION_EVENTS) target.removeEventListener(event, onInteraction, options);\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebSocketEventBridge.d.ts","sourceRoot":"","sources":["../../../../../src/core/requests/websockets/WebSocketEventBridge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAgDlD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"WebSocketEventBridge.d.ts","sourceRoot":"","sources":["../../../../../src/core/requests/websockets/WebSocketEventBridge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAgDlD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAomBxC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -227,6 +227,8 @@ export const WebSocketEventBridge = () => {
|
|
|
227
227
|
notificationIdentifier: payload.notificationIdentifier,
|
|
228
228
|
action: payload.action,
|
|
229
229
|
frontendDisplayHints: payload.frontendDisplayHints,
|
|
230
|
+
// Where the notice leads its reader (#4615): read by the notification centre as the entry's action.
|
|
231
|
+
...(payload.destination !== undefined ? { destination: payload.destination } : {}),
|
|
230
232
|
// How many rows a BULK action changed — the count its outcome message states.
|
|
231
233
|
...(payload.isBulkOperation ? { affectedCount: payload.affectedIds.length } : {}),
|
|
232
234
|
},
|