@wildo-ai/saas-frontend-lib 1.1.17 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +114 -26
- package/LICENSE.enterprise +129 -0
- package/dist/esm/companion-exports.d.ts +5 -2
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js +4 -2
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/components/actions/action-bar.d.ts +16 -1
- package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
- package/dist/esm/components/actions/action-bar.js.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
- package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.js +14 -7
- package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.js +15 -0
- package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
- package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
- package/dist/esm/components/auth/Auth_Main.js +5 -0
- package/dist/esm/components/auth/Auth_Main.js.map +1 -1
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
- package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
- package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.js +40 -7
- package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.js +9 -1
- package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
- package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
- package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayField.js +67 -45
- package/dist/esm/components/data-display/DisplayField.js.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
- package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
- package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
- package/dist/esm/components/feedback/empty-state-marker.js +16 -0
- package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
- package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/empty-state.js +2 -1
- package/dist/esm/components/feedback/empty-state.js.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.js +2 -1
- package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.d.ts +25 -1
- package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.js +14 -9
- package/dist/esm/components/flows-actors/approval.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.js +30 -0
- package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
- package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
- package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
- package/dist/esm/components/form/Form.d.ts +2 -0
- package/dist/esm/components/form/Form.d.ts.map +1 -1
- package/dist/esm/components/form/Form.js +1 -0
- package/dist/esm/components/form/Form.js.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
- package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
- package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
- package/dist/esm/components/form/automated/FormField.d.ts +5 -3
- package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/FormField.js +38 -13
- package/dist/esm/components/form/automated/FormField.js.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js +31 -18
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
- package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
- package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
- package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +5 -3
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js +47 -11
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +17 -7
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.js +13 -6
- package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
- package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
- package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
- package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
- package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
- package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
- package/dist/esm/components/settings/SettingsHub.js +14 -4
- package/dist/esm/components/settings/SettingsHub.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.js +33 -7
- package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.js +69 -3
- package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
- package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
- package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +35 -9
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +69 -21
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +6 -7
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +2 -2
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +7 -7
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +6 -8
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
- package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
- package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
- package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
- package/dist/esm/core/billing/BillingContext.d.ts +27 -4
- package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
- package/dist/esm/core/billing/BillingContext.js +61 -2
- package/dist/esm/core/billing/BillingContext.js.map +1 -1
- package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
- package/dist/esm/core/billing/useBillingAction.js +3 -2
- package/dist/esm/core/billing/useBillingAction.js.map +1 -1
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
- package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
- package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
- package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
- package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
- package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.js +1 -0
- package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
- package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.js +12 -0
- package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
- package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
- package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
- package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.js +31 -0
- package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
- package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
- package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
- package/dist/esm/core/events/NotificationContext.js +19 -2
- package/dist/esm/core/events/NotificationContext.js.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
- package/dist/esm/core/execution/useExecution.d.ts +3 -3
- package/dist/esm/core/execution/useExecution.js.map +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
- package/dist/esm/core/features/FeatureGate.d.ts +13 -1
- package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
- package/dist/esm/core/features/FeatureGate.js +6 -1
- package/dist/esm/core/features/FeatureGate.js.map +1 -1
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
- package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
- package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
- package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
- package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
- package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
- package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useFeatureAvailability.js +4 -0
- package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
- package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
- package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
- package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
- package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
- package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
- package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
- package/dist/esm/core/navigation/home-resolution.js +46 -0
- package/dist/esm/core/navigation/home-resolution.js.map +1 -0
- package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
- package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.js +13 -18
- package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
- package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
- package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
- package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
- package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
- package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
- package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
- package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.js +25 -0
- package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
- package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
- package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
- package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.js +26 -0
- package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.js +47 -0
- package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +27 -6
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +30 -7
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.js +4 -0
- package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
- package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
- package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
- package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +11 -33
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
- package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
- package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
- package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
- package/dist/esm/core/runtime/identity-routes.js +50 -0
- package/dist/esm/core/runtime/identity-routes.js.map +1 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
- package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
- package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.js +4 -0
- package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
- package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.js +7 -2
- package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
- package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
- package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
- package/dist/esm/core/ui/design-token.utils.js +24 -3
- package/dist/esm/core/ui/design-token.utils.js.map +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
- package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/index.d.ts +14 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +17 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/testing/mock-builders.d.ts +1 -1
- package/dist/esm/testing/mock-builders.d.ts.map +1 -1
- package/dist/esm/testing/mock-builders.js +1 -0
- package/dist/esm/testing/mock-builders.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -6
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
|
@@ -4,7 +4,9 @@ import { ErrorCustomMessageReference, } from '@wildo-ai/saas-models';
|
|
|
4
4
|
import { buildResolvedInsertedChartDescriptor, buildResourceInsertedChartIdentity, } from '../../core/config/chart-view.frontend.schemas.js';
|
|
5
5
|
import { buildResourceInsertedCompositeIdentity, } from '../../core/config/composite-view.schemas.js';
|
|
6
6
|
import { buildResourceInsertedExecutionIdentity, } from '../../core/config/execution-view.schemas.js';
|
|
7
|
-
import {
|
|
7
|
+
import { RequiredFeaturesGate } from '../../core/features/RequiredFeaturesGate.js';
|
|
8
|
+
import { RequiredFeaturesGatePresentation } from '../../core/features/required-features-gate-presentation.js';
|
|
9
|
+
import { CHART_VIEW_DEFAULT_HEIGHT } from '../../components/views/chart-view/chart-view-defaults.js';
|
|
8
10
|
import { useResourceRegistry } from '../../core/resources/useResourceRegistry.js';
|
|
9
11
|
import { FrontendResourceUtils } from '../../core/resources/frontend-resource.utils.js';
|
|
10
12
|
import { CompositeView } from '../../components/views/composite-view/CompositeView.js';
|
|
@@ -12,6 +14,7 @@ import { CompositeView } from '../../components/views/composite-view/CompositeVi
|
|
|
12
14
|
// module merges the whole ECharts payload into the entry chunk (Rollup merges
|
|
13
15
|
// a module that is both statically and dynamically imported; no warning).
|
|
14
16
|
import { ChartView } from '../../components/views/chart-view/ChartView.lazy.js';
|
|
17
|
+
import { ChartReadDecision, useChartReadDecision } from '../../core/navigation/useChartReadDecision.js';
|
|
15
18
|
import { ExecutionView } from '../../components/views/execution-view/ExecutionView.js';
|
|
16
19
|
import { normalizeInsertedResourceViewContextResourceIdentifiers } from './inserted-resource-view.frontend.utils.js';
|
|
17
20
|
/**
|
|
@@ -28,7 +31,7 @@ export function EmbedResourceOwnedCompositeView({ resourceContext, viewRef, navi
|
|
|
28
31
|
const contextResourceIdentifiers = useMemo(() => {
|
|
29
32
|
return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);
|
|
30
33
|
}, [resourceContext]);
|
|
31
|
-
return (_jsx(CompositeView, { viewRef: insertedIdentity.insertedViewRef, contextResourceIdentifiers: contextResourceIdentifiers, navigationZone: navigationZone, navigationInitiator: navigationInitiator }));
|
|
34
|
+
return (_jsx(CompositeView, { viewRef: insertedIdentity.insertedViewRef, featureGatePresentation: RequiredFeaturesGatePresentation.TILE, contextResourceIdentifiers: contextResourceIdentifiers, navigationZone: navigationZone, navigationInitiator: navigationInitiator }));
|
|
32
35
|
}
|
|
33
36
|
export function EmbedResourceOwnedChartView({ resourceContext, viewRef, inputs, urlParamValues, className, }) {
|
|
34
37
|
const { registry } = useResourceRegistry();
|
|
@@ -42,13 +45,17 @@ export function EmbedResourceOwnedChartView({ resourceContext, viewRef, inputs,
|
|
|
42
45
|
?.frontendConfiguration
|
|
43
46
|
?.chartViews
|
|
44
47
|
?.find((candidate) => candidate.ref === viewRef);
|
|
48
|
+
// #4252: a chart the backend's chart gate would refuse this viewer is not drawn (nor while their roles load).
|
|
49
|
+
const readDecision = useChartReadDecision(chartView?.chartDefinition);
|
|
45
50
|
if (!chartView) {
|
|
46
51
|
throw buildResourceOwnedViewEmbedConfigurationError(`Cannot resolve resource-owned chart view "${viewRef}" on resource "${resourceContext.resourceType}".`, {
|
|
47
52
|
resourceType: resourceContext.resourceType,
|
|
48
53
|
viewRef,
|
|
49
54
|
});
|
|
50
55
|
}
|
|
51
|
-
|
|
56
|
+
if (readDecision !== ChartReadDecision.ALLOWED)
|
|
57
|
+
return null;
|
|
58
|
+
return (_jsx("div", { className: className, children: _jsx(RequiredFeaturesGate, { requiredFeatures: chartView.chartDefinition.requiredFeatures, presentation: RequiredFeaturesGatePresentation.TILE, lockedTileHeight: CHART_VIEW_DEFAULT_HEIGHT, children: _jsx(ChartView, { viewRef: identity.insertedViewRef, viewDefinition: chartView, runtimeDescriptor: buildResolvedInsertedChartDescriptor({
|
|
52
59
|
identity,
|
|
53
60
|
chartView,
|
|
54
61
|
contextResourceIdentifiers,
|
|
@@ -63,7 +70,7 @@ export function EmbedResourceOwnedExecutionView({ resourceContext, viewRef, navi
|
|
|
63
70
|
const contextResourceIdentifiers = useMemo(() => {
|
|
64
71
|
return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);
|
|
65
72
|
}, [resourceContext]);
|
|
66
|
-
return (_jsx("div", { className: className, children: _jsx(ExecutionView, { viewRef: identity.insertedViewRef, navigationZone: navigationZone, contextResourceIdentifiers: contextResourceIdentifiers }) }));
|
|
73
|
+
return (_jsx("div", { className: className, children: _jsx(ExecutionView, { viewRef: identity.insertedViewRef, navigationZone: navigationZone, contextResourceIdentifiers: contextResourceIdentifiers, featureGatePresentation: RequiredFeaturesGatePresentation.TILE }) }));
|
|
67
74
|
}
|
|
68
75
|
function buildResourceOwnedViewEmbedConfigurationError(message, context) {
|
|
69
76
|
return FrontendResourceUtils.buildConfigurationError(ErrorCustomMessageReference.CONFIGURATION, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceOwnedViewEmbeds.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceOwnedViewEmbeds.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,2BAA2B,GAE5B,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,GACnC,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,sCAAsC,GACvC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,sCAAsC,GACvC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,mEAAmE,CAAC;AAClG,6EAA6E;AAC7E,8EAA8E;AAC9E,0EAA0E;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,gEAAgE,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,mEAAmE,CAAC;AAElG,OAAO,EAAE,uDAAuD,EAAE,MAAM,yCAAyC,CAAC;AASlH;;;;;;GAMG;AACH,MAAM,UAAU,+BAA+B,CAAC,EAC9C,eAAe,EACf,OAAO,EACP,cAAc,EACd,mBAAmB,GACkB;IACrC,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,EAAE;QACpC,OAAO,sCAAsC,CAAC,eAAe,CAAC,YAAY,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC,EAAE,CAAC,eAAe,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;IAE5C,MAAM,0BAA0B,GAAG,OAAO,CAAC,GAAG,EAAE;QAC9C,OAA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import {\n ErrorCustomMessageReference,\n type ChartInputValues,\n} from '@wildo-ai/saas-models';\nimport type {\n NavigationInitiatorContext,\n NavigationZone,\n} from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport type {\n FrontendResourceOperationContext,\n} from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport {\n buildResolvedInsertedChartDescriptor,\n buildResourceInsertedChartIdentity,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport {\n buildResourceInsertedCompositeIdentity,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport {\n buildResourceInsertedExecutionIdentity,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport { FeatureRouteGuard } from '~wildo-frontend-lib/core/features/FeatureRouteGuard';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\n// ChartView MUST come from the `.lazy` wrapper — a static import of the real\n// module merges the whole ECharts payload into the entry chunk (Rollup merges\n// a module that is both statically and dynamically imported; no warning).\nimport { ChartView } from '~wildo-frontend-lib/components/views/chart-view/ChartView.lazy';\nimport { ExecutionView } from '~wildo-frontend-lib/components/views/execution-view/ExecutionView';\n\nimport { normalizeInsertedResourceViewContextResourceIdentifiers } from './inserted-resource-view.frontend.utils';\n\nexport interface EmbedResourceOwnedCompositeViewProps {\n resourceContext: FrontendResourceOperationContext;\n viewRef: string;\n navigationZone?: NavigationZone;\n navigationInitiator?: NavigationInitiatorContext;\n}\n\n/**\n * Embed a resource-owned composite view from an operation/custom host.\n *\n * Custom operation hosts should not have to hand-author inserted-view identity\n * strings or re-normalize semantic operation context into plain view context\n * ids. This helper keeps that bridge explicit but ergonomic.\n */\nexport function EmbedResourceOwnedCompositeView({\n resourceContext,\n viewRef,\n navigationZone,\n navigationInitiator,\n}: EmbedResourceOwnedCompositeViewProps): React.JSX.Element {\n const insertedIdentity = useMemo(() => {\n return buildResourceInsertedCompositeIdentity(resourceContext.resourceType, { ref: viewRef });\n }, [resourceContext.resourceType, viewRef]);\n\n const contextResourceIdentifiers = useMemo(() => {\n return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);\n }, [resourceContext]);\n\n return (\n <CompositeView\n viewRef={insertedIdentity.insertedViewRef}\n contextResourceIdentifiers={contextResourceIdentifiers}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n );\n}\n\nexport interface EmbedResourceOwnedChartViewProps {\n resourceContext: FrontendResourceOperationContext;\n viewRef: string;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n className?: string;\n}\n\nexport function EmbedResourceOwnedChartView({\n resourceContext,\n viewRef,\n inputs,\n urlParamValues,\n className,\n}: EmbedResourceOwnedChartViewProps): React.JSX.Element {\n const { registry } = useResourceRegistry();\n const identity = useMemo(() => {\n return buildResourceInsertedChartIdentity(resourceContext.resourceType, { ref: viewRef });\n }, [resourceContext.resourceType, viewRef]);\n const contextResourceIdentifiers = useMemo(() => {\n return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);\n }, [resourceContext]);\n const chartView = registry.resourceConfigurations[resourceContext.resourceType]\n ?.frontendConfiguration\n ?.chartViews\n ?.find((candidate) => candidate.ref === viewRef);\n if (!chartView) {\n throw buildResourceOwnedViewEmbedConfigurationError(\n `Cannot resolve resource-owned chart view \"${viewRef}\" on resource \"${resourceContext.resourceType}\".`,\n {\n resourceType: resourceContext.resourceType,\n viewRef,\n },\n );\n }\n\n return (\n <div className={className}>\n <FeatureRouteGuard requiredFeatures={chartView.chartDefinition.requiredFeatures}>\n <ChartView\n viewRef={identity.insertedViewRef}\n viewDefinition={chartView}\n runtimeDescriptor={buildResolvedInsertedChartDescriptor({\n identity,\n chartView,\n contextResourceIdentifiers,\n })}\n contextResourceIdentifiers={contextResourceIdentifiers}\n inputs={inputs}\n urlParamValues={urlParamValues}\n // Resource-owned embedded chart → degrade locally, no page-level toast.\n localErrorOnly\n />\n </FeatureRouteGuard>\n </div>\n );\n}\n\nexport interface EmbedResourceOwnedExecutionViewProps {\n resourceContext: FrontendResourceOperationContext;\n viewRef: string;\n navigationZone: NavigationZone;\n className?: string;\n}\n\nexport function EmbedResourceOwnedExecutionView({\n resourceContext,\n viewRef,\n navigationZone,\n className,\n}: EmbedResourceOwnedExecutionViewProps): React.JSX.Element {\n const identity = useMemo(() => {\n return buildResourceInsertedExecutionIdentity(resourceContext.resourceType, { ref: viewRef });\n }, [resourceContext.resourceType, viewRef]);\n const contextResourceIdentifiers = useMemo(() => {\n return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);\n }, [resourceContext]);\n\n return (\n <div className={className}>\n <ExecutionView\n viewRef={identity.insertedViewRef}\n navigationZone={navigationZone}\n contextResourceIdentifiers={contextResourceIdentifiers}\n />\n </div>\n );\n}\n\nfunction buildResourceOwnedViewEmbedConfigurationError(\n message: string,\n context?: Record<string, unknown>,\n): Error {\n return FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.CONFIGURATION,\n {\n component: 'ResourceOwnedViewEmbeds',\n message,\n ...context,\n },\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ResourceOwnedViewEmbeds.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceOwnedViewEmbeds.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,2BAA2B,GAE5B,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,GACnC,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,sCAAsC,GACvC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,sCAAsC,GACvC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uEAAuE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AQ,CAAC,eAAe,EACjC,cAAc,EAAE,SAAS,EACzB,iBAAiB,EAAE,oCAAoC,CAAC;oBACtD,QAAQ;oBACR,SAAS;oBACT,0BAA0B;iBAC3B,CAAC,EACF,0BAA0B,EAAE,0BAA0B,EACtD,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc;gBAC9B,wEAAwE;gBACxE,cAAc,SACd,GACmB,GACnB,CACP,CAAC;AACJ,CAAC;AASD,MAAM,UAAU,+BAA+B,CAAC,EAC9C,eAAe,EACf,OAAO,EACP,cAAc,EACd,SAAS,GAC4B;IACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,OAAO,sCAAsC,CAAC,eAAe,CAAC,YAAY,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC,EAAE,CAAC,eAAe,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5C,MAAM,0BAA0B,GAAG,OAAO,CAAC,GAAG,EAAE;QAC9C,OAAO,uDAAuD,CAAC,eAAe,CAAC,CAAC;IAClF,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,CACL,cAAK,SAAS,EAAE,SAAS,YACvB,KAAC,aAAa,IACZ,OAAO,EAAE,QAAQ,CAAC,eAAe,EACjC,cAAc,EAAE,cAAc,EAC9B,0BAA0B,EAAE,0BAA0B,EACtD,uBAAuB,EAAE,gCAAgC,CAAC,IAAI,GAC9D,GACE,CACP,CAAC;AACJ,CAAC;AAED,SAAS,6CAA6C,CACpD,OAAe,EACf,OAAiC;IAEjC,OAAO,qBAAqB,CAAC,uBAAuB,CAClD,2BAA2B,CAAC,aAAa,EACzC;QACE,SAAS,EAAE,yBAAyB;QACpC,OAAO;QACP,GAAG,OAAO;KACX,CACF,CAAC;AACJ,CAAC","sourcesContent":["import React, { useMemo } from 'react';\n\nimport {\n ErrorCustomMessageReference,\n type ChartInputValues,\n} from '@wildo-ai/saas-models';\nimport type {\n NavigationInitiatorContext,\n NavigationZone,\n} from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport type {\n FrontendResourceOperationContext,\n} from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport {\n buildResolvedInsertedChartDescriptor,\n buildResourceInsertedChartIdentity,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport {\n buildResourceInsertedCompositeIdentity,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport {\n buildResourceInsertedExecutionIdentity,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport { RequiredFeaturesGate } from '~wildo-frontend-lib/core/features/RequiredFeaturesGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\nimport { CHART_VIEW_DEFAULT_HEIGHT } from '~wildo-frontend-lib/components/views/chart-view/chart-view-defaults';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\n// ChartView MUST come from the `.lazy` wrapper — a static import of the real\n// module merges the whole ECharts payload into the entry chunk (Rollup merges\n// a module that is both statically and dynamically imported; no warning).\nimport { ChartView } from '~wildo-frontend-lib/components/views/chart-view/ChartView.lazy';\nimport { ChartReadDecision, useChartReadDecision } from '~wildo-frontend-lib/core/navigation/useChartReadDecision';\nimport { ExecutionView } from '~wildo-frontend-lib/components/views/execution-view/ExecutionView';\n\nimport { normalizeInsertedResourceViewContextResourceIdentifiers } from './inserted-resource-view.frontend.utils';\n\nexport interface EmbedResourceOwnedCompositeViewProps {\n resourceContext: FrontendResourceOperationContext;\n viewRef: string;\n navigationZone?: NavigationZone;\n navigationInitiator?: NavigationInitiatorContext;\n}\n\n/**\n * Embed a resource-owned composite view from an operation/custom host.\n *\n * Custom operation hosts should not have to hand-author inserted-view identity\n * strings or re-normalize semantic operation context into plain view context\n * ids. This helper keeps that bridge explicit but ergonomic.\n */\nexport function EmbedResourceOwnedCompositeView({\n resourceContext,\n viewRef,\n navigationZone,\n navigationInitiator,\n}: EmbedResourceOwnedCompositeViewProps): React.JSX.Element {\n const insertedIdentity = useMemo(() => {\n return buildResourceInsertedCompositeIdentity(resourceContext.resourceType, { ref: viewRef });\n }, [resourceContext.resourceType, viewRef]);\n\n const contextResourceIdentifiers = useMemo(() => {\n return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);\n }, [resourceContext]);\n\n return (\n <CompositeView\n viewRef={insertedIdentity.insertedViewRef}\n featureGatePresentation={RequiredFeaturesGatePresentation.TILE}\n contextResourceIdentifiers={contextResourceIdentifiers}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n );\n}\n\nexport interface EmbedResourceOwnedChartViewProps {\n resourceContext: FrontendResourceOperationContext;\n viewRef: string;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n className?: string;\n}\n\nexport function EmbedResourceOwnedChartView({\n resourceContext,\n viewRef,\n inputs,\n urlParamValues,\n className,\n}: EmbedResourceOwnedChartViewProps): React.JSX.Element | null {\n const { registry } = useResourceRegistry();\n const identity = useMemo(() => {\n return buildResourceInsertedChartIdentity(resourceContext.resourceType, { ref: viewRef });\n }, [resourceContext.resourceType, viewRef]);\n const contextResourceIdentifiers = useMemo(() => {\n return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);\n }, [resourceContext]);\n const chartView = registry.resourceConfigurations[resourceContext.resourceType]\n ?.frontendConfiguration\n ?.chartViews\n ?.find((candidate) => candidate.ref === viewRef);\n // #4252: a chart the backend's chart gate would refuse this viewer is not drawn (nor while their roles load).\n const readDecision = useChartReadDecision(chartView?.chartDefinition);\n if (!chartView) {\n throw buildResourceOwnedViewEmbedConfigurationError(\n `Cannot resolve resource-owned chart view \"${viewRef}\" on resource \"${resourceContext.resourceType}\".`,\n {\n resourceType: resourceContext.resourceType,\n viewRef,\n },\n );\n }\n if (readDecision !== ChartReadDecision.ALLOWED) return null;\n\n return (\n <div className={className}>\n <RequiredFeaturesGate requiredFeatures={chartView.chartDefinition.requiredFeatures} presentation={RequiredFeaturesGatePresentation.TILE} lockedTileHeight={CHART_VIEW_DEFAULT_HEIGHT}>\n <ChartView\n viewRef={identity.insertedViewRef}\n viewDefinition={chartView}\n runtimeDescriptor={buildResolvedInsertedChartDescriptor({\n identity,\n chartView,\n contextResourceIdentifiers,\n })}\n contextResourceIdentifiers={contextResourceIdentifiers}\n inputs={inputs}\n urlParamValues={urlParamValues}\n // Resource-owned embedded chart → degrade locally, no page-level toast.\n localErrorOnly\n />\n </RequiredFeaturesGate>\n </div>\n );\n}\n\nexport interface EmbedResourceOwnedExecutionViewProps {\n resourceContext: FrontendResourceOperationContext;\n viewRef: string;\n navigationZone: NavigationZone;\n className?: string;\n}\n\nexport function EmbedResourceOwnedExecutionView({\n resourceContext,\n viewRef,\n navigationZone,\n className,\n}: EmbedResourceOwnedExecutionViewProps): React.JSX.Element {\n const identity = useMemo(() => {\n return buildResourceInsertedExecutionIdentity(resourceContext.resourceType, { ref: viewRef });\n }, [resourceContext.resourceType, viewRef]);\n const contextResourceIdentifiers = useMemo(() => {\n return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);\n }, [resourceContext]);\n\n return (\n <div className={className}>\n <ExecutionView\n viewRef={identity.insertedViewRef}\n navigationZone={navigationZone}\n contextResourceIdentifiers={contextResourceIdentifiers}\n featureGatePresentation={RequiredFeaturesGatePresentation.TILE}\n />\n </div>\n );\n}\n\nfunction buildResourceOwnedViewEmbedConfigurationError(\n message: string,\n context?: Record<string, unknown>,\n): Error {\n return FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.CONFIGURATION,\n {\n component: 'ResourceOwnedViewEmbeds',\n message,\n ...context,\n },\n );\n}\n"]}
|
|
@@ -46,7 +46,7 @@ export interface RelatedResourceSectionsProps {
|
|
|
46
46
|
* recurring todo's occurrences section appears only on a recurring todo. Inside a display template a
|
|
47
47
|
* constrained target waits for the row to load; with no display template there is no row to judge.
|
|
48
48
|
*
|
|
49
|
-
* Each collection lists the HOST RECORD's rows, never more
|
|
49
|
+
* Each collection lists the HOST RECORD's rows, never more: through a route naming the record (the runtime
|
|
50
50
|
* selects the route under the record when the page's context would not), else by pinning the edge's foreign key
|
|
51
51
|
* when the target's operation admits it as a filter. A target nothing can confine — no relationship to the host, a
|
|
52
52
|
* `viaForeignKey` naming no live edge, two edges and no choice — is omitted with a warning naming the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelatedResourceSections.js","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/RelatedResourceSections.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,8BAA8B,GAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAsB,MAAM,qCAAqC,CAAC;AAEhG,OAAO,EAAE,uBAAuB,EAAE,MAAM,iEAAiE,CAAC;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6EAA6E,CAAC;AACxH,OAAO,EAAE,6BAA6B,EAAyC,MAAM,kBAAkB,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,oEAAoE,CAAC;AACvH,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6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C,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,YAC7C,KAAC,6BAA6B,IAC5B,YAAY,EAAE,MAAM,CAAC,YAAY,EACjC,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,qBAAqB,CAAC,IAAI,EACjE,0BAA0B,EAAE,MAAM,CAAC,aAAa,GAChD,GACiC,CACtC;KACF,CAAC,CAAC,EACH,CAAC,UAAU,EAAE,eAAe,CAAC,CAC9B,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEvC;;;;;OAKG;IACH,MAAM,eAAe,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QACjD,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,IAAI,qBAAqB,CAAC,IAAI,CAAC;QACzE,OAAO,aAAa,KAAK,qBAAqB,CAAC,IAAI,IAAI,aAAa,KAAK,qBAAqB,CAAC,MAAM,CAAC;IACxG,CAAC,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,KAAC,uBAAuB,IAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACzH,OAAO,eAAe,CAAC,CAAC,CAAC,cAAW,CAAC,4BAA4B,CAAC,EAAE,IAAI,YAAK,SAAS,GAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5G,CAAC","sourcesContent":["'use client';\n\nimport { COLLECTION_SURFACE_ATTRIBUTE } from '~wildo-frontend-lib/components/resources/skeleton/DisplayLayout';\nimport React, { useMemo } from 'react';\n\nimport {\n CoreResourceOperation,\n Resources_SharedUtils,\n getChildDirectionRelationships,\n type ResourceConfiguration_ResourceRelationships,\n} from '@wildo-ai/saas-models';\nimport { FrontendComponentType, type SectionConfig } from '@wildo-ai/presets-components-models';\n\nimport { ContentSectionContainer } from '~wildo-frontend-lib/components/sections/ContentSectionContainer';\nimport { resolveResourceHeaderLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { SectionHostHeadingContext } from '~wildo-frontend-lib/components/resources/skeleton/SectionHostHeadingContext';\nimport { EmbedRelatedResourceOperation, type EmbedRelatedResourceEdgeSelector } from './ResourceEmbeds';\nimport { useClaimChildComposition } from './ComposedChildrenRegistry';\nimport { describeEmbedRefusal } from './related-collection-confinement.utils';\nimport { useOptionalCompositeResourceContext } from './useEmbeddedResourceContext';\nimport { useOptionalDisplayTemplateContext } from '~wildo-frontend-lib/components/data-display/DisplayTemplateContext';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\n/**\n * The standard child block — scoped to the children a view actually wants.\n *\n * ## Why this exists rather than \"compose it yourself\"\n *\n * Placing children in a template must not be harder than letting them compose\n * automatically, or authors will keep the automatic mode and the configuration\n * axis it needed. Doing it by hand means wiring `ContentSectionContainer`,\n * resolving each child's title through i18n, and threading the heading context —\n * three chances to get it subtly wrong, per surface.\n *\n * Worse, hand-wiring invites NAMED `<Section>`s, and a named section is a\n * THREE-PLACE obligation: the JSX name, the hand-authored `layout.refs.sections`\n * manifest, and a documented slot with `textSlots` in the resource specification.\n * Miss the third and `validateStructuralSlotDescriptions` THROWS at ESM import,\n * crash-looping the companion. This component takes each section's title from the\n * CHILD RESOURCE's own header label — the same source automatic composition uses\n * — so placing children adds no refs entry, no spec slot, and no new i18n key.\n *\n * ## What it means for composition ownership\n *\n * It renders through `EmbedRelatedResourceOperation`, so it registers placement:\n * a template using it owns the child region and the automatic block stands down.\n * That is the point — \"these children, in this order\" replaces \"all owned\n * children, minus a per-edge suppression flag on each one you did not want\".\n */\n/** @wildo_source:part:start saas.frontend.related-resource-sections facet:layer:frontend facet:family:component */\nexport interface RelatedResourceSectionTarget {\n /** Child resource type. */\n resourceType: string;\n /** Disambiguates WHICH edge when the host has several to this target. */\n viaForeignKey?: EmbedRelatedResourceEdgeSelector;\n /** Defaults to LIST — the collection case. Use READ for a 1:1 child. */\n operationLike?: CoreResourceOperation;\n}\n\nexport interface RelatedResourceSectionsProps {\n /**\n * Children to place, in render order. Order here replaces the old `orderIndex`.\n *\n * A target whose every edge from the host carries a relationship `discriminator` or `condition` the\n * DISPLAYED row does not satisfy is omitted, silently, exactly as automatic composition omits it: a\n * recurring todo's occurrences section appears only on a recurring todo. Inside a display template a\n * constrained target waits for the row to load; with no display template there is no row to judge.\n *\n * Each collection lists the HOST RECORD's rows, never more (#3072): through a route naming the record (the runtime\n * selects the route under the record when the page's context would not), else by pinning the edge's foreign key\n * when the target's operation admits it as a filter. A target nothing can confine — no relationship to the host, a\n * `viaForeignKey` naming no live edge, two edges and no choice — is omitted with a warning naming the\n * cause, rather than listing every row the reader may read.\n */\n targets: ReadonlyArray<RelatedResourceSectionTarget | string>;\n /** How the sections arrange — the real section vocabulary, not a serializable subset. */\n config: SectionConfig;\n className?: string;\n}\n/** @wildo_source:part:end saas.frontend.related-resource-sections */\n\n/**\n * Is a placed child ruled out by the HOST ROW itself — every edge from the host to it carrying a\n * relationship `discriminator` or `condition` the displayed row does not satisfy?\n *\n * The automatic composition (`ResourceLayout_ContainerNested`) has always asked this through\n * `isRelationshipActiveForParent`; a template placing the same child did not, so a discriminated\n * edge — Wonder Todos' recurring occurrences, which exist only for a RECURRING todo — rendered a tab\n * on every todo, and the backend refused its LIST for the ones it does not apply to (#1787). Same\n * predicate, same options, so the two composition paths cannot disagree about which children a row has.\n *\n * - `undefined` host row with no display template around the sections: nothing to judge, so no\n * opinion — a composite view placing children keeps the behaviour it had.\n * - `undefined` host row INSIDE a template: the row is still loading, and a constrained edge stays out\n * until it arrives (`onMissingParentResource: 'exclude'`), rather than flashing a tab it may retract.\n * - Conservative across edges: the child is ruled out only when EVERY edge to it is inactive. A target\n * narrowed by `viaForeignKey` to one of several edges is not judged per edge, which would need the\n * registry's field identifiers; no application has a discriminated edge beside a second one to the\n * same child, and this errs toward showing rather than hiding.\n */\nfunction isPlacedChildInactiveForHostRow(params: {\n hostResourceType: string;\n hostRelationships: ResourceConfiguration_ResourceRelationships | undefined;\n targetResourceType: string;\n hostRecord: Record<string, unknown> | undefined;\n}): boolean {\n if (!params.hostRelationships) {\n return false;\n }\n const edges = getChildDirectionRelationships(params.hostRelationships).filter((relationship) => {\n const childResourceType = relationship.resourceType1 === params.hostResourceType\n ? relationship.resourceType2\n : relationship.resourceType1;\n return childResourceType === params.targetResourceType;\n });\n return edges.length > 0 && edges.every((relationship) => !Resources_SharedUtils.isRelationshipActiveForParent(\n relationship,\n params.hostRecord,\n { onMissingParentResource: 'exclude', onConditionError: 'exclude' },\n ));\n}\n\n/** One warning per (host, target) — a surface re-renders freely. */\nconst warnedUnembeddableTargets = new Set<string>();\n\nfunction warnUnembeddableTarget(hostResourceType: string, targetResourceType: string, reason: string | undefined): void {\n const key = `${hostResourceType}::${targetResourceType}`;\n if (warnedUnembeddableTargets.has(key)) {\n return;\n }\n warnedUnembeddableTargets.add(key);\n LoggerFrontendService.getLogger().warn(\n `[related-resource-sections] \"${targetResourceType}\" was placed on \"${hostResourceType}\" but cannot be `\n + 'embedded here, so its section is omitted. Two causes are usual: the target exposes no ADDRESSABLE variant '\n + 'of the requested operation (a core verb declared REPOSITORY_ONLY or INTERNAL_CALL has no HTTP surface to '\n + 'embed), or nothing can confine its collection to this record — no route of it names the record and its '\n + 'operation admits no filter on the relationship\\'s foreign key, or no live relationship links the two, so it '\n + 'would list every row (#3072). '\n + (reason ? `Here: ${reason}` : 'Give the target an addressable variant, point `operationLike` at one it does expose, or stop placing it.'),\n );\n}\n\nexport function RelatedResourceSections({\n targets,\n config,\n className,\n}: RelatedResourceSectionsProps): React.JSX.Element | null {\n // Claim the region even when `targets` is empty: `targets={[]}` is how a\n // surface says \"composes no children\", which is a different statement from a\n // template that simply never mentioned them.\n useClaimChildComposition();\n\n const normalized = useMemo(\n () => targets.map((t) => (typeof t === 'string' ? { resourceType: t } : t)),\n [targets],\n );\n\n // OPTIONAL on purpose. `useEmbeddedResourceContext()` throws when there is no\n // resource-scoped host, which would make this component a NEW crash source for\n // any host that is not resource-scoped — the opposite of the fix. With no host\n // there is nothing to probe a target against, so filtering is simply skipped and\n // the embeds below fail as they always did.\n const embeddedContext = useOptionalCompositeResourceContext();\n const hostResourceType = embeddedContext?.hostResourceType ?? '';\n const hostRelationships = embeddedContext?.hostResourceConfig?.resourceRelationships;\n // The row this block sits under, when it sits inside a display template. See\n // `isPlacedChildInactiveForHostRow` for why \"no template\" and \"still loading\" differ.\n const displayTemplate = useOptionalDisplayTemplateContext();\n const hostRecord = displayTemplate?.data;\n\n // One i18n scope for the host; each section title is resolved per child below\n // from that child's own header label, which is what keeps this free of new keys.\n const { tResourceHeader, isReady } = useI18n({\n component: FrontendComponentType.RESOURCES_LAYOUTS_CONTAINER_NESTED,\n });\n\n // Drop targets this host cannot embed, rather than letting the first one take the\n // whole surface down. A target being un-embeddable is a NORMAL authorable state —\n // a resource may expose a core verb with no addressable HTTP variant (Wonder's\n // recurring occurrences declare LIST as INTERNAL_CALL only, deliberately) — and\n // the automatic container has always simply skipped such a child. The template\n // path threw instead, so ONE bad target rendered an error surface in place of the\n // entire page. Same shape as F7: one undisplayable child must not crash the parent.\n //\n // Skipped LOUDLY, not silently: the author named this target explicitly, so a\n // silent drop would be the \"dark capability\" failure this migration exists to end.\n const embeddable = useMemo(\n () => normalized.filter((target) => {\n if (!embeddedContext) {\n return true;\n }\n // A child the host ROW rules out is omitted SILENTLY: it is a declared condition doing its job,\n // not a misplaced target, so it earns no warning.\n if (displayTemplate && isPlacedChildInactiveForHostRow({\n hostResourceType,\n hostRelationships,\n targetResourceType: target.resourceType,\n hostRecord,\n })) {\n return false;\n }\n // The real build, attempted (what `canBuildOperationContext` does), so the warning can name WHY it refused.\n try {\n embeddedContext.buildOperationContext({\n resourceType: target.resourceType,\n operationLike: target.operationLike ?? CoreResourceOperation.LIST,\n relationshipFieldOverrides: target.viaForeignKey,\n });\n return true;\n } catch (error) {\n warnUnembeddableTarget(hostResourceType, target.resourceType, describeEmbedRefusal(error));\n return false;\n }\n }),\n [normalized, embeddedContext, hostResourceType, hostRelationships, displayTemplate, hostRecord],\n );\n\n const sections = useMemo(\n () => embeddable.map((target) => ({\n id: target.resourceType,\n title: resolveResourceHeaderLabel({\n tResourceHeader,\n resourceType: target.resourceType,\n key: 'title',\n }),\n content: (\n // The host renders the visible heading for the region, so the embedded\n // surface must not stack its own page chrome underneath it.\n <SectionHostHeadingContext.Provider value={true}>\n <EmbedRelatedResourceOperation\n resourceType={target.resourceType}\n operationLike={target.operationLike ?? CoreResourceOperation.LIST}\n relationshipFieldOverrides={target.viaForeignKey}\n />\n </SectionHostHeadingContext.Provider>\n ),\n })),\n [embeddable, tResourceHeader],\n );\n\n if (sections.length === 0) return null;\n\n /*\n * A block of related COLLECTIONS is a collection surface itself, so a record body holding it takes the page's width\n * (`DisplayLayout`'s derived width). Marked here rather than only inside each list: from the first paint (the lists\n * render once their labels load), and whichever tab is open, so switching to a tab that holds no list cannot flip\n * the width of the page around it.\n */\n const holdsCollection = embeddable.some((target) => {\n const operationLike = target.operationLike ?? CoreResourceOperation.LIST;\n return operationLike === CoreResourceOperation.LIST || operationLike === CoreResourceOperation.SEARCH;\n });\n const container = isReady ? <ContentSectionContainer sections={sections} config={config} className={className} /> : null;\n return holdsCollection ? <div {...{ [COLLECTION_SURFACE_ATTRIBUTE]: true }}>{container}</div> : container;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"RelatedResourceSections.js","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/RelatedResourceSections.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,8BAA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C,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,KAAC,uBAAuB,IAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACzH,OAAO,eAAe,CAAC,CAAC,CAAC,cAAW,CAAC,4BAA4B,CAAC,EAAE,IAAI,YAAK,SAAS,GAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5G,CAAC","sourcesContent":["'use client';\n\nimport { COLLECTION_SURFACE_ATTRIBUTE } from '~wildo-frontend-lib/components/resources/skeleton/DisplayLayout';\nimport React, { useMemo } from 'react';\n\nimport {\n CoreResourceOperation,\n Resources_SharedUtils,\n getChildDirectionRelationships,\n type ResourceConfiguration_ResourceRelationships,\n} from '@wildo-ai/saas-models';\nimport { FrontendComponentType, type SectionConfig } from '@wildo-ai/presets-components-models';\n\nimport { ContentSectionContainer } from '~wildo-frontend-lib/components/sections/ContentSectionContainer';\nimport { resolveResourceHeaderLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { SectionHostHeadingContext } from '~wildo-frontend-lib/components/resources/skeleton/SectionHostHeadingContext';\nimport { EmbedRelatedResourceOperation, type EmbedRelatedResourceEdgeSelector } from './ResourceEmbeds';\nimport { useClaimChildComposition } from './ComposedChildrenRegistry';\nimport { describeEmbedRefusal } from './related-collection-confinement.utils';\nimport { useOptionalCompositeResourceContext } from './useEmbeddedResourceContext';\nimport { useOptionalDisplayTemplateContext } from '~wildo-frontend-lib/components/data-display/DisplayTemplateContext';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\n/**\n * The standard child block — scoped to the children a view actually wants.\n *\n * ## Why this exists rather than \"compose it yourself\"\n *\n * Placing children in a template must not be harder than letting them compose\n * automatically, or authors will keep the automatic mode and the configuration\n * axis it needed. Doing it by hand means wiring `ContentSectionContainer`,\n * resolving each child's title through i18n, and threading the heading context —\n * three chances to get it subtly wrong, per surface.\n *\n * Worse, hand-wiring invites NAMED `<Section>`s, and a named section is a\n * THREE-PLACE obligation: the JSX name, the hand-authored `layout.refs.sections`\n * manifest, and a documented slot with `textSlots` in the resource specification.\n * Miss the third and `validateStructuralSlotDescriptions` THROWS at ESM import,\n * crash-looping the companion. This component takes each section's title from the\n * CHILD RESOURCE's own header label — the same source automatic composition uses\n * — so placing children adds no refs entry, no spec slot, and no new i18n key.\n *\n * ## What it means for composition ownership\n *\n * It renders through `EmbedRelatedResourceOperation`, so it registers placement:\n * a template using it owns the child region and the automatic block stands down.\n * That is the point — \"these children, in this order\" replaces \"all owned\n * children, minus a per-edge suppression flag on each one you did not want\".\n */\n/** @wildo_source:part:start saas.frontend.related-resource-sections facet:layer:frontend facet:family:component */\nexport interface RelatedResourceSectionTarget {\n /** Child resource type. */\n resourceType: string;\n /** Disambiguates WHICH edge when the host has several to this target. */\n viaForeignKey?: EmbedRelatedResourceEdgeSelector;\n /** Defaults to LIST — the collection case. Use READ for a 1:1 child. */\n operationLike?: CoreResourceOperation;\n}\n\nexport interface RelatedResourceSectionsProps {\n /**\n * Children to place, in render order. Order here replaces the old `orderIndex`.\n *\n * A target whose every edge from the host carries a relationship `discriminator` or `condition` the\n * DISPLAYED row does not satisfy is omitted, silently, exactly as automatic composition omits it: a\n * recurring todo's occurrences section appears only on a recurring todo. Inside a display template a\n * constrained target waits for the row to load; with no display template there is no row to judge.\n *\n * Each collection lists the HOST RECORD's rows, never more: through a route naming the record (the runtime\n * selects the route under the record when the page's context would not), else by pinning the edge's foreign key\n * when the target's operation admits it as a filter. A target nothing can confine — no relationship to the host, a\n * `viaForeignKey` naming no live edge, two edges and no choice — is omitted with a warning naming the\n * cause, rather than listing every row the reader may read.\n */\n targets: ReadonlyArray<RelatedResourceSectionTarget | string>;\n /** How the sections arrange — the real section vocabulary, not a serializable subset. */\n config: SectionConfig;\n className?: string;\n}\n/** @wildo_source:part:end saas.frontend.related-resource-sections */\n\n/**\n * Is a placed child ruled out by the HOST ROW itself — every edge from the host to it carrying a\n * relationship `discriminator` or `condition` the displayed row does not satisfy?\n *\n * The automatic composition (`ResourceLayout_ContainerNested`) has always asked this through\n * `isRelationshipActiveForParent`; a template placing the same child did not, so a discriminated\n * edge — Wonder Todos' recurring occurrences, which exist only for a RECURRING todo — rendered a tab\n * on every todo, and the backend refused its LIST for the ones it does not apply to (#1787). Same\n * predicate, same options, so the two composition paths cannot disagree about which children a row has.\n *\n * - `undefined` host row with no display template around the sections: nothing to judge, so no\n * opinion — a composite view placing children keeps the behaviour it had.\n * - `undefined` host row INSIDE a template: the row is still loading, and a constrained edge stays out\n * until it arrives (`onMissingParentResource: 'exclude'`), rather than flashing a tab it may retract.\n * - Conservative across edges: the child is ruled out only when EVERY edge to it is inactive. A target\n * narrowed by `viaForeignKey` to one of several edges is not judged per edge, which would need the\n * registry's field identifiers; no application has a discriminated edge beside a second one to the\n * same child, and this errs toward showing rather than hiding.\n */\nfunction isPlacedChildInactiveForHostRow(params: {\n hostResourceType: string;\n hostRelationships: ResourceConfiguration_ResourceRelationships | undefined;\n targetResourceType: string;\n hostRecord: Record<string, unknown> | undefined;\n}): boolean {\n if (!params.hostRelationships) {\n return false;\n }\n const edges = getChildDirectionRelationships(params.hostRelationships).filter((relationship) => {\n const childResourceType = relationship.resourceType1 === params.hostResourceType\n ? relationship.resourceType2\n : relationship.resourceType1;\n return childResourceType === params.targetResourceType;\n });\n return edges.length > 0 && edges.every((relationship) => !Resources_SharedUtils.isRelationshipActiveForParent(\n relationship,\n params.hostRecord,\n { onMissingParentResource: 'exclude', onConditionError: 'exclude' },\n ));\n}\n\n/** One warning per (host, target) — a surface re-renders freely. */\nconst warnedUnembeddableTargets = new Set<string>();\n\nfunction warnUnembeddableTarget(hostResourceType: string, targetResourceType: string, reason: string | undefined): void {\n const key = `${hostResourceType}::${targetResourceType}`;\n if (warnedUnembeddableTargets.has(key)) {\n return;\n }\n warnedUnembeddableTargets.add(key);\n LoggerFrontendService.getLogger().warn(\n `[related-resource-sections] \"${targetResourceType}\" was placed on \"${hostResourceType}\" but cannot be `\n + 'embedded here, so its section is omitted. Two causes are usual: the target exposes no ADDRESSABLE variant '\n + 'of the requested operation (a core verb declared REPOSITORY_ONLY or INTERNAL_CALL has no HTTP surface to '\n + 'embed), or nothing can confine its collection to this record — no route of it names the record and its '\n + 'operation admits no filter on the relationship\\'s foreign key, or no live relationship links the two, so it '\n + 'would list every row (#3072). '\n + (reason ? `Here: ${reason}` : 'Give the target an addressable variant, point `operationLike` at one it does expose, or stop placing it.'),\n );\n}\n\nexport function RelatedResourceSections({\n targets,\n config,\n className,\n}: RelatedResourceSectionsProps): React.JSX.Element | null {\n // Claim the region even when `targets` is empty: `targets={[]}` is how a\n // surface says \"composes no children\", which is a different statement from a\n // template that simply never mentioned them.\n useClaimChildComposition();\n\n const normalized = useMemo(\n () => targets.map((t) => (typeof t === 'string' ? { resourceType: t } : t)),\n [targets],\n );\n\n // OPTIONAL on purpose. `useEmbeddedResourceContext()` throws when there is no\n // resource-scoped host, which would make this component a NEW crash source for\n // any host that is not resource-scoped — the opposite of the fix. With no host\n // there is nothing to probe a target against, so filtering is simply skipped and\n // the embeds below fail as they always did.\n const embeddedContext = useOptionalCompositeResourceContext();\n const hostResourceType = embeddedContext?.hostResourceType ?? '';\n const hostRelationships = embeddedContext?.hostResourceConfig?.resourceRelationships;\n // The row this block sits under, when it sits inside a display template. See\n // `isPlacedChildInactiveForHostRow` for why \"no template\" and \"still loading\" differ.\n const displayTemplate = useOptionalDisplayTemplateContext();\n const hostRecord = displayTemplate?.data;\n\n // One i18n scope for the host; each section title is resolved per child below\n // from that child's own header label, which is what keeps this free of new keys.\n const { tResourceHeader, isReady } = useI18n({\n component: FrontendComponentType.RESOURCES_LAYOUTS_CONTAINER_NESTED,\n });\n\n // Drop targets this host cannot embed, rather than letting the first one take the\n // whole surface down. A target being un-embeddable is a NORMAL authorable state —\n // a resource may expose a core verb with no addressable HTTP variant (Wonder's\n // recurring occurrences declare LIST as INTERNAL_CALL only, deliberately) — and\n // the automatic container has always simply skipped such a child. The template\n // path threw instead, so ONE bad target rendered an error surface in place of the\n // entire page. Same shape as F7: one undisplayable child must not crash the parent.\n //\n // Skipped LOUDLY, not silently: the author named this target explicitly, so a\n // silent drop would be the \"dark capability\" failure this migration exists to end.\n const embeddable = useMemo(\n () => normalized.filter((target) => {\n if (!embeddedContext) {\n return true;\n }\n // A child the host ROW rules out is omitted SILENTLY: it is a declared condition doing its job,\n // not a misplaced target, so it earns no warning.\n if (displayTemplate && isPlacedChildInactiveForHostRow({\n hostResourceType,\n hostRelationships,\n targetResourceType: target.resourceType,\n hostRecord,\n })) {\n return false;\n }\n // The real build, attempted (what `canBuildOperationContext` does), so the warning can name WHY it refused.\n try {\n embeddedContext.buildOperationContext({\n resourceType: target.resourceType,\n operationLike: target.operationLike ?? CoreResourceOperation.LIST,\n relationshipFieldOverrides: target.viaForeignKey,\n });\n return true;\n } catch (error) {\n warnUnembeddableTarget(hostResourceType, target.resourceType, describeEmbedRefusal(error));\n return false;\n }\n }),\n [normalized, embeddedContext, hostResourceType, hostRelationships, displayTemplate, hostRecord],\n );\n\n const sections = useMemo(\n () => embeddable.map((target) => ({\n id: target.resourceType,\n title: resolveResourceHeaderLabel({\n tResourceHeader,\n resourceType: target.resourceType,\n key: 'title',\n }),\n content: (\n // The host renders the visible heading for the region, so the embedded\n // surface must not stack its own page chrome underneath it.\n <SectionHostHeadingContext.Provider value={true}>\n <EmbedRelatedResourceOperation\n resourceType={target.resourceType}\n operationLike={target.operationLike ?? CoreResourceOperation.LIST}\n relationshipFieldOverrides={target.viaForeignKey}\n />\n </SectionHostHeadingContext.Provider>\n ),\n })),\n [embeddable, tResourceHeader],\n );\n\n if (sections.length === 0) return null;\n\n /*\n * A block of related COLLECTIONS is a collection surface itself, so a record body holding it takes the page's width\n * (`DisplayLayout`'s derived width). Marked here rather than only inside each list: from the first paint (the lists\n * render once their labels load), and whichever tab is open, so switching to a tab that holds no list cannot flip\n * the width of the page around it.\n */\n const holdsCollection = embeddable.some((target) => {\n const operationLike = target.operationLike ?? CoreResourceOperation.LIST;\n return operationLike === CoreResourceOperation.LIST || operationLike === CoreResourceOperation.SEARCH;\n });\n const container = isReady ? <ContentSectionContainer sections={sections} config={config} className={className} /> : null;\n return holdsCollection ? <div {...{ [COLLECTION_SURFACE_ATTRIBUTE]: true }}>{container}</div> : container;\n}\n"]}
|
|
@@ -104,7 +104,7 @@ export interface EmbedLinkedConversationsProps {
|
|
|
104
104
|
className?: string;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
|
-
* The conversations linked to the host record
|
|
107
|
+
* The conversations linked to the host record — email threads an inbound channel handler tied to this
|
|
108
108
|
* record with `ctx.thread.link`, newest first. Each opens to its messages in both directions, and an organization
|
|
109
109
|
* administrator can close it.
|
|
110
110
|
*
|
|
@@ -129,7 +129,7 @@ export interface EmbedExecutionDecisionsProps {
|
|
|
129
129
|
className?: string;
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
|
-
* The decisions a conversational run raised and how each was answered
|
|
132
|
+
* The decisions a conversational run raised and how each was answered: who decided, what they decided, what
|
|
133
133
|
* they changed and why — the scope's agent-work decisions LIST, pinned to this run through `pinnedFilters`, so the
|
|
134
134
|
* reader cannot widen it to another run, and it shows only what their roles may read (the scope's administrator).
|
|
135
135
|
*
|
|
@@ -137,7 +137,7 @@ export interface EmbedExecutionDecisionsProps {
|
|
|
137
137
|
*/
|
|
138
138
|
export declare function EmbedExecutionDecisions({ executionId, className }: EmbedExecutionDecisionsProps): React.JSX.Element;
|
|
139
139
|
/**
|
|
140
|
-
* May this viewer run the LIST of `resourceType` from the host record
|
|
140
|
+
* May this viewer run the LIST of `resourceType` from the host record? The roles the LIST declares, asked the way
|
|
141
141
|
* the shell asks of any operation it offers (`viewerMayPerformOperation`). For a host that draws a titled section around
|
|
142
142
|
* an embed: a section whose list the viewer may not read is not drawn at all, rather than as an empty heading or an
|
|
143
143
|
* error. Presentation only: the backend still decides every request.
|
|
@@ -155,7 +155,7 @@ export interface EmbedRepresentationTeamProps {
|
|
|
155
155
|
className?: string;
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
* The team serving one client relationship
|
|
158
|
+
* The team serving one client relationship: the `representativeAssignments` LIST, pinned to that relationship
|
|
159
159
|
* through `pinnedFilters`, with its assign and unassign verbs. Assigning from here names the relationship by itself: the
|
|
160
160
|
* embed's context carries the host relationship, and the assign form fills `organizationRepresentationId` from it
|
|
161
161
|
* (`resolveSemanticContextFieldValues`, pinned against the real configuration by
|
|
@@ -172,7 +172,7 @@ export interface EmbedRepresentationMailboxesProps {
|
|
|
172
172
|
className?: string;
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
|
-
* The mailboxes of one client relationship
|
|
175
|
+
* The mailboxes of one client relationship: the `relationshipMailboxes` LIST, pinned to that relationship
|
|
176
176
|
* through `pinnedFilters`. Shown to a viewer the LIST admits.
|
|
177
177
|
*/
|
|
178
178
|
export declare function EmbedRepresentationMailboxes({ organizationRelationshipId, className }: EmbedRepresentationMailboxesProps): React.JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceEmbeds.d.ts","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/ResourceEmbeds.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAUL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"ResourceEmbeds.d.ts","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/ResourceEmbeds.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAUL,KAAK,gBAAgB,EACtB,MAAM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Q,+BAA+B;IAC7E,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,MAAM,EACN,cAAc,EACd,SAAS,EACT,GAAG,MAAM,EACV,EAAE,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA0BzC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,OAAO,EACP,MAAM,EACN,cAAc,EACd,SAAS,EACT,GAAG,MAAM,EACV,EAAE,sBAAsB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAoC5C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,SAAS,EACT,GAAG,MAAM,EACV,EAAE,uBAAuB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA6B7C;AAED,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,OAAO,EACP,SAAS,EACT,GAAG,MAAM,EACV,EAAE,0BAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA4BhD"}
|
|
@@ -8,13 +8,15 @@ import { resolveRelationshipNestedReadSurface } from '../../../core/resources/re
|
|
|
8
8
|
// module merges the whole ECharts payload into the entry chunk (Rollup merges
|
|
9
9
|
// a module that is both statically and dynamically imported; no warning).
|
|
10
10
|
import { ChartView } from '../../../components/views/chart-view/ChartView.lazy.js';
|
|
11
|
+
import { ChartReadDecision, useChartReadDecision } from '../../../core/navigation/useChartReadDecision.js';
|
|
11
12
|
import { ExecutionView } from '../../../components/views/execution-view/ExecutionView.js';
|
|
12
13
|
import { OnboardingView } from '../../../components/views/onboarding-view/OnboardingView.js';
|
|
13
14
|
import { ResourceOperationSurface } from '../../../components/resources/ResourceOperationSurface.js';
|
|
14
15
|
import { FrontendResourceUtils } from '../../../core/resources/frontend-resource.utils.js';
|
|
15
16
|
import { buildResourceInsertedExecutionIdentity } from '../../../core/config/execution-view.schemas.js';
|
|
16
17
|
import { buildResolvedInsertedChartDescriptor, buildResourceInsertedChartIdentity, } from '../../../core/config/chart-view.frontend.schemas.js';
|
|
17
|
-
import {
|
|
18
|
+
import { RequiredFeaturesGate } from '../../../core/features/RequiredFeaturesGate.js';
|
|
19
|
+
import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation.js';
|
|
18
20
|
import { SectionHostHeadingContext } from '../../../components/resources/skeleton/SectionHostHeadingContext.js';
|
|
19
21
|
import { EmbeddedResourceDescentBoundary } from './EmbeddedResourceDescent.js';
|
|
20
22
|
import { useRegisterComposedChild } from './ComposedChildrenRegistry.js';
|
|
@@ -31,14 +33,19 @@ function EmbeddedChartRenderer(params) {
|
|
|
31
33
|
?.frontendConfiguration
|
|
32
34
|
?.chartViews
|
|
33
35
|
?.find((candidate) => candidate.ref === params.viewRef);
|
|
36
|
+
// #4252: a chart the backend's chart gate would refuse this viewer is not drawn (nor while their roles load). A
|
|
37
|
+
// dashboard tile is decided once more here, with the same answer.
|
|
38
|
+
const readDecision = useChartReadDecision(chartView?.chartDefinition);
|
|
34
39
|
if (!chartView) {
|
|
35
40
|
throw buildResourceEmbedConfigurationError(`Composite chart runtime cannot resolve chart view "${params.viewRef}" on resource "${params.resourceType}".`, {
|
|
36
41
|
resourceType: params.resourceType,
|
|
37
42
|
viewRef: params.viewRef,
|
|
38
43
|
});
|
|
39
44
|
}
|
|
45
|
+
if (readDecision !== ChartReadDecision.ALLOWED)
|
|
46
|
+
return null;
|
|
40
47
|
const identity = buildResourceInsertedChartIdentity(params.resourceType, { ref: params.viewRef });
|
|
41
|
-
return (_jsx("div", { className: params.className, children: _jsx(
|
|
48
|
+
return (_jsx("div", { className: params.className, children: _jsx(RequiredFeaturesGate, { requiredFeatures: chartView.chartDefinition.requiredFeatures, presentation: RequiredFeaturesGatePresentation.TILE, lockedTileHeight: params.height ?? undefined, children: _jsx(ChartView, { viewRef: identity.insertedViewRef, viewDefinition: chartView, runtimeDescriptor: buildResolvedInsertedChartDescriptor({
|
|
42
49
|
identity,
|
|
43
50
|
chartView,
|
|
44
51
|
contextResourceIdentifiers: params.contextResourceIdentifiers ?? {},
|
|
@@ -67,10 +74,10 @@ export function EmbedComposite({ viewRef, className, }) {
|
|
|
67
74
|
const hostRow = host?.hostResourceType
|
|
68
75
|
? host.contextResourceIdentifiers?.[host.hostResourceType] ?? 'no-row'
|
|
69
76
|
: 'no-host';
|
|
70
|
-
return (_jsx("div", { className: className, children: _jsx(EmbeddedResourceDescentBoundary, { descentKey: `composite:${viewRef}::${hostRow}`, children: _jsx(CompositeView, { viewRef: viewRef }) }) }));
|
|
77
|
+
return (_jsx("div", { className: className, children: _jsx(EmbeddedResourceDescentBoundary, { descentKey: `composite:${viewRef}::${hostRow}`, children: _jsx(CompositeView, { viewRef: viewRef, featureGatePresentation: RequiredFeaturesGatePresentation.TILE }) }) }));
|
|
71
78
|
}
|
|
72
79
|
function renderEmbeddedExecution(viewRef, navigationZone, contextResourceIdentifiers, className) {
|
|
73
|
-
return (_jsx("div", { className: className, children: _jsx(EmbeddedResourceDescentBoundary, { descentKey: `execution:${viewRef}::${Object.values(contextResourceIdentifiers ?? {}).join(',') || 'no-row'}`, children: _jsx(ExecutionView, { viewRef: viewRef, navigationZone: navigationZone, contextResourceIdentifiers: contextResourceIdentifiers }) }) }));
|
|
80
|
+
return (_jsx("div", { className: className, children: _jsx(EmbeddedResourceDescentBoundary, { descentKey: `execution:${viewRef}::${Object.values(contextResourceIdentifiers ?? {}).join(',') || 'no-row'}`, children: _jsx(ExecutionView, { viewRef: viewRef, navigationZone: navigationZone, contextResourceIdentifiers: contextResourceIdentifiers, featureGatePresentation: RequiredFeaturesGatePresentation.TILE }) }) }));
|
|
74
81
|
}
|
|
75
82
|
export function EmbedExecution({ viewRef, contextResourceIdentifiers, className, }) {
|
|
76
83
|
const compositeContext = useEmbeddedResourceHostContext();
|
|
@@ -204,7 +211,7 @@ export function EmbedRelatedResourceList({ resourceType, viaForeignKey, classNam
|
|
|
204
211
|
return (_jsx(EmbedRelatedResourceOperation, { resourceType: resourceType, operationLike: CoreResourceOperation.LIST, relationshipFieldOverrides: viaForeignKey, className: className }));
|
|
205
212
|
}
|
|
206
213
|
/**
|
|
207
|
-
* The conversations linked to the host record
|
|
214
|
+
* The conversations linked to the host record — email threads an inbound channel handler tied to this
|
|
208
215
|
* record with `ctx.thread.link`, newest first. Each opens to its messages in both directions, and an organization
|
|
209
216
|
* administrator can close it.
|
|
210
217
|
*
|
|
@@ -227,7 +234,7 @@ export function EmbedLinkedConversations({ className }) {
|
|
|
227
234
|
if (!hostResourceId) {
|
|
228
235
|
throw buildResourceEmbedConfigurationError('EmbedLinkedConversations() needs a host RECORD: place it on a READ surface, where the record it lists conversations for exists.', { hostResourceType });
|
|
229
236
|
}
|
|
230
|
-
// Threads are linked by type and id, not by a relationship, so this embed confines them itself
|
|
237
|
+
// Threads are linked by type and id, not by a relationship, so this embed confines them itself.
|
|
231
238
|
return compositeResourceContext.buildOperationContext({
|
|
232
239
|
resourceType: CoreResourceType.CONVERSATION_THREADS,
|
|
233
240
|
operationLike: CoreResourceOperation.LIST,
|
|
@@ -243,7 +250,7 @@ export function EmbedLinkedConversations({ className }) {
|
|
|
243
250
|
/** @wildo_source:part:end saas.frontend.linked-conversations-embed */
|
|
244
251
|
/**
|
|
245
252
|
* Where the decisions a conversational run raised are recorded: in the scope of the run they paused, so the store is a
|
|
246
|
-
* function of the run's own variant (
|
|
253
|
+
* function of the run's own variant (`agentWorkDecisions`).
|
|
247
254
|
*/
|
|
248
255
|
const DECISIONS_OF_CONVERSATIONAL_RUN = {
|
|
249
256
|
[CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.USER_AGENT_WORK_DECISIONS,
|
|
@@ -251,7 +258,7 @@ const DECISIONS_OF_CONVERSATIONAL_RUN = {
|
|
|
251
258
|
[CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.APPLICATION_AGENT_WORK_DECISIONS,
|
|
252
259
|
};
|
|
253
260
|
/**
|
|
254
|
-
* The decisions a conversational run raised and how each was answered
|
|
261
|
+
* The decisions a conversational run raised and how each was answered: who decided, what they decided, what
|
|
255
262
|
* they changed and why — the scope's agent-work decisions LIST, pinned to this run through `pinnedFilters`, so the
|
|
256
263
|
* reader cannot widen it to another run, and it shows only what their roles may read (the scope's administrator).
|
|
257
264
|
*
|
|
@@ -266,7 +273,7 @@ export function EmbedExecutionDecisions({ executionId, className }) {
|
|
|
266
273
|
if (!decisionsResourceType) {
|
|
267
274
|
throw buildResourceEmbedConfigurationError('EmbedExecutionDecisions() lists the decisions of a conversational RUN: place it on a flowActorExecutions READ surface.', { hostResourceType });
|
|
268
275
|
}
|
|
269
|
-
// A decision names its run by reference, not by a relationship, so this embed confines them itself
|
|
276
|
+
// A decision names its run by reference, not by a relationship, so this embed confines them itself.
|
|
270
277
|
return compositeResourceContext.buildOperationContext({
|
|
271
278
|
resourceType: decisionsResourceType,
|
|
272
279
|
operationLike: CoreResourceOperation.LIST,
|
|
@@ -290,7 +297,7 @@ function warnUnlistableRelatedResource(hostResourceType, resourceType, reason) {
|
|
|
290
297
|
+ `asking whether the viewer may read it is not drawn.${reason ? ` ${reason}` : ''}`);
|
|
291
298
|
}
|
|
292
299
|
/**
|
|
293
|
-
* May this viewer run the LIST of `resourceType` from the host record
|
|
300
|
+
* May this viewer run the LIST of `resourceType` from the host record? The roles the LIST declares, asked the way
|
|
294
301
|
* the shell asks of any operation it offers (`viewerMayPerformOperation`). For a host that draws a titled section around
|
|
295
302
|
* an embed: a section whose list the viewer may not read is not drawn at all, rather than as an empty heading or an
|
|
296
303
|
* error. Presentation only: the backend still decides every request.
|
|
@@ -308,7 +315,7 @@ pinnedFilters) {
|
|
|
308
315
|
return useMemo(() => {
|
|
309
316
|
if (pinnedFilters === null)
|
|
310
317
|
return false;
|
|
311
|
-
// A LIST that cannot be embedded on this host — one nothing could confine to the host record
|
|
318
|
+
// A LIST that cannot be embedded on this host — one nothing could confine to the host record — is one the
|
|
312
319
|
// viewer cannot read HERE, whatever their roles: answered `false` rather than thrown from a hook that only asks.
|
|
313
320
|
let list;
|
|
314
321
|
try {
|
|
@@ -324,7 +331,7 @@ pinnedFilters) {
|
|
|
324
331
|
}, [compositeResourceContext, resourceType, viewer, pinKey, pinnedFilters === null]);
|
|
325
332
|
}
|
|
326
333
|
/**
|
|
327
|
-
* One LIST pinned to the host relationship, shown only to a viewer the LIST admits
|
|
334
|
+
* One LIST pinned to the host relationship, shown only to a viewer the LIST admits.
|
|
328
335
|
*
|
|
329
336
|
* The client page is read by the firm's members as well as its administrators, and a section they cannot read must not
|
|
330
337
|
* appear as an error in the middle of the page: a list the viewer may not run is not drawn at all. Presentation only:
|
|
@@ -349,7 +356,7 @@ function useRepresentationPinnedList(params) {
|
|
|
349
356
|
}, [compositeResourceContext, hostResourceType, viewerMayList, embedName, resourceType, pinKey]);
|
|
350
357
|
}
|
|
351
358
|
/**
|
|
352
|
-
* The team serving one client relationship
|
|
359
|
+
* The team serving one client relationship: the `representativeAssignments` LIST, pinned to that relationship
|
|
353
360
|
* through `pinnedFilters`, with its assign and unassign verbs. Assigning from here names the relationship by itself: the
|
|
354
361
|
* embed's context carries the host relationship, and the assign form fills `organizationRepresentationId` from it
|
|
355
362
|
* (`resolveSemanticContextFieldValues`, pinned against the real configuration by
|
|
@@ -366,7 +373,7 @@ export function EmbedRepresentationTeam({ organizationRepresentationId, classNam
|
|
|
366
373
|
return resourceContext ? renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className) : null;
|
|
367
374
|
}
|
|
368
375
|
/**
|
|
369
|
-
* The mailboxes of one client relationship
|
|
376
|
+
* The mailboxes of one client relationship: the `relationshipMailboxes` LIST, pinned to that relationship
|
|
370
377
|
* through `pinnedFilters`. Shown to a viewer the LIST admits.
|
|
371
378
|
*/
|
|
372
379
|
export function EmbedRepresentationMailboxes({ organizationRelationshipId, className }) {
|