@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":"RelatedResourceSections.js","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/RelatedResourceSections.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,8BAA8B,GAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAsB,MAAM,qCAAqC,CAAC;AAEhG,OAAO,EAAE,uBAAuB,EAAE,MAAM,iEAAiE,CAAC;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC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AAO,eAAe,CAAC,CAAC,CAAC,cAAW,CAAC,4BAA4B,CAAC,EAAE,IAAI,YAAK,SAAS,GAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5G,CAAC","sourcesContent":["'use client';\n\nimport { COLLECTION_SURFACE_ATTRIBUTE } from '~wildo-frontend-lib/components/resources/skeleton/DisplayLayout';\nimport React, { useMemo } from 'react';\n\nimport {\n CoreResourceOperation,\n Resources_SharedUtils,\n getChildDirectionRelationships,\n type ResourceConfiguration_ResourceRelationships,\n} from '@wildo-ai/saas-models';\nimport { FrontendComponentType, type SectionConfig } from '@wildo-ai/presets-components-models';\n\nimport { ContentSectionContainer } from '~wildo-frontend-lib/components/sections/ContentSectionContainer';\nimport { resolveResourceHeaderLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { SectionHostHeadingContext } from '~wildo-frontend-lib/components/resources/skeleton/SectionHostHeadingContext';\nimport { EmbedRelatedResourceOperation, type EmbedRelatedResourceEdgeSelector } from './ResourceEmbeds';\nimport { useClaimChildComposition } from './ComposedChildrenRegistry';\nimport { describeEmbedRefusal } from './related-collection-confinement.utils';\nimport { useOptionalCompositeResourceContext } from './useEmbeddedResourceContext';\nimport { useOptionalDisplayTemplateContext } from '~wildo-frontend-lib/components/data-display/DisplayTemplateContext';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\n/**\n * The standard child block — scoped to the children a view actually wants.\n *\n * ## Why this exists rather than \"compose it yourself\"\n *\n * Placing children in a template must not be harder than letting them compose\n * automatically, or authors will keep the automatic mode and the configuration\n * axis it needed. Doing it by hand means wiring `ContentSectionContainer`,\n * resolving each child's title through i18n, and threading the heading context —\n * three chances to get it subtly wrong, per surface.\n *\n * Worse, hand-wiring invites NAMED `<Section>`s, and a named section is a\n * THREE-PLACE obligation: the JSX name, the hand-authored `layout.refs.sections`\n * manifest, and a documented slot with `textSlots` in the resource specification.\n * Miss the third and `validateStructuralSlotDescriptions` THROWS at ESM import,\n * crash-looping the companion. This component takes each section's title from the\n * CHILD RESOURCE's own header label — the same source automatic composition uses\n * — so placing children adds no refs entry, no spec slot, and no new i18n key.\n *\n * ## What it means for composition ownership\n *\n * It renders through `EmbedRelatedResourceOperation`, so it registers placement:\n * a template using it owns the child region and the automatic block stands down.\n * That is the point — \"these children, in this order\" replaces \"all owned\n * children, minus a per-edge suppression flag on each one you did not want\".\n */\n/** @wildo_source:part:start saas.frontend.related-resource-sections facet:layer:frontend facet:family:component */\nexport interface RelatedResourceSectionTarget {\n /** Child resource type. */\n resourceType: string;\n /** Disambiguates WHICH edge when the host has several to this target. */\n viaForeignKey?: EmbedRelatedResourceEdgeSelector;\n /** Defaults to LIST — the collection case. Use READ for a 1:1 child. */\n operationLike?: CoreResourceOperation;\n}\n\nexport interface RelatedResourceSectionsProps {\n /**\n * Children to place, in render order. Order here replaces the old `orderIndex`.\n *\n * A target whose every edge from the host carries a relationship `discriminator` or `condition` the\n * DISPLAYED row does not satisfy is omitted, silently, exactly as automatic composition omits it: a\n * recurring todo's occurrences section appears only on a recurring todo. Inside a display template a\n * constrained target waits for the row to load; with no display template there is no row to judge.\n *\n * Each collection lists the HOST RECORD's rows, never more (#3072): through a route naming the record (the runtime\n * selects the route under the record when the page's context would not), else by pinning the edge's foreign key\n * when the target's operation admits it as a filter. A target nothing can confine — no relationship to the host, a\n * `viaForeignKey` naming no live edge, two edges and no choice — is omitted with a warning naming the\n * cause, rather than listing every row the reader may read.\n */\n targets: ReadonlyArray<RelatedResourceSectionTarget | string>;\n /** How the sections arrange — the real section vocabulary, not a serializable subset. */\n config: SectionConfig;\n className?: string;\n}\n/** @wildo_source:part:end saas.frontend.related-resource-sections */\n\n/**\n * Is a placed child ruled out by the HOST ROW itself — every edge from the host to it carrying a\n * relationship `discriminator` or `condition` the displayed row does not satisfy?\n *\n * The automatic composition (`ResourceLayout_ContainerNested`) has always asked this through\n * `isRelationshipActiveForParent`; a template placing the same child did not, so a discriminated\n * edge — Wonder Todos' recurring occurrences, which exist only for a RECURRING todo — rendered a tab\n * on every todo, and the backend refused its LIST for the ones it does not apply to (#1787). Same\n * predicate, same options, so the two composition paths cannot disagree about which children a row has.\n *\n * - `undefined` host row with no display template around the sections: nothing to judge, so no\n * opinion — a composite view placing children keeps the behaviour it had.\n * - `undefined` host row INSIDE a template: the row is still loading, and a constrained edge stays out\n * until it arrives (`onMissingParentResource: 'exclude'`), rather than flashing a tab it may retract.\n * - Conservative across edges: the child is ruled out only when EVERY edge to it is inactive. A target\n * narrowed by `viaForeignKey` to one of several edges is not judged per edge, which would need the\n * registry's field identifiers; no application has a discriminated edge beside a second one to the\n * same child, and this errs toward showing rather than hiding.\n */\nfunction isPlacedChildInactiveForHostRow(params: {\n hostResourceType: string;\n hostRelationships: ResourceConfiguration_ResourceRelationships | undefined;\n targetResourceType: string;\n hostRecord: Record<string, unknown> | undefined;\n}): boolean {\n if (!params.hostRelationships) {\n return false;\n }\n const edges = getChildDirectionRelationships(params.hostRelationships).filter((relationship) => {\n const childResourceType = relationship.resourceType1 === params.hostResourceType\n ? relationship.resourceType2\n : relationship.resourceType1;\n return childResourceType === params.targetResourceType;\n });\n return edges.length > 0 && edges.every((relationship) => !Resources_SharedUtils.isRelationshipActiveForParent(\n relationship,\n params.hostRecord,\n { onMissingParentResource: 'exclude', onConditionError: 'exclude' },\n ));\n}\n\n/** One warning per (host, target) — a surface re-renders freely. */\nconst warnedUnembeddableTargets = new Set<string>();\n\nfunction warnUnembeddableTarget(hostResourceType: string, targetResourceType: string, reason: string | undefined): void {\n const key = `${hostResourceType}::${targetResourceType}`;\n if (warnedUnembeddableTargets.has(key)) {\n return;\n }\n warnedUnembeddableTargets.add(key);\n LoggerFrontendService.getLogger().warn(\n `[related-resource-sections] \"${targetResourceType}\" was placed on \"${hostResourceType}\" but cannot be `\n + 'embedded here, so its section is omitted. Two causes are usual: the target exposes no ADDRESSABLE variant '\n + 'of the requested operation (a core verb declared REPOSITORY_ONLY or INTERNAL_CALL has no HTTP surface to '\n + 'embed), or nothing can confine its collection to this record — no route of it names the record and its '\n + 'operation admits no filter on the relationship\\'s foreign key, or no live relationship links the two, so it '\n + 'would list every row (#3072). '\n + (reason ? `Here: ${reason}` : 'Give the target an addressable variant, point `operationLike` at one it does expose, or stop placing it.'),\n );\n}\n\nexport function RelatedResourceSections({\n targets,\n config,\n className,\n}: RelatedResourceSectionsProps): React.JSX.Element | null {\n // Claim the region even when `targets` is empty: `targets={[]}` is how a\n // surface says \"composes no children\", which is a different statement from a\n // template that simply never mentioned them.\n useClaimChildComposition();\n\n const normalized = useMemo(\n () => targets.map((t) => (typeof t === 'string' ? { resourceType: t } : t)),\n [targets],\n );\n\n // OPTIONAL on purpose. `useEmbeddedResourceContext()` throws when there is no\n // resource-scoped host, which would make this component a NEW crash source for\n // any host that is not resource-scoped — the opposite of the fix. With no host\n // there is nothing to probe a target against, so filtering is simply skipped and\n // the embeds below fail as they always did.\n const embeddedContext = useOptionalCompositeResourceContext();\n const hostResourceType = embeddedContext?.hostResourceType ?? '';\n const hostRelationships = embeddedContext?.hostResourceConfig?.resourceRelationships;\n // The row this block sits under, when it sits inside a display template. See\n // `isPlacedChildInactiveForHostRow` for why \"no template\" and \"still loading\" differ.\n const displayTemplate = useOptionalDisplayTemplateContext();\n const hostRecord = displayTemplate?.data;\n\n // One i18n scope for the host; each section title is resolved per child below\n // from that child's own header label, which is what keeps this free of new keys.\n const { tResourceHeader, isReady } = useI18n({\n component: FrontendComponentType.RESOURCES_LAYOUTS_CONTAINER_NESTED,\n });\n\n // Drop targets this host cannot embed, rather than letting the first one take the\n // whole surface down. A target being un-embeddable is a NORMAL authorable state —\n // a resource may expose a core verb with no addressable HTTP variant (Wonder's\n // recurring occurrences declare LIST as INTERNAL_CALL only, deliberately) — and\n // the automatic container has always simply skipped such a child. The template\n // path threw instead, so ONE bad target rendered an error surface in place of the\n // entire page. Same shape as F7: one undisplayable child must not crash the parent.\n //\n // Skipped LOUDLY, not silently: the author named this target explicitly, so a\n // silent drop would be the \"dark capability\" failure this migration exists to end.\n const embeddable = useMemo(\n () => normalized.filter((target) => {\n if (!embeddedContext) {\n return true;\n }\n // A child the host ROW rules out is omitted SILENTLY: it is a declared condition doing its job,\n // not a misplaced target, so it earns no warning.\n if (displayTemplate && isPlacedChildInactiveForHostRow({\n hostResourceType,\n hostRelationships,\n targetResourceType: target.resourceType,\n hostRecord,\n })) {\n return false;\n }\n // The real build, attempted (what `canBuildOperationContext` does), so the warning can name WHY it refused.\n try {\n embeddedContext.buildOperationContext({\n resourceType: target.resourceType,\n operationLike: target.operationLike ?? CoreResourceOperation.LIST,\n relationshipFieldOverrides: target.viaForeignKey,\n });\n return true;\n } catch (error) {\n warnUnembeddableTarget(hostResourceType, target.resourceType, describeEmbedRefusal(error));\n return false;\n }\n }),\n [normalized, embeddedContext, hostResourceType, hostRelationships, displayTemplate, hostRecord],\n );\n\n const sections = useMemo(\n () => embeddable.map((target) => ({\n id: target.resourceType,\n title: resolveResourceHeaderLabel({\n tResourceHeader,\n resourceType: target.resourceType,\n key: 'title',\n }),\n content: (\n // The host renders the visible heading for the region, so the embedded\n // surface must not stack its own page chrome underneath it.\n <SectionHostHeadingContext.Provider value={true}>\n <EmbedRelatedResourceOperation\n resourceType={target.resourceType}\n operationLike={target.operationLike ?? CoreResourceOperation.LIST}\n relationshipFieldOverrides={target.viaForeignKey}\n />\n </SectionHostHeadingContext.Provider>\n ),\n })),\n [embeddable, tResourceHeader],\n );\n\n if (sections.length === 0) return null;\n\n /*\n * A block of related COLLECTIONS is a collection surface itself, so a record body holding it takes the page's width\n * (`DisplayLayout`'s derived width). Marked here rather than only inside each list: from the first paint (the lists\n * render once their labels load), and whichever tab is open, so switching to a tab that holds no list cannot flip\n * the width of the page around it.\n */\n const holdsCollection = embeddable.some((target) => {\n const operationLike = target.operationLike ?? CoreResourceOperation.LIST;\n return operationLike === CoreResourceOperation.LIST || operationLike === CoreResourceOperation.SEARCH;\n });\n const container = isReady ? <ContentSectionContainer sections={sections} config={config} className={className} /> : null;\n return holdsCollection ? <div {...{ [COLLECTION_SURFACE_ATTRIBUTE]: true }}>{container}</div> : container;\n}\n"]}
1
+ {"version":3,"file":"RelatedResourceSections.js","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/RelatedResourceSections.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,8BAA8B,GAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAsB,MAAM,qCAAqC,CAAC;AAEhG,OAAO,EAAE,uBAAuB,EAAE,MAAM,iEAAiE,CAAC;AAC1G,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6EAA6E,CAAC;AACxH,OAAO,EAAE,6BAA6B,EAAyC,MAAM,kBAAkB,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,oEAAoE,CAAC;AACvH,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AA0DpG,qEAAqE;AAErE;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAS,+BAA+B,CAAC,MAKxC;IACC,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,KAAK,GAAG,8BAA8B,CA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ChD,GACiC,CACtC;KACF,CAAC,CAAC,EACH,CAAC,UAAU,EAAE,eAAe,CAAC,CAC9B,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEvC;;;;;OAKG;IACH,MAAM,eAAe,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QACjD,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,IAAI,qBAAqB,CAAC,IAAI,CAAC;QACzE,OAAO,aAAa,KAAK,qBAAqB,CAAC,IAAI,IAAI,aAAa,KAAK,qBAAqB,CAAC,MAAM,CAAC;IACxG,CAAC,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,KAAC,uBAAuB,IAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACzH,OAAO,eAAe,CAAC,CAAC,CAAC,cAAW,CAAC,4BAA4B,CAAC,EAAE,IAAI,YAAK,SAAS,GAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5G,CAAC","sourcesContent":["'use client';\n\nimport { COLLECTION_SURFACE_ATTRIBUTE } from '~wildo-frontend-lib/components/resources/skeleton/DisplayLayout';\nimport React, { useMemo } from 'react';\n\nimport {\n CoreResourceOperation,\n Resources_SharedUtils,\n getChildDirectionRelationships,\n type ResourceConfiguration_ResourceRelationships,\n} from '@wildo-ai/saas-models';\nimport { FrontendComponentType, type SectionConfig } from '@wildo-ai/presets-components-models';\n\nimport { ContentSectionContainer } from '~wildo-frontend-lib/components/sections/ContentSectionContainer';\nimport { resolveResourceHeaderLabel } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { SectionHostHeadingContext } from '~wildo-frontend-lib/components/resources/skeleton/SectionHostHeadingContext';\nimport { EmbedRelatedResourceOperation, type EmbedRelatedResourceEdgeSelector } from './ResourceEmbeds';\nimport { useClaimChildComposition } from './ComposedChildrenRegistry';\nimport { describeEmbedRefusal } from './related-collection-confinement.utils';\nimport { useOptionalCompositeResourceContext } from './useEmbeddedResourceContext';\nimport { useOptionalDisplayTemplateContext } from '~wildo-frontend-lib/components/data-display/DisplayTemplateContext';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\n/**\n * The standard child block — scoped to the children a view actually wants.\n *\n * ## Why this exists rather than \"compose it yourself\"\n *\n * Placing children in a template must not be harder than letting them compose\n * automatically, or authors will keep the automatic mode and the configuration\n * axis it needed. Doing it by hand means wiring `ContentSectionContainer`,\n * resolving each child's title through i18n, and threading the heading context —\n * three chances to get it subtly wrong, per surface.\n *\n * Worse, hand-wiring invites NAMED `<Section>`s, and a named section is a\n * THREE-PLACE obligation: the JSX name, the hand-authored `layout.refs.sections`\n * manifest, and a documented slot with `textSlots` in the resource specification.\n * Miss the third and `validateStructuralSlotDescriptions` THROWS at ESM import,\n * crash-looping the companion. This component takes each section's title from the\n * CHILD RESOURCE's own header label — the same source automatic composition uses\n * — so placing children adds no refs entry, no spec slot, and no new i18n key.\n *\n * ## What it means for composition ownership\n *\n * It renders through `EmbedRelatedResourceOperation`, so it registers placement:\n * a template using it owns the child region and the automatic block stands down.\n * That is the point — \"these children, in this order\" replaces \"all owned\n * children, minus a per-edge suppression flag on each one you did not want\".\n */\n/** @wildo_source:part:start saas.frontend.related-resource-sections facet:layer:frontend facet:family:component */\nexport interface RelatedResourceSectionTarget {\n /** Child resource type. */\n resourceType: string;\n /** Disambiguates WHICH edge when the host has several to this target. */\n viaForeignKey?: EmbedRelatedResourceEdgeSelector;\n /** Defaults to LIST — the collection case. Use READ for a 1:1 child. */\n operationLike?: CoreResourceOperation;\n}\n\nexport interface RelatedResourceSectionsProps {\n /**\n * Children to place, in render order. Order here replaces the old `orderIndex`.\n *\n * A target whose every edge from the host carries a relationship `discriminator` or `condition` the\n * DISPLAYED row does not satisfy is omitted, silently, exactly as automatic composition omits it: a\n * recurring todo's occurrences section appears only on a recurring todo. Inside a display template a\n * constrained target waits for the row to load; with no display template there is no row to judge.\n *\n * Each collection lists the HOST RECORD's rows, never more: through a route naming the record (the runtime\n * selects the route under the record when the page's context would not), else by pinning the edge's foreign key\n * when the target's operation admits it as a filter. A target nothing can confine — no relationship to the host, a\n * `viaForeignKey` naming no live edge, two edges and no choice — is omitted with a warning naming the\n * cause, rather than listing every row the reader may read.\n */\n targets: ReadonlyArray<RelatedResourceSectionTarget | string>;\n /** How the sections arrange — the real section vocabulary, not a serializable subset. */\n config: SectionConfig;\n className?: string;\n}\n/** @wildo_source:part:end saas.frontend.related-resource-sections */\n\n/**\n * Is a placed child ruled out by the HOST ROW itself — every edge from the host to it carrying a\n * relationship `discriminator` or `condition` the displayed row does not satisfy?\n *\n * The automatic composition (`ResourceLayout_ContainerNested`) has always asked this through\n * `isRelationshipActiveForParent`; a template placing the same child did not, so a discriminated\n * edge — Wonder Todos' recurring occurrences, which exist only for a RECURRING todo — rendered a tab\n * on every todo, and the backend refused its LIST for the ones it does not apply to (#1787). Same\n * predicate, same options, so the two composition paths cannot disagree about which children a row has.\n *\n * - `undefined` host row with no display template around the sections: nothing to judge, so no\n * opinion — a composite view placing children keeps the behaviour it had.\n * - `undefined` host row INSIDE a template: the row is still loading, and a constrained edge stays out\n * until it arrives (`onMissingParentResource: 'exclude'`), rather than flashing a tab it may retract.\n * - Conservative across edges: the child is ruled out only when EVERY edge to it is inactive. A target\n * narrowed by `viaForeignKey` to one of several edges is not judged per edge, which would need the\n * registry's field identifiers; no application has a discriminated edge beside a second one to the\n * same child, and this errs toward showing rather than hiding.\n */\nfunction isPlacedChildInactiveForHostRow(params: {\n hostResourceType: string;\n hostRelationships: ResourceConfiguration_ResourceRelationships | undefined;\n targetResourceType: string;\n hostRecord: Record<string, unknown> | undefined;\n}): boolean {\n if (!params.hostRelationships) {\n return false;\n }\n const edges = getChildDirectionRelationships(params.hostRelationships).filter((relationship) => {\n const childResourceType = relationship.resourceType1 === params.hostResourceType\n ? relationship.resourceType2\n : relationship.resourceType1;\n return childResourceType === params.targetResourceType;\n });\n return edges.length > 0 && edges.every((relationship) => !Resources_SharedUtils.isRelationshipActiveForParent(\n relationship,\n params.hostRecord,\n { onMissingParentResource: 'exclude', onConditionError: 'exclude' },\n ));\n}\n\n/** One warning per (host, target) — a surface re-renders freely. */\nconst warnedUnembeddableTargets = new Set<string>();\n\nfunction warnUnembeddableTarget(hostResourceType: string, targetResourceType: string, reason: string | undefined): void {\n const key = `${hostResourceType}::${targetResourceType}`;\n if (warnedUnembeddableTargets.has(key)) {\n return;\n }\n warnedUnembeddableTargets.add(key);\n LoggerFrontendService.getLogger().warn(\n `[related-resource-sections] \"${targetResourceType}\" was placed on \"${hostResourceType}\" but cannot be `\n + 'embedded here, so its section is omitted. Two causes are usual: the target exposes no ADDRESSABLE variant '\n + 'of the requested operation (a core verb declared REPOSITORY_ONLY or INTERNAL_CALL has no HTTP surface to '\n + 'embed), or nothing can confine its collection to this record — no route of it names the record and its '\n + 'operation admits no filter on the relationship\\'s foreign key, or no live relationship links the two, so it '\n + 'would list every row (#3072). '\n + (reason ? `Here: ${reason}` : 'Give the target an addressable variant, point `operationLike` at one it does expose, or stop placing it.'),\n );\n}\n\nexport function RelatedResourceSections({\n targets,\n config,\n className,\n}: RelatedResourceSectionsProps): React.JSX.Element | null {\n // Claim the region even when `targets` is empty: `targets={[]}` is how a\n // surface says \"composes no children\", which is a different statement from a\n // template that simply never mentioned them.\n useClaimChildComposition();\n\n const normalized = useMemo(\n () => targets.map((t) => (typeof t === 'string' ? { resourceType: t } : t)),\n [targets],\n );\n\n // OPTIONAL on purpose. `useEmbeddedResourceContext()` throws when there is no\n // resource-scoped host, which would make this component a NEW crash source for\n // any host that is not resource-scoped — the opposite of the fix. With no host\n // there is nothing to probe a target against, so filtering is simply skipped and\n // the embeds below fail as they always did.\n const embeddedContext = useOptionalCompositeResourceContext();\n const hostResourceType = embeddedContext?.hostResourceType ?? '';\n const hostRelationships = embeddedContext?.hostResourceConfig?.resourceRelationships;\n // The row this block sits under, when it sits inside a display template. See\n // `isPlacedChildInactiveForHostRow` for why \"no template\" and \"still loading\" differ.\n const displayTemplate = useOptionalDisplayTemplateContext();\n const hostRecord = displayTemplate?.data;\n\n // One i18n scope for the host; each section title is resolved per child below\n // from that child's own header label, which is what keeps this free of new keys.\n const { tResourceHeader, isReady } = useI18n({\n component: FrontendComponentType.RESOURCES_LAYOUTS_CONTAINER_NESTED,\n });\n\n // Drop targets this host cannot embed, rather than letting the first one take the\n // whole surface down. A target being un-embeddable is a NORMAL authorable state —\n // a resource may expose a core verb with no addressable HTTP variant (Wonder's\n // recurring occurrences declare LIST as INTERNAL_CALL only, deliberately) — and\n // the automatic container has always simply skipped such a child. The template\n // path threw instead, so ONE bad target rendered an error surface in place of the\n // entire page. Same shape as F7: one undisplayable child must not crash the parent.\n //\n // Skipped LOUDLY, not silently: the author named this target explicitly, so a\n // silent drop would be the \"dark capability\" failure this migration exists to end.\n const embeddable = useMemo(\n () => normalized.filter((target) => {\n if (!embeddedContext) {\n return true;\n }\n // A child the host ROW rules out is omitted SILENTLY: it is a declared condition doing its job,\n // not a misplaced target, so it earns no warning.\n if (displayTemplate && isPlacedChildInactiveForHostRow({\n hostResourceType,\n hostRelationships,\n targetResourceType: target.resourceType,\n hostRecord,\n })) {\n return false;\n }\n // The real build, attempted (what `canBuildOperationContext` does), so the warning can name WHY it refused.\n try {\n embeddedContext.buildOperationContext({\n resourceType: target.resourceType,\n operationLike: target.operationLike ?? CoreResourceOperation.LIST,\n relationshipFieldOverrides: target.viaForeignKey,\n });\n return true;\n } catch (error) {\n warnUnembeddableTarget(hostResourceType, target.resourceType, describeEmbedRefusal(error));\n return false;\n }\n }),\n [normalized, embeddedContext, hostResourceType, hostRelationships, displayTemplate, hostRecord],\n );\n\n const sections = useMemo(\n () => embeddable.map((target) => ({\n id: target.resourceType,\n title: resolveResourceHeaderLabel({\n tResourceHeader,\n resourceType: target.resourceType,\n key: 'title',\n }),\n content: (\n // The host renders the visible heading for the region, so the embedded\n // surface must not stack its own page chrome underneath it.\n <SectionHostHeadingContext.Provider value={true}>\n <EmbedRelatedResourceOperation\n resourceType={target.resourceType}\n operationLike={target.operationLike ?? CoreResourceOperation.LIST}\n relationshipFieldOverrides={target.viaForeignKey}\n />\n </SectionHostHeadingContext.Provider>\n ),\n })),\n [embeddable, tResourceHeader],\n );\n\n if (sections.length === 0) return null;\n\n /*\n * A block of related COLLECTIONS is a collection surface itself, so a record body holding it takes the page's width\n * (`DisplayLayout`'s derived width). Marked here rather than only inside each list: from the first paint (the lists\n * render once their labels load), and whichever tab is open, so switching to a tab that holds no list cannot flip\n * the width of the page around it.\n */\n const holdsCollection = embeddable.some((target) => {\n const operationLike = target.operationLike ?? CoreResourceOperation.LIST;\n return operationLike === CoreResourceOperation.LIST || operationLike === CoreResourceOperation.SEARCH;\n });\n const container = isReady ? <ContentSectionContainer sections={sections} config={config} className={className} /> : null;\n return holdsCollection ? <div {...{ [COLLECTION_SURFACE_ATTRIBUTE]: true }}>{container}</div> : container;\n}\n"]}
@@ -104,7 +104,7 @@ export interface EmbedLinkedConversationsProps {
104
104
  className?: string;
105
105
  }
106
106
  /**
107
- * The conversations linked to the host record (#1630) — email threads an inbound channel handler tied to this
107
+ * The conversations linked to the host record — email threads an inbound channel handler tied to this
108
108
  * record with `ctx.thread.link`, newest first. Each opens to its messages in both directions, and an organization
109
109
  * administrator can close it.
110
110
  *
@@ -129,7 +129,7 @@ export interface EmbedExecutionDecisionsProps {
129
129
  className?: string;
130
130
  }
131
131
  /**
132
- * The decisions a conversational run raised and how each was answered (#2528): who decided, what they decided, what
132
+ * The decisions a conversational run raised and how each was answered: who decided, what they decided, what
133
133
  * they changed and why — the scope's agent-work decisions LIST, pinned to this run through `pinnedFilters`, so the
134
134
  * reader cannot widen it to another run, and it shows only what their roles may read (the scope's administrator).
135
135
  *
@@ -137,7 +137,7 @@ export interface EmbedExecutionDecisionsProps {
137
137
  */
138
138
  export declare function EmbedExecutionDecisions({ executionId, className }: EmbedExecutionDecisionsProps): React.JSX.Element;
139
139
  /**
140
- * May this viewer run the LIST of `resourceType` from the host record (#2589)? The roles the LIST declares, asked the way
140
+ * May this viewer run the LIST of `resourceType` from the host record? The roles the LIST declares, asked the way
141
141
  * the shell asks of any operation it offers (`viewerMayPerformOperation`). For a host that draws a titled section around
142
142
  * an embed: a section whose list the viewer may not read is not drawn at all, rather than as an empty heading or an
143
143
  * error. Presentation only: the backend still decides every request.
@@ -155,7 +155,7 @@ export interface EmbedRepresentationTeamProps {
155
155
  className?: string;
156
156
  }
157
157
  /**
158
- * The team serving one client relationship (#2589): the `representativeAssignments` LIST, pinned to that relationship
158
+ * The team serving one client relationship: the `representativeAssignments` LIST, pinned to that relationship
159
159
  * through `pinnedFilters`, with its assign and unassign verbs. Assigning from here names the relationship by itself: the
160
160
  * embed's context carries the host relationship, and the assign form fills `organizationRepresentationId` from it
161
161
  * (`resolveSemanticContextFieldValues`, pinned against the real configuration by
@@ -172,7 +172,7 @@ export interface EmbedRepresentationMailboxesProps {
172
172
  className?: string;
173
173
  }
174
174
  /**
175
- * The mailboxes of one client relationship (#2589): the `relationshipMailboxes` LIST, pinned to that relationship
175
+ * The mailboxes of one client relationship: the `relationshipMailboxes` LIST, pinned to that relationship
176
176
  * through `pinnedFilters`. Shown to a viewer the LIST admits.
177
177
  */
178
178
  export declare function EmbedRepresentationMailboxes({ organizationRelationshipId, className }: EmbedRepresentationMailboxesProps): React.JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceEmbeds.d.ts","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/ResourceEmbeds.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAUL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,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M,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,MAAM,EACN,cAAc,EACd,SAAS,EACT,GAAG,MAAM,EACV,EAAE,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA0BzC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,OAAO,EACP,MAAM,EACN,cAAc,EACd,SAAS,EACT,GAAG,MAAM,EACV,EAAE,sBAAsB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAoC5C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,SAAS,EACT,GAAG,MAAM,EACV,EAAE,uBAAuB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA6B7C;AAED,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,OAAO,EACP,SAAS,EACT,GAAG,MAAM,EACV,EAAE,0BAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA4BhD"}
1
+ {"version":3,"file":"ResourceEmbeds.d.ts","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/ResourceEmbeds.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAUL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,+DAA+D,CAAC;AAQtH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAsB/G,OAAO,EAGL,KAAK,+BAA+B,EACpC,KAAK,uCAAuC,EAC7C,MAAM,8BAA8B,CAAC;AAMtC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,CAA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,EACN,cAAc,EACd,SAAS,EACT,GAAG,MAAM,EACV,EAAE,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA0BzC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,YAAY,EACZ,OAAO,EACP,MAAM,EACN,cAAc,EACd,SAAS,EACT,GAAG,MAAM,EACV,EAAE,sBAAsB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAoC5C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,SAAS,EACT,GAAG,MAAM,EACV,EAAE,uBAAuB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA6B7C;AAED,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,OAAO,EACP,SAAS,EACT,GAAG,MAAM,EACV,EAAE,0BAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA4BhD"}
@@ -8,13 +8,15 @@ import { resolveRelationshipNestedReadSurface } from '../../../core/resources/re
8
8
  // module merges the whole ECharts payload into the entry chunk (Rollup merges
9
9
  // a module that is both statically and dynamically imported; no warning).
10
10
  import { ChartView } from '../../../components/views/chart-view/ChartView.lazy.js';
11
+ import { ChartReadDecision, useChartReadDecision } from '../../../core/navigation/useChartReadDecision.js';
11
12
  import { ExecutionView } from '../../../components/views/execution-view/ExecutionView.js';
12
13
  import { OnboardingView } from '../../../components/views/onboarding-view/OnboardingView.js';
13
14
  import { ResourceOperationSurface } from '../../../components/resources/ResourceOperationSurface.js';
14
15
  import { FrontendResourceUtils } from '../../../core/resources/frontend-resource.utils.js';
15
16
  import { buildResourceInsertedExecutionIdentity } from '../../../core/config/execution-view.schemas.js';
16
17
  import { buildResolvedInsertedChartDescriptor, buildResourceInsertedChartIdentity, } from '../../../core/config/chart-view.frontend.schemas.js';
17
- import { FeatureRouteGuard } from '../../../core/features/FeatureRouteGuard.js';
18
+ import { RequiredFeaturesGate } from '../../../core/features/RequiredFeaturesGate.js';
19
+ import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation.js';
18
20
  import { SectionHostHeadingContext } from '../../../components/resources/skeleton/SectionHostHeadingContext.js';
19
21
  import { EmbeddedResourceDescentBoundary } from './EmbeddedResourceDescent.js';
20
22
  import { useRegisterComposedChild } from './ComposedChildrenRegistry.js';
@@ -31,14 +33,19 @@ function EmbeddedChartRenderer(params) {
31
33
  ?.frontendConfiguration
32
34
  ?.chartViews
33
35
  ?.find((candidate) => candidate.ref === params.viewRef);
36
+ // #4252: a chart the backend's chart gate would refuse this viewer is not drawn (nor while their roles load). A
37
+ // dashboard tile is decided once more here, with the same answer.
38
+ const readDecision = useChartReadDecision(chartView?.chartDefinition);
34
39
  if (!chartView) {
35
40
  throw buildResourceEmbedConfigurationError(`Composite chart runtime cannot resolve chart view "${params.viewRef}" on resource "${params.resourceType}".`, {
36
41
  resourceType: params.resourceType,
37
42
  viewRef: params.viewRef,
38
43
  });
39
44
  }
45
+ if (readDecision !== ChartReadDecision.ALLOWED)
46
+ return null;
40
47
  const identity = buildResourceInsertedChartIdentity(params.resourceType, { ref: params.viewRef });
41
- return (_jsx("div", { className: params.className, children: _jsx(FeatureRouteGuard, { requiredFeatures: chartView.chartDefinition.requiredFeatures, children: _jsx(ChartView, { viewRef: identity.insertedViewRef, viewDefinition: chartView, runtimeDescriptor: buildResolvedInsertedChartDescriptor({
48
+ return (_jsx("div", { className: params.className, children: _jsx(RequiredFeaturesGate, { requiredFeatures: chartView.chartDefinition.requiredFeatures, presentation: RequiredFeaturesGatePresentation.TILE, lockedTileHeight: params.height ?? undefined, children: _jsx(ChartView, { viewRef: identity.insertedViewRef, viewDefinition: chartView, runtimeDescriptor: buildResolvedInsertedChartDescriptor({
42
49
  identity,
43
50
  chartView,
44
51
  contextResourceIdentifiers: params.contextResourceIdentifiers ?? {},
@@ -67,10 +74,10 @@ export function EmbedComposite({ viewRef, className, }) {
67
74
  const hostRow = host?.hostResourceType
68
75
  ? host.contextResourceIdentifiers?.[host.hostResourceType] ?? 'no-row'
69
76
  : 'no-host';
70
- return (_jsx("div", { className: className, children: _jsx(EmbeddedResourceDescentBoundary, { descentKey: `composite:${viewRef}::${hostRow}`, children: _jsx(CompositeView, { viewRef: viewRef }) }) }));
77
+ return (_jsx("div", { className: className, children: _jsx(EmbeddedResourceDescentBoundary, { descentKey: `composite:${viewRef}::${hostRow}`, children: _jsx(CompositeView, { viewRef: viewRef, featureGatePresentation: RequiredFeaturesGatePresentation.TILE }) }) }));
71
78
  }
72
79
  function renderEmbeddedExecution(viewRef, navigationZone, contextResourceIdentifiers, className) {
73
- return (_jsx("div", { className: className, children: _jsx(EmbeddedResourceDescentBoundary, { descentKey: `execution:${viewRef}::${Object.values(contextResourceIdentifiers ?? {}).join(',') || 'no-row'}`, children: _jsx(ExecutionView, { viewRef: viewRef, navigationZone: navigationZone, contextResourceIdentifiers: contextResourceIdentifiers }) }) }));
80
+ return (_jsx("div", { className: className, children: _jsx(EmbeddedResourceDescentBoundary, { descentKey: `execution:${viewRef}::${Object.values(contextResourceIdentifiers ?? {}).join(',') || 'no-row'}`, children: _jsx(ExecutionView, { viewRef: viewRef, navigationZone: navigationZone, contextResourceIdentifiers: contextResourceIdentifiers, featureGatePresentation: RequiredFeaturesGatePresentation.TILE }) }) }));
74
81
  }
75
82
  export function EmbedExecution({ viewRef, contextResourceIdentifiers, className, }) {
76
83
  const compositeContext = useEmbeddedResourceHostContext();
@@ -204,7 +211,7 @@ export function EmbedRelatedResourceList({ resourceType, viaForeignKey, classNam
204
211
  return (_jsx(EmbedRelatedResourceOperation, { resourceType: resourceType, operationLike: CoreResourceOperation.LIST, relationshipFieldOverrides: viaForeignKey, className: className }));
205
212
  }
206
213
  /**
207
- * The conversations linked to the host record (#1630) — email threads an inbound channel handler tied to this
214
+ * The conversations linked to the host record — email threads an inbound channel handler tied to this
208
215
  * record with `ctx.thread.link`, newest first. Each opens to its messages in both directions, and an organization
209
216
  * administrator can close it.
210
217
  *
@@ -227,7 +234,7 @@ export function EmbedLinkedConversations({ className }) {
227
234
  if (!hostResourceId) {
228
235
  throw buildResourceEmbedConfigurationError('EmbedLinkedConversations() needs a host RECORD: place it on a READ surface, where the record it lists conversations for exists.', { hostResourceType });
229
236
  }
230
- // Threads are linked by type and id, not by a relationship, so this embed confines them itself (#3072).
237
+ // Threads are linked by type and id, not by a relationship, so this embed confines them itself.
231
238
  return compositeResourceContext.buildOperationContext({
232
239
  resourceType: CoreResourceType.CONVERSATION_THREADS,
233
240
  operationLike: CoreResourceOperation.LIST,
@@ -243,7 +250,7 @@ export function EmbedLinkedConversations({ className }) {
243
250
  /** @wildo_source:part:end saas.frontend.linked-conversations-embed */
244
251
  /**
245
252
  * Where the decisions a conversational run raised are recorded: in the scope of the run they paused, so the store is a
246
- * function of the run's own variant (#1599, `agentWorkDecisions`).
253
+ * function of the run's own variant (`agentWorkDecisions`).
247
254
  */
248
255
  const DECISIONS_OF_CONVERSATIONAL_RUN = {
249
256
  [CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.USER_AGENT_WORK_DECISIONS,
@@ -251,7 +258,7 @@ const DECISIONS_OF_CONVERSATIONAL_RUN = {
251
258
  [CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.APPLICATION_AGENT_WORK_DECISIONS,
252
259
  };
253
260
  /**
254
- * The decisions a conversational run raised and how each was answered (#2528): who decided, what they decided, what
261
+ * The decisions a conversational run raised and how each was answered: who decided, what they decided, what
255
262
  * they changed and why — the scope's agent-work decisions LIST, pinned to this run through `pinnedFilters`, so the
256
263
  * reader cannot widen it to another run, and it shows only what their roles may read (the scope's administrator).
257
264
  *
@@ -266,7 +273,7 @@ export function EmbedExecutionDecisions({ executionId, className }) {
266
273
  if (!decisionsResourceType) {
267
274
  throw buildResourceEmbedConfigurationError('EmbedExecutionDecisions() lists the decisions of a conversational RUN: place it on a flowActorExecutions READ surface.', { hostResourceType });
268
275
  }
269
- // A decision names its run by reference, not by a relationship, so this embed confines them itself (#3072).
276
+ // A decision names its run by reference, not by a relationship, so this embed confines them itself.
270
277
  return compositeResourceContext.buildOperationContext({
271
278
  resourceType: decisionsResourceType,
272
279
  operationLike: CoreResourceOperation.LIST,
@@ -290,7 +297,7 @@ function warnUnlistableRelatedResource(hostResourceType, resourceType, reason) {
290
297
  + `asking whether the viewer may read it is not drawn.${reason ? ` ${reason}` : ''}`);
291
298
  }
292
299
  /**
293
- * May this viewer run the LIST of `resourceType` from the host record (#2589)? The roles the LIST declares, asked the way
300
+ * May this viewer run the LIST of `resourceType` from the host record? The roles the LIST declares, asked the way
294
301
  * the shell asks of any operation it offers (`viewerMayPerformOperation`). For a host that draws a titled section around
295
302
  * an embed: a section whose list the viewer may not read is not drawn at all, rather than as an empty heading or an
296
303
  * error. Presentation only: the backend still decides every request.
@@ -308,7 +315,7 @@ pinnedFilters) {
308
315
  return useMemo(() => {
309
316
  if (pinnedFilters === null)
310
317
  return false;
311
- // A LIST that cannot be embedded on this host — one nothing could confine to the host record (#3072) — is one the
318
+ // A LIST that cannot be embedded on this host — one nothing could confine to the host record — is one the
312
319
  // viewer cannot read HERE, whatever their roles: answered `false` rather than thrown from a hook that only asks.
313
320
  let list;
314
321
  try {
@@ -324,7 +331,7 @@ pinnedFilters) {
324
331
  }, [compositeResourceContext, resourceType, viewer, pinKey, pinnedFilters === null]);
325
332
  }
326
333
  /**
327
- * One LIST pinned to the host relationship, shown only to a viewer the LIST admits (#2589).
334
+ * One LIST pinned to the host relationship, shown only to a viewer the LIST admits.
328
335
  *
329
336
  * The client page is read by the firm's members as well as its administrators, and a section they cannot read must not
330
337
  * appear as an error in the middle of the page: a list the viewer may not run is not drawn at all. Presentation only:
@@ -349,7 +356,7 @@ function useRepresentationPinnedList(params) {
349
356
  }, [compositeResourceContext, hostResourceType, viewerMayList, embedName, resourceType, pinKey]);
350
357
  }
351
358
  /**
352
- * The team serving one client relationship (#2589): the `representativeAssignments` LIST, pinned to that relationship
359
+ * The team serving one client relationship: the `representativeAssignments` LIST, pinned to that relationship
353
360
  * through `pinnedFilters`, with its assign and unassign verbs. Assigning from here names the relationship by itself: the
354
361
  * embed's context carries the host relationship, and the assign form fills `organizationRepresentationId` from it
355
362
  * (`resolveSemanticContextFieldValues`, pinned against the real configuration by
@@ -366,7 +373,7 @@ export function EmbedRepresentationTeam({ organizationRepresentationId, classNam
366
373
  return resourceContext ? renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className) : null;
367
374
  }
368
375
  /**
369
- * The mailboxes of one client relationship (#2589): the `relationshipMailboxes` LIST, pinned to that relationship
376
+ * The mailboxes of one client relationship: the `relationshipMailboxes` LIST, pinned to that relationship
370
377
  * through `pinnedFilters`. Shown to a viewer the LIST admits.
371
378
  */
372
379
  export function EmbedRepresentationMailboxes({ organizationRelationshipId, className }) {
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceEmbeds.js","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/ResourceEmbeds.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,oCAAoC,EACpC,0CAA0C,EAC1C,qBAAqB,EACrB,gBAAgB,EAChB,2BAA2B,EAC3B,gBAAgB,EAChB,6CAA6C,EAC7C,mDAAmD,EACnD,8BAA8B,GAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mEAAmE,CAAC;AAC5G,OAAO,EAAE,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AAGtI,6EAA6E;AAC7E,8EAA8E;AAC9E,0EAA0E;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,gEAAgE,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,mEAAmE,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,qEAAqE,CAAC;AAErG,OAAO,EAAE,wBAAwB,EAAE,MAAM,mEAAmE,CAAC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,EACZ,OAAO,EACP,SAAS,EACT,GAAG,MAAM,EACkB;IAC3B,MAAM,EAAE,cAAc,EAAE,GAAG,8BAA8B,EAAE,CAAC;IAC5D,MAAM,wBAAwB,GAAG,0BAA0B,EAAE,CAAC;IAE9D,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,oCAAoC,CACxC,yDAAyD,EACzD,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,EAAE,CACjD,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,GAAG,wBAAwB,CAAC,qBAAqB,CAAC;QACrE,GAAG,MAAM;QACT,YAAY;QACZ,aAAa,EAAE,qBAAqB,CAAC,IAAI;KAC1C,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,sCAAsC,CAC7D,YAAY,EACZ,EAAE,GAAG,EAAE,OAAO,EAAE,CACjB,CAAC;IAEF,OAAO,uBAAuB,CAC5B,gBAAgB,CAAC,eAAe,EAChC,cAAc,EACd,qBAAqB,CAAC,yBAAyB,CAAC,eAAe,CAAC,0BAA0B,CAAC,EAC3F,SAAS,CACV,CAAC;AACJ,CAAC","sourcesContent":["import React, { useMemo } from 'react';\n\nimport {\n AGENT_WORK_DECISION_EXECUTION_FILTER,\n CONVERSATION_THREAD_LINKED_RESOURCE_FILTER,\n CoreResourceOperation,\n CoreResourceType,\n ErrorCustomMessageReference,\n ExecutionRefKind,\n RELATIONSHIP_MAILBOXES_OF_RELATIONSHIP_FILTER,\n REPRESENTATIVE_ASSIGNMENTS_OF_REPRESENTATION_FILTER,\n getChildDirectionRelationships,\n type ChartInputValues,\n} from '@wildo-ai/saas-models';\nimport { viewerMayPerformOperation } from '~wildo-frontend-lib/core/navigation/launcher-resolution';\nimport { useViewerEffectiveRoles } from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\nimport { resolveRelationshipNestedReadSurface } from '~wildo-frontend-lib/core/resources/relationship-surface-runtime.frontend.utils';\nimport type { NavigationSourceRelationship } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport type { FrontendResourceOperationContext } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n// ChartView MUST come from the `.lazy` wrapper — a static import of the real\n// module merges the whole ECharts payload into the entry chunk (Rollup merges\n// a module that is both statically and dynamically imported; no warning).\nimport { ChartView } from '~wildo-frontend-lib/components/views/chart-view/ChartView.lazy';\nimport { ExecutionView } from '~wildo-frontend-lib/components/views/execution-view/ExecutionView';\nimport { OnboardingView } from '~wildo-frontend-lib/components/views/onboarding-view/OnboardingView';\nimport type { OnboardingViewProps } from '~wildo-frontend-lib/components/views/onboarding-view/OnboardingView';\nimport { ResourceOperationSurface } from '~wildo-frontend-lib/components/resources/ResourceOperationSurface';\nimport { FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { buildResourceInsertedExecutionIdentity } from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport {\n buildResolvedInsertedChartDescriptor,\n buildResourceInsertedChartIdentity,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport { FeatureRouteGuard } from '~wildo-frontend-lib/core/features/FeatureRouteGuard';\nimport { SectionHostHeadingContext } from '~wildo-frontend-lib/components/resources/skeleton/SectionHostHeadingContext';\nimport { EmbeddedResourceDescentBoundary } from './EmbeddedResourceDescent';\nimport { useRegisterComposedChild } from './ComposedChildrenRegistry';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { describeEmbedRefusal } from './related-collection-confinement.utils';\n\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\nimport {\n useEmbeddedResourceHostContext,\n useOptionalEmbeddedResourceHostContext,\n} from '~wildo-frontend-lib/components/resources/embeds/EmbeddedResourceHostContext';\nimport {\n isSelfReferencingRelatedCollectionTarget,\n useEmbeddedResourceContext,\n type EmbeddedResourceOperationTarget,\n type EmbeddedResourceOperationTargetSelector,\n} from './useEmbeddedResourceContext';\nimport {\n useHostRecordDerivedParentContext,\n mergeDerivedParentIdentifiers,\n} from '~wildo-frontend-lib/components/views/composite-view/useHostRecordDerivedParentContext';\n\ninterface EmbeddedSurfaceProps {\n viewRef: string;\n className?: string;\n}\n\nexport interface EmbedChartProps extends EmbeddedSurfaceProps {\n resourceType: string;\n contextResourceIdentifiers?: Record<string, string>;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n /**\n * Explicit chart canvas height (`ChartView` default is 400). Needed because\n * `ChartView` sizes its ECharts canvas by this prop, not by its wrapper — a\n * height utility on the embed's `className` cannot shrink the chart. Pass a\n * number (px) or a CSS length for compact dashboard tiles.\n */\n height?: string | number;\n}\n\nfunction EmbeddedChartRenderer(params: {\n resourceType: string;\n viewRef: string;\n contextResourceIdentifiers?: Record<string, string>;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n className?: string;\n height?: string | number;\n}): React.JSX.Element {\n const { registry } = useResourceRegistry();\n const chartView = registry.resourceConfigurations[params.resourceType]\n ?.frontendConfiguration\n ?.chartViews\n ?.find((candidate) => candidate.ref === params.viewRef);\n if (!chartView) {\n throw buildResourceEmbedConfigurationError(\n `Composite chart runtime cannot resolve chart view \"${params.viewRef}\" on resource \"${params.resourceType}\".`,\n {\n resourceType: params.resourceType,\n viewRef: params.viewRef,\n },\n );\n }\n\n const identity = buildResourceInsertedChartIdentity(params.resourceType, { ref: params.viewRef });\n\n return (\n <div className={params.className}>\n <FeatureRouteGuard requiredFeatures={chartView.chartDefinition.requiredFeatures}>\n <ChartView\n viewRef={identity.insertedViewRef}\n viewDefinition={chartView}\n runtimeDescriptor={buildResolvedInsertedChartDescriptor({\n identity,\n chartView,\n contextResourceIdentifiers: params.contextResourceIdentifiers ?? {},\n })}\n contextResourceIdentifiers={params.contextResourceIdentifiers}\n inputs={params.inputs}\n urlParamValues={params.urlParamValues}\n {...(params.height != null ? { height: params.height } : {})}\n // Embedded composite tile → a data-fetch failure degrades locally in the\n // card, no page-level toast (per-widget error isolation).\n localErrorOnly\n />\n </FeatureRouteGuard>\n </div>\n );\n}\n\nexport function EmbedChart({\n resourceType,\n viewRef,\n contextResourceIdentifiers,\n inputs,\n urlParamValues,\n className,\n height,\n}: EmbedChartProps): React.JSX.Element {\n const compositeContext = useEmbeddedResourceHostContext();\n\n return (\n <EmbeddedChartRenderer\n resourceType={resourceType}\n viewRef={viewRef}\n contextResourceIdentifiers={{\n ...(compositeContext.contextResourceIdentifiers ?? {}),\n ...(contextResourceIdentifiers ?? {}),\n }}\n inputs={inputs}\n urlParamValues={urlParamValues}\n className={className}\n height={height}\n />\n );\n}\n\n/**\n * @wildo_source:part:start saas.frontend.onboarding-view\n *\n * Places an onboarding document on a screen. Import from `@wildo-ai/saas-frontend-lib`.\n */\nexport interface EmbedOnboardingProps {\n /** The document to show — list it on the module's `onboardingViews` too, or its progress is not saved. */\n document: OnboardingViewProps['document'];\n /** Label namespace override, when the document is rendered as part of a larger view. Usually omitted. */\n viewRef?: string;\n /** Save this document's progress under a registered guidance flow's ref instead of its own. Usually omitted. */\n guidanceFlowRef?: string;\n className?: string;\n}\n/** @wildo_source:part:end saas.frontend.onboarding-view */\n\nexport function EmbedOnboarding({\n document,\n viewRef,\n guidanceFlowRef,\n className,\n}: EmbedOnboardingProps): React.JSX.Element {\n return (\n <div className={className}>\n <OnboardingView\n document={document}\n viewRef={viewRef}\n guidanceFlowRef={guidanceFlowRef}\n />\n </div>\n );\n}\n\nexport function EmbedComposite({\n viewRef,\n className,\n}: EmbeddedSurfaceProps): React.JSX.Element {\n // The host record this composite hangs off — used to key the descent, so the\n // SAME composite over a different record still nests while a genuine revisit\n // is refused. Optional context: a composite embedded outside a resource host\n // keys on the view alone, which still catches direct self-embedding.\n const host = useOptionalEmbeddedResourceHostContext();\n const hostRow = host?.hostResourceType\n ? host.contextResourceIdentifiers?.[host.hostResourceType] ?? 'no-row'\n : 'no-host';\n\n return (\n <div className={className}>\n {/*\n D9 — a composite view is the THIRD descent path, and the one most likely\n to recurse in practice: composites in this repository already embed\n `EmbedHostResourceOperation` with `operationLike: READ`, which mounts a\n full record surface that composes its own children. A composite that\n reaches itself again — directly, or through a second composite that links\n back — has no resource embed in the loop to stop it.\n */}\n <EmbeddedResourceDescentBoundary descentKey={`composite:${viewRef}::${hostRow}`}>\n <CompositeView viewRef={viewRef} />\n </EmbeddedResourceDescentBoundary>\n </div>\n );\n}\n\nexport interface EmbedExecutionProps extends EmbeddedSurfaceProps {\n contextResourceIdentifiers?: Record<string, string>;\n}\n\nfunction renderEmbeddedExecution(\n viewRef: string,\n navigationZone: ReturnType<typeof useEmbeddedResourceHostContext>['navigationZone'],\n contextResourceIdentifiers?: Record<string, string>,\n className?: string,\n): React.JSX.Element {\n return (\n <div className={className}>\n {/*\n D9 — an execution view is a DESCENT PATH in its own right, and closing it\n is not redundant with bounding resource embeds. A resource-operation embed\n inside an execution view is already bounded, so a mixed chain terminates;\n but an execution view that embeds ITSELF (`EmbedHostExecution` with its own\n `viewRef`) recurses with no resource embed anywhere in the loop, so nothing\n else would ever stop it.\n Keyed on `(viewRef, host row)` for the same reason resource descents are:\n the same view over a DIFFERENT record is legitimate nesting, the same view\n over the same record is a cycle.\n */}\n <EmbeddedResourceDescentBoundary\n descentKey={`execution:${viewRef}::${Object.values(contextResourceIdentifiers ?? {}).join(',') || 'no-row'}`}\n >\n <ExecutionView\n viewRef={viewRef}\n navigationZone={navigationZone}\n contextResourceIdentifiers={contextResourceIdentifiers}\n />\n </EmbeddedResourceDescentBoundary>\n </div>\n );\n}\n\nexport function EmbedExecution({\n viewRef,\n contextResourceIdentifiers,\n className,\n}: EmbedExecutionProps): React.JSX.Element {\n const compositeContext = useEmbeddedResourceHostContext();\n\n return renderEmbeddedExecution(\n viewRef,\n compositeContext.navigationZone,\n {\n ...(compositeContext.contextResourceIdentifiers ?? {}),\n ...(contextResourceIdentifiers ?? {}),\n },\n className,\n );\n}\n\nfunction buildResourceEmbedConfigurationError(\n message: string,\n context?: Record<string, unknown>,\n): Error {\n return FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.CONFIGURATION,\n {\n message,\n component: 'ResourceEmbeds',\n ...context,\n },\n );\n}\n\n/**\n * The identity of one embedded descent: the target resource and the ROW it is about — the record an operation\n * addresses (`getAddressedRecordId`), or, for a collection or a CREATE, the scope it lists or creates into.\n *\n * It used to read the type slot whatever the operation. A collection's type slot holds at most ambient scope, so\n * a host-own LIST embedded in that host's READ (composite → READ t-1 → LIST of tasks) took the READ's own key and\n * was refused as a CYCLE, rendering nothing (round-17 review). Keying every collection as \"no row\" instead would\n * make two lists of different scopes collide, so the collection's scope is its row: its identifiers without the\n * own-type slot, which on a collection is ambient.\n */\nexport function embeddedResourceDescentKey(resourceContext: FrontendResourceOperationContext): string {\n const recordId = FrontendResourceUtils.getInstance().getAddressedRecordId(resourceContext);\n if (recordId) return `embed:${resourceContext.resourceType}::${recordId}`;\n const scope = Object.fromEntries(Object.entries(resourceContext.contextResourceIdentifiers ?? {})\n .filter(([key]) => key !== resourceContext.resourceType));\n return `embed:${resourceContext.resourceType}::scope:${FrontendResourceUtils.buildContextResourceIdentifiersKey(scope)}`;\n}\n\nfunction renderEmbeddedResourceOperation(\n resourceContext: FrontendResourceOperationContext,\n navigationZone: ReturnType<typeof useEmbeddedResourceHostContext>['navigationZone'],\n navigationInitiator: ReturnType<typeof useEmbeddedResourceHostContext>['navigationInitiator'],\n className?: string,\n): React.JSX.Element {\n return (\n <div className={className}>\n {/*\n D7 — the HOST owns the framing, the embed never brings its own.\n `SectionHostHeadingContext` makes the embedded surface suppress its generic\n resource heading (and the page chrome that trails it), so a child placed in\n a template renders as CONTENT rather than as a second page inside the first.\n Without it an embed dropped straight into a display flow stacks its own\n heading, description, parent breadcrumb and back-arrow under the host's —\n the exact defect that had to be fixed in the nested container, arriving\n again through this door because the embed suppressed nothing.\n It is set unconditionally rather than only inside a titled <Section>: an\n author who placed the child decided where it goes, and a surface that\n injects a page header into someone else's flow depending on its ancestors\n is the context-dependent behaviour that made the original defect so hard\n to see. A record-specific `displayLabel` is data, not a duplicate heading,\n and is never suppressed by this context.\n */}\n {/*\n D9 — every embedded surface is one level of DESCENT and must be bounded.\n An embed may mount a full READ surface, which composes its own children,\n which may embed again; on a self-referencing or mutually-recursive edge\n that does not terminate. The key is `(target resource, row)` — the record\n addressed, or a collection's scope (`embeddedResourceDescentKey`) — so a\n legitimate hierarchy over distinct rows keeps descending while a genuine\n revisit of the same record is refused at the moment it happens.\n */}\n <EmbeddedResourceDescentBoundary\n descentKey={embeddedResourceDescentKey(resourceContext)}\n >\n <SectionHostHeadingContext.Provider value={true}>\n <ResourceOperationSurface\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n </SectionHostHeadingContext.Provider>\n </EmbeddedResourceDescentBoundary>\n </div>\n );\n}\n\nexport interface EmbedResourceOperationProps {\n resourceContext: FrontendResourceOperationContext;\n className?: string;\n}\n\nexport type EmbedHostResourceOperationProps = EmbeddedResourceOperationTarget\n & EmbeddedResourceOperationTargetSelector\n & {\n className?: string;\n };\n\n/** @wildo_source:part:start saas.frontend.related-resource-embeds facet:layer:frontend facet:family:component */\nexport type EmbedRelatedResourceOperationProps = EmbeddedResourceOperationTargetSelector\n & {\n resourceType: string;\n resourceId?: string;\n relationshipFieldOverrides?: Record<string, string>;\n additionalContext?: Record<string, unknown>;\n className?: string;\n };\n/** @wildo_source:part:end saas.frontend.related-resource-embeds */\n\nexport function EmbedResourceOperation({\n resourceContext,\n className,\n}: EmbedResourceOperationProps): React.JSX.Element {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n\n return renderEmbeddedResourceOperation(\n resourceContext,\n navigationZone,\n navigationInitiator,\n className,\n );\n}\n\nexport function EmbedHostResourceOperation({\n className,\n ...target\n}: EmbedHostResourceOperationProps): React.JSX.Element {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n\n const resourceContext = useMemo(\n () => compositeResourceContext.buildOperationContext(target),\n // Keyed by the target's *value*, not the fresh-every-render rest-object identity.\n // buildOperationContext clones resource configs to assemble the context; calling it\n // inline each render churns those clones (the 603-config heap growth) and hands a new\n // `resourceContext` identity to the operation surface, re-firing its context-keyed\n // effects — the composite re-render loop. Recomputes only on a real target / context change.\n // eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally keyed by JSON value of `target`\n [compositeResourceContext, JSON.stringify(target)],\n );\n\n return renderEmbeddedResourceOperation(\n resourceContext,\n navigationZone,\n navigationInitiator,\n className,\n );\n}\n\nexport type EmbedRelatedResourceOperationTarget = Omit<EmbedRelatedResourceOperationProps, 'className'>;\n\nexport function EmbedRelatedResourceOperation({\n className,\n ...target\n}: EmbedRelatedResourceOperationProps): React.JSX.Element {\n // D1 — claim this child for the template that placed it, so the host's\n // automatic composition skips it instead of rendering a second copy below.\n // A no-op outside a registry host, so composite views are unaffected.\n useRegisterComposedChild(target.resourceType);\n const { navigationZone, navigationInitiator: hostNavigationInitiator } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n const { registry } = useResourceRegistry();\n\n const resourceContext = useMemo(\n () => {\n if (!target.resourceType) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedRelatedResourceOperation() requires a target resourceType.',\n { target },\n );\n }\n return compositeResourceContext.buildOperationContext(target);\n },\n // Keyed by target value, not the fresh rest-object identity — see EmbedHostResourceOperation.\n // eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally keyed by JSON value of `target`\n [compositeResourceContext, JSON.stringify(target)],\n );\n\n /*\n * The EDGE this child sits on, carried on every navigation it starts — what the automatic composition\n * (`ResourceLayout_ContainerNested`) already attaches as `sourceRelationship`.\n *\n * Without it a record opened from a TEMPLATE-placed relation never learnt its parent: the READ derives\n * its parent reference from `sourceRelationship`, so the child's declared `inChildView` presentation\n * could not apply. Wonder Todos declares a todo read inside its list as a linked BADGE back to the\n * list; its list page places the todos through `RelatedResourceSections`, and the badge never\n * appeared (#1945). Placing a child yourself must not cost the child its relationship.\n *\n * Resolved through `resolveRelationshipNestedReadSurface`, the same predicate the automatic\n * composition uses, so the two paths cannot disagree about which edge a child sits on. An edge the\n * target does not single out (no match, or several with no `viaForeignKey`) attaches nothing — the\n * behaviour before this, rather than a guess.\n *\n * A target of the HOST's own type sits on an edge only when it is the host's CHILDREN over a self-relationship\n * (`isSelfReferencingRelatedCollectionTarget`, the rule the runtime builds its context by); any other same-type\n * target is the host's own operation, and has no edge to carry.\n */\n const sourceRelationship = useMemo<NavigationSourceRelationship | undefined>(() => {\n const { hostResourceType, hostResourceId, hostResourceConfig } = compositeResourceContext;\n const isOwnTypeOperation = target.resourceType === hostResourceType && !isSelfReferencingRelatedCollectionTarget({\n target, hostResourceType, operation: resourceContext.operation, registry,\n });\n if (!target.resourceType || isOwnTypeOperation || !hostResourceConfig?.resourceRelationships) {\n return undefined;\n }\n const selectedForeignKey = target.relationshipFieldOverrides?.[hostResourceType];\n const edges = getChildDirectionRelationships(hostResourceConfig.resourceRelationships)\n .map((relationship) => resolveRelationshipNestedReadSurface({ parentResourceType: hostResourceType, relationship, registry }))\n .filter((edge): edge is NonNullable<typeof edge> => edge !== undefined)\n .filter((edge) => edge.childResourceType === target.resourceType)\n .filter((edge) => selectedForeignKey === undefined || edge.foreignKeyField === selectedForeignKey);\n if (edges.length !== 1) return undefined;\n const edge = edges[0]!;\n return {\n parentResourceType: hostResourceType,\n parentResourceId: hostResourceId || undefined,\n childResourceType: edge.childResourceType,\n foreignKeyField: edge.foreignKeyField,\n relationshipEdgeKey: edge.relationshipEdgeKey,\n inChildView: edge.inChildView,\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- keyed by the target's value, like the context above\n }, [compositeResourceContext, registry, resourceContext, JSON.stringify(target)]);\n const navigationInitiator = useMemo(\n () => (sourceRelationship\n ? { ...(hostNavigationInitiator ?? { sourceZone: navigationZone }), sourceRelationship }\n : hostNavigationInitiator),\n [hostNavigationInitiator, navigationZone, sourceRelationship],\n );\n\n return renderEmbeddedResourceOperation(\n resourceContext,\n navigationZone,\n navigationInitiator,\n className,\n );\n}\n\n/** @wildo_source:part:start saas.frontend.related-resource-embeds facet:layer:frontend facet:family:component */\n/**\n * Which EDGE to embed, when the host has more than one relationship to the same\n * target resource — two lists of todos, an assignee and a reviewer both pointing\n * at users. Keyed by the HOST resource type, valued with the foreign-key field\n * that identifies the edge.\n *\n * `resourceType` alone is ambiguous in that case, and the ambiguity is silent:\n * the resolver picks an edge and renders a plausible-looking wrong collection.\n */\nexport type EmbedRelatedResourceEdgeSelector = Record<string, string>;\n\nexport interface EmbedRelatedResourceListProps {\n /** Target child resource type. */\n resourceType: string;\n /** Disambiguates WHICH edge when the host has several to this target. */\n viaForeignKey?: EmbedRelatedResourceEdgeSelector;\n className?: string;\n}\n\n/**\n * Embed a related resource's LIST — the common case, spelled directly.\n *\n * A pure delegation to {@link EmbedRelatedResourceOperation}: no resolution,\n * addressability or context logic lives here. The operation embed stays the one\n * place that code exists, so a shortcut can never drift from it.\n */\nexport function EmbedRelatedResourceList({\n resourceType,\n viaForeignKey,\n className,\n}: EmbedRelatedResourceListProps): React.JSX.Element {\n return (\n <EmbedRelatedResourceOperation\n resourceType={resourceType}\n operationLike={CoreResourceOperation.LIST}\n relationshipFieldOverrides={viaForeignKey}\n className={className}\n />\n );\n}\n\n/** @wildo_source:part:start saas.frontend.linked-conversations-embed facet:layer:frontend facet:family:component facet:audience:app-developer */\nexport interface EmbedLinkedConversationsProps {\n className?: string;\n}\n\n/**\n * The conversations linked to the host record (#1630) — email threads an inbound channel handler tied to this\n * record with `ctx.thread.link`, newest first. Each opens to its messages in both directions, and an organization\n * administrator can close it.\n *\n * Place it in a READ template or a record composite of the resource your threads are linked to. It is the\n * `conversationThreads` LIST, pinned to this record through `pinnedFilters`: the reader cannot widen it to another\n * record, and it shows only what the reader's own roles may read (organization members read their organization's\n * conversations).\n *\n * @example\n * // frontend/src/modules/<slug>/resources/matters/MatterReadCustomView.tsx\n * <ResourceLayoutPreset_Read_Default {...props}>\n * <Section name=\"conversations\"><EmbedLinkedConversations /></Section>\n * </ResourceLayoutPreset_Read_Default>\n */\nexport function EmbedLinkedConversations({ className }: EmbedLinkedConversationsProps): React.JSX.Element {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n const { hostResourceType, hostResourceId } = compositeResourceContext;\n\n const resourceContext = useMemo((): FrontendResourceOperationContext => {\n if (!hostResourceId) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedLinkedConversations() needs a host RECORD: place it on a READ surface, where the record it lists conversations for exists.',\n { hostResourceType },\n );\n }\n // Threads are linked by type and id, not by a relationship, so this embed confines them itself (#3072).\n return compositeResourceContext.buildOperationContext({\n resourceType: CoreResourceType.CONVERSATION_THREADS,\n operationLike: CoreResourceOperation.LIST,\n requireAddressable: false,\n pinnedFilters: {\n [CONVERSATION_THREAD_LINKED_RESOURCE_FILTER.RESOURCE_TYPE]: hostResourceType,\n [CONVERSATION_THREAD_LINKED_RESOURCE_FILTER.RESOURCE_ID]: hostResourceId,\n },\n });\n }, [compositeResourceContext, hostResourceType, hostResourceId]);\n\n return renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className);\n}\n/** @wildo_source:part:end saas.frontend.linked-conversations-embed */\n\n/**\n * Where the decisions a conversational run raised are recorded: in the scope of the run they paused, so the store is a\n * function of the run's own variant (#1599, `agentWorkDecisions`).\n */\nconst DECISIONS_OF_CONVERSATIONAL_RUN: Readonly<Record<string, CoreResourceType>> = {\n [CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.USER_AGENT_WORK_DECISIONS,\n [CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.ORGANIZATION_AGENT_WORK_DECISIONS,\n [CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.APPLICATION_AGENT_WORK_DECISIONS,\n};\n\nexport interface EmbedExecutionDecisionsProps {\n /**\n * The run's `executionId`, its business id. Not the row's `_id`: a decision records the run it paused by the id the\n * runtime knows it by (`executionRef`), which is the business one.\n */\n executionId: string;\n className?: string;\n}\n\n/**\n * The decisions a conversational run raised and how each was answered (#2528): who decided, what they decided, what\n * they changed and why — the scope's agent-work decisions LIST, pinned to this run through `pinnedFilters`, so the\n * reader cannot widen it to another run, and it shows only what their roles may read (the scope's administrator).\n *\n * Place it on the READ surface of a `flowActorExecutions` variant; the decisions store follows the run's variant.\n */\nexport function EmbedExecutionDecisions({ executionId, className }: EmbedExecutionDecisionsProps): React.JSX.Element {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n const { hostResourceType } = compositeResourceContext;\n\n const resourceContext = useMemo((): FrontendResourceOperationContext => {\n const decisionsResourceType = DECISIONS_OF_CONVERSATIONAL_RUN[hostResourceType];\n if (!decisionsResourceType) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedExecutionDecisions() lists the decisions of a conversational RUN: place it on a flowActorExecutions READ surface.',\n { hostResourceType },\n );\n }\n // A decision names its run by reference, not by a relationship, so this embed confines them itself (#3072).\n return compositeResourceContext.buildOperationContext({\n resourceType: decisionsResourceType,\n operationLike: CoreResourceOperation.LIST,\n requireAddressable: false,\n pinnedFilters: {\n [AGENT_WORK_DECISION_EXECUTION_FILTER.KIND]: ExecutionRefKind.CONVERSATIONAL_EXECUTION,\n [AGENT_WORK_DECISION_EXECUTION_FILTER.ID]: executionId,\n },\n });\n }, [compositeResourceContext, hostResourceType, executionId]);\n\n return renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className);\n}\n\nconst warnedUnlistableRelatedResources = new Set<string>();\n\n/** Loud, once per (host, target): the author asked about a LIST this host cannot embed, and its section will not draw. */\nfunction warnUnlistableRelatedResource(hostResourceType: string, resourceType: string, reason: string | undefined): void {\n const key = `${hostResourceType}::${resourceType}`;\n if (warnedUnlistableRelatedResources.has(key)) return;\n warnedUnlistableRelatedResources.add(key);\n LoggerFrontendService.getLogger().warn(\n `[related-resource-list] the \"${resourceType}\" LIST cannot be embedded on \"${hostResourceType}\", so a section `\n + `asking whether the viewer may read it is not drawn.${reason ? ` ${reason}` : ''}`,\n );\n}\n\n/**\n * May this viewer run the LIST of `resourceType` from the host record (#2589)? The roles the LIST declares, asked the way\n * the shell asks of any operation it offers (`viewerMayPerformOperation`). For a host that draws a titled section around\n * an embed: a section whose list the viewer may not read is not drawn at all, rather than as an empty heading or an\n * error. Presentation only: the backend still decides every request.\n */\nexport function useViewerMayListRelatedResource(\n resourceType: string,\n /**\n * The filters the caller confines the list by itself, when no relationship does (see `pinnedFilters` on the target).\n * `null` when they are not known yet (the record they come from is still loading): the answer is `false`, without\n * asking, so a list that will be pinned is not judged — and warned about — unpinned in the meantime.\n */\n pinnedFilters?: Readonly<Record<string, string>> | null,\n): boolean {\n const compositeResourceContext = useEmbeddedResourceContext();\n const viewer = useViewerEffectiveRoles();\n const pinKey = pinnedFilters ? JSON.stringify(pinnedFilters) : '';\n return useMemo(() => {\n if (pinnedFilters === null) return false;\n // A LIST that cannot be embedded on this host — one nothing could confine to the host record (#3072) — is one the\n // viewer cannot read HERE, whatever their roles: answered `false` rather than thrown from a hook that only asks.\n let list: ReturnType<typeof compositeResourceContext.buildOperationContext>;\n try {\n list = compositeResourceContext.buildOperationContext({ resourceType, operationLike: CoreResourceOperation.LIST, requireAddressable: false, pinnedFilters: pinnedFilters ? JSON.parse(pinKey) as Record<string, string> : undefined });\n } catch (error) {\n warnUnlistableRelatedResource(compositeResourceContext.hostResourceType, resourceType, describeEmbedRefusal(error));\n return false;\n }\n const operation = list.operation as unknown as { roles?: readonly string[]; operationIdentifier: unknown; resourceOperationLike?: unknown };\n return viewerMayPerformOperation({ ...operation, resourceType }, viewer);\n // eslint-disable-next-line react-hooks/exhaustive-deps -- the pins are keyed by value (`pinKey`)\n }, [compositeResourceContext, resourceType, viewer, pinKey, pinnedFilters === null]);\n}\n\n/**\n * One LIST pinned to the host relationship, shown only to a viewer the LIST admits (#2589).\n *\n * The client page is read by the firm's members as well as its administrators, and a section they cannot read must not\n * appear as an error in the middle of the page: a list the viewer may not run is not drawn at all. Presentation only:\n * the backend still decides every request, and the pin only narrows what the LIST returns.\n */\nfunction useRepresentationPinnedList(params: {\n embedName: string;\n resourceType: CoreResourceType;\n pinnedFilters: Record<string, string>;\n}): FrontendResourceOperationContext | null {\n const compositeResourceContext = useEmbeddedResourceContext();\n const { hostResourceType } = compositeResourceContext;\n const { embedName, resourceType, pinnedFilters } = params;\n const viewerMayList = useViewerMayListRelatedResource(resourceType, pinnedFilters);\n const pinKey = JSON.stringify(pinnedFilters);\n return useMemo((): FrontendResourceOperationContext | null => {\n if (hostResourceType !== CoreResourceType.ORGANIZATION_REPRESENTATIONS) {\n throw buildResourceEmbedConfigurationError(\n `${embedName}() lists what belongs to one client relationship: place it on an organizationRepresentations READ surface.`,\n { hostResourceType },\n );\n }\n if (!viewerMayList) return null;\n // The relationship's own filter, given by the caller: a mailbox names the relationship, not this representation.\n return compositeResourceContext.buildOperationContext({\n resourceType, operationLike: CoreResourceOperation.LIST, requireAddressable: false, pinnedFilters: JSON.parse(pinKey) as Record<string, string>,\n });\n }, [compositeResourceContext, hostResourceType, viewerMayList, embedName, resourceType, pinKey]);\n}\n\nexport interface EmbedRepresentationTeamProps {\n /** The client relationship's id, as the representing organization holds it: the `organizationRepresentations` row. */\n organizationRepresentationId: string;\n className?: string;\n}\n\n/**\n * The team serving one client relationship (#2589): the `representativeAssignments` LIST, pinned to that relationship\n * through `pinnedFilters`, with its assign and unassign verbs. Assigning from here names the relationship by itself: the\n * embed's context carries the host relationship, and the assign form fills `organizationRepresentationId` from it\n * (`resolveSemanticContextFieldValues`, pinned against the real configuration by\n * `representation-team-assign-prefill.test.ts`); its member picker searches the organization's own members. Shown to the organization's administrators only, the roles the LIST admits; a member\n * reading the client does not see the team.\n */\nexport function EmbedRepresentationTeam({ organizationRepresentationId, className }: EmbedRepresentationTeamProps): React.JSX.Element | null {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const resourceContext = useRepresentationPinnedList({\n embedName: 'EmbedRepresentationTeam',\n resourceType: CoreResourceType.REPRESENTATIVE_ASSIGNMENTS,\n pinnedFilters: { [REPRESENTATIVE_ASSIGNMENTS_OF_REPRESENTATION_FILTER]: organizationRepresentationId },\n });\n return resourceContext ? renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className) : null;\n}\n\nexport interface EmbedRepresentationMailboxesProps {\n /**\n * The relationship's id, as the representation mirrors it (`organizationRelationshipId`): a mailbox names the\n * relationship, not the representing organization's row of it.\n */\n organizationRelationshipId: string;\n className?: string;\n}\n\n/**\n * The mailboxes of one client relationship (#2589): the `relationshipMailboxes` LIST, pinned to that relationship\n * through `pinnedFilters`. Shown to a viewer the LIST admits.\n */\nexport function EmbedRepresentationMailboxes({ organizationRelationshipId, className }: EmbedRepresentationMailboxesProps): React.JSX.Element | null {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const resourceContext = useRepresentationPinnedList({\n embedName: 'EmbedRepresentationMailboxes',\n resourceType: CoreResourceType.RELATIONSHIP_MAILBOXES,\n pinnedFilters: { [RELATIONSHIP_MAILBOXES_OF_RELATIONSHIP_FILTER]: organizationRelationshipId },\n });\n return resourceContext ? renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className) : null;\n}\n\nexport interface EmbedRelatedResourceSearchProps extends EmbedRelatedResourceListProps {}\n\n/**\n * Embed a related resource's SEARCH surface. Same delegation contract as\n * {@link EmbedRelatedResourceList} — only the semantic operation differs.\n */\nexport function EmbedRelatedResourceSearch({\n resourceType,\n viaForeignKey,\n className,\n}: EmbedRelatedResourceSearchProps): React.JSX.Element {\n return (\n <EmbedRelatedResourceOperation\n resourceType={resourceType}\n operationLike={CoreResourceOperation.SEARCH}\n relationshipFieldOverrides={viaForeignKey}\n className={className}\n />\n );\n}\n/** @wildo_source:part:end saas.frontend.related-resource-embeds */\n\nexport interface EmbedHostExecutionProps extends EmbeddedResourceOperationTarget {\n viewRef: string;\n className?: string;\n}\n\nexport interface EmbedRelatedExecutionProps extends EmbeddedResourceOperationTarget {\n resourceType: string;\n viewRef: string;\n className?: string;\n}\n\nexport interface EmbedHostChartProps extends EmbeddedResourceOperationTarget {\n viewRef: string;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n className?: string;\n}\n\nexport interface EmbedRelatedChartProps extends EmbeddedResourceOperationTarget {\n resourceType: string;\n viewRef: string;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n className?: string;\n}\n\nexport function EmbedHostChart({\n viewRef,\n inputs,\n urlParamValues,\n className,\n ...target\n}: EmbedHostChartProps): React.JSX.Element {\n const compositeResourceContext = useEmbeddedResourceContext();\n const resourceContext = compositeResourceContext.buildOperationContext({\n ...target,\n operationLike: CoreResourceOperation.READ,\n });\n\n // D2: a host-owned chart may require the host's PARENT scope (e.g. a\n // `todo-task-status` chart mandating `todos` when the host is a `task`). Derive\n // the parent id off the host record and merge it UNDER the URL context so the\n // chart's `parentResourcesRequirements` resolve.\n const derivedParents = useHostRecordDerivedParentContext(compositeResourceContext);\n\n return (\n <EmbeddedChartRenderer\n resourceType={compositeResourceContext.hostResourceType}\n viewRef={viewRef}\n contextResourceIdentifiers={mergeDerivedParentIdentifiers(\n FrontendResourceUtils.flattenContextIdentifiers(resourceContext.contextResourceIdentifiers),\n derivedParents,\n )}\n inputs={inputs}\n urlParamValues={urlParamValues}\n className={className}\n />\n );\n}\n\nexport function EmbedRelatedChart({\n resourceType,\n viewRef,\n inputs,\n urlParamValues,\n className,\n ...target\n}: EmbedRelatedChartProps): React.JSX.Element {\n if (!resourceType) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedRelatedChart() requires a target resourceType.',\n { target },\n );\n }\n\n const compositeResourceContext = useEmbeddedResourceContext();\n // A RELATED chart aggregates a COLLECTION of `resourceType` scoped by the host\n // record (e.g. the tasks of the current todo) — there is no single addressable\n // related-record id, so it must resolve a collection operation (LIST), NOT READ.\n // Resolving READ here required an addressable related id that never exists in a\n // host→related context and threw a composite configuration error (caught by\n // SurfaceErrorBoundary, degrading the surface). The host context (the parent\n // record's id) is still threaded into the related context via\n // `deriveChildResourceContext`, so the chart stays scoped to the host record.\n // (`EmbedHostChart` keeps READ: the host IS a single addressable record.)\n // Only the IDENTIFIERS are used: the chart is fetched through its own definition, never through this LIST, so the\n // LIST's confinement to the host record (#3072) has nothing to confine here and must not refuse the chart.\n const scopeIdentifiers = compositeResourceContext.deriveRelatedScopeIdentifiers({\n ...target,\n resourceType,\n operationLike: CoreResourceOperation.LIST,\n });\n\n return (\n <EmbeddedChartRenderer\n resourceType={resourceType}\n viewRef={viewRef}\n contextResourceIdentifiers={scopeIdentifiers}\n inputs={inputs}\n urlParamValues={urlParamValues}\n className={className}\n />\n );\n}\n\nexport function EmbedHostExecution({\n viewRef,\n className,\n ...target\n}: EmbedHostExecutionProps): React.JSX.Element {\n const { navigationZone } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n\n const resourceContext = compositeResourceContext.buildOperationContext({\n ...target,\n operationLike: CoreResourceOperation.READ,\n });\n\n // D2: a host-owned execution may anchor on the host's PARENT (e.g. a\n // `task-workspace` execution binding `todoId` when the host is a `task`). Derive\n // the parent id off the host record so the anchor resolves instead of \"No anchor\n // resolved\". Merged UNDER the URL context (URL ids win).\n const derivedParents = useHostRecordDerivedParentContext(compositeResourceContext);\n\n const insertedIdentity = buildResourceInsertedExecutionIdentity(\n compositeResourceContext.hostResourceType,\n { ref: viewRef },\n );\n\n return renderEmbeddedExecution(\n insertedIdentity.insertedViewRef,\n navigationZone,\n mergeDerivedParentIdentifiers(\n FrontendResourceUtils.flattenContextIdentifiers(resourceContext.contextResourceIdentifiers),\n derivedParents,\n ),\n className,\n );\n}\n\nexport function EmbedRelatedExecution({\n resourceType,\n viewRef,\n className,\n ...target\n}: EmbedRelatedExecutionProps): React.JSX.Element {\n const { navigationZone } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n\n if (!resourceType) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedRelatedExecution() requires a target resourceType.',\n { target: { resourceType, viewRef, ...target } },\n );\n }\n\n const resourceContext = compositeResourceContext.buildOperationContext({\n ...target,\n resourceType,\n operationLike: CoreResourceOperation.READ,\n });\n\n const insertedIdentity = buildResourceInsertedExecutionIdentity(\n resourceType,\n { ref: viewRef },\n );\n\n return renderEmbeddedExecution(\n insertedIdentity.insertedViewRef,\n navigationZone,\n FrontendResourceUtils.flattenContextIdentifiers(resourceContext.contextResourceIdentifiers),\n className,\n );\n}\n"]}
1
+ {"version":3,"file":"ResourceEmbeds.js","sourceRoot":"","sources":["../../../../../src/components/resources/embeds/ResourceEmbeds.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,oCAAoC,EACpC,0CAA0C,EAC1C,qBAAqB,EACrB,gBAAgB,EAChB,2BAA2B,EAC3B,gBAAgB,EAChB,6CAA6C,EAC7C,mDAAmD,EACnD,8BAA8B,GAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mEAAmE,CAAC;AAC5G,OAAO,EAAE,oCAAoC,EAAE,MAAM,gFAAgF,CAAC;AAGtI,6EAA6E;AAC7E,8EAA8E;AAC9E,0EAA0E;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,gEAAgE,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,aAAa,EAAE,MAAM,mEAAmE,CAAC;AAClG,OAAO,EA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port {\n AGENT_WORK_DECISION_EXECUTION_FILTER,\n CONVERSATION_THREAD_LINKED_RESOURCE_FILTER,\n CoreResourceOperation,\n CoreResourceType,\n ErrorCustomMessageReference,\n ExecutionRefKind,\n RELATIONSHIP_MAILBOXES_OF_RELATIONSHIP_FILTER,\n REPRESENTATIVE_ASSIGNMENTS_OF_REPRESENTATION_FILTER,\n getChildDirectionRelationships,\n type ChartInputValues,\n} from '@wildo-ai/saas-models';\nimport { viewerMayPerformOperation } from '~wildo-frontend-lib/core/navigation/launcher-resolution';\nimport { useViewerEffectiveRoles } from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\nimport { resolveRelationshipNestedReadSurface } from '~wildo-frontend-lib/core/resources/relationship-surface-runtime.frontend.utils';\nimport type { NavigationSourceRelationship } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport type { FrontendResourceOperationContext } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n// ChartView MUST come from the `.lazy` wrapper — a static import of the real\n// module merges the whole ECharts payload into the entry chunk (Rollup merges\n// a module that is both statically and dynamically imported; no warning).\nimport { ChartView } from '~wildo-frontend-lib/components/views/chart-view/ChartView.lazy';\nimport { ChartReadDecision, useChartReadDecision } from '~wildo-frontend-lib/core/navigation/useChartReadDecision';\nimport { ExecutionView } from '~wildo-frontend-lib/components/views/execution-view/ExecutionView';\nimport { OnboardingView } from '~wildo-frontend-lib/components/views/onboarding-view/OnboardingView';\nimport type { OnboardingViewProps } from '~wildo-frontend-lib/components/views/onboarding-view/OnboardingView';\nimport { ResourceOperationSurface } from '~wildo-frontend-lib/components/resources/ResourceOperationSurface';\nimport { FrontendResourceUtils } from '~wildo-frontend-lib/core/resources/frontend-resource.utils';\nimport { buildResourceInsertedExecutionIdentity } from '~wildo-frontend-lib/core/config/execution-view.schemas';\nimport {\n buildResolvedInsertedChartDescriptor,\n buildResourceInsertedChartIdentity,\n} from '~wildo-frontend-lib/core/config/chart-view.frontend.schemas';\nimport { RequiredFeaturesGate } from '~wildo-frontend-lib/core/features/RequiredFeaturesGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\nimport { SectionHostHeadingContext } from '~wildo-frontend-lib/components/resources/skeleton/SectionHostHeadingContext';\nimport { EmbeddedResourceDescentBoundary } from './EmbeddedResourceDescent';\nimport { useRegisterComposedChild } from './ComposedChildrenRegistry';\nimport { useResourceRegistry } from '~wildo-frontend-lib/core/resources/useResourceRegistry';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { describeEmbedRefusal } from './related-collection-confinement.utils';\n\nimport { CompositeView } from '~wildo-frontend-lib/components/views/composite-view/CompositeView';\nimport {\n useEmbeddedResourceHostContext,\n useOptionalEmbeddedResourceHostContext,\n} from '~wildo-frontend-lib/components/resources/embeds/EmbeddedResourceHostContext';\nimport {\n isSelfReferencingRelatedCollectionTarget,\n useEmbeddedResourceContext,\n type EmbeddedResourceOperationTarget,\n type EmbeddedResourceOperationTargetSelector,\n} from './useEmbeddedResourceContext';\nimport {\n useHostRecordDerivedParentContext,\n mergeDerivedParentIdentifiers,\n} from '~wildo-frontend-lib/components/views/composite-view/useHostRecordDerivedParentContext';\n\ninterface EmbeddedSurfaceProps {\n viewRef: string;\n className?: string;\n}\n\nexport interface EmbedChartProps extends EmbeddedSurfaceProps {\n resourceType: string;\n contextResourceIdentifiers?: Record<string, string>;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n /**\n * Explicit chart canvas height (`ChartView` default is 400). Needed because\n * `ChartView` sizes its ECharts canvas by this prop, not by its wrapper — a\n * height utility on the embed's `className` cannot shrink the chart. Pass a\n * number (px) or a CSS length for compact dashboard tiles.\n */\n height?: string | number;\n}\n\nfunction EmbeddedChartRenderer(params: {\n resourceType: string;\n viewRef: string;\n contextResourceIdentifiers?: Record<string, string>;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n className?: string;\n height?: string | number;\n}): React.JSX.Element | null {\n const { registry } = useResourceRegistry();\n const chartView = registry.resourceConfigurations[params.resourceType]\n ?.frontendConfiguration\n ?.chartViews\n ?.find((candidate) => candidate.ref === params.viewRef);\n // #4252: a chart the backend's chart gate would refuse this viewer is not drawn (nor while their roles load). A\n // dashboard tile is decided once more here, with the same answer.\n const readDecision = useChartReadDecision(chartView?.chartDefinition);\n if (!chartView) {\n throw buildResourceEmbedConfigurationError(\n `Composite chart runtime cannot resolve chart view \"${params.viewRef}\" on resource \"${params.resourceType}\".`,\n {\n resourceType: params.resourceType,\n viewRef: params.viewRef,\n },\n );\n }\n\n if (readDecision !== ChartReadDecision.ALLOWED) return null;\n const identity = buildResourceInsertedChartIdentity(params.resourceType, { ref: params.viewRef });\n\n return (\n <div className={params.className}>\n <RequiredFeaturesGate requiredFeatures={chartView.chartDefinition.requiredFeatures} presentation={RequiredFeaturesGatePresentation.TILE} lockedTileHeight={params.height ?? undefined}>\n <ChartView\n viewRef={identity.insertedViewRef}\n viewDefinition={chartView}\n runtimeDescriptor={buildResolvedInsertedChartDescriptor({\n identity,\n chartView,\n contextResourceIdentifiers: params.contextResourceIdentifiers ?? {},\n })}\n contextResourceIdentifiers={params.contextResourceIdentifiers}\n inputs={params.inputs}\n urlParamValues={params.urlParamValues}\n {...(params.height != null ? { height: params.height } : {})}\n // Embedded composite tile → a data-fetch failure degrades locally in the\n // card, no page-level toast (per-widget error isolation).\n localErrorOnly\n />\n </RequiredFeaturesGate>\n </div>\n );\n}\n\nexport function EmbedChart({\n resourceType,\n viewRef,\n contextResourceIdentifiers,\n inputs,\n urlParamValues,\n className,\n height,\n}: EmbedChartProps): React.JSX.Element {\n const compositeContext = useEmbeddedResourceHostContext();\n\n return (\n <EmbeddedChartRenderer\n resourceType={resourceType}\n viewRef={viewRef}\n contextResourceIdentifiers={{\n ...(compositeContext.contextResourceIdentifiers ?? {}),\n ...(contextResourceIdentifiers ?? {}),\n }}\n inputs={inputs}\n urlParamValues={urlParamValues}\n className={className}\n height={height}\n />\n );\n}\n\n/**\n * @wildo_source:part:start saas.frontend.onboarding-view\n *\n * Places an onboarding document on a screen. Import from `@wildo-ai/saas-frontend-lib`.\n */\nexport interface EmbedOnboardingProps {\n /** The document to show — list it on the module's `onboardingViews` too, or its progress is not saved. */\n document: OnboardingViewProps['document'];\n /** Label namespace override, when the document is rendered as part of a larger view. Usually omitted. */\n viewRef?: string;\n /** Save this document's progress under a registered guidance flow's ref instead of its own. Usually omitted. */\n guidanceFlowRef?: string;\n className?: string;\n}\n/** @wildo_source:part:end saas.frontend.onboarding-view */\n\nexport function EmbedOnboarding({\n document,\n viewRef,\n guidanceFlowRef,\n className,\n}: EmbedOnboardingProps): React.JSX.Element {\n return (\n <div className={className}>\n <OnboardingView\n document={document}\n viewRef={viewRef}\n guidanceFlowRef={guidanceFlowRef}\n />\n </div>\n );\n}\n\nexport function EmbedComposite({\n viewRef,\n className,\n}: EmbeddedSurfaceProps): React.JSX.Element {\n // The host record this composite hangs off — used to key the descent, so the\n // SAME composite over a different record still nests while a genuine revisit\n // is refused. Optional context: a composite embedded outside a resource host\n // keys on the view alone, which still catches direct self-embedding.\n const host = useOptionalEmbeddedResourceHostContext();\n const hostRow = host?.hostResourceType\n ? host.contextResourceIdentifiers?.[host.hostResourceType] ?? 'no-row'\n : 'no-host';\n\n return (\n <div className={className}>\n {/*\n D9 — a composite view is the THIRD descent path, and the one most likely\n to recurse in practice: composites in this repository already embed\n `EmbedHostResourceOperation` with `operationLike: READ`, which mounts a\n full record surface that composes its own children. A composite that\n reaches itself again — directly, or through a second composite that links\n back — has no resource embed in the loop to stop it.\n */}\n <EmbeddedResourceDescentBoundary descentKey={`composite:${viewRef}::${hostRow}`}>\n <CompositeView viewRef={viewRef} featureGatePresentation={RequiredFeaturesGatePresentation.TILE} />\n </EmbeddedResourceDescentBoundary>\n </div>\n );\n}\n\nexport interface EmbedExecutionProps extends EmbeddedSurfaceProps {\n contextResourceIdentifiers?: Record<string, string>;\n}\n\nfunction renderEmbeddedExecution(\n viewRef: string,\n navigationZone: ReturnType<typeof useEmbeddedResourceHostContext>['navigationZone'],\n contextResourceIdentifiers?: Record<string, string>,\n className?: string,\n): React.JSX.Element {\n return (\n <div className={className}>\n {/*\n D9 — an execution view is a DESCENT PATH in its own right, and closing it\n is not redundant with bounding resource embeds. A resource-operation embed\n inside an execution view is already bounded, so a mixed chain terminates;\n but an execution view that embeds ITSELF (`EmbedHostExecution` with its own\n `viewRef`) recurses with no resource embed anywhere in the loop, so nothing\n else would ever stop it.\n Keyed on `(viewRef, host row)` for the same reason resource descents are:\n the same view over a DIFFERENT record is legitimate nesting, the same view\n over the same record is a cycle.\n */}\n <EmbeddedResourceDescentBoundary\n descentKey={`execution:${viewRef}::${Object.values(contextResourceIdentifiers ?? {}).join(',') || 'no-row'}`}\n >\n <ExecutionView\n viewRef={viewRef}\n navigationZone={navigationZone}\n contextResourceIdentifiers={contextResourceIdentifiers}\n featureGatePresentation={RequiredFeaturesGatePresentation.TILE}\n />\n </EmbeddedResourceDescentBoundary>\n </div>\n );\n}\n\nexport function EmbedExecution({\n viewRef,\n contextResourceIdentifiers,\n className,\n}: EmbedExecutionProps): React.JSX.Element {\n const compositeContext = useEmbeddedResourceHostContext();\n\n return renderEmbeddedExecution(\n viewRef,\n compositeContext.navigationZone,\n {\n ...(compositeContext.contextResourceIdentifiers ?? {}),\n ...(contextResourceIdentifiers ?? {}),\n },\n className,\n );\n}\n\nfunction buildResourceEmbedConfigurationError(\n message: string,\n context?: Record<string, unknown>,\n): Error {\n return FrontendResourceUtils.buildConfigurationError(\n ErrorCustomMessageReference.CONFIGURATION,\n {\n message,\n component: 'ResourceEmbeds',\n ...context,\n },\n );\n}\n\n/**\n * The identity of one embedded descent: the target resource and the ROW it is about — the record an operation\n * addresses (`getAddressedRecordId`), or, for a collection or a CREATE, the scope it lists or creates into.\n *\n * It used to read the type slot whatever the operation. A collection's type slot holds at most ambient scope, so\n * a host-own LIST embedded in that host's READ (composite → READ t-1 → LIST of tasks) took the READ's own key and\n * was refused as a CYCLE, rendering nothing (round-17 review). Keying every collection as \"no row\" instead would\n * make two lists of different scopes collide, so the collection's scope is its row: its identifiers without the\n * own-type slot, which on a collection is ambient.\n */\nexport function embeddedResourceDescentKey(resourceContext: FrontendResourceOperationContext): string {\n const recordId = FrontendResourceUtils.getInstance().getAddressedRecordId(resourceContext);\n if (recordId) return `embed:${resourceContext.resourceType}::${recordId}`;\n const scope = Object.fromEntries(Object.entries(resourceContext.contextResourceIdentifiers ?? {})\n .filter(([key]) => key !== resourceContext.resourceType));\n return `embed:${resourceContext.resourceType}::scope:${FrontendResourceUtils.buildContextResourceIdentifiersKey(scope)}`;\n}\n\nfunction renderEmbeddedResourceOperation(\n resourceContext: FrontendResourceOperationContext,\n navigationZone: ReturnType<typeof useEmbeddedResourceHostContext>['navigationZone'],\n navigationInitiator: ReturnType<typeof useEmbeddedResourceHostContext>['navigationInitiator'],\n className?: string,\n): React.JSX.Element {\n return (\n <div className={className}>\n {/*\n D7 — the HOST owns the framing, the embed never brings its own.\n `SectionHostHeadingContext` makes the embedded surface suppress its generic\n resource heading (and the page chrome that trails it), so a child placed in\n a template renders as CONTENT rather than as a second page inside the first.\n Without it an embed dropped straight into a display flow stacks its own\n heading, description, parent breadcrumb and back-arrow under the host's —\n the exact defect that had to be fixed in the nested container, arriving\n again through this door because the embed suppressed nothing.\n It is set unconditionally rather than only inside a titled <Section>: an\n author who placed the child decided where it goes, and a surface that\n injects a page header into someone else's flow depending on its ancestors\n is the context-dependent behaviour that made the original defect so hard\n to see. A record-specific `displayLabel` is data, not a duplicate heading,\n and is never suppressed by this context.\n */}\n {/*\n D9 — every embedded surface is one level of DESCENT and must be bounded.\n An embed may mount a full READ surface, which composes its own children,\n which may embed again; on a self-referencing or mutually-recursive edge\n that does not terminate. The key is `(target resource, row)` — the record\n addressed, or a collection's scope (`embeddedResourceDescentKey`) — so a\n legitimate hierarchy over distinct rows keeps descending while a genuine\n revisit of the same record is refused at the moment it happens.\n */}\n <EmbeddedResourceDescentBoundary\n descentKey={embeddedResourceDescentKey(resourceContext)}\n >\n <SectionHostHeadingContext.Provider value={true}>\n <ResourceOperationSurface\n resourceContext={resourceContext}\n navigationZone={navigationZone}\n navigationInitiator={navigationInitiator}\n />\n </SectionHostHeadingContext.Provider>\n </EmbeddedResourceDescentBoundary>\n </div>\n );\n}\n\nexport interface EmbedResourceOperationProps {\n resourceContext: FrontendResourceOperationContext;\n className?: string;\n}\n\nexport type EmbedHostResourceOperationProps = EmbeddedResourceOperationTarget\n & EmbeddedResourceOperationTargetSelector\n & {\n className?: string;\n };\n\n/** @wildo_source:part:start saas.frontend.related-resource-embeds facet:layer:frontend facet:family:component */\nexport type EmbedRelatedResourceOperationProps = EmbeddedResourceOperationTargetSelector\n & {\n resourceType: string;\n resourceId?: string;\n relationshipFieldOverrides?: Record<string, string>;\n additionalContext?: Record<string, unknown>;\n className?: string;\n };\n/** @wildo_source:part:end saas.frontend.related-resource-embeds */\n\nexport function EmbedResourceOperation({\n resourceContext,\n className,\n}: EmbedResourceOperationProps): React.JSX.Element {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n\n return renderEmbeddedResourceOperation(\n resourceContext,\n navigationZone,\n navigationInitiator,\n className,\n );\n}\n\nexport function EmbedHostResourceOperation({\n className,\n ...target\n}: EmbedHostResourceOperationProps): React.JSX.Element {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n\n const resourceContext = useMemo(\n () => compositeResourceContext.buildOperationContext(target),\n // Keyed by the target's *value*, not the fresh-every-render rest-object identity.\n // buildOperationContext clones resource configs to assemble the context; calling it\n // inline each render churns those clones (the 603-config heap growth) and hands a new\n // `resourceContext` identity to the operation surface, re-firing its context-keyed\n // effects — the composite re-render loop. Recomputes only on a real target / context change.\n // eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally keyed by JSON value of `target`\n [compositeResourceContext, JSON.stringify(target)],\n );\n\n return renderEmbeddedResourceOperation(\n resourceContext,\n navigationZone,\n navigationInitiator,\n className,\n );\n}\n\nexport type EmbedRelatedResourceOperationTarget = Omit<EmbedRelatedResourceOperationProps, 'className'>;\n\nexport function EmbedRelatedResourceOperation({\n className,\n ...target\n}: EmbedRelatedResourceOperationProps): React.JSX.Element {\n // D1 — claim this child for the template that placed it, so the host's\n // automatic composition skips it instead of rendering a second copy below.\n // A no-op outside a registry host, so composite views are unaffected.\n useRegisterComposedChild(target.resourceType);\n const { navigationZone, navigationInitiator: hostNavigationInitiator } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n const { registry } = useResourceRegistry();\n\n const resourceContext = useMemo(\n () => {\n if (!target.resourceType) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedRelatedResourceOperation() requires a target resourceType.',\n { target },\n );\n }\n return compositeResourceContext.buildOperationContext(target);\n },\n // Keyed by target value, not the fresh rest-object identity — see EmbedHostResourceOperation.\n // eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally keyed by JSON value of `target`\n [compositeResourceContext, JSON.stringify(target)],\n );\n\n /*\n * The EDGE this child sits on, carried on every navigation it starts — what the automatic composition\n * (`ResourceLayout_ContainerNested`) already attaches as `sourceRelationship`.\n *\n * Without it a record opened from a TEMPLATE-placed relation never learnt its parent: the READ derives\n * its parent reference from `sourceRelationship`, so the child's declared `inChildView` presentation\n * could not apply. Wonder Todos declares a todo read inside its list as a linked BADGE back to the\n * list; its list page places the todos through `RelatedResourceSections`, and the badge never\n * appeared (#1945). Placing a child yourself must not cost the child its relationship.\n *\n * Resolved through `resolveRelationshipNestedReadSurface`, the same predicate the automatic\n * composition uses, so the two paths cannot disagree about which edge a child sits on. An edge the\n * target does not single out (no match, or several with no `viaForeignKey`) attaches nothing — the\n * behaviour before this, rather than a guess.\n *\n * A target of the HOST's own type sits on an edge only when it is the host's CHILDREN over a self-relationship\n * (`isSelfReferencingRelatedCollectionTarget`, the rule the runtime builds its context by); any other same-type\n * target is the host's own operation, and has no edge to carry.\n */\n const sourceRelationship = useMemo<NavigationSourceRelationship | undefined>(() => {\n const { hostResourceType, hostResourceId, hostResourceConfig } = compositeResourceContext;\n const isOwnTypeOperation = target.resourceType === hostResourceType && !isSelfReferencingRelatedCollectionTarget({\n target, hostResourceType, operation: resourceContext.operation, registry,\n });\n if (!target.resourceType || isOwnTypeOperation || !hostResourceConfig?.resourceRelationships) {\n return undefined;\n }\n const selectedForeignKey = target.relationshipFieldOverrides?.[hostResourceType];\n const edges = getChildDirectionRelationships(hostResourceConfig.resourceRelationships)\n .map((relationship) => resolveRelationshipNestedReadSurface({ parentResourceType: hostResourceType, relationship, registry }))\n .filter((edge): edge is NonNullable<typeof edge> => edge !== undefined)\n .filter((edge) => edge.childResourceType === target.resourceType)\n .filter((edge) => selectedForeignKey === undefined || edge.foreignKeyField === selectedForeignKey);\n if (edges.length !== 1) return undefined;\n const edge = edges[0]!;\n return {\n parentResourceType: hostResourceType,\n parentResourceId: hostResourceId || undefined,\n childResourceType: edge.childResourceType,\n foreignKeyField: edge.foreignKeyField,\n relationshipEdgeKey: edge.relationshipEdgeKey,\n inChildView: edge.inChildView,\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- keyed by the target's value, like the context above\n }, [compositeResourceContext, registry, resourceContext, JSON.stringify(target)]);\n const navigationInitiator = useMemo(\n () => (sourceRelationship\n ? { ...(hostNavigationInitiator ?? { sourceZone: navigationZone }), sourceRelationship }\n : hostNavigationInitiator),\n [hostNavigationInitiator, navigationZone, sourceRelationship],\n );\n\n return renderEmbeddedResourceOperation(\n resourceContext,\n navigationZone,\n navigationInitiator,\n className,\n );\n}\n\n/** @wildo_source:part:start saas.frontend.related-resource-embeds facet:layer:frontend facet:family:component */\n/**\n * Which EDGE to embed, when the host has more than one relationship to the same\n * target resource — two lists of todos, an assignee and a reviewer both pointing\n * at users. Keyed by the HOST resource type, valued with the foreign-key field\n * that identifies the edge.\n *\n * `resourceType` alone is ambiguous in that case, and the ambiguity is silent:\n * the resolver picks an edge and renders a plausible-looking wrong collection.\n */\nexport type EmbedRelatedResourceEdgeSelector = Record<string, string>;\n\nexport interface EmbedRelatedResourceListProps {\n /** Target child resource type. */\n resourceType: string;\n /** Disambiguates WHICH edge when the host has several to this target. */\n viaForeignKey?: EmbedRelatedResourceEdgeSelector;\n className?: string;\n}\n\n/**\n * Embed a related resource's LIST — the common case, spelled directly.\n *\n * A pure delegation to {@link EmbedRelatedResourceOperation}: no resolution,\n * addressability or context logic lives here. The operation embed stays the one\n * place that code exists, so a shortcut can never drift from it.\n */\nexport function EmbedRelatedResourceList({\n resourceType,\n viaForeignKey,\n className,\n}: EmbedRelatedResourceListProps): React.JSX.Element {\n return (\n <EmbedRelatedResourceOperation\n resourceType={resourceType}\n operationLike={CoreResourceOperation.LIST}\n relationshipFieldOverrides={viaForeignKey}\n className={className}\n />\n );\n}\n\n/** @wildo_source:part:start saas.frontend.linked-conversations-embed facet:layer:frontend facet:family:component facet:audience:app-developer */\nexport interface EmbedLinkedConversationsProps {\n className?: string;\n}\n\n/**\n * The conversations linked to the host record — email threads an inbound channel handler tied to this\n * record with `ctx.thread.link`, newest first. Each opens to its messages in both directions, and an organization\n * administrator can close it.\n *\n * Place it in a READ template or a record composite of the resource your threads are linked to. It is the\n * `conversationThreads` LIST, pinned to this record through `pinnedFilters`: the reader cannot widen it to another\n * record, and it shows only what the reader's own roles may read (organization members read their organization's\n * conversations).\n *\n * @example\n * // frontend/src/modules/<slug>/resources/matters/MatterReadCustomView.tsx\n * <ResourceLayoutPreset_Read_Default {...props}>\n * <Section name=\"conversations\"><EmbedLinkedConversations /></Section>\n * </ResourceLayoutPreset_Read_Default>\n */\nexport function EmbedLinkedConversations({ className }: EmbedLinkedConversationsProps): React.JSX.Element {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n const { hostResourceType, hostResourceId } = compositeResourceContext;\n\n const resourceContext = useMemo((): FrontendResourceOperationContext => {\n if (!hostResourceId) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedLinkedConversations() needs a host RECORD: place it on a READ surface, where the record it lists conversations for exists.',\n { hostResourceType },\n );\n }\n // Threads are linked by type and id, not by a relationship, so this embed confines them itself.\n return compositeResourceContext.buildOperationContext({\n resourceType: CoreResourceType.CONVERSATION_THREADS,\n operationLike: CoreResourceOperation.LIST,\n requireAddressable: false,\n pinnedFilters: {\n [CONVERSATION_THREAD_LINKED_RESOURCE_FILTER.RESOURCE_TYPE]: hostResourceType,\n [CONVERSATION_THREAD_LINKED_RESOURCE_FILTER.RESOURCE_ID]: hostResourceId,\n },\n });\n }, [compositeResourceContext, hostResourceType, hostResourceId]);\n\n return renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className);\n}\n/** @wildo_source:part:end saas.frontend.linked-conversations-embed */\n\n/**\n * Where the decisions a conversational run raised are recorded: in the scope of the run they paused, so the store is a\n * function of the run's own variant (`agentWorkDecisions`).\n */\nconst DECISIONS_OF_CONVERSATIONAL_RUN: Readonly<Record<string, CoreResourceType>> = {\n [CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.USER_AGENT_WORK_DECISIONS,\n [CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.ORGANIZATION_AGENT_WORK_DECISIONS,\n [CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS]: CoreResourceType.APPLICATION_AGENT_WORK_DECISIONS,\n};\n\nexport interface EmbedExecutionDecisionsProps {\n /**\n * The run's `executionId`, its business id. Not the row's `_id`: a decision records the run it paused by the id the\n * runtime knows it by (`executionRef`), which is the business one.\n */\n executionId: string;\n className?: string;\n}\n\n/**\n * The decisions a conversational run raised and how each was answered: who decided, what they decided, what\n * they changed and why — the scope's agent-work decisions LIST, pinned to this run through `pinnedFilters`, so the\n * reader cannot widen it to another run, and it shows only what their roles may read (the scope's administrator).\n *\n * Place it on the READ surface of a `flowActorExecutions` variant; the decisions store follows the run's variant.\n */\nexport function EmbedExecutionDecisions({ executionId, className }: EmbedExecutionDecisionsProps): React.JSX.Element {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n const { hostResourceType } = compositeResourceContext;\n\n const resourceContext = useMemo((): FrontendResourceOperationContext => {\n const decisionsResourceType = DECISIONS_OF_CONVERSATIONAL_RUN[hostResourceType];\n if (!decisionsResourceType) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedExecutionDecisions() lists the decisions of a conversational RUN: place it on a flowActorExecutions READ surface.',\n { hostResourceType },\n );\n }\n // A decision names its run by reference, not by a relationship, so this embed confines them itself.\n return compositeResourceContext.buildOperationContext({\n resourceType: decisionsResourceType,\n operationLike: CoreResourceOperation.LIST,\n requireAddressable: false,\n pinnedFilters: {\n [AGENT_WORK_DECISION_EXECUTION_FILTER.KIND]: ExecutionRefKind.CONVERSATIONAL_EXECUTION,\n [AGENT_WORK_DECISION_EXECUTION_FILTER.ID]: executionId,\n },\n });\n }, [compositeResourceContext, hostResourceType, executionId]);\n\n return renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className);\n}\n\nconst warnedUnlistableRelatedResources = new Set<string>();\n\n/** Loud, once per (host, target): the author asked about a LIST this host cannot embed, and its section will not draw. */\nfunction warnUnlistableRelatedResource(hostResourceType: string, resourceType: string, reason: string | undefined): void {\n const key = `${hostResourceType}::${resourceType}`;\n if (warnedUnlistableRelatedResources.has(key)) return;\n warnedUnlistableRelatedResources.add(key);\n LoggerFrontendService.getLogger().warn(\n `[related-resource-list] the \"${resourceType}\" LIST cannot be embedded on \"${hostResourceType}\", so a section `\n + `asking whether the viewer may read it is not drawn.${reason ? ` ${reason}` : ''}`,\n );\n}\n\n/**\n * May this viewer run the LIST of `resourceType` from the host record? The roles the LIST declares, asked the way\n * the shell asks of any operation it offers (`viewerMayPerformOperation`). For a host that draws a titled section around\n * an embed: a section whose list the viewer may not read is not drawn at all, rather than as an empty heading or an\n * error. Presentation only: the backend still decides every request.\n */\nexport function useViewerMayListRelatedResource(\n resourceType: string,\n /**\n * The filters the caller confines the list by itself, when no relationship does (see `pinnedFilters` on the target).\n * `null` when they are not known yet (the record they come from is still loading): the answer is `false`, without\n * asking, so a list that will be pinned is not judged — and warned about — unpinned in the meantime.\n */\n pinnedFilters?: Readonly<Record<string, string>> | null,\n): boolean {\n const compositeResourceContext = useEmbeddedResourceContext();\n const viewer = useViewerEffectiveRoles();\n const pinKey = pinnedFilters ? JSON.stringify(pinnedFilters) : '';\n return useMemo(() => {\n if (pinnedFilters === null) return false;\n // A LIST that cannot be embedded on this host — one nothing could confine to the host record — is one the\n // viewer cannot read HERE, whatever their roles: answered `false` rather than thrown from a hook that only asks.\n let list: ReturnType<typeof compositeResourceContext.buildOperationContext>;\n try {\n list = compositeResourceContext.buildOperationContext({ resourceType, operationLike: CoreResourceOperation.LIST, requireAddressable: false, pinnedFilters: pinnedFilters ? JSON.parse(pinKey) as Record<string, string> : undefined });\n } catch (error) {\n warnUnlistableRelatedResource(compositeResourceContext.hostResourceType, resourceType, describeEmbedRefusal(error));\n return false;\n }\n const operation = list.operation as unknown as { roles?: readonly string[]; operationIdentifier: unknown; resourceOperationLike?: unknown };\n return viewerMayPerformOperation({ ...operation, resourceType }, viewer);\n // eslint-disable-next-line react-hooks/exhaustive-deps -- the pins are keyed by value (`pinKey`)\n }, [compositeResourceContext, resourceType, viewer, pinKey, pinnedFilters === null]);\n}\n\n/**\n * One LIST pinned to the host relationship, shown only to a viewer the LIST admits.\n *\n * The client page is read by the firm's members as well as its administrators, and a section they cannot read must not\n * appear as an error in the middle of the page: a list the viewer may not run is not drawn at all. Presentation only:\n * the backend still decides every request, and the pin only narrows what the LIST returns.\n */\nfunction useRepresentationPinnedList(params: {\n embedName: string;\n resourceType: CoreResourceType;\n pinnedFilters: Record<string, string>;\n}): FrontendResourceOperationContext | null {\n const compositeResourceContext = useEmbeddedResourceContext();\n const { hostResourceType } = compositeResourceContext;\n const { embedName, resourceType, pinnedFilters } = params;\n const viewerMayList = useViewerMayListRelatedResource(resourceType, pinnedFilters);\n const pinKey = JSON.stringify(pinnedFilters);\n return useMemo((): FrontendResourceOperationContext | null => {\n if (hostResourceType !== CoreResourceType.ORGANIZATION_REPRESENTATIONS) {\n throw buildResourceEmbedConfigurationError(\n `${embedName}() lists what belongs to one client relationship: place it on an organizationRepresentations READ surface.`,\n { hostResourceType },\n );\n }\n if (!viewerMayList) return null;\n // The relationship's own filter, given by the caller: a mailbox names the relationship, not this representation.\n return compositeResourceContext.buildOperationContext({\n resourceType, operationLike: CoreResourceOperation.LIST, requireAddressable: false, pinnedFilters: JSON.parse(pinKey) as Record<string, string>,\n });\n }, [compositeResourceContext, hostResourceType, viewerMayList, embedName, resourceType, pinKey]);\n}\n\nexport interface EmbedRepresentationTeamProps {\n /** The client relationship's id, as the representing organization holds it: the `organizationRepresentations` row. */\n organizationRepresentationId: string;\n className?: string;\n}\n\n/**\n * The team serving one client relationship: the `representativeAssignments` LIST, pinned to that relationship\n * through `pinnedFilters`, with its assign and unassign verbs. Assigning from here names the relationship by itself: the\n * embed's context carries the host relationship, and the assign form fills `organizationRepresentationId` from it\n * (`resolveSemanticContextFieldValues`, pinned against the real configuration by\n * `representation-team-assign-prefill.test.ts`); its member picker searches the organization's own members. Shown to the organization's administrators only, the roles the LIST admits; a member\n * reading the client does not see the team.\n */\nexport function EmbedRepresentationTeam({ organizationRepresentationId, className }: EmbedRepresentationTeamProps): React.JSX.Element | null {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const resourceContext = useRepresentationPinnedList({\n embedName: 'EmbedRepresentationTeam',\n resourceType: CoreResourceType.REPRESENTATIVE_ASSIGNMENTS,\n pinnedFilters: { [REPRESENTATIVE_ASSIGNMENTS_OF_REPRESENTATION_FILTER]: organizationRepresentationId },\n });\n return resourceContext ? renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className) : null;\n}\n\nexport interface EmbedRepresentationMailboxesProps {\n /**\n * The relationship's id, as the representation mirrors it (`organizationRelationshipId`): a mailbox names the\n * relationship, not the representing organization's row of it.\n */\n organizationRelationshipId: string;\n className?: string;\n}\n\n/**\n * The mailboxes of one client relationship: the `relationshipMailboxes` LIST, pinned to that relationship\n * through `pinnedFilters`. Shown to a viewer the LIST admits.\n */\nexport function EmbedRepresentationMailboxes({ organizationRelationshipId, className }: EmbedRepresentationMailboxesProps): React.JSX.Element | null {\n const { navigationZone, navigationInitiator } = useEmbeddedResourceHostContext();\n const resourceContext = useRepresentationPinnedList({\n embedName: 'EmbedRepresentationMailboxes',\n resourceType: CoreResourceType.RELATIONSHIP_MAILBOXES,\n pinnedFilters: { [RELATIONSHIP_MAILBOXES_OF_RELATIONSHIP_FILTER]: organizationRelationshipId },\n });\n return resourceContext ? renderEmbeddedResourceOperation(resourceContext, navigationZone, navigationInitiator, className) : null;\n}\n\nexport interface EmbedRelatedResourceSearchProps extends EmbedRelatedResourceListProps {}\n\n/**\n * Embed a related resource's SEARCH surface. Same delegation contract as\n * {@link EmbedRelatedResourceList} — only the semantic operation differs.\n */\nexport function EmbedRelatedResourceSearch({\n resourceType,\n viaForeignKey,\n className,\n}: EmbedRelatedResourceSearchProps): React.JSX.Element {\n return (\n <EmbedRelatedResourceOperation\n resourceType={resourceType}\n operationLike={CoreResourceOperation.SEARCH}\n relationshipFieldOverrides={viaForeignKey}\n className={className}\n />\n );\n}\n/** @wildo_source:part:end saas.frontend.related-resource-embeds */\n\nexport interface EmbedHostExecutionProps extends EmbeddedResourceOperationTarget {\n viewRef: string;\n className?: string;\n}\n\nexport interface EmbedRelatedExecutionProps extends EmbeddedResourceOperationTarget {\n resourceType: string;\n viewRef: string;\n className?: string;\n}\n\nexport interface EmbedHostChartProps extends EmbeddedResourceOperationTarget {\n viewRef: string;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n className?: string;\n}\n\nexport interface EmbedRelatedChartProps extends EmbeddedResourceOperationTarget {\n resourceType: string;\n viewRef: string;\n inputs?: ChartInputValues;\n urlParamValues?: Record<string, string>;\n className?: string;\n}\n\nexport function EmbedHostChart({\n viewRef,\n inputs,\n urlParamValues,\n className,\n ...target\n}: EmbedHostChartProps): React.JSX.Element {\n const compositeResourceContext = useEmbeddedResourceContext();\n const resourceContext = compositeResourceContext.buildOperationContext({\n ...target,\n operationLike: CoreResourceOperation.READ,\n });\n\n // D2: a host-owned chart may require the host's PARENT scope (e.g. a\n // `todo-task-status` chart mandating `todos` when the host is a `task`). Derive\n // the parent id off the host record and merge it UNDER the URL context so the\n // chart's `parentResourcesRequirements` resolve.\n const derivedParents = useHostRecordDerivedParentContext(compositeResourceContext);\n\n return (\n <EmbeddedChartRenderer\n resourceType={compositeResourceContext.hostResourceType}\n viewRef={viewRef}\n contextResourceIdentifiers={mergeDerivedParentIdentifiers(\n FrontendResourceUtils.flattenContextIdentifiers(resourceContext.contextResourceIdentifiers),\n derivedParents,\n )}\n inputs={inputs}\n urlParamValues={urlParamValues}\n className={className}\n />\n );\n}\n\nexport function EmbedRelatedChart({\n resourceType,\n viewRef,\n inputs,\n urlParamValues,\n className,\n ...target\n}: EmbedRelatedChartProps): React.JSX.Element {\n if (!resourceType) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedRelatedChart() requires a target resourceType.',\n { target },\n );\n }\n\n const compositeResourceContext = useEmbeddedResourceContext();\n // A RELATED chart aggregates a COLLECTION of `resourceType` scoped by the host\n // record (e.g. the tasks of the current todo) — there is no single addressable\n // related-record id, so it must resolve a collection operation (LIST), NOT READ.\n // Resolving READ here required an addressable related id that never exists in a\n // host→related context and threw a composite configuration error (caught by\n // SurfaceErrorBoundary, degrading the surface). The host context (the parent\n // record's id) is still threaded into the related context via\n // `deriveChildResourceContext`, so the chart stays scoped to the host record.\n // (`EmbedHostChart` keeps READ: the host IS a single addressable record.)\n // Only the IDENTIFIERS are used: the chart is fetched through its own definition, never through this LIST, so the\n // LIST's confinement to the host record (#3072) has nothing to confine here and must not refuse the chart.\n const scopeIdentifiers = compositeResourceContext.deriveRelatedScopeIdentifiers({\n ...target,\n resourceType,\n operationLike: CoreResourceOperation.LIST,\n });\n\n return (\n <EmbeddedChartRenderer\n resourceType={resourceType}\n viewRef={viewRef}\n contextResourceIdentifiers={scopeIdentifiers}\n inputs={inputs}\n urlParamValues={urlParamValues}\n className={className}\n />\n );\n}\n\nexport function EmbedHostExecution({\n viewRef,\n className,\n ...target\n}: EmbedHostExecutionProps): React.JSX.Element {\n const { navigationZone } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n\n const resourceContext = compositeResourceContext.buildOperationContext({\n ...target,\n operationLike: CoreResourceOperation.READ,\n });\n\n // D2: a host-owned execution may anchor on the host's PARENT (e.g. a\n // `task-workspace` execution binding `todoId` when the host is a `task`). Derive\n // the parent id off the host record so the anchor resolves instead of \"No anchor\n // resolved\". Merged UNDER the URL context (URL ids win).\n const derivedParents = useHostRecordDerivedParentContext(compositeResourceContext);\n\n const insertedIdentity = buildResourceInsertedExecutionIdentity(\n compositeResourceContext.hostResourceType,\n { ref: viewRef },\n );\n\n return renderEmbeddedExecution(\n insertedIdentity.insertedViewRef,\n navigationZone,\n mergeDerivedParentIdentifiers(\n FrontendResourceUtils.flattenContextIdentifiers(resourceContext.contextResourceIdentifiers),\n derivedParents,\n ),\n className,\n );\n}\n\nexport function EmbedRelatedExecution({\n resourceType,\n viewRef,\n className,\n ...target\n}: EmbedRelatedExecutionProps): React.JSX.Element {\n const { navigationZone } = useEmbeddedResourceHostContext();\n const compositeResourceContext = useEmbeddedResourceContext();\n\n if (!resourceType) {\n throw buildResourceEmbedConfigurationError(\n 'EmbedRelatedExecution() requires a target resourceType.',\n { target: { resourceType, viewRef, ...target } },\n );\n }\n\n const resourceContext = compositeResourceContext.buildOperationContext({\n ...target,\n resourceType,\n operationLike: CoreResourceOperation.READ,\n });\n\n const insertedIdentity = buildResourceInsertedExecutionIdentity(\n resourceType,\n { ref: viewRef },\n );\n\n return renderEmbeddedExecution(\n insertedIdentity.insertedViewRef,\n navigationZone,\n FrontendResourceUtils.flattenContextIdentifiers(resourceContext.contextResourceIdentifiers),\n className,\n );\n}\n"]}