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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (685) hide show
  1. package/LICENSE +114 -26
  2. package/LICENSE.enterprise +129 -0
  3. package/dist/esm/companion-exports.d.ts +5 -2
  4. package/dist/esm/companion-exports.d.ts.map +1 -1
  5. package/dist/esm/companion-exports.js +4 -2
  6. package/dist/esm/companion-exports.js.map +1 -1
  7. package/dist/esm/components/actions/action-bar.d.ts +16 -1
  8. package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
  9. package/dist/esm/components/actions/action-bar.js.map +1 -1
  10. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
  11. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
  12. package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
  13. package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
  14. package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
  15. package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
  16. package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
  17. package/dist/esm/components/app/AppLayout_Home.js +14 -7
  18. package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
  19. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
  20. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
  21. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
  22. package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
  23. package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
  24. package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
  25. package/dist/esm/components/app/DecisionInboxSection.js +15 -0
  26. package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
  27. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
  28. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
  29. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
  30. package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
  31. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
  32. package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
  33. package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
  34. package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
  35. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
  36. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
  37. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
  38. package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
  39. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
  40. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
  41. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
  42. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
  43. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
  44. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
  45. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
  46. package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
  47. package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
  48. package/dist/esm/components/auth/Auth_Main.js +5 -0
  49. package/dist/esm/components/auth/Auth_Main.js.map +1 -1
  50. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
  51. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
  52. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
  53. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
  54. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
  55. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
  56. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
  57. package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
  58. package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
  59. package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
  60. package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
  61. package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
  62. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
  63. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
  64. package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
  65. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
  66. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
  67. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
  68. package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
  69. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
  70. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
  71. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
  72. package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
  73. package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
  74. package/dist/esm/components/billing/billing-pricing-table.js +40 -7
  75. package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
  76. package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
  77. package/dist/esm/components/billing/billing-subscription-status.js +9 -1
  78. package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
  79. package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
  80. package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
  81. package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
  82. package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts.map +1 -1
  83. package/dist/esm/components/compliance/EmbeddedSigningFrame.js +17 -6
  84. package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -1
  85. package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
  86. package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
  87. package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
  88. package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
  89. package/dist/esm/components/data-display/DisplayField.js +67 -45
  90. package/dist/esm/components/data-display/DisplayField.js.map +1 -1
  91. package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
  92. package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
  93. package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
  94. package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
  95. package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
  96. package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
  97. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
  98. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
  99. package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
  100. package/dist/esm/components/data-display/approval-seal.d.ts +7 -5
  101. package/dist/esm/components/data-display/approval-seal.d.ts.map +1 -1
  102. package/dist/esm/components/data-display/approval-seal.js +10 -4
  103. package/dist/esm/components/data-display/approval-seal.js.map +1 -1
  104. package/dist/esm/components/data-display/signature-requests.d.ts +81 -0
  105. package/dist/esm/components/data-display/signature-requests.d.ts.map +1 -0
  106. package/dist/esm/components/data-display/signature-requests.js +123 -0
  107. package/dist/esm/components/data-display/signature-requests.js.map +1 -0
  108. package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
  109. package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
  110. package/dist/esm/components/feedback/empty-state-marker.js +16 -0
  111. package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
  112. package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
  113. package/dist/esm/components/feedback/empty-state.js +2 -1
  114. package/dist/esm/components/feedback/empty-state.js.map +1 -1
  115. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
  116. package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
  117. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
  118. package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
  119. package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
  120. package/dist/esm/components/feedback/resource-empty-state.js +2 -1
  121. package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
  122. package/dist/esm/components/flows-actors/approval.d.ts +25 -1
  123. package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
  124. package/dist/esm/components/flows-actors/approval.js +22 -24
  125. package/dist/esm/components/flows-actors/approval.js.map +1 -1
  126. package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
  127. package/dist/esm/components/flows-actors/approval.labels.js +30 -0
  128. package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
  129. package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
  130. package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
  131. package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
  132. package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
  133. package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
  134. package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
  135. package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
  136. package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
  137. package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
  138. package/dist/esm/components/form/Form.d.ts +2 -0
  139. package/dist/esm/components/form/Form.d.ts.map +1 -1
  140. package/dist/esm/components/form/Form.js +1 -0
  141. package/dist/esm/components/form/Form.js.map +1 -1
  142. package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
  143. package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
  144. package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
  145. package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
  146. package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
  147. package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
  148. package/dist/esm/components/form/automated/FormField.d.ts +5 -3
  149. package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
  150. package/dist/esm/components/form/automated/FormField.js +38 -13
  151. package/dist/esm/components/form/automated/FormField.js.map +1 -1
  152. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
  153. package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
  154. package/dist/esm/components/form/automated/ResourceAutomatedForm.js +75 -47
  155. package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
  156. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
  157. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
  158. package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
  159. package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
  160. package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
  161. package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
  162. package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
  163. package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
  164. package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
  165. package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
  166. package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
  167. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
  168. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
  169. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
  170. package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
  171. package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
  172. package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
  173. package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
  174. package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
  175. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
  176. package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
  177. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
  178. package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
  179. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
  180. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
  181. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
  182. package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
  183. package/dist/esm/components/navigation/NavigationItemBadge.d.ts +16 -0
  184. package/dist/esm/components/navigation/NavigationItemBadge.d.ts.map +1 -1
  185. package/dist/esm/components/navigation/NavigationItemBadge.js +14 -2
  186. package/dist/esm/components/navigation/NavigationItemBadge.js.map +1 -1
  187. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.d.ts +3 -3
  188. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js +3 -3
  189. package/dist/esm/components/navigation/app-level/ApplicationLevel_NavigationBack.js.map +1 -1
  190. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts +5 -13
  191. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.d.ts.map +1 -1
  192. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js +30 -255
  193. package/dist/esm/components/navigation/app-level/SidebarResourceBrowser.js.map +1 -1
  194. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts +22 -1
  195. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.d.ts.map +1 -1
  196. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js +57 -26
  197. package/dist/esm/components/navigation/app-level/useCommandMenuBehavior.js.map +1 -1
  198. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts +1 -1
  199. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
  200. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +40 -4
  201. package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
  202. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts +1 -1
  203. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.d.ts.map +1 -1
  204. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js +26 -4
  205. package/dist/esm/components/navigation/app-level/useMenuUserOrgBehavior.js.map +1 -1
  206. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts +31 -0
  207. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.d.ts.map +1 -0
  208. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js +42 -0
  209. package/dist/esm/components/navigation/app-level/useNavigationBackBehavior.js.map +1 -0
  210. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts +76 -0
  211. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.d.ts.map +1 -0
  212. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js +268 -0
  213. package/dist/esm/components/navigation/app-level/useSidebarResourceBrowser.js.map +1 -0
  214. package/dist/esm/components/navigation/command.d.ts +5 -0
  215. package/dist/esm/components/navigation/command.d.ts.map +1 -1
  216. package/dist/esm/components/navigation/command.js.map +1 -1
  217. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
  218. package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
  219. package/dist/esm/components/resources/ResourceLayout_DangerZone.js +51 -12
  220. package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
  221. package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
  222. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +21 -7
  223. package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
  224. package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
  225. package/dist/esm/components/resources/ResourceLayout_List.js +17 -7
  226. package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
  227. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
  228. package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
  229. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +4 -1
  230. package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
  231. package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
  232. package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
  233. package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
  234. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
  235. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
  236. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
  237. package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
  238. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.d.ts.map +1 -1
  239. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js +4 -1
  240. package/dist/esm/components/resources/collection/board/ResourceCollectionBody_Board.js.map +1 -1
  241. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.d.ts.map +1 -1
  242. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js +4 -1
  243. package/dist/esm/components/resources/collection/calendar/ResourceCollectionBody_Calendar.js.map +1 -1
  244. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.d.ts.map +1 -1
  245. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js +4 -1
  246. package/dist/esm/components/resources/collection/timeline/ResourceCollectionBody_Timeline.js.map +1 -1
  247. package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
  248. package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
  249. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
  250. package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
  251. package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
  252. package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
  253. package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
  254. package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
  255. package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
  256. package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
  257. package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
  258. package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
  259. package/dist/esm/components/resources/skeleton/Group.d.ts.map +1 -1
  260. package/dist/esm/components/resources/skeleton/Group.js +4 -1
  261. package/dist/esm/components/resources/skeleton/Group.js.map +1 -1
  262. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
  263. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
  264. package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
  265. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
  266. package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
  267. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
  268. package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
  269. package/dist/esm/components/sections/ContentSectionContainer.d.ts.map +1 -1
  270. package/dist/esm/components/sections/ContentSectionContainer.js +11 -7
  271. package/dist/esm/components/sections/ContentSectionContainer.js.map +1 -1
  272. package/dist/esm/components/sections/content-section.d.ts +1 -3
  273. package/dist/esm/components/sections/content-section.d.ts.map +1 -1
  274. package/dist/esm/components/sections/content-section.js.map +1 -1
  275. package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -1
  276. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +2 -1
  277. package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -1
  278. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts +12 -0
  279. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.d.ts.map +1 -1
  280. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js +28 -6
  281. package/dist/esm/components/settings/AppPage_ConnectedAccountsSettings.js.map +1 -1
  282. package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
  283. package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
  284. package/dist/esm/components/settings/SettingsHub.js +14 -4
  285. package/dist/esm/components/settings/SettingsHub.js.map +1 -1
  286. package/dist/esm/components/typography/document-heading-level.d.ts +28 -0
  287. package/dist/esm/components/typography/document-heading-level.d.ts.map +1 -0
  288. package/dist/esm/components/typography/document-heading-level.js +63 -0
  289. package/dist/esm/components/typography/document-heading-level.js.map +1 -0
  290. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
  291. package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
  292. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
  293. package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
  294. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
  295. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
  296. package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
  297. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
  298. package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
  299. package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
  300. package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
  301. package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
  302. package/dist/esm/components/views/chart-view/ChartView.js +52 -22
  303. package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
  304. package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
  305. package/dist/esm/components/views/chart-view/ChartView.labels.js +76 -3
  306. package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
  307. package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
  308. package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
  309. package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
  310. package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
  311. package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
  312. package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
  313. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
  314. package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
  315. package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
  316. package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
  317. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
  318. package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
  319. package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
  320. package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
  321. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +47 -12
  322. package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
  323. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +87 -32
  324. package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
  325. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
  326. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +8 -8
  327. package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
  328. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
  329. package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
  330. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.d.ts.map +1 -1
  331. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js +7 -3
  332. package/dist/esm/components/views/chart-view/option-builder/builders/funnel.builder.js.map +1 -1
  333. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.d.ts.map +1 -1
  334. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js +6 -2
  335. package/dist/esm/components/views/chart-view/option-builder/builders/gauge.builder.js.map +1 -1
  336. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.d.ts.map +1 -1
  337. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +8 -2
  338. package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
  339. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.d.ts.map +1 -1
  340. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js +13 -9
  341. package/dist/esm/components/views/chart-view/option-builder/builders/hierarchical-family.builder.js.map +1 -1
  342. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
  343. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
  344. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +9 -8
  345. package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
  346. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.d.ts.map +1 -1
  347. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js +2 -1
  348. package/dist/esm/components/views/chart-view/option-builder/builders/parallel.builder.js.map +1 -1
  349. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
  350. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
  351. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +10 -11
  352. package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
  353. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.d.ts.map +1 -1
  354. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js +2 -1
  355. package/dist/esm/components/views/chart-view/option-builder/builders/radar.builder.js.map +1 -1
  356. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.d.ts.map +1 -1
  357. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js +5 -1
  358. package/dist/esm/components/views/chart-view/option-builder/builders/sankey.builder.js.map +1 -1
  359. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
  360. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +7 -3
  361. package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
  362. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
  363. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
  364. package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
  365. package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
  366. package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
  367. package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
  368. package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
  369. package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
  370. package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
  371. package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
  372. package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
  373. package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
  374. package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
  375. package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
  376. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
  377. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
  378. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
  379. package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
  380. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
  381. package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
  382. package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
  383. package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
  384. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
  385. package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
  386. package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
  387. package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
  388. package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
  389. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
  390. package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
  391. package/dist/esm/core/app-shell/app-shell.schemas.d.ts +87 -16
  392. package/dist/esm/core/app-shell/app-shell.schemas.d.ts.map +1 -1
  393. package/dist/esm/core/app-shell/app-shell.schemas.js +16 -0
  394. package/dist/esm/core/app-shell/app-shell.schemas.js.map +1 -1
  395. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
  396. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
  397. package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
  398. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
  399. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
  400. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
  401. package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
  402. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
  403. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
  404. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
  405. package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
  406. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
  407. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
  408. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
  409. package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
  410. package/dist/esm/core/billing/BillingContext.d.ts +27 -4
  411. package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
  412. package/dist/esm/core/billing/BillingContext.js +61 -2
  413. package/dist/esm/core/billing/BillingContext.js.map +1 -1
  414. package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
  415. package/dist/esm/core/billing/useBillingAction.js +3 -2
  416. package/dist/esm/core/billing/useBillingAction.js.map +1 -1
  417. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
  418. package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
  419. package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
  420. package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
  421. package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
  422. package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
  423. package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
  424. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
  425. package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
  426. package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
  427. package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
  428. package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
  429. package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
  430. package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
  431. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
  432. package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
  433. package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
  434. package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
  435. package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
  436. package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
  437. package/dist/esm/core/config/composite-view.schemas.js +1 -0
  438. package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
  439. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
  440. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
  441. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
  442. package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
  443. package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
  444. package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
  445. package/dist/esm/core/config/engine-settings-destinations.js +12 -0
  446. package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
  447. package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
  448. package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
  449. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
  450. package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
  451. package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
  452. package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
  453. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
  454. package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
  455. package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
  456. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
  457. package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
  458. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
  459. package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
  460. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
  461. package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
  462. package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
  463. package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
  464. package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
  465. package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
  466. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
  467. package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
  468. package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
  469. package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
  470. package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
  471. package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
  472. package/dist/esm/core/config/verify-launcher-content.js +31 -0
  473. package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
  474. package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
  475. package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
  476. package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
  477. package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
  478. package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
  479. package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
  480. package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
  481. package/dist/esm/core/events/NotificationContext.js +19 -2
  482. package/dist/esm/core/events/NotificationContext.js.map +1 -1
  483. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
  484. package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
  485. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
  486. package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
  487. package/dist/esm/core/execution/useExecution.d.ts +3 -3
  488. package/dist/esm/core/execution/useExecution.js.map +1 -1
  489. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
  490. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
  491. package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
  492. package/dist/esm/core/features/FeatureGate.d.ts +13 -1
  493. package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
  494. package/dist/esm/core/features/FeatureGate.js +6 -1
  495. package/dist/esm/core/features/FeatureGate.js.map +1 -1
  496. package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
  497. package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
  498. package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
  499. package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
  500. package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
  501. package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
  502. package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
  503. package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
  504. package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
  505. package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
  506. package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
  507. package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
  508. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
  509. package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
  510. package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
  511. package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
  512. package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
  513. package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
  514. package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
  515. package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
  516. package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
  517. package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
  518. package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
  519. package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
  520. package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
  521. package/dist/esm/core/features/useFeatureAvailability.js +4 -0
  522. package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
  523. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
  524. package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
  525. package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
  526. package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
  527. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
  528. package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
  529. package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
  530. package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
  531. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
  532. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
  533. package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
  534. package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
  535. package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
  536. package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
  537. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
  538. package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
  539. package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
  540. package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
  541. package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
  542. package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
  543. package/dist/esm/core/navigation/home-resolution.js +46 -0
  544. package/dist/esm/core/navigation/home-resolution.js.map +1 -0
  545. package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
  546. package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
  547. package/dist/esm/core/navigation/launcher-resolution.js +13 -18
  548. package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
  549. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
  550. package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
  551. package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
  552. package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
  553. package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
  554. package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
  555. package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
  556. package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
  557. package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
  558. package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
  559. package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
  560. package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
  561. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
  562. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
  563. package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
  564. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
  565. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
  566. package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
  567. package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
  568. package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
  569. package/dist/esm/core/navigation/view-title-resolution.js +25 -0
  570. package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
  571. package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
  572. package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
  573. package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
  574. package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
  575. package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
  576. package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
  577. package/dist/esm/core/navigation/viewer-roles.js +26 -0
  578. package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
  579. package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
  580. package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
  581. package/dist/esm/core/requests/user-interaction-clock.js +47 -0
  582. package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
  583. package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
  584. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
  585. package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
  586. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +66 -10
  587. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
  588. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +63 -8
  589. package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
  590. package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
  591. package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
  592. package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
  593. package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
  594. package/dist/esm/core/resources/hooks/useOperationEnabled.js +45 -3
  595. package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
  596. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
  597. package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
  598. package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
  599. package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
  600. package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
  601. package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
  602. package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
  603. package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
  604. package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
  605. package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
  606. package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
  607. package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
  608. package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
  609. package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
  610. package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
  611. package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
  612. package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
  613. package/dist/esm/core/runtime/AppRouter.js +11 -33
  614. package/dist/esm/core/runtime/AppRouter.js.map +1 -1
  615. package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
  616. package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
  617. package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
  618. package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
  619. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
  620. package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
  621. package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
  622. package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
  623. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
  624. package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
  625. package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
  626. package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
  627. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
  628. package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
  629. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
  630. package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
  631. package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
  632. package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
  633. package/dist/esm/core/runtime/identity-routes.js +50 -0
  634. package/dist/esm/core/runtime/identity-routes.js.map +1 -0
  635. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
  636. package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
  637. package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
  638. package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
  639. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
  640. package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
  641. package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
  642. package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
  643. package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
  644. package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
  645. package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
  646. package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
  647. package/dist/esm/core/search/command-score.d.ts +33 -0
  648. package/dist/esm/core/search/command-score.d.ts.map +1 -0
  649. package/dist/esm/core/search/command-score.js +109 -0
  650. package/dist/esm/core/search/command-score.js.map +1 -0
  651. package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
  652. package/dist/esm/core/security/AuthSessionContext.js +4 -0
  653. package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
  654. package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
  655. package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
  656. package/dist/esm/core/security/StepUpAuthContext.js +7 -2
  657. package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
  658. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
  659. package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
  660. package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
  661. package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
  662. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
  663. package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
  664. package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
  665. package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
  666. package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
  667. package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
  668. package/dist/esm/core/ui/design-token.utils.js +24 -3
  669. package/dist/esm/core/ui/design-token.utils.js.map +1 -1
  670. package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
  671. package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
  672. package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
  673. package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
  674. package/dist/esm/index.d.ts +19 -1
  675. package/dist/esm/index.d.ts.map +1 -1
  676. package/dist/esm/index.js +22 -1
  677. package/dist/esm/index.js.map +1 -1
  678. package/dist/esm/testing/mock-builders.d.ts +1 -1
  679. package/dist/esm/testing/mock-builders.d.ts.map +1 -1
  680. package/dist/esm/testing/mock-builders.js +1 -0
  681. package/dist/esm/testing/mock-builders.js.map +1 -1
  682. package/dist/tsconfig.build.tsbuildinfo +1 -1
  683. package/package.json +9 -6
  684. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
  685. package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"app-shell.schemas.js","sourceRoot":"","sources":["../../../../src/core/app-shell/app-shell.schemas.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAmM1E,MAAM,UAAU,qBAAqB,CAAC,MAAe;IACnD,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,WAAW,IAAI,MAAM,IAAI,aAAa,IAAI,MAAM,CAAC;AAC3G,CAAC;AAwBD,0GAA0G;AAC1G,MAAM,UAAU,uBAAuB,CAAC,MAAe;IACrD,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AACjF,CAAC;AAaD,MAAM,UAAU,0BAA0B,CAAC,MAAe;IACxD,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,SAAS,GAAG,MAAiC,CAAC;IACpD,MAAM,eAAe,GACnB,SAAS,CAAC,QAAQ,KAAK,SAAS;QAChC,SAAS,CAAC,QAAQ,KAAK,mBAAmB,CAAC,KAAK;QAChD,SAAS,CAAC,QAAQ,KAAK,mBAAmB,CAAC,GAAG,CAAC;IACjD,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAErF,OAAO,eAAe,IAAI,YAAY,CAAC;AACzC,CAAC;AA2LD,MAAM,CAAN,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,8CAAa,CAAA;IACb,0EAAyC,CAAA;IACzC,4CAAW,CAAA;AACb,CAAC,EAJW,6BAA6B,KAA7B,6BAA6B,QAIxC;AAmID,MAAM,CAAN,IAAY,+BAIX;AAJD,WAAY,+BAA+B;IACzC,oDAAiB,CAAA;IACjB,gDAAa,CAAA;IACb,oDAAiB,CAAA;AACnB,CAAC,EAJW,+BAA+B,KAA/B,+BAA+B,QAI1C;AA8CD,MAAM,CAAN,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,4CAAiB,CAAA;IACjB,4CAAiB,CAAA;IACjB,4CAAiB,CAAA;IACjB,4CAAiB,CAAA;AACnB,CAAC,EALW,uBAAuB,KAAvB,uBAAuB,QAKlC;AAoPD;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,oDAAqB,CAAA;IACrB,kDAAmB,CAAA;AACrB,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,QAGtC","sourcesContent":["import type React from 'react';\nimport type { UseFormReturn } from 'react-hook-form';\nimport type { z } from 'zod';\n\nimport { HorizontalPlacement } from '@wildo-ai/presets-components-models';\nimport type { VerticalPlacement } from '@wildo-ai/presets-components-models';\nimport type { ForeignKeyDisplayMode, ViewportBreakpoint } from '@wildo-ai/zod-decorators';\nimport type { AppScopeFieldDefinition } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport type { ApplicationLevelComponentType, StatusBarItemType, StatusBarPlacement } from '~wildo-frontend-lib/core/config/app-level-components.frontend.schemas';\nimport type {\n QuickSwitcherFieldPresentation,\n UserDropdownAvatarDisplay,\n UserDropdownSection,\n} from '~wildo-frontend-lib/core/config/app-configuration-frontend.schemas';\nimport type { FrontendComponentType, PlacementSide } from '@wildo-ai/presets-components-models';\nimport type { ComponentRegistryRef } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas';\nimport type { StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport type { LauncherItemTargetKind } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport type { HorizontalAlign, LayoutDirection } from '@wildo-ai/zod-decorators';\nimport type { Notification } from '~wildo-frontend-lib/core/events/NotificationContext';\nimport type { AnyNavigationItem, NavigationIconReference } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport type { ResolvedControlPanelItem, ResolvedNavigationTarget } from '~wildo-frontend-lib/core/navigation/launcher-resolution';\nimport type { WebSocketStatus } from '~wildo-frontend-lib/core/requests/websockets/WebSocketContext';\nimport type {\n ActivityBarRendering,\n AppModeDefinition,\n ResourceBrowserClickContext,\n SidebarHomeDisplayMode,\n SidebarSection,\n SidebarSectionBehavior,\n SidebarSectionContentKind,\n SidebarSectionInlineCreate,\n SidebarHostedComponent,\n UtilityPanelItem,\n} from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport type { BrandAssetTheme } from '@wildo-ai/saas-models';\nimport type { BrandIdentity } from '~wildo-frontend-lib/core/branding/useBrandIdentity';\nimport { SidebarResponsivePolicy } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport type { HostedTriggerAppearance } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\n\n\n/** Navigation item with optional children for hierarchical rendering */\nexport type HierarchicalNavigationItem = AnyNavigationItem & {\n children?: AnyNavigationItem[];\n /**\n * Canonical favorite identity for FAVORITES-section copies. A favorited item\n * renders twice (its origin section AND the favorites section); the favorites\n * copy carries a DISTINCT `id` (so the exactly-one-active invariant keeps a\n * single highlighted row) and `favoriteId` = the origin item's id — the key\n * the favorites store persists and the star toggle operates on. Absent on\n * origin items (their own `id` IS the favorite key).\n */\n favoriteId?: string;\n};\n\n/**\n * A hosted component resolved from a surface's `hostedComponents` config entry,\n * ready for the preset to mount. Shared by BOTH the menubar and the sidebar —\n * they run one hosting pipeline (`resolveHostedComponents`) so the container\n * inversion model, interaction ownership, and per-placement width thread through\n * a single implementation rather than being duplicated per surface.\n *\n * `instanceId` is SURFACE-QUALIFIED (e.g. `menubar:command_menu-0`) so the\n * shell-level interaction owner can disambiguate the same component hosted in\n * two surfaces at once (a command-menu trigger in the menubar AND the sidebar).\n */\nexport interface ResolvedHostedComponent {\n instanceId: string;\n component: ApplicationLevelComponentType;\n frontendComponentType: FrontendComponentType;\n /**\n * Horizontal zone (menubar) or vertical end (sidebar). Always concrete:\n * `resolveHostedComponents` normalizes an omitted config `placement` to the\n * surface's default zone (menubar START / sidebar TOP), so preset-side\n * per-zone equality filters can never silently drop a hosted component.\n */\n placement: HorizontalPlacement | VerticalPlacement;\n presetName?: string;\n /** Per-placement trigger width override (see `MenubarHostedComponent.triggerWidth`). */\n triggerWidth?: string | number;\n /** Per-placement trigger appearance (see `HostedTriggerAppearance`). */\n triggerAppearance?: HostedTriggerAppearance;\n}\n\n/**\n * Lightweight rendering props extracted from a sidebar section definition.\n * Used by the rendering layer (sidebar preset) to render section headers,\n * collapse behavior, and inline create — without coupling to the config schema.\n */\nexport interface SectionRenderProps {\n ref: string;\n label?: string;\n icon?: string;\n /** Whether the section header (label + icon) is rendered. Defaults to `true`. */\n showLabel: boolean;\n collapsible: boolean;\n defaultCollapsed: boolean;\n /**\n * Primary navigation group — rendered at the top of the sidebar (no header,\n * not collapsible), sharing that group with the framework Home row when\n * `homeDisplayMode` is `NAVIGATION_ITEM`. See\n * `SidebarSection_NavigationList.isPrimary`.\n */\n isPrimary?: boolean;\n behavior?: SidebarSectionBehavior;\n inlineCreate?: SidebarSectionInlineCreate;\n inlineCreateResourceType?: string;\n nested?: boolean;\n maxNestingDepth?: number;\n}\n\n/**\n * A grouped sidebar section for rendering.\n *\n * When `contentKind` is undefined or `NAVIGATION_LIST`, this is a traditional\n * navigation item list. When `contentKind` is a different variant, the section\n * renders specialized content and `items` will be empty.\n */\nexport interface SectionGroup {\n section: SectionRenderProps;\n items: HierarchicalNavigationItem[];\n moreMenuItems: HierarchicalNavigationItem[];\n /**\n * Discriminant from the new per-launcher config. When undefined, this section\n * was produced by the old scan-based path (treat as NAVIGATION_LIST).\n */\n contentKind?: SidebarSectionContentKind;\n /** RESOURCE_BROWSER: resource type to browse. */\n resourceType?: string;\n /** RESOURCE_BROWSER: operation override. */\n operation?: string;\n /** RESOURCE_BROWSER: operation variant. */\n operationVariant?: string;\n /** RESOURCE_BROWSER: click/navigation operation override. */\n navigateOperation?: string;\n /** RESOURCE_BROWSER: click/navigation operation variant. */\n navigateOperationVariant?: string;\n /** RESOURCE_BROWSER: client-side instance filter. */\n instanceFilter?: (instance: Record<string, unknown>) => boolean;\n /** RESOURCE_BROWSER: custom click handler. */\n onInstanceClick?: (context: ResourceBrowserClickContext) => void;\n /** GUIDANCE_WIDGET: guidance component ref. */\n guidanceRef?: string;\n /** CUSTOM_COMPONENT: custom component ref. */\n componentRef?: string;\n}\n\n/**\n * Sidebar config object — matches the transformed shape from `UIContext`\n * (`ViewportAwareAppLevelComponentConfigurationSchema` → transformer →\n * `{ placement, collapsible, policy }`).\n *\n * The raw model uses `responsivePolicy`, but the transformer renames it\n * to `policy` in the runtime config.\n */\nexport interface SidebarConfigObject {\n placement: HorizontalPlacement.START | HorizontalPlacement.END;\n collapsible: boolean;\n /**\n * Starting rail state for a visitor with NO stored preference. Absent means\n * the framework default, expanded. A persisted\n * `LOCAL_STORAGE_KEYS.SIDEBAR_COLLAPSED` always wins over it — this is a\n * starting position, not a lock.\n */\n defaultCollapsed?: boolean;\n policy: SidebarResponsivePolicy;\n /**\n * Viewport threshold at (or below) which the responsive `policy` applies.\n * Authored as `responsiveBreakpoint` in the raw model and carried through the\n * UIContext transformer's rest-spread. Defaults to `ViewportBreakpoint.MOBILE`\n * (the Zod schema default) when absent.\n */\n responsiveBreakpoint?: ViewportBreakpoint;\n /**\n * How the sidebar surfaces HOME (hidden / pinned brand header / navigation\n * row). Absent means the framework default, `NAVIGATION_ITEM`, applied by\n * `useSidebarBehavior`.\n */\n homeDisplayMode?: SidebarHomeDisplayMode;\n /**\n * Pins which brand-mark variant the BRAND_HEADER mode renders (e.g.\n * `MONOCHROME`). Absent means adaptive light/dark.\n */\n brandMarkTheme?: BrandAssetTheme;\n /** Per-launcher content declarations — discriminated union on `contentKind`. */\n contentSections?: SidebarSection[];\n /** Components hosted inside the sidebar via container inversion (mirror of menubar `hostedComponents`). */\n hostedComponents?: SidebarHostedComponent[];\n defaultSection?: string;\n /** Desktop sidebar width in px. Defaults to 256. */\n width?: number;\n /** Mobile sidebar width in px. Defaults to 280. */\n mobileWidth?: number;\n /** Desktop collapsed width in px. Defaults to 64. */\n collapsedWidth?: number;\n /** Mobile collapsed width in px. Defaults to 56. */\n mobileCollapsedWidth?: number;\n}\n\nexport function isSidebarConfigObject(config: unknown): config is SidebarConfigObject {\n return typeof config === 'object' && config !== null && 'placement' in config && 'collapsible' in config;\n}\n\n/**\n * The object form of the status bar's configuration. The configuration is `boolean | StatusBarPlacement (the\n * string shorthand) | StatusBarConfigObject`.\n */\nexport interface StatusBarConfigObject {\n placement?: StatusBarPlacement;\n showMemoryUsage?: boolean;\n showNotificationCount?: boolean;\n /**\n * Whether the bar reports the realtime connection. It speaks only while the connection is degraded (connecting,\n * reconnecting, lost) and says nothing while connected.\n */\n showConnectionStatus?: boolean;\n showConnectionStatusOnMobile?: boolean;\n backgroundClassName?: string;\n textClassName?: string;\n showBorder?: boolean;\n height?: number;\n statusItems?: StatusBarConfigItem[];\n style?: React.CSSProperties;\n}\n\n/** Narrowing guard for the object form, distinguishing it from the boolean and string-shorthand forms. */\nexport function isStatusBarConfigObject(config: unknown): config is StatusBarConfigObject {\n return typeof config === 'object' && config !== null && !Array.isArray(config);\n}\n\nexport type UtilityPanelPlacement =\n | HorizontalPlacement.START\n | HorizontalPlacement.END;\n\nexport interface UtilityPanelConfigObject {\n items?: UtilityPanelItem[];\n position?: UtilityPanelPlacement;\n /** The trigger's glyph (a standard icon reference). See the `UTILITY_PANEL` config schema. */\n icon?: string;\n}\n\nexport function isUtilityPanelConfigObject(config: unknown): config is UtilityPanelConfigObject {\n if (typeof config !== 'object' || config === null || Array.isArray(config)) {\n return false;\n }\n\n const candidate = config as Record<string, unknown>;\n const isValidPosition =\n candidate.position === undefined ||\n candidate.position === HorizontalPlacement.START ||\n candidate.position === HorizontalPlacement.END;\n const isValidItems = candidate.items === undefined || Array.isArray(candidate.items);\n\n return isValidPosition && isValidItems;\n}\n\n\n// ---------------------------------------------------------------------------\n// Behavior hook return types\n// ---------------------------------------------------------------------------\n\n/**\n * Standalone navigation behavioral utilities — active-state checking, click dispatch, and home navigation.\n *\n * A row's display policy (`SidebarItemDisplayPolicy`) is read ONCE, where the sidebar partitions a section's rows\n * into listed rows and its \"More\" menu (`useSidebarBehavior`). A second reader here, typed with an unnamed string\n * union and never called, was removed so the two could not disagree.\n *\n * Does NOT include items — consumers obtain items from per-launcher\n * resolution or auto-items.\n *\n * `handleNavigationClick` accepts `launcher` as a second parameter since\n * this interface is not scoped to a single launcher.\n */\nexport interface NavigationBehaviors {\n isNavigationItemActive: (urlPath: string) => boolean;\n handleNavigationClick: (item: AnyNavigationItem, launcher: ApplicationLevelComponentType) => void;\n handleHomeClick: () => void;\n isHomeActive: boolean;\n}\n\nexport interface SidebarBehavior {\n groupedSections: SectionGroup[];\n /**\n * Components hosted in the sidebar (container inversion), resolved from\n * `[SIDEBAR].hostedComponents` through the SAME pipeline the menubar uses.\n * The preset resolves each via the component registry and mounts it with the\n * shell-level interaction-owner props.\n */\n hostedComponents: ResolvedHostedComponent[];\n isCollapsed: boolean;\n isHomeActive: boolean;\n dimensions: { width: number; collapsedWidth: number };\n sidebarConfig: {\n isCollapsible: boolean;\n responsivePolicy: SidebarResponsivePolicy;\n currentWidth: number;\n };\n isNavigationLoading: boolean;\n hasItems: boolean;\n placement: HorizontalPlacement;\n\n /**\n * How the sidebar must surface HOME — hidden, the pinned brand header, or a\n * navigation row. Resolved from config with the framework default applied, so\n * a preset never re-derives it.\n */\n homeDisplayMode: SidebarHomeDisplayMode;\n /**\n * App name + resolved brand-asset URL for the pinned header. Present ONLY in\n * `SidebarHomeDisplayMode.BRAND_HEADER`; `logoUrl` is itself optional because\n * an application may not have generated a brand yet.\n */\n brandHeader?: BrandIdentity;\n\n /**\n * `true` when the current viewport is at (or below) the sidebar's configured\n * `responsiveBreakpoint` AND the responsive policy is `BURGER`. In this mode the\n * sidebar renders NOTHING inline (width 0) and instead opens as an overlay drawer\n * (`isMobileDrawerOpen`) toggled by the menubar burger / `HOTKEY_SIDEBAR_TOGGLE`.\n */\n isMobileDrawerMode: boolean;\n /** Drawer open state — only meaningful while `isMobileDrawerMode` is true. */\n isMobileDrawerOpen: boolean;\n /** Closes the mobile drawer (backdrop click, Escape, post-navigation dismiss). */\n closeMobileDrawer: () => void;\n\n /**\n * Active-state check keyed on the ITEM's resolved `id`, not on the raw path:\n * two DISTINCT items sharing an identical `urlPath` (e.g. an item and its\n * favorites-section copy, which carries a `favorite-` prefixed id) must not\n * both highlight — one id (the first in section order carrying the winning\n * path) is elected (frontend-ux-quality-audit E2). Caveat: resolved ids are\n * deterministic per TARGET (`resolved-<type>-<op>-<variant>`), so declaring\n * the SAME launcher target in two sections yields two rows with one shared\n * id, and both still highlight — dedupe such declarations in config instead\n * (WT once declared Todos twice and hit exactly this).\n */\n isNavigationItemActive: (item: { id: string; urlPath?: string }) => boolean;\n isSectionCollapsed: (section: SectionRenderProps) => boolean;\n isItemCollapsed: (itemId: string) => boolean;\n\n handleNavigationClick: (item: AnyNavigationItem) => void;\n handleHomeClick: () => void;\n handleToggleCollapse: () => void;\n /**\n * Record a section's collapsed state. A SETTER rather than a toggle, deliberately: the\n * effective collapsed state is resolved from a stored entry, then `defaultSection`, then\n * `section.defaultCollapsed`, so a toggle that negated only the stored entry ignored the\n * first interaction on any section declaring `defaultCollapsed: true` (#631). Pass the value\n * the collapsible primitive gives you; do not re-derive it.\n */\n handleSetSectionCollapsed: (sectionRef: string, collapsed: boolean) => void;\n handleToggleItemCollapse: (itemId: string) => void;\n\n /**\n * `true` when the item is in the user's favorites. Accepts either an origin\n * item (keyed by its own `id`) or a favorites-section copy (keyed by its\n * `favoriteId`).\n */\n isItemFavorite: (item: Pick<HierarchicalNavigationItem, 'id' | 'favoriteId'>) => boolean;\n /**\n * Toggles the item in the persisted favorites set (star affordance). The\n * favorites section re-populates immediately; storage is machine-local\n * (`LOCAL_STORAGE_KEYS.SIDEBAR_FAVORITES`).\n */\n handleToggleItemFavorite: (item: Pick<HierarchicalNavigationItem, 'id' | 'favoriteId'>) => void;\n /**\n * Whether any `SidebarSectionBehavior.FAVORITES` section is configured — the\n * preset only offers the star affordance when favoriting has a destination.\n */\n hasFavoritesSection: boolean;\n\n inlineCreate: {\n activeSection: string | null;\n value: string;\n start: (sectionRef: string) => void;\n cancel: () => void;\n submit: (sectionRef: string, resourceType?: string) => void;\n setValue: (value: string) => void;\n };\n}\n\nexport interface AppShellLayoutInfo {\n hasMenubar: boolean;\n hasSidebar: boolean;\n hasStatusBar: boolean;\n hasToolbar: boolean;\n hasActivityBar: boolean;\n hasQuickActionButton: boolean;\n hasUtilityPanel: boolean;\n /**\n * The menubar or the sidebar hosts the quick-action button at the current breakpoint, so the content area draws\n * no floating one beside it (`isHostedInShellChrome`). Hosting moves a component; it never copies it.\n */\n quickActionButtonHostedInChrome: boolean;\n /** The menubar or the sidebar hosts the utility panel's trigger at the current breakpoint, so the shell edge does not. */\n utilityPanelHostedInChrome: boolean;\n sidebarPlacement: HorizontalPlacement.START | HorizontalPlacement.END;\n statusBarPlacement: StatusBarPlacement;\n utilityPanelPlacement: UtilityPanelPlacement;\n isLayoutReady: boolean;\n}\n\nexport interface PublicShellLayoutInfo {\n useCardLayout: boolean;\n isReady: boolean;\n /**\n * The identity to present above the public card, or `undefined` when the application has not\n * opted in via `publicShellIdentityMode`.\n *\n * EXPOSED only in the opted-in mode rather than always, mirroring `useSidebarBehavior`'s\n * `brandHeader`: a preset that receives an identity unconditionally can render a mark on a\n * surface the application never asked to brand, and no type would catch it.\n */\n brandHeader?: BrandIdentity;\n /** Tenant accent for the identity ornament only; never replaces accessible application theme tokens. */\n brandAccentColor?: string;\n}\n\nexport interface ToolbarDisplayItem {\n id: string;\n label: string;\n /** The tool's icon as a reference; the preset renders it (#1828). */\n iconReference?: NavigationIconReference;\n iconOnly?: boolean;\n onClick: () => void;\n}\n\nexport interface ToolbarBehavior {\n tools: ToolbarDisplayItem[];\n toolbarConfig: {\n placement: 'top' | 'bottom';\n compact: boolean;\n showSeparator: boolean;\n hideOnMobile: boolean;\n };\n shouldRender: boolean;\n currentBreakpoint: string | undefined;\n}\n\nexport enum QuickSwitcherFieldControlKind {\n ENUM = 'enum',\n RESOURCE_REFERENCE = 'resource_reference',\n RAW = 'raw',\n}\n\nexport interface QuickSwitcherResolvedField {\n fieldId: string;\n /** Guaranteed non-empty (config label → resource title → humanized field id → field id). */\n label: string;\n schema: z.ZodTypeAny;\n valueSchema: z.ZodTypeAny;\n disabled: boolean;\n isMultiple: boolean;\n controlKind: QuickSwitcherFieldControlKind;\n /**\n * Explicit target for `RESOURCE_REFERENCE` controls whose schema carries no\n * `isForeignKey` metadata — i.e. the primary-key fallback, where the switcher\n * is by definition selecting an instance of the scope field's `resourceType`.\n * `undefined` for FK-decorated schemas (the FK metadata names the target).\n */\n targetResourceType?: string;\n /** Input placeholder — localized resource title, falling back to `label`. Non-empty. */\n placeholder: string;\n /**\n * How each dropdown option renders — the declared\n * `appScope.fields[].optionDisplayMode`, defaulted to `LABEL`. Reuses the\n * framework's FK-rendering vocabulary: `LABEL` is the resource's own display\n * label, `SUMMARY` is its summary card.\n */\n optionDisplayMode: ForeignKeyDisplayMode;\n /**\n * Clear this field's ambient scope. A scope is inherently OPTIONAL — \"no list\n * selected\" is a first-class state the collection surfaces already produce —\n * so the control always offers an explicit way back to it rather than relying\n * on the combobox's undiscoverable re-click-to-toggle.\n */\n onClear: () => void;\n /** Whether anything is currently selected (drives the clear affordance). */\n hasValue: boolean;\n /**\n * How the closed control presents — the declared\n * `appScope.fields[].presentation`, defaulted to `CONTROL_ONLY`.\n *\n * Carried as DATA, never as a rendered node: resolving the resource's icon is\n * component-registry work, so the preset does it. Behavior hooks in this\n * framework never return `ReactNode` nor perform registry resolution: an icon\n * is a reference (`NavigationIconReference`), and a class or style a hook\n * returns is only ever one the application authored, passed through (#1828).\n */\n presentation: QuickSwitcherFieldPresentation;\n definition: AppScopeFieldDefinition;\n}\n\nexport interface QuickSwitcherBehavior {\n fields: QuickSwitcherResolvedField[];\n formMethods: UseFormReturn;\n layoutDirection: 'horizontal' | 'vertical';\n /**\n * Monotonically increasing counter — incremented when the\n * `HOTKEY_QUICK_SWITCHER_OPEN` event fires. Presets should watch\n * this value and focus the first enabled field when it changes.\n */\n focusTrigger: number;\n}\n\nexport interface StatusBarBehavior {\n totalBadgeCount: number;\n connectionStatus: WebSocketStatus;\n showConnectionStatus: boolean;\n showConnectionStatusOnMobile: boolean;\n shouldShowConnectionStatus: boolean;\n showNotificationCount: boolean;\n shouldShowNotificationCount: boolean;\n showMemoryUsage: boolean;\n memoryUsageLabel: string | null;\n notificationCountLabel: string;\n notificationCountAriaLabel: string;\n connectionStatusLabel: string;\n statusItems: StatusBarDisplayItem[];\n dimensions: { height: number };\n statusBarConfig: {\n isTop: boolean;\n isBottom: boolean;\n isMobile: boolean;\n /**\n * The shell draws one continuous canvas (`ShellAppearance.CONTINUOUS`): the bar is a transparent strip of it rather\n * than a sunken slab. Data, so the preset chooses the classes (#1828); the hook used to return them.\n */\n isContinuousShell: boolean;\n showBorder: boolean;\n };\n /**\n * What the application AUTHORED for the bar's appearance (`[STATUS_BAR].backgroundClassName`, `textClassName`,\n * `style`), passed through unchanged, or `undefined` when it authored none. The hook takes no styling decision of\n * its own: the defaults live in the preset, and a renderer that is not the DOM ignores these values.\n */\n authoredAppearance?: StatusBarAuthoredAppearance;\n currentBreakpoint: string | undefined;\n}\n\n/** The appearance overrides an application authored on the status bar's configuration object. */\nexport interface StatusBarAuthoredAppearance {\n backgroundClassName?: string;\n textClassName?: string;\n style?: React.CSSProperties;\n}\n\nexport interface StatusBarConfigItemBase {\n id: string;\n label: string;\n type: StatusBarItemType;\n icon?: string;\n value?: string | number;\n}\n\nexport interface StatusBarConfigItem_Link extends StatusBarConfigItemBase {\n type: StatusBarItemType.LINK;\n href: string;\n}\n\nexport interface StatusBarConfigItem_Button extends StatusBarConfigItemBase {\n type: StatusBarItemType.BUTTON;\n onClick: () => void;\n}\n\nexport interface StatusBarConfigItem_Text extends StatusBarConfigItemBase {\n type: StatusBarItemType.TEXT;\n}\n\nexport type StatusBarConfigItem =\n | StatusBarConfigItem_Link\n | StatusBarConfigItem_Button\n | StatusBarConfigItem_Text;\n\nexport enum StatusBarDisplayInteractionType {\n STATIC = 'static',\n LINK = 'link',\n BUTTON = 'button',\n}\n\nexport interface StatusBarDisplayInteraction_Static {\n type: StatusBarDisplayInteractionType.STATIC;\n}\n\nexport interface StatusBarDisplayInteraction_Link {\n type: StatusBarDisplayInteractionType.LINK;\n href: string;\n}\n\nexport interface StatusBarDisplayInteraction_Button {\n type: StatusBarDisplayInteractionType.BUTTON;\n onClick: () => void;\n}\n\nexport type StatusBarDisplayInteraction =\n | StatusBarDisplayInteraction_Static\n | StatusBarDisplayInteraction_Link\n | StatusBarDisplayInteraction_Button;\n\nexport interface StatusBarDisplayItem {\n id: string;\n label: string;\n iconReference?: string;\n valueText?: string;\n interaction: StatusBarDisplayInteraction;\n}\n\nexport interface ActivityBarLayout {\n direction: LayoutDirection;\n borderSide: PlacementSide;\n tooltipSide: PlacementSide;\n orientation: LayoutDirection;\n}\n\nexport interface ActivityBarBehavior {\n availableModes: AppModeDefinition[];\n activeMode: string | null;\n setActiveMode: (mode: string) => void;\n hasModes: boolean;\n activeRenderingMode: ActivityBarRendering;\n layout: ActivityBarLayout;\n isNavigationLoading: boolean;\n}\n\nexport enum ControlPanelControlType {\n BUTTON = 'button',\n TOGGLE = 'toggle',\n SLIDER = 'slider',\n SELECT = 'select',\n}\n\nexport interface ControlPanelBehavior {\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n groupedItems: Record<string, ControlPanelNavigationItem[]>;\n sections: ControlPanelSection[];\n controls: ControlPanelDisplayControl[];\n handleItemClick: (item: ControlPanelNavigationItem) => void;\n sheetSide: PlacementSide;\n isNavigationLoading: boolean;\n navigationItemCount: number;\n currentBreakpoint: string | undefined;\n}\n\nexport type ControlPanelNavigationItem = ResolvedControlPanelItem;\n\nexport interface ControlPanelSection {\n id: string;\n label: string;\n items: ControlPanelNavigationItem[];\n}\n\nexport interface ControlPanelDisplayControlBase {\n id: string;\n label: string;\n type: ControlPanelControlType;\n disabled: boolean;\n}\n\nexport interface ControlPanelDisplayControl_Button extends ControlPanelDisplayControlBase {\n type: ControlPanelControlType.BUTTON;\n onTrigger: () => void;\n}\n\nexport interface ControlPanelDisplayControl_Toggle extends ControlPanelDisplayControlBase {\n type: ControlPanelControlType.TOGGLE;\n value: boolean;\n onToggle: () => void;\n}\n\nexport interface ControlPanelDisplayControl_SelectOption {\n label: string;\n value: unknown;\n isSelected: boolean;\n onSelect: () => void;\n}\n\nexport interface ControlPanelDisplayControl_Select extends ControlPanelDisplayControlBase {\n type: ControlPanelControlType.SELECT;\n value?: unknown;\n options: ControlPanelDisplayControl_SelectOption[];\n}\n\nexport interface ControlPanelDisplayControl_Slider extends ControlPanelDisplayControlBase {\n type: ControlPanelControlType.SLIDER;\n value: number;\n min: number;\n max: number;\n step: number;\n onValueChange: (value: number) => void;\n}\n\nexport type ControlPanelDisplayControl =\n | ControlPanelDisplayControl_Button\n | ControlPanelDisplayControl_Toggle\n | ControlPanelDisplayControl_Select\n | ControlPanelDisplayControl_Slider;\n\n/**\n * One panel item, normalized for display, discriminated the same way its config is (#504).\n *\n * `resolvedComponentRef` and `resolvedViewRef` are both nullable and both mean the SAME thing: the item\n * names something this panel cannot host, and the preset must show that rather than render chrome\n * that looks like a component with nothing to say. Keeping the two kinds apart here is what stops\n * the preset guessing which ref an item meant.\n */\nexport type UtilityPanelDisplayItem =\n | {\n kind: LauncherItemTargetKind.CUSTOM_COMPONENT;\n componentRef: string;\n /**\n * The registry key the preset renders, or `null` when nothing is registered under that ref in\n * the default preset. Engine AND application components resolve here (#549); it used to be\n * `componentType: FrontendComponentType | null`, which made every application component `null`.\n */\n resolvedComponentRef: ComponentRegistryRef | null;\n icon: string;\n label: string;\n }\n | {\n kind: LauncherItemTargetKind.VIEW;\n viewRef: string;\n /** `null` when no declared view carries that ref, so an unknown ref is reported and not rendered blank. */\n resolvedViewRef: string | null;\n icon: string;\n label: string;\n };\n\nexport interface UtilityPanelBehavior {\n /** Whether the panel is expanded/open. */\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n /** Panel items normalized for display without moving registry resolution into the hook. */\n items: UtilityPanelDisplayItem[];\n /** Number of items. */\n itemCount: number;\n /** Horizontal position (START or END only). */\n position: UtilityPanelPlacement;\n /**\n * The trigger's glyph as the application chose it: the panel's `icon`, else the icon of its ONE item. `undefined`\n * when neither says, and the preset then draws the side-panel glyph of `position`.\n */\n triggerIcon: string | undefined;\n /**\n * The panel's name: the trigger's accessible name and tooltip, and the sheet's title. The title of a single hosted\n * view, the label of a single custom component, or the panel's generic title.\n */\n panelName: string;\n /**\n * The words `panelName` is read from have loaded. Until then the name would be a label KEY — the trigger's\n * accessible name and tooltip — so the preset waits on this as it waits on its own labels.\n */\n isPanelNameReady: boolean;\n /** Current breakpoint for responsive adjustments. */\n currentBreakpoint: string | undefined;\n}\n\n/**\n * The notification centre's contract — a SESSION FEED, not a message history (#412).\n *\n * Four members were removed on 2026-09-08 and each was asserting something the store cannot hold.\n * The store behind this is a `useReducer` with no hydration: it starts empty on every page load, and\n * nothing that arrived while the tab was closed is recoverable.\n *\n * | removed | why it could not be true |\n * |---|---|\n * | `unreadCount` / `handleMarkAllAsRead` | \"unread\" was a function of when the tab OPENED, and marking something read meant nothing — the state died with the page. A badge counting it was counting the current session's arrivals and calling them unread. |\n * | `filter` / `setFilter` | the only filter was ALL vs UNREAD, so it filtered on the read state above. Filtering \"what arrived since this page loaded\" by whether you had glanced at it is not a question anyone has. |\n * | `groupedNotifications` | today / yesterday / older, over a buffer that cannot contain a yesterday. The `older` bucket was unreachable and `yesterday` only fillable by leaving a tab open overnight. |\n *\n * What is left says what it is: the arrivals, newest first, each dismissable, and a way to clear\n * them. Persisting instead was weighed and declined — it creates a per-user personal-data store\n * carrying retention, privacy-classification, subject-export and erasure obligations for message\n * content, which is the real cost, not the table.\n */\nexport interface NotificationCenterBehavior {\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n /** Everything that has arrived since this page loaded, newest first. */\n sessionNotifications: NotificationCenterDisplayNotification[];\n notificationCount: number;\n handleClearAll: () => void;\n dismissNotification: (notificationId: string) => void;\n}\n\nexport interface NotificationCenterDisplayNotification {\n id: string;\n type: Notification['type'];\n source: Notification['source'];\n timestamp: number;\n displayTitle: string;\n displayMessage: string;\n relativeTimeLabel: string;\n iconReference: StandardIconReference;\n nextStep?: Notification['nextStep'];\n}\n\nexport interface QuickActionButtonDisplayItem {\n id: string;\n label: string;\n /** The action's icon as a reference; the preset renders it (#1828). */\n iconReference?: NavigationIconReference;\n displayPolicy?: string;\n onClick: () => void;\n}\n\nexport interface QuickActionButtonBehavior {\n allItems: QuickActionButtonDisplayItem[];\n primaryAction: QuickActionButtonDisplayItem | null;\n menuActions: QuickActionButtonDisplayItem[];\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n handleActionClick: (item: QuickActionButtonDisplayItem) => void;\n hasActions: boolean;\n isNavigationLoading: boolean;\n currentBreakpoint: string | undefined;\n}\n\nexport interface CommandMenuItem {\n id: string;\n label: string;\n shortcut: string;\n /** The command's icon as a reference; the preset renders it (#1828). */\n iconReference?: NavigationIconReference;\n category: string;\n keywords: string[];\n /** Internal policy from config — used by the hook to control grouping/visibility. */\n displayPolicy?: string;\n onExecute: () => void;\n}\n\nexport interface CommandMenuGroup {\n category: string;\n label: string;\n items: CommandMenuItem[];\n}\n\n/**\n * One live omnibox record-search result. Intentionally DISTINCT from\n * {@link CommandMenuItem}: a search result is a resource RECORD (it carries the\n * full summary-mode DTO in `record` + its `resourceType`) so the palette can\n * render it as the resource's summary VIEW (summary card), whereas a\n * `CommandMenuItem` is a static navigation command that only ever renders a\n * label + icon. Merging the two would collapse that semantic distinction and\n * force every static command to carry a nullable record.\n */\nexport interface CommandMenuSearchResultItem {\n id: string;\n /** Resource type of the matched record — drives summary-view + navigation. */\n resourceType: string;\n /** Full summary-mode DTO returned by SEARCH — fed to the summary renderer. */\n record: Record<string, unknown>;\n /** Resolved one-line label (LABEL display mode + summary-card fallback). */\n label: string;\n /**\n * Client-side match terms carried so cmdk's filter never drops a legitimate\n * server hit (always includes the raw query; matches may be on a field absent\n * from the label, e.g. `description`).\n */\n keywords: string[];\n /** Navigate to the matched record's addressable READ view, then close. */\n onExecute: () => void;\n}\n\n/** A group of omnibox search results for one searched resource. */\nexport interface CommandMenuSearchResultGroup {\n category: string;\n label: string;\n /** How each item in this group renders (summary card vs. one-line label). */\n displayMode: ForeignKeyDisplayMode;\n items: CommandMenuSearchResultItem[];\n}\n\n/**\n * Discriminant for {@link CommandMenuPaletteGroup} — whether an entry in the\n * unified, ordered palette list is a static command-category group or a live\n * record-search result group. The two stay DISTINCT types (a command is a\n * navigation target rendering a label; a record carries a full DTO rendering a\n * summary card) — this union only sequences them in one render order, it does\n * not merge their semantics.\n */\nexport enum CommandMenuPaletteGroupKind {\n COMMANDS = 'commands',\n RECORDS = 'records',\n}\n\n/**\n * One entry in the palette's SINGLE ordered group list — either a static\n * command-category group or a live record-search group, tagged with the numeric\n * `order` weight the palette sorted by (lower = higher). Produced by\n * `useCommandMenuBehavior` so the preset renders one uniform, ordered sequence\n * (record groups default above command groups while searching) instead of two\n * hard-coded blocks. The recent-commands group is rendered separately (always\n * pinned to the top) and is not part of this list.\n */\nexport type CommandMenuPaletteGroup =\n | { kind: CommandMenuPaletteGroupKind.COMMANDS; order: number; group: CommandMenuGroup }\n | { kind: CommandMenuPaletteGroupKind.RECORDS; order: number; group: CommandMenuSearchResultGroup };\n\nexport interface CommandMenuBehavior {\n isOpen: boolean;\n handleOpenChange: (open: boolean) => void;\n searchQuery: string;\n setSearchQuery: (query: string) => void;\n commandItems: CommandMenuItem[];\n groupedItems: CommandMenuGroup[];\n recentItems: CommandMenuItem[];\n /**\n * Live record-search result groups (omnibox layer). Empty unless the\n * `COMMAND_MENU` config sets `policy: OMNIBOX` with `searchResources` and the\n * current query meets the minimum length. Each item's `onExecute` navigates\n * to the matched record's READ view. Items render as the resource's summary\n * view (or a one-line label per the resource's `resultDisplay` config).\n */\n searchResultGroups: CommandMenuSearchResultGroup[];\n /**\n * The unified, ORDERED render list the preset iterates: record groups and\n * static command-category groups merged and sorted by a single numeric `order`\n * weight (record groups default above command groups while searching; apps\n * override per record group via `CommandMenuSearchResource.order`, and command\n * categories sequence among themselves via `[COMMAND_MENU].categoryOrder`).\n * The recent-commands group is NOT included here — it is always rendered first,\n * separately. Derived from `groupedItems` + `searchResultGroups` (which remain\n * available as the raw, per-source building blocks).\n */\n orderedGroups: CommandMenuPaletteGroup[];\n /** True while an omnibox record search is in flight for the current query. */\n isSearching: boolean;\n isNavigationLoading: boolean;\n showRecent: boolean;\n showShortcuts: boolean;\n /**\n * Global open-shortcut string (e.g. `'Cmd+K'`) from config, or `undefined`\n * when none is declared. The preset renders it as the trigger's `⌘K` hint.\n */\n openShortcut: string | undefined;\n /**\n * The desktop max-width class the application AUTHORED for the palette dialog (`[COMMAND_MENU].dialogWidth`), passed\n * through unchanged, or `undefined` when it authored none. The default width is the preset's (#1828).\n */\n authoredDialogWidth?: string;\n}\n\nexport interface MenuUserOrgBehavior {\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n isUserAuthenticated: boolean;\n userInitials: string;\n displayName: string;\n email: string;\n avatarUrl: string | undefined;\n currentOrganization: { _id: string; name: string } | undefined;\n /**\n * The organizations the person can switch into. `viaOrganizationName` is present only on a GRANTING\n * organization they work in as a representative (#1597) — the representing organization's name, so the\n * switcher can group granting organizations apart from the person's own organizations and say through whom\n * each is reached. A granting organization appears only while its relationship is live: the organization\n * read behind this list passes the per-request live filter, so an ended or paused relationship drops it\n * from the switcher.\n */\n organizations: { _id: string; name: string; viaOrganizationName?: string }[];\n /**\n * The person's organizations `organizations` does not hold (#2452): the user context carries only the newest 20\n * memberships, so a person in more is offered the rest by search. Counted from the backend's access profile (its\n * organization-wide entries, the population the search returns); `0` without a profile, and whenever every\n * organization is already listed. The switcher shows its search when this is above zero.\n */\n unlistedOrganizationCount: number;\n /** The text typed in the switcher's search; empty when not searching. */\n organizationSearchQuery: string;\n setOrganizationSearchQuery: (query: string) => void;\n /**\n * The search's answer, or `null` while no search applies: the query is shorter than\n * `ORGANIZATION_SEARCH_MIN_CHARS`, or the first answer has not arrived. Found through\n * `GET /organizations/search/mine`, which reads only the caller's own organizations.\n */\n organizationSearchResults: { _id: string; name: string }[] | null;\n isSearchingOrganizations: boolean;\n /** Whether the last search failed; the switcher says so instead of showing an empty result as \"none found\". */\n organizationSearchFailed: boolean;\n /** Dropdown sections to render. The `SETTINGS` entry opens the unified Settings Hub. */\n sections: UserDropdownSection[];\n avatarDisplay: UserDropdownAvatarDisplay;\n showOrgSwitcher: boolean;\n showLogout: boolean;\n /** The Settings Hub itself (no section). Rendered after any authored shortcuts, so the hub is always reachable. */\n settingsTarget: ResolvedNavigationTarget | null;\n /** Authored shortcuts into hub sections (`settingsEntries`), each labelled by the section it opens. */\n settingsTargets: ResolvedNavigationTarget[];\n popupAlignment: { align: HorizontalAlign; side: PlacementSide };\n handleLogout: () => void;\n handleSwitchOrg: (orgId: string) => void;\n handleNavigateToSettingsTarget: (target: ResolvedNavigationTarget) => void;\n}\n\nexport interface MenuBarBehavior {\n containerComponents: ResolvedHostedComponent[];\n /**\n * The identity to render as the bar's HOME affordance. Present ONLY when the menubar config\n * opted in (`brandHeader: true`), mirroring `useSidebarBehavior`'s `brandHeader`: a preset that\n * receives an identity unconditionally can render a mark on a surface the application never asked\n * to brand, and no type would catch it.\n */\n brandHeader?: BrandIdentity;\n /** Whether the current location is home — `aria-current` for the brand header. */\n isHomeActive: boolean;\n /** Home navigation with a fresh navigation start, the same act as the sidebar's brand header. */\n handleHomeClick: () => void;\n items: {\n id: string;\n label: string;\n /** The item's icon as a reference; the preset renders it (#1828). */\n iconReference?: NavigationIconReference;\n group?: string;\n /** Whether this item is the current destination — at most one item is (see `useMenuBarBehavior`). */\n isActive: boolean;\n /** The badge KEY to draw beside the label (`NavigationItemBadge`), when the declaration names one. */\n notificationBadgeRef?: string;\n onExecute: () => void;\n }[];\n menubarConfig: {\n mode: string;\n isOverlay: boolean;\n showMobileLayout: boolean;\n };\n mapToFrontendComponentType: (type: ApplicationLevelComponentType) => FrontendComponentType | null;\n}\n"]}
