@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":"settings-hub.frontend.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/settings-hub.frontend.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAMH,mEAAmE;AACnE,+DAA+D;AAC/D,mEAAmE;AAEnE,oEAAoE;AACpE;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,iEAAiE;IACjE,0DAA6B,CAAA;IAC7B,+FAA+F;IAC/F,sEAAyC,CAAA;IACzC,sFAAsF;IACtF,kEAAqC,CAAA;IACrC,0GAA0G;IAC1G,kDAAqB,CAAA;AACvB,CAAC,EATW,yBAAyB,KAAzB,yBAAyB,QASpC;AACD,kEAAkE;AAElE,mEAAmE;AACnE,6DAA6D;AAC7D,mEAAmE;AAEnE;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,gBA8GX;AA9GD,WAAY,gBAAgB;IAC1B,wGAAwG;IACxG,yCAAqB,CAAA;IACrB,qEAAqE;IACrE,6CAAyB,CAAA;IACzB,oFAAoF;IACpF,+CAA2B,CAAA;IAC3B;;;;;;;;;;;OAWG;IACH,uCAAmB,CAAA;IACnB;;;;;;;;;;;;OAYG;IACH,6DAAyC,CAAA;IACzC;;;;;;;OAOG;IACH,uFAAmE,CAAA;IACnE;;;;;;;;OAQG;IACH,qFAAiE,CAAA;IACjE;;;;;;;OAOG;IACH,yEAAqD,CAAA;IACrD;;;;;;OAMG;IACH,2DAAuC,CAAA;IACvC;;;;OAIG;IACH,qDAAiC,CAAA;IACjC;;;;OAIG;IACH,6EAAyD,CAAA;IACzD;;;;;;OAMG;IACH,iEAA6C,CAAA;IAC7C;;;;;OAKG;IACH,qHAAiG,CAAA;IACjG;;;;;OAKG;IACH,uEAAmD,CAAA;IACnD;;;;OAIG;IACH,iFAA6D,CAAA;AAC/D,CAAC,EA9GW,gBAAgB,KAAhB,gBAAgB,QA8G3B;AAgVD,kEAAkE","sourcesContent":["/**\n * Settings Hub — Declarative Section Registry\n *\n * The Settings Hub is the framework's single point of configuration: one overlay\n * surface that consolidates every settings destination (account, security,\n * appearance, organization, members, billing, …) behind a vertical `Tabs` rail\n * grouped by category. Many entry points (user dropdown, sidebar, command menu)\n * all converge on this one hub; links differ only by which section they pre-open.\n *\n * This file owns the **config-time** registry contract. It is declaration-first\n * and mirrors `launcher-items.frontend.schemas.ts`:\n * - `SettingsSectionTarget` is an interface-based discriminated union on `kind`\n * (exactly like `LauncherItemRef`), because section targets are config-time\n * descriptors resolved by the runtime — not Zod-validated wire payloads.\n * - The engine ships DESTINATIONS (`ENGINE_SETTINGS_DESTINATIONS`) and no\n * arrangement; an application authors its own `SettingsHubConfig` — its\n * categories, its placements, and any destinations of its own.\n *\n * Runtime concerns live elsewhere:\n * - `NavigationContentType.SETTINGS_HUB` (navigation.schemas.ts) — what renders\n * in the overlay zone.\n * - `SettingsHub` component (components/settings/) — resolves a section's target\n * to a rendered panel.\n *\n * @see launcher-items.frontend.schemas.ts — the sibling launcher registry this mirrors\n */\n\nimport { ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport type { EngineCapability, RequiredFeaturesConfig } from '@wildo-ai/saas-models';\nimport type { LauncherRuntimeAvailabilityConfig } from './launcher-items.frontend.schemas';\n\n// ════════════════════════════════════════════════════════════════\n// Section Target Kind — discriminant for SettingsSectionTarget\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.settings-hub.placement */\n/**\n * What a settings section renders in its content panel.\n *\n * Discriminant for the `SettingsSectionTarget` union. The default for\n * data-backed settings is `RESOURCE_OPERATION` (reuse the auto-rendered\n * resource surface); `ENGINE_PANEL` is reserved for the few sections whose\n * bespoke layout earns it (Security, Appearance).\n */\nexport enum SettingsSectionTargetKind {\n /** A framework-owned bespoke panel (Security, Appearance, …). */\n ENGINE_PANEL = 'engine_panel',\n /** An auto-rendered resource-operation surface (members, API tokens, billing, preferences). */\n RESOURCE_OPERATION = 'resource_operation',\n /** An app-registered custom React component (resolved via the component registry). */\n CUSTOM_COMPONENT = 'custom_component',\n /** A section that itself splits into horizontal sub-tabs (e.g. Teams → Members / Roles & Permissions). */\n SUB_TABS = 'sub_tabs',\n}\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n\n// ════════════════════════════════════════════════════════════════\n// Engine Panel Ref — framework-owned bespoke settings panels\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Framework-provided settings panels with bespoke (non-CRUD) layout.\n *\n * Closed enum — only framework panels belong here. Most settings sections should\n * be `RESOURCE_OPERATION` targets instead; a panel earns a slot here only when a\n * standard resource surface cannot express it (multi-factor enrollment flows,\n * theme/dark-mode toggles, …).\n *\n * The runtime maps each ref to a registered panel component in the\n * `SettingsHub` resolver.\n */\nexport enum SettingsPanelRef {\n /** Password, MFA enrollment, passkeys, identity links (wraps the former `AppPage_SecuritySettings`). */\n SECURITY = 'security',\n /** Theme, dark-mode, density and other look-and-feel preferences. */\n APPEARANCE = 'appearance',\n /** The caller's own pending org invitations — accept/reject in-app (Approach P). */\n INVITATIONS = 'invitations',\n /**\n * The billing home: subscription status, plan catalog + checkout, usage,\n * invoices and the provider portal link — composed from the BillingContext\n * aggregated state (`GET_STATE`), NOT from per-resource LIST surfaces.\n *\n * Bespoke on purpose: the billing child resources (subscriptions, invoice\n * refs, usage records) are routed UNDER the billing account\n * (`REQUIRES_CONTEXT`), so a generic org-scoped `RESOURCE_OPERATION` panel\n * cannot build their URLs. The aggregated billing state is org-addressable\n * and auto-creates the account, which makes it the correct settings-surface\n * data source.\n */\n BILLING = 'billing',\n /**\n * Where a person CONNECTS one of their own third-party accounts.\n *\n * Bespoke because connecting is not a row somebody creates: it is a flow that leaves the\n * application, obtains consent at a vendor, and returns with a grant nobody typed. The generic\n * resource surface can list, inspect and delete the resulting credentials perfectly — it simply has\n * no mechanism for an ACTION of that shape, which is why the whole outbound-authorization lane had\n * no surface that could begin it until this existed.\n *\n * Since #2319 it is also the one list of what IS connected: every held connection with its acts, then\n * every provider nothing is held for. A separate credential list beside it made a person match the\n * same rows up by name.\n */\n CONNECTED_ACCOUNTS = 'connected-accounts',\n /**\n * The same act at the TENANT's scope: connecting an account the whole organization acts as.\n *\n * A distinct ref rather than a parameterised one, because a settings destination resolves a ref to\n * a panel and carries no arguments — and because the two must never be reachable from each other's\n * screen. The component behind them IS shared: the act is identical, and duplicating it would\n * guarantee the two drift. What is never shared is the data.\n */\n ORGANIZATION_CONNECTED_ACCOUNTS = 'organization-connected-accounts',\n /**\n * The same act for the APPLICATION's own account (#3579): the vendor account the deployment acts as, connected,\n * shown and disconnected by a super-administrator.\n *\n * A third ref for the organization ref's reason, and the same component. What differs at this scope is where each\n * act goes: the application's rows have no credential resource, so the listing reads `?ownerScope=application`, the\n * disconnect is `DELETE /connections/application/{connectionRef}`, and the per-row acts that need that resource\n * (turn off or on, a row's description, removing one slot) are not offered.\n */\n APPLICATION_CONNECTED_ACCOUNTS = 'application-connected-accounts',\n /**\n * How often the organization's deciders override its agents (#1599), per agent, tool, case or reviewer, over a\n * window: the counts behind the rate, the decisions nobody took counted apart, and a group where nothing was decided\n * shown as that rather than as 0 %.\n *\n * Bespoke because the rate is not a row: it is a summary the engine computes from the decision records on request\n * (`POST /agent-work/override-rate`), and no resource surface can render a computed aggregate.\n */\n AGENT_WORK_OVERRIDE_RATE = 'agent-work-override-rate',\n /**\n * An organization's autonomous agents (#2528): when each runs, its latest runs and its latest refusals with their\n * reason in words.\n *\n * Bespoke because the answer is one read across two stores: the runs are execution rows, and a turn that did not run\n * left no row at all, only an audit record of its refusal (`GET /flows-actors/autonomous-agents`).\n */\n AUTONOMOUS_AGENTS = 'autonomous-agents',\n /**\n * What an organization's declared flows and actor systems did (#3990): the runs, newest first, and each run's history,\n * tasks and flow steps. Bespoke because the actor plane's rows have no resource route; the page reads them through\n * `POST /flows-actors/agent-activity` and `/agent-activity/run`.\n */\n AGENT_ACTIVITY = 'agent-activity',\n /**\n * The same page across EVERY organization (#3990), each run naming the organization it worked for: an application-wide\n * read under the application's audit read policy. A distinct ref for the connected-accounts reason: a destination\n * resolves a ref to a panel and carries no arguments, and the component behind both is shared.\n */\n APPLICATION_AGENT_ACTIVITY = 'application-agent-activity',\n /**\n * What model calls cost per case, organization, agent or model over a window, in money (#2528): the Breakdown tab of\n * Administration > Model costs, beside the monthly records.\n *\n * Bespoke because the breakdown is not a row: it is a summary the engine computes on request from the call records\n * (`POST /model-cost/summary`), with the calls it could not attribute or price counted apart.\n */\n MODEL_COST_BREAKDOWN = 'model-cost-breakdown',\n /**\n * What a REPRESENTING organization's own model calls cost (#2618): the same breakdown as\n * {@link SettingsPanelRef.MODEL_COST_BREAKDOWN}, for the current organization's administrator, holding only its own work\n * (its calls through the relationships it represents in, and its own tenant's own calls). The Model cost tab of the\n * representing side's relationships section.\n */\n REPRESENTING_ORGANIZATION_MODEL_COST_BREAKDOWN = 'representing-organization-model-cost-breakdown',\n /**\n * What a REPRESENTING organization's own people did in the organizations it represents (#2874): the rows their acts\n * wrote in those organizations' trails, as far as each discloses them. The Activity tab of the representing side's\n * relationships section. Bespoke because the rows live in other tenants and only `POST /representative-activity`\n * reaches them.\n */\n REPRESENTATIVE_ACTIVITY = 'representative-activity',\n /**\n * Running an evaluation export (#2327): one agent, a window and where the dataset goes, then the dataset downloaded.\n * Bespoke because `POST /agent-work/evaluation-exports` answers with the dataset itself, and its record is the export\n * ledger the next tab lists.\n */\n AGENT_WORK_EVALUATION_EXPORT = 'agent-work-evaluation-export',\n}\n\n// ════════════════════════════════════════════════════════════════\n// Section Target — discriminated union on `kind`\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.settings-hub.placement */\n/** Renders a framework-owned bespoke panel. */\nexport interface SettingsEnginePanelTarget {\n kind: SettingsSectionTargetKind.ENGINE_PANEL;\n panelRef: SettingsPanelRef;\n}\n\n/**\n * Renders an auto-generated resource-operation surface inside the section panel.\n * Resolved against the resource registry exactly like a launcher\n * `RESOURCE_OPERATION` target.\n */\nexport interface SettingsResourceOperationTarget {\n kind: SettingsSectionTargetKind.RESOURCE_OPERATION;\n resourceType: string;\n operation: string;\n operationVariant?: string;\n}\n\n/** Renders an app-registered custom React component (resolved by `componentRef`). */\nexport interface SettingsCustomComponentTarget {\n kind: SettingsSectionTargetKind.CUSTOM_COMPONENT;\n componentRef: string;\n}\n\n/**\n * Leaf targets renderable directly in a panel. Sub-tabs may only point at leaf\n * targets — sub-tabs cannot nest further sub-tabs (one level of in-section\n * tabbing, matching the BetterStack reference).\n */\nexport type SettingsLeafTarget =\n | SettingsEnginePanelTarget\n | SettingsResourceOperationTarget\n | SettingsCustomComponentTarget;\n\n/**\n * One horizontal sub-tab within a section (e.g. the \"Members\" / \"Roles &\n * Permissions\" tabs inside a Teams section).\n */\nexport interface SettingsSubTab {\n /** Sub-tab reference — app-defined, used for i18n + the `value` of the inner Tabs. */\n ref: string;\n /** Display label (i18n ref). */\n label: string;\n /** Optional icon ref for the sub-tab trigger. */\n icon?: string;\n /** What this sub-tab renders. Sub-tabs hold leaf targets only. */\n target: SettingsLeafTarget;\n /**\n * Declarative runtime capability gating for this one tab, the same contract as the section's own (#2649). A tab\n * whose capabilities are off is left out of the section, and a section left with no tab is left out of the rail.\n *\n * For a section whose tabs are not all meaningful in every state: the SCIM section shows its tokens wherever the\n * organization holds one it can only revoke, while its provisioning tab needs a type a directory may provision.\n * Omit for a tab that is always shown when its section is.\n */\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n}\n\n/** Splits a section into horizontal sub-tabs rendered above the panel content. */\nexport interface SettingsSubTabsTarget {\n kind: SettingsSectionTargetKind.SUB_TABS;\n subTabs: SettingsSubTab[];\n}\n\n/**\n * What a settings section renders. Discriminated on `kind`; the `SettingsHub`\n * resolver dispatches on it to produce the panel content.\n */\nexport type SettingsSectionTarget = SettingsLeafTarget | SettingsSubTabsTarget;\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n\n// ════════════════════════════════════════════════════════════════\n// Category — the rail group\n// ════════════════════════════════════════════════════════════════\n\n/**\n * A category groups sections in the vertical rail (the `Account` / `Organization`\n * group headers in the BetterStack reference). The rail is a `<nav>` of links:\n * each category is a labelled group with a separator before it, and inside it\n * its ungrouped sections first, then its sub-category `groups` (#2329), each\n * under its own heading.\n *\n * `scope` ties the category to a primary-scope axis so the runtime can hide it\n * when the scope is unavailable — e.g. an `ORGANIZATIONS` category is hidden when\n * no organization is selected. It is derived against `AppScope`, not authored\n * per-user.\n */\n/** @wildo_source:part:start saas.frontend.settings-hub.placement */\nexport interface SettingsCategory {\n /** Category reference — app-defined, referenced by `SettingsSection.categoryRef`. */\n ref: string;\n /** Group header label (i18n ref). */\n label: string;\n /**\n * Primary scope this category belongs to. Drives rail grouping order and\n * scope-gated visibility (org categories hide when no org is selected).\n * Omit for a scope-agnostic category.\n */\n scope?: ResourcePrimaryScope;\n /** Optional icon ref for the group header. */\n icon?: string;\n /** Sort order among categories in the rail (lower = higher). */\n order?: number;\n /**\n * Sub-categories of this category's rail (#2329): People, Security & access, Integrations and the like. A placement\n * names one through `groupRef`; the rail draws each group's heading above its sections, ungrouped sections first.\n * Declared like categories, so the application arranges its own rail.\n */\n groups?: SettingsCategoryGroup[];\n}\n\n/** One sub-category of a {@link SettingsCategory}'s rail (#2329). */\nexport interface SettingsCategoryGroup {\n /** Group reference, unique within its category; named by `SettingsPlacement.groupRef`. */\n ref: string;\n /** Group heading (authored English; `settings_hub.categories.<categoryRef>.groups.<ref>.label` overrides it). */\n label: string;\n /** Sort order among the category's groups (lower = higher). */\n order?: number;\n}\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n\n// ════════════════════════════════════════════════════════════════\n// Section — one vertical tab in the rail\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.settings-hub.placement facet:layer:frontend facet:family:config facet:audience:app-developer */\n/**\n * An addressable settings DESTINATION — what a settings surface *is*, with no\n * opinion on where it appears.\n *\n * The engine ships most of them (`ENGINE_SETTINGS_DESTINATIONS`); an application\n * may declare its own in `SettingsHubConfig.destinations` — a settings surface for\n * one of its OWN resources, or a component it registers. Either way a destination\n * carries the target and the gating stack, and deliberately carries **no\n * `categoryRef`, no `order` and no `label`**: those are placement, and placement is\n * the application's decision (`SettingsPlacement`).\n *\n * The split exists because the engine shipping a PLACED hub is what made the\n * settings rail unauthorable — an application could not add, remove, reorder or\n * rename a section without the framework agreeing. Splitting destination from\n * placement lets the engine keep owning what a destination MEANS (its target,\n * its roles, its entitlement) while the application owns where it sits.\n */\nexport interface SettingsDestination {\n /** Destination reference — the `/settings/:sectionRef` URL segment and the id a placement names. */\n ref: string;\n /** What the destination renders in its content panel. */\n target: SettingsSectionTarget;\n /**\n * The destination's icon ref — what the settings rail draws beside its name, and what every shortcut into it\n * (the identity menu's Profile, a sidebar row naming a section) draws. Every engine destination declares one; a\n * placement's own `icon` overrides it.\n */\n icon?: string;\n /** Declarative runtime capability gating (same contract as launcher items). */\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n /** Feature flags required to surface this destination (plan/subscription gating). */\n requiredFeatures?: RequiredFeaturesConfig;\n /** RBAC roles required to surface this destination (OR semantics). */\n requiredRoles?: string[];\n /** Optional CoreFeature id this destination's content is ENTITLED by (soft gate — renders an upgrade prompt). */\n entitlementFeatureId?: string;\n /**\n * Engine capabilities this destination serves, ALL of which the application must enable for it to appear\n * (#2314). A section about a capability the application does not have is noise at best, and at worst a page whose\n * actions fail: agent work review without a language model, email domains without inbound email. Read from the\n * application's declared `engineCapabilities` (`AppConfiguration_Shared.enabledEngineCapabilities`), so it is the\n * same whoever is looking.\n */\n requiredEngineCapabilities?: readonly EngineCapability[];\n}\n\n/**\n * An application's explicit PLACEMENT of one destination in its settings rail.\n *\n * Authored in the application's own config. Nothing is placed implicitly: a\n * destination the application does not place does not render, which is the whole\n * point — \"we should just place things\", with no automatic inference.\n *\n * `label` is the wording INTENT and the runtime fallback. The rail renders the\n * `settings_hub.sections.<ref>.label` word when the bundle has one\n * (`tSettingsHubSection`), and this string when it does not. The companion plans\n * that key for every placed section (`collectSettingsHubLabelKeys`) and hands this\n * string to label generation as the key's purpose, so a section is worded in every\n * locale from what the application wrote here. Omitted, the fallback is the ref.\n */\nexport interface SettingsPlacement {\n /** The {@link SettingsDestination.ref} being placed — an engine destination or one of `destinations`. Refused at DEV startup when unknown. */\n destinationRef: string;\n /** Which category (rail group) this destination sits under. */\n categoryRef: string;\n /** Which of that category's `groups` it sits under (#2329). Omit to place it above the groups. Refused at DEV startup when unknown. */\n groupRef?: string;\n /** Sort order within the category, or within its group (lower = higher). */\n order?: number;\n /** Icon ref for the rail entry, overriding the destination's own `icon`. Omit to keep the destination's. */\n icon?: string;\n /** Rail label override. Omit to take `settings_hub.sections.<ref>.label`. */\n label?: string;\n}\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n\n/**\n * A settings section is one entry in the vertical rail (one `TabsTrigger`) —\n * the RESOLVED union of a {@link SettingsDestination} and the\n * {@link SettingsPlacement} that placed it.\n *\n * Produced by `resolveSettingsHubConfig()`; never authored directly. It\n * belongs to a category, addresses a target, and reuses the existing launcher\n * gating stack:\n * - `runtimeAvailability` — survives the app-shell filtering pass (capabilities).\n * - `requiredFeatures` — plan/subscription gating once resolved.\n * - `requiredRoles` — RBAC gating (e.g. org-admin-only sections).\n *\n * `ref` is the URL-addressable section id (`/settings/:sectionRef`).\n */\nexport interface SettingsSection {\n /** Section reference — app-defined; the `/settings/:sectionRef` URL segment + Tabs `value`. */\n ref: string;\n /** Which category (rail group) this section sits under. */\n categoryRef: string;\n /** Which of the category's sub-category groups it sits under, when its placement named one. */\n groupRef?: string;\n /** Rail label (i18n ref). */\n label: string;\n /** Optional icon ref for the rail entry. */\n icon?: string;\n /** Sort order within the category (lower = higher). */\n order?: number;\n /** What the section renders in its content panel. */\n target: SettingsSectionTarget;\n /** Declarative runtime capability gating (same contract as launcher items). */\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n /**\n * Feature flags required to surface this section (plan/subscription gating).\n *\n * Uses the framework-canonical {@link RequiredFeaturesConfig} contract shared\n * with views and resource operations — shorthand `string[]` (OR semantics) or\n * the full `{ features, mode: 'OR' | 'AND' }` form. `limitChecks` are not\n * evaluated for section visibility (a section is shown or hidden, never\n * \"over-limit\"); use {@link requiredRoles} / capabilities for hard gating.\n */\n requiredFeatures?: RequiredFeaturesConfig;\n /**\n * RBAC roles required to surface this section (OR semantics — the user needs\n * ANY one of these roles). Evaluated against the merged app-level + current-\n * organization role set, the same effective surface the rest of the frontend\n * gating layer resolves (see `buildFeaturePolicyRoles`). Org-management\n * sections gate on `[CORE_ORG_ROLES.ORG_OWNER, CORE_ORG_ROLES.ORG_ADMIN]`.\n */\n requiredRoles?: string[];\n /**\n * Optional CoreFeature id this section's content is ENTITLED by. Distinct from\n * {@link requiredFeatures} (a HARD hide-gate): when set, the section still\n * SURVIVES (per `runtimeAvailability`/roles) and its body is wrapped in a\n * `FeatureGate` so an OFFERED-but-not-yet-entitled feature renders the\n * policy-driven upgrade/add-on prompt (`unavailabilityPolicy`) instead of\n * vanishing. Pair with a `runtimeAvailability.requiredCapabilities` gate whose\n * capability is the plan-independent \"app offers X\" signal, so a feature the\n * app does NOT offer at all is hidden outright while an offered one prompts.\n * The engine's own SSO / SCIM / SIEM capabilities also hold while the\n * organization still has the feature configured (#3126); such a section,\n * sold by no plan, renders the kept-configuration notice alone.\n */\n entitlementFeatureId?: string;\n /** Engine capabilities the destination serves; see {@link SettingsDestination.requiredEngineCapabilities}. */\n requiredEngineCapabilities?: readonly EngineCapability[];\n}\n\n// ════════════════════════════════════════════════════════════════\n// Hub Config — the registry root\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.settings-hub.placement */\n/**\n * The AUTHORED Settings Hub registry — an application's own settings rail.\n *\n * The framework ships destinations (`ENGINE_SETTINGS_DESTINATIONS`), never a\n * placed hub. This is the application's half: which categories exist, which\n * destinations are placed where, and any destinations the application owns.\n * `wildo init` scaffolds the full engine destination list as placements so a new\n * application starts complete and edits down.\n *\n * Resolve it with `resolveSettingsHubConfig()` to get the rendered\n * {@link SettingsSection} list; the render path never reads this shape directly.\n */\nexport interface SettingsHubConfig {\n /** Rail groups, in render order (also orderable via `SettingsCategory.order`). */\n categories: SettingsCategory[];\n /**\n * Every destination this application places, and where.\n *\n * A destination that appears in no placement does not render. That is\n * deliberate: absence is how an application removes a settings section, and it\n * must not be second-guessed by a merge against a framework default.\n */\n placements: SettingsPlacement[];\n /**\n * The application's OWN destinations — settings surfaces the engine does not\n * ship, such as a list of the application's team members or a component it\n * registers. Declared here, then placed like any other destination; a\n * declared destination that no placement names does not render.\n *\n * The ref must not be an engine destination's ref. The engine keeps owning\n * what its destinations mean, so on a clash the ENGINE destination is the one\n * resolved, and the DEV startup verifier reports the clash.\n */\n destinations?: SettingsDestination[];\n /**\n * Section opened when the hub is launched without an explicit section\n * (`/settings` with no `:sectionRef`). Falls back to the first section of the\n * first category when omitted.\n */\n defaultSectionRef?: string;\n}\n\n/**\n * The RESOLVED hub — categories plus fully-resolved sections, ready to render.\n *\n * Distinct from {@link SettingsHubConfig} (what an application AUTHORS) because\n * conflating the two is what let a placed default ship from the engine. A\n * consumer that renders takes this; a consumer that configures takes the other.\n */\nexport interface ResolvedSettingsHubConfig {\n categories: SettingsCategory[];\n sections: SettingsSection[];\n defaultSectionRef?: string;\n}\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n"]}
1
+ {"version":3,"file":"settings-hub.frontend.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/settings-hub.frontend.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAMH,mEAAmE;AACnE,+DAA+D;AAC/D,mEAAmE;AAEnE,oEAAoE;AACpE;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,iEAAiE;IACjE,0DAA6B,CAAA;IAC7B,+FAA+F;IAC/F,sEAAyC,CAAA;IACzC,sFAAsF;IACtF,kEAAqC,CAAA;IACrC,0GAA0G;IAC1G,kDAAqB,CAAA;AACvB,CAAC,EATW,yBAAyB,KAAzB,yBAAyB,QASpC;AACD,kEAAkE;AAElE,mEAAmE;AACnE,6DAA6D;AAC7D,mEAAmE;AAEnE;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,gBA8GX;AA9GD,WAAY,gBAAgB;IAC1B,wGAAwG;IACxG,yCAAqB,CAAA;IACrB,qEAAqE;IACrE,6CAAyB,CAAA;IACzB,oFAAoF;IACpF,+CAA2B,CAAA;IAC3B;;;;;;;;;;;OAWG;IACH,uCAAmB,CAAA;IACnB;;;;;;;;;;;;OAYG;IACH,6DAAyC,CAAA;IACzC;;;;;;;OAOG;IACH,uFAAmE,CAAA;IACnE;;;;;;;;OAQG;IACH,qFAAiE,CAAA;IACjE;;;;;;;OAOG;IACH,yEAAqD,CAAA;IACrD;;;;;;OAMG;IACH,2DAAuC,CAAA;IACvC;;;;OAIG;IACH,qDAAiC,CAAA;IACjC;;;;OAIG;IACH,6EAAyD,CAAA;IACzD;;;;;;OAMG;IACH,iEAA6C,CAAA;IAC7C;;;;;OAKG;IACH,qHAAiG,CAAA;IACjG;;;;;OAKG;IACH,uEAAmD,CAAA;IACnD;;;;OAIG;IACH,iFAA6D,CAAA;AAC/D,CAAC,EA9GW,gBAAgB,KAAhB,gBAAgB,QA8G3B;AA2VD,kEAAkE","sourcesContent":["/**\n * Settings Hub — Declarative Section Registry\n *\n * The Settings Hub is the framework's single point of configuration: one overlay\n * surface that consolidates every settings destination (account, security,\n * appearance, organization, members, billing, …) behind a vertical `Tabs` rail\n * grouped by category. Many entry points (user dropdown, sidebar, command menu)\n * all converge on this one hub; links differ only by which section they pre-open.\n *\n * This file owns the **config-time** registry contract. It is declaration-first\n * and mirrors `launcher-items.frontend.schemas.ts`:\n * - `SettingsSectionTarget` is an interface-based discriminated union on `kind`\n * (exactly like `LauncherItemRef`), because section targets are config-time\n * descriptors resolved by the runtime — not Zod-validated wire payloads.\n * - The engine ships DESTINATIONS (`ENGINE_SETTINGS_DESTINATIONS`) and no\n * arrangement; an application authors its own `SettingsHubConfig` — its\n * categories, its placements, and any destinations of its own.\n *\n * Runtime concerns live elsewhere:\n * - `NavigationContentType.SETTINGS_HUB` (navigation.schemas.ts) — what renders\n * in the overlay zone.\n * - `SettingsHub` component (components/settings/) — resolves a section's target\n * to a rendered panel.\n *\n * @see launcher-items.frontend.schemas.ts — the sibling launcher registry this mirrors\n */\n\nimport { ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport type { EngineCapability, RequiredFeaturesConfig } from '@wildo-ai/saas-models';\nimport type { LauncherRuntimeAvailabilityConfig } from './launcher-items.frontend.schemas';\n\n// ════════════════════════════════════════════════════════════════\n// Section Target Kind — discriminant for SettingsSectionTarget\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.settings-hub.placement */\n/**\n * What a settings section renders in its content panel.\n *\n * Discriminant for the `SettingsSectionTarget` union. The default for\n * data-backed settings is `RESOURCE_OPERATION` (reuse the auto-rendered\n * resource surface); `ENGINE_PANEL` is reserved for the few sections whose\n * bespoke layout earns it (Security, Appearance).\n */\nexport enum SettingsSectionTargetKind {\n /** A framework-owned bespoke panel (Security, Appearance, …). */\n ENGINE_PANEL = 'engine_panel',\n /** An auto-rendered resource-operation surface (members, API tokens, billing, preferences). */\n RESOURCE_OPERATION = 'resource_operation',\n /** An app-registered custom React component (resolved via the component registry). */\n CUSTOM_COMPONENT = 'custom_component',\n /** A section that itself splits into horizontal sub-tabs (e.g. Teams → Members / Roles & Permissions). */\n SUB_TABS = 'sub_tabs',\n}\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n\n// ════════════════════════════════════════════════════════════════\n// Engine Panel Ref — framework-owned bespoke settings panels\n// ════════════════════════════════════════════════════════════════\n\n/**\n * Framework-provided settings panels with bespoke (non-CRUD) layout.\n *\n * Closed enum — only framework panels belong here. Most settings sections should\n * be `RESOURCE_OPERATION` targets instead; a panel earns a slot here only when a\n * standard resource surface cannot express it (multi-factor enrollment flows,\n * theme/dark-mode toggles, …).\n *\n * The runtime maps each ref to a registered panel component in the\n * `SettingsHub` resolver.\n */\nexport enum SettingsPanelRef {\n /** Password, MFA enrollment, passkeys, identity links (wraps the former `AppPage_SecuritySettings`). */\n SECURITY = 'security',\n /** Theme, dark-mode, density and other look-and-feel preferences. */\n APPEARANCE = 'appearance',\n /** The caller's own pending org invitations — accept/reject in-app (Approach P). */\n INVITATIONS = 'invitations',\n /**\n * The billing home: subscription status, plan catalog + checkout, usage,\n * invoices and the provider portal link — composed from the BillingContext\n * aggregated state (`GET_STATE`), NOT from per-resource LIST surfaces.\n *\n * Bespoke on purpose: the billing child resources (subscriptions, invoice\n * refs, usage records) are routed UNDER the billing account\n * (`REQUIRES_CONTEXT`), so a generic org-scoped `RESOURCE_OPERATION` panel\n * cannot build their URLs. The aggregated billing state is org-addressable\n * and auto-creates the account, which makes it the correct settings-surface\n * data source.\n */\n BILLING = 'billing',\n /**\n * Where a person CONNECTS one of their own third-party accounts.\n *\n * Bespoke because connecting is not a row somebody creates: it is a flow that leaves the\n * application, obtains consent at a vendor, and returns with a grant nobody typed. The generic\n * resource surface can list, inspect and delete the resulting credentials perfectly — it simply has\n * no mechanism for an ACTION of that shape, which is why the whole outbound-authorization lane had\n * no surface that could begin it until this existed.\n *\n * Since #2319 it is also the one list of what IS connected: every held connection with its acts, then\n * every provider nothing is held for. A separate credential list beside it made a person match the\n * same rows up by name.\n */\n CONNECTED_ACCOUNTS = 'connected-accounts',\n /**\n * The same act at the TENANT's scope: connecting an account the whole organization acts as.\n *\n * A distinct ref rather than a parameterised one, because a settings destination resolves a ref to\n * a panel and carries no arguments — and because the two must never be reachable from each other's\n * screen. The component behind them IS shared: the act is identical, and duplicating it would\n * guarantee the two drift. What is never shared is the data.\n */\n ORGANIZATION_CONNECTED_ACCOUNTS = 'organization-connected-accounts',\n /**\n * The same act for the APPLICATION's own account (#3579): the vendor account the deployment acts as, connected,\n * shown and disconnected by a super-administrator.\n *\n * A third ref for the organization ref's reason, and the same component. What differs at this scope is where each\n * act goes: the application's rows have no credential resource, so the listing reads `?ownerScope=application`, the\n * disconnect is `DELETE /connections/application/{connectionRef}`, and the per-row acts that need that resource\n * (turn off or on, a row's description, removing one slot) are not offered.\n */\n APPLICATION_CONNECTED_ACCOUNTS = 'application-connected-accounts',\n /**\n * How often the organization's deciders override its agents (#1599), per agent, tool, case or reviewer, over a\n * window: the counts behind the rate, the decisions nobody took counted apart, and a group where nothing was decided\n * shown as that rather than as 0 %.\n *\n * Bespoke because the rate is not a row: it is a summary the engine computes from the decision records on request\n * (`POST /agent-work/override-rate`), and no resource surface can render a computed aggregate.\n */\n AGENT_WORK_OVERRIDE_RATE = 'agent-work-override-rate',\n /**\n * An organization's autonomous agents (#2528): when each runs, its latest runs and its latest refusals with their\n * reason in words.\n *\n * Bespoke because the answer is one read across two stores: the runs are execution rows, and a turn that did not run\n * left no row at all, only an audit record of its refusal (`GET /flows-actors/autonomous-agents`).\n */\n AUTONOMOUS_AGENTS = 'autonomous-agents',\n /**\n * What an organization's declared flows and actor systems did (#3990): the runs, newest first, and each run's history,\n * tasks and flow steps. Bespoke because the actor plane's rows have no resource route; the page reads them through\n * `POST /flows-actors/agent-activity` and `/agent-activity/run`.\n */\n AGENT_ACTIVITY = 'agent-activity',\n /**\n * The same page across EVERY organization (#3990), each run naming the organization it worked for: an application-wide\n * read under the application's audit read policy. A distinct ref for the connected-accounts reason: a destination\n * resolves a ref to a panel and carries no arguments, and the component behind both is shared.\n */\n APPLICATION_AGENT_ACTIVITY = 'application-agent-activity',\n /**\n * What model calls cost per case, organization, agent or model over a window, in money (#2528): the Breakdown tab of\n * Administration > Model costs, beside the monthly records.\n *\n * Bespoke because the breakdown is not a row: it is a summary the engine computes on request from the call records\n * (`POST /model-cost/summary`), with the calls it could not attribute or price counted apart.\n */\n MODEL_COST_BREAKDOWN = 'model-cost-breakdown',\n /**\n * What a REPRESENTING organization's own model calls cost (#2618): the same breakdown as\n * {@link SettingsPanelRef.MODEL_COST_BREAKDOWN}, for the current organization's administrator, holding only its own work\n * (its calls through the relationships it represents in, and its own tenant's own calls). The Model cost tab of the\n * representing side's relationships section.\n */\n REPRESENTING_ORGANIZATION_MODEL_COST_BREAKDOWN = 'representing-organization-model-cost-breakdown',\n /**\n * What a REPRESENTING organization's own people did in the organizations it represents (#2874): the rows their acts\n * wrote in those organizations' trails, as far as each discloses them. The Activity tab of the representing side's\n * relationships section. Bespoke because the rows live in other tenants and only `POST /representative-activity`\n * reaches them.\n */\n REPRESENTATIVE_ACTIVITY = 'representative-activity',\n /**\n * Running an evaluation export (#2327): one agent, a window and where the dataset goes, then the dataset downloaded.\n * Bespoke because `POST /agent-work/evaluation-exports` answers with the dataset itself, and its record is the export\n * ledger the next tab lists.\n */\n AGENT_WORK_EVALUATION_EXPORT = 'agent-work-evaluation-export',\n}\n\n// ════════════════════════════════════════════════════════════════\n// Section Target — discriminated union on `kind`\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.settings-hub.placement */\n/** Renders a framework-owned bespoke panel. */\nexport interface SettingsEnginePanelTarget {\n kind: SettingsSectionTargetKind.ENGINE_PANEL;\n panelRef: SettingsPanelRef;\n}\n\n/**\n * Renders an auto-generated resource-operation surface inside the section panel.\n * Resolved against the resource registry exactly like a launcher\n * `RESOURCE_OPERATION` target.\n */\nexport interface SettingsResourceOperationTarget {\n kind: SettingsSectionTargetKind.RESOURCE_OPERATION;\n resourceType: string;\n operation: string;\n operationVariant?: string;\n}\n\n/** Renders an app-registered custom React component (resolved by `componentRef`). */\nexport interface SettingsCustomComponentTarget {\n kind: SettingsSectionTargetKind.CUSTOM_COMPONENT;\n componentRef: string;\n}\n\n/**\n * Leaf targets renderable directly in a panel. Sub-tabs may only point at leaf\n * targets — sub-tabs cannot nest further sub-tabs (one level of in-section\n * tabbing, matching the BetterStack reference).\n */\nexport type SettingsLeafTarget =\n | SettingsEnginePanelTarget\n | SettingsResourceOperationTarget\n | SettingsCustomComponentTarget;\n\n/**\n * One horizontal sub-tab within a section (e.g. the \"Members\" / \"Roles &\n * Permissions\" tabs inside a Teams section).\n */\nexport interface SettingsSubTab {\n /** Sub-tab reference — app-defined, used for i18n + the `value` of the inner Tabs. */\n ref: string;\n /** Display label (i18n ref). */\n label: string;\n /** Optional icon ref for the sub-tab trigger. */\n icon?: string;\n /** What this sub-tab renders. Sub-tabs hold leaf targets only. */\n target: SettingsLeafTarget;\n /**\n * Declarative runtime capability gating for this one tab, the same contract as the section's own. A tab\n * whose capabilities are off is left out of the section, and a section left with no tab is left out of the rail.\n *\n * For a section whose tabs are not all meaningful in every state: the SCIM section shows its tokens wherever the\n * organization holds one it can only revoke, while its provisioning tab needs a type a directory may provision.\n * Omit for a tab that is always shown when its section is.\n */\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n}\n\n/** Splits a section into horizontal sub-tabs rendered above the panel content. */\nexport interface SettingsSubTabsTarget {\n kind: SettingsSectionTargetKind.SUB_TABS;\n subTabs: SettingsSubTab[];\n}\n\n/**\n * What a settings section renders. Discriminated on `kind`; the `SettingsHub`\n * resolver dispatches on it to produce the panel content.\n */\nexport type SettingsSectionTarget = SettingsLeafTarget | SettingsSubTabsTarget;\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n\n// ════════════════════════════════════════════════════════════════\n// Category — the rail group\n// ════════════════════════════════════════════════════════════════\n\n/**\n * A category groups sections in the vertical rail (the `Account` / `Organization`\n * group headers in the BetterStack reference). The rail is a `<nav>` of links:\n * each category is a labelled group with a separator before it, and inside it\n * its ungrouped sections first, then its sub-category `groups` (#2329), each\n * under its own heading.\n *\n * `scope` ties the category to a primary-scope axis so the runtime can hide it\n * when the scope is unavailable — e.g. an `ORGANIZATIONS` category is hidden when\n * no organization is selected. It is derived against `AppScope`, not authored\n * per-user.\n */\n/** @wildo_source:part:start saas.frontend.settings-hub.placement */\nexport interface SettingsCategory {\n /** Category reference — app-defined, referenced by `SettingsSection.categoryRef`. */\n ref: string;\n /** Group header label (i18n ref). */\n label: string;\n /**\n * Primary scope this category belongs to. Drives rail grouping order and\n * scope-gated visibility (org categories hide when no org is selected).\n * Omit for a scope-agnostic category.\n */\n scope?: ResourcePrimaryScope;\n /** Optional icon ref for the group header. */\n icon?: string;\n /** Sort order among categories in the rail (lower = higher). */\n order?: number;\n /**\n * Sub-categories of this category's rail: People, Security & access, Integrations and the like. A placement\n * names one through `groupRef`; the rail draws each group's heading above its sections, ungrouped sections first.\n * Declared like categories, so the application arranges its own rail.\n */\n groups?: SettingsCategoryGroup[];\n}\n\n/** One sub-category of a {@link SettingsCategory}'s rail. */\nexport interface SettingsCategoryGroup {\n /** Group reference, unique within its category; named by `SettingsPlacement.groupRef`. */\n ref: string;\n /** Group heading (authored English; `settings_hub.categories.<categoryRef>.groups.<ref>.label` overrides it). */\n label: string;\n /** Sort order among the category's groups (lower = higher). */\n order?: number;\n}\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n\n// ════════════════════════════════════════════════════════════════\n// Section — one vertical tab in the rail\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.settings-hub.placement facet:layer:frontend facet:family:config facet:audience:app-developer */\n/**\n * An addressable settings DESTINATION — what a settings surface *is*, with no\n * opinion on where it appears.\n *\n * The engine ships most of them (`ENGINE_SETTINGS_DESTINATIONS`); an application\n * may declare its own in `SettingsHubConfig.destinations` — a settings surface for\n * one of its OWN resources, or a component it registers. Either way a destination\n * carries the target and the gating stack, and deliberately carries **no\n * `categoryRef`, no `order` and no `label`**: those are placement, and placement is\n * the application's decision (`SettingsPlacement`).\n *\n * The split exists because the engine shipping a PLACED hub is what made the\n * settings rail unauthorable — an application could not add, remove, reorder or\n * rename a section without the framework agreeing. Splitting destination from\n * placement lets the engine keep owning what a destination MEANS (its target,\n * its roles, its entitlement) while the application owns where it sits.\n */\nexport interface SettingsDestination {\n /** Destination reference — the `/settings/:sectionRef` URL segment and the id a placement names. */\n ref: string;\n /** What the destination renders in its content panel. */\n target: SettingsSectionTarget;\n /**\n * The destination's icon ref — what the settings rail draws beside its name, and what every shortcut into it\n * (the identity menu's Profile, a sidebar row naming a section) draws. Every engine destination declares one; a\n * placement's own `icon` overrides it.\n */\n icon?: string;\n /** Declarative runtime capability gating (same contract as launcher items). */\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n /** Feature flags required to surface this destination (plan/subscription gating). */\n requiredFeatures?: RequiredFeaturesConfig;\n /** RBAC roles required to surface this destination (OR semantics). */\n requiredRoles?: string[];\n /** Optional CoreFeature id this destination's content is ENTITLED by (soft gate — renders an upgrade prompt). */\n entitlementFeatureId?: string;\n /** See {@link SettingsSection.entitlementWithholdsContent}. */\n entitlementWithholdsContent?: boolean;\n /**\n * Engine capabilities this destination serves, ALL of which the application must enable for it to appear.\n * A section about a capability the application does not have is noise at best, and at worst a page whose\n * actions fail: agent work review without a language model, email domains without inbound email. Read from the\n * application's declared `engineCapabilities` (`AppConfiguration_Shared.enabledEngineCapabilities`), so it is the\n * same whoever is looking.\n */\n requiredEngineCapabilities?: readonly EngineCapability[];\n}\n\n/**\n * An application's explicit PLACEMENT of one destination in its settings rail.\n *\n * Authored in the application's own config. Nothing is placed implicitly: a\n * destination the application does not place does not render, which is the whole\n * point — \"we should just place things\", with no automatic inference.\n *\n * `label` is the wording INTENT and the runtime fallback. The rail renders the\n * `settings_hub.sections.<ref>.label` word when the bundle has one\n * (`tSettingsHubSection`), and this string when it does not. The companion plans\n * that key for every placed section (`collectSettingsHubLabelKeys`) and hands this\n * string to label generation as the key's purpose, so a section is worded in every\n * locale from what the application wrote here. Omitted, the fallback is the ref.\n */\nexport interface SettingsPlacement {\n /** The {@link SettingsDestination.ref} being placed — an engine destination or one of `destinations`. Refused at DEV startup when unknown. */\n destinationRef: string;\n /** Which category (rail group) this destination sits under. */\n categoryRef: string;\n /** Which of that category's `groups` it sits under. Omit to place it above the groups. Refused at DEV startup when unknown. */\n groupRef?: string;\n /** Sort order within the category, or within its group (lower = higher). */\n order?: number;\n /** Icon ref for the rail entry, overriding the destination's own `icon`. Omit to keep the destination's. */\n icon?: string;\n /** Rail label override. Omit to take `settings_hub.sections.<ref>.label`. */\n label?: string;\n}\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n\n/**\n * A settings section is one entry in the vertical rail (one `TabsTrigger`) —\n * the RESOLVED union of a {@link SettingsDestination} and the\n * {@link SettingsPlacement} that placed it.\n *\n * Produced by `resolveSettingsHubConfig()`; never authored directly. It\n * belongs to a category, addresses a target, and reuses the existing launcher\n * gating stack:\n * - `runtimeAvailability` — survives the app-shell filtering pass (capabilities).\n * - `requiredFeatures` — plan/subscription gating once resolved.\n * - `requiredRoles` — RBAC gating (e.g. org-admin-only sections).\n *\n * `ref` is the URL-addressable section id (`/settings/:sectionRef`).\n */\nexport interface SettingsSection {\n /** Section reference — app-defined; the `/settings/:sectionRef` URL segment + Tabs `value`. */\n ref: string;\n /** Which category (rail group) this section sits under. */\n categoryRef: string;\n /** Which of the category's sub-category groups it sits under, when its placement named one. */\n groupRef?: string;\n /** Rail label (i18n ref). */\n label: string;\n /** Optional icon ref for the rail entry. */\n icon?: string;\n /** Sort order within the category (lower = higher). */\n order?: number;\n /** What the section renders in its content panel. */\n target: SettingsSectionTarget;\n /** Declarative runtime capability gating (same contract as launcher items). */\n runtimeAvailability?: LauncherRuntimeAvailabilityConfig;\n /**\n * Feature flags required to surface this section (plan/subscription gating).\n *\n * Uses the framework-canonical {@link RequiredFeaturesConfig} contract shared\n * with views and resource operations — shorthand `string[]` (OR semantics) or\n * the full `{ features, mode: 'OR' | 'AND' }` form. `limitChecks` are not\n * evaluated for section visibility (a section is shown or hidden, never\n * \"over-limit\"); use {@link requiredRoles} / capabilities for hard gating.\n */\n requiredFeatures?: RequiredFeaturesConfig;\n /**\n * RBAC roles required to surface this section (OR semantics — the user needs\n * ANY one of these roles). Evaluated against the merged app-level + current-\n * organization role set, the same effective surface the rest of the frontend\n * gating layer resolves (see `buildFeaturePolicyRoles`). Org-management\n * sections gate on `[CORE_ORG_ROLES.ORG_OWNER, CORE_ORG_ROLES.ORG_ADMIN]`.\n */\n requiredRoles?: string[];\n /**\n * Optional CoreFeature id this section's content is ENTITLED by. Distinct from\n * {@link requiredFeatures} (a HARD hide-gate): when set, the section still\n * SURVIVES (per `runtimeAvailability`/roles) and its body is wrapped in a\n * `FeatureGate` so an OFFERED-but-not-yet-entitled feature renders the\n * policy-driven upgrade/add-on prompt (`unavailabilityPolicy`) instead of\n * vanishing. Pair with a `runtimeAvailability.requiredCapabilities` gate whose\n * capability is the plan-independent \"app offers X\" signal, so a feature the\n * app does NOT offer at all is hidden outright while an offered one prompts.\n * The engine's own SSO / SCIM / SIEM capabilities also hold while the\n * organization still has the feature configured (#3126); such a section,\n * sold by no plan, renders the kept-configuration notice alone.\n */\n entitlementFeatureId?: string;\n /**\n * Whether the feature named by {@link entitlementFeatureId} sells the section's CONTENT itself, rather than a\n * configuration the section holds. Reading the organization's audit log is the example: there is nothing configured\n * to keep, and the content is exactly what the backend refuses without the feature. When true, an organization that\n * is not entitled sees the feature's own prompt (`unavailabilityPolicy`) IN PLACE of the content, with no\n * kept-configuration notice; when absent, the section keeps the notice-and-content shape a configuration section needs\n * so that removing access stays possible under a lapse.\n */\n entitlementWithholdsContent?: boolean;\n /** Engine capabilities the destination serves; see {@link SettingsDestination.requiredEngineCapabilities}. */\n requiredEngineCapabilities?: readonly EngineCapability[];\n}\n\n// ════════════════════════════════════════════════════════════════\n// Hub Config — the registry root\n// ════════════════════════════════════════════════════════════════\n\n/** @wildo_source:part:start saas.frontend.settings-hub.placement */\n/**\n * The AUTHORED Settings Hub registry — an application's own settings rail.\n *\n * The framework ships destinations (`ENGINE_SETTINGS_DESTINATIONS`), never a\n * placed hub. This is the application's half: which categories exist, which\n * destinations are placed where, and any destinations the application owns.\n * `wildo init` scaffolds the full engine destination list as placements so a new\n * application starts complete and edits down.\n *\n * Resolve it with `resolveSettingsHubConfig()` to get the rendered\n * {@link SettingsSection} list; the render path never reads this shape directly.\n */\nexport interface SettingsHubConfig {\n /** Rail groups, in render order (also orderable via `SettingsCategory.order`). */\n categories: SettingsCategory[];\n /**\n * Every destination this application places, and where.\n *\n * A destination that appears in no placement does not render. That is\n * deliberate: absence is how an application removes a settings section, and it\n * must not be second-guessed by a merge against a framework default.\n */\n placements: SettingsPlacement[];\n /**\n * The application's OWN destinations — settings surfaces the engine does not\n * ship, such as a list of the application's team members or a component it\n * registers. Declared here, then placed like any other destination; a\n * declared destination that no placement names does not render.\n *\n * The ref must not be an engine destination's ref. The engine keeps owning\n * what its destinations mean, so on a clash the ENGINE destination is the one\n * resolved, and the DEV startup verifier reports the clash.\n */\n destinations?: SettingsDestination[];\n /**\n * Section opened when the hub is launched without an explicit section\n * (`/settings` with no `:sectionRef`). Falls back to the first section of the\n * first category when omitted.\n */\n defaultSectionRef?: string;\n}\n\n/**\n * The RESOLVED hub — categories plus fully-resolved sections, ready to render.\n *\n * Distinct from {@link SettingsHubConfig} (what an application AUTHORS) because\n * conflating the two is what let a placed default ship from the engine. A\n * consumer that renders takes this; a consumer that configures takes the other.\n */\nexport interface ResolvedSettingsHubConfig {\n categories: SettingsCategory[];\n sections: SettingsSection[];\n defaultSectionRef?: string;\n}\n/** @wildo_source:part:end saas.frontend.settings-hub.placement */\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useSettingsHubConfig.d.ts","sourceRoot":"","sources":["../../../../src/core/config/useSettingsHubConfig.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EAElB,MAAM,iCAAiC,CAAC;AAQzC;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IACzD,uEAAuE;IACvE,QAAQ,CAAC,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACzD;;;OAGG;IACH,QAAQ,CAAC,+BAA+B,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5D,+FAA+F;IAC/F,QAAQ,CAAC,mCAAmC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjE;AAED,wBAAgB,iCAAiC,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,0BAA0B,CAkBrH;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,yBAAyB,CA8C3G;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,MAAM,EAAE,CAQ5F;AAED,wBAAgB,oBAAoB,IAAI,yBAAyB,CAShE"}
1
+ {"version":3,"file":"useSettingsHubConfig.d.ts","sourceRoot":"","sources":["../../../../src/core/config/useSettingsHubConfig.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EAElB,MAAM,iCAAiC,CAAC;AAQzC;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IACzD,uEAAuE;IACvE,QAAQ,CAAC,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACzD;;;OAGG;IACH,QAAQ,CAAC,+BAA+B,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5D,+FAA+F;IAC/F,QAAQ,CAAC,mCAAmC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjE;AAED,wBAAgB,iCAAiC,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,0BAA0B,CAkBrH;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,yBAAyB,CA+C3G;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GAAG,MAAM,EAAE,CAQ5F;AAED,wBAAgB,oBAAoB,IAAI,yBAAyB,CAShE"}
@@ -89,6 +89,7 @@ export function resolveSettingsHubConfig(authored) {
89
89
  requiredFeatures: destination.requiredFeatures,
90
90
  requiredRoles: destination.requiredRoles,
91
91
  entitlementFeatureId: destination.entitlementFeatureId,
92
+ entitlementWithholdsContent: destination.entitlementWithholdsContent,
92
93
  requiredEngineCapabilities: destination.requiredEngineCapabilities,
93
94
  });
94
95
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useSettingsHubConfig.js","sourceRoot":"","sources":["../../../../src/core/config/useSettingsHubConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAO9E,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAE1D,sFAAsF;AACtF,MAAM,0BAA0B,GAA6C,IAAI,GAAG,CAClF,4BAA4B,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,CAChF,CAAC;AAuBF,MAAM,UAAU,iCAAiC,CAAC,QAAuC;IACvF,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,0BAA0B,CAAC,CAAC;IAClD,MAAM,0BAA0B,GAAG,IAAI,GAAG,EAAU,CAAC;IACrD,MAAM,+BAA+B,GAAa,EAAE,CAAC;IACrD,MAAM,mCAAmC,GAAa,EAAE,CAAC;IACzD,KAAK,MAAM,WAAW,IAAI,QAAQ,EAAE,YAAY,IAAI,EAAE,EAAE,CAAC;QACvD,IAAI,0BAA0B,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;YACpD,+BAA+B,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACtD,SAAS;QACX,CAAC;QACD,IAAI,0BAA0B,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;YACpD,mCAAmC,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YAC1D,SAAS;QACX,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QACxC,0BAA0B,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,mCAAmC,EAAE,CAAC;AACrH,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,wBAAwB,CAAC,QAAuC;IAC9E,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,OAAO,GAAG,iCAAiC,CAAC,QAAQ,CAAC,CAAC;IAC5D,MAAM,QAAQ,GAAsB,EAAE,CAAC;IACvC,KAAK,MAAM,SAAS,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;QAC5C,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAChE,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,SAAS;QACX,CAAC;QACD,QAAQ,CAAC,IAAI,CAAC;YACZ,GAAG,EAAE,WAAW,CAAC,GAAG;YACpB,WAAW,EAAE,SAAS,CAAC,WAAW;YAClC,GAAG,CAAC,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC;YAC7E,4EAA4E;YAC5E,gEAAgE;YAChE,EAAE;YACF,iEAAiE;YACjE,sEAAsE;YACtE,yEAAyE;YACzE,uEAAuE;YACvE,wEAAwE;YACxE,mEAAmE;YACnE,oEAAoE;YACpE,iEAAiE;YACjE,iBAAiB;YACjB,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,WAAW,CAAC,GAAG;YACzC,oGAAoG;YACpG,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,WAAW,CAAC,IAAI;YACxC,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,mBAAmB,EAAE,WAAW,CAAC,mBAAmB;YACpD,gBAAgB,EAAE,WAAW,CAAC,gBAAgB;YAC9C,aAAa,EAAE,WAAW,CAAC,aAAa;YACxC,oBAAoB,EAAE,WAAW,CAAC,oBAAoB;YACtD,0BAA0B,EAAE,WAAW,CAAC,0BAA0B;SACnE,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,QAAQ;QACR,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;KAC9C,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,QAAuC;IAChF,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,OAAO,GAAG,iCAAiC,CAAC,QAAQ,CAAC,CAAC;IAC5D,OAAO,QAAQ,CAAC,UAAU;SACvB,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC;SAC1C,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,CAAC;IAChC,yEAAyE;IACzE,2EAA2E;IAC3E,mEAAmE;IACnE,yEAAyE;IACzE,wEAAwE;IACxE,2DAA2D;IAC3D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;AAC7E,CAAC","sourcesContent":["/**\n * Resolves an application's authored Settings Hub config into the rendered shape.\n *\n * Resolution is the join between the two halves of the placement split: the\n * destination catalog (what a settings surface IS — the engine's\n * `ENGINE_SETTINGS_DESTINATIONS` plus the application's own `destinations`) and\n * the application's placements (where each one sits). Neither half renders alone.\n *\n * There is deliberately **no framework default and no merge**. An earlier\n * revision returned `DEFAULT_SETTINGS_HUB_CONFIG`, a fully placed hub the engine\n * owned, and that is precisely why an application could not remove or reorder a\n * settings section: the render path read the framework's arrangement, so an\n * application's absence of an arrangement was indistinguishable from agreement\n * with it. Here, an unplaced destination does not render — absence is how a\n * section is removed, and nothing reasserts it.\n */\nimport { useMemo } from 'react';\nimport { ENGINE_SETTINGS_DESTINATIONS } from './engine-settings-destinations';\nimport type {\n ResolvedSettingsHubConfig,\n SettingsDestination,\n SettingsHubConfig,\n SettingsSection,\n} from './settings-hub.frontend.schemas';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\n\n/** Engine catalog lookup by ref, built once — resolution runs on every hub render. */\nconst ENGINE_DESTINATIONS_BY_REF: ReadonlyMap<string, SettingsDestination> = new Map(\n ENGINE_SETTINGS_DESTINATIONS.map(destination => [destination.ref, destination]),\n);\n\n/**\n * Every destination an application can place: the engine's, then its own.\n *\n * One function, because four readers must agree on it — resolution, the unknown-ref\n * check, the DEV verifier, and the companion's shell introspection, which reports an\n * application destination by what it renders. A second copy of the join in any of\n * them would let a destination render that another reader calls unknown.\n */\nexport interface SettingsDestinationCatalog {\n readonly byRef: ReadonlyMap<string, SettingsDestination>;\n /** The refs that resolved to one of the APPLICATION's destinations. */\n readonly applicationDestinationRefs: ReadonlySet<string>;\n /**\n * Application destinations whose ref is an engine destination's. The engine one is\n * resolved: an application cannot redefine what an engine destination means.\n */\n readonly refsShadowingEngineDestinations: readonly string[];\n /** Application destination refs declared more than once; the first declaration is resolved. */\n readonly duplicateApplicationDestinationRefs: readonly string[];\n}\n\nexport function resolveSettingsDestinationCatalog(authored: SettingsHubConfig | undefined): SettingsDestinationCatalog {\n const byRef = new Map(ENGINE_DESTINATIONS_BY_REF);\n const applicationDestinationRefs = new Set<string>();\n const refsShadowingEngineDestinations: string[] = [];\n const duplicateApplicationDestinationRefs: string[] = [];\n for (const destination of authored?.destinations ?? []) {\n if (ENGINE_DESTINATIONS_BY_REF.has(destination.ref)) {\n refsShadowingEngineDestinations.push(destination.ref);\n continue;\n }\n if (applicationDestinationRefs.has(destination.ref)) {\n duplicateApplicationDestinationRefs.push(destination.ref);\n continue;\n }\n byRef.set(destination.ref, destination);\n applicationDestinationRefs.add(destination.ref);\n }\n return { byRef, applicationDestinationRefs, refsShadowingEngineDestinations, duplicateApplicationDestinationRefs };\n}\n\n/**\n * Pure (React-free) resolution — the single source of truth shared by\n * {@link useSettingsHubConfig} (render path) and the DEV-startup\n * `verifySettingsHubContent` pass.\n *\n * Keeping resolution here, not inlined in the hook, is what lets the verifier\n * check the EXACT config the hub renders. Do not inline it into either caller:\n * the moment the two derive their config separately, the verifier starts\n * attesting to something nobody renders.\n *\n * A placement naming a ref absent from the catalog is DROPPED here and reported\n * by the verifier rather than throwing. Resolution runs on the render path, and\n * a hard throw there would take down the whole hub over one bad ref; the DEV\n * startup pass is where an author is present to read the diagnostic.\n */\nexport function resolveSettingsHubConfig(authored: SettingsHubConfig | undefined): ResolvedSettingsHubConfig {\n if (authored === undefined) {\n return { categories: [], sections: [] };\n }\n\n const catalog = resolveSettingsDestinationCatalog(authored);\n const sections: SettingsSection[] = [];\n for (const placement of authored.placements) {\n const destination = catalog.byRef.get(placement.destinationRef);\n if (destination === undefined) {\n continue;\n }\n sections.push({\n ref: destination.ref,\n categoryRef: placement.categoryRef,\n ...(placement.groupRef === undefined ? {} : { groupRef: placement.groupRef }),\n // The authored label, falling back to the ref so an unlabelled placement is\n // visibly wrong in the rail rather than rendering an empty tab.\n //\n // It is NOT superseded by label generation, and deleting it is a\n // regression rather than a tidy-up. `tSettingsHubSection(ref, label)`\n // takes this as the fallback when no key exists — and, more importantly,\n // the companion feeds this exact string to the labellize prompt as the\n // key's `purpose`. Generating without it made the model invent from the\n // ref: \"User provisioning\" became \"SCIM\", \"Audit streaming\" became\n // \"SIEM\", and a generated key WINS over the fallback, so the rail's\n // wording changed. The authored string is the intent; generation\n // translates it.\n label: placement.label ?? destination.ref,\n // The placement's icon overrides the destination's, as its label overrides the destination's words.\n icon: placement.icon ?? destination.icon,\n order: placement.order,\n target: destination.target,\n runtimeAvailability: destination.runtimeAvailability,\n requiredFeatures: destination.requiredFeatures,\n requiredRoles: destination.requiredRoles,\n entitlementFeatureId: destination.entitlementFeatureId,\n requiredEngineCapabilities: destination.requiredEngineCapabilities,\n });\n }\n\n return {\n categories: authored.categories,\n sections,\n defaultSectionRef: authored.defaultSectionRef,\n };\n}\n\n/**\n * Every destination ref an authored config places that neither the engine nor the\n * application declares. Reported by `verifySettingsHubContent`; see the note on\n * {@link resolveSettingsHubConfig} for why resolution drops rather than throws.\n */\nexport function findUnknownDestinationRefs(authored: SettingsHubConfig | undefined): string[] {\n if (authored === undefined) {\n return [];\n }\n const catalog = resolveSettingsDestinationCatalog(authored);\n return authored.placements\n .map(placement => placement.destinationRef)\n .filter(ref => !catalog.byRef.has(ref));\n}\n\nexport function useSettingsHubConfig(): ResolvedSettingsHubConfig {\n const { settingsHub } = useUI();\n // Memoised on the authored config, NOT recomputed per render. Resolution\n // builds a fresh object graph every call, so an unmemoised return made the\n // hub's config a new identity on every render — and the hub keys a\n // `useEffect` on that identity to follow URL-driven section changes. The\n // effect therefore fired after every render and re-asserted the default\n // section, which silently undid the user's own rail click.\n return useMemo(() => resolveSettingsHubConfig(settingsHub), [settingsHub]);\n}\n"]}
1
+ {"version":3,"file":"useSettingsHubConfig.js","sourceRoot":"","sources":["../../../../src/core/config/useSettingsHubConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAO9E,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAE1D,sFAAsF;AACtF,MAAM,0BAA0B,GAA6C,IAAI,GAAG,CAClF,4BAA4B,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,CAChF,CAAC;AAuBF,MAAM,UAAU,iCAAiC,CAAC,QAAuC;IACvF,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,0BAA0B,CAAC,CAAC;IAClD,MAAM,0BAA0B,GAAG,IAAI,GAAG,EAAU,CAAC;IACrD,MAAM,+BAA+B,GAAa,EAAE,CAAC;IACrD,MAAM,mCAAmC,GAAa,EAAE,CAAC;IACzD,KAAK,MAAM,WAAW,IAAI,QAAQ,EAAE,YAAY,IAAI,EAAE,EAAE,CAAC;QACvD,IAAI,0BAA0B,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;YACpD,+BAA+B,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACtD,SAAS;QACX,CAAC;QACD,IAAI,0BAA0B,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;YACpD,mCAAmC,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YAC1D,SAAS;QACX,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QACxC,0BAA0B,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,mCAAmC,EAAE,CAAC;AACrH,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,wBAAwB,CAAC,QAAuC;IAC9E,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,OAAO,GAAG,iCAAiC,CAAC,QAAQ,CAAC,CAAC;IAC5D,MAAM,QAAQ,GAAsB,EAAE,CAAC;IACvC,KAAK,MAAM,SAAS,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;QAC5C,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAChE,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,SAAS;QACX,CAAC;QACD,QAAQ,CAAC,IAAI,CAAC;YACZ,GAAG,EAAE,WAAW,CAAC,GAAG;YACpB,WAAW,EAAE,SAAS,CAAC,WAAW;YAClC,GAAG,CAAC,SAAS,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC;YAC7E,4EAA4E;YAC5E,gEAAgE;YAChE,EAAE;YACF,iEAAiE;YACjE,sEAAsE;YACtE,yEAAyE;YACzE,uEAAuE;YACvE,wEAAwE;YACxE,mEAAmE;YACnE,oEAAoE;YACpE,iEAAiE;YACjE,iBAAiB;YACjB,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,WAAW,CAAC,GAAG;YACzC,oGAAoG;YACpG,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,WAAW,CAAC,IAAI;YACxC,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,MAAM,EAAE,WAAW,CAAC,MAAM;YAC1B,mBAAmB,EAAE,WAAW,CAAC,mBAAmB;YACpD,gBAAgB,EAAE,WAAW,CAAC,gBAAgB;YAC9C,aAAa,EAAE,WAAW,CAAC,aAAa;YACxC,oBAAoB,EAAE,WAAW,CAAC,oBAAoB;YACtD,2BAA2B,EAAE,WAAW,CAAC,2BAA2B;YACpE,0BAA0B,EAAE,WAAW,CAAC,0BAA0B;SACnE,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,QAAQ;QACR,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;KAC9C,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,QAAuC;IAChF,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,OAAO,GAAG,iCAAiC,CAAC,QAAQ,CAAC,CAAC;IAC5D,OAAO,QAAQ,CAAC,UAAU;SACvB,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC;SAC1C,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,CAAC;IAChC,yEAAyE;IACzE,2EAA2E;IAC3E,mEAAmE;IACnE,yEAAyE;IACzE,wEAAwE;IACxE,2DAA2D;IAC3D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;AAC7E,CAAC","sourcesContent":["/**\n * Resolves an application's authored Settings Hub config into the rendered shape.\n *\n * Resolution is the join between the two halves of the placement split: the\n * destination catalog (what a settings surface IS — the engine's\n * `ENGINE_SETTINGS_DESTINATIONS` plus the application's own `destinations`) and\n * the application's placements (where each one sits). Neither half renders alone.\n *\n * There is deliberately **no framework default and no merge**. An earlier\n * revision returned `DEFAULT_SETTINGS_HUB_CONFIG`, a fully placed hub the engine\n * owned, and that is precisely why an application could not remove or reorder a\n * settings section: the render path read the framework's arrangement, so an\n * application's absence of an arrangement was indistinguishable from agreement\n * with it. Here, an unplaced destination does not render — absence is how a\n * section is removed, and nothing reasserts it.\n */\nimport { useMemo } from 'react';\nimport { ENGINE_SETTINGS_DESTINATIONS } from './engine-settings-destinations';\nimport type {\n ResolvedSettingsHubConfig,\n SettingsDestination,\n SettingsHubConfig,\n SettingsSection,\n} from './settings-hub.frontend.schemas';\nimport { useUI } from '~wildo-frontend-lib/core/ui/useUI';\n\n/** Engine catalog lookup by ref, built once — resolution runs on every hub render. */\nconst ENGINE_DESTINATIONS_BY_REF: ReadonlyMap<string, SettingsDestination> = new Map(\n ENGINE_SETTINGS_DESTINATIONS.map(destination => [destination.ref, destination]),\n);\n\n/**\n * Every destination an application can place: the engine's, then its own.\n *\n * One function, because four readers must agree on it — resolution, the unknown-ref\n * check, the DEV verifier, and the companion's shell introspection, which reports an\n * application destination by what it renders. A second copy of the join in any of\n * them would let a destination render that another reader calls unknown.\n */\nexport interface SettingsDestinationCatalog {\n readonly byRef: ReadonlyMap<string, SettingsDestination>;\n /** The refs that resolved to one of the APPLICATION's destinations. */\n readonly applicationDestinationRefs: ReadonlySet<string>;\n /**\n * Application destinations whose ref is an engine destination's. The engine one is\n * resolved: an application cannot redefine what an engine destination means.\n */\n readonly refsShadowingEngineDestinations: readonly string[];\n /** Application destination refs declared more than once; the first declaration is resolved. */\n readonly duplicateApplicationDestinationRefs: readonly string[];\n}\n\nexport function resolveSettingsDestinationCatalog(authored: SettingsHubConfig | undefined): SettingsDestinationCatalog {\n const byRef = new Map(ENGINE_DESTINATIONS_BY_REF);\n const applicationDestinationRefs = new Set<string>();\n const refsShadowingEngineDestinations: string[] = [];\n const duplicateApplicationDestinationRefs: string[] = [];\n for (const destination of authored?.destinations ?? []) {\n if (ENGINE_DESTINATIONS_BY_REF.has(destination.ref)) {\n refsShadowingEngineDestinations.push(destination.ref);\n continue;\n }\n if (applicationDestinationRefs.has(destination.ref)) {\n duplicateApplicationDestinationRefs.push(destination.ref);\n continue;\n }\n byRef.set(destination.ref, destination);\n applicationDestinationRefs.add(destination.ref);\n }\n return { byRef, applicationDestinationRefs, refsShadowingEngineDestinations, duplicateApplicationDestinationRefs };\n}\n\n/**\n * Pure (React-free) resolution — the single source of truth shared by\n * {@link useSettingsHubConfig} (render path) and the DEV-startup\n * `verifySettingsHubContent` pass.\n *\n * Keeping resolution here, not inlined in the hook, is what lets the verifier\n * check the EXACT config the hub renders. Do not inline it into either caller:\n * the moment the two derive their config separately, the verifier starts\n * attesting to something nobody renders.\n *\n * A placement naming a ref absent from the catalog is DROPPED here and reported\n * by the verifier rather than throwing. Resolution runs on the render path, and\n * a hard throw there would take down the whole hub over one bad ref; the DEV\n * startup pass is where an author is present to read the diagnostic.\n */\nexport function resolveSettingsHubConfig(authored: SettingsHubConfig | undefined): ResolvedSettingsHubConfig {\n if (authored === undefined) {\n return { categories: [], sections: [] };\n }\n\n const catalog = resolveSettingsDestinationCatalog(authored);\n const sections: SettingsSection[] = [];\n for (const placement of authored.placements) {\n const destination = catalog.byRef.get(placement.destinationRef);\n if (destination === undefined) {\n continue;\n }\n sections.push({\n ref: destination.ref,\n categoryRef: placement.categoryRef,\n ...(placement.groupRef === undefined ? {} : { groupRef: placement.groupRef }),\n // The authored label, falling back to the ref so an unlabelled placement is\n // visibly wrong in the rail rather than rendering an empty tab.\n //\n // It is NOT superseded by label generation, and deleting it is a\n // regression rather than a tidy-up. `tSettingsHubSection(ref, label)`\n // takes this as the fallback when no key exists — and, more importantly,\n // the companion feeds this exact string to the labellize prompt as the\n // key's `purpose`. Generating without it made the model invent from the\n // ref: \"User provisioning\" became \"SCIM\", \"Audit streaming\" became\n // \"SIEM\", and a generated key WINS over the fallback, so the rail's\n // wording changed. The authored string is the intent; generation\n // translates it.\n label: placement.label ?? destination.ref,\n // The placement's icon overrides the destination's, as its label overrides the destination's words.\n icon: placement.icon ?? destination.icon,\n order: placement.order,\n target: destination.target,\n runtimeAvailability: destination.runtimeAvailability,\n requiredFeatures: destination.requiredFeatures,\n requiredRoles: destination.requiredRoles,\n entitlementFeatureId: destination.entitlementFeatureId,\n entitlementWithholdsContent: destination.entitlementWithholdsContent,\n requiredEngineCapabilities: destination.requiredEngineCapabilities,\n });\n }\n\n return {\n categories: authored.categories,\n sections,\n defaultSectionRef: authored.defaultSectionRef,\n };\n}\n\n/**\n * Every destination ref an authored config places that neither the engine nor the\n * application declares. Reported by `verifySettingsHubContent`; see the note on\n * {@link resolveSettingsHubConfig} for why resolution drops rather than throws.\n */\nexport function findUnknownDestinationRefs(authored: SettingsHubConfig | undefined): string[] {\n if (authored === undefined) {\n return [];\n }\n const catalog = resolveSettingsDestinationCatalog(authored);\n return authored.placements\n .map(placement => placement.destinationRef)\n .filter(ref => !catalog.byRef.has(ref));\n}\n\nexport function useSettingsHubConfig(): ResolvedSettingsHubConfig {\n const { settingsHub } = useUI();\n // Memoised on the authored config, NOT recomputed per render. Resolution\n // builds a fresh object graph every call, so an unmemoised return made the\n // hub's config a new identity on every render — and the hub keys a\n // `useEffect` on that identity to follow URL-driven section changes. The\n // effect therefore fired after every render and re-asserted the default\n // section, which silently undid the user's own rail click.\n return useMemo(() => resolveSettingsHubConfig(settingsHub), [settingsHub]);\n}\n"]}
@@ -51,4 +51,11 @@
51
51
  */
52
52
  import type { ResolvedSettingsHubConfig } from './settings-hub.frontend.schemas';
53
53
  export declare function useVisibleSettingsHubConfig(): ResolvedSettingsHubConfig;
54
+ /**
55
+ * The same gating, over a resolved configuration the caller holds rather than the application's authored hub: the
56
+ * scope each category needs, each section's roles, features, runtime capabilities and engine capabilities. The identity
57
+ * portal, which has no Settings Hub, reads its own destinations through it, so a destination shows on the portal to
58
+ * exactly the people who see it in the product's hub.
59
+ */
60
+ export declare function useGatedSettingsHubConfig(rawConfig: ResolvedSettingsHubConfig): ResolvedSettingsHubConfig;
54
61
  //# sourceMappingURL=useVisibleSettingsHubConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useVisibleSettingsHubConfig.d.ts","sourceRoot":"","sources":["../../../../src/core/config/useVisibleSettingsHubConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AASH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAKjF,wBAAgB,2BAA2B,IAAI,yBAAyB,CAuCvE"}
1
+ {"version":3,"file":"useVisibleSettingsHubConfig.d.ts","sourceRoot":"","sources":["../../../../src/core/config/useVisibleSettingsHubConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AASH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAKjF,wBAAgB,2BAA2B,IAAI,yBAAyB,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,yBAAyB,GAAG,yBAAyB,CAsCzG"}
@@ -59,7 +59,15 @@ import { filterSettingsHubConfig } from './settings-hub-gating.frontend.utils.js
59
59
  /** Stable empty list, so the memo below does not recompute when the configuration carries none. */
60
60
  const NO_ENGINE_CAPABILITIES = [];
61
61
  export function useVisibleSettingsHubConfig() {
62
- const rawConfig = useSettingsHubConfig();
62
+ return useGatedSettingsHubConfig(useSettingsHubConfig());
63
+ }
64
+ /**
65
+ * The same gating, over a resolved configuration the caller holds rather than the application's authored hub: the
66
+ * scope each category needs, each section's roles, features, runtime capabilities and engine capabilities. The identity
67
+ * portal, which has no Settings Hub, reads its own destinations through it, so a destination shows on the portal to
68
+ * exactly the people who see it in the product's hub.
69
+ */
70
+ export function useGatedSettingsHubConfig(rawConfig) {
63
71
  const appScope = useAppScopeSafe();
64
72
  // Read without the throwing `useFeatures` (#3195): the launcher context reads this hook too, and a launcher surface
65
73
  // outside the features provider (an isolated host, a test) must get a hub that shows no feature-gated section rather
@@ -1 +1 @@
1
- {"version":3,"file":"useVisibleSettingsHubConfig.js","sourceRoot":"","sources":["../../../../src/core/config/useVisibleSettingsHubConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,qCAAqC,EAAE,MAAM,mEAAmE,CAAC;AAC1H,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,mGAAmG;AACnG,MAAM,sBAAsB,GAAsB,EAAE,CAAC;AAErD,MAAM,UAAU,2BAA2B;IACzC,MAAM,SAAS,GAAG,oBAAoB,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;IACnC,oHAAoH;IACpH,qHAAqH;IACrH,uGAAuG;IACvG,MAAM,gBAAgB,GAAG,UAAU,CAAC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACvE,MAAM,cAAc,GAAG,qCAAqC,EAAE,CAAC;IAC/D,MAAM,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAC1D,MAAM,oBAAoB,GAAG,kBAAkB,EAAE,WAAW,EAAE,aAAa;WACtE,QAAQ,EAAE,oBAAoB;WAC9B,IAAI,CAAC;IAEV,MAAM,yBAAyB,GAAG,kBAAkB,EAAE,SAAS,EAAE,yBAAyB,IAAI,sBAAsB,CAAC;IAErH,OAAO,OAAO,CACZ,GAAG,EAAE,CACH,uBAAuB,CAAC,SAAS,EAAE;QACjC,QAAQ,EAAE;YACR,aAAa,EAAE,QAAQ,EAAE,aAAa;YACtC,qBAAqB,EAAE,QAAQ,EAAE,qBAAqB;YACtD,oBAAoB;YACpB,sBAAsB,EAAE,QAAQ,EAAE,sBAAsB;SACzD;QACD,eAAe,EAAE,gBAAgB,EAAE,QAAQ,IAAI,EAAE;QACjD,cAAc;QACd,yBAAyB;KAC1B,CAAC,EACJ;QACE,SAAS;QACT,QAAQ,EAAE,aAAa;QACvB,QAAQ,EAAE,qBAAqB;QAC/B,oBAAoB;QACpB,QAAQ,EAAE,sBAAsB;QAChC,gBAAgB,EAAE,QAAQ;QAC1B,cAAc;QACd,yBAAyB;KAC1B,CACF,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Resolves the Settings Hub config gated to what the current user may see.\n *\n * Layered on {@link useSettingsHubConfig} (which resolves the application's\n * authored placements against the engine destination catalog): this hook\n * collects the live gating signals — primary scope, effective roles, resolved\n * features, runtime capabilities — and runs the pure\n * {@link filterSettingsHubConfig}. The hub component consumes the already-gated\n * config, so it never has to know about scope/role/feature evaluation.\n *\n * Note the two stages answer different questions and must stay separate. This\n * one asks \"may THIS USER see the section\" and its answer changes as the user's\n * scope and roles change. Resolution asks \"did the APPLICATION place it at all\",\n * and a `no` there is authorship, not gating — it must never be recoverable by a\n * user gaining a role.\n *\n * Signals are sourced from the SAME hooks the rest of the frontend gating layer\n * uses, so a settings section appears under exactly the same conditions as the\n * equivalent sidebar/command-menu entry:\n * - scope → `useAppScopeSafe`, EXCEPT the application id — see below\n * - effective roles and capabilities → `useLauncherRuntimeAvailabilityContext` (its `effectiveRoles`, decided by the\n * same `viewerHoldsOneOfRoles` a launcher row uses)\n * - features → `FeaturesContext`, read without the throwing `useFeatures` (#3195)\n *\n * ## The application id does NOT come from the scope, and a category scoped to\n * `APPLICATION` was unreachable until it stopped trying to\n *\n * `AppScopeContext` derives `currentApplicationId` by decoding the access token, and the access\n * token's claims carry `userId` and **no** `applicationId` — measured on the running stack in\n * issue #283 and recorded at `ResourceReadCacheBridge.tsx`. So `appScope.currentApplicationId` is\n * null everywhere, always.\n *\n * That is invisible for every other gate and fatal for this one. `filterSettingsHubConfig` drops a\n * category whose scope has no value, so an application that authored an `APPLICATION`-scoped\n * category got a rail that silently omitted it — the exact failure mode the hub's own resolution\n * comment warns about, where \"quietly failed to appear\" and \"deliberately removed\" are\n * indistinguishable. Nothing threw, no DEV pass reported it, and the category's sections were\n * well-formed the whole time.\n *\n * The id is published on `appIdentity`, which is the one surface that actually has it. Read here\n * through `useContext` rather than `useApplication()` on purpose: that hook THROWS outside its\n * provider, and this hook is mounted by the settings hub, which must not crash a tree that happens\n * to render it a level too high. The scope value is kept as a FALLBACK rather than deleted, so the\n * day the claim is added to the token this hook keeps working without a second edit.\n *\n * **The same correction is owed at ~17 other `currentApplicationId` readers** (navigation, views,\n * charts, analytics, the command menu) and is deliberately NOT swept here: those feed scope\n * parameters into queries and URLs that have been null since the field existed, so changing them\n * is a behavioural change needing its own measurement. This hook is fixed because a null here does\n * not degrade a surface, it deletes one.\n */\n\nimport { useContext, useMemo } from 'react';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ApplicationContext } from '~wildo-frontend-lib/core/runtime/ApplicationContext.shared';\nimport { FeaturesContext } from '~wildo-frontend-lib/core/features/FeaturesContext';\nimport { useLauncherRuntimeAvailabilityContext } from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\nimport { useSettingsHubConfig } from './useSettingsHubConfig';\nimport { filterSettingsHubConfig } from './settings-hub-gating.frontend.utils';\nimport type { ResolvedSettingsHubConfig } from './settings-hub.frontend.schemas';\n\n/** Stable empty list, so the memo below does not recompute when the configuration carries none. */\nconst NO_ENGINE_CAPABILITIES: readonly string[] = [];\n\nexport function useVisibleSettingsHubConfig(): ResolvedSettingsHubConfig {\n const rawConfig = useSettingsHubConfig();\n const appScope = useAppScopeSafe();\n // Read without the throwing `useFeatures` (#3195): the launcher context reads this hook too, and a launcher surface\n // outside the features provider (an isolated host, a test) must get a hub that shows no feature-gated section rather\n // than a crash. Inside the application every reader sits under the provider, so nothing there changes.\n const resolvedFeatures = useContext(FeaturesContext)?.resolvedFeatures;\n const runtimeContext = useLauncherRuntimeAvailabilityContext();\n const applicationContext = useContext(ApplicationContext);\n const currentApplicationId = applicationContext?.appIdentity?.applicationId\n ?? appScope?.currentApplicationId\n ?? null;\n\n const enabledEngineCapabilities = applicationContext?.appConfig?.enabledEngineCapabilities ?? NO_ENGINE_CAPABILITIES;\n\n return useMemo(\n () =>\n filterSettingsHubConfig(rawConfig, {\n scopeIds: {\n currentUserId: appScope?.currentUserId,\n currentOrganizationId: appScope?.currentOrganizationId,\n currentApplicationId,\n currentAnonymousUserId: appScope?.currentAnonymousUserId,\n },\n enabledFeatures: resolvedFeatures?.features ?? [],\n runtimeContext,\n enabledEngineCapabilities,\n }),\n [\n rawConfig,\n appScope?.currentUserId,\n appScope?.currentOrganizationId,\n currentApplicationId,\n appScope?.currentAnonymousUserId,\n resolvedFeatures?.features,\n runtimeContext,\n enabledEngineCapabilities,\n ],\n );\n}\n"]}
1
+ {"version":3,"file":"useVisibleSettingsHubConfig.js","sourceRoot":"","sources":["../../../../src/core/config/useVisibleSettingsHubConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,qCAAqC,EAAE,MAAM,mEAAmE,CAAC;AAC1H,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAG/E,mGAAmG;AACnG,MAAM,sBAAsB,GAAsB,EAAE,CAAC;AAErD,MAAM,UAAU,2BAA2B;IACzC,OAAO,yBAAyB,CAAC,oBAAoB,EAAE,CAAC,CAAC;AAC3D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,SAAoC;IAC5E,MAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;IACnC,oHAAoH;IACpH,qHAAqH;IACrH,uGAAuG;IACvG,MAAM,gBAAgB,GAAG,UAAU,CAAC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACvE,MAAM,cAAc,GAAG,qCAAqC,EAAE,CAAC;IAC/D,MAAM,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAC1D,MAAM,oBAAoB,GAAG,kBAAkB,EAAE,WAAW,EAAE,aAAa;WACtE,QAAQ,EAAE,oBAAoB;WAC9B,IAAI,CAAC;IAEV,MAAM,yBAAyB,GAAG,kBAAkB,EAAE,SAAS,EAAE,yBAAyB,IAAI,sBAAsB,CAAC;IAErH,OAAO,OAAO,CACZ,GAAG,EAAE,CACH,uBAAuB,CAAC,SAAS,EAAE;QACjC,QAAQ,EAAE;YACR,aAAa,EAAE,QAAQ,EAAE,aAAa;YACtC,qBAAqB,EAAE,QAAQ,EAAE,qBAAqB;YACtD,oBAAoB;YACpB,sBAAsB,EAAE,QAAQ,EAAE,sBAAsB;SACzD;QACD,eAAe,EAAE,gBAAgB,EAAE,QAAQ,IAAI,EAAE;QACjD,cAAc;QACd,yBAAyB;KAC1B,CAAC,EACJ;QACE,SAAS;QACT,QAAQ,EAAE,aAAa;QACvB,QAAQ,EAAE,qBAAqB;QAC/B,oBAAoB;QACpB,QAAQ,EAAE,sBAAsB;QAChC,gBAAgB,EAAE,QAAQ;QAC1B,cAAc;QACd,yBAAyB;KAC1B,CACF,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Resolves the Settings Hub config gated to what the current user may see.\n *\n * Layered on {@link useSettingsHubConfig} (which resolves the application's\n * authored placements against the engine destination catalog): this hook\n * collects the live gating signals — primary scope, effective roles, resolved\n * features, runtime capabilities — and runs the pure\n * {@link filterSettingsHubConfig}. The hub component consumes the already-gated\n * config, so it never has to know about scope/role/feature evaluation.\n *\n * Note the two stages answer different questions and must stay separate. This\n * one asks \"may THIS USER see the section\" and its answer changes as the user's\n * scope and roles change. Resolution asks \"did the APPLICATION place it at all\",\n * and a `no` there is authorship, not gating — it must never be recoverable by a\n * user gaining a role.\n *\n * Signals are sourced from the SAME hooks the rest of the frontend gating layer\n * uses, so a settings section appears under exactly the same conditions as the\n * equivalent sidebar/command-menu entry:\n * - scope → `useAppScopeSafe`, EXCEPT the application id — see below\n * - effective roles and capabilities → `useLauncherRuntimeAvailabilityContext` (its `effectiveRoles`, decided by the\n * same `viewerHoldsOneOfRoles` a launcher row uses)\n * - features → `FeaturesContext`, read without the throwing `useFeatures` (#3195)\n *\n * ## The application id does NOT come from the scope, and a category scoped to\n * `APPLICATION` was unreachable until it stopped trying to\n *\n * `AppScopeContext` derives `currentApplicationId` by decoding the access token, and the access\n * token's claims carry `userId` and **no** `applicationId` — measured on the running stack in\n * issue #283 and recorded at `ResourceReadCacheBridge.tsx`. So `appScope.currentApplicationId` is\n * null everywhere, always.\n *\n * That is invisible for every other gate and fatal for this one. `filterSettingsHubConfig` drops a\n * category whose scope has no value, so an application that authored an `APPLICATION`-scoped\n * category got a rail that silently omitted it — the exact failure mode the hub's own resolution\n * comment warns about, where \"quietly failed to appear\" and \"deliberately removed\" are\n * indistinguishable. Nothing threw, no DEV pass reported it, and the category's sections were\n * well-formed the whole time.\n *\n * The id is published on `appIdentity`, which is the one surface that actually has it. Read here\n * through `useContext` rather than `useApplication()` on purpose: that hook THROWS outside its\n * provider, and this hook is mounted by the settings hub, which must not crash a tree that happens\n * to render it a level too high. The scope value is kept as a FALLBACK rather than deleted, so the\n * day the claim is added to the token this hook keeps working without a second edit.\n *\n * **The same correction is owed at ~17 other `currentApplicationId` readers** (navigation, views,\n * charts, analytics, the command menu) and is deliberately NOT swept here: those feed scope\n * parameters into queries and URLs that have been null since the field existed, so changing them\n * is a behavioural change needing its own measurement. This hook is fixed because a null here does\n * not degrade a surface, it deletes one.\n */\n\nimport { useContext, useMemo } from 'react';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { ApplicationContext } from '~wildo-frontend-lib/core/runtime/ApplicationContext.shared';\nimport { FeaturesContext } from '~wildo-frontend-lib/core/features/FeaturesContext';\nimport { useLauncherRuntimeAvailabilityContext } from '~wildo-frontend-lib/core/navigation/launcher-runtime-availability';\nimport { useSettingsHubConfig } from './useSettingsHubConfig';\nimport { filterSettingsHubConfig } from './settings-hub-gating.frontend.utils';\nimport type { ResolvedSettingsHubConfig } from './settings-hub.frontend.schemas';\n\n/** Stable empty list, so the memo below does not recompute when the configuration carries none. */\nconst NO_ENGINE_CAPABILITIES: readonly string[] = [];\n\nexport function useVisibleSettingsHubConfig(): ResolvedSettingsHubConfig {\n return useGatedSettingsHubConfig(useSettingsHubConfig());\n}\n\n/**\n * The same gating, over a resolved configuration the caller holds rather than the application's authored hub: the\n * scope each category needs, each section's roles, features, runtime capabilities and engine capabilities. The identity\n * portal, which has no Settings Hub, reads its own destinations through it, so a destination shows on the portal to\n * exactly the people who see it in the product's hub.\n */\nexport function useGatedSettingsHubConfig(rawConfig: ResolvedSettingsHubConfig): ResolvedSettingsHubConfig {\n const appScope = useAppScopeSafe();\n // Read without the throwing `useFeatures` (#3195): the launcher context reads this hook too, and a launcher surface\n // outside the features provider (an isolated host, a test) must get a hub that shows no feature-gated section rather\n // than a crash. Inside the application every reader sits under the provider, so nothing there changes.\n const resolvedFeatures = useContext(FeaturesContext)?.resolvedFeatures;\n const runtimeContext = useLauncherRuntimeAvailabilityContext();\n const applicationContext = useContext(ApplicationContext);\n const currentApplicationId = applicationContext?.appIdentity?.applicationId\n ?? appScope?.currentApplicationId\n ?? null;\n\n const enabledEngineCapabilities = applicationContext?.appConfig?.enabledEngineCapabilities ?? NO_ENGINE_CAPABILITIES;\n\n return useMemo(\n () =>\n filterSettingsHubConfig(rawConfig, {\n scopeIds: {\n currentUserId: appScope?.currentUserId,\n currentOrganizationId: appScope?.currentOrganizationId,\n currentApplicationId,\n currentAnonymousUserId: appScope?.currentAnonymousUserId,\n },\n enabledFeatures: resolvedFeatures?.features ?? [],\n runtimeContext,\n enabledEngineCapabilities,\n }),\n [\n rawConfig,\n appScope?.currentUserId,\n appScope?.currentOrganizationId,\n currentApplicationId,\n appScope?.currentAnonymousUserId,\n resolvedFeatures?.features,\n runtimeContext,\n enabledEngineCapabilities,\n ],\n );\n}\n"]}
@@ -46,7 +46,13 @@ export declare enum LauncherVerificationErrorCode {
46
46
  * unknown role is inert, so a role gate never fails open. Not an error, because the table checked against is the
47
47
  * organization roles the backend publishes, so a custom APPLICATION-level role is reported too.
48
48
  */
49
- REQUIRED_ROLES_UNKNOWN_ROLE = "REQUIRED_ROLES_UNKNOWN_ROLE"
49
+ REQUIRED_ROLES_UNKNOWN_ROLE = "REQUIRED_ROLES_UNKNOWN_ROLE",
50
+ /**
51
+ * A `homeDefinition.audienceHomes` audience names a role that is neither a core role nor one of the application's
52
+ * organization roles (#4576). WARNING for the reason {@link REQUIRED_ROLES_UNKNOWN_ROLE} is: nobody holds that
53
+ * spelling, so the audience's members silently open on the default home instead of theirs.
54
+ */
55
+ HOME_AUDIENCE_UNKNOWN_ROLE = "HOME_AUDIENCE_UNKNOWN_ROLE"
50
56
  }
51
57
  export interface LauncherVerificationError {
52
58
  severity: LauncherVerificationSeverity;
@@ -1 +1 @@
1
- {"version":3,"file":"verify-launcher-content.d.ts","sourceRoot":"","sources":["../../../../src/core/config/verify-launcher-content.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,KAAK,EAAE,yBAAyB,EAAoC,MAAM,+DAA+D,CAAC;AAsCjJ,oBAAY,4BAA4B;IACtC,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAID,oBAAY,6BAA6B;IACvC,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,qBAAqB,0BAA0B;IAC/C,mCAAmC,wCAAwC;IAC3E,0CAA0C,+CAA+C;IACzF,+CAA+C,oDAAoD;IACnG,qCAAqC,0CAA0C;IAC/E,qCAAqC,0CAA0C;IAC/E,+BAA+B,oCAAoC;IACnE,uBAAuB,4BAA4B;IACnD,gCAAgC,qCAAqC;IACrE,iCAAiC,sCAAsC;IACvE,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAC3C;;;;;;OAMG;IACH,2BAA2B,gCAAgC;IAC3D;;;;;OAKG;IACH,2BAA2B,gCAAgC;CAC5D;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,4BAA4B,CAAC;IACvC,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB;AAwfD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,yBAAyB,EACnC,SAAS,EAAE,yBAAyB,EACpC,qBAAqB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO;AACzD;;;GAGG;AACH,gBAAgB,CAAC,EAAE;IAAE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACpE,0BAA0B,CAqK5B;AAqDD;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,0BAA0B,GAAG,IAAI,CAqB1F"}
1
+ {"version":3,"file":"verify-launcher-content.d.ts","sourceRoot":"","sources":["../../../../src/core/config/verify-launcher-content.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,KAAK,EAAE,yBAAyB,EAAoC,MAAM,+DAA+D,CAAC;AAsCjJ,oBAAY,4BAA4B;IACtC,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAID,oBAAY,6BAA6B;IACvC,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,qBAAqB,0BAA0B;IAC/C,mCAAmC,wCAAwC;IAC3E,0CAA0C,+CAA+C;IACzF,+CAA+C,oDAAoD;IACnG,qCAAqC,0CAA0C;IAC/E,qCAAqC,0CAA0C;IAC/E,+BAA+B,oCAAoC;IACnE,uBAAuB,4BAA4B;IACnD,gCAAgC,qCAAqC;IACrE,iCAAiC,sCAAsC;IACvE,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAC3C;;;;;;OAMG;IACH,2BAA2B,gCAAgC;IAC3D;;;;;OAKG;IACH,2BAA2B,gCAAgC;IAC3D;;;;OAIG;IACH,0BAA0B,+BAA+B;CAC1D;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,4BAA4B,CAAC;IACvC,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB;AAwfD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,yBAAyB,EACnC,SAAS,EAAE,yBAAyB,EACpC,qBAAqB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO;AACzD;;;GAGG;AACH,gBAAgB,CAAC,EAAE;IAAE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACpE,0BAA0B,CAsK5B;AAgFD;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,0BAA0B,GAAG,IAAI,CAqB1F"}
@@ -58,6 +58,12 @@ export var LauncherVerificationErrorCode;
58
58
  * organization roles the backend publishes, so a custom APPLICATION-level role is reported too.
59
59
  */
60
60
  LauncherVerificationErrorCode["REQUIRED_ROLES_UNKNOWN_ROLE"] = "REQUIRED_ROLES_UNKNOWN_ROLE";
61
+ /**
62
+ * A `homeDefinition.audienceHomes` audience names a role that is neither a core role nor one of the application's
63
+ * organization roles (#4576). WARNING for the reason {@link REQUIRED_ROLES_UNKNOWN_ROLE} is: nobody holds that
64
+ * spelling, so the audience's members silently open on the default home instead of theirs.
65
+ */
66
+ LauncherVerificationErrorCode["HOME_AUDIENCE_UNKNOWN_ROLE"] = "HOME_AUDIENCE_UNKNOWN_ROLE";
61
67
  })(LauncherVerificationErrorCode || (LauncherVerificationErrorCode = {}));
62
68
  function buildViewRegistry(appConfig) {
63
69
  const applicationViewsByRef = new Map();
@@ -608,6 +614,7 @@ backendPublished) {
608
614
  }
609
615
  }
610
616
  verifyLauncherAudiences(config, backendPublished?.organizationRoles, errors);
617
+ verifyHomeAudiences(appConfig.homeDefinition, backendPublished?.organizationRoles, errors);
611
618
  return { errors, isValid: errors.length === 0 };
612
619
  }
613
620
  /**
@@ -656,6 +663,30 @@ function verifyLauncherAudiences(config, organizationRoles, errors) {
656
663
  listOf(ApplicationLevelComponentType.TOOLBAR, 'tools').forEach((entry, index) => visit(entry, `toolbar.tools[${index}]`));
657
664
  listOf(ApplicationLevelComponentType.MENUBAR, 'items').forEach((entry, index) => visit(entry, `menubar.items[${index}]`));
658
665
  }
666
+ /**
667
+ * Every `homeDefinition.audienceHomes[].audience.roles` against the same roles {@link verifyLauncherAudiences} knows,
668
+ * because an audience is decided by the same role decision a launcher entry's `requiredRoles` is (`useResolvedHome`).
669
+ * Skipped when the backend publishes no organization role table, for the same reason.
670
+ */
671
+ function verifyHomeAudiences(homeDefinition, organizationRoles, errors) {
672
+ if (!organizationRoles?.length || !homeDefinition?.audienceHomes?.length)
673
+ return;
674
+ const knownRoles = new Set([...Object.values(CORE_APP_ROLES), ...Object.values(CORE_ORG_ROLES), ...organizationRoles]);
675
+ homeDefinition.audienceHomes.forEach((entry, index) => {
676
+ for (const role of entry.audience.roles) {
677
+ if (knownRoles.has(role))
678
+ continue;
679
+ errors.push({
680
+ severity: LauncherVerificationSeverity.WARNING,
681
+ code: LauncherVerificationErrorCode.HOME_AUDIENCE_UNKNOWN_ROLE,
682
+ context: `homeDefinition.audienceHomes[${index}].audience`,
683
+ message: `The home audience names "${role}", which is neither a core role nor one of the application's organization roles: `
684
+ + 'nobody holds it, so the people it is meant for open on the default home. Check the spelling (a custom application-level role is also reported here).',
685
+ item: entry,
686
+ });
687
+ }
688
+ });
689
+ }
659
690
  // ════════════════════════════════════════════════════════════════
660
691
  // Console Reporter
661
692
  // ════════════════════════════════════════════════════════════════