@wildo-ai/saas-frontend-lib 1.1.16 → 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 (685) 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/compliance/EmbeddedSigningFrame.d.ts.map +1 -1
  83. package/dist/esm/components/compliance/EmbeddedSigningFrame.js +17 -6
  84. package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -1
  85. package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
  86. package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
  87. package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
  88. package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
  89. package/dist/esm/components/data-display/DisplayField.js +67 -45
  90. package/dist/esm/components/data-display/DisplayField.js.map +1 -1
  91. package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
  92. package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
  93. package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
  94. package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
  95. package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
  96. package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
  97. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
  98. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
  99. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
  100. package/dist/esm/components/data-display/approval-seal.d.ts +7 -5
  101. package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -1
  102. package/dist/esm/components/data-display/approval-seal.js +10 -4
  103. package/dist/esm/components/data-display/approval-seal.js.map +1 -1
  104. package/dist/esm/components/data-display/signature-requests.d.ts +81 -0
  105. package/dist/esm/components/data-display/signature-requests.d.ts.map +1 -0
  106. package/dist/esm/components/data-display/signature-requests.js +123 -0
  107. package/dist/esm/components/data-display/signature-requests.js.map +1 -0
  108. package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
  109. package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
  110. package/dist/esm/components/feedback/empty-state-marker.js +16 -0
  111. package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
  112. package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
  113. package/dist/esm/components/feedback/empty-state.js +2 -1
  114. package/dist/esm/components/feedback/empty-state.js.map +1 -1
  115. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
  116. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
  117. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
  118. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
  119. package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
  120. package/dist/esm/components/feedback/resource-empty-state.js +2 -1
  121. package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
  122. package/dist/esm/components/flows-actors/approval.d.ts +25 -1
  123. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  124. package/dist/esm/components/flows-actors/approval.js +22 -24
  125. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  126. package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
  127. package/dist/esm/components/flows-actors/approval.labels.js +30 -0
  128. package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
  129. package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
  130. package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
  131. package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
  132. package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
  133. package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
  134. package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
  135. package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
  136. package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
  137. package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
  138. package/dist/esm/components/form/Form.d.ts +2 -0
  139. package/dist/esm/components/form/Form.d.ts.map +1 -1
  140. package/dist/esm/components/form/Form.js +1 -0
  141. package/dist/esm/components/form/Form.js.map +1 -1
  142. package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
  143. package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
  144. package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
  145. package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
  146. package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
  147. package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
  148. package/dist/esm/components/form/automated/FormField.d.ts +5 -3
  149. package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
  150. package/dist/esm/components/form/automated/FormField.js +38 -13
  151. package/dist/esm/components/form/automated/FormField.js.map +1 -1
  152. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
  153. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  154. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +75 -47
  155. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  156. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
  157. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
  158. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
  159. package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
  160. package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
  161. package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
  162. package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
  163. package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
  164. package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
  165. package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
  166. package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
  167. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
  168. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
  169. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
  170. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
  171. package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
  172. package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
  173. package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
  174. package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
  175. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
  176. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
  177. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
  178. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
  179. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
  180. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
  181. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
  182. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
  183. package/dist/esm/components/navigation/NavigationItemBadge.d.ts +16 -0
  184. package/dist/esm/components/navigation/NavigationItemBadge.d.ts.map +1 -1
  185. package/dist/esm/components/navigation/NavigationItemBadge.js +14 -2
  186. package/dist/esm/components/navigation/NavigationItemBadge.js.map +1 -1
  187. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.d.ts +3 -3
  188. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js +3 -3
  189. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js.map +1 -1
  190. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts +5 -13
  191. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
  192. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +30 -255
  193. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
  194. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts +22 -1
  195. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
  196. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +57 -26
  197. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
  198. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts +1 -1
  199. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
  200. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +40 -4
  201. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
  202. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts +1 -1
  203. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
  204. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +26 -4
  205. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
  206. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts +31 -0
  207. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts.map +1 -0
  208. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js +42 -0
  209. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js.map +1 -0
  210. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts +76 -0
  211. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts.map +1 -0
  212. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js +268 -0
  213. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js.map +1 -0
  214. package/dist/esm/components/navigation/command.d.ts +5 -0
  215. package/dist/esm/components/navigation/command.d.ts.map +1 -1
  216. package/dist/esm/components/navigation/command.js.map +1 -1
  217. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
  218. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  219. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +51 -12
  220. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  221. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  222. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +21 -7
  223. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  224. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  225. package/dist/esm/components/resources/ResourceLayout_List.js +17 -7
  226. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  227. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
  228. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
  229. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +4 -1
  230. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
  231. package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
  232. package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
  233. package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
  234. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
  235. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
  236. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
  237. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
  238. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.d.ts.map +1 -1
  239. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js +4 -1
  240. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js.map +1 -1
  241. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
  242. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +4 -1
  243. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
  244. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.d.ts.map +1 -1
  245. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js +4 -1
  246. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js.map +1 -1
  247. package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
  248. package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
  249. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
  250. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
  251. package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
  252. package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
  253. package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
  254. package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
  255. package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
  256. package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
  257. package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
  258. package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
  259. package/dist/esm/components/resources/skeleton/Group.d.ts.map +1 -1
  260. package/dist/esm/components/resources/skeleton/Group.js +4 -1
  261. package/dist/esm/components/resources/skeleton/Group.js.map +1 -1
  262. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
  263. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
  264. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
  265. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
  266. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
  267. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
  268. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
  269. package/dist/esm/components/sections/ContentSectionContainer.d.ts.map +1 -1
  270. package/dist/esm/components/sections/ContentSectionContainer.js +11 -7
  271. package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
  272. package/dist/esm/components/sections/content-section.d.ts +1 -3
  273. package/dist/esm/components/sections/content-section.d.ts.map +1 -1
  274. package/dist/esm/components/sections/content-section.js.map +1 -1
  275. package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -1
  276. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +2 -1
  277. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -1
  278. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +12 -0
  279. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
  280. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +28 -6
  281. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js.map +1 -1
  282. package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
  283. package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
  284. package/dist/esm/components/settings/SettingsHub.js +14 -4
  285. package/dist/esm/components/settings/SettingsHub.js.map +1 -1
  286. package/dist/esm/components/typography/document-heading-level.d.ts +28 -0
  287. package/dist/esm/components/typography/document-heading-level.d.ts.map +1 -0
  288. package/dist/esm/components/typography/document-heading-level.js +63 -0
  289. package/dist/esm/components/typography/document-heading-level.js.map +1 -0
  290. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
  291. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
  292. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
  293. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
  294. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
  295. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
  296. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
  297. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
  298. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
  299. package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
  300. package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
  301. package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
  302. package/dist/esm/components/views/chart-view/ChartView.js +52 -22
  303. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  304. package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
  305. package/dist/esm/components/views/chart-view/ChartView.labels.js +76 -3
  306. package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
  307. package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
  308. package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
  309. package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
  310. package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
  311. package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
  312. package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
  313. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
  314. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
  315. package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
  316. package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
  317. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
  318. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
  319. package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
  320. package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
  321. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +47 -12
  322. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  323. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +87 -32
  324. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  325. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
  326. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +8 -8
  327. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  328. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
  329. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
  330. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.d.ts.map +1 -1
  331. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js +7 -3
  332. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js.map +1 -1
  333. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.d.ts.map +1 -1
  334. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js +6 -2
  335. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js.map +1 -1
  336. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.d.ts.map +1 -1
  337. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +8 -2
  338. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
  339. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.d.ts.map +1 -1
  340. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js +13 -9
  341. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js.map +1 -1
  342. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
  343. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
  344. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +9 -8
  345. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  346. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.d.ts.map +1 -1
  347. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js +2 -1
  348. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js.map +1 -1
  349. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
  350. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
  351. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +10 -11
  352. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
  353. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.d.ts.map +1 -1
  354. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js +2 -1
  355. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js.map +1 -1
  356. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.d.ts.map +1 -1
  357. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js +5 -1
  358. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js.map +1 -1
  359. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
  360. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +7 -3
  361. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
  362. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
  363. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
  364. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
  365. package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
  366. package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
  367. package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
  368. package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
  369. package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
  370. package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
  371. package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
  372. package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
  373. package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
  374. package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
  375. package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
  376. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
  377. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
  378. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
  379. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
  380. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
  381. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
  382. package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
  383. package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
  384. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
  385. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
  386. package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
  387. package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
  388. package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
  389. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
  390. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
  391. package/dist/esm/core/app-shell/app-shell.schemas.d.ts +87 -16
  392. package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
  393. package/dist/esm/core/app-shell/app-shell.schemas.js +16 -0
  394. package/dist/esm/core/app-shell/app-shell.schemas.js.map +1 -1
  395. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
  396. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
  397. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
  398. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
  399. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
  400. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
  401. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
  402. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
  403. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
  404. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
  405. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
  406. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
  407. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
  408. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
  409. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
  410. package/dist/esm/core/billing/BillingContext.d.ts +27 -4
  411. package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
  412. package/dist/esm/core/billing/BillingContext.js +61 -2
  413. package/dist/esm/core/billing/BillingContext.js.map +1 -1
  414. package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
  415. package/dist/esm/core/billing/useBillingAction.js +3 -2
  416. package/dist/esm/core/billing/useBillingAction.js.map +1 -1
  417. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
  418. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
  419. package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
  420. package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
  421. package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
  422. package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
  423. package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
  424. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
  425. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
  426. package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
  427. package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
  428. package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
  429. package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
  430. package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
  431. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
  432. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
  433. package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
  434. package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
  435. package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
  436. package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
  437. package/dist/esm/core/config/composite-view.schemas.js +1 -0
  438. package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
  439. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
  440. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
  441. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
  442. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
  443. package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
  444. package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
  445. package/dist/esm/core/config/engine-settings-destinations.js +12 -0
  446. package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
  447. package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
  448. package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
  449. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
  450. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
  451. package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
  452. package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
  453. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
  454. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
  455. package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
  456. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
  457. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
  458. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
  459. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
  460. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
  461. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
  462. package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
  463. package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
  464. package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
  465. package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
  466. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
  467. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
  468. package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
  469. package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
  470. package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
  471. package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
  472. package/dist/esm/core/config/verify-launcher-content.js +31 -0
  473. package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
  474. package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
  475. package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
  476. package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
  477. package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
  478. package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
  479. package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
  480. package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
  481. package/dist/esm/core/events/NotificationContext.js +19 -2
  482. package/dist/esm/core/events/NotificationContext.js.map +1 -1
  483. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
  484. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
  485. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
  486. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
  487. package/dist/esm/core/execution/useExecution.d.ts +3 -3
  488. package/dist/esm/core/execution/useExecution.js.map +1 -1
  489. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
  490. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
  491. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
  492. package/dist/esm/core/features/FeatureGate.d.ts +13 -1
  493. package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
  494. package/dist/esm/core/features/FeatureGate.js +6 -1
  495. package/dist/esm/core/features/FeatureGate.js.map +1 -1
  496. package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
  497. package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
  498. package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
  499. package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
  500. package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
  501. package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
  502. package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
  503. package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
  504. package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
  505. package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
  506. package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
  507. package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
  508. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
  509. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
  510. package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
  511. package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
  512. package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
  513. package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
  514. package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
  515. package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
  516. package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
  517. package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
  518. package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
  519. package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
  520. package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
  521. package/dist/esm/core/features/useFeatureAvailability.js +4 -0
  522. package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
  523. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
  524. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
  525. package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
  526. package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
  527. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
  528. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
  529. package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
  530. package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
  531. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
  532. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
  533. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
  534. package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
  535. package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
  536. package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
  537. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
  538. package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
  539. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
  540. package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
  541. package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
  542. package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
  543. package/dist/esm/core/navigation/home-resolution.js +46 -0
  544. package/dist/esm/core/navigation/home-resolution.js.map +1 -0
  545. package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
  546. package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
  547. package/dist/esm/core/navigation/launcher-resolution.js +13 -18
  548. package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
  549. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
  550. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
  551. package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
  552. package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
  553. package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
  554. package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
  555. package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
  556. package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
  557. package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
  558. package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
  559. package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
  560. package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
  561. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
  562. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
  563. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
  564. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
  565. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
  566. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
  567. package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
  568. package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
  569. package/dist/esm/core/navigation/view-title-resolution.js +25 -0
  570. package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
  571. package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
  572. package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
  573. package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
  574. package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
  575. package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
  576. package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
  577. package/dist/esm/core/navigation/viewer-roles.js +26 -0
  578. package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
  579. package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
  580. package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
  581. package/dist/esm/core/requests/user-interaction-clock.js +47 -0
  582. package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
  583. package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
  584. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
  585. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
  586. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +66 -10
  587. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  588. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +63 -8
  589. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  590. package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
  591. package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
  592. package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
  593. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  594. package/dist/esm/core/resources/hooks/useOperationEnabled.js +45 -3
  595. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  596. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
  597. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
  598. package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
  599. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
  600. package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
  601. package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
  602. package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
  603. package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
  604. package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
  605. package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
  606. package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
  607. package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
  608. package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
  609. package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
  610. package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
  611. package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
  612. package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
  613. package/dist/esm/core/runtime/AppRouter.js +11 -33
  614. package/dist/esm/core/runtime/AppRouter.js.map +1 -1
  615. package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
  616. package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
  617. package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
  618. package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
  619. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
  620. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
  621. package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
  622. package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
  623. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
  624. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
  625. package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
  626. package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
  627. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
  628. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
  629. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
  630. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
  631. package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
  632. package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
  633. package/dist/esm/core/runtime/identity-routes.js +50 -0
  634. package/dist/esm/core/runtime/identity-routes.js.map +1 -0
  635. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
  636. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
  637. package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
  638. package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
  639. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
  640. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
  641. package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
  642. package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
  643. package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
  644. package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
  645. package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
  646. package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
  647. package/dist/esm/core/search/command-score.d.ts +33 -0
  648. package/dist/esm/core/search/command-score.d.ts.map +1 -0
  649. package/dist/esm/core/search/command-score.js +109 -0
  650. package/dist/esm/core/search/command-score.js.map +1 -0
  651. package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
  652. package/dist/esm/core/security/AuthSessionContext.js +4 -0
  653. package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
  654. package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
  655. package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
  656. package/dist/esm/core/security/StepUpAuthContext.js +7 -2
  657. package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
  658. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
  659. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
  660. package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
  661. package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
  662. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
  663. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
  664. package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
  665. package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
  666. package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
  667. package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
  668. package/dist/esm/core/ui/design-token.utils.js +24 -3
  669. package/dist/esm/core/ui/design-token.utils.js.map +1 -1
  670. package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
  671. package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
  672. package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
  673. package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
  674. package/dist/esm/index.d.ts +19 -1
  675. package/dist/esm/index.d.ts.map +1 -1
  676. package/dist/esm/index.js +22 -1
  677. package/dist/esm/index.js.map +1 -1
  678. package/dist/esm/testing/mock-builders.d.ts +1 -1
  679. package/dist/esm/testing/mock-builders.d.ts.map +1 -1
  680. package/dist/esm/testing/mock-builders.js +1 -0
  681. package/dist/esm/testing/mock-builders.js.map +1 -1
  682. package/dist/tsconfig.build.tsbuildinfo +1 -1
  683. package/package.json +9 -6
  684. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
  685. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceLayout_DangerZone.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_DangerZone.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAAwB,MAAM,mDAAmD,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,MAAM,qDAAqD,CAAC;AACjF,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,EAAE,yBAAyB,EAAE,MAAM,qEAAqE,CAAC;AACh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AAG,CAAC,QAAQ,EACtB,OAAO,EAAE,GAAG,CAAC,OAAO,EACpB,SAAS,EAAC,kCAAkC,uBAIzB,GAAG,CAAC,mBAAmB,YAEzC,GAAG,CAAC,KAAK,GACH,KApBJ,KAAK,CAqBN,CACP,CAAC,GACS,EACZ,mBAAmB,IAAI,CACtB,KAAC,yBAAyB,IACxB,IAAI,EAAE,mBAAmB,EACzB,YAAY,EAAE,CAAC,IAAa,EAAE,EAAE,GAAG,IAAI,CAAC,IAAI;oBAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAC3D,cAAc,EAAE,QAAQ,EACxB,kBAAkB,EAAE,SAAS,EAC7B,KAAK,EAAE,kBAAkB,EACzB,WAAW,EAAE,wBAAwB,EACrC,YAAY,EAAE,yBAAyB,EACvC,wBAAwB,EAAE,gCAAgC,EAC1D,kBAAkB,EAAE,yBAAyB,GAC7C,CACH,IACO,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,yBAAyB,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,GAAG,KAAK,EAAuE;IAC3J,MAAM,SAAS,GAAG,uBAAuB,CAA+C,qBAAqB,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;IAClL,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["import React, { useMemo } from 'react';\n\nimport { Button, resolveDrawnActionVariant } from '~wildo-frontend-lib/components/actions/button';\nimport { actionBarItemCannotRun, type ActionBarButton } from '~wildo-frontend-lib/components/actions/action-bar';\nimport { DangerZone } from '~wildo-frontend-lib/components/feedback/danger-zone';\nimport { Text, Strong, TextVariant, TextSize } from '~wildo-frontend-lib/components/typography/text';\nimport { OperationsConfirmCritical } from '~wildo-frontend-lib/components/feedback/operations-confirm-critical';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport type { ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\nimport { optionalMaxInlineSizeStyle } from '~wildo-frontend-lib/components/sections/surface';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useResourceOperationActions } from '~wildo-frontend-lib/core/resources/useResourceOperationActions';\nimport { ActionPlacement } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport type { FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\nimport { ResourceOperationDisplayMode, ResourceOperationRiskLevel } from '@wildo-ai/saas-models';\n\nimport { CorePresetNames, FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { ComponentPresetProps } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas';\nimport { createComponentResolver } from '~wildo-frontend-lib/core/components-registry/component-resolver.frontend.helper';\nimport { BaseResourcesLayoutProps } from './component-props.resources-layout.frontend.schemas';\nimport { Heading } from '~wildo-frontend-lib/components/typography/heading';\n\n// --- Contract ---\nexport interface ResourceLayoutPreset_DangerZone_DefaultProps extends BaseResourcesLayoutProps {\n /** The loaded record — feeds `enabledCondition` evaluation + each op's target. */\n currentObject?: Record<string, any>;\n /** Called after a destructive op executes (e.g. navigate away after delete). */\n onOperationExecuted?: (operation: FrontendResourceConfiguration_Operation) => void;\n className?: string;\n /**\n * How wide the danger zone may grow, in the framework's shared width vocabulary.\n *\n * Left unset, nothing caps it here and the host decides. The read layout does so through `className`,\n * reading the width the record body derived (`--record-body-max-inline-size`: the reading measure, or\n * no cap when the body holds a list), so the destructive actions sit on the SAME edges as the body above\n * them. They once carried a `max-w-4xl` literal — 224px wider than the stack, for no reason anyone had\n * written down — and then a fixed `'measure'`, which left them narrow under a full-width list.\n */\n responsiveMaxWidth?: ResponsiveMaxWidth;\n}\n\n/**\n * GitHub-style \"Danger Zone\" — a fenced section at the bottom of a resource's\n * read view holding the destructive (`DANGER_ZONE`-placement) operations, each\n * as a row: title · caution description · action button. These ops are excluded\n * from the top action bar (which requests `placementFilter: PRIMARY`); this\n * section is their home.\n *\n * Reuses the single operation pipeline via `placementFilter: DANGER_ZONE`, so\n * `enabledCondition`, role gating, the critical-confirm dialog, and `actionVariant`\n * colour all behave exactly as in the bar — only the presentation differs.\n */\nexport const ResourceLayoutPreset_DangerZone_Default = ({\n resourceContext,\n navigationZone,\n currentObject,\n onOperationExecuted,\n className,\n responsiveMaxWidth,\n}: ResourceLayoutPreset_DangerZone_DefaultProps): React.JSX.Element | null => {\n const { resourceType, operation } = resourceContext;\n const { tComponent, tResourceOperation } = useI18n({\n component: FrontendComponentType.RESOURCES_LAYOUTS_DANGER_ZONE,\n resource: resourceType,\n });\n\n const {\n items,\n isConfirmDialogOpen,\n confirmDialogLabel,\n confirmDialogDescription,\n confirmDialogConfirmLabel,\n confirmRequiresTypedConfirmation,\n confirmConfirmationPhrase,\n onConfirm,\n onCancel,\n } = useResourceOperationActions({\n resourceType,\n displayMode: ResourceOperationDisplayMode.DETAIL,\n currentObject,\n contextResourceIdentifiers: resourceContext.contextResourceIdentifiers,\n parentResourcesRequirements: resourceContext.parentResourcesRequirements,\n additionalContext: resourceContext.additionalContext,\n navigationZone,\n sourceOperation: operation,\n placementFilter: ActionPlacement.DANGER_ZONE,\n onOperationExecuted,\n });\n\n // Flatten multi-variant ops (subgroups) into one row per concrete action.\n const rows = useMemo<ActionBarButton[]>(\n () =>\n items.flatMap((item) => {\n if (item.type === 'subgroup') {\n return item.items.filter(\n (sub): sub is ActionBarButton => sub.type !== 'separator' && sub.type !== 'subgroup',\n );\n }\n if (item.type === 'separator') return [];\n return [item];\n }),\n [items],\n );\n\n if (rows.length === 0) return null;\n\n // Every word here is a declared label (`ResourceLayout_DangerZone.labels.ts`); an ungenerated one\n // renders as its key path, which is what a missing label must look like. The English literals that\n // used to stand behind each key hid the gap in every locale (#1414).\n const label = (key: string): string => tComponent(FrontendComponentType.RESOURCES_LAYOUTS_DANGER_ZONE, key);\n const heading = label('title');\n // Risk-specific caution: CRITICAL emphasizes irreversibility, HIGH a significant\n // disruptive impact, everything else a generic caution.\n const describeRisk = (riskLevel: ResourceOperationRiskLevel | undefined): string => {\n switch (riskLevel) {\n case ResourceOperationRiskLevel.CRITICAL:\n return label('descriptionCritical');\n case ResourceOperationRiskLevel.HIGH:\n return label('descriptionHigh');\n default:\n return label('descriptionDefault');\n }\n };\n // Prefer an authored/generated per-operation description\n // (resources.{res}.operations.{op}.description) — accurate per action (e.g. Delete\n // \"permanent\" vs Suspend \"reversible\"). Falls back to the risk-based copy.\n // An operation DESCRIPTION is optional (few operations author one), so `tResourceOperation`\n // answers '' for a missing one and `||` chains cleanly. A missing TITLE is never empty (#1450).\n const describe = (row: ActionBarButton): string => {\n const perOp = row.operationIdentifier\n ? tResourceOperation(resourceType, row.operationIdentifier, 'description')\n : '';\n return perOp || describeRisk(row.riskLevel);\n };\n\n return (\n // Mirrors the CARD \"settings group\" shape EXACTLY so it reads as a sibling\n // of the cards above it, only tinted destructive:\n // - `flex flex-col gap-field-sm` — the SAME title↔card gap the ContentSection\n // CARD branch puts between its heading and its body (was `space-y-item-xs`,\n // a ~1px hairline that crammed the title onto the card).\n // - `<h3 text-base font-medium>` — the same group-heading type as the CARD title.\n // - `rounded-xl` on the card — matches the CARD surface recipe radius\n // (`SurfaceVariant.CARD` = `rounded-xl`); the DangerZone primitive's own\n // base is `rounded-lg`, one tier tighter, which read as a different corner.\n // - `p-0` card + `px-card` rows — identical inset to the settings rows so the\n // \"Reset to defaults\" copy lines up with the fields above; per-row dividers\n // run full-bleed.\n <section\n data-slot=\"danger-zone-section\"\n data-inline-size-tier={responsiveMaxWidth}\n className={cn('mr-auto w-full flex flex-col gap-field-sm', className)}\n style={optionalMaxInlineSizeStyle(responsiveMaxWidth)}\n >\n <Heading level={3}>{heading}</Heading>\n <DangerZone className=\"rounded-xl p-0 overflow-hidden divide-y divide-destructive/20\">\n {rows.map((row, index) => (\n <div\n key={index}\n className=\"flex flex-col gap-field px-card py-card sm:flex-row sm:items-center sm:justify-between\"\n >\n <div className=\"flex flex-col gap-element-xs\">\n <Strong>{row.label}</Strong>\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{describe(row)}</Text>\n </div>\n {/* Drawn through the bar's rule: an action that cannot run never keeps authored emphasis (see\n `resolveDrawnActionVariant`). Its risk colour (DESTRUCTIVE), which is how most rows here are drawn, stays. */}\n <Button\n variant={resolveDrawnActionVariant(row.variant, actionBarItemCannotRun(row))}\n disabled={row.disabled}\n onClick={row.onClick}\n className=\"shrink-0 self-start sm:self-auto\"\n // The automation hook every other action surface carries (`ActionButton`, the action bar's direct and\n // overflow items): the operation, i18n-independent. A delete moved here by its risk was the one\n // action a scenario could not address without reading translated text.\n data-operation-id={row.operationIdentifier}\n >\n {row.label}\n </Button>\n </div>\n ))}\n </DangerZone>\n {isConfirmDialogOpen && (\n <OperationsConfirmCritical\n open={isConfirmDialogOpen}\n onOpenChange={(open: boolean) => { if (!open) onCancel(); }}\n cancelCallback={onCancel}\n validationCallback={onConfirm}\n label={confirmDialogLabel}\n description={confirmDialogDescription}\n confirmLabel={confirmDialogConfirmLabel}\n requireTypedConfirmation={confirmRequiresTypedConfirmation}\n confirmationPhrase={confirmConfirmationPhrase}\n />\n )}\n </section>\n );\n};\n\nexport function ResourceLayout_DangerZone({ preset = CorePresetNames.DEFAULT, ...props }: ResourceLayoutPreset_DangerZone_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const Component = createComponentResolver<ResourceLayoutPreset_DangerZone_DefaultProps>(FrontendComponentType.RESOURCES_LAYOUTS_DANGER_ZONE, 'ResourceLayout_DangerZone')(preset);\n return <Component {...props} />;\n}\n"]}
