@wildo-ai/saas-frontend-lib 1.1.17 → 1.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (586) hide show
  1. package/LICENSE +114 -26
  2. package/LICENSE.enterprise +129 -0
  3. package/dist/esm/companion-exports.d.ts +5 -2
  4. package/dist/esm/companion-exports.d.ts.map +1 -1
  5. package/dist/esm/companion-exports.js +4 -2
  6. package/dist/esm/companion-exports.js.map +1 -1
  7. package/dist/esm/components/actions/action-bar.d.ts +16 -1
  8. package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
  9. package/dist/esm/components/actions/action-bar.js.map +1 -1
  10. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
  11. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
  12. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
  13. package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
  14. package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
  15. package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
  16. package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
  17. package/dist/esm/components/app/AppLayout_Home.js +14 -7
  18. package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
  19. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
  20. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
  21. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
  22. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
  23. package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
  24. package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
  25. package/dist/esm/components/app/DecisionInboxSection.js +15 -0
  26. package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
  27. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
  28. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
  29. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
  30. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
  31. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
  32. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
  33. package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
  34. package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
  35. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
  36. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
  37. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
  38. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
  39. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
  40. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
  41. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
  42. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
  43. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
  44. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
  45. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
  46. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
  47. package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
  48. package/dist/esm/components/auth/Auth_Main.js +5 -0
  49. package/dist/esm/components/auth/Auth_Main.js.map +1 -1
  50. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
  51. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
  52. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
  53. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
  54. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
  55. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
  56. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
  57. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
  58. package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
  59. package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
  60. package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
  61. package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
  62. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
  63. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
  64. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
  65. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
  66. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
  67. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
  68. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
  69. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
  70. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
  71. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
  72. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
  73. package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
  74. package/dist/esm/components/billing/billing-pricing-table.js +40 -7
  75. package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
  76. package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
  77. package/dist/esm/components/billing/billing-subscription-status.js +9 -1
  78. package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
  79. package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
  80. package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
  81. package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
  82. package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
  83. package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
  84. package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
  85. package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
  86. package/dist/esm/components/data-display/DisplayField.js +67 -45
  87. package/dist/esm/components/data-display/DisplayField.js.map +1 -1
  88. package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
  89. package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
  90. package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
  91. package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
  92. package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
  93. package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
  94. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
  95. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
  96. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
  97. package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
  98. package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
  99. package/dist/esm/components/feedback/empty-state-marker.js +16 -0
  100. package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
  101. package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
  102. package/dist/esm/components/feedback/empty-state.js +2 -1
  103. package/dist/esm/components/feedback/empty-state.js.map +1 -1
  104. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
  105. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
  106. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
  107. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
  108. package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
  109. package/dist/esm/components/feedback/resource-empty-state.js +2 -1
  110. package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
  111. package/dist/esm/components/flows-actors/approval.d.ts +25 -1
  112. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  113. package/dist/esm/components/flows-actors/approval.js +14 -9
  114. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  115. package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
  116. package/dist/esm/components/flows-actors/approval.labels.js +30 -0
  117. package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
  118. package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
  119. package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
  120. package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
  121. package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
  122. package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
  123. package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
  124. package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
  125. package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
  126. package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
  127. package/dist/esm/components/form/Form.d.ts +2 -0
  128. package/dist/esm/components/form/Form.d.ts.map +1 -1
  129. package/dist/esm/components/form/Form.js +1 -0
  130. package/dist/esm/components/form/Form.js.map +1 -1
  131. package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
  132. package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
  133. package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
  134. package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
  135. package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
  136. package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
  137. package/dist/esm/components/form/automated/FormField.d.ts +5 -3
  138. package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
  139. package/dist/esm/components/form/automated/FormField.js +38 -13
  140. package/dist/esm/components/form/automated/FormField.js.map +1 -1
  141. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
  142. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  143. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +31 -18
  144. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  145. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
  146. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
  147. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
  148. package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
  149. package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
  150. package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
  151. package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
  152. package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
  153. package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
  154. package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
  155. package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
  156. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
  157. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
  158. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
  159. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
  160. package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
  161. package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
  162. package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
  163. package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
  164. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
  165. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
  166. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
  167. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
  168. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
  169. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
  170. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
  171. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
  172. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
  173. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +5 -3
  174. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
  175. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
  176. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  177. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +47 -11
  178. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  179. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  180. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +17 -7
  181. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  182. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  183. package/dist/esm/components/resources/ResourceLayout_List.js +13 -6
  184. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  185. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
  186. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
  187. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
  188. package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
  189. package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
  190. package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
  191. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
  192. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
  193. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
  194. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
  195. package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
  196. package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
  197. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
  198. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
  199. package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
  200. package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
  201. package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
  202. package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
  203. package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
  204. package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
  205. package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
  206. package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
  207. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
  208. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
  209. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
  210. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
  211. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
  212. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
  213. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
  214. package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
  215. package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
  216. package/dist/esm/components/settings/SettingsHub.js +14 -4
  217. package/dist/esm/components/settings/SettingsHub.js.map +1 -1
  218. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
  219. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
  220. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
  221. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
  222. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
  223. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
  224. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
  225. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
  226. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
  227. package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
  228. package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
  229. package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
  230. package/dist/esm/components/views/chart-view/ChartView.js +33 -7
  231. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  232. package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
  233. package/dist/esm/components/views/chart-view/ChartView.labels.js +69 -3
  234. package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
  235. package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
  236. package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
  237. package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
  238. package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
  239. package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
  240. package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
  241. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
  242. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
  243. package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
  244. package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
  245. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
  246. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
  247. package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
  248. package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
  249. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +35 -9
  250. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  251. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +69 -21
  252. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  253. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
  254. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +6 -7
  255. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  256. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
  257. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
  258. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +2 -2
  259. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
  260. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
  261. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
  262. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +7 -7
  263. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  264. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
  265. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
  266. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +6 -8
  267. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
  268. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
  269. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -1
  270. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
  271. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
  272. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
  273. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
  274. package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
  275. package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
  276. package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
  277. package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
  278. package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
  279. package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
  280. package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
  281. package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
  282. package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
  283. package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
  284. package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
  285. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
  286. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
  287. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
  288. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
  289. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
  290. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
  291. package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
  292. package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
  293. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
  294. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
  295. package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
  296. package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
  297. package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
  298. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
  299. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
  300. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
  301. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
  302. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
  303. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
  304. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
  305. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
  306. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
  307. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
  308. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
  309. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
  310. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
  311. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
  312. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
  313. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
  314. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
  315. package/dist/esm/core/billing/BillingContext.d.ts +27 -4
  316. package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
  317. package/dist/esm/core/billing/BillingContext.js +61 -2
  318. package/dist/esm/core/billing/BillingContext.js.map +1 -1
  319. package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
  320. package/dist/esm/core/billing/useBillingAction.js +3 -2
  321. package/dist/esm/core/billing/useBillingAction.js.map +1 -1
  322. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
  323. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
  324. package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
  325. package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
  326. package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
  327. package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
  328. package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
  329. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
  330. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
  331. package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
  332. package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
  333. package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
  334. package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
  335. package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
  336. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
  337. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
  338. package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
  339. package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
  340. package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
  341. package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
  342. package/dist/esm/core/config/composite-view.schemas.js +1 -0
  343. package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
  344. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
  345. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
  346. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
  347. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
  348. package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
  349. package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
  350. package/dist/esm/core/config/engine-settings-destinations.js +12 -0
  351. package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
  352. package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
  353. package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
  354. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
  355. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
  356. package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
  357. package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
  358. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
  359. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
  360. package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
  361. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
  362. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
  363. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
  364. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
  365. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
  366. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
  367. package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
  368. package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
  369. package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
  370. package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
  371. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
  372. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
  373. package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
  374. package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
  375. package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
  376. package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
  377. package/dist/esm/core/config/verify-launcher-content.js +31 -0
  378. package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
  379. package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
  380. package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
  381. package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
  382. package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
  383. package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
  384. package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
  385. package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
  386. package/dist/esm/core/events/NotificationContext.js +19 -2
  387. package/dist/esm/core/events/NotificationContext.js.map +1 -1
  388. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
  389. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
  390. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
  391. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
  392. package/dist/esm/core/execution/useExecution.d.ts +3 -3
  393. package/dist/esm/core/execution/useExecution.js.map +1 -1
  394. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
  395. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
  396. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
  397. package/dist/esm/core/features/FeatureGate.d.ts +13 -1
  398. package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
  399. package/dist/esm/core/features/FeatureGate.js +6 -1
  400. package/dist/esm/core/features/FeatureGate.js.map +1 -1
  401. package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
  402. package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
  403. package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
  404. package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
  405. package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
  406. package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
  407. package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
  408. package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
  409. package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
  410. package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
  411. package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
  412. package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
  413. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
  414. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
  415. package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
  416. package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
  417. package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
  418. package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
  419. package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
  420. package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
  421. package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
  422. package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
  423. package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
  424. package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
  425. package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
  426. package/dist/esm/core/features/useFeatureAvailability.js +4 -0
  427. package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
  428. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
  429. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
  430. package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
  431. package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
  432. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
  433. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
  434. package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
  435. package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
  436. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
  437. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
  438. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
  439. package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
  440. package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
  441. package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
  442. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
  443. package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
  444. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
  445. package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
  446. package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
  447. package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
  448. package/dist/esm/core/navigation/home-resolution.js +46 -0
  449. package/dist/esm/core/navigation/home-resolution.js.map +1 -0
  450. package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
  451. package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
  452. package/dist/esm/core/navigation/launcher-resolution.js +13 -18
  453. package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
  454. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
  455. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
  456. package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
  457. package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
  458. package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
  459. package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
  460. package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
  461. package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
  462. package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
  463. package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
  464. package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
  465. package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
  466. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
  467. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
  468. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
  469. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
  470. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
  471. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
  472. package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
  473. package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
  474. package/dist/esm/core/navigation/view-title-resolution.js +25 -0
  475. package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
  476. package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
  477. package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
  478. package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
  479. package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
  480. package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
  481. package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
  482. package/dist/esm/core/navigation/viewer-roles.js +26 -0
  483. package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
  484. package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
  485. package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
  486. package/dist/esm/core/requests/user-interaction-clock.js +47 -0
  487. package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
  488. package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
  489. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
  490. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
  491. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +27 -6
  492. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  493. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +30 -7
  494. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  495. package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
  496. package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
  497. package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
  498. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  499. package/dist/esm/core/resources/hooks/useOperationEnabled.js +4 -0
  500. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  501. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
  502. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
  503. package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
  504. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
  505. package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
  506. package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
  507. package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
  508. package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
  509. package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
  510. package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
  511. package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
  512. package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
  513. package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
  514. package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
  515. package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
  516. package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
  517. package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
  518. package/dist/esm/core/runtime/AppRouter.js +11 -33
  519. package/dist/esm/core/runtime/AppRouter.js.map +1 -1
  520. package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
  521. package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
  522. package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
  523. package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
  524. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
  525. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
  526. package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
  527. package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
  528. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
  529. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
  530. package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
  531. package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
  532. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
  533. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
  534. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
  535. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
  536. package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
  537. package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
  538. package/dist/esm/core/runtime/identity-routes.js +50 -0
  539. package/dist/esm/core/runtime/identity-routes.js.map +1 -0
  540. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
  541. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
  542. package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
  543. package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
  544. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
  545. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
  546. package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
  547. package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
  548. package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
  549. package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
  550. package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
  551. package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
  552. package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
  553. package/dist/esm/core/security/AuthSessionContext.js +4 -0
  554. package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
  555. package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
  556. package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
  557. package/dist/esm/core/security/StepUpAuthContext.js +7 -2
  558. package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
  559. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
  560. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
  561. package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
  562. package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
  563. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
  564. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
  565. package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
  566. package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
  567. package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
  568. package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
  569. package/dist/esm/core/ui/design-token.utils.js +24 -3
  570. package/dist/esm/core/ui/design-token.utils.js.map +1 -1
  571. package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
  572. package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
  573. package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
  574. package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
  575. package/dist/esm/index.d.ts +14 -1
  576. package/dist/esm/index.d.ts.map +1 -1
  577. package/dist/esm/index.js +17 -1
  578. package/dist/esm/index.js.map +1 -1
  579. package/dist/esm/testing/mock-builders.d.ts +1 -1
  580. package/dist/esm/testing/mock-builders.d.ts.map +1 -1
  581. package/dist/esm/testing/mock-builders.js +1 -0
  582. package/dist/esm/testing/mock-builders.js.map +1 -1
  583. package/dist/tsconfig.build.tsbuildinfo +1 -1
  584. package/package.json +9 -6
  585. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
  586. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"FlowsActorsView.js","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/FlowsActorsView.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EACL,iCAAiC,E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C,aAAa,IAAC,MAAM,EAAE,YAAY,GAAI,EACvC,cAAK,SAAS,EAAC,yCAAyC,YACtD,KAAC,aAAa,IACZ,MAAM,EAAE,YAAY,EACpB,0BAA0B,EAAE,8BAA8B,EAC1D,MAAM,EAAE,cAAc,CAAC,YAAY,EACnC,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,6BAA6B,EACnD,2BAA2B,EAAE,oCAAoC,EACjE,OAAO,EAAE,gBAAgB,GACzB,GACE,IACL,CACJ,CAAC,CAAC,CAAC,CACF,cAAK,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,yCAAyC,YACnE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,GACxC,CACP,GACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport {\n agentBehaviorReportOrganizationOf,\n canonicalizeFlowsActorsContextRef,\n FlowsActors_ConversationRole,\n type FlowActorSystem_FrontendInfo,\n type FlowsActors_ConversationExecution,\n type WorkUnitRef,\n} from '@wildo-ai/saas-models';\nimport type { FlowsActorsViewDefinition } from '~wildo-frontend-lib/core/config/flows-actors-view.schemas';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { makeComponentLabelResolver } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { useFlowsActors } from '~wildo-frontend-lib/core/flows-actors/useFlowsActors';\nimport { FlowsActorsExecutionStatus } from '~wildo-frontend-lib/core/flows-actors/FlowsActorsContext';\nimport {\n conversationThreadModel,\n ConversationTurnState,\n withPendingSend,\n type ConversationThreadPendingSend,\n} from '~wildo-frontend-lib/core/flows-actors/conversation-thread.model';\nimport {\n conversationsHeldBeyondPages,\n heldConversations,\n olderHistoryCursor,\n withConversationReadById,\n withNewestHistoryPage,\n withOlderHistoryPage,\n withoutConversation,\n type HeldConversationHistory,\n} from '~wildo-frontend-lib/core/flows-actors/conversation-history.model';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport {\n AI_ConversationThread,\n AI_ConversationThreadComposer,\n AI_ConversationThreadDiscussions,\n type AI_ConversationThreadDiscussion,\n} from '~wildo-frontend-lib/components/ai-elements/chat/conversation-thread';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport {\n heldConversationKey,\n holdConversation,\n isLinkedConversationSettled,\n linkedConversationIdentity,\n markLinkedConversationSettled,\n readHeldConversation,\n} from '~wildo-frontend-lib/components/views/flows-actors-view/held-conversation-selection';\nimport { AgentReplyReportAction } from '~wildo-frontend-lib/components/views/flows-actors-view/AgentReplyReportAction';\nimport { HostedLinkedConversationContext } from '~wildo-frontend-lib/components/views/flows-actors-view/linked-conversation.context';\n\n/*\n * This view is a HOST (#2525). The conversation itself — its lines, what each turn did, how the latest turn stands,\n * the composer with Stop, the discussion list — is the registry-resolved `AI_ConversationThread`, drawn from the model\n * `conversationThreadModel` derives. The creation workbench draws its conversation with the same surface, so a preset\n * registered for `LOW_LEVEL_AI_CONVERSATION_THREAD` replaces both, and the view's `layoutPreset` names which preset\n * draws this one. What stays here is what only a host knows: which assistant, which threads, which context.\n */\n\nexport interface FlowsActorsViewProps {\n viewRef?: string;\n viewDefinition?: FlowsActorsViewDefinition;\n contextResourceIdentifiers?: Record<string, string>;\n /**\n * The case this conversation works on (#2549): a row of a resource declared `workUnit: true`, such as the close a\n * bookkeeping assistant is opened on. Every message the person sends carries it, and the server admits it afresh on\n * each turn (`admitClientCaseRef`: a readable row of a work-unit resource, its tenant taken from the row), so the\n * turn's model calls are attributed to that case in cost per case. Absent, a turn names no case and its spend reaches\n * only the organization.\n *\n * It attributes; it does not partition. A host mounting one view per case should ALSO pass the case in\n * `contextResourceIdentifiers`, which is what keeps each case's discussions apart.\n */\n caseRef?: WorkUnitRef;\n /**\n * A conversation to open, named by a link (#4013): the conversation-link page (`CONVERSATION_LINK_PAGE_PATH`) sends a\n * person here with it, from a notice or an email about the conversation. It replaces the conversation held for this\n * view and is held in its place once the person's history holds it: listed by the newest page, or read by id when it\n * is older (#4040). It decides nothing about access: an id the history does not hold is not opened, the view says so,\n * and a new conversation is offered instead. Until the history has answered, nothing can be sent into it, since the\n * id came from outside the page. A view rendered by a record view that hosts its system's conversations may instead\n * receive the link from that host (`HostedLinkedConversationContext`, #4043); a link given here wins.\n */\n linkedConversationId?: string;\n /**\n * Called once the view has SETTLED {@link linkedConversationId}: opened it, found it unavailable, or the person moved\n * elsewhere first. The host then drops it from its address, so a reload does not reopen it.\n */\n onLinkedConversationSettled?: () => void;\n /**\n * What distinguishes this link from another naming the same conversation: the navigation entry that carries it. A\n * link once settled under this key is never applied again, even by a remounted view (`held-conversation-selection`).\n */\n linkKey?: string;\n}\n\n// ─── Helpers ────────────────────────────────────────────────────────────────\n\n/**\n * A discussion's title is the person's own first words, shortened. An EMPTY result is meaningful: the discussion has\n * no words yet, and the discussion list words it as untitled at render. The word is never stored here — a title held\n * in state would stay in the language it was created in, and would be an English literal besides (#1414).\n */\nfunction truncate(s: string, n = 40): string {\n const t = s.trim().replace(/\\s+/g, ' ');\n return t.length > n ? `${t.slice(0, n)}…` : t;\n}\n\n/** A stored thread's title: its first message from the person. */\nfunction threadTitle(thread: FlowsActors_ConversationExecution): string {\n return truncate(thread.messages.find((message) => message.role === FlowsActors_ConversationRole.USER)?.content ?? '');\n}\n\n/**\n * The view's own words — its header, its placeholder, its empty state — from `FlowsActorsView.labels.ts`. The words of\n * the conversation are the thread surface's. The host gates on `isReady` before any of these sub-components mount.\n */\nfunction useFlowsActorsLabels(): (key: string, params?: Record<string, string | number>) => string {\n const { tComponent } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS });\n return useMemo(() => makeComponentLabelResolver(tComponent, FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS), [tComponent]);\n}\n\n/** A turn that ended, or paused on a decision: its thread's record now carries it, so the thread is re-read. */\nconst RECORDED_TURN_STATUSES: ReadonlySet<FlowsActorsExecutionStatus> = new Set([\n FlowsActorsExecutionStatus.COMPLETED,\n FlowsActorsExecutionStatus.CANCELLED,\n FlowsActorsExecutionStatus.ERROR,\n FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n]);\n\n/** Where a conversation named by a link stands in the view (#4013). */\nenum LinkedConversationStanding {\n /** The history has not answered yet: the conversation is shown selected, and nothing can be sent into it. */\n PENDING = 'pending',\n /** The history lists it: it is open, and held like any conversation the person chose. */\n OPENED = 'opened',\n /**\n * The history does not hold it, even read by id: someone else's, deleted, or opened in another context than this\n * view's. The view says it cannot be opened here and offers a new conversation.\n */\n UNAVAILABLE = 'unavailable',\n}\n\n// ─── Chat workspace (one system: threads + conversation + composer) ───────────\n\nconst NO_HISTORY: HeldConversationHistory = { threads: [], hasOlder: false };\n\n/**\n * @param contextResourceIdentifiers - The view's resolved context (#2522). It PARTITIONS the caller's threads:\n * threads are opened in it and listed by it, the same identifiers on both doors, folded by the engine into the\n * thread's `contextRef`. It decides nothing about access — the owner is always the signed-in person.\n * @param preset - The `AI_ConversationThread` preset that draws this conversation: the view's `layoutPreset`.\n *\n * The STORED threads are the transcript's authority, read from history and read again when a turn ends or pauses;\n * the live turn is drawn over them until the record carries it (`conversationThreadModel`). This view used to build\n * transcripts in the browser as turns settled, a second copy of the record that a reload could only contradict.\n */\nconst ChatWorkspace: React.FC<{\n system: FlowActorSystem_FrontendInfo;\n contextResourceIdentifiers: Record<string, string>;\n preset: string;\n caseRef?: WorkUnitRef;\n linkedConversationId?: string;\n onLinkedConversationSettled?: () => void;\n linkKey?: string;\n}> = ({\n system,\n contextResourceIdentifiers,\n preset,\n caseRef,\n linkedConversationId,\n onLinkedConversationSettled,\n linkKey,\n}) => {\n const t = useFlowsActorsLabels();\n const { startExecution, cancelExecution, executions, fetchConversationHistory, fetchConversation, deleteConversation } = useFlowsActors();\n const appScope = useAppScopeSafe();\n const userId = appScope?.currentUserId ?? null;\n\n /*\n * The context's VALUE, for effect dependencies: the identifiers object is rebuilt on every scope change, and only a\n * different context should reload the threads. The latest object is read through a ref.\n */\n const contextKey = canonicalizeFlowsActorsContextRef(contextResourceIdentifiers);\n const contextRef = useRef(contextResourceIdentifiers);\n contextRef.current = contextResourceIdentifiers;\n\n /*\n * The discussions held, read a page at a time (#2528): the newest page on open and after every turn, older pages when\n * the person asks for them. `conversation-history.model.ts` keeps the two kinds of read from contradicting each other.\n */\n const [history, setHistory] = useState<HeldConversationHistory>(NO_HISTORY);\n const historyRef = useRef(history);\n historyRef.current = history;\n // Paged, and read by id (a linked discussion older than the newest page, #4013): what the person sees and opens.\n const threads = useMemo(() => heldConversations(history), [history]);\n const [loadingOlder, setLoadingOlder] = useState(false);\n /*\n * The conversation on screen, HELD across unmounts (`held-conversation-selection.ts`): a host that hides this view\n * (the utility panel closes when the person follows a record it showed) gives it back the conversation it showed.\n */\n const caseKey = caseRef ? `${caseRef.resourceType}:${caseRef.resourceId}` : '';\n const heldKey = heldConversationKey(userId, system.ref, contextKey, caseKey);\n // Set from the held selection by the scope effect below, which runs on mount and on every change of scope.\n const [currentId, setShownId] = useState<string | null>(null);\n const heldKeyRef = useRef(heldKey);\n heldKeyRef.current = heldKey;\n const setCurrentId = useCallback((next: string | null | ((previous: string | null) => string | null)) => {\n setShownId((previous) => {\n const id = typeof next === 'function' ? next(previous) : next;\n holdConversation(heldKeyRef.current, id);\n return id;\n });\n }, []);\n /** A held conversation not yet confirmed by the first history read of this scope (see the restore check below). */\n const unconfirmedHeldId = useRef<string | null>(null);\n /*\n * What the person sent, by thread. A turn outlives the page's attention: the person can switch threads while one\n * runs or waits on a decision and come back to it, and their message must come back with it until the record has it.\n */\n const [sent, setSent] = useState<Readonly<Record<string, readonly ConversationThreadPendingSend[]>>>({});\n\n /*\n * Read the caller's discussions from the SERVER (the executions resource, owner-scoped). Race-guarded by a\n * generation counter: a stale read (the system, the person or the context changed since) never applies.\n */\n const readGeneration = useRef(0);\n const refreshThreads = useCallback(async () => {\n const generation = ++readGeneration.current;\n const page = await fetchConversationHistory(system.ref, contextRef.current);\n // A read that FAILED keeps the list the last good read gave (#2525 review M4): it re-reads after every turn, and a\n // failure — often the same outage that ended the turn — used to empty the discussion list and the transcript.\n if (generation !== readGeneration.current || page === undefined) return;\n setHistory((held) => withNewestHistoryPage(held, page));\n /*\n * A discussion read by id is older than this page (#4013), so this page cannot refresh it: it is read again by id,\n * so a turn sent into it is shown from the record like any other. One the page reached is paged now; when the page\n * is everything there is, one it does not hold was deleted, and folding the page in has already dropped it.\n */\n if (!page.hasOlder) return;\n const inPage = new Set(page.executions.map((thread) => thread.executionId));\n for (const executionId of conversationsHeldBeyondPages(historyRef.current)) {\n if (inPage.has(executionId)) continue;\n const thread = await fetchConversation(system.ref, contextRef.current, executionId);\n if (generation !== readGeneration.current) return;\n // A failed read keeps what was held, as a failed page does; a thread gone since is dropped.\n if (thread === undefined) continue;\n setHistory((held) => (thread === null ? withoutConversation(held, executionId) : withConversationReadById(held, thread)));\n }\n }, [system.ref, fetchConversationHistory, fetchConversation]);\n\n /*\n * The next older page. Guarded by the SCOPE, not by the read generation: a turn's re-read of the newest page must not\n * discard it, but a page read for another system, person or context must never land here.\n */\n const scopeGeneration = useRef(0);\n const loadOlder = useCallback(async () => {\n const before = olderHistoryCursor(history);\n if (!before || loadingOlder) return;\n const scope = scopeGeneration.current;\n setLoadingOlder(true);\n try {\n const page = await fetchConversationHistory(system.ref, contextRef.current, { before });\n if (scope !== scopeGeneration.current || page === undefined) return;\n setHistory((held) => withOlderHistoryPage(held, page));\n } finally {\n if (scope === scopeGeneration.current) setLoadingOlder(false);\n }\n }, [history, loadingOlder, system.ref, fetchConversationHistory]);\n\n // Where a conversation named by a link stands (#4013); see the link effect below.\n const [linkStanding, setLinkStanding] = useState<LinkedConversationStanding | null>(null);\n const pendingLink = useRef<string | null>(null);\n const linkIdentity = linkedConversationId ? linkedConversationIdentity(linkKey, linkedConversationId) : null;\n const linkIdentityRef = useRef(linkIdentity);\n linkIdentityRef.current = linkIdentity;\n const linkSettledCallback = useRef(onLinkedConversationSettled);\n linkSettledCallback.current = onLinkedConversationSettled;\n const settleLink = useCallback((standing: LinkedConversationStanding | null) => {\n if (!pendingLink.current) return;\n if (linkIdentityRef.current) markLinkedConversationSettled(linkIdentityRef.current);\n pendingLink.current = null;\n setLinkStanding(standing);\n linkSettledCallback.current?.();\n }, []);\n /*\n * The RESTORE CHECK: a held conversation is kept only if this scope's history holds it, or its turn is live in this\n * page. The first read answers for it, and when that page does not list it while older discussions remain, it is read\n * by id (#4013): a conversation older than the newest page is still the person's, and a link to one must open it.\n * Otherwise it was deleted elsewhere, or is someone else's, and the view opens a new conversation rather than\n * continuing one it cannot show — sending into it would continue a thread nobody sees. A by-id read that FAILS counts\n * as not held: the view cannot show it, so it does not open it.\n *\n * DECLARED BEFORE the scope effect on purpose: effects run in declaration order, so in a commit that changes the scope\n * this check runs while `unconfirmedHeldId` still names the OLD scope's (already confirmed, so null) selection, and\n * never tests the new scope's held id against the previous scope's history. The new id is checked against the first\n * read of its own scope, on a later commit.\n *\n * Accepted: between mount and that first read the held thread is selected and its transcript not yet loaded, and a\n * message sent in that window continues it. Blocking the send instead would hold the composer shut for as long as a\n * failing history read keeps failing. The window is one read long, two when the held thread is read by id. A thread\n * deleted elsewhere and continued in it comes back as a NEW thread under the same id, holding only that message: the\n * server opens a row when the one it was asked to continue does not exist (`ConversationalExecutionBackendService`, `rowExists`). Nothing is written into\n * another person's thread, since the row is read and opened under the sender as owner.\n *\n * That window is NOT accepted for a LINKED id (#4013): the id came from outside the page, so the composer stays shut\n * until this check has answered for it (`LinkedConversationStanding.PENDING`).\n */\n const concludeRestore = useCallback((held: string, listed: boolean) => {\n if (!listed) setCurrentId((previous) => (previous === held ? null : previous));\n // A LINKED id is settled here too: opened, or said to be unavailable (#4013).\n if (pendingLink.current === held) settleLink(listed ? LinkedConversationStanding.OPENED : LinkedConversationStanding.UNAVAILABLE);\n }, [setCurrentId, settleLink]);\n useEffect(() => {\n const held = unconfirmedHeldId.current;\n if (!held || history === NO_HISTORY) return;\n unconfirmedHeldId.current = null;\n const listed = heldConversations(history).some((thread) => thread.executionId === held) || executions.has(held);\n // Listed, or not listed by a page that holds every discussion of the scope: the first read decides.\n if (listed || !history.hasOlder) {\n concludeRestore(held, listed);\n return;\n }\n // Older than the newest page, perhaps: read it alone. A read for a scope since left never lands.\n const scope = scopeGeneration.current;\n void fetchConversation(system.ref, contextRef.current, held).then((thread) => {\n if (scope !== scopeGeneration.current) return;\n if (thread) setHistory((current) => withConversationReadById(current, thread));\n concludeRestore(held, Boolean(thread));\n });\n }, [history, executions, concludeRestore, fetchConversation, system.ref]);\n\n useEffect(() => {\n scopeGeneration.current += 1;\n setHistory(NO_HISTORY);\n setLoadingOlder(false);\n // The conversation this person last had open here, if any: a new conversation otherwise.\n const held = readHeldConversation(heldConversationKey(userId, system.ref, contextKey, caseKey));\n unconfirmedHeldId.current = held;\n setShownId(held);\n setSent({});\n void refreshThreads();\n }, [refreshThreads, userId, contextKey, system.ref, caseKey]);\n\n /*\n * A conversation a LINK names (#4013). Unlike a held id it came from outside the page, so it stays PENDING until the\n * first history read of this scope answers for it: nothing can be sent meanwhile (a held id may be continued in that\n * window, a linked one may not), and the restore check above settles it — opened, or said to be unavailable.\n *\n * DECLARED AFTER the scope effect, so on mount, and on every change of scope while it is still pending (a person or a\n * context that resolves after mount), it overrides the conversation that effect restored. It also runs while the view\n * stays mounted, when a person already here follows a notice into another conversation. A link once settled is not\n * applied again, though its id stays on the address until the host drops it.\n */\n useEffect(() => {\n if (!linkedConversationId || !linkIdentity || isLinkedConversationSettled(linkIdentity)) return;\n pendingLink.current = linkedConversationId;\n unconfirmedHeldId.current = linkedConversationId;\n setLinkStanding(LinkedConversationStanding.PENDING);\n setCurrentId(linkedConversationId);\n void refreshThreads();\n }, [linkedConversationId, linkIdentity, heldKey, setCurrentId, refreshThreads]);\n\n const live = currentId ? executions.get(currentId) : undefined;\n // A turn that ended or paused is now on its thread's record: re-read it, so the stored lines replace the live ones.\n useEffect(() => {\n if (live && RECORDED_TURN_STATUSES.has(live.status)) void refreshThreads();\n }, [live?.status, refreshThreads]);\n\n const currentThread = currentId ? threads.find((thread) => thread.executionId === currentId) : undefined;\n const sentHere = currentId ? sent[currentId] : undefined;\n const model = useMemo(() => conversationThreadModel({\n ...(currentThread ? { thread: currentThread } : {}),\n ...(live ? { live } : {}),\n ...(sentHere ? { sent: sentHere } : {}),\n }), [currentThread, live, sentHere]);\n\n // A discussion just started is listed at once, before the record that will name it is read back.\n const discussions = useMemo<AI_ConversationThreadDiscussion[]>(() => {\n const stored = threads.map((thread) => ({ id: thread.executionId, title: threadTitle(thread) }));\n const started = Object.entries(sent)\n .filter(([id, pending]) => pending.length > 0 && !threads.some((thread) => thread.executionId === id))\n .sort(([, left], [, right]) => right[0]!.sentAt.getTime() - left[0]!.sentAt.getTime())\n .map(([id, pending]) => ({ id, title: truncate(pending[0]!.text) }));\n return [...started, ...stored];\n }, [threads, sent]);\n\n // A person who moves elsewhere while a link is pending settles it: they chose another conversation.\n const handleNew = useCallback(() => {\n settleLink(null);\n setLinkStanding(null);\n setCurrentId(null);\n }, [setCurrentId, settleLink]);\n const handleSelect = useCallback((id: string) => {\n settleLink(null);\n setLinkStanding(null);\n setCurrentId(id);\n void refreshThreads();\n }, [refreshThreads, setCurrentId, settleLink]);\n\n const handleDelete = useCallback((id: string) => {\n // Optimistically removed, then deleted server-side (owner-scoped); a refused delete re-reads the true list.\n setHistory((held) => withoutConversation(held, id));\n setSent((previous) => {\n if (!(id in previous)) return previous;\n const next = { ...previous };\n delete next[id];\n return next;\n });\n setCurrentId((previous) => (previous === id ? null : previous));\n void deleteConversation(id).catch(() => { void refreshThreads(); });\n }, [deleteConversation, refreshThreads, setCurrentId]);\n\n const handleSend = useCallback((text: string) => {\n // Multi-turn context is server-authoritative: continuing a thread reuses its `executionId`, and the conversational\n // service reads the thread's prior turns from the persisted row — no client-side history replay.\n // The id the message is stored under, so the page recognises it in the record (#2525 review N1).\n const messageId = crypto.randomUUID();\n // Sending into the new conversation the view offered moves the person on from a link it could not open.\n setLinkStanding((standing) => (standing === LinkedConversationStanding.UNAVAILABLE ? null : standing));\n const id = startExecution(system.ref, { message: text }, currentId ?? undefined, contextRef.current, { messageId, ...(caseRef ? { caseRef } : {}) });\n if (!id) return;\n setSent((previous) => ({ ...previous, [id]: withPendingSend(previous[id], { id: messageId, text, sentAt: new Date() }) }));\n setCurrentId(id);\n }, [startExecution, system.ref, currentId, caseRef, setCurrentId]);\n\n // Sending waits for the turn in flight, and for a decision the turn is waiting on: that is answered, not talked over.\n const turnInFlight = model.turnState === ConversationTurnState.WORKING\n || model.turnState === ConversationTurnState.ANSWERING\n || model.turnState === ConversationTurnState.AWAITING_DECISION;\n const stoppableId = model.stoppable ? model.activeExecutionId : undefined;\n\n /*\n * Report an agent's reply (#2842): offered under each reply the open thread's record holds, in the organization whose\n * administrators triage it. That is the organization the view's context names, as the server requires of a\n * conversation held in an organization's context, else the one the person works in. A reply with nowhere to be\n * reported is not offered the action rather than offered and refused.\n */\n const organizationId = agentBehaviorReportOrganizationOf(contextResourceIdentifiers, appScope?.currentOrganizationId ?? undefined);\n const reportingThreadId = currentThread ? currentId : null;\n const renderReplyActions = useMemo(() => (reportingThreadId && organizationId\n ? ({ messageId }: { readonly messageId: string }) => (\n <AgentReplyReportAction key={messageId} executionId={reportingThreadId} messageId={messageId} organizationId={organizationId} />\n )\n : undefined), [reportingThreadId, organizationId]);\n\n /*\n * Laid out by the CONTAINER's width, not the viewport's (#3134). The view also renders in the assistant's 36rem\n * panel, where a viewport breakpoint put the discussion rail beside the thread on any desktop and left the thread\n * about 294px wide: a record card shown in an answer squeezed its title to nothing. The rail sits beside the thread\n * only when the view itself has room for both (`@2xl`, 42rem); the discussion list reads the same container.\n */\n return (\n <div className=\"@container flex min-h-0 flex-1 flex-col\">\n <div className=\"flex min-h-0 flex-1 flex-col gap-card @2xl:flex-row\">\n <AI_ConversationThreadDiscussions\n preset={preset}\n discussions={discussions}\n currentId={currentId}\n onNew={handleNew}\n onSelect={handleSelect}\n onDelete={handleDelete}\n {...(history.hasOlder ? { onLoadOlder: () => { void loadOlder(); }, loadingOlder } : {})}\n />\n <div className=\"flex min-h-0 min-w-0 flex-1 flex-col gap-card-sm\">\n <AI_ConversationThread\n preset={preset}\n model={model}\n {...(renderReplyActions ? { renderReplyActions } : {})}\n emptyState={{ title: system.displayName, description: system.description || t('emptyStateDescription') }}\n />\n {linkStanding === LinkedConversationStanding.UNAVAILABLE ? (\n <p role=\"status\" className=\"text-sm text-muted-foreground\">{t('linkedConversationUnavailable')}</p>\n ) : null}\n <AI_ConversationThreadComposer\n preset={preset}\n placeholder={t('promptPlaceholder', { assistant: system.displayName })}\n onSubmit={handleSend}\n sendDisabled={turnInFlight || linkStanding === LinkedConversationStanding.PENDING}\n {...(stoppableId ? { onStop: () => cancelExecution(stoppableId) } : {})}\n />\n </div>\n </div>\n </div>\n );\n};\n\n// ─── Compact header ─────────────────────────────────────────────────────────\n\nconst CompactHeader: React.FC<{ system: FlowActorSystem_FrontendInfo }> = ({ system }) => {\n const t = useFlowsActorsLabels();\n const { executions } = useFlowsActors();\n const busy = useMemo(\n () => Array.from(executions.values()).some(\n (e) => e.systemRef === system.ref\n && (e.status === FlowsActorsExecutionStatus.RUNNING || e.status === FlowsActorsExecutionStatus.STARTING),\n ),\n [executions, system.ref],\n );\n return (\n <div className=\"flex items-center gap-element border-b border-border pb-card-sm\">\n <span aria-hidden className={cn('size-2 shrink-0 rounded-full', busy ? 'bg-warning' : 'bg-success')} />\n <span className=\"font-semibold text-foreground\">{system.displayName}</span>\n <span className=\"text-xs text-muted-foreground\">{busy ? t('statusWorking') : t('statusReady')}</span>\n </div>\n );\n};\n\n/**\n * FlowsActorsView — chat-first engine host for a standalone flows-actors surface.\n *\n * Compact header, then the conversation: the person's discussions with the assistant (each execution is one thread;\n * \"New discussion\" starts a fresh one), the open thread, and the composer. Multi-turn context is server-side: a\n * continued thread replays its prior turns to the agent. The actor/flow structural detail is not shown — this is the\n * assistant surface.\n */\nexport const FlowsActorsView: React.FC<FlowsActorsViewProps> = ({\n viewRef,\n viewDefinition: viewDefinitionProp,\n contextResourceIdentifiers: contextResourceIdentifiersProp,\n caseRef,\n linkedConversationId,\n onLinkedConversationSettled,\n linkKey,\n}) => {\n const { flowsActorsViews } = useUI();\n const appScope = useAppScopeSafe();\n const { systems, isLoading } = useFlowsActors();\n const { isReady } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS });\n const t = useFlowsActorsLabels();\n\n const viewDefinition = viewDefinitionProp ?? (viewRef ? flowsActorsViews?.find((v) => v.ref === viewRef) : undefined);\n\n /*\n * A link handed on by the HOST (#4043): a resource composite that declared it hosts this system's conversations on\n * its record. Taken only when no link was passed in props, and only for the system the host declared.\n */\n const hostedLink = useContext(HostedLinkedConversationContext);\n const linkFromHost = linkedConversationId === undefined && hostedLink && viewDefinition && hostedLink.systemRef === viewDefinition.systemRef\n ? hostedLink\n : undefined;\n const effectiveLinkedConversationId = linkedConversationId ?? linkFromHost?.conversationId;\n const effectiveOnLinkedConversationSettled = linkFromHost ? linkFromHost.onSettled : onLinkedConversationSettled;\n const effectiveLinkKey = linkFromHost ? linkFromHost.linkKey : linkKey;\n\n useEffect(() => {\n if (process.env.NODE_ENV === 'production' || viewDefinition || !viewRef || !contextResourceIdentifiersProp || Object.keys(contextResourceIdentifiersProp).length === 0) return;\n console.warn('[FlowsActorsView] Cannot validate explicit view context bindings because the view definition could not be resolved', {\n surfaceName: 'FlowsActorsView', surfaceRef: viewRef, explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [contextResourceIdentifiersProp, viewDefinition, viewRef]);\n\n /*\n * The view's context: its primary scope, the app's custom scope, and what the host passed. Threads are opened in\n * it and listed by it (`ChatWorkspace`). This was computed and its result discarded (#2522).\n */\n const viewContextResourceIdentifiers = useMemo<Record<string, string>>(() => {\n const primaryScopeInitiatorIds = ScopeUtilsService.buildInitiatorIds({\n userId: appScope?.currentUserId,\n organizationId: appScope?.currentOrganizationId,\n applicationId: appScope?.currentApplicationId,\n anonymousUserId: appScope?.currentAnonymousUserId,\n });\n const primaryScopeContext = viewDefinition?.primaryScope\n ? ScopeUtilsService.primaryScopeToContextIdentifiers(primaryScopeInitiatorIds, viewDefinition.primaryScope)\n : {};\n const liveAppScopeContext = appScope?.buildContextResourceIdentifiers() ?? {};\n const customScopeContext = ScopeUtilsService.filterCustomScopeContextResourceIdentifiers(liveAppScopeContext);\n if (!viewDefinition) {\n return ScopeUtilsService.mergeContextResourceIdentifiers(primaryScopeContext, customScopeContext, contextResourceIdentifiersProp) ?? {};\n }\n return ScopeUtilsService.resolveViewContextResourceIdentifiers({\n surfaceName: 'FlowsActorsView',\n surfaceRef: viewDefinition.ref,\n primaryScope: viewDefinition.primaryScope,\n parentResourcesRequirements: viewDefinition.parentResourcesRequirements,\n additionalResourceRequirements: viewDefinition.additionalResourceRequirements,\n primaryScopeContext,\n customScopeContext,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n }) ?? {};\n }, [contextResourceIdentifiersProp, viewDefinition, appScope]);\n\n /*\n * ONE system, resolved directly. This used to map a `systemRefs` LIST to `exposedSystems` and then render\n * `exposedSystems[0]`, so a view naming two assistants silently exposed one with no switcher and no diagnostic\n * (#435). The schema is singular and this reads it singular.\n */\n const activeSystem = useMemo(() => {\n if (!viewDefinition) return undefined;\n return systems.find((system) => system.ref === viewDefinition.systemRef);\n }, [viewDefinition, systems]);\n\n if (!viewDefinition) return <ViewNotFound viewKind=\"flows-actors\" />;\n if (!isReady) return null;\n\n return (\n <div className=\"flex h-full min-h-0 flex-col\">\n {activeSystem ? (\n <>\n <CompactHeader system={activeSystem} />\n <div className=\"flex min-h-0 flex-1 flex-col pt-card-sm\">\n <ChatWorkspace\n system={activeSystem}\n contextResourceIdentifiers={viewContextResourceIdentifiers}\n preset={viewDefinition.layoutPreset}\n caseRef={caseRef}\n linkedConversationId={effectiveLinkedConversationId}\n onLinkedConversationSettled={effectiveOnLinkedConversationSettled}\n linkKey={effectiveLinkKey}\n />\n </div>\n </>\n ) : (\n <div role=\"status\" className=\"p-section text-sm text-muted-foreground\">\n {isLoading ? t('loading') : t('unavailable')}\n </div>\n )}\n </div>\n );\n};\n\nexport default FlowsActorsView;\n"]}
