@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,6 +4,8 @@ import { ResourceParentResourceRequirement } from '@wildo-ai/saas-models';
|
|
|
4
4
|
import { resolveCompositeViewDefinition, } from '../../../core/config/composite-view.schemas.js';
|
|
5
5
|
import { useUI } from "../../../core/ui/useUI.js";
|
|
6
6
|
import { ViewNotFound } from '../../../components/views/ViewNotFound.js';
|
|
7
|
+
import { RequiredFeaturesGate } from '../../../core/features/RequiredFeaturesGate.js';
|
|
8
|
+
import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation.js';
|
|
7
9
|
import { NavigationZone } from '../../../core/navigation/navigation.schemas.js';
|
|
8
10
|
import { FrontendInsertedViewHostKind, FrontendInsertedViewKind, parseFrontendInsertedViewRef, } from '../../../core/config/inserted-view.frontend.schemas.js';
|
|
9
11
|
import { FrontendView_ScopeMode } from '../../../core/config/views-frontend.schemas.js';
|
|
@@ -16,7 +18,7 @@ import { HostedLinkedConversationContext, } from '../../../components/views/flow
|
|
|
16
18
|
/**
|
|
17
19
|
* CompositeView - top-level host for authored composite surfaces.
|
|
18
20
|
*/
|
|
19
|
-
export const CompositeView = ({ viewRef, document: documentProp, hostResourceType, contextResourceIdentifiers, navigationZone, navigationInitiator, linkedConversation, }) => {
|
|
21
|
+
export const CompositeView = ({ viewRef, document: documentProp, hostResourceType, contextResourceIdentifiers, navigationZone, navigationInitiator, linkedConversation, featureGatePresentation = RequiredFeaturesGatePresentation.PAGE, }) => {
|
|
20
22
|
const parentCompositeContext = useOptionalCompositeViewContext();
|
|
21
23
|
const { registry } = useResourceRegistry();
|
|
22
24
|
const appScope = useAppScopeSafe();
|
|
@@ -143,7 +145,9 @@ export const CompositeView = ({ viewRef, document: documentProp, hostResourceTyp
|
|
|
143
145
|
return _jsx(ViewNotFound, { viewKind: "composite", viewRef: viewRef });
|
|
144
146
|
}
|
|
145
147
|
const CompositeComponent = document.viewComponent;
|
|
146
|
-
|
|
148
|
+
// The view's plan fence, wherever it is shown: its route is gated before this (FeatureRouteGuard), an embed is gated
|
|
149
|
+
// here, so no path renders the view for a scope without the features it declares.
|
|
150
|
+
return (_jsx(RequiredFeaturesGate, { requiredFeatures: document.requiredFeatures, presentation: featureGatePresentation, children: _jsx(CompositeViewProvider, { viewDefinition: document, breakpoint: currentBreakpoint, navigationZone: resolvedNavigationZone, navigationInitiator: resolvedNavigationInitiator, hostResourceType: resolvedHostResourceType, contextResourceIdentifiers: mergedContextResourceIdentifiers, children: _jsx(HostedLinkedConversationContext.Provider, { value: hostedLinkedConversation ?? outerHostedLinkedConversation, children: _jsx(CompositeComponent, { viewRef: document.ref, viewDefinition: document }) }) }) }));
|
|
147
151
|
};
|
|
148
152
|
export default CompositeView;
|
|
149
153
|
//# sourceMappingURL=CompositeView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositeView.js","sourceRoot":"","sources":["../../../../../src/components/views/composite-view/CompositeView.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAGL,8BAA8B,GAC/B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,cAAc,EAAmC,MAAM,wDAAwD,CAAC;AACzH,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EACL,+BAA+B,GAGhC,MAAM,oFAAoF,CAAC;AAsB5F;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,OAAO,EACP,QAAQ,EAAE,YAAY,EACtB,gBAAgB,EAChB,0BAA0B,EAC1B,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,EAAE,EAAE;IACH,MAAM,sBAAsB,GAAG,+BAA+B,EAAE,CAAC;IACjE,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;IAEnC,sEAAsE;IACtE,M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import {\n type CompositeViewComponentProps,\n type CompositeViewDefinition,\n resolveCompositeViewDefinition,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport { useUI } from \"~wildo-frontend-lib/core/ui/useUI\";\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { NavigationZone, type NavigationInitiatorContext } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n} from '~wildo-frontend-lib/core/config/inserted-view.frontend.schemas';\nimport { FrontendView_ScopeMode } from '~wildo-frontend-lib/core/config/views-frontend.schemas';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { CompositeViewProvider, useOptionalCompositeViewContext } from './CompositeViewContext';\nimport {\n HostedLinkedConversationContext,\n type HostedLinkedConversation,\n type LinkedConversationRequest,\n} from '~wildo-frontend-lib/components/views/flows-actors-view/linked-conversation.context';\n\nexport interface CompositeViewProps {\n /** View reference — resolved from UIContext internally. Mutually exclusive with `document`. */\n viewRef?: string;\n /** Pre-resolved document to load. When provided, viewRef is ignored. */\n document?: CompositeViewDefinition;\n /** Explicit resource host type for resource-scoped composite runtimes. */\n hostResourceType?: string;\n /** Explicit scoped resource identifiers for resource-scoped composite runtimes. */\n contextResourceIdentifiers?: Record<string, string>;\n /** Framework-owned transient runtime zone. */\n navigationZone?: NavigationZone;\n /** Framework-owned transient navigation initiator. */\n navigationInitiator?: NavigationInitiatorContext;\n /**\n * A conversation a link asked this view to open (#4043): handed to the conversation the view declares it hosts\n * (`conversationSystemRef`). A view that declares none settles it at once, so its address does not keep it.\n */\n linkedConversation?: LinkedConversationRequest;\n}\n\n/**\n * CompositeView - top-level host for authored composite surfaces.\n */\nexport const CompositeView: React.FC<CompositeViewProps> = ({\n viewRef,\n document: documentProp,\n hostResourceType,\n contextResourceIdentifiers,\n navigationZone,\n navigationInitiator,\n linkedConversation,\n}) => {\n const parentCompositeContext = useOptionalCompositeViewContext();\n const { registry } = useResourceRegistry();\n const appScope = useAppScopeSafe();\n\n // Get current viewport breakpoint and composite views from UI context\n const { UIConfig, compositeViews } = useUI();\n const currentBreakpoint = UIConfig?.currentBreakpoint;\n\n const insertedIdentity = React.useMemo(() => parseFrontendInsertedViewRef(viewRef), [viewRef]);\n\n const resolvedHostResourceType = hostResourceType\n ?? (\n insertedIdentity?.hostKind === FrontendInsertedViewHostKind.RESOURCE\n && insertedIdentity.viewKind === FrontendInsertedViewKind.COMPOSITE_VIEW\n ? insertedIdentity.hostRef\n : undefined\n )\n ?? parentCompositeContext?.hostResourceType;\n\n const resolvedContextResourceIdentifiers = contextResourceIdentifiers\n ?? parentCompositeContext?.contextResourceIdentifiers;\n\n // Resolve document: use provided prop, or resolve from inserted resource host, or resolve from app UIContext.\n // Memoized so the resolved definition keeps a stable identity across renders — it\n // is a field of the CompositeViewProvider value and a dep of several memos below;\n // a fresh object each render would defeat that provider's identity stability and\n // re-render every embedded surface.\n const document = useMemo(\n () => documentProp ?? resolveCompositeViewDefinition({ viewRef, compositeViews, registry }),\n [documentProp, viewRef, compositeViews, registry],\n );\n useEffect(() => {\n if (\n process.env.NODE_ENV === 'production'\n || document\n || !viewRef\n || !resolvedContextResourceIdentifiers\n || Object.keys(resolvedContextResourceIdentifiers).length === 0\n ) {\n return;\n }\n\n console.warn('[CompositeView] Cannot validate explicit view context bindings because the view definition could not be resolved', {\n surfaceName: 'CompositeView',\n surfaceRef: viewRef,\n explicitContextResourceIdentifiers: resolvedContextResourceIdentifiers,\n });\n }, [document, resolvedContextResourceIdentifiers, viewRef]);\n const computedMergedContextResourceIdentifiers = useMemo(() => {\n const primaryScopeInitiatorIds = ScopeUtilsService.buildInitiatorIds({\n userId: appScope?.currentUserId,\n organizationId: appScope?.currentOrganizationId,\n applicationId: appScope?.currentApplicationId,\n anonymousUserId: appScope?.currentAnonymousUserId,\n });\n const primaryScopeContext =\n document?.primaryScope\n ? ScopeUtilsService.primaryScopeToContextIdentifiers(\n primaryScopeInitiatorIds,\n document.primaryScope,\n )\n : {};\n const liveAppScopeContext = appScope?.buildContextResourceIdentifiers() ?? {};\n const customScopeContext = ScopeUtilsService.filterCustomScopeContextResourceIdentifiers(liveAppScopeContext);\n\n if (!document) {\n return ScopeUtilsService.mergeContextResourceIdentifiers(\n primaryScopeContext,\n customScopeContext,\n resolvedContextResourceIdentifiers,\n );\n }\n\n const hostResourceRequirement = (\n document.scope === FrontendView_ScopeMode.RESOURCE\n && resolvedHostResourceType\n )\n ? [{\n resourceType: resolvedHostResourceType,\n requirement: ResourceParentResourceRequirement.OPTIONAL,\n isPrimaryScope: false,\n }]\n : [];\n\n const mergedAdditionalResourceRequirements = [\n ...(document.additionalResourceRequirements ?? []),\n ...hostResourceRequirement,\n ];\n // Drop inherited ancestor keys the composite never scopes by — e.g. a todo\n // opened via `/todo-lists/{list}/todos/{todo}` hands its workspace\n // `todoLists`, but the workspace's contract is {primaryScope, host todo}.\n // The host resource IS in the contract (added via hostResourceRequirement),\n // so the embedded host READ keeps the id it needs; only the dead ancestor is\n // dropped. This keeps the context forwarded to every embedded surface honest\n // and silences the dev \"context bindings outside its declared contract\" warning.\n const allowedBindingKeys = ScopeUtilsService.getAllowedViewBindingKeys({\n primaryScope: document.primaryScope,\n parentResourcesRequirements: document.parentResourcesRequirements,\n additionalResourceRequirements: mergedAdditionalResourceRequirements,\n });\n return ScopeUtilsService.resolveViewContextResourceIdentifiers({\n surfaceName: 'CompositeView',\n surfaceRef: document.ref,\n primaryScope: document.primaryScope,\n parentResourcesRequirements: document.parentResourcesRequirements,\n additionalResourceRequirements: mergedAdditionalResourceRequirements,\n primaryScopeContext,\n customScopeContext,\n explicitContextResourceIdentifiers: ScopeUtilsService.scopeContextToBindingContract(\n resolvedContextResourceIdentifiers,\n allowedBindingKeys,\n ),\n });\n }, [\n appScope,\n appScope?.currentAnonymousUserId,\n appScope?.currentApplicationId,\n appScope?.currentOrganizationId,\n appScope?.currentUserId,\n document,\n resolvedHostResourceType,\n resolvedContextResourceIdentifiers,\n ]);\n /**\n * IDENTITY-STABLE scoped identifiers. The memo above depends on the live\n * `appScope` object, whose identity churns on every AppScope provider render —\n * so it recomputes to a fresh `Record` constantly even when the actual scoped\n * ids are unchanged. That fresh object is the root of the composite re-render\n * loop: it flows into `CompositeViewProvider` and every embedded surface,\n * rebuilding resource-operation contexts (and cloning configs) each render.\n * Keying a passthrough memo on the value-derived identifiers key collapses the\n * identity back to a single reference per distinct value — recomputing only\n * when the scoped ids genuinely change, so no context goes stale.\n */\n const mergedContextResourceIdentifiersKey = FrontendResourceUtils.buildContextResourceIdentifiersKey(\n computedMergedContextResourceIdentifiers,\n );\n const mergedContextResourceIdentifiers = useMemo(\n () => computedMergedContextResourceIdentifiers,\n // eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally keyed by value (key), not by the recomputed-every-render object identity\n [mergedContextResourceIdentifiersKey],\n );\n const resolvedNavigationZone = navigationZone\n ?? parentCompositeContext?.navigationZone\n ?? NavigationZone.PRIMARY;\n const resolvedNavigationInitiator = navigationInitiator ?? parentCompositeContext?.navigationInitiator;\n\n // The linked conversation, for the conversation this view hosts on its record (#4043).\n const outerHostedLinkedConversation = React.useContext(HostedLinkedConversationContext);\n const hostedSystemRef = document?.conversationSystemRef;\n const hostedLinkedConversation = useMemo<HostedLinkedConversation | null>(\n () => (linkedConversation && hostedSystemRef ? { ...linkedConversation, systemRef: hostedSystemRef } : null),\n [linkedConversation, hostedSystemRef],\n );\n // A link nothing here can take is settled at once: the address does not keep a conversation no view will open.\n const unhostedLink = linkedConversation && document && !hostedSystemRef ? linkedConversation : undefined;\n useEffect(() => {\n unhostedLink?.onSettled();\n }, [unhostedLink]);\n\n if (!document) {\n return <ViewNotFound viewKind=\"composite\" viewRef={viewRef} />;\n }\n\n const CompositeComponent: React.ComponentType<CompositeViewComponentProps> = document.viewComponent;\n\n return (\n <CompositeViewProvider\n viewDefinition={document}\n breakpoint={currentBreakpoint}\n navigationZone={resolvedNavigationZone}\n navigationInitiator={resolvedNavigationInitiator}\n hostResourceType={resolvedHostResourceType}\n contextResourceIdentifiers={mergedContextResourceIdentifiers}\n >\n {/* A view holding no link passes the outer one on: a view nested in a hosting view must not hide its link. */}\n <HostedLinkedConversationContext.Provider value={hostedLinkedConversation ?? outerHostedLinkedConversation}>\n <CompositeComponent viewRef={document.ref} viewDefinition={document} />\n </HostedLinkedConversationContext.Provider>\n </CompositeViewProvider>\n );\n};\n\nexport default CompositeView;\n\n"]}
|
|
1
|
+
{"version":3,"file":"CompositeView.js","sourceRoot":"","sources":["../../../../../src/components/views/composite-view/CompositeView.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAGL,8BAA8B,GAC/B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uEAAuE,CAAC;AACzH,OAAO,EAAE,cAAc,EAAmC,MAAM,wDAAwD,CAAC;AACzH,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,qBAAq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AO,KAAC,YAAY,IAAC,QAAQ,EAAC,WAAW,EAAC,OAAO,EAAE,OAAO,GAAI,CAAC;IACjE,CAAC;IAED,MAAM,kBAAkB,GAAqD,QAAQ,CAAC,aAAa,CAAC;IAEpG,qHAAqH;IACrH,kFAAkF;IAClF,OAAO,CACL,KAAC,oBAAoB,IAAC,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,EAAE,YAAY,EAAE,uBAAuB,YACxG,KAAC,qBAAqB,IACpB,cAAc,EAAE,QAAQ,EACxB,UAAU,EAAE,iBAAiB,EAC7B,cAAc,EAAE,sBAAsB,EACtC,mBAAmB,EAAE,2BAA2B,EAChD,gBAAgB,EAAE,wBAAwB,EAC1C,0BAA0B,EAAE,gCAAgC,YAG5D,KAAC,+BAA+B,CAAC,QAAQ,IAAC,KAAK,EAAE,wBAAwB,IAAI,6BAA6B,YACxG,KAAC,kBAAkB,IAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,EAAE,cAAc,EAAE,QAAQ,GAAI,GAC9B,GACrB,GACD,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import React, { useEffect, useMemo } from 'react';\nimport { ResourceParentResourceRequirement } from '@wildo-ai/saas-models';\nimport {\n type CompositeViewComponentProps,\n type CompositeViewDefinition,\n resolveCompositeViewDefinition,\n} from '~wildo-frontend-lib/core/config/composite-view.schemas';\nimport { useUI } from \"~wildo-frontend-lib/core/ui/useUI\";\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { RequiredFeaturesGate } from '~wildo-frontend-lib/core/features/RequiredFeaturesGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\nimport { NavigationZone, type NavigationInitiatorContext } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n parseFrontendInsertedViewRef,\n} from '~wildo-frontend-lib/core/config/inserted-view.frontend.schemas';\nimport { FrontendView_ScopeMode } from '~wildo-frontend-lib/core/config/views-frontend.schemas';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { CompositeViewProvider, useOptionalCompositeViewContext } from './CompositeViewContext';\nimport {\n HostedLinkedConversationContext,\n type HostedLinkedConversation,\n type LinkedConversationRequest,\n} from '~wildo-frontend-lib/components/views/flows-actors-view/linked-conversation.context';\n\nexport interface CompositeViewProps {\n /** View reference — resolved from UIContext internally. Mutually exclusive with `document`. */\n viewRef?: string;\n /** Pre-resolved document to load. When provided, viewRef is ignored. */\n document?: CompositeViewDefinition;\n /** Explicit resource host type for resource-scoped composite runtimes. */\n hostResourceType?: string;\n /** Explicit scoped resource identifiers for resource-scoped composite runtimes. */\n contextResourceIdentifiers?: Record<string, string>;\n /** Framework-owned transient runtime zone. */\n navigationZone?: NavigationZone;\n /** Framework-owned transient navigation initiator. */\n navigationInitiator?: NavigationInitiatorContext;\n /**\n * A conversation a link asked this view to open (#4043): handed to the conversation the view declares it hosts\n * (`conversationSystemRef`). A view that declares none settles it at once, so its address does not keep it.\n */\n linkedConversation?: LinkedConversationRequest;\n /**\n * How the view shows when its plan fence refuses the scope: PAGE (the default) where the view IS the page (its route,\n * the home), TILE where a page embeds it, so a locked embed keeps its place instead of becoming a page-sized prompt.\n */\n featureGatePresentation?: RequiredFeaturesGatePresentation;\n}\n\n/**\n * CompositeView - top-level host for authored composite surfaces.\n */\nexport const CompositeView: React.FC<CompositeViewProps> = ({\n viewRef,\n document: documentProp,\n hostResourceType,\n contextResourceIdentifiers,\n navigationZone,\n navigationInitiator,\n linkedConversation,\n featureGatePresentation = RequiredFeaturesGatePresentation.PAGE,\n}) => {\n const parentCompositeContext = useOptionalCompositeViewContext();\n const { registry } = useResourceRegistry();\n const appScope = useAppScopeSafe();\n\n // Get current viewport breakpoint and composite views from UI context\n const { UIConfig, compositeViews } = useUI();\n const currentBreakpoint = UIConfig?.currentBreakpoint;\n\n const insertedIdentity = React.useMemo(() => parseFrontendInsertedViewRef(viewRef), [viewRef]);\n\n const resolvedHostResourceType = hostResourceType\n ?? (\n insertedIdentity?.hostKind === FrontendInsertedViewHostKind.RESOURCE\n && insertedIdentity.viewKind === FrontendInsertedViewKind.COMPOSITE_VIEW\n ? insertedIdentity.hostRef\n : undefined\n )\n ?? parentCompositeContext?.hostResourceType;\n\n const resolvedContextResourceIdentifiers = contextResourceIdentifiers\n ?? parentCompositeContext?.contextResourceIdentifiers;\n\n // Resolve document: use provided prop, or resolve from inserted resource host, or resolve from app UIContext.\n // Memoized so the resolved definition keeps a stable identity across renders — it\n // is a field of the CompositeViewProvider value and a dep of several memos below;\n // a fresh object each render would defeat that provider's identity stability and\n // re-render every embedded surface.\n const document = useMemo(\n () => documentProp ?? resolveCompositeViewDefinition({ viewRef, compositeViews, registry }),\n [documentProp, viewRef, compositeViews, registry],\n );\n useEffect(() => {\n if (\n process.env.NODE_ENV === 'production'\n || document\n || !viewRef\n || !resolvedContextResourceIdentifiers\n || Object.keys(resolvedContextResourceIdentifiers).length === 0\n ) {\n return;\n }\n\n console.warn('[CompositeView] Cannot validate explicit view context bindings because the view definition could not be resolved', {\n surfaceName: 'CompositeView',\n surfaceRef: viewRef,\n explicitContextResourceIdentifiers: resolvedContextResourceIdentifiers,\n });\n }, [document, resolvedContextResourceIdentifiers, viewRef]);\n const computedMergedContextResourceIdentifiers = useMemo(() => {\n const primaryScopeInitiatorIds = ScopeUtilsService.buildInitiatorIds({\n userId: appScope?.currentUserId,\n organizationId: appScope?.currentOrganizationId,\n applicationId: appScope?.currentApplicationId,\n anonymousUserId: appScope?.currentAnonymousUserId,\n });\n const primaryScopeContext =\n document?.primaryScope\n ? ScopeUtilsService.primaryScopeToContextIdentifiers(\n primaryScopeInitiatorIds,\n document.primaryScope,\n )\n : {};\n const liveAppScopeContext = appScope?.buildContextResourceIdentifiers() ?? {};\n const customScopeContext = ScopeUtilsService.filterCustomScopeContextResourceIdentifiers(liveAppScopeContext);\n\n if (!document) {\n return ScopeUtilsService.mergeContextResourceIdentifiers(\n primaryScopeContext,\n customScopeContext,\n resolvedContextResourceIdentifiers,\n );\n }\n\n const hostResourceRequirement = (\n document.scope === FrontendView_ScopeMode.RESOURCE\n && resolvedHostResourceType\n )\n ? [{\n resourceType: resolvedHostResourceType,\n requirement: ResourceParentResourceRequirement.OPTIONAL,\n isPrimaryScope: false,\n }]\n : [];\n\n const mergedAdditionalResourceRequirements = [\n ...(document.additionalResourceRequirements ?? []),\n ...hostResourceRequirement,\n ];\n // Drop inherited ancestor keys the composite never scopes by — e.g. a todo\n // opened via `/todo-lists/{list}/todos/{todo}` hands its workspace\n // `todoLists`, but the workspace's contract is {primaryScope, host todo}.\n // The host resource IS in the contract (added via hostResourceRequirement),\n // so the embedded host READ keeps the id it needs; only the dead ancestor is\n // dropped. This keeps the context forwarded to every embedded surface honest\n // and silences the dev \"context bindings outside its declared contract\" warning.\n const allowedBindingKeys = ScopeUtilsService.getAllowedViewBindingKeys({\n primaryScope: document.primaryScope,\n parentResourcesRequirements: document.parentResourcesRequirements,\n additionalResourceRequirements: mergedAdditionalResourceRequirements,\n });\n return ScopeUtilsService.resolveViewContextResourceIdentifiers({\n surfaceName: 'CompositeView',\n surfaceRef: document.ref,\n primaryScope: document.primaryScope,\n parentResourcesRequirements: document.parentResourcesRequirements,\n additionalResourceRequirements: mergedAdditionalResourceRequirements,\n primaryScopeContext,\n customScopeContext,\n explicitContextResourceIdentifiers: ScopeUtilsService.scopeContextToBindingContract(\n resolvedContextResourceIdentifiers,\n allowedBindingKeys,\n ),\n });\n }, [\n appScope,\n appScope?.currentAnonymousUserId,\n appScope?.currentApplicationId,\n appScope?.currentOrganizationId,\n appScope?.currentUserId,\n document,\n resolvedHostResourceType,\n resolvedContextResourceIdentifiers,\n ]);\n /**\n * IDENTITY-STABLE scoped identifiers. The memo above depends on the live\n * `appScope` object, whose identity churns on every AppScope provider render —\n * so it recomputes to a fresh `Record` constantly even when the actual scoped\n * ids are unchanged. That fresh object is the root of the composite re-render\n * loop: it flows into `CompositeViewProvider` and every embedded surface,\n * rebuilding resource-operation contexts (and cloning configs) each render.\n * Keying a passthrough memo on the value-derived identifiers key collapses the\n * identity back to a single reference per distinct value — recomputing only\n * when the scoped ids genuinely change, so no context goes stale.\n */\n const mergedContextResourceIdentifiersKey = FrontendResourceUtils.buildContextResourceIdentifiersKey(\n computedMergedContextResourceIdentifiers,\n );\n const mergedContextResourceIdentifiers = useMemo(\n () => computedMergedContextResourceIdentifiers,\n // eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally keyed by value (key), not by the recomputed-every-render object identity\n [mergedContextResourceIdentifiersKey],\n );\n const resolvedNavigationZone = navigationZone\n ?? parentCompositeContext?.navigationZone\n ?? NavigationZone.PRIMARY;\n const resolvedNavigationInitiator = navigationInitiator ?? parentCompositeContext?.navigationInitiator;\n\n // The linked conversation, for the conversation this view hosts on its record (#4043).\n const outerHostedLinkedConversation = React.useContext(HostedLinkedConversationContext);\n const hostedSystemRef = document?.conversationSystemRef;\n const hostedLinkedConversation = useMemo<HostedLinkedConversation | null>(\n () => (linkedConversation && hostedSystemRef ? { ...linkedConversation, systemRef: hostedSystemRef } : null),\n [linkedConversation, hostedSystemRef],\n );\n // A link nothing here can take is settled at once: the address does not keep a conversation no view will open.\n const unhostedLink = linkedConversation && document && !hostedSystemRef ? linkedConversation : undefined;\n useEffect(() => {\n unhostedLink?.onSettled();\n }, [unhostedLink]);\n\n if (!document) {\n return <ViewNotFound viewKind=\"composite\" viewRef={viewRef} />;\n }\n\n const CompositeComponent: React.ComponentType<CompositeViewComponentProps> = document.viewComponent;\n\n // The view's plan fence, wherever it is shown: its route is gated before this (FeatureRouteGuard), an embed is gated\n // here, so no path renders the view for a scope without the features it declares.\n return (\n <RequiredFeaturesGate requiredFeatures={document.requiredFeatures} presentation={featureGatePresentation}>\n <CompositeViewProvider\n viewDefinition={document}\n breakpoint={currentBreakpoint}\n navigationZone={resolvedNavigationZone}\n navigationInitiator={resolvedNavigationInitiator}\n hostResourceType={resolvedHostResourceType}\n contextResourceIdentifiers={mergedContextResourceIdentifiers}\n >\n {/* A view holding no link passes the outer one on: a view nested in a hosting view must not hide its link. */}\n <HostedLinkedConversationContext.Provider value={hostedLinkedConversation ?? outerHostedLinkedConversation}>\n <CompositeComponent viewRef={document.ref} viewDefinition={document} />\n </HostedLinkedConversationContext.Provider>\n </CompositeViewProvider>\n </RequiredFeaturesGate>\n );\n};\n\nexport default CompositeView;\n\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ExecutionViewDefinition } from '../../../core/config/execution-view.schemas';
|
|
3
3
|
import { NavigationZone } from '../../../core/navigation/navigation.schemas';
|
|
4
|
+
import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation';
|
|
4
5
|
export interface ExecutionViewProps {
|
|
5
6
|
/** View reference — resolved from UIContext internally. Mutually exclusive with `viewDefinition`. */
|
|
6
7
|
viewRef?: string;
|
|
@@ -15,6 +16,12 @@ export interface ExecutionViewProps {
|
|
|
15
16
|
*/
|
|
16
17
|
contextResourceIdentifiers?: Record<string, string>;
|
|
17
18
|
navigationZone?: NavigationZone;
|
|
19
|
+
/**
|
|
20
|
+
* How the view shows when its plan fence refuses the scope: PAGE (the default) where the view IS the content of its
|
|
21
|
+
* zone (its route, a pane, an overlay), TILE where a page embeds it, so a locked embed keeps its place instead of
|
|
22
|
+
* becoming a page-sized prompt. The view gates itself wherever it is rendered, as a composite view does.
|
|
23
|
+
*/
|
|
24
|
+
featureGatePresentation?: RequiredFeaturesGatePresentation;
|
|
18
25
|
}
|
|
19
26
|
/**
|
|
20
27
|
* Framework-owned execution host.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutionView.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/execution-view/ExecutionView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAK5D,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,wDAAwD,CAAC;AAMhE,OAAO,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAqCxF,MAAM,WAAW,kBAAkB;IACjC,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,cAAc,CAAC,EAAE,uBAAuB,CAAC;IAEzC;;;;;;OAMG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,cAAc,CAAC,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ExecutionView.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/execution-view/ExecutionView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAK5D,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,wDAAwD,CAAC;AAMhE,OAAO,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAqCxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uEAAuE,CAAC;AAEzH,MAAM,WAAW,kBAAkB;IACjC,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,cAAc,CAAC,EAAE,uBAAuB,CAAC;IAEzC;;;;;;OAMG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,gCAAgC,CAAC;CAC5D;AAUD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAatD,CAAC;AA2YF,eAAe,aAAa,CAAC"}
|
|
@@ -21,6 +21,8 @@ import { Button, ButtonVariants_Variant } from '../../../components/actions/butt
|
|
|
21
21
|
import { FrontendComponentType, ButtonSize } from '@wildo-ai/presets-components-models';
|
|
22
22
|
import { ViewLayout_Header } from '../../../components/views/ViewLayout_Header.js';
|
|
23
23
|
import { NavigationContentType } from '../../../core/navigation/navigation.schemas.js';
|
|
24
|
+
import { RequiredFeaturesGate } from '../../../core/features/RequiredFeaturesGate.js';
|
|
25
|
+
import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation.js';
|
|
24
26
|
function createRuntimeInstanceId() {
|
|
25
27
|
if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
|
|
26
28
|
return `execution-${crypto.randomUUID()}`;
|
|
@@ -34,7 +36,15 @@ function createRuntimeInstanceId() {
|
|
|
34
36
|
* `FullCustomView`, but adds a minimal execution runtime provider so later slices
|
|
35
37
|
* can grow execution-specific hooks without changing the routed host seam.
|
|
36
38
|
*/
|
|
37
|
-
export const ExecutionView = ({
|
|
39
|
+
export const ExecutionView = ({ featureGatePresentation = RequiredFeaturesGatePresentation.PAGE, ...hostProps }) => {
|
|
40
|
+
const { registry } = useResourceRegistry();
|
|
41
|
+
const requiredFeatures = (hostProps.viewDefinition ?? resolveExecutionViewDefinition({ viewRef: hostProps.viewRef, registry }))?.requiredFeatures;
|
|
42
|
+
// The view's plan fence, wherever it is shown (its route, a pane, an overlay, an embed on a record). Gated OUTSIDE the
|
|
43
|
+
// host, so a refused scope never mounts the execution runtime and its effects (prefetched participations, actions).
|
|
44
|
+
return (_jsx(RequiredFeaturesGate, { requiredFeatures: requiredFeatures, presentation: featureGatePresentation, children: _jsx(ExecutionViewHost, { ...hostProps }) }));
|
|
45
|
+
};
|
|
46
|
+
/** The execution host itself, once the view's plan fence admits the scope ({@link ExecutionView}). */
|
|
47
|
+
const ExecutionViewHost = ({ viewRef, viewDefinition: viewDefinitionProp, contextResourceIdentifiers: contextResourceIdentifiersProp, navigationZone = NavigationZone.PRIMARY, }) => {
|
|
38
48
|
const appScope = useAppScopeSafe();
|
|
39
49
|
const { doOperation, registry } = useResourceRegistry();
|
|
40
50
|
const { navigate } = useNavigationController();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutionView.js","sourceRoot":"","sources":["../../../../../src/components/views/execution-view/ExecutionView.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EACL,8BAA8B,GAC/B,MAAM,wDAAwD,CAAC;AAKhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,6DAA6D,CAAC;AACtG,OAAO,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AACxF,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,gCAAgC,EAChC,gCAAgC,EAChC,qDAAqD,EACrD,mCAAmC,EACnC,yBAAyB,EACzB,0BAA0B,GAM3B,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EACL,kCAAkC,EAClC,+BAA+B,GAChC,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,mCAAmC,EACnC,uCAAuC,EACvC,gCAAgC,GACjC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,EAAE,iCAAiC,EAAE,MAAM,qEAAqE,CAAC;AACxH,OAAO,EAAE,wBAAwB,EAAE,MAAM,mEAAmE,CA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Ac,EAAE,cAAc,EAC9B,SAAS,EAAC,UAAU,GACpB,EAUF,KAAC,aAAa,cASX,uBAAuB,CAAC,CAAC,CAAC,CACzB,eAAK,SAAS,EAAC,gFAAgF,aAC7F,cAAK,SAAS,EAAC,+BAA+B,YAC3C,gBAAgB,GACb,EACN,iBAAO,SAAS,EAAC,+EAA+E,aAC9F,eAAK,SAAS,EAAC,+DAA+D,aAC5E,eAAK,SAAS,EAAC,SAAS,aACtB,cAAK,SAAS,EAAC,qCAAqC,YAAE,CAAC,CAAC,eAAe,CAAC,GAAO,EAC/E,cAAK,SAAS,EAAC,+BAA+B,YAC3C,CAAC,CAAC,qBAAqB,CAAC,GACrB,IACF,EACN,KAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,sBAAsB,CAAC,IAAI,EACpC,IAAI,EAAE,UAAU,CAAC,EAAE,EACnB,OAAO,EAAE,GAAG,EAAE;gDACZ,UAAU,CAAC,oBAAoB,EAAE,CAAC;4CACpC,CAAC,YAEA,CAAC,CAAC,eAAe,CAAC,GACZ,IACL,EACN,cAAK,SAAS,EAAC,8BAA8B,YAU3C,KAAC,iCAAiC,IAChC,KAAK,EAAE,EAAE,KAAK,EAAE,yBAAyB,CAAC,gBAAgB,EAAE,YAE5D,KAAC,wBAAwB,IACvB,eAAe,EAAE,uBAAuB,CAAC,eAAe,EACxD,cAAc,EAAE,cAAc,EAC9B,mBAAmB,EAAE,oBAAoB,EAAE,mBAAmB,GAC9D,GACgC,GAChC,IACA,IACJ,CACP,CAAC,CAAC,CAAC,gBAAgB,GACN,IACS,CAC5B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import React, { useEffect, useMemo, useState } from 'react';\n\nimport {\n resolveExecutionViewDefinition,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport type {\n ExecutionViewComponentProps,\n ExecutionViewDefinition,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { useNavigationController } from '~wildo-frontend-lib/core/navigation/useNavigationController';\nimport { NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport {\n ExecutionRuntimeProvider,\n assertExecutionDirtyMarkerShape,\n assertExecutionEmbeddableContent,\n assertExecutionFailedActionShape,\n assertExecutionLocalPanePayloadIsNotEmbeddableContent,\n assertExecutionPendingPrefetchShape,\n ExecutionDirtyMarkerScope,\n ExecutionFailedActionScope,\n type ExecutionDirtyMarker,\n type ExecutionFailedAction,\n type ExecutionPendingAction,\n type ExecutionPendingPrefetch,\n type ExecutionRuntimeState,\n} from '~wildo-frontend-lib/core/execution/ExecutionRuntimeContext';\nimport { resolveExecutionAnchor } from '~wildo-frontend-lib/core/execution/execution-anchor.utils';\nimport {\n pruneDirtyMarkersForPaneTransition,\n pruneDirtyMarkersForScopeChange,\n} from '~wildo-frontend-lib/core/execution/execution-dirty-markers.utils';\nimport {\n pruneFailedActionsForPaneTransition,\n pruneFailedActionsForPrefetchSettlement,\n pruneFailedActionsForScopeChange,\n} from '~wildo-frontend-lib/core/execution/execution-failure-handling.utils';\nimport { resolveExecutionParticipations } from '~wildo-frontend-lib/core/execution/execution-participation.utils';\nimport { ExecutionDirtyMarkerScopeProvider } from '~wildo-frontend-lib/core/execution/ExecutionDirtyMarkerScopeContext';\nimport { ResourceOperationSurface } from '~wildo-frontend-lib/components/resources/ResourceOperationSurface';\nimport { ErrorBoundary } from '~wildo-frontend-lib/core/errors/ErrorBoundary';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { resolveComponentLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { FrontendComponentType, ButtonSize } from '@wildo-ai/presets-components-models';\nimport { ViewLayout_Header } from '~wildo-frontend-lib/components/views/ViewLayout_Header';\nimport { NavigationContentType } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\n\nexport interface ExecutionViewProps {\n /** View reference — resolved from UIContext internally. Mutually exclusive with `viewDefinition`. */\n viewRef?: string;\n /** Pre-resolved view definition. When provided, viewRef is ignored. */\n viewDefinition?: ExecutionViewDefinition;\n\n /**\n * Explicit navigation-time context bindings.\n *\n * The execution host follows the same boundary as other custom view families:\n * ambient primary scope stays live in AppScope, while explicit identifiers are\n * preserved on the navigation payload and merged last.\n */\n contextResourceIdentifiers?: Record<string, string>;\n navigationZone?: NavigationZone;\n}\n\nfunction createRuntimeInstanceId(): string {\n if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {\n return `execution-${crypto.randomUUID()}`;\n }\n\n return `execution-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;\n}\n\n/**\n * Framework-owned execution host.\n *\n * This component intentionally mirrors the scope-resolution model already used by\n * `FullCustomView`, but adds a minimal execution runtime provider so later slices\n * can grow execution-specific hooks without changing the routed host seam.\n */\nexport const ExecutionView: React.FC<ExecutionViewProps> = ({\n viewRef,\n viewDefinition: viewDefinitionProp,\n contextResourceIdentifiers: contextResourceIdentifiersProp,\n navigationZone = NavigationZone.PRIMARY,\n}) => {\n const appScope = useAppScopeSafe();\n const { doOperation, registry } = useResourceRegistry();\n const { navigate } = useNavigationController();\n const { tComponent, isReady: isI18nReady } = useI18n({\n component: FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n });\n const [embeddedContent, setEmbeddedContent] = useState<ExecutionRuntimeState['embeddedContent']>(null);\n const [localPane, setLocalPane] = useState<ExecutionRuntimeState['localPane']>(null);\n const [pendingActions, setPendingActions] = useState<ExecutionRuntimeState['pendingActions']>({});\n const [participationPrefetchActions, setParticipationPrefetchActions] = useState<ExecutionRuntimeState['participationPrefetchActions']>({});\n const [dirtyMarkers, setDirtyMarkers] = useState<ExecutionRuntimeState['dirtyMarkers']>({});\n const [failedActions, setFailedActions] = useState<ExecutionRuntimeState['failedActions']>({});\n\n const viewDefinition = viewDefinitionProp ?? resolveExecutionViewDefinition({\n viewRef,\n registry,\n });\n const runtimeInstanceId = useMemo(\n () => createRuntimeInstanceId(),\n [viewDefinition?.ref],\n );\n\n useEffect(() => {\n if (\n process.env.NODE_ENV === 'production'\n || viewDefinition\n || !viewRef\n || !contextResourceIdentifiersProp\n || Object.keys(contextResourceIdentifiersProp).length === 0\n ) {\n return;\n }\n\n console.warn('[ExecutionView] Cannot validate explicit view context bindings because the view definition could not be resolved', {\n surfaceName: 'ExecutionView',\n surfaceRef: viewRef,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [contextResourceIdentifiersProp, viewDefinition, viewRef]);\n\n const contextResourceIdentifiers = useMemo(() => {\n const primaryScopeInitiatorIds = ScopeUtilsService.buildInitiatorIds({\n userId: appScope?.currentUserId,\n organizationId: appScope?.currentOrganizationId,\n applicationId: appScope?.currentApplicationId,\n anonymousUserId: appScope?.currentAnonymousUserId,\n });\n const primaryScopeContext =\n viewDefinition?.primaryScope\n ? ScopeUtilsService.primaryScopeToContextIdentifiers(\n primaryScopeInitiatorIds,\n viewDefinition.primaryScope,\n )\n : {};\n const liveAppScopeContext = appScope?.buildContextResourceIdentifiers() ?? {};\n const customScopeContext = ScopeUtilsService.filterCustomScopeContextResourceIdentifiers(liveAppScopeContext);\n\n if (!viewDefinition) {\n return ScopeUtilsService.mergeContextResourceIdentifiers(\n primaryScopeContext,\n customScopeContext,\n contextResourceIdentifiersProp,\n );\n }\n\n // Drop inherited ancestor keys the execution view never scopes by. A flow\n // launched from a nested route inherits that route's FULL ancestor chain plus\n // the ambient AppScope bundle (which always carries the current `users` id),\n // but an execution view scopes only by its declared contract\n // (primaryScope + parent/additional requirements). Forwarding the raw bundle\n // trips the dev-only \"context bindings outside its declared contract\" warning\n // and bloats the resolved context. This mirrors the render-time scoping that\n // CompositeView and the chart runtime already apply — ExecutionView was the one\n // view family missing it.\n const allowedBindingKeys = ScopeUtilsService.getAllowedViewBindingKeys({\n primaryScope: viewDefinition.primaryScope,\n parentResourcesRequirements: viewDefinition.parentResourcesRequirements,\n additionalResourceRequirements: viewDefinition.additionalResourceRequirements,\n });\n return ScopeUtilsService.resolveViewContextResourceIdentifiers({\n surfaceName: 'ExecutionView',\n surfaceRef: viewDefinition.ref,\n primaryScope: viewDefinition.primaryScope,\n parentResourcesRequirements: viewDefinition.parentResourcesRequirements,\n additionalResourceRequirements: viewDefinition.additionalResourceRequirements,\n primaryScopeContext,\n customScopeContext,\n explicitContextResourceIdentifiers: ScopeUtilsService.scopeContextToBindingContract(\n contextResourceIdentifiersProp,\n allowedBindingKeys,\n ),\n });\n }, [\n contextResourceIdentifiersProp,\n viewDefinition?.primaryScope,\n viewDefinition?.ref,\n viewDefinition?.parentResourcesRequirements,\n viewDefinition?.additionalResourceRequirements,\n appScope?.currentUserId,\n appScope?.currentOrganizationId,\n appScope?.currentApplicationId,\n appScope?.currentAnonymousUserId,\n appScope,\n ]);\n\n const anchor = useMemo(() => {\n if (!viewDefinition) {\n return null;\n }\n\n return resolveExecutionAnchor(viewDefinition, contextResourceIdentifiersProp);\n }, [viewDefinition, contextResourceIdentifiersProp]);\n\n const runtimeState = useMemo<ExecutionRuntimeState>(() => ({\n embeddedContent,\n localPane,\n pendingActions,\n participationPrefetchActions,\n dirtyMarkers,\n failedActions,\n }), [embeddedContent, localPane, pendingActions, participationPrefetchActions, dirtyMarkers, failedActions]);\n\n const participations = useMemo(() => {\n if (!viewDefinition) {\n return {};\n }\n\n return resolveExecutionParticipations({\n viewDefinition,\n registry,\n anchor,\n contextResourceIdentifiers,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [\n anchor,\n contextResourceIdentifiers,\n contextResourceIdentifiersProp,\n registry,\n viewDefinition,\n ]);\n\n const navigation = useMemo(() => ({\n delegateToParent: (options: {\n content: Parameters<typeof navigate>[0]['content'];\n urlPath?: string;\n contextResourceIdentifiers?: Record<string, string>;\n relationshipTransition?: Parameters<typeof navigate>[0]['relationshipTransition'];\n initiator?: Omit<Parameters<typeof navigate>[0]['initiator'], 'sourceZone'>;\n }) => {\n navigate({\n content: options.content,\n urlPath: options.urlPath,\n contextResourceIdentifiers: options.contextResourceIdentifiers,\n relationshipTransition: options.relationshipTransition,\n initiator: {\n sourceZone: navigationZone,\n ...(options.initiator ?? {}),\n },\n });\n },\n openEmbeddedContent: (nextEmbeddedContent) => {\n assertExecutionEmbeddableContent(nextEmbeddedContent.content);\n setEmbeddedContent(nextEmbeddedContent);\n setDirtyMarkers((previous) => pruneDirtyMarkersForScopeChange(previous, ExecutionDirtyMarkerScope.EMBEDDED_CONTENT));\n setFailedActions((previous) => pruneFailedActionsForScopeChange(previous, ExecutionFailedActionScope.EMBEDDED_CONTENT));\n },\n closeEmbeddedContent: () => {\n setEmbeddedContent(null);\n setDirtyMarkers((previous) => pruneDirtyMarkersForScopeChange(previous, ExecutionDirtyMarkerScope.EMBEDDED_CONTENT));\n setFailedActions((previous) => pruneFailedActionsForScopeChange(previous, ExecutionFailedActionScope.EMBEDDED_CONTENT));\n },\n openLocalPane: (paneId: string, payload?: unknown) => {\n assertExecutionLocalPanePayloadIsNotEmbeddableContent(payload);\n setLocalPane({ paneId, payload });\n setDirtyMarkers((previous) => pruneDirtyMarkersForPaneTransition(previous, paneId));\n setFailedActions((previous) => pruneFailedActionsForPaneTransition(previous, paneId));\n },\n closeLocalPane: () => {\n setLocalPane(null);\n setDirtyMarkers((previous) => pruneDirtyMarkersForPaneTransition(previous, null));\n setFailedActions((previous) => pruneFailedActionsForPaneTransition(previous, null));\n },\n beginPendingAction: (action: ExecutionPendingAction) => {\n setPendingActions((previous) => ({\n ...previous,\n [action.actionRuntimeId]: action,\n }));\n },\n endPendingAction: (actionRuntimeId: string) => {\n setPendingActions((previous) => {\n if (!(actionRuntimeId in previous)) {\n return previous;\n }\n const { [actionRuntimeId]: _removed, ...rest } = previous;\n return rest;\n });\n },\n beginParticipationPrefetch: (prefetch: ExecutionPendingPrefetch) => {\n assertExecutionPendingPrefetchShape(prefetch);\n setParticipationPrefetchActions((previous) => ({\n ...previous,\n [prefetch.prefetchRuntimeId]: prefetch,\n }));\n },\n endParticipationPrefetch: (prefetchRuntimeId: string) => {\n setParticipationPrefetchActions((previous) => {\n if (!(prefetchRuntimeId in previous)) {\n return previous;\n }\n const { [prefetchRuntimeId]: _removed, ...rest } = previous;\n return rest;\n });\n },\n markDirty: (marker: ExecutionDirtyMarker) => {\n assertExecutionDirtyMarkerShape(marker);\n setDirtyMarkers((previous) => ({\n ...previous,\n [marker.markerId]: marker,\n }));\n },\n clearDirty: (markerId: string) => {\n setDirtyMarkers((previous) => {\n if (!(markerId in previous)) {\n return previous;\n }\n const { [markerId]: _removed, ...rest } = previous;\n return rest;\n });\n },\n clearAllDirty: () => {\n setDirtyMarkers((previous) => (\n Object.keys(previous).length === 0 ? previous : {}\n ));\n },\n captureFailedAction: (failedAction: ExecutionFailedAction) => {\n assertExecutionFailedActionShape(failedAction);\n setFailedActions((previous) => ({\n ...previous,\n [failedAction.failureRuntimeId]: failedAction,\n }));\n },\n clearFailedAction: (failureRuntimeId: string) => {\n setFailedActions((previous) => {\n if (!(failureRuntimeId in previous)) {\n return previous;\n }\n const { [failureRuntimeId]: _removed, ...rest } = previous;\n return rest;\n });\n },\n clearAllFailedActions: () => {\n setFailedActions((previous) => (\n Object.keys(previous).length === 0 ? previous : {}\n ));\n },\n clearFailedActionsForPrefetchKey: (prefetchKey: string) => {\n setFailedActions((previous) => pruneFailedActionsForPrefetchSettlement(previous, prefetchKey));\n },\n }), [navigate, navigationZone]);\n\n if (!viewDefinition) {\n return <ViewNotFound viewKind=\"execution\" viewRef={viewRef} />;\n }\n\n // I-4: gate on i18n readiness so the embedded-content slot's localized\n // strings never flash their raw key paths on first paint.\n if (!isI18nReady) return null;\n\n const t = (key: 'embeddedTitle' | 'embeddedDescription' | 'embeddedClose'): string =>\n resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n key,\n });\n\n const ExecutionComponent: React.ComponentType<ExecutionViewComponentProps> = viewDefinition.viewComponent;\n const embeddedContentState = runtimeState.embeddedContent;\n const embeddedResourceContent = embeddedContentState?.content ?? null;\n const executionSurface = (\n <React.Suspense fallback={<div className=\"h-8 animate-pulse motion-reduce:animate-none bg-muted rounded\" aria-hidden=\"true\" />}>\n <ExecutionComponent\n viewRef={viewDefinition.ref}\n viewDefinition={viewDefinition}\n contextResourceIdentifiers={contextResourceIdentifiers}\n />\n </React.Suspense>\n );\n\n return (\n <ExecutionRuntimeProvider\n viewDefinition={viewDefinition}\n contextResourceIdentifiers={contextResourceIdentifiers}\n runtimeInstanceId={runtimeInstanceId}\n navigationZone={navigationZone}\n doOperation={doOperation}\n navigation={navigation}\n anchor={anchor}\n participations={participations}\n runtimeState={runtimeState}\n >\n {/* Primary-zone navigation chrome (back + icon + title + description) —\n the same band resource pages get from ResourceLayout_Header. Self-\n suppresses when embedded (hostProvidesHeading) or untitled, so\n resource-inserted execution views keep their section-host heading. */}\n <ViewLayout_Header\n // The label contract needs the NAVIGABLE ref (full inserted ref for\n // resource-owned views); the icon registry keys on the definition's\n // local ref. Both are passed explicitly — see ViewLayoutHeaderProps.\n viewRef={viewRef ?? viewDefinition.ref}\n iconViewRef={viewDefinition.ref}\n contentType={NavigationContentType.EXECUTION_VIEW}\n hasAuthoredIcon={Boolean(viewDefinition.icon)}\n navigationZone={navigationZone}\n className=\"mb-group\"\n />\n {/*\n Failure-handling contract — render-error tier. Wrap the execution\n view's rendered contents in the canonical application `ErrorBoundary`\n rather than reinventing an execution-scoped fallback. A render crash\n inside the custom execution component (or the embedded slot) shows\n the standard `AppLayout_ErrorBoundary` fallback within this shell,\n and the boundary's own `componentDidCatch` already emits `ERROR_OCCURED`\n on the canonical bus — preserving the single-bus invariant.\n */}\n <ErrorBoundary>\n {/*\n The fill chain (#1259). When the view declares `zoneContentFillsHeight`, the zone boundary is a\n definite-height flex column and the view's own root sizes itself with `flex-1 min-h-0`. With\n embedded content open, this grid sits between the two, so it must pass the height on: `flex-1`\n takes the boundary's height (inert when the boundary is not a flex column), the single auto row\n stretches to it, and each cell is a flex column so a filling root — or the scrolling embed —\n resolves against the row. Outside fill mode every one of these classes is a no-op.\n */}\n {embeddedResourceContent ? (\n <div className=\"grid min-h-0 flex-1 gap-group xl:grid-cols-[minmax(0,1fr)_minmax(360px,480px)]\">\n <div className=\"flex min-w-0 min-h-0 flex-col\">\n {executionSurface}\n </div>\n <aside className=\"flex min-w-0 min-h-0 flex-col overflow-hidden rounded-lg border bg-background\">\n <div className=\"flex items-center justify-between border-b px-card py-item-sm\">\n <div className=\"min-w-0\">\n <div className=\"text-sm font-medium text-foreground\">{t('embeddedTitle')}</div>\n <div className=\"text-xs text-muted-foreground\">\n {t('embeddedDescription')}\n </div>\n </div>\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.LINK}\n size={ButtonSize.SM}\n onClick={() => {\n navigation.closeEmbeddedContent();\n }}\n >\n {t('embeddedClose')}\n </Button>\n </div>\n <div className=\"min-h-0 flex-1 overflow-auto\">\n {/*\n Slice F — dirty-bridge scope. Anything the embed renders\n (typically `ResourceLayout_Update` → `ResourceAutomatedForm`\n with an attached RMM) auto-publishes its dirty markers\n under `EMBEDDED_CONTENT` scope without the form having to\n know it is embedded. Combined with the dirty contract's\n prune-on-embed-close behavior, this gives every UPDATE-embed\n consumer the full publisher loop for free.\n */}\n <ExecutionDirtyMarkerScopeProvider\n scope={{ scope: ExecutionDirtyMarkerScope.EMBEDDED_CONTENT }}\n >\n <ResourceOperationSurface\n resourceContext={embeddedResourceContent.resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={embeddedContentState?.navigationInitiator}\n />\n </ExecutionDirtyMarkerScopeProvider>\n </div>\n </aside>\n </div>\n ) : executionSurface}\n </ErrorBoundary>\n </ExecutionRuntimeProvider>\n );\n};\n\nexport default ExecutionView;\n"]}
|
|
1
|
+
{"version":3,"file":"ExecutionView.js","sourceRoot":"","sources":["../../../../../src/components/views/execution-view/ExecutionView.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EACL,8BAA8B,GAC/B,MAAM,wDAAwD,CAAC;AAKhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,6DAA6D,CAAC;AACtG,OAAO,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AACxF,OAAO,EACL,wBAAwB,EACxB,+BAA+B,EAC/B,gCAAgC,EAChC,gCAAgC,EAChC,qDAAqD,EACrD,mCAAmC,EACnC,yBAAyB,EACzB,0BAA0B,GAM3B,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EACL,kCAAkC,EAClC,+BAA+B,GAChC,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,mCAAmC,EACnC,uCAAuC,EACvC,gCAAgC,GACjC,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,EAAE,iCAAiC,EAAE,MAAM,qEAAqE,CAAC;AACxH,OAAO,EAAE,wBAAwB,EAAE,MAAM,mEAAmE,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,OAA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,cAAK,SAAS,EAAC,8BAA8B,YAU3C,KAAC,iCAAiC,IAChC,KAAK,EAAE,EAAE,KAAK,EAAE,yBAAyB,CAAC,gBAAgB,EAAE,YAE5D,KAAC,wBAAwB,IACvB,eAAe,EAAE,uBAAuB,CAAC,eAAe,EACxD,cAAc,EAAE,cAAc,EAC9B,mBAAmB,EAAE,oBAAoB,EAAE,mBAAmB,GAC9D,GACgC,GAChC,IACA,IACJ,CACP,CAAC,CAAC,CAAC,gBAAgB,GACN,IACS,CAC5B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import React, { useEffect, useMemo, useState } from 'react';\n\nimport {\n resolveExecutionViewDefinition,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport type {\n ExecutionViewComponentProps,\n ExecutionViewDefinition,\n} from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { useNavigationController } from '~wildo-frontend-lib/core/navigation/useNavigationController';\nimport { NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport {\n ExecutionRuntimeProvider,\n assertExecutionDirtyMarkerShape,\n assertExecutionEmbeddableContent,\n assertExecutionFailedActionShape,\n assertExecutionLocalPanePayloadIsNotEmbeddableContent,\n assertExecutionPendingPrefetchShape,\n ExecutionDirtyMarkerScope,\n ExecutionFailedActionScope,\n type ExecutionDirtyMarker,\n type ExecutionFailedAction,\n type ExecutionPendingAction,\n type ExecutionPendingPrefetch,\n type ExecutionRuntimeState,\n} from '~wildo-frontend-lib/core/execution/ExecutionRuntimeContext';\nimport { resolveExecutionAnchor } from '~wildo-frontend-lib/core/execution/execution-anchor.utils';\nimport {\n pruneDirtyMarkersForPaneTransition,\n pruneDirtyMarkersForScopeChange,\n} from '~wildo-frontend-lib/core/execution/execution-dirty-markers.utils';\nimport {\n pruneFailedActionsForPaneTransition,\n pruneFailedActionsForPrefetchSettlement,\n pruneFailedActionsForScopeChange,\n} from '~wildo-frontend-lib/core/execution/execution-failure-handling.utils';\nimport { resolveExecutionParticipations } from '~wildo-frontend-lib/core/execution/execution-participation.utils';\nimport { ExecutionDirtyMarkerScopeProvider } from '~wildo-frontend-lib/core/execution/ExecutionDirtyMarkerScopeContext';\nimport { ResourceOperationSurface } from '~wildo-frontend-lib/components/resources/ResourceOperationSurface';\nimport { ErrorBoundary } from '~wildo-frontend-lib/core/errors/ErrorBoundary';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { resolveComponentLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { FrontendComponentType, ButtonSize } from '@wildo-ai/presets-components-models';\nimport { ViewLayout_Header } from '~wildo-frontend-lib/components/views/ViewLayout_Header';\nimport { NavigationContentType } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { RequiredFeaturesGate } from '~wildo-frontend-lib/core/features/RequiredFeaturesGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\n\nexport interface ExecutionViewProps {\n /** View reference — resolved from UIContext internally. Mutually exclusive with `viewDefinition`. */\n viewRef?: string;\n /** Pre-resolved view definition. When provided, viewRef is ignored. */\n viewDefinition?: ExecutionViewDefinition;\n\n /**\n * Explicit navigation-time context bindings.\n *\n * The execution host follows the same boundary as other custom view families:\n * ambient primary scope stays live in AppScope, while explicit identifiers are\n * preserved on the navigation payload and merged last.\n */\n contextResourceIdentifiers?: Record<string, string>;\n navigationZone?: NavigationZone;\n /**\n * How the view shows when its plan fence refuses the scope: PAGE (the default) where the view IS the content of its\n * zone (its route, a pane, an overlay), TILE where a page embeds it, so a locked embed keeps its place instead of\n * becoming a page-sized prompt. The view gates itself wherever it is rendered, as a composite view does.\n */\n featureGatePresentation?: RequiredFeaturesGatePresentation;\n}\n\nfunction createRuntimeInstanceId(): string {\n if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {\n return `execution-${crypto.randomUUID()}`;\n }\n\n return `execution-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;\n}\n\n/**\n * Framework-owned execution host.\n *\n * This component intentionally mirrors the scope-resolution model already used by\n * `FullCustomView`, but adds a minimal execution runtime provider so later slices\n * can grow execution-specific hooks without changing the routed host seam.\n */\nexport const ExecutionView: React.FC<ExecutionViewProps> = ({\n featureGatePresentation = RequiredFeaturesGatePresentation.PAGE,\n ...hostProps\n}) => {\n const { registry } = useResourceRegistry();\n const requiredFeatures = (hostProps.viewDefinition ?? resolveExecutionViewDefinition({ viewRef: hostProps.viewRef, registry }))?.requiredFeatures;\n // The view's plan fence, wherever it is shown (its route, a pane, an overlay, an embed on a record). Gated OUTSIDE the\n // host, so a refused scope never mounts the execution runtime and its effects (prefetched participations, actions).\n return (\n <RequiredFeaturesGate requiredFeatures={requiredFeatures} presentation={featureGatePresentation}>\n <ExecutionViewHost {...hostProps} />\n </RequiredFeaturesGate>\n );\n};\n\n/** The execution host itself, once the view's plan fence admits the scope ({@link ExecutionView}). */\nconst ExecutionViewHost: React.FC<Omit<ExecutionViewProps, 'featureGatePresentation'>> = ({\n viewRef,\n viewDefinition: viewDefinitionProp,\n contextResourceIdentifiers: contextResourceIdentifiersProp,\n navigationZone = NavigationZone.PRIMARY,\n}) => {\n const appScope = useAppScopeSafe();\n const { doOperation, registry } = useResourceRegistry();\n const { navigate } = useNavigationController();\n const { tComponent, isReady: isI18nReady } = useI18n({\n component: FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n });\n const [embeddedContent, setEmbeddedContent] = useState<ExecutionRuntimeState['embeddedContent']>(null);\n const [localPane, setLocalPane] = useState<ExecutionRuntimeState['localPane']>(null);\n const [pendingActions, setPendingActions] = useState<ExecutionRuntimeState['pendingActions']>({});\n const [participationPrefetchActions, setParticipationPrefetchActions] = useState<ExecutionRuntimeState['participationPrefetchActions']>({});\n const [dirtyMarkers, setDirtyMarkers] = useState<ExecutionRuntimeState['dirtyMarkers']>({});\n const [failedActions, setFailedActions] = useState<ExecutionRuntimeState['failedActions']>({});\n\n const viewDefinition = viewDefinitionProp ?? resolveExecutionViewDefinition({\n viewRef,\n registry,\n });\n const runtimeInstanceId = useMemo(\n () => createRuntimeInstanceId(),\n [viewDefinition?.ref],\n );\n\n useEffect(() => {\n if (\n process.env.NODE_ENV === 'production'\n || viewDefinition\n || !viewRef\n || !contextResourceIdentifiersProp\n || Object.keys(contextResourceIdentifiersProp).length === 0\n ) {\n return;\n }\n\n console.warn('[ExecutionView] Cannot validate explicit view context bindings because the view definition could not be resolved', {\n surfaceName: 'ExecutionView',\n surfaceRef: viewRef,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [contextResourceIdentifiersProp, viewDefinition, viewRef]);\n\n const contextResourceIdentifiers = useMemo(() => {\n const primaryScopeInitiatorIds = ScopeUtilsService.buildInitiatorIds({\n userId: appScope?.currentUserId,\n organizationId: appScope?.currentOrganizationId,\n applicationId: appScope?.currentApplicationId,\n anonymousUserId: appScope?.currentAnonymousUserId,\n });\n const primaryScopeContext =\n viewDefinition?.primaryScope\n ? ScopeUtilsService.primaryScopeToContextIdentifiers(\n primaryScopeInitiatorIds,\n viewDefinition.primaryScope,\n )\n : {};\n const liveAppScopeContext = appScope?.buildContextResourceIdentifiers() ?? {};\n const customScopeContext = ScopeUtilsService.filterCustomScopeContextResourceIdentifiers(liveAppScopeContext);\n\n if (!viewDefinition) {\n return ScopeUtilsService.mergeContextResourceIdentifiers(\n primaryScopeContext,\n customScopeContext,\n contextResourceIdentifiersProp,\n );\n }\n\n // Drop inherited ancestor keys the execution view never scopes by. A flow\n // launched from a nested route inherits that route's FULL ancestor chain plus\n // the ambient AppScope bundle (which always carries the current `users` id),\n // but an execution view scopes only by its declared contract\n // (primaryScope + parent/additional requirements). Forwarding the raw bundle\n // trips the dev-only \"context bindings outside its declared contract\" warning\n // and bloats the resolved context. This mirrors the render-time scoping that\n // CompositeView and the chart runtime already apply — ExecutionView was the one\n // view family missing it.\n const allowedBindingKeys = ScopeUtilsService.getAllowedViewBindingKeys({\n primaryScope: viewDefinition.primaryScope,\n parentResourcesRequirements: viewDefinition.parentResourcesRequirements,\n additionalResourceRequirements: viewDefinition.additionalResourceRequirements,\n });\n return ScopeUtilsService.resolveViewContextResourceIdentifiers({\n surfaceName: 'ExecutionView',\n surfaceRef: viewDefinition.ref,\n primaryScope: viewDefinition.primaryScope,\n parentResourcesRequirements: viewDefinition.parentResourcesRequirements,\n additionalResourceRequirements: viewDefinition.additionalResourceRequirements,\n primaryScopeContext,\n customScopeContext,\n explicitContextResourceIdentifiers: ScopeUtilsService.scopeContextToBindingContract(\n contextResourceIdentifiersProp,\n allowedBindingKeys,\n ),\n });\n }, [\n contextResourceIdentifiersProp,\n viewDefinition?.primaryScope,\n viewDefinition?.ref,\n viewDefinition?.parentResourcesRequirements,\n viewDefinition?.additionalResourceRequirements,\n appScope?.currentUserId,\n appScope?.currentOrganizationId,\n appScope?.currentApplicationId,\n appScope?.currentAnonymousUserId,\n appScope,\n ]);\n\n const anchor = useMemo(() => {\n if (!viewDefinition) {\n return null;\n }\n\n return resolveExecutionAnchor(viewDefinition, contextResourceIdentifiersProp);\n }, [viewDefinition, contextResourceIdentifiersProp]);\n\n const runtimeState = useMemo<ExecutionRuntimeState>(() => ({\n embeddedContent,\n localPane,\n pendingActions,\n participationPrefetchActions,\n dirtyMarkers,\n failedActions,\n }), [embeddedContent, localPane, pendingActions, participationPrefetchActions, dirtyMarkers, failedActions]);\n\n const participations = useMemo(() => {\n if (!viewDefinition) {\n return {};\n }\n\n return resolveExecutionParticipations({\n viewDefinition,\n registry,\n anchor,\n contextResourceIdentifiers,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [\n anchor,\n contextResourceIdentifiers,\n contextResourceIdentifiersProp,\n registry,\n viewDefinition,\n ]);\n\n const navigation = useMemo(() => ({\n delegateToParent: (options: {\n content: Parameters<typeof navigate>[0]['content'];\n urlPath?: string;\n contextResourceIdentifiers?: Record<string, string>;\n relationshipTransition?: Parameters<typeof navigate>[0]['relationshipTransition'];\n initiator?: Omit<Parameters<typeof navigate>[0]['initiator'], 'sourceZone'>;\n }) => {\n navigate({\n content: options.content,\n urlPath: options.urlPath,\n contextResourceIdentifiers: options.contextResourceIdentifiers,\n relationshipTransition: options.relationshipTransition,\n initiator: {\n sourceZone: navigationZone,\n ...(options.initiator ?? {}),\n },\n });\n },\n openEmbeddedContent: (nextEmbeddedContent) => {\n assertExecutionEmbeddableContent(nextEmbeddedContent.content);\n setEmbeddedContent(nextEmbeddedContent);\n setDirtyMarkers((previous) => pruneDirtyMarkersForScopeChange(previous, ExecutionDirtyMarkerScope.EMBEDDED_CONTENT));\n setFailedActions((previous) => pruneFailedActionsForScopeChange(previous, ExecutionFailedActionScope.EMBEDDED_CONTENT));\n },\n closeEmbeddedContent: () => {\n setEmbeddedContent(null);\n setDirtyMarkers((previous) => pruneDirtyMarkersForScopeChange(previous, ExecutionDirtyMarkerScope.EMBEDDED_CONTENT));\n setFailedActions((previous) => pruneFailedActionsForScopeChange(previous, ExecutionFailedActionScope.EMBEDDED_CONTENT));\n },\n openLocalPane: (paneId: string, payload?: unknown) => {\n assertExecutionLocalPanePayloadIsNotEmbeddableContent(payload);\n setLocalPane({ paneId, payload });\n setDirtyMarkers((previous) => pruneDirtyMarkersForPaneTransition(previous, paneId));\n setFailedActions((previous) => pruneFailedActionsForPaneTransition(previous, paneId));\n },\n closeLocalPane: () => {\n setLocalPane(null);\n setDirtyMarkers((previous) => pruneDirtyMarkersForPaneTransition(previous, null));\n setFailedActions((previous) => pruneFailedActionsForPaneTransition(previous, null));\n },\n beginPendingAction: (action: ExecutionPendingAction) => {\n setPendingActions((previous) => ({\n ...previous,\n [action.actionRuntimeId]: action,\n }));\n },\n endPendingAction: (actionRuntimeId: string) => {\n setPendingActions((previous) => {\n if (!(actionRuntimeId in previous)) {\n return previous;\n }\n const { [actionRuntimeId]: _removed, ...rest } = previous;\n return rest;\n });\n },\n beginParticipationPrefetch: (prefetch: ExecutionPendingPrefetch) => {\n assertExecutionPendingPrefetchShape(prefetch);\n setParticipationPrefetchActions((previous) => ({\n ...previous,\n [prefetch.prefetchRuntimeId]: prefetch,\n }));\n },\n endParticipationPrefetch: (prefetchRuntimeId: string) => {\n setParticipationPrefetchActions((previous) => {\n if (!(prefetchRuntimeId in previous)) {\n return previous;\n }\n const { [prefetchRuntimeId]: _removed, ...rest } = previous;\n return rest;\n });\n },\n markDirty: (marker: ExecutionDirtyMarker) => {\n assertExecutionDirtyMarkerShape(marker);\n setDirtyMarkers((previous) => ({\n ...previous,\n [marker.markerId]: marker,\n }));\n },\n clearDirty: (markerId: string) => {\n setDirtyMarkers((previous) => {\n if (!(markerId in previous)) {\n return previous;\n }\n const { [markerId]: _removed, ...rest } = previous;\n return rest;\n });\n },\n clearAllDirty: () => {\n setDirtyMarkers((previous) => (\n Object.keys(previous).length === 0 ? previous : {}\n ));\n },\n captureFailedAction: (failedAction: ExecutionFailedAction) => {\n assertExecutionFailedActionShape(failedAction);\n setFailedActions((previous) => ({\n ...previous,\n [failedAction.failureRuntimeId]: failedAction,\n }));\n },\n clearFailedAction: (failureRuntimeId: string) => {\n setFailedActions((previous) => {\n if (!(failureRuntimeId in previous)) {\n return previous;\n }\n const { [failureRuntimeId]: _removed, ...rest } = previous;\n return rest;\n });\n },\n clearAllFailedActions: () => {\n setFailedActions((previous) => (\n Object.keys(previous).length === 0 ? previous : {}\n ));\n },\n clearFailedActionsForPrefetchKey: (prefetchKey: string) => {\n setFailedActions((previous) => pruneFailedActionsForPrefetchSettlement(previous, prefetchKey));\n },\n }), [navigate, navigationZone]);\n\n if (!viewDefinition) {\n return <ViewNotFound viewKind=\"execution\" viewRef={viewRef} />;\n }\n\n // I-4: gate on i18n readiness so the embedded-content slot's localized\n // strings never flash their raw key paths on first paint.\n if (!isI18nReady) return null;\n\n const t = (key: 'embeddedTitle' | 'embeddedDescription' | 'embeddedClose'): string =>\n resolveComponentLabel({\n tComponent,\n componentType: FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n key,\n });\n\n const ExecutionComponent: React.ComponentType<ExecutionViewComponentProps> = viewDefinition.viewComponent;\n const embeddedContentState = runtimeState.embeddedContent;\n const embeddedResourceContent = embeddedContentState?.content ?? null;\n const executionSurface = (\n <React.Suspense fallback={<div className=\"h-8 animate-pulse motion-reduce:animate-none bg-muted rounded\" aria-hidden=\"true\" />}>\n <ExecutionComponent\n viewRef={viewDefinition.ref}\n viewDefinition={viewDefinition}\n contextResourceIdentifiers={contextResourceIdentifiers}\n />\n </React.Suspense>\n );\n\n return (\n <ExecutionRuntimeProvider\n viewDefinition={viewDefinition}\n contextResourceIdentifiers={contextResourceIdentifiers}\n runtimeInstanceId={runtimeInstanceId}\n navigationZone={navigationZone}\n doOperation={doOperation}\n navigation={navigation}\n anchor={anchor}\n participations={participations}\n runtimeState={runtimeState}\n >\n {/* Primary-zone navigation chrome (back + icon + title + description) —\n the same band resource pages get from ResourceLayout_Header. Self-\n suppresses when embedded (hostProvidesHeading) or untitled, so\n resource-inserted execution views keep their section-host heading. */}\n <ViewLayout_Header\n // The label contract needs the NAVIGABLE ref (full inserted ref for\n // resource-owned views); the icon registry keys on the definition's\n // local ref. Both are passed explicitly — see ViewLayoutHeaderProps.\n viewRef={viewRef ?? viewDefinition.ref}\n iconViewRef={viewDefinition.ref}\n contentType={NavigationContentType.EXECUTION_VIEW}\n hasAuthoredIcon={Boolean(viewDefinition.icon)}\n navigationZone={navigationZone}\n className=\"mb-group\"\n />\n {/*\n Failure-handling contract — render-error tier. Wrap the execution\n view's rendered contents in the canonical application `ErrorBoundary`\n rather than reinventing an execution-scoped fallback. A render crash\n inside the custom execution component (or the embedded slot) shows\n the standard `AppLayout_ErrorBoundary` fallback within this shell,\n and the boundary's own `componentDidCatch` already emits `ERROR_OCCURED`\n on the canonical bus — preserving the single-bus invariant.\n */}\n <ErrorBoundary>\n {/*\n The fill chain (#1259). When the view declares `zoneContentFillsHeight`, the zone boundary is a\n definite-height flex column and the view's own root sizes itself with `flex-1 min-h-0`. With\n embedded content open, this grid sits between the two, so it must pass the height on: `flex-1`\n takes the boundary's height (inert when the boundary is not a flex column), the single auto row\n stretches to it, and each cell is a flex column so a filling root — or the scrolling embed —\n resolves against the row. Outside fill mode every one of these classes is a no-op.\n */}\n {embeddedResourceContent ? (\n <div className=\"grid min-h-0 flex-1 gap-group xl:grid-cols-[minmax(0,1fr)_minmax(360px,480px)]\">\n <div className=\"flex min-w-0 min-h-0 flex-col\">\n {executionSurface}\n </div>\n <aside className=\"flex min-w-0 min-h-0 flex-col overflow-hidden rounded-lg border bg-background\">\n <div className=\"flex items-center justify-between border-b px-card py-item-sm\">\n <div className=\"min-w-0\">\n <div className=\"text-sm font-medium text-foreground\">{t('embeddedTitle')}</div>\n <div className=\"text-xs text-muted-foreground\">\n {t('embeddedDescription')}\n </div>\n </div>\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.LINK}\n size={ButtonSize.SM}\n onClick={() => {\n navigation.closeEmbeddedContent();\n }}\n >\n {t('embeddedClose')}\n </Button>\n </div>\n <div className=\"min-h-0 flex-1 overflow-auto\">\n {/*\n Slice F — dirty-bridge scope. Anything the embed renders\n (typically `ResourceLayout_Update` → `ResourceAutomatedForm`\n with an attached RMM) auto-publishes its dirty markers\n under `EMBEDDED_CONTENT` scope without the form having to\n know it is embedded. Combined with the dirty contract's\n prune-on-embed-close behavior, this gives every UPDATE-embed\n consumer the full publisher loop for free.\n */}\n <ExecutionDirtyMarkerScopeProvider\n scope={{ scope: ExecutionDirtyMarkerScope.EMBEDDED_CONTENT }}\n >\n <ResourceOperationSurface\n resourceContext={embeddedResourceContent.resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={embeddedContentState?.navigationInitiator}\n />\n </ExecutionDirtyMarkerScopeProvider>\n </div>\n </aside>\n </div>\n ) : executionSurface}\n </ErrorBoundary>\n </ExecutionRuntimeProvider>\n );\n};\n\nexport default ExecutionView;\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WorkUnitRef } from '@wildo-ai/saas-models';
|
|
3
3
|
import type { FlowsActorsViewDefinition } from '../../../core/config/flows-actors-view.schemas';
|
|
4
|
+
import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation';
|
|
4
5
|
export interface FlowsActorsViewProps {
|
|
5
6
|
viewRef?: string;
|
|
6
7
|
viewDefinition?: FlowsActorsViewDefinition;
|
|
@@ -36,6 +37,12 @@ export interface FlowsActorsViewProps {
|
|
|
36
37
|
* link once settled under this key is never applied again, even by a remounted view (`held-conversation-selection`).
|
|
37
38
|
*/
|
|
38
39
|
linkKey?: string;
|
|
40
|
+
/**
|
|
41
|
+
* How the view shows when its plan fence refuses the scope: PAGE (the default) where the view IS the content of its
|
|
42
|
+
* zone (its route, a pane, an overlay), TILE where a page embeds it, so a locked embed keeps its place instead of
|
|
43
|
+
* becoming a page-sized prompt. The view gates itself wherever it is rendered, as a composite view does.
|
|
44
|
+
*/
|
|
45
|
+
featureGatePresentation?: RequiredFeaturesGatePresentation;
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
41
48
|
* FlowsActorsView — chat-first engine host for a standalone flows-actors surface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowsActorsView.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/FlowsActorsView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAE7F,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAC;
|
|
1
|
+
{"version":3,"file":"FlowsActorsView.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/FlowsActorsView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAE7F,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAC;AA2C3G,OAAO,EAAE,gCAAgC,EAAE,MAAM,uEAAuE,CAAC;AAUzH,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,yBAAyB,CAAC;IAC3C,0BAA0B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,2BAA2B,CAAC,EAAE,MAAM,IAAI,CAAC;IACzC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,gCAAgC,CAAC;CAC5D;AA8ZD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6G1D,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -17,6 +17,8 @@ import { cn } from '../../../core/ui/cn.js';
|
|
|
17
17
|
import { heldConversationKey, holdConversation, isLinkedConversationSettled, linkedConversationIdentity, markLinkedConversationSettled, readHeldConversation, } from '../../../components/views/flows-actors-view/held-conversation-selection.js';
|
|
18
18
|
import { AgentReplyReportAction } from '../../../components/views/flows-actors-view/AgentReplyReportAction.js';
|
|
19
19
|
import { HostedLinkedConversationContext } from '../../../components/views/flows-actors-view/linked-conversation.context.js';
|
|
20
|
+
import { RequiredFeaturesGate } from '../../../core/features/RequiredFeaturesGate.js';
|
|
21
|
+
import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation.js';
|
|
20
22
|
// ─── Helpers ────────────────────────────────────────────────────────────────
|
|
21
23
|
/**
|
|
22
24
|
* A discussion's title is the person's own first words, shortened. An EMPTY result is meaningful: the discussion has
|
|
@@ -370,7 +372,7 @@ const CompactHeader = ({ system }) => {
|
|
|
370
372
|
* continued thread replays its prior turns to the agent. The actor/flow structural detail is not shown — this is the
|
|
371
373
|
* assistant surface.
|
|
372
374
|
*/
|
|
373
|
-
export const FlowsActorsView = ({ viewRef, viewDefinition: viewDefinitionProp, contextResourceIdentifiers: contextResourceIdentifiersProp, caseRef, linkedConversationId, onLinkedConversationSettled, linkKey, }) => {
|
|
375
|
+
export const FlowsActorsView = ({ viewRef, viewDefinition: viewDefinitionProp, contextResourceIdentifiers: contextResourceIdentifiersProp, caseRef, linkedConversationId, onLinkedConversationSettled, linkKey, featureGatePresentation = RequiredFeaturesGatePresentation.PAGE, }) => {
|
|
374
376
|
const { flowsActorsViews } = useUI();
|
|
375
377
|
const appScope = useAppScopeSafe();
|
|
376
378
|
const { systems, isLoading } = useFlowsActors();
|
|
@@ -439,7 +441,9 @@ export const FlowsActorsView = ({ viewRef, viewDefinition: viewDefinitionProp, c
|
|
|
439
441
|
return _jsx(ViewNotFound, { viewKind: "flows-actors" });
|
|
440
442
|
if (!isReady)
|
|
441
443
|
return null;
|
|
442
|
-
|
|
444
|
+
// The view's plan fence, wherever it is shown (its route, a pane, the utility panel, an embed): the conversation is
|
|
445
|
+
// not opened for a scope without the features the view declares.
|
|
446
|
+
return (_jsx(RequiredFeaturesGate, { requiredFeatures: viewDefinition.requiredFeatures, presentation: featureGatePresentation, children: _jsx("div", { className: "flex h-full min-h-0 flex-col", children: activeSystem ? (_jsxs(_Fragment, { children: [_jsx(CompactHeader, { system: activeSystem }), _jsx("div", { className: "flex min-h-0 flex-1 flex-col pt-card-sm", children: _jsx(ChatWorkspace, { system: activeSystem, contextResourceIdentifiers: viewContextResourceIdentifiers, preset: viewDefinition.layoutPreset, caseRef: caseRef, linkedConversationId: effectiveLinkedConversationId, onLinkedConversationSettled: effectiveOnLinkedConversationSettled, linkKey: effectiveLinkKey }) })] })) : (_jsx("div", { role: "status", className: "p-section text-sm text-muted-foreground", children: isLoading ? t('loading') : t('unavailable') })) }) }));
|
|
443
447
|
};
|
|
444
448
|
export default FlowsActorsView;
|
|
445
449
|
//# sourceMappingURL=FlowsActorsView.js.map
|