1
+ {"version":3,"file":"ResourceLayout_DangerZone.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_DangerZone.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,sBAAsB,EAA4C,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AC,CAAC,KAAC,sBAAsB,IAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EAClH,mBAAmB,IAAI,CACtB,KAAC,yBAAyB,IACxB,IAAI,EAAE,mBAAmB,EACzB,YAAY,EAAE,CAAC,IAAa,EAAE,EAAE,GAAG,IAAI,CAAC,IAAI;oBAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAC3D,cAAc,EAAE,QAAQ,EACxB,kBAAkB,EAAE,SAAS,EAC7B,KAAK,EAAE,kBAAkB,EACzB,WAAW,EAAE,wBAAwB,EACrC,YAAY,EAAE,yBAAyB,EACvC,wBAAwB,EAAE,gCAAgC,EAC1D,kBAAkB,EAAE,yBAAyB,GAC7C,CACH,IACO,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,yBAAyB,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,GAAG,KAAK,EAAuE;IAC3J,MAAM,SAAS,GAAG,uBAAuB,CAA+C,qBAAqB,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;IAClL,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC","sourcesContent":["import React, { useMemo, useState } from 'react';\n\nimport { Button, resolveDrawnActionVariant } from '~wildo-frontend-lib/components/actions/button';\nimport { actionBarItemCannotRun, type ActionBarButton, type ActionBarItem } from '~wildo-frontend-lib/components/actions/action-bar';\nimport { DangerZone } from '~wildo-frontend-lib/components/feedback/danger-zone';\nimport { Text, Strong, TextVariant, TextSize } from '~wildo-frontend-lib/components/typography/text';\nimport { OperationsConfirmCritical } from '~wildo-frontend-lib/components/feedback/operations-confirm-critical';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport type { ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\nimport { optionalMaxInlineSizeStyle } from '~wildo-frontend-lib/components/sections/surface';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useResourceOperationActions } from '~wildo-frontend-lib/core/resources/useResourceOperationActions';\nimport { ActionPlacement } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport type { FrontendResourceConfiguration_Operation } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\nimport { ResourceOperationDisplayMode, ResourceOperationRiskLevel } from '@wildo-ai/saas-models';\n\nimport { CorePresetNames, FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { ComponentPresetProps } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas';\nimport { createComponentResolver } from '~wildo-frontend-lib/core/components-registry/component-resolver.frontend.helper';\nimport { BaseResourcesLayoutProps } from './component-props.resources-layout.frontend.schemas';\nimport { Heading } from '~wildo-frontend-lib/components/typography/heading';\nimport { FeatureLockBadge } from '~wildo-frontend-lib/components/feedback/features/feature-lock-badge';\nimport { FeatureUnavailableDialog } from '~wildo-frontend-lib/components/feedback/features/feature-unavailable-dialog';\nimport { useBillingAction } from '~wildo-frontend-lib/core/billing/useBillingAction';\nimport type { FeatureAvailability } from '~wildo-frontend-lib/core/features/useFeatureAvailability';\nimport { useDocumentHeadingLevel } from '~wildo-frontend-lib/components/typography/document-heading-level';\n\n// --- Contract ---\nexport interface ResourceLayoutPreset_DangerZone_DefaultProps extends BaseResourcesLayoutProps {\n /** The loaded record — feeds `enabledCondition` evaluation + each op's target. */\n currentObject?: Record<string, any>;\n /** Called after a destructive op executes (e.g. navigate away after delete). */\n onOperationExecuted?: (operation: FrontendResourceConfiguration_Operation) => void;\n className?: string;\n /**\n * How wide the danger zone may grow, in the framework's shared width vocabulary.\n *\n * Left unset, nothing caps it here and the host decides. The read layout does so through `className`,\n * reading the width the record body derived (`--record-body-max-inline-size`: the reading measure, or\n * no cap when the body holds a list), so the destructive actions sit on the SAME edges as the body above\n * them. They once carried a `max-w-4xl` literal — 224px wider than the stack, for no reason anyone had\n * written down — and then a fixed `'measure'`, which left them narrow under a full-width list.\n */\n responsiveMaxWidth?: ResponsiveMaxWidth;\n}\n\n/**\n * The zone's rows: one per concrete action, multi-variant operations (subgroups) flattened. A plan-locked operation is ONE\n * row whatever its variants (`useResourceOperationActions` gives a locked subgroup no items), so it keeps its place and\n * its lock instead of disappearing.\n */\nexport function flattenDangerZoneRows(items: readonly ActionBarItem[]): ActionBarButton[] {\n return items.flatMap((item): ActionBarButton[] => {\n if (item.type === 'subgroup' && item.featureLocked && item.featureAvailability) {\n const { type: _subgroup, items: _none, ...locked } = item;\n return [{ ...locked, type: 'button' }];\n }\n if (item.type === 'subgroup') {\n return item.items.filter(\n (sub): sub is ActionBarButton => sub.type !== 'separator' && sub.type !== 'subgroup',\n );\n }\n if (item.type === 'separator') return [];\n return [item];\n });\n}\n\n/**\n * One row's action. Drawn through the bar's rule: an action that cannot run never keeps authored emphasis (see\n * `resolveDrawnActionVariant`); its risk colour (DESTRUCTIVE), which is how most rows here are drawn, stays.\n *\n * A plan-locked action shows its lock and asks for the plan prompt when chosen (`onLocked`), as in the action bar: a\n * plain disabled button said nothing about the plan. `aria-disabled`, so the click that explains it still lands.\n */\nexport function DangerZoneRowAction({ row, onLocked }: { row: ActionBarButton; onLocked: (availability: FeatureAvailability) => void }): React.JSX.Element {\n const lockedAvailability = row.featureLocked ? row.featureAvailability : undefined;\n return (\n <Button\n variant={resolveDrawnActionVariant(row.variant, actionBarItemCannotRun(row))}\n disabled={lockedAvailability ? undefined : row.disabled}\n aria-disabled={lockedAvailability ? true : undefined}\n data-feature-locked={lockedAvailability ? 'true' : undefined}\n onClick={lockedAvailability ? () => onLocked(lockedAvailability) : row.onClick}\n className=\"shrink-0 self-start sm:self-auto\"\n // The automation hook every other action surface carries (`ActionButton`, the action bar's direct and\n // overflow items): the operation, i18n-independent. A delete moved here by its risk was the one\n // action a scenario could not address without reading translated text.\n data-operation-id={row.operationIdentifier}\n >\n {lockedAvailability ? <FeatureLockBadge missingFeatures={lockedAvailability.missingFeatures} /> : null}\n {row.label}\n </Button>\n );\n}\n\n/** The plan prompt for a chosen plan-locked row: its billing action is needed only while it is open. */\nfunction DangerZoneLockedPrompt({ availability, onClose }: { availability: FeatureAvailability; onClose: () => void }): React.JSX.Element {\n const billingAction = useBillingAction();\n return (\n <FeatureUnavailableDialog\n open\n onOpenChange={(open) => { if (!open) onClose(); }}\n behavior={availability.behavior}\n missingFeatures={availability.missingFeatures}\n limitInfo={availability.limitInfo}\n upgradeOptionsCount={availability.upgradeOptions?.length}\n customComponentRef={availability.customComponentRef}\n onAction={() => {\n billingAction(availability);\n onClose();\n }}\n />\n );\n}\n\n/**\n * GitHub-style \"Danger Zone\" — a fenced section at the bottom of a resource's\n * read view holding the destructive (`DANGER_ZONE`-placement) operations, each\n * as a row: title · caution description · action button. These ops are excluded\n * from the top action bar (which requests `placementFilter: PRIMARY`); this\n * section is their home.\n *\n * Reuses the single operation pipeline via `placementFilter: DANGER_ZONE`, so\n * `enabledCondition`, role gating, the critical-confirm dialog, and `actionVariant`\n * colour all behave exactly as in the bar — only the presentation differs.\n */\nexport const ResourceLayoutPreset_DangerZone_Default = ({\n resourceContext,\n navigationZone,\n currentObject,\n onOperationExecuted,\n className,\n responsiveMaxWidth,\n}: ResourceLayoutPreset_DangerZone_DefaultProps): React.JSX.Element | null => {\n const { resourceType, operation } = resourceContext;\n // The zone's title sits beside the CARD section headings, at the same outline level as theirs (#3867).\n const headingLevel = useDocumentHeadingLevel();\n const { tComponent, tResourceOperation } = useI18n({\n component: FrontendComponentType.RESOURCES_LAYOUTS_DANGER_ZONE,\n resource: resourceType,\n });\n\n const {\n items,\n isConfirmDialogOpen,\n confirmDialogLabel,\n confirmDialogDescription,\n confirmDialogConfirmLabel,\n confirmRequiresTypedConfirmation,\n confirmConfirmationPhrase,\n onConfirm,\n onCancel,\n } = useResourceOperationActions({\n resourceType,\n displayMode: ResourceOperationDisplayMode.DETAIL,\n currentObject,\n contextResourceIdentifiers: resourceContext.contextResourceIdentifiers,\n parentResourcesRequirements: resourceContext.parentResourcesRequirements,\n additionalContext: resourceContext.additionalContext,\n navigationZone,\n sourceOperation: operation,\n placementFilter: ActionPlacement.DANGER_ZONE,\n onOperationExecuted,\n });\n\n const rows = useMemo(() => flattenDangerZoneRows(items), [items]);\n\n // The plan prompt of the locked row the person chose; one per zone, mounted only while open.\n const [lockedPrompt, setLockedPrompt] = useState<FeatureAvailability | null>(null);\n\n if (rows.length === 0) return null;\n\n // Every word here is a declared label (`ResourceLayout_DangerZone.labels.ts`); an ungenerated one\n // renders as its key path, which is what a missing label must look like. The English literals that\n // used to stand behind each key hid the gap in every locale (#1414).\n const label = (key: string): string => tComponent(FrontendComponentType.RESOURCES_LAYOUTS_DANGER_ZONE, key);\n const heading = label('title');\n // Risk-specific caution: CRITICAL emphasizes irreversibility, HIGH a significant\n // disruptive impact, everything else a generic caution.\n const describeRisk = (riskLevel: ResourceOperationRiskLevel | undefined): string => {\n switch (riskLevel) {\n case ResourceOperationRiskLevel.CRITICAL:\n return label('descriptionCritical');\n case ResourceOperationRiskLevel.HIGH:\n return label('descriptionHigh');\n default:\n return label('descriptionDefault');\n }\n };\n // Prefer an authored/generated per-operation description\n // (resources.{res}.operations.{op}.description) — accurate per action (e.g. Delete\n // \"permanent\" vs Suspend \"reversible\"). Falls back to the risk-based copy.\n // An operation DESCRIPTION is optional (few operations author one), so `tResourceOperation`\n // answers '' for a missing one and `||` chains cleanly. A missing TITLE is never empty (#1450).\n const describe = (row: ActionBarButton): string => {\n const perOp = row.operationIdentifier\n ? tResourceOperation(resourceType, row.operationIdentifier, 'description')\n : '';\n return perOp || describeRisk(row.riskLevel);\n };\n\n return (\n // Mirrors the CARD \"settings group\" shape EXACTLY so it reads as a sibling\n // of the cards above it, only tinted destructive:\n // - `flex flex-col gap-field-sm` — the SAME title↔card gap the ContentSection\n // CARD branch puts between its heading and its body (was `space-y-item-xs`,\n // a ~1px hairline that crammed the title onto the card).\n // - a heading at the outline's level, `text-base font-medium` — the same group-heading type as the CARD title.\n // - `rounded-xl` on the card — matches the CARD surface recipe radius\n // (`SurfaceVariant.CARD` = `rounded-xl`); the DangerZone primitive's own\n // base is `rounded-lg`, one tier tighter, which read as a different corner.\n // - `p-0` card + `px-card` rows — identical inset to the settings rows so the\n // \"Reset to defaults\" copy lines up with the fields above; per-row dividers\n // run full-bleed.\n <section\n data-slot=\"danger-zone-section\"\n data-inline-size-tier={responsiveMaxWidth}\n className={cn('mr-auto w-full flex flex-col gap-field-sm', className)}\n style={optionalMaxInlineSizeStyle(responsiveMaxWidth)}\n >\n <Heading level={headingLevel}>{heading}</Heading>\n <DangerZone className=\"rounded-xl p-0 overflow-hidden divide-y divide-destructive/20\">\n {rows.map((row, index) => (\n <div\n key={index}\n className=\"flex flex-col gap-field px-card py-card sm:flex-row sm:items-center sm:justify-between\"\n >\n <div className=\"flex flex-col gap-element-xs\">\n <Strong>{row.label}</Strong>\n <Text variant={TextVariant.MUTED} size={TextSize.SM}>{describe(row)}</Text>\n </div>\n <DangerZoneRowAction row={row} onLocked={setLockedPrompt} />\n </div>\n ))}\n </DangerZone>\n {lockedPrompt ? <DangerZoneLockedPrompt availability={lockedPrompt} onClose={() => setLockedPrompt(null)} /> : null}\n {isConfirmDialogOpen && (\n <OperationsConfirmCritical\n open={isConfirmDialogOpen}\n onOpenChange={(open: boolean) => { if (!open) onCancel(); }}\n cancelCallback={onCancel}\n validationCallback={onConfirm}\n label={confirmDialogLabel}\n description={confirmDialogDescription}\n confirmLabel={confirmDialogConfirmLabel}\n requireTypedConfirmation={confirmRequiresTypedConfirmation}\n confirmationPhrase={confirmConfirmationPhrase}\n />\n )}\n </section>\n );\n};\n\nexport function ResourceLayout_DangerZone({ preset = CorePresetNames.DEFAULT, ...props }: ResourceLayoutPreset_DangerZone_DefaultProps & ComponentPresetProps): React.JSX.Element {\n const Component = createComponentResolver<ResourceLayoutPreset_DangerZone_DefaultProps>(FrontendComponentType.RESOURCES_LAYOUTS_DANGER_ZONE, 'ResourceLayout_DangerZone')(preset);\n return <Component {...props} />;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceLayout_InsertedViews.d.ts","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_InsertedViews.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAsB/E,OAAO,EAGL,KAAK,0BAA0B,EAC/B,KAAK,cAAc,EACpB,MAAM,wDAAwD,CAAC;AAahE,OAAO,KAAK,EACV,gCAAgC,EACjC,MAAM,+DAA+D,CAAC;AAqBvE;;;;;;;;;;;;;;GAcG;AACH,oBAAY,sBAAsB;IAChC,qEAAqE;IACrE,UAAU,eAAe;IACzB,sDAAsD;IACtD,iBAAiB,sBAAsB;IACvC,8EAA8E;IAC9E,OAAO,YAAY;IACnB,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,iCAAiC;IAChD,eAAe,EAAE,gCAAgC,CAAC;IAClD,cAAc,EAAE,cAAc,CAAC;IAC/B,mBAAmB,CAAC,EAAE,0BAA0B,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC;AAkDD,wBAAgB,4BAA4B,CAAC,EAC3C,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,SAAc,EACd,WAAiB,EACjB,UAAiB,EACjB,UAAuC,GACxC,EAAE,iCAAiC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CA6X9D;AA4HD,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"ResourceLayout_InsertedViews.d.ts","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_InsertedViews.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AA0B/E,OAAO,EAGL,KAAK,0BAA0B,EAC/B,KAAK,cAAc,EACpB,MAAM,wDAAwD,CAAC;AAahE,OAAO,KAAK,EACV,gCAAgC,EACjC,MAAM,+DAA+D,CAAC;AAqBvE;;;;;;;;;;;;;;GAcG;AACH,oBAAY,sBAAsB;IAChC,qEAAqE;IACrE,UAAU,eAAe;IACzB,sDAAsD;IACtD,iBAAiB,sBAAsB;IACvC,8EAA8E;IAC9E,OAAO,YAAY;IACnB,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,iCAAiC;IAChD,eAAe,EAAE,gCAAgC,CAAC;IAClD,cAAc,EAAE,cAAc,CAAC;IAC/B,mBAAmB,CAAC,EAAE,0BAA0B,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC;AAkDD,wBAAgB,4BAA4B,CAAC,EAC3C,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,SAAc,EACd,WAAiB,EACjB,UAAiB,EACjB,UAAuC,GACxC,EAAE,iCAAiC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAuY9D;AA4HD,eAAe,4BAA4B,CAAC"}
@@ -1,13 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { createContext, useCallback, useContext, useMemo } from 'react';
3
+ import { useViewerMayReadChartPredicate } from '../../core/navigation/useChartReadDecision.js';
3
4
  import { RESOURCE_HEADER_NARROW_SR_ONLY_CLASS } from '../../components/resources/resource-header-geometry.js';
4
5
  import { CoreResourceOperation, ErrorCustomMessageReference } from '@wildo-ai/saas-models';
5
6
  import { TypographyVariant, UIBehavior } from '@wildo-ai/presets-components-models';
6
7
  import { SectionLegendVoiceHost, useSectionLegendVoice } from '../../components/sections/section-legend-voice.js';
7
8
  import { useUI } from '../../core/ui/useUI.js';
8
- import { buildResolvedInsertedChartDescriptor, buildResourceInsertedChartIdentity, } from '../../core/config/chart-view.frontend.schemas.js';
9
+ import { documentHeadingTag, useDocumentHeadingLevel } from '../../components/typography/document-heading-level.js';
10
+ import { buildResolvedInsertedChartDescriptor, buildResourceInsertedChartIdentity, isChartViewInsertedIntoOperationHost, } from '../../core/config/chart-view.frontend.schemas.js';
9
11
  import { ChartView } from '../../components/views/chart-view/ChartView.lazy.js';
10
- import { FeatureRouteGuard } from '../../core/features/FeatureRouteGuard.js';
12
+ import { RequiredFeaturesGate } from '../../core/features/RequiredFeaturesGate.js';
13
+ import { RequiredFeaturesGatePresentation } from '../../core/features/required-features-gate-presentation.js';
11
14
  import { useIconRegistry } from '../../core/icons/useIconRegistry.js';
12
15
  import { IconCategory, IconSize, } from '../../core/icons/icon-registry.frontend.schemas.js';
13
16
  import { useI18n } from '../../core/i18n/useI18n.js';
@@ -115,6 +118,9 @@ export function ResourceLayout_InsertedViews({ resourceContext, navigationZone,
115
118
  const inheritedLegendVoice = useSectionLegendVoice();
116
119
  const legendVoice = currentBaseOperation === CoreResourceOperation.READ ? TypographyVariant.EYEBROW : inheritedLegendVoice;
117
120
  const { getRecipe } = useUI();
121
+ // A chart card's title takes its level from the outline it sits in: under a record page's `h1` it is an `h2`.
122
+ // It was a hard-coded `h3`, which axe reported as a skipped level on the record read view (#3867).
123
+ const ChartTitleTag = documentHeadingTag(useDocumentHeadingLevel());
118
124
  const currentSerializedOperationKey = useMemo(() => (isCurrentDefaultOperationHost
119
125
  ? currentBaseOperation
120
126
  : serializeSurfaceOperation([currentBaseOperation, String(operationView.variantKey)])), [currentBaseOperation, isCurrentDefaultOperationHost, operationView.variantKey]);
@@ -126,10 +132,17 @@ export function ResourceLayout_InsertedViews({ resourceContext, navigationZone,
126
132
  ? (frontendConfiguration?.compositeViews ?? []).filter((view) => String(view.operationLike) === currentBaseOperation
127
133
  && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers))
128
134
  : []), [contextResourceIdentifiers, currentBaseOperation, frontendConfiguration?.compositeViews, isCurrentDefaultOperationHost]);
135
+ // #4252: a chart is also gated on whether the backend's chart gate would answer this viewer. The host page being
136
+ // readable does not settle it: a chart narrows its readers (`accessControl.roles`) and asks every resource it joins.
137
+ const viewerMayReadChart = useViewerMayReadChartPredicate();
129
138
  const applicableChartViews = useMemo(() => (isCurrentDefaultOperationHost
130
- ? (frontendConfiguration?.chartViews ?? []).filter((view) => String(view.operationLike) === currentBaseOperation
131
- && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers))
132
- : []), [contextResourceIdentifiers, currentBaseOperation, frontendConfiguration?.chartViews, isCurrentDefaultOperationHost]);
139
+ ? (frontendConfiguration?.chartViews ?? []).filter(
140
+ // An EMBEDS_ONLY chart is placed by whoever embeds it, never by a host (InsertedChartSurfacing).
141
+ (view) => isChartViewInsertedIntoOperationHost(view)
142
+ && String(view.operationLike) === currentBaseOperation
143
+ && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers)
144
+ && viewerMayReadChart(view.chartDefinition))
145
+ : []), [contextResourceIdentifiers, currentBaseOperation, frontendConfiguration?.chartViews, isCurrentDefaultOperationHost, viewerMayReadChart]);
133
146
  const applicableExecutionViews = useMemo(() => ((frontendConfiguration?.executionViews ?? []).filter((view) => ((view.surfaceInOperations ?? []).some((op) => serializeSurfaceOperation(op) === currentSerializedOperationKey)
134
147
  && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers)))), [contextResourceIdentifiers, currentSerializedOperationKey, frontendConfiguration?.executionViews]);
