@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.
Files changed (586) hide show
  1. package/LICENSE +114 -26
  2. package/LICENSE.enterprise +129 -0
  3. package/dist/esm/companion-exports.d.ts +5 -2
  4. package/dist/esm/companion-exports.d.ts.map +1 -1
  5. package/dist/esm/companion-exports.js +4 -2
  6. package/dist/esm/companion-exports.js.map +1 -1
  7. package/dist/esm/components/actions/action-bar.d.ts +16 -1
  8. package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
  9. package/dist/esm/components/actions/action-bar.js.map +1 -1
  10. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
  11. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
  12. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
  13. package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
  14. package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
  15. package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
  16. package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
  17. package/dist/esm/components/app/AppLayout_Home.js +14 -7
  18. package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
  19. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
  20. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
  21. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
  22. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
  23. package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
  24. package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
  25. package/dist/esm/components/app/DecisionInboxSection.js +15 -0
  26. package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
  27. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
  28. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
  29. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
  30. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
  31. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
  32. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
  33. package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
  34. package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
  35. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
  36. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
  37. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
  38. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
  39. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
  40. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
  41. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
  42. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
  43. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
  44. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
  45. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
  46. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
  47. package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
  48. package/dist/esm/components/auth/Auth_Main.js +5 -0
  49. package/dist/esm/components/auth/Auth_Main.js.map +1 -1
  50. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
  51. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
  52. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
  53. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
  54. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
  55. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
  56. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
  57. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
  58. package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
  59. package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
  60. package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
  61. package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
  62. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
  63. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
  64. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
  65. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
  66. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
  67. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
  68. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
  69. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
  70. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
  71. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
  72. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
  73. package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
  74. package/dist/esm/components/billing/billing-pricing-table.js +40 -7
  75. package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
  76. package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
  77. package/dist/esm/components/billing/billing-subscription-status.js +9 -1
  78. package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
  79. package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
  80. package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
  81. package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
  82. package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
  83. package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
  84. package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
  85. package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
  86. package/dist/esm/components/data-display/DisplayField.js +67 -45
  87. package/dist/esm/components/data-display/DisplayField.js.map +1 -1
  88. package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
  89. package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
  90. package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
  91. package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
  92. package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
  93. package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
  94. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
  95. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
  96. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
  97. package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
  98. package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
  99. package/dist/esm/components/feedback/empty-state-marker.js +16 -0
  100. package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
  101. package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
  102. package/dist/esm/components/feedback/empty-state.js +2 -1
  103. package/dist/esm/components/feedback/empty-state.js.map +1 -1
  104. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
  105. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
  106. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
  107. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
  108. package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
  109. package/dist/esm/components/feedback/resource-empty-state.js +2 -1
  110. package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
  111. package/dist/esm/components/flows-actors/approval.d.ts +25 -1
  112. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  113. package/dist/esm/components/flows-actors/approval.js +14 -9
  114. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  115. package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
  116. package/dist/esm/components/flows-actors/approval.labels.js +30 -0
  117. package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
  118. package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
  119. package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
  120. package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
  121. package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
  122. package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
  123. package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
  124. package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
  125. package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
  126. package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
  127. package/dist/esm/components/form/Form.d.ts +2 -0
  128. package/dist/esm/components/form/Form.d.ts.map +1 -1
  129. package/dist/esm/components/form/Form.js +1 -0
  130. package/dist/esm/components/form/Form.js.map +1 -1
  131. package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
  132. package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
  133. package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
  134. package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
  135. package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
  136. package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
  137. package/dist/esm/components/form/automated/FormField.d.ts +5 -3
  138. package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
  139. package/dist/esm/components/form/automated/FormField.js +38 -13
  140. package/dist/esm/components/form/automated/FormField.js.map +1 -1
  141. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
  142. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  143. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +31 -18
  144. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  145. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
  146. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
  147. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
  148. package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
  149. package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
  150. package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
  151. package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
  152. package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
  153. package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
  154. package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
  155. package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
  156. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
  157. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
  158. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
  159. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
  160. package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
  161. package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
  162. package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
  163. package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
  164. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
  165. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
  166. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
  167. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
  168. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
  169. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
  170. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
  171. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
  172. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
  173. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +5 -3
  174. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
  175. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
  176. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  177. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +47 -11
  178. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  179. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  180. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +17 -7
  181. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  182. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  183. package/dist/esm/components/resources/ResourceLayout_List.js +13 -6
  184. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  185. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
  186. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
  187. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
  188. package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
  189. package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
  190. package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
  191. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
  192. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
  193. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
  194. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
  195. package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
  196. package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
  197. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
  198. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
  199. package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
  200. package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
  201. package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
  202. package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
  203. package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
  204. package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
  205. package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
  206. package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
  207. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
  208. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
  209. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
  210. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
  211. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
  212. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
  213. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
  214. package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
  215. package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
  216. package/dist/esm/components/settings/SettingsHub.js +14 -4
  217. package/dist/esm/components/settings/SettingsHub.js.map +1 -1
  218. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
  219. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
  220. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
  221. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
  222. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
  223. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
  224. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
  225. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
  226. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
  227. package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
  228. package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
  229. package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
  230. package/dist/esm/components/views/chart-view/ChartView.js +33 -7
  231. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  232. package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
  233. package/dist/esm/components/views/chart-view/ChartView.labels.js +69 -3
  234. package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
  235. package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
  236. package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
  237. package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
  238. package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
  239. package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
  240. package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
  241. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
  242. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
  243. package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
  244. package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
  245. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
  246. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
  247. package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
  248. package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
  249. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +35 -9
  250. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  251. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +69 -21
  252. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  253. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
  254. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +6 -7
  255. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  256. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
  257. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
  258. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +2 -2
  259. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
  260. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
  261. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
  262. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +7 -7
  263. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  264. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
  265. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
  266. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +6 -8
  267. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
  268. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
  269. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -1
  270. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
  271. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
  272. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
  273. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
  274. package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
  275. package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
  276. package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
  277. package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
  278. package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
  279. package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
  280. package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
  281. package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
  282. package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
  283. package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
  284. package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
  285. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
  286. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
  287. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
  288. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
  289. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
  290. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
  291. package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
  292. package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
  293. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
  294. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
  295. package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
  296. package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
  297. package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
  298. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
  299. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
  300. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
  301. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
  302. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
  303. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
  304. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
  305. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
  306. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
  307. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
  308. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
  309. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
  310. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
  311. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
  312. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
  313. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
  314. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
  315. package/dist/esm/core/billing/BillingContext.d.ts +27 -4
  316. package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
  317. package/dist/esm/core/billing/BillingContext.js +61 -2
  318. package/dist/esm/core/billing/BillingContext.js.map +1 -1
  319. package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
  320. package/dist/esm/core/billing/useBillingAction.js +3 -2
  321. package/dist/esm/core/billing/useBillingAction.js.map +1 -1
  322. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
  323. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
  324. package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
  325. package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
  326. package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
  327. package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
  328. package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
  329. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
  330. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
  331. package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
  332. package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
  333. package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
  334. package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
  335. package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
  336. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
  337. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
  338. package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
  339. package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
  340. package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
  341. package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
  342. package/dist/esm/core/config/composite-view.schemas.js +1 -0
  343. package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
  344. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
  345. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
  346. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
  347. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
  348. package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
  349. package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
  350. package/dist/esm/core/config/engine-settings-destinations.js +12 -0
  351. package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
  352. package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
  353. package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
  354. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
  355. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
  356. package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
  357. package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
  358. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
  359. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
  360. package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
  361. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
  362. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
  363. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
  364. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
  365. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
  366. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
  367. package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
  368. package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
  369. package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
  370. package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
  371. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
  372. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
  373. package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
  374. package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
  375. package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
  376. package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
  377. package/dist/esm/core/config/verify-launcher-content.js +31 -0
  378. package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
  379. package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
  380. package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
  381. package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
  382. package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
  383. package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
  384. package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
  385. package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
  386. package/dist/esm/core/events/NotificationContext.js +19 -2
  387. package/dist/esm/core/events/NotificationContext.js.map +1 -1
  388. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
  389. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
  390. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
  391. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
  392. package/dist/esm/core/execution/useExecution.d.ts +3 -3
  393. package/dist/esm/core/execution/useExecution.js.map +1 -1
  394. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
  395. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
  396. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
  397. package/dist/esm/core/features/FeatureGate.d.ts +13 -1
  398. package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
  399. package/dist/esm/core/features/FeatureGate.js +6 -1
  400. package/dist/esm/core/features/FeatureGate.js.map +1 -1
  401. package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
  402. package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
  403. package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
  404. package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
  405. package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
  406. package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
  407. package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
  408. package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
  409. package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
  410. package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
  411. package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
  412. package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
  413. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
  414. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
  415. package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
  416. package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
  417. package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
  418. package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
  419. package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
  420. package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
  421. package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
  422. package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
  423. package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
  424. package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
  425. package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
  426. package/dist/esm/core/features/useFeatureAvailability.js +4 -0
  427. package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
  428. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
  429. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
  430. package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
  431. package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
  432. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
  433. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
  434. package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
  435. package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
  436. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
  437. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
  438. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
  439. package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
  440. package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
  441. package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
  442. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
  443. package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
  444. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
  445. package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
  446. package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
  447. package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
  448. package/dist/esm/core/navigation/home-resolution.js +46 -0
  449. package/dist/esm/core/navigation/home-resolution.js.map +1 -0
  450. package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
  451. package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
  452. package/dist/esm/core/navigation/launcher-resolution.js +13 -18
  453. package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
  454. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
  455. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
  456. package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
  457. package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
  458. package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
  459. package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
  460. package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
  461. package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
  462. package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
  463. package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
  464. package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
  465. package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
  466. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
  467. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
  468. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
  469. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
  470. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
  471. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
  472. package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
  473. package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
  474. package/dist/esm/core/navigation/view-title-resolution.js +25 -0
  475. package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
  476. package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
  477. package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
  478. package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
  479. package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
  480. package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
  481. package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
  482. package/dist/esm/core/navigation/viewer-roles.js +26 -0
  483. package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
  484. package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
  485. package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
  486. package/dist/esm/core/requests/user-interaction-clock.js +47 -0
  487. package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
  488. package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
  489. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
  490. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
  491. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +27 -6
  492. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  493. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +30 -7
  494. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  495. package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
  496. package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
  497. package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
  498. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  499. package/dist/esm/core/resources/hooks/useOperationEnabled.js +4 -0
  500. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  501. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
  502. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
  503. package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
  504. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
  505. package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
  506. package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
  507. package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
  508. package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
  509. package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
  510. package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
  511. package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
  512. package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
  513. package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
  514. package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
  515. package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
  516. package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
  517. package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
  518. package/dist/esm/core/runtime/AppRouter.js +11 -33
  519. package/dist/esm/core/runtime/AppRouter.js.map +1 -1
  520. package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
  521. package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
  522. package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
  523. package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
  524. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
  525. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
  526. package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
  527. package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
  528. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
  529. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
  530. package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
  531. package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
  532. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
  533. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
  534. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
  535. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
  536. package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
  537. package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
  538. package/dist/esm/core/runtime/identity-routes.js +50 -0
  539. package/dist/esm/core/runtime/identity-routes.js.map +1 -0
  540. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
  541. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
  542. package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
  543. package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
  544. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
  545. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
  546. package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
  547. package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
  548. package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
  549. package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
  550. package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
  551. package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
  552. package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
  553. package/dist/esm/core/security/AuthSessionContext.js +4 -0
  554. package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
  555. package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
  556. package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
  557. package/dist/esm/core/security/StepUpAuthContext.js +7 -2
  558. package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
  559. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
  560. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
  561. package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
  562. package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
  563. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
  564. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
  565. package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
  566. package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
  567. package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
  568. package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
  569. package/dist/esm/core/ui/design-token.utils.js +24 -3
  570. package/dist/esm/core/ui/design-token.utils.js.map +1 -1
  571. package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
  572. package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
  573. package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
  574. package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
  575. package/dist/esm/index.d.ts +14 -1
  576. package/dist/esm/index.d.ts.map +1 -1
  577. package/dist/esm/index.js +17 -1
  578. package/dist/esm/index.js.map +1 -1
  579. package/dist/esm/testing/mock-builders.d.ts +1 -1
  580. package/dist/esm/testing/mock-builders.d.ts.map +1 -1
  581. package/dist/esm/testing/mock-builders.js +1 -0
  582. package/dist/esm/testing/mock-builders.js.map +1 -1
  583. package/dist/tsconfig.build.tsbuildinfo +1 -1
  584. package/package.json +9 -6
  585. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
  586. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayField.js","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayField.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAE,aAAa,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AAC;IAED,MAAM;QACJ,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAChC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YACxB,OAAO,CACL,eAAK,SAAS,EAAC,+GAA+G,aAC5H,eAAM,SAAS,EAAC,0BAA0B,sCAA6B,EACtE,OAAO,IAAI,CACV,eAAM,SAAS,EAAC,iEAAiE,YAAE,OAAO,GAAQ,CACnG,IACG,CACP,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7B,CAAC;CACF","sourcesContent":["/**\n * DisplayField — thin gate component for display fields.\n *\n * Resolves field props from DisplayTemplateContext, evaluates early-return\n * conditions (skeleton, showWhen, missing schema), then routes to:\n * - DisplayFieldEditable (inline editing available)\n * - DisplayFieldReadOnly (pure display)\n *\n * Wraps the routed component in DisplayFieldErrorBoundary for crash isolation.\n *\n * Pattern: Gate → Resolution → Early Returns → Route → ErrorBoundary → Child\n */\n\nimport React from 'react';\nimport { z } from 'zod';\n\nimport { useOptionalDisplayTemplateContext } from './DisplayTemplateContext';\nimport { DisplayContextKind, useDisplayContextKind } from './DisplayContextKindContext';\nimport { useFieldScope } from '~wildo-frontend-lib/components/resources/skeleton/FieldScopeContext';\nimport { useDisplayChromeContext } from './chromes/DisplayChromeContext';\nimport { isEmptyDisplayValue } from './display-value-emptiness.utils';\nimport { InFieldTilesRow } from './chromes/field-tile-boundaries';\nimport { resolveDeclaredDisplayChromeMode } from './chromes/display-chrome-mode-resolution';\nimport { useSummaryValueNaming } from './summary-value-naming.context';\nimport { keepsItsNameAlone } from '~wildo-frontend-lib/core/automated-layout/summary-value-naming.utils';\nimport { DisplayFieldChrome } from './chromes/DisplayFieldChrome';\nimport { isWideDisplayValue, useInFieldTiles } from './chromes/field-tiles.utils';\nimport { Skeleton } from '~wildo-frontend-lib/components/feedback/skeleton';\nimport { useSurfacePolicy } from '~wildo-frontend-lib/core/ui/SurfacePolicyContext';\nimport { getFieldSchema, getNestedValue, getParentData, resolveResponsiveValue } from './display-field-resolution.utils';\nimport {\n type DisplayLabelStyle,\n DisplayChromeMode,\n getSchemaType,\n getFieldUIDisplayConfig,\n getFieldUISummaryDisplayConfig,\n getShowWhenParams,\n hasDescriptionForDisplay,\n isEligibleForLayoutDefaultInlineEdit,\n isInlineEditableByDeclaration,\n isHiddenForDisplay,\n type DisplayFieldComponent as DisplayFieldComponentEnum,\n FieldSchemaType,\n type ForceHideDisplayConfig,\n ArrayObjectItemLayout,\n type SoloSectionMode,\n getForeignKeyUIDisplay,\n ViewportBreakpoint,\n} from '@wildo-ai/zod-decorators';\nimport type { AutoEmptyValue, AutoLabelPlacement } from '@wildo-ai/presets-components-models';\n\nimport { useResourceDisplayContext, withoutHiddenParentReference } from './automatic-displayer.utils';\nimport { resolveReferenceDisplayTarget } from './reference-display-target';\nimport { ParentDisplay, type ResourceType } from '@wildo-ai/saas-models';\nimport { useResourceRegistrySafe } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { ResourceLayoutInlineEditDefault } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { AutomatedLayoutFrontendUtils } from '~wildo-frontend-lib/core/automated-layout/automated-layout.frontend.utils';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nimport { DisplayFieldReadOnly } from './DisplayFieldReadOnly';\nimport { DisplayFieldReadOnlyArraySection } from './DisplayFieldReadOnlyArraySection';\nimport { DisplayFieldEditable } from './DisplayFieldEditable';\nimport { DisplayFieldEditableArray } from './DisplayFieldEditableArray';\nimport type { DisplayResourceLinkTrail } from './display-resource-link-trail';\nimport { useExternalDataFieldProvenance } from './external-data-provenance/useExternalDataFieldProvenance';\n\nconst logger = LoggerFrontendService.getLogger();\n\nfunction resolveSurfaceDisplayChromeMode(value: string | undefined): DisplayChromeMode | undefined {\n switch (value) {\n case 'stacked':\n return DisplayChromeMode.STACKED;\n case 'inline':\n return DisplayChromeMode.INLINE;\n case 'compact':\n return DisplayChromeMode.COMPACT;\n default:\n return undefined;\n }\n}\n\nfunction resolveSurfaceAutoEmptyValue(value: string | undefined): AutoEmptyValue | undefined {\n switch (value) {\n case 'em-dash':\n case 'placeholder':\n case 'hidden':\n case 'skeleton':\n return value;\n default:\n return undefined;\n }\n}\n\nfunction resolveSurfaceAutoLabelPlacement(value: string | undefined): AutoLabelPlacement | undefined {\n switch (value) {\n case 'top':\n case 'start':\n case 'inline':\n case 'hidden':\n return value;\n default:\n return undefined;\n }\n}\n\nfunction fieldMatchesDisplayShapingRule(fieldName: string | undefined, rules?: string[]): boolean {\n if (!fieldName || !rules || rules.length === 0) {\n return false;\n }\n\n return rules.some((rule) => (\n fieldName === rule ||\n fieldName.startsWith(`${rule}.`) ||\n fieldName.startsWith(`${rule}[`)\n ));\n}\n\n// =============================================================================\n// TYPES\n// =============================================================================\n\nexport interface DisplayFieldProps {\n /**\n * Field name — the primary identifier. All other props are resolved from\n * DisplayTemplateContext when absent.\n */\n name?: string;\n\n /** Field schema — resolved from context via `getFieldSchema(ctx.schema, resolvedName)` when absent. */\n schema?: z.ZodTypeAny;\n /** Field schema type — resolved via `getSchemaType(resolvedSchema)` when absent. */\n schemaType?: FieldSchemaType;\n /** Display component override — when set, overrides the schemaType-based component dispatch. */\n displayComponent?: DisplayFieldComponentEnum;\n /** Field value — resolved from context via `getNestedValue(ctx.data, resolvedName)` when absent. */\n value?: unknown;\n /** Enum labels — resolved from context via `ctx.enumLabels[resolvedName]` when absent. */\n enumLabels?: Record<string, string>;\n /** Field label — resolved from context via `ctx.fieldLabels[resolvedName]` when absent. */\n label?: string;\n /** Field description — resolved from context via `ctx.fieldDescriptions[resolvedName]` when absent. */\n description?: string;\n /**\n * Tooltip text to display next to the field label.\n * Resolved from i18n via `ctx.fieldTooltips[resolvedName]` when absent.\n */\n tooltip?: string;\n /**\n * Removes the field's name altogether, from the page AND from assistive technology, whatever the chrome mode.\n *\n * To show a value without its label, use `labelPlacement=\"hidden\"` instead: the label is hidden from sight and kept\n * for a screen reader, which announces a header badge as \"Status\", then \"In progress\", rather than \"In progress\"\n * alone (#3079). `hideLabel` is right only where the name is already given beside the value (the record's own\n * title, an item of a list its heading names, a map value printed after its key), and such a site says why with a\n * `field-name-omitted-waiver: <reason>` comment (`pnpm check:dropped-field-names`).\n */\n hideLabel?: boolean;\n /** When true, description is hidden regardless of chrome mode. */\n hideDescription?: boolean;\n /** Explicit label placement; falls back to surface policy when absent. */\n labelPlacement?: AutoLabelPlacement;\n /** Label styling override (small-title labels etc.); falls back to the field's decorator `display.labelStyle`. */\n labelStyle?: DisplayLabelStyle;\n className?: string;\n\n /** Force disable inline editing for this specific field. */\n disableInlineEdit?: boolean;\n\n /**\n * @internal Recursion plumbing — set by the display pipeline, not by a caller.\n *\n * Where this subtree sits in RESOURCE terms: which resource its fields belong to, and how many\n * relationship objects were expanded in place to reach it. Absent at the display root.\n *\n * This replaced a bare `depth: number` that every nested object and array item incremented. That\n * number counted a record's own structure — which is finite by construction — and never counted\n * the traversal that can actually run away, so it truncated real data while guarding nothing.\n * See `display-resource-link-trail.ts`.\n */\n resourceLinkTrail?: DisplayResourceLinkTrail;\n\n /**\n * The parent data object containing this field (REL-02).\n * Resolved from context via `getParentData(ctx.data, pathPrefix)` when absent.\n */\n parentData?: Record<string, unknown>;\n\n /**\n * @internal Array plumbing — set via `DisplayFieldArray`, not directly.\n * Per-array-item TEMPLATE, forwarded to `AutomatedArrayField.renderField`\n * for INLINE-EDITABLE arrays. Receives `(itemPath, itemSchema)` scoped to the\n * array's local edit form (e.g. `checklist.0`).\n */\n renderField?: (name: string, schema: z.ZodTypeAny) => React.ReactNode;\n /** @internal Array plumbing — set via `DisplayFieldArray`. Array section-frame appearance. */\n sectionAppearance?: SoloSectionMode;\n /** @internal Array plumbing — set via `DisplayFieldArray`. Per-placement item-layout override. */\n objectItemLayout?: ArrayObjectItemLayout;\n}\n\n// =============================================================================\n// GATE COMPONENT\n// =============================================================================\n\nfunction DisplayFieldComponent(props: DisplayFieldProps): React.JSX.Element {\n // ── Context resolution ──\n const ctx = useOptionalDisplayTemplateContext();\n const { pathPrefix } = useFieldScope();\n const surfacePolicy = useSurfacePolicy();\n const displayContextKind = useDisplayContextKind();\n\n const effectiveName = props.name;\n const resolvedName = effectiveName\n ? (pathPrefix ? `${pathPrefix}.${effectiveName}` : effectiveName)\n : undefined;\n\n const schema = props.schema ?? (resolvedName ? getFieldSchema(ctx?.schema, resolvedName) : undefined);\n const schemaType = props.schemaType ?? (schema ? getSchemaType(schema) : undefined);\n const value = props.value ?? (resolvedName ? getNestedValue(ctx?.data, resolvedName) : undefined);\n /*\n * Context lookups are INDEX-FREE: an array item's field resolves as `constraints[0].kind`, but\n * the label maps are keyed by the schema path (`constraints.kind`) — one label set per FIELD,\n * not per row. Stripping the indices is what lets an authored label or enum label inside an\n * entry collection resolve at all; before this each silently fell back (the enum to its raw\n * wire value, the label to the formatted field name — the second was invisible wherever the\n * fallback happened to read well, which is how it outlived the enum fix).\n *\n * With one carve-out: a path ENDING in an index is an array ITEM, not a field. An item must\n * never inherit its array's label/description — stripping there put the array's label on every\n * row (\"Accepted when · Accepted when · Accepted when\"). Enum labels are the exception in the\n * other direction: they map VALUES, and an enum-array's items are exactly the values the map\n * exists for.\n */\n const indexFreeName = resolvedName === undefined ? undefined : AutomatedLayoutFrontendUtils.labelDictionaryPath(resolvedName);\n const isArrayItemPath = resolvedName ? AutomatedLayoutFrontendUtils.isArrayItemPath(resolvedName) : false;\n const fieldMetaKey = isArrayItemPath ? undefined : indexFreeName;\n /*\n * Final fallback: the LEAF key, unchanged. The context map already answers for every path it\n * registered, so this only fires for paths the label walk cannot reach (union-variant members,\n * depths past the walk) — where the object dispatcher used to force-feed the same leaf as an\n * explicit prop, winning over authored labels.\n *\n * It is a KEY, not words derived from one (#420): a leaf that shows up as `streetName` is\n * visibly unlabelled and gets authored, where \"Street Name\" reads as finished and never does.\n */\n const leafFallbackLabel = fieldMetaKey\n ? AutomatedLayoutFrontendUtils.unresolvedFieldLabel(fieldMetaKey.split('.').pop() ?? fieldMetaKey)\n : undefined;\n const label = props.label ?? (fieldMetaKey ? ctx?.fieldLabels?.[fieldMetaKey] : undefined) ?? leafFallbackLabel;\n /*\n * The DECLARATION decides whether a description renders, not the presence of a resolved string.\n *\n * `{primitive}UI.display.showDescription` is documented as an \"opt-in for description text below\n * the field value\" — and it was only ever an i18n GENERATION flag: it tells the companion to\n * produce the key, and nothing read it at render time. So a field resolved whatever description\n * its label bundle happened to contain, and turning the flag OFF changed nothing until somebody\n * regenerated labels — which needs a running companion, and until then the surface keeps showing\n * a sentence its schema no longer asks for. That is a generated artifact outranking the source\n * it was generated from.\n *\n * An explicitly passed `description` prop still wins: a template author writing one is making the\n * declaration at the call site.\n */\n const declaresDisplayDescription = schema ? hasDescriptionForDisplay(schema) : false;\n const description = props.description\n ?? (fieldMetaKey && declaresDisplayDescription ? ctx?.fieldDescriptions?.[fieldMetaKey] : undefined);\n const tooltipProp = props.tooltip ?? (fieldMetaKey ? ctx?.fieldTooltips?.[fieldMetaKey] : undefined);\n const enumLabels = props.enumLabels\n ?? (indexFreeName ? ctx?.enumLabels?.[indexFreeName] : undefined);\n // SUMMARY surfaces resolve base display params with `summaryOverride` merged\n // over `display` (the {primitive}UI decorator contract for cards/FK previews).\n const displayConfig = schema\n ? (displayContextKind === DisplayContextKind.SUMMARY\n ? getFieldUISummaryDisplayConfig(schema)\n : getFieldUIDisplayConfig(schema))\n : undefined;\n const displayComponent = props.displayComponent ?? displayConfig?.component;\n const parentData = props.parentData ?? getParentData(ctx?.data, pathPrefix || undefined);\n const disableInlineEdit = props.disableInlineEdit ?? false;\n const className = props.className;\n const isHiddenByDisplayShaping = fieldMatchesDisplayShapingRule(resolvedName, ctx?.hiddenFieldNames);\n const isInlineEditDisabledByDisplayShaping = fieldMatchesDisplayShapingRule(\n resolvedName,\n ctx?.inlineEditDisabledFieldNames,\n );\n\n // ── Chrome mode resolution ──\n const { displayChromeMode, sectionChromeMode } = useDisplayChromeContext();\n const inFieldTiles = useInFieldTiles();\n const summaryValueNaming = useSummaryValueNaming();\n const surfaceChromeMode = resolveSurfaceDisplayChromeMode(surfacePolicy.autoRender?.autoFieldChrome);\n // On a summary whose layout declares no chrome, a value that cannot speak for itself keeps its name\n // (`SummaryValueNamingContext`); a field's or a section's own chrome still outranks the rule.\n const namedBySummaryRule = displayContextKind === DisplayContextKind.SUMMARY\n && summaryValueNaming\n && displayConfig?.chromeMode === undefined\n && sectionChromeMode === undefined\n && keepsItsNameAlone(schemaType);\n const explicitChromeMode = displayConfig?.chromeMode\n ?? sectionChromeMode\n ?? (namedBySummaryRule ? DisplayChromeMode.INLINE : undefined)\n ?? displayChromeMode;\n const resolvedChromeMode = explicitChromeMode ?? surfaceChromeMode;\n /*\n * The surface's auto label placement is a DEFAULT for undecorated fields — a field whose\n * decorator declares its own chromeMode has chosen its presentation, and the chrome derives\n * placement from that mode. Before this guard, a surface-level `autoLabelPlacement: 'top'`\n * silently outranked every `chromeMode: INLINE` decoration: the chrome received mode INLINE\n * plus placement 'top' and rendered the STACKED branch, so INLINE was unreachable on any\n * surface that states a default — which is every resource READ page.\n */\n const resolvedLabelPlacement = props.labelPlacement\n ?? (displayConfig?.chromeMode !== undefined\n ? undefined\n : resolveSurfaceAutoLabelPlacement(surfacePolicy.autoRender?.autoLabelPlacement));\n const resolvedLabelStyle = props.labelStyle ?? displayConfig?.labelStyle;\n // Whether this value takes a whole row when it renders as a fact tile — from its shape, never authored.\n const wideValue = isWideDisplayValue(\n schemaType,\n (displayConfig as { displayMode?: string } | undefined)?.displayMode,\n schema ? getForeignKeyUIDisplay(schema)?.mode : undefined,\n );\n\n // forceHide → hideLabel/hideDescription (resolves responsive breakpoint-aware values)\n const breakpoint = ctx?.breakpoint;\n const resolvedForceHide = breakpoint\n ? resolveResponsiveValue<ForceHideDisplayConfig>(displayConfig?.forceHide, breakpoint)\n : (displayConfig?.forceHide as ForceHideDisplayConfig | undefined);\n const forceHideLabel = resolvedForceHide?.label === true;\n const forceHideDescription = resolvedForceHide?.description === true;\n\n const hideLabel = (props.hideLabel === true) || forceHideLabel;\n // A summary value the naming rule gave INLINE chrome to is one short fact on a card line: a description it\n // declares for the record page has no place there (the author chose no summary chrome to show it in).\n const hideDescription = (props.hideDescription === true) || forceHideDescription || namedBySummaryRule;\n\n // ── Resource display context (lightweight read for routing + fileUploadContext) ──\n const {\n canInlineEdit: contextCanInlineEdit,\n doInlineUpdate,\n fileUploadContext,\n rmm,\n defaultInlineEdit,\n defaultEmptyValue,\n parentReferenceConfig,\n resourceType: displayRootResourceType,\n } = useResourceDisplayContext();\n const registry = useResourceRegistrySafe()?.registry;\n\n /*\n * The LAYOUT outranks the surface policy here, and only here.\n *\n * `AutoEmptyValue` is declared per surface variant — BASE, RAISED, OVERLAY and INSET all say\n * `em-dash` — which is right for a surface, because a surface knows nothing about the fields it\n * happens to hold. In a dense table or a summary card a dash IS correct: the reader is scanning\n * and meaning comes from the neighbours.\n *\n * A settings layout knows something the surface cannot: its rows are the content, read one at a\n * time to decide something, and there an em dash refuses to say which of four things it means.\n * That layout says so once (`defaultEmptyValue`) rather than every field saying it.\n *\n * A layout with no opinion omits it and the surface policy decides exactly as before — which is\n * every layout in the product except the settings ones that opt in.\n */\n const resolvedEmptyValue = defaultEmptyValue\n ?? resolveSurfaceAutoEmptyValue(surfacePolicy.autoRender?.autoEmptyValue);\n\n // ── Provenance (#1997) ──\n //\n // A field an external-data pipeline writes says where its value came from and how current it is. Only a TOP-LEVEL\n // field of the displayed record can be pipeline-written, so a field inside an object scope (a `pathPrefix`) or an\n // array item never asks. SUMMARY surfaces (cards, FK previews) never show the cue, so they never cause the read.\n // The chrome suppresses it in COMPACT and HIDDEN on its own.\n const provenance = useExternalDataFieldProvenance({\n fieldName: !pathPrefix && !isArrayItemPath ? resolvedName : undefined,\n enabled: displayContextKind !== DisplayContextKind.SUMMARY && !props.resourceLinkTrail,\n });\n\n // ── Inline edit gate ──\n //\n // A field is offered in place when it ASKS (the decorator) or when its LAYOUT offers its writable\n // fields and this field qualifies. The two are ORed on purpose and the precedence is deliberate:\n // the decorator decides HOW (mode, saveOn, which buttons), the layout default decides only\n // WHETHER — so a field carrying params keeps them under a layout that turns the default on, and a\n // field carrying `inlineEditable: false` is refused by BOTH (`isInlineEditableByDeclaration` is false\n // for it, and `isEligibleForLayoutDefaultInlineEdit` declines it explicitly).\n //\n // Everything else in this conjunction still holds, and that is what keeps the default safe: a\n // layout cannot manufacture a write path. `contextCanInlineEdit` requires an RMM, an\n // `onInlineEdit`, or a real UPDATE operation; `isInlineEditDisabledByDisplayShaping` keeps\n // relationship object/array slots fail-closed. See `ResourceLayoutInlineEditDefault` for why a\n // settings layout needs the default at all.\n // A field the UPDATE excludes is never editable in place, whatever it declares (#2322): the write would strip it\n // and persist nothing while the control reported success. The layout default already declines it\n // (`isEligibleForLayoutDefaultInlineEdit`); this closes the decorator path, so the rule is the engine's rather than\n // each author's.\n const hasDecorator = resolvedName && schema && isInlineEditableByDeclaration(schema);\n const isOfferedByLayoutDefault = (\n !!resolvedName\n && !!schema\n && defaultInlineEdit === ResourceLayoutInlineEditDefault.WRITABLE_FIELDS\n && isEligibleForLayoutDefaultInlineEdit(schema)\n );\n const isInlineEditable = (\n !disableInlineEdit &&\n !isInlineEditDisabledByDisplayShaping &&\n contextCanInlineEdit &&\n (!!hasDecorator || isOfferedByLayoutDefault)\n );\n\n // ── Early returns (after all hooks) ──\n\n if (isHiddenByDisplayShaping) {\n return <></>;\n }\n\n // Decorator-level hidden — a field marked `.isHidden()` (display variant) must\n // never render in ANY display surface. This covers both the explicit-layout path\n // (a `<DisplayField name=\"x\" />` whose schema is `.isHidden()`) and the recursive\n // object-render path (DisplayValueDispatcher renders each nested field through this\n // gate), so hidden audit/internal sub-fields stay out of whole-object renders too.\n // (`isHiddenByDisplayShaping` above handles runtime/relationship shaping via the\n // `hiddenFieldNames` context; this handles the static schema decorator.)\n if (schema && isHiddenForDisplay(schema)) {\n return <></>;\n }\n\n // Inside a `<FieldTiles>` host every child of its `<dl>` must be a term/description group. A field whose\n // chrome at this breakpoint is not TILE — one that declares STACKED, INLINE or HIDDEN, an object scope's\n // member that asks for its own chrome — rendered a bare element there, invalid in the list and squeezed\n // into one column (audit B-4). It takes a whole row instead, as the inline-editable array does.\n // The resolver answers `undefined` for a responsive declaration naming no chrome at this breakpoint,\n // which the chrome then draws STACKED — also not a tile.\n const declaredChromeHere = resolveDeclaredDisplayChromeMode(resolvedChromeMode, breakpoint ?? ViewportBreakpoint.DESKTOP);\n const rowInFieldTiles = inFieldTiles && declaredChromeHere !== DisplayChromeMode.TILE;\n // The row's term is announced only when nothing inside the row names the value: the chrome shows no\n // name (HIDDEN, COMPACT, or the label hidden) AND does not give it one for assistive technology itself\n // (a `hidden` label placement, or a summary's `announceName`, renders its own sr-only name).\n const chromeShowsName = !hideLabel\n && resolvedLabelPlacement !== 'hidden'\n && declaredChromeHere !== DisplayChromeMode.HIDDEN\n && declaredChromeHere !== DisplayChromeMode.COMPACT;\n const chromeAnnouncesName = !hideLabel\n && (resolvedLabelPlacement === 'hidden' || displayContextKind === DisplayContextKind.SUMMARY);\n const rowTermAnnounced = !chromeShowsName && !chromeAnnouncesName;\n\n // DD-9: Template-as-skeleton — render Skeleton when loading\n const isLoading = ctx?.isLoading ?? false;\n if (isLoading) {\n return (\n <InFieldTilesRow active={rowInFieldTiles} name={resolvedName} label={label} termAnnounced={rowTermAnnounced}>\n <DisplayFieldChrome\n mode={resolvedChromeMode}\n label={label}\n labelStyle={resolvedLabelStyle}\n name={resolvedName}\n labelPlacement={resolvedLabelPlacement}\n hideLabel={hideLabel}\n hideDescription={true}\n tooltip={tooltipProp}\n wide={wideValue}\n announceName={displayContextKind === DisplayContextKind.SUMMARY}\n >\n <Skeleton className=\"h-5 w-full\" />\n </DisplayFieldChrome>\n </InFieldTilesRow>\n );\n }\n\n // DD-10: Per-field showWhen — hidden by condition.\n // When inside an ObjectScope (pathPrefix set), evaluate showWhen against the scoped\n // parent data so sibling references resolve correctly (e.g., showWhen({ field: 'country' })\n // on address.city checks address.country, not root.country).\n // Falls back to root data when no pathPrefix or parent data is unavailable.\n const showWhenParams = schema ? getShowWhenParams(schema) : undefined;\n const showWhenData = (pathPrefix && parentData) ? parentData : ctx?.data;\n if (showWhenParams && showWhenData && !AutomatedLayoutFrontendUtils.evaluateShowWhen(showWhenParams, showWhenData)) {\n return <></>;\n }\n\n // A parent reference the surface declared hidden (`ParentDisplay.NONE`) is ABSENT: no value, no empty mark, no\n // field box taking a gap (#2195). Asked only under NONE, and of the reference exactly as the dispatcher will route\n // it to the reference preset (`resolveReferenceDisplayTarget`) — so the field is omitted only when the preset would\n // draw nothing, and a reference to ANOTHER record of the parent's type keeps its box and its value. Checked before\n // any `displayComponent` override on purpose: a parent reference rendered through an override is still the parent.\n if (parentReferenceConfig?.displayMode === ParentDisplay.NONE && resolvedName) {\n const referenceTarget = resolveReferenceDisplayTarget({\n schema,\n value,\n fieldName: resolvedName,\n parentData,\n resourceLinkTrail: props.resourceLinkTrail,\n currentResourceType: displayRootResourceType as ResourceType | undefined,\n registry,\n });\n if (referenceTarget && withoutHiddenParentReference({ parentReferenceConfig, ...referenceTarget }).hidesWholeReference) {\n return <></>;\n }\n }\n\n // Field-level hide-when-empty — a field decorated with\n // `{primitive}UI({ display: { hideWhenEmpty: true } })` is omitted from the\n // DISPLAY surface entirely when its value is empty (no label, no em-dash).\n // Display-only: the edit form still renders the field so it can be filled.\n //\n // Inside `<FieldTiles>` an empty fact drops out by DEFAULT — a tile that says \"—\" is clutter on a\n // record, and the form is where an empty field is filled. A field that must show its emptiness there\n // declares `hideWhenEmpty: false`; elsewhere the decorator's own value decides, as before.\n //\n // Except a fact that can be edited IN PLACE: hiding it there removed the only way to fill it on the record\n // (audit B-6), so it keeps its empty tile. An explicit `hideWhenEmpty: true` still hides it.\n //\n // A SUMMARY (a list card, a search result, a reference preview) drops an empty value by default too (#3066): a card\n // is one line of self-describing values, and a bare \"—\" in it describes nothing. Measured on Wonder Procurement,\n // whose request cards ended \"€100.00 · Wonder Services · —\" until each field was hidden by hand. The generated\n // summary already left empty values out; an authored `layout.summary` now does the same.\n const dropsEmptyByDefault = (inFieldTiles || displayContextKind === DisplayContextKind.SUMMARY) && !isInlineEditable;\n const hidesWhenEmpty = displayConfig?.hideWhenEmpty ?? dropsEmptyByDefault;\n if (hidesWhenEmpty && isEmptyDisplayValue(value)) {\n return <></>;\n }\n\n // No schema — cannot render\n if (!schema || !schemaType) {\n logger.error('[DisplayField] Cannot resolve schema for field', { name: resolvedName });\n return <></>;\n }\n\n // ── Resolved props for child components ──\n const resolvedProps = {\n schema,\n schemaType,\n value,\n fieldName: resolvedName,\n label,\n description,\n tooltip: tooltipProp,\n provenance,\n enumLabels,\n displayComponent,\n parentData,\n resourceLinkTrail: props.resourceLinkTrail,\n /*\n * The per-item template now reaches the READ path too. It used to be forwarded only on the\n * inline-editable ARRAY branch below, so `DisplayFieldArray.renderItem` was accepted and\n * silently ignored on every display template — measured: the rendered page was byte-identical\n * with and without it.\n */\n renderItem: props.renderField,\n className,\n hideLabel,\n hideDescription,\n resolvedChromeMode,\n resolvedLabelPlacement,\n resolvedLabelStyle,\n resolvedEmptyValue,\n fileUploadContext,\n wideValue,\n // A summary shows bare values; its chrome still names each one for assistive technology (audit B-10).\n announceName: displayContextKind === DisplayContextKind.SUMMARY,\n };\n\n return (\n <DisplayFieldErrorBoundary name={resolvedName}>\n {isInlineEditable && schemaType === FieldSchemaType.ARRAY ? (\n // Inline-editable ARRAY → a PERSISTENT inline editor (add / edit / remove /\n // reorder, whole-array autosave) instead of the scalar click-to-edit overlay.\n // `isInlineEditable` already guarantees `resolvedName` is a non-empty string.\n //\n // Inside `<FieldTiles>` the editor takes a whole row as a term/description group of the host's\n // `<dl>`: its own legend names it, so the term is visually hidden. Without this it sat in the\n // `<dl>` as a bare div, with no span, sharing a column with one-line facts.\n <InFieldTilesRow active={inFieldTiles} name={resolvedName} label={label}>\n <DisplayFieldEditableArray\n name={resolvedName as string}\n schema={schema}\n value={value}\n label={label}\n description={description}\n doInlineUpdate={doInlineUpdate}\n renderField={props.renderField}\n sectionAppearance={props.sectionAppearance}\n objectItemLayout={props.objectItemLayout}\n enumLabels={enumLabels}\n hideLabel={hideLabel}\n displayChromeMode={breakpoint\n ? resolveResponsiveValue<DisplayChromeMode>(resolvedChromeMode, breakpoint)\n : (typeof resolvedChromeMode === 'string' ? resolvedChromeMode : undefined)}\n />\n </InFieldTilesRow>\n ) : isInlineEditable ? (\n <InFieldTilesRow active={rowInFieldTiles} name={resolvedName} label={label} termAnnounced={rowTermAnnounced}>\n <DisplayFieldEditable\n {...resolvedProps}\n doInlineUpdate={doInlineUpdate}\n rmm={rmm}\n />\n </InFieldTilesRow>\n ) : schemaType === FieldSchemaType.ARRAY && props.sectionAppearance ? (\n // Read-only ARRAY authored via DisplayFieldArray (which sets\n // `sectionAppearance`, GHOST by default) → render it in a controllable\n // SECTION container (legend + appearance), matching the editable path,\n // instead of the default chrome + bare list. Only wrapper-authored\n // arrays pass `sectionAppearance`, so direct DisplayField usages are\n // untouched. In a tile host it brings its own frame, so it takes a whole row.\n <InFieldTilesRow active={inFieldTiles} name={resolvedName} label={label}>\n <DisplayFieldReadOnlyArraySection {...resolvedProps} sectionAppearance={props.sectionAppearance} />\n </InFieldTilesRow>\n ) : (\n <InFieldTilesRow active={rowInFieldTiles} name={resolvedName} label={label} termAnnounced={rowTermAnnounced}>\n <DisplayFieldReadOnly {...resolvedProps} />\n </InFieldTilesRow>\n )}\n </DisplayFieldErrorBoundary>\n );\n}\n\nDisplayFieldComponent.displayName = 'DisplayField';\n\nexport const DisplayField: typeof DisplayFieldComponent & { displayName: string } = DisplayFieldComponent;\n\n// =============================================================================\n// ERROR BOUNDARY (ROBUST-01)\n// =============================================================================\n\ninterface DisplayFieldErrorBoundaryProps {\n name?: string;\n children: React.ReactNode;\n}\n\ninterface DisplayFieldErrorBoundaryState {\n hasError: boolean;\n}\n\n/**\n * Lightweight error boundary wrapping individual DisplayField instances.\n * Prevents a single malformed field value from crashing the entire page.\n *\n * Uses hardcoded English for the fallback message because class components\n * cannot call hooks (useI18n). Error boundaries are a last resort — the\n * message is developer-facing, not user-facing in normal operation.\n */\nexport class DisplayFieldErrorBoundary extends React.Component<\n DisplayFieldErrorBoundaryProps,\n DisplayFieldErrorBoundaryState\n> {\n state: DisplayFieldErrorBoundaryState = { hasError: false };\n\n static getDerivedStateFromError(): DisplayFieldErrorBoundaryState {\n return { hasError: true };\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n const fieldId = this.props.name;\n logger.error('[DisplayField] Error boundary caught error', {\n name: fieldId,\n error: error.message,\n componentStack: errorInfo.componentStack,\n });\n }\n\n render(): React.ReactNode {\n const fieldId = this.props.name;\n if (this.state.hasError) {\n return (\n <div className=\"flex items-center gap-element px-card-sm py-item-xs rounded-md bg-destructive/10 border border-destructive/20\">\n <span className=\"text-destructive text-sm\">Error rendering field</span>\n {fieldId && (\n <code className=\"text-xs text-destructive/70 px-item-xs rounded bg-destructive/5\">{fieldId}</code>\n )}\n </div>\n );\n }\n return this.props.children;\n }\n}\n"]}
