@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
@@ -160,6 +160,13 @@ export var SectionContentRole;
160
160
  SectionContentRole["FIELD_SLOT"] = "field_slot";
161
161
  /** A wrapper whose children are judged in its place (it scopes field names and adds no content). */
162
162
  SectionContentRole["FIELD_SLOT_CONTAINER"] = "field_slot_container";
163
+ /**
164
+ * A slot that DISPLAYS one field, or nothing when the viewer is not shown it (#4459 F6): it reports its presence like a
165
+ * field slot, so a display section of nothing but such slots hides when none renders. It writes nothing, so it is never
166
+ * a PLACED slot, and the static grouped-form decision (`listPlacedFieldSlots`) reads it as content of its own. A
167
+ * grouped DISPLAY host reads it statically instead (`listDisplayedFieldSlots`).
168
+ */
169
+ SectionContentRole["DISPLAY_FIELD_SLOT"] = "display_field_slot";
163
170
  })(SectionContentRole || (SectionContentRole = {}));
164
171
  const SECTION_CONTENT_ROLE = Symbol.for('wildo.sectionContentRole');
165
172
  /** The role a component declared, if any (read by the placement report as well as the hide decision). */
@@ -172,6 +179,19 @@ export function sectionContentRoleOf(type) {
172
179
  export function declareSectionContentRole(component, role) {
173
180
  Object.defineProperty(component, SECTION_CONTENT_ROLE, { value: role, enumerable: false });
174
181
  }
182
+ /**
183
+ * Which slots a static reading of a section's elements counts as its field slots. The three read the same tree and
184
+ * differ in what a slot of the OTHER kind is to them: content, which keeps the section.
185
+ */
186
+ var SectionSlotReading;
187
+ (function (SectionSlotReading) {
188
+ /** Any slot that draws one field or nothing: the mounted presence decision (`holdsOnlyFieldSlots`). */
189
+ SectionSlotReading["PRESENCE"] = "presence";
190
+ /** Form slots, with their paths; a display slot is content (`listPlacedFieldSlots`). */
191
+ SectionSlotReading["PLACED"] = "placed";
192
+ /** Display slots, with their paths; a form slot is content (`listDisplayedFieldSlots`). */
193
+ SectionSlotReading["DISPLAYED"] = "displayed";
194
+ })(SectionSlotReading || (SectionSlotReading = {}));
175
195
  /** What a subtree amounts to for `holdsOnlyFieldSlots`. */
176
196
  var SectionSubtreeKind;
177
197
  (function (SectionSubtreeKind) {
@@ -182,7 +202,7 @@ var SectionSubtreeKind;
182
202
  /** Something a field-presence count cannot see: text, a component, a childless or custom element. */
183
203
  SectionSubtreeKind["CONTENT"] = "content";
184
204
  })(SectionSubtreeKind || (SectionSubtreeKind = {}));
185
- function classifySectionSubtree(nodes, pathPrefix, placed) {
205
+ function classifySectionSubtree(nodes, pathPrefix, reading, slots) {
186
206
  let sawFieldSlot = false;
187
207
  for (const node of Children.toArray(nodes)) {
188
208
  if (!isValidElement(node))
@@ -190,13 +210,13 @@ function classifySectionSubtree(nodes, pathPrefix, placed) {
190
210
  const props = node.props;
191
211
  let kind;
192
212
  if (node.type === Fragment) {
193
- kind = classifySectionSubtree(props.children, pathPrefix, placed);
213
+ kind = classifySectionSubtree(props.children, pathPrefix, reading, slots);
194
214
  }
195
215
  else if (typeof node.type === 'string') {
196
216
  // A plain element is a WRAPPER only when it wraps field slots (a layout `<div className="grid">`).
197
217
  // Anything else is content: a childless element (an image, a rule, a spacer), one whose only child
198
218
  // is a falsy branch (it may be drawn by CSS), and a custom element (it may render shadow content).
199
- kind = !node.type.includes('-') && classifySectionSubtree(props.children, pathPrefix, placed) === SectionSubtreeKind.FIELD_SLOTS
219
+ kind = !node.type.includes('-') && classifySectionSubtree(props.children, pathPrefix, reading, slots) === SectionSubtreeKind.FIELD_SLOTS
200
220
  ? SectionSubtreeKind.FIELD_SLOTS
201
221
  : SectionSubtreeKind.CONTENT;
202
222
  }
@@ -205,14 +225,29 @@ function classifySectionSubtree(nodes, pathPrefix, placed) {
205
225
  const name = typeof props.name === 'string' ? props.name : undefined;
206
226
  const scopedPath = name ? (pathPrefix ? `${pathPrefix}.${name}` : name) : pathPrefix;
207
227
  if (role === SectionContentRole.FIELD_SLOT) {
208
- placed.push({ path: scopedPath, hasOwnSchema: props.schema !== undefined });
209
- kind = SectionSubtreeKind.FIELD_SLOTS;
228
+ if (reading === SectionSlotReading.DISPLAYED) {
229
+ kind = SectionSubtreeKind.CONTENT;
230
+ }
231
+ else {
232
+ slots.placed.push({ path: scopedPath, hasOwnSchema: props.schema !== undefined });
233
+ kind = SectionSubtreeKind.FIELD_SLOTS;
234
+ }
235
+ }
236
+ else if (role === SectionContentRole.DISPLAY_FIELD_SLOT) {
237
+ // A field slot to the presence decision and to a display host; never a placed (form) slot (see the role).
238
+ if (reading === SectionSlotReading.PLACED) {
239
+ kind = SectionSubtreeKind.CONTENT;
240
+ }
241
+ else {
242
+ slots.displayed.push({ path: scopedPath, ownSchema: props.schema });
243
+ kind = SectionSubtreeKind.FIELD_SLOTS;
244
+ }
210
245
  }
211
246
  else if (role === SectionContentRole.FIELD_SLOT_CONTAINER) {
212
247
  // A declared container holding nothing adds nothing, even an `ObjectScope` given a `className`
213
248
  // (which renders a styled div). Unlike a bare styled div it scopes names rather than decorating,
214
249
  // and when a section's slots are all absent the whole frame hides anyway.
215
- kind = classifySectionSubtree(props.children, scopedPath, placed);
250
+ kind = classifySectionSubtree(props.children, scopedPath, reading, slots);
216
251
  }
217
252
  else {
218
253
  kind = SectionSubtreeKind.CONTENT;
@@ -230,7 +265,7 @@ function classifySectionSubtree(nodes, pathPrefix, placed) {
230
265
  * are looked through, and so is a plain element that wraps field slots.
231
266
  */
232
267
  export function holdsOnlyFieldSlots(children) {
233
- return classifySectionSubtree(children, '', []) === SectionSubtreeKind.FIELD_SLOTS;
268
+ return classifySectionSubtree(children, '', SectionSlotReading.PRESENCE, { placed: [], displayed: [] }) === SectionSubtreeKind.FIELD_SLOTS;
234
269
  }
235
270
  /**
236
271
  * The field slots `children` places, or `null` when it holds anything besides field slots. Paths are
@@ -239,7 +274,16 @@ export function holdsOnlyFieldSlots(children) {
239
274
  * is not mounted — an inactive tab's panel is not.
240
275
  */
241
276
  export function listPlacedFieldSlots(children, pathPrefix = '') {
242
- const placed = [];
243
- return classifySectionSubtree(children, pathPrefix, placed) === SectionSubtreeKind.FIELD_SLOTS ? placed : null;
277
+ const slots = { placed: [], displayed: [] };
278
+ return classifySectionSubtree(children, pathPrefix, SectionSlotReading.PLACED, slots) === SectionSubtreeKind.FIELD_SLOTS ? slots.placed : null;
279
+ }
280
+ /**
281
+ * The display slots `children` places, or `null` when it holds anything besides display slots (a form slot included).
282
+ * Paths are resolved the way `DisplayField` resolves them, starting from `pathPrefix`. Read STATICALLY, for a grouped
283
+ * display host deciding about a section whose content is not mounted (#4459 review D1).
284
+ */
285
+ export function listDisplayedFieldSlots(children, pathPrefix = '') {
286
+ const slots = { placed: [], displayed: [] };
287
+ return classifySectionSubtree(children, pathPrefix, SectionSlotReading.DISPLAYED, slots) === SectionSubtreeKind.FIELD_SLOTS ? slots.displayed : null;
244
288
  }
245
289
  //# sourceMappingURL=SectionFieldsContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionFieldsContext.js","sourceRoot":"","sources":["../../../../../src/components/resources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,CAAC,CAAC,IAAI,CAAC;AACjH,CAAC","sourcesContent":["import { Children, Fragment, createContext, isValidElement, useContext, useEffect, useLayoutEffect, useState, useSyncExternalStore, type ReactNode } from 'react';\n\n/**\n * Registry contract a form-hosted section exposes to its descendants.\n *\n * IDENTITY CONTRACT: providers MUST keep the context value identity-stable for\n * the lifetime of the section (see `useSectionFieldsRegistry`). Every\n * `FormField` registers itself through an effect that depends on this value;\n * a value whose identity tracks the registry contents re-fires every field's\n * registration effect on each mutation (unregister + register → new contents\n * → new value → …), which loops until React throws \"Maximum update depth\n * exceeded\" (recovered 2026-06-10 on the Wonder Todos todoLists create form).\n */\nexport interface SectionFieldsContextValue {\n registerField: (name: string) => void;\n unregisterField: (name: string) => void;\n /**\n * Current registered field names (insertion-ordered, deduplicated).\n * Returns the live immutable snapshot — a new array identity is produced\n * only when the contents actually change, so it is safe to use as a\n * `useSyncExternalStore` snapshot.\n */\n getRegisteredFields: () => string[];\n /**\n * Subscribe to registry mutations. Returns the unsubscribe function.\n * Render-reactive consumers should prefer `useRegisteredSectionFields`\n * over wiring this manually.\n */\n subscribeToRegisteredFields: (listener: () => void) => () => void;\n /**\n * Records whether a field this section declares actually RENDERS a control here — its field is in\n * the operation's schema and not hidden by a condition. A template places its `FormField` slots\n * unconditionally and lets the operation's schema decide (a slot whose field the schema lacks\n * renders nothing), so a section can declare fields and show none of them.\n */\n reportSlotPresence: (slot: object, present: boolean) => void;\n clearSlotPresence: (slot: object) => void;\n /**\n * True when fields reported here and NONE of them renders. Measured on Wonder Todos, \"Reset to\n * defaults\" showed the preferences template's four section cards, every one empty. This is a fact\n * about FIELDS only: a section also holding other content (text, a custom control, a nested section)\n * is not empty because of it — `Section` combines it with `holdsOnlyFieldSlots`. Notifies through\n * `subscribeToRegisteredFields`.\n */\n showsNoField: () => boolean;\n}\n\nexport const SectionFieldsContext = createContext<SectionFieldsContextValue | null>(null);\n\n/**\n * Builds the identity-stable registry backing `SectionFieldsContext`.\n * Used by both section form hosts (`Section` solo modes and\n * `GroupedSectionBody` for grouped container panels) — keep them on this\n * single implementation so the identity contract cannot drift between hosts.\n *\n * Why the registry lives OUTSIDE React state: registrations arrive from\n * descendant effects. If the registered names were `useState` data baked into\n * the provider value (e.g. a `useMemo` with the names in its deps), every\n * registration would change the value identity, re-fire every field's\n * registration effect (cleanup unregister + register), change the state\n * again, and re-render forever — register/unregister pairs always transition\n * through fresh array identities, so any state-derived value loops by\n * construction. Instead the store is created once per section; mutations swap\n * an immutable snapshot and notify subscribers, so registry churn re-renders\n * only the components that opted in via `useRegisteredSectionFields` — never\n * the provider, never the registrants.\n *\n * Same family as the `WizardStep` field registry (stable mutable container),\n * extended with subscription because section save buttons render from the\n * registry contents (disabled-when-empty) and need to observe changes.\n */\nexport function useSectionFieldsRegistry(): SectionFieldsContextValue {\n const [registry] = useState((): SectionFieldsContextValue => {\n /** Immutable snapshot — swapped (never mutated) so subscribers can compare by identity. */\n let registeredFields: string[] = [];\n // One entry per MOUNTED SLOT, keyed by that slot's own token rather than by field name: the same\n // field placed twice is two slots, which may even disagree (one given a schema the other lacks), and\n // one copy unmounting must not erase or overwrite the other's answer.\n const slotPresence = new Map<object, boolean>();\n let showsNoField = false;\n const listeners = new Set<() => void>();\n const notify = (): void => {\n for (const listener of listeners) listener();\n };\n const recomputePresence = (): void => {\n const next = slotPresence.size > 0 && ![...slotPresence.values()].some(Boolean);\n if (next === showsNoField) return;\n showsNoField = next;\n notify();\n };\n return {\n registerField: (name: string): void => {\n if (registeredFields.includes(name)) return;\n registeredFields = [...registeredFields, name];\n notify();\n },\n unregisterField: (name: string): void => {\n if (!registeredFields.includes(name)) return;\n registeredFields = registeredFields.filter((current) => current !== name);\n notify();\n },\n getRegisteredFields: (): string[] => registeredFields,\n reportSlotPresence: (slot: object, present: boolean): void => {\n slotPresence.set(slot, present);\n recomputePresence();\n },\n clearSlotPresence: (slot: object): void => {\n if (!slotPresence.delete(slot)) return;\n recomputePresence();\n },\n showsNoField: (): boolean => showsNoField,\n subscribeToRegisteredFields: (listener: () => void): (() => void) => {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n };\n });\n return registry;\n}\n\n/**\n * Hook for `FormField` to register with the enclosing saveable section so the\n * section save action can validate and submit only the fields it actually\n * owns. No-op outside a section provider.\n *\n * Depends on the context value identity on purpose (React contract: re-bind\n * if the provider genuinely changes). This is safe only because providers\n * honor the identity contract documented on `SectionFieldsContextValue` —\n * the effect then runs once per field mount.\n */\nexport function useSectionFieldRegistration(fieldName: string): void {\n const ctx = useContext(SectionFieldsContext);\n useEffect(() => {\n ctx?.registerField(fieldName);\n return () => {\n ctx?.unregisterField(fieldName);\n };\n }, [ctx, fieldName]);\n}\n\nconst EMPTY_REGISTERED_FIELDS: string[] = [];\nconst subscribeToNothing = (): (() => void) => () => {};\n\n/**\n * Render-reactive view of the enclosing section's registered field names.\n * Re-renders the caller when fields register/unregister (e.g. conditionally\n * shown fields), without ever invalidating the provider value. Returns a\n * stable empty array outside any section provider.\n */\nexport function useRegisteredSectionFields(): string[] {\n const ctx = useContext(SectionFieldsContext);\n return useSyncExternalStore(\n ctx ? ctx.subscribeToRegisteredFields : subscribeToNothing,\n ctx ? ctx.getRegisteredFields : (): string[] => EMPTY_REGISTERED_FIELDS,\n );\n}\n\n/**\n * Hook for `FormField` to tell its section whether it renders a control. A LAYOUT effect, so the\n * section knows before the browser paints and an empty section never flashes on screen.\n */\nexport function useSectionFieldPresence(present: boolean): void {\n // Two effects on purpose. The CLEAR runs only when the slot leaves this registry (unmount, or the\n // section provider changing), so a slot whose `present` flips is updated in place rather than deleted\n // and re-added; either way the section settles before paint. The REPORT runs on every change of\n // `present`, and after a provider change it reports into the new registry.\n const ctx = useContext(SectionFieldsContext);\n const [slot] = useState(() => ({}));\n useLayoutEffect(() => () => {\n ctx?.clearSlotPresence(slot);\n }, [ctx, slot]);\n useLayoutEffect(() => {\n ctx?.reportSlotPresence(slot, present);\n }, [ctx, slot, present]);\n}\n\n/**\n * Whether the section this registry backs has fields and shows none of them.\n *\n * Read in a LAYOUT effect rather than through `useSyncExternalStore`: the fields report in their own\n * layout effects, which run before their section's, so the section settles before the browser paints.\n * A store subscription is attached in a passive effect, after paint, and would let an empty frame show\n * for a frame on the first mount and on every keyed remount of the form.\n */\nexport function useSectionShowsNoField(registry: SectionFieldsContextValue): boolean {\n const [showsNoField, setShowsNoField] = useState(false);\n useLayoutEffect(() => {\n const update = (): void => setShowsNoField(registry.showsNoField());\n update();\n return registry.subscribeToRegisteredFields(update);\n }, [registry]);\n return showsNoField;\n}\n\n/**\n * What a component is to a section deciding whether it holds anything besides field slots.\n *\n * A section may hide when none of its fields renders only if fields are ALL it holds: text, a custom\n * control or a nested section beside them is content of its own, which a field-presence count cannot see.\n * Plain elements that wrap field slots (a layout `div`) are looked through. Components opt in by declaring\n * their role; any undeclared component counts as other content, so an unknown component can only keep a\n * section visible, never hide one. The role API is deliberately NOT exported from the package: an\n * application's own wrapper component keeps its section visible, which is the safe answer, and an author\n * who wants hiding places slots directly, in a plain element, or in `ObjectScope`.\n */\nexport enum SectionContentRole {\n /** A slot that renders one field's control, or nothing when the operation's schema lacks it. */\n FIELD_SLOT = 'field_slot',\n /** A wrapper whose children are judged in its place (it scopes field names and adds no content). */\n FIELD_SLOT_CONTAINER = 'field_slot_container',\n}\n\nconst SECTION_CONTENT_ROLE = Symbol.for('wildo.sectionContentRole');\n\n/** The role a component declared, if any (read by the placement report as well as the hide decision). */\nexport function sectionContentRoleOf(type: unknown): SectionContentRole | undefined {\n return (type !== null && (typeof type === 'function' || typeof type === 'object'))\n ? (type as { [SECTION_CONTENT_ROLE]?: SectionContentRole })[SECTION_CONTENT_ROLE]\n : undefined;\n}\n\n/** Declares what a component is to `holdsOnlyFieldSlots`. */\nexport function declareSectionContentRole(component: object, role: SectionContentRole): void {\n Object.defineProperty(component, SECTION_CONTENT_ROLE, { value: role, enumerable: false });\n}\n\n/** What a subtree amounts to for `holdsOnlyFieldSlots`. */\nenum SectionSubtreeKind {\n /** At least one field slot, and nothing else. */\n FIELD_SLOTS = 'field_slots',\n /** Nothing at all: no slot and no content (a falsy branch, an empty container). */\n NOTHING = 'nothing',\n /** Something a field-presence count cannot see: text, a component, a childless or custom element. */\n CONTENT = 'content',\n}\n\n/** Where a field slot writes, as `FormField` resolves it: the enclosing scopes' names joined to its own. */\nexport interface PlacedFieldSlot {\n path: string;\n /** The slot was handed its own schema, so the form's schema does not decide whether it renders. */\n hasOwnSchema: boolean;\n}\n\nfunction classifySectionSubtree(nodes: ReactNode, pathPrefix: string, placed: PlacedFieldSlot[]): SectionSubtreeKind {\n let sawFieldSlot = false;\n for (const node of Children.toArray(nodes)) {\n if (!isValidElement(node)) return SectionSubtreeKind.CONTENT;\n const props = node.props as { children?: ReactNode; name?: unknown; schema?: unknown };\n let kind: SectionSubtreeKind;\n if (node.type === Fragment) {\n kind = classifySectionSubtree(props.children, pathPrefix, placed);\n } else if (typeof node.type === 'string') {\n // A plain element is a WRAPPER only when it wraps field slots (a layout `<div className=\"grid\">`).\n // Anything else is content: a childless element (an image, a rule, a spacer), one whose only child\n // is a falsy branch (it may be drawn by CSS), and a custom element (it may render shadow content).\n kind = !node.type.includes('-') && classifySectionSubtree(props.children, pathPrefix, placed) === SectionSubtreeKind.FIELD_SLOTS\n ? SectionSubtreeKind.FIELD_SLOTS\n : SectionSubtreeKind.CONTENT;\n } else {\n const role = (node.type as { [SECTION_CONTENT_ROLE]?: SectionContentRole })[SECTION_CONTENT_ROLE];\n const name = typeof props.name === 'string' ? props.name : undefined;\n const scopedPath = name ? (pathPrefix ? `${pathPrefix}.${name}` : name) : pathPrefix;\n if (role === SectionContentRole.FIELD_SLOT) {\n placed.push({ path: scopedPath, hasOwnSchema: props.schema !== undefined });\n kind = SectionSubtreeKind.FIELD_SLOTS;\n } else if (role === SectionContentRole.FIELD_SLOT_CONTAINER) {\n // A declared container holding nothing adds nothing, even an `ObjectScope` given a `className`\n // (which renders a styled div). Unlike a bare styled div it scopes names rather than decorating,\n // and when a section's slots are all absent the whole frame hides anyway.\n kind = classifySectionSubtree(props.children, scopedPath, placed);\n } else {\n kind = SectionSubtreeKind.CONTENT;\n }\n }\n if (kind === SectionSubtreeKind.CONTENT) return SectionSubtreeKind.CONTENT;\n if (kind === SectionSubtreeKind.FIELD_SLOTS) sawFieldSlot = true;\n }\n return sawFieldSlot ? SectionSubtreeKind.FIELD_SLOTS : SectionSubtreeKind.NOTHING;\n}\n\n/**\n * True when `children` holds at least one field slot and nothing else. Fragments and declared containers\n * are looked through, and so is a plain element that wraps field slots.\n */\nexport function holdsOnlyFieldSlots(children: ReactNode): boolean {\n return classifySectionSubtree(children, '', []) === SectionSubtreeKind.FIELD_SLOTS;\n}\n\n/**\n * The field slots `children` places, or `null` when it holds anything besides field slots. Paths are\n * resolved the way `FormField` resolves them (scope names joined to the slot's `name`), starting from\n * `pathPrefix`. Read STATICALLY, from the elements, so a host can decide about a section whose content\n * is not mounted — an inactive tab's panel is not.\n */\nexport function listPlacedFieldSlots(children: ReactNode, pathPrefix = ''): PlacedFieldSlot[] | null {\n const placed: PlacedFieldSlot[] = [];\n return classifySectionSubtree(children, pathPrefix, placed) === SectionSubtreeKind.FIELD_SLOTS ? placed : null;\n}\n"]}
1
+ {"version":3,"file":"SectionFieldsContext.js","sourceRoot":"","sources":["../../../../../src/components/resources/skeleton/SectionFieldsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,oBAAoB,EAAkB,MAAM,OAAO,CAAC;AAgDlK,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAmC,IAAI,CAAC,CAAC;AAE1F;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,wBAAwB;IACtC,MAAM,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAA8B,EAAE;QAC1D,2FAA2F;QA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CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC;AACpF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAmB;IACrD,OAAO,sBAAsB,CAAC,QAAQ,EAAE,EAAE,EAAE,kBAAkB,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,KAAK,kBAAkB,CAAC,WAAW,CAAC;AAC7I,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAmB,EAAE,UAAU,GAAG,EAAE;IACvE,MAAM,KAAK,GAAqB,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC9D,OAAO,sBAAsB,CAAC,QAAQ,EAAE,UAAU,EAAE,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACjJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAmB,EAAE,UAAU,GAAG,EAAE;IAC1E,MAAM,KAAK,GAAqB,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IAC9D,OAAO,sBAAsB,CAAC,QAAQ,EAAE,UAAU,EAAE,kBAAkB,CAAC,SAAS,EAAE,KAAK,CAAC,KAAK,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;AACvJ,CAAC","sourcesContent":["import { Children, Fragment, createContext, isValidElement, useContext, useEffect, useLayoutEffect, useState, useSyncExternalStore, type ReactNode } from 'react';\nimport type { z } from 'zod';\n\n/**\n * Registry contract a form-hosted section exposes to its descendants.\n *\n * IDENTITY CONTRACT: providers MUST keep the context value identity-stable for\n * the lifetime of the section (see `useSectionFieldsRegistry`). Every\n * `FormField` registers itself through an effect that depends on this value;\n * a value whose identity tracks the registry contents re-fires every field's\n * registration effect on each mutation (unregister + register → new contents\n * → new value → …), which loops until React throws \"Maximum update depth\n * exceeded\" (recovered 2026-06-10 on the Wonder Todos todoLists create form).\n */\nexport interface SectionFieldsContextValue {\n registerField: (name: string) => void;\n unregisterField: (name: string) => void;\n /**\n * Current registered field names (insertion-ordered, deduplicated).\n * Returns the live immutable snapshot — a new array identity is produced\n * only when the contents actually change, so it is safe to use as a\n * `useSyncExternalStore` snapshot.\n */\n getRegisteredFields: () => string[];\n /**\n * Subscribe to registry mutations. Returns the unsubscribe function.\n * Render-reactive consumers should prefer `useRegisteredSectionFields`\n * over wiring this manually.\n */\n subscribeToRegisteredFields: (listener: () => void) => () => void;\n /**\n * Records whether a field this section declares actually RENDERS a control here — its field is in\n * the operation's schema and not hidden by a condition. A template places its `FormField` slots\n * unconditionally and lets the operation's schema decide (a slot whose field the schema lacks\n * renders nothing), so a section can declare fields and show none of them.\n */\n reportSlotPresence: (slot: object, present: boolean) => void;\n clearSlotPresence: (slot: object) => void;\n /**\n * True when fields reported here and NONE of them renders. Measured on Wonder Todos, \"Reset to\n * defaults\" showed the preferences template's four section cards, every one empty. This is a fact\n * about FIELDS only: a section also holding other content (text, a custom control, a nested section)\n * is not empty because of it — `Section` combines it with `holdsOnlyFieldSlots`. Notifies through\n * `subscribeToRegisteredFields`.\n */\n showsNoField: () => boolean;\n}\n\nexport const SectionFieldsContext = createContext<SectionFieldsContextValue | null>(null);\n\n/**\n * Builds the identity-stable registry backing `SectionFieldsContext`.\n * Used by both section form hosts (`Section` solo modes and\n * `GroupedSectionBody` for grouped container panels) — keep them on this\n * single implementation so the identity contract cannot drift between hosts.\n *\n * Why the registry lives OUTSIDE React state: registrations arrive from\n * descendant effects. If the registered names were `useState` data baked into\n * the provider value (e.g. a `useMemo` with the names in its deps), every\n * registration would change the value identity, re-fire every field's\n * registration effect (cleanup unregister + register), change the state\n * again, and re-render forever — register/unregister pairs always transition\n * through fresh array identities, so any state-derived value loops by\n * construction. Instead the store is created once per section; mutations swap\n * an immutable snapshot and notify subscribers, so registry churn re-renders\n * only the components that opted in via `useRegisteredSectionFields` — never\n * the provider, never the registrants.\n *\n * Same family as the `WizardStep` field registry (stable mutable container),\n * extended with subscription because section save buttons render from the\n * registry contents (disabled-when-empty) and need to observe changes.\n */\nexport function useSectionFieldsRegistry(): SectionFieldsContextValue {\n const [registry] = useState((): SectionFieldsContextValue => {\n /** Immutable snapshot — swapped (never mutated) so subscribers can compare by identity. */\n let registeredFields: string[] = [];\n // One entry per MOUNTED SLOT, keyed by that slot's own token rather than by field name: the same\n // field placed twice is two slots, which may even disagree (one given a schema the other lacks), and\n // one copy unmounting must not erase or overwrite the other's answer.\n const slotPresence = new Map<object, boolean>();\n let showsNoField = false;\n const listeners = new Set<() => void>();\n const notify = (): void => {\n for (const listener of listeners) listener();\n };\n const recomputePresence = (): void => {\n const next = slotPresence.size > 0 && ![...slotPresence.values()].some(Boolean);\n if (next === showsNoField) return;\n showsNoField = next;\n notify();\n };\n return {\n registerField: (name: string): void => {\n if (registeredFields.includes(name)) return;\n registeredFields = [...registeredFields, name];\n notify();\n },\n unregisterField: (name: string): void => {\n if (!registeredFields.includes(name)) return;\n registeredFields = registeredFields.filter((current) => current !== name);\n notify();\n },\n getRegisteredFields: (): string[] => registeredFields,\n reportSlotPresence: (slot: object, present: boolean): void => {\n slotPresence.set(slot, present);\n recomputePresence();\n },\n clearSlotPresence: (slot: object): void => {\n if (!slotPresence.delete(slot)) return;\n recomputePresence();\n },\n showsNoField: (): boolean => showsNoField,\n subscribeToRegisteredFields: (listener: () => void): (() => void) => {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n };\n });\n return registry;\n}\n\n/**\n * Hook for `FormField` to register with the enclosing saveable section so the\n * section save action can validate and submit only the fields it actually\n * owns. No-op outside a section provider.\n *\n * Depends on the context value identity on purpose (React contract: re-bind\n * if the provider genuinely changes). This is safe only because providers\n * honor the identity contract documented on `SectionFieldsContextValue` —\n * the effect then runs once per field mount.\n */\nexport function useSectionFieldRegistration(fieldName: string): void {\n const ctx = useContext(SectionFieldsContext);\n useEffect(() => {\n ctx?.registerField(fieldName);\n return () => {\n ctx?.unregisterField(fieldName);\n };\n }, [ctx, fieldName]);\n}\n\nconst EMPTY_REGISTERED_FIELDS: string[] = [];\nconst subscribeToNothing = (): (() => void) => () => {};\n\n/**\n * Render-reactive view of the enclosing section's registered field names.\n * Re-renders the caller when fields register/unregister (e.g. conditionally\n * shown fields), without ever invalidating the provider value. Returns a\n * stable empty array outside any section provider.\n */\nexport function useRegisteredSectionFields(): string[] {\n const ctx = useContext(SectionFieldsContext);\n return useSyncExternalStore(\n ctx ? ctx.subscribeToRegisteredFields : subscribeToNothing,\n ctx ? ctx.getRegisteredFields : (): string[] => EMPTY_REGISTERED_FIELDS,\n );\n}\n\n/**\n * Hook for `FormField` to tell its section whether it renders a control. A LAYOUT effect, so the\n * section knows before the browser paints and an empty section never flashes on screen.\n */\nexport function useSectionFieldPresence(present: boolean): void {\n // Two effects on purpose. The CLEAR runs only when the slot leaves this registry (unmount, or the\n // section provider changing), so a slot whose `present` flips is updated in place rather than deleted\n // and re-added; either way the section settles before paint. The REPORT runs on every change of\n // `present`, and after a provider change it reports into the new registry.\n const ctx = useContext(SectionFieldsContext);\n const [slot] = useState(() => ({}));\n useLayoutEffect(() => () => {\n ctx?.clearSlotPresence(slot);\n }, [ctx, slot]);\n useLayoutEffect(() => {\n ctx?.reportSlotPresence(slot, present);\n }, [ctx, slot, present]);\n}\n\n/**\n * Whether the section this registry backs has fields and shows none of them.\n *\n * Read in a LAYOUT effect rather than through `useSyncExternalStore`: the fields report in their own\n * layout effects, which run before their section's, so the section settles before the browser paints.\n * A store subscription is attached in a passive effect, after paint, and would let an empty frame show\n * for a frame on the first mount and on every keyed remount of the form.\n */\nexport function useSectionShowsNoField(registry: SectionFieldsContextValue): boolean {\n const [showsNoField, setShowsNoField] = useState(false);\n useLayoutEffect(() => {\n const update = (): void => setShowsNoField(registry.showsNoField());\n update();\n return registry.subscribeToRegisteredFields(update);\n }, [registry]);\n return showsNoField;\n}\n\n/**\n * What a component is to a section deciding whether it holds anything besides field slots.\n *\n * A section may hide when none of its fields renders only if fields are ALL it holds: text, a custom\n * control or a nested section beside them is content of its own, which a field-presence count cannot see.\n * Plain elements that wrap field slots (a layout `div`) are looked through. Components opt in by declaring\n * their role; any undeclared component counts as other content, so an unknown component can only keep a\n * section visible, never hide one. The role API is deliberately NOT exported from the package: an\n * application's own wrapper component keeps its section visible, which is the safe answer, and an author\n * who wants hiding places slots directly, in a plain element, or in `ObjectScope`.\n */\nexport enum SectionContentRole {\n /** A slot that renders one field's control, or nothing when the operation's schema lacks it. */\n FIELD_SLOT = 'field_slot',\n /** A wrapper whose children are judged in its place (it scopes field names and adds no content). */\n FIELD_SLOT_CONTAINER = 'field_slot_container',\n /**\n * A slot that DISPLAYS one field, or nothing when the viewer is not shown it (#4459 F6): it reports its presence like a\n * field slot, so a display section of nothing but such slots hides when none renders. It writes nothing, so it is never\n * a PLACED slot, and the static grouped-form decision (`listPlacedFieldSlots`) reads it as content of its own. A\n * grouped DISPLAY host reads it statically instead (`listDisplayedFieldSlots`).\n */\n DISPLAY_FIELD_SLOT = 'display_field_slot',\n}\n\nconst SECTION_CONTENT_ROLE = Symbol.for('wildo.sectionContentRole');\n\n/** The role a component declared, if any (read by the placement report as well as the hide decision). */\nexport function sectionContentRoleOf(type: unknown): SectionContentRole | undefined {\n return (type !== null && (typeof type === 'function' || typeof type === 'object'))\n ? (type as { [SECTION_CONTENT_ROLE]?: SectionContentRole })[SECTION_CONTENT_ROLE]\n : undefined;\n}\n\n/** Declares what a component is to `holdsOnlyFieldSlots`. */\nexport function declareSectionContentRole(component: object, role: SectionContentRole): void {\n Object.defineProperty(component, SECTION_CONTENT_ROLE, { value: role, enumerable: false });\n}\n\n/**\n * Which slots a static reading of a section's elements counts as its field slots. The three read the same tree and\n * differ in what a slot of the OTHER kind is to them: content, which keeps the section.\n */\nenum SectionSlotReading {\n /** Any slot that draws one field or nothing: the mounted presence decision (`holdsOnlyFieldSlots`). */\n PRESENCE = 'presence',\n /** Form slots, with their paths; a display slot is content (`listPlacedFieldSlots`). */\n PLACED = 'placed',\n /** Display slots, with their paths; a form slot is content (`listDisplayedFieldSlots`). */\n DISPLAYED = 'displayed',\n}\n\n/** What a subtree amounts to for `holdsOnlyFieldSlots`. */\nenum SectionSubtreeKind {\n /** At least one field slot, and nothing else. */\n FIELD_SLOTS = 'field_slots',\n /** Nothing at all: no slot and no content (a falsy branch, an empty container). */\n NOTHING = 'nothing',\n /** Something a field-presence count cannot see: text, a component, a childless or custom element. */\n CONTENT = 'content',\n}\n\n/** Where a field slot writes, as `FormField` resolves it: the enclosing scopes' names joined to its own. */\nexport interface PlacedFieldSlot {\n path: string;\n /** The slot was handed its own schema, so the form's schema does not decide whether it renders. */\n hasOwnSchema: boolean;\n}\n\n/** Which field a display slot shows, as `DisplayField` resolves it: the enclosing scopes' names joined to its own. */\nexport interface DisplayedFieldSlot {\n path: string;\n /** The schema the slot was handed, if any: `DisplayField` judges that one rather than the record's. */\n ownSchema: z.ZodTypeAny | undefined;\n}\n\n/** The slots a static reading collects, each kind in its own list. */\ninterface SectionSlotsRead {\n placed: PlacedFieldSlot[];\n displayed: DisplayedFieldSlot[];\n}\n\nfunction classifySectionSubtree(nodes: ReactNode, pathPrefix: string, reading: SectionSlotReading, slots: SectionSlotsRead): SectionSubtreeKind {\n let sawFieldSlot = false;\n for (const node of Children.toArray(nodes)) {\n if (!isValidElement(node)) return SectionSubtreeKind.CONTENT;\n const props = node.props as { children?: ReactNode; name?: unknown; schema?: unknown };\n let kind: SectionSubtreeKind;\n if (node.type === Fragment) {\n kind = classifySectionSubtree(props.children, pathPrefix, reading, slots);\n } else if (typeof node.type === 'string') {\n // A plain element is a WRAPPER only when it wraps field slots (a layout `<div className=\"grid\">`).\n // Anything else is content: a childless element (an image, a rule, a spacer), one whose only child\n // is a falsy branch (it may be drawn by CSS), and a custom element (it may render shadow content).\n kind = !node.type.includes('-') && classifySectionSubtree(props.children, pathPrefix, reading, slots) === SectionSubtreeKind.FIELD_SLOTS\n ? SectionSubtreeKind.FIELD_SLOTS\n : SectionSubtreeKind.CONTENT;\n } else {\n const role = (node.type as { [SECTION_CONTENT_ROLE]?: SectionContentRole })[SECTION_CONTENT_ROLE];\n const name = typeof props.name === 'string' ? props.name : undefined;\n const scopedPath = name ? (pathPrefix ? `${pathPrefix}.${name}` : name) : pathPrefix;\n if (role === SectionContentRole.FIELD_SLOT) {\n if (reading === SectionSlotReading.DISPLAYED) {\n kind = SectionSubtreeKind.CONTENT;\n } else {\n slots.placed.push({ path: scopedPath, hasOwnSchema: props.schema !== undefined });\n kind = SectionSubtreeKind.FIELD_SLOTS;\n }\n } else if (role === SectionContentRole.DISPLAY_FIELD_SLOT) {\n // A field slot to the presence decision and to a display host; never a placed (form) slot (see the role).\n if (reading === SectionSlotReading.PLACED) {\n kind = SectionSubtreeKind.CONTENT;\n } else {\n slots.displayed.push({ path: scopedPath, ownSchema: props.schema as z.ZodTypeAny | undefined });\n kind = SectionSubtreeKind.FIELD_SLOTS;\n }\n } else if (role === SectionContentRole.FIELD_SLOT_CONTAINER) {\n // A declared container holding nothing adds nothing, even an `ObjectScope` given a `className`\n // (which renders a styled div). Unlike a bare styled div it scopes names rather than decorating,\n // and when a section's slots are all absent the whole frame hides anyway.\n kind = classifySectionSubtree(props.children, scopedPath, reading, slots);\n } else {\n kind = SectionSubtreeKind.CONTENT;\n }\n }\n if (kind === SectionSubtreeKind.CONTENT) return SectionSubtreeKind.CONTENT;\n if (kind === SectionSubtreeKind.FIELD_SLOTS) sawFieldSlot = true;\n }\n return sawFieldSlot ? SectionSubtreeKind.FIELD_SLOTS : SectionSubtreeKind.NOTHING;\n}\n\n/**\n * True when `children` holds at least one field slot and nothing else. Fragments and declared containers\n * are looked through, and so is a plain element that wraps field slots.\n */\nexport function holdsOnlyFieldSlots(children: ReactNode): boolean {\n return classifySectionSubtree(children, '', SectionSlotReading.PRESENCE, { placed: [], displayed: [] }) === SectionSubtreeKind.FIELD_SLOTS;\n}\n\n/**\n * The field slots `children` places, or `null` when it holds anything besides field slots. Paths are\n * resolved the way `FormField` resolves them (scope names joined to the slot's `name`), starting from\n * `pathPrefix`. Read STATICALLY, from the elements, so a host can decide about a section whose content\n * is not mounted — an inactive tab's panel is not.\n */\nexport function listPlacedFieldSlots(children: ReactNode, pathPrefix = ''): PlacedFieldSlot[] | null {\n const slots: SectionSlotsRead = { placed: [], displayed: [] };\n return classifySectionSubtree(children, pathPrefix, SectionSlotReading.PLACED, slots) === SectionSubtreeKind.FIELD_SLOTS ? slots.placed : null;\n}\n\n/**\n * The display slots `children` places, or `null` when it holds anything besides display slots (a form slot included).\n * Paths are resolved the way `DisplayField` resolves them, starting from `pathPrefix`. Read STATICALLY, for a grouped\n * display host deciding about a section whose content is not mounted (#4459 review D1).\n */\nexport function listDisplayedFieldSlots(children: ReactNode, pathPrefix = ''): DisplayedFieldSlot[] | null {\n const slots: SectionSlotsRead = { placed: [], displayed: [] };\n return classifySectionSubtree(children, pathPrefix, SectionSlotReading.DISPLAYED, slots) === SectionSubtreeKind.FIELD_SLOTS ? slots.displayed : null;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSectionContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/ContentSectionContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAA0D,MAAM,OAAO,CAAC;AAE/E,OAAO,KAAK,EAEV,aAAa,EAgBd,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EAAoG,gBAAgB,EAAqB,MAAM,qCAAqC,CAAC;AA0B5L,MAAM,WAAW,wBAAwB;IACvC,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,wBAAwB;IACxB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,oBAAoB;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,kCAAkC;IAClC,QAAQ,EAAE,wBAAwB,EAAE,CAAC;IACrC,qEAAqE;IACrE,MAAM,EAAE,aAAa,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;CAC1D;AAkLD,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAgE1E,CAAC;AA+7BF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"ContentSectionContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/ContentSectionContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAA0D,MAAM,OAAO,CAAC;AAE/E,OAAO,KAAK,EAEV,aAAa,EAgBd,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EAAoG,gBAAgB,EAAqB,MAAM,qCAAqC,CAAC;AA2B5L,MAAM,WAAW,wBAAwB;IACvC,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,wBAAwB;IACxB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,oBAAoB;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,kCAAkC;IAClC,QAAQ,EAAE,wBAAwB,EAAE,CAAC;IACrC,qEAAqE;IACrE,MAAM,EAAE,aAAa,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;CAC1D;AAgLD,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAgE1E,CAAC;AAo8BF,eAAe,uBAAuB,CAAC"}
@@ -39,6 +39,7 @@ import { Button, ButtonVariants_Variant } from '../../components/actions/button.
39
39
  import { Badge } from '../../components/data-display/badge.js';
40
40
  import { Surface } from '../../components/sections/surface.js';
41
41
  import { ContentSection } from '../../components/sections/content-section.js';
42
+ import { documentHeadingTag, NestedDocumentHeadingLevel, useDocumentHeadingLevel } from '../../components/typography/document-heading-level.js';
42
43
  import { EmptyState } from '../../components/feedback/empty-state.js';
43
44
  import { DEFAULT_EXPANDABLE_INITIAL_VISIBLE_COUNT } from '../../components/sections/section-grouping.shared.js';
44
45
  import { fieldRevealPanelAttributes, useFieldRevealRequests, useKeepsHiddenPanelsMounted } from '../../components/form/validation-errors/field-reveal.js';
@@ -62,7 +63,7 @@ function resolveSectionWrapMode(value) {
62
63
  * - `separator-only` → DEFAULT + a bottom-divider className
63
64
  *
64
65
  * Container panels render through ContentSection's PANEL mode: a titled card with a
65
- * header band (an `<h3>` with icon over a `border-b` divider, content in a `p-card`
66
+ * header band (a heading at the outline's level, with icon, over a `border-b` divider, content in a `p-card`
66
67
  * area) for CARD, a flat group otherwise.
67
68
  */
68
69
  function wrapModeToAppearance(wrapMode) {
@@ -104,20 +105,20 @@ const GroupedSectionsCard = ({ sections, className }) => {
104
105
  };
105
106
  /**
106
107
  * Renders a section panel WITH its heading through `ContentSection` in PANEL mode:
107
- * the heading renders as an `<h3>`/`<h4>` band (icon + title, level per `titleTag`,
108
- * default `h3`) with a `border-b` divider above the `p-card` content area (the
108
+ * the heading renders as a heading band (icon + title, at the level the outline gives it —
109
+ * `useDocumentHeadingLevel`) with a `border-b` divider above the `p-card` content area (the
109
110
  * titled-card-with-header look), framed per `wrapMode` via a `<fieldset>` that
110
111
  * carries the disabled cascade (a `card-each` panel always paints its card, a flat
111
112
  * one never frames). Used by the panel-heading
112
113
  * modes (single / inline / grid / columns / collapsible / expandable). Collapsible
113
- * panels pass `titleTag: 'h4'` since they nest under the collapsible-all `<h3>`.
114
+ * panels nest one level under the collapsible-all heading through `NestedDocumentHeadingLevel`.
114
115
  * The explicit `section.disabled` flows to the panel `<fieldset disabled>` for the
115
116
  * content cascade (plan Decision 4: panel content disabling is explicit/form-driven,
116
117
  * distinct from nav-trigger gating).
117
118
  */
118
119
  function renderPanelSection(section, params) {
119
120
  const { appearance, className } = wrapModeToAppearance(params?.wrapMode ?? 'card-each');
120
- return (_jsx(ContentSection, { panel: true, appearance: appearance, headingTag: params?.titleTag, legend: section.title, icon: section.icon, description: section.description, disabled: section.disabled, className: className, children: section.content }, section.id));
121
+ return (_jsx(ContentSection, { panel: true, appearance: appearance, legend: section.title, icon: section.icon, description: section.description, disabled: section.disabled, className: className, children: section.content }, section.id));
121
122
  }
122
123
  /**
123
124
  * Renders a section panel WITHOUT a panel heading through `ContentSection` — used
@@ -494,13 +495,15 @@ const CollapsibleMode = ({ sections, config, className, sectionWrapMode }) => {
494
495
  const closedLabel = config.triggerLabel?.closed ?? getLabel('accordionExpandAll');
495
496
  const sectionCountLabel = getLabel('accordionSectionCount', { count: sections.length });
496
497
  const keepPanelsMounted = useKeepsHiddenPanelsMounted();
498
+ // The collapsible-all heading takes the outline's level; the panels it folds nest one level under it.
499
+ const CountHeadingTag = documentHeadingTag(useDocumentHeadingLevel());
497
500
  const revealContainerId = useFieldRevealRequests(() => {
498
501
  if (isOpen)
499
502
  return false;
500
503
  setIsOpen(true);
501
504
  return true;
502
505
  });
503
- return (_jsxs(Collapsible, { open: isOpen, onOpenChange: setIsOpen, className: className, children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("h3", { className: "font-semibold", children: sectionCountLabel }), _jsx(CollapsibleTrigger, { asChild: true, children: _jsx(Button, { type: "button", variant: ButtonVariants_Variant.GHOST, size: ButtonSize.SM, "aria-expanded": isOpen, children: isOpen ? openLabel : closedLabel }) })] }), _jsx(CollapsibleContent, { className: "space-y-field mt-field", ...(keepPanelsMounted ? { forceMount: true, hidden: !isOpen } : {}), ...fieldRevealPanelAttributes(revealContainerId, COLLAPSIBLE_PANEL_ID), children: sections.map((section) => renderPanelSection(section, { titleTag: 'h4', wrapMode: sectionWrapMode })) })] }));
506
+ return (_jsxs(Collapsible, { open: isOpen, onOpenChange: setIsOpen, className: className, children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx(CountHeadingTag, { className: "font-semibold", children: sectionCountLabel }), _jsx(CollapsibleTrigger, { asChild: true, children: _jsx(Button, { type: "button", variant: ButtonVariants_Variant.GHOST, size: ButtonSize.SM, "aria-expanded": isOpen, children: isOpen ? openLabel : closedLabel }) })] }), _jsx(CollapsibleContent, { className: "space-y-field mt-field", ...(keepPanelsMounted ? { forceMount: true, hidden: !isOpen } : {}), ...fieldRevealPanelAttributes(revealContainerId, COLLAPSIBLE_PANEL_ID), children: _jsx(NestedDocumentHeadingLevel, { children: sections.map((section) => renderPanelSection(section, { wrapMode: sectionWrapMode })) }) })] }));
504
507
  };
505
508
  /** The panel EXPANDABLE folds behind "show more": every section past the first `initialVisibleCount`. */
506
509
  const EXPANDABLE_FOLDED_PANEL_ID = 'folded';
@@ -573,12 +576,13 @@ const StepperMode = ({ sections, config, className, sectionWrapMode, onSectionCh
573
576
  };
574
577
  const TimelineMode = ({ sections, config, className, sectionWrapMode }) => {
575
578
  const getLabel = useContentSectionContainerLabel();
579
+ const StepHeadingTag = documentHeadingTag(useDocumentHeadingLevel());
576
580
  /*
577
581
  * Drawn on the framework's own `Timeline` since #1317 — this mode used to draw a private rail and
578
582
  * dot of its own, the first of three hand-drawn timelines the one component replaced. Each section
579
583
  * is an entry; a section step has no status, so the marker is the NEUTRAL tone.
580
584
  */
581
- return (_jsx("div", { className: className, role: "region", "aria-label": config.ariaLabel ?? getLabel('timelineRegion'), children: _jsx(Timeline, { className: "gap-section", children: sections.map((section, index) => (_jsx(TimelineEntry, { children: _jsx(TimelineBody, { children: renderSectionContentChrome(section, _jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-element mb-element", children: [section.icon, _jsx("h3", { className: "font-semibold", children: section.title }), _jsx(Badge, { variant: "outline", className: "ms-auto", children: getLabel('timelineStep', { step: index + 1 }) })] }), section.description && (_jsx("p", { className: "text-sm text-muted-foreground mb-element", children: section.description })), section.content] }), sectionWrapMode) }) }, section.id))) }) }));
585
+ return (_jsx("div", { className: className, role: "region", "aria-label": config.ariaLabel ?? getLabel('timelineRegion'), children: _jsx(Timeline, { className: "gap-section", children: sections.map((section, index) => (_jsx(TimelineEntry, { children: _jsx(TimelineBody, { children: renderSectionContentChrome(section, _jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-element mb-element", children: [section.icon, _jsx(StepHeadingTag, { className: "font-semibold", children: section.title }), _jsx(Badge, { variant: "outline", className: "ms-auto", children: getLabel('timelineStep', { step: index + 1 }) })] }), section.description && (_jsx("p", { className: "text-sm text-muted-foreground mb-element", children: section.description })), _jsx(NestedDocumentHeadingLevel, { children: section.content })] }), sectionWrapMode) }) }, section.id))) }) }));
582
586
  };
583
587
  const stagesWithoutRecordWarned = new Set();
584
588
  /**