135
148
  const insertedViewSegments = useMemo(() => {
@@ -158,6 +171,7 @@ export function ResourceLayout_InsertedViews({ resourceContext, navigationZone,
158
171
  // Nor a settings row, so there is no section visibility to filter by.
159
172
  settingsSectionVisible: null,
160
173
  // These are the current resource's own views, already authorized by the page that hosts them: no role filter.
174
+ // Its charts were filtered by the chart gate above (#4252), which the host page's authorization does not settle.
161
175
  viewerRoles: null,
162
176
  };
163
177
  const resolvedSegments = [];
@@ -273,7 +287,7 @@ export function ResourceLayout_InsertedViews({ resourceContext, navigationZone,
273
287
  // the composite's own embedded host READ) won't re-embed it.
274
288
  _jsx(ActiveEmbeddedCompositeRefsContext.Provider, { value: new Set([...activeEmbeddedCompositeRefs, segment.ref]), children: _jsx(EmbedResourceOwnedCompositeView, { resourceContext: resourceContext, viewRef: segment.ref, navigationZone: navigationZone, navigationInitiator: navigationInitiator }) }, `embedded-composite:${segment.ref}:${segmentIndex}`))
275
289
  : segment.type === 'chart'
276
- ? (_jsxs("section", { className: "rounded-lg border border-border bg-card p-field shadow-sm", children: [segment.title && (_jsx("h3", { className: cn('mb-element-sm', legendVoice ? getRecipe(UIBehavior.TYPOGRAPHY, legendVoice).base : 'text-sm font-medium text-foreground'), children: segment.title })), _jsx(FeatureRouteGuard, { requiredFeatures: segment.chartView.chartDefinition.requiredFeatures, children: _jsx(ChartView, { viewDefinition: segment.chartView, runtimeDescriptor: buildResolvedInsertedChartDescriptor({
290
+ ? (_jsxs("section", { className: "rounded-lg border border-border bg-card p-field shadow-sm", children: [segment.title && (_jsx(ChartTitleTag, { className: cn('mb-element-sm', legendVoice ? getRecipe(UIBehavior.TYPOGRAPHY, legendVoice).base : 'text-sm font-medium text-foreground'), children: segment.title })), _jsx(RequiredFeaturesGate, { requiredFeatures: segment.chartView.chartDefinition.requiredFeatures, presentation: RequiredFeaturesGatePresentation.TILE, lockedTileHeight: chartHeight, children: _jsx(ChartView, { viewDefinition: segment.chartView, runtimeDescriptor: buildResolvedInsertedChartDescriptor({
277
291
  identity: buildResourceInsertedChartIdentity(resourceContext.resourceType, segment.chartView),
278
292
  chartView: segment.chartView,
279
293
  contextResourceIdentifiers,
@@ -300,7 +314,7 @@ export function ResourceLayout_InsertedViews({ resourceContext, navigationZone,
300
314
  `RESOURCES_LAYOUTS_INSERTED_VIEWS` component label is registered and
301
315
  generated — an ungenerated key would render as its raw path, so it
302
316
  stays unnamed rather than mislabelled. */
303
- _jsx(LauncherSlotChrome, { renderSlot: renderSlot, children: segment.views.map((view) => (_jsx(FeatureRouteGuard, { requiredFeatures: view.requiredFeatures, children: _jsxs(Button, { "data-testid": `inserted-view-launcher-${view.ref}`, type: "button",
317
+ _jsx(LauncherSlotChrome, { renderSlot: renderSlot, children: segment.views.map((view) => (_jsx(RequiredFeaturesGate, { requiredFeatures: view.requiredFeatures, presentation: RequiredFeaturesGatePresentation.CONTROL, children: _jsxs(Button, { "data-testid": `inserted-view-launcher-${view.ref}`, type: "button",
304
318
  // In the record navigation strip a quiet launcher is a GHOST item, so the strip reads as
305
319
  // navigation (see the chrome note above); elsewhere it keeps the outlined look.
306
320
  variant: view.presentation.emphasized
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceLayout_InsertedViews.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_InsertedViews.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAE/E,OAAO,EAAE,oCAAoC,EAAE,MAAM,mEAAmE,CAAC;AACzH,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AAC7H,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EACL,oCAAoC,EACpC,kCAAkC,GAEnC,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gEAAgE,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EACL,YAAY,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ext, useMemo } from 'react';\n\nimport { RESOURCE_HEADER_NARROW_SR_ONLY_CLASS } from '~wildo-frontend-lib/components/resources/resource-header-geometry';\nimport { CoreResourceOperation, ErrorCustomMessageReference } from '@wildo-ai/saas-models';\nimport { TypographyVariant, UIBehavior } from '@wildo-ai/presets-components-models';\nimport { SectionLegendVoiceHost, useSectionLegendVoice } from '~wildo-frontend-lib/components/sections/section-legend-voice';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport {\n buildResolvedInsertedChartDescriptor,\n buildResourceInsertedChartIdentity,\n type InsertedChartDeclaration,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport { ChartView } from '~wildo-frontend-lib/components/views/chart-view/ChartView.lazy';\nimport { FeatureRouteGuard } from '~wildo-frontend-lib/core/features/FeatureRouteGuard';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport {\n IconCategory,\n IconSize,\n} from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useNavigationController } from '~wildo-frontend-lib/core/navigation/useNavigationController';\nimport {\n NavigationContentType,\n type NavigationIconReference,\n type NavigationInitiatorContext,\n type NavigationZone,\n} from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { EmbedResourceOwnedCompositeView } from './ResourceOwnedViewEmbeds';\nimport {\n buildCompositeViewLabelKey,\n buildNavigationViewLabelKey,\n buildResourceViewTranslationRef,\n resolveNavigationViewTitle,\n} from '~wildo-frontend-lib/core/navigation/view-title-resolution';\nimport {\n resolveItemRef,\n type LauncherResolutionContext,\n type ResolvedNavigationTarget,\n} from '~wildo-frontend-lib/core/navigation/launcher-resolution';\nimport type {\n FrontendResourceOperationContext,\n} from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport {\n ButtonSize,\n NavigationViewLabelFamily,\n} from '@wildo-ai/presets-components-models';\nimport { LauncherItemTargetKind } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport { serializeSurfaceOperation } from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport {\n InsertedViewLauncherPlacement,\n resolveInsertedViewLauncherConfig,\n type InsertedViewLauncherConfig,\n} from '~wildo-frontend-lib/core/config/inserted-view-launcher.schemas';\n\nimport {\n areMandatoryParentRequirementsSatisfied,\n normalizeInsertedResourceViewContextResourceIdentifiers,\n} from './inserted-resource-view.frontend.utils';\n\n/**\n * WHICH SLOT of the host page this mount renders.\n *\n * A record page offers three distinct homes for a resource-owned view's entry\n * point, and each view chooses one via its authored\n * {@link InsertedViewLauncherPlacement}. The host mounts this component once per\n * slot; each mount renders only the launchers that asked for it.\n *\n * `CONTENT` additionally owns the segments that are not launchers at all —\n * inline charts and embedded composites — because those ARE content and belong\n * in the body flow after the record's fields.\n *\n * `ALL` renders everything in one block, for hosts that do not split the slots\n * (the semantic-operation fallback).\n */\nexport enum InsertedViewRenderSlot {\n /** Inside the record's action cluster, beside its own operations. */\n ACTION_BAR = 'action_bar',\n /** A ruled strip directly under the record header. */\n RECORD_NAVIGATION = 'record_navigation',\n /** The body flow: charts, embedded composites, and content-card launchers. */\n CONTENT = 'content',\n ALL = 'all',\n}\n\nexport interface ResourceLayout_InsertedViewsProps {\n resourceContext: FrontendResourceOperationContext;\n navigationZone: NavigationZone;\n navigationInitiator?: NavigationInitiatorContext;\n className?: string;\n chartHeight?: number;\n showCharts?: boolean;\n /**\n * Which slot this mount renders. Defaults to `ALL` so hosts that do not split\n * the slots keep rendering one combined block.\n */\n renderSlot?: InsertedViewRenderSlot;\n}\n\n/**\n * Composite refs currently being EMBEDDED inline up the tree (D1). A\n * non-addressable resource-owned composite is rendered in place by\n * `ResourceLayout_InsertedViews`; if that composite embeds its own host READ\n * (e.g. `task-workspace` → `EmbedHostResourceOperation(READ)`), the host read\n * renders another `ResourceLayout_InsertedViews` that would re-embed the SAME\n * composite → infinite recursion. Each inline embed adds its ref here; a\n * descendant InsertedViews whose composite ref is already active SKIPS the\n * re-embed. Mirrors `ActiveCustomViewOperationsContext` in `ResourceLayout_Read`.\n */\nconst ActiveEmbeddedCompositeRefsContext = createContext<ReadonlySet<string>>(new Set<string>());\n\ninterface ResourceOwnedLauncherView {\n kind: NavigationContentType.COMPOSITE_VIEW | NavigationContentType.EXECUTION_VIEW;\n ref: string;\n label: string;\n /** The resolved launcher icon, as a reference this component renders (#1828). */\n iconReference?: NavigationIconReference;\n urlPath: string;\n contextResourceIdentifiers?: Record<string, string>;\n requiredFeatures: unknown;\n /** Resolved presentation (placement / emphasis / label) for this launcher. */\n presentation: ReturnType<typeof resolveInsertedViewLauncherConfig>;\n}\n\ntype ResourceOwnedInsertedViewSegment =\n | {\n type: 'chart';\n ref: string;\n chartView: InsertedChartDeclaration;\n /**\n * Resolved display title (labelling pipeline: `views.chart.{translationRef}.title`).\n * Empty string only while the label bundle is still loading — the heading is then\n * omitted. A label that is not generated yet is its KEY PATH once settled (#1450):\n * labels are i18n-owned, never derived in code, and a missing one must look missing.\n */\n title: string;\n }\n | {\n type: 'launcher-group';\n views: ResourceOwnedLauncherView[];\n }\n | {\n /** D1: a non-addressable resource-owned composite embedded inline in place. */\n type: 'embedded-composite';\n ref: string;\n };\n\nexport function ResourceLayout_InsertedViews({\n resourceContext,\n navigationZone,\n navigationInitiator,\n className = '',\n chartHeight = 320,\n showCharts = true,\n renderSlot = InsertedViewRenderSlot.ALL,\n}: ResourceLayout_InsertedViewsProps): React.JSX.Element | null {\n const { registry } = useResourceRegistry();\n const activeEmbeddedCompositeRefs = useContext(ActiveEmbeddedCompositeRefsContext);\n const { navigate } = useNavigationController();\n const { renderIcon } = useIconRegistry();\n const frontendConfiguration = registry.resourceConfigurations[resourceContext.resourceType]?.frontendConfiguration;\n const compositeLabelKeys = useMemo(() => (\n (frontendConfiguration?.compositeViews ?? []).map((view) => (\n buildCompositeViewLabelKey(view.translationRef)\n ))\n ), [frontendConfiguration?.compositeViews]);\n const viewLabelKeys = useMemo(() => ([\n ...((frontendConfiguration?.chartViews ?? []).map((view) => (\n buildNavigationViewLabelKey({\n family: NavigationViewLabelFamily.CHART,\n translationRef: buildResourceViewTranslationRef(\n resourceContext.resourceType,\n view.ref,\n ),\n })\n ))),\n ...((frontendConfiguration?.executionViews ?? []).map((view) => (\n buildNavigationViewLabelKey({\n family: NavigationViewLabelFamily.EXECUTION,\n translationRef: buildResourceViewTranslationRef(\n resourceContext.resourceType,\n view.ref,\n ),\n })\n ))),\n ]), [\n frontendConfiguration?.chartViews,\n frontendConfiguration?.executionViews,\n resourceContext.resourceType,\n ]);\n const { tCompositeView, tResourceHeader, tResourceOperation, tView } = useI18n({\n keys: [...compositeLabelKeys, ...viewLabelKeys],\n });\n\n const contextResourceIdentifiers = useMemo(() => {\n return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);\n }, [resourceContext]);\n\n /**\n * Resource-owned view declarations are the **single source of truth** for\n * which inserted views surface inside a given operation host:\n *\n * - `compositeView.operationLike` / `chartView.operationLike` (single op) —\n * the view surfaces inside the default (non-variant) instance of that\n * core operation.\n * - `executionView.surfaceInOperations` (list of `OperationKey`) — the\n * view surfaces inside every listed host, including specific operation\n * variants (`[operationId, variantKey]`).\n *\n * We resolve the current operation's identity into a serialized\n * `OperationKey` and a base-op shortcut, then filter each family directly\n * — no per-operation compiled view list is consulted.\n */\n const operationView = resourceContext.operation;\n const isCurrentDefaultOperationHost =\n operationView.isOperationDefault === true || !operationView.variantKey;\n const currentBaseOperation = String(operationView.operationIdentifier);\n /*\n * On a record's READ page the inserted views belong to the read body, after it: a composite's section\n * titles and a chart's title name groups there just as `DisplayLayout`'s legends do, so they speak in\n * the same EYEBROW voice (measured 2026-10-01 on the Wonder Todos todo: \"Supporting Tasks\" at 16px under\n * eyebrow-voiced \"CHECKLIST\"). On any other host the voice is whatever that host chose.\n */\n const inheritedLegendVoice = useSectionLegendVoice();\n const legendVoice = currentBaseOperation === CoreResourceOperation.READ ? TypographyVariant.EYEBROW : inheritedLegendVoice;\n const { getRecipe } = useUI();\n const currentSerializedOperationKey = useMemo(() => (\n isCurrentDefaultOperationHost\n ? currentBaseOperation\n : serializeSurfaceOperation([currentBaseOperation, String(operationView.variantKey)])\n ), [currentBaseOperation, isCurrentDefaultOperationHost, operationView.variantKey]);\n\n // Beyond the operation-host match, every family is additionally gated on\n // MANDATORY parent-context satisfiability: a view whose declared parent id is\n // absent from the host's context would fetch/anchor against the wrong scope\n // (see `areMandatoryParentRequirementsSatisfied`).\n const applicableCompositeViews = useMemo(() => (\n isCurrentDefaultOperationHost\n ? (frontendConfiguration?.compositeViews ?? []).filter(\n (view) => String(view.operationLike) === currentBaseOperation\n && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers),\n )\n : []\n ), [contextResourceIdentifiers, currentBaseOperation, frontendConfiguration?.compositeViews, isCurrentDefaultOperationHost]);\n\n const applicableChartViews = useMemo(() => (\n isCurrentDefaultOperationHost\n ? (frontendConfiguration?.chartViews ?? []).filter(\n (view) => String(view.operationLike) === currentBaseOperation\n && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers),\n )\n : []\n ), [contextResourceIdentifiers, currentBaseOperation, frontendConfiguration?.chartViews, isCurrentDefaultOperationHost]);\n\n const applicableExecutionViews = useMemo(() => (\n (frontendConfiguration?.executionViews ?? []).filter((view) => (\n (view.surfaceInOperations ?? []).some(\n (op) => serializeSurfaceOperation(op) === currentSerializedOperationKey,\n )\n && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers)\n ))\n ), [contextResourceIdentifiers, currentSerializedOperationKey, frontendConfiguration?.executionViews]);\n\n const insertedViewSegments = useMemo<ResourceOwnedInsertedViewSegment[]>(() => {\n if (\n applicableCompositeViews.length === 0\n && applicableChartViews.length === 0\n && applicableExecutionViews.length === 0\n ) {\n return [];\n }\n\n const resolutionContext: LauncherResolutionContext = {\n registry,\n contextResourceIdentifiers,\n views: {},\n tResourceHeader,\n tResourceOperation,\n tViewTitle: (viewRef, contentType) => resolveNavigationViewTitle({\n viewRef,\n contentType,\n tCompositeView,\n tView,\n }),\n t: (key) => key,\n // This context resolves resource-owned views only, never a settings row, so no section icon is ever asked for.\n settingsSectionIcon: () => undefined,\n // Nor its authored label.\n settingsSectionLabel: () => undefined,\n // Nor a settings row, so there is no section visibility to filter by.\n settingsSectionVisible: null,\n // These are the current resource's own views, already authorized by the page that hosts them: no role filter.\n viewerRoles: null,\n };\n\n const resolvedSegments: ResourceOwnedInsertedViewSegment[] = [];\n\n // Canonical rendering order — fixed by the framework now that there is\n // no author-controlled `additionalViews` list:\n // 1. composites (primary structured views)\n // 2. charts (at-a-glance metrics)\n // 3. executions (action runners)\n // Within each family, declaration iteration order is preserved: composites\n // and executions follow authored key order in the `ResourceCompositeViewsConfig`\n // / `ResourceExecutionViewsConfig` maps; charts follow the authored array\n // order in `chartViews`.\n\n for (const compositeView of applicableCompositeViews) {\n // D1: only an ADDRESSABLE composite gets a routing launcher (a\n // non-addressable one has no `urlPath`, so its launcher would no-op — the\n // dead-launcher bug). A non-addressable composite is EMBEDDED INLINE in\n // place instead, unless it is already being embedded up the tree (recursion\n // guard for composites that embed their own host READ).\n if (compositeView.isAddressable) {\n pushResourceOwnedLauncherView({\n resolvedSegments,\n resolutionContext,\n resourceType: resourceContext.resourceType,\n viewRef: compositeView.ref,\n operationIdentifier: operationView.operationIdentifier,\n familyLabel: 'composite',\n launcher: (compositeView as { launcher?: InsertedViewLauncherConfig }).launcher,\n });\n continue;\n }\n if (activeEmbeddedCompositeRefs.has(compositeView.ref)) {\n continue;\n }\n resolvedSegments.push({ type: 'embedded-composite', ref: compositeView.ref });\n }\n\n if (showCharts) {\n for (const chartView of applicableChartViews) {\n resolvedSegments.push({\n type: 'chart',\n ref: chartView.ref,\n chartView,\n title: tView(\n NavigationViewLabelFamily.CHART,\n buildResourceViewTranslationRef(resourceContext.resourceType, chartView.ref),\n 'title',\n ),\n });\n }\n }\n\n for (const executionView of applicableExecutionViews) {\n pushResourceOwnedLauncherView({\n resolvedSegments,\n resolutionContext,\n resourceType: resourceContext.resourceType,\n viewRef: executionView.ref,\n operationIdentifier: operationView.operationIdentifier,\n familyLabel: 'execution',\n launcher: (executionView as { launcher?: InsertedViewLauncherConfig }).launcher,\n });\n }\n\n return resolvedSegments;\n }, [\n activeEmbeddedCompositeRefs,\n applicableCompositeViews,\n applicableChartViews,\n applicableExecutionViews,\n contextResourceIdentifiers,\n operationView.operationIdentifier,\n registry,\n resourceContext.resourceType,\n showCharts,\n tCompositeView,\n tView,\n tResourceHeader,\n tResourceOperation,\n ]);\n\n const handleOpenView = useCallback((view: ResourceOwnedLauncherView) => {\n navigate({\n content: {\n contentType: view.kind,\n viewRef: view.ref,\n contextResourceIdentifiers: view.contextResourceIdentifiers,\n },\n initiator: {\n sourceZone: navigationZone,\n },\n urlPath: view.urlPath,\n });\n }, [navigate, navigationZone]);\n\n // Each launcher renders in the slot its own `placement` asked for; charts and\n // embedded composites are content and render only in the CONTENT slot. A\n // launcher group whose views all belong to other slots drops out entirely.\n const visibleSegments = useMemo(() => {\n if (renderSlot === InsertedViewRenderSlot.ALL) {\n return insertedViewSegments;\n }\n\n const slotForPlacement: Record<InsertedViewLauncherPlacement, InsertedViewRenderSlot> = {\n [InsertedViewLauncherPlacement.ACTION_BAR]: InsertedViewRenderSlot.ACTION_BAR,\n [InsertedViewLauncherPlacement.RECORD_NAVIGATION]: InsertedViewRenderSlot.RECORD_NAVIGATION,\n [InsertedViewLauncherPlacement.CONTENT_CARD]: InsertedViewRenderSlot.CONTENT,\n };\n\n return insertedViewSegments.flatMap((segment): ResourceOwnedInsertedViewSegment[] => {\n if (segment.type !== 'launcher-group') {\n return renderSlot === InsertedViewRenderSlot.CONTENT ? [segment] : [];\n }\n const views = segment.views.filter(\n (view) => slotForPlacement[view.presentation.placement] === renderSlot,\n );\n return views.length > 0 ? [{ ...segment, views }] : [];\n });\n }, [insertedViewSegments, renderSlot]);\n\n if (visibleSegments.length === 0) {\n return null;\n }\n\n return (\n <SectionLegendVoiceHost voice={legendVoice}>\n <div className={cn('space-y-section', className)} data-testid=\"resource-layout-inserted-views\">\n {visibleSegments.map((segment, segmentIndex) => (\n segment.type === 'embedded-composite'\n ? (\n // D1: render the non-addressable composite's BODY in place. The\n // provider marks this ref active so a nested InsertedViews (e.g. from\n // the composite's own embedded host READ) won't re-embed it.\n <ActiveEmbeddedCompositeRefsContext.Provider\n key={`embedded-composite:${segment.ref}:${segmentIndex}`}\n value={new Set<string>([...activeEmbeddedCompositeRefs, segment.ref])}\n >\n <EmbedResourceOwnedCompositeView\n resourceContext={resourceContext}\n viewRef={segment.ref}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n </ActiveEmbeddedCompositeRefsContext.Provider>\n )\n : segment.type === 'chart'\n ? (\n <section\n key={`chart:${segment.ref}:${segmentIndex}`}\n className=\"rounded-lg border border-border bg-card p-field shadow-sm\"\n >\n {segment.title && (\n <h3 className={cn('mb-element-sm', legendVoice ? getRecipe(UIBehavior.TYPOGRAPHY, legendVoice).base : 'text-sm font-medium text-foreground')}>\n {segment.title}\n </h3>\n )}\n <FeatureRouteGuard requiredFeatures={segment.chartView.chartDefinition.requiredFeatures}>\n <ChartView\n viewDefinition={segment.chartView}\n runtimeDescriptor={buildResolvedInsertedChartDescriptor({\n identity: buildResourceInsertedChartIdentity(resourceContext.resourceType, segment.chartView),\n chartView: segment.chartView,\n contextResourceIdentifiers,\n })}\n height={chartHeight}\n // Inserted chart tile on a detail page → degrade locally, no\n // page-level toast (per-widget error isolation).\n localErrorOnly\n />\n </FeatureRouteGuard>\n </section>\n )\n : (\n /* Record-level secondary navigation: a quiet strip of routes into\n other views of THIS record, sitting under the record's identity\n rather than in a card of its own. A bordered card of OUTLINE\n buttons read as an actions panel — a peer of the record's content\n — which is why these launchers were previously mistaken for\n page-bottom controls. A bottom-ruled row of ghost items reads as\n navigation: same affordance vocabulary as the app's horizontal\n tabs, without claiming a selected state these routes do not have\n while the reader is on the record's own page. */\n /* Launcher presentation is per-slot chrome around the SAME buttons.\n ACTION_BAR contributes bare buttons into the record's action\n cluster (the host owns that row, so no wrapper here);\n RECORD_NAVIGATION is a ruled sub-navigation strip under the\n header; CONTENT_CARD keeps the standalone card in the body flow.\n TODO(i18n): name the RECORD_NAVIGATION landmark once a\n `RESOURCES_LAYOUTS_INSERTED_VIEWS` component label is registered and\n generated — an ungenerated key would render as its raw path, so it\n stays unnamed rather than mislabelled. */\n <LauncherSlotChrome\n key={`launcher-group:${segmentIndex}`}\n renderSlot={renderSlot}\n >\n {segment.views.map((view) => (\n <FeatureRouteGuard key={`${view.kind}:${view.ref}`} requiredFeatures={view.requiredFeatures}>\n <Button\n data-testid={`inserted-view-launcher-${view.ref}`}\n type=\"button\"\n // In the record navigation strip a quiet launcher is a GHOST item, so the strip reads as\n // navigation (see the chrome note above); elsewhere it keeps the outlined look.\n variant={view.presentation.emphasized\n ? ButtonVariants_Variant.DEFAULT\n : renderSlot === InsertedViewRenderSlot.RECORD_NAVIGATION\n ? ButtonVariants_Variant.GHOST\n : ButtonVariants_Variant.OUTLINE}\n size={ButtonSize.SM}\n onClick={() => handleOpenView(view)}\n // An icon-only launcher must still announce itself.\n aria-label={view.presentation.showLabel ? undefined : view.label}\n title={view.presentation.showLabel && renderSlot !== InsertedViewRenderSlot.ACTION_BAR ? undefined : view.label}\n >\n {view.iconReference ? renderIcon(view.iconReference, { size: IconSize.SM }) : (\n view.kind === NavigationContentType.COMPOSITE_VIEW\n ? renderIcon(\n { category: IconCategory.COMPOSITE_VIEW, viewReference: view.ref },\n { size: IconSize.SM },\n )\n : renderIcon(\n { category: IconCategory.CUSTOM, customReference: `view-execution-${view.ref}` },\n { size: IconSize.SM },\n )\n )}\n {/* In the record header's action cluster the words yield to a narrow header (a split\n pane): the header puts the actions on its TITLE line, and a 200px labelled\n launcher is what pushed them off it (Wonder Todos, 2026-09-30). The words stay\n the accessible name and the tooltip; on a wide page they show. */}\n {view.presentation.showLabel && (\n <span className={renderSlot === InsertedViewRenderSlot.ACTION_BAR ? RESOURCE_HEADER_NARROW_SR_ONLY_CLASS : undefined}>\n {view.label}\n </span>\n )}\n </Button>\n </FeatureRouteGuard>\n ))}\n </LauncherSlotChrome>\n )\n ))}\n </div>\n </SectionLegendVoiceHost>\n );\n}\n\n/**\n * Per-slot wrapper around a group of launcher buttons.\n *\n * The buttons are identical in every slot — only the chrome around them differs,\n * which is what keeps \"where does this view's entry point live\" a placement\n * decision rather than three divergent renderers.\n */\nfunction LauncherSlotChrome({\n renderSlot,\n children,\n}: {\n renderSlot: InsertedViewRenderSlot;\n children: React.ReactNode;\n}): React.JSX.Element {\n if (renderSlot === InsertedViewRenderSlot.ACTION_BAR) {\n // The host action cluster owns the row; contribute buttons only.\n return <>{children}</>;\n }\n\n if (renderSlot === InsertedViewRenderSlot.RECORD_NAVIGATION) {\n return (\n <nav className=\"-mt-element flex flex-wrap items-center gap-item-xs border-b border-border pb-element-sm\">\n {children}\n </nav>\n );\n }\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-field shadow-sm\">\n <div className=\"flex flex-wrap gap-item-sm\">{children}</div>\n </section>\n );\n}\n\nfunction isResourceOwnedLauncherView(\n resolvedView: ResolvedNavigationTarget | null,\n): resolvedView is ResolvedNavigationTarget & {\n contentType: NavigationContentType.COMPOSITE_VIEW | NavigationContentType.EXECUTION_VIEW;\n viewRef: string;\n label: string;\n} {\n return resolvedView?.contentType === NavigationContentType.COMPOSITE_VIEW\n || resolvedView?.contentType === NavigationContentType.EXECUTION_VIEW;\n}\n\n/**\n * Resolve a resource-owned composite/execution view ref into a launcher entry\n * and append it to `resolvedSegments`, grouping adjacent launchers into a\n * single `launcher-group` segment. Charts are handled inline at the call site\n * because they render as standalone segments with no grouping semantics.\n */\nfunction pushResourceOwnedLauncherView(params: {\n resolvedSegments: ResourceOwnedInsertedViewSegment[];\n resolutionContext: LauncherResolutionContext;\n resourceType: string;\n viewRef: string;\n operationIdentifier: string | number | symbol;\n familyLabel: 'composite' | 'execution';\n launcher?: InsertedViewLauncherConfig;\n}): void {\n const {\n resolvedSegments,\n resolutionContext,\n resourceType,\n viewRef,\n operationIdentifier,\n familyLabel,\n launcher,\n } = params;\n const resolvedView = resolveItemRef(\n {\n kind: LauncherItemTargetKind.RESOURCE_VIEW,\n resourceType,\n viewRef,\n },\n resolutionContext,\n );\n if (!resolvedView) {\n throw buildInsertedViewsConfigurationError(\n `Operation \"${String(operationIdentifier)}\" on resource \"${resourceType}\" could not resolve resource-owned ${familyLabel} view \"${viewRef}\".`,\n );\n }\n\n if (!isResourceOwnedLauncherView(resolvedView)) {\n throw buildInsertedViewsConfigurationError(\n `Operation \"${String(operationIdentifier)}\" on resource \"${resourceType}\" resolved ${familyLabel} view \"${viewRef}\" into unsupported content type \"${resolvedView.contentType}\".`,\n );\n }\n\n const launcherView: ResourceOwnedLauncherView = {\n kind: resolvedView.contentType,\n ref: resolvedView.viewRef,\n label: resolvedView.label,\n iconReference: resolvedView.iconReference,\n urlPath: resolvedView.urlPath,\n contextResourceIdentifiers: resolvedView.contextResourceIdentifiers,\n requiredFeatures: resolvedView.requiredFeatures,\n presentation: resolveInsertedViewLauncherConfig(launcher),\n };\n\n const previousSegment = resolvedSegments[resolvedSegments.length - 1];\n if (previousSegment?.type === 'launcher-group') {\n previousSegment.views.push(launcherView);\n return;\n }\n\n resolvedSegments.push({\n type: 'launcher-group',\n views: [launcherView],\n });\n}\n\nfunction buildInsertedViewsConfigurationError(message: string): Error {\n return FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.CONFIGURATION,\n {\n component: 'ResourceLayout_InsertedViews',\n message,\n },\n );\n}\n\nexport default ResourceLayout_InsertedViews;\n"]}
1
+ {"version":3,"file":"ResourceLayout_InsertedViews.js","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_InsertedViews.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0DAA0D,CAAC;AAE1G,OAAO,EAAE,oCAAoC,EAAE,MAAM,mEAAmE,CAAC;AACzH,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AAC7H,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAC/H,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,oCAAoC,GAErC,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gEAAgE,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,uEAAuE,CAAC;AACzH,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EACL,YAAY,EACZ,QAAQ,GACT,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6DAA6D,CAAC;AACtG,OAAO,EACL,qBAAqB,GAItB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,+BAA+B,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,2BAA2B,CAAC,aAAa,EACzC;QACE,SAAS,EAAE,8BAA8B;QACzC,OAAO;KACR,CACF,CAAC;AACJ,CAAC;AAED,eAAe,4BAA4B,CAAC","sourcesContent":["import React, { createContext, useCallback, useContext, useMemo } from 'react';\nimport { useViewerMayReadChartPredicate } from '~wildo-frontend-lib/core/navigation/useChartReadDecision';\n\nimport { RESOURCE_HEADER_NARROW_SR_ONLY_CLASS } from '~wildo-frontend-lib/components/resources/resource-header-geometry';\nimport { CoreResourceOperation, ErrorCustomMessageReference } from '@wildo-ai/saas-models';\nimport { TypographyVariant, UIBehavior } from '@wildo-ai/presets-components-models';\nimport { SectionLegendVoiceHost, useSectionLegendVoice } from '~wildo-frontend-lib/components/sections/section-legend-voice';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { documentHeadingTag, useDocumentHeadingLevel } from '~wildo-frontend-lib/components/typography/document-heading-level';\nimport {\n buildResolvedInsertedChartDescriptor,\n buildResourceInsertedChartIdentity,\n isChartViewInsertedIntoOperationHost,\n type InsertedChartDeclaration,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport { ChartView } from '~wildo-frontend-lib/components/views/chart-view/ChartView.lazy';\nimport { RequiredFeaturesGate } from '~wildo-frontend-lib/core/features/RequiredFeaturesGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport {\n IconCategory,\n IconSize,\n} from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport { useNavigationController } from '~wildo-frontend-lib/core/navigation/useNavigationController';\nimport {\n NavigationContentType,\n type NavigationIconReference,\n type NavigationInitiatorContext,\n type NavigationZone,\n} from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { EmbedResourceOwnedCompositeView } from './ResourceOwnedViewEmbeds';\nimport {\n buildCompositeViewLabelKey,\n buildNavigationViewLabelKey,\n buildResourceViewTranslationRef,\n resolveNavigationViewTitle,\n} from '~wildo-frontend-lib/core/navigation/view-title-resolution';\nimport {\n resolveItemRef,\n type LauncherResolutionContext,\n type ResolvedNavigationTarget,\n} from '~wildo-frontend-lib/core/navigation/launcher-resolution';\nimport type {\n FrontendResourceOperationContext,\n} from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport { FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport {\n ButtonSize,\n NavigationViewLabelFamily,\n} from '@wildo-ai/presets-components-models';\nimport { LauncherItemTargetKind } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport { serializeSurfaceOperation } from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport {\n InsertedViewLauncherPlacement,\n resolveInsertedViewLauncherConfig,\n type InsertedViewLauncherConfig,\n} from '~wildo-frontend-lib/core/config/inserted-view-launcher.schemas';\n\nimport {\n areMandatoryParentRequirementsSatisfied,\n normalizeInsertedResourceViewContextResourceIdentifiers,\n} from './inserted-resource-view.frontend.utils';\n\n/**\n * WHICH SLOT of the host page this mount renders.\n *\n * A record page offers three distinct homes for a resource-owned view's entry\n * point, and each view chooses one via its authored\n * {@link InsertedViewLauncherPlacement}. The host mounts this component once per\n * slot; each mount renders only the launchers that asked for it.\n *\n * `CONTENT` additionally owns the segments that are not launchers at all —\n * inline charts and embedded composites — because those ARE content and belong\n * in the body flow after the record's fields.\n *\n * `ALL` renders everything in one block, for hosts that do not split the slots\n * (the semantic-operation fallback).\n */\nexport enum InsertedViewRenderSlot {\n /** Inside the record's action cluster, beside its own operations. */\n ACTION_BAR = 'action_bar',\n /** A ruled strip directly under the record header. */\n RECORD_NAVIGATION = 'record_navigation',\n /** The body flow: charts, embedded composites, and content-card launchers. */\n CONTENT = 'content',\n ALL = 'all',\n}\n\nexport interface ResourceLayout_InsertedViewsProps {\n resourceContext: FrontendResourceOperationContext;\n navigationZone: NavigationZone;\n navigationInitiator?: NavigationInitiatorContext;\n className?: string;\n chartHeight?: number;\n showCharts?: boolean;\n /**\n * Which slot this mount renders. Defaults to `ALL` so hosts that do not split\n * the slots keep rendering one combined block.\n */\n renderSlot?: InsertedViewRenderSlot;\n}\n\n/**\n * Composite refs currently being EMBEDDED inline up the tree (D1). A\n * non-addressable resource-owned composite is rendered in place by\n * `ResourceLayout_InsertedViews`; if that composite embeds its own host READ\n * (e.g. `task-workspace` → `EmbedHostResourceOperation(READ)`), the host read\n * renders another `ResourceLayout_InsertedViews` that would re-embed the SAME\n * composite → infinite recursion. Each inline embed adds its ref here; a\n * descendant InsertedViews whose composite ref is already active SKIPS the\n * re-embed. Mirrors `ActiveCustomViewOperationsContext` in `ResourceLayout_Read`.\n */\nconst ActiveEmbeddedCompositeRefsContext = createContext<ReadonlySet<string>>(new Set<string>());\n\ninterface ResourceOwnedLauncherView {\n kind: NavigationContentType.COMPOSITE_VIEW | NavigationContentType.EXECUTION_VIEW;\n ref: string;\n label: string;\n /** The resolved launcher icon, as a reference this component renders (#1828). */\n iconReference?: NavigationIconReference;\n urlPath: string;\n contextResourceIdentifiers?: Record<string, string>;\n requiredFeatures: unknown;\n /** Resolved presentation (placement / emphasis / label) for this launcher. */\n presentation: ReturnType<typeof resolveInsertedViewLauncherConfig>;\n}\n\ntype ResourceOwnedInsertedViewSegment =\n | {\n type: 'chart';\n ref: string;\n chartView: InsertedChartDeclaration;\n /**\n * Resolved display title (labelling pipeline: `views.chart.{translationRef}.title`).\n * Empty string only while the label bundle is still loading — the heading is then\n * omitted. A label that is not generated yet is its KEY PATH once settled (#1450):\n * labels are i18n-owned, never derived in code, and a missing one must look missing.\n */\n title: string;\n }\n | {\n type: 'launcher-group';\n views: ResourceOwnedLauncherView[];\n }\n | {\n /** D1: a non-addressable resource-owned composite embedded inline in place. */\n type: 'embedded-composite';\n ref: string;\n };\n\nexport function ResourceLayout_InsertedViews({\n resourceContext,\n navigationZone,\n navigationInitiator,\n className = '',\n chartHeight = 320,\n showCharts = true,\n renderSlot = InsertedViewRenderSlot.ALL,\n}: ResourceLayout_InsertedViewsProps): React.JSX.Element | null {\n const { registry } = useResourceRegistry();\n const activeEmbeddedCompositeRefs = useContext(ActiveEmbeddedCompositeRefsContext);\n const { navigate } = useNavigationController();\n const { renderIcon } = useIconRegistry();\n const frontendConfiguration = registry.resourceConfigurations[resourceContext.resourceType]?.frontendConfiguration;\n const compositeLabelKeys = useMemo(() => (\n (frontendConfiguration?.compositeViews ?? []).map((view) => (\n buildCompositeViewLabelKey(view.translationRef)\n ))\n ), [frontendConfiguration?.compositeViews]);\n const viewLabelKeys = useMemo(() => ([\n ...((frontendConfiguration?.chartViews ?? []).map((view) => (\n buildNavigationViewLabelKey({\n family: NavigationViewLabelFamily.CHART,\n translationRef: buildResourceViewTranslationRef(\n resourceContext.resourceType,\n view.ref,\n ),\n })\n ))),\n ...((frontendConfiguration?.executionViews ?? []).map((view) => (\n buildNavigationViewLabelKey({\n family: NavigationViewLabelFamily.EXECUTION,\n translationRef: buildResourceViewTranslationRef(\n resourceContext.resourceType,\n view.ref,\n ),\n })\n ))),\n ]), [\n frontendConfiguration?.chartViews,\n frontendConfiguration?.executionViews,\n resourceContext.resourceType,\n ]);\n const { tCompositeView, tResourceHeader, tResourceOperation, tView } = useI18n({\n keys: [...compositeLabelKeys, ...viewLabelKeys],\n });\n\n const contextResourceIdentifiers = useMemo(() => {\n return normalizeInsertedResourceViewContextResourceIdentifiers(resourceContext);\n }, [resourceContext]);\n\n /**\n * Resource-owned view declarations are the **single source of truth** for\n * which inserted views surface inside a given operation host:\n *\n * - `compositeView.operationLike` / `chartView.operationLike` (single op) —\n * the view surfaces inside the default (non-variant) instance of that\n * core operation.\n * - `executionView.surfaceInOperations` (list of `OperationKey`) — the\n * view surfaces inside every listed host, including specific operation\n * variants (`[operationId, variantKey]`).\n *\n * We resolve the current operation's identity into a serialized\n * `OperationKey` and a base-op shortcut, then filter each family directly\n * — no per-operation compiled view list is consulted.\n */\n const operationView = resourceContext.operation;\n const isCurrentDefaultOperationHost =\n operationView.isOperationDefault === true || !operationView.variantKey;\n const currentBaseOperation = String(operationView.operationIdentifier);\n /*\n * On a record's READ page the inserted views belong to the read body, after it: a composite's section\n * titles and a chart's title name groups there just as `DisplayLayout`'s legends do, so they speak in\n * the same EYEBROW voice (measured 2026-10-01 on the Wonder Todos todo: \"Supporting Tasks\" at 16px under\n * eyebrow-voiced \"CHECKLIST\"). On any other host the voice is whatever that host chose.\n */\n const inheritedLegendVoice = useSectionLegendVoice();\n const legendVoice = currentBaseOperation === CoreResourceOperation.READ ? TypographyVariant.EYEBROW : inheritedLegendVoice;\n const { getRecipe } = useUI();\n // A chart card's title takes its level from the outline it sits in: under a record page's `h1` it is an `h2`.\n // It was a hard-coded `h3`, which axe reported as a skipped level on the record read view (#3867).\n const ChartTitleTag = documentHeadingTag(useDocumentHeadingLevel());\n const currentSerializedOperationKey = useMemo(() => (\n isCurrentDefaultOperationHost\n ? currentBaseOperation\n : serializeSurfaceOperation([currentBaseOperation, String(operationView.variantKey)])\n ), [currentBaseOperation, isCurrentDefaultOperationHost, operationView.variantKey]);\n\n // Beyond the operation-host match, every family is additionally gated on\n // MANDATORY parent-context satisfiability: a view whose declared parent id is\n // absent from the host's context would fetch/anchor against the wrong scope\n // (see `areMandatoryParentRequirementsSatisfied`).\n const applicableCompositeViews = useMemo(() => (\n isCurrentDefaultOperationHost\n ? (frontendConfiguration?.compositeViews ?? []).filter(\n (view) => String(view.operationLike) === currentBaseOperation\n && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers),\n )\n : []\n ), [contextResourceIdentifiers, currentBaseOperation, frontendConfiguration?.compositeViews, isCurrentDefaultOperationHost]);\n\n // #4252: a chart is also gated on whether the backend's chart gate would answer this viewer. The host page being\n // readable does not settle it: a chart narrows its readers (`accessControl.roles`) and asks every resource it joins.\n const viewerMayReadChart = useViewerMayReadChartPredicate();\n const applicableChartViews = useMemo(() => (\n isCurrentDefaultOperationHost\n ? (frontendConfiguration?.chartViews ?? []).filter(\n // An EMBEDS_ONLY chart is placed by whoever embeds it, never by a host (InsertedChartSurfacing).\n (view) => isChartViewInsertedIntoOperationHost(view)\n && String(view.operationLike) === currentBaseOperation\n && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers)\n && viewerMayReadChart(view.chartDefinition),\n )\n : []\n ), [contextResourceIdentifiers, currentBaseOperation, frontendConfiguration?.chartViews, isCurrentDefaultOperationHost, viewerMayReadChart]);\n\n const applicableExecutionViews = useMemo(() => (\n (frontendConfiguration?.executionViews ?? []).filter((view) => (\n (view.surfaceInOperations ?? []).some(\n (op) => serializeSurfaceOperation(op) === currentSerializedOperationKey,\n )\n && areMandatoryParentRequirementsSatisfied(view.parentResourcesRequirements, contextResourceIdentifiers)\n ))\n ), [contextResourceIdentifiers, currentSerializedOperationKey, frontendConfiguration?.executionViews]);\n\n const insertedViewSegments = useMemo<ResourceOwnedInsertedViewSegment[]>(() => {\n if (\n applicableCompositeViews.length === 0\n && applicableChartViews.length === 0\n && applicableExecutionViews.length === 0\n ) {\n return [];\n }\n\n const resolutionContext: LauncherResolutionContext = {\n registry,\n contextResourceIdentifiers,\n views: {},\n tResourceHeader,\n tResourceOperation,\n tViewTitle: (viewRef, contentType) => resolveNavigationViewTitle({\n viewRef,\n contentType,\n tCompositeView,\n tView,\n }),\n t: (key) => key,\n // This context resolves resource-owned views only, never a settings row, so no section icon is ever asked for.\n settingsSectionIcon: () => undefined,\n // Nor its authored label.\n settingsSectionLabel: () => undefined,\n // Nor a settings row, so there is no section visibility to filter by.\n settingsSectionVisible: null,\n // These are the current resource's own views, already authorized by the page that hosts them: no role filter.\n // Its charts were filtered by the chart gate above (#4252), which the host page's authorization does not settle.\n viewerRoles: null,\n };\n\n const resolvedSegments: ResourceOwnedInsertedViewSegment[] = [];\n\n // Canonical rendering order — fixed by the framework now that there is\n // no author-controlled `additionalViews` list:\n // 1. composites (primary structured views)\n // 2. charts (at-a-glance metrics)\n // 3. executions (action runners)\n // Within each family, declaration iteration order is preserved: composites\n // and executions follow authored key order in the `ResourceCompositeViewsConfig`\n // / `ResourceExecutionViewsConfig` maps; charts follow the authored array\n // order in `chartViews`.\n\n for (const compositeView of applicableCompositeViews) {\n // D1: only an ADDRESSABLE composite gets a routing launcher (a\n // non-addressable one has no `urlPath`, so its launcher would no-op — the\n // dead-launcher bug). A non-addressable composite is EMBEDDED INLINE in\n // place instead, unless it is already being embedded up the tree (recursion\n // guard for composites that embed their own host READ).\n if (compositeView.isAddressable) {\n pushResourceOwnedLauncherView({\n resolvedSegments,\n resolutionContext,\n resourceType: resourceContext.resourceType,\n viewRef: compositeView.ref,\n operationIdentifier: operationView.operationIdentifier,\n familyLabel: 'composite',\n launcher: (compositeView as { launcher?: InsertedViewLauncherConfig }).launcher,\n });\n continue;\n }\n if (activeEmbeddedCompositeRefs.has(compositeView.ref)) {\n continue;\n }\n resolvedSegments.push({ type: 'embedded-composite', ref: compositeView.ref });\n }\n\n if (showCharts) {\n for (const chartView of applicableChartViews) {\n resolvedSegments.push({\n type: 'chart',\n ref: chartView.ref,\n chartView,\n title: tView(\n NavigationViewLabelFamily.CHART,\n buildResourceViewTranslationRef(resourceContext.resourceType, chartView.ref),\n 'title',\n ),\n });\n }\n }\n\n for (const executionView of applicableExecutionViews) {\n pushResourceOwnedLauncherView({\n resolvedSegments,\n resolutionContext,\n resourceType: resourceContext.resourceType,\n viewRef: executionView.ref,\n operationIdentifier: operationView.operationIdentifier,\n familyLabel: 'execution',\n launcher: (executionView as { launcher?: InsertedViewLauncherConfig }).launcher,\n });\n }\n\n return resolvedSegments;\n }, [\n activeEmbeddedCompositeRefs,\n applicableCompositeViews,\n applicableChartViews,\n applicableExecutionViews,\n contextResourceIdentifiers,\n operationView.operationIdentifier,\n registry,\n resourceContext.resourceType,\n showCharts,\n tCompositeView,\n tView,\n tResourceHeader,\n tResourceOperation,\n ]);\n\n const handleOpenView = useCallback((view: ResourceOwnedLauncherView) => {\n navigate({\n content: {\n contentType: view.kind,\n viewRef: view.ref,\n contextResourceIdentifiers: view.contextResourceIdentifiers,\n },\n initiator: {\n sourceZone: navigationZone,\n },\n urlPath: view.urlPath,\n });\n }, [navigate, navigationZone]);\n\n // Each launcher renders in the slot its own `placement` asked for; charts and\n // embedded composites are content and render only in the CONTENT slot. A\n // launcher group whose views all belong to other slots drops out entirely.\n const visibleSegments = useMemo(() => {\n if (renderSlot === InsertedViewRenderSlot.ALL) {\n return insertedViewSegments;\n }\n\n const slotForPlacement: Record<InsertedViewLauncherPlacement, InsertedViewRenderSlot> = {\n [InsertedViewLauncherPlacement.ACTION_BAR]: InsertedViewRenderSlot.ACTION_BAR,\n [InsertedViewLauncherPlacement.RECORD_NAVIGATION]: InsertedViewRenderSlot.RECORD_NAVIGATION,\n [InsertedViewLauncherPlacement.CONTENT_CARD]: InsertedViewRenderSlot.CONTENT,\n };\n\n return insertedViewSegments.flatMap((segment): ResourceOwnedInsertedViewSegment[] => {\n if (segment.type !== 'launcher-group') {\n return renderSlot === InsertedViewRenderSlot.CONTENT ? [segment] : [];\n }\n const views = segment.views.filter(\n (view) => slotForPlacement[view.presentation.placement] === renderSlot,\n );\n return views.length > 0 ? [{ ...segment, views }] : [];\n });\n }, [insertedViewSegments, renderSlot]);\n\n if (visibleSegments.length === 0) {\n return null;\n }\n\n return (\n <SectionLegendVoiceHost voice={legendVoice}>\n <div className={cn('space-y-section', className)} data-testid=\"resource-layout-inserted-views\">\n {visibleSegments.map((segment, segmentIndex) => (\n segment.type === 'embedded-composite'\n ? (\n // D1: render the non-addressable composite's BODY in place. The\n // provider marks this ref active so a nested InsertedViews (e.g. from\n // the composite's own embedded host READ) won't re-embed it.\n <ActiveEmbeddedCompositeRefsContext.Provider\n key={`embedded-composite:${segment.ref}:${segmentIndex}`}\n value={new Set<string>([...activeEmbeddedCompositeRefs, segment.ref])}\n >\n <EmbedResourceOwnedCompositeView\n resourceContext={resourceContext}\n viewRef={segment.ref}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n </ActiveEmbeddedCompositeRefsContext.Provider>\n )\n : segment.type === 'chart'\n ? (\n <section\n key={`chart:${segment.ref}:${segmentIndex}`}\n className=\"rounded-lg border border-border bg-card p-field shadow-sm\"\n >\n {segment.title && (\n <ChartTitleTag className={cn('mb-element-sm', legendVoice ? getRecipe(UIBehavior.TYPOGRAPHY, legendVoice).base : 'text-sm font-medium text-foreground')}>\n {segment.title}\n </ChartTitleTag>\n )}\n <RequiredFeaturesGate requiredFeatures={segment.chartView.chartDefinition.requiredFeatures} presentation={RequiredFeaturesGatePresentation.TILE} lockedTileHeight={chartHeight}>\n <ChartView\n viewDefinition={segment.chartView}\n runtimeDescriptor={buildResolvedInsertedChartDescriptor({\n identity: buildResourceInsertedChartIdentity(resourceContext.resourceType, segment.chartView),\n chartView: segment.chartView,\n contextResourceIdentifiers,\n })}\n height={chartHeight}\n // Inserted chart tile on a detail page → degrade locally, no\n // page-level toast (per-widget error isolation).\n localErrorOnly\n />\n </RequiredFeaturesGate>\n </section>\n )\n : (\n /* Record-level secondary navigation: a quiet strip of routes into\n other views of THIS record, sitting under the record's identity\n rather than in a card of its own. A bordered card of OUTLINE\n buttons read as an actions panel — a peer of the record's content\n — which is why these launchers were previously mistaken for\n page-bottom controls. A bottom-ruled row of ghost items reads as\n navigation: same affordance vocabulary as the app's horizontal\n tabs, without claiming a selected state these routes do not have\n while the reader is on the record's own page. */\n /* Launcher presentation is per-slot chrome around the SAME buttons.\n ACTION_BAR contributes bare buttons into the record's action\n cluster (the host owns that row, so no wrapper here);\n RECORD_NAVIGATION is a ruled sub-navigation strip under the\n header; CONTENT_CARD keeps the standalone card in the body flow.\n TODO(i18n): name the RECORD_NAVIGATION landmark once a\n `RESOURCES_LAYOUTS_INSERTED_VIEWS` component label is registered and\n generated — an ungenerated key would render as its raw path, so it\n stays unnamed rather than mislabelled. */\n <LauncherSlotChrome\n key={`launcher-group:${segmentIndex}`}\n renderSlot={renderSlot}\n >\n {segment.views.map((view) => (\n <RequiredFeaturesGate key={`${view.kind}:${view.ref}`} requiredFeatures={view.requiredFeatures} presentation={RequiredFeaturesGatePresentation.CONTROL}>\n <Button\n data-testid={`inserted-view-launcher-${view.ref}`}\n type=\"button\"\n // In the record navigation strip a quiet launcher is a GHOST item, so the strip reads as\n // navigation (see the chrome note above); elsewhere it keeps the outlined look.\n variant={view.presentation.emphasized\n ? ButtonVariants_Variant.DEFAULT\n : renderSlot === InsertedViewRenderSlot.RECORD_NAVIGATION\n ? ButtonVariants_Variant.GHOST\n : ButtonVariants_Variant.OUTLINE}\n size={ButtonSize.SM}\n onClick={() => handleOpenView(view)}\n // An icon-only launcher must still announce itself.\n aria-label={view.presentation.showLabel ? undefined : view.label}\n title={view.presentation.showLabel && renderSlot !== InsertedViewRenderSlot.ACTION_BAR ? undefined : view.label}\n >\n {view.iconReference ? renderIcon(view.iconReference, { size: IconSize.SM }) : (\n view.kind === NavigationContentType.COMPOSITE_VIEW\n ? renderIcon(\n { category: IconCategory.COMPOSITE_VIEW, viewReference: view.ref },\n { size: IconSize.SM },\n )\n : renderIcon(\n { category: IconCategory.CUSTOM, customReference: `view-execution-${view.ref}` },\n { size: IconSize.SM },\n )\n )}\n {/* In the record header's action cluster the words yield to a narrow header (a split\n pane): the header puts the actions on its TITLE line, and a 200px labelled\n launcher is what pushed them off it (Wonder Todos, 2026-09-30). The words stay\n the accessible name and the tooltip; on a wide page they show. */}\n {view.presentation.showLabel && (\n <span className={renderSlot === InsertedViewRenderSlot.ACTION_BAR ? RESOURCE_HEADER_NARROW_SR_ONLY_CLASS : undefined}>\n {view.label}\n </span>\n )}\n </Button>\n </RequiredFeaturesGate>\n ))}\n </LauncherSlotChrome>\n )\n ))}\n </div>\n </SectionLegendVoiceHost>\n );\n}\n\n/**\n * Per-slot wrapper around a group of launcher buttons.\n *\n * The buttons are identical in every slot — only the chrome around them differs,\n * which is what keeps \"where does this view's entry point live\" a placement\n * decision rather than three divergent renderers.\n */\nfunction LauncherSlotChrome({\n renderSlot,\n children,\n}: {\n renderSlot: InsertedViewRenderSlot;\n children: React.ReactNode;\n}): React.JSX.Element {\n if (renderSlot === InsertedViewRenderSlot.ACTION_BAR) {\n // The host action cluster owns the row; contribute buttons only.\n return <>{children}</>;\n }\n\n if (renderSlot === InsertedViewRenderSlot.RECORD_NAVIGATION) {\n return (\n <nav className=\"-mt-element flex flex-wrap items-center gap-item-xs border-b border-border pb-element-sm\">\n {children}\n </nav>\n );\n }\n\n return (\n <section className=\"rounded-lg border border-border bg-card p-field shadow-sm\">\n <div className=\"flex flex-wrap gap-item-sm\">{children}</div>\n </section>\n );\n}\n\nfunction isResourceOwnedLauncherView(\n resolvedView: ResolvedNavigationTarget | null,\n): resolvedView is ResolvedNavigationTarget & {\n contentType: NavigationContentType.COMPOSITE_VIEW | NavigationContentType.EXECUTION_VIEW;\n viewRef: string;\n label: string;\n} {\n return resolvedView?.contentType === NavigationContentType.COMPOSITE_VIEW\n || resolvedView?.contentType === NavigationContentType.EXECUTION_VIEW;\n}\n\n/**\n * Resolve a resource-owned composite/execution view ref into a launcher entry\n * and append it to `resolvedSegments`, grouping adjacent launchers into a\n * single `launcher-group` segment. Charts are handled inline at the call site\n * because they render as standalone segments with no grouping semantics.\n */\nfunction pushResourceOwnedLauncherView(params: {\n resolvedSegments: ResourceOwnedInsertedViewSegment[];\n resolutionContext: LauncherResolutionContext;\n resourceType: string;\n viewRef: string;\n operationIdentifier: string | number | symbol;\n familyLabel: 'composite' | 'execution';\n launcher?: InsertedViewLauncherConfig;\n}): void {\n const {\n resolvedSegments,\n resolutionContext,\n resourceType,\n viewRef,\n operationIdentifier,\n familyLabel,\n launcher,\n } = params;\n const resolvedView = resolveItemRef(\n {\n kind: LauncherItemTargetKind.RESOURCE_VIEW,\n resourceType,\n viewRef,\n },\n resolutionContext,\n );\n if (!resolvedView) {\n throw buildInsertedViewsConfigurationError(\n `Operation \"${String(operationIdentifier)}\" on resource \"${resourceType}\" could not resolve resource-owned ${familyLabel} view \"${viewRef}\".`,\n );\n }\n\n if (!isResourceOwnedLauncherView(resolvedView)) {\n throw buildInsertedViewsConfigurationError(\n `Operation \"${String(operationIdentifier)}\" on resource \"${resourceType}\" resolved ${familyLabel} view \"${viewRef}\" into unsupported content type \"${resolvedView.contentType}\".`,\n );\n }\n\n const launcherView: ResourceOwnedLauncherView = {\n kind: resolvedView.contentType,\n ref: resolvedView.viewRef,\n label: resolvedView.label,\n iconReference: resolvedView.iconReference,\n urlPath: resolvedView.urlPath,\n contextResourceIdentifiers: resolvedView.contextResourceIdentifiers,\n requiredFeatures: resolvedView.requiredFeatures,\n presentation: resolveInsertedViewLauncherConfig(launcher),\n };\n\n const previousSegment = resolvedSegments[resolvedSegments.length - 1];\n if (previousSegment?.type === 'launcher-group') {\n previousSegment.views.push(launcherView);\n return;\n }\n\n resolvedSegments.push({\n type: 'launcher-group',\n views: [launcherView],\n });\n}\n\nfunction buildInsertedViewsConfigurationError(message: string): Error {\n return FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.CONFIGURATION,\n {\n component: 'ResourceLayout_InsertedViews',\n message,\n },\n );\n}\n\nexport default ResourceLayout_InsertedViews;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceLayout_List.d.ts","sourceRoot":"","sources":["../../../../src/components/resources/ResourceLayout_List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAcjF,OAAO,EAOL,QAAQ,EAGT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,qBAAqB,EAOtB,MAAM,+DAA+D,CAAC;AAyEvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kFAAkF,CAAA;AAOvH,OAAO,EAA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C,sCAAsC,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IA+jD/D,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,sCAAsC,GAAG,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAqC1I"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useCallback, useMemo, useEffect, useState, useRef } from 'react';
3
+ import { documentHeadingTag, useDocumentHeadingLevel } from '../../components/typography/document-heading-level.js';
3
4
  import { COLLECTION_SURFACE_ATTRIBUTE } from '../../components/resources/skeleton/DisplayLayout.js';
4
5
  import { useI18n } from '../../core/i18n/useI18n.js';
5
6
  import { useEventBus } from '../../core/events/useEventBus.js';
@@ -59,6 +60,7 @@ import { resolveResourceOperationPresetKey, resolveResourceOperationCustomView,
59
60
  import { ResourceLayout_OperationsItems } from '../../components/resources/ResourceLayout_OperationsItems.js';
60
61
  import { LoadingGate } from '../../core/loading/LoadingGate.js';
61
62
  import { Skeleton } from '../../components/feedback/skeleton.js';
63
+ import { useViewerCollectionControls, useViewerSummaryFields, ViewerFieldReaderProvider } from '../../core/navigation/viewer-field-reader.js';
62
64
  import { pickPreferredOperationForCoreSemanticAddressability } from '../../core/resources/resource-addressability.frontend.utils.js';
63
65
  import { viewerMayPerformOperation } from '../../core/navigation/launcher-resolution.js';
64
66
  import { useViewerEffectiveRolesInOrganization } from '../../core/navigation/launcher-runtime-availability.js';
@@ -67,6 +69,8 @@ const logger = LoggerFrontendService.getLogger();
67
69
  const logDebug = logger.debugByType('ResourceLayoutPreset_List_Default');
68
70
  logger.setDebugTypeLogging('ResourceLayoutPreset_List_Default', false);
69
71
  export const ResourceLayoutPreset_List_Default = ({ resourceContext, navigationZone, navigationInitiator, dataMode: propDataMode, sourceRelationship, showCharts = true, defaultViewMode = CollectionDisplayMode.CARDS, }) => {
72
+ // A bucket's label (a day, a group value) takes the outline's level under the page's `h1`; a fixed `h3` skipped one (#3867).
73
+ const GroupHeadingTag = documentHeadingTag(useDocumentHeadingLevel());
70
74
  const { resourceType, operation, operationId, resourceConfig, operationInitiator, contextualParameters, resolvePreferredOperation, navigateToResourceOperation, } = useResourceOperationSurface({
71
75
  resourceContext,
72
76
  navigationZone,
@@ -328,7 +332,7 @@ export const ResourceLayoutPreset_List_Default = ({ resourceContext, navigationZ
328
332
  // The transport context lets the parser exclude fields the transport already
329
333
  // pins (primary-scope FK + selected-route URL parameters) and classify FK
330
334
  // fields as reference selectors. See FilterFieldTransportContext.
331
- const { sortFields, filterFields, searchEnabled, filtersEnabled } = useMemo(() => {
335
+ const { sortFields: declaredSortFields, filterFields: declaredFilterFields, searchEnabled, filtersEnabled } = useMemo(() => {
332
336
  const listOp = operation;
333
337
  const searchOp = availableOperations.search;
334
338
  const sortFields = (listOp?.sortFields?.length ? listOp.sortFields : searchOp?.sortFields) ?? [];
@@ -350,6 +354,9 @@ export const ResourceLayoutPreset_List_Default = ({ resourceContext, navigationZ
350
354
  const readerFilterFields = ResourceLayoutUtils.withoutPinnedFilterFields(filterFields, resourceContext.pinnedFilters);
351
355
  return { sortFields, filterFields: readerFilterFields, searchEnabled, filtersEnabled };
352
356
  }, [availableOperations.search, operation, registry, resourceConfig, contextualParameters, resourceContext.parentResourcesRequirements, resourceContext.pinnedFilters]);
357
+ // Without a field the viewer may not read (`.readableBy`, #4434): no sort key, no filter, no board column.
358
+ // And no authored preset that assigns one (#4459 F13).
359
+ const { sortFields, filterFields, presetFilters: viewerPresetFilters } = useViewerCollectionControls(resourceConfig, declaredSortFields, declaredFilterFields, presetFilters);
353
360
  /*
354
361
  * The CALENDAR and the TIMELINE (#2298). The displayed month is local state shared by both, so switching between them
355
362
  * keeps the month. What it shows becomes a window on the date field(s) for the fetch (`displayWindows`), so the
@@ -409,9 +416,8 @@ export const ResourceLayoutPreset_List_Default = ({ resourceContext, navigationZ
409
416
  return { quickFilterDef: undefined, panelFilterFields: filterFields };
410
417
  return { quickFilterDef: def, panelFilterFields: filterFields.filter((f) => f !== def) };
411
418
  }, [filterFields, quickFilterFieldName]);
412
- const summaryFields = useMemo(() => {
413
- return ResourceLayoutUtils.detectSummaryFields(resourceConfig);
414
- }, [resourceConfig]);
419
+ // Without a field the viewer may not read (`.readableBy`, #4434): no column, rather than a column of empty cells.
420
+ const summaryFields = useViewerSummaryFields(resourceConfig);
415
421
  const errorLoadingLabel = useMemo(() => resolveComponentLabel({
416
422
  tComponent,
417
423
  componentType: FrontendComponentType.RESOURCES_LAYOUTS_LIST,
@@ -1161,7 +1167,7 @@ export const ResourceLayoutPreset_List_Default = ({ resourceContext, navigationZ
1161
1167
  field: quickFilterDef,
1162
1168
  value: filterValues[quickFilterDef.fieldName],
1163
1169
  onChange: handleQuickFilterChange,
1164
- } : undefined, presetFilters: presetFilters, search: inlineSearch.isVisible ? {
1170
+ } : undefined, presetFilters: viewerPresetFilters, search: inlineSearch.isVisible ? {
1165
1171
  query: inlineSearch.query,
1166
1172
  onChange: inlineSearch.handleChange,
1167
1173
  onClear: inlineSearch.handleClear,
@@ -1222,7 +1228,7 @@ export const ResourceLayoutPreset_List_Default = ({ resourceContext, navigationZ
1222
1228
  // Page-GLOBAL row index (offset by all prior buckets' item counts) so
1223
1229
  // "Select row N" aria labels don't restart at 1 in every day group.
1224
1230
  const rowOffset = renderedGroups.slice(0, groupIndex).reduce((n, g) => n + g.items.length, 0);
1225
- return (_jsxs("section", { className: "space-y-item-xs", children: [group.label && (_jsx("h3", { className: "text-xs font-medium text-muted-foreground", children: group.label })), _jsx("ul", { role: "list", "aria-label": group.label ?? listLabel, className: resolveCardsContainerClass(cardGridColumns), style: resolveCardsGridStyle(cardGridColumns), children: group.items.map((item, i) => renderCardsItem(item, rowOffset + i)) })] }, `${group.key}:${groupIndex}`));
1231
+ return (_jsxs("section", { className: "space-y-item-xs", children: [group.label && (_jsx(GroupHeadingTag, { className: "text-xs font-medium text-muted-foreground", children: group.label })), _jsx("ul", { role: "list", "aria-label": group.label ?? listLabel, className: resolveCardsContainerClass(cardGridColumns), style: resolveCardsGridStyle(cardGridColumns), children: group.items.map((item, i) => renderCardsItem(item, rowOffset + i)) })] }, `${group.key}:${groupIndex}`));
1226
1232
  }) })) : (_jsx("ul", { role: "list", "aria-label": listLabel, className: resolveCardsContainerClass(cardGridColumns), style: resolveCardsGridStyle(cardGridColumns), children: items.map(renderCardsItem) })), !boardColumns && !displayWindows && (_jsx(ResourceLayout_Pagination, { pagination: pagination, onPaginationChange: setPagination }))] }) })] }));
1227
1233
  };
1228
1234
  export function ResourceLayout_List({ preset, ...props }) {
@@ -1246,6 +1252,10 @@ export function ResourceLayout_List({ preset, ...props }) {
1246
1252
  // the spacing a parent puts between its children; a flex column that grows, so a destination declaring
1247
1253
  // `zoneContentFillsHeight` still reaches a preset or custom view whose root fills it (`flex-1 min-h-0`).
1248
1254
  // Inside an ordinary block parent `flex-1` does nothing.
1249
- return (_jsx(InPlaceOperationProvider, { resourceType: props.resourceContext.resourceType, children: _jsx("div", { className: "flex min-h-0 flex-1 flex-col", [COLLECTION_SURFACE_ATTRIBUTE]: true, children: body }) }));
1255
+ //
1256
+ // The field reader is provided here too, for the organization the collection is addressed in (#4434 review F2): the
1257
+ // backend reads a field's roles in that organization, so a platform operator viewing another tenant's rows is judged
1258
+ // there, by the same address the toolbar's Create already reads (`createViewer`).
1259
+ return (_jsx(InPlaceOperationProvider, { resourceType: props.resourceContext.resourceType, children: _jsx(ViewerFieldReaderProvider, { organizationId: resolveActionSurfaceOrganizationId(props.resourceContext.contextResourceIdentifiers, undefined) ?? undefined, children: _jsx("div", { className: "flex min-h-0 flex-1 flex-col", [COLLECTION_SURFACE_ATTRIBUTE]: true, children: body }) }) }));
1250
1260
  }
1251
1261
  //# sourceMappingURL=ResourceLayout_List.js.map