1
+ {"version":3,"file":"FlowsActorsView.js","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/FlowsActorsView.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,4BAA4B,GAI7B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,GAE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BAAoB,EAAE,6BAA6B,EACnD,2BAA2B,EAAE,oCAAoC,EACjE,OAAO,EAAE,gBAAgB,GACzB,GACE,IACL,CACJ,CAAC,CAAC,CAAC,CACF,cAAK,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,yCAAyC,YACnE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,GACxC,CACP,GACG,GACiB,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport {\n agentBehaviorReportOrganizationOf,\n canonicalizeFlowsActorsContextRef,\n FlowsActors_ConversationRole,\n type FlowActorSystem_FrontendInfo,\n type FlowsActors_ConversationExecution,\n type WorkUnitRef,\n} from '@wildo-ai/saas-models';\nimport type { FlowsActorsViewDefinition } from '~wildo-frontend-lib/core/config/flows-actors-view.schemas';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { makeComponentLabelResolver } from '~wildo-frontend-lib/core/i18n/component-label-resolution.utils';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { useFlowsActors } from '~wildo-frontend-lib/core/flows-actors/useFlowsActors';\nimport { FlowsActorsExecutionStatus } from '~wildo-frontend-lib/core/flows-actors/FlowsActorsContext';\nimport {\n conversationThreadModel,\n ConversationTurnState,\n withPendingSend,\n type ConversationThreadPendingSend,\n} from '~wildo-frontend-lib/core/flows-actors/conversation-thread.model';\nimport {\n conversationsHeldBeyondPages,\n heldConversations,\n olderHistoryCursor,\n withConversationReadById,\n withNewestHistoryPage,\n withOlderHistoryPage,\n withoutConversation,\n type HeldConversationHistory,\n} from '~wildo-frontend-lib/core/flows-actors/conversation-history.model';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport {\n AI_ConversationThread,\n AI_ConversationThreadComposer,\n AI_ConversationThreadDiscussions,\n type AI_ConversationThreadDiscussion,\n} from '~wildo-frontend-lib/components/ai-elements/chat/conversation-thread';\nimport { cn } from '~wildo-frontend-lib/core/ui/cn';\nimport {\n heldConversationKey,\n holdConversation,\n isLinkedConversationSettled,\n linkedConversationIdentity,\n markLinkedConversationSettled,\n readHeldConversation,\n} from '~wildo-frontend-lib/components/views/flows-actors-view/held-conversation-selection';\nimport { AgentReplyReportAction } from '~wildo-frontend-lib/components/views/flows-actors-view/AgentReplyReportAction';\nimport { HostedLinkedConversationContext } from '~wildo-frontend-lib/components/views/flows-actors-view/linked-conversation.context';\nimport { RequiredFeaturesGate } from '~wildo-frontend-lib/core/features/RequiredFeaturesGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\n\n/*\n * This view is a HOST (#2525). The conversation itself — its lines, what each turn did, how the latest turn stands,\n * the composer with Stop, the discussion list — is the registry-resolved `AI_ConversationThread`, drawn from the model\n * `conversationThreadModel` derives. The creation workbench draws its conversation with the same surface, so a preset\n * registered for `LOW_LEVEL_AI_CONVERSATION_THREAD` replaces both, and the view's `layoutPreset` names which preset\n * draws this one. What stays here is what only a host knows: which assistant, which threads, which context.\n */\n\nexport interface FlowsActorsViewProps {\n viewRef?: string;\n viewDefinition?: FlowsActorsViewDefinition;\n contextResourceIdentifiers?: Record<string, string>;\n /**\n * The case this conversation works on (#2549): a row of a resource declared `workUnit: true`, such as the close a\n * bookkeeping assistant is opened on. Every message the person sends carries it, and the server admits it afresh on\n * each turn (`admitClientCaseRef`: a readable row of a work-unit resource, its tenant taken from the row), so the\n * turn's model calls are attributed to that case in cost per case. Absent, a turn names no case and its spend reaches\n * only the organization.\n *\n * It attributes; it does not partition. A host mounting one view per case should ALSO pass the case in\n * `contextResourceIdentifiers`, which is what keeps each case's discussions apart.\n */\n caseRef?: WorkUnitRef;\n /**\n * A conversation to open, named by a link (#4013): the conversation-link page (`CONVERSATION_LINK_PAGE_PATH`) sends a\n * person here with it, from a notice or an email about the conversation. It replaces the conversation held for this\n * view and is held in its place once the person's history holds it: listed by the newest page, or read by id when it\n * is older (#4040). It decides nothing about access: an id the history does not hold is not opened, the view says so,\n * and a new conversation is offered instead. Until the history has answered, nothing can be sent into it, since the\n * id came from outside the page. A view rendered by a record view that hosts its system's conversations may instead\n * receive the link from that host (`HostedLinkedConversationContext`, #4043); a link given here wins.\n */\n linkedConversationId?: string;\n /**\n * Called once the view has SETTLED {@link linkedConversationId}: opened it, found it unavailable, or the person moved\n * elsewhere first. The host then drops it from its address, so a reload does not reopen it.\n */\n onLinkedConversationSettled?: () => void;\n /**\n * What distinguishes this link from another naming the same conversation: the navigation entry that carries it. A\n * link once settled under this key is never applied again, even by a remounted view (`held-conversation-selection`).\n */\n linkKey?: string;\n /**\n * How the view shows when its plan fence refuses the scope: PAGE (the default) where the view IS the content of its\n * zone (its route, a pane, an overlay), TILE where a page embeds it, so a locked embed keeps its place instead of\n * becoming a page-sized prompt. The view gates itself wherever it is rendered, as a composite view does.\n */\n featureGatePresentation?: RequiredFeaturesGatePresentation;\n}\n\n// ─── Helpers ────────────────────────────────────────────────────────────────\n\n/**\n * A discussion's title is the person's own first words, shortened. An EMPTY result is meaningful: the discussion has\n * no words yet, and the discussion list words it as untitled at render. The word is never stored here — a title held\n * in state would stay in the language it was created in, and would be an English literal besides (#1414).\n */\nfunction truncate(s: string, n = 40): string {\n const t = s.trim().replace(/\\s+/g, ' ');\n return t.length > n ? `${t.slice(0, n)}…` : t;\n}\n\n/** A stored thread's title: its first message from the person. */\nfunction threadTitle(thread: FlowsActors_ConversationExecution): string {\n return truncate(thread.messages.find((message) => message.role === FlowsActors_ConversationRole.USER)?.content ?? '');\n}\n\n/**\n * The view's own words — its header, its placeholder, its empty state — from `FlowsActorsView.labels.ts`. The words of\n * the conversation are the thread surface's. The host gates on `isReady` before any of these sub-components mount.\n */\nfunction useFlowsActorsLabels(): (key: string, params?: Record<string, string | number>) => string {\n const { tComponent } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS });\n return useMemo(() => makeComponentLabelResolver(tComponent, FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS), [tComponent]);\n}\n\n/** A turn that ended, or paused on a decision: its thread's record now carries it, so the thread is re-read. */\nconst RECORDED_TURN_STATUSES: ReadonlySet<FlowsActorsExecutionStatus> = new Set([\n FlowsActorsExecutionStatus.COMPLETED,\n FlowsActorsExecutionStatus.CANCELLED,\n FlowsActorsExecutionStatus.ERROR,\n FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n]);\n\n/** Where a conversation named by a link stands in the view (#4013). */\nenum LinkedConversationStanding {\n /** The history has not answered yet: the conversation is shown selected, and nothing can be sent into it. */\n PENDING = 'pending',\n /** The history lists it: it is open, and held like any conversation the person chose. */\n OPENED = 'opened',\n /**\n * The history does not hold it, even read by id: someone else's, deleted, or opened in another context than this\n * view's. The view says it cannot be opened here and offers a new conversation.\n */\n UNAVAILABLE = 'unavailable',\n}\n\n// ─── Chat workspace (one system: threads + conversation + composer) ───────────\n\nconst NO_HISTORY: HeldConversationHistory = { threads: [], hasOlder: false };\n\n/**\n * @param contextResourceIdentifiers - The view's resolved context (#2522). It PARTITIONS the caller's threads:\n * threads are opened in it and listed by it, the same identifiers on both doors, folded by the engine into the\n * thread's `contextRef`. It decides nothing about access — the owner is always the signed-in person.\n * @param preset - The `AI_ConversationThread` preset that draws this conversation: the view's `layoutPreset`.\n *\n * The STORED threads are the transcript's authority, read from history and read again when a turn ends or pauses;\n * the live turn is drawn over them until the record carries it (`conversationThreadModel`). This view used to build\n * transcripts in the browser as turns settled, a second copy of the record that a reload could only contradict.\n */\nconst ChatWorkspace: React.FC<{\n system: FlowActorSystem_FrontendInfo;\n contextResourceIdentifiers: Record<string, string>;\n preset: string;\n caseRef?: WorkUnitRef;\n linkedConversationId?: string;\n onLinkedConversationSettled?: () => void;\n linkKey?: string;\n}> = ({\n system,\n contextResourceIdentifiers,\n preset,\n caseRef,\n linkedConversationId,\n onLinkedConversationSettled,\n linkKey,\n}) => {\n const t = useFlowsActorsLabels();\n const { startExecution, cancelExecution, executions, fetchConversationHistory, fetchConversation, deleteConversation } = useFlowsActors();\n const appScope = useAppScopeSafe();\n const userId = appScope?.currentUserId ?? null;\n\n /*\n * The context's VALUE, for effect dependencies: the identifiers object is rebuilt on every scope change, and only a\n * different context should reload the threads. The latest object is read through a ref.\n */\n const contextKey = canonicalizeFlowsActorsContextRef(contextResourceIdentifiers);\n const contextRef = useRef(contextResourceIdentifiers);\n contextRef.current = contextResourceIdentifiers;\n\n /*\n * The discussions held, read a page at a time (#2528): the newest page on open and after every turn, older pages when\n * the person asks for them. `conversation-history.model.ts` keeps the two kinds of read from contradicting each other.\n */\n const [history, setHistory] = useState<HeldConversationHistory>(NO_HISTORY);\n const historyRef = useRef(history);\n historyRef.current = history;\n // Paged, and read by id (a linked discussion older than the newest page, #4013): what the person sees and opens.\n const threads = useMemo(() => heldConversations(history), [history]);\n const [loadingOlder, setLoadingOlder] = useState(false);\n /*\n * The conversation on screen, HELD across unmounts (`held-conversation-selection.ts`): a host that hides this view\n * (the utility panel closes when the person follows a record it showed) gives it back the conversation it showed.\n */\n const caseKey = caseRef ? `${caseRef.resourceType}:${caseRef.resourceId}` : '';\n const heldKey = heldConversationKey(userId, system.ref, contextKey, caseKey);\n // Set from the held selection by the scope effect below, which runs on mount and on every change of scope.\n const [currentId, setShownId] = useState<string | null>(null);\n const heldKeyRef = useRef(heldKey);\n heldKeyRef.current = heldKey;\n const setCurrentId = useCallback((next: string | null | ((previous: string | null) => string | null)) => {\n setShownId((previous) => {\n const id = typeof next === 'function' ? next(previous) : next;\n holdConversation(heldKeyRef.current, id);\n return id;\n });\n }, []);\n /** A held conversation not yet confirmed by the first history read of this scope (see the restore check below). */\n const unconfirmedHeldId = useRef<string | null>(null);\n /*\n * What the person sent, by thread. A turn outlives the page's attention: the person can switch threads while one\n * runs or waits on a decision and come back to it, and their message must come back with it until the record has it.\n */\n const [sent, setSent] = useState<Readonly<Record<string, readonly ConversationThreadPendingSend[]>>>({});\n\n /*\n * Read the caller's discussions from the SERVER (the executions resource, owner-scoped). Race-guarded by a\n * generation counter: a stale read (the system, the person or the context changed since) never applies.\n */\n const readGeneration = useRef(0);\n const refreshThreads = useCallback(async () => {\n const generation = ++readGeneration.current;\n const page = await fetchConversationHistory(system.ref, contextRef.current);\n // A read that FAILED keeps the list the last good read gave (#2525 review M4): it re-reads after every turn, and a\n // failure — often the same outage that ended the turn — used to empty the discussion list and the transcript.\n if (generation !== readGeneration.current || page === undefined) return;\n setHistory((held) => withNewestHistoryPage(held, page));\n /*\n * A discussion read by id is older than this page (#4013), so this page cannot refresh it: it is read again by id,\n * so a turn sent into it is shown from the record like any other. One the page reached is paged now; when the page\n * is everything there is, one it does not hold was deleted, and folding the page in has already dropped it.\n */\n if (!page.hasOlder) return;\n const inPage = new Set(page.executions.map((thread) => thread.executionId));\n for (const executionId of conversationsHeldBeyondPages(historyRef.current)) {\n if (inPage.has(executionId)) continue;\n const thread = await fetchConversation(system.ref, contextRef.current, executionId);\n if (generation !== readGeneration.current) return;\n // A failed read keeps what was held, as a failed page does; a thread gone since is dropped.\n if (thread === undefined) continue;\n setHistory((held) => (thread === null ? withoutConversation(held, executionId) : withConversationReadById(held, thread)));\n }\n }, [system.ref, fetchConversationHistory, fetchConversation]);\n\n /*\n * The next older page. Guarded by the SCOPE, not by the read generation: a turn's re-read of the newest page must not\n * discard it, but a page read for another system, person or context must never land here.\n */\n const scopeGeneration = useRef(0);\n const loadOlder = useCallback(async () => {\n const before = olderHistoryCursor(history);\n if (!before || loadingOlder) return;\n const scope = scopeGeneration.current;\n setLoadingOlder(true);\n try {\n const page = await fetchConversationHistory(system.ref, contextRef.current, { before });\n if (scope !== scopeGeneration.current || page === undefined) return;\n setHistory((held) => withOlderHistoryPage(held, page));\n } finally {\n if (scope === scopeGeneration.current) setLoadingOlder(false);\n }\n }, [history, loadingOlder, system.ref, fetchConversationHistory]);\n\n // Where a conversation named by a link stands (#4013); see the link effect below.\n const [linkStanding, setLinkStanding] = useState<LinkedConversationStanding | null>(null);\n const pendingLink = useRef<string | null>(null);\n const linkIdentity = linkedConversationId ? linkedConversationIdentity(linkKey, linkedConversationId) : null;\n const linkIdentityRef = useRef(linkIdentity);\n linkIdentityRef.current = linkIdentity;\n const linkSettledCallback = useRef(onLinkedConversationSettled);\n linkSettledCallback.current = onLinkedConversationSettled;\n const settleLink = useCallback((standing: LinkedConversationStanding | null) => {\n if (!pendingLink.current) return;\n if (linkIdentityRef.current) markLinkedConversationSettled(linkIdentityRef.current);\n pendingLink.current = null;\n setLinkStanding(standing);\n linkSettledCallback.current?.();\n }, []);\n /*\n * The RESTORE CHECK: a held conversation is kept only if this scope's history holds it, or its turn is live in this\n * page. The first read answers for it, and when that page does not list it while older discussions remain, it is read\n * by id (#4013): a conversation older than the newest page is still the person's, and a link to one must open it.\n * Otherwise it was deleted elsewhere, or is someone else's, and the view opens a new conversation rather than\n * continuing one it cannot show — sending into it would continue a thread nobody sees. A by-id read that FAILS counts\n * as not held: the view cannot show it, so it does not open it.\n *\n * DECLARED BEFORE the scope effect on purpose: effects run in declaration order, so in a commit that changes the scope\n * this check runs while `unconfirmedHeldId` still names the OLD scope's (already confirmed, so null) selection, and\n * never tests the new scope's held id against the previous scope's history. The new id is checked against the first\n * read of its own scope, on a later commit.\n *\n * Accepted: between mount and that first read the held thread is selected and its transcript not yet loaded, and a\n * message sent in that window continues it. Blocking the send instead would hold the composer shut for as long as a\n * failing history read keeps failing. The window is one read long, two when the held thread is read by id. A thread\n * deleted elsewhere and continued in it comes back as a NEW thread under the same id, holding only that message: the\n * server opens a row when the one it was asked to continue does not exist (`ConversationalExecutionBackendService`, `rowExists`). Nothing is written into\n * another person's thread, since the row is read and opened under the sender as owner.\n *\n * That window is NOT accepted for a LINKED id (#4013): the id came from outside the page, so the composer stays shut\n * until this check has answered for it (`LinkedConversationStanding.PENDING`).\n */\n const concludeRestore = useCallback((held: string, listed: boolean) => {\n if (!listed) setCurrentId((previous) => (previous === held ? null : previous));\n // A LINKED id is settled here too: opened, or said to be unavailable (#4013).\n if (pendingLink.current === held) settleLink(listed ? LinkedConversationStanding.OPENED : LinkedConversationStanding.UNAVAILABLE);\n }, [setCurrentId, settleLink]);\n useEffect(() => {\n const held = unconfirmedHeldId.current;\n if (!held || history === NO_HISTORY) return;\n unconfirmedHeldId.current = null;\n const listed = heldConversations(history).some((thread) => thread.executionId === held) || executions.has(held);\n // Listed, or not listed by a page that holds every discussion of the scope: the first read decides.\n if (listed || !history.hasOlder) {\n concludeRestore(held, listed);\n return;\n }\n // Older than the newest page, perhaps: read it alone. A read for a scope since left never lands.\n const scope = scopeGeneration.current;\n void fetchConversation(system.ref, contextRef.current, held).then((thread) => {\n if (scope !== scopeGeneration.current) return;\n if (thread) setHistory((current) => withConversationReadById(current, thread));\n concludeRestore(held, Boolean(thread));\n });\n }, [history, executions, concludeRestore, fetchConversation, system.ref]);\n\n useEffect(() => {\n scopeGeneration.current += 1;\n setHistory(NO_HISTORY);\n setLoadingOlder(false);\n // The conversation this person last had open here, if any: a new conversation otherwise.\n const held = readHeldConversation(heldConversationKey(userId, system.ref, contextKey, caseKey));\n unconfirmedHeldId.current = held;\n setShownId(held);\n setSent({});\n void refreshThreads();\n }, [refreshThreads, userId, contextKey, system.ref, caseKey]);\n\n /*\n * A conversation a LINK names (#4013). Unlike a held id it came from outside the page, so it stays PENDING until the\n * first history read of this scope answers for it: nothing can be sent meanwhile (a held id may be continued in that\n * window, a linked one may not), and the restore check above settles it — opened, or said to be unavailable.\n *\n * DECLARED AFTER the scope effect, so on mount, and on every change of scope while it is still pending (a person or a\n * context that resolves after mount), it overrides the conversation that effect restored. It also runs while the view\n * stays mounted, when a person already here follows a notice into another conversation. A link once settled is not\n * applied again, though its id stays on the address until the host drops it.\n */\n useEffect(() => {\n if (!linkedConversationId || !linkIdentity || isLinkedConversationSettled(linkIdentity)) return;\n pendingLink.current = linkedConversationId;\n unconfirmedHeldId.current = linkedConversationId;\n setLinkStanding(LinkedConversationStanding.PENDING);\n setCurrentId(linkedConversationId);\n void refreshThreads();\n }, [linkedConversationId, linkIdentity, heldKey, setCurrentId, refreshThreads]);\n\n const live = currentId ? executions.get(currentId) : undefined;\n // A turn that ended or paused is now on its thread's record: re-read it, so the stored lines replace the live ones.\n useEffect(() => {\n if (live && RECORDED_TURN_STATUSES.has(live.status)) void refreshThreads();\n }, [live?.status, refreshThreads]);\n\n const currentThread = currentId ? threads.find((thread) => thread.executionId === currentId) : undefined;\n const sentHere = currentId ? sent[currentId] : undefined;\n const model = useMemo(() => conversationThreadModel({\n ...(currentThread ? { thread: currentThread } : {}),\n ...(live ? { live } : {}),\n ...(sentHere ? { sent: sentHere } : {}),\n }), [currentThread, live, sentHere]);\n\n // A discussion just started is listed at once, before the record that will name it is read back.\n const discussions = useMemo<AI_ConversationThreadDiscussion[]>(() => {\n const stored = threads.map((thread) => ({ id: thread.executionId, title: threadTitle(thread) }));\n const started = Object.entries(sent)\n .filter(([id, pending]) => pending.length > 0 && !threads.some((thread) => thread.executionId === id))\n .sort(([, left], [, right]) => right[0]!.sentAt.getTime() - left[0]!.sentAt.getTime())\n .map(([id, pending]) => ({ id, title: truncate(pending[0]!.text) }));\n return [...started, ...stored];\n }, [threads, sent]);\n\n // A person who moves elsewhere while a link is pending settles it: they chose another conversation.\n const handleNew = useCallback(() => {\n settleLink(null);\n setLinkStanding(null);\n setCurrentId(null);\n }, [setCurrentId, settleLink]);\n const handleSelect = useCallback((id: string) => {\n settleLink(null);\n setLinkStanding(null);\n setCurrentId(id);\n void refreshThreads();\n }, [refreshThreads, setCurrentId, settleLink]);\n\n const handleDelete = useCallback((id: string) => {\n // Optimistically removed, then deleted server-side (owner-scoped); a refused delete re-reads the true list.\n setHistory((held) => withoutConversation(held, id));\n setSent((previous) => {\n if (!(id in previous)) return previous;\n const next = { ...previous };\n delete next[id];\n return next;\n });\n setCurrentId((previous) => (previous === id ? null : previous));\n void deleteConversation(id).catch(() => { void refreshThreads(); });\n }, [deleteConversation, refreshThreads, setCurrentId]);\n\n const handleSend = useCallback((text: string) => {\n // Multi-turn context is server-authoritative: continuing a thread reuses its `executionId`, and the conversational\n // service reads the thread's prior turns from the persisted row — no client-side history replay.\n // The id the message is stored under, so the page recognises it in the record (#2525 review N1).\n const messageId = crypto.randomUUID();\n // Sending into the new conversation the view offered moves the person on from a link it could not open.\n setLinkStanding((standing) => (standing === LinkedConversationStanding.UNAVAILABLE ? null : standing));\n const id = startExecution(system.ref, { message: text }, currentId ?? undefined, contextRef.current, { messageId, ...(caseRef ? { caseRef } : {}) });\n if (!id) return;\n setSent((previous) => ({ ...previous, [id]: withPendingSend(previous[id], { id: messageId, text, sentAt: new Date() }) }));\n setCurrentId(id);\n }, [startExecution, system.ref, currentId, caseRef, setCurrentId]);\n\n // Sending waits for the turn in flight, and for a decision the turn is waiting on: that is answered, not talked over.\n const turnInFlight = model.turnState === ConversationTurnState.WORKING\n || model.turnState === ConversationTurnState.ANSWERING\n || model.turnState === ConversationTurnState.AWAITING_DECISION;\n const stoppableId = model.stoppable ? model.activeExecutionId : undefined;\n\n /*\n * Report an agent's reply (#2842): offered under each reply the open thread's record holds, in the organization whose\n * administrators triage it. That is the organization the view's context names, as the server requires of a\n * conversation held in an organization's context, else the one the person works in. A reply with nowhere to be\n * reported is not offered the action rather than offered and refused.\n */\n const organizationId = agentBehaviorReportOrganizationOf(contextResourceIdentifiers, appScope?.currentOrganizationId ?? undefined);\n const reportingThreadId = currentThread ? currentId : null;\n const renderReplyActions = useMemo(() => (reportingThreadId && organizationId\n ? ({ messageId }: { readonly messageId: string }) => (\n <AgentReplyReportAction key={messageId} executionId={reportingThreadId} messageId={messageId} organizationId={organizationId} />\n )\n : undefined), [reportingThreadId, organizationId]);\n\n /*\n * Laid out by the CONTAINER's width, not the viewport's (#3134). The view also renders in the assistant's 36rem\n * panel, where a viewport breakpoint put the discussion rail beside the thread on any desktop and left the thread\n * about 294px wide: a record card shown in an answer squeezed its title to nothing. The rail sits beside the thread\n * only when the view itself has room for both (`@2xl`, 42rem); the discussion list reads the same container.\n */\n return (\n <div className=\"@container flex min-h-0 flex-1 flex-col\">\n <div className=\"flex min-h-0 flex-1 flex-col gap-card @2xl:flex-row\">\n <AI_ConversationThreadDiscussions\n preset={preset}\n discussions={discussions}\n currentId={currentId}\n onNew={handleNew}\n onSelect={handleSelect}\n onDelete={handleDelete}\n {...(history.hasOlder ? { onLoadOlder: () => { void loadOlder(); }, loadingOlder } : {})}\n />\n <div className=\"flex min-h-0 min-w-0 flex-1 flex-col gap-card-sm\">\n <AI_ConversationThread\n preset={preset}\n model={model}\n {...(renderReplyActions ? { renderReplyActions } : {})}\n emptyState={{ title: system.displayName, description: system.description || t('emptyStateDescription') }}\n />\n {linkStanding === LinkedConversationStanding.UNAVAILABLE ? (\n <p role=\"status\" className=\"text-sm text-muted-foreground\">{t('linkedConversationUnavailable')}</p>\n ) : null}\n <AI_ConversationThreadComposer\n preset={preset}\n placeholder={t('promptPlaceholder', { assistant: system.displayName })}\n onSubmit={handleSend}\n sendDisabled={turnInFlight || linkStanding === LinkedConversationStanding.PENDING}\n {...(stoppableId ? { onStop: () => cancelExecution(stoppableId) } : {})}\n />\n </div>\n </div>\n </div>\n );\n};\n\n// ─── Compact header ─────────────────────────────────────────────────────────\n\nconst CompactHeader: React.FC<{ system: FlowActorSystem_FrontendInfo }> = ({ system }) => {\n const t = useFlowsActorsLabels();\n const { executions } = useFlowsActors();\n const busy = useMemo(\n () => Array.from(executions.values()).some(\n (e) => e.systemRef === system.ref\n && (e.status === FlowsActorsExecutionStatus.RUNNING || e.status === FlowsActorsExecutionStatus.STARTING),\n ),\n [executions, system.ref],\n );\n return (\n <div className=\"flex items-center gap-element border-b border-border pb-card-sm\">\n <span aria-hidden className={cn('size-2 shrink-0 rounded-full', busy ? 'bg-warning' : 'bg-success')} />\n <span className=\"font-semibold text-foreground\">{system.displayName}</span>\n <span className=\"text-xs text-muted-foreground\">{busy ? t('statusWorking') : t('statusReady')}</span>\n </div>\n );\n};\n\n/**\n * FlowsActorsView — chat-first engine host for a standalone flows-actors surface.\n *\n * Compact header, then the conversation: the person's discussions with the assistant (each execution is one thread;\n * \"New discussion\" starts a fresh one), the open thread, and the composer. Multi-turn context is server-side: a\n * continued thread replays its prior turns to the agent. The actor/flow structural detail is not shown — this is the\n * assistant surface.\n */\nexport const FlowsActorsView: React.FC<FlowsActorsViewProps> = ({\n viewRef,\n viewDefinition: viewDefinitionProp,\n contextResourceIdentifiers: contextResourceIdentifiersProp,\n caseRef,\n linkedConversationId,\n onLinkedConversationSettled,\n linkKey,\n featureGatePresentation = RequiredFeaturesGatePresentation.PAGE,\n}) => {\n const { flowsActorsViews } = useUI();\n const appScope = useAppScopeSafe();\n const { systems, isLoading } = useFlowsActors();\n const { isReady } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS });\n const t = useFlowsActorsLabels();\n\n const viewDefinition = viewDefinitionProp ?? (viewRef ? flowsActorsViews?.find((v) => v.ref === viewRef) : undefined);\n\n /*\n * A link handed on by the HOST (#4043): a resource composite that declared it hosts this system's conversations on\n * its record. Taken only when no link was passed in props, and only for the system the host declared.\n */\n const hostedLink = useContext(HostedLinkedConversationContext);\n const linkFromHost = linkedConversationId === undefined && hostedLink && viewDefinition && hostedLink.systemRef === viewDefinition.systemRef\n ? hostedLink\n : undefined;\n const effectiveLinkedConversationId = linkedConversationId ?? linkFromHost?.conversationId;\n const effectiveOnLinkedConversationSettled = linkFromHost ? linkFromHost.onSettled : onLinkedConversationSettled;\n const effectiveLinkKey = linkFromHost ? linkFromHost.linkKey : linkKey;\n\n useEffect(() => {\n if (process.env.NODE_ENV === 'production' || viewDefinition || !viewRef || !contextResourceIdentifiersProp || Object.keys(contextResourceIdentifiersProp).length === 0) return;\n console.warn('[FlowsActorsView] Cannot validate explicit view context bindings because the view definition could not be resolved', {\n surfaceName: 'FlowsActorsView', surfaceRef: viewRef, explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [contextResourceIdentifiersProp, viewDefinition, viewRef]);\n\n /*\n * The view's context: its primary scope, the app's custom scope, and what the host passed. Threads are opened in\n * it and listed by it (`ChatWorkspace`). This was computed and its result discarded (#2522).\n */\n const viewContextResourceIdentifiers = useMemo<Record<string, string>>(() => {\n const primaryScopeInitiatorIds = ScopeUtilsService.buildInitiatorIds({\n userId: appScope?.currentUserId,\n organizationId: appScope?.currentOrganizationId,\n applicationId: appScope?.currentApplicationId,\n anonymousUserId: appScope?.currentAnonymousUserId,\n });\n const primaryScopeContext = viewDefinition?.primaryScope\n ? ScopeUtilsService.primaryScopeToContextIdentifiers(primaryScopeInitiatorIds, viewDefinition.primaryScope)\n : {};\n const liveAppScopeContext = appScope?.buildContextResourceIdentifiers() ?? {};\n const customScopeContext = ScopeUtilsService.filterCustomScopeContextResourceIdentifiers(liveAppScopeContext);\n if (!viewDefinition) {\n return ScopeUtilsService.mergeContextResourceIdentifiers(primaryScopeContext, customScopeContext, contextResourceIdentifiersProp) ?? {};\n }\n return ScopeUtilsService.resolveViewContextResourceIdentifiers({\n surfaceName: 'FlowsActorsView',\n surfaceRef: viewDefinition.ref,\n primaryScope: viewDefinition.primaryScope,\n parentResourcesRequirements: viewDefinition.parentResourcesRequirements,\n additionalResourceRequirements: viewDefinition.additionalResourceRequirements,\n primaryScopeContext,\n customScopeContext,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n }) ?? {};\n }, [contextResourceIdentifiersProp, viewDefinition, appScope]);\n\n /*\n * ONE system, resolved directly. This used to map a `systemRefs` LIST to `exposedSystems` and then render\n * `exposedSystems[0]`, so a view naming two assistants silently exposed one with no switcher and no diagnostic\n * (#435). The schema is singular and this reads it singular.\n */\n const activeSystem = useMemo(() => {\n if (!viewDefinition) return undefined;\n return systems.find((system) => system.ref === viewDefinition.systemRef);\n }, [viewDefinition, systems]);\n\n if (!viewDefinition) return <ViewNotFound viewKind=\"flows-actors\" />;\n if (!isReady) return null;\n\n // The view's plan fence, wherever it is shown (its route, a pane, the utility panel, an embed): the conversation is\n // not opened for a scope without the features the view declares.\n return (\n <RequiredFeaturesGate requiredFeatures={viewDefinition.requiredFeatures} presentation={featureGatePresentation}>\n <div className=\"flex h-full min-h-0 flex-col\">\n {activeSystem ? (\n <>\n <CompactHeader system={activeSystem} />\n <div className=\"flex min-h-0 flex-1 flex-col pt-card-sm\">\n <ChatWorkspace\n system={activeSystem}\n contextResourceIdentifiers={viewContextResourceIdentifiers}\n preset={viewDefinition.layoutPreset}\n caseRef={caseRef}\n linkedConversationId={effectiveLinkedConversationId}\n onLinkedConversationSettled={effectiveOnLinkedConversationSettled}\n linkKey={effectiveLinkKey}\n />\n </div>\n </>\n ) : (\n <div role=\"status\" className=\"p-section text-sm text-muted-foreground\">\n {isLoading ? t('loading') : t('unavailable')}\n </div>\n )}\n </div>\n </RequiredFeaturesGate>\n );\n};\n\nexport default FlowsActorsView;\n"]}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { FullCustomViewDefinition } from '../../../core/config/full-custom-view.schemas';
3
3
  import { NavigationZone } from '../../../core/navigation/navigation.schemas';