1
+ {"version":3,"file":"DisplayField.js","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayField.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;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,QAAQ,CAAC;IAC7B,CAAC;CACF","sourcesContent":["/**\n * DisplayField — thin gate component for display fields.\n *\n * Resolves field props from DisplayTemplateContext, evaluates early-return\n * conditions (skeleton, showWhen, missing schema), then routes to:\n * - DisplayFieldEditable (inline editing available)\n * - DisplayFieldReadOnly (pure display)\n *\n * Wraps the routed component in DisplayFieldErrorBoundary for crash isolation.\n *\n * Pattern: Gate → Resolution → Early Returns → Route → ErrorBoundary → Child\n */\n\nimport React from 'react';\nimport { z } from 'zod';\n\nimport { useOptionalDisplayTemplateContext } from './DisplayTemplateContext';\nimport { DisplayContextKind, useDisplayContextKind } from './DisplayContextKindContext';\nimport { useFieldScope } from '~wildo-frontend-lib/components/resources/skeleton/FieldScopeContext';\nimport { useDisplayChromeContext } from './chromes/DisplayChromeContext';\nimport { isEmptyDisplayValue } from './display-value-emptiness.utils';\nimport { InFieldTilesRow } from './chromes/field-tile-boundaries';\nimport { resolveDeclaredDisplayChromeMode } from './chromes/display-chrome-mode-resolution';\nimport { useSummaryValueNaming } from './summary-value-naming.context';\nimport { keepsItsNameAlone } from '~wildo-frontend-lib/core/automated-layout/summary-value-naming.utils';\nimport { DisplayFieldChrome } from './chromes/DisplayFieldChrome';\nimport { isWideDisplayValue, useInFieldTiles } from './chromes/field-tiles.utils';\nimport { Skeleton } from '~wildo-frontend-lib/components/feedback/skeleton';\nimport { useSurfacePolicy } from '~wildo-frontend-lib/core/ui/SurfacePolicyContext';\nimport { getFieldSchema, getNestedValue, getParentData, resolveResponsiveValue } from './display-field-resolution.utils';\nimport {\n type DisplayLabelStyle,\n DisplayChromeMode,\n getSchemaType,\n getFieldUIDisplayConfig,\n getFieldUISummaryDisplayConfig,\n getShowWhenParams,\n hasDescriptionForDisplay,\n isEligibleForLayoutDefaultInlineEdit,\n isInlineEditableByDeclaration,\n isHiddenForDisplay,\n type DisplayFieldComponent as DisplayFieldComponentEnum,\n FieldSchemaType,\n type ForceHideDisplayConfig,\n ArrayObjectItemLayout,\n type SoloSectionMode,\n getForeignKeyUIDisplay,\n ViewportBreakpoint,\n} from '@wildo-ai/zod-decorators';\nimport type { AutoEmptyValue, AutoLabelPlacement } from '@wildo-ai/presets-components-models';\n\nimport { useResourceDisplayContext, withoutHiddenParentReference } from './automatic-displayer.utils';\nimport { resolveReferenceDisplayTarget } from './reference-display-target';\nimport { ParentDisplay, type ResourceType } from '@wildo-ai/saas-models';\nimport { useResourceRegistrySafe } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { ResourceLayoutInlineEditDefault } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { AutomatedLayoutFrontendUtils } from '~wildo-frontend-lib/core/automated-layout/automated-layout.frontend.utils';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nimport { DisplayFieldReadOnly } from './DisplayFieldReadOnly';\nimport { DisplayFieldReadOnlyArraySection } from './DisplayFieldReadOnlyArraySection';\nimport { DisplayFieldEditable } from './DisplayFieldEditable';\nimport { DisplayFieldEditableArray } from './DisplayFieldEditableArray';\nimport type { DisplayResourceLinkTrail } from './display-resource-link-trail';\nimport { useExternalDataFieldProvenance } from './external-data-provenance/useExternalDataFieldProvenance';\nimport { useViewerFieldReader, viewerMaySeeFieldOnPath } from '~wildo-frontend-lib/core/navigation/viewer-field-reader';\nimport { declareSectionContentRole, SectionContentRole, useSectionFieldPresence } from '~wildo-frontend-lib/components/resources/skeleton/SectionFieldsContext';\n\nconst logger = LoggerFrontendService.getLogger();\n\nfunction resolveSurfaceDisplayChromeMode(value: string | undefined): DisplayChromeMode | undefined {\n switch (value) {\n case 'stacked':\n return DisplayChromeMode.STACKED;\n case 'inline':\n return DisplayChromeMode.INLINE;\n case 'compact':\n return DisplayChromeMode.COMPACT;\n default:\n return undefined;\n }\n}\n\nfunction resolveSurfaceAutoEmptyValue(value: string | undefined): AutoEmptyValue | undefined {\n switch (value) {\n case 'em-dash':\n case 'placeholder':\n case 'hidden':\n case 'skeleton':\n return value;\n default:\n return undefined;\n }\n}\n\nfunction resolveSurfaceAutoLabelPlacement(value: string | undefined): AutoLabelPlacement | undefined {\n switch (value) {\n case 'top':\n case 'start':\n case 'inline':\n case 'hidden':\n return value;\n default:\n return undefined;\n }\n}\n\nfunction fieldMatchesDisplayShapingRule(fieldName: string | undefined, rules?: string[]): boolean {\n if (!fieldName || !rules || rules.length === 0) {\n return false;\n }\n\n return rules.some((rule) => (\n fieldName === rule ||\n fieldName.startsWith(`${rule}.`) ||\n fieldName.startsWith(`${rule}[`)\n ));\n}\n\n// =============================================================================\n// TYPES\n// =============================================================================\n\nexport interface DisplayFieldProps {\n /**\n * Field name — the primary identifier. All other props are resolved from\n * DisplayTemplateContext when absent.\n */\n name?: string;\n\n /** Field schema — resolved from context via `getFieldSchema(ctx.schema, resolvedName)` when absent. */\n schema?: z.ZodTypeAny;\n /** Field schema type — resolved via `getSchemaType(resolvedSchema)` when absent. */\n schemaType?: FieldSchemaType;\n /** Display component override — when set, overrides the schemaType-based component dispatch. */\n displayComponent?: DisplayFieldComponentEnum;\n /** Field value — resolved from context via `getNestedValue(ctx.data, resolvedName)` when absent. */\n value?: unknown;\n /** Enum labels — resolved from context via `ctx.enumLabels[resolvedName]` when absent. */\n enumLabels?: Record<string, string>;\n /** Field label — resolved from context via `ctx.fieldLabels[resolvedName]` when absent. */\n label?: string;\n /** Field description — resolved from context via `ctx.fieldDescriptions[resolvedName]` when absent. */\n description?: string;\n /**\n * Tooltip text to display next to the field label.\n * Resolved from i18n via `ctx.fieldTooltips[resolvedName]` when absent.\n */\n tooltip?: string;\n /**\n * Removes the field's name altogether, from the page AND from assistive technology, whatever the chrome mode.\n *\n * To show a value without its label, use `labelPlacement=\"hidden\"` instead: the label is hidden from sight and kept\n * for a screen reader, which announces a header badge as \"Status\", then \"In progress\", rather than \"In progress\"\n * alone (#3079). `hideLabel` is right only where the name is already given beside the value (the record's own\n * title, an item of a list its heading names, a map value printed after its key), and such a site says why with a\n * `field-name-omitted-waiver: <reason>` comment (`pnpm check:dropped-field-names`).\n */\n hideLabel?: boolean;\n /** When true, description is hidden regardless of chrome mode. */\n hideDescription?: boolean;\n /** Explicit label placement; falls back to surface policy when absent. */\n labelPlacement?: AutoLabelPlacement;\n /** Label styling override (small-title labels etc.); falls back to the field's decorator `display.labelStyle`. */\n labelStyle?: DisplayLabelStyle;\n className?: string;\n\n /** Force disable inline editing for this specific field. */\n disableInlineEdit?: boolean;\n\n /**\n * @internal Recursion plumbing — set by the display pipeline, not by a caller.\n *\n * Where this subtree sits in RESOURCE terms: which resource its fields belong to, and how many\n * relationship objects were expanded in place to reach it. Absent at the display root.\n *\n * This replaced a bare `depth: number` that every nested object and array item incremented. That\n * number counted a record's own structure — which is finite by construction — and never counted\n * the traversal that can actually run away, so it truncated real data while guarding nothing.\n * See `display-resource-link-trail.ts`.\n */\n resourceLinkTrail?: DisplayResourceLinkTrail;\n\n /**\n * The parent data object containing this field (REL-02).\n * Resolved from context via `getParentData(ctx.data, pathPrefix)` when absent.\n */\n parentData?: Record<string, unknown>;\n\n /**\n * @internal Array plumbing — set via `DisplayFieldArray`, not directly.\n * Per-array-item TEMPLATE, forwarded to `AutomatedArrayField.renderField`\n * for INLINE-EDITABLE arrays. Receives `(itemPath, itemSchema)` scoped to the\n * array's local edit form (e.g. `checklist.0`).\n */\n renderField?: (name: string, schema: z.ZodTypeAny) => React.ReactNode;\n /** @internal Array plumbing — set via `DisplayFieldArray`. Array section-frame appearance. */\n sectionAppearance?: SoloSectionMode;\n /** @internal Array plumbing — set via `DisplayFieldArray`. Per-placement item-layout override. */\n objectItemLayout?: ArrayObjectItemLayout;\n}\n\n// =============================================================================\n// GATE COMPONENT\n// =============================================================================\n\nfunction DisplayFieldComponent(props: DisplayFieldProps): React.JSX.Element {\n // ── Context resolution ──\n const ctx = useOptionalDisplayTemplateContext();\n const { pathPrefix } = useFieldScope();\n const surfacePolicy = useSurfacePolicy();\n const displayContextKind = useDisplayContextKind();\n\n const effectiveName = props.name;\n const resolvedName = effectiveName\n ? (pathPrefix ? `${pathPrefix}.${effectiveName}` : effectiveName)\n : undefined;\n\n const schema = props.schema ?? (resolvedName ? getFieldSchema(ctx?.schema, resolvedName) : undefined);\n const schemaType = props.schemaType ?? (schema ? getSchemaType(schema) : undefined);\n const value = props.value ?? (resolvedName ? getNestedValue(ctx?.data, resolvedName) : undefined);\n /*\n * Context lookups are INDEX-FREE: an array item's field resolves as `constraints[0].kind`, but\n * the label maps are keyed by the schema path (`constraints.kind`) — one label set per FIELD,\n * not per row. Stripping the indices is what lets an authored label or enum label inside an\n * entry collection resolve at all; before this each silently fell back (the enum to its raw\n * wire value, the label to the formatted field name — the second was invisible wherever the\n * fallback happened to read well, which is how it outlived the enum fix).\n *\n * With one carve-out: a path ENDING in an index is an array ITEM, not a field. An item must\n * never inherit its array's label/description — stripping there put the array's label on every\n * row (\"Accepted when · Accepted when · Accepted when\"). Enum labels are the exception in the\n * other direction: they map VALUES, and an enum-array's items are exactly the values the map\n * exists for.\n */\n const indexFreeName = resolvedName === undefined ? undefined : AutomatedLayoutFrontendUtils.labelDictionaryPath(resolvedName);\n const isArrayItemPath = resolvedName ? AutomatedLayoutFrontendUtils.isArrayItemPath(resolvedName) : false;\n const fieldMetaKey = isArrayItemPath ? undefined : indexFreeName;\n /*\n * Final fallback: the LEAF key, unchanged. The context map already answers for every path it\n * registered, so this only fires for paths the label walk cannot reach (union-variant members,\n * depths past the walk) — where the object dispatcher used to force-feed the same leaf as an\n * explicit prop, winning over authored labels.\n *\n * It is a KEY, not words derived from one (#420): a leaf that shows up as `streetName` is\n * visibly unlabelled and gets authored, where \"Street Name\" reads as finished and never does.\n */\n const leafFallbackLabel = fieldMetaKey\n ? AutomatedLayoutFrontendUtils.unresolvedFieldLabel(fieldMetaKey.split('.').pop() ?? fieldMetaKey)\n : undefined;\n const label = props.label ?? (fieldMetaKey ? ctx?.fieldLabels?.[fieldMetaKey] : undefined) ?? leafFallbackLabel;\n /*\n * The DECLARATION decides whether a description renders, not the presence of a resolved string.\n *\n * `{primitive}UI.display.showDescription` is documented as an \"opt-in for description text below\n * the field value\" — and it was only ever an i18n GENERATION flag: it tells the companion to\n * produce the key, and nothing read it at render time. So a field resolved whatever description\n * its label bundle happened to contain, and turning the flag OFF changed nothing until somebody\n * regenerated labels — which needs a running companion, and until then the surface keeps showing\n * a sentence its schema no longer asks for. That is a generated artifact outranking the source\n * it was generated from.\n *\n * An explicitly passed `description` prop still wins: a template author writing one is making the\n * declaration at the call site.\n */\n const declaresDisplayDescription = schema ? hasDescriptionForDisplay(schema) : false;\n const description = props.description\n ?? (fieldMetaKey && declaresDisplayDescription ? ctx?.fieldDescriptions?.[fieldMetaKey] : undefined);\n const tooltipProp = props.tooltip ?? (fieldMetaKey ? ctx?.fieldTooltips?.[fieldMetaKey] : undefined);\n const enumLabels = props.enumLabels\n ?? (indexFreeName ? ctx?.enumLabels?.[indexFreeName] : undefined);\n // SUMMARY surfaces resolve base display params with `summaryOverride` merged\n // over `display` (the {primitive}UI decorator contract for cards/FK previews).\n const displayConfig = schema\n ? (displayContextKind === DisplayContextKind.SUMMARY\n ? getFieldUISummaryDisplayConfig(schema)\n : getFieldUIDisplayConfig(schema))\n : undefined;\n const displayComponent = props.displayComponent ?? displayConfig?.component;\n const parentData = props.parentData ?? getParentData(ctx?.data, pathPrefix || undefined);\n const disableInlineEdit = props.disableInlineEdit ?? false;\n const className = props.className;\n const isHiddenByDisplayShaping = fieldMatchesDisplayShapingRule(resolvedName, ctx?.hiddenFieldNames);\n const isInlineEditDisabledByDisplayShaping = fieldMatchesDisplayShapingRule(\n resolvedName,\n ctx?.inlineEditDisabledFieldNames,\n );\n\n // ── Chrome mode resolution ──\n const { displayChromeMode, sectionChromeMode } = useDisplayChromeContext();\n const inFieldTiles = useInFieldTiles();\n const summaryValueNaming = useSummaryValueNaming();\n const surfaceChromeMode = resolveSurfaceDisplayChromeMode(surfacePolicy.autoRender?.autoFieldChrome);\n // On a summary whose layout declares no chrome, a value that cannot speak for itself keeps its name\n // (`SummaryValueNamingContext`); a field's or a section's own chrome still outranks the rule.\n const namedBySummaryRule = displayContextKind === DisplayContextKind.SUMMARY\n && summaryValueNaming\n && displayConfig?.chromeMode === undefined\n && sectionChromeMode === undefined\n && keepsItsNameAlone(schemaType);\n const explicitChromeMode = displayConfig?.chromeMode\n ?? sectionChromeMode\n ?? (namedBySummaryRule ? DisplayChromeMode.INLINE : undefined)\n ?? displayChromeMode;\n const resolvedChromeMode = explicitChromeMode ?? surfaceChromeMode;\n /*\n * The surface's auto label placement is a DEFAULT for undecorated fields — a field whose\n * decorator declares its own chromeMode has chosen its presentation, and the chrome derives\n * placement from that mode. Before this guard, a surface-level `autoLabelPlacement: 'top'`\n * silently outranked every `chromeMode: INLINE` decoration: the chrome received mode INLINE\n * plus placement 'top' and rendered the STACKED branch, so INLINE was unreachable on any\n * surface that states a default — which is every resource READ page.\n */\n const resolvedLabelPlacement = props.labelPlacement\n ?? (displayConfig?.chromeMode !== undefined\n ? undefined\n : resolveSurfaceAutoLabelPlacement(surfacePolicy.autoRender?.autoLabelPlacement));\n const resolvedLabelStyle = props.labelStyle ?? displayConfig?.labelStyle;\n // Whether this value takes a whole row when it renders as a fact tile — from its shape, never authored.\n const wideValue = isWideDisplayValue(\n schemaType,\n (displayConfig as { displayMode?: string } | undefined)?.displayMode,\n schema ? getForeignKeyUIDisplay(schema)?.mode : undefined,\n );\n\n // forceHide → hideLabel/hideDescription (resolves responsive breakpoint-aware values)\n const breakpoint = ctx?.breakpoint;\n const resolvedForceHide = breakpoint\n ? resolveResponsiveValue<ForceHideDisplayConfig>(displayConfig?.forceHide, breakpoint)\n : (displayConfig?.forceHide as ForceHideDisplayConfig | undefined);\n const forceHideLabel = resolvedForceHide?.label === true;\n const forceHideDescription = resolvedForceHide?.description === true;\n\n const hideLabel = (props.hideLabel === true) || forceHideLabel;\n // A summary value the naming rule gave INLINE chrome to is one short fact on a card line: a description it\n // declares for the record page has no place there (the author chose no summary chrome to show it in).\n const hideDescription = (props.hideDescription === true) || forceHideDescription || namedBySummaryRule;\n\n // ── Resource display context (lightweight read for routing + fileUploadContext) ──\n const {\n canInlineEdit: contextCanInlineEdit,\n doInlineUpdate,\n fileUploadContext,\n rmm,\n defaultInlineEdit,\n defaultEmptyValue,\n parentReferenceConfig,\n resourceType: displayRootResourceType,\n } = useResourceDisplayContext();\n const registry = useResourceRegistrySafe()?.registry;\n\n /*\n * The LAYOUT outranks the surface policy here, and only here.\n *\n * `AutoEmptyValue` is declared per surface variant — BASE, RAISED, OVERLAY and INSET all say\n * `em-dash` — which is right for a surface, because a surface knows nothing about the fields it\n * happens to hold. In a dense table or a summary card a dash IS correct: the reader is scanning\n * and meaning comes from the neighbours.\n *\n * A settings layout knows something the surface cannot: its rows are the content, read one at a\n * time to decide something, and there an em dash refuses to say which of four things it means.\n * That layout says so once (`defaultEmptyValue`) rather than every field saying it.\n *\n * A layout with no opinion omits it and the surface policy decides exactly as before — which is\n * every layout in the product except the settings ones that opt in.\n */\n const resolvedEmptyValue = defaultEmptyValue\n ?? resolveSurfaceAutoEmptyValue(surfacePolicy.autoRender?.autoEmptyValue);\n\n // ── Provenance (#1997) ──\n //\n // A field an external-data pipeline writes says where its value came from and how current it is. Only a TOP-LEVEL\n // field of the displayed record can be pipeline-written, so a field inside an object scope (a `pathPrefix`) or an\n // array item never asks. SUMMARY surfaces (cards, FK previews) never show the cue, so they never cause the read.\n // The chrome suppresses it in COMPACT and HIDDEN on its own.\n const provenance = useExternalDataFieldProvenance({\n fieldName: !pathPrefix && !isArrayItemPath ? resolvedName : undefined,\n enabled: displayContextKind !== DisplayContextKind.SUMMARY && !props.resourceLinkTrail,\n });\n const fieldReader = useViewerFieldReader();\n // A field the backend never sends this viewer (`.readableBy`, #4434), or one under such an ANCESTOR (#4459 F8).\n const isNotReadableByViewer = !viewerMaySeeFieldOnPath(schema, resolvedName, (prefix) => getFieldSchema(ctx?.schema, prefix), fieldReader);\n\n // ── Inline edit gate ──\n //\n // A field is offered in place when it ASKS (the decorator) or when its LAYOUT offers its writable\n // fields and this field qualifies. The two are ORed on purpose and the precedence is deliberate:\n // the decorator decides HOW (mode, saveOn, which buttons), the layout default decides only\n // WHETHER — so a field carrying params keeps them under a layout that turns the default on, and a\n // field carrying `inlineEditable: false` is refused by BOTH (`isInlineEditableByDeclaration` is false\n // for it, and `isEligibleForLayoutDefaultInlineEdit` declines it explicitly).\n //\n // Everything else in this conjunction still holds, and that is what keeps the default safe: a\n // layout cannot manufacture a write path. `contextCanInlineEdit` requires an RMM, an\n // `onInlineEdit`, or a real UPDATE operation; `isInlineEditDisabledByDisplayShaping` keeps\n // relationship object/array slots fail-closed. See `ResourceLayoutInlineEditDefault` for why a\n // settings layout needs the default at all.\n // A field the UPDATE excludes is never editable in place, whatever it declares (#2322): the write would strip it\n // and persist nothing while the control reported success. The layout default already declines it\n // (`isEligibleForLayoutDefaultInlineEdit`); this closes the decorator path, so the rule is the engine's rather than\n // each author's.\n const hasDecorator = resolvedName && schema && isInlineEditableByDeclaration(schema);\n const isOfferedByLayoutDefault = (\n !!resolvedName\n && !!schema\n && defaultInlineEdit === ResourceLayoutInlineEditDefault.WRITABLE_FIELDS\n && isEligibleForLayoutDefaultInlineEdit(schema)\n );\n const isInlineEditable = (\n !disableInlineEdit &&\n !isInlineEditDisabledByDisplayShaping &&\n contextCanInlineEdit &&\n (!!hasDecorator || isOfferedByLayoutDefault)\n );\n\n // ── What draws nothing, decided before the early returns ──\n //\n // The enclosing section is told whether this slot draws anything (#4459 F6), so a display section none of whose\n // fields renders hides its heading instead of showing it over nothing, as a form section does. Every early return\n // below that draws nothing is computed here from values, so the report matches what renders (#4459 review D2). While\n // the record loads, every slot draws its skeleton, so it is present.\n const isLoading = ctx?.isLoading ?? false;\n\n // DD-10: Per-field showWhen — hidden by condition.\n // When inside an ObjectScope (pathPrefix set), evaluate showWhen against the scoped\n // parent data so sibling references resolve correctly (e.g., showWhen({ field: 'country' })\n // on address.city checks address.country, not root.country).\n // Falls back to root data when no pathPrefix or parent data is unavailable.\n const showWhenParams = schema ? getShowWhenParams(schema) : undefined;\n const showWhenData = (pathPrefix && parentData) ? parentData : ctx?.data;\n const isHiddenByShowWhen = !!showWhenParams && !!showWhenData && !AutomatedLayoutFrontendUtils.evaluateShowWhen(showWhenParams, showWhenData);\n\n // A parent reference the surface declared hidden (`ParentDisplay.NONE`) is ABSENT: no value, no empty mark, no\n // field box taking a gap (#2195). Asked only under NONE, and of the reference exactly as the dispatcher will route\n // it to the reference preset (`resolveReferenceDisplayTarget`) — so the field is omitted only when the preset would\n // draw nothing, and a reference to ANOTHER record of the parent's type keeps its box and its value. Checked before\n // any `displayComponent` override on purpose: a parent reference rendered through an override is still the parent.\n const isHiddenParentReference = ((): boolean => {\n if (parentReferenceConfig?.displayMode !== ParentDisplay.NONE || !resolvedName) return false;\n const referenceTarget = resolveReferenceDisplayTarget({\n schema,\n value,\n fieldName: resolvedName,\n parentData,\n resourceLinkTrail: props.resourceLinkTrail,\n currentResourceType: displayRootResourceType as ResourceType | undefined,\n registry,\n });\n return !!referenceTarget && withoutHiddenParentReference({ parentReferenceConfig, ...referenceTarget }).hidesWholeReference;\n })();\n\n // Field-level hide-when-empty — a field decorated with\n // `{primitive}UI({ display: { hideWhenEmpty: true } })` is omitted from the\n // DISPLAY surface entirely when its value is empty (no label, no em-dash).\n // Display-only: the edit form still renders the field so it can be filled.\n //\n // Inside `<FieldTiles>` an empty fact drops out by DEFAULT — a tile that says \"—\" is clutter on a\n // record, and the form is where an empty field is filled. A field that must show its emptiness there\n // declares `hideWhenEmpty: false`; elsewhere the decorator's own value decides, as before.\n //\n // Except a fact that can be edited IN PLACE: hiding it there removed the only way to fill it on the record\n // (audit B-6), so it keeps its empty tile. An explicit `hideWhenEmpty: true` still hides it.\n //\n // A SUMMARY (a list card, a search result, a reference preview) drops an empty value by default too (#3066): a card\n // is one line of self-describing values, and a bare \"—\" in it describes nothing. Measured on Wonder Procurement,\n // whose request cards ended \"€100.00 · Wonder Services · —\" until each field was hidden by hand. The generated\n // summary already left empty values out; an authored `layout.summary` now does the same.\n const dropsEmptyByDefault = (inFieldTiles || displayContextKind === DisplayContextKind.SUMMARY) && !isInlineEditable;\n const hidesWhenEmpty = displayConfig?.hideWhenEmpty ?? dropsEmptyByDefault;\n const isDroppedWhenEmpty = hidesWhenEmpty && isEmptyDisplayValue(value);\n\n const drawsNothing = isHiddenByDisplayShaping\n || (!!schema && isHiddenForDisplay(schema))\n || isNotReadableByViewer\n || (!isLoading && (isHiddenByShowWhen || isHiddenParentReference || isDroppedWhenEmpty || !schema || !schemaType));\n useSectionFieldPresence(!drawsNothing);\n\n // ── Early returns (after all hooks) ──\n\n if (isHiddenByDisplayShaping) {\n return <></>;\n }\n\n // Decorator-level hidden — a field marked `.isHidden()` (display variant) must\n // never render in ANY display surface. This covers both the explicit-layout path\n // (a `<DisplayField name=\"x\" />` whose schema is `.isHidden()`) and the recursive\n // object-render path (DisplayValueDispatcher renders each nested field through this\n // gate), so hidden audit/internal sub-fields stay out of whole-object renders too.\n // (`isHiddenByDisplayShaping` above handles runtime/relationship shaping via the\n // `hiddenFieldNames` context; this handles the static schema decorator.)\n if (schema && isHiddenForDisplay(schema)) {\n return <></>;\n }\n\n // A field the backend never sends this viewer (`.readableBy`, #4434) is ABSENT, not empty: no box, no label, no empty\n // mark. Rendered empty it would read as \"no value\" when the truth is \"not shown to you\".\n if (isNotReadableByViewer) {\n return <></>;\n }\n\n // Inside a `<FieldTiles>` host every child of its `<dl>` must be a term/description group. A field whose\n // chrome at this breakpoint is not TILE — one that declares STACKED, INLINE or HIDDEN, an object scope's\n // member that asks for its own chrome — rendered a bare element there, invalid in the list and squeezed\n // into one column (audit B-4). It takes a whole row instead, as the inline-editable array does.\n // The resolver answers `undefined` for a responsive declaration naming no chrome at this breakpoint,\n // which the chrome then draws STACKED — also not a tile.\n const declaredChromeHere = resolveDeclaredDisplayChromeMode(resolvedChromeMode, breakpoint ?? ViewportBreakpoint.DESKTOP);\n const rowInFieldTiles = inFieldTiles && declaredChromeHere !== DisplayChromeMode.TILE;\n // The row's term is announced only when nothing inside the row names the value: the chrome shows no\n // name (HIDDEN, COMPACT, or the label hidden) AND does not give it one for assistive technology itself\n // (a `hidden` label placement, or a summary's `announceName`, renders its own sr-only name).\n const chromeShowsName = !hideLabel\n && resolvedLabelPlacement !== 'hidden'\n && declaredChromeHere !== DisplayChromeMode.HIDDEN\n && declaredChromeHere !== DisplayChromeMode.COMPACT;\n const chromeAnnouncesName = !hideLabel\n && (resolvedLabelPlacement === 'hidden' || displayContextKind === DisplayContextKind.SUMMARY);\n const rowTermAnnounced = !chromeShowsName && !chromeAnnouncesName;\n\n // DD-9: Template-as-skeleton — render Skeleton when loading\n if (isLoading) {\n return (\n <InFieldTilesRow active={rowInFieldTiles} name={resolvedName} label={label} termAnnounced={rowTermAnnounced}>\n <DisplayFieldChrome\n mode={resolvedChromeMode}\n label={label}\n labelStyle={resolvedLabelStyle}\n name={resolvedName}\n labelPlacement={resolvedLabelPlacement}\n hideLabel={hideLabel}\n hideDescription={true}\n tooltip={tooltipProp}\n wide={wideValue}\n announceName={displayContextKind === DisplayContextKind.SUMMARY}\n >\n <Skeleton className=\"h-5 w-full\" />\n </DisplayFieldChrome>\n </InFieldTilesRow>\n );\n }\n\n // Hidden by its showWhen condition, a hidden parent reference, an empty value this display drops: see above.\n if (isHiddenByShowWhen || isHiddenParentReference || isDroppedWhenEmpty) {\n return <></>;\n }\n\n // No schema — cannot render\n if (!schema || !schemaType) {\n logger.error('[DisplayField] Cannot resolve schema for field', { name: resolvedName });\n return <></>;\n }\n\n // ── Resolved props for child components ──\n const resolvedProps = {\n schema,\n schemaType,\n value,\n fieldName: resolvedName,\n label,\n description,\n tooltip: tooltipProp,\n provenance,\n enumLabels,\n displayComponent,\n parentData,\n resourceLinkTrail: props.resourceLinkTrail,\n /*\n * The per-item template now reaches the READ path too. It used to be forwarded only on the\n * inline-editable ARRAY branch below, so `DisplayFieldArray.renderItem` was accepted and\n * silently ignored on every display template — measured: the rendered page was byte-identical\n * with and without it.\n */\n renderItem: props.renderField,\n className,\n hideLabel,\n hideDescription,\n resolvedChromeMode,\n resolvedLabelPlacement,\n resolvedLabelStyle,\n resolvedEmptyValue,\n fileUploadContext,\n wideValue,\n // A summary shows bare values; its chrome still names each one for assistive technology (audit B-10).\n announceName: displayContextKind === DisplayContextKind.SUMMARY,\n };\n\n return (\n <DisplayFieldErrorBoundary name={resolvedName}>\n {isInlineEditable && schemaType === FieldSchemaType.ARRAY ? (\n // Inline-editable ARRAY → a PERSISTENT inline editor (add / edit / remove /\n // reorder, whole-array autosave) instead of the scalar click-to-edit overlay.\n // `isInlineEditable` already guarantees `resolvedName` is a non-empty string.\n //\n // Inside `<FieldTiles>` the editor takes a whole row as a term/description group of the host's\n // `<dl>`: its own legend names it, so the term is visually hidden. Without this it sat in the\n // `<dl>` as a bare div, with no span, sharing a column with one-line facts.\n <InFieldTilesRow active={inFieldTiles} name={resolvedName} label={label}>\n <DisplayFieldEditableArray\n name={resolvedName as string}\n schema={schema}\n value={value}\n label={label}\n description={description}\n doInlineUpdate={doInlineUpdate}\n renderField={props.renderField}\n sectionAppearance={props.sectionAppearance}\n objectItemLayout={props.objectItemLayout}\n enumLabels={enumLabels}\n hideLabel={hideLabel}\n displayChromeMode={breakpoint\n ? resolveResponsiveValue<DisplayChromeMode>(resolvedChromeMode, breakpoint)\n : (typeof resolvedChromeMode === 'string' ? resolvedChromeMode : undefined)}\n />\n </InFieldTilesRow>\n ) : isInlineEditable ? (\n <InFieldTilesRow active={rowInFieldTiles} name={resolvedName} label={label} termAnnounced={rowTermAnnounced}>\n <DisplayFieldEditable\n {...resolvedProps}\n doInlineUpdate={doInlineUpdate}\n rmm={rmm}\n />\n </InFieldTilesRow>\n ) : schemaType === FieldSchemaType.ARRAY && props.sectionAppearance ? (\n // Read-only ARRAY authored via DisplayFieldArray (which sets\n // `sectionAppearance`, GHOST by default) → render it in a controllable\n // SECTION container (legend + appearance), matching the editable path,\n // instead of the default chrome + bare list. Only wrapper-authored\n // arrays pass `sectionAppearance`, so direct DisplayField usages are\n // untouched. In a tile host it brings its own frame, so it takes a whole row.\n <InFieldTilesRow active={inFieldTiles} name={resolvedName} label={label}>\n <DisplayFieldReadOnlyArraySection {...resolvedProps} sectionAppearance={props.sectionAppearance} />\n </InFieldTilesRow>\n ) : (\n <InFieldTilesRow active={rowInFieldTiles} name={resolvedName} label={label} termAnnounced={rowTermAnnounced}>\n <DisplayFieldReadOnly {...resolvedProps} />\n </InFieldTilesRow>\n )}\n </DisplayFieldErrorBoundary>\n );\n}\n\nDisplayFieldComponent.displayName = 'DisplayField';\n\nexport const DisplayField: typeof DisplayFieldComponent & { displayName: string } = DisplayFieldComponent;\ndeclareSectionContentRole(DisplayField, SectionContentRole.DISPLAY_FIELD_SLOT);\n\n// =============================================================================\n// ERROR BOUNDARY (ROBUST-01)\n// =============================================================================\n\ninterface DisplayFieldErrorBoundaryProps {\n name?: string;\n children: React.ReactNode;\n}\n\ninterface DisplayFieldErrorBoundaryState {\n hasError: boolean;\n}\n\n/**\n * Lightweight error boundary wrapping individual DisplayField instances.\n * Prevents a single malformed field value from crashing the entire page.\n *\n * Uses hardcoded English for the fallback message because class components\n * cannot call hooks (useI18n). Error boundaries are a last resort — the\n * message is developer-facing, not user-facing in normal operation.\n */\nexport class DisplayFieldErrorBoundary extends React.Component<\n DisplayFieldErrorBoundaryProps,\n DisplayFieldErrorBoundaryState\n> {\n state: DisplayFieldErrorBoundaryState = { hasError: false };\n\n static getDerivedStateFromError(): DisplayFieldErrorBoundaryState {\n return { hasError: true };\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n const fieldId = this.props.name;\n logger.error('[DisplayField] Error boundary caught error', {\n name: fieldId,\n error: error.message,\n componentStack: errorInfo.componentStack,\n });\n }\n\n render(): React.ReactNode {\n const fieldId = this.props.name;\n if (this.state.hasError) {\n return (\n <div className=\"flex items-center gap-element px-card-sm py-item-xs rounded-md bg-destructive/10 border border-destructive/20\">\n <span className=\"text-destructive text-sm\">Error rendering field</span>\n {fieldId && (\n <code className=\"text-xs text-destructive/70 px-item-xs rounded bg-destructive/5\">{fieldId}</code>\n )}\n </div>\n );\n }\n return this.props.children;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayFieldEditable.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayFieldEditable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAkF,MAAM,OAAO,CAAC;AA0BvG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAC;AAU9G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAyDhF,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC1E,oEAAoE;IACpE,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,uDAAuD;IACvD,GAAG,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;CACtC;AAMD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CA0jB/F;yBA1jBe,oBAAoB"}
1
+ {"version":3,"file":"DisplayFieldEditable.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayFieldEditable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAkF,MAAM,OAAO,CAAC;AA0BvG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAC;AAW9G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAyDhF,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC1E,oEAAoE;IACpE,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,uDAAuD;IACvD,GAAG,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;CACtC;AAMD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CA4jB/F;yBA5jBe,oBAAoB"}
@@ -30,6 +30,7 @@ import { NOOP_GET_SNAPSHOT, NOOP_SUBSCRIBE } from '../../core/resources/rmm/rmm-
30
30
  import { RMMEventType, MutationErrorType, MutationSourceType } from '../../core/resources/rmm/types.js';
31
31
  import { FormSchemaProvider, SERVER_ERROR_TYPE } from '../../components/form/form-context.js';
32
32
  import { extractServerValidationErrors } from '../../components/form/validation-errors/form-error-extraction.utils.js';
33
+ import { recordSaveAttempt } from '../../components/form/validation-errors/save-attempt.js';
33
34
  import { FormSchemaKind } from '../../components/form/form-field-types.js';
34
35
  import { FormField } from '../../components/form/automated/FormField.js';
35
36
  import { SwitchRoot } from '../../components/form/controls/boolean/switch.js';
@@ -202,7 +203,9 @@ export function DisplayFieldEditable(props) {
202
203
  const isValid = await form.trigger(fieldKey);
203
204
  if (!isValid) {
204
205
  // Show it. A field shows a client error once it is touched (`getFieldError`), and saving with Enter never blurs
205
- // the input, so the save was refused with nothing on screen. The value is written back unchanged.
206
+ // the input, so the save was refused with nothing on screen. The value is written back unchanged. The save is the
207
+ // person asking to save this field, so a missing value shows too (`getFieldError`).
208
+ recordSaveAttempt(form.control, [fieldKey]);
206
209
  form.setValue(fieldKey, form.getValues(fieldKey), { shouldTouch: true, shouldDirty: false, shouldValidate: false });
207
210
  setEditState(InlineEditState.EDITING);
208
211
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayFieldEditable.js","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayFieldEditable.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AAEH,OAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAA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AkB,IACjB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,SAAS,EACf,cAAc,EAAE,sBAAsB,EACtC,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,SAAS,EACf,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,YAEnB,OAAO,GACW,CACtB,CAAC;AACJ,CAAC;AAED,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC","sourcesContent":["/**\n * DisplayFieldEditable — inline-editable display field.\n *\n * Renders as a clickable trigger in display mode, switches to an inline\n * form when activated. Manages all editing state: useForm, RMM subscription,\n * focus management, save/cancel callbacks.\n *\n * Display mode: DisplayFieldChrome → inline edit trigger (wrapping DisplayValueDispatcher)\n * Edit mode: DisplayFieldChrome → FormField with embedded FormFieldChrome\n */\n\nimport React, { useState, useCallback, useMemo, useRef, useEffect, useSyncExternalStore } from 'react';\nimport { z } from 'zod';\nimport { useForm } from 'react-hook-form';\nimport { zodIssueResolver } from '~wildo-frontend-lib/components/form/validation-errors/zod-issue-resolver';\n\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { IconSize, StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { Text, Code } from '~wildo-frontend-lib/components/typography/text';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { ButtonSize } from '@wildo-ai/presets-components-models';\nimport { Alert, AlertDescription } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { FrontendComponentType, UIBehavior, InteractiveVariant, IndicatorVariant, TypographyVariant } from '@wildo-ai/presets-components-models';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { CoreResourceOperation, isValidationErrorEntry, type ResourceType, type ValidationErrorValue } from '@wildo-ai/saas-models';\nimport {\n FieldSchemaType,\n getInlineEditableParams,\n isMultilineEditField,\n isTemplatableFileField,\n} from '@wildo-ai/zod-decorators';\n\nimport { rmmFieldPathIsDescendant, rmmReadPathValue } from '~wildo-frontend-lib/core/resources/rmm/field-path.utils';\nimport { NOOP_GET_SNAPSHOT, NOOP_SUBSCRIBE } from '~wildo-frontend-lib/core/resources/rmm/rmm-noop-snapshot';\nimport { RMMEventType, MutationErrorType, MutationSourceType } from '~wildo-frontend-lib/core/resources/rmm/types';\nimport type { ResourceMutationManager } from '~wildo-frontend-lib/core/resources/rmm/ResourceMutationManager';\nimport { FormSchemaProvider, SERVER_ERROR_TYPE } from '~wildo-frontend-lib/components/form/form-context';\nimport { extractServerValidationErrors } from '~wildo-frontend-lib/components/form/validation-errors/form-error-extraction.utils';\nimport { FormSchemaKind } from '~wildo-frontend-lib/components/form/form-field-types';\nimport { FormField } from '~wildo-frontend-lib/components/form/automated/FormField';\nimport { SwitchRoot } from '~wildo-frontend-lib/components/form/controls/boolean/switch';\nimport { DEFAULT_VALIDATION_MODE, InlineEditState } from '~wildo-frontend-lib/core/automated-layout/automated-layout.frontend.schemas';\nimport { AutomatedLayoutFrontendUtils } from '~wildo-frontend-lib/core/automated-layout/automated-layout.frontend.utils';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nimport type { DisplayFieldResolvedProps } from './display-field-resolved-props';\nimport { DisplayFieldChrome } from './chromes/DisplayFieldChrome';\nimport { DisplayValueDispatcher } from './DisplayValueDispatcher';\nimport { InlineEditMutationError, useResourceDisplayContext } from './automatic-displayer.utils';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { resolveRelationshipInlineEditSurface } from '~wildo-frontend-lib/core/resources/relationship-surface-runtime.frontend.utils';\n\nconst logger = LoggerFrontendService.getLogger();\n\n/**\n * The server's refusal of one field, from an inline save's failure: through the RMM (an `InlineEditMutationError`\n * carrying the mutation's validation errors) or sent directly (the HTTP client's error). A refusal of the field itself\n * or of one of its parts (`price.amount` for `price`) counts; one that names another field, or none, does not.\n */\nfunction serverRefusalOfField(error: unknown, fieldName: string): ValidationErrorValue | undefined {\n const mutationError = error instanceof InlineEditMutationError ? error.mutationError : undefined;\n const extracted = mutationError\n ? (mutationError.validationErrors ? extractServerValidationErrors({ httpStatus: mutationError.status ?? 400, validationErrors: mutationError.validationErrors }) : null)\n : extractServerValidationErrors(error);\n if (!extracted) return undefined;\n const key = Object.keys(extracted.validationErrors).find((path) => path === fieldName || path.startsWith(`${fieldName}.`));\n return key === undefined ? undefined : extracted.validationErrors[key];\n}\nconst logDebug = logger.debugByType('DisplayFieldEditable');\nlogger.setDebugTypeLogging('DisplayFieldEditable', false);\n\n// =============================================================================\n// HELPERS\n// =============================================================================\n\n/**\n * Check if a field name matches any entry in changedFields/savedFields.\n * Handles nested dot-paths: a change to `address` matches `address.city`.\n */\nfunction fieldMatchesEvent(fieldName: string, eventFields: string[]): boolean {\n return eventFields.some(\n (f) => fieldName === f || fieldName.startsWith(f + '[') || rmmFieldPathIsDescendant(f, fieldName),\n );\n}\n\nfunction hasActionableFileEndpoints(\n endpoints: { upload?: string; override?: string } | undefined,\n): boolean {\n return !!(endpoints?.upload || endpoints?.override);\n}\n\nconst DEFAULT_INLINE_EDIT_PARAMS = {\n mode: 'direct' as const,\n saveOn: 'blur' as const,\n showSaveButton: false,\n showCancelButton: true,\n} as const;\n\n// =============================================================================\n// PROPS\n// =============================================================================\n\nexport interface DisplayFieldEditableProps extends DisplayFieldResolvedProps {\n /** Callback to save an inline edit. From ResourceDisplayContext. */\n doInlineUpdate: (fieldName: string, value: unknown) => Promise<void>;\n /** RMM instance for reacting to external mutations. */\n rmm?: ResourceMutationManager | null;\n}\n\n// =============================================================================\n// COMPONENT\n// =============================================================================\n\nexport function DisplayFieldEditable(props: DisplayFieldEditableProps): React.JSX.Element | null {\n const {\n schema,\n schemaType,\n value,\n fieldName,\n label,\n description,\n tooltip,\n provenance,\n enumLabels,\n displayComponent,\n parentData,\n resourceLinkTrail,\n className,\n hideLabel,\n hideDescription,\n resolvedChromeMode,\n resolvedLabelPlacement,\n resolvedEmptyValue,\n fileUploadContext,\n wideValue,\n announceName,\n doInlineUpdate,\n rmm,\n } = props;\n\n const { tComponent, tErrorValidation, isReady } = useI18n({\n component: [FrontendComponentType.LOW_LEVEL_FORM_FIELD, FrontendComponentType.LOW_LEVEL_BUTTON],\n });\n const { getRecipe } = useUI();\n const { renderIcon } = useIconRegistry();\n const resourceDisplayContext = useResourceDisplayContext();\n const { registry } = useResourceRegistry();\n\n const successIndicatorRecipe = getRecipe(UIBehavior.INDICATOR, IndicatorVariant.SUCCESS);\n\n // ── Inline editing state ──\n const [editState, setEditState] = useState<InlineEditState>(InlineEditState.DISPLAY);\n const [saveErrorMessage, setSaveErrorMessage] = useState<string | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const retryButtonRef = useRef<HTMLButtonElement>(null);\n const savedTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const lastProcessedEventIdRef = useRef<number | null>(null);\n\n // ── Boolean toggle-in-place state (T4b) ──\n // An inline-editable boolean renders a LIVE Switch that persists immediately on\n // toggle (no click-to-edit overlay). `optimisticBool` gives instant feedback and\n // is cleared when the authoritative `value` arrives (or on error → revert).\n const [booleanSaving, setBooleanSaving] = useState(false);\n const [optimisticBool, setOptimisticBool] = useState<boolean | null>(null);\n\n // Truncation state for arrays/objects (ROBUST-03)\n const [showAllArrayItems, setShowAllArrayItems] = useState(false);\n const [showAllObjectFields, setShowAllObjectFields] = useState(false);\n const prevValueRef = useRef(value);\n useEffect(() => {\n if (prevValueRef.current !== value) {\n setShowAllArrayItems(false);\n setShowAllObjectFields(false);\n // Authoritative value arrived (RMM update / conflict reset) → drop optimism.\n setOptimisticBool(null);\n prevValueRef.current = value;\n }\n }, [value]);\n\n const isInEditMode = editState !== InlineEditState.DISPLAY;\n const isSaving = editState === InlineEditState.SAVING;\n\n // ── RMM subscription ──\n const rmmForField = rmm ?? null;\n const rmmSnapshot = useSyncExternalStore(\n rmmForField?.subscribe ?? NOOP_SUBSCRIBE,\n rmmForField?.getSnapshot ?? NOOP_GET_SNAPSHOT,\n );\n\n // ── Inline edit params from decorator ──\n const inlineEditParams = getInlineEditableParams(schema);\n const params = inlineEditParams ?? DEFAULT_INLINE_EDIT_PARAMS;\n const relationshipInlineEditSurface = useMemo(() => {\n if (!fieldName || !resourceDisplayContext.resourceType) {\n return undefined;\n }\n\n return resolveRelationshipInlineEditSurface({\n resourceType: resourceDisplayContext.resourceType as ResourceType,\n fieldName,\n operationType: CoreResourceOperation.UPDATE,\n registry,\n });\n }, [fieldName, registry, resourceDisplayContext.resourceType]);\n const inlineFileEndpoints = useMemo(() => {\n if (!fieldName) {\n return undefined;\n }\n\n return fileUploadContext?.[AutomatedLayoutFrontendUtils.normalizeSchemaFieldPath(fieldName)];\n }, [fieldName, fileUploadContext]);\n const supportsInlineFileEditing = schemaType !== FieldSchemaType.FILE\n || (!isTemplatableFileField(schema) && hasActionableFileEndpoints(inlineFileEndpoints));\n\n // ── Isolated form for inline editing ──\n // PERF: useForm() is unconditionally instantiated due to Rules of Hooks.\n // In a future refactor, extract the edit form into a child component\n // (DisplayFieldInlineEditForm) that mounts only when editing, so useForm()\n // is lazy. The cost is ~1 useForm per editable field even in display mode.\n const fieldKey = useMemo(() => {\n return fieldName?.includes('.') ? fieldName.split('.').pop()! : (fieldName ?? 'value');\n }, [fieldName]);\n\n const formSchema = useMemo(() => {\n return z.object({ [fieldKey]: schema });\n }, [fieldKey, schema]);\n\n const form = useForm({\n // The resolver that keeps the issue code, so an inline edit's error translates like a form's (#995).\n resolver: zodIssueResolver(formSchema),\n defaultValues: { [fieldKey]: value },\n mode: DEFAULT_VALIDATION_MODE,\n });\n\n // Reset form when value or schema changes externally (schema may change\n // for discriminated unions; resetting ensures the resolver stays in sync)\n useEffect(() => {\n if (editState === InlineEditState.DISPLAY) {\n form.reset({ [fieldKey]: value });\n setSaveErrorMessage(null);\n }\n }, [value, editState, form, fieldKey, schema]);\n\n // Auto-focus when entering edit mode\n useEffect(() => {\n if (isInEditMode && containerRef.current) {\n const timer = setTimeout(() => {\n const firstInput = containerRef.current?.querySelector<HTMLElement>(\n 'input, textarea, select, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (firstInput) {\n firstInput.focus();\n }\n }, 0);\n return () => clearTimeout(timer);\n }\n }, [isInEditMode]);\n\n // Auto-focus retry button on error\n useEffect(() => {\n if (editState === InlineEditState.ERROR) {\n retryButtonRef.current?.focus();\n }\n }, [editState]);\n\n // Cleanup SAVED→DISPLAY timeout on unmount to prevent state updates on unmounted component\n useEffect(() => {\n return () => {\n if (savedTimeoutRef.current != null) {\n clearTimeout(savedTimeoutRef.current);\n }\n };\n }, []);\n\n // ── Callbacks ──\n\n const handleSave = useCallback(async () => {\n if (!fieldName) return;\n\n const isValid = await form.trigger(fieldKey);\n if (!isValid) {\n // Show it. A field shows a client error once it is touched (`getFieldError`), and saving with Enter never blurs\n // the input, so the save was refused with nothing on screen. The value is written back unchanged.\n form.setValue(fieldKey, form.getValues(fieldKey), { shouldTouch: true, shouldDirty: false, shouldValidate: false });\n setEditState(InlineEditState.EDITING);\n return;\n }\n setSaveErrorMessage(null);\n\n setEditState(InlineEditState.SAVING);\n try {\n const formValue = form.getValues(fieldKey);\n await doInlineUpdate(fieldName, formValue);\n logDebug('inline edit save', { fieldName, value: formValue });\n setEditState(InlineEditState.SAVED);\n savedTimeoutRef.current = setTimeout(() => {\n setEditState(InlineEditState.DISPLAY);\n savedTimeoutRef.current = null;\n }, 500);\n } catch (err) {\n if (err instanceof InlineEditMutationError && err.mutationError?.type === MutationErrorType.CONFLICT) {\n return;\n }\n // The server refused THIS value: say why, at the field, and keep the person editing, as a form does. It used to\n // read \"save failed\" with a Retry, which sent the same value to the same refusal.\n const refusal = serverRefusalOfField(err, fieldName);\n if (refusal !== undefined) {\n const message = isValidationErrorEntry(refusal) ? tErrorValidation(refusal.code, 'msg', refusal.params) : refusal;\n form.setError(fieldKey, { type: SERVER_ERROR_TYPE, message });\n setEditState(InlineEditState.EDITING);\n return;\n }\n setSaveErrorMessage(tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'save_failed'));\n setEditState(InlineEditState.ERROR);\n }\n }, [form, fieldKey, fieldName, doInlineUpdate, tComponent, tErrorValidation]);\n\n // A refusal stands for the value the server saw: once the person changes it, it no longer applies.\n useEffect(() => {\n const subscription = form.watch((_values, { name }) => {\n if (name === fieldKey && form.getFieldState(fieldKey).error?.type === SERVER_ERROR_TYPE) form.clearErrors(fieldKey);\n });\n return () => subscription.unsubscribe();\n }, [form, fieldKey]);\n\n const handleCancel = useCallback(() => {\n if (fieldName) {\n logDebug('inline edit cancel', { fieldName });\n }\n form.reset({ [fieldKey]: value });\n setSaveErrorMessage(null);\n setEditState(InlineEditState.DISPLAY);\n }, [form, fieldKey, value, fieldName]);\n\n // ── Boolean toggle-in-place handler (T4b) ──\n // Persists immediately via the same RMM `doInlineUpdate` path used by the\n // click-to-edit flow. Optimistic flip for responsiveness; reverts on error\n // (a CONFLICT is authoritative — RMM re-syncs `value`, so leave the revert to\n // the value-change effect and surface no error message).\n const handleBooleanToggle = useCallback(async (next: boolean) => {\n if (!fieldName) return;\n setOptimisticBool(next);\n setSaveErrorMessage(null);\n setBooleanSaving(true);\n try {\n await doInlineUpdate(fieldName, next);\n logDebug('inline boolean toggle', { fieldName, value: next });\n } catch (err) {\n setOptimisticBool(null);\n if (!(err instanceof InlineEditMutationError && err.mutationError?.type === MutationErrorType.CONFLICT)) {\n // A refusal of this field says why (a rule the server holds), not merely that the save failed.\n const refusal = serverRefusalOfField(err, fieldName);\n setSaveErrorMessage(\n refusal === undefined\n ? tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'save_failed')\n : isValidationErrorEntry(refusal) ? tErrorValidation(refusal.code, 'msg', refusal.params) : refusal,\n );\n }\n } finally {\n setBooleanSaving(false);\n }\n }, [fieldName, doInlineUpdate, tComponent, tErrorValidation]);\n\n // ── RMM event handler ──\n // Read the translator through a ref: listing it in the effect below would re-run its CONFLICT_RESET branch\n // (`form.reset`) on every provider render, while omitting it would keep a stale translator after a locale change.\n const tComponentRef = useRef(tComponent);\n tComponentRef.current = tComponent;\n\n // Cancel inline edit when an external mutation changes this field.\n // Tracks last-processed event ID to prevent re-processing the same event\n // when other deps change (e.g., editState transitions from DISPLAY→EDITING).\n useEffect(() => {\n if (!rmmForField || !rmmSnapshot?.lastEvent || !fieldName) return;\n const event = rmmSnapshot.lastEvent;\n\n if (event.id === lastProcessedEventIdRef.current) return;\n lastProcessedEventIdRef.current = event.id;\n\n switch (event.type) {\n case RMMEventType.REMOTE_UPDATE: {\n if (fieldMatchesEvent(fieldName, event.changedFields) && editState === InlineEditState.EDITING) {\n logDebug('RMM event cancelling inline edit', { fieldName, eventType: event.type });\n handleCancel();\n }\n break;\n }\n case RMMEventType.CONFLICT_RESET: {\n const authoritativeValue = rmmReadPathValue(event.currentData, fieldName);\n form.reset({ [fieldKey]: authoritativeValue });\n\n if (editState !== InlineEditState.DISPLAY) {\n logDebug('RMM event resetting inline edit after conflict', { fieldName, eventType: event.type });\n setSaveErrorMessage(tComponentRef.current(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'field_reset_after_conflict'));\n setEditState(InlineEditState.ERROR);\n }\n break;\n }\n case RMMEventType.MUTATION_RESULT: {\n if (\n event.result.success &&\n event.source.type !== MutationSourceType.DISPLAY &&\n event.result.savedFields &&\n fieldMatchesEvent(fieldName, event.result.savedFields) &&\n editState === InlineEditState.EDITING\n ) {\n logDebug('RMM event cancelling inline edit', { fieldName, eventType: event.type });\n handleCancel();\n }\n break;\n }\n case RMMEventType.RESOURCE_DELETED: {\n if (editState === InlineEditState.EDITING) {\n logDebug('RMM event cancelling inline edit', { fieldName, eventType: event.type });\n handleCancel();\n }\n break;\n }\n }\n }, [rmmSnapshot?.lastEvent?.id, rmmForField, fieldName, editState, fieldKey, form, handleCancel]);\n\n // ── Blur & keyboard handlers ──\n\n const handleContainerBlur = useCallback((e: React.FocusEvent) => {\n if (params.saveOn === 'blur' && containerRef.current) {\n const relatedTarget = e.relatedTarget as HTMLElement | null;\n if (!containerRef.current.contains(relatedTarget)) {\n handleSave();\n }\n }\n }, [params.saveOn, handleSave]);\n\n // `isMultilineEditField`, not `isFormTextarea`: the latter read ONLY the\n // cross-cutting `edit.component` axis, so a field declaring the per-type\n // `edit.editMode: TEXTAREA` — the axis the renderer honors — was treated as\n // single-line here and Enter saved instead of inserting a newline.\n const isMultilineField = schemaType === FieldSchemaType.CODE || isMultilineEditField(schema);\n const handleKeyDown = useCallback((e: React.KeyboardEvent) => {\n if (e.key === 'Escape') {\n e.preventDefault();\n handleCancel();\n return;\n }\n if (e.key === 'Enter') {\n if (isMultilineField) {\n if (e.ctrlKey || e.metaKey) {\n e.preventDefault();\n handleSave();\n }\n } else if (!e.shiftKey) {\n e.preventDefault();\n handleSave();\n }\n }\n }, [handleSave, handleCancel, isMultilineField]);\n\n // ── Content rendering ──\n\n function renderDisplayValue(): React.JSX.Element {\n return (\n <DisplayValueDispatcher\n schema={schema}\n schemaType={schemaType}\n value={value}\n fieldName={fieldName}\n label={label}\n className={className}\n enumLabels={enumLabels}\n displayComponent={displayComponent}\n parentData={parentData}\n resourceLinkTrail={resourceLinkTrail}\n emptyValue={resolvedEmptyValue}\n fileUploadContext={fileUploadContext}\n showAllArrayItems={showAllArrayItems}\n onExpandArrayItems={() => setShowAllArrayItems(true)}\n showAllObjectFields={showAllObjectFields}\n onExpandObjectFields={() => setShowAllObjectFields(true)}\n />\n );\n }\n\n // Boolean toggle-in-place (T4b): a live Switch, right-pinned in the settings row,\n // that writes immediately on toggle. No click-to-edit overlay, no ✓/✕ glyph.\n function renderBooleanToggle(): React.JSX.Element {\n const checked = optimisticBool ?? !!value;\n return (\n <div className=\"inline-flex items-center gap-element\">\n {booleanSaving && (\n <span className=\"text-muted-foreground\" aria-hidden=\"true\">\n {renderIcon(StandardIconReference.LOADER_2, {\n size: IconSize.SM,\n className: 'animate-spin motion-reduce:animate-none',\n })}\n </span>\n )}\n {saveErrorMessage && !booleanSaving && (\n <span className=\"text-destructive text-xs\" role=\"alert\">{saveErrorMessage}</span>\n )}\n <SwitchRoot\n checked={checked}\n onCheckedChange={handleBooleanToggle}\n disabled={booleanSaving}\n aria-label={label || fieldName || undefined}\n />\n </div>\n );\n }\n\n function renderInlineEditTrigger(): React.JSX.Element {\n return (\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.GHOST}\n className={cn(\"group relative inline-flex items-center gap-element h-auto px-card-sm py-item-xs\")}\n onClick={() => {\n if (fieldName) {\n logDebug('inline edit start', { fieldName });\n }\n setEditState(InlineEditState.EDITING);\n }}\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'editField', { label: label || fieldName || '' })}\n >\n <span className=\"flex-1\">{renderDisplayValue()}</span>\n <span className=\"text-muted-foreground opacity-0 group-hover:opacity-100 motion-safe:transition-opacity\">\n {renderIcon(StandardIconReference.EDIT, { size: IconSize.SM })}\n </span>\n </Button>\n );\n }\n\n function renderInlineEditForm(): React.JSX.Element {\n const errorAlertId = fieldName ? `inline-edit-error-${fieldName.replace(/\\./g, '-')}` : undefined;\n const hasError = editState === InlineEditState.ERROR && !!saveErrorMessage;\n\n return (\n <FormSchemaProvider\n schema={formSchema}\n // This surface wraps a single field from the resource's MAIN schema, not an operation\n // request DTO. Declaring it is what lets `FormField` ask the right clearability question:\n // on a main schema an ordinary `.optional()` field does not accept `null`, so the\n // request-DTO question would report every clearable field un-clearable — which left\n // refined optional fields (colour, email, url) impossible to empty inline.\n schemaKind={FormSchemaKind.MAIN_SCHEMA}\n form={form}\n resourceType={resourceDisplayContext.resourceType}\n resourceId={resourceDisplayContext.resourceId}\n operationType={CoreResourceOperation.UPDATE}\n contextResourceIdentifiers={resourceDisplayContext.contextResourceIdentifiers}\n navigationZone={resourceDisplayContext.navigationZone}\n >\n <div\n ref={containerRef}\n className=\"inline-flex flex-col gap-item-xs min-w-[200px]\"\n onBlur={handleContainerBlur}\n onKeyDown={handleKeyDown}\n aria-describedby={hasError ? errorAlertId : undefined}\n >\n <div className=\"flex items-start gap-element\">\n <div className=\"flex-1\">\n <FormField\n name={fieldKey}\n quickCreateSourceFieldName={relationshipInlineEditSurface?.sourceFieldName}\n schema={schema}\n label=\"\"\n description=\"\"\n disabled={isSaving}\n placeholder={label}\n enumLabels={enumLabels}\n respectSurfaceErrorPlacement={false}\n fileUploadContext={inlineFileEndpoints\n ? { [fieldKey]: inlineFileEndpoints }\n : undefined}\n className=\"inline-edit-field\"\n />\n </div>\n\n <div className=\"flex items-center gap-item-xs shrink-0 pt-item-xs\">\n {editState === InlineEditState.SAVED && (\n <div className={successIndicatorRecipe.base} aria-hidden=\"true\">\n {renderIcon(StandardIconReference.CHECK, { size: IconSize.SM })}\n </div>\n )}\n\n {params.showSaveButton && editState !== InlineEditState.SAVED && (\n <Button\n type=\"button\"\n size={ButtonSize.SM}\n variant={ButtonVariants_Variant.DEFAULT}\n onClick={handleSave}\n disabled={isSaving}\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_BUTTON, 'save')}\n >\n {editState === InlineEditState.SAVING\n ? renderIcon(StandardIconReference.LOADER_2, {\n size: IconSize.SM,\n className: 'animate-spin motion-reduce:animate-none'\n })\n : renderIcon(StandardIconReference.CHECK, { size: IconSize.SM })\n }\n </Button>\n )}\n\n {params.showCancelButton && (\n <Button\n type=\"button\"\n size={ButtonSize.SM}\n variant={ButtonVariants_Variant.GHOST}\n onClick={handleCancel}\n disabled={isSaving}\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_BUTTON, 'cancel')}\n >\n {renderIcon(StandardIconReference.CLOSE, { size: IconSize.SM })}\n </Button>\n )}\n </div>\n </div>\n\n {hasError && (\n <Alert id={errorAlertId} variant=\"destructive\" role=\"alert\" className=\"flex items-center gap-element py-card-sm\">\n {renderIcon(StandardIconReference.ERROR, {\n size: IconSize.SM,\n className: 'shrink-0'\n })}\n <AlertDescription className=\"flex-1 m-0\">\n <Text>{saveErrorMessage}</Text>\n </AlertDescription>\n {(() => {\n const retryLabel = tComponent(FrontendComponentType.LOW_LEVEL_BUTTON, 'retry');\n return (\n <Button\n ref={retryButtonRef}\n type=\"button\"\n size={ButtonSize.SM}\n variant={ButtonVariants_Variant.GHOST}\n onClick={handleSave}\n disabled={isSaving}\n aria-label={retryLabel}\n title={retryLabel}\n >\n {renderIcon(StandardIconReference.TRY_AGAIN, { size: IconSize.SM })}\n </Button>\n );\n })()}\n </Alert>\n )}\n </div>\n </FormSchemaProvider>\n );\n }\n\n if (!isReady) return null;\n\n // ── Determine content based on edit state ──\n let content: React.JSX.Element;\n if (schemaType === FieldSchemaType.BOOLEAN && fieldName) {\n // Inline-editable boolean → live toggle-in-place Switch (T4b), no overlay.\n content = renderBooleanToggle();\n } else if (isInEditMode && fieldName && supportsInlineFileEditing) {\n content = renderInlineEditForm();\n } else if (!supportsInlineFileEditing) {\n content = renderDisplayValue();\n } else {\n content = renderInlineEditTrigger();\n }\n\n return (\n <DisplayFieldChrome\n mode={resolvedChromeMode}\n label={label}\n description={description}\n tooltip={tooltip}\n provenance={provenance}\n name={fieldName}\n labelPlacement={resolvedLabelPlacement}\n hideLabel={hideLabel}\n hideDescription={hideDescription}\n wide={wideValue}\n announceName={announceName}\n className={className}\n >\n {content}\n </DisplayFieldChrome>\n );\n}\n\nDisplayFieldEditable.displayName = 'DisplayFieldEditable';\n"]}
1
+ {"version":3,"file":"DisplayFieldEditable.js","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayFieldEditable.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AAEH,OAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,oBAAoB,EA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kBAAkB,EAAE,CAAC;IACjC,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,uBAAuB,EAAE,CAAC;IACtC,CAAC;IAED,OAAO,CACL,KAAC,kBAAkB,IACjB,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,SAAS,EACf,cAAc,EAAE,sBAAsB,EACtC,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,SAAS,EACf,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,YAEnB,OAAO,GACW,CACtB,CAAC;AACJ,CAAC;AAED,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC","sourcesContent":["/**\n * DisplayFieldEditable — inline-editable display field.\n *\n * Renders as a clickable trigger in display mode, switches to an inline\n * form when activated. Manages all editing state: useForm, RMM subscription,\n * focus management, save/cancel callbacks.\n *\n * Display mode: DisplayFieldChrome → inline edit trigger (wrapping DisplayValueDispatcher)\n * Edit mode: DisplayFieldChrome → FormField with embedded FormFieldChrome\n */\n\nimport React, { useState, useCallback, useMemo, useRef, useEffect, useSyncExternalStore } from 'react';\nimport { z } from 'zod';\nimport { useForm } from 'react-hook-form';\nimport { zodIssueResolver } from '~wildo-frontend-lib/components/form/validation-errors/zod-issue-resolver';\n\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { IconSize, StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { Text, Code } from '~wildo-frontend-lib/components/typography/text';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { ButtonSize } from '@wildo-ai/presets-components-models';\nimport { Alert, AlertDescription } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { FrontendComponentType, UIBehavior, InteractiveVariant, IndicatorVariant, TypographyVariant } from '@wildo-ai/presets-components-models';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { CoreResourceOperation, isValidationErrorEntry, type ResourceType, type ValidationErrorValue } from '@wildo-ai/saas-models';\nimport {\n FieldSchemaType,\n getInlineEditableParams,\n isMultilineEditField,\n isTemplatableFileField,\n} from '@wildo-ai/zod-decorators';\n\nimport { rmmFieldPathIsDescendant, rmmReadPathValue } from '~wildo-frontend-lib/core/resources/rmm/field-path.utils';\nimport { NOOP_GET_SNAPSHOT, NOOP_SUBSCRIBE } from '~wildo-frontend-lib/core/resources/rmm/rmm-noop-snapshot';\nimport { RMMEventType, MutationErrorType, MutationSourceType } from '~wildo-frontend-lib/core/resources/rmm/types';\nimport type { ResourceMutationManager } from '~wildo-frontend-lib/core/resources/rmm/ResourceMutationManager';\nimport { FormSchemaProvider, SERVER_ERROR_TYPE } from '~wildo-frontend-lib/components/form/form-context';\nimport { extractServerValidationErrors } from '~wildo-frontend-lib/components/form/validation-errors/form-error-extraction.utils';\nimport { recordSaveAttempt } from '~wildo-frontend-lib/components/form/validation-errors/save-attempt';\nimport { FormSchemaKind } from '~wildo-frontend-lib/components/form/form-field-types';\nimport { FormField } from '~wildo-frontend-lib/components/form/automated/FormField';\nimport { SwitchRoot } from '~wildo-frontend-lib/components/form/controls/boolean/switch';\nimport { DEFAULT_VALIDATION_MODE, InlineEditState } from '~wildo-frontend-lib/core/automated-layout/automated-layout.frontend.schemas';\nimport { AutomatedLayoutFrontendUtils } from '~wildo-frontend-lib/core/automated-layout/automated-layout.frontend.utils';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nimport type { DisplayFieldResolvedProps } from './display-field-resolved-props';\nimport { DisplayFieldChrome } from './chromes/DisplayFieldChrome';\nimport { DisplayValueDispatcher } from './DisplayValueDispatcher';\nimport { InlineEditMutationError, useResourceDisplayContext } from './automatic-displayer.utils';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { resolveRelationshipInlineEditSurface } from '~wildo-frontend-lib/core/resources/relationship-surface-runtime.frontend.utils';\n\nconst logger = LoggerFrontendService.getLogger();\n\n/**\n * The server's refusal of one field, from an inline save's failure: through the RMM (an `InlineEditMutationError`\n * carrying the mutation's validation errors) or sent directly (the HTTP client's error). A refusal of the field itself\n * or of one of its parts (`price.amount` for `price`) counts; one that names another field, or none, does not.\n */\nfunction serverRefusalOfField(error: unknown, fieldName: string): ValidationErrorValue | undefined {\n const mutationError = error instanceof InlineEditMutationError ? error.mutationError : undefined;\n const extracted = mutationError\n ? (mutationError.validationErrors ? extractServerValidationErrors({ httpStatus: mutationError.status ?? 400, validationErrors: mutationError.validationErrors }) : null)\n : extractServerValidationErrors(error);\n if (!extracted) return undefined;\n const key = Object.keys(extracted.validationErrors).find((path) => path === fieldName || path.startsWith(`${fieldName}.`));\n return key === undefined ? undefined : extracted.validationErrors[key];\n}\nconst logDebug = logger.debugByType('DisplayFieldEditable');\nlogger.setDebugTypeLogging('DisplayFieldEditable', false);\n\n// =============================================================================\n// HELPERS\n// =============================================================================\n\n/**\n * Check if a field name matches any entry in changedFields/savedFields.\n * Handles nested dot-paths: a change to `address` matches `address.city`.\n */\nfunction fieldMatchesEvent(fieldName: string, eventFields: string[]): boolean {\n return eventFields.some(\n (f) => fieldName === f || fieldName.startsWith(f + '[') || rmmFieldPathIsDescendant(f, fieldName),\n );\n}\n\nfunction hasActionableFileEndpoints(\n endpoints: { upload?: string; override?: string } | undefined,\n): boolean {\n return !!(endpoints?.upload || endpoints?.override);\n}\n\nconst DEFAULT_INLINE_EDIT_PARAMS = {\n mode: 'direct' as const,\n saveOn: 'blur' as const,\n showSaveButton: false,\n showCancelButton: true,\n} as const;\n\n// =============================================================================\n// PROPS\n// =============================================================================\n\nexport interface DisplayFieldEditableProps extends DisplayFieldResolvedProps {\n /** Callback to save an inline edit. From ResourceDisplayContext. */\n doInlineUpdate: (fieldName: string, value: unknown) => Promise<void>;\n /** RMM instance for reacting to external mutations. */\n rmm?: ResourceMutationManager | null;\n}\n\n// =============================================================================\n// COMPONENT\n// =============================================================================\n\nexport function DisplayFieldEditable(props: DisplayFieldEditableProps): React.JSX.Element | null {\n const {\n schema,\n schemaType,\n value,\n fieldName,\n label,\n description,\n tooltip,\n provenance,\n enumLabels,\n displayComponent,\n parentData,\n resourceLinkTrail,\n className,\n hideLabel,\n hideDescription,\n resolvedChromeMode,\n resolvedLabelPlacement,\n resolvedEmptyValue,\n fileUploadContext,\n wideValue,\n announceName,\n doInlineUpdate,\n rmm,\n } = props;\n\n const { tComponent, tErrorValidation, isReady } = useI18n({\n component: [FrontendComponentType.LOW_LEVEL_FORM_FIELD, FrontendComponentType.LOW_LEVEL_BUTTON],\n });\n const { getRecipe } = useUI();\n const { renderIcon } = useIconRegistry();\n const resourceDisplayContext = useResourceDisplayContext();\n const { registry } = useResourceRegistry();\n\n const successIndicatorRecipe = getRecipe(UIBehavior.INDICATOR, IndicatorVariant.SUCCESS);\n\n // ── Inline editing state ──\n const [editState, setEditState] = useState<InlineEditState>(InlineEditState.DISPLAY);\n const [saveErrorMessage, setSaveErrorMessage] = useState<string | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const retryButtonRef = useRef<HTMLButtonElement>(null);\n const savedTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const lastProcessedEventIdRef = useRef<number | null>(null);\n\n // ── Boolean toggle-in-place state (T4b) ──\n // An inline-editable boolean renders a LIVE Switch that persists immediately on\n // toggle (no click-to-edit overlay). `optimisticBool` gives instant feedback and\n // is cleared when the authoritative `value` arrives (or on error → revert).\n const [booleanSaving, setBooleanSaving] = useState(false);\n const [optimisticBool, setOptimisticBool] = useState<boolean | null>(null);\n\n // Truncation state for arrays/objects (ROBUST-03)\n const [showAllArrayItems, setShowAllArrayItems] = useState(false);\n const [showAllObjectFields, setShowAllObjectFields] = useState(false);\n const prevValueRef = useRef(value);\n useEffect(() => {\n if (prevValueRef.current !== value) {\n setShowAllArrayItems(false);\n setShowAllObjectFields(false);\n // Authoritative value arrived (RMM update / conflict reset) → drop optimism.\n setOptimisticBool(null);\n prevValueRef.current = value;\n }\n }, [value]);\n\n const isInEditMode = editState !== InlineEditState.DISPLAY;\n const isSaving = editState === InlineEditState.SAVING;\n\n // ── RMM subscription ──\n const rmmForField = rmm ?? null;\n const rmmSnapshot = useSyncExternalStore(\n rmmForField?.subscribe ?? NOOP_SUBSCRIBE,\n rmmForField?.getSnapshot ?? NOOP_GET_SNAPSHOT,\n );\n\n // ── Inline edit params from decorator ──\n const inlineEditParams = getInlineEditableParams(schema);\n const params = inlineEditParams ?? DEFAULT_INLINE_EDIT_PARAMS;\n const relationshipInlineEditSurface = useMemo(() => {\n if (!fieldName || !resourceDisplayContext.resourceType) {\n return undefined;\n }\n\n return resolveRelationshipInlineEditSurface({\n resourceType: resourceDisplayContext.resourceType as ResourceType,\n fieldName,\n operationType: CoreResourceOperation.UPDATE,\n registry,\n });\n }, [fieldName, registry, resourceDisplayContext.resourceType]);\n const inlineFileEndpoints = useMemo(() => {\n if (!fieldName) {\n return undefined;\n }\n\n return fileUploadContext?.[AutomatedLayoutFrontendUtils.normalizeSchemaFieldPath(fieldName)];\n }, [fieldName, fileUploadContext]);\n const supportsInlineFileEditing = schemaType !== FieldSchemaType.FILE\n || (!isTemplatableFileField(schema) && hasActionableFileEndpoints(inlineFileEndpoints));\n\n // ── Isolated form for inline editing ──\n // PERF: useForm() is unconditionally instantiated due to Rules of Hooks.\n // In a future refactor, extract the edit form into a child component\n // (DisplayFieldInlineEditForm) that mounts only when editing, so useForm()\n // is lazy. The cost is ~1 useForm per editable field even in display mode.\n const fieldKey = useMemo(() => {\n return fieldName?.includes('.') ? fieldName.split('.').pop()! : (fieldName ?? 'value');\n }, [fieldName]);\n\n const formSchema = useMemo(() => {\n return z.object({ [fieldKey]: schema });\n }, [fieldKey, schema]);\n\n const form = useForm({\n // The resolver that keeps the issue code, so an inline edit's error translates like a form's (#995).\n resolver: zodIssueResolver(formSchema),\n defaultValues: { [fieldKey]: value },\n mode: DEFAULT_VALIDATION_MODE,\n });\n\n // Reset form when value or schema changes externally (schema may change\n // for discriminated unions; resetting ensures the resolver stays in sync)\n useEffect(() => {\n if (editState === InlineEditState.DISPLAY) {\n form.reset({ [fieldKey]: value });\n setSaveErrorMessage(null);\n }\n }, [value, editState, form, fieldKey, schema]);\n\n // Auto-focus when entering edit mode\n useEffect(() => {\n if (isInEditMode && containerRef.current) {\n const timer = setTimeout(() => {\n const firstInput = containerRef.current?.querySelector<HTMLElement>(\n 'input, textarea, select, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (firstInput) {\n firstInput.focus();\n }\n }, 0);\n return () => clearTimeout(timer);\n }\n }, [isInEditMode]);\n\n // Auto-focus retry button on error\n useEffect(() => {\n if (editState === InlineEditState.ERROR) {\n retryButtonRef.current?.focus();\n }\n }, [editState]);\n\n // Cleanup SAVED→DISPLAY timeout on unmount to prevent state updates on unmounted component\n useEffect(() => {\n return () => {\n if (savedTimeoutRef.current != null) {\n clearTimeout(savedTimeoutRef.current);\n }\n };\n }, []);\n\n // ── Callbacks ──\n\n const handleSave = useCallback(async () => {\n if (!fieldName) return;\n\n const isValid = await form.trigger(fieldKey);\n if (!isValid) {\n // Show it. A field shows a client error once it is touched (`getFieldError`), and saving with Enter never blurs\n // the input, so the save was refused with nothing on screen. The value is written back unchanged. The save is the\n // person asking to save this field, so a missing value shows too (`getFieldError`).\n recordSaveAttempt(form.control, [fieldKey]);\n form.setValue(fieldKey, form.getValues(fieldKey), { shouldTouch: true, shouldDirty: false, shouldValidate: false });\n setEditState(InlineEditState.EDITING);\n return;\n }\n setSaveErrorMessage(null);\n\n setEditState(InlineEditState.SAVING);\n try {\n const formValue = form.getValues(fieldKey);\n await doInlineUpdate(fieldName, formValue);\n logDebug('inline edit save', { fieldName, value: formValue });\n setEditState(InlineEditState.SAVED);\n savedTimeoutRef.current = setTimeout(() => {\n setEditState(InlineEditState.DISPLAY);\n savedTimeoutRef.current = null;\n }, 500);\n } catch (err) {\n if (err instanceof InlineEditMutationError && err.mutationError?.type === MutationErrorType.CONFLICT) {\n return;\n }\n // The server refused THIS value: say why, at the field, and keep the person editing, as a form does. It used to\n // read \"save failed\" with a Retry, which sent the same value to the same refusal.\n const refusal = serverRefusalOfField(err, fieldName);\n if (refusal !== undefined) {\n const message = isValidationErrorEntry(refusal) ? tErrorValidation(refusal.code, 'msg', refusal.params) : refusal;\n form.setError(fieldKey, { type: SERVER_ERROR_TYPE, message });\n setEditState(InlineEditState.EDITING);\n return;\n }\n setSaveErrorMessage(tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'save_failed'));\n setEditState(InlineEditState.ERROR);\n }\n }, [form, fieldKey, fieldName, doInlineUpdate, tComponent, tErrorValidation]);\n\n // A refusal stands for the value the server saw: once the person changes it, it no longer applies.\n useEffect(() => {\n const subscription = form.watch((_values, { name }) => {\n if (name === fieldKey && form.getFieldState(fieldKey).error?.type === SERVER_ERROR_TYPE) form.clearErrors(fieldKey);\n });\n return () => subscription.unsubscribe();\n }, [form, fieldKey]);\n\n const handleCancel = useCallback(() => {\n if (fieldName) {\n logDebug('inline edit cancel', { fieldName });\n }\n form.reset({ [fieldKey]: value });\n setSaveErrorMessage(null);\n setEditState(InlineEditState.DISPLAY);\n }, [form, fieldKey, value, fieldName]);\n\n // ── Boolean toggle-in-place handler (T4b) ──\n // Persists immediately via the same RMM `doInlineUpdate` path used by the\n // click-to-edit flow. Optimistic flip for responsiveness; reverts on error\n // (a CONFLICT is authoritative — RMM re-syncs `value`, so leave the revert to\n // the value-change effect and surface no error message).\n const handleBooleanToggle = useCallback(async (next: boolean) => {\n if (!fieldName) return;\n setOptimisticBool(next);\n setSaveErrorMessage(null);\n setBooleanSaving(true);\n try {\n await doInlineUpdate(fieldName, next);\n logDebug('inline boolean toggle', { fieldName, value: next });\n } catch (err) {\n setOptimisticBool(null);\n if (!(err instanceof InlineEditMutationError && err.mutationError?.type === MutationErrorType.CONFLICT)) {\n // A refusal of this field says why (a rule the server holds), not merely that the save failed.\n const refusal = serverRefusalOfField(err, fieldName);\n setSaveErrorMessage(\n refusal === undefined\n ? tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'save_failed')\n : isValidationErrorEntry(refusal) ? tErrorValidation(refusal.code, 'msg', refusal.params) : refusal,\n );\n }\n } finally {\n setBooleanSaving(false);\n }\n }, [fieldName, doInlineUpdate, tComponent, tErrorValidation]);\n\n // ── RMM event handler ──\n // Read the translator through a ref: listing it in the effect below would re-run its CONFLICT_RESET branch\n // (`form.reset`) on every provider render, while omitting it would keep a stale translator after a locale change.\n const tComponentRef = useRef(tComponent);\n tComponentRef.current = tComponent;\n\n // Cancel inline edit when an external mutation changes this field.\n // Tracks last-processed event ID to prevent re-processing the same event\n // when other deps change (e.g., editState transitions from DISPLAY→EDITING).\n useEffect(() => {\n if (!rmmForField || !rmmSnapshot?.lastEvent || !fieldName) return;\n const event = rmmSnapshot.lastEvent;\n\n if (event.id === lastProcessedEventIdRef.current) return;\n lastProcessedEventIdRef.current = event.id;\n\n switch (event.type) {\n case RMMEventType.REMOTE_UPDATE: {\n if (fieldMatchesEvent(fieldName, event.changedFields) && editState === InlineEditState.EDITING) {\n logDebug('RMM event cancelling inline edit', { fieldName, eventType: event.type });\n handleCancel();\n }\n break;\n }\n case RMMEventType.CONFLICT_RESET: {\n const authoritativeValue = rmmReadPathValue(event.currentData, fieldName);\n form.reset({ [fieldKey]: authoritativeValue });\n\n if (editState !== InlineEditState.DISPLAY) {\n logDebug('RMM event resetting inline edit after conflict', { fieldName, eventType: event.type });\n setSaveErrorMessage(tComponentRef.current(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'field_reset_after_conflict'));\n setEditState(InlineEditState.ERROR);\n }\n break;\n }\n case RMMEventType.MUTATION_RESULT: {\n if (\n event.result.success &&\n event.source.type !== MutationSourceType.DISPLAY &&\n event.result.savedFields &&\n fieldMatchesEvent(fieldName, event.result.savedFields) &&\n editState === InlineEditState.EDITING\n ) {\n logDebug('RMM event cancelling inline edit', { fieldName, eventType: event.type });\n handleCancel();\n }\n break;\n }\n case RMMEventType.RESOURCE_DELETED: {\n if (editState === InlineEditState.EDITING) {\n logDebug('RMM event cancelling inline edit', { fieldName, eventType: event.type });\n handleCancel();\n }\n break;\n }\n }\n }, [rmmSnapshot?.lastEvent?.id, rmmForField, fieldName, editState, fieldKey, form, handleCancel]);\n\n // ── Blur & keyboard handlers ──\n\n const handleContainerBlur = useCallback((e: React.FocusEvent) => {\n if (params.saveOn === 'blur' && containerRef.current) {\n const relatedTarget = e.relatedTarget as HTMLElement | null;\n if (!containerRef.current.contains(relatedTarget)) {\n handleSave();\n }\n }\n }, [params.saveOn, handleSave]);\n\n // `isMultilineEditField`, not `isFormTextarea`: the latter read ONLY the\n // cross-cutting `edit.component` axis, so a field declaring the per-type\n // `edit.editMode: TEXTAREA` — the axis the renderer honors — was treated as\n // single-line here and Enter saved instead of inserting a newline.\n const isMultilineField = schemaType === FieldSchemaType.CODE || isMultilineEditField(schema);\n const handleKeyDown = useCallback((e: React.KeyboardEvent) => {\n if (e.key === 'Escape') {\n e.preventDefault();\n handleCancel();\n return;\n }\n if (e.key === 'Enter') {\n if (isMultilineField) {\n if (e.ctrlKey || e.metaKey) {\n e.preventDefault();\n handleSave();\n }\n } else if (!e.shiftKey) {\n e.preventDefault();\n handleSave();\n }\n }\n }, [handleSave, handleCancel, isMultilineField]);\n\n // ── Content rendering ──\n\n function renderDisplayValue(): React.JSX.Element {\n return (\n <DisplayValueDispatcher\n schema={schema}\n schemaType={schemaType}\n value={value}\n fieldName={fieldName}\n label={label}\n className={className}\n enumLabels={enumLabels}\n displayComponent={displayComponent}\n parentData={parentData}\n resourceLinkTrail={resourceLinkTrail}\n emptyValue={resolvedEmptyValue}\n fileUploadContext={fileUploadContext}\n showAllArrayItems={showAllArrayItems}\n onExpandArrayItems={() => setShowAllArrayItems(true)}\n showAllObjectFields={showAllObjectFields}\n onExpandObjectFields={() => setShowAllObjectFields(true)}\n />\n );\n }\n\n // Boolean toggle-in-place (T4b): a live Switch, right-pinned in the settings row,\n // that writes immediately on toggle. No click-to-edit overlay, no ✓/✕ glyph.\n function renderBooleanToggle(): React.JSX.Element {\n const checked = optimisticBool ?? !!value;\n return (\n <div className=\"inline-flex items-center gap-element\">\n {booleanSaving && (\n <span className=\"text-muted-foreground\" aria-hidden=\"true\">\n {renderIcon(StandardIconReference.LOADER_2, {\n size: IconSize.SM,\n className: 'animate-spin motion-reduce:animate-none',\n })}\n </span>\n )}\n {saveErrorMessage && !booleanSaving && (\n <span className=\"text-destructive text-xs\" role=\"alert\">{saveErrorMessage}</span>\n )}\n <SwitchRoot\n checked={checked}\n onCheckedChange={handleBooleanToggle}\n disabled={booleanSaving}\n aria-label={label || fieldName || undefined}\n />\n </div>\n );\n }\n\n function renderInlineEditTrigger(): React.JSX.Element {\n return (\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.GHOST}\n className={cn(\"group relative inline-flex items-center gap-element h-auto px-card-sm py-item-xs\")}\n onClick={() => {\n if (fieldName) {\n logDebug('inline edit start', { fieldName });\n }\n setEditState(InlineEditState.EDITING);\n }}\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'editField', { label: label || fieldName || '' })}\n >\n <span className=\"flex-1\">{renderDisplayValue()}</span>\n <span className=\"text-muted-foreground opacity-0 group-hover:opacity-100 motion-safe:transition-opacity\">\n {renderIcon(StandardIconReference.EDIT, { size: IconSize.SM })}\n </span>\n </Button>\n );\n }\n\n function renderInlineEditForm(): React.JSX.Element {\n const errorAlertId = fieldName ? `inline-edit-error-${fieldName.replace(/\\./g, '-')}` : undefined;\n const hasError = editState === InlineEditState.ERROR && !!saveErrorMessage;\n\n return (\n <FormSchemaProvider\n schema={formSchema}\n // This surface wraps a single field from the resource's MAIN schema, not an operation\n // request DTO. Declaring it is what lets `FormField` ask the right clearability question:\n // on a main schema an ordinary `.optional()` field does not accept `null`, so the\n // request-DTO question would report every clearable field un-clearable — which left\n // refined optional fields (colour, email, url) impossible to empty inline.\n schemaKind={FormSchemaKind.MAIN_SCHEMA}\n form={form}\n resourceType={resourceDisplayContext.resourceType}\n resourceId={resourceDisplayContext.resourceId}\n operationType={CoreResourceOperation.UPDATE}\n contextResourceIdentifiers={resourceDisplayContext.contextResourceIdentifiers}\n navigationZone={resourceDisplayContext.navigationZone}\n >\n <div\n ref={containerRef}\n className=\"inline-flex flex-col gap-item-xs min-w-[200px]\"\n onBlur={handleContainerBlur}\n onKeyDown={handleKeyDown}\n aria-describedby={hasError ? errorAlertId : undefined}\n >\n <div className=\"flex items-start gap-element\">\n <div className=\"flex-1\">\n <FormField\n name={fieldKey}\n quickCreateSourceFieldName={relationshipInlineEditSurface?.sourceFieldName}\n schema={schema}\n label=\"\"\n description=\"\"\n disabled={isSaving}\n placeholder={label}\n enumLabels={enumLabels}\n respectSurfaceErrorPlacement={false}\n fileUploadContext={inlineFileEndpoints\n ? { [fieldKey]: inlineFileEndpoints }\n : undefined}\n className=\"inline-edit-field\"\n />\n </div>\n\n <div className=\"flex items-center gap-item-xs shrink-0 pt-item-xs\">\n {editState === InlineEditState.SAVED && (\n <div className={successIndicatorRecipe.base} aria-hidden=\"true\">\n {renderIcon(StandardIconReference.CHECK, { size: IconSize.SM })}\n </div>\n )}\n\n {params.showSaveButton && editState !== InlineEditState.SAVED && (\n <Button\n type=\"button\"\n size={ButtonSize.SM}\n variant={ButtonVariants_Variant.DEFAULT}\n onClick={handleSave}\n disabled={isSaving}\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_BUTTON, 'save')}\n >\n {editState === InlineEditState.SAVING\n ? renderIcon(StandardIconReference.LOADER_2, {\n size: IconSize.SM,\n className: 'animate-spin motion-reduce:animate-none'\n })\n : renderIcon(StandardIconReference.CHECK, { size: IconSize.SM })\n }\n </Button>\n )}\n\n {params.showCancelButton && (\n <Button\n type=\"button\"\n size={ButtonSize.SM}\n variant={ButtonVariants_Variant.GHOST}\n onClick={handleCancel}\n disabled={isSaving}\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_BUTTON, 'cancel')}\n >\n {renderIcon(StandardIconReference.CLOSE, { size: IconSize.SM })}\n </Button>\n )}\n </div>\n </div>\n\n {hasError && (\n <Alert id={errorAlertId} variant=\"destructive\" role=\"alert\" className=\"flex items-center gap-element py-card-sm\">\n {renderIcon(StandardIconReference.ERROR, {\n size: IconSize.SM,\n className: 'shrink-0'\n })}\n <AlertDescription className=\"flex-1 m-0\">\n <Text>{saveErrorMessage}</Text>\n </AlertDescription>\n {(() => {\n const retryLabel = tComponent(FrontendComponentType.LOW_LEVEL_BUTTON, 'retry');\n return (\n <Button\n ref={retryButtonRef}\n type=\"button\"\n size={ButtonSize.SM}\n variant={ButtonVariants_Variant.GHOST}\n onClick={handleSave}\n disabled={isSaving}\n aria-label={retryLabel}\n title={retryLabel}\n >\n {renderIcon(StandardIconReference.TRY_AGAIN, { size: IconSize.SM })}\n </Button>\n );\n })()}\n </Alert>\n )}\n </div>\n </FormSchemaProvider>\n );\n }\n\n if (!isReady) return null;\n\n // ── Determine content based on edit state ──\n let content: React.JSX.Element;\n if (schemaType === FieldSchemaType.BOOLEAN && fieldName) {\n // Inline-editable boolean → live toggle-in-place Switch (T4b), no overlay.\n content = renderBooleanToggle();\n } else if (isInEditMode && fieldName && supportsInlineFileEditing) {\n content = renderInlineEditForm();\n } else if (!supportsInlineFileEditing) {\n content = renderDisplayValue();\n } else {\n content = renderInlineEditTrigger();\n }\n\n return (\n <DisplayFieldChrome\n mode={resolvedChromeMode}\n label={label}\n description={description}\n tooltip={tooltip}\n provenance={provenance}\n name={fieldName}\n labelPlacement={resolvedLabelPlacement}\n hideLabel={hideLabel}\n hideDescription={hideDescription}\n wide={wideValue}\n announceName={announceName}\n className={className}\n >\n {content}\n </DisplayFieldChrome>\n );\n}\n\nDisplayFieldEditable.displayName = 'DisplayFieldEditable';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayValueDispatcher.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayValueDispatcher.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAMtF,OAAO,EAGL,eAAe,EAsBf,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,IAAI,yBAAyB,EAIxD,MAAM,0BAA0B,CAAC;AAGlC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAiO9E,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC;IACrB,UAAU,EAAE,eAAe,CAAC;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;IAC7C,6FAA6F;IAC7F,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,UAAU,KAAK,KAAK,CAAC,SAAS,CAAC;IAC7E,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAEvD,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC;AAMD,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,UAAU,EAAE,kBAAkB,EAC9B,KAAK,EACL,SAAS,EACT,KAAK,EACL,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,GACrB,EAAE,2BAA2B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAkhCxD;yBApiCe,sBAAsB"}
1
+ {"version":3,"file":"DisplayValueDispatcher.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayValueDispatcher.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAOtF,OAAO,EAGL,eAAe,EAuBf,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,IAAI,yBAAyB,EAIxD,MAAM,0BAA0B,CAAC;AAGlC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAiO9E,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC;IACrB,UAAU,EAAE,eAAe,CAAC;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;IAC7C,6FAA6F;IAC7F,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,UAAU,KAAK,KAAK,CAAC,SAAS,CAAC;IAC7E,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAEvD,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC;AAMD,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,UAAU,EAAE,kBAAkB,EAC9B,KAAK,EACL,SAAS,EACT,KAAK,EACL,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,GACrB,EAAE,2BAA2B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CA2hCxD;yBA7iCe,sBAAsB"}
@@ -31,7 +31,8 @@ import { cn } from '../../core/ui/cn.js';
31
31
  import { Skeleton } from '../../components/feedback/skeleton.js';
32
32
  import { Badge } from '../../components/data-display/badge.js';
33
33
  import { resolveContextualDisplayParams, useDisplayContextKind } from './DisplayContextKindContext.js';
34
- import { ArrayListStyle, ArrayObjectItemLayout, DisplayChromeMode, FieldSchemaType, getFieldUIDisplayConfig, getObjectKeys, getObjectShape, getRecordValueSchema, getRecordKeySchema, getSystemEnumName, getSetValueSchema, getTupleItemSchemas, getMapSchemas, resolveDiscriminatedUnionVariant, getSchemaType, inferFieldSchemaTypeFromValue, getArrayUI, getObjectUI, isForeignKey, getResourceReferenceTargetSet, resolveDisplayEmptyReason, resolveForeignKeyLabelFallback, DISPLAY_EMPTY_REASON_LABEL_KEYS, getForeignKeyUIDisplay, unwrapSchema, } from '@wildo-ai/zod-decorators';
34
+ import { useViewerFieldReader, viewerMaySeeField } from '../../core/navigation/viewer-field-reader.js';
35
+ import { ArrayListStyle, ArrayObjectItemLayout, DisplayChromeMode, FieldSchemaType, getFieldUIDisplayConfig, getObjectKeys, getObjectShape, getRecordValueSchema, getRecordKeySchema, getSystemEnumName, getSetValueSchema, getTupleItemSchemas, getMapSchemas, resolveDiscriminatedUnionVariant, getSchemaType, inferFieldSchemaTypeFromValue, getArrayUI, getObjectUI, isForeignKey, getResourceReferenceTargetSet, resolveDisplayEmptyReason, resolveForeignKeyLabelFallback, DISPLAY_EMPTY_REASON_LABEL_KEYS, getForeignKeyUIDisplay, isHiddenForDisplay, unwrapSchema, } from '@wildo-ai/zod-decorators';
35
36
  import { ResourcesConfigNamingUtils } from '@wildo-ai/saas-models';
36
37
  import { AutomatedLayoutFrontendUtils } from '../../core/automated-layout/automated-layout.frontend.utils.js';
37
38
  import { DisplayFieldBoolean } from './formatters/display-field-boolean.js';
@@ -223,6 +224,8 @@ export function DisplayValueDispatcher({ schema, schemaType: declaredSchemaType,
223
224
  * itself is the pure `resolveContextualDisplayParams`, so the branch needs no hook at all.
224
225
  */
225
226
  const displayContextKind = useDisplayContextKind();
227
+ // Read with the other top-level hooks for the same reason: the object branch counts members after this filter (#4459 F10).
228
+ const fieldReader = useViewerFieldReader();
226
229
  // Keyed by the trail's VALUES: inside an expanded relationship the trail object is rebuilt on every render.
227
230
  const trailResourceType = resourceLinkTrail?.resourceType;
228
231
  const trailPathPrefix = resourceLinkTrail?.pathPrefix;
@@ -593,11 +596,17 @@ export function DisplayValueDispatcher({ schema, schemaType: declaredSchemaType,
593
596
  * a schema rename must never blank the display.
594
597
  */
595
598
  const primaryField = objectUI?.display?.primaryField;
596
- const orderedKeys = primaryField && keys.includes(primaryField)
597
- ? [primaryField, ...keys.filter((key) => key !== primaryField)]
598
- : keys;
599
+ /*
600
+ * The members this viewer is SHOWN (#4459 F10): one the viewer may not read (`.readableBy`) and one marked `.isHidden()`
601
+ * render nothing, so they take no place under `maxItems` and are not counted in "Show N more". Counted from the schema's
602
+ * keys, a hidden member made the control promise a field that never appears.
603
+ */
604
+ const shownKeys = keys.filter((key) => !isHiddenForDisplay(shape[key]) && viewerMaySeeField(shape[key], fieldReader));
605
+ const orderedKeys = primaryField && shownKeys.includes(primaryField)
606
+ ? [primaryField, ...shownKeys.filter((key) => key !== primaryField)]
607
+ : shownKeys;
599
608
  const visibleKeys = maxObjectItems && !showAllObjectFields ? orderedKeys.slice(0, maxObjectItems) : orderedKeys;
600
- const hiddenFieldCount = maxObjectItems ? keys.length - maxObjectItems : 0;
609
+ const hiddenFieldCount = maxObjectItems ? shownKeys.length - maxObjectItems : 0;
601
610
  /*
602
611
  * COMPACT fields join the HEADLINE ROW. COMPACT means "the value self-describes, no label" —
603
612
  * and the place a self-describing chip belongs is beside the member that names the unit, not
@@ -606,7 +615,8 @@ export function DisplayValueDispatcher({ schema, schemaType: declaredSchemaType,
606
615
  * there is no row to join, and the uniform rendering stands. Membership stays the AUTHOR's
607
616
  * choice per field — a long machine ref that would crowd the row keeps a body chrome instead.
608
617
  */
609
- const headlineChipKeys = primaryField && keys.includes(primaryField)
618
+ // A headline exists only when its member is shown: otherwise its COMPACT chips stay body rows (#4459 F10).
619
+ const headlineChipKeys = primaryField && shownKeys.includes(primaryField)
610
620
  ? visibleKeys.filter((key) => {
611
621
  if (key === primaryField)
612
622
  return false;