1
+ {"version":3,"file":"app-shell.schemas.js","sourceRoot":"","sources":["../../../../src/core/app-shell/app-shell.schemas.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAmM1E,MAAM,UAAU,qBAAqB,CAAC,MAAe;IACnD,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,WAAW,IAAI,MAAM,IAAI,aAAa,IAAI,MAAM,CAAC;AAC3G,CAAC;AAwBD,0GAA0G;AAC1G,MAAM,UAAU,uBAAuB,CAAC,MAAe;IACrD,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AACjF,CAAC;AAaD,MAAM,UAAU,0BAA0B,CAAC,MAAe;IACxD,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,SAAS,GAAG,MAAiC,CAAC;IACpD,MAAM,eAAe,GACnB,SAAS,CAAC,QAAQ,KAAK,SAAS;QAChC,SAAS,CAAC,QAAQ,KAAK,mBAAmB,CAAC,KAAK;QAChD,SAAS,CAAC,QAAQ,KAAK,mBAAmB,CAAC,GAAG,CAAC;IACjD,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAErF,OAAO,eAAe,IAAI,YAAY,CAAC;AACzC,CAAC;AA2LD,MAAM,CAAN,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,8CAAa,CAAA;IACb,0EAAyC,CAAA;IACzC,4CAAW,CAAA;AACb,CAAC,EAJW,6BAA6B,KAA7B,6BAA6B,QAIxC;AAmID,MAAM,CAAN,IAAY,+BAIX;AAJD,WAAY,+BAA+B;IACzC,oDAAiB,CAAA;IACjB,gDAAa,CAAA;IACb,oDAAiB,CAAA;AACnB,CAAC,EAJW,+BAA+B,KAA/B,+BAA+B,QAI1C;AA8CD,MAAM,CAAN,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,4CAAiB,CAAA;IACjB,4CAAiB,CAAA;IACjB,4CAAiB,CAAA;IACjB,4CAAiB,CAAA;AACnB,CAAC,EALW,uBAAuB,KAAvB,uBAAuB,QAKlC;AAmPD;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,oDAAqB,CAAA;IACrB,kDAAmB,CAAA;AACrB,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,QAGtC;AAkED,+FAA+F;AAC/F,MAAM,CAAN,IAAY,6BAOX;AAPD,WAAY,6BAA6B;IACvC,sCAAsC;IACtC,4CAAW,CAAA;IACX,wHAAwH;IACxH,sDAAqB,CAAA;IACrB,2FAA2F;IAC3F,kEAAiC,CAAA;AACnC,CAAC,EAPW,6BAA6B,KAA7B,6BAA6B,QAOxC;AA8FD,iGAAiG;AACjG,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,mCAAe,CAAA;AACjB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B","sourcesContent":["import type React from 'react';\nimport type { UseFormReturn } from 'react-hook-form';\nimport type { z } from 'zod';\n\nimport { HorizontalPlacement } from '@wildo-ai/presets-components-models';\nimport type { VerticalPlacement } from '@wildo-ai/presets-components-models';\nimport type { ForeignKeyDisplayMode, ViewportBreakpoint } from '@wildo-ai/zod-decorators';\nimport type { AppScopeFieldDefinition } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\nimport type { ApplicationLevelComponentType, StatusBarItemType, StatusBarPlacement } from '~wildo-frontend-lib/core/config/app-level-components.frontend.schemas';\nimport type {\n QuickSwitcherFieldPresentation,\n UserDropdownAvatarDisplay,\n UserDropdownSection,\n} from '~wildo-frontend-lib/core/config/app-configuration-frontend.schemas';\nimport type { FrontendComponentType, PlacementSide } from '@wildo-ai/presets-components-models';\nimport type { ComponentRegistryRef } from '~wildo-frontend-lib/core/components-registry/component-registry.frontend.schemas';\nimport type { StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport type { LauncherItemTargetKind } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport type { HorizontalAlign, LayoutDirection } from '@wildo-ai/zod-decorators';\nimport type { Notification } from '~wildo-frontend-lib/core/events/NotificationContext';\nimport type { AnyNavigationItem, NavigationIconReference, NavigationZone } from '~wildo-frontend-lib/core/navigation/navigation.schemas';\nimport type { ResolvedControlPanelItem, ResolvedNavigationTarget } from '~wildo-frontend-lib/core/navigation/launcher-resolution';\nimport type { WebSocketStatus } from '~wildo-frontend-lib/core/requests/websockets/WebSocketContext';\nimport type {\n ActivityBarRendering,\n AppModeDefinition,\n ResourceBrowserClickContext,\n SidebarHomeDisplayMode,\n SidebarSection,\n SidebarSectionBehavior,\n SidebarSectionContentKind,\n SidebarSectionInlineCreate,\n SidebarHostedComponent,\n UtilityPanelItem,\n} from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport type { BrandAssetTheme } from '@wildo-ai/saas-models';\nimport type { BrandIdentity } from '~wildo-frontend-lib/core/branding/useBrandIdentity';\nimport { SidebarResponsivePolicy } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\nimport type { HostedTriggerAppearance } from '~wildo-frontend-lib/core/config/launcher-items.frontend.schemas';\n\n\n/** Navigation item with optional children for hierarchical rendering */\nexport type HierarchicalNavigationItem = AnyNavigationItem & {\n children?: AnyNavigationItem[];\n /**\n * Canonical favorite identity for FAVORITES-section copies. A favorited item\n * renders twice (its origin section AND the favorites section); the favorites\n * copy carries a DISTINCT `id` (so the exactly-one-active invariant keeps a\n * single highlighted row) and `favoriteId` = the origin item's id — the key\n * the favorites store persists and the star toggle operates on. Absent on\n * origin items (their own `id` IS the favorite key).\n */\n favoriteId?: string;\n};\n\n/**\n * A hosted component resolved from a surface's `hostedComponents` config entry,\n * ready for the preset to mount. Shared by BOTH the menubar and the sidebar —\n * they run one hosting pipeline (`resolveHostedComponents`) so the container\n * inversion model, interaction ownership, and per-placement width thread through\n * a single implementation rather than being duplicated per surface.\n *\n * `instanceId` is SURFACE-QUALIFIED (e.g. `menubar:command_menu-0`) so the\n * shell-level interaction owner can disambiguate the same component hosted in\n * two surfaces at once (a command-menu trigger in the menubar AND the sidebar).\n */\nexport interface ResolvedHostedComponent {\n instanceId: string;\n component: ApplicationLevelComponentType;\n frontendComponentType: FrontendComponentType;\n /**\n * Horizontal zone (menubar) or vertical end (sidebar). Always concrete:\n * `resolveHostedComponents` normalizes an omitted config `placement` to the\n * surface's default zone (menubar START / sidebar TOP), so preset-side\n * per-zone equality filters can never silently drop a hosted component.\n */\n placement: HorizontalPlacement | VerticalPlacement;\n presetName?: string;\n /** Per-placement trigger width override (see `MenubarHostedComponent.triggerWidth`). */\n triggerWidth?: string | number;\n /** Per-placement trigger appearance (see `HostedTriggerAppearance`). */\n triggerAppearance?: HostedTriggerAppearance;\n}\n\n/**\n * Lightweight rendering props extracted from a sidebar section definition.\n * Used by the rendering layer (sidebar preset) to render section headers,\n * collapse behavior, and inline create — without coupling to the config schema.\n */\nexport interface SectionRenderProps {\n ref: string;\n label?: string;\n icon?: string;\n /** Whether the section header (label + icon) is rendered. Defaults to `true`. */\n showLabel: boolean;\n collapsible: boolean;\n defaultCollapsed: boolean;\n /**\n * Primary navigation group — rendered at the top of the sidebar (no header,\n * not collapsible), sharing that group with the framework Home row when\n * `homeDisplayMode` is `NAVIGATION_ITEM`. See\n * `SidebarSection_NavigationList.isPrimary`.\n */\n isPrimary?: boolean;\n behavior?: SidebarSectionBehavior;\n inlineCreate?: SidebarSectionInlineCreate;\n inlineCreateResourceType?: string;\n nested?: boolean;\n maxNestingDepth?: number;\n}\n\n/**\n * A grouped sidebar section for rendering.\n *\n * When `contentKind` is undefined or `NAVIGATION_LIST`, this is a traditional\n * navigation item list. When `contentKind` is a different variant, the section\n * renders specialized content and `items` will be empty.\n */\nexport interface SectionGroup {\n section: SectionRenderProps;\n items: HierarchicalNavigationItem[];\n moreMenuItems: HierarchicalNavigationItem[];\n /**\n * Discriminant from the new per-launcher config. When undefined, this section\n * was produced by the old scan-based path (treat as NAVIGATION_LIST).\n */\n contentKind?: SidebarSectionContentKind;\n /** RESOURCE_BROWSER: resource type to browse. */\n resourceType?: string;\n /** RESOURCE_BROWSER: operation override. */\n operation?: string;\n /** RESOURCE_BROWSER: operation variant. */\n operationVariant?: string;\n /** RESOURCE_BROWSER: click/navigation operation override. */\n navigateOperation?: string;\n /** RESOURCE_BROWSER: click/navigation operation variant. */\n navigateOperationVariant?: string;\n /** RESOURCE_BROWSER: client-side instance filter. */\n instanceFilter?: (instance: Record<string, unknown>) => boolean;\n /** RESOURCE_BROWSER: custom click handler. */\n onInstanceClick?: (context: ResourceBrowserClickContext) => void;\n /** GUIDANCE_WIDGET: guidance component ref. */\n guidanceRef?: string;\n /** CUSTOM_COMPONENT: custom component ref. */\n componentRef?: string;\n}\n\n/**\n * Sidebar config object — matches the transformed shape from `UIContext`\n * (`ViewportAwareAppLevelComponentConfigurationSchema` → transformer →\n * `{ placement, collapsible, policy }`).\n *\n * The raw model uses `responsivePolicy`, but the transformer renames it\n * to `policy` in the runtime config.\n */\nexport interface SidebarConfigObject {\n placement: HorizontalPlacement.START | HorizontalPlacement.END;\n collapsible: boolean;\n /**\n * Starting rail state for a visitor with NO stored preference. Absent means\n * the framework default, expanded. A persisted\n * `LOCAL_STORAGE_KEYS.SIDEBAR_COLLAPSED` always wins over it — this is a\n * starting position, not a lock.\n */\n defaultCollapsed?: boolean;\n policy: SidebarResponsivePolicy;\n /**\n * Viewport threshold at (or below) which the responsive `policy` applies.\n * Authored as `responsiveBreakpoint` in the raw model and carried through the\n * UIContext transformer's rest-spread. Defaults to `ViewportBreakpoint.MOBILE`\n * (the Zod schema default) when absent.\n */\n responsiveBreakpoint?: ViewportBreakpoint;\n /**\n * How the sidebar surfaces HOME (hidden / pinned brand header / navigation\n * row). Absent means the framework default, `NAVIGATION_ITEM`, applied by\n * `useSidebarBehavior`.\n */\n homeDisplayMode?: SidebarHomeDisplayMode;\n /**\n * Pins which brand-mark variant the BRAND_HEADER mode renders (e.g.\n * `MONOCHROME`). Absent means adaptive light/dark.\n */\n brandMarkTheme?: BrandAssetTheme;\n /** Per-launcher content declarations — discriminated union on `contentKind`. */\n contentSections?: SidebarSection[];\n /** Components hosted inside the sidebar via container inversion (mirror of menubar `hostedComponents`). */\n hostedComponents?: SidebarHostedComponent[];\n defaultSection?: string;\n /** Desktop sidebar width in px. Defaults to 256. */\n width?: number;\n /** Mobile sidebar width in px. Defaults to 280. */\n mobileWidth?: number;\n /** Desktop collapsed width in px. Defaults to 64. */\n collapsedWidth?: number;\n /** Mobile collapsed width in px. Defaults to 56. */\n mobileCollapsedWidth?: number;\n}\n\nexport function isSidebarConfigObject(config: unknown): config is SidebarConfigObject {\n return typeof config === 'object' && config !== null && 'placement' in config && 'collapsible' in config;\n}\n\n/**\n * The object form of the status bar's configuration. The configuration is `boolean | StatusBarPlacement (the\n * string shorthand) | StatusBarConfigObject`.\n */\nexport interface StatusBarConfigObject {\n placement?: StatusBarPlacement;\n showMemoryUsage?: boolean;\n showNotificationCount?: boolean;\n /**\n * Whether the bar reports the realtime connection. It speaks only while the connection is degraded (connecting,\n * reconnecting, lost) and says nothing while connected.\n */\n showConnectionStatus?: boolean;\n showConnectionStatusOnMobile?: boolean;\n backgroundClassName?: string;\n textClassName?: string;\n showBorder?: boolean;\n height?: number;\n statusItems?: StatusBarConfigItem[];\n style?: React.CSSProperties;\n}\n\n/** Narrowing guard for the object form, distinguishing it from the boolean and string-shorthand forms. */\nexport function isStatusBarConfigObject(config: unknown): config is StatusBarConfigObject {\n return typeof config === 'object' && config !== null && !Array.isArray(config);\n}\n\nexport type UtilityPanelPlacement =\n | HorizontalPlacement.START\n | HorizontalPlacement.END;\n\nexport interface UtilityPanelConfigObject {\n items?: UtilityPanelItem[];\n position?: UtilityPanelPlacement;\n /** The trigger's glyph (a standard icon reference). See the `UTILITY_PANEL` config schema. */\n icon?: string;\n}\n\nexport function isUtilityPanelConfigObject(config: unknown): config is UtilityPanelConfigObject {\n if (typeof config !== 'object' || config === null || Array.isArray(config)) {\n return false;\n }\n\n const candidate = config as Record<string, unknown>;\n const isValidPosition =\n candidate.position === undefined ||\n candidate.position === HorizontalPlacement.START ||\n candidate.position === HorizontalPlacement.END;\n const isValidItems = candidate.items === undefined || Array.isArray(candidate.items);\n\n return isValidPosition && isValidItems;\n}\n\n\n// ---------------------------------------------------------------------------\n// Behavior hook return types\n// ---------------------------------------------------------------------------\n\n/**\n * Standalone navigation behavioral utilities — active-state checking, click dispatch, and home navigation.\n *\n * A row's display policy (`SidebarItemDisplayPolicy`) is read ONCE, where the sidebar partitions a section's rows\n * into listed rows and its \"More\" menu (`useSidebarBehavior`). A second reader here, typed with an unnamed string\n * union and never called, was removed so the two could not disagree.\n *\n * Does NOT include items — consumers obtain items from per-launcher\n * resolution or auto-items.\n *\n * `handleNavigationClick` accepts `launcher` as a second parameter since\n * this interface is not scoped to a single launcher.\n */\nexport interface NavigationBehaviors {\n isNavigationItemActive: (urlPath: string) => boolean;\n handleNavigationClick: (item: AnyNavigationItem, launcher: ApplicationLevelComponentType) => void;\n handleHomeClick: () => void;\n isHomeActive: boolean;\n}\n\nexport interface SidebarBehavior {\n groupedSections: SectionGroup[];\n /**\n * Components hosted in the sidebar (container inversion), resolved from\n * `[SIDEBAR].hostedComponents` through the SAME pipeline the menubar uses.\n * The preset resolves each via the component registry and mounts it with the\n * shell-level interaction-owner props.\n */\n hostedComponents: ResolvedHostedComponent[];\n isCollapsed: boolean;\n isHomeActive: boolean;\n dimensions: { width: number; collapsedWidth: number };\n sidebarConfig: {\n isCollapsible: boolean;\n responsivePolicy: SidebarResponsivePolicy;\n currentWidth: number;\n };\n isNavigationLoading: boolean;\n hasItems: boolean;\n placement: HorizontalPlacement;\n\n /**\n * How the sidebar must surface HOME — hidden, the pinned brand header, or a\n * navigation row. Resolved from config with the framework default applied, so\n * a preset never re-derives it.\n */\n homeDisplayMode: SidebarHomeDisplayMode;\n /**\n * App name + resolved brand-asset URL for the pinned header. Present ONLY in\n * `SidebarHomeDisplayMode.BRAND_HEADER`; `logoUrl` is itself optional because\n * an application may not have generated a brand yet.\n */\n brandHeader?: BrandIdentity;\n\n /**\n * `true` when the current viewport is at (or below) the sidebar's configured\n * `responsiveBreakpoint` AND the responsive policy is `BURGER`. In this mode the\n * sidebar renders NOTHING inline (width 0) and instead opens as an overlay drawer\n * (`isMobileDrawerOpen`) toggled by the menubar burger / `HOTKEY_SIDEBAR_TOGGLE`.\n */\n isMobileDrawerMode: boolean;\n /** Drawer open state — only meaningful while `isMobileDrawerMode` is true. */\n isMobileDrawerOpen: boolean;\n /** Closes the mobile drawer (backdrop click, Escape, post-navigation dismiss). */\n closeMobileDrawer: () => void;\n\n /**\n * Active-state check keyed on the ITEM's resolved `id`, not on the raw path:\n * two DISTINCT items sharing an identical `urlPath` (e.g. an item and its\n * favorites-section copy, which carries a `favorite-` prefixed id) must not\n * both highlight — one id (the first in section order carrying the winning\n * path) is elected (frontend-ux-quality-audit E2). Caveat: resolved ids are\n * deterministic per TARGET (`resolved-<type>-<op>-<variant>`), so declaring\n * the SAME launcher target in two sections yields two rows with one shared\n * id, and both still highlight — dedupe such declarations in config instead\n * (WT once declared Todos twice and hit exactly this).\n */\n isNavigationItemActive: (item: { id: string; urlPath?: string }) => boolean;\n isSectionCollapsed: (section: SectionRenderProps) => boolean;\n isItemCollapsed: (itemId: string) => boolean;\n\n handleNavigationClick: (item: AnyNavigationItem) => void;\n handleHomeClick: () => void;\n handleToggleCollapse: () => void;\n /**\n * Record a section's collapsed state. A SETTER rather than a toggle, deliberately: the\n * effective collapsed state is resolved from a stored entry, then `defaultSection`, then\n * `section.defaultCollapsed`, so a toggle that negated only the stored entry ignored the\n * first interaction on any section declaring `defaultCollapsed: true` (#631). Pass the value\n * the collapsible primitive gives you; do not re-derive it.\n */\n handleSetSectionCollapsed: (sectionRef: string, collapsed: boolean) => void;\n handleToggleItemCollapse: (itemId: string) => void;\n\n /**\n * `true` when the item is in the user's favorites. Accepts either an origin\n * item (keyed by its own `id`) or a favorites-section copy (keyed by its\n * `favoriteId`).\n */\n isItemFavorite: (item: Pick<HierarchicalNavigationItem, 'id' | 'favoriteId'>) => boolean;\n /**\n * Toggles the item in the persisted favorites set (star affordance). The\n * favorites section re-populates immediately; storage is machine-local\n * (`LOCAL_STORAGE_KEYS.SIDEBAR_FAVORITES`).\n */\n handleToggleItemFavorite: (item: Pick<HierarchicalNavigationItem, 'id' | 'favoriteId'>) => void;\n /**\n * Whether any `SidebarSectionBehavior.FAVORITES` section is configured — the\n * preset only offers the star affordance when favoriting has a destination.\n */\n hasFavoritesSection: boolean;\n\n inlineCreate: {\n activeSection: string | null;\n value: string;\n start: (sectionRef: string) => void;\n cancel: () => void;\n submit: (sectionRef: string, resourceType?: string) => void;\n setValue: (value: string) => void;\n };\n}\n\nexport interface AppShellLayoutInfo {\n hasMenubar: boolean;\n hasSidebar: boolean;\n hasStatusBar: boolean;\n hasToolbar: boolean;\n hasActivityBar: boolean;\n hasQuickActionButton: boolean;\n hasUtilityPanel: boolean;\n /**\n * The menubar or the sidebar hosts the quick-action button at the current breakpoint, so the content area draws\n * no floating one beside it (`isHostedInShellChrome`). Hosting moves a component; it never copies it.\n */\n quickActionButtonHostedInChrome: boolean;\n /** The menubar or the sidebar hosts the utility panel's trigger at the current breakpoint, so the shell edge does not. */\n utilityPanelHostedInChrome: boolean;\n sidebarPlacement: HorizontalPlacement.START | HorizontalPlacement.END;\n statusBarPlacement: StatusBarPlacement;\n utilityPanelPlacement: UtilityPanelPlacement;\n isLayoutReady: boolean;\n}\n\nexport interface PublicShellLayoutInfo {\n useCardLayout: boolean;\n isReady: boolean;\n /**\n * The identity to present above the public card, or `undefined` when the application has not\n * opted in via `publicShellIdentityMode`.\n *\n * EXPOSED only in the opted-in mode rather than always, mirroring `useSidebarBehavior`'s\n * `brandHeader`: a preset that receives an identity unconditionally can render a mark on a\n * surface the application never asked to brand, and no type would catch it.\n */\n brandHeader?: BrandIdentity;\n /** Tenant accent for the identity ornament only; never replaces accessible application theme tokens. */\n brandAccentColor?: string;\n}\n\nexport interface ToolbarDisplayItem {\n id: string;\n label: string;\n /** The tool's icon as a reference; the preset renders it (#1828). */\n iconReference?: NavigationIconReference;\n iconOnly?: boolean;\n onClick: () => void;\n}\n\nexport interface ToolbarBehavior {\n tools: ToolbarDisplayItem[];\n toolbarConfig: {\n placement: 'top' | 'bottom';\n compact: boolean;\n showSeparator: boolean;\n hideOnMobile: boolean;\n };\n shouldRender: boolean;\n currentBreakpoint: string | undefined;\n}\n\nexport enum QuickSwitcherFieldControlKind {\n ENUM = 'enum',\n RESOURCE_REFERENCE = 'resource_reference',\n RAW = 'raw',\n}\n\nexport interface QuickSwitcherResolvedField {\n fieldId: string;\n /** Guaranteed non-empty (config label → resource title → humanized field id → field id). */\n label: string;\n schema: z.ZodTypeAny;\n valueSchema: z.ZodTypeAny;\n disabled: boolean;\n isMultiple: boolean;\n controlKind: QuickSwitcherFieldControlKind;\n /**\n * Explicit target for `RESOURCE_REFERENCE` controls whose schema carries no\n * `isForeignKey` metadata — i.e. the primary-key fallback, where the switcher\n * is by definition selecting an instance of the scope field's `resourceType`.\n * `undefined` for FK-decorated schemas (the FK metadata names the target).\n */\n targetResourceType?: string;\n /** Input placeholder — localized resource title, falling back to `label`. Non-empty. */\n placeholder: string;\n /**\n * How each dropdown option renders — the declared\n * `appScope.fields[].optionDisplayMode`, defaulted to `LABEL`. Reuses the\n * framework's FK-rendering vocabulary: `LABEL` is the resource's own display\n * label, `SUMMARY` is its summary card.\n */\n optionDisplayMode: ForeignKeyDisplayMode;\n /**\n * Clear this field's ambient scope. A scope is inherently OPTIONAL — \"no list\n * selected\" is a first-class state the collection surfaces already produce —\n * so the control always offers an explicit way back to it rather than relying\n * on the combobox's undiscoverable re-click-to-toggle.\n */\n onClear: () => void;\n /** Whether anything is currently selected (drives the clear affordance). */\n hasValue: boolean;\n /**\n * How the closed control presents — the declared\n * `appScope.fields[].presentation`, defaulted to `CONTROL_ONLY`.\n *\n * Carried as DATA, never as a rendered node: resolving the resource's icon is\n * component-registry work, so the preset does it. Behavior hooks in this\n * framework never return `ReactNode` nor perform registry resolution: an icon\n * is a reference (`NavigationIconReference`), and a class or style a hook\n * returns is only ever one the application authored, passed through (#1828).\n */\n presentation: QuickSwitcherFieldPresentation;\n definition: AppScopeFieldDefinition;\n}\n\nexport interface QuickSwitcherBehavior {\n fields: QuickSwitcherResolvedField[];\n formMethods: UseFormReturn;\n layoutDirection: 'horizontal' | 'vertical';\n /**\n * Monotonically increasing counter — incremented when the\n * `HOTKEY_QUICK_SWITCHER_OPEN` event fires. Presets should watch\n * this value and focus the first enabled field when it changes.\n */\n focusTrigger: number;\n}\n\nexport interface StatusBarBehavior {\n totalBadgeCount: number;\n connectionStatus: WebSocketStatus;\n showConnectionStatus: boolean;\n showConnectionStatusOnMobile: boolean;\n shouldShowConnectionStatus: boolean;\n showNotificationCount: boolean;\n shouldShowNotificationCount: boolean;\n showMemoryUsage: boolean;\n memoryUsageLabel: string | null;\n notificationCountLabel: string;\n notificationCountAriaLabel: string;\n connectionStatusLabel: string;\n statusItems: StatusBarDisplayItem[];\n dimensions: { height: number };\n statusBarConfig: {\n isTop: boolean;\n isBottom: boolean;\n isMobile: boolean;\n /**\n * The shell draws one continuous canvas (`ShellAppearance.CONTINUOUS`): the bar is a transparent strip of it rather\n * than a sunken slab. Data, so the preset chooses the classes (#1828); the hook used to return them.\n */\n isContinuousShell: boolean;\n showBorder: boolean;\n };\n /**\n * What the application AUTHORED for the bar's appearance (`[STATUS_BAR].backgroundClassName`, `textClassName`,\n * `style`), passed through unchanged, or `undefined` when it authored none. The hook takes no styling decision of\n * its own: the defaults live in the preset, and a renderer that is not the DOM ignores these values.\n */\n authoredAppearance?: StatusBarAuthoredAppearance;\n currentBreakpoint: string | undefined;\n}\n\n/** The appearance overrides an application authored on the status bar's configuration object. */\nexport interface StatusBarAuthoredAppearance {\n backgroundClassName?: string;\n textClassName?: string;\n style?: React.CSSProperties;\n}\n\nexport interface StatusBarConfigItemBase {\n id: string;\n label: string;\n type: StatusBarItemType;\n icon?: string;\n value?: string | number;\n}\n\nexport interface StatusBarConfigItem_Link extends StatusBarConfigItemBase {\n type: StatusBarItemType.LINK;\n href: string;\n}\n\nexport interface StatusBarConfigItem_Button extends StatusBarConfigItemBase {\n type: StatusBarItemType.BUTTON;\n onClick: () => void;\n}\n\nexport interface StatusBarConfigItem_Text extends StatusBarConfigItemBase {\n type: StatusBarItemType.TEXT;\n}\n\nexport type StatusBarConfigItem =\n | StatusBarConfigItem_Link\n | StatusBarConfigItem_Button\n | StatusBarConfigItem_Text;\n\nexport enum StatusBarDisplayInteractionType {\n STATIC = 'static',\n LINK = 'link',\n BUTTON = 'button',\n}\n\nexport interface StatusBarDisplayInteraction_Static {\n type: StatusBarDisplayInteractionType.STATIC;\n}\n\nexport interface StatusBarDisplayInteraction_Link {\n type: StatusBarDisplayInteractionType.LINK;\n href: string;\n}\n\nexport interface StatusBarDisplayInteraction_Button {\n type: StatusBarDisplayInteractionType.BUTTON;\n onClick: () => void;\n}\n\nexport type StatusBarDisplayInteraction =\n | StatusBarDisplayInteraction_Static\n | StatusBarDisplayInteraction_Link\n | StatusBarDisplayInteraction_Button;\n\nexport interface StatusBarDisplayItem {\n id: string;\n label: string;\n iconReference?: string;\n valueText?: string;\n interaction: StatusBarDisplayInteraction;\n}\n\nexport interface ActivityBarLayout {\n direction: LayoutDirection;\n borderSide: PlacementSide;\n tooltipSide: PlacementSide;\n orientation: LayoutDirection;\n}\n\nexport interface ActivityBarBehavior {\n availableModes: AppModeDefinition[];\n activeMode: string | null;\n setActiveMode: (mode: string) => void;\n hasModes: boolean;\n activeRenderingMode: ActivityBarRendering;\n layout: ActivityBarLayout;\n isNavigationLoading: boolean;\n}\n\nexport enum ControlPanelControlType {\n BUTTON = 'button',\n TOGGLE = 'toggle',\n SLIDER = 'slider',\n SELECT = 'select',\n}\n\nexport interface ControlPanelBehavior {\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n groupedItems: Record<string, ControlPanelNavigationItem[]>;\n sections: ControlPanelSection[];\n controls: ControlPanelDisplayControl[];\n handleItemClick: (item: ControlPanelNavigationItem) => void;\n sheetSide: PlacementSide;\n isNavigationLoading: boolean;\n navigationItemCount: number;\n currentBreakpoint: string | undefined;\n}\n\nexport type ControlPanelNavigationItem = ResolvedControlPanelItem;\n\nexport interface ControlPanelSection {\n id: string;\n label: string;\n items: ControlPanelNavigationItem[];\n}\n\nexport interface ControlPanelDisplayControlBase {\n id: string;\n label: string;\n type: ControlPanelControlType;\n disabled: boolean;\n}\n\nexport interface ControlPanelDisplayControl_Button extends ControlPanelDisplayControlBase {\n type: ControlPanelControlType.BUTTON;\n onTrigger: () => void;\n}\n\nexport interface ControlPanelDisplayControl_Toggle extends ControlPanelDisplayControlBase {\n type: ControlPanelControlType.TOGGLE;\n value: boolean;\n onToggle: () => void;\n}\n\nexport interface ControlPanelDisplayControl_SelectOption {\n label: string;\n value: unknown;\n isSelected: boolean;\n onSelect: () => void;\n}\n\nexport interface ControlPanelDisplayControl_Select extends ControlPanelDisplayControlBase {\n type: ControlPanelControlType.SELECT;\n value?: unknown;\n options: ControlPanelDisplayControl_SelectOption[];\n}\n\nexport interface ControlPanelDisplayControl_Slider extends ControlPanelDisplayControlBase {\n type: ControlPanelControlType.SLIDER;\n value: number;\n min: number;\n max: number;\n step: number;\n onValueChange: (value: number) => void;\n}\n\nexport type ControlPanelDisplayControl =\n | ControlPanelDisplayControl_Button\n | ControlPanelDisplayControl_Toggle\n | ControlPanelDisplayControl_Select\n | ControlPanelDisplayControl_Slider;\n\n/**\n * One panel item, normalized for display, discriminated the same way its config is (#504).\n *\n * `resolvedComponentRef` and `resolvedViewRef` are both nullable and both mean the SAME thing: the item\n * names something this panel cannot host, and the preset must show that rather than render chrome\n * that looks like a component with nothing to say. Keeping the two kinds apart here is what stops\n * the preset guessing which ref an item meant.\n */\nexport type UtilityPanelDisplayItem =\n | {\n kind: LauncherItemTargetKind.CUSTOM_COMPONENT;\n componentRef: string;\n /**\n * The registry key the preset renders, or `null` when nothing is registered under that ref in\n * the default preset. Engine AND application components resolve here (#549); it used to be\n * `componentType: FrontendComponentType | null`, which made every application component `null`.\n */\n resolvedComponentRef: ComponentRegistryRef | null;\n icon: string;\n label: string;\n }\n | {\n kind: LauncherItemTargetKind.VIEW;\n viewRef: string;\n /** `null` when no declared view carries that ref, so an unknown ref is reported and not rendered blank. */\n resolvedViewRef: string | null;\n icon: string;\n label: string;\n };\n\nexport interface UtilityPanelBehavior {\n /** Whether the panel is expanded/open. */\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n /** Panel items normalized for display without moving registry resolution into the hook. */\n items: UtilityPanelDisplayItem[];\n /** Number of items. */\n itemCount: number;\n /** Horizontal position (START or END only). */\n position: UtilityPanelPlacement;\n /**\n * The trigger's glyph as the application chose it: the panel's `icon`, else the icon of its ONE item. `undefined`\n * when neither says, and the preset then draws the side-panel glyph of `position`.\n */\n triggerIcon: string | undefined;\n /**\n * The panel's name: the trigger's accessible name and tooltip, and the sheet's title. The title of a single hosted\n * view, the label of a single custom component, or the panel's generic title.\n */\n panelName: string;\n /**\n * The words `panelName` is read from have loaded. Until then the name would be a label KEY — the trigger's\n * accessible name and tooltip — so the preset waits on this as it waits on its own labels.\n */\n isPanelNameReady: boolean;\n /** Current breakpoint for responsive adjustments. */\n currentBreakpoint: string | undefined;\n}\n\n/**\n * The notification centre's contract — a SESSION FEED, not a message history (#412).\n *\n * Four members were removed on 2026-09-08 and each was asserting something the store cannot hold.\n * The store behind this is a `useReducer` with no hydration: it starts empty on every page load, and\n * nothing that arrived while the tab was closed is recoverable.\n *\n * | removed | why it could not be true |\n * |---|---|\n * | `unreadCount` / `handleMarkAllAsRead` | \"unread\" was a function of when the tab OPENED, and marking something read meant nothing — the state died with the page. A badge counting it was counting the current session's arrivals and calling them unread. |\n * | `filter` / `setFilter` | the only filter was ALL vs UNREAD, so it filtered on the read state above. Filtering \"what arrived since this page loaded\" by whether you had glanced at it is not a question anyone has. |\n * | `groupedNotifications` | today / yesterday / older, over a buffer that cannot contain a yesterday. The `older` bucket was unreachable and `yesterday` only fillable by leaving a tab open overnight. |\n *\n * What is left says what it is: the arrivals, newest first, each dismissable, and a way to clear\n * them. Persisting instead was weighed and declined — it creates a per-user personal-data store\n * carrying retention, privacy-classification, subject-export and erasure obligations for message\n * content, which is the real cost, not the table.\n */\nexport interface NotificationCenterBehavior {\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n /** Everything that has arrived since this page loaded, newest first. */\n sessionNotifications: NotificationCenterDisplayNotification[];\n notificationCount: number;\n handleClearAll: () => void;\n dismissNotification: (notificationId: string) => void;\n}\n\nexport interface NotificationCenterDisplayNotification {\n id: string;\n type: Notification['type'];\n source: Notification['source'];\n timestamp: number;\n displayTitle: string;\n displayMessage: string;\n relativeTimeLabel: string;\n iconReference: StandardIconReference;\n nextStep?: Notification['nextStep'];\n}\n\nexport interface QuickActionButtonDisplayItem {\n id: string;\n label: string;\n /** The action's icon as a reference; the preset renders it (#1828). */\n iconReference?: NavigationIconReference;\n displayPolicy?: string;\n onClick: () => void;\n}\n\nexport interface QuickActionButtonBehavior {\n allItems: QuickActionButtonDisplayItem[];\n primaryAction: QuickActionButtonDisplayItem | null;\n menuActions: QuickActionButtonDisplayItem[];\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n handleActionClick: (item: QuickActionButtonDisplayItem) => void;\n hasActions: boolean;\n isNavigationLoading: boolean;\n currentBreakpoint: string | undefined;\n}\n\nexport interface CommandMenuItem {\n id: string;\n label: string;\n shortcut: string;\n /** The command's icon as a reference; the preset renders it (#1828). */\n iconReference?: NavigationIconReference;\n category: string;\n keywords: string[];\n /** Internal policy from config — used by the hook to control grouping/visibility. */\n displayPolicy?: string;\n onExecute: () => void;\n}\n\nexport interface CommandMenuGroup {\n category: string;\n label: string;\n items: CommandMenuItem[];\n}\n\n/**\n * One live omnibox record-search result. Intentionally DISTINCT from\n * {@link CommandMenuItem}: a search result is a resource RECORD (it carries the\n * full summary-mode DTO in `record` + its `resourceType`) so the palette can\n * render it as the resource's summary VIEW (summary card), whereas a\n * `CommandMenuItem` is a static navigation command that only ever renders a\n * label + icon. Merging the two would collapse that semantic distinction and\n * force every static command to carry a nullable record.\n */\nexport interface CommandMenuSearchResultItem {\n id: string;\n /** Resource type of the matched record — drives summary-view + navigation. */\n resourceType: string;\n /** Full summary-mode DTO returned by SEARCH — fed to the summary renderer. */\n record: Record<string, unknown>;\n /** Resolved one-line label (LABEL display mode + summary-card fallback). */\n label: string;\n /**\n * Client-side match terms the behavior hook ranks the result by (#1828), carried so the match never drops a legitimate\n * server hit (always includes the raw query; matches may be on a field absent from the label, e.g. `description`).\n */\n keywords: string[];\n /** Navigate to the matched record's addressable READ view, then close. */\n onExecute: () => void;\n}\n\n/** A group of omnibox search results for one searched resource. */\nexport interface CommandMenuSearchResultGroup {\n category: string;\n label: string;\n /** How each item in this group renders (summary card vs. one-line label). */\n displayMode: ForeignKeyDisplayMode;\n items: CommandMenuSearchResultItem[];\n}\n\n/**\n * Discriminant for {@link CommandMenuPaletteGroup} — whether an entry in the\n * unified, ordered palette list is a static command-category group or a live\n * record-search result group. The two stay DISTINCT types (a command is a\n * navigation target rendering a label; a record carries a full DTO rendering a\n * summary card) — this union only sequences them in one render order, it does\n * not merge their semantics.\n */\nexport enum CommandMenuPaletteGroupKind {\n COMMANDS = 'commands',\n RECORDS = 'records',\n}\n\n/**\n * One entry in the palette's SINGLE ordered group list — either a static\n * command-category group or a live record-search group, tagged with the numeric\n * `order` weight the palette sorted by (lower = higher). Produced by\n * `useCommandMenuBehavior` so the preset renders one uniform, ordered sequence\n * (record groups default above command groups while searching) instead of two\n * hard-coded blocks. The recent-commands group is rendered separately (always\n * pinned to the top) and is not part of this list.\n */\nexport type CommandMenuPaletteGroup =\n | { kind: CommandMenuPaletteGroupKind.COMMANDS; order: number; group: CommandMenuGroup }\n | { kind: CommandMenuPaletteGroupKind.RECORDS; order: number; group: CommandMenuSearchResultGroup };\n\nexport interface CommandMenuBehavior {\n isOpen: boolean;\n handleOpenChange: (open: boolean) => void;\n searchQuery: string;\n setSearchQuery: (query: string) => void;\n commandItems: CommandMenuItem[];\n groupedItems: CommandMenuGroup[];\n /** The recent commands MATCHING `searchQuery`, best match first (all of them, in recency order, while it is empty). */\n recentItems: CommandMenuItem[];\n /**\n * Live record-search result groups (omnibox layer). Empty unless the\n * `COMMAND_MENU` config sets `policy: OMNIBOX` with `searchResources` and the\n * current query meets the minimum length. Each item's `onExecute` navigates\n * to the matched record's READ view. Items render as the resource's summary\n * view (or a one-line label per the resource's `resultDisplay` config).\n */\n searchResultGroups: CommandMenuSearchResultGroup[];\n /**\n * The unified, ORDERED render list the preset iterates: record groups and\n * static command-category groups merged and sorted by a single numeric `order`\n * weight (record groups default above command groups while searching; apps\n * override per record group via `CommandMenuSearchResource.order`, and command\n * categories sequence among themselves via `[COMMAND_MENU].categoryOrder`).\n * The recent-commands group is NOT included here — it is always rendered first,\n * separately. Derived from `groupedItems` + `searchResultGroups` (which remain\n * available as the raw, per-source building blocks).\n *\n * Text search is the hook's (#1828): while `searchQuery` is not empty, each command group holds only the commands\n * matching it, best match first (`commandScore`, the scorer `cmdk` uses), and a command group matching nothing is\n * left out. Record groups are the server's answer, ranked by the same match (a result carries the query it was found\n * for among its keywords), and a record group matching nothing (the previous answer, while a newer query is typed) is\n * left out too. A renderer shows these lists as they are and filters nothing.\n */\n orderedGroups: CommandMenuPaletteGroup[];\n /** True while an omnibox record search is in flight for the current query. */\n isSearching: boolean;\n isNavigationLoading: boolean;\n showRecent: boolean;\n showShortcuts: boolean;\n /**\n * Global open-shortcut string (e.g. `'Cmd+K'`) from config, or `undefined`\n * when none is declared. The preset renders it as the trigger's `⌘K` hint.\n */\n openShortcut: string | undefined;\n /**\n * The desktop max-width class the application AUTHORED for the palette dialog (`[COMMAND_MENU].dialogWidth`), passed\n * through unchanged, or `undefined` when it authored none. The default width is the preset's (#1828).\n */\n authoredDialogWidth?: string;\n}\n\n/** Which group of the organization switcher a {@link OrganizationSwitcherGroup} is (#1828). */\nexport enum OrganizationSwitcherGroupKind {\n /** The person's own organizations. */\n OWN = 'own',\n /** Granting organizations the person works in as a representative (#1597); each names its representing organization. */\n GRANTING = 'granting',\n /** The organization search's answer, which replaces both groups while a search applies. */\n SEARCH_RESULTS = 'search_results',\n}\n\n/** One group of the organization switcher. */\nexport interface OrganizationSwitcherGroup {\n kind: OrganizationSwitcherGroupKind;\n organizations: { _id: string; name: string; viaOrganizationName?: string }[];\n}\n\nexport interface MenuUserOrgBehavior {\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n isUserAuthenticated: boolean;\n userInitials: string;\n displayName: string;\n email: string;\n avatarUrl: string | undefined;\n currentOrganization: { _id: string; name: string } | undefined;\n /**\n * The organizations the person can switch into. `viaOrganizationName` is present only on a GRANTING\n * organization they work in as a representative (#1597) — the representing organization's name, so the\n * switcher can group granting organizations apart from the person's own organizations and say through whom\n * each is reached. A granting organization appears only while its relationship is live: the organization\n * read behind this list passes the per-request live filter, so an ended or paused relationship drops it\n * from the switcher.\n */\n organizations: { _id: string; name: string; viaOrganizationName?: string }[];\n /**\n * The person's organizations `organizations` does not hold (#2452): the user context carries only the newest 20\n * memberships, so a person in more is offered the rest by search. Counted from the backend's access profile (its\n * organization-wide entries, the population the search returns); `0` without a profile, and whenever every\n * organization is already listed. The switcher shows its search when this is above zero.\n */\n unlistedOrganizationCount: number;\n /** The text typed in the switcher's search; empty when not searching. */\n organizationSearchQuery: string;\n setOrganizationSearchQuery: (query: string) => void;\n /**\n * The search's answer, or `null` while no search applies: the query is shorter than\n * `ORGANIZATION_SEARCH_MIN_CHARS`, or the first answer has not arrived. Found through\n * `GET /organizations/search/mine`, which reads only the caller's own organizations.\n */\n organizationSearchResults: { _id: string; name: string }[] | null;\n isSearchingOrganizations: boolean;\n /** Whether the last search failed; the switcher says so instead of showing an empty result as \"none found\". */\n organizationSearchFailed: boolean;\n /**\n * The switcher's organizations, grouped as it shows them (#1828): the person's OWN organizations and the GRANTING ones\n * they work in as a representative, each group present only when it holds one, or, while a search applies, its\n * SEARCH_RESULTS alone (every result is one of the person's own organizations, and a granting organization found this\n * way is not told apart: its representing organization's name comes from a membership row the user context does not carry).\n */\n organizationGroups: OrganizationSwitcherGroup[];\n /** Whether there is anything to switch to: more than one listed organization, or more to find by search (#2452). */\n hasMultipleOrganizations: boolean;\n /** Dropdown sections to render. The `SETTINGS` entry opens the unified Settings Hub. */\n sections: UserDropdownSection[];\n avatarDisplay: UserDropdownAvatarDisplay;\n showOrgSwitcher: boolean;\n showLogout: boolean;\n /** The Settings Hub itself (no section). Rendered after any authored shortcuts, so the hub is always reachable. */\n settingsTarget: ResolvedNavigationTarget | null;\n /** Authored shortcuts into hub sections (`settingsEntries`), each labelled by the section it opens. */\n settingsTargets: ResolvedNavigationTarget[];\n popupAlignment: { align: HorizontalAlign; side: PlacementSide };\n handleLogout: () => void;\n handleSwitchOrg: (orgId: string) => void;\n handleNavigateToSettingsTarget: (target: ResolvedNavigationTarget) => void;\n}\n\n/**\n * The navigation-back control's behavior (#1828): the zone it walks back, whether it is shown, and the gesture. See\n * `useNavigationBackBehavior` for when the control hides.\n */\nexport interface NavigationBackBehavior {\n resolvedZone: NavigationZone;\n /** False when the gesture would do nothing. */\n isVisible: boolean;\n goBack: () => void;\n}\n\n/** One item of the menubar. */\nexport interface MenuBarBehaviorItem {\n id: string;\n label: string;\n /** The item's icon as a reference; the preset renders it (#1828). */\n iconReference?: NavigationIconReference;\n group?: string;\n /** Whether this item is the current destination — at most one item is (see `useMenuBarBehavior`). */\n isActive: boolean;\n /** The badge KEY to draw beside the label (`NavigationItemBadge`), when the declaration names one. */\n notificationBadgeRef?: string;\n onExecute: () => void;\n}\n\n/** Whether a {@link MenuBarEntry} is one item on the bar, or a group opening a menu of items. */\nexport enum MenuBarEntryKind {\n ITEM = 'item',\n GROUP = 'group',\n}\n\n/**\n * One entry of the bar, in bar order (#1828): an item without a group, or a group, placed where its first item is, holding\n * every item of that group in declaration order.\n */\nexport type MenuBarEntry =\n | { kind: MenuBarEntryKind.ITEM; item: MenuBarBehaviorItem }\n | {\n kind: MenuBarEntryKind.GROUP;\n /** The group identifier AS AUTHORED; giving it a label is owed (see the menubar preset). */\n group: string;\n items: MenuBarBehaviorItem[];\n };\n\nexport interface MenuBarBehavior {\n containerComponents: ResolvedHostedComponent[];\n /**\n * The identity to render as the bar's HOME affordance. Present ONLY when the menubar config\n * opted in (`brandHeader: true`), mirroring `useSidebarBehavior`'s `brandHeader`: a preset that\n * receives an identity unconditionally can render a mark on a surface the application never asked\n * to brand, and no type would catch it.\n */\n brandHeader?: BrandIdentity;\n /** Whether the current location is home — `aria-current` for the brand header. */\n isHomeActive: boolean;\n /** Home navigation with a fresh navigation start, the same act as the sidebar's brand header. */\n handleHomeClick: () => void;\n items: MenuBarBehaviorItem[];\n /** {@link items} as the bar shows them: ungrouped items and groups, in bar order (#1828). */\n entries: MenuBarEntry[];\n /**\n * Opens the sidebar drawer. Present only while the sidebar is an overlay drawer (its BURGER policy at or below its\n * responsive breakpoint): nothing of the sidebar renders inline then, so the menubar carries its opening affordance.\n * The drawer's state stays the sidebar's; this only sends the sidebar toggle (#1828).\n */\n toggleSidebarDrawer?: () => void;\n menubarConfig: {\n mode: string;\n isOverlay: boolean;\n showMobileLayout: boolean;\n };\n mapToFrontendComponentType: (type: ApplicationLevelComponentType) => FrontendComponentType | null;\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { ShellRegion } from '@wildo-ai/presets-components-models';
2
2
  /** @wildo_source:part:start saas.frontend.app-shell.shell-motion-contract facet:layer:frontend facet:family:app-shell facet:audience:app-developer */
3
3
  /**
4
- * The motion building blocks a layout composes (#2052). They are the MECHANICS every animated layout needs — which
4
+ * The motion building blocks a layout composes. They are the MECHANICS every animated layout needs — which
5
5
  * pane is in front, which zone just opened or changed place, the picture a dismissed or hidden pane leaves behind, the
6
6
  * dip a pane or a column makes while it changes — and none of them knows which way things move. That is the axis's
7
7
  * (`ShellMotionAxis`): a depth axis moves along z (the focal-plane 3D layout), a flat axis slides, scales and fades.
@@ -101,7 +101,7 @@ export interface ShellMotionAxis {
101
101
  * With `FROM_PRESSED_ELEMENT`: carry the arrival out as a browser VIEW TRANSITION where the browser has one
102
102
  * (`document.startViewTransition`) — the navigation's commit runs inside it, and the browser morphs the pressed row
103
103
  * into the pane from pictures of the screen before and after. Where it has none, or nothing was pressed, the proxy
104
- * flies as usual, so the arrival never depends on it. Absent means no. Evaluated on #2055.
104
+ * flies as usual, so the arrival never depends on it. Absent means no.
105
105
  */
106
106
  paneArrivalByViewTransition?: boolean;
107
107
  /** How an emphasized pane changes size (`ShellPaneResize`). */
@@ -146,8 +146,8 @@ export declare const SHELL_GHOST_ATTRIBUTE = "data-shell-ghost";
146
146
  * that kept these was found by those queries as though it were the thing it shows.
147
147
  *
148
148
  * Measured 2026-11-14 on Wonder Todos (morph layout): a closed todo pane's picture kept `data-navigation-back` for the
149
- * ~650ms it took to leave, so a lookup of the pane's back control found the picture's (#3764 had to wait it out in
150
- * `browser-nav-zones`). It never took a click (inert, `pointer-events: none`: the point under it hit the list), but
149
+ * ~650ms it took to leave, so a lookup of the pane's back control found the picture's (a browser test of the navigation
150
+ * zones had to wait it out). It never took a click (inert, `pointer-events: none`: the point under it hit the list), but
151
151
  * the zone's own back control is identified by that attribute, and a picture must not answer to it.
152
152
  *
153
153
  * Styling hooks (`data-slot`, `data-state`) are NOT here: a picture keeps the look of what it shows. A caller that
@@ -2,7 +2,7 @@ import { ShellRegion } from '@wildo-ai/presets-components-models';
2
2
  import { NavigationZoneName } from '@wildo-ai/saas-models';
3
3
  /** @wildo_source:part:start saas.frontend.app-shell.shell-motion-contract facet:layer:frontend facet:family:app-shell facet:audience:app-developer */
4
4
  /**
5
- * The motion building blocks a layout composes (#2052). They are the MECHANICS every animated layout needs — which
5
+ * The motion building blocks a layout composes. They are the MECHANICS every animated layout needs — which
6
6
  * pane is in front, which zone just opened or changed place, the picture a dismissed or hidden pane leaves behind, the
7
7
  * dip a pane or a column makes while it changes — and none of them knows which way things move. That is the axis's
8
8
  * (`ShellMotionAxis`): a depth axis moves along z (the focal-plane 3D layout), a flat axis slides, scales and fades.
@@ -95,8 +95,8 @@ export const SHELL_GHOST_ATTRIBUTE = 'data-shell-ghost';
95
95
  * that kept these was found by those queries as though it were the thing it shows.
96
96
  *
97
97
  * Measured 2026-11-14 on Wonder Todos (morph layout): a closed todo pane's picture kept `data-navigation-back` for the
98
- * ~650ms it took to leave, so a lookup of the pane's back control found the picture's (#3764 had to wait it out in
99
- * `browser-nav-zones`). It never took a click (inert, `pointer-events: none`: the point under it hit the list), but
98
+ * ~650ms it took to leave, so a lookup of the pane's back control found the picture's (a browser test of the navigation
99
+ * zones had to wait it out). It never took a click (inert, `pointer-events: none`: the point under it hit the list), but
100
100
  * the zone's own back control is identified by that attribute, and a picture must not answer to it.
101
101
  *
102
102
  * Styling hooks (`data-slot`, `data-state`) are NOT here: a picture keeps the look of what it shows. A caller that
@@ -1 +1 @@
1
- {"version":3,"file":"shell-motion-vocabulary.js","sourceRoot":"","sources":["../../../../../src/core/app-shell/shell-motion/shell-motion-vocabulary.ts"],"names":[],"mappings":"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","sourcesContent":["import { ShellRegion } from '@wildo-ai/presets-components-models';\nimport { NavigationZoneName } from '@wildo-ai/saas-models';\n\n/** @wildo_source:part:start saas.frontend.app-shell.shell-motion-contract facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/**\n * The motion building blocks a layout composes (#2052). They are the MECHANICS every animated layout needs — which\n * pane is in front, which zone just opened or changed place, the picture a dismissed or hidden pane leaves behind, the\n * dip a pane or a column makes while it changes — and none of them knows which way things move. That is the axis's\n * (`ShellMotionAxis`): a depth axis moves along z (the focal-plane 3D layout), a flat axis slides, scales and fades.\n *\n * Nothing here writes on a region the engine renders. Ghosts are pictures in the layout's own layers, dips play\n * through the Web Animations API (nothing is left on the element when they finish), and objects are the layout's own\n * wrappers plus the navigation panes found by the engine's markers.\n */\n\n/** How a navigation zone's place moved between two renders. */\nexport enum ShellPlaceChange {\n /** The zone held nothing and now holds a place: a pane opened. */\n APPEARED = 'appeared',\n /** The zone showed one place and now shows another, in the same pane. */\n CHANGED = 'changed',\n}\n\n/** Where a ghost — the picture of a pane that was dismissed or hidden — stands. */\nexport enum ShellGhostPose {\n /** Where the pane stood: a ghost starts here, and a picture left behind returns here before it goes. */\n REST = 'rest',\n /** Stepped back behind an expanded pane, dimmed: the picture of a pane the expansion hid. */\n BEHIND = 'behind',\n /** Gone: where a dismissed pane flies to as it fades. */\n DISCARDED = 'discarded',\n}\n\n/** What a dip — a brief move away and back — acknowledges. */\nexport enum ShellMotionDip {\n /** A pane's content changed in place (the same zone shows another place). */\n PANE_SWAP = 'pane-swap',\n /** A side column (the sidebar or a utility panel) changed width, and the panes re-arranged. */\n COLUMN_RESIZE = 'column-resize',\n}\n\n/** How a side pane arrives when it opens. */\nexport enum ShellPaneArrival {\n /** The layout's stylesheet animates the pane as it mounts (a keyframe on the pane). */\n STYLESHEET = 'stylesheet',\n /**\n * The pane GROWS OUT OF the element that was pressed to open it: a proxy box flies from the pressed row to the\n * pane's box, and the core reveals the pane on the flight's own clock (hidden for `SHELL_PROXY_FLIGHT_SHARE` of the\n * motion, then faded in). A layout's stylesheet MAY also hold the arriving pane for that share — only as the fallback\n * when there is nothing to fly from (a pane opened by URL), where the pane then simply appears when the hold ends.\n * An axis may ask the browser to carry it out instead, as a view transition (`paneArrivalByViewTransition`).\n */\n FROM_PRESSED_ELEMENT = 'from-pressed-element',\n}\n\n/** How a pane changes size when it is emphasized (takes the width) or given back its place. */\nexport enum ShellPaneResize {\n /** At once, as the engine lays it out. */\n INSTANT = 'instant',\n /** The emphasized pane grows from the box it had to the width it takes; given back its place, it slides home. */\n GROW = 'grow',\n}\n\n/** How a modal popup (a dialog, a sheet) arrives. */\nexport enum ShellDialogArrival {\n /** The layout's stylesheet animates it (a keyframe on its content slot). */\n STYLESHEET = 'stylesheet',\n /**\n * It GROWS OUT OF its trigger: a proxy flies from the pressed control to the dialog's box, and the core reveals the\n * dialog on the flight's own clock. A stylesheet hold is optional, the fallback when no control was pressed.\n */\n FROM_PRESSED_ELEMENT = 'from-pressed-element',\n}\n\n/**\n * The share of the motion a proxy flies before the element it stands for appears (the rest of the motion reveals\n * it). The core reveals the arriving element on the SAME clock as the flight (a script animation that sits above any\n * stylesheet animation), so the two can never drift apart; a layout's stylesheet may also hold the element for this\n * share, as the fallback when there is nothing to fly from (a pane opened by URL).\n */\nexport const SHELL_PROXY_FLIGHT_SHARE = 0.55;\n\n/** The attribute on a proxy the core flies. A layout may restyle it (the core paints it from theme tokens inline). */\nexport const SHELL_PROXY_ATTRIBUTE = 'data-shell-proxy';\n\n/** An element's laid-out box in the stage (untransformed), as last measured. */\nexport interface ShellStageRect {\n left: number;\n top: number;\n width: number;\n height: number;\n}\n\n/**\n * Which way a layout moves things. The building blocks decide WHEN something moves and WHAT; the axis decides only\n * the pose it moves to. A layout builds one from its settings and memoizes it: the hooks re-arm when it changes.\n */\nexport interface ShellMotionAxis {\n /** How long every motion lasts, in milliseconds. `0` turns the motion building blocks off (reduced motion). */\n durationMs: number;\n /** The timing function of the dips (a CSS easing). */\n easing: string;\n /**\n * Whether a pane an expansion hides leaves a still picture of itself behind the expanded pane. Only an axis whose\n * panes are SEEN THROUGH should say yes (the focal plane's glass windows). Where panes paint nothing of their own\n * — a 2D shell under a CONTINUOUS theme — the picture shows through the expanded pane and its text overlaps the\n * expanded pane's text (measured on the glide layout, 2026-09-30).\n */\n drawsHiddenPanePicture: boolean;\n /** How a side pane arrives (`ShellPaneArrival`). */\n paneArrival: ShellPaneArrival;\n /**\n * With `FROM_PRESSED_ELEMENT`: carry the arrival out as a browser VIEW TRANSITION where the browser has one\n * (`document.startViewTransition`) — the navigation's commit runs inside it, and the browser morphs the pressed row\n * into the pane from pictures of the screen before and after. Where it has none, or nothing was pressed, the proxy\n * flies as usual, so the arrival never depends on it. Absent means no. Evaluated on #2055.\n */\n paneArrivalByViewTransition?: boolean;\n /** How an emphasized pane changes size (`ShellPaneResize`). */\n paneResize: ShellPaneResize;\n /** How a modal popup arrives (`ShellDialogArrival`). */\n dialogArrival: ShellDialogArrival;\n /**\n * Whether the rows of a pane cascade in when the pane opens or shows another place. Rows are recognised by shape\n * (the largest group of wide, row-high siblings in the pane), so it holds for tables, card lists and custom rows.\n */\n cascadesRows: boolean;\n /**\n * The style properties a ghost takes at a pose — standard or custom properties, kebab-case (`transform`,\n * `--fp-z`). Opacity is not the axis's: a ghost always fades as it goes and appears as it steps back. The layout's\n * stylesheet transitions these properties on `[data-shell-ghost]`.\n */\n ghostPose(pose: ShellGhostPose, placement: { rect: ShellStageRect; stage: HTMLElement }): Readonly<Record<string, string>>;\n /**\n * The peak keyframe of a dip. The first and last keyframes are implicit: the element leaves and returns to its rest.\n * `stage` is the layout's stage, for a dip that travels sideways and must mirror right to left.\n */\n dipPeak(dip: ShellMotionDip, placement: { stage: HTMLElement }): Keyframe;\n}\n\n/**\n * The attribute a layout container puts on each wrapper it draws a region in. Wrappers are the layout's own\n * elements, so they may be moved; the region inside keeps the engine's markup untouched.\n */\nexport const SHELL_OBJECT_ATTRIBUTE = 'data-shell-object';\n/** The attribute of the layout's two ghost layers: `back` (under the regions) and `front` (above them). */\nexport const SHELL_GHOST_LAYER_ATTRIBUTE = 'data-shell-ghost-layer';\n/** The attribute every ghost carries, with its kind (`ShellGhostKind`). */\nexport const SHELL_GHOST_ATTRIBUTE = 'data-shell-ghost';\n\n/**\n * The markers a still picture of an engine element must NOT carry: everything a query for the real element, or for a\n * control inside it, finds it by. A picture (a discarded pane leaving, an image behind an expanded pane, a pressed row\n * flying into its pane) is inert and takes no pointer, but it is still in the document while it fades, and a picture\n * that kept these was found by those queries as though it were the thing it shows.\n *\n * Measured 2026-11-14 on Wonder Todos (morph layout): a closed todo pane's picture kept `data-navigation-back` for the\n * ~650ms it took to leave, so a lookup of the pane's back control found the picture's (#3764 had to wait it out in\n * `browser-nav-zones`). It never took a click (inert, `pointer-events: none`: the point under it hit the list), but\n * the zone's own back control is identified by that attribute, and a picture must not answer to it.\n *\n * Styling hooks (`data-slot`, `data-state`) are NOT here: a picture keeps the look of what it shows. A caller that\n * needs a narrower picture strips more on its own.\n */\nexport const SHELL_PICTURE_STRIPPED_ATTRIBUTES: readonly string[] = [\n 'id',\n // The engine's pane and region markers.\n 'data-content-area',\n 'data-panel-id',\n 'data-zone-hidden',\n 'data-zone-emphasized',\n 'data-component-area',\n SHELL_OBJECT_ATTRIBUTE,\n // The engine's control hooks: a zone's back control, an operation's trigger, a navigation item, a rail entry.\n 'data-navigation-back',\n 'data-operation-id',\n 'data-nav-item-id',\n 'data-ref',\n];\n\n/** The two kinds of ghost. */\nexport enum ShellGhostKind {\n /** A dismissed side pane, flying away. */\n DISCARDED = 'discarded',\n /** A still image of a pane an expansion hid. */\n BEHIND = 'behind',\n}\n\n/** The two ghost layers. */\nexport enum ShellGhostLayer {\n BACK = 'back',\n FRONT = 'front',\n}\n\n/**\n * The selector of one shell region, by the marker its preset writes (`data-component-area`, from `ShellRegion`). The\n * one place a layout spells it, so a region is always found by the enum and never by a literal.\n */\nexport function shellRegionSelector(region: ShellRegion): string {\n return `[data-component-area=\"${region}\"]`;\n}\n\nconst CONTENT = shellRegionSelector(ShellRegion.CONTENT);\n\n/**\n * The navigation panes inside the content region, by the engine's own markers: the zone itself in the static and\n * single-zone branches (`[data-content-area]`), the panel in the resizable branch (`[data-panel-id^=\"nav-\"]`) — never\n * the zone INSIDE a panel, which would be moved twice and clipped by the panel's `overflow: hidden`.\n */\nexport const SHELL_PANE_SELECTOR = `${CONTENT} [data-content-area]:not([data-panel-id] *), ${CONTENT} [data-panel-id^=\"nav-\"]`;\n\n/** The pane of one zone, in either branch (a plain selector list: `:not()` nested in `:is()` is beyond some engines). */\nexport function shellPaneSelectorForZone(zone: string): string {\n return `${CONTENT} [data-content-area=\"${zone}\"]:not([data-panel-id] *), ${CONTENT} [data-panel-id=\"nav-${zone}\"]`;\n}\n\n/** The zone a pane element shows, read from the engine's markers; `undefined` for anything else. */\nexport function shellPaneZone(element: Element): string | undefined {\n if (!(element instanceof HTMLElement)) return undefined;\n return element.dataset.contentArea ?? element.dataset.panelId?.replace(/^nav-/, '');\n}\n\nconst SIDE_ZONES: ReadonlySet<string> = new Set([NavigationZoneName.SECONDARY, NavigationZoneName.COMPANION]);\n\n/** Whether a pane shows a SIDE zone — the only kind a person dismisses (the primary pane leaves only on a remount). */\nexport function isShellSidePane(element: Element): boolean {\n const zone = shellPaneZone(element);\n return zone !== undefined && SIDE_ZONES.has(zone);\n}\n\n/** Whether a zone is a SIDE zone (secondary, companion): the panes that open beside the list. */\nexport function isShellSideZone(zone: string): boolean {\n return SIDE_ZONES.has(zone);\n}\n\n/**\n * The portalled popups a layout may move, by the `data-slot` their content element carries (the presets write these\n * values; Radix writes `data-state` on the same element). A closed list: a layout keys its popup motion on it, never\n * on a role or a class.\n */\nexport enum ShellPopupSlot {\n DROPDOWN_MENU = 'dropdown-menu-content',\n DROPDOWN_MENU_SUB = 'dropdown-menu-sub-content',\n CONTEXT_MENU = 'context-menu-content',\n CONTEXT_MENU_SUB = 'context-menu-sub-content',\n POPOVER = 'popover-content',\n HOVER_CARD = 'hover-card-content',\n TOOLTIP = 'tooltip-content',\n SELECT = 'select-content',\n MENUBAR = 'menubar-content',\n MENUBAR_SUB = 'menubar-sub-content',\n DIALOG = 'dialog-content',\n ALERT_DIALOG = 'alert-dialog-content',\n SHEET = 'sheet-content',\n DRAWER = 'drawer-content',\n}\n\n/**\n * The popups anchored to a trigger, each with the CSS variable Radix publishes as its trigger-relative origin: the\n * point a layout lifts or scales such a popup from.\n */\nexport const SHELL_ANCHORED_POPUP_ORIGINS: Readonly<Partial<Record<ShellPopupSlot, string>>> = {\n [ShellPopupSlot.DROPDOWN_MENU]: '--radix-dropdown-menu-content-transform-origin',\n [ShellPopupSlot.DROPDOWN_MENU_SUB]: '--radix-dropdown-menu-content-transform-origin',\n [ShellPopupSlot.CONTEXT_MENU]: '--radix-context-menu-content-transform-origin',\n [ShellPopupSlot.CONTEXT_MENU_SUB]: '--radix-context-menu-content-transform-origin',\n [ShellPopupSlot.POPOVER]: '--radix-popover-content-transform-origin',\n [ShellPopupSlot.HOVER_CARD]: '--radix-hover-card-content-transform-origin',\n [ShellPopupSlot.TOOLTIP]: '--radix-tooltip-content-transform-origin',\n [ShellPopupSlot.SELECT]: '--radix-select-content-transform-origin',\n [ShellPopupSlot.MENUBAR]: '--radix-menubar-content-transform-origin',\n [ShellPopupSlot.MENUBAR_SUB]: '--radix-menubar-content-transform-origin',\n};\n\n/** The centred dialogs: no trigger origin, they open over the whole shell. */\nexport const SHELL_CENTRED_POPUP_SLOTS: readonly ShellPopupSlot[] = [ShellPopupSlot.DIALOG, ShellPopupSlot.ALERT_DIALOG];\n\n/**\n * The MODAL popups: while one is open the rest of the shell is not what the person works in. Keyed on the content\n * slot, deliberately never on `role=\"dialog\"` — a Radix popover carries that role too (date pickers, record pickers,\n * the notification centre), and treating it as modal steps back the form being edited — nor on\n * `body[data-scroll-locked]`, which dropdown and context menus also set.\n */\nexport const SHELL_MODAL_POPUP_SLOTS: readonly ShellPopupSlot[] = [ShellPopupSlot.DIALOG, ShellPopupSlot.ALERT_DIALOG, ShellPopupSlot.SHEET, ShellPopupSlot.DRAWER];\n\n/** The `data-state` values of an OPEN popup. A tooltip is never `open`: Radix writes `delayed-open` or `instant-open`. */\nexport const SHELL_POPUP_OPEN_STATES: readonly string[] = ['open', 'delayed-open', 'instant-open'];\n\n/**\n * A `:has()` clause that matches a layout root while a modal popup is open in its overlay layer\n * (`AppShellOverlayPortalLayer`, `[data-shell-overlay-layer]`). Append it to the root selector:\n * `[data-my-layout]${shellModalOpenClause()} [data-shell-object] { … }`.\n */\nexport function shellModalOpenClause(): string {\n return `:has([data-shell-overlay-layer] :is(${SHELL_MODAL_POPUP_SLOTS.map((slot) => `[data-slot=\"${slot}\"]`).join(', ')})[data-state=\"open\"])`;\n}\n/** @wildo_source:part:end saas.frontend.app-shell.shell-motion-contract */\n"]}
1
+ {"version":3,"file":"shell-motion-vocabulary.js","sourceRoot":"","sources":["../../../../../src/core/app-shell/shell-motion/shell-motion-vocabulary.ts"],"names":[],"mappings":"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","sourcesContent":["import { ShellRegion } from '@wildo-ai/presets-components-models';\nimport { NavigationZoneName } from '@wildo-ai/saas-models';\n\n/** @wildo_source:part:start saas.frontend.app-shell.shell-motion-contract facet:layer:frontend facet:family:app-shell facet:audience:app-developer */\n/**\n * The motion building blocks a layout composes. They are the MECHANICS every animated layout needs — which\n * pane is in front, which zone just opened or changed place, the picture a dismissed or hidden pane leaves behind, the\n * dip a pane or a column makes while it changes — and none of them knows which way things move. That is the axis's\n * (`ShellMotionAxis`): a depth axis moves along z (the focal-plane 3D layout), a flat axis slides, scales and fades.\n *\n * Nothing here writes on a region the engine renders. Ghosts are pictures in the layout's own layers, dips play\n * through the Web Animations API (nothing is left on the element when they finish), and objects are the layout's own\n * wrappers plus the navigation panes found by the engine's markers.\n */\n\n/** How a navigation zone's place moved between two renders. */\nexport enum ShellPlaceChange {\n /** The zone held nothing and now holds a place: a pane opened. */\n APPEARED = 'appeared',\n /** The zone showed one place and now shows another, in the same pane. */\n CHANGED = 'changed',\n}\n\n/** Where a ghost — the picture of a pane that was dismissed or hidden — stands. */\nexport enum ShellGhostPose {\n /** Where the pane stood: a ghost starts here, and a picture left behind returns here before it goes. */\n REST = 'rest',\n /** Stepped back behind an expanded pane, dimmed: the picture of a pane the expansion hid. */\n BEHIND = 'behind',\n /** Gone: where a dismissed pane flies to as it fades. */\n DISCARDED = 'discarded',\n}\n\n/** What a dip — a brief move away and back — acknowledges. */\nexport enum ShellMotionDip {\n /** A pane's content changed in place (the same zone shows another place). */\n PANE_SWAP = 'pane-swap',\n /** A side column (the sidebar or a utility panel) changed width, and the panes re-arranged. */\n COLUMN_RESIZE = 'column-resize',\n}\n\n/** How a side pane arrives when it opens. */\nexport enum ShellPaneArrival {\n /** The layout's stylesheet animates the pane as it mounts (a keyframe on the pane). */\n STYLESHEET = 'stylesheet',\n /**\n * The pane GROWS OUT OF the element that was pressed to open it: a proxy box flies from the pressed row to the\n * pane's box, and the core reveals the pane on the flight's own clock (hidden for `SHELL_PROXY_FLIGHT_SHARE` of the\n * motion, then faded in). A layout's stylesheet MAY also hold the arriving pane for that share — only as the fallback\n * when there is nothing to fly from (a pane opened by URL), where the pane then simply appears when the hold ends.\n * An axis may ask the browser to carry it out instead, as a view transition (`paneArrivalByViewTransition`).\n */\n FROM_PRESSED_ELEMENT = 'from-pressed-element',\n}\n\n/** How a pane changes size when it is emphasized (takes the width) or given back its place. */\nexport enum ShellPaneResize {\n /** At once, as the engine lays it out. */\n INSTANT = 'instant',\n /** The emphasized pane grows from the box it had to the width it takes; given back its place, it slides home. */\n GROW = 'grow',\n}\n\n/** How a modal popup (a dialog, a sheet) arrives. */\nexport enum ShellDialogArrival {\n /** The layout's stylesheet animates it (a keyframe on its content slot). */\n STYLESHEET = 'stylesheet',\n /**\n * It GROWS OUT OF its trigger: a proxy flies from the pressed control to the dialog's box, and the core reveals the\n * dialog on the flight's own clock. A stylesheet hold is optional, the fallback when no control was pressed.\n */\n FROM_PRESSED_ELEMENT = 'from-pressed-element',\n}\n\n/**\n * The share of the motion a proxy flies before the element it stands for appears (the rest of the motion reveals\n * it). The core reveals the arriving element on the SAME clock as the flight (a script animation that sits above any\n * stylesheet animation), so the two can never drift apart; a layout's stylesheet may also hold the element for this\n * share, as the fallback when there is nothing to fly from (a pane opened by URL).\n */\nexport const SHELL_PROXY_FLIGHT_SHARE = 0.55;\n\n/** The attribute on a proxy the core flies. A layout may restyle it (the core paints it from theme tokens inline). */\nexport const SHELL_PROXY_ATTRIBUTE = 'data-shell-proxy';\n\n/** An element's laid-out box in the stage (untransformed), as last measured. */\nexport interface ShellStageRect {\n left: number;\n top: number;\n width: number;\n height: number;\n}\n\n/**\n * Which way a layout moves things. The building blocks decide WHEN something moves and WHAT; the axis decides only\n * the pose it moves to. A layout builds one from its settings and memoizes it: the hooks re-arm when it changes.\n */\nexport interface ShellMotionAxis {\n /** How long every motion lasts, in milliseconds. `0` turns the motion building blocks off (reduced motion). */\n durationMs: number;\n /** The timing function of the dips (a CSS easing). */\n easing: string;\n /**\n * Whether a pane an expansion hides leaves a still picture of itself behind the expanded pane. Only an axis whose\n * panes are SEEN THROUGH should say yes (the focal plane's glass windows). Where panes paint nothing of their own\n * — a 2D shell under a CONTINUOUS theme — the picture shows through the expanded pane and its text overlaps the\n * expanded pane's text (measured on the glide layout, 2026-09-30).\n */\n drawsHiddenPanePicture: boolean;\n /** How a side pane arrives (`ShellPaneArrival`). */\n paneArrival: ShellPaneArrival;\n /**\n * With `FROM_PRESSED_ELEMENT`: carry the arrival out as a browser VIEW TRANSITION where the browser has one\n * (`document.startViewTransition`) — the navigation's commit runs inside it, and the browser morphs the pressed row\n * into the pane from pictures of the screen before and after. Where it has none, or nothing was pressed, the proxy\n * flies as usual, so the arrival never depends on it. Absent means no.\n */\n paneArrivalByViewTransition?: boolean;\n /** How an emphasized pane changes size (`ShellPaneResize`). */\n paneResize: ShellPaneResize;\n /** How a modal popup arrives (`ShellDialogArrival`). */\n dialogArrival: ShellDialogArrival;\n /**\n * Whether the rows of a pane cascade in when the pane opens or shows another place. Rows are recognised by shape\n * (the largest group of wide, row-high siblings in the pane), so it holds for tables, card lists and custom rows.\n */\n cascadesRows: boolean;\n /**\n * The style properties a ghost takes at a pose — standard or custom properties, kebab-case (`transform`,\n * `--fp-z`). Opacity is not the axis's: a ghost always fades as it goes and appears as it steps back. The layout's\n * stylesheet transitions these properties on `[data-shell-ghost]`.\n */\n ghostPose(pose: ShellGhostPose, placement: { rect: ShellStageRect; stage: HTMLElement }): Readonly<Record<string, string>>;\n /**\n * The peak keyframe of a dip. The first and last keyframes are implicit: the element leaves and returns to its rest.\n * `stage` is the layout's stage, for a dip that travels sideways and must mirror right to left.\n */\n dipPeak(dip: ShellMotionDip, placement: { stage: HTMLElement }): Keyframe;\n}\n\n/**\n * The attribute a layout container puts on each wrapper it draws a region in. Wrappers are the layout's own\n * elements, so they may be moved; the region inside keeps the engine's markup untouched.\n */\nexport const SHELL_OBJECT_ATTRIBUTE = 'data-shell-object';\n/** The attribute of the layout's two ghost layers: `back` (under the regions) and `front` (above them). */\nexport const SHELL_GHOST_LAYER_ATTRIBUTE = 'data-shell-ghost-layer';\n/** The attribute every ghost carries, with its kind (`ShellGhostKind`). */\nexport const SHELL_GHOST_ATTRIBUTE = 'data-shell-ghost';\n\n/**\n * The markers a still picture of an engine element must NOT carry: everything a query for the real element, or for a\n * control inside it, finds it by. A picture (a discarded pane leaving, an image behind an expanded pane, a pressed row\n * flying into its pane) is inert and takes no pointer, but it is still in the document while it fades, and a picture\n * that kept these was found by those queries as though it were the thing it shows.\n *\n * Measured 2026-11-14 on Wonder Todos (morph layout): a closed todo pane's picture kept `data-navigation-back` for the\n * ~650ms it took to leave, so a lookup of the pane's back control found the picture's (a browser test of the navigation\n * zones had to wait it out). It never took a click (inert, `pointer-events: none`: the point under it hit the list), but\n * the zone's own back control is identified by that attribute, and a picture must not answer to it.\n *\n * Styling hooks (`data-slot`, `data-state`) are NOT here: a picture keeps the look of what it shows. A caller that\n * needs a narrower picture strips more on its own.\n */\nexport const SHELL_PICTURE_STRIPPED_ATTRIBUTES: readonly string[] = [\n 'id',\n // The engine's pane and region markers.\n 'data-content-area',\n 'data-panel-id',\n 'data-zone-hidden',\n 'data-zone-emphasized',\n 'data-component-area',\n SHELL_OBJECT_ATTRIBUTE,\n // The engine's control hooks: a zone's back control, an operation's trigger, a navigation item, a rail entry.\n 'data-navigation-back',\n 'data-operation-id',\n 'data-nav-item-id',\n 'data-ref',\n];\n\n/** The two kinds of ghost. */\nexport enum ShellGhostKind {\n /** A dismissed side pane, flying away. */\n DISCARDED = 'discarded',\n /** A still image of a pane an expansion hid. */\n BEHIND = 'behind',\n}\n\n/** The two ghost layers. */\nexport enum ShellGhostLayer {\n BACK = 'back',\n FRONT = 'front',\n}\n\n/**\n * The selector of one shell region, by the marker its preset writes (`data-component-area`, from `ShellRegion`). The\n * one place a layout spells it, so a region is always found by the enum and never by a literal.\n */\nexport function shellRegionSelector(region: ShellRegion): string {\n return `[data-component-area=\"${region}\"]`;\n}\n\nconst CONTENT = shellRegionSelector(ShellRegion.CONTENT);\n\n/**\n * The navigation panes inside the content region, by the engine's own markers: the zone itself in the static and\n * single-zone branches (`[data-content-area]`), the panel in the resizable branch (`[data-panel-id^=\"nav-\"]`) — never\n * the zone INSIDE a panel, which would be moved twice and clipped by the panel's `overflow: hidden`.\n */\nexport const SHELL_PANE_SELECTOR = `${CONTENT} [data-content-area]:not([data-panel-id] *), ${CONTENT} [data-panel-id^=\"nav-\"]`;\n\n/** The pane of one zone, in either branch (a plain selector list: `:not()` nested in `:is()` is beyond some engines). */\nexport function shellPaneSelectorForZone(zone: string): string {\n return `${CONTENT} [data-content-area=\"${zone}\"]:not([data-panel-id] *), ${CONTENT} [data-panel-id=\"nav-${zone}\"]`;\n}\n\n/** The zone a pane element shows, read from the engine's markers; `undefined` for anything else. */\nexport function shellPaneZone(element: Element): string | undefined {\n if (!(element instanceof HTMLElement)) return undefined;\n return element.dataset.contentArea ?? element.dataset.panelId?.replace(/^nav-/, '');\n}\n\nconst SIDE_ZONES: ReadonlySet<string> = new Set([NavigationZoneName.SECONDARY, NavigationZoneName.COMPANION]);\n\n/** Whether a pane shows a SIDE zone — the only kind a person dismisses (the primary pane leaves only on a remount). */\nexport function isShellSidePane(element: Element): boolean {\n const zone = shellPaneZone(element);\n return zone !== undefined && SIDE_ZONES.has(zone);\n}\n\n/** Whether a zone is a SIDE zone (secondary, companion): the panes that open beside the list. */\nexport function isShellSideZone(zone: string): boolean {\n return SIDE_ZONES.has(zone);\n}\n\n/**\n * The portalled popups a layout may move, by the `data-slot` their content element carries (the presets write these\n * values; Radix writes `data-state` on the same element). A closed list: a layout keys its popup motion on it, never\n * on a role or a class.\n */\nexport enum ShellPopupSlot {\n DROPDOWN_MENU = 'dropdown-menu-content',\n DROPDOWN_MENU_SUB = 'dropdown-menu-sub-content',\n CONTEXT_MENU = 'context-menu-content',\n CONTEXT_MENU_SUB = 'context-menu-sub-content',\n POPOVER = 'popover-content',\n HOVER_CARD = 'hover-card-content',\n TOOLTIP = 'tooltip-content',\n SELECT = 'select-content',\n MENUBAR = 'menubar-content',\n MENUBAR_SUB = 'menubar-sub-content',\n DIALOG = 'dialog-content',\n ALERT_DIALOG = 'alert-dialog-content',\n SHEET = 'sheet-content',\n DRAWER = 'drawer-content',\n}\n\n/**\n * The popups anchored to a trigger, each with the CSS variable Radix publishes as its trigger-relative origin: the\n * point a layout lifts or scales such a popup from.\n */\nexport const SHELL_ANCHORED_POPUP_ORIGINS: Readonly<Partial<Record<ShellPopupSlot, string>>> = {\n [ShellPopupSlot.DROPDOWN_MENU]: '--radix-dropdown-menu-content-transform-origin',\n [ShellPopupSlot.DROPDOWN_MENU_SUB]: '--radix-dropdown-menu-content-transform-origin',\n [ShellPopupSlot.CONTEXT_MENU]: '--radix-context-menu-content-transform-origin',\n [ShellPopupSlot.CONTEXT_MENU_SUB]: '--radix-context-menu-content-transform-origin',\n [ShellPopupSlot.POPOVER]: '--radix-popover-content-transform-origin',\n [ShellPopupSlot.HOVER_CARD]: '--radix-hover-card-content-transform-origin',\n [ShellPopupSlot.TOOLTIP]: '--radix-tooltip-content-transform-origin',\n [ShellPopupSlot.SELECT]: '--radix-select-content-transform-origin',\n [ShellPopupSlot.MENUBAR]: '--radix-menubar-content-transform-origin',\n [ShellPopupSlot.MENUBAR_SUB]: '--radix-menubar-content-transform-origin',\n};\n\n/** The centred dialogs: no trigger origin, they open over the whole shell. */\nexport const SHELL_CENTRED_POPUP_SLOTS: readonly ShellPopupSlot[] = [ShellPopupSlot.DIALOG, ShellPopupSlot.ALERT_DIALOG];\n\n/**\n * The MODAL popups: while one is open the rest of the shell is not what the person works in. Keyed on the content\n * slot, deliberately never on `role=\"dialog\"` — a Radix popover carries that role too (date pickers, record pickers,\n * the notification centre), and treating it as modal steps back the form being edited — nor on\n * `body[data-scroll-locked]`, which dropdown and context menus also set.\n */\nexport const SHELL_MODAL_POPUP_SLOTS: readonly ShellPopupSlot[] = [ShellPopupSlot.DIALOG, ShellPopupSlot.ALERT_DIALOG, ShellPopupSlot.SHEET, ShellPopupSlot.DRAWER];\n\n/** The `data-state` values of an OPEN popup. A tooltip is never `open`: Radix writes `delayed-open` or `instant-open`. */\nexport const SHELL_POPUP_OPEN_STATES: readonly string[] = ['open', 'delayed-open', 'instant-open'];\n\n/**\n * A `:has()` clause that matches a layout root while a modal popup is open in its overlay layer\n * (`AppShellOverlayPortalLayer`, `[data-shell-overlay-layer]`). Append it to the root selector:\n * `[data-my-layout]${shellModalOpenClause()} [data-shell-object] { … }`.\n */\nexport function shellModalOpenClause(): string {\n return `:has([data-shell-overlay-layer] :is(${SHELL_MODAL_POPUP_SLOTS.map((slot) => `[data-slot=\"${slot}\"]`).join(', ')})[data-state=\"open\"])`;\n}\n/** @wildo_source:part:end saas.frontend.app-shell.shell-motion-contract */\n"]}
@@ -0,0 +1,45 @@
1
+ import { type BrandIdentity } from '../../core/branding/useBrandIdentity';
2
+ /** The pages of an identity portal's signed-in area: what its shell links to, and what its home page leads to. */
3
+ export declare enum IdentityPortalPageRef {
4
+ HOME = "home",
5
+ /** The decision inbox, offered only when the application declares something a decision can wait on. */
6
+ DECISIONS = "decisions",
7
+ ACCOUNT_SECURITY = "account-security"
8
+ }
9
+ /** The path each portal page answers on: the product's own paths, so a link the backend builds works on both surfaces. */
10
+ export declare const IDENTITY_PORTAL_PAGE_PATHS: Readonly<Record<IdentityPortalPageRef, string>>;
11
+ /** One page of the portal, as its shell and home page present it. */
12
+ export interface IdentityPortalPageLink {
13
+ readonly ref: IdentityPortalPageRef;
14
+ readonly path: string;
15
+ /** The page's name in the reader's words. */
16
+ readonly label: string;
17
+ /** The page on screen now; its link carries `aria-current="page"`. */
18
+ readonly current: boolean;
19
+ }
20
+ export interface IdentityPortalShellLayoutInfo {
21
+ /** The application's identity, as the signed-in product shell presents it. */
22
+ readonly brand: BrandIdentity;
23
+ /** The portal's pages, in the order the shell lists them. */
24
+ readonly pages: readonly IdentityPortalPageLink[];
25
+ /** Names the portal's navigation for screen readers. */
26
+ readonly navigationLabel: string;
27
+ readonly signOutLabel: string;
28
+ /** Signs the person out of this application, as the product shell's sign-out does. */
29
+ readonly signOut: () => void;
30
+ /** The portal's words are loaded; a preset waits on this rather than showing keys. */
31
+ readonly isReady: boolean;
32
+ }
33
+ /**
34
+ * The pages a signed-in person reaches on this portal. Decisions are offered only when the application declares
35
+ * something a decision can wait on (`appConfig.decisionInbox`), the declaration the product's sidebar row reads; the
36
+ * page itself shows only the decisions the server routes to the caller, so offering it never shows anyone else's.
37
+ */
38
+ export declare function useIdentityPortalPages(): readonly IdentityPortalPageLink[];
39
+ /**
40
+ * Behaviour of the identity portal's signed-in shell (`APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER`): the application's
41
+ * identity, the portal's pages and sign-out, for a preset to draw. Reports the container as initialized, in place of
42
+ * the product shell's report, which a portal never renders.
43
+ */
44
+ export declare function useIdentityPortalShellLayout(): IdentityPortalShellLayoutInfo;
45
+ //# sourceMappingURL=useIdentityPortalShellLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIdentityPortalShellLayout.d.ts","sourceRoot":"","sources":["../../../../src/core/app-shell/useIdentityPortalShellLayout.ts"],"names":[],"mappings":"AASA,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAE1G,kHAAkH;AAClH,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,uGAAuG;IACvG,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;CACtC;AAED,0HAA0H;AAC1H,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAItF,CAAC;AAQF,qEAAqE;AACrE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,GAAG,EAAE,qBAAqB,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,6BAA6B;IAC5C,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAClD,wDAAwD;IACxD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,sFAAsF;IACtF,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,sFAAsF;IACtF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,IAAI,SAAS,sBAAsB,EAAE,CAa1E;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,IAAI,6BAA6B,CAqB5E"}
@@ -0,0 +1,72 @@
1
+ import { useCallback, useEffect, useMemo } from 'react';
2
+ import { useLocation } from 'react-router';
3
+ import { FrontendComponentType, IdentityPortalLabel } from '@wildo-ai/presets-components-models';
4
+ import { useApplication } from '../../core/runtime/useApplication.js';
5
+ import { MainContextInitComponents } from '../../core/runtime/runtime.frontend.schemas.js';
6
+ import { CommonRoutePaths } from '../../core/runtime/routes.frontend.definitions.js';
7
+ import { useI18n } from '../../core/i18n/useI18n.js';
8
+ import { useUserOrgs } from '../../core/security/useUserOrgs.js';
9
+ import { useBrandIdentity } from '../../core/branding/useBrandIdentity.js';
10
+ /** The pages of an identity portal's signed-in area: what its shell links to, and what its home page leads to. */
11
+ export var IdentityPortalPageRef;
12
+ (function (IdentityPortalPageRef) {
13
+ IdentityPortalPageRef["HOME"] = "home";
14
+ /** The decision inbox, offered only when the application declares something a decision can wait on. */
15
+ IdentityPortalPageRef["DECISIONS"] = "decisions";
16
+ IdentityPortalPageRef["ACCOUNT_SECURITY"] = "account-security";
17
+ })(IdentityPortalPageRef || (IdentityPortalPageRef = {}));
18
+ /** The path each portal page answers on: the product's own paths, so a link the backend builds works on both surfaces. */
19
+ export const IDENTITY_PORTAL_PAGE_PATHS = {
20
+ [IdentityPortalPageRef.HOME]: CommonRoutePaths.home,
21
+ [IdentityPortalPageRef.DECISIONS]: CommonRoutePaths.decisions,
22
+ [IdentityPortalPageRef.ACCOUNT_SECURITY]: CommonRoutePaths.accountSecurity,
23
+ };
24
+ const PAGE_LABELS = {
25
+ [IdentityPortalPageRef.HOME]: IdentityPortalLabel.NAV_HOME,
26
+ [IdentityPortalPageRef.DECISIONS]: IdentityPortalLabel.NAV_DECISIONS,
27
+ [IdentityPortalPageRef.ACCOUNT_SECURITY]: IdentityPortalLabel.NAV_ACCOUNT_SECURITY,
28
+ };
29
+ /**
30
+ * The pages a signed-in person reaches on this portal. Decisions are offered only when the application declares
31
+ * something a decision can wait on (`appConfig.decisionInbox`), the declaration the product's sidebar row reads; the
32
+ * page itself shows only the decisions the server routes to the caller, so offering it never shows anyone else's.
33
+ */
34
+ export function useIdentityPortalPages() {
35
+ const { appConfig } = useApplication();
36
+ const { pathname } = useLocation();
37
+ const { tComponent } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER });
38
+ const offersDecisions = Boolean(appConfig?.decisionInbox);
39
+ return useMemo(() => Object.values(IdentityPortalPageRef)
40
+ .filter((ref) => ref !== IdentityPortalPageRef.DECISIONS || offersDecisions)
41
+ .map((ref) => ({
42
+ ref,
43
+ path: IDENTITY_PORTAL_PAGE_PATHS[ref],
44
+ label: tComponent(FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER, PAGE_LABELS[ref]),
45
+ current: pathname === IDENTITY_PORTAL_PAGE_PATHS[ref],
46
+ })), [offersDecisions, pathname, tComponent]);
47
+ }
48
+ /**
49
+ * Behaviour of the identity portal's signed-in shell (`APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER`): the application's
50
+ * identity, the portal's pages and sign-out, for a preset to draw. Reports the container as initialized, in place of
51
+ * the product shell's report, which a portal never renders.
52
+ */
53
+ export function useIdentityPortalShellLayout() {
54
+ const { markComponentInitialized } = useApplication();
55
+ const { logout } = useUserOrgs();
56
+ const brand = useBrandIdentity();
57
+ const pages = useIdentityPortalPages();
58
+ const { tComponent, isReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER });
59
+ useEffect(() => {
60
+ markComponentInitialized(MainContextInitComponents.IDENTITY_PORTAL_CONTAINER);
61
+ }, [markComponentInitialized]);
62
+ const signOut = useCallback(() => { logout(); }, [logout]);
63
+ return {
64
+ brand,
65
+ pages,
66
+ navigationLabel: tComponent(FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER, IdentityPortalLabel.NAVIGATION),
67
+ signOutLabel: tComponent(FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER, IdentityPortalLabel.SIGN_OUT),
68
+ signOut,
69
+ isReady,
70
+ };
71
+ }
72
+ //# sourceMappingURL=useIdentityPortalShellLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIdentityPortalShellLayout.js","sourceRoot":"","sources":["../../../../src/core/app-shell/useIdentityPortalShellLayout.ts"],"names":[],"mappings":"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","sourcesContent":["import { useCallback, useEffect, useMemo } from 'react';\nimport { useLocation } from 'react-router';\nimport { FrontendComponentType, IdentityPortalLabel } from '@wildo-ai/presets-components-models';\n\nimport { useApplication } from '~wildo-frontend-lib/core/runtime/useApplication';\nimport { MainContextInitComponents } from '~wildo-frontend-lib/core/runtime/runtime.frontend.schemas';\nimport { CommonRoutePaths } from '~wildo-frontend-lib/core/runtime/routes.frontend.definitions';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport { useUserOrgs } from '~wildo-frontend-lib/core/security/useUserOrgs';\nimport { useBrandIdentity, type BrandIdentity } from '~wildo-frontend-lib/core/branding/useBrandIdentity';\n\n/** The pages of an identity portal's signed-in area: what its shell links to, and what its home page leads to. */\nexport enum IdentityPortalPageRef {\n HOME = 'home',\n /** The decision inbox, offered only when the application declares something a decision can wait on. */\n DECISIONS = 'decisions',\n ACCOUNT_SECURITY = 'account-security',\n}\n\n/** The path each portal page answers on: the product's own paths, so a link the backend builds works on both surfaces. */\nexport const IDENTITY_PORTAL_PAGE_PATHS: Readonly<Record<IdentityPortalPageRef, string>> = {\n [IdentityPortalPageRef.HOME]: CommonRoutePaths.home,\n [IdentityPortalPageRef.DECISIONS]: CommonRoutePaths.decisions,\n [IdentityPortalPageRef.ACCOUNT_SECURITY]: CommonRoutePaths.accountSecurity,\n};\n\nconst PAGE_LABELS: Readonly<Record<IdentityPortalPageRef, IdentityPortalLabel>> = {\n [IdentityPortalPageRef.HOME]: IdentityPortalLabel.NAV_HOME,\n [IdentityPortalPageRef.DECISIONS]: IdentityPortalLabel.NAV_DECISIONS,\n [IdentityPortalPageRef.ACCOUNT_SECURITY]: IdentityPortalLabel.NAV_ACCOUNT_SECURITY,\n};\n\n/** One page of the portal, as its shell and home page present it. */\nexport interface IdentityPortalPageLink {\n readonly ref: IdentityPortalPageRef;\n readonly path: string;\n /** The page's name in the reader's words. */\n readonly label: string;\n /** The page on screen now; its link carries `aria-current=\"page\"`. */\n readonly current: boolean;\n}\n\nexport interface IdentityPortalShellLayoutInfo {\n /** The application's identity, as the signed-in product shell presents it. */\n readonly brand: BrandIdentity;\n /** The portal's pages, in the order the shell lists them. */\n readonly pages: readonly IdentityPortalPageLink[];\n /** Names the portal's navigation for screen readers. */\n readonly navigationLabel: string;\n readonly signOutLabel: string;\n /** Signs the person out of this application, as the product shell's sign-out does. */\n readonly signOut: () => void;\n /** The portal's words are loaded; a preset waits on this rather than showing keys. */\n readonly isReady: boolean;\n}\n\n/**\n * The pages a signed-in person reaches on this portal. Decisions are offered only when the application declares\n * something a decision can wait on (`appConfig.decisionInbox`), the declaration the product's sidebar row reads; the\n * page itself shows only the decisions the server routes to the caller, so offering it never shows anyone else's.\n */\nexport function useIdentityPortalPages(): readonly IdentityPortalPageLink[] {\n const { appConfig } = useApplication();\n const { pathname } = useLocation();\n const { tComponent } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER });\n const offersDecisions = Boolean(appConfig?.decisionInbox);\n return useMemo(() => Object.values(IdentityPortalPageRef)\n .filter((ref) => ref !== IdentityPortalPageRef.DECISIONS || offersDecisions)\n .map((ref) => ({\n ref,\n path: IDENTITY_PORTAL_PAGE_PATHS[ref],\n label: tComponent(FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER, PAGE_LABELS[ref]),\n current: pathname === IDENTITY_PORTAL_PAGE_PATHS[ref],\n })), [offersDecisions, pathname, tComponent]);\n}\n\n/**\n * Behaviour of the identity portal's signed-in shell (`APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER`): the application's\n * identity, the portal's pages and sign-out, for a preset to draw. Reports the container as initialized, in place of\n * the product shell's report, which a portal never renders.\n */\nexport function useIdentityPortalShellLayout(): IdentityPortalShellLayoutInfo {\n const { markComponentInitialized } = useApplication();\n const { logout } = useUserOrgs();\n const brand = useBrandIdentity();\n const pages = useIdentityPortalPages();\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER });\n\n useEffect(() => {\n markComponentInitialized(MainContextInitComponents.IDENTITY_PORTAL_CONTAINER);\n }, [markComponentInitialized]);\n\n const signOut = useCallback(() => { logout(); }, [logout]);\n\n return {\n brand,\n pages,\n navigationLabel: tComponent(FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER, IdentityPortalLabel.NAVIGATION),\n signOutLabel: tComponent(FrontendComponentType.APP_LAYOUTS_IDENTITY_PORTAL_CONTAINER, IdentityPortalLabel.SIGN_OUT),\n signOut,\n isReady,\n };\n}\n"]}
@@ -2,10 +2,11 @@ import { ValidationMode } from '@wildo-ai/zod-decorators';
2
2
  import { CoreResourceOperation } from '@wildo-ai/saas-models';
3
3
  import type { z } from 'zod';
4
4
  /**
5
- * Default validation mode for all forms.
6
- * Centralized constant for consistent default behavior.
5
+ * The form-level validation timing when none is declared: ON SUBMIT. Fields with a format to check validate once
6
+ * touched by their own default (`AutomatedLayoutFrontendUtils.getDefaultValidationMode`); after a submit every field
7
+ * re-validates as it changes, so an error clears as it is fixed.
7
8
  */
8
- export declare const DEFAULT_VALIDATION_MODE = ValidationMode.ON_BLUR;
9
+ export declare const DEFAULT_VALIDATION_MODE = ValidationMode.ON_SUBMIT;
9
10
  /**
10
11
  * State enum for inline field editing.
11
12
  * Represents the different states a field can be in during inline editing.
@@ -1 +1 @@
1
- {"version":3,"file":"automated-layout.frontend.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/automated-layout/automated-layout.frontend.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACf,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAO7B;;;GAGG;AACH,eAAO,MAAM,uBAAuB,yBAAyB,CAAC;AAM9D;;;GAGG;AACH;;;;;;;;;GASG;AACH,oBAAY,2BAA2B;IACrC,2DAA2D;IAC3D,IAAI,SAAS;IACb,wDAAwD;IACxD,OAAO,YAAY;CACpB;AAED,oBAAY,eAAe;IACzB,yCAAyC;IACzC,OAAO,YAAY;IACnB,gDAAgD;IAChD,OAAO,YAAY;IACnB,mCAAmC;IACnC,MAAM,WAAW;IACjB,+EAA+E;IAC/E,KAAK,UAAU;IACf,iCAAiC;IACjC,KAAK,UAAU;CAChB;AAMD;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GACzB,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,IAAI,GAC1B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAMlB;;;;;;;GAOG;AACH,MAAM,WAAW,2BAA2B;IAC1C,yEAAyE;IACzE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4EAA4E;IAC5E,0CAA0C,CAAC,EAAE,MAAM,EAAE,CAAC;IACtD,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,KAAK,CAAC;QACvB,+CAA+C;QAC/C,uBAAuB,EAAE,MAAM,CAAC;QAChC,2CAA2C;QAC3C,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC;QACrB,8DAA8D;QAC9D,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;KAC3D,CAAC,CAAC;CACJ"}
1
+ {"version":3,"file":"automated-layout.frontend.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/automated-layout/automated-layout.frontend.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACf,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAO7B;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAMhE;;;GAGG;AACH;;;;;;;;;GASG;AACH,oBAAY,2BAA2B;IACrC,2DAA2D;IAC3D,IAAI,SAAS;IACb,wDAAwD;IACxD,OAAO,YAAY;CACpB;AAED,oBAAY,eAAe;IACzB,yCAAyC;IACzC,OAAO,YAAY;IACnB,gDAAgD;IAChD,OAAO,YAAY;IACnB,mCAAmC;IACnC,MAAM,WAAW;IACjB,+EAA+E;IAC/E,KAAK,UAAU;IACf,iCAAiC;IACjC,KAAK,UAAU;CAChB;AAMD;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GACzB,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,MAAM,GAC5B,qBAAqB,CAAC,IAAI,GAC1B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAMlB;;;;;;;GAOG;AACH,MAAM,WAAW,2BAA2B;IAC1C,yEAAyE;IACzE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4EAA4E;IAC5E,0CAA0C,CAAC,EAAE,MAAM,EAAE,CAAC;IACtD,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,KAAK,CAAC;QACvB,+CAA+C;QAC/C,uBAAuB,EAAE,MAAM,CAAC;QAChC,2CAA2C;QAC3C,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC;QACrB,8DAA8D;QAC9D,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;KAC3D,CAAC,CAAC;CACJ"}
@@ -3,10 +3,11 @@ import { ValidationMode, } from '@wildo-ai/zod-decorators';
3
3
  // VALIDATION CONSTANTS
4
4
  // =============================================================================
5
5
  /**
6
- * Default validation mode for all forms.
7
- * Centralized constant for consistent default behavior.
6
+ * The form-level validation timing when none is declared: ON SUBMIT. Fields with a format to check validate once
7
+ * touched by their own default (`AutomatedLayoutFrontendUtils.getDefaultValidationMode`); after a submit every field
8
+ * re-validates as it changes, so an error clears as it is fixed.
8
9
  */
9
- export const DEFAULT_VALIDATION_MODE = ValidationMode.ON_BLUR;
10
+ export const DEFAULT_VALIDATION_MODE = ValidationMode.ON_SUBMIT;
10
11
  // =============================================================================
11
12
  // INLINE EDIT STATE
12
13
  // =============================================================================
@@ -1 +1 @@
1
- {"version":3,"file":"automated-layout.frontend.schemas.js","sourceRoot":"","sources":["../../../../src/core/automated-layout/automated-layout.frontend.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,GACf,MAAM,0BAA0B,CAAC;AAOlC,gFAAgF;AAChF,uBAAuB;AACvB,gFAAgF;AAEhF;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,cAAc,CAAC,OAAO,CAAC;AAE9D,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF;;;GAGG;AACH;;;;;;;;;GASG;AACH,MAAM,CAAN,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,2DAA2D;IAC3D,4CAAa,CAAA;IACb,wDAAwD;IACxD,kDAAmB,CAAA;AACrB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,QAKtC;AAED,MAAM,CAAN,IAAY,eAWX;AAXD,WAAY,eAAe;IACzB,yCAAyC;IACzC,sCAAmB,CAAA;IACnB,gDAAgD;IAChD,sCAAmB,CAAA;IACnB,mCAAmC;IACnC,oCAAiB,CAAA;IACjB,+EAA+E;IAC/E,kCAAe,CAAA;IACf,iCAAiC;IACjC,kCAAe,CAAA;AACjB,CAAC,EAXW,eAAe,KAAf,eAAe,QAW1B","sourcesContent":["import {\n ValidationMode,\n} from '@wildo-ai/zod-decorators';\n\nimport { CoreResourceOperation } from '@wildo-ai/saas-models';\n\nimport type { z } from 'zod';\n\n\n// =============================================================================\n// VALIDATION CONSTANTS\n// =============================================================================\n\n/**\n * Default validation mode for all forms.\n * Centralized constant for consistent default behavior.\n */\nexport const DEFAULT_VALIDATION_MODE = ValidationMode.ON_BLUR;\n\n// =============================================================================\n// INLINE EDIT STATE\n// =============================================================================\n\n/**\n * State enum for inline field editing.\n * Represents the different states a field can be in during inline editing.\n */\n/**\n * Which of the two automated-layout generators a diagnostic is reporting for.\n *\n * A named source rather than a `'form' | 'display'` literal union, so the distinction has one\n * runtime home and each member can say what it means. Deliberately NOT reusing\n * `GroupedSectionHostKind` (which adds `COMPOSITE` and answers \"what hosts this section\") or\n * `MutationSourceType` (which answers \"what initiated this mutation\"): all three happen to spell\n * two members the same way, and merging vocabularies because their wire values overlap is what the\n * framework's own semantic rule forbids.\n */\nexport enum AutomatedLayoutTemplateKind {\n /** The editable template — fields become form controls. */\n FORM = 'form',\n /** The read template — fields become display chrome. */\n DISPLAY = 'display',\n}\n\nexport enum InlineEditState {\n /** Displaying value, not in edit mode */\n DISPLAY = 'display',\n /** In edit mode, user is modifying the value */\n EDITING = 'editing',\n /** Saving changes to the server */\n SAVING = 'saving',\n /** Save completed successfully (brief feedback before returning to DISPLAY) */\n SAVED = 'saved',\n /** Save failed, showing error */\n ERROR = 'error',\n}\n\n// =============================================================================\n// FORM OPERATION TYPE\n// =============================================================================\n\n/**\n * Operation type for controlling field visibility based on operation context.\n * Uses CoreResourceOperation enum values for type safety.\n * Used with excludeFromCreate, excludeFromUpdate, and isHidden(operations) decorators.\n * \n * Branded with `& {}` to allow custom string values through type assertion\n * without collapsing the entire union to `string` (which kills autocomplete).\n */\nexport type FormOperationType = \n | CoreResourceOperation.CREATE \n | CoreResourceOperation.UPDATE \n | CoreResourceOperation.READ\n | (string & {});\n\n// =============================================================================\n// INHERITANCE SCHEMA DEFINITION\n// =============================================================================\n\n/**\n * Inheritance schema definition for discriminated unions.\n * Used to track which fields belong to which variants for conditional visibility.\n * \n * This is a simplified, non-generic version of ResourceConfiguration_InheritanceSchemaDefinition\n * from @wildo-ai/saas-models, optimized for frontend use. It is structurally compatible\n * with the backend type but avoids complex generics that aren't needed for UI rendering.\n */\nexport interface InheritanceSchemaDefinition {\n /** Field name used for discrimination (e.g., 'type', 'recurringType') */\n discriminatorField: string;\n /** Discriminator values that use base schema only (no variant extension) */\n withoutInheritanceDiscriminatorFieldValues?: string[];\n /** Variant schemas for each discriminator value */\n inheritedSchemas?: Array<{\n /** The discriminator value for this variant */\n discriminatorFieldValue: string;\n /** The extended schema for this variant */\n schema: z.ZodTypeAny;\n /** Nested inheritance for multi-level discriminated unions */\n inheritenceSchemaDefinition?: InheritanceSchemaDefinition;\n }>;\n}\n"]}
1
+ {"version":3,"file":"automated-layout.frontend.schemas.js","sourceRoot":"","sources":["../../../../src/core/automated-layout/automated-layout.frontend.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,GACf,MAAM,0BAA0B,CAAC;AAOlC,gFAAgF;AAChF,uBAAuB;AACvB,gFAAgF;AAEhF;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,cAAc,CAAC,SAAS,CAAC;AAEhE,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF;;;GAGG;AACH;;;;;;;;;GASG;AACH,MAAM,CAAN,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,2DAA2D;IAC3D,4CAAa,CAAA;IACb,wDAAwD;IACxD,kDAAmB,CAAA;AACrB,CAAC,EALW,2BAA2B,KAA3B,2BAA2B,QAKtC;AAED,MAAM,CAAN,IAAY,eAWX;AAXD,WAAY,eAAe;IACzB,yCAAyC;IACzC,sCAAmB,CAAA;IACnB,gDAAgD;IAChD,sCAAmB,CAAA;IACnB,mCAAmC;IACnC,oCAAiB,CAAA;IACjB,+EAA+E;IAC/E,kCAAe,CAAA;IACf,iCAAiC;IACjC,kCAAe,CAAA;AACjB,CAAC,EAXW,eAAe,KAAf,eAAe,QAW1B","sourcesContent":["import {\n ValidationMode,\n} from '@wildo-ai/zod-decorators';\n\nimport { CoreResourceOperation } from '@wildo-ai/saas-models';\n\nimport type { z } from 'zod';\n\n\n// =============================================================================\n// VALIDATION CONSTANTS\n// =============================================================================\n\n/**\n * The form-level validation timing when none is declared: ON SUBMIT. Fields with a format to check validate once\n * touched by their own default (`AutomatedLayoutFrontendUtils.getDefaultValidationMode`); after a submit every field\n * re-validates as it changes, so an error clears as it is fixed.\n */\nexport const DEFAULT_VALIDATION_MODE = ValidationMode.ON_SUBMIT;\n\n// =============================================================================\n// INLINE EDIT STATE\n// =============================================================================\n\n/**\n * State enum for inline field editing.\n * Represents the different states a field can be in during inline editing.\n */\n/**\n * Which of the two automated-layout generators a diagnostic is reporting for.\n *\n * A named source rather than a `'form' | 'display'` literal union, so the distinction has one\n * runtime home and each member can say what it means. Deliberately NOT reusing\n * `GroupedSectionHostKind` (which adds `COMPOSITE` and answers \"what hosts this section\") or\n * `MutationSourceType` (which answers \"what initiated this mutation\"): all three happen to spell\n * two members the same way, and merging vocabularies because their wire values overlap is what the\n * framework's own semantic rule forbids.\n */\nexport enum AutomatedLayoutTemplateKind {\n /** The editable template — fields become form controls. */\n FORM = 'form',\n /** The read template — fields become display chrome. */\n DISPLAY = 'display',\n}\n\nexport enum InlineEditState {\n /** Displaying value, not in edit mode */\n DISPLAY = 'display',\n /** In edit mode, user is modifying the value */\n EDITING = 'editing',\n /** Saving changes to the server */\n SAVING = 'saving',\n /** Save completed successfully (brief feedback before returning to DISPLAY) */\n SAVED = 'saved',\n /** Save failed, showing error */\n ERROR = 'error',\n}\n\n// =============================================================================\n// FORM OPERATION TYPE\n// =============================================================================\n\n/**\n * Operation type for controlling field visibility based on operation context.\n * Uses CoreResourceOperation enum values for type safety.\n * Used with excludeFromCreate, excludeFromUpdate, and isHidden(operations) decorators.\n * \n * Branded with `& {}` to allow custom string values through type assertion\n * without collapsing the entire union to `string` (which kills autocomplete).\n */\nexport type FormOperationType = \n | CoreResourceOperation.CREATE \n | CoreResourceOperation.UPDATE \n | CoreResourceOperation.READ\n | (string & {});\n\n// =============================================================================\n// INHERITANCE SCHEMA DEFINITION\n// =============================================================================\n\n/**\n * Inheritance schema definition for discriminated unions.\n * Used to track which fields belong to which variants for conditional visibility.\n * \n * This is a simplified, non-generic version of ResourceConfiguration_InheritanceSchemaDefinition\n * from @wildo-ai/saas-models, optimized for frontend use. It is structurally compatible\n * with the backend type but avoids complex generics that aren't needed for UI rendering.\n */\nexport interface InheritanceSchemaDefinition {\n /** Field name used for discrimination (e.g., 'type', 'recurringType') */\n discriminatorField: string;\n /** Discriminator values that use base schema only (no variant extension) */\n withoutInheritanceDiscriminatorFieldValues?: string[];\n /** Variant schemas for each discriminator value */\n inheritedSchemas?: Array<{\n /** The discriminator value for this variant */\n discriminatorFieldValue: string;\n /** The extended schema for this variant */\n schema: z.ZodTypeAny;\n /** Nested inheritance for multi-level discriminated unions */\n inheritenceSchemaDefinition?: InheritanceSchemaDefinition;\n }>;\n}\n"]}