4
+ import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation';
4
5
  /**
5
6
  * FullCustomView Props
6
7
  */
@@ -20,6 +21,12 @@ export interface FullCustomViewProps {
20
21
  contextResourceIdentifiers?: Record<string, string>;
21
22
  /** Hosting navigation zone — threads into the header's back affordance. */
22
23
  navigationZone?: NavigationZone;
24
+ /**
25
+ * How the view shows when its plan fence refuses the scope: PAGE (the default) where the view IS the content of its
26
+ * zone (its route, a pane, an overlay), TILE where a page embeds it, so a locked embed keeps its place instead of
27
+ * becoming a page-sized prompt. The view gates itself wherever it is rendered, as a composite view does.
28
+ */
29
+ featureGatePresentation?: RequiredFeaturesGatePresentation;
23
30
  }
24
31
  /**
25
32
  * FullCustomView Layout Component
@@ -1 +1 @@
1
- {"version":3,"file":"FullCustomView.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/full-custom-view/FullCustomView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AAQzG,OAAO,EAAyB,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAE/G;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAE1C;;;;;;;OAOG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,2EAA2E;IAC3E,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqHxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"FullCustomView.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/full-custom-view/FullCustomView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AASzG,OAAO,EAAyB,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAE/G,OAAO,EAAE,gCAAgC,EAAE,MAAM,uEAAuE,CAAC;AAEzH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAE1C;;;;;;;OAOG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,2EAA2E;IAC3E,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,gCAAgC,CAAC;CAC5D;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgIxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useEffect, useMemo } from 'react';
3
3
  import { CorePresetNames } from '@wildo-ai/presets-components-models';
4
4
  import { useUI } from '../../../core/ui/useUI.js';
@@ -7,8 +7,11 @@ import { useAppScopeSafe } from '../../../core/scope/useAppScope.js';
7
7
  import { ViewNotFound } from '../../../components/views/ViewNotFound.js';
8
8
  import { ComponentRegistryService } from '../../../core/components-registry/component-registry.frontend.service.js';
9
9
  import { ComponentNotInjected } from '../../../core/components-registry/ComponentNotInjected.js';
10
+ import { REGISTERED_COMPONENT_ROOT_ATTRIBUTE } from '../../../core/components-registry/RegisteredComponentRoot.js';
10
11
  import { ViewLayout_Header } from '../../../components/views/ViewLayout_Header.js';
11
12
  import { NavigationContentType, NavigationZone } from '../../../core/navigation/navigation.schemas.js';
13
+ import { RequiredFeaturesGate } from '../../../core/features/RequiredFeaturesGate.js';
14
+ import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation.js';
12
15
  /**
13
16
  * FullCustomView Layout Component
14
17
  *
@@ -18,7 +21,7 @@ import { NavigationContentType, NavigationZone } from '../../../core/navigation/
18
21
  * The component handles its own data fetching - the engine only
19
22
  * provides the resolved view definition and context identifiers.
20
23
  */
