@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomaticDisplayer.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/AutomaticDisplayer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AACvH,OAAO,KAAK,EAAE,iBAAiB,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AACxI,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,mEAAmE,CAAC;AAIpI,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,kBAAkB,EAAE,M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iBAAiB,EACjB,mBAAmB,EACnB,GAAG,EACH,8BAA4E,EAC5E,cAAc,EACd,SAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACnB,iBAAiB,EACf,wBAAwB,EACxB,gBAAgB,EAChB,4BAA4B,EAC5B,yBAAyB,GAC1B,EAAE,uBAAuB,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAwStD;kBArUQ,2BAA2B;;;AAyUpC,eAAO,MAAM,kBAAkB,EAAE,OAAO,2BAA2B,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAgC,CAAC"}
|
|
@@ -26,6 +26,7 @@ import { UIContext } from '../../core/ui/UIContext.js';
|
|
|
26
26
|
import { useResourceLabels } from '../../core/resources/useResourceLabels.js';
|
|
27
27
|
import { LoggerFrontendService } from '../../core/monitoring/logger.frontend.service.js';
|
|
28
28
|
import { pickInlineFieldWriteOperation, resolveRecordOrganizationId } from '../../core/resources/resource-addressability.frontend.utils.js';
|
|
29
|
+
import { ViewerFieldReaderProvider } from '../../core/navigation/viewer-field-reader.js';
|
|
29
30
|
import { useViewerEffectiveRolesInOrganization } from '../../core/navigation/launcher-runtime-availability.js';
|
|
30
31
|
import { ResourceDisplayContext, InlineEditMutationError, } from './automatic-displayer.utils.js';
|
|
31
32
|
import { buildInlineUpdateRequestData } from './display-field-resolution.utils.js';
|
|
@@ -55,7 +56,8 @@ function AutomaticDisplayerComponent({ schema, data, className, labels, layoutRe
|
|
|
55
56
|
});
|
|
56
57
|
// ── Inline editing ──
|
|
57
58
|
// The viewer's roles in the tenant this record belongs to, which the in-place write pick asks about (#2473).
|
|
58
|
-
const
|
|
59
|
+
const recordOrganizationId = resolveRecordOrganizationId(resourceType, resourceId, contextResourceIdentifiers);
|
|
60
|
+
const inlineWriteViewer = useViewerEffectiveRolesInOrganization(recordOrganizationId);
|
|
59
61
|
const resolveInlineUpdateOperation = useCallback(() => {
|
|
60
62
|
if (inlineEditOperation === null) {
|
|
61
63
|
return null;
|
|
@@ -255,7 +257,10 @@ function AutomaticDisplayerComponent({ schema, data, className, labels, layoutRe
|
|
|
255
257
|
// A displayer is a fresh display ROOT: its chrome starts from its own default, and it starts outside any
|
|
256
258
|
// `<FieldTiles>` host it happens to render inside (an FK preview in a tile) — otherwise its fields took
|
|
257
259
|
// the host's empty-fact default and hid what the same preview prints elsewhere (audit B-11).
|
|
258
|
-
|
|
260
|
+
//
|
|
261
|
+
// The field reader judges the record's fields in the tenant the record belongs to (#4434 review F2), the organization
|
|
262
|
+
// the in-place write pick above already reads: a platform operator opening another tenant's record is judged there.
|
|
263
|
+
return (_jsx(ViewerFieldReaderProvider, { organizationId: recordOrganizationId, children: _jsx(ResourceDisplayContext.Provider, { value: resourceDisplayContextValue, children: _jsx(FieldTilesContext.Provider, { value: false, children: _jsx(DisplayChromeProvider, { displayChromeMode: defaultDisplayChromeMode, children: _jsx(DisplayTemplateProvider, { value: displayTemplateContextValue, children: _jsx("div", { className: cn('space-y-section', className), children: layoutTemplate ? React.createElement(layoutTemplate) : null }) }) }) }) }) }));
|
|
259
264
|
}
|
|
260
265
|
AutomaticDisplayerComponent.displayName = 'AutomaticDisplayer';
|
|
261
266
|
export const AutomaticDisplayer = AutomaticDisplayerComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomaticDisplayer.js","sourceRoot":"","sources":["../../../../src/components/data-display/AutomaticDisplayer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAMhE,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AACzH,OAAO,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,MAAM,2EAA2E,CAAC;AAItJ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a;QACb,mBAAmB;QACnB,WAAW;QACX,wBAAwB;QACxB,kBAAkB;QAClB,gBAAgB;QAChB,4BAA4B;QAC5B,yBAAyB;KAC1B,CAAC,CAAC;IAEH,kCAAkC;IAElC,yGAAyG;IACzG,wGAAwG;IACxG,6FAA6F;IAC7F,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,2BAA2B,YACjE,KAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACtC,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,wBAAwB,YAChE,KAAC,uBAAuB,IAAC,KAAK,EAAE,2BAA2B,YACzD,cAAK,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,YAC7C,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,GACxD,GACkB,GACJ,GACG,GACG,CACnC,CAAC;AACJ,CAAC;AAED,2BAA2B,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAE/D,MAAM,CAAC,MAAM,kBAAkB,GAAiE,2BAA2B,CAAC","sourcesContent":["/**\n * AutomaticDisplayer Component\n *\n * Renders a display template inside a provider stack:\n * ResourceDisplayContext → DisplayChromeContext → DisplayTemplateContext → template\n *\n * The template is a `React.ComponentType` instantiated inside `<DisplayTemplateProvider>`,\n * so it can call `useDisplayTemplateContext()` for `data`, `isLoading`, labels, etc.\n * The template is structurally stable (created from schema) and data-reactive\n * (context data changes trigger re-renders).\n *\n * Inline editing is wired through ResourceDisplayContext.\n */\n\nimport React, { useMemo, useCallback, useContext } from 'react';\nimport { z } from 'zod';\n\nimport type { FileActivationOperationDispatcher } from '~wildo-frontend-lib/components/data-display/useFileActivation';\nimport type { LayoutRefManifest, ResourceLayoutInlineEditDefault } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport type { FrontendResource_ParentResourceRequirement } from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport { CoreResourceOperation, ResourceOperationVariantType } from '@wildo-ai/saas-models';\nimport { ViewportBreakpoint, getObjectLikeFieldSchema, normalizeClearedMainSchemaValue } from '@wildo-ai/zod-decorators';\nimport { carryStoredDiscriminators, resolveDiscriminatorFieldNames } from '~wildo-frontend-lib/core/resources/resource-discriminators.frontend.utils';\nimport type { DisplayChromeMode, ResponsiveAware, FileFieldEndpoints } from '@wildo-ai/zod-decorators';\nimport type { AutoEmptyValue } from '@wildo-ai/presets-components-models';\n\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { frontendResourceUtils, FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { ResourcesConfig_OperationPathUtils } from '@wildo-ai/saas-models';\nimport type { ResourceMutationManager } from '~wildo-frontend-lib/core/resources/rmm/ResourceMutationManager';\nimport { MutationType, MutationPriority, MutationSourceType } from '~wildo-frontend-lib/core/resources/rmm/types';\nimport {\n allowsDirectOperationFallback,\n MissingRMMRuntimeError,\n UpdateLikeMutationFallbackMode,\n} from '~wildo-frontend-lib/core/resources/rmm/update-like-mutation-fallback.frontend';\nimport { UIContext } from '~wildo-frontend-lib/core/ui/UIContext';\nimport { useResourceLabels } from '~wildo-frontend-lib/core/resources/useResourceLabels';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport type { NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport type { FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { pickInlineFieldWriteOperation, resolveRecordOrganizationId } from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\nimport { useViewerEffectiveRolesInOrganization } from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\n\nimport {\n ResourceDisplayContext,\n InlineEditMutationError,\n type ResourceDisplayContextValue,\n type ParentReferenceConfig,\n} from './automatic-displayer.utils';\nimport { buildInlineUpdateRequestData } from './display-field-resolution.utils';\n\nimport { DisplayChromeProvider } from './chromes/DisplayChromeContext';\nimport { FieldTilesContext } from './chromes/field-tiles.utils';\nimport { DisplayTemplateProvider, type DisplayTemplateContextValue } from './DisplayTemplateContext';\nimport type { ContainerSectionMode } from '@wildo-ai/zod-decorators';\n\nconst logger = LoggerFrontendService.getLogger();\nconst logDebug = logger.debugByType('AutomaticDisplayer');\nlogger.setDebugTypeLogging('AutomaticDisplayer', false);\n\n// =============================================================================\n// TYPES\n// =============================================================================\n\nexport interface AutomaticDisplayerLabels {\n resourceContext?: { resourceType: string; operationId: string };\n /**\n * Resolve this schema's labels as if its fields sat at `<fieldPathPrefix>.<path>` in the resource.\n *\n * For a surface rendering the ITEM SHAPE of a collection that lives elsewhere in the owning\n * resource — see `UseResourceLabelsOptions.fieldPathPrefix` for the full reasoning (#638).\n */\n fieldPathPrefix?: string;\n fields?: Record<string, string>;\n enums?: Record<string, Record<string, string>>;\n sections?: Record<string, { titleKey?: string; descriptionKey?: string }>;\n}\n\nexport interface AutomaticDisplayerProps<TSchema extends z.ZodTypeAny> {\n schema: TSchema;\n data: z.infer<TSchema>;\n className?: string;\n labels?: AutomaticDisplayerLabels;\n\n /** Layout ref manifest for i18n label resolution of sections/groups. */\n layoutRefs?: LayoutRefManifest;\n\n resourceType?: string;\n resourceId?: string;\n contextualParameters?: Record<string, string | number>;\n contextResourceIdentifiers?: Record<string, string | { fieldIdentifier: string; resourceId: string }>;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n navigationZone?: NavigationZone;\n inlineEditOperation?: FrontendResourceConfiguration_Operation | null;\n parentReferenceConfig?: ParentReferenceConfig;\n /**\n * Caller-owned weaker-guarantee override for inline edit.\n *\n * Providing this hook bypasses the default RMM-backed engine path. The caller\n * becomes responsible for any queueing, conflict handling, canonical read-back,\n * and broader coherence guarantees they still want to preserve.\n */\n onInlineEdit?: (fieldName: string, value: unknown) => Promise<void>;\n disableInlineEdit?: boolean;\n fileUploadContext?: Record<string, FileFieldEndpoints>;\n onInlineEditSuccess?: (fieldName: string, value: unknown) => void;\n rmm?: ResourceMutationManager | null;\n /**\n * Controls whether inline edit may downgrade to a direct UPDATE operation when\n * RMM is unavailable. Defaults to `RMM_REQUIRED` so generic engine inline edit\n * does not silently pretend to be RMM-backed.\n *\n * The richer conflict-reset UX is only guaranteed on the single-resource\n * RMM-backed lane where the backend supplies authoritative nested\n * `versionConflict` details. Explicit direct fallback remains a weaker-\n * guarantee path.\n */\n updateLikeMutationFallbackMode?: UpdateLikeMutationFallbackMode;\n\n /**\n * The display template to render — a `React.ComponentType` instantiated inside\n * `<DisplayTemplateProvider>`. The component can call `useDisplayTemplateContext()`\n * to access `data`, `isLoading`, labels, and breakpoint.\n */\n layoutTemplate: React.ComponentType | null;\n\n /**\n * Whether data is still loading. When true, DisplayField renders skeletons (DD-9).\n * @default false\n */\n isLoading?: boolean;\n\n /**\n * Default chrome mode for display fields from `ResourceLayoutConfig.defaultChromeMode.display`.\n * Propagated to `DisplayChromeProvider.displayChromeMode`.\n */\n defaultDisplayChromeMode?: ResponsiveAware<DisplayChromeMode>;\n\n /**\n * The layout's inline-edit default, from `ResourceLayoutConfig.defaultInlineEdit`.\n * Forwarded opaquely into `ResourceDisplayContext` for `DisplayField` to consult — this component\n * is resource-unaware and never reads the resource config itself.\n */\n defaultInlineEdit?: ResourceLayoutInlineEditDefault;\n\n /**\n * The layout's empty-value strategy, from `ResourceLayoutConfig.defaultEmptyValue`.\n * Forwarded opaquely into `ResourceDisplayContext`; this component reads no resource config.\n */\n defaultEmptyValue?: AutoEmptyValue;\n /**\n * The layout's DISPLAY section container mode, from\n * `ResourceLayoutConfig.defaultDisplaySectionAppearance`. Adopted by a `<Section>` that declares\n * no `appearance` of its own; a section that declares one still wins.\n */\n defaultSectionAppearance?: ContainerSectionMode;\n\n /**\n * Opaque upstream shaping input for automatic READ templates.\n * Resource-aware wrappers can hide duplicate relationship-backed fields\n * without teaching generic display components relationship semantics.\n */\n hiddenFieldNames?: string[];\n\n /**\n * Opaque upstream shaping input for automatic READ templates.\n * Keeps generic inline edit fail-closed for relationship object/array slots.\n */\n inlineEditDisabledFieldNames?: string[];\n /**\n * Dispatcher for `FileActivationPolicy.CUSTOM` file activations — supplied by the\n * resource-aware host, forwarded opaquely into `DisplayTemplateContext` for the\n * generic file displayer. Absent under a non-resource host.\n */\n onFileActivationOperation?: FileActivationOperationDispatcher;\n\n}\n\n// =============================================================================\n// COMPONENT\n// =============================================================================\n\nfunction AutomaticDisplayerComponent<TSchema extends z.ZodTypeAny>({\n schema,\n data,\n className,\n labels,\n layoutRefs,\n resourceType,\n resourceId,\n contextualParameters,\n contextResourceIdentifiers,\n parentResourcesRequirements,\n navigationZone,\n inlineEditOperation,\n parentReferenceConfig,\n onInlineEdit,\n disableInlineEdit = false,\n fileUploadContext,\n onInlineEditSuccess,\n rmm,\n updateLikeMutationFallbackMode = UpdateLikeMutationFallbackMode.RMM_REQUIRED,\n layoutTemplate,\n isLoading = false,\n defaultDisplayChromeMode,\n defaultInlineEdit,\ndefaultEmptyValue,\n defaultSectionAppearance,\n hiddenFieldNames,\n inlineEditDisabledFieldNames,\n onFileActivationOperation,\n}: AutomaticDisplayerProps<TSchema>): React.JSX.Element {\n const { doOperation, registry } = useResourceRegistry();\n\n // ── Breakpoint resolution ──\n const uiContext = useContext(UIContext);\n const viewportBreakpoint: ViewportBreakpoint = uiContext?.UIConfig?.currentBreakpoint ?? ViewportBreakpoint.DESKTOP;\n\n // ── Labels from i18n ──\n const {\n fieldLabels,\n fieldDescriptions,\n fieldTooltips,\n enumLabels,\n sectionLabels,\n sectionDescriptions,\n groupLabels,\n } = useResourceLabels(\n schema,\n labels?.resourceContext,\n data as Record<string, unknown>,\n 'display',\n {\n layoutRefs,\n fieldPathPrefix: labels?.fieldPathPrefix,\n overrides: {\n fields: labels?.fields,\n enums: labels?.enums,\n sections: labels?.sections,\n },\n },\n );\n\n // ── Inline editing ──\n\n // The viewer's roles in the tenant this record belongs to, which the in-place write pick asks about (#2473).\n const inlineWriteViewer = useViewerEffectiveRolesInOrganization(\n resolveRecordOrganizationId(resourceType, resourceId, contextResourceIdentifiers),\n );\n\n const resolveInlineUpdateOperation = useCallback((): FrontendResourceConfiguration_Operation | null => {\n if (inlineEditOperation === null) {\n return null;\n }\n if (inlineEditOperation !== undefined) {\n const isUrlBearingOperation = inlineEditOperation.variantType === ResourceOperationVariantType.API_CALL;\n const effectiveOperation = inlineEditOperation.resourceOperationLike ?? inlineEditOperation.operationIdentifier;\n // The LITERAL `update`, never a custom verb that borrows UPDATE semantics. `effectiveOperation`\n // alone admits `claimDomain`, `moveUnit`, `archive` — each a real, non-bulk, URL-bearing PUT that\n // satisfies every other clause here, and each with its OWN request contract. A field value sent\n // to one of them is a malformed call to a different action, not a partial update of the record.\n const isLiteralUpdateOperation = inlineEditOperation.operationIdentifier === CoreResourceOperation.UPDATE;\n if (!isUrlBearingOperation || !isLiteralUpdateOperation || inlineEditOperation.isBulkOperation === true || effectiveOperation !== CoreResourceOperation.UPDATE) {\n logDebug('Rejected invalid inlineEditOperation', {\n operationIdentifier: String(inlineEditOperation.operationIdentifier),\n variantType: inlineEditOperation.variantType,\n variantKey: inlineEditOperation.variantKey,\n isBulkOperation: inlineEditOperation.isBulkOperation,\n effectiveOperation: String(effectiveOperation),\n });\n throw new InlineEditMutationError(\n 'inlineEditOperation must be the non-bulk URL-bearing literal UPDATE operation, not a custom verb borrowing UPDATE semantics',\n );\n }\n return inlineEditOperation;\n }\n if (!resourceType || !resourceId) {\n return null;\n }\n\n const resourceConfig = registry.resourceConfigurations[resourceType];\n if (!resourceConfig) {\n return null;\n }\n\n const fieldIdentifier = FrontendResourceUtils.getResourceFieldIdentifierForType(resourceType, registry);\n const updateContextResourceIdentifiers = frontendResourceUtils.buildRecordIdentifiersFromCollection(\n contextResourceIdentifiers,\n resourceType,\n resourceId,\n );\n const updateContextualParameters = {\n ...(contextualParameters ?? {}),\n [fieldIdentifier]: resourceId,\n };\n\n return pickInlineFieldWriteOperation({\n resourceConfig,\n operations: resourceConfig.operations ?? [],\n registry,\n hasResourceId: frontendResourceUtils.getResourceId(updateContextResourceIdentifiers[resourceType]).length > 0,\n requireFrontendAddressable: true,\n contextResourceIdentifiers: updateContextResourceIdentifiers,\n contextualParameters: updateContextualParameters,\n viewer: inlineWriteViewer,\n }) ?? null;\n }, [contextResourceIdentifiers, contextualParameters, inlineEditOperation, registry, resourceId, resourceType, inlineWriteViewer]);\n\n const hasUpdateOperation = useMemo(() => {\n return resolveInlineUpdateOperation() !== null;\n }, [resolveInlineUpdateOperation]);\n\n // Discriminator field name(s) for this resource. A discriminated-union (polymorphic)\n // resource keeps its discriminator REQUIRED on the UPDATE requestDto (it selects the\n // variant the body is validated against), so every PARTIAL inline update must carry it —\n // otherwise the backend rejects the update with `<discriminator>: Invalid input`. Resolved\n // from the display schema's COMMON shape (the discriminator is shared across all variants).\n const discriminatorFieldNames = useMemo(() => resolveDiscriminatorFieldNames(schema), [schema]);\n\n const doInlineUpdate = useCallback(async (fieldName: string, rawValue: unknown): Promise<void> => {\n // FIELD-CLEARING CONTRACT — inline edit builds its payload outside the form entirely, so it\n // does not pass through `FormField`'s change handler and has to apply the same normalisation\n // itself. Without it, emptying a field inline sends `''` (persisting an empty string, or\n // failing validation on a refined field) instead of the clear the user asked for.\n // This surface holds the resource's MAIN schema, so it uses the main-schema entry point: on a\n // main schema an `.optional()` field does not accept null, and asking the request-DTO question\n // here would report every ordinary optional field un-clearable.\n const fieldSchema = schema ? getObjectLikeFieldSchema(schema, fieldName) : undefined;\n const value = fieldSchema ? normalizeClearedMainSchemaValue(fieldSchema, rawValue) : rawValue;\n\n logDebug('doInlineUpdate', {\n fieldName,\n path: onInlineEdit ? 'custom' : rmm ? 'rmm' : 'fallback',\n });\n\n if (onInlineEdit) {\n await onInlineEdit(fieldName, value);\n onInlineEditSuccess?.(fieldName, value);\n return;\n }\n\n if (rmm) {\n const transportOverride = inlineEditOperation\n ? {\n operationPathKey: ResourcesConfig_OperationPathUtils.createOperationPathKeyFromOperation(inlineEditOperation),\n }\n : undefined;\n // The RMM adds the record's stored discriminator when it sends, so a polymorphic resource's partial UPDATE\n // selects its variant (`resource-discriminators.frontend.utils.ts`).\n const result = await rmm.queueMutation(\n { [fieldName]: value },\n {\n type: MutationType.INLINE,\n priority: MutationPriority.LOW,\n source: { type: MutationSourceType.DISPLAY, subscriberId: 'display-inline' },\n transportOverride,\n },\n );\n if (!result.success) {\n throw new InlineEditMutationError(\n result.error?.message ?? 'Inline edit failed',\n result.error,\n );\n }\n onInlineEditSuccess?.(fieldName, value);\n return;\n }\n\n if (\n allowsDirectOperationFallback(updateLikeMutationFallbackMode)\n && resourceType\n && resourceId\n ) {\n const updateOperation = resolveInlineUpdateOperation();\n if (!updateOperation) {\n throw new Error(\n `No UPDATE operation configured for resource \"${resourceType}\". ` +\n `Inline editing requires an UPDATE.default operation.`\n );\n }\n const operationPathKey = ResourcesConfig_OperationPathUtils.createOperationPathKeyFromOperation(updateOperation);\n const fieldIdentifier = FrontendResourceUtils.getResourceFieldIdentifierForType(resourceType, registry);\n const mergedContextualParameters: Record<string, string | number> = {\n ...contextualParameters,\n [fieldIdentifier]: resourceId,\n };\n await doOperation(operationPathKey, {\n contextualParameters: mergedContextualParameters,\n parentResourcesRequirements,\n // Sent at once, so it carries the discriminator of the record it shows (the RMM lane adds it when it sends).\n requestData: carryStoredDiscriminators(\n buildInlineUpdateRequestData(data as Record<string, unknown> | null | undefined, fieldName, value),\n discriminatorFieldNames,\n data as Record<string, unknown> | null | undefined,\n ),\n });\n onInlineEditSuccess?.(fieldName, value);\n return;\n }\n\n throw new MissingRMMRuntimeError({\n surfaceName: 'AutomaticDisplayer inline edit',\n resourceType: resourceType ?? 'unknown',\n operationIdentifier: inlineEditOperation?.operationIdentifier ?? CoreResourceOperation.UPDATE,\n });\n }, [\n onInlineEdit,\n rmm,\n resourceType,\n resourceId,\n contextualParameters,\n parentResourcesRequirements,\n doOperation,\n registry,\n onInlineEditSuccess,\n resolveInlineUpdateOperation,\n updateLikeMutationFallbackMode,\n inlineEditOperation,\n discriminatorFieldNames,\n data,\n schema,\n ]);\n\n const canInlineEdit = !disableInlineEdit && (\n !!onInlineEdit\n || !!rmm\n || (\n allowsDirectOperationFallback(updateLikeMutationFallbackMode)\n && !!resourceType\n && !!resourceId\n && hasUpdateOperation\n )\n );\n\n // ── Context values ──\n\n const resourceDisplayContextValue = useMemo<ResourceDisplayContextValue>(() => ({\n resourceType,\n resourceId,\n doInlineUpdate,\n canInlineEdit,\n defaultInlineEdit,\n defaultEmptyValue,\n fileUploadContext,\n contextualParameters,\n contextResourceIdentifiers,\n navigationZone,\n parentReferenceConfig,\n rmm,\n }), [resourceType, resourceId, doInlineUpdate, canInlineEdit, defaultInlineEdit, defaultEmptyValue, fileUploadContext, contextualParameters, contextResourceIdentifiers, navigationZone, parentReferenceConfig, rmm]);\n\n const displayTemplateContextValue = useMemo<DisplayTemplateContextValue>(() => ({\n schema,\n data: isLoading ? undefined : (data as Record<string, unknown>),\n isLoading,\n fieldLabels,\n fieldDescriptions,\n fieldTooltips,\n enumLabels,\n sectionLabels,\n sectionDescriptions,\n groupLabels,\n defaultSectionAppearance,\n breakpoint: viewportBreakpoint,\n hiddenFieldNames,\n inlineEditDisabledFieldNames,\n onFileActivationOperation,\n }), [\n schema,\n data,\n isLoading,\n fieldLabels,\n fieldDescriptions,\n fieldTooltips,\n enumLabels,\n sectionLabels,\n sectionDescriptions,\n groupLabels,\n defaultSectionAppearance,\n viewportBreakpoint,\n hiddenFieldNames,\n inlineEditDisabledFieldNames,\n onFileActivationOperation,\n ]);\n\n // ── Provider stack → template ──\n\n // A displayer is a fresh display ROOT: its chrome starts from its own default, and it starts outside any\n // `<FieldTiles>` host it happens to render inside (an FK preview in a tile) — otherwise its fields took\n // the host's empty-fact default and hid what the same preview prints elsewhere (audit B-11).\n return (\n <ResourceDisplayContext.Provider value={resourceDisplayContextValue}>\n <FieldTilesContext.Provider value={false}>\n <DisplayChromeProvider displayChromeMode={defaultDisplayChromeMode}>\n <DisplayTemplateProvider value={displayTemplateContextValue}>\n <div className={cn('space-y-section', className)}>\n {layoutTemplate ? React.createElement(layoutTemplate) : null}\n </div>\n </DisplayTemplateProvider>\n </DisplayChromeProvider>\n </FieldTilesContext.Provider>\n </ResourceDisplayContext.Provider>\n );\n}\n\nAutomaticDisplayerComponent.displayName = 'AutomaticDisplayer';\n\nexport const AutomaticDisplayer: typeof AutomaticDisplayerComponent & { displayName: string } = AutomaticDisplayerComponent;\n"]}
|
|
1
|
+
{"version":3,"file":"AutomaticDisplayer.js","sourceRoot":"","sources":["../../../../src/components/data-display/AutomaticDisplayer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAMhE,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AACzH,OAAO,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,MAAM,2EAA2E,CAAC;AAItJ,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAC1H,OAAO,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClH,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,+EAA+E,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,M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,EAAE,2BAA2B,YACjE,KAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACtC,KAAC,qBAAqB,IAAC,iBAAiB,EAAE,wBAAwB,YAChE,KAAC,uBAAuB,IAAC,KAAK,EAAE,2BAA2B,YACzD,cAAK,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,YAC7C,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,GACxD,GACkB,GACJ,GACG,GACG,GACN,CAC7B,CAAC;AACJ,CAAC;AAED,2BAA2B,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAE/D,MAAM,CAAC,MAAM,kBAAkB,GAAiE,2BAA2B,CAAC","sourcesContent":["/**\n * AutomaticDisplayer Component\n *\n * Renders a display template inside a provider stack:\n * ResourceDisplayContext → DisplayChromeContext → DisplayTemplateContext → template\n *\n * The template is a `React.ComponentType` instantiated inside `<DisplayTemplateProvider>`,\n * so it can call `useDisplayTemplateContext()` for `data`, `isLoading`, labels, etc.\n * The template is structurally stable (created from schema) and data-reactive\n * (context data changes trigger re-renders).\n *\n * Inline editing is wired through ResourceDisplayContext.\n */\n\nimport React, { useMemo, useCallback, useContext } from 'react';\nimport { z } from 'zod';\n\nimport type { FileActivationOperationDispatcher } from '~wildo-frontend-lib/components/data-display/useFileActivation';\nimport type { LayoutRefManifest, ResourceLayoutInlineEditDefault } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport type { FrontendResource_ParentResourceRequirement } from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport { CoreResourceOperation, ResourceOperationVariantType } from '@wildo-ai/saas-models';\nimport { ViewportBreakpoint, getObjectLikeFieldSchema, normalizeClearedMainSchemaValue } from '@wildo-ai/zod-decorators';\nimport { carryStoredDiscriminators, resolveDiscriminatorFieldNames } from '~wildo-frontend-lib/core/resources/resource-discriminators.frontend.utils';\nimport type { DisplayChromeMode, ResponsiveAware, FileFieldEndpoints } from '@wildo-ai/zod-decorators';\nimport type { AutoEmptyValue } from '@wildo-ai/presets-components-models';\n\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { frontendResourceUtils, FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { ResourcesConfig_OperationPathUtils } from '@wildo-ai/saas-models';\nimport type { ResourceMutationManager } from '~wildo-frontend-lib/core/resources/rmm/ResourceMutationManager';\nimport { MutationType, MutationPriority, MutationSourceType } from '~wildo-frontend-lib/core/resources/rmm/types';\nimport {\n allowsDirectOperationFallback,\n MissingRMMRuntimeError,\n UpdateLikeMutationFallbackMode,\n} from '~wildo-frontend-lib/core/resources/rmm/update-like-mutation-fallback.frontend';\nimport { UIContext } from '~wildo-frontend-lib/core/ui/UIContext';\nimport { useResourceLabels } from '~wildo-frontend-lib/core/resources/useResourceLabels';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport type { NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport type { FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { pickInlineFieldWriteOperation, resolveRecordOrganizationId } from '~wildo-frontend-lib/core/resources/resource-addressability.frontend.utils';\nimport { ViewerFieldReaderProvider } from '~wildo-frontend-lib/core/navigation/viewer-field-reader';\nimport { useViewerEffectiveRolesInOrganization } from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\n\nimport {\n ResourceDisplayContext,\n InlineEditMutationError,\n type ResourceDisplayContextValue,\n type ParentReferenceConfig,\n} from './automatic-displayer.utils';\nimport { buildInlineUpdateRequestData } from './display-field-resolution.utils';\n\nimport { DisplayChromeProvider } from './chromes/DisplayChromeContext';\nimport { FieldTilesContext } from './chromes/field-tiles.utils';\nimport { DisplayTemplateProvider, type DisplayTemplateContextValue } from './DisplayTemplateContext';\nimport type { ContainerSectionMode } from '@wildo-ai/zod-decorators';\n\nconst logger = LoggerFrontendService.getLogger();\nconst logDebug = logger.debugByType('AutomaticDisplayer');\nlogger.setDebugTypeLogging('AutomaticDisplayer', false);\n\n// =============================================================================\n// TYPES\n// =============================================================================\n\nexport interface AutomaticDisplayerLabels {\n resourceContext?: { resourceType: string; operationId: string };\n /**\n * Resolve this schema's labels as if its fields sat at `<fieldPathPrefix>.<path>` in the resource.\n *\n * For a surface rendering the ITEM SHAPE of a collection that lives elsewhere in the owning\n * resource — see `UseResourceLabelsOptions.fieldPathPrefix` for the full reasoning (#638).\n */\n fieldPathPrefix?: string;\n fields?: Record<string, string>;\n enums?: Record<string, Record<string, string>>;\n sections?: Record<string, { titleKey?: string; descriptionKey?: string }>;\n}\n\nexport interface AutomaticDisplayerProps<TSchema extends z.ZodTypeAny> {\n schema: TSchema;\n data: z.infer<TSchema>;\n className?: string;\n labels?: AutomaticDisplayerLabels;\n\n /** Layout ref manifest for i18n label resolution of sections/groups. */\n layoutRefs?: LayoutRefManifest;\n\n resourceType?: string;\n resourceId?: string;\n contextualParameters?: Record<string, string | number>;\n contextResourceIdentifiers?: Record<string, string | { fieldIdentifier: string; resourceId: string }>;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n navigationZone?: NavigationZone;\n inlineEditOperation?: FrontendResourceConfiguration_Operation | null;\n parentReferenceConfig?: ParentReferenceConfig;\n /**\n * Caller-owned weaker-guarantee override for inline edit.\n *\n * Providing this hook bypasses the default RMM-backed engine path. The caller\n * becomes responsible for any queueing, conflict handling, canonical read-back,\n * and broader coherence guarantees they still want to preserve.\n */\n onInlineEdit?: (fieldName: string, value: unknown) => Promise<void>;\n disableInlineEdit?: boolean;\n fileUploadContext?: Record<string, FileFieldEndpoints>;\n onInlineEditSuccess?: (fieldName: string, value: unknown) => void;\n rmm?: ResourceMutationManager | null;\n /**\n * Controls whether inline edit may downgrade to a direct UPDATE operation when\n * RMM is unavailable. Defaults to `RMM_REQUIRED` so generic engine inline edit\n * does not silently pretend to be RMM-backed.\n *\n * The richer conflict-reset UX is only guaranteed on the single-resource\n * RMM-backed lane where the backend supplies authoritative nested\n * `versionConflict` details. Explicit direct fallback remains a weaker-\n * guarantee path.\n */\n updateLikeMutationFallbackMode?: UpdateLikeMutationFallbackMode;\n\n /**\n * The display template to render — a `React.ComponentType` instantiated inside\n * `<DisplayTemplateProvider>`. The component can call `useDisplayTemplateContext()`\n * to access `data`, `isLoading`, labels, and breakpoint.\n */\n layoutTemplate: React.ComponentType | null;\n\n /**\n * Whether data is still loading. When true, DisplayField renders skeletons (DD-9).\n * @default false\n */\n isLoading?: boolean;\n\n /**\n * Default chrome mode for display fields from `ResourceLayoutConfig.defaultChromeMode.display`.\n * Propagated to `DisplayChromeProvider.displayChromeMode`.\n */\n defaultDisplayChromeMode?: ResponsiveAware<DisplayChromeMode>;\n\n /**\n * The layout's inline-edit default, from `ResourceLayoutConfig.defaultInlineEdit`.\n * Forwarded opaquely into `ResourceDisplayContext` for `DisplayField` to consult — this component\n * is resource-unaware and never reads the resource config itself.\n */\n defaultInlineEdit?: ResourceLayoutInlineEditDefault;\n\n /**\n * The layout's empty-value strategy, from `ResourceLayoutConfig.defaultEmptyValue`.\n * Forwarded opaquely into `ResourceDisplayContext`; this component reads no resource config.\n */\n defaultEmptyValue?: AutoEmptyValue;\n /**\n * The layout's DISPLAY section container mode, from\n * `ResourceLayoutConfig.defaultDisplaySectionAppearance`. Adopted by a `<Section>` that declares\n * no `appearance` of its own; a section that declares one still wins.\n */\n defaultSectionAppearance?: ContainerSectionMode;\n\n /**\n * Opaque upstream shaping input for automatic READ templates.\n * Resource-aware wrappers can hide duplicate relationship-backed fields\n * without teaching generic display components relationship semantics.\n */\n hiddenFieldNames?: string[];\n\n /**\n * Opaque upstream shaping input for automatic READ templates.\n * Keeps generic inline edit fail-closed for relationship object/array slots.\n */\n inlineEditDisabledFieldNames?: string[];\n /**\n * Dispatcher for `FileActivationPolicy.CUSTOM` file activations — supplied by the\n * resource-aware host, forwarded opaquely into `DisplayTemplateContext` for the\n * generic file displayer. Absent under a non-resource host.\n */\n onFileActivationOperation?: FileActivationOperationDispatcher;\n\n}\n\n// =============================================================================\n// COMPONENT\n// =============================================================================\n\nfunction AutomaticDisplayerComponent<TSchema extends z.ZodTypeAny>({\n schema,\n data,\n className,\n labels,\n layoutRefs,\n resourceType,\n resourceId,\n contextualParameters,\n contextResourceIdentifiers,\n parentResourcesRequirements,\n navigationZone,\n inlineEditOperation,\n parentReferenceConfig,\n onInlineEdit,\n disableInlineEdit = false,\n fileUploadContext,\n onInlineEditSuccess,\n rmm,\n updateLikeMutationFallbackMode = UpdateLikeMutationFallbackMode.RMM_REQUIRED,\n layoutTemplate,\n isLoading = false,\n defaultDisplayChromeMode,\n defaultInlineEdit,\ndefaultEmptyValue,\n defaultSectionAppearance,\n hiddenFieldNames,\n inlineEditDisabledFieldNames,\n onFileActivationOperation,\n}: AutomaticDisplayerProps<TSchema>): React.JSX.Element {\n const { doOperation, registry } = useResourceRegistry();\n\n // ── Breakpoint resolution ──\n const uiContext = useContext(UIContext);\n const viewportBreakpoint: ViewportBreakpoint = uiContext?.UIConfig?.currentBreakpoint ?? ViewportBreakpoint.DESKTOP;\n\n // ── Labels from i18n ──\n const {\n fieldLabels,\n fieldDescriptions,\n fieldTooltips,\n enumLabels,\n sectionLabels,\n sectionDescriptions,\n groupLabels,\n } = useResourceLabels(\n schema,\n labels?.resourceContext,\n data as Record<string, unknown>,\n 'display',\n {\n layoutRefs,\n fieldPathPrefix: labels?.fieldPathPrefix,\n overrides: {\n fields: labels?.fields,\n enums: labels?.enums,\n sections: labels?.sections,\n },\n },\n );\n\n // ── Inline editing ──\n\n // The viewer's roles in the tenant this record belongs to, which the in-place write pick asks about (#2473).\n const recordOrganizationId = resolveRecordOrganizationId(resourceType, resourceId, contextResourceIdentifiers);\n const inlineWriteViewer = useViewerEffectiveRolesInOrganization(recordOrganizationId);\n\n const resolveInlineUpdateOperation = useCallback((): FrontendResourceConfiguration_Operation | null => {\n if (inlineEditOperation === null) {\n return null;\n }\n if (inlineEditOperation !== undefined) {\n const isUrlBearingOperation = inlineEditOperation.variantType === ResourceOperationVariantType.API_CALL;\n const effectiveOperation = inlineEditOperation.resourceOperationLike ?? inlineEditOperation.operationIdentifier;\n // The LITERAL `update`, never a custom verb that borrows UPDATE semantics. `effectiveOperation`\n // alone admits `claimDomain`, `moveUnit`, `archive` — each a real, non-bulk, URL-bearing PUT that\n // satisfies every other clause here, and each with its OWN request contract. A field value sent\n // to one of them is a malformed call to a different action, not a partial update of the record.\n const isLiteralUpdateOperation = inlineEditOperation.operationIdentifier === CoreResourceOperation.UPDATE;\n if (!isUrlBearingOperation || !isLiteralUpdateOperation || inlineEditOperation.isBulkOperation === true || effectiveOperation !== CoreResourceOperation.UPDATE) {\n logDebug('Rejected invalid inlineEditOperation', {\n operationIdentifier: String(inlineEditOperation.operationIdentifier),\n variantType: inlineEditOperation.variantType,\n variantKey: inlineEditOperation.variantKey,\n isBulkOperation: inlineEditOperation.isBulkOperation,\n effectiveOperation: String(effectiveOperation),\n });\n throw new InlineEditMutationError(\n 'inlineEditOperation must be the non-bulk URL-bearing literal UPDATE operation, not a custom verb borrowing UPDATE semantics',\n );\n }\n return inlineEditOperation;\n }\n if (!resourceType || !resourceId) {\n return null;\n }\n\n const resourceConfig = registry.resourceConfigurations[resourceType];\n if (!resourceConfig) {\n return null;\n }\n\n const fieldIdentifier = FrontendResourceUtils.getResourceFieldIdentifierForType(resourceType, registry);\n const updateContextResourceIdentifiers = frontendResourceUtils.buildRecordIdentifiersFromCollection(\n contextResourceIdentifiers,\n resourceType,\n resourceId,\n );\n const updateContextualParameters = {\n ...(contextualParameters ?? {}),\n [fieldIdentifier]: resourceId,\n };\n\n return pickInlineFieldWriteOperation({\n resourceConfig,\n operations: resourceConfig.operations ?? [],\n registry,\n hasResourceId: frontendResourceUtils.getResourceId(updateContextResourceIdentifiers[resourceType]).length > 0,\n requireFrontendAddressable: true,\n contextResourceIdentifiers: updateContextResourceIdentifiers,\n contextualParameters: updateContextualParameters,\n viewer: inlineWriteViewer,\n }) ?? null;\n }, [contextResourceIdentifiers, contextualParameters, inlineEditOperation, registry, resourceId, resourceType, inlineWriteViewer]);\n\n const hasUpdateOperation = useMemo(() => {\n return resolveInlineUpdateOperation() !== null;\n }, [resolveInlineUpdateOperation]);\n\n // Discriminator field name(s) for this resource. A discriminated-union (polymorphic)\n // resource keeps its discriminator REQUIRED on the UPDATE requestDto (it selects the\n // variant the body is validated against), so every PARTIAL inline update must carry it —\n // otherwise the backend rejects the update with `<discriminator>: Invalid input`. Resolved\n // from the display schema's COMMON shape (the discriminator is shared across all variants).\n const discriminatorFieldNames = useMemo(() => resolveDiscriminatorFieldNames(schema), [schema]);\n\n const doInlineUpdate = useCallback(async (fieldName: string, rawValue: unknown): Promise<void> => {\n // FIELD-CLEARING CONTRACT — inline edit builds its payload outside the form entirely, so it\n // does not pass through `FormField`'s change handler and has to apply the same normalisation\n // itself. Without it, emptying a field inline sends `''` (persisting an empty string, or\n // failing validation on a refined field) instead of the clear the user asked for.\n // This surface holds the resource's MAIN schema, so it uses the main-schema entry point: on a\n // main schema an `.optional()` field does not accept null, and asking the request-DTO question\n // here would report every ordinary optional field un-clearable.\n const fieldSchema = schema ? getObjectLikeFieldSchema(schema, fieldName) : undefined;\n const value = fieldSchema ? normalizeClearedMainSchemaValue(fieldSchema, rawValue) : rawValue;\n\n logDebug('doInlineUpdate', {\n fieldName,\n path: onInlineEdit ? 'custom' : rmm ? 'rmm' : 'fallback',\n });\n\n if (onInlineEdit) {\n await onInlineEdit(fieldName, value);\n onInlineEditSuccess?.(fieldName, value);\n return;\n }\n\n if (rmm) {\n const transportOverride = inlineEditOperation\n ? {\n operationPathKey: ResourcesConfig_OperationPathUtils.createOperationPathKeyFromOperation(inlineEditOperation),\n }\n : undefined;\n // The RMM adds the record's stored discriminator when it sends, so a polymorphic resource's partial UPDATE\n // selects its variant (`resource-discriminators.frontend.utils.ts`).\n const result = await rmm.queueMutation(\n { [fieldName]: value },\n {\n type: MutationType.INLINE,\n priority: MutationPriority.LOW,\n source: { type: MutationSourceType.DISPLAY, subscriberId: 'display-inline' },\n transportOverride,\n },\n );\n if (!result.success) {\n throw new InlineEditMutationError(\n result.error?.message ?? 'Inline edit failed',\n result.error,\n );\n }\n onInlineEditSuccess?.(fieldName, value);\n return;\n }\n\n if (\n allowsDirectOperationFallback(updateLikeMutationFallbackMode)\n && resourceType\n && resourceId\n ) {\n const updateOperation = resolveInlineUpdateOperation();\n if (!updateOperation) {\n throw new Error(\n `No UPDATE operation configured for resource \"${resourceType}\". ` +\n `Inline editing requires an UPDATE.default operation.`\n );\n }\n const operationPathKey = ResourcesConfig_OperationPathUtils.createOperationPathKeyFromOperation(updateOperation);\n const fieldIdentifier = FrontendResourceUtils.getResourceFieldIdentifierForType(resourceType, registry);\n const mergedContextualParameters: Record<string, string | number> = {\n ...contextualParameters,\n [fieldIdentifier]: resourceId,\n };\n await doOperation(operationPathKey, {\n contextualParameters: mergedContextualParameters,\n parentResourcesRequirements,\n // Sent at once, so it carries the discriminator of the record it shows (the RMM lane adds it when it sends).\n requestData: carryStoredDiscriminators(\n buildInlineUpdateRequestData(data as Record<string, unknown> | null | undefined, fieldName, value),\n discriminatorFieldNames,\n data as Record<string, unknown> | null | undefined,\n ),\n });\n onInlineEditSuccess?.(fieldName, value);\n return;\n }\n\n throw new MissingRMMRuntimeError({\n surfaceName: 'AutomaticDisplayer inline edit',\n resourceType: resourceType ?? 'unknown',\n operationIdentifier: inlineEditOperation?.operationIdentifier ?? CoreResourceOperation.UPDATE,\n });\n }, [\n onInlineEdit,\n rmm,\n resourceType,\n resourceId,\n contextualParameters,\n parentResourcesRequirements,\n doOperation,\n registry,\n onInlineEditSuccess,\n resolveInlineUpdateOperation,\n updateLikeMutationFallbackMode,\n inlineEditOperation,\n discriminatorFieldNames,\n data,\n schema,\n ]);\n\n const canInlineEdit = !disableInlineEdit && (\n !!onInlineEdit\n || !!rmm\n || (\n allowsDirectOperationFallback(updateLikeMutationFallbackMode)\n && !!resourceType\n && !!resourceId\n && hasUpdateOperation\n )\n );\n\n // ── Context values ──\n\n const resourceDisplayContextValue = useMemo<ResourceDisplayContextValue>(() => ({\n resourceType,\n resourceId,\n doInlineUpdate,\n canInlineEdit,\n defaultInlineEdit,\n defaultEmptyValue,\n fileUploadContext,\n contextualParameters,\n contextResourceIdentifiers,\n navigationZone,\n parentReferenceConfig,\n rmm,\n }), [resourceType, resourceId, doInlineUpdate, canInlineEdit, defaultInlineEdit, defaultEmptyValue, fileUploadContext, contextualParameters, contextResourceIdentifiers, navigationZone, parentReferenceConfig, rmm]);\n\n const displayTemplateContextValue = useMemo<DisplayTemplateContextValue>(() => ({\n schema,\n data: isLoading ? undefined : (data as Record<string, unknown>),\n isLoading,\n fieldLabels,\n fieldDescriptions,\n fieldTooltips,\n enumLabels,\n sectionLabels,\n sectionDescriptions,\n groupLabels,\n defaultSectionAppearance,\n breakpoint: viewportBreakpoint,\n hiddenFieldNames,\n inlineEditDisabledFieldNames,\n onFileActivationOperation,\n }), [\n schema,\n data,\n isLoading,\n fieldLabels,\n fieldDescriptions,\n fieldTooltips,\n enumLabels,\n sectionLabels,\n sectionDescriptions,\n groupLabels,\n defaultSectionAppearance,\n viewportBreakpoint,\n hiddenFieldNames,\n inlineEditDisabledFieldNames,\n onFileActivationOperation,\n ]);\n\n // ── Provider stack → template ──\n\n // A displayer is a fresh display ROOT: its chrome starts from its own default, and it starts outside any\n // `<FieldTiles>` host it happens to render inside (an FK preview in a tile) — otherwise its fields took\n // the host's empty-fact default and hid what the same preview prints elsewhere (audit B-11).\n //\n // The field reader judges the record's fields in the tenant the record belongs to (#4434 review F2), the organization\n // the in-place write pick above already reads: a platform operator opening another tenant's record is judged there.\n return (\n <ViewerFieldReaderProvider organizationId={recordOrganizationId}>\n <ResourceDisplayContext.Provider value={resourceDisplayContextValue}>\n <FieldTilesContext.Provider value={false}>\n <DisplayChromeProvider displayChromeMode={defaultDisplayChromeMode}>\n <DisplayTemplateProvider value={displayTemplateContextValue}>\n <div className={cn('space-y-section', className)}>\n {layoutTemplate ? React.createElement(layoutTemplate) : null}\n </div>\n </DisplayTemplateProvider>\n </DisplayChromeProvider>\n </FieldTilesContext.Provider>\n </ResourceDisplayContext.Provider>\n </ViewerFieldReaderProvider>\n );\n}\n\nAutomaticDisplayerComponent.displayName = 'AutomaticDisplayer';\n\nexport const AutomaticDisplayer: typeof AutomaticDisplayerComponent & { displayName: string } = AutomaticDisplayerComponent;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayField.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,OAAO,EACL,KAAK,iBAAiB,EAUtB,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,eAAe,EAEf,qBAAqB,EACrB,KAAK,eAAe,EAGrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAkB,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAc9F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"DisplayField.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,OAAO,EACL,KAAK,iBAAiB,EAUtB,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,eAAe,EAEf,qBAAqB,EACrB,KAAK,eAAe,EAGrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAkB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BAAiB,CAAC,EAAE,eAAe,CAAC;IACpC,kGAAkG;IAClG,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;CAC1C;AAMD,iBAAS,qBAAqB,CAAC,KAAK,EAAE,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAib1E;kBAjbQ,qBAAqB;;;AAqb9B,eAAO,MAAM,YAAY,EAAE,OAAO,qBAAqB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAA0B,CAAC;AAO1G,UAAU,8BAA8B;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,UAAU,8BAA8B;IACtC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,qBAAa,yBAA0B,SAAQ,KAAK,CAAC,SAAS,CAC5D,8BAA8B,EAC9B,8BAA8B,CAC/B;IACC,KAAK,EAAE,8BAA8B,CAAuB;IAE5D,MAAM,CAAC,wBAAwB,IAAI,8BAA8B;IAIjE,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI;IASjE,MAAM,IAAI,KAAK,CAAC,SAAS;CAc1B"}
|
|
@@ -39,6 +39,8 @@ import { DisplayFieldReadOnlyArraySection } from './DisplayFieldReadOnlyArraySec
|
|
|
39
39
|
import { DisplayFieldEditable } from './DisplayFieldEditable.js';
|
|
40
40
|
import { DisplayFieldEditableArray } from './DisplayFieldEditableArray.js';
|
|
41
41
|
import { useExternalDataFieldProvenance } from './external-data-provenance/useExternalDataFieldProvenance.js';
|
|
42
|
+
import { useViewerFieldReader, viewerMaySeeFieldOnPath } from '../../core/navigation/viewer-field-reader.js';
|
|
43
|
+
import { declareSectionContentRole, SectionContentRole, useSectionFieldPresence } from '../../components/resources/skeleton/SectionFieldsContext.js';
|
|
42
44
|
const logger = LoggerFrontendService.getLogger();
|
|
43
45
|
function resolveSurfaceDisplayChromeMode(value) {
|
|
44
46
|
switch (value) {
|
|
@@ -234,6 +236,9 @@ function DisplayFieldComponent(props) {
|
|
|
234
236
|
fieldName: !pathPrefix && !isArrayItemPath ? resolvedName : undefined,
|
|
235
237
|
enabled: displayContextKind !== DisplayContextKind.SUMMARY && !props.resourceLinkTrail,
|
|
236
238
|
});
|
|
239
|
+
const fieldReader = useViewerFieldReader();
|
|
240
|
+
// A field the backend never sends this viewer (`.readableBy`, #4434), or one under such an ANCESTOR (#4459 F8).
|
|
241
|
+
const isNotReadableByViewer = !viewerMaySeeFieldOnPath(schema, resolvedName, (prefix) => getFieldSchema(ctx?.schema, prefix), fieldReader);
|
|
237
242
|
// ── Inline edit gate ──
|
|
238
243
|
//
|
|
239
244
|
// A field is offered in place when it ASKS (the decorator) or when its LAYOUT offers its writable
|
|
@@ -261,43 +266,13 @@ function DisplayFieldComponent(props) {
|
|
|
261
266
|
!isInlineEditDisabledByDisplayShaping &&
|
|
262
267
|
contextCanInlineEdit &&
|
|
263
268
|
(!!hasDecorator || isOfferedByLayoutDefault));
|
|
264
|
-
// ──
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
//
|
|
269
|
-
//
|
|
270
|
-
// (a `<DisplayField name="x" />` whose schema is `.isHidden()`) and the recursive
|
|
271
|
-
// object-render path (DisplayValueDispatcher renders each nested field through this
|
|
272
|
-
// gate), so hidden audit/internal sub-fields stay out of whole-object renders too.
|
|
273
|
-
// (`isHiddenByDisplayShaping` above handles runtime/relationship shaping via the
|
|
274
|
-
// `hiddenFieldNames` context; this handles the static schema decorator.)
|
|
275
|
-
if (schema && isHiddenForDisplay(schema)) {
|
|
276
|
-
return _jsx(_Fragment, {});
|
|
277
|
-
}
|
|
278
|
-
// Inside a `<FieldTiles>` host every child of its `<dl>` must be a term/description group. A field whose
|
|
279
|
-
// chrome at this breakpoint is not TILE — one that declares STACKED, INLINE or HIDDEN, an object scope's
|
|
280
|
-
// member that asks for its own chrome — rendered a bare element there, invalid in the list and squeezed
|
|
281
|
-
// into one column (audit B-4). It takes a whole row instead, as the inline-editable array does.
|
|
282
|
-
// The resolver answers `undefined` for a responsive declaration naming no chrome at this breakpoint,
|
|
283
|
-
// which the chrome then draws STACKED — also not a tile.
|
|
284
|
-
const declaredChromeHere = resolveDeclaredDisplayChromeMode(resolvedChromeMode, breakpoint ?? ViewportBreakpoint.DESKTOP);
|
|
285
|
-
const rowInFieldTiles = inFieldTiles && declaredChromeHere !== DisplayChromeMode.TILE;
|
|
286
|
-
// The row's term is announced only when nothing inside the row names the value: the chrome shows no
|
|
287
|
-
// name (HIDDEN, COMPACT, or the label hidden) AND does not give it one for assistive technology itself
|
|
288
|
-
// (a `hidden` label placement, or a summary's `announceName`, renders its own sr-only name).
|
|
289
|
-
const chromeShowsName = !hideLabel
|
|
290
|
-
&& resolvedLabelPlacement !== 'hidden'
|
|
291
|
-
&& declaredChromeHere !== DisplayChromeMode.HIDDEN
|
|
292
|
-
&& declaredChromeHere !== DisplayChromeMode.COMPACT;
|
|
293
|
-
const chromeAnnouncesName = !hideLabel
|
|
294
|
-
&& (resolvedLabelPlacement === 'hidden' || displayContextKind === DisplayContextKind.SUMMARY);
|
|
295
|
-
const rowTermAnnounced = !chromeShowsName && !chromeAnnouncesName;
|
|
296
|
-
// DD-9: Template-as-skeleton — render Skeleton when loading
|
|
269
|
+
// ── What draws nothing, decided before the early returns ──
|
|
270
|
+
//
|
|
271
|
+
// The enclosing section is told whether this slot draws anything (#4459 F6), so a display section none of whose
|
|
272
|
+
// fields renders hides its heading instead of showing it over nothing, as a form section does. Every early return
|
|
273
|
+
// below that draws nothing is computed here from values, so the report matches what renders (#4459 review D2). While
|
|
274
|
+
// the record loads, every slot draws its skeleton, so it is present.
|
|
297
275
|
const isLoading = ctx?.isLoading ?? false;
|
|
298
|
-
if (isLoading) {
|
|
299
|
-
return (_jsx(InFieldTilesRow, { active: rowInFieldTiles, name: resolvedName, label: label, termAnnounced: rowTermAnnounced, children: _jsx(DisplayFieldChrome, { mode: resolvedChromeMode, label: label, labelStyle: resolvedLabelStyle, name: resolvedName, labelPlacement: resolvedLabelPlacement, hideLabel: hideLabel, hideDescription: true, tooltip: tooltipProp, wide: wideValue, announceName: displayContextKind === DisplayContextKind.SUMMARY, children: _jsx(Skeleton, { className: "h-5 w-full" }) }) }));
|
|
300
|
-
}
|
|
301
276
|
// DD-10: Per-field showWhen — hidden by condition.
|
|
302
277
|
// When inside an ObjectScope (pathPrefix set), evaluate showWhen against the scoped
|
|
303
278
|
// parent data so sibling references resolve correctly (e.g., showWhen({ field: 'country' })
|
|
@@ -305,15 +280,15 @@ function DisplayFieldComponent(props) {
|
|
|
305
280
|
// Falls back to root data when no pathPrefix or parent data is unavailable.
|
|
306
281
|
const showWhenParams = schema ? getShowWhenParams(schema) : undefined;
|
|
307
282
|
const showWhenData = (pathPrefix && parentData) ? parentData : ctx?.data;
|
|
308
|
-
|
|
309
|
-
return _jsx(_Fragment, {});
|
|
310
|
-
}
|
|
283
|
+
const isHiddenByShowWhen = !!showWhenParams && !!showWhenData && !AutomatedLayoutFrontendUtils.evaluateShowWhen(showWhenParams, showWhenData);
|
|
311
284
|
// A parent reference the surface declared hidden (`ParentDisplay.NONE`) is ABSENT: no value, no empty mark, no
|
|
312
285
|
// field box taking a gap (#2195). Asked only under NONE, and of the reference exactly as the dispatcher will route
|
|
313
286
|
// it to the reference preset (`resolveReferenceDisplayTarget`) — so the field is omitted only when the preset would
|
|
314
287
|
// draw nothing, and a reference to ANOTHER record of the parent's type keeps its box and its value. Checked before
|
|
315
288
|
// any `displayComponent` override on purpose: a parent reference rendered through an override is still the parent.
|
|
316
|
-
|
|
289
|
+
const isHiddenParentReference = (() => {
|
|
290
|
+
if (parentReferenceConfig?.displayMode !== ParentDisplay.NONE || !resolvedName)
|
|
291
|
+
return false;
|
|
317
292
|
const referenceTarget = resolveReferenceDisplayTarget({
|
|
318
293
|
schema,
|
|
319
294
|
value,
|
|
@@ -323,10 +298,8 @@ function DisplayFieldComponent(props) {
|
|
|
323
298
|
currentResourceType: displayRootResourceType,
|
|
324
299
|
registry,
|
|
325
300
|
});
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
}
|
|
301
|
+
return !!referenceTarget && withoutHiddenParentReference({ parentReferenceConfig, ...referenceTarget }).hidesWholeReference;
|
|
302
|
+
})();
|
|
330
303
|
// Field-level hide-when-empty — a field decorated with
|
|
331
304
|
// `{primitive}UI({ display: { hideWhenEmpty: true } })` is omitted from the
|
|
332
305
|
// DISPLAY surface entirely when its value is empty (no label, no em-dash).
|
|
@@ -345,7 +318,55 @@ function DisplayFieldComponent(props) {
|
|
|
345
318
|
// summary already left empty values out; an authored `layout.summary` now does the same.
|
|
346
319
|
const dropsEmptyByDefault = (inFieldTiles || displayContextKind === DisplayContextKind.SUMMARY) && !isInlineEditable;
|
|
347
320
|
const hidesWhenEmpty = displayConfig?.hideWhenEmpty ?? dropsEmptyByDefault;
|
|
348
|
-
|
|
321
|
+
const isDroppedWhenEmpty = hidesWhenEmpty && isEmptyDisplayValue(value);
|
|
322
|
+
const drawsNothing = isHiddenByDisplayShaping
|
|
323
|
+
|| (!!schema && isHiddenForDisplay(schema))
|
|
324
|
+
|| isNotReadableByViewer
|
|
325
|
+
|| (!isLoading && (isHiddenByShowWhen || isHiddenParentReference || isDroppedWhenEmpty || !schema || !schemaType));
|
|
326
|
+
useSectionFieldPresence(!drawsNothing);
|
|
327
|
+
// ── Early returns (after all hooks) ──
|
|
328
|
+
if (isHiddenByDisplayShaping) {
|
|
329
|
+
return _jsx(_Fragment, {});
|
|
330
|
+
}
|
|
331
|
+
// Decorator-level hidden — a field marked `.isHidden()` (display variant) must
|
|
332
|
+
// never render in ANY display surface. This covers both the explicit-layout path
|
|
333
|
+
// (a `<DisplayField name="x" />` whose schema is `.isHidden()`) and the recursive
|
|
334
|
+
// object-render path (DisplayValueDispatcher renders each nested field through this
|
|
335
|
+
// gate), so hidden audit/internal sub-fields stay out of whole-object renders too.
|
|
336
|
+
// (`isHiddenByDisplayShaping` above handles runtime/relationship shaping via the
|
|
337
|
+
// `hiddenFieldNames` context; this handles the static schema decorator.)
|
|
338
|
+
if (schema && isHiddenForDisplay(schema)) {
|
|
339
|
+
return _jsx(_Fragment, {});
|
|
340
|
+
}
|
|
341
|
+
// A field the backend never sends this viewer (`.readableBy`, #4434) is ABSENT, not empty: no box, no label, no empty
|
|
342
|
+
// mark. Rendered empty it would read as "no value" when the truth is "not shown to you".
|
|
343
|
+
if (isNotReadableByViewer) {
|
|
344
|
+
return _jsx(_Fragment, {});
|
|
345
|
+
}
|
|
346
|
+
// Inside a `<FieldTiles>` host every child of its `<dl>` must be a term/description group. A field whose
|
|
347
|
+
// chrome at this breakpoint is not TILE — one that declares STACKED, INLINE or HIDDEN, an object scope's
|
|
348
|
+
// member that asks for its own chrome — rendered a bare element there, invalid in the list and squeezed
|
|
349
|
+
// into one column (audit B-4). It takes a whole row instead, as the inline-editable array does.
|
|
350
|
+
// The resolver answers `undefined` for a responsive declaration naming no chrome at this breakpoint,
|
|
351
|
+
// which the chrome then draws STACKED — also not a tile.
|
|
352
|
+
const declaredChromeHere = resolveDeclaredDisplayChromeMode(resolvedChromeMode, breakpoint ?? ViewportBreakpoint.DESKTOP);
|
|
353
|
+
const rowInFieldTiles = inFieldTiles && declaredChromeHere !== DisplayChromeMode.TILE;
|
|
354
|
+
// The row's term is announced only when nothing inside the row names the value: the chrome shows no
|
|
355
|
+
// name (HIDDEN, COMPACT, or the label hidden) AND does not give it one for assistive technology itself
|
|
356
|
+
// (a `hidden` label placement, or a summary's `announceName`, renders its own sr-only name).
|
|
357
|
+
const chromeShowsName = !hideLabel
|
|
358
|
+
&& resolvedLabelPlacement !== 'hidden'
|
|
359
|
+
&& declaredChromeHere !== DisplayChromeMode.HIDDEN
|
|
360
|
+
&& declaredChromeHere !== DisplayChromeMode.COMPACT;
|
|
361
|
+
const chromeAnnouncesName = !hideLabel
|
|
362
|
+
&& (resolvedLabelPlacement === 'hidden' || displayContextKind === DisplayContextKind.SUMMARY);
|
|
363
|
+
const rowTermAnnounced = !chromeShowsName && !chromeAnnouncesName;
|
|
364
|
+
// DD-9: Template-as-skeleton — render Skeleton when loading
|
|
365
|
+
if (isLoading) {
|
|
366
|
+
return (_jsx(InFieldTilesRow, { active: rowInFieldTiles, name: resolvedName, label: label, termAnnounced: rowTermAnnounced, children: _jsx(DisplayFieldChrome, { mode: resolvedChromeMode, label: label, labelStyle: resolvedLabelStyle, name: resolvedName, labelPlacement: resolvedLabelPlacement, hideLabel: hideLabel, hideDescription: true, tooltip: tooltipProp, wide: wideValue, announceName: displayContextKind === DisplayContextKind.SUMMARY, children: _jsx(Skeleton, { className: "h-5 w-full" }) }) }));
|
|
367
|
+
}
|
|
368
|
+
// Hidden by its showWhen condition, a hidden parent reference, an empty value this display drops: see above.
|
|
369
|
+
if (isHiddenByShowWhen || isHiddenParentReference || isDroppedWhenEmpty) {
|
|
349
370
|
return _jsx(_Fragment, {});
|
|
350
371
|
}
|
|
351
372
|
// No schema — cannot render
|
|
@@ -407,6 +428,7 @@ function DisplayFieldComponent(props) {
|
|
|
407
428
|
}
|
|
408
429
|
DisplayFieldComponent.displayName = 'DisplayField';
|
|
409
430
|
export const DisplayField = DisplayFieldComponent;
|
|
431
|
+
declareSectionContentRole(DisplayField, SectionContentRole.DISPLAY_FIELD_SLOT);
|
|
410
432
|
/**
|
|
411
433
|
* Lightweight error boundary wrapping individual DisplayField instances.
|
|
412
434
|
* Prevents a single malformed field value from crashing the entire page.
|