@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":"DisplayValueDispatcher.js","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayValueDispatcher.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,eA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field values.\n *\n * Dispatches to the appropriate formatter component based on schema type.\n * Owns no mutable state — all truncation state and callbacks are passed as props.\n * Uses context hooks (i18n, icon registry, UI recipes) for rendering only.\n * Shared by both DisplayFieldReadOnly and DisplayFieldEditable.\n *\n * Rendering hierarchy:\n * 1. Empty values (surface policy autoEmptyValue)\n * 2. displayComponent override (decorator-driven)\n * 3. Foreign key (versioned FK, isForeignKey)\n * 4. Complex types (array, object)\n * 5. Primitive types (boolean, enum, string, number, ...)\n * 6. Specialized types (money, duration, phone, address, bigdecimal, code, file)\n * 7. Range types (range-number, range-date, ...)\n * 8. Fallback: unsupported type indicator\n */\n\nimport React from 'react';\nimport { z } from 'zod';\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 { ResourceRegistryContext } from '~wildo-frontend-lib/core/resources/ResourceRegistryContext';\nimport { StandardIconReference, IconSize } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { Text, Code } from '~wildo-frontend-lib/components/typography/text';\nimport { EmptyValueMark, emptyValueTypographyFor } from './empty-value-mark';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { ButtonSize, type AutoEmptyValue } from '@wildo-ai/presets-components-models';\nimport { FrontendComponentType, UIBehavior, IndicatorVariant, TypographyVariant, resolveVocabularyWordKey } from '@wildo-ai/presets-components-models';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { Skeleton } from '~wildo-frontend-lib/components/feedback/skeleton';\nimport { Badge } from '~wildo-frontend-lib/components/data-display/badge';\nimport { resolveContextualDisplayParams, useDisplayContextKind } from './DisplayContextKindContext';\nimport { ArrayListStyle,\n ArrayObjectItemLayout,\n DisplayChromeMode,\n FieldSchemaType,\n getFieldUIDisplayConfig,\n getObjectKeys,\n getObjectShape,\n getRecordValueSchema,\n getRecordKeySchema,\n getSystemEnumName,\n getSetValueSchema,\n getTupleItemSchemas,\n getMapSchemas,\n resolveDiscriminatedUnionVariant,\n getSchemaType,\n inferFieldSchemaTypeFromValue,\n getArrayUI,\n getObjectUI,\n isForeignKey,\n getResourceReferenceTargetSet,\n resolveDisplayEmptyReason,\n resolveForeignKeyLabelFallback,\n DISPLAY_EMPTY_REASON_LABEL_KEYS,\n getForeignKeyUIDisplay,\n unwrapSchema,\n type FileFieldEndpoints,\n type DisplayFieldComponent as DisplayFieldComponentEnum,\n type AddressValue,\n type DurationValue,\n type FileValue,\n} from '@wildo-ai/zod-decorators';\n\nimport { ResourcesConfigNamingUtils } from '@wildo-ai/saas-models';\nimport type { DisplayResourceLinkTrail } from './display-resource-link-trail';\nimport { AutomatedLayoutFrontendUtils } from '~wildo-frontend-lib/core/automated-layout/automated-layout.frontend.utils';\n\nimport { DisplayFieldBoolean } from './formatters/display-field-boolean';\nimport { ResourceFieldDisplay_ResourceReference } from '~wildo-frontend-lib/components/resources-fields/resource-reference/ResourceFieldDisplay_ResourceReference';\nimport { DisplayFieldString } from './formatters/display-field-string';\nimport { DisplayFieldNumber } from './formatters/display-field-number';\nimport { DisplayFieldEnum } from './formatters/display-field-enum';\nimport { DisplayFieldMoney } from './formatters/display-field-money';\nimport { DisplayFieldDuration } from './formatters/display-field-duration';\nimport { DisplayFieldPhone } from './formatters/display-field-phone';\nimport { DisplayFieldAddress } from './formatters/display-field-address';\nimport { DisplayFieldBigDecimal } from './formatters/display-field-bigdecimal';\nimport { DisplayFieldCode } from './formatters/display-field-code';\nimport { DisplayFieldJson } from './formatters/display-field-json';\nimport { DisplayFieldFile } from './formatters/display-field-file';\nimport { DisplayFieldRangeBigDecimal } from './formatters/display-field-range-bigdecimal';\nimport { DisplayFieldRangeMoney } from './formatters/display-field-range-money';\nimport { DisplayFieldDate } from './formatters/display-field-date';\nimport { DisplayFieldDateTime } from './formatters/display-field-datetime';\nimport { DisplayFieldTime } from './formatters/display-field-time';\nimport { DisplayFieldRangeNumber } from './formatters/display-field-range-number';\nimport { DisplayFieldRangeDate } from './formatters/display-field-range-date';\nimport { DisplayFieldRangeDateTime } from './formatters/display-field-range-datetime';\nimport { DisplayFieldRangeTime } from './formatters/display-field-range-time';\n\nimport { DisplayChromeProvider, FieldValueMembersChromeBoundary } from './chromes/DisplayChromeContext';\nimport { DisplayField } from './DisplayField';\nimport { useResourceDisplayContext } from './automatic-displayer.utils';\n\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport {\n extractRelationshipDisplayValue,\n getLeafFieldName,\n resolveDiscriminatedPolymorphicFkResourceType,\n resolveRelationshipObjectReadSurface,\n} from './reference-display-target';\nimport { RelationshipNature, Resources_SharedUtils, type ResourceRelationship, type ResourceType } from '@wildo-ai/saas-models';\nimport type { FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\nconst logger = LoggerFrontendService.getLogger();\nconst logDebug = logger.debugByType('DisplayValueDispatcher');\nlogger.setDebugTypeLogging('DisplayValueDispatcher', false);\n\n// =============================================================================\n// HELPERS\n// =============================================================================\n\nfunction flattenRelationshipBuckets(resourceRelationships: {\n parentRelationships?: ResourceRelationship[];\n childRelationships?: ResourceRelationship[];\n selfRelationships?: ResourceRelationship[];\n} | undefined): ResourceRelationship[] {\n if (!resourceRelationships) {\n return [];\n }\n\n return [\n ...(resourceRelationships.parentRelationships ?? []),\n ...(resourceRelationships.childRelationships ?? []),\n ...(resourceRelationships.selfRelationships ?? []),\n ];\n}\n\nfunction resolveRecordIdentifier(params: {\n record: Record<string, unknown>;\n resourceType?: ResourceType;\n registry?: FrontendResourcesRegistry;\n}): string | undefined {\n if (!params.registry) {\n return typeof params.record._id === 'string'\n ? params.record._id\n : (typeof params.record.id === 'string' ? params.record.id : undefined);\n }\n const configuredFieldIdentifier = params.resourceType\n ? params.registry.resourceConfigurations?.[params.resourceType]?.resourceFieldIdentifier\n ?? params.registry.allResourceFieldIdentifiers?.[params.resourceType]\n : undefined;\n const rawId = (configuredFieldIdentifier ? params.record[configuredFieldIdentifier] : undefined)\n ?? params.record._id\n ?? params.record.id;\n\n return typeof rawId === 'string' && rawId !== '' ? rawId : undefined;\n}\n\n/**\n * Extract a pre-populated sibling object from parent data for a FK field.\n *\n * This first tries the relationship-aware object-slot resolution so duplicated\n * edges and self-references stay on the correct payload. The naming-convention\n * fallback remains as a last resort for legacy plain-FK fields that are not\n * backed by relationship metadata.\n */\nfunction extractPopulatedSibling(\n fieldName: string | undefined,\n parentData: Record<string, unknown> | undefined,\n currentResourceType: ResourceType | undefined,\n registry: FrontendResourcesRegistry | undefined,\n): Record<string, unknown> | null {\n if (!fieldName || !parentData || !registry) return null;\n const leafName = getLeafFieldName(fieldName);\n if (!leafName) return null;\n\n if (currentResourceType) {\n const resourceRelationships = registry.resourceConfigurations[currentResourceType]?.resourceRelationships;\n for (const relationship of flattenRelationshipBuckets(resourceRelationships)) {\n try {\n const objectIdentity = Resources_SharedUtils.resolveRelationshipObjectIdentityForResource(\n relationship,\n currentResourceType,\n registry.allResourceFieldIdentifiers,\n );\n\n if (objectIdentity.relationshipIdentifierField !== leafName) {\n continue;\n }\n\n const sibling = parentData[objectIdentity.objectFieldName];\n const relatedResourceType = relationship.resourceType1 === currentResourceType\n ? relationship.resourceType2\n : relationship.resourceType1;\n if (\n sibling &&\n typeof sibling === 'object' &&\n !Array.isArray(sibling) &&\n resolveRecordIdentifier({\n record: sibling as Record<string, unknown>,\n resourceType: relatedResourceType,\n registry,\n })\n ) {\n return sibling as Record<string, unknown>;\n }\n } catch {\n // Fall through to the local naming heuristic.\n }\n }\n }\n\n const siblingFieldName = ResourcesConfigNamingUtils.extractBaseName(leafName);\n if (!siblingFieldName || siblingFieldName === leafName) return null;\n const sibling = parentData[siblingFieldName];\n if (\n sibling &&\n typeof sibling === 'object' &&\n !Array.isArray(sibling) &&\n resolveRecordIdentifier({\n record: sibling as Record<string, unknown>,\n resourceType: registry.fieldIdentifierToResourceType?.[leafName] as ResourceType | undefined,\n registry,\n })\n ) {\n return sibling as Record<string, unknown>;\n }\n return null;\n}\n\nfunction renderNeutralFileFallback(params: {\n value: unknown;\n className?: string;\n tComponent: (component: FrontendComponentType, key: string, params?: Record<string, unknown>) => string;\n}): React.JSX.Element {\n const fileValue = params.value as { fileId?: string; fileIds?: string[] } | null | undefined;\n const count = fileValue?.fileIds?.length ?? (fileValue?.fileId ? 1 : 0);\n\n if (count > 0) {\n return (\n <Text className={params.className}>\n {params.tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'fileCount', { count })}\n </Text>\n );\n }\n\n return (\n <Text className={cn('text-muted-foreground italic', params.className)}>\n {params.tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'noFile')}\n </Text>\n );\n}\n\nfunction hasRenderableFileMetadataEndpoint(\n endpoints: { getMetadata?: string } | undefined\n): endpoints is { getMetadata: string } {\n return typeof endpoints?.getMetadata === 'string' && endpoints.getMetadata.trim() !== '';\n}\n\n// =============================================================================\n// CONSTANTS\n// =============================================================================\n\n/**\n * How many RESOURCE LINKS the automatic display will follow before it stops expanding.\n *\n * This is a cycle backstop, not a layout budget. It bounds the one traversal that has no\n * schema-imposed floor — a COMPOSITION relationship expanded in place, which may be self-referencing\n * (a tree) or mutual (A composes B composes A). A record's own structure is NOT counted here and\n * must not be: it is finite by construction, and counting it truncated real data for months.\n *\n * See `display-resource-link-trail.ts` for the full argument.\n */\nconst MAX_RESOURCE_LINK_DEPTH = 5;\n\nfunction renderEmptyDisplayValue(\n strategy: AutoEmptyValue | undefined,\n noValueLabel: string,\n schemaType?: FieldSchemaType,\n): React.JSX.Element | null {\n switch (strategy) {\n case 'hidden':\n return null;\n case 'placeholder':\n return <Text className=\"text-muted-foreground italic\">{noValueLabel}</Text>;\n case 'skeleton':\n return <Skeleton className=\"h-5 w-full\" />;\n case 'em-dash':\n default:\n // The dash takes the voice of the value it stands in for (DATA for a figure or a date).\n return <EmptyValueMark noValueLabel={noValueLabel} typography={emptyValueTypographyFor(schemaType)} />;\n }\n}\n\n// =============================================================================\n// PROPS\n// =============================================================================\n\nexport interface DisplayValueDispatcherProps {\n schema: z.ZodTypeAny;\n schemaType: FieldSchemaType;\n value: unknown;\n fieldName?: string;\n label?: string;\n className?: string;\n enumLabels?: Record<string, string>;\n displayComponent?: DisplayFieldComponentEnum;\n parentData?: Record<string, unknown>;\n /**\n * Where this subtree sits in RESOURCE terms — absent at the display root. Replaces the former\n * `depth: number`, which counted structural nesting; see `display-resource-link-trail.ts`.\n */\n resourceLinkTrail?: DisplayResourceLinkTrail;\n /** Per-item template for an ARRAY field, authored through `DisplayFieldArray.renderItem`. */\n renderItem?: (itemPath: string, itemSchema: z.ZodTypeAny) => React.ReactNode;\n emptyValue?: AutoEmptyValue;\n fileUploadContext?: Record<string, FileFieldEndpoints>;\n\n showAllArrayItems: boolean;\n onExpandArrayItems: () => void;\n showAllObjectFields: boolean;\n onExpandObjectFields: () => void;\n}\n\n// =============================================================================\n// COMPONENT\n// =============================================================================\n\nexport function DisplayValueDispatcher({\n schema,\n schemaType: declaredSchemaType,\n value,\n fieldName,\n label,\n className,\n enumLabels,\n displayComponent,\n parentData,\n resourceLinkTrail,\n renderItem,\n emptyValue,\n fileUploadContext,\n showAllArrayItems,\n onExpandArrayItems,\n showAllObjectFields,\n onExpandObjectFields,\n}: DisplayValueDispatcherProps): React.JSX.Element | null {\n const { tComponent, t, isReady } = useI18n({\n component: [FrontendComponentType.LOW_LEVEL_FORM_FIELD, FrontendComponentType.LOW_LEVEL_BUTTON],\n });\n const resourceRegistryContext = React.useContext(ResourceRegistryContext);\n const registry = resourceRegistryContext?.registry;\n const { resourceType: currentResourceType } = useResourceDisplayContext();\n const { getRecipe } = useUI();\n const { renderIcon } = useIconRegistry();\n\n const errorIndicatorRecipe = getRecipe(UIBehavior.INDICATOR, IndicatorVariant.ERROR);\n const labelTypographyRecipe = getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.LABEL);\n const bodyTypographyRecipe = getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.BODY);\n const dividerRecipe = getRecipe(UIBehavior.DIVIDER);\n\n const commonProps = {\n schema,\n label,\n className,\n forceDisplayLabel: false,\n forceDisplayDescription: false,\n forceHideLabel: true,\n forceHideDescription: true,\n };\n\n /*\n * Read ONCE here, with the component's other top-level hooks, and deliberately NOT beside the\n * array branch that consumes it: this component has six early returns before that point, so a\n * hook called down there runs on some renders and not others — React reports it as \"a change in\n * the order of Hooks\", which is exactly what a first version of this change produced. The merge\n * itself is the pure `resolveContextualDisplayParams`, so the branch needs no hook at all.\n */\n const displayContextKind = useDisplayContextKind();\n\n // Keyed by the trail's VALUES: inside an expanded relationship the trail object is rebuilt on every render.\n const trailResourceType = resourceLinkTrail?.resourceType;\n const trailPathPrefix = resourceLinkTrail?.pathPrefix;\n const relationshipObjectSemantics = React.useMemo(\n () => resolveRelationshipObjectReadSurface({\n fieldName,\n resourceLinkTrail,\n currentResourceType: currentResourceType as ResourceType | undefined,\n registry,\n }),\n // eslint-disable-next-line react-hooks/exhaustive-deps -- `resolveRelationshipObjectReadSurface` reads only the trail's resourceType and pathPrefix\n [fieldName, trailResourceType, trailPathPrefix, currentResourceType, registry],\n );\n\n const relationshipObjectIdentity = relationshipObjectSemantics?.objectIdentity;\n\n const relationshipObjectDisplayValue = React.useMemo(() => {\n if (!relationshipObjectIdentity) {\n return undefined;\n }\n\n return extractRelationshipDisplayValue(\n value,\n relationshipObjectIdentity.relationshipIdentifierField,\n );\n }, [relationshipObjectIdentity, value]);\n\n if (!isReady) return null;\n\n /*\n * The resource-link guard. It fires only after MAX_RESOURCE_LINK_DEPTH relationship objects have\n * been expanded in place — never on a record's own structure, however deep that structure is.\n */\n if ((resourceLinkTrail?.linkDepth ?? 0) >= MAX_RESOURCE_LINK_DEPTH) {\n return <Text className=\"text-muted-foreground italic text-sm\">{tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'resourceLinkLimitReached')}</Text>;\n }\n\n /**\n * The words for an empty value, chosen by WHY it is empty — see `DisplayEmptyReason`.\n *\n * One em dash used to say four different things: a field awaiting the operator's input, a list\n * with no members, and a computed value nothing has produced yet all rendered identically. On the\n * `em-dash` strategy this changes only the screen-reader text (the dash is unchanged); on\n * `placeholder` it is the visible word. Which of the two a surface uses stays `AutoEmptyValue`.\n */\n const emptyLabelFor = (isCollectionEmptiness: boolean): string => tComponent(\n FrontendComponentType.LOW_LEVEL_FORM_FIELD,\n DISPLAY_EMPTY_REASON_LABEL_KEYS[resolveDisplayEmptyReason(schema, isCollectionEmptiness)],\n );\n\n /**\n * WHEN THE SCHEMA CANNOT SAY, ASK THE VALUE.\n *\n * `z.unknown()` is a deliberate posture — an outbound webhook's `payload`, a stored provider\n * response, any passthrough blob the framework declines to impose structure on — and every one\n * of those values used to render the same way: pretty-printed JSON in the code viewer. Faithful,\n * and wrong for the common case, because most values inside such a payload are ordinary scalars.\n * A name came out as `\"Ada\"` in a monospace block, a flag as `true`, a timestamp as a quoted ISO\n * string; each is the value, and none of them is how that value reads anywhere else.\n *\n * So an UNKNOWN field adopts the type its VALUE reveals, and every branch below serves it\n * unchanged. `inferFieldSchemaTypeFromValue` answers `undefined` for anything it cannot name —\n * an object, an array, a function — and the JSON rendering keeps exactly the case it was built\n * for. It is also conservative by design about what it WILL name: a number is never read as an\n * epoch, and a numeric string is never read as a number. See its own docstring for why.\n *\n * Substituted here rather than at the UNKNOWN branch so the empty-value guard just below sees\n * the same answer: an empty string in an opaque payload should read as empty, exactly as it\n * would in a declared string field.\n */\n const schemaType = declaredSchemaType === FieldSchemaType.UNKNOWN\n ? (inferFieldSchemaTypeFromValue(value) ?? FieldSchemaType.UNKNOWN)\n : declaredSchemaType;\n\n // Null/undefined placeholder\n if (\n value === null ||\n value === undefined ||\n (schemaType === FieldSchemaType.STRING && value === '')\n ) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(false), schemaType);\n }\n\n // ── DISPLAY COMPONENT OVERRIDE ──\n if (displayComponent) {\n const componentProps = { schema, className };\n switch (displayComponent) {\n case 'string': return <DisplayFieldString {...componentProps} value={value as string} />;\n case 'number': return <DisplayFieldNumber {...componentProps} value={value as number} />;\n case 'boolean': return <DisplayFieldBoolean {...componentProps} value={value as boolean} />;\n case 'enum': return <DisplayFieldEnum {...componentProps} value={value as string} labels={enumLabels} />;\n case 'code': return <DisplayFieldCode {...componentProps} value={value as { content: string; language: string }} />;\n case 'money': return <DisplayFieldMoney {...componentProps} value={value as { amount: bigint; currency: string; decimals: number }} />;\n case 'duration': return <DisplayFieldDuration {...componentProps} value={value as DurationValue} />;\n case 'phone': return <DisplayFieldPhone {...componentProps} value={value as string} />;\n case 'address': return <DisplayFieldAddress {...componentProps} value={value as AddressValue} />;\n case 'bigdecimal': return <DisplayFieldBigDecimal {...componentProps} value={value as string} />;\n case 'file': {\n const normalizedFieldName = fieldName\n ? AutomatedLayoutFrontendUtils.normalizeSchemaFieldPath(fieldName)\n : undefined;\n const fileEndpoints = normalizedFieldName && fileUploadContext?.[normalizedFieldName];\n return hasRenderableFileMetadataEndpoint(fileEndpoints)\n ? <DisplayFieldFile {...componentProps} fieldName={fieldName} value={value as FileValue} endpoints={{ getMetadata: fileEndpoints.getMetadata, serve: fileEndpoints.serve }} />\n : renderNeutralFileFallback({ value, className: componentProps.className, tComponent });\n }\n case 'date': return <DisplayFieldDate {...componentProps} value={value as Date | string} />;\n case 'time': return <DisplayFieldTime {...componentProps} value={value as Date | string} />;\n case 'datetime': return <DisplayFieldDateTime {...componentProps} value={value as Date | string} />;\n case 'range-number': return <DisplayFieldRangeNumber {...componentProps} value={value as { from?: number; to?: number }} />;\n case 'range-date': return <DisplayFieldRangeDate {...componentProps} value={value as { from?: Date | string; to?: Date | string }} />;\n case 'range-time': return <DisplayFieldRangeTime {...componentProps} value={value as { from?: Date | string; to?: Date | string }} />;\n case 'range-datetime': return <DisplayFieldRangeDateTime {...componentProps} value={value as { from?: Date | string; to?: Date | string }} />;\n case 'range-bigdecimal': return <DisplayFieldRangeBigDecimal {...componentProps} value={value as { from?: string; to?: string }} />;\n case 'range-money': return <DisplayFieldRangeMoney {...componentProps} value={value as { from?: { amount: bigint; currency: string; decimals: number }; to?: { amount: bigint; currency: string; decimals: number } }} />;\n case 'simple-text': break;\n default:\n logDebug('Unrecognized displayComponent — falling back to schema-type dispatch', {\n displayComponent,\n fieldName,\n });\n break;\n }\n }\n\n // ── FOREIGN KEY TYPES ──\n if (schemaType === FieldSchemaType.VERSIONED_FOREIGN_KEY) {\n const fkPopulated = extractPopulatedSibling(\n fieldName,\n parentData,\n currentResourceType as ResourceType | undefined,\n registry,\n );\n return (\n <ResourceFieldDisplay_ResourceReference\n fieldName={fieldName || ''}\n value={value as string}\n data={fkPopulated ?? undefined}\n // The readable copy this record carries, used INSTEAD of printing the raw id when the\n // reference cannot be resolved. See `labelFallbackField`.\n labelFallback={resolveForeignKeyLabelFallback(schema, parentData)}\n displayParams={getForeignKeyUIDisplay(schema)}\n schema={schema}\n className={className}\n />\n );\n }\n\n if (isForeignKey(schema)) {\n const fkPopulated = extractPopulatedSibling(\n fieldName,\n parentData,\n currentResourceType as ResourceType | undefined,\n registry,\n );\n // Per-record discriminated polymorphic FK (e.g. referrals' billing-account\n // FKs): resolve the concrete branch from the holder record's discriminator\n // so label/link/fetch target the right resource type. `undefined` for plain\n // FKs → the reference component falls back to the field-name → type map.\n const polymorphicResourceType = resolveDiscriminatedPolymorphicFkResourceType({\n schema,\n fieldName,\n parentData,\n currentResourceType: currentResourceType as ResourceType | undefined,\n registry,\n });\n return (\n <ResourceFieldDisplay_ResourceReference\n fieldName={fieldName || ''}\n value={value as string | string[]}\n data={fkPopulated ?? undefined}\n labelFallback={resolveForeignKeyLabelFallback(schema, parentData)}\n resourceType={polymorphicResourceType}\n displayParams={getForeignKeyUIDisplay(schema)}\n schema={schema}\n className={className}\n />\n );\n }\n\n /*\n * A reference to ONE row of a resource whose TYPE the value itself carries (`.isResourceReference({ targetSet })`,\n * #2471): `{ resourceType, resourceId }`, such as a run's `caseRef` (`WorkUnitRefSchema`). It is not a foreign key —\n * no relationship names it and its type is not fixed — so neither branch above reached it, and it fell to the plain\n * object branch below, which printed its two members: the resource's API name and the raw row id (#3819). It is read\n * exactly as a foreign key is, through the same reference display, with the type taken from the value: the row's\n * label, linked to the row, or \"unavailable\" (id on hover) when the reader cannot read it. The edit side has the\n * matching control (`FormFieldResourceReference`). A value missing either member is not a reference yet and keeps\n * the object rendering, which shows what is there.\n */\n if (getResourceReferenceTargetSet(schema) && value && typeof value === 'object' && !Array.isArray(value)) {\n const { resourceType: referencedType, resourceId: referencedId } = value as { resourceType?: unknown; resourceId?: unknown };\n if (typeof referencedType === 'string' && referencedType !== '' && typeof referencedId === 'string' && referencedId !== '') {\n return (\n <ResourceFieldDisplay_ResourceReference\n fieldName={fieldName || ''}\n value={referencedId}\n resourceType={referencedType}\n schema={schema}\n className={className}\n />\n );\n }\n }\n\n if (\n relationshipObjectSemantics &&\n relationshipObjectSemantics.semantics.nature !== RelationshipNature.COMPOSITION &&\n relationshipObjectIdentity\n ) {\n return (\n <ResourceFieldDisplay_ResourceReference\n fieldName={fieldName || ''}\n value={relationshipObjectDisplayValue ?? null}\n data={\n !Array.isArray(value) && value && typeof value === 'object'\n ? value as Record<string, unknown>\n : undefined\n }\n resourceType={relationshipObjectSemantics.relatedResourceType}\n className={className}\n />\n );\n }\n\n /*\n * The trail handed to every child of this field.\n *\n * Reaching here with `relationshipObjectSemantics` set means this field IS a relationship object\n * and is being expanded in place rather than shown as a chip — the non-composition natures\n * returned above. That expansion is the crossing: its members belong to the RELATED resource, so\n * the trail rebases onto it and the link count advances. Everything else — a plain nested object,\n * an array item, a union variant's members — is the same record still, and inherits the trail\n * unchanged so it costs nothing against the guard.\n */\n const childResourceLinkTrail: DisplayResourceLinkTrail | undefined =\n relationshipObjectSemantics && fieldName\n ? {\n resourceType: relationshipObjectSemantics.relatedResourceType,\n pathPrefix: fieldName,\n linkDepth: (resourceLinkTrail?.linkDepth ?? 0) + 1,\n }\n : resourceLinkTrail;\n\n // ── COMPLEX TYPES ──\n\n if (schemaType === FieldSchemaType.ARRAY && Array.isArray(value)) {\n if ((value as unknown[]).length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const unwrapped = unwrapSchema(schema);\n const elementType = (unwrapped as z.ZodArray<z.ZodTypeAny>).element;\n const elementSchemaType = elementType ? getSchemaType(elementType) : FieldSchemaType.UNKNOWN;\n const arrayUI = getArrayUI(schema);\n const arrayDisplayParams = resolveContextualDisplayParams(arrayUI, displayContextKind);\n const displayMode = arrayDisplayParams?.displayMode || 'vertical';\n\n const items = value as unknown[];\n const maxItems = arrayDisplayParams?.maxItems || undefined;\n const visibleItems = maxItems && !showAllArrayItems ? items.slice(0, maxItems) : items;\n const hiddenCount = maxItems ? items.length - maxItems : 0;\n\n // ROW item layout (object arrays): render each item as a compact horizontal\n // row of its fields — booleans lead, the primary field fills — instead of\n // the default indented `ps-card` object block. Mirrors the edit-side ROW\n // (AutomatedArrayField) so `objectItemLayout: ROW` is coherent across display + edit.\n /*\n * CHIPS (string entries only — see `ArrayListStyle.CHIPS`): a wrapping row of neutral chips, each\n * the entry's own text. Decided before the generic list below because a chip is the entry's whole\n * rendering: routing each tag through a `DisplayField` would put a paragraph at body size inside a\n * 12px chip. An authored `renderItem` still wins — a template chooses what an entry says.\n */\n if (arrayDisplayParams?.listStyle === ArrayListStyle.CHIPS && elementSchemaType === FieldSchemaType.STRING && !renderItem) {\n return (\n <div\n role=\"list\"\n aria-label={label || fieldName || tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'list')}\n data-list-style=\"chips\"\n className={cn('flex flex-row flex-wrap gap-item', className)}\n >\n {visibleItems.map((item, index) => (\n <Badge key={index} role=\"listitem\" variant=\"secondary\">{String(item)}</Badge>\n ))}\n {hiddenCount > 0 && !showAllArrayItems && (\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenCount })}\n onClick={onExpandArrayItems}\n >\n {tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenCount })}\n </Button>\n )}\n </div>\n );\n }\n\n const objectItemLayout = arrayUI?.objectItemLayout ?? ArrayObjectItemLayout.CARD;\n const itemShape = elementSchemaType === FieldSchemaType.OBJECT && elementType ? getObjectShape(elementType) : null;\n const isRowObjectArray = objectItemLayout === ArrayObjectItemLayout.ROW && !!itemShape;\n\n /*\n * A PLAIN primitive list — bare values, no markers, no rules, no per-item template, vertical flow.\n * Marked so a host that lays values out in a row (the settings-row value column) can flow it inline;\n * the list itself stays the vertical default everywhere else.\n */\n const isPlainPrimitiveList = elementSchemaType !== FieldSchemaType.OBJECT\n && !renderItem\n && displayMode !== 'horizontal'\n && (arrayDisplayParams?.listStyle === undefined || arrayDisplayParams.listStyle === ArrayListStyle.PLAIN);\n\n return (\n <div\n role=\"list\"\n aria-label={label || fieldName || tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'list')}\n data-list-shape={isPlainPrimitiveList ? 'primitive' : undefined}\n className={cn(\n /*\n * `w-full min-w-0`: a row list is as wide as the value it sits in, never as wide as its longest cell. A list\n * sized to its content overflowed a settings row's end-aligned value column toward the START, over the row's\n * own label and out of the dialog: a received email's long recipient address (#3139).\n */\n isRowObjectArray\n ? 'flex w-full min-w-0 flex-col gap-element'\n // CHIPS on a non-string entry type falls back to the horizontal flow (see the branch above).\n : displayMode === 'horizontal' || arrayDisplayParams?.listStyle === ArrayListStyle.CHIPS ? 'flex flex-row gap-element flex-wrap'\n /*\n * OBJECT entries breathe on the FIELD scale (1rem): with the card shell retired (the\n * section owns the frame, the item owns its accent line), the GAP is what says where\n * one entry ends — measured on a four-criterion list whose entries fused at the item\n * scale, whose base is 0.25rem and exists for menu rows, not content entries.\n * Primitive lists keep the tight rhythm; they are lines, not entries.\n */\n /*\n * SEPARATED draws one hairline BETWEEN entries — `divide-y` rather than a border per\n * item, so there is none above the first or below the last — and drops the gap, because\n * the rule is now what says where an entry ends and padding does the breathing (applied\n * per item below). See `ArrayListStyle.SEPARATED`.\n */\n : arrayDisplayParams?.listStyle === ArrayListStyle.SEPARATED\n /*\n * `divide-border` — the border-COLOR utility the rules take, NOT the DIVIDER recipe.\n * That recipe's base is `bg-border shrink-0`, because a divider is an ELEMENT painted\n * in the border colour; applied to the list CONTAINER it painted the entire list\n * that colour. Measured on the live market page: a 936px block of `oklch(0.929…)`\n * behind every ICP. The same trap as a context-carrier that still renders — a recipe\n * describes the thing it is for, and this container is not that thing.\n */\n ? 'flex flex-col divide-y divide-border'\n : elementSchemaType === FieldSchemaType.OBJECT ? 'flex flex-col gap-field'\n : 'flex flex-col gap-item-xs',\n className\n )}\n >\n {renderItem ? (\n /*\n * An authored per-item TEMPLATE replaces the automatic rendering of each entry — the whole\n * point of `DisplayFieldArray.renderItem`, which until now reached only the inline-editable\n * branch and was silently ignored on every read surface.\n *\n * The path handed over is the DISPLAY path (`icps[0]`), because that is what a nested\n * `<DisplayField name=\"icps[0].name\" />` resolves against on this surface. The item's\n * schema goes with it so a template can branch on the shape it was given rather than\n * assume one.\n *\n * The array's own chrome — the list role, the gaps, the truncation button below — stays\n * the framework's: a template chooses what an ENTRY says, not how the collection behaves.\n */\n visibleItems.map((item, index) => {\n /*\n * A template that answers `null` is REFUSING this item, not rendering nothing — the\n * shape-derived templates return null for an entry they cannot read (no naming field,\n * an unknown edge kind) precisely so the item degrades to the automatic rendering.\n * Taking the null literally rendered EMPTY list items: the market's buying-journeys\n * tab, whose entries carry none of the naming fields the evidence template knows,\n * displayed as a blank panel while every sibling tab rendered (measured live). The\n * fallback is the same per-item `DisplayField` the no-template branch below renders.\n */\n const templated = renderItem(fieldName ? `${fieldName}[${index}]` : `[${index}]`, (elementType ?? schema) as z.ZodTypeAny);\n return (\n <div\n key={index}\n role=\"listitem\"\n className={cn(\n elementSchemaType === FieldSchemaType.OBJECT && 'py-item-xs',\n // Under SEPARATED the padding is what keeps entries off their own rule; `first:`/\n // `last:` keep the run flush with the container it sits in.\n arrayDisplayParams?.listStyle === ArrayListStyle.SEPARATED && 'py-card-sm first:pt-0 last:pb-0',\n )}\n >\n {templated ?? (\n <DisplayField\n schema={elementType ?? schema}\n schemaType={elementSchemaType}\n value={item}\n enumLabels={enumLabels}\n name={fieldName ? `${fieldName}[${index}]` : undefined}\n resourceLinkTrail={childResourceLinkTrail}\n />\n )}\n </div>\n );\n })\n ) : isRowObjectArray && itemShape ? (\n visibleItems.map((item, index) => {\n const itemRecord = (item && typeof item === 'object' ? item : {}) as Record<string, unknown>;\n const itemKeys = getObjectKeys(elementType as z.ZodTypeAny);\n const primaryFieldName = AutomatedLayoutFrontendUtils.getArrayItemPrimaryField(elementType as z.ZodTypeAny).name;\n const orderedKeys = [\n ...itemKeys.filter((k) => getSchemaType(itemShape[k]) === FieldSchemaType.BOOLEAN),\n ...itemKeys.filter((k) => getSchemaType(itemShape[k]) !== FieldSchemaType.BOOLEAN),\n ];\n return (\n <div key={index} role=\"listitem\" className=\"flex w-full min-w-0 items-center gap-element\">\n {/* A row cell is a bare value named for a screen reader, never the host surface's chrome: inside a\n settings pane that chrome is SETTINGS_ROW, a label column beside a capped value column, which a\n cell has no room for. The edit side's `ObjectItemRowFields` does the same (#3130). */}\n <DisplayChromeProvider displayChromeMode={DisplayChromeMode.COMPACT} sectionChromeMode={undefined}>\n {orderedKeys.map((key) => (\n <DisplayField\n key={key}\n schema={itemShape[key]}\n schemaType={getSchemaType(itemShape[key])}\n value={itemRecord[key]}\n // Every member keeps its name for a screen reader, since \"Yes\" or \"High\" alone does not say what it\n // is (#3079), except the row's naming member, which reads as the row itself.\n // field-name-omitted-waiver: the naming member is the row's own name.\n hideLabel={key === primaryFieldName}\n labelPlacement={key === primaryFieldName ? undefined : 'hidden'}\n name={fieldName ? `${fieldName}[${index}].${key}` : undefined}\n // A TEXT cell breaks a long unbroken token (an email address, a DNS record's value) inside the\n // row, as a plain string value does, rather than pushing the row wider than its column (#3139);\n // the naming cell also takes the room left. A badge, a number or a tick keeps its size.\n className={cn(\n 'w-auto',\n key === primaryFieldName\n ? 'min-w-0 flex-1 [overflow-wrap:anywhere]'\n : getSchemaType(itemShape[key]) === FieldSchemaType.STRING ? 'min-w-0 [overflow-wrap:anywhere]' : 'shrink-0',\n )}\n resourceLinkTrail={childResourceLinkTrail}\n />\n ))}\n </DisplayChromeProvider>\n </div>\n );\n })\n ) : visibleItems.map((item, index) => (\n /*\n * `listitem` with a REAL marker when the author opted into BULLETS (primitive items,\n * vertical flow only — see `ArrayListStyle`): enumerations a reader scans — alternatives,\n * consequences, principles — read as one run-on paragraph without markers. Object items\n * keep the plain wrapper; they are cards, not list lines.\n */\n <div\n key={index}\n role=\"listitem\"\n className={cn(\n arrayDisplayParams?.listStyle === ArrayListStyle.BULLETS\n && elementSchemaType !== FieldSchemaType.OBJECT\n && displayMode !== 'horizontal'\n && 'ms-4 list-item list-disc marker:text-muted-foreground/60',\n /*\n * OBJECT items in the vertical layout separate by SPACING alone — the entry's left\n * accent line (drawn by the object arm) is the boundary marker. This was a full card\n * shell first, and a framed item inside a framed collapsible section read as chrome\n * on chrome (decided 2026-08-31: the SECTION owns the frame, the item owns the line).\n */\n elementSchemaType === FieldSchemaType.OBJECT\n && !isRowObjectArray\n && displayMode !== 'horizontal'\n && 'py-item-xs',\n )}\n >\n <DisplayField\n schema={elementType ?? schema}\n schemaType={elementSchemaType}\n value={item}\n enumLabels={enumLabels}\n name={fieldName ? `${fieldName}[${index}]` : undefined}\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n ))}\n {hiddenCount > 0 && !showAllArrayItems && (\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"self-start\"\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenCount })}\n onClick={onExpandArrayItems}\n >\n {tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenCount })}\n </Button>\n )}\n </div>\n );\n }\n\n /*\n * VERSIONED_OBJECT joins OBJECT here rather than getting a branch of its own: `versioned()`\n * returns a ZodObject with `currentVersion` and `versionHistory` added, both declared HIDDEN and\n * NOT EDITABLE, so the object branch already renders exactly the visible fields and already\n * omits the two bookkeeping ones. Giving it a separate branch would duplicate the object\n * renderer to reach the same output — and leaving it out is why it rendered an \"unsupported\n * type\" chip over a perfectly ordinary object.\n */\n if ((schemaType === FieldSchemaType.OBJECT || schemaType === FieldSchemaType.VERSIONED_OBJECT) && typeof value === 'object') {\n /*\n * A DISCRIMINATED UNION field resolves to its ONE matching variant before anything else.\n *\n * `getObjectShape` answers `null` for a union — a union has no shape of its own — so this\n * branch reached the empty return below and rendered an em-dash over data that was fully\n * present. Measured on the workbench: an ICP's `profile` (a union keyed on `kind`, carrying\n * firmographics, employee range, industries) displayed as \"—\" while the file held every field.\n *\n * The VALUE is what makes the narrowing possible and exact: its discriminator says which\n * variant this is, so the fields rendered are that variant's and not a merge of alternatives\n * the value did not choose. A value with no discriminator belongs to the member whose\n * discriminator takes the declared default, where Zod routes it too (#2076). When nothing\n * matches — no such member, an unknown value — the empty return still stands, because a display\n * must not guess which variant it is looking at.\n */\n const variant = resolveDiscriminatedUnionVariant(schema, value);\n const objectSchema = variant ?? schema;\n const shape = getObjectShape(objectSchema);\n const keys = getObjectKeys(objectSchema);\n\n /*\n * Object-level display params come from the RESOLVED VARIANT first, and only then from the\n * union.\n *\n * They used to be read off `schema` unconditionally, which made them unreachable for every\n * union field: the shape and the keys came from the variant while `primaryField`, `displayMode`\n * and `maxItems` came from a union that cannot carry them, so decorating a variant compiled,\n * type-checked, threw nothing and did nothing. Measured on the workbench's build plan, where a\n * task's `target` is a five-variant union: `variant.objectUI({ display: { displayMode:\n * HORIZONTAL } })` left the page byte-identical, and the target went on rendering as five\n * stacked rows — a `Target` label, a `Kind` label over the wire constant `RESOURCE_STAGE`, two\n * ref rows and a badge — fifty-six times down the page.\n *\n * The union is kept as the FALLBACK rather than dropped: a union whose variants agree about\n * their layout can say so once at the field, and an existing decoration there keeps working.\n */\n const variantObjectUI = variant ? getObjectUI(variant) : undefined;\n const objectUI = variantObjectUI ?? getObjectUI(schema);\n const displayMode = objectUI?.display?.displayMode || 'vertical';\n const maxObjectItems = objectUI?.display?.maxItems || undefined;\n\n if (!shape || keys.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n /*\n * `primaryField` promotion (see `ObjectUIDisplayParams.primaryField`): the declared headline\n * member leads, the rest keep schema order. An unknown name degrades to the uniform rendering —\n * a schema rename must never blank the display.\n */\n const primaryField = objectUI?.display?.primaryField;\n const orderedKeys = primaryField && keys.includes(primaryField)\n ? [primaryField, ...keys.filter((key) => key !== primaryField)]\n : keys;\n const visibleKeys = maxObjectItems && !showAllObjectFields ? orderedKeys.slice(0, maxObjectItems) : orderedKeys;\n const hiddenFieldCount = maxObjectItems ? keys.length - maxObjectItems : 0;\n /*\n * COMPACT fields join the HEADLINE ROW. COMPACT means \"the value self-describes, no label\" —\n * and the place a self-describing chip belongs is beside the member that names the unit, not\n * as a stray row at whatever position the schema authored it (which put a status badge BELOW\n * the facts it qualifies). Only meaningful when a headline exists: without `primaryField`\n * there is no row to join, and the uniform rendering stands. Membership stays the AUTHOR's\n * choice per field — a long machine ref that would crowd the row keeps a body chrome instead.\n */\n const headlineChipKeys = primaryField && keys.includes(primaryField)\n ? visibleKeys.filter((key) => {\n if (key === primaryField) return false;\n const chromeMode = getFieldUIDisplayConfig(shape[key] as z.ZodTypeAny)?.chromeMode;\n return chromeMode === DisplayChromeMode.COMPACT;\n })\n : [];\n\n return (\n <div\n role=\"group\"\n aria-label={label || fieldName || tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'object')}\n className={cn(\n 'ps-card relative',\n displayMode === 'horizontal' ? 'flex flex-row gap-field flex-wrap' : 'flex flex-col gap-element',\n className\n )}\n >\n <div className={cn(\n 'absolute start-0 top-0 bottom-0 w-0.5',\n dividerRecipe.base\n )} aria-hidden=\"true\" />\n {/* The members are the value's content, so a section's chrome (meant for the field) does not reach them (#3133). */}\n <FieldValueMembersChromeBoundary>\n {visibleKeys.map((key) => {\n const fieldSchema = shape[key];\n const fieldSchemaType = getSchemaType(fieldSchema);\n const fieldValue = (value as Record<string, unknown>)[key];\n const childName = fieldName ? `${fieldName}.${key}` : key;\n const isPrimary = key === primaryField;\n\n // Rendered inside the headline row below, never as a body row of its own.\n if (headlineChipKeys.includes(key)) return null;\n\n return isPrimary ? (\n // The headline row: the naming member with title emphasis, its COMPACT chips beside it.\n <div key={key} className=\"flex flex-wrap items-center gap-x-item-sm gap-y-element-xs\">\n {/*\n * `font-medium` alone: weight INHERITS, and the body typography recipe sets none of\n * its own, so the value renders medium without reaching into it. The mirrored\n * `[&_p]:font-medium` this carried was redundant from the day it was written — and it\n * is the site every headline reach-through in the repository was copied from, which is\n * how a redundancy became a pattern.\n */}\n <div className=\"min-w-0 flex-1 font-medium\">\n <DisplayField\n schema={fieldSchema}\n schemaType={fieldSchemaType}\n value={fieldValue}\n name={childName}\n // field-name-omitted-waiver: the object's naming member is its headline, inside a group the field names.\n hideLabel\n parentData={value as Record<string, unknown>}\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n {headlineChipKeys.map((chipKey) => (\n <DisplayField\n key={chipKey}\n schema={shape[chipKey]}\n schemaType={getSchemaType(shape[chipKey])}\n value={(value as Record<string, unknown>)[chipKey]}\n name={fieldName ? `${fieldName}.${chipKey}` : chipKey}\n parentData={value as Record<string, unknown>}\n resourceLinkTrail={childResourceLinkTrail}\n />\n ))}\n </div>\n ) : (\n /*\n * No explicit label: the child resolves its own from the display context (where the\n * authored `resources.<type>.fields.<path>` label lives), and falls back to the\n * formatted leaf name. An explicit `label={formatLabel(key)}` here won the precedence\n * over every authored nested label, which is how \"Serves ICPs\" rendered as \"Icp Refs\"\n * with the authoring in place and served.\n */\n <DisplayField\n key={key}\n schema={fieldSchema}\n schemaType={fieldSchemaType}\n value={fieldValue}\n name={childName}\n /*\n * `w-auto` in the HORIZONTAL layout, or the row does not exist. The field chrome is\n * `flex w-full`, so in a wrapping row every child claims a full line and the members\n * stack anyway — the container reported `flex-direction: row` while rendering exactly\n * as `vertical` did (measured, on an ICP's `{ jobRef, importance }` edges).\n *\n * The sibling ROW-object-array branch above already passes `w-auto` for this reason;\n * this branch simply never did, which is why `displayMode: HORIZONTAL` on an object\n * had no visible effect anywhere.\n */\n className={displayMode === 'horizontal' ? 'w-auto' : undefined}\n parentData={value as Record<string, unknown>}\n resourceLinkTrail={childResourceLinkTrail}\n />\n );\n })}\n </FieldValueMembersChromeBoundary>\n {hiddenFieldCount > 0 && !showAllObjectFields && (\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"self-start\"\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenFieldCount })}\n onClick={onExpandObjectFields}\n >\n {tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenFieldCount })}\n </Button>\n )}\n </div>\n );\n }\n\n // ── PRIMITIVE TYPES ──\n\n if (schemaType === FieldSchemaType.BOOLEAN) {\n return <DisplayFieldBoolean {...commonProps} value={value as boolean} />;\n }\n\n if (schemaType === FieldSchemaType.ENUM) {\n return <DisplayFieldEnum {...commonProps} value={value as string} labels={enumLabels} />;\n }\n\n if (schemaType === FieldSchemaType.STRING) {\n return <DisplayFieldString {...commonProps} value={value as string} />;\n }\n\n if (schemaType === FieldSchemaType.NUMBER || schemaType === FieldSchemaType.BIGINT) {\n return <DisplayFieldNumber {...commonProps} value={value as number} />;\n }\n\n // ── SPECIALIZED TYPES ──\n\n if (schemaType === FieldSchemaType.MONEY) {\n return <DisplayFieldMoney {...commonProps} value={value as { amount: bigint; currency: string; decimals: number }} />;\n }\n\n if (schemaType === FieldSchemaType.DURATION) {\n return <DisplayFieldDuration {...commonProps} value={value as DurationValue} />;\n }\n\n if (schemaType === FieldSchemaType.PHONE) {\n return <DisplayFieldPhone {...commonProps} value={value as string} />;\n }\n\n if (schemaType === FieldSchemaType.ADDRESS) {\n return <DisplayFieldAddress {...commonProps} value={value as AddressValue} />;\n }\n\n if (schemaType === FieldSchemaType.BIGDECIMAL) {\n return <DisplayFieldBigDecimal {...commonProps} value={value as string} />;\n }\n\n if (schemaType === FieldSchemaType.CODE) {\n return <DisplayFieldCode {...commonProps} value={value as { content: string; language: string }} />;\n }\n\n if (schemaType === FieldSchemaType.FILE) {\n const normalizedFieldName = fieldName\n ? AutomatedLayoutFrontendUtils.normalizeSchemaFieldPath(fieldName)\n : undefined;\n const fileEndpoints = normalizedFieldName && fileUploadContext?.[normalizedFieldName];\n if (hasRenderableFileMetadataEndpoint(fileEndpoints)) {\n return <DisplayFieldFile {...commonProps} fieldName={fieldName} value={value as FileValue} endpoints={{ getMetadata: fileEndpoints.getMetadata, serve: fileEndpoints.serve }} />;\n }\n return renderNeutralFileFallback({ value, className, tComponent });\n }\n\n // ── RANGE TYPES ──\n\n if (schemaType === FieldSchemaType.RANGE_BIGDECIMAL) {\n return <DisplayFieldRangeBigDecimal {...commonProps} value={value as { from?: string; to?: string }} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_MONEY) {\n return <DisplayFieldRangeMoney {...commonProps} value={value as { from?: { amount: bigint; currency: string; decimals: number }; to?: { amount: bigint; currency: string; decimals: number } }} />;\n }\n\n if (schemaType === FieldSchemaType.DATE) {\n return <DisplayFieldDate {...commonProps} value={value as Date | string} />;\n }\n\n if (schemaType === FieldSchemaType.DATETIME) {\n return <DisplayFieldDateTime {...commonProps} value={value as Date | string} />;\n }\n\n if (schemaType === FieldSchemaType.TIME) {\n return <DisplayFieldTime {...commonProps} value={value as Date | string} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_NUMBER) {\n return <DisplayFieldRangeNumber {...commonProps} value={value as { from?: number; to?: number }} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_DATE) {\n return <DisplayFieldRangeDate {...commonProps} value={value as { from?: Date | string; to?: Date | string }} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_DATETIME) {\n return <DisplayFieldRangeDateTime {...commonProps} value={value as { from?: Date | string; to?: Date | string }} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_TIME) {\n return <DisplayFieldRangeTime {...commonProps} value={value as { from?: Date | string; to?: Date | string }} />;\n }\n\n // ── RECORD (z.record) ──\n /*\n * A record's KEYS ARE DATA, so it has no declared shape and the OBJECT branch above cannot\n * serve it — `getObjectShape` answers `null` by design. Without a branch of its own it fell all\n * the way through to the \"unsupported type\" chip below, which rendered an ERROR over a value\n * that was fully present and fully readable.\n *\n * Measured 2026-09-18 across the settings hub: `organization-entitlements` showed it twice\n * (`Limits`, `Limit overrides`) and the SSO policy once (`Domain verification status`), on both\n * the organization and application surfaces — four panes reporting a defect that was only ever\n * a missing branch.\n *\n * Each entry's KEY is rendered verbatim, never humanized. A record key is a value the operator\n * authored or the system stored (`maxTodos`, a domain name), not an identifier awaiting a label,\n * so inventing display text for it would state something the data does not say — see\n * `.claude/rules/display-text-comes-from-i18n.md`. The VALUE goes back through the ordinary\n * dispatch with the record's own value schema, so a record of money renders as money and a\n * record of dates as dates, for free.\n *\n * When the value schema cannot be read, the value is still dispatched — with no schema, the\n * child resolves what it can. That is strictly better than the error chip this replaces, and it\n * is why this branch does not fail closed.\n */\n if (schemaType === FieldSchemaType.RECORD && typeof value === 'object' && value !== null) {\n const recordEntries = Object.entries(value as Record<string, unknown>);\n\n if (recordEntries.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const recordValueSchema = getRecordValueSchema(schema);\n /*\n * A key that belongs to a named vocabulary (`z.record(z.string().systemEnum('Limit'), …)`, #1851) is shown as its\n * word — `max_projects` read as an identifier on the Entitlements screen. An undeclared key, or a key with no\n * word yet, shows itself: a missing label that looks missing.\n */\n const recordKeySchema = getRecordKeySchema(schema);\n const keyVocabulary = recordKeySchema ? getSystemEnumName(recordKeySchema) : undefined;\n const keyWord = (entryKey: string): string => {\n if (!keyVocabulary) return entryKey;\n const wordKey = resolveVocabularyWordKey(keyVocabulary, entryKey);\n const word = t(wordKey);\n return word === wordKey ? entryKey : word;\n };\n\n return (\n <div className={cn('ps-card relative flex flex-col gap-element', className)}>\n <div\n className={cn('absolute start-0 top-0 bottom-0 w-0.5', dividerRecipe.base)}\n aria-hidden=\"true\"\n />\n {recordEntries.map(([entryKey, entryValue]) => (\n <div key={entryKey} className=\"flex flex-wrap items-baseline gap-x-item-sm gap-y-element-xs\">\n <Text className={cn(labelTypographyRecipe.base, 'shrink-0')}>{keyWord(entryKey)}</Text>\n <div className=\"min-w-0 flex-1\">\n <DisplayField\n schema={recordValueSchema ?? undefined}\n schemaType={recordValueSchema ? getSchemaType(recordValueSchema) : undefined}\n value={entryValue}\n name={fieldName ? `${fieldName}.${entryKey}` : entryKey}\n // field-name-omitted-waiver: the entry's key is printed right beside its value, and names it.\n hideLabel\n parentData={value as Record<string, unknown>}\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n </div>\n ))}\n </div>\n );\n }\n\n /*\n * ── SET ──\n *\n * A set is an ARRAY without order or duplicates, and that is the whole difference a DISPLAY has\n * to care about: every item is the same type and there is no index worth showing. So it renders\n * as the array branch's simple case rather than gaining a layout of its own.\n *\n * Added 2026-09-19. SET classified correctly and had no branch, so it fell through to the\n * \"unsupported type\" chip and rendered an ERROR over data that was fully present — the same\n * defect `getRecordValueSchema` records for RECORD, which had it until the day before.\n */\n if (schemaType === FieldSchemaType.SET && (value instanceof Set || Array.isArray(value))) {\n const setItems = Array.from(value as Set<unknown> | unknown[]);\n\n if (setItems.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const setValueSchema = getSetValueSchema(schema);\n\n return (\n <div className={cn('flex flex-col gap-element-xs', className)}>\n {setItems.map((item, index) => (\n <DisplayField\n key={`${fieldName ?? 'set'}-${index}`}\n schema={setValueSchema ?? undefined}\n schemaType={setValueSchema ? getSchemaType(setValueSchema) : undefined}\n value={item}\n name={fieldName ? `${fieldName}.${index}` : String(index)}\n // field-name-omitted-waiver: an item of the set the field names; an index is not a name.\n hideLabel\n resourceLinkTrail={childResourceLinkTrail}\n />\n ))}\n </div>\n );\n }\n\n /*\n * ── TUPLE ──\n *\n * Unlike an array, each POSITION has its own schema, so the items cannot share an element type\n * and must be paired with `items[i]`. That pairing is the entire reason this is not the array\n * branch: formatting a `[string, number]` through one element schema renders one of the two\n * positions as the wrong type.\n *\n * A value longer than the declared items (a REST tuple) keeps rendering, with the surplus\n * entries carrying no schema — better than dropping data the value genuinely holds.\n */\n if (schemaType === FieldSchemaType.TUPLE && Array.isArray(value)) {\n if (value.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const tupleItemSchemas = getTupleItemSchemas(schema);\n\n return (\n <div className={cn('flex flex-wrap items-baseline gap-x-item-sm gap-y-element-xs', className)}>\n {(value as unknown[]).map((item, index) => {\n const itemSchema = tupleItemSchemas?.[index];\n return (\n <div key={`${fieldName ?? 'tuple'}-${index}`} className=\"min-w-0\">\n <DisplayField\n schema={itemSchema ?? undefined}\n schemaType={itemSchema ? getSchemaType(itemSchema) : undefined}\n value={item}\n name={fieldName ? `${fieldName}.${index}` : String(index)}\n // field-name-omitted-waiver: a position of the tuple the field names; an index is not a name.\n hideLabel\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n );\n })}\n </div>\n );\n }\n\n /*\n * ── MAP ──\n *\n * A map is a RECORD whose keys are not necessarily strings, so it renders with the record's\n * key/value rhythm and differs in exactly two places: the entries come from `Map#entries()`\n * rather than `Object.entries`, and the KEY is itself rendered through its own schema instead of\n * being printed as text — a map keyed by a date or an enum would otherwise show a raw value\n * where every other surface shows a formatted one.\n */\n if (schemaType === FieldSchemaType.MAP && (value instanceof Map || (typeof value === 'object' && value !== null))) {\n const mapEntries = value instanceof Map\n ? Array.from(value.entries())\n : Object.entries(value as Record<string, unknown>);\n\n if (mapEntries.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const mapSchemas = getMapSchemas(schema);\n\n return (\n <div className={cn('ps-card relative flex flex-col gap-element', className)}>\n <div className={cn('absolute start-0 top-0 bottom-0 w-0.5', dividerRecipe.base)} aria-hidden=\"true\" />\n {mapEntries.map(([entryKey, entryValue], index) => (\n <div key={`${fieldName ?? 'map'}-${index}`} className=\"flex flex-wrap items-baseline gap-x-item-sm gap-y-element-xs\">\n <div className={cn(labelTypographyRecipe.base, 'shrink-0')}>\n <DisplayField\n schema={mapSchemas?.keySchema ?? undefined}\n schemaType={mapSchemas?.keySchema ? getSchemaType(mapSchemas.keySchema) : undefined}\n value={entryKey}\n name={fieldName ? `${fieldName}.${index}.key` : `${index}.key`}\n // field-name-omitted-waiver: the key IS the name of the value beside it.\n hideLabel\n />\n </div>\n <div className=\"min-w-0 flex-1\">\n <DisplayField\n schema={mapSchemas?.valueSchema ?? undefined}\n schemaType={mapSchemas?.valueSchema ? getSchemaType(mapSchemas.valueSchema) : undefined}\n value={entryValue}\n name={fieldName ? `${fieldName}.${index}.value` : `${index}.value`}\n // field-name-omitted-waiver: its key is printed right beside it, and names it.\n hideLabel\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n </div>\n ))}\n </div>\n );\n }\n\n // ── OPAQUE VALUE (z.unknown() / unclassifiable) ──\n // UNKNOWN is a deliberate schema posture (e.g. webhook `payload: z.unknown()`\n // passthrough), not a misconfiguration — render the value faithfully as\n // pretty-printed JSON via the code viewer instead of an error chip. See\n // DisplayFieldJson for the adapter rationale.\n if (schemaType === FieldSchemaType.UNKNOWN) {\n return <DisplayFieldJson {...commonProps} value={value} />;\n }\n\n // ── UNSUPPORTED TYPE ──\n return (\n <div className={cn(\n bodyTypographyRecipe.base,\n bodyTypographyRecipe.sizes?.sm || bodyTypographyRecipe.sizes?.md,\n errorIndicatorRecipe.base,\n // The box's geometry goes AFTER the indicator recipe, which is drawn as a short pill (`rounded-full\n // px-2 py-0.5`): when the recipe won, a box holding a sentence read as one long pill (audit A-L12).\n \"flex items-center gap-element px-card-sm py-item-xs rounded-md\",\n className\n )}>\n <Text className={labelTypographyRecipe.base}>{tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'unsupportedDisplayType')}</Text>\n <Code className={cn(\"px-item-xs rounded\", errorIndicatorRecipe.states.hover)}>{schemaType}</Code>\n </div>\n );\n}\n\nDisplayValueDispatcher.displayName = 'DisplayValueDispatcher';\n"]}
1
+ {"version":3,"file":"DisplayValueDispatcher.js","sourceRoot":"","sources":["../../../../src/components/data-display/DisplayValueDispatcher.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AAErG,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAuB,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACvJ,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE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AAU,EACjB,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,KAAK,QAAQ;gCAClE,+EAA+E;gCAC/E,SAAS,QACT,iBAAiB,EAAE,sBAAsB,GACzC,GACE,KArBE,GAAG,SAAS,IAAI,KAAK,IAAI,KAAK,EAAE,CAsBpC,CACP,CAAC,IACE,CACP,CAAC;IACJ,CAAC;IAED,oDAAoD;IACpD,8EAA8E;IAC9E,wEAAwE;IACxE,wEAAwE;IACxE,8CAA8C;IAC9C,IAAI,UAAU,KAAK,eAAe,CAAC,OAAO,EAAE,CAAC;QAC3C,OAAO,KAAC,gBAAgB,OAAK,WAAW,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC;IAC7D,CAAC;IAED,yBAAyB;IACzB,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAChB,oBAAoB,CAAC,IAAI,EACzB,oBAAoB,CAAC,KAAK,EAAE,EAAE,IAAI,oBAAoB,CAAC,KAAK,EAAE,EAAE,EAChE,oBAAoB,CAAC,IAAI;QACzB,oGAAoG;QACpG,oGAAoG;QACpG,gEAAgE,EAChE,SAAS,CACV,aACC,KAAC,IAAI,IAAC,SAAS,EAAE,qBAAqB,CAAC,IAAI,YAAG,UAAU,CAAC,qBAAqB,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,GAAQ,EACtI,KAAC,IAAI,IAAC,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,YAAG,UAAU,GAAQ,IAC7F,CACP,CAAC;AACJ,CAAC;AAED,sBAAsB,CAAC,WAAW,GAAG,wBAAwB,CAAC","sourcesContent":["/**\n * DisplayValueDispatcher — stateless rendering component for field values.\n *\n * Dispatches to the appropriate formatter component based on schema type.\n * Owns no mutable state — all truncation state and callbacks are passed as props.\n * Uses context hooks (i18n, icon registry, UI recipes) for rendering only.\n * Shared by both DisplayFieldReadOnly and DisplayFieldEditable.\n *\n * Rendering hierarchy:\n * 1. Empty values (surface policy autoEmptyValue)\n * 2. displayComponent override (decorator-driven)\n * 3. Foreign key (versioned FK, isForeignKey)\n * 4. Complex types (array, object)\n * 5. Primitive types (boolean, enum, string, number, ...)\n * 6. Specialized types (money, duration, phone, address, bigdecimal, code, file)\n * 7. Range types (range-number, range-date, ...)\n * 8. Fallback: unsupported type indicator\n */\n\nimport React from 'react';\nimport { z } from 'zod';\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 { ResourceRegistryContext } from '~wildo-frontend-lib/core/resources/ResourceRegistryContext';\nimport { StandardIconReference, IconSize } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { Text, Code } from '~wildo-frontend-lib/components/typography/text';\nimport { EmptyValueMark, emptyValueTypographyFor } from './empty-value-mark';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { ButtonSize, type AutoEmptyValue } from '@wildo-ai/presets-components-models';\nimport { FrontendComponentType, UIBehavior, IndicatorVariant, TypographyVariant, resolveVocabularyWordKey } from '@wildo-ai/presets-components-models';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { Skeleton } from '~wildo-frontend-lib/components/feedback/skeleton';\nimport { Badge } from '~wildo-frontend-lib/components/data-display/badge';\nimport { resolveContextualDisplayParams, useDisplayContextKind } from './DisplayContextKindContext';\nimport { useViewerFieldReader, viewerMaySeeField } from '~wildo-frontend-lib/core/navigation/viewer-field-reader';\nimport { ArrayListStyle,\n ArrayObjectItemLayout,\n DisplayChromeMode,\n FieldSchemaType,\n getFieldUIDisplayConfig,\n getObjectKeys,\n getObjectShape,\n getRecordValueSchema,\n getRecordKeySchema,\n getSystemEnumName,\n getSetValueSchema,\n getTupleItemSchemas,\n getMapSchemas,\n resolveDiscriminatedUnionVariant,\n getSchemaType,\n inferFieldSchemaTypeFromValue,\n getArrayUI,\n getObjectUI,\n isForeignKey,\n getResourceReferenceTargetSet,\n resolveDisplayEmptyReason,\n resolveForeignKeyLabelFallback,\n DISPLAY_EMPTY_REASON_LABEL_KEYS,\n getForeignKeyUIDisplay,\n isHiddenForDisplay,\n unwrapSchema,\n type FileFieldEndpoints,\n type DisplayFieldComponent as DisplayFieldComponentEnum,\n type AddressValue,\n type DurationValue,\n type FileValue,\n} from '@wildo-ai/zod-decorators';\n\nimport { ResourcesConfigNamingUtils } from '@wildo-ai/saas-models';\nimport type { DisplayResourceLinkTrail } from './display-resource-link-trail';\nimport { AutomatedLayoutFrontendUtils } from '~wildo-frontend-lib/core/automated-layout/automated-layout.frontend.utils';\n\nimport { DisplayFieldBoolean } from './formatters/display-field-boolean';\nimport { ResourceFieldDisplay_ResourceReference } from '~wildo-frontend-lib/components/resources-fields/resource-reference/ResourceFieldDisplay_ResourceReference';\nimport { DisplayFieldString } from './formatters/display-field-string';\nimport { DisplayFieldNumber } from './formatters/display-field-number';\nimport { DisplayFieldEnum } from './formatters/display-field-enum';\nimport { DisplayFieldMoney } from './formatters/display-field-money';\nimport { DisplayFieldDuration } from './formatters/display-field-duration';\nimport { DisplayFieldPhone } from './formatters/display-field-phone';\nimport { DisplayFieldAddress } from './formatters/display-field-address';\nimport { DisplayFieldBigDecimal } from './formatters/display-field-bigdecimal';\nimport { DisplayFieldCode } from './formatters/display-field-code';\nimport { DisplayFieldJson } from './formatters/display-field-json';\nimport { DisplayFieldFile } from './formatters/display-field-file';\nimport { DisplayFieldRangeBigDecimal } from './formatters/display-field-range-bigdecimal';\nimport { DisplayFieldRangeMoney } from './formatters/display-field-range-money';\nimport { DisplayFieldDate } from './formatters/display-field-date';\nimport { DisplayFieldDateTime } from './formatters/display-field-datetime';\nimport { DisplayFieldTime } from './formatters/display-field-time';\nimport { DisplayFieldRangeNumber } from './formatters/display-field-range-number';\nimport { DisplayFieldRangeDate } from './formatters/display-field-range-date';\nimport { DisplayFieldRangeDateTime } from './formatters/display-field-range-datetime';\nimport { DisplayFieldRangeTime } from './formatters/display-field-range-time';\n\nimport { DisplayChromeProvider, FieldValueMembersChromeBoundary } from './chromes/DisplayChromeContext';\nimport { DisplayField } from './DisplayField';\nimport { useResourceDisplayContext } from './automatic-displayer.utils';\n\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport {\n extractRelationshipDisplayValue,\n getLeafFieldName,\n resolveDiscriminatedPolymorphicFkResourceType,\n resolveRelationshipObjectReadSurface,\n} from './reference-display-target';\nimport { RelationshipNature, Resources_SharedUtils, type ResourceRelationship, type ResourceType } from '@wildo-ai/saas-models';\nimport type { FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\nconst logger = LoggerFrontendService.getLogger();\nconst logDebug = logger.debugByType('DisplayValueDispatcher');\nlogger.setDebugTypeLogging('DisplayValueDispatcher', false);\n\n// =============================================================================\n// HELPERS\n// =============================================================================\n\nfunction flattenRelationshipBuckets(resourceRelationships: {\n parentRelationships?: ResourceRelationship[];\n childRelationships?: ResourceRelationship[];\n selfRelationships?: ResourceRelationship[];\n} | undefined): ResourceRelationship[] {\n if (!resourceRelationships) {\n return [];\n }\n\n return [\n ...(resourceRelationships.parentRelationships ?? []),\n ...(resourceRelationships.childRelationships ?? []),\n ...(resourceRelationships.selfRelationships ?? []),\n ];\n}\n\nfunction resolveRecordIdentifier(params: {\n record: Record<string, unknown>;\n resourceType?: ResourceType;\n registry?: FrontendResourcesRegistry;\n}): string | undefined {\n if (!params.registry) {\n return typeof params.record._id === 'string'\n ? params.record._id\n : (typeof params.record.id === 'string' ? params.record.id : undefined);\n }\n const configuredFieldIdentifier = params.resourceType\n ? params.registry.resourceConfigurations?.[params.resourceType]?.resourceFieldIdentifier\n ?? params.registry.allResourceFieldIdentifiers?.[params.resourceType]\n : undefined;\n const rawId = (configuredFieldIdentifier ? params.record[configuredFieldIdentifier] : undefined)\n ?? params.record._id\n ?? params.record.id;\n\n return typeof rawId === 'string' && rawId !== '' ? rawId : undefined;\n}\n\n/**\n * Extract a pre-populated sibling object from parent data for a FK field.\n *\n * This first tries the relationship-aware object-slot resolution so duplicated\n * edges and self-references stay on the correct payload. The naming-convention\n * fallback remains as a last resort for legacy plain-FK fields that are not\n * backed by relationship metadata.\n */\nfunction extractPopulatedSibling(\n fieldName: string | undefined,\n parentData: Record<string, unknown> | undefined,\n currentResourceType: ResourceType | undefined,\n registry: FrontendResourcesRegistry | undefined,\n): Record<string, unknown> | null {\n if (!fieldName || !parentData || !registry) return null;\n const leafName = getLeafFieldName(fieldName);\n if (!leafName) return null;\n\n if (currentResourceType) {\n const resourceRelationships = registry.resourceConfigurations[currentResourceType]?.resourceRelationships;\n for (const relationship of flattenRelationshipBuckets(resourceRelationships)) {\n try {\n const objectIdentity = Resources_SharedUtils.resolveRelationshipObjectIdentityForResource(\n relationship,\n currentResourceType,\n registry.allResourceFieldIdentifiers,\n );\n\n if (objectIdentity.relationshipIdentifierField !== leafName) {\n continue;\n }\n\n const sibling = parentData[objectIdentity.objectFieldName];\n const relatedResourceType = relationship.resourceType1 === currentResourceType\n ? relationship.resourceType2\n : relationship.resourceType1;\n if (\n sibling &&\n typeof sibling === 'object' &&\n !Array.isArray(sibling) &&\n resolveRecordIdentifier({\n record: sibling as Record<string, unknown>,\n resourceType: relatedResourceType,\n registry,\n })\n ) {\n return sibling as Record<string, unknown>;\n }\n } catch {\n // Fall through to the local naming heuristic.\n }\n }\n }\n\n const siblingFieldName = ResourcesConfigNamingUtils.extractBaseName(leafName);\n if (!siblingFieldName || siblingFieldName === leafName) return null;\n const sibling = parentData[siblingFieldName];\n if (\n sibling &&\n typeof sibling === 'object' &&\n !Array.isArray(sibling) &&\n resolveRecordIdentifier({\n record: sibling as Record<string, unknown>,\n resourceType: registry.fieldIdentifierToResourceType?.[leafName] as ResourceType | undefined,\n registry,\n })\n ) {\n return sibling as Record<string, unknown>;\n }\n return null;\n}\n\nfunction renderNeutralFileFallback(params: {\n value: unknown;\n className?: string;\n tComponent: (component: FrontendComponentType, key: string, params?: Record<string, unknown>) => string;\n}): React.JSX.Element {\n const fileValue = params.value as { fileId?: string; fileIds?: string[] } | null | undefined;\n const count = fileValue?.fileIds?.length ?? (fileValue?.fileId ? 1 : 0);\n\n if (count > 0) {\n return (\n <Text className={params.className}>\n {params.tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'fileCount', { count })}\n </Text>\n );\n }\n\n return (\n <Text className={cn('text-muted-foreground italic', params.className)}>\n {params.tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'noFile')}\n </Text>\n );\n}\n\nfunction hasRenderableFileMetadataEndpoint(\n endpoints: { getMetadata?: string } | undefined\n): endpoints is { getMetadata: string } {\n return typeof endpoints?.getMetadata === 'string' && endpoints.getMetadata.trim() !== '';\n}\n\n// =============================================================================\n// CONSTANTS\n// =============================================================================\n\n/**\n * How many RESOURCE LINKS the automatic display will follow before it stops expanding.\n *\n * This is a cycle backstop, not a layout budget. It bounds the one traversal that has no\n * schema-imposed floor — a COMPOSITION relationship expanded in place, which may be self-referencing\n * (a tree) or mutual (A composes B composes A). A record's own structure is NOT counted here and\n * must not be: it is finite by construction, and counting it truncated real data for months.\n *\n * See `display-resource-link-trail.ts` for the full argument.\n */\nconst MAX_RESOURCE_LINK_DEPTH = 5;\n\nfunction renderEmptyDisplayValue(\n strategy: AutoEmptyValue | undefined,\n noValueLabel: string,\n schemaType?: FieldSchemaType,\n): React.JSX.Element | null {\n switch (strategy) {\n case 'hidden':\n return null;\n case 'placeholder':\n return <Text className=\"text-muted-foreground italic\">{noValueLabel}</Text>;\n case 'skeleton':\n return <Skeleton className=\"h-5 w-full\" />;\n case 'em-dash':\n default:\n // The dash takes the voice of the value it stands in for (DATA for a figure or a date).\n return <EmptyValueMark noValueLabel={noValueLabel} typography={emptyValueTypographyFor(schemaType)} />;\n }\n}\n\n// =============================================================================\n// PROPS\n// =============================================================================\n\nexport interface DisplayValueDispatcherProps {\n schema: z.ZodTypeAny;\n schemaType: FieldSchemaType;\n value: unknown;\n fieldName?: string;\n label?: string;\n className?: string;\n enumLabels?: Record<string, string>;\n displayComponent?: DisplayFieldComponentEnum;\n parentData?: Record<string, unknown>;\n /**\n * Where this subtree sits in RESOURCE terms — absent at the display root. Replaces the former\n * `depth: number`, which counted structural nesting; see `display-resource-link-trail.ts`.\n */\n resourceLinkTrail?: DisplayResourceLinkTrail;\n /** Per-item template for an ARRAY field, authored through `DisplayFieldArray.renderItem`. */\n renderItem?: (itemPath: string, itemSchema: z.ZodTypeAny) => React.ReactNode;\n emptyValue?: AutoEmptyValue;\n fileUploadContext?: Record<string, FileFieldEndpoints>;\n\n showAllArrayItems: boolean;\n onExpandArrayItems: () => void;\n showAllObjectFields: boolean;\n onExpandObjectFields: () => void;\n}\n\n// =============================================================================\n// COMPONENT\n// =============================================================================\n\nexport function DisplayValueDispatcher({\n schema,\n schemaType: declaredSchemaType,\n value,\n fieldName,\n label,\n className,\n enumLabels,\n displayComponent,\n parentData,\n resourceLinkTrail,\n renderItem,\n emptyValue,\n fileUploadContext,\n showAllArrayItems,\n onExpandArrayItems,\n showAllObjectFields,\n onExpandObjectFields,\n}: DisplayValueDispatcherProps): React.JSX.Element | null {\n const { tComponent, t, isReady } = useI18n({\n component: [FrontendComponentType.LOW_LEVEL_FORM_FIELD, FrontendComponentType.LOW_LEVEL_BUTTON],\n });\n const resourceRegistryContext = React.useContext(ResourceRegistryContext);\n const registry = resourceRegistryContext?.registry;\n const { resourceType: currentResourceType } = useResourceDisplayContext();\n const { getRecipe } = useUI();\n const { renderIcon } = useIconRegistry();\n\n const errorIndicatorRecipe = getRecipe(UIBehavior.INDICATOR, IndicatorVariant.ERROR);\n const labelTypographyRecipe = getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.LABEL);\n const bodyTypographyRecipe = getRecipe(UIBehavior.TYPOGRAPHY, TypographyVariant.BODY);\n const dividerRecipe = getRecipe(UIBehavior.DIVIDER);\n\n const commonProps = {\n schema,\n label,\n className,\n forceDisplayLabel: false,\n forceDisplayDescription: false,\n forceHideLabel: true,\n forceHideDescription: true,\n };\n\n /*\n * Read ONCE here, with the component's other top-level hooks, and deliberately NOT beside the\n * array branch that consumes it: this component has six early returns before that point, so a\n * hook called down there runs on some renders and not others — React reports it as \"a change in\n * the order of Hooks\", which is exactly what a first version of this change produced. The merge\n * itself is the pure `resolveContextualDisplayParams`, so the branch needs no hook at all.\n */\n const displayContextKind = useDisplayContextKind();\n // Read with the other top-level hooks for the same reason: the object branch counts members after this filter (#4459 F10).\n const fieldReader = useViewerFieldReader();\n\n // Keyed by the trail's VALUES: inside an expanded relationship the trail object is rebuilt on every render.\n const trailResourceType = resourceLinkTrail?.resourceType;\n const trailPathPrefix = resourceLinkTrail?.pathPrefix;\n const relationshipObjectSemantics = React.useMemo(\n () => resolveRelationshipObjectReadSurface({\n fieldName,\n resourceLinkTrail,\n currentResourceType: currentResourceType as ResourceType | undefined,\n registry,\n }),\n // eslint-disable-next-line react-hooks/exhaustive-deps -- `resolveRelationshipObjectReadSurface` reads only the trail's resourceType and pathPrefix\n [fieldName, trailResourceType, trailPathPrefix, currentResourceType, registry],\n );\n\n const relationshipObjectIdentity = relationshipObjectSemantics?.objectIdentity;\n\n const relationshipObjectDisplayValue = React.useMemo(() => {\n if (!relationshipObjectIdentity) {\n return undefined;\n }\n\n return extractRelationshipDisplayValue(\n value,\n relationshipObjectIdentity.relationshipIdentifierField,\n );\n }, [relationshipObjectIdentity, value]);\n\n if (!isReady) return null;\n\n /*\n * The resource-link guard. It fires only after MAX_RESOURCE_LINK_DEPTH relationship objects have\n * been expanded in place — never on a record's own structure, however deep that structure is.\n */\n if ((resourceLinkTrail?.linkDepth ?? 0) >= MAX_RESOURCE_LINK_DEPTH) {\n return <Text className=\"text-muted-foreground italic text-sm\">{tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'resourceLinkLimitReached')}</Text>;\n }\n\n /**\n * The words for an empty value, chosen by WHY it is empty — see `DisplayEmptyReason`.\n *\n * One em dash used to say four different things: a field awaiting the operator's input, a list\n * with no members, and a computed value nothing has produced yet all rendered identically. On the\n * `em-dash` strategy this changes only the screen-reader text (the dash is unchanged); on\n * `placeholder` it is the visible word. Which of the two a surface uses stays `AutoEmptyValue`.\n */\n const emptyLabelFor = (isCollectionEmptiness: boolean): string => tComponent(\n FrontendComponentType.LOW_LEVEL_FORM_FIELD,\n DISPLAY_EMPTY_REASON_LABEL_KEYS[resolveDisplayEmptyReason(schema, isCollectionEmptiness)],\n );\n\n /**\n * WHEN THE SCHEMA CANNOT SAY, ASK THE VALUE.\n *\n * `z.unknown()` is a deliberate posture — an outbound webhook's `payload`, a stored provider\n * response, any passthrough blob the framework declines to impose structure on — and every one\n * of those values used to render the same way: pretty-printed JSON in the code viewer. Faithful,\n * and wrong for the common case, because most values inside such a payload are ordinary scalars.\n * A name came out as `\"Ada\"` in a monospace block, a flag as `true`, a timestamp as a quoted ISO\n * string; each is the value, and none of them is how that value reads anywhere else.\n *\n * So an UNKNOWN field adopts the type its VALUE reveals, and every branch below serves it\n * unchanged. `inferFieldSchemaTypeFromValue` answers `undefined` for anything it cannot name —\n * an object, an array, a function — and the JSON rendering keeps exactly the case it was built\n * for. It is also conservative by design about what it WILL name: a number is never read as an\n * epoch, and a numeric string is never read as a number. See its own docstring for why.\n *\n * Substituted here rather than at the UNKNOWN branch so the empty-value guard just below sees\n * the same answer: an empty string in an opaque payload should read as empty, exactly as it\n * would in a declared string field.\n */\n const schemaType = declaredSchemaType === FieldSchemaType.UNKNOWN\n ? (inferFieldSchemaTypeFromValue(value) ?? FieldSchemaType.UNKNOWN)\n : declaredSchemaType;\n\n // Null/undefined placeholder\n if (\n value === null ||\n value === undefined ||\n (schemaType === FieldSchemaType.STRING && value === '')\n ) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(false), schemaType);\n }\n\n // ── DISPLAY COMPONENT OVERRIDE ──\n if (displayComponent) {\n const componentProps = { schema, className };\n switch (displayComponent) {\n case 'string': return <DisplayFieldString {...componentProps} value={value as string} />;\n case 'number': return <DisplayFieldNumber {...componentProps} value={value as number} />;\n case 'boolean': return <DisplayFieldBoolean {...componentProps} value={value as boolean} />;\n case 'enum': return <DisplayFieldEnum {...componentProps} value={value as string} labels={enumLabels} />;\n case 'code': return <DisplayFieldCode {...componentProps} value={value as { content: string; language: string }} />;\n case 'money': return <DisplayFieldMoney {...componentProps} value={value as { amount: bigint; currency: string; decimals: number }} />;\n case 'duration': return <DisplayFieldDuration {...componentProps} value={value as DurationValue} />;\n case 'phone': return <DisplayFieldPhone {...componentProps} value={value as string} />;\n case 'address': return <DisplayFieldAddress {...componentProps} value={value as AddressValue} />;\n case 'bigdecimal': return <DisplayFieldBigDecimal {...componentProps} value={value as string} />;\n case 'file': {\n const normalizedFieldName = fieldName\n ? AutomatedLayoutFrontendUtils.normalizeSchemaFieldPath(fieldName)\n : undefined;\n const fileEndpoints = normalizedFieldName && fileUploadContext?.[normalizedFieldName];\n return hasRenderableFileMetadataEndpoint(fileEndpoints)\n ? <DisplayFieldFile {...componentProps} fieldName={fieldName} value={value as FileValue} endpoints={{ getMetadata: fileEndpoints.getMetadata, serve: fileEndpoints.serve }} />\n : renderNeutralFileFallback({ value, className: componentProps.className, tComponent });\n }\n case 'date': return <DisplayFieldDate {...componentProps} value={value as Date | string} />;\n case 'time': return <DisplayFieldTime {...componentProps} value={value as Date | string} />;\n case 'datetime': return <DisplayFieldDateTime {...componentProps} value={value as Date | string} />;\n case 'range-number': return <DisplayFieldRangeNumber {...componentProps} value={value as { from?: number; to?: number }} />;\n case 'range-date': return <DisplayFieldRangeDate {...componentProps} value={value as { from?: Date | string; to?: Date | string }} />;\n case 'range-time': return <DisplayFieldRangeTime {...componentProps} value={value as { from?: Date | string; to?: Date | string }} />;\n case 'range-datetime': return <DisplayFieldRangeDateTime {...componentProps} value={value as { from?: Date | string; to?: Date | string }} />;\n case 'range-bigdecimal': return <DisplayFieldRangeBigDecimal {...componentProps} value={value as { from?: string; to?: string }} />;\n case 'range-money': return <DisplayFieldRangeMoney {...componentProps} value={value as { from?: { amount: bigint; currency: string; decimals: number }; to?: { amount: bigint; currency: string; decimals: number } }} />;\n case 'simple-text': break;\n default:\n logDebug('Unrecognized displayComponent — falling back to schema-type dispatch', {\n displayComponent,\n fieldName,\n });\n break;\n }\n }\n\n // ── FOREIGN KEY TYPES ──\n if (schemaType === FieldSchemaType.VERSIONED_FOREIGN_KEY) {\n const fkPopulated = extractPopulatedSibling(\n fieldName,\n parentData,\n currentResourceType as ResourceType | undefined,\n registry,\n );\n return (\n <ResourceFieldDisplay_ResourceReference\n fieldName={fieldName || ''}\n value={value as string}\n data={fkPopulated ?? undefined}\n // The readable copy this record carries, used INSTEAD of printing the raw id when the\n // reference cannot be resolved. See `labelFallbackField`.\n labelFallback={resolveForeignKeyLabelFallback(schema, parentData)}\n displayParams={getForeignKeyUIDisplay(schema)}\n schema={schema}\n className={className}\n />\n );\n }\n\n if (isForeignKey(schema)) {\n const fkPopulated = extractPopulatedSibling(\n fieldName,\n parentData,\n currentResourceType as ResourceType | undefined,\n registry,\n );\n // Per-record discriminated polymorphic FK (e.g. referrals' billing-account\n // FKs): resolve the concrete branch from the holder record's discriminator\n // so label/link/fetch target the right resource type. `undefined` for plain\n // FKs → the reference component falls back to the field-name → type map.\n const polymorphicResourceType = resolveDiscriminatedPolymorphicFkResourceType({\n schema,\n fieldName,\n parentData,\n currentResourceType: currentResourceType as ResourceType | undefined,\n registry,\n });\n return (\n <ResourceFieldDisplay_ResourceReference\n fieldName={fieldName || ''}\n value={value as string | string[]}\n data={fkPopulated ?? undefined}\n labelFallback={resolveForeignKeyLabelFallback(schema, parentData)}\n resourceType={polymorphicResourceType}\n displayParams={getForeignKeyUIDisplay(schema)}\n schema={schema}\n className={className}\n />\n );\n }\n\n /*\n * A reference to ONE row of a resource whose TYPE the value itself carries (`.isResourceReference({ targetSet })`,\n * #2471): `{ resourceType, resourceId }`, such as a run's `caseRef` (`WorkUnitRefSchema`). It is not a foreign key —\n * no relationship names it and its type is not fixed — so neither branch above reached it, and it fell to the plain\n * object branch below, which printed its two members: the resource's API name and the raw row id (#3819). It is read\n * exactly as a foreign key is, through the same reference display, with the type taken from the value: the row's\n * label, linked to the row, or \"unavailable\" (id on hover) when the reader cannot read it. The edit side has the\n * matching control (`FormFieldResourceReference`). A value missing either member is not a reference yet and keeps\n * the object rendering, which shows what is there.\n */\n if (getResourceReferenceTargetSet(schema) && value && typeof value === 'object' && !Array.isArray(value)) {\n const { resourceType: referencedType, resourceId: referencedId } = value as { resourceType?: unknown; resourceId?: unknown };\n if (typeof referencedType === 'string' && referencedType !== '' && typeof referencedId === 'string' && referencedId !== '') {\n return (\n <ResourceFieldDisplay_ResourceReference\n fieldName={fieldName || ''}\n value={referencedId}\n resourceType={referencedType}\n schema={schema}\n className={className}\n />\n );\n }\n }\n\n if (\n relationshipObjectSemantics &&\n relationshipObjectSemantics.semantics.nature !== RelationshipNature.COMPOSITION &&\n relationshipObjectIdentity\n ) {\n return (\n <ResourceFieldDisplay_ResourceReference\n fieldName={fieldName || ''}\n value={relationshipObjectDisplayValue ?? null}\n data={\n !Array.isArray(value) && value && typeof value === 'object'\n ? value as Record<string, unknown>\n : undefined\n }\n resourceType={relationshipObjectSemantics.relatedResourceType}\n className={className}\n />\n );\n }\n\n /*\n * The trail handed to every child of this field.\n *\n * Reaching here with `relationshipObjectSemantics` set means this field IS a relationship object\n * and is being expanded in place rather than shown as a chip — the non-composition natures\n * returned above. That expansion is the crossing: its members belong to the RELATED resource, so\n * the trail rebases onto it and the link count advances. Everything else — a plain nested object,\n * an array item, a union variant's members — is the same record still, and inherits the trail\n * unchanged so it costs nothing against the guard.\n */\n const childResourceLinkTrail: DisplayResourceLinkTrail | undefined =\n relationshipObjectSemantics && fieldName\n ? {\n resourceType: relationshipObjectSemantics.relatedResourceType,\n pathPrefix: fieldName,\n linkDepth: (resourceLinkTrail?.linkDepth ?? 0) + 1,\n }\n : resourceLinkTrail;\n\n // ── COMPLEX TYPES ──\n\n if (schemaType === FieldSchemaType.ARRAY && Array.isArray(value)) {\n if ((value as unknown[]).length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const unwrapped = unwrapSchema(schema);\n const elementType = (unwrapped as z.ZodArray<z.ZodTypeAny>).element;\n const elementSchemaType = elementType ? getSchemaType(elementType) : FieldSchemaType.UNKNOWN;\n const arrayUI = getArrayUI(schema);\n const arrayDisplayParams = resolveContextualDisplayParams(arrayUI, displayContextKind);\n const displayMode = arrayDisplayParams?.displayMode || 'vertical';\n\n const items = value as unknown[];\n const maxItems = arrayDisplayParams?.maxItems || undefined;\n const visibleItems = maxItems && !showAllArrayItems ? items.slice(0, maxItems) : items;\n const hiddenCount = maxItems ? items.length - maxItems : 0;\n\n // ROW item layout (object arrays): render each item as a compact horizontal\n // row of its fields — booleans lead, the primary field fills — instead of\n // the default indented `ps-card` object block. Mirrors the edit-side ROW\n // (AutomatedArrayField) so `objectItemLayout: ROW` is coherent across display + edit.\n /*\n * CHIPS (string entries only — see `ArrayListStyle.CHIPS`): a wrapping row of neutral chips, each\n * the entry's own text. Decided before the generic list below because a chip is the entry's whole\n * rendering: routing each tag through a `DisplayField` would put a paragraph at body size inside a\n * 12px chip. An authored `renderItem` still wins — a template chooses what an entry says.\n */\n if (arrayDisplayParams?.listStyle === ArrayListStyle.CHIPS && elementSchemaType === FieldSchemaType.STRING && !renderItem) {\n return (\n <div\n role=\"list\"\n aria-label={label || fieldName || tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'list')}\n data-list-style=\"chips\"\n className={cn('flex flex-row flex-wrap gap-item', className)}\n >\n {visibleItems.map((item, index) => (\n <Badge key={index} role=\"listitem\" variant=\"secondary\">{String(item)}</Badge>\n ))}\n {hiddenCount > 0 && !showAllArrayItems && (\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenCount })}\n onClick={onExpandArrayItems}\n >\n {tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenCount })}\n </Button>\n )}\n </div>\n );\n }\n\n const objectItemLayout = arrayUI?.objectItemLayout ?? ArrayObjectItemLayout.CARD;\n const itemShape = elementSchemaType === FieldSchemaType.OBJECT && elementType ? getObjectShape(elementType) : null;\n const isRowObjectArray = objectItemLayout === ArrayObjectItemLayout.ROW && !!itemShape;\n\n /*\n * A PLAIN primitive list — bare values, no markers, no rules, no per-item template, vertical flow.\n * Marked so a host that lays values out in a row (the settings-row value column) can flow it inline;\n * the list itself stays the vertical default everywhere else.\n */\n const isPlainPrimitiveList = elementSchemaType !== FieldSchemaType.OBJECT\n && !renderItem\n && displayMode !== 'horizontal'\n && (arrayDisplayParams?.listStyle === undefined || arrayDisplayParams.listStyle === ArrayListStyle.PLAIN);\n\n return (\n <div\n role=\"list\"\n aria-label={label || fieldName || tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'list')}\n data-list-shape={isPlainPrimitiveList ? 'primitive' : undefined}\n className={cn(\n /*\n * `w-full min-w-0`: a row list is as wide as the value it sits in, never as wide as its longest cell. A list\n * sized to its content overflowed a settings row's end-aligned value column toward the START, over the row's\n * own label and out of the dialog: a received email's long recipient address (#3139).\n */\n isRowObjectArray\n ? 'flex w-full min-w-0 flex-col gap-element'\n // CHIPS on a non-string entry type falls back to the horizontal flow (see the branch above).\n : displayMode === 'horizontal' || arrayDisplayParams?.listStyle === ArrayListStyle.CHIPS ? 'flex flex-row gap-element flex-wrap'\n /*\n * OBJECT entries breathe on the FIELD scale (1rem): with the card shell retired (the\n * section owns the frame, the item owns its accent line), the GAP is what says where\n * one entry ends — measured on a four-criterion list whose entries fused at the item\n * scale, whose base is 0.25rem and exists for menu rows, not content entries.\n * Primitive lists keep the tight rhythm; they are lines, not entries.\n */\n /*\n * SEPARATED draws one hairline BETWEEN entries — `divide-y` rather than a border per\n * item, so there is none above the first or below the last — and drops the gap, because\n * the rule is now what says where an entry ends and padding does the breathing (applied\n * per item below). See `ArrayListStyle.SEPARATED`.\n */\n : arrayDisplayParams?.listStyle === ArrayListStyle.SEPARATED\n /*\n * `divide-border` — the border-COLOR utility the rules take, NOT the DIVIDER recipe.\n * That recipe's base is `bg-border shrink-0`, because a divider is an ELEMENT painted\n * in the border colour; applied to the list CONTAINER it painted the entire list\n * that colour. Measured on the live market page: a 936px block of `oklch(0.929…)`\n * behind every ICP. The same trap as a context-carrier that still renders — a recipe\n * describes the thing it is for, and this container is not that thing.\n */\n ? 'flex flex-col divide-y divide-border'\n : elementSchemaType === FieldSchemaType.OBJECT ? 'flex flex-col gap-field'\n : 'flex flex-col gap-item-xs',\n className\n )}\n >\n {renderItem ? (\n /*\n * An authored per-item TEMPLATE replaces the automatic rendering of each entry — the whole\n * point of `DisplayFieldArray.renderItem`, which until now reached only the inline-editable\n * branch and was silently ignored on every read surface.\n *\n * The path handed over is the DISPLAY path (`icps[0]`), because that is what a nested\n * `<DisplayField name=\"icps[0].name\" />` resolves against on this surface. The item's\n * schema goes with it so a template can branch on the shape it was given rather than\n * assume one.\n *\n * The array's own chrome — the list role, the gaps, the truncation button below — stays\n * the framework's: a template chooses what an ENTRY says, not how the collection behaves.\n */\n visibleItems.map((item, index) => {\n /*\n * A template that answers `null` is REFUSING this item, not rendering nothing — the\n * shape-derived templates return null for an entry they cannot read (no naming field,\n * an unknown edge kind) precisely so the item degrades to the automatic rendering.\n * Taking the null literally rendered EMPTY list items: the market's buying-journeys\n * tab, whose entries carry none of the naming fields the evidence template knows,\n * displayed as a blank panel while every sibling tab rendered (measured live). The\n * fallback is the same per-item `DisplayField` the no-template branch below renders.\n */\n const templated = renderItem(fieldName ? `${fieldName}[${index}]` : `[${index}]`, (elementType ?? schema) as z.ZodTypeAny);\n return (\n <div\n key={index}\n role=\"listitem\"\n className={cn(\n elementSchemaType === FieldSchemaType.OBJECT && 'py-item-xs',\n // Under SEPARATED the padding is what keeps entries off their own rule; `first:`/\n // `last:` keep the run flush with the container it sits in.\n arrayDisplayParams?.listStyle === ArrayListStyle.SEPARATED && 'py-card-sm first:pt-0 last:pb-0',\n )}\n >\n {templated ?? (\n <DisplayField\n schema={elementType ?? schema}\n schemaType={elementSchemaType}\n value={item}\n enumLabels={enumLabels}\n name={fieldName ? `${fieldName}[${index}]` : undefined}\n resourceLinkTrail={childResourceLinkTrail}\n />\n )}\n </div>\n );\n })\n ) : isRowObjectArray && itemShape ? (\n visibleItems.map((item, index) => {\n const itemRecord = (item && typeof item === 'object' ? item : {}) as Record<string, unknown>;\n const itemKeys = getObjectKeys(elementType as z.ZodTypeAny);\n const primaryFieldName = AutomatedLayoutFrontendUtils.getArrayItemPrimaryField(elementType as z.ZodTypeAny).name;\n const orderedKeys = [\n ...itemKeys.filter((k) => getSchemaType(itemShape[k]) === FieldSchemaType.BOOLEAN),\n ...itemKeys.filter((k) => getSchemaType(itemShape[k]) !== FieldSchemaType.BOOLEAN),\n ];\n return (\n <div key={index} role=\"listitem\" className=\"flex w-full min-w-0 items-center gap-element\">\n {/* A row cell is a bare value named for a screen reader, never the host surface's chrome: inside a\n settings pane that chrome is SETTINGS_ROW, a label column beside a capped value column, which a\n cell has no room for. The edit side's `ObjectItemRowFields` does the same (#3130). */}\n <DisplayChromeProvider displayChromeMode={DisplayChromeMode.COMPACT} sectionChromeMode={undefined}>\n {orderedKeys.map((key) => (\n <DisplayField\n key={key}\n schema={itemShape[key]}\n schemaType={getSchemaType(itemShape[key])}\n value={itemRecord[key]}\n // Every member keeps its name for a screen reader, since \"Yes\" or \"High\" alone does not say what it\n // is (#3079), except the row's naming member, which reads as the row itself.\n // field-name-omitted-waiver: the naming member is the row's own name.\n hideLabel={key === primaryFieldName}\n labelPlacement={key === primaryFieldName ? undefined : 'hidden'}\n name={fieldName ? `${fieldName}[${index}].${key}` : undefined}\n // A TEXT cell breaks a long unbroken token (an email address, a DNS record's value) inside the\n // row, as a plain string value does, rather than pushing the row wider than its column (#3139);\n // the naming cell also takes the room left. A badge, a number or a tick keeps its size.\n className={cn(\n 'w-auto',\n key === primaryFieldName\n ? 'min-w-0 flex-1 [overflow-wrap:anywhere]'\n : getSchemaType(itemShape[key]) === FieldSchemaType.STRING ? 'min-w-0 [overflow-wrap:anywhere]' : 'shrink-0',\n )}\n resourceLinkTrail={childResourceLinkTrail}\n />\n ))}\n </DisplayChromeProvider>\n </div>\n );\n })\n ) : visibleItems.map((item, index) => (\n /*\n * `listitem` with a REAL marker when the author opted into BULLETS (primitive items,\n * vertical flow only — see `ArrayListStyle`): enumerations a reader scans — alternatives,\n * consequences, principles — read as one run-on paragraph without markers. Object items\n * keep the plain wrapper; they are cards, not list lines.\n */\n <div\n key={index}\n role=\"listitem\"\n className={cn(\n arrayDisplayParams?.listStyle === ArrayListStyle.BULLETS\n && elementSchemaType !== FieldSchemaType.OBJECT\n && displayMode !== 'horizontal'\n && 'ms-4 list-item list-disc marker:text-muted-foreground/60',\n /*\n * OBJECT items in the vertical layout separate by SPACING alone — the entry's left\n * accent line (drawn by the object arm) is the boundary marker. This was a full card\n * shell first, and a framed item inside a framed collapsible section read as chrome\n * on chrome (decided 2026-08-31: the SECTION owns the frame, the item owns the line).\n */\n elementSchemaType === FieldSchemaType.OBJECT\n && !isRowObjectArray\n && displayMode !== 'horizontal'\n && 'py-item-xs',\n )}\n >\n <DisplayField\n schema={elementType ?? schema}\n schemaType={elementSchemaType}\n value={item}\n enumLabels={enumLabels}\n name={fieldName ? `${fieldName}[${index}]` : undefined}\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n ))}\n {hiddenCount > 0 && !showAllArrayItems && (\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"self-start\"\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenCount })}\n onClick={onExpandArrayItems}\n >\n {tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenCount })}\n </Button>\n )}\n </div>\n );\n }\n\n /*\n * VERSIONED_OBJECT joins OBJECT here rather than getting a branch of its own: `versioned()`\n * returns a ZodObject with `currentVersion` and `versionHistory` added, both declared HIDDEN and\n * NOT EDITABLE, so the object branch already renders exactly the visible fields and already\n * omits the two bookkeeping ones. Giving it a separate branch would duplicate the object\n * renderer to reach the same output — and leaving it out is why it rendered an \"unsupported\n * type\" chip over a perfectly ordinary object.\n */\n if ((schemaType === FieldSchemaType.OBJECT || schemaType === FieldSchemaType.VERSIONED_OBJECT) && typeof value === 'object') {\n /*\n * A DISCRIMINATED UNION field resolves to its ONE matching variant before anything else.\n *\n * `getObjectShape` answers `null` for a union — a union has no shape of its own — so this\n * branch reached the empty return below and rendered an em-dash over data that was fully\n * present. Measured on the workbench: an ICP's `profile` (a union keyed on `kind`, carrying\n * firmographics, employee range, industries) displayed as \"—\" while the file held every field.\n *\n * The VALUE is what makes the narrowing possible and exact: its discriminator says which\n * variant this is, so the fields rendered are that variant's and not a merge of alternatives\n * the value did not choose. A value with no discriminator belongs to the member whose\n * discriminator takes the declared default, where Zod routes it too (#2076). When nothing\n * matches — no such member, an unknown value — the empty return still stands, because a display\n * must not guess which variant it is looking at.\n */\n const variant = resolveDiscriminatedUnionVariant(schema, value);\n const objectSchema = variant ?? schema;\n const shape = getObjectShape(objectSchema);\n const keys = getObjectKeys(objectSchema);\n\n /*\n * Object-level display params come from the RESOLVED VARIANT first, and only then from the\n * union.\n *\n * They used to be read off `schema` unconditionally, which made them unreachable for every\n * union field: the shape and the keys came from the variant while `primaryField`, `displayMode`\n * and `maxItems` came from a union that cannot carry them, so decorating a variant compiled,\n * type-checked, threw nothing and did nothing. Measured on the workbench's build plan, where a\n * task's `target` is a five-variant union: `variant.objectUI({ display: { displayMode:\n * HORIZONTAL } })` left the page byte-identical, and the target went on rendering as five\n * stacked rows — a `Target` label, a `Kind` label over the wire constant `RESOURCE_STAGE`, two\n * ref rows and a badge — fifty-six times down the page.\n *\n * The union is kept as the FALLBACK rather than dropped: a union whose variants agree about\n * their layout can say so once at the field, and an existing decoration there keeps working.\n */\n const variantObjectUI = variant ? getObjectUI(variant) : undefined;\n const objectUI = variantObjectUI ?? getObjectUI(schema);\n const displayMode = objectUI?.display?.displayMode || 'vertical';\n const maxObjectItems = objectUI?.display?.maxItems || undefined;\n\n if (!shape || keys.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n /*\n * `primaryField` promotion (see `ObjectUIDisplayParams.primaryField`): the declared headline\n * member leads, the rest keep schema order. An unknown name degrades to the uniform rendering —\n * a schema rename must never blank the display.\n */\n const primaryField = objectUI?.display?.primaryField;\n /*\n * The members this viewer is SHOWN (#4459 F10): one the viewer may not read (`.readableBy`) and one marked `.isHidden()`\n * render nothing, so they take no place under `maxItems` and are not counted in \"Show N more\". Counted from the schema's\n * keys, a hidden member made the control promise a field that never appears.\n */\n const shownKeys = keys.filter((key) => !isHiddenForDisplay(shape[key] as z.ZodTypeAny) && viewerMaySeeField(shape[key] as z.ZodTypeAny, fieldReader));\n const orderedKeys = primaryField && shownKeys.includes(primaryField)\n ? [primaryField, ...shownKeys.filter((key) => key !== primaryField)]\n : shownKeys;\n const visibleKeys = maxObjectItems && !showAllObjectFields ? orderedKeys.slice(0, maxObjectItems) : orderedKeys;\n const hiddenFieldCount = maxObjectItems ? shownKeys.length - maxObjectItems : 0;\n /*\n * COMPACT fields join the HEADLINE ROW. COMPACT means \"the value self-describes, no label\" —\n * and the place a self-describing chip belongs is beside the member that names the unit, not\n * as a stray row at whatever position the schema authored it (which put a status badge BELOW\n * the facts it qualifies). Only meaningful when a headline exists: without `primaryField`\n * there is no row to join, and the uniform rendering stands. Membership stays the AUTHOR's\n * choice per field — a long machine ref that would crowd the row keeps a body chrome instead.\n */\n // A headline exists only when its member is shown: otherwise its COMPACT chips stay body rows (#4459 F10).\n const headlineChipKeys = primaryField && shownKeys.includes(primaryField)\n ? visibleKeys.filter((key) => {\n if (key === primaryField) return false;\n const chromeMode = getFieldUIDisplayConfig(shape[key] as z.ZodTypeAny)?.chromeMode;\n return chromeMode === DisplayChromeMode.COMPACT;\n })\n : [];\n\n return (\n <div\n role=\"group\"\n aria-label={label || fieldName || tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'object')}\n className={cn(\n 'ps-card relative',\n displayMode === 'horizontal' ? 'flex flex-row gap-field flex-wrap' : 'flex flex-col gap-element',\n className\n )}\n >\n <div className={cn(\n 'absolute start-0 top-0 bottom-0 w-0.5',\n dividerRecipe.base\n )} aria-hidden=\"true\" />\n {/* The members are the value's content, so a section's chrome (meant for the field) does not reach them (#3133). */}\n <FieldValueMembersChromeBoundary>\n {visibleKeys.map((key) => {\n const fieldSchema = shape[key];\n const fieldSchemaType = getSchemaType(fieldSchema);\n const fieldValue = (value as Record<string, unknown>)[key];\n const childName = fieldName ? `${fieldName}.${key}` : key;\n const isPrimary = key === primaryField;\n\n // Rendered inside the headline row below, never as a body row of its own.\n if (headlineChipKeys.includes(key)) return null;\n\n return isPrimary ? (\n // The headline row: the naming member with title emphasis, its COMPACT chips beside it.\n <div key={key} className=\"flex flex-wrap items-center gap-x-item-sm gap-y-element-xs\">\n {/*\n * `font-medium` alone: weight INHERITS, and the body typography recipe sets none of\n * its own, so the value renders medium without reaching into it. The mirrored\n * `[&_p]:font-medium` this carried was redundant from the day it was written — and it\n * is the site every headline reach-through in the repository was copied from, which is\n * how a redundancy became a pattern.\n */}\n <div className=\"min-w-0 flex-1 font-medium\">\n <DisplayField\n schema={fieldSchema}\n schemaType={fieldSchemaType}\n value={fieldValue}\n name={childName}\n // field-name-omitted-waiver: the object's naming member is its headline, inside a group the field names.\n hideLabel\n parentData={value as Record<string, unknown>}\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n {headlineChipKeys.map((chipKey) => (\n <DisplayField\n key={chipKey}\n schema={shape[chipKey]}\n schemaType={getSchemaType(shape[chipKey])}\n value={(value as Record<string, unknown>)[chipKey]}\n name={fieldName ? `${fieldName}.${chipKey}` : chipKey}\n parentData={value as Record<string, unknown>}\n resourceLinkTrail={childResourceLinkTrail}\n />\n ))}\n </div>\n ) : (\n /*\n * No explicit label: the child resolves its own from the display context (where the\n * authored `resources.<type>.fields.<path>` label lives), and falls back to the\n * formatted leaf name. An explicit `label={formatLabel(key)}` here won the precedence\n * over every authored nested label, which is how \"Serves ICPs\" rendered as \"Icp Refs\"\n * with the authoring in place and served.\n */\n <DisplayField\n key={key}\n schema={fieldSchema}\n schemaType={fieldSchemaType}\n value={fieldValue}\n name={childName}\n /*\n * `w-auto` in the HORIZONTAL layout, or the row does not exist. The field chrome is\n * `flex w-full`, so in a wrapping row every child claims a full line and the members\n * stack anyway — the container reported `flex-direction: row` while rendering exactly\n * as `vertical` did (measured, on an ICP's `{ jobRef, importance }` edges).\n *\n * The sibling ROW-object-array branch above already passes `w-auto` for this reason;\n * this branch simply never did, which is why `displayMode: HORIZONTAL` on an object\n * had no visible effect anywhere.\n */\n className={displayMode === 'horizontal' ? 'w-auto' : undefined}\n parentData={value as Record<string, unknown>}\n resourceLinkTrail={childResourceLinkTrail}\n />\n );\n })}\n </FieldValueMembersChromeBoundary>\n {hiddenFieldCount > 0 && !showAllObjectFields && (\n <Button\n type=\"button\"\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"self-start\"\n aria-label={tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenFieldCount })}\n onClick={onExpandObjectFields}\n >\n {tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'showMore', { count: hiddenFieldCount })}\n </Button>\n )}\n </div>\n );\n }\n\n // ── PRIMITIVE TYPES ──\n\n if (schemaType === FieldSchemaType.BOOLEAN) {\n return <DisplayFieldBoolean {...commonProps} value={value as boolean} />;\n }\n\n if (schemaType === FieldSchemaType.ENUM) {\n return <DisplayFieldEnum {...commonProps} value={value as string} labels={enumLabels} />;\n }\n\n if (schemaType === FieldSchemaType.STRING) {\n return <DisplayFieldString {...commonProps} value={value as string} />;\n }\n\n if (schemaType === FieldSchemaType.NUMBER || schemaType === FieldSchemaType.BIGINT) {\n return <DisplayFieldNumber {...commonProps} value={value as number} />;\n }\n\n // ── SPECIALIZED TYPES ──\n\n if (schemaType === FieldSchemaType.MONEY) {\n return <DisplayFieldMoney {...commonProps} value={value as { amount: bigint; currency: string; decimals: number }} />;\n }\n\n if (schemaType === FieldSchemaType.DURATION) {\n return <DisplayFieldDuration {...commonProps} value={value as DurationValue} />;\n }\n\n if (schemaType === FieldSchemaType.PHONE) {\n return <DisplayFieldPhone {...commonProps} value={value as string} />;\n }\n\n if (schemaType === FieldSchemaType.ADDRESS) {\n return <DisplayFieldAddress {...commonProps} value={value as AddressValue} />;\n }\n\n if (schemaType === FieldSchemaType.BIGDECIMAL) {\n return <DisplayFieldBigDecimal {...commonProps} value={value as string} />;\n }\n\n if (schemaType === FieldSchemaType.CODE) {\n return <DisplayFieldCode {...commonProps} value={value as { content: string; language: string }} />;\n }\n\n if (schemaType === FieldSchemaType.FILE) {\n const normalizedFieldName = fieldName\n ? AutomatedLayoutFrontendUtils.normalizeSchemaFieldPath(fieldName)\n : undefined;\n const fileEndpoints = normalizedFieldName && fileUploadContext?.[normalizedFieldName];\n if (hasRenderableFileMetadataEndpoint(fileEndpoints)) {\n return <DisplayFieldFile {...commonProps} fieldName={fieldName} value={value as FileValue} endpoints={{ getMetadata: fileEndpoints.getMetadata, serve: fileEndpoints.serve }} />;\n }\n return renderNeutralFileFallback({ value, className, tComponent });\n }\n\n // ── RANGE TYPES ──\n\n if (schemaType === FieldSchemaType.RANGE_BIGDECIMAL) {\n return <DisplayFieldRangeBigDecimal {...commonProps} value={value as { from?: string; to?: string }} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_MONEY) {\n return <DisplayFieldRangeMoney {...commonProps} value={value as { from?: { amount: bigint; currency: string; decimals: number }; to?: { amount: bigint; currency: string; decimals: number } }} />;\n }\n\n if (schemaType === FieldSchemaType.DATE) {\n return <DisplayFieldDate {...commonProps} value={value as Date | string} />;\n }\n\n if (schemaType === FieldSchemaType.DATETIME) {\n return <DisplayFieldDateTime {...commonProps} value={value as Date | string} />;\n }\n\n if (schemaType === FieldSchemaType.TIME) {\n return <DisplayFieldTime {...commonProps} value={value as Date | string} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_NUMBER) {\n return <DisplayFieldRangeNumber {...commonProps} value={value as { from?: number; to?: number }} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_DATE) {\n return <DisplayFieldRangeDate {...commonProps} value={value as { from?: Date | string; to?: Date | string }} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_DATETIME) {\n return <DisplayFieldRangeDateTime {...commonProps} value={value as { from?: Date | string; to?: Date | string }} />;\n }\n\n if (schemaType === FieldSchemaType.RANGE_TIME) {\n return <DisplayFieldRangeTime {...commonProps} value={value as { from?: Date | string; to?: Date | string }} />;\n }\n\n // ── RECORD (z.record) ──\n /*\n * A record's KEYS ARE DATA, so it has no declared shape and the OBJECT branch above cannot\n * serve it — `getObjectShape` answers `null` by design. Without a branch of its own it fell all\n * the way through to the \"unsupported type\" chip below, which rendered an ERROR over a value\n * that was fully present and fully readable.\n *\n * Measured 2026-09-18 across the settings hub: `organization-entitlements` showed it twice\n * (`Limits`, `Limit overrides`) and the SSO policy once (`Domain verification status`), on both\n * the organization and application surfaces — four panes reporting a defect that was only ever\n * a missing branch.\n *\n * Each entry's KEY is rendered verbatim, never humanized. A record key is a value the operator\n * authored or the system stored (`maxTodos`, a domain name), not an identifier awaiting a label,\n * so inventing display text for it would state something the data does not say — see\n * `.claude/rules/display-text-comes-from-i18n.md`. The VALUE goes back through the ordinary\n * dispatch with the record's own value schema, so a record of money renders as money and a\n * record of dates as dates, for free.\n *\n * When the value schema cannot be read, the value is still dispatched — with no schema, the\n * child resolves what it can. That is strictly better than the error chip this replaces, and it\n * is why this branch does not fail closed.\n */\n if (schemaType === FieldSchemaType.RECORD && typeof value === 'object' && value !== null) {\n const recordEntries = Object.entries(value as Record<string, unknown>);\n\n if (recordEntries.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const recordValueSchema = getRecordValueSchema(schema);\n /*\n * A key that belongs to a named vocabulary (`z.record(z.string().systemEnum('Limit'), …)`, #1851) is shown as its\n * word — `max_projects` read as an identifier on the Entitlements screen. An undeclared key, or a key with no\n * word yet, shows itself: a missing label that looks missing.\n */\n const recordKeySchema = getRecordKeySchema(schema);\n const keyVocabulary = recordKeySchema ? getSystemEnumName(recordKeySchema) : undefined;\n const keyWord = (entryKey: string): string => {\n if (!keyVocabulary) return entryKey;\n const wordKey = resolveVocabularyWordKey(keyVocabulary, entryKey);\n const word = t(wordKey);\n return word === wordKey ? entryKey : word;\n };\n\n return (\n <div className={cn('ps-card relative flex flex-col gap-element', className)}>\n <div\n className={cn('absolute start-0 top-0 bottom-0 w-0.5', dividerRecipe.base)}\n aria-hidden=\"true\"\n />\n {recordEntries.map(([entryKey, entryValue]) => (\n <div key={entryKey} className=\"flex flex-wrap items-baseline gap-x-item-sm gap-y-element-xs\">\n <Text className={cn(labelTypographyRecipe.base, 'shrink-0')}>{keyWord(entryKey)}</Text>\n <div className=\"min-w-0 flex-1\">\n <DisplayField\n schema={recordValueSchema ?? undefined}\n schemaType={recordValueSchema ? getSchemaType(recordValueSchema) : undefined}\n value={entryValue}\n name={fieldName ? `${fieldName}.${entryKey}` : entryKey}\n // field-name-omitted-waiver: the entry's key is printed right beside its value, and names it.\n hideLabel\n parentData={value as Record<string, unknown>}\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n </div>\n ))}\n </div>\n );\n }\n\n /*\n * ── SET ──\n *\n * A set is an ARRAY without order or duplicates, and that is the whole difference a DISPLAY has\n * to care about: every item is the same type and there is no index worth showing. So it renders\n * as the array branch's simple case rather than gaining a layout of its own.\n *\n * Added 2026-09-19. SET classified correctly and had no branch, so it fell through to the\n * \"unsupported type\" chip and rendered an ERROR over data that was fully present — the same\n * defect `getRecordValueSchema` records for RECORD, which had it until the day before.\n */\n if (schemaType === FieldSchemaType.SET && (value instanceof Set || Array.isArray(value))) {\n const setItems = Array.from(value as Set<unknown> | unknown[]);\n\n if (setItems.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const setValueSchema = getSetValueSchema(schema);\n\n return (\n <div className={cn('flex flex-col gap-element-xs', className)}>\n {setItems.map((item, index) => (\n <DisplayField\n key={`${fieldName ?? 'set'}-${index}`}\n schema={setValueSchema ?? undefined}\n schemaType={setValueSchema ? getSchemaType(setValueSchema) : undefined}\n value={item}\n name={fieldName ? `${fieldName}.${index}` : String(index)}\n // field-name-omitted-waiver: an item of the set the field names; an index is not a name.\n hideLabel\n resourceLinkTrail={childResourceLinkTrail}\n />\n ))}\n </div>\n );\n }\n\n /*\n * ── TUPLE ──\n *\n * Unlike an array, each POSITION has its own schema, so the items cannot share an element type\n * and must be paired with `items[i]`. That pairing is the entire reason this is not the array\n * branch: formatting a `[string, number]` through one element schema renders one of the two\n * positions as the wrong type.\n *\n * A value longer than the declared items (a REST tuple) keeps rendering, with the surplus\n * entries carrying no schema — better than dropping data the value genuinely holds.\n */\n if (schemaType === FieldSchemaType.TUPLE && Array.isArray(value)) {\n if (value.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const tupleItemSchemas = getTupleItemSchemas(schema);\n\n return (\n <div className={cn('flex flex-wrap items-baseline gap-x-item-sm gap-y-element-xs', className)}>\n {(value as unknown[]).map((item, index) => {\n const itemSchema = tupleItemSchemas?.[index];\n return (\n <div key={`${fieldName ?? 'tuple'}-${index}`} className=\"min-w-0\">\n <DisplayField\n schema={itemSchema ?? undefined}\n schemaType={itemSchema ? getSchemaType(itemSchema) : undefined}\n value={item}\n name={fieldName ? `${fieldName}.${index}` : String(index)}\n // field-name-omitted-waiver: a position of the tuple the field names; an index is not a name.\n hideLabel\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n );\n })}\n </div>\n );\n }\n\n /*\n * ── MAP ──\n *\n * A map is a RECORD whose keys are not necessarily strings, so it renders with the record's\n * key/value rhythm and differs in exactly two places: the entries come from `Map#entries()`\n * rather than `Object.entries`, and the KEY is itself rendered through its own schema instead of\n * being printed as text — a map keyed by a date or an enum would otherwise show a raw value\n * where every other surface shows a formatted one.\n */\n if (schemaType === FieldSchemaType.MAP && (value instanceof Map || (typeof value === 'object' && value !== null))) {\n const mapEntries = value instanceof Map\n ? Array.from(value.entries())\n : Object.entries(value as Record<string, unknown>);\n\n if (mapEntries.length === 0) {\n return renderEmptyDisplayValue(emptyValue, emptyLabelFor(true));\n }\n\n const mapSchemas = getMapSchemas(schema);\n\n return (\n <div className={cn('ps-card relative flex flex-col gap-element', className)}>\n <div className={cn('absolute start-0 top-0 bottom-0 w-0.5', dividerRecipe.base)} aria-hidden=\"true\" />\n {mapEntries.map(([entryKey, entryValue], index) => (\n <div key={`${fieldName ?? 'map'}-${index}`} className=\"flex flex-wrap items-baseline gap-x-item-sm gap-y-element-xs\">\n <div className={cn(labelTypographyRecipe.base, 'shrink-0')}>\n <DisplayField\n schema={mapSchemas?.keySchema ?? undefined}\n schemaType={mapSchemas?.keySchema ? getSchemaType(mapSchemas.keySchema) : undefined}\n value={entryKey}\n name={fieldName ? `${fieldName}.${index}.key` : `${index}.key`}\n // field-name-omitted-waiver: the key IS the name of the value beside it.\n hideLabel\n />\n </div>\n <div className=\"min-w-0 flex-1\">\n <DisplayField\n schema={mapSchemas?.valueSchema ?? undefined}\n schemaType={mapSchemas?.valueSchema ? getSchemaType(mapSchemas.valueSchema) : undefined}\n value={entryValue}\n name={fieldName ? `${fieldName}.${index}.value` : `${index}.value`}\n // field-name-omitted-waiver: its key is printed right beside it, and names it.\n hideLabel\n resourceLinkTrail={childResourceLinkTrail}\n />\n </div>\n </div>\n ))}\n </div>\n );\n }\n\n // ── OPAQUE VALUE (z.unknown() / unclassifiable) ──\n // UNKNOWN is a deliberate schema posture (e.g. webhook `payload: z.unknown()`\n // passthrough), not a misconfiguration — render the value faithfully as\n // pretty-printed JSON via the code viewer instead of an error chip. See\n // DisplayFieldJson for the adapter rationale.\n if (schemaType === FieldSchemaType.UNKNOWN) {\n return <DisplayFieldJson {...commonProps} value={value} />;\n }\n\n // ── UNSUPPORTED TYPE ──\n return (\n <div className={cn(\n bodyTypographyRecipe.base,\n bodyTypographyRecipe.sizes?.sm || bodyTypographyRecipe.sizes?.md,\n errorIndicatorRecipe.base,\n // The box's geometry goes AFTER the indicator recipe, which is drawn as a short pill (`rounded-full\n // px-2 py-0.5`): when the recipe won, a box holding a sentence read as one long pill (audit A-L12).\n \"flex items-center gap-element px-card-sm py-item-xs rounded-md\",\n className\n )}>\n <Text className={labelTypographyRecipe.base}>{tComponent(FrontendComponentType.LOW_LEVEL_FORM_FIELD, 'unsupportedDisplayType')}</Text>\n <Code className={cn(\"px-item-xs rounded\", errorIndicatorRecipe.states.hover)}>{schemaType}</Code>\n </div>\n );\n}\n\nDisplayValueDispatcher.displayName = 'DisplayValueDispatcher';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceAutomaticDisplayer.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/ResourceAutomaticDisplayer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,EAIL,QAAQ,EAEiD,MAAM,uBAAuB,CAAC;AAQzF,OAAO,EAAsB,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,KAAK,EAEV,gCAAgC,EACjC,MAAM,+DAA+D,CAAC;AAiCvE,OAAO,EAEL,8BAA8B,EAC/B,MAAM,+EA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D;IACzD,cAAc,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAGnD;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,qCAAqC,KAAK,IAAI,CAAC;IAErG;;;OAGG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,iEAAiE;IACjE,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,8BAA8B,CAAC;IAChE;;;;;;;;;OASG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAMD,iBAAS,mCAAmC,CAAC,EAC3C,eAAe,EACf,OAAO,EACP,SAAS,EACT,cAAc,EACd,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,8BAA4E,EAC5E,oBAA4B,GAC7B,EAAE,+BAA+B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAw8B5D;kBAn9BQ,mCAAmC;;;AAw9B5C,eAAO,MAAM,0BAA0B,EAAE,OAAO,mCAAmC,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAwC,CAAC"}
@@ -296,7 +296,7 @@ function ResourceAutomaticDisplayerComponent({ resourceContext, onError, classNa
296
296
  return;
297
297
  // Emit error event
298
298
  const currentCtx = resourceContextRef.current;
299
- const { errorRefusalCode } = describeResourceErrorForNotification(error);
299
+ const { errorRefusalCode, errorPlanRefusal } = describeResourceErrorForNotification(error);
300
300
  emitRef.current(FrontendEvents.NOTIFY_RESOURCE_ERROR, {
301
301
  ...currentCtx,
302
302
  contextResourceIdentifiers: normalizeContextResourceIdentifiersForTransport(currentCtx.contextResourceIdentifiers),
@@ -310,6 +310,8 @@ function ResourceAutomaticDisplayerComponent({ resourceContext, onError, classNa
310
310
  // The server's own words outrank that category when it gave any: a declared refusal code and
311
311
  // its user guidance, as every other failed-operation notification carries them (#1782 review, F3).
312
312
  ...(errorRefusalCode ? { errorRefusalCode } : {}),
313
+ // A plan refusal's fence: the plan-refusal prompt shows it instead of this notice (`plan-refusal.frontend`).
314
+ ...(errorPlanRefusal ? { errorPlanRefusal } : {}),
313
315
  ...describeErrorGuidance(error),
314
316
  },
315
317
  });