21
- export const FullCustomView = ({ viewRef, viewDefinition: viewDefinitionProp, contextResourceIdentifiers: contextResourceIdentifiersProp, navigationZone = NavigationZone.PRIMARY, }) => {
24
+ export const FullCustomView = ({ viewRef, viewDefinition: viewDefinitionProp, contextResourceIdentifiers: contextResourceIdentifiersProp, navigationZone = NavigationZone.PRIMARY, featureGatePresentation = RequiredFeaturesGatePresentation.PAGE, }) => {
22
25
  const { fullCustomViews } = useUI();
23
26
  const appScope = useAppScopeSafe();
24
27
  // Resolve definition: use provided prop, or resolve from viewRef via UIContext
@@ -82,7 +85,9 @@ export const FullCustomView = ({ viewRef, viewDefinition: viewDefinitionProp, co
82
85
  if (!CustomViewComponent) {
83
86
  return (_jsx(ComponentNotInjected, { componentType: viewDefinition.componentRef, componentName: viewDefinition.componentRef }));
84
87
  }
85
- return (_jsxs(_Fragment, { children: [_jsx(ViewLayout_Header, { viewRef: viewDefinition.ref, contentType: NavigationContentType.FULL_CUSTOM_VIEW, hasAuthoredIcon: Boolean(viewDefinition.icon), navigationZone: navigationZone, className: "mb-group" }), _jsx(React.Suspense, { fallback: _jsx("div", { className: "h-8 animate-pulse motion-reduce:animate-none bg-muted rounded", "aria-hidden": "true" }), children: _jsx(CustomViewComponent, { viewRef: viewDefinition.ref, viewDefinition: viewDefinition, contextResourceIdentifiers: contextResourceIdentifiers }) })] }));
88
+ // The view's plan fence, wherever it is shown (its route, a pane, an overlay, an embed): no path renders the view for
89
+ // a scope without the features it declares.
90
+ return (_jsxs(RequiredFeaturesGate, { requiredFeatures: viewDefinition.requiredFeatures, presentation: featureGatePresentation, children: [_jsx(ViewLayout_Header, { viewRef: viewDefinition.ref, contentType: NavigationContentType.FULL_CUSTOM_VIEW, hasAuthoredIcon: Boolean(viewDefinition.icon), navigationZone: navigationZone, className: "mb-group" }), _jsx(React.Suspense, { fallback: _jsx("div", { className: "h-8 animate-pulse motion-reduce:animate-none bg-muted rounded", "aria-hidden": "true" }), children: _jsx("div", { className: "contents", "data-full-custom-view": viewDefinition.ref, [REGISTERED_COMPONENT_ROOT_ATTRIBUTE]: viewDefinition.componentRef, children: _jsx(CustomViewComponent, { viewRef: viewDefinition.ref, viewDefinition: viewDefinition, contextResourceIdentifiers: contextResourceIdentifiers }) }) })] }));
86
91
  };
87
92
  export default FullCustomView;
88
93
  //# sourceMappingURL=FullCustomView.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullCustomView.js","sourceRoot":"","sources":["../../../../../src/components/views/full-custom-view/FullCustomView.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,eAAe,EAAyB,MAAM,qCAAqC,CAAC;AAE7F,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kFAAkF,CAAC;AAC5H,OAAO,EAAE,oBAAoB,EAAE,MAAM,mEAAmE,CAAC;AACzG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAwB/G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAC5D,OAAO,EACP,cAAc,EAAE,kBAAkB,EAClC,0BAA0B,EAAE,8BAA8B,EAC1D,cAAc,GAAG,cAAc,CAAC,OAAO,GACxC,EAAE,EAAE;IACH,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,EAAE,CAAC;IACpC,MAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;IAEnC,+EAA+E;IAC/E,MAAM,cAAc,GAAG,kBAAkB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,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Ac,EAC9B,SAAS,EAAC,UAAU,GACpB,EACF,KAAC,KAAK,CAAC,QAAQ,IAAC,QAAQ,EAAE,cAAK,SAAS,EAAC,+DAA+D,iBAAa,MAAM,GAAG,YAC5H,KAAC,mBAAmB,IAClB,OAAO,EAAE,cAAc,CAAC,GAAG,EAC3B,cAAc,EAAE,cAAc,EAC9B,0BAA0B,EAAE,0BAA0B,GACtD,GACa,IAChB,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import React, { useEffect, useMemo } from 'react';\nimport { CorePresetNames, FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport type { FullCustomViewDefinition } from '~wildo-frontend-lib/core/config/full-custom-view.schemas';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { ComponentRegistryService } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.service';\nimport { ComponentNotInjected } from '~wildo-frontend-lib/core/components-registry/ComponentNotInjected';\nimport { ViewLayout_Header } from '~wildo-frontend-lib/components/views/ViewLayout_Header';\nimport { NavigationContentType, NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\n\n/**\n * FullCustomView Props\n */\nexport interface FullCustomViewProps {\n /** View reference — resolved from UIContext internally. Mutually exclusive with `viewDefinition`. */\n viewRef?: string;\n /** Pre-resolved view definition. When provided, viewRef is ignored. */\n viewDefinition?: FullCustomViewDefinition;\n\n /**\n * Context resource identifiers for scope.\n * When provided (e.g. from NavigationContentAreas), these are treated as\n * explicit navigation-time overrides and merged last over the live AppScope\n * context resolved by this view.\n * When omitted (e.g. URL-based routing), scope is self-resolved from the\n * canonical AppScope primary snapshot using the view definition's primaryScope.\n */\n contextResourceIdentifiers?: Record<string, string>;\n /** Hosting navigation zone — threads into the header's back affordance. */\n navigationZone?: NavigationZone;\n}\n\n/**\n * FullCustomView Layout Component\n * \n * This component renders a fully custom view where all interaction\n * is managed by the component referenced in componentRef.\n * \n * The component handles its own data fetching - the engine only\n * provides the resolved view definition and context identifiers.\n */\nexport const FullCustomView: React.FC<FullCustomViewProps> = ({\n viewRef,\n viewDefinition: viewDefinitionProp,\n contextResourceIdentifiers: contextResourceIdentifiersProp,\n navigationZone = NavigationZone.PRIMARY,\n}) => {\n const { fullCustomViews } = useUI();\n const appScope = useAppScopeSafe();\n \n // Resolve definition: use provided prop, or resolve from viewRef via UIContext\n const viewDefinition = viewDefinitionProp ?? (viewRef ? fullCustomViews?.find(v => v.ref === viewRef) : undefined);\n\n useEffect(() => {\n if (\n process.env.NODE_ENV === 'production'\n || viewDefinition\n || !viewRef\n || !contextResourceIdentifiersProp\n || Object.keys(contextResourceIdentifiersProp).length === 0\n ) {\n return;\n }\n\n console.warn('[FullCustomView] Cannot validate explicit view context bindings because the view definition could not be resolved', {\n surfaceName: 'FullCustomView',\n surfaceRef: viewRef,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [contextResourceIdentifiersProp, viewDefinition, viewRef]);\n \n // Resolve scope identifiers from the canonical AppScope-owned primary snapshot.\n const contextResourceIdentifiers = useMemo(() => {\n const primaryScopeInitiatorIds = ScopeUtilsService.buildInitiatorIds({\n userId: appScope?.currentUserId,\n organizationId: appScope?.currentOrganizationId,\n applicationId: appScope?.currentApplicationId,\n anonymousUserId: appScope?.currentAnonymousUserId,\n });\n const primaryScopeContext =\n viewDefinition?.primaryScope\n ? ScopeUtilsService.primaryScopeToContextIdentifiers(\n primaryScopeInitiatorIds,\n viewDefinition.primaryScope,\n )\n : {};\n const liveAppScopeContext = appScope?.buildContextResourceIdentifiers() ?? {};\n const customScopeContext = ScopeUtilsService.filterCustomScopeContextResourceIdentifiers(liveAppScopeContext);\n if (!viewDefinition) {\n return ScopeUtilsService.mergeContextResourceIdentifiers(\n primaryScopeContext,\n customScopeContext,\n contextResourceIdentifiersProp,\n );\n }\n\n return ScopeUtilsService.resolveViewContextResourceIdentifiers({\n surfaceName: 'FullCustomView',\n surfaceRef: viewDefinition.ref,\n primaryScope: viewDefinition.primaryScope,\n parentResourcesRequirements: viewDefinition.parentResourcesRequirements,\n additionalResourceRequirements: viewDefinition.additionalResourceRequirements,\n primaryScopeContext,\n customScopeContext,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [\n contextResourceIdentifiersProp,\n viewDefinition?.primaryScope,\n viewDefinition?.ref,\n viewDefinition?.parentResourcesRequirements,\n viewDefinition?.additionalResourceRequirements,\n appScope?.currentUserId,\n appScope?.currentOrganizationId,\n appScope?.currentApplicationId,\n appScope?.currentAnonymousUserId,\n appScope,\n ]);\n \n if (!viewDefinition) {\n return <ViewNotFound viewKind=\"full-custom\" viewRef={viewRef} />;\n }\n\n const CustomViewComponent = ComponentRegistryService.resolve(\n viewDefinition.componentRef,\n CorePresetNames.DEFAULT,\n );\n\n if (!CustomViewComponent) {\n return (\n <ComponentNotInjected\n componentType={viewDefinition.componentRef}\n componentName={viewDefinition.componentRef}\n />\n );\n }\n\n return (\n <>\n {/* Primary-zone navigation chrome (back + icon + title + description) —\n the same band resource pages get from ResourceLayout_Header. Self-\n suppresses when embedded (hostProvidesHeading) or untitled. */}\n <ViewLayout_Header\n viewRef={viewDefinition.ref}\n contentType={NavigationContentType.FULL_CUSTOM_VIEW}\n hasAuthoredIcon={Boolean(viewDefinition.icon)}\n navigationZone={navigationZone}\n className=\"mb-group\"\n />\n <React.Suspense fallback={<div className=\"h-8 animate-pulse motion-reduce:animate-none bg-muted rounded\" aria-hidden=\"true\" />}>\n <CustomViewComponent\n viewRef={viewDefinition.ref}\n viewDefinition={viewDefinition}\n contextResourceIdentifiers={contextResourceIdentifiers}\n />\n </React.Suspense>\n </>\n );\n};\n\nexport default FullCustomView;\n"]}
1
+ {"version":3,"file":"FullCustomView.js","sourceRoot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WAAW,EAAE,qBAAqB,CAAC,gBAAgB,EACnD,eAAe,EAAE,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAC7C,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAC,UAAU,GACpB,EACF,KAAC,KAAK,CAAC,QAAQ,IAAC,QAAQ,EAAE,cAAK,SAAS,EAAC,+DAA+D,iBAAa,MAAM,GAAG,YAO5H,cAAK,SAAS,EAAC,UAAU,2BAAwB,cAAc,CAAC,GAAG,EAAQ,CAAC,mCAAmC,CAAC,EAAE,cAAc,CAAC,YAAY,YAC3I,KAAC,mBAAmB,IAClB,OAAO,EAAE,cAAc,CAAC,GAAG,EAC3B,cAAc,EAAE,cAAc,EAC9B,0BAA0B,EAAE,0BAA0B,GACtD,GACE,GACS,IACI,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import React, { useEffect, useMemo } from 'react';\nimport { CorePresetNames, FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport type { FullCustomViewDefinition } from '~wildo-frontend-lib/core/config/full-custom-view.schemas';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\nimport { ScopeUtilsService } from '~wildo-frontend-lib/core/scope/scope.utils.frontend.service';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ViewNotFound } from '~wildo-frontend-lib/components/views/ViewNotFound';\nimport { ComponentRegistryService } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.service';\nimport { ComponentNotInjected } from '~wildo-frontend-lib/core/components-registry/ComponentNotInjected';\nimport { REGISTERED_COMPONENT_ROOT_ATTRIBUTE } from '~wildo-frontend-lib/core/components-registry/RegisteredComponentRoot';\nimport { ViewLayout_Header } from '~wildo-frontend-lib/components/views/ViewLayout_Header';\nimport { NavigationContentType, NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport { RequiredFeaturesGate } from '~wildo-frontend-lib/core/features/RequiredFeaturesGate';\nimport { RequiredFeaturesGatePresentation } from '~wildo-frontend-lib/core/features/required-features-gate-presentation';\n\n/**\n * FullCustomView Props\n */\nexport interface FullCustomViewProps {\n /** View reference — resolved from UIContext internally. Mutually exclusive with `viewDefinition`. */\n viewRef?: string;\n /** Pre-resolved view definition. When provided, viewRef is ignored. */\n viewDefinition?: FullCustomViewDefinition;\n\n /**\n * Context resource identifiers for scope.\n * When provided (e.g. from NavigationContentAreas), these are treated as\n * explicit navigation-time overrides and merged last over the live AppScope\n * context resolved by this view.\n * When omitted (e.g. URL-based routing), scope is self-resolved from the\n * canonical AppScope primary snapshot using the view definition's primaryScope.\n */\n contextResourceIdentifiers?: Record<string, string>;\n /** Hosting navigation zone — threads into the header's back affordance. */\n navigationZone?: NavigationZone;\n /**\n * How the view shows when its plan fence refuses the scope: PAGE (the default) where the view IS the content of its\n * zone (its route, a pane, an overlay), TILE where a page embeds it, so a locked embed keeps its place instead of\n * becoming a page-sized prompt. The view gates itself wherever it is rendered, as a composite view does.\n */\n featureGatePresentation?: RequiredFeaturesGatePresentation;\n}\n\n/**\n * FullCustomView Layout Component\n * \n * This component renders a fully custom view where all interaction\n * is managed by the component referenced in componentRef.\n * \n * The component handles its own data fetching - the engine only\n * provides the resolved view definition and context identifiers.\n */\nexport const FullCustomView: React.FC<FullCustomViewProps> = ({\n viewRef,\n viewDefinition: viewDefinitionProp,\n contextResourceIdentifiers: contextResourceIdentifiersProp,\n navigationZone = NavigationZone.PRIMARY,\n featureGatePresentation = RequiredFeaturesGatePresentation.PAGE,\n}) => {\n const { fullCustomViews } = useUI();\n const appScope = useAppScopeSafe();\n \n // Resolve definition: use provided prop, or resolve from viewRef via UIContext\n const viewDefinition = viewDefinitionProp ?? (viewRef ? fullCustomViews?.find(v => v.ref === viewRef) : undefined);\n\n useEffect(() => {\n if (\n process.env.NODE_ENV === 'production'\n || viewDefinition\n || !viewRef\n || !contextResourceIdentifiersProp\n || Object.keys(contextResourceIdentifiersProp).length === 0\n ) {\n return;\n }\n\n console.warn('[FullCustomView] Cannot validate explicit view context bindings because the view definition could not be resolved', {\n surfaceName: 'FullCustomView',\n surfaceRef: viewRef,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [contextResourceIdentifiersProp, viewDefinition, viewRef]);\n \n // Resolve scope identifiers from the canonical AppScope-owned primary snapshot.\n const contextResourceIdentifiers = useMemo(() => {\n const primaryScopeInitiatorIds = ScopeUtilsService.buildInitiatorIds({\n userId: appScope?.currentUserId,\n organizationId: appScope?.currentOrganizationId,\n applicationId: appScope?.currentApplicationId,\n anonymousUserId: appScope?.currentAnonymousUserId,\n });\n const primaryScopeContext =\n viewDefinition?.primaryScope\n ? ScopeUtilsService.primaryScopeToContextIdentifiers(\n primaryScopeInitiatorIds,\n viewDefinition.primaryScope,\n )\n : {};\n const liveAppScopeContext = appScope?.buildContextResourceIdentifiers() ?? {};\n const customScopeContext = ScopeUtilsService.filterCustomScopeContextResourceIdentifiers(liveAppScopeContext);\n if (!viewDefinition) {\n return ScopeUtilsService.mergeContextResourceIdentifiers(\n primaryScopeContext,\n customScopeContext,\n contextResourceIdentifiersProp,\n );\n }\n\n return ScopeUtilsService.resolveViewContextResourceIdentifiers({\n surfaceName: 'FullCustomView',\n surfaceRef: viewDefinition.ref,\n primaryScope: viewDefinition.primaryScope,\n parentResourcesRequirements: viewDefinition.parentResourcesRequirements,\n additionalResourceRequirements: viewDefinition.additionalResourceRequirements,\n primaryScopeContext,\n customScopeContext,\n explicitContextResourceIdentifiers: contextResourceIdentifiersProp,\n });\n }, [\n contextResourceIdentifiersProp,\n viewDefinition?.primaryScope,\n viewDefinition?.ref,\n viewDefinition?.parentResourcesRequirements,\n viewDefinition?.additionalResourceRequirements,\n appScope?.currentUserId,\n appScope?.currentOrganizationId,\n appScope?.currentApplicationId,\n appScope?.currentAnonymousUserId,\n appScope,\n ]);\n \n if (!viewDefinition) {\n return <ViewNotFound viewKind=\"full-custom\" viewRef={viewRef} />;\n }\n\n const CustomViewComponent = ComponentRegistryService.resolve(\n viewDefinition.componentRef,\n CorePresetNames.DEFAULT,\n );\n\n if (!CustomViewComponent) {\n return (\n <ComponentNotInjected\n componentType={viewDefinition.componentRef}\n componentName={viewDefinition.componentRef}\n />\n );\n }\n\n // The view's plan fence, wherever it is shown (its route, a pane, an overlay, an embed): no path renders the view for\n // a scope without the features it declares.\n return (\n <RequiredFeaturesGate requiredFeatures={viewDefinition.requiredFeatures} presentation={featureGatePresentation}>\n {/* Primary-zone navigation chrome (back + icon + title + description) —\n the same band resource pages get from ResourceLayout_Header. Self-\n suppresses when embedded (hostProvidesHeading) or untitled. */}\n <ViewLayout_Header\n viewRef={viewDefinition.ref}\n contentType={NavigationContentType.FULL_CUSTOM_VIEW}\n hasAuthoredIcon={Boolean(viewDefinition.icon)}\n navigationZone={navigationZone}\n className=\"mb-group\"\n />\n <React.Suspense fallback={<div className=\"h-8 animate-pulse motion-reduce:animate-none bg-muted rounded\" aria-hidden=\"true\" />}>\n {/* The view's own root, marked with its ref, INSIDE the Suspense: it mounts only once the component resolved,\n so a lazy view still loading shows the skeleton and no marker. `contents` gives it no box, so the layout is\n the component's alone. A camera (the built-application review) reads it to know the coded view itself\n rendered: ViewNotFound, ComponentNotInjected and a pending lazy view carry no marker, and an empty marker is\n a view that painted nothing, so none of them is ever audited as the view. */}\n {/* It is also the root of the application's registered component the view renders, so an audit names that too. */}\n <div className=\"contents\" data-full-custom-view={viewDefinition.ref} {...{ [REGISTERED_COMPONENT_ROOT_ATTRIBUTE]: viewDefinition.componentRef }}>\n <CustomViewComponent\n viewRef={viewDefinition.ref}\n viewDefinition={viewDefinition}\n contextResourceIdentifiers={contextResourceIdentifiers}\n />\n </div>\n </React.Suspense>\n </RequiredFeaturesGate>\n );\n};\n\nexport default FullCustomView;\n"]}
@@ -36,5 +36,12 @@ export interface OnboardingViewProps {
36
36
  */
37
37
  guidanceFlowRef?: string;
38
38
  }
39
+ /**
40
+ * The onboarding view, behind its document's plan fence. An onboarding view has no route: it is shown where a page embeds
41
+ * it, so its `requiredFeatures` is enforced here, with the in-page gate (a hidden wizard is simply not on the page, and
42
+ * the person is not navigated away). Without this wrapper the requirement the document declares was never read. It waits
43
+ * for the features before showing a wizard that declares one, so a person on a plan without it never sees it flash in. A
44
+ * locked wizard is a tile in its place, never the page-sized prompt.
45
+ */
39
46
  export declare const OnboardingView: React.FC<OnboardingViewProps>;
40
47
  //# sourceMappingURL=OnboardingView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OnboardingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/onboarding-view/OnboardingView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAA2D,MAAM,OAAO,CAAC;AAChF,OAAO,EAEL,gBAAgB,EAIhB,KAAK,qBAAqB,EAE3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kEAAkE,CAAC;AAYjH,MAAM,WAAW,mBAAmB;IAClC,wCAAwC;IACxC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACzC,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACxE,wCAAwC;IACxC,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAID,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsZxD,CAAC"}
1
+ {"version":3,"file":"OnboardingView.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/onboarding-view/OnboardingView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAA2D,MAAM,OAAO,CAAC;AAGhF,OAAO,EAEL,gBAAgB,EAIhB,KAAK,qBAAqB,EAE3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kEAAkE,CAAC;AAYjH,MAAM,WAAW,mBAAmB;IAClC,wCAAwC;IACxC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACzC,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACxE,wCAAwC;IACxC,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA4ZD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAIxD,CAAC"}
@@ -9,6 +9,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  * directly from a static onboarding document.
10
10
  */
11
11
  import { useState, useMemo, useCallback, useEffect, useId } from 'react';
12
+ import { RequiredFeaturesGate } from '../../../core/features/RequiredFeaturesGate.js';
13
+ import { RequiredFeaturesGatePresentation } from '../../../core/features/required-features-gate-presentation.js';
12
14
  import { OnboardingStatus, isTerminalOnboardingStatus, resolveGuidanceElementRequiredLabelFields, } from '@wildo-ai/saas-models';
13
15
  import { ButtonSize, FrontendComponentType } from '@wildo-ai/presets-components-models';
14
16
  import { Button, ButtonVariants_Variant } from '../../../components/actions/button.js';
@@ -18,7 +20,7 @@ import { useI18n } from '../../../core/i18n/useI18n.js';
18
20
  import { cn } from '../../../core/ui/cn.js';
19
21
  import { resolveGuidanceElementRenderer } from '../../../core/guidance/GuidanceRenderer.js';
20
22
  // ─── Component ───────────────────────────────────────────────
21
- export const OnboardingView = ({ document: doc, options: optionsOverride = {}, className = '', onStatusChange, onAction, viewRef: viewRefProp, guidanceFlowRef: guidanceFlowRefProp, }) => {
23
+ const OnboardingViewBody = ({ document: doc, options: optionsOverride = {}, className = '', onStatusChange, onAction, viewRef: viewRefProp, guidanceFlowRef: guidanceFlowRefProp, }) => {
22
24
  const { flowStates, completeElement, completeFlow, dismissFlow, skipFlow, isFlowPersistable, isLoading: guidanceIsLoading } = useGuidance();
23
25
  const localFlowId = useId();
24
26
  const guidanceFlowRef = guidanceFlowRefProp;
@@ -269,4 +271,12 @@ export const OnboardingView = ({ document: doc, options: optionsOverride = {}, c
269
271
  ? tComponent(FrontendComponentType.GUIDANCE_ONBOARDING_VIEW, 'complete')
270
272
  : tComponent(FrontendComponentType.GUIDANCE_ONBOARDING_VIEW, 'next') })] })] })), totalSteps === 1 && (_jsxs("div", { className: "flex justify-end gap-item items-center", children: [mergedOptions.allowDismiss && (_jsx(Button, { variant: ButtonVariants_Variant.GHOST, size: ButtonSize.SM, onClick: () => handleDismiss(currentElement.ref), children: tComponent(FrontendComponentType.GUIDANCE_ONBOARDING_VIEW, 'dismiss') })), _jsx(Button, { variant: ButtonVariants_Variant.DEFAULT, size: ButtonSize.SM, onClick: handleNext, children: tComponent(FrontendComponentType.GUIDANCE_ONBOARDING_VIEW, 'complete') })] }))] }));
271
273
  };
274
+ /**
275
+ * The onboarding view, behind its document's plan fence. An onboarding view has no route: it is shown where a page embeds
276
+ * it, so its `requiredFeatures` is enforced here, with the in-page gate (a hidden wizard is simply not on the page, and
277
+ * the person is not navigated away). Without this wrapper the requirement the document declares was never read. It waits
278
+ * for the features before showing a wizard that declares one, so a person on a plan without it never sees it flash in. A
279
+ * locked wizard is a tile in its place, never the page-sized prompt.
280
+ */
281
+ export const OnboardingView = (props) => (_jsx(RequiredFeaturesGate, { requiredFeatures: props.document.requiredFeatures, holdWhileLoading: true, presentation: RequiredFeaturesGatePresentation.TILE, children: _jsx(OnboardingViewBody, { ...props }) }));
272
282
  //# sourceMappingURL=OnboardingView.js.map