@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":"composite-view.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAA2B,MAAM,qCAAqC,CAAC;AAG3G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,GAElB,MAAM,uBAAuB,CAAC;AAC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mB,EAAE,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAIH,wEAAwE;AACxE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,YAAY,CAC7D,6BAA6B,EAC7B,8BAA8B,CAC/B,CAAC;AAGF,wCAAwC;AACxC,MAAM,CAAC,MAAM,6BAA6B,GAAuC,iCAAuE,CAAC","sourcesContent":["import { RESPONSIVE_MAX_WIDTH_VALUES, type ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\nimport type { DeclaredViewLabel } from './view-label-declaration.schemas';\nimport type React from 'react';\nimport { z } from 'zod';\nimport type { IconLike } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation,\n ResourcePrimaryScope,\n RequiredFeaturesConfigSchema,\n ZoneEmptyBehavior,\n type RequiredFeaturesConfig,\n} from '@wildo-ai/saas-models';\nimport {\n FrontendView_ScopeMode,\n FrontendView_DefinitionSchema,\n buildApplicationViewTranslationRef,\n} from './views-frontend.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n createFrontendInsertedViewIdentity,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from './inserted-view.frontend.schemas';\nimport {\n FrontendResource_ParentResourceRequirementSchema,\n type FrontendResource_ParentResourceRequirement,\n} from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport type { FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.authoring facet:layer:frontend facet:family:composite-view\n *\n * Resource-owned composite view: props, authoring config, definition, `defineCompositeView()` helper.\n */\nexport interface CompositeViewComponentProps {\n viewRef: string;\n viewDefinition: CompositeViewDefinition;\n}\n\n/**\n * Base authoring shape shared by both app-level and resource-level composite\n * views. Fields on this base are valid at **either** scope.\n *\n * Design decision: `operationLike` is intentionally **NOT** on this base,\n * because app-level composites have no resource operation host to be\n * rendered inside of — the field would carry no semantic weight at app\n * scope. Only the resource-scoped subtype\n * {@link ResourceCompositeViewAuthoringConfig} carries `operationLike`.\n */\nexport interface CompositeViewAuthoringConfig {\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs?: string[];\n /**\n * View-local i18n label declarations (label refs + interpolation params) for this view's OWN\n * text — the captions, KPI names and failure sentences its component renders, beyond the\n * framework's baseline `title` / `description` (and each section's pair).\n *\n * The labelling pipeline plans `composite_views.<translationRef>.<labelRef>` from each entry, so\n * the component resolves its words through the label tree and a translator can find them.\n * Without a declaration there is no key, and the only remaining option is English written into\n * the component — which no locale can translate and nobody who owns the wording can change.\n *\n * Item shape is `DeclaredViewLabel`; kept permissive like `viewComponent` — authored\n * configuration, not user input.\n */\n labels?: DeclaredViewLabel[];\n /**\n * Composite-view icon — `StandardIconReference` string or React component\n * (Lucide / custom). Mirrored from authoring → {@link CompositeViewDefinition.icon},\n * then surfaced into `CoreIconRegistry.compositeView` by the\n * `IconRegistryBridge` so navigation launchers (sidebar, command menu,\n * overlays) render the authored icon.\n */\n icon?: IconLike;\n /**\n * What happens to an ADJACENT zone (secondary / companion) this destination\n * splits into, once that zone's last content is dismissed — overriding the\n * zone's own `onEmpty` while this destination occupies primary.\n *\n * The zone-level `ZoneConfig.onEmpty` is one value for every destination that\n * splits into that zone, and destinations legitimately disagree: a LIST wants\n * the detail pane to stay put (`EMPTY_STATE`) so the layout does not reflow\n * while a reviewer steps through rows, while a CANVAS wants its width back\n * (`COLLAPSE`) the moment nothing is selected. Both share one secondary zone,\n * so without this override one of them is always wrong.\n *\n * Omitted (the common case) defers to the zone, which itself defaults to\n * `ZoneEmptyBehavior.COLLAPSE`. Resolution order is destination → zone →\n * COLLAPSE; see `resolveZoneEmptyBehavior`.\n */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /**\n * How wide this destination's content may grow in the zone, in the framework's shared width\n * vocabulary — the SAME `ResponsiveMaxWidth` a Surface, a `DisplayLayout` and a `FormLayout` use.\n *\n * Omitted (the common case) is `'content'`: capped and centred at `var(--content-max-width, 80rem)`,\n * right for a form, a list or a detail page and wrong only for content whose value IS the space it\n * occupies — a board, a wide table, a canvas — which declare `'none'`.\n */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /**\n * Whether this destination's content fills the zone's HEIGHT as well.\n *\n * `true` makes the zone's content boundary a definite-height flex column, so this view's root may use\n * `flex-1 min-h-0` and resolve against something real. Without it a canvas has no intrinsic height\n * and collapses to zero — which is why one had to hand-roll `h-[70vh]`, sizing against the WINDOW\n * rather than the container it sits in. PRIMARY only: an adjacent zone scrolls, so a filling child\n * and a scrolling parent contradict each other.\n *\n * Separate from the width above ON PURPOSE — see `zone-content-geometry.ts` for why the enum that\n * fused them could not express a capped width with a definite height.\n */\n zoneContentFillsHeight?: boolean;\n}\n\n/**\n * Resource-scoped composite view authoring. Extends the base with\n * `operationLike`, which declares the **single** resource operation host\n * this composite is rendered inside of (and therefore the access policy it\n * exhibits). Composite views are always rendered inside exactly one\n * operation host, so `operationLike` is intentionally single-valued — the\n * list analogue is reserved for execution views, which can legitimately\n * surface in several operation hosts.\n *\n * `operationLike` is the **single declarative source of truth** for\n * composite surfacing: at render time, `ResourceLayout_InsertedViews` filters\n * the resource's `compositeViews` directly by the current operation host\n * against `operationLike`. There is no operation-level view-ref list and no\n * compiled derivation — the composite declaration itself carries the link.\n */\nexport interface ResourceCompositeViewAuthoringConfig extends CompositeViewAuthoringConfig {\n /**\n * Operation host this composite is rendered inside of, and the sole\n * declarative link driving where this composite surfaces at runtime.\n *\n * Defaults to `CoreResourceOperation.READ` when omitted. This default\n * MUST match the fallback passed to `collectOperationLikeViewRefs` at the\n * specification-extraction call site — if it ever diverges, runtime host\n * rendering (which reads `operationLike` directly) and the compiled\n * specification output (which mirrors it via the collector) disagree\n * silently.\n */\n operationLike?: CoreResourceOperation;\n /**\n * The actor system whose conversations this view hosts ON ITS RECORD (#4043): the `systemRef` of the\n * `FlowsActorsView` it renders with the record in that view's context.\n *\n * A conversation opened on a record is listed only there, so a link to it (a notice, an email: the\n * conversation-link page) must open THIS view on that record rather than the system's standalone view, which\n * lists another context. Declaring the system is what lets the engine find this view from a conversation, and it\n * hands the linked conversation to the `FlowsActorsView` of that system inside it — the view's component passes\n * nothing for it.\n *\n * Omitted when the view hosts no conversation. Resource composites only: an application-level view has no record,\n * so its conversations are the standalone view's.\n */\n conversationSystemRef?: string;\n}\n\nexport interface CompositeViewDefinition {\n // Base FrontendView_Definition fields\n scope: FrontendView_ScopeMode;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n additionalResourceRequirements?: FrontendResource_ParentResourceRequirement[];\n // CompositeView-specific fields\n ref: string;\n /** Stable translation identity used for composite-view label lookup/generation. */\n translationRef: string;\n isAddressable: boolean;\n operationLike: CoreResourceOperation;\n primaryScope: ResourcePrimaryScope;\n sectionRefs?: string[];\n /**\n * See {@link CompositeViewAuthoringConfig.labels}. Mirrored from authoring, and declared in the\n * Zod schema too — the startup config parse strips schema-unknown keys.\n */\n labels?: DeclaredViewLabel[];\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Required features for this view — gates navigation + route access */\n requiredFeatures?: RequiredFeaturesConfig;\n /**\n * Composite-view icon, propagated verbatim from authoring\n * ({@link CompositeViewAuthoringConfig.icon}). The `IconRegistryBridge`\n * walks all composite-view definitions and registers their icons into\n * `CoreIconRegistry.compositeView`, keyed by `ref`.\n */\n icon?: IconLike;\n /** See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}. Mirrored from authoring. */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /** See {@link CompositeViewAuthoringConfig.zoneContentMaxWidth}. Mirrored from authoring. */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /** See {@link CompositeViewAuthoringConfig.zoneContentFillsHeight}. Mirrored from authoring. */\n zoneContentFillsHeight?: boolean;\n /**\n * See {@link ResourceCompositeViewAuthoringConfig.conversationSystemRef}. Mirrored from a RESOURCE composite's\n * authoring by the registry, which is not Zod-parsed; an application-level definition never carries it.\n */\n conversationSystemRef?: string;\n}\n\nexport type AppCompositeViewsConfig = Record<string, CompositeViewAuthoringConfig>;\n\nexport type InsertedCompositeDeclaration = CompositeViewDefinition;\n/** @wildo_source:part:end saas.frontend.composite-view.authoring */\n\nexport function buildApplicationCompositeViewTranslationRef(viewRef: string): string {\n return buildApplicationViewTranslationRef(viewRef);\n}\n\nexport function buildResourceCompositeViewTranslationRef(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.define-helper facet:layer:frontend facet:family:composite-view\n *\n * Authoring helper: attach a composite view component with optional\n * `sectionRefs`. This helper targets the **base** authoring shape\n * ({@link CompositeViewAuthoringConfig}) and is suitable for app-level\n * composites. Resource-scoped composites additionally support\n * {@link ResourceCompositeViewAuthoringConfig.operationLike} and are\n * usually authored as plain object literals inside\n * `ResourceCompositeViewsConfig` so authors can declare `operationLike`\n * inline.\n */\nexport function defineCompositeView(\n viewComponent: React.ComponentType<CompositeViewComponentProps>,\n config: Omit<CompositeViewAuthoringConfig, 'viewComponent'> = {},\n): CompositeViewAuthoringConfig {\n return {\n viewComponent,\n ...config,\n };\n}\n/** @wildo_source:part:end saas.frontend.composite-view.define-helper */\n\nexport const COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX = 'composite_ctx_';\n\nexport function isStandaloneRoutableCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.APPLICATION\n );\n}\n\nexport function buildApplicationCompositeViewDefinitions(\n authoredCompositeViews: AppCompositeViewsConfig | undefined,\n): CompositeViewDefinition[] {\n if (!authoredCompositeViews) {\n return [];\n }\n\n return Object.entries(authoredCompositeViews).map(([ref, authoredView]) => ({\n ref,\n translationRef: buildApplicationCompositeViewTranslationRef(ref),\n scope: FrontendView_ScopeMode.APPLICATION,\n isAddressable: true,\n operationLike: CoreResourceOperation.READ,\n primaryScope: ResourcePrimaryScope.APPLICATION,\n sectionRefs: authoredView.sectionRefs,\n labels: authoredView.labels,\n viewComponent: authoredView.viewComponent,\n icon: authoredView.icon,\n adjacentZoneOnEmpty: authoredView.adjacentZoneOnEmpty,\n zoneContentMaxWidth: authoredView.zoneContentMaxWidth,\n zoneContentFillsHeight: authoredView.zoneContentFillsHeight,\n }));\n}\n\nexport function isStandaloneRoutableInsertedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.RESOURCE\n );\n}\n\nexport function isStandaloneRoutableResolvedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n if (!compositeView) {\n return false;\n }\n\n return compositeView.scope === FrontendView_ScopeMode.APPLICATION\n ? isStandaloneRoutableCompositeView(compositeView)\n : isStandaloneRoutableInsertedCompositeView(compositeView);\n}\n\nexport function buildResourceInsertedCompositeIdentity(\n resourceType: string,\n compositeView: Pick<CompositeViewDefinition, 'ref'>,\n): FrontendInsertedViewIdentity {\n return createFrontendInsertedViewIdentity({\n hostKind: FrontendInsertedViewHostKind.RESOURCE,\n hostRef: resourceType,\n viewKind: FrontendInsertedViewKind.COMPOSITE_VIEW,\n localRef: compositeView.ref,\n });\n}\n\nexport function resolveCompositeViewDefinition(params: {\n viewRef: string | undefined;\n compositeViews?: CompositeViewDefinition[];\n registry?: FrontendResourcesRegistry;\n}): CompositeViewDefinition | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView) {\n return applicationCompositeView;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef);\n}\n\nexport function resolveCompositeViewPrimaryScope(params: {\n viewRef: string | undefined;\n compositeViews?: Array<{ ref: string; primaryScope?: ResourcePrimaryScope }>;\n registry?: FrontendResourcesRegistry;\n}): ResourcePrimaryScope | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView?.primaryScope) {\n return applicationCompositeView.primaryScope;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef)\n ?.primaryScope;\n}\n\nexport function buildCompositeRouteUrlPath(\n viewRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(contextResourceIdentifiers ?? {})) {\n if (!value) {\n continue;\n }\n params.set(`${COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX}${key}`, value);\n }\n\n const search = params.toString();\n return search.length > 0 ? `/composite/${viewRef}?${search}` : `/composite/${viewRef}`;\n}\n\nexport function extractCompositeRouteContextResourceIdentifiers(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const contextResourceIdentifiers: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n if (!key.startsWith(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || !value) {\n continue;\n }\n contextResourceIdentifiers[key.slice(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX.length)] = value;\n }\n\n return Object.keys(contextResourceIdentifiers).length > 0 ? contextResourceIdentifiers : undefined;\n}\n\n/**\n * Base fields for authored top-level composite views.\n *\n * The old GridStack/document-era composite schema has been removed. Composite\n * views are now declared as direct authored React components plus ordinary\n * routed view metadata.\n */\nexport const CompositeView_BaseFieldsSchema = z.object({\n /** Unique reference for this view */\n ref: z.string().min(1),\n /** Stable translation identity used for composite-view label lookup/generation */\n translationRef: z.string().min(1),\n /** Whether this view has its own URL route */\n isAddressable: z.boolean().default(false),\n /** Operation-like behavior for access control */\n operationLike: z.enum(CoreResourceOperation).default(CoreResourceOperation.READ),\n /** Primary scope for this view - determines which context identifiers are injected during navigation */\n primaryScope: z.enum(ResourcePrimaryScope).default(ResourcePrimaryScope.ORGANIZATIONS),\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs: z.array(z.string()).optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.labels}.\n *\n * MUST stay declared here as well as on the interface, for the reason spelled out on `icon`\n * below: the resolved frontend config is Zod-parsed at startup and a field the schema does not\n * know is silently STRIPPED — the authored declaration would never reach the labelling planner,\n * so no key would be generated and the component would render its raw key for ever.\n */\n labels: z.array(z.any()).optional(),\n /**\n * Direct authored composite view component.\n *\n * Top-level composite views are authored as direct React components.\n */\n viewComponent: z.any(),\n /** Required features for this view — gates navigation + route access via feature availability policy */\n requiredFeatures: RequiredFeaturesConfigSchema.optional(),\n /**\n * Composite-view icon (lucide component reference or StandardIconReference\n * string) — see {@link CompositeViewDefinition.icon}.\n *\n * MUST stay declared here even though the TS interface already carries it:\n * the resolved frontend config is Zod-parsed at startup\n * (`AppConfiguration_Frontend_Schema.parse`), and a field missing from this\n * schema is silently STRIPPED by that parse — authored icons then never reach\n * the `IconRegistryBridge` and every launcher renders the fallback icon.\n * (That exact drift shipped once: interface had `icon`, schema didn't.)\n * Kept permissive like `viewComponent` — authored input, not user input.\n */\n icon: z.custom<IconLike>().optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}.\n *\n * Declared here as well as on the interface for the reason spelled out on\n * `icon` directly above: the resolved frontend config is Zod-parsed at\n * startup, and a field the schema does not know is silently STRIPPED — the\n * authored value would never reach `resolveZoneEmptyBehavior` and the zone\n * default would win with nothing to show for it.\n */\n adjacentZoneOnEmpty: z.enum(ZoneEmptyBehavior).optional(),\n /** See {@link CompositeViewAuthoringConfig.zoneContentFill}. Declared here for the strip reason on `icon`. */\n zoneContentMaxWidth: z.enum(RESPONSIVE_MAX_WIDTH_VALUES).optional(),\n zoneContentFillsHeight: z.boolean().optional(),\n});\n\nexport type CompositeView_BaseFields = z.infer<typeof CompositeView_BaseFieldsSchema>;\n\n/** Combine scope discriminated union with base composite view fields */\nexport const CompositeViewDefinitionBaseSchema = z.intersection(\n FrontendView_DefinitionSchema,\n CompositeView_BaseFieldsSchema\n);\nexport type CompositeViewDefinitionBase = z.infer<typeof CompositeViewDefinitionBaseSchema>;\n\n/** Top-level composite view contract */\nexport const CompositeViewDefinitionSchema: z.ZodType<CompositeViewDefinition> = CompositeViewDefinitionBaseSchema as z.ZodType<CompositeViewDefinition>;\n"]}
1
+ {"version":3,"file":"composite-view.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAA2B,MAAM,qCAAqC,CAAC;AAG3G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,GAElB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,kCAAkC,GACnC,MAAM,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AI,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAIH,wEAAwE;AACxE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,YAAY,CAC7D,6BAA6B,EAC7B,8BAA8B,CAC/B,CAAC;AAGF,wCAAwC;AACxC,MAAM,CAAC,MAAM,6BAA6B,GAAuC,iCAAuE,CAAC","sourcesContent":["import { RESPONSIVE_MAX_WIDTH_VALUES, type ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\nimport type { DeclaredViewLabel } from './view-label-declaration.schemas';\nimport type React from 'react';\nimport { z } from 'zod';\nimport type { IconLike } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation,\n ResourcePrimaryScope,\n RequiredFeaturesConfigSchema,\n ZoneEmptyBehavior,\n type RequiredFeaturesConfig,\n} from '@wildo-ai/saas-models';\nimport {\n FrontendView_ScopeMode,\n FrontendView_DefinitionSchema,\n buildApplicationViewTranslationRef,\n} from './views-frontend.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n createFrontendInsertedViewIdentity,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from './inserted-view.frontend.schemas';\nimport {\n FrontendResource_ParentResourceRequirementSchema,\n type FrontendResource_ParentResourceRequirement,\n} from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport type { FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.authoring facet:layer:frontend facet:family:composite-view\n *\n * Resource-owned composite view: props, authoring config, definition, `defineCompositeView()` helper.\n */\nexport interface CompositeViewComponentProps {\n viewRef: string;\n viewDefinition: CompositeViewDefinition;\n}\n\n/**\n * Base authoring shape shared by both app-level and resource-level composite\n * views. Fields on this base are valid at **either** scope.\n *\n * Design decision: `operationLike` is intentionally **NOT** on this base,\n * because app-level composites have no resource operation host to be\n * rendered inside of — the field would carry no semantic weight at app\n * scope. Only the resource-scoped subtype\n * {@link ResourceCompositeViewAuthoringConfig} carries `operationLike`.\n */\nexport interface CompositeViewAuthoringConfig {\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs?: string[];\n /**\n * View-local i18n label declarations (label refs + interpolation params) for this view's OWN\n * text — the captions, KPI names and failure sentences its component renders, beyond the\n * framework's baseline `title` / `description` (and each section's pair).\n *\n * The labelling pipeline plans `composite_views.<translationRef>.<labelRef>` from each entry, so\n * the component resolves its words through the label tree and a translator can find them.\n * Without a declaration there is no key, and the only remaining option is English written into\n * the component — which no locale can translate and nobody who owns the wording can change.\n *\n * Item shape is `DeclaredViewLabel`; kept permissive like `viewComponent` — authored\n * configuration, not user input.\n */\n labels?: DeclaredViewLabel[];\n /**\n * Composite-view icon — `StandardIconReference` string or React component\n * (Lucide / custom). Mirrored from authoring → {@link CompositeViewDefinition.icon},\n * then surfaced into `CoreIconRegistry.compositeView` by the\n * `IconRegistryBridge` so navigation launchers (sidebar, command menu,\n * overlays) render the authored icon.\n */\n icon?: IconLike;\n /**\n * What happens to an ADJACENT zone (secondary / companion) this destination\n * splits into, once that zone's last content is dismissed — overriding the\n * zone's own `onEmpty` while this destination occupies primary.\n *\n * The zone-level `ZoneConfig.onEmpty` is one value for every destination that\n * splits into that zone, and destinations legitimately disagree: a LIST wants\n * the detail pane to stay put (`EMPTY_STATE`) so the layout does not reflow\n * while a reviewer steps through rows, while a CANVAS wants its width back\n * (`COLLAPSE`) the moment nothing is selected. Both share one secondary zone,\n * so without this override one of them is always wrong.\n *\n * Omitted (the common case) defers to the zone, which itself defaults to\n * `ZoneEmptyBehavior.COLLAPSE`. Resolution order is destination → zone →\n * COLLAPSE; see `resolveZoneEmptyBehavior`.\n */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /**\n * How wide this destination's content may grow in the zone, in the framework's shared width\n * vocabulary — the SAME `ResponsiveMaxWidth` a Surface, a `DisplayLayout` and a `FormLayout` use.\n *\n * Omitted (the common case) is `'content'`: capped and centred at `var(--content-max-width, 80rem)`,\n * right for a form, a list or a detail page and wrong only for content whose value IS the space it\n * occupies — a board, a wide table, a canvas — which declare `'none'`.\n */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /**\n * Whether this destination's content fills the zone's HEIGHT as well.\n *\n * `true` makes the zone's content boundary a definite-height flex column, so this view's root may use\n * `flex-1 min-h-0` and resolve against something real. Without it a canvas has no intrinsic height\n * and collapses to zero — which is why one had to hand-roll `h-[70vh]`, sizing against the WINDOW\n * rather than the container it sits in. PRIMARY only: an adjacent zone scrolls, so a filling child\n * and a scrolling parent contradict each other.\n *\n * Separate from the width above ON PURPOSE — see `zone-content-geometry.ts` for why the enum that\n * fused them could not express a capped width with a definite height.\n */\n zoneContentFillsHeight?: boolean;\n /**\n * The features a scope must hold for this view: a plan fence on a dashboard or a board. Gated where the person meets\n * the view, both at its route (`FeatureRouteGuard`, which navigates home under a HIDE policy) and wherever it is\n * embedded (`RequiredFeaturesGate`, inside `CompositeView`). The operations the view calls are refused by the backend\n * on their own requirements either way; this is what keeps the view itself from rendering for a scope without it.\n */\n requiredFeatures?: RequiredFeaturesConfig;\n}\n\n/**\n * Resource-scoped composite view authoring. Extends the base with\n * `operationLike`, which declares the **single** resource operation host\n * this composite is rendered inside of (and therefore the access policy it\n * exhibits). Composite views are always rendered inside exactly one\n * operation host, so `operationLike` is intentionally single-valued — the\n * list analogue is reserved for execution views, which can legitimately\n * surface in several operation hosts.\n *\n * `operationLike` is the **single declarative source of truth** for\n * composite surfacing: at render time, `ResourceLayout_InsertedViews` filters\n * the resource's `compositeViews` directly by the current operation host\n * against `operationLike`. There is no operation-level view-ref list and no\n * compiled derivation — the composite declaration itself carries the link.\n */\nexport interface ResourceCompositeViewAuthoringConfig extends CompositeViewAuthoringConfig {\n /**\n * Operation host this composite is rendered inside of, and the sole\n * declarative link driving where this composite surfaces at runtime.\n *\n * Defaults to `CoreResourceOperation.READ` when omitted. This default\n * MUST match the fallback passed to `collectOperationLikeViewRefs` at the\n * specification-extraction call site — if it ever diverges, runtime host\n * rendering (which reads `operationLike` directly) and the compiled\n * specification output (which mirrors it via the collector) disagree\n * silently.\n */\n operationLike?: CoreResourceOperation;\n /**\n * The actor system whose conversations this view hosts ON ITS RECORD: the `systemRef` of the\n * `FlowsActorsView` it renders with the record in that view's context.\n *\n * A conversation opened on a record is listed only there, so a link to it (a notice, an email: the\n * conversation-link page) must open THIS view on that record rather than the system's standalone view, which\n * lists another context. Declaring the system is what lets the engine find this view from a conversation, and it\n * hands the linked conversation to the `FlowsActorsView` of that system inside it — the view's component passes\n * nothing for it.\n *\n * Omitted when the view hosts no conversation. Resource composites only: an application-level view has no record,\n * so its conversations are the standalone view's.\n */\n conversationSystemRef?: string;\n}\n\nexport interface CompositeViewDefinition {\n // Base FrontendView_Definition fields\n scope: FrontendView_ScopeMode;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n additionalResourceRequirements?: FrontendResource_ParentResourceRequirement[];\n // CompositeView-specific fields\n ref: string;\n /** Stable translation identity used for composite-view label lookup/generation. */\n translationRef: string;\n isAddressable: boolean;\n operationLike: CoreResourceOperation;\n primaryScope: ResourcePrimaryScope;\n sectionRefs?: string[];\n /**\n * See {@link CompositeViewAuthoringConfig.labels}. Mirrored from authoring, and declared in the\n * Zod schema too — the startup config parse strips schema-unknown keys.\n */\n labels?: DeclaredViewLabel[];\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Required features for this view — gates navigation + route access */\n requiredFeatures?: RequiredFeaturesConfig;\n /**\n * Composite-view icon, propagated verbatim from authoring\n * ({@link CompositeViewAuthoringConfig.icon}). The `IconRegistryBridge`\n * walks all composite-view definitions and registers their icons into\n * `CoreIconRegistry.compositeView`, keyed by `ref`.\n */\n icon?: IconLike;\n /** See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}. Mirrored from authoring. */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /** See {@link CompositeViewAuthoringConfig.zoneContentMaxWidth}. Mirrored from authoring. */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /** See {@link CompositeViewAuthoringConfig.zoneContentFillsHeight}. Mirrored from authoring. */\n zoneContentFillsHeight?: boolean;\n /**\n * See {@link ResourceCompositeViewAuthoringConfig.conversationSystemRef}. Mirrored from a RESOURCE composite's\n * authoring by the registry, which is not Zod-parsed; an application-level definition never carries it.\n */\n conversationSystemRef?: string;\n}\n\nexport type AppCompositeViewsConfig = Record<string, CompositeViewAuthoringConfig>;\n\nexport type InsertedCompositeDeclaration = CompositeViewDefinition;\n/** @wildo_source:part:end saas.frontend.composite-view.authoring */\n\nexport function buildApplicationCompositeViewTranslationRef(viewRef: string): string {\n return buildApplicationViewTranslationRef(viewRef);\n}\n\nexport function buildResourceCompositeViewTranslationRef(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.define-helper facet:layer:frontend facet:family:composite-view\n *\n * Authoring helper: attach a composite view component with optional\n * `sectionRefs`. This helper targets the **base** authoring shape\n * ({@link CompositeViewAuthoringConfig}) and is suitable for app-level\n * composites. Resource-scoped composites additionally support\n * {@link ResourceCompositeViewAuthoringConfig.operationLike} and are\n * usually authored as plain object literals inside\n * `ResourceCompositeViewsConfig` so authors can declare `operationLike`\n * inline.\n */\nexport function defineCompositeView(\n viewComponent: React.ComponentType<CompositeViewComponentProps>,\n config: Omit<CompositeViewAuthoringConfig, 'viewComponent'> = {},\n): CompositeViewAuthoringConfig {\n return {\n viewComponent,\n ...config,\n };\n}\n/** @wildo_source:part:end saas.frontend.composite-view.define-helper */\n\nexport const COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX = 'composite_ctx_';\n\nexport function isStandaloneRoutableCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.APPLICATION\n );\n}\n\nexport function buildApplicationCompositeViewDefinitions(\n authoredCompositeViews: AppCompositeViewsConfig | undefined,\n): CompositeViewDefinition[] {\n if (!authoredCompositeViews) {\n return [];\n }\n\n return Object.entries(authoredCompositeViews).map(([ref, authoredView]) => ({\n ref,\n translationRef: buildApplicationCompositeViewTranslationRef(ref),\n scope: FrontendView_ScopeMode.APPLICATION,\n isAddressable: true,\n operationLike: CoreResourceOperation.READ,\n primaryScope: ResourcePrimaryScope.APPLICATION,\n sectionRefs: authoredView.sectionRefs,\n labels: authoredView.labels,\n viewComponent: authoredView.viewComponent,\n icon: authoredView.icon,\n adjacentZoneOnEmpty: authoredView.adjacentZoneOnEmpty,\n zoneContentMaxWidth: authoredView.zoneContentMaxWidth,\n zoneContentFillsHeight: authoredView.zoneContentFillsHeight,\n requiredFeatures: authoredView.requiredFeatures,\n }));\n}\n\nexport function isStandaloneRoutableInsertedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.RESOURCE\n );\n}\n\nexport function isStandaloneRoutableResolvedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n if (!compositeView) {\n return false;\n }\n\n return compositeView.scope === FrontendView_ScopeMode.APPLICATION\n ? isStandaloneRoutableCompositeView(compositeView)\n : isStandaloneRoutableInsertedCompositeView(compositeView);\n}\n\nexport function buildResourceInsertedCompositeIdentity(\n resourceType: string,\n compositeView: Pick<CompositeViewDefinition, 'ref'>,\n): FrontendInsertedViewIdentity {\n return createFrontendInsertedViewIdentity({\n hostKind: FrontendInsertedViewHostKind.RESOURCE,\n hostRef: resourceType,\n viewKind: FrontendInsertedViewKind.COMPOSITE_VIEW,\n localRef: compositeView.ref,\n });\n}\n\nexport function resolveCompositeViewDefinition(params: {\n viewRef: string | undefined;\n compositeViews?: CompositeViewDefinition[];\n registry?: FrontendResourcesRegistry;\n}): CompositeViewDefinition | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView) {\n return applicationCompositeView;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef);\n}\n\nexport function resolveCompositeViewPrimaryScope(params: {\n viewRef: string | undefined;\n compositeViews?: Array<{ ref: string; primaryScope?: ResourcePrimaryScope }>;\n registry?: FrontendResourcesRegistry;\n}): ResourcePrimaryScope | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView?.primaryScope) {\n return applicationCompositeView.primaryScope;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef)\n ?.primaryScope;\n}\n\nexport function buildCompositeRouteUrlPath(\n viewRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(contextResourceIdentifiers ?? {})) {\n if (!value) {\n continue;\n }\n params.set(`${COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX}${key}`, value);\n }\n\n const search = params.toString();\n return search.length > 0 ? `/composite/${viewRef}?${search}` : `/composite/${viewRef}`;\n}\n\nexport function extractCompositeRouteContextResourceIdentifiers(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const contextResourceIdentifiers: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n if (!key.startsWith(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || !value) {\n continue;\n }\n contextResourceIdentifiers[key.slice(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX.length)] = value;\n }\n\n return Object.keys(contextResourceIdentifiers).length > 0 ? contextResourceIdentifiers : undefined;\n}\n\n/**\n * Base fields for authored top-level composite views.\n *\n * The old GridStack/document-era composite schema has been removed. Composite\n * views are now declared as direct authored React components plus ordinary\n * routed view metadata.\n */\nexport const CompositeView_BaseFieldsSchema = z.object({\n /** Unique reference for this view */\n ref: z.string().min(1),\n /** Stable translation identity used for composite-view label lookup/generation */\n translationRef: z.string().min(1),\n /** Whether this view has its own URL route */\n isAddressable: z.boolean().default(false),\n /** Operation-like behavior for access control */\n operationLike: z.enum(CoreResourceOperation).default(CoreResourceOperation.READ),\n /** Primary scope for this view - determines which context identifiers are injected during navigation */\n primaryScope: z.enum(ResourcePrimaryScope).default(ResourcePrimaryScope.ORGANIZATIONS),\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs: z.array(z.string()).optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.labels}.\n *\n * MUST stay declared here as well as on the interface, for the reason spelled out on `icon`\n * below: the resolved frontend config is Zod-parsed at startup and a field the schema does not\n * know is silently STRIPPED — the authored declaration would never reach the labelling planner,\n * so no key would be generated and the component would render its raw key for ever.\n */\n labels: z.array(z.any()).optional(),\n /**\n * Direct authored composite view component.\n *\n * Top-level composite views are authored as direct React components.\n */\n viewComponent: z.any(),\n /** Required features for this view — gates navigation + route access via feature availability policy */\n requiredFeatures: RequiredFeaturesConfigSchema.optional(),\n /**\n * Composite-view icon (lucide component reference or StandardIconReference\n * string) — see {@link CompositeViewDefinition.icon}.\n *\n * MUST stay declared here even though the TS interface already carries it:\n * the resolved frontend config is Zod-parsed at startup\n * (`AppConfiguration_Frontend_Schema.parse`), and a field missing from this\n * schema is silently STRIPPED by that parse — authored icons then never reach\n * the `IconRegistryBridge` and every launcher renders the fallback icon.\n * (That exact drift shipped once: interface had `icon`, schema didn't.)\n * Kept permissive like `viewComponent` — authored input, not user input.\n */\n icon: z.custom<IconLike>().optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}.\n *\n * Declared here as well as on the interface for the reason spelled out on\n * `icon` directly above: the resolved frontend config is Zod-parsed at\n * startup, and a field the schema does not know is silently STRIPPED — the\n * authored value would never reach `resolveZoneEmptyBehavior` and the zone\n * default would win with nothing to show for it.\n */\n adjacentZoneOnEmpty: z.enum(ZoneEmptyBehavior).optional(),\n /** See {@link CompositeViewAuthoringConfig.zoneContentFill}. Declared here for the strip reason on `icon`. */\n zoneContentMaxWidth: z.enum(RESPONSIVE_MAX_WIDTH_VALUES).optional(),\n zoneContentFillsHeight: z.boolean().optional(),\n});\n\nexport type CompositeView_BaseFields = z.infer<typeof CompositeView_BaseFieldsSchema>;\n\n/** Combine scope discriminated union with base composite view fields */\nexport const CompositeViewDefinitionBaseSchema = z.intersection(\n FrontendView_DefinitionSchema,\n CompositeView_BaseFieldsSchema\n);\nexport type CompositeViewDefinitionBase = z.infer<typeof CompositeViewDefinitionBaseSchema>;\n\n/** Top-level composite view contract */\nexport const CompositeViewDefinitionSchema: z.ZodType<CompositeViewDefinition> = CompositeViewDefinitionBaseSchema as z.ZodType<CompositeViewDefinition>;\n"]}
@@ -56,7 +56,7 @@
56
56
  * Presentation, never authorization: the server decides every card on the decision's own route.
57
57
  */
58
58
  import { type ApplicationDecisionInbox } from '@wildo-ai/saas-models';
59
- import { type LauncherEffectiveRoles } from '../../core/navigation/launcher-resolution';
59
+ import { type LauncherEffectiveRoles } from '../../core/navigation/viewer-roles';
60
60
  /** The runtime capability key the Decisions row requires (`runtimeAvailability.requiredCapabilities`). */
61
61
  export declare enum DecisionInboxCapability {
62
62
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"decision-inbox-capability.frontend.utils.d.ts","sourceRoot":"","sources":["../../../../src/core/config/decision-inbox-capability.frontend.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,OAAO,EAAwB,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAyB,KAAK,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAE7H,0GAA0G;AAC1G,oBAAY,uBAAuB;IACjC;;;;OAIG;IACH,QAAQ,0BAA0B;CACnC;AAED,oHAAoH;AACpH,MAAM,WAAW,6BAA6B;IAC5C,8GAA8G;IAC9G,QAAQ,CAAC,KAAK,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACrD,iHAAiH;IACjH,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAC;CACjD;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,6BAA6B,GAAG,OAAO,CAiB3F;AAED,yGAAyG;AACzG,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,6BAA6B,GAAG,MAAM,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAE9H"}
1
+ {"version":3,"file":"decision-inbox-capability.frontend.utils.d.ts","sourceRoot":"","sources":["../../../../src/core/config/decision-inbox-capability.frontend.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,OAAO,EAAwB,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAyB,KAAK,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAEtH,0GAA0G;AAC1G,oBAAY,uBAAuB;IACjC;;;;OAIG;IACH,QAAQ,0BAA0B;CACnC;AAED,oHAAoH;AACpH,MAAM,WAAW,6BAA6B;IAC5C,8GAA8G;IAC9G,QAAQ,CAAC,KAAK,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACrD,iHAAiH;IACjH,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAC;CACjD;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,6BAA6B,GAAG,OAAO,CAiB3F;AAED,yGAAyG;AACzG,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,6BAA6B,GAAG,MAAM,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAE9H"}
@@ -56,7 +56,7 @@
56
56
  * Presentation, never authorization: the server decides every card on the decision's own route.
57
57
  */
58
58
  import { ResourcePrimaryScope } from '@wildo-ai/saas-models';
59
- import { viewerHoldsOneOfRoles } from '../../core/navigation/launcher-resolution.js';
59
+ import { viewerHoldsOneOfRoles } from '../../core/navigation/viewer-roles.js';
60
60
  /** The runtime capability key the Decisions row requires (`runtimeAvailability.requiredCapabilities`). */
61
61
  export var DecisionInboxCapability;
62
62
  (function (DecisionInboxCapability) {
@@ -1 +1 @@
1
- {"version":3,"file":"decision-inbox-capability.frontend.utils.js","sourceRoot":"","sources":["../../../../src/core/config/decision-inbox-capability.frontend.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,OAAO,EAAE,oBAAoB,EAAiC,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAA+B,MAAM,yDAAyD,CAAC;AAE7H,0GAA0G;AAC1G,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC;;;;OAIG;IACH,6DAAkC,CAAA;AACpC,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAUD;;;GAGG;AACH,MAAM,UAAU,6BAA6B,CAAC,KAAoC;IAChF,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,EAAE,cAAc,IAAI,EAAE,CAAC;IACzD,iGAAiG;IACjG,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC;IACpC,MAAM,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC;IACrC,IAAI,CAAC,OAAO;QAAE,OAAO,qBAAqB,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACnE,MAAM,yBAAyB,GAAG,IAAI,GAAG,EAAU,CAAC;IACpD,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;QACxC,uHAAuH;QACvH,+GAA+G;QAC/G,IAAI,KAAK,CAAC,mBAAmB,KAAK,oBAAoB,CAAC,aAAa,IAAI,CAAC,KAAK,CAAC,iBAAiB;YAAE,SAAS;QAC3G,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK;YAAE,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtE,CAAC;IACD,qHAAqH;IACrH,oHAAoH;IACpH,OAAO,qBAAqB,CAAC,cAAc,EAAE,EAAE,GAAG,MAAM,EAAE,iBAAiB,EAAE,CAAC,GAAG,yBAAyB,CAAC,EAAE,CAAC,CAAC;AACjH,CAAC;AAED,yGAAyG;AACzG,MAAM,UAAU,+BAA+B,CAAC,KAAoC;IAClF,OAAO,EAAE,CAAC,uBAAuB,CAAC,QAAQ,CAAC,EAAE,6BAA6B,CAAC,KAAK,CAAC,EAAE,CAAC;AACtF,CAAC","sourcesContent":["/**\n * The runtime capability that decides who is offered the engine's Decisions row (#2527, #2577).\n *\n * ## Why the row does not use `requiredRoles`\n *\n * `runtimeAvailability.requiredRoles` is evaluated against the viewer's application roles and their ORGANIZATION-WIDE\n * roles in the CURRENT organization (`viewerHoldsOneOfRoles`). That is right for every other role-gated launcher entry,\n * because each of them opens something acting in the current organization: a settings section, a view, an operation.\n *\n * The decision inbox is not about the current organization. The server lists a person's decisions from every\n * organization, whatever the current one (`listPendingDecisions`, and each `HumanDecisionHost.listCards`): the\n * decisions assigned to them, the OWNER decisions they raised, and the ROLE decisions of each organization they hold a\n * role entry in, an organization reached through a live relationship included (#2792: read through the same role build\n * as the access profile, `organizationIdsWithRoleEntries`). It then admits each one through the decision organization's\n * role facts, re-read now (`resolveHumanDecisionRoleFacts`): the eligible role held organization-wide, OR in an\n * organization unit that contains the decision's unit, OR through an organization relationship (an assigned decision\n * is admitted that way: the reassignment candidates are the organization's active members, representatives included).\n * Gated on `requiredRoles`, the row was hidden from two people the server answers decisions for:\n * - a unit-only reviewer (a finance approver of one unit), who holds no organization-wide role;\n * - a firm's expert whose current organization is the firm, while the decision waits in a client organization where\n * the expert stands through the service relationship.\n *\n * Both are LISTED what they may answer, not only offered the row (#2792): the listing used to select ROLE decisions from\n * the organizations of the request's own roles, which a manual controller builds without relationship entries, so the\n * expert was answerable and never listed. It now selects from the same role build the answer path re-reads.\n *\n * ## The decision\n *\n * The row is offered when the viewer holds one of the answering roles in an entry the server reads an answerer from:\n * the application entry (an OWNER route's `APP_USER`), or ANY organization entry of the backend's access profile\n * (`user-self | access_profile`): organization-wide, unit-scoped or relationship, in any organization. The access\n * profile is built by the same role build a decision's role facts are re-read through, so the row follows the server's\n * own facts rather than a second account of them.\n *\n * It is never wider than that: every decision the server lists needs one of those entries to hold the decision's\n * eligible role (or the person to be the OWNER decision's requester, who holds `APP_USER`). It is not narrower than the\n * population either, which a row cannot be without listing: whether a decision is actually waiting in the unit the\n * reviewer covers is the page's question, and the page asks the server.\n *\n * ## Rejected alternatives\n *\n * - **Widen `requiredRoles` for every row** (the issue's option a, applied to the launcher). It would change what every\n * other role-gated entry means: an `office-manager` section would be offered in an organization where the viewer is\n * only a member, because they manage another one, and it would open screens the backend then refuses. The decision\n * inbox gets its own evaluation instead, as a capability, and `requiredRoles` keeps its meaning.\n * - **Offer the row when a decision is pending** (option b's second half). That needs a server read on every shell load\n * to decide a navigation entry, and the row would come and go as decisions are answered. A reviewer who has answered\n * everything still has an inbox; its empty state says so.\n *\n * ## Without the access profile\n *\n * When the profile could not be loaded, the shell's documented degradation applies: the roles of the current\n * organization decide, as they did before #2577. A standing elsewhere is then unknown, and the row stays hidden for it\n * rather than being offered on a guess.\n *\n * Presentation, never authorization: the server decides every card on the decision's own route.\n */\nimport { ResourcePrimaryScope, type ApplicationDecisionInbox } from '@wildo-ai/saas-models';\nimport { viewerHoldsOneOfRoles, type LauncherEffectiveRoles } from '~wildo-frontend-lib/core/navigation/launcher-resolution';\n\n/** The runtime capability key the Decisions row requires (`runtimeAvailability.requiredCapabilities`). */\nexport enum DecisionInboxCapability {\n /**\n * The viewer holds a role a decision can wait on, in an entry the server reads an answerer from: the application\n * entry, or any organization entry (organization-wide, unit-scoped or relationship) in any organization. Gates the\n * engine's Decisions row and its command. An application that places the page itself may require it too.\n */\n ANSWERER = 'decisionInboxAnswerer',\n}\n\n/** What the derivation reads: the application's answering roles, and the viewer's roles with the access profile. */\nexport interface DecisionInboxCapabilityInputs {\n /** `appConfig.decisionInbox`, the roles a decision can wait on. Absent when the application declares none. */\n readonly offer: ApplicationDecisionInbox | undefined;\n /** The viewer's roles (`useViewerEffectiveRoles`), carrying the role tables and the backend's access profile. */\n readonly effectiveRoles: LauncherEffectiveRoles;\n}\n\n/**\n * Whether the viewer may have decisions waiting in the inbox: one of `offer.answeringRoles`, through the role\n * hierarchy, held in the application entry or in any organization entry of the access profile. See the module comment.\n */\nexport function viewerMayHaveDecisionsWaiting(input: DecisionInboxCapabilityInputs): boolean {\n const answeringRoles = input.offer?.answeringRoles ?? [];\n // No answering role: the application declares nothing a decision can wait on, and no row exists.\n if (answeringRoles.length === 0) return false;\n const viewer = input.effectiveRoles;\n const profile = viewer.accessProfile;\n if (!profile) return viewerHoldsOneOfRoles(answeringRoles, viewer);\n const organizationRolesAnywhere = new Set<string>();\n for (const entry of profile.roleEntries) {\n // Every organization entry the server can read an answerer from: organization-wide, unit-scoped (`organizationUnitId`)\n // and relationship entries alike, in every organization. An application entry is read from `applicationRoles`.\n if (entry.relatedPrimaryScope !== ResourcePrimaryScope.ORGANIZATIONS || !entry.relatedResourceId) continue;\n for (const role of entry.roles) organizationRolesAnywhere.add(role);\n }\n // OR semantics through the organization role table, as `resolveHumanDecisionRoleFacts` expands a held role. One held\n // role covering one answering role in one entry is enough, so pooling the entries' roles answers the same question.\n return viewerHoldsOneOfRoles(answeringRoles, { ...viewer, organizationRoles: [...organizationRolesAnywhere] });\n}\n\n/** The capability. Pure, so the shell hook stays a call and the decision is pinned without providers. */\nexport function deriveDecisionInboxCapabilities(input: DecisionInboxCapabilityInputs): Record<DecisionInboxCapability, boolean> {\n return { [DecisionInboxCapability.ANSWERER]: viewerMayHaveDecisionsWaiting(input) };\n}\n"]}
1
+ {"version":3,"file":"decision-inbox-capability.frontend.utils.js","sourceRoot":"","sources":["../../../../src/core/config/decision-inbox-capability.frontend.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,OAAO,EAAE,oBAAoB,EAAiC,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAA+B,MAAM,kDAAkD,CAAC;AAEtH,0GAA0G;AAC1G,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC;;;;OAIG;IACH,6DAAkC,CAAA;AACpC,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAUD;;;GAGG;AACH,MAAM,UAAU,6BAA6B,CAAC,KAAoC;IAChF,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,EAAE,cAAc,IAAI,EAAE,CAAC;IACzD,iGAAiG;IACjG,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC;IACpC,MAAM,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC;IACrC,IAAI,CAAC,OAAO;QAAE,OAAO,qBAAqB,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACnE,MAAM,yBAAyB,GAAG,IAAI,GAAG,EAAU,CAAC;IACpD,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;QACxC,uHAAuH;QACvH,+GAA+G;QAC/G,IAAI,KAAK,CAAC,mBAAmB,KAAK,oBAAoB,CAAC,aAAa,IAAI,CAAC,KAAK,CAAC,iBAAiB;YAAE,SAAS;QAC3G,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK;YAAE,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtE,CAAC;IACD,qHAAqH;IACrH,oHAAoH;IACpH,OAAO,qBAAqB,CAAC,cAAc,EAAE,EAAE,GAAG,MAAM,EAAE,iBAAiB,EAAE,CAAC,GAAG,yBAAyB,CAAC,EAAE,CAAC,CAAC;AACjH,CAAC;AAED,yGAAyG;AACzG,MAAM,UAAU,+BAA+B,CAAC,KAAoC;IAClF,OAAO,EAAE,CAAC,uBAAuB,CAAC,QAAQ,CAAC,EAAE,6BAA6B,CAAC,KAAK,CAAC,EAAE,CAAC;AACtF,CAAC","sourcesContent":["/**\n * The runtime capability that decides who is offered the engine's Decisions row (#2527, #2577).\n *\n * ## Why the row does not use `requiredRoles`\n *\n * `runtimeAvailability.requiredRoles` is evaluated against the viewer's application roles and their ORGANIZATION-WIDE\n * roles in the CURRENT organization (`viewerHoldsOneOfRoles`). That is right for every other role-gated launcher entry,\n * because each of them opens something acting in the current organization: a settings section, a view, an operation.\n *\n * The decision inbox is not about the current organization. The server lists a person's decisions from every\n * organization, whatever the current one (`listPendingDecisions`, and each `HumanDecisionHost.listCards`): the\n * decisions assigned to them, the OWNER decisions they raised, and the ROLE decisions of each organization they hold a\n * role entry in, an organization reached through a live relationship included (#2792: read through the same role build\n * as the access profile, `organizationIdsWithRoleEntries`). It then admits each one through the decision organization's\n * role facts, re-read now (`resolveHumanDecisionRoleFacts`): the eligible role held organization-wide, OR in an\n * organization unit that contains the decision's unit, OR through an organization relationship (an assigned decision\n * is admitted that way: the reassignment candidates are the organization's active members, representatives included).\n * Gated on `requiredRoles`, the row was hidden from two people the server answers decisions for:\n * - a unit-only reviewer (a finance approver of one unit), who holds no organization-wide role;\n * - a firm's expert whose current organization is the firm, while the decision waits in a client organization where\n * the expert stands through the service relationship.\n *\n * Both are LISTED what they may answer, not only offered the row (#2792): the listing used to select ROLE decisions from\n * the organizations of the request's own roles, which a manual controller builds without relationship entries, so the\n * expert was answerable and never listed. It now selects from the same role build the answer path re-reads.\n *\n * ## The decision\n *\n * The row is offered when the viewer holds one of the answering roles in an entry the server reads an answerer from:\n * the application entry (an OWNER route's `APP_USER`), or ANY organization entry of the backend's access profile\n * (`user-self | access_profile`): organization-wide, unit-scoped or relationship, in any organization. The access\n * profile is built by the same role build a decision's role facts are re-read through, so the row follows the server's\n * own facts rather than a second account of them.\n *\n * It is never wider than that: every decision the server lists needs one of those entries to hold the decision's\n * eligible role (or the person to be the OWNER decision's requester, who holds `APP_USER`). It is not narrower than the\n * population either, which a row cannot be without listing: whether a decision is actually waiting in the unit the\n * reviewer covers is the page's question, and the page asks the server.\n *\n * ## Rejected alternatives\n *\n * - **Widen `requiredRoles` for every row** (the issue's option a, applied to the launcher). It would change what every\n * other role-gated entry means: an `office-manager` section would be offered in an organization where the viewer is\n * only a member, because they manage another one, and it would open screens the backend then refuses. The decision\n * inbox gets its own evaluation instead, as a capability, and `requiredRoles` keeps its meaning.\n * - **Offer the row when a decision is pending** (option b's second half). That needs a server read on every shell load\n * to decide a navigation entry, and the row would come and go as decisions are answered. A reviewer who has answered\n * everything still has an inbox; its empty state says so.\n *\n * ## Without the access profile\n *\n * When the profile could not be loaded, the shell's documented degradation applies: the roles of the current\n * organization decide, as they did before #2577. A standing elsewhere is then unknown, and the row stays hidden for it\n * rather than being offered on a guess.\n *\n * Presentation, never authorization: the server decides every card on the decision's own route.\n */\nimport { ResourcePrimaryScope, type ApplicationDecisionInbox } from '@wildo-ai/saas-models';\nimport { viewerHoldsOneOfRoles, type LauncherEffectiveRoles } from '~wildo-frontend-lib/core/navigation/viewer-roles';\n\n/** The runtime capability key the Decisions row requires (`runtimeAvailability.requiredCapabilities`). */\nexport enum DecisionInboxCapability {\n /**\n * The viewer holds a role a decision can wait on, in an entry the server reads an answerer from: the application\n * entry, or any organization entry (organization-wide, unit-scoped or relationship) in any organization. Gates the\n * engine's Decisions row and its command. An application that places the page itself may require it too.\n */\n ANSWERER = 'decisionInboxAnswerer',\n}\n\n/** What the derivation reads: the application's answering roles, and the viewer's roles with the access profile. */\nexport interface DecisionInboxCapabilityInputs {\n /** `appConfig.decisionInbox`, the roles a decision can wait on. Absent when the application declares none. */\n readonly offer: ApplicationDecisionInbox | undefined;\n /** The viewer's roles (`useViewerEffectiveRoles`), carrying the role tables and the backend's access profile. */\n readonly effectiveRoles: LauncherEffectiveRoles;\n}\n\n/**\n * Whether the viewer may have decisions waiting in the inbox: one of `offer.answeringRoles`, through the role\n * hierarchy, held in the application entry or in any organization entry of the access profile. See the module comment.\n */\nexport function viewerMayHaveDecisionsWaiting(input: DecisionInboxCapabilityInputs): boolean {\n const answeringRoles = input.offer?.answeringRoles ?? [];\n // No answering role: the application declares nothing a decision can wait on, and no row exists.\n if (answeringRoles.length === 0) return false;\n const viewer = input.effectiveRoles;\n const profile = viewer.accessProfile;\n if (!profile) return viewerHoldsOneOfRoles(answeringRoles, viewer);\n const organizationRolesAnywhere = new Set<string>();\n for (const entry of profile.roleEntries) {\n // Every organization entry the server can read an answerer from: organization-wide, unit-scoped (`organizationUnitId`)\n // and relationship entries alike, in every organization. An application entry is read from `applicationRoles`.\n if (entry.relatedPrimaryScope !== ResourcePrimaryScope.ORGANIZATIONS || !entry.relatedResourceId) continue;\n for (const role of entry.roles) organizationRolesAnywhere.add(role);\n }\n // OR semantics through the organization role table, as `resolveHumanDecisionRoleFacts` expands a held role. One held\n // role covering one answering role in one entry is enough, so pooling the entries' roles answers the same question.\n return viewerHoldsOneOfRoles(answeringRoles, { ...viewer, organizationRoles: [...organizationRolesAnywhere] });\n}\n\n/** The capability. Pure, so the shell hook stays a call and the decision is pinned without providers. */\nexport function deriveDecisionInboxCapabilities(input: DecisionInboxCapabilityInputs): Record<DecisionInboxCapability, boolean> {\n return { [DecisionInboxCapability.ANSWERER]: viewerMayHaveDecisionsWaiting(input) };\n}\n"]}
@@ -5,6 +5,12 @@ import type { SettingsCategoryGroup, SettingsDestination, SettingsHubConfig } fr
5
5
  * decisions require no qualification has nothing to record.
6
6
  */
7
7
  export declare const PROFESSIONAL_QUALIFICATIONS_DECLARED_CAPABILITY = "professionalQualificationsDeclared";
8
+ /**
9
+ * Whether the application OFFERS the organization audit log (`CoreFeature.AUDIT_LOGS`): entitled, or reachable through
10
+ * an upgrade or an add-on. Unlike the three above it has no "still configured" half: reading the log configures nothing,
11
+ * so there is nothing a lapse keeps and nothing to show once no plan sells it.
12
+ */
13
+ export declare const AUDIT_LOG_OFFERED_CAPABILITY = "auditLogOffered";
8
14
  /**
9
15
  * Every settings destination the engine ships, keyed by `ref`.
10
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"engine-settings-destinations.d.ts","sourceRoot":"","sources":["../../../../src/core/config/engine-settings-destinations.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AA2BrH;;;;GAIG;AACH,eAAO,MAAM,+CAA+C,uCAAuC,CAAC;AAmDpG;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,EAAE,SAAS,mBAAmB,EA0vCtE,CAAC;AAGF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,qBAAqB,EAOhE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAsI1C,CAAC"}
1
+ {"version":3,"file":"engine-settings-destinations.d.ts","sourceRoot":"","sources":["../../../../src/core/config/engine-settings-destinations.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AA2BrH;;;;GAIG;AACH,eAAO,MAAM,+CAA+C,uCAAuC,CAAC;AAkDpG;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,oBAAoB,CAAC;AAE9D;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,EAAE,SAAS,mBAAmB,EAgwCtE,CAAC;AAGF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,qBAAqB,EAOhE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAsI1C,CAAC"}
@@ -121,6 +121,12 @@ export const PROFESSIONAL_QUALIFICATIONS_DECLARED_CAPABILITY = 'professionalQual
121
121
  const SSO_ENABLED_CAPABILITY = 'ssoEnabled';
122
122
  const SIEM_ENABLED_CAPABILITY = 'siemEnabled';
123
123
  const WEBHOOKS_ENABLED_CAPABILITY = 'webhooksEnabled';
124
+ /**
125
+ * Whether the application OFFERS the organization audit log (`CoreFeature.AUDIT_LOGS`): entitled, or reachable through
126
+ * an upgrade or an add-on. Unlike the three above it has no "still configured" half: reading the log configures nothing,
127
+ * so there is nothing a lapse keeps and nothing to show once no plan sells it.
128
+ */
129
+ export const AUDIT_LOG_OFFERED_CAPABILITY = 'auditLogOffered';
124
130
  /**
125
131
  * Every settings destination the engine ships, keyed by `ref`.
126
132
  *
@@ -604,9 +610,15 @@ export const ENGINE_SETTINGS_DESTINATIONS = [
604
610
  },
605
611
  },
606
612
  {
613
+ // Reading the organization's audit log is what a plan sells (`CoreFeature.AUDIT_LOGS`), and the backend refuses every
614
+ // read door without it. Hidden where the application does not offer it at all; where it is offered but not entitled,
615
+ // the feature's prompt takes the place of the list (the content IS the gated read, so there is nothing to keep).
607
616
  ref: EngineSettingsDestinationRef.AUDIT_LOGS,
608
617
  icon: StandardIconReference.SCROLL,
609
618
  requiredRoles: ORG_MANAGEMENT_ROLES,
619
+ runtimeAvailability: { requiredCapabilities: [AUDIT_LOG_OFFERED_CAPABILITY] },
620
+ entitlementFeatureId: CoreFeature.AUDIT_LOGS,
621
+ entitlementWithholdsContent: true,
610
622
  target: {
611
623
  kind: SettingsSectionTargetKind.RESOURCE_OPERATION,
612
624
  resourceType: CoreResourceType.AUDIT_LOGS,