@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
@@ -18,7 +18,7 @@ export type ResolvedFormFieldFileProviderConstraints = ProviderFilePickerConstra
18
18
  /**
19
19
  * The file constraints one field declares, read from its own Zod metadata.
20
20
  *
21
- * ## It reads the SCHEMA and nothing else, since #380
21
+ * ## It reads the SCHEMA and nothing else
22
22
  *
23
23
  * It used to also find a `FRONTEND_FILE_PICKER` provider — the FIRST one the
24
24
  * registry returned — and fill the schema's gaps from that provider's
@@ -2,7 +2,7 @@ import { getFileMetadata } from '@wildo-ai/zod-decorators';
2
2
  /**
3
3
  * The file constraints one field declares, read from its own Zod metadata.
4
4
  *
5
- * ## It reads the SCHEMA and nothing else, since #380
5
+ * ## It reads the SCHEMA and nothing else
6
6
  *
7
7
  * It used to also find a `FRONTEND_FILE_PICKER` provider — the FIRST one the
8
8
  * registry returned — and fill the schema's gaps from that provider's
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-file-provider-constraints.frontend.utils.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/form-field-file-provider-constraints.frontend.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAmB3D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,uCAAuC,CAAC,KAEvD;IACC,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO;QACL,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;QAC/C,OAAO,EAAE,YAAY,CAAC,OAAO;QAC7B,QAAQ,EAAE,YAAY,CAAC,QAAQ;KAChC,CAAC;AACJ,CAAC;AACD,iFAAiF","sourcesContent":["import type { z } from 'zod';\nimport { getFileMetadata } from '@wildo-ai/zod-decorators';\nimport type { ProviderFilePickerConstraints } from '@wildo-ai/saas-models/public-runtime';\n\n/** @wildo_source:part:start saas.frontend.form-fields.file-provider-constraints facet:layer:frontend facet:family:provider */\n/**\n * Constraints the framework's file form fields apply to the picker UI.\n * `maxSize` is BYTES; a provider's `maxFileSizeMb` is converted into it by\n * `layerProviderFilePickerConstraints`, where the provider half is applied.\n *\n * An ALIAS of the contract a provider's picker component receives, not a\n * separate interface, so the two cannot drift. They were separate for one\n * session and the size field was spelled differently on each side — both\n * optional, both bytes — which TypeScript accepts, because the weak-type check\n * is satisfied by the two names that DO match. Wiring the resolver into a picker\n * would have compiled and dropped the size cap, and a picker that accepts a file\n * the field rejects tells the user after they have chosen it.\n */\nexport type ResolvedFormFieldFileProviderConstraints = ProviderFilePickerConstraints;\n\n/**\n * The file constraints one field declares, read from its own Zod metadata.\n *\n * ## It reads the SCHEMA and nothing else, since #380\n *\n * It used to also find a `FRONTEND_FILE_PICKER` provider — the FIRST one the\n * registry returned — and fill the schema's gaps from that provider's\n * `publicConfig`. That was wrong twice over once a second picker could exist:\n * one vendor's limit governed every other vendor's picker, decided by registry\n * order; and a vendor's picker limit also narrowed the field's own native\n * upload, which goes to the field's own storage and has nothing to do with that\n * vendor.\n *\n * A provider's half is now laid under the field's at the picker, per provider,\n * by `layerProviderFilePickerConstraints` in `ProviderFilePickerHost`. The\n * precedence itself did not change: schema always wins.\n *\n * Templatable file fields are not special-cased any more either — their files\n * are framework-materialized rather than user-picked, and with no provider half\n * left here there is nothing to short-circuit past.\n */\nexport function resolveFormFieldFileProviderConstraints(input: {\n schema: z.ZodTypeAny;\n}): ResolvedFormFieldFileProviderConstraints {\n const fileMetadata = getFileMetadata(input.schema);\n if (!fileMetadata) {\n return {};\n }\n\n return {\n allowedMimeTypes: fileMetadata.allowedMimeTypes,\n maxSize: fileMetadata.maxSize,\n maxFiles: fileMetadata.maxFiles,\n };\n}\n/** @wildo_source:part:end saas.frontend.form-fields.file-provider-constraints */\n"]}
1
+ {"version":3,"file":"form-field-file-provider-constraints.frontend.utils.js","sourceRoot":"","sources":["../../../../../src/components/form/fields/form-field-file-provider-constraints.frontend.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAmB3D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,uCAAuC,CAAC,KAEvD;IACC,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO;QACL,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;QAC/C,OAAO,EAAE,YAAY,CAAC,OAAO;QAC7B,QAAQ,EAAE,YAAY,CAAC,QAAQ;KAChC,CAAC;AACJ,CAAC;AACD,iFAAiF","sourcesContent":["import type { z } from 'zod';\nimport { getFileMetadata } from '@wildo-ai/zod-decorators';\nimport type { ProviderFilePickerConstraints } from '@wildo-ai/saas-models/public-runtime';\n\n/** @wildo_source:part:start saas.frontend.form-fields.file-provider-constraints facet:layer:frontend facet:family:provider */\n/**\n * Constraints the framework's file form fields apply to the picker UI.\n * `maxSize` is BYTES; a provider's `maxFileSizeMb` is converted into it by\n * `layerProviderFilePickerConstraints`, where the provider half is applied.\n *\n * An ALIAS of the contract a provider's picker component receives, not a\n * separate interface, so the two cannot drift. They were separate for one\n * session and the size field was spelled differently on each side — both\n * optional, both bytes — which TypeScript accepts, because the weak-type check\n * is satisfied by the two names that DO match. Wiring the resolver into a picker\n * would have compiled and dropped the size cap, and a picker that accepts a file\n * the field rejects tells the user after they have chosen it.\n */\nexport type ResolvedFormFieldFileProviderConstraints = ProviderFilePickerConstraints;\n\n/**\n * The file constraints one field declares, read from its own Zod metadata.\n *\n * ## It reads the SCHEMA and nothing else\n *\n * It used to also find a `FRONTEND_FILE_PICKER` provider — the FIRST one the\n * registry returned — and fill the schema's gaps from that provider's\n * `publicConfig`. That was wrong twice over once a second picker could exist:\n * one vendor's limit governed every other vendor's picker, decided by registry\n * order; and a vendor's picker limit also narrowed the field's own native\n * upload, which goes to the field's own storage and has nothing to do with that\n * vendor.\n *\n * A provider's half is now laid under the field's at the picker, per provider,\n * by `layerProviderFilePickerConstraints` in `ProviderFilePickerHost`. The\n * precedence itself did not change: schema always wins.\n *\n * Templatable file fields are not special-cased any more either — their files\n * are framework-materialized rather than user-picked, and with no provider half\n * left here there is nothing to short-circuit past.\n */\nexport function resolveFormFieldFileProviderConstraints(input: {\n schema: z.ZodTypeAny;\n}): ResolvedFormFieldFileProviderConstraints {\n const fileMetadata = getFileMetadata(input.schema);\n if (!fileMetadata) {\n return {};\n }\n\n return {\n allowedMimeTypes: fileMetadata.allowedMimeTypes,\n maxSize: fileMetadata.maxSize,\n maxFiles: fileMetadata.maxFiles,\n };\n}\n/** @wildo_source:part:end saas.frontend.form-fields.file-provider-constraints */\n"]}
@@ -8,7 +8,7 @@
8
8
  * Field-level validation is now handled entirely by React Hook Form (RHF) via
9
9
  * the standardSchemaResolver. This file only provides:
10
10
  * - ValidationMode type for configuration
11
- * - determineValidationMode() for schema-based mode detection
11
+ * - determineValidationMode(): a file control's validation timing (the resolved mode, else on change)
12
12
  * - Zod error utilities for i18n translation
13
13
  *
14
14
  * The deprecated validateField(), ValidationResult, and createValidationHandler()
@@ -19,13 +19,11 @@ import { z } from 'zod';
19
19
  import { ValidationMode } from '@wildo-ai/zod-decorators';
20
20
  export { ValidationMode } from '@wildo-ai/zod-decorators';
21
21
  /**
22
- * Determine the validation mode for a field based on its schema
23
- *
24
- * Rules:
25
- * - If schema has refine/superRefine → ON_CHANGE (immediate feedback needed)
26
- * - Otherwise use the provided override or default to ON_BLUR
22
+ * The validation mode of a file control (the file controls are its only callers): the mode its field resolved, or, when
23
+ * none was passed, on change. Choosing a file is a complete answer, so it is checked as it is chosen, which is the
24
+ * default `getDefaultValidationMode` gives a file field. `FormField` normally passes the resolved mode.
27
25
  */
28
- export declare function determineValidationMode(schema: z.ZodTypeAny, override?: ValidationMode): ValidationMode;
26
+ export declare function determineValidationMode(_schema: z.ZodTypeAny, override?: ValidationMode): ValidationMode;
29
27
  /**
30
28
  * Extract Zod error code from a Zod error
31
29
  * Used for translation lookup
@@ -1 +1 @@
1
- {"version":3,"file":"form-validation.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/form-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAa,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGrE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,CAAC,CAAC,UAAU,EACpB,QAAQ,CAAC,EAAE,cAAc,GACxB,cAAc,CAkBhB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,GAAG,MAAM,CAGzD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAW9F"}
1
+ {"version":3,"file":"form-validation.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/form-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,CAAC,CAAC,UAAU,EACrB,QAAQ,CAAC,EAAE,cAAc,GACxB,cAAc,CAEhB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,GAAG,MAAM,CAGzD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAW9F"}
@@ -8,38 +8,23 @@
8
8
  * Field-level validation is now handled entirely by React Hook Form (RHF) via
9
9
  * the standardSchemaResolver. This file only provides:
10
10
  * - ValidationMode type for configuration
11
- * - determineValidationMode() for schema-based mode detection
11
+ * - determineValidationMode(): a file control's validation timing (the resolved mode, else on change)
12
12
  * - Zod error utilities for i18n translation
13
13
  *
14
14
  * The deprecated validateField(), ValidationResult, and createValidationHandler()
15
15
  * have been removed as they are no longer needed with RHF as the single source
16
16
  * of validation truth.
17
17
  */
18
- import { hasRefine, ValidationMode } from '@wildo-ai/zod-decorators';
18
+ import { ValidationMode } from '@wildo-ai/zod-decorators';
19
19
  // Re-export ValidationMode enum for consumers
20
20
  export { ValidationMode } from '@wildo-ai/zod-decorators';
21
21
  /**
22
- * Determine the validation mode for a field based on its schema
23
- *
24
- * Rules:
25
- * - If schema has refine/superRefine → ON_CHANGE (immediate feedback needed)
26
- * - Otherwise use the provided override or default to ON_BLUR
22
+ * The validation mode of a file control (the file controls are its only callers): the mode its field resolved, or, when
23
+ * none was passed, on change. Choosing a file is a complete answer, so it is checked as it is chosen, which is the
24
+ * default `getDefaultValidationMode` gives a file field. `FormField` normally passes the resolved mode.
27
25
  */
28
- export function determineValidationMode(schema, override) {
29
- // If explicitly overridden, use that
30
- if (override) {
31
- return override;
32
- }
33
- // Guard against non-Zod schemas
34
- if (!schema || typeof schema !== 'object') {
35
- return ValidationMode.ON_BLUR;
36
- }
37
- // If schema has refinements, use onChange for immediate feedback
38
- if (hasRefine(schema)) {
39
- return ValidationMode.ON_CHANGE;
40
- }
41
- // Default to onBlur
42
- return ValidationMode.ON_BLUR;
26
+ export function determineValidationMode(_schema, override) {
27
+ return override ?? ValidationMode.ON_CHANGE;
43
28
  }
44
29
  /**
45
30
  * Extract Zod error code from a Zod error
@@ -1 +1 @@
1
- {"version":3,"file":"form-validation.js","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/form-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAErE,8CAA8C;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAoB,EACpB,QAAyB;IAEzB,qCAAqC;IACrC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gCAAgC;IAChC,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC1C,OAAO,cAAc,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,iEAAiE;IACjE,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;QACtB,OAAO,cAAc,CAAC,SAAS,CAAC;IAClC,CAAC;IAED,oBAAoB;IACpB,OAAO,cAAc,CAAC,OAAO,CAAC;AAChC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,KAAiB;IAC/C,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACnC,OAAO,UAAU,EAAE,IAAI,IAAI,SAAS,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAmC;IACnE,MAAM,MAAM,GAA4B,EAAE,CAAC;IAE3C,iDAAiD;IACjD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;YAC1D,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACtB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Form Validation Utilities\n * \n * Utilities for determining validation modes based on schema configuration.\n * \n * ## Architecture Note (P1-T10 - Greenfield Cleanup)\n * \n * Field-level validation is now handled entirely by React Hook Form (RHF) via\n * the standardSchemaResolver. This file only provides:\n * - ValidationMode type for configuration\n * - determineValidationMode() for schema-based mode detection\n * - Zod error utilities for i18n translation\n * \n * The deprecated validateField(), ValidationResult, and createValidationHandler()\n * have been removed as they are no longer needed with RHF as the single source\n * of validation truth.\n */\n\nimport { z } from 'zod';\nimport { hasRefine, ValidationMode } from '@wildo-ai/zod-decorators';\n\n// Re-export ValidationMode enum for consumers\nexport { ValidationMode } from '@wildo-ai/zod-decorators';\n\n/**\n * Determine the validation mode for a field based on its schema\n * \n * Rules:\n * - If schema has refine/superRefine → ON_CHANGE (immediate feedback needed)\n * - Otherwise use the provided override or default to ON_BLUR\n */\nexport function determineValidationMode(\n schema: z.ZodTypeAny, \n override?: ValidationMode\n): ValidationMode {\n // If explicitly overridden, use that\n if (override) {\n return override;\n }\n \n // Guard against non-Zod schemas\n if (!schema || typeof schema !== 'object') {\n return ValidationMode.ON_BLUR;\n }\n \n // If schema has refinements, use onChange for immediate feedback\n if (hasRefine(schema)) {\n return ValidationMode.ON_CHANGE;\n }\n \n // Default to onBlur\n return ValidationMode.ON_BLUR;\n}\n\n/**\n * Extract Zod error code from a Zod error\n * Used for translation lookup\n */\nexport function getZodErrorCode(error: z.ZodError): string {\n const firstIssue = error.issues[0];\n return firstIssue?.code ?? 'unknown';\n}\n\n/**\n * Extract error parameters from a Zod issue for translation\n */\nexport function getZodErrorParams(issue: z.ZodError['issues'][number]): Record<string, unknown> {\n const params: Record<string, unknown> = {};\n \n // Copy all properties except code, message, path\n for (const [key, value] of Object.entries(issue)) {\n if (key !== 'code' && key !== 'message' && key !== 'path') {\n params[key] = value;\n }\n }\n \n return params;\n}\n\n"]}
1
+ {"version":3,"file":"form-validation.js","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/form-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,8CAA8C;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAqB,EACrB,QAAyB;IAEzB,OAAO,QAAQ,IAAI,cAAc,CAAC,SAAS,CAAC;AAC9C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,KAAiB;IAC/C,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACnC,OAAO,UAAU,EAAE,IAAI,IAAI,SAAS,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAmC;IACnE,MAAM,MAAM,GAA4B,EAAE,CAAC;IAE3C,iDAAiD;IACjD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;YAC1D,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACtB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Form Validation Utilities\n * \n * Utilities for determining validation modes based on schema configuration.\n * \n * ## Architecture Note (P1-T10 - Greenfield Cleanup)\n * \n * Field-level validation is now handled entirely by React Hook Form (RHF) via\n * the standardSchemaResolver. This file only provides:\n * - ValidationMode type for configuration\n * - determineValidationMode(): a file control's validation timing (the resolved mode, else on change)\n * - Zod error utilities for i18n translation\n * \n * The deprecated validateField(), ValidationResult, and createValidationHandler()\n * have been removed as they are no longer needed with RHF as the single source\n * of validation truth.\n */\n\nimport { z } from 'zod';\nimport { ValidationMode } from '@wildo-ai/zod-decorators';\n\n// Re-export ValidationMode enum for consumers\nexport { ValidationMode } from '@wildo-ai/zod-decorators';\n\n/**\n * The validation mode of a file control (the file controls are its only callers): the mode its field resolved, or, when\n * none was passed, on change. Choosing a file is a complete answer, so it is checked as it is chosen, which is the\n * default `getDefaultValidationMode` gives a file field. `FormField` normally passes the resolved mode.\n */\nexport function determineValidationMode(\n _schema: z.ZodTypeAny,\n override?: ValidationMode\n): ValidationMode {\n return override ?? ValidationMode.ON_CHANGE;\n}\n\n/**\n * Extract Zod error code from a Zod error\n * Used for translation lookup\n */\nexport function getZodErrorCode(error: z.ZodError): string {\n const firstIssue = error.issues[0];\n return firstIssue?.code ?? 'unknown';\n}\n\n/**\n * Extract error parameters from a Zod issue for translation\n */\nexport function getZodErrorParams(issue: z.ZodError['issues'][number]): Record<string, unknown> {\n const params: Record<string, unknown> = {};\n \n // Copy all properties except code, message, path\n for (const [key, value] of Object.entries(issue)) {\n if (key !== 'code' && key !== 'message' && key !== 'path') {\n params[key] = value;\n }\n }\n \n return params;\n}\n\n"]}
@@ -11,6 +11,16 @@
11
11
  import { ValidationMode } from '@wildo-ai/zod-decorators';
12
12
  declare const FILE_VALIDATION_ERROR_TYPE: "file-validation";
13
13
  declare function isRequiredFieldError(errorMessage: string): boolean;
14
+ /**
15
+ * Whether an error says only that a value is MISSING: absent (`received undefined/null`), or an empty string or list
16
+ * where at least one character or item is required (`too_small` with a minimum of 1). Every other error is about a
17
+ * value the person entered (its format, its length, its range).
18
+ */
19
+ declare function isMissingValueError(error: {
20
+ type: string;
21
+ message?: string;
22
+ params?: Record<string, unknown>;
23
+ }): boolean;
14
24
  /**
15
25
  * Calculate translated error message based on field state and touch behavior.
16
26
  *
@@ -26,6 +36,11 @@ declare function isRequiredFieldError(errorMessage: string): boolean;
26
36
  * visited (the server rejecting a value carried from the stored record, a section saved without a form submit) was
27
37
  * recorded and never shown.
28
38
  *
39
+ * A MISSING value is shown only after the first submit, whatever the field's timing: before the person asks to save,
40
+ * an empty required field is one they have not filled yet, not a mistake. Decided by practice: errors on submit, and
41
+ * only a format error inline.
42
+ * spec-cite: https://design-system.service.gov.uk/patterns/validation/ — validate when the form is submitted; https://www.nngroup.com/articles/errors-forms-design-guidelines/ — inline validation for format errors.
43
+ *
29
44
  * @param fieldState - RHF field state containing isTouched and error
30
45
  * @param isFormSubmitted - Whether the form has been submitted at least once
31
46
  * @param tErrorValidation - Translation function for error messages
@@ -39,6 +54,14 @@ export declare function getFieldError(fieldState: {
39
54
  message?: string;
40
55
  params?: Record<string, unknown>;
41
56
  };
42
- }, isFormSubmitted: boolean, validationMode: ValidationMode, tErrorValidation: (code: string, suffix: string, params?: Record<string, unknown>) => string): string | undefined;
43
- export { FILE_VALIDATION_ERROR_TYPE, isRequiredFieldError };
57
+ }, isFormSubmitted: boolean, validationMode: ValidationMode, tErrorValidation: (code: string, suffix: string, params?: Record<string, unknown>) => string,
58
+ /**
59
+ * The field's current value (`{ value }`), when the caller has it. An unfilled value (absent, empty, an empty list) is a missing
60
+ * value whatever the schema reports for it: an emptied `z.email()` reports `invalid_format`, an emptied `.min(3)`
61
+ * reports `too_small` with a minimum of 3, and neither is a mistake before the person asked to save.
62
+ */
63
+ field?: {
64
+ value: unknown;
65
+ }): string | undefined;
66
+ export { FILE_VALIDATION_ERROR_TYPE, isRequiredFieldError, isMissingValueError };
44
67
  //# sourceMappingURL=getFieldError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFieldError.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/getFieldError.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,QAAA,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAK9D,iBAAS,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAA;CAAE,EACnI,eAAe,EAAE,OAAO,EACxB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,GAC3F,MAAM,GAAG,SAAS,CAyDpB;AAED,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"getFieldError.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/getFieldError.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI1D,QAAA,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAK9D,iBAAS,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED;;;;GAIG;AACH,iBAAS,mBAAmB,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GAAG,OAAO,CAIjH;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAA;CAAE,EACnI,eAAe,EAAE,OAAO,EACxB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM;AAC5F;;;;GAIG;AACH,KAAK,CAAC,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GACzB,MAAM,GAAG,SAAS,CA6DpB;AAED,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,CAAC"}
@@ -10,12 +10,24 @@
10
10
  */
11
11
  import { ValidationMode } from '@wildo-ai/zod-decorators';
12
12
  import { SERVER_ERROR_TYPE, UNIQUE_ERROR_TYPE } from '../form-context.js';
13
+ import { isUnfilledFieldValue } from './unstarted-field-visit.js';
13
14
  const FILE_VALIDATION_ERROR_TYPE = 'file-validation';
14
15
  const REQUIRED_FIELD_PATTERN = /received (undefined|null)\b/i;
15
16
  const REQUIRED_FIELD_PATTERN_EXTENDED = /expected .+, received (undefined|null)/i;
16
17
  function isRequiredFieldError(errorMessage) {
17
18
  return REQUIRED_FIELD_PATTERN.test(errorMessage) || REQUIRED_FIELD_PATTERN_EXTENDED.test(errorMessage);
18
19
  }
20
+ /**
21
+ * Whether an error says only that a value is MISSING: absent (`received undefined/null`), or an empty string or list
22
+ * where at least one character or item is required (`too_small` with a minimum of 1). Every other error is about a
23
+ * value the person entered (its format, its length, its range).
24
+ */
25
+ function isMissingValueError(error) {
26
+ if (isRequiredFieldError(error.message || ''))
27
+ return true;
28
+ const origin = error.params?.origin;
29
+ return error.type === 'too_small' && error.params?.minimum === 1 && (origin === 'string' || origin === 'array');
30
+ }
19
31
  /**
20
32
  * Calculate translated error message based on field state and touch behavior.
21
33
  *
@@ -31,17 +43,32 @@ function isRequiredFieldError(errorMessage) {
31
43
  * visited (the server rejecting a value carried from the stored record, a section saved without a form submit) was
32
44
  * recorded and never shown.
33
45
  *
46
+ * A MISSING value is shown only after the first submit, whatever the field's timing: before the person asks to save,
47
+ * an empty required field is one they have not filled yet, not a mistake. Decided by practice: errors on submit, and
48
+ * only a format error inline.
49
+ * spec-cite: https://design-system.service.gov.uk/patterns/validation/ — validate when the form is submitted; https://www.nngroup.com/articles/errors-forms-design-guidelines/ — inline validation for format errors.
50
+ *
34
51
  * @param fieldState - RHF field state containing isTouched and error
35
52
  * @param isFormSubmitted - Whether the form has been submitted at least once
36
53
  * @param tErrorValidation - Translation function for error messages
37
54
  * @returns Translated error message or undefined if no error should be shown
38
55
  */
39
- export function getFieldError(fieldState, isFormSubmitted, validationMode, tErrorValidation) {
56
+ export function getFieldError(fieldState, isFormSubmitted, validationMode, tErrorValidation,
57
+ /**
58
+ * The field's current value (`{ value }`), when the caller has it. An unfilled value (absent, empty, an empty list) is a missing
59
+ * value whatever the schema reports for it: an emptied `z.email()` reports `invalid_format`, an emptied `.min(3)`
60
+ * reports `too_small` with a minimum of 3, and neither is a mistake before the person asked to save.
61
+ */
62
+ field) {
40
63
  const isServerError = fieldState.error?.type === SERVER_ERROR_TYPE || fieldState.error?.type === UNIQUE_ERROR_TYPE;
41
64
  const shouldShowError = isServerError || fieldState.isTouched || isFormSubmitted || ((validationMode === ValidationMode.ON_CHANGE || validationMode === ValidationMode.ON_TOUCHED) && !!fieldState.isDirty);
42
65
  if (!shouldShowError || !fieldState.error) {
43
66
  return undefined;
44
67
  }
68
+ const isMissingValue = isMissingValueError(fieldState.error) || (field !== undefined && isUnfilledFieldValue(field.value));
69
+ if (!isFormSubmitted && !isServerError && isMissingValue) {
70
+ return undefined;
71
+ }
45
72
  const rawMessage = fieldState.error.message || '';
46
73
  if (isRequiredFieldError(rawMessage)) {
47
74
  return tErrorValidation('required', 'msg');
@@ -79,5 +106,5 @@ export function getFieldError(fieldState, isFormSubmitted, validationMode, tErro
79
106
  }
80
107
  return translated;
81
108
  }
82
- export { FILE_VALIDATION_ERROR_TYPE, isRequiredFieldError };
109
+ export { FILE_VALIDATION_ERROR_TYPE, isRequiredFieldError, isMissingValueError };
83
110
  //# sourceMappingURL=getFieldError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFieldError.js","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/getFieldError.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,MAAM,0BAA0B,GAAG,iBAA0B,CAAC;AAE9D,MAAM,sBAAsB,GAAG,8BAA8B,CAAC;AAC9D,MAAM,+BAA+B,GAAG,yCAAyC,CAAC;AAElF,SAAS,oBAAoB,CAAC,YAAoB;IAChD,OAAO,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,+BAA+B,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACzG,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,aAAa,CAC3B,UAAmI,EACnI,eAAwB,EACxB,cAA8B,EAC9B,gBAA4F;IAE5F,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,EAAE,IAAI,KAAK,iBAAiB,IAAI,UAAU,CAAC,KAAK,EAAE,IAAI,KAAK,iBAAiB,CAAC;IACnH,MAAM,eAAe,GAAG,aAAa,IAAI,UAAU,CAAC,SAAS,IAAI,eAAe,IAAI,CAClF,CAAC,cAAc,KAAK,cAAc,CAAC,SAAS,IAAI,cAAc,KAAK,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,OAAO,CACtH,CAAC;IACF,IAAI,CAAC,eAAe,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QAC1C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;IAClD,IAAI,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC;QACrC,OAAO,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;IAExC,uHAAuH;IACvH,0HAA0H;IAC1H,IAAI,SAAS,KAAK,WAAW,IAAI,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,IAAI,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC,EAAE,CAAC;QACxH,OAAO,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC1C,IAAI,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YAC7B,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC;QAClC,CAAC;QACD,OAAO,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,SAAS,KAAK,0BAA0B,EAAE,CAAC;QAC7C,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,SAAS,KAAK,iBAAiB,EAAE,CAAC;QACpC,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACvE,CAAC;IAED,8FAA8F;IAC9F,8FAA8F;IAC9F,sBAAsB;IACtB,MAAM,UAAU,GAAG,gBAAgB,CACjC,SAAS,EACT,KAAK,EACL;QACE,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;QAClC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3E,CACF,CAAC;IAEF,IAAI,UAAU,KAAK,qBAAqB,SAAS,MAAM,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACrF,IAAI,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YAC7B,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC;QAClC,CAAC;QACD,OAAO,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["/**\n * getFieldError utility\n *\n * Separated from FormField.tsx for React Fast Refresh compatibility.\n *\n * Translates through `errors_validation.<type>.msg`, where `type` is the Zod issue code the form's\n * resolver kept (`zodIssueResolver`, issue #995) and `params` are the issue's own fields. A field\n * error with no type — a Standard Schema that is not Zod, or an error set by hand — still shows its\n * message.\n */\n\nimport { ValidationMode } from '@wildo-ai/zod-decorators';\nimport { SERVER_ERROR_TYPE, UNIQUE_ERROR_TYPE } from '../form-context';\n\nconst FILE_VALIDATION_ERROR_TYPE = 'file-validation' as const;\n\nconst REQUIRED_FIELD_PATTERN = /received (undefined|null)\\b/i;\nconst REQUIRED_FIELD_PATTERN_EXTENDED = /expected .+, received (undefined|null)/i;\n\nfunction isRequiredFieldError(errorMessage: string): boolean {\n return REQUIRED_FIELD_PATTERN.test(errorMessage) || REQUIRED_FIELD_PATTERN_EXTENDED.test(errorMessage);\n}\n\n/**\n * Calculate translated error message based on field state and touch behavior.\n * \n * Touch State Behavior\n * Only show validation errors if:\n * 1. Field has been touched (user interacted and blurred), OR\n * 2. Form has been submitted at least once\n * This prevents showing errors on initial render with invalid defaultValues.\n *\n * A SERVER error (a refusal the server returned, a uniqueness conflict) is shown whatever the touch state. The gate\n * exists to hide what the client schema says about values nobody has entered yet, and a server error is never that:\n * it answers a save, a submit or a uniqueness check somebody started. Gated, a refusal on a field the person never\n * visited (the server rejecting a value carried from the stored record, a section saved without a form submit) was\n * recorded and never shown.\n * \n * @param fieldState - RHF field state containing isTouched and error\n * @param isFormSubmitted - Whether the form has been submitted at least once\n * @param tErrorValidation - Translation function for error messages\n * @returns Translated error message or undefined if no error should be shown\n */\nexport function getFieldError(\n fieldState: { isTouched: boolean; isDirty?: boolean; error?: { type: string; message?: string; params?: Record<string, unknown> } },\n isFormSubmitted: boolean,\n validationMode: ValidationMode,\n tErrorValidation: (code: string, suffix: string, params?: Record<string, unknown>) => string\n): string | undefined {\n const isServerError = fieldState.error?.type === SERVER_ERROR_TYPE || fieldState.error?.type === UNIQUE_ERROR_TYPE;\n const shouldShowError = isServerError || fieldState.isTouched || isFormSubmitted || (\n (validationMode === ValidationMode.ON_CHANGE || validationMode === ValidationMode.ON_TOUCHED) && !!fieldState.isDirty\n );\n if (!shouldShowError || !fieldState.error) {\n return undefined;\n }\n \n const rawMessage = fieldState.error.message || '';\n if (isRequiredFieldError(rawMessage)) {\n return tErrorValidation('required', 'msg');\n }\n \n const errorType = fieldState.error.type;\n \n // An emptied required text field is a required field, whatever the schema spells it as. The form keeps an empty string\n // rather than undefined, so `.min(1)` reports `too_small` and the person read \"Enter a larger value.\" under a blank Name.\n if (errorType === 'too_small' && fieldState.error.params?.origin === 'string' && fieldState.error.params?.minimum === 1) {\n return tErrorValidation('required', 'msg');\n }\n\n if (!errorType || errorType.trim() === '') {\n if (fieldState.error.message) {\n return fieldState.error.message;\n }\n return tErrorValidation('custom', 'msg');\n }\n \n if (errorType === FILE_VALIDATION_ERROR_TYPE) {\n return fieldState.error.message || tErrorValidation('custom', 'msg');\n }\n \n if (errorType === UNIQUE_ERROR_TYPE) {\n return fieldState.error.message || tErrorValidation('custom', 'msg');\n }\n \n // The issue's own fields (`minimum`, `origin`, `format`, …) are the parameters the catalog is\n // planned with (issue #995); the schema's message rides along as `message` for a catalog that\n // chooses to show it.\n const translated = tErrorValidation(\n errorType,\n 'msg',\n {\n ...(fieldState.error.params ?? {}),\n ...(fieldState.error.message ? { message: fieldState.error.message } : {}),\n }\n );\n \n if (translated === `errors_validation.${errorType}.msg` || translated.includes('..')) {\n if (fieldState.error.message) {\n return fieldState.error.message;\n }\n return tErrorValidation('custom', 'msg');\n }\n \n return translated;\n}\n\nexport { FILE_VALIDATION_ERROR_TYPE, isRequiredFieldError };\n"]}
1
+ {"version":3,"file":"getFieldError.js","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/getFieldError.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,MAAM,0BAA0B,GAAG,iBAA0B,CAAC;AAE9D,MAAM,sBAAsB,GAAG,8BAA8B,CAAC;AAC9D,MAAM,+BAA+B,GAAG,yCAAyC,CAAC;AAElF,SAAS,oBAAoB,CAAC,YAAoB;IAChD,OAAO,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,+BAA+B,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACzG,CAAC;AAED;;;;GAIG;AACH,SAAS,mBAAmB,CAAC,KAA2E;IACtG,IAAI,oBAAoB,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;QAAE,OAAO,IAAI,CAAC;IAC3D,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC;IACpC,OAAO,KAAK,CAAC,IAAI,KAAK,WAAW,IAAI,KAAK,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,OAAO,CAAC,CAAC;AAClH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,aAAa,CAC3B,UAAmI,EACnI,eAAwB,EACxB,cAA8B,EAC9B,gBAA4F;AAC5F;;;;GAIG;AACH,KAA0B;IAE1B,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,EAAE,IAAI,KAAK,iBAAiB,IAAI,UAAU,CAAC,KAAK,EAAE,IAAI,KAAK,iBAAiB,CAAC;IACnH,MAAM,eAAe,GAAG,aAAa,IAAI,UAAU,CAAC,SAAS,IAAI,eAAe,IAAI,CAClF,CAAC,cAAc,KAAK,cAAc,CAAC,SAAS,IAAI,cAAc,KAAK,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,OAAO,CACtH,CAAC;IACF,IAAI,CAAC,eAAe,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QAC1C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAAG,mBAAmB,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,oBAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3H,IAAI,CAAC,eAAe,IAAI,CAAC,aAAa,IAAI,cAAc,EAAE,CAAC;QACzD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;IAClD,IAAI,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC;QACrC,OAAO,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;IAExC,uHAAuH;IACvH,0HAA0H;IAC1H,IAAI,SAAS,KAAK,WAAW,IAAI,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,IAAI,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC,EAAE,CAAC;QACxH,OAAO,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC1C,IAAI,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YAC7B,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC;QAClC,CAAC;QACD,OAAO,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,SAAS,KAAK,0BAA0B,EAAE,CAAC;QAC7C,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,SAAS,KAAK,iBAAiB,EAAE,CAAC;QACpC,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACvE,CAAC;IAED,8FAA8F;IAC9F,8FAA8F;IAC9F,sBAAsB;IACtB,MAAM,UAAU,GAAG,gBAAgB,CACjC,SAAS,EACT,KAAK,EACL;QACE,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;QAClC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3E,CACF,CAAC;IAEF,IAAI,UAAU,KAAK,qBAAqB,SAAS,MAAM,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACrF,IAAI,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YAC7B,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC;QAClC,CAAC;QACD,OAAO,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,CAAC","sourcesContent":["/**\n * getFieldError utility\n *\n * Separated from FormField.tsx for React Fast Refresh compatibility.\n *\n * Translates through `errors_validation.<type>.msg`, where `type` is the Zod issue code the form's\n * resolver kept (`zodIssueResolver`, issue #995) and `params` are the issue's own fields. A field\n * error with no type — a Standard Schema that is not Zod, or an error set by hand — still shows its\n * message.\n */\n\nimport { ValidationMode } from '@wildo-ai/zod-decorators';\nimport { SERVER_ERROR_TYPE, UNIQUE_ERROR_TYPE } from '../form-context';\nimport { isUnfilledFieldValue } from './unstarted-field-visit';\n\nconst FILE_VALIDATION_ERROR_TYPE = 'file-validation' as const;\n\nconst REQUIRED_FIELD_PATTERN = /received (undefined|null)\\b/i;\nconst REQUIRED_FIELD_PATTERN_EXTENDED = /expected .+, received (undefined|null)/i;\n\nfunction isRequiredFieldError(errorMessage: string): boolean {\n return REQUIRED_FIELD_PATTERN.test(errorMessage) || REQUIRED_FIELD_PATTERN_EXTENDED.test(errorMessage);\n}\n\n/**\n * Whether an error says only that a value is MISSING: absent (`received undefined/null`), or an empty string or list\n * where at least one character or item is required (`too_small` with a minimum of 1). Every other error is about a\n * value the person entered (its format, its length, its range).\n */\nfunction isMissingValueError(error: { type: string; message?: string; params?: Record<string, unknown> }): boolean {\n if (isRequiredFieldError(error.message || '')) return true;\n const origin = error.params?.origin;\n return error.type === 'too_small' && error.params?.minimum === 1 && (origin === 'string' || origin === 'array');\n}\n\n/**\n * Calculate translated error message based on field state and touch behavior.\n * \n * Touch State Behavior\n * Only show validation errors if:\n * 1. Field has been touched (user interacted and blurred), OR\n * 2. Form has been submitted at least once\n * This prevents showing errors on initial render with invalid defaultValues.\n *\n * A SERVER error (a refusal the server returned, a uniqueness conflict) is shown whatever the touch state. The gate\n * exists to hide what the client schema says about values nobody has entered yet, and a server error is never that:\n * it answers a save, a submit or a uniqueness check somebody started. Gated, a refusal on a field the person never\n * visited (the server rejecting a value carried from the stored record, a section saved without a form submit) was\n * recorded and never shown.\n *\n * A MISSING value is shown only after the first submit, whatever the field's timing: before the person asks to save,\n * an empty required field is one they have not filled yet, not a mistake. Decided by practice: errors on submit, and\n * only a format error inline.\n * spec-cite: https://design-system.service.gov.uk/patterns/validation/ — validate when the form is submitted; https://www.nngroup.com/articles/errors-forms-design-guidelines/ — inline validation for format errors.\n * \n * @param fieldState - RHF field state containing isTouched and error\n * @param isFormSubmitted - Whether the form has been submitted at least once\n * @param tErrorValidation - Translation function for error messages\n * @returns Translated error message or undefined if no error should be shown\n */\nexport function getFieldError(\n fieldState: { isTouched: boolean; isDirty?: boolean; error?: { type: string; message?: string; params?: Record<string, unknown> } },\n isFormSubmitted: boolean,\n validationMode: ValidationMode,\n tErrorValidation: (code: string, suffix: string, params?: Record<string, unknown>) => string,\n /**\n * The field's current value (`{ value }`), when the caller has it. An unfilled value (absent, empty, an empty list) is a missing\n * value whatever the schema reports for it: an emptied `z.email()` reports `invalid_format`, an emptied `.min(3)`\n * reports `too_small` with a minimum of 3, and neither is a mistake before the person asked to save.\n */\n field?: { value: unknown },\n): string | undefined {\n const isServerError = fieldState.error?.type === SERVER_ERROR_TYPE || fieldState.error?.type === UNIQUE_ERROR_TYPE;\n const shouldShowError = isServerError || fieldState.isTouched || isFormSubmitted || (\n (validationMode === ValidationMode.ON_CHANGE || validationMode === ValidationMode.ON_TOUCHED) && !!fieldState.isDirty\n );\n if (!shouldShowError || !fieldState.error) {\n return undefined;\n }\n const isMissingValue = isMissingValueError(fieldState.error) || (field !== undefined && isUnfilledFieldValue(field.value));\n if (!isFormSubmitted && !isServerError && isMissingValue) {\n return undefined;\n }\n \n const rawMessage = fieldState.error.message || '';\n if (isRequiredFieldError(rawMessage)) {\n return tErrorValidation('required', 'msg');\n }\n \n const errorType = fieldState.error.type;\n \n // An emptied required text field is a required field, whatever the schema spells it as. The form keeps an empty string\n // rather than undefined, so `.min(1)` reports `too_small` and the person read \"Enter a larger value.\" under a blank Name.\n if (errorType === 'too_small' && fieldState.error.params?.origin === 'string' && fieldState.error.params?.minimum === 1) {\n return tErrorValidation('required', 'msg');\n }\n\n if (!errorType || errorType.trim() === '') {\n if (fieldState.error.message) {\n return fieldState.error.message;\n }\n return tErrorValidation('custom', 'msg');\n }\n \n if (errorType === FILE_VALIDATION_ERROR_TYPE) {\n return fieldState.error.message || tErrorValidation('custom', 'msg');\n }\n \n if (errorType === UNIQUE_ERROR_TYPE) {\n return fieldState.error.message || tErrorValidation('custom', 'msg');\n }\n \n // The issue's own fields (`minimum`, `origin`, `format`, …) are the parameters the catalog is\n // planned with (issue #995); the schema's message rides along as `message` for a catalog that\n // chooses to show it.\n const translated = tErrorValidation(\n errorType,\n 'msg',\n {\n ...(fieldState.error.params ?? {}),\n ...(fieldState.error.message ? { message: fieldState.error.message } : {}),\n }\n );\n \n if (translated === `errors_validation.${errorType}.msg` || translated.includes('..')) {\n if (fieldState.error.message) {\n return fieldState.error.message;\n }\n return tErrorValidation('custom', 'msg');\n }\n \n return translated;\n}\n\nexport { FILE_VALIDATION_ERROR_TYPE, isRequiredFieldError, isMissingValueError };\n"]}
@@ -1,3 +1,4 @@
1
+ import { type PlanRefusal } from '../../../core/features/plan-refusal.frontend';
1
2
  /**
2
3
  * What a resource form hands the notification layer about a failed request — ONE place (#1048).
3
4
  *
@@ -16,6 +17,9 @@
16
17
  * a refusal has: without them a form showed its generic category ("refused as invalid") while the
17
18
  * server had said exactly why, e.g. "The secret was not changed: OPENAI_API_KEY values start with sk-."
18
19
  *
20
+ * - `errorPlanRefusal` — the fence of a PLAN refusal (a feature the plan lacks, a limit reached), which the
21
+ * application's plan-refusal prompt shows in place of this notice (see `plan-refusal.frontend`).
22
+ *
19
23
  * The server's `details.message` and the guidance's own `explanation` string are never carried: both
20
24
  * are English prose, and display reads labels.
21
25
  */
@@ -25,6 +29,7 @@ export interface ResourceErrorNotificationContext {
25
29
  errorHttpStatus?: number;
26
30
  errorGuidanceKey?: string;
27
31
  errorGuidanceParams?: Record<string, string | number>;
32
+ errorPlanRefusal?: PlanRefusal;
28
33
  }
29
34
  export declare function describeResourceErrorForNotification(error: unknown): ResourceErrorNotificationContext;
30
35
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"resource-error-notification-context.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/resource-error-notification-context.utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,gCAAgC;IAC/C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACvD;AAED,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,OAAO,GAAG,gCAAgC,CASrG;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC,gCAAgC,EAAE,kBAAkB,GAAG,qBAAqB,CAAC,CAKxI"}
1
+ {"version":3,"file":"resource-error-notification-context.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/resource-error-notification-context.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAE1G;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,gCAAgC;IAC/C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACtD,gBAAgB,CAAC,EAAE,WAAW,CAAC;CAChC;AAED,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,OAAO,GAAG,gCAAgC,CAWrG;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC,gCAAgC,EAAE,kBAAkB,GAAG,qBAAqB,CAAC,CAKxI"}
@@ -1,12 +1,15 @@
1
1
  import { readDisplayableErrorFacts } from '../../../core/errors/user-facing-error-message.frontend.utils.js';
2
+ import { planRefusalOf } from '../../../core/features/plan-refusal.frontend.js';
2
3
  export function describeResourceErrorForNotification(error) {
3
4
  const candidate = (error ?? {});
4
5
  const context = (candidate.context ?? {});
6
+ const planRefusal = planRefusalOf(error);
5
7
  return {
6
8
  ...(typeof candidate.customMessageReference === 'string' ? { errorCustomMessageReference: candidate.customMessageReference } : {}),
7
9
  ...(typeof context.code === 'string' && context.code.length > 0 ? { errorRefusalCode: context.code } : {}),
8
10
  ...(typeof candidate.httpStatus === 'number' ? { errorHttpStatus: candidate.httpStatus } : {}),
9
11
  ...describeErrorGuidance(error),
12
+ ...(planRefusal ? { errorPlanRefusal: planRefusal } : {}),
10
13
  };
11
14
  }
12
15
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"resource-error-notification-context.utils.js","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/resource-error-notification-context.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAC;AA+BrH,MAAM,UAAU,oCAAoC,CAAC,KAAc;IACjE,MAAM,SAAS,GAAG,CAAC,KAAK,IAAI,EAAE,CAAkF,CAAC;IACjH,MAAM,OAAO,GAAG,CAAC,SAAS,CAAC,OAAO,IAAI,EAAE,CAAuB,CAAC;IAChE,OAAO;QACL,GAAG,CAAC,OAAO,SAAS,CAAC,sBAAsB,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,2BAA2B,EAAE,SAAS,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAClI,GAAG,CAAC,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1G,GAAG,CAAC,OAAO,SAAS,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9F,GAAG,qBAAqB,CAAC,KAAK,CAAC;KAChC,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAc;IAClD,MAAM,QAAQ,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC;IAC/D,MAAM,GAAG,GAAG,OAAO,QAAQ,EAAE,WAAW,KAAK,QAAQ,IAAI,QAAQ,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5H,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AAC1G,CAAC","sourcesContent":["import { readDisplayableErrorFacts } from '~wildo-frontend-lib/core/errors/user-facing-error-message.frontend.utils';\n\n/**\n * What a resource form hands the notification layer about a failed request — ONE place (#1048).\n *\n * `ResourceAutomatedForm` built this context by hand at four error sites, and they had already drifted:\n * one carried the HTTP status and three did not. Adding the refusal code at four hand-built sites would\n * have been the same invariant applied at some of its call sites, so every site spreads this instead.\n *\n * - `errorCustomMessageReference` — the backend's generic reference (`validation`, `conflict`, …).\n * - `errorRefusalCode` — the DECLARED refusal the backend returned in `details.code`\n * (e.g. `SECRET_SLUG_NOT_DECLARED`). It is read from `error.context`, where the HTTP client keeps the\n * error body's `details`; the top-level `code` is deliberately not used, because on this error object\n * `code` is axios's own transport code (`ERR_BAD_REQUEST`), a different vocabulary.\n * - `errorHttpStatus` — the status, for the notification layer's status-shaped defaults.\n * - `errorGuidanceKey` / `errorGuidanceParams` — the backend's user guidance, as the LABEL it names\n * (`errors_guidance.<key>.explanation`) and the values that label interpolates. The most specific words\n * a refusal has: without them a form showed its generic category (\"refused as invalid\") while the\n * server had said exactly why, e.g. \"The secret was not changed: OPENAI_API_KEY values start with sk-.\"\n *\n * The server's `details.message` and the guidance's own `explanation` string are never carried: both\n * are English prose, and display reads labels.\n */\nexport interface ResourceErrorNotificationContext {\n errorCustomMessageReference?: string;\n errorRefusalCode?: string;\n errorHttpStatus?: number;\n errorGuidanceKey?: string;\n errorGuidanceParams?: Record<string, string | number>;\n}\n\nexport function describeResourceErrorForNotification(error: unknown): ResourceErrorNotificationContext {\n const candidate = (error ?? {}) as { customMessageReference?: unknown; httpStatus?: unknown; context?: unknown };\n const context = (candidate.context ?? {}) as { code?: unknown };\n return {\n ...(typeof candidate.customMessageReference === 'string' ? { errorCustomMessageReference: candidate.customMessageReference } : {}),\n ...(typeof context.code === 'string' && context.code.length > 0 ? { errorRefusalCode: context.code } : {}),\n ...(typeof candidate.httpStatus === 'number' ? { errorHttpStatus: candidate.httpStatus } : {}),\n ...describeErrorGuidance(error),\n };\n}\n\n/**\n * The guidance half on its own, for producers that pick fields rather than spreading the whole context\n * (`ResourceMutationManager`, `useResourceOperationActions`). Read through `readDisplayableErrorFacts`,\n * which knows every shape a caught error arrives in.\n */\nexport function describeErrorGuidance(error: unknown): Pick<ResourceErrorNotificationContext, 'errorGuidanceKey' | 'errorGuidanceParams'> {\n const guidance = readDisplayableErrorFacts(error).userGuidance;\n const key = typeof guidance?.guidanceKey === 'string' && guidance.guidanceKey.length > 0 ? guidance.guidanceKey : undefined;\n if (!key) return {};\n return { errorGuidanceKey: key, ...(guidance?.params ? { errorGuidanceParams: guidance.params } : {}) };\n}\n"]}
1
+ {"version":3,"file":"resource-error-notification-context.utils.js","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/resource-error-notification-context.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAC;AACrH,OAAO,EAAE,aAAa,EAAoB,MAAM,yDAAyD,CAAC;AAmC1G,MAAM,UAAU,oCAAoC,CAAC,KAAc;IACjE,MAAM,SAAS,GAAG,CAAC,KAAK,IAAI,EAAE,CAAkF,CAAC;IACjH,MAAM,OAAO,GAAG,CAAC,SAAS,CAAC,OAAO,IAAI,EAAE,CAAuB,CAAC;IAChE,MAAM,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO;QACL,GAAG,CAAC,OAAO,SAAS,CAAC,sBAAsB,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,2BAA2B,EAAE,SAAS,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAClI,GAAG,CAAC,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1G,GAAG,CAAC,OAAO,SAAS,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9F,GAAG,qBAAqB,CAAC,KAAK,CAAC;QAC/B,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAc;IAClD,MAAM,QAAQ,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC;IAC/D,MAAM,GAAG,GAAG,OAAO,QAAQ,EAAE,WAAW,KAAK,QAAQ,IAAI,QAAQ,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5H,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AAC1G,CAAC","sourcesContent":["import { readDisplayableErrorFacts } from '~wildo-frontend-lib/core/errors/user-facing-error-message.frontend.utils';\nimport { planRefusalOf, type PlanRefusal } from '~wildo-frontend-lib/core/features/plan-refusal.frontend';\n\n/**\n * What a resource form hands the notification layer about a failed request — ONE place (#1048).\n *\n * `ResourceAutomatedForm` built this context by hand at four error sites, and they had already drifted:\n * one carried the HTTP status and three did not. Adding the refusal code at four hand-built sites would\n * have been the same invariant applied at some of its call sites, so every site spreads this instead.\n *\n * - `errorCustomMessageReference` — the backend's generic reference (`validation`, `conflict`, …).\n * - `errorRefusalCode` — the DECLARED refusal the backend returned in `details.code`\n * (e.g. `SECRET_SLUG_NOT_DECLARED`). It is read from `error.context`, where the HTTP client keeps the\n * error body's `details`; the top-level `code` is deliberately not used, because on this error object\n * `code` is axios's own transport code (`ERR_BAD_REQUEST`), a different vocabulary.\n * - `errorHttpStatus` — the status, for the notification layer's status-shaped defaults.\n * - `errorGuidanceKey` / `errorGuidanceParams` — the backend's user guidance, as the LABEL it names\n * (`errors_guidance.<key>.explanation`) and the values that label interpolates. The most specific words\n * a refusal has: without them a form showed its generic category (\"refused as invalid\") while the\n * server had said exactly why, e.g. \"The secret was not changed: OPENAI_API_KEY values start with sk-.\"\n *\n * - `errorPlanRefusal` — the fence of a PLAN refusal (a feature the plan lacks, a limit reached), which the\n * application's plan-refusal prompt shows in place of this notice (see `plan-refusal.frontend`).\n *\n * The server's `details.message` and the guidance's own `explanation` string are never carried: both\n * are English prose, and display reads labels.\n */\nexport interface ResourceErrorNotificationContext {\n errorCustomMessageReference?: string;\n errorRefusalCode?: string;\n errorHttpStatus?: number;\n errorGuidanceKey?: string;\n errorGuidanceParams?: Record<string, string | number>;\n errorPlanRefusal?: PlanRefusal;\n}\n\nexport function describeResourceErrorForNotification(error: unknown): ResourceErrorNotificationContext {\n const candidate = (error ?? {}) as { customMessageReference?: unknown; httpStatus?: unknown; context?: unknown };\n const context = (candidate.context ?? {}) as { code?: unknown };\n const planRefusal = planRefusalOf(error);\n return {\n ...(typeof candidate.customMessageReference === 'string' ? { errorCustomMessageReference: candidate.customMessageReference } : {}),\n ...(typeof context.code === 'string' && context.code.length > 0 ? { errorRefusalCode: context.code } : {}),\n ...(typeof candidate.httpStatus === 'number' ? { errorHttpStatus: candidate.httpStatus } : {}),\n ...describeErrorGuidance(error),\n ...(planRefusal ? { errorPlanRefusal: planRefusal } : {}),\n };\n}\n\n/**\n * The guidance half on its own, for producers that pick fields rather than spreading the whole context\n * (`ResourceMutationManager`, `useResourceOperationActions`). Read through `readDisplayableErrorFacts`,\n * which knows every shape a caught error arrives in.\n */\nexport function describeErrorGuidance(error: unknown): Pick<ResourceErrorNotificationContext, 'errorGuidanceKey' | 'errorGuidanceParams'> {\n const guidance = readDisplayableErrorFacts(error).userGuidance;\n const key = typeof guidance?.guidanceKey === 'string' && guidance.guidanceKey.length > 0 ? guidance.guidanceKey : undefined;\n if (!key) return {};\n return { errorGuidanceKey: key, ...(guidance?.params ? { errorGuidanceParams: guidance.params } : {}) };\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import type { Control, FieldValues } from 'react-hook-form';
2
+ /** Record that a person asked to save these fields (their dotted paths). */
3
+ export declare function recordSaveAttempt<TValues extends FieldValues>(control: Control<TValues> | object, fieldPaths: readonly string[]): void;
4
+ /**
5
+ * Whether a person asked to save this field: the form was submitted, or a partial save checked this field or a field
6
+ * it lies under (a section saving `steps` checked `steps.0.title`).
7
+ */
8
+ export declare function wasSaveAttempted<TValues extends FieldValues>(control: Control<TValues> | object, isFormSubmitted: boolean, fieldPath: string): boolean;
9
+ //# sourceMappingURL=save-attempt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"save-attempt.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/save-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAkB5D,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAOtI;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,WAAW,EAC1D,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,MAAM,EAClC,eAAe,EAAE,OAAO,EACxB,SAAS,EAAE,MAAM,GAChB,OAAO,CAQT"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * The fields a person asked to SAVE without submitting the whole form: a section's Save, a wizard's Next, an inline
3
+ * edit's Enter. Each validates part of the form (`validateFieldsAndShowErrors`, the inline editor) and then shows what
4
+ * is wrong. For the error rule ("a missing value is shown only once the person asked to save", `getFieldError`) such
5
+ * an attempt counts like a submit, for the fields it checked.
6
+ *
7
+ * React Hook Form records a submit (`formState.isSubmitted`) and nothing finer, so the attempt is kept beside the form,
8
+ * keyed by its control, for the life of the form. It is read when a field renders, and the attempt then touches the
9
+ * failing fields, which is what renders them again.
10
+ *
11
+ * Known limit: `form.reset()` does not clear the record, while it does clear `isSubmitted`. A field a partial save
12
+ * checked may then show a missing value as soon as it next has an error, before the next save. It only ever shows an
13
+ * error earlier, never hides one, and a reset form has no errors until something validates it.
14
+ */
15
+ const attemptedFieldsByForm = new WeakMap();
16
+ /** Record that a person asked to save these fields (their dotted paths). */
17
+ export function recordSaveAttempt(control, fieldPaths) {
18
+ let attempted = attemptedFieldsByForm.get(control);
19
+ if (!attempted) {
20
+ attempted = new Set();
21
+ attemptedFieldsByForm.set(control, attempted);
22
+ }
23
+ for (const path of fieldPaths)
24
+ attempted.add(path);
25
+ }
26
+ /**
27
+ * Whether a person asked to save this field: the form was submitted, or a partial save checked this field or a field
28
+ * it lies under (a section saving `steps` checked `steps.0.title`).
29
+ */
30
+ export function wasSaveAttempted(control, isFormSubmitted, fieldPath) {
31
+ if (isFormSubmitted)
32
+ return true;
33
+ const attempted = attemptedFieldsByForm.get(control);
34
+ if (!attempted)
35
+ return false;
36
+ for (const path of attempted) {
37
+ if (fieldPath === path || fieldPath.startsWith(`${path}.`))
38
+ return true;
39
+ }
40
+ return false;
41
+ }
42
+ //# sourceMappingURL=save-attempt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"save-attempt.js","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/save-attempt.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,MAAM,qBAAqB,GAAG,IAAI,OAAO,EAAuB,CAAC;AAEjE,4EAA4E;AAC5E,MAAM,UAAU,iBAAiB,CAA8B,OAAkC,EAAE,UAA6B;IAC9H,IAAI,SAAS,GAAG,qBAAqB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACnD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;QACtB,qBAAqB,CAAC,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAChD,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,UAAU;QAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACrD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAC9B,OAAkC,EAClC,eAAwB,EACxB,SAAiB;IAEjB,IAAI,eAAe;QAAE,OAAO,IAAI,CAAC;IACjC,MAAM,SAAS,GAAG,qBAAqB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACrD,IAAI,CAAC,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7B,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE,CAAC;QAC7B,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;IAC1E,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import type { Control, FieldValues } from 'react-hook-form';\n\n/**\n * The fields a person asked to SAVE without submitting the whole form: a section's Save, a wizard's Next, an inline\n * edit's Enter. Each validates part of the form (`validateFieldsAndShowErrors`, the inline editor) and then shows what\n * is wrong. For the error rule (\"a missing value is shown only once the person asked to save\", `getFieldError`) such\n * an attempt counts like a submit, for the fields it checked.\n *\n * React Hook Form records a submit (`formState.isSubmitted`) and nothing finer, so the attempt is kept beside the form,\n * keyed by its control, for the life of the form. It is read when a field renders, and the attempt then touches the\n * failing fields, which is what renders them again.\n *\n * Known limit: `form.reset()` does not clear the record, while it does clear `isSubmitted`. A field a partial save\n * checked may then show a missing value as soon as it next has an error, before the next save. It only ever shows an\n * error earlier, never hides one, and a reset form has no errors until something validates it.\n */\nconst attemptedFieldsByForm = new WeakMap<object, Set<string>>();\n\n/** Record that a person asked to save these fields (their dotted paths). */\nexport function recordSaveAttempt<TValues extends FieldValues>(control: Control<TValues> | object, fieldPaths: readonly string[]): void {\n let attempted = attemptedFieldsByForm.get(control);\n if (!attempted) {\n attempted = new Set();\n attemptedFieldsByForm.set(control, attempted);\n }\n for (const path of fieldPaths) attempted.add(path);\n}\n\n/**\n * Whether a person asked to save this field: the form was submitted, or a partial save checked this field or a field\n * it lies under (a section saving `steps` checked `steps.0.title`).\n */\nexport function wasSaveAttempted<TValues extends FieldValues>(\n control: Control<TValues> | object,\n isFormSubmitted: boolean,\n fieldPath: string,\n): boolean {\n if (isFormSubmitted) return true;\n const attempted = attemptedFieldsByForm.get(control);\n if (!attempted) return false;\n for (const path of attempted) {\n if (fieldPath === path || fieldPath.startsWith(`${path}.`)) return true;\n }\n return false;\n}\n"]}
@@ -38,7 +38,9 @@ export interface UnstartedFieldVisitGate {
38
38
  *
39
39
  * ## Why this is a shared hook and not a rule inside `FormField`
40
40
  *
41
- * The form-level react-hook-form `mode` is `onBlur` (`Form.tsx`), so RHF's OWN blur handler validates.
41
+ * Under a blur-validating react-hook-form `mode` (`onBlur` or `onTouched`, which a form or a resource may declare; the
42
+ * default is `onSubmit`, `Form.tsx`), RHF's OWN blur handler validates, and a field with a format validates on blur by
43
+ * its own default.
42
44
  * Every site that hands a control `field.onBlur` therefore carries this decision, not just the one
43
45
  * that also calls `trigger`. `FormField` covers the ordinary fields; `AutomatedArrayField` renders its
44
46
  * multi-select and checkbox-group array fields through its own `Controller`s and needs the same gate.
@@ -1 +1 @@
1
- {"version":3,"file":"unstarted-field-visit.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/unstarted-field-visit.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAG5D;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,eAAe,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,OAAO,CAAC;IACtD,8FAA8F;IAC9F,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,uBAAuB,CA+BjF"}
1
+ {"version":3,"file":"unstarted-field-visit.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/unstarted-field-visit.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAG5D;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,eAAe,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,OAAO,CAAC;IACtD,8FAA8F;IAC9F,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,uBAAuB,CA+BjF"}
@@ -34,7 +34,9 @@ export function isUnfilledFieldValue(value) {
34
34
  *
35
35
  * ## Why this is a shared hook and not a rule inside `FormField`
36
36
  *
37
- * The form-level react-hook-form `mode` is `onBlur` (`Form.tsx`), so RHF's OWN blur handler validates.
37
+ * Under a blur-validating react-hook-form `mode` (`onBlur` or `onTouched`, which a form or a resource may declare; the
38
+ * default is `onSubmit`, `Form.tsx`), RHF's OWN blur handler validates, and a field with a format validates on blur by
39
+ * its own default.
38
40
  * Every site that hands a control `field.onBlur` therefore carries this decision, not just the one
39
41
  * that also calls `trigger`. `FormField` covers the ordinary fields; `AutomatedArrayField` renders its
40
42
  * multi-select and checkbox-group array fields through its own `Controller`s and needs the same gate.
@@ -1 +1 @@
1
- {"version":3,"file":"unstarted-field-visit.js","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/unstarted-field-visit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAc;IACjD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IACvE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;AACpD,CAAC;AAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,UAAU,sBAAsB,CAAC,SAAiB;IACtD,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAE1C,MAAM,eAAe,GAAG,WAAW,CACjC,CAAC,WAAuB,EAAW,EAAE;QACnC,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QACxD,MAAM,YAAY,GAAG,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACtD,MAAM,gBAAgB,GAAG,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,mBAAmB,CAAC,OAAO,IAAI,oBAAoB,CAAC,YAAY,CAAC,CAAC;QAEjH,IAAI,gBAAgB,EAAE,CAAC;YACrB;;;;eAIG;YACH,WAAW,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;YAChH,OAAO,IAAI,CAAC;QACd,CAAC;QAED,WAAW,EAAE,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC,EACD,CAAC,WAAW,EAAE,SAAS,CAAC,CACzB,CAAC;IAEF,MAAM,iBAAiB,GAAG,WAAW,CAAC,GAAG,EAAE;QACzC,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC;AAChD,CAAC","sourcesContent":["import { useCallback, useRef } from 'react';\nimport { useFormContext } from 'react-hook-form';\n\n/**\n * Whether a form value holds nothing the person entered: absent, the framework's cleared `null`, an\n * empty string, or an empty array. `0` and `false` are values, not emptiness.\n *\n * An object-valued field — an address, a `{ from, to }` range — is never unfilled by this test, so it\n * keeps validating on blur. Deliberate: emptiness there is per-part and belongs to the control.\n */\nexport function isUnfilledFieldValue(value: unknown): boolean {\n if (value === undefined || value === null || value === '') return true;\n return Array.isArray(value) && value.length === 0;\n}\n\nexport interface UnstartedFieldVisitGate {\n /**\n * Call in place of react-hook-form's `field.onBlur`. Answers whether the blur was an UNSTARTED VISIT,\n * in which case the field was marked touched WITHOUT validating and the caller must not validate\n * either. Otherwise `field.onBlur` ran as usual and the caller proceeds with its own rules.\n */\n handleFieldBlur: (fieldOnBlur: () => void) => boolean;\n /** Record that the person entered something into this field. Call from the change handler. */\n noteInputReceived: () => void;\n}\n\n/**\n * A blur is not a verdict on a field the person never filled.\n *\n * Focus leaves an input for reasons that say nothing about intent: picking a browser autofill\n * suggestion (the case that surfaced this — Chrome's saved-email list on the sign-in field), switching\n * to a password manager, tabbing past a field on the way to another. Validating then reports\n * \"required\" / \"invalid format\" on a field the person has not started, and on autofill the error\n * flashes until the filled value re-validates it away.\n *\n * So a blur on a field that is EMPTY, has received NO input since it mounted and shows NO error yet\n * only records the visit. An empty required field is still reported at submit, which validates every\n * field regardless. Everything else is unchanged: a field holding a value is validated on blur, a\n * field the person typed into and then emptied is, and a field already in error keeps re-validating.\n *\n * Decided from practice rather than asked: Cloudscape's validation pattern — \"delay validation until\n * after a user has entered data, unless they are in the process of fixing validation errors\".\n * spec-cite: https://cloudscape.design/patterns/general/errors/validation/ — \"General\" timing guidance.\n * The rejected alternative, validating every blur (the same page's on-blur example includes empty\n * fields), is what produced the defect.\n *\n * ## Why this is a shared hook and not a rule inside `FormField`\n *\n * The form-level react-hook-form `mode` is `onBlur` (`Form.tsx`), so RHF's OWN blur handler validates.\n * Every site that hands a control `field.onBlur` therefore carries this decision, not just the one\n * that also calls `trigger`. `FormField` covers the ordinary fields; `AutomatedArrayField` renders its\n * multi-select and checkbox-group array fields through its own `Controller`s and needs the same gate.\n * A second hand-written copy is how one of the two drifts — see\n * `.claude/rules/invariant-call-site-enumeration.md`.\n *\n * Not RHF's `isDirty`, which compares the CURRENT value with the default: typing \"a\" and deleting it\n * returns to the default and reads as pristine, although the person did start the field.\n *\n * Known limits, each of which only ever makes validation LESS eager and never lets a value through —\n * submit, wizard Next, section save and autosave all validate independently:\n * - the record lives with the mounted field, so a remount resets it and `form.reset()` does not clear it;\n * - an ARRAY-valued field is not marked touched. RHF tracks touched per ELEMENT for array values, so an\n * empty array has nothing to mark and `touchedFields` stays empty. Nothing depends on it there — the\n * array controls show an error from the submitted state, not from touched — and refusing to judge is\n * the part that matters. Measured by the array pins.\n */\nexport function useUnstartedFieldVisit(fieldName: string): UnstartedFieldVisitGate {\n const formContext = useFormContext();\n const hasReceivedInputRef = useRef(false);\n\n const handleFieldBlur = useCallback(\n (fieldOnBlur: () => void): boolean => {\n const fieldState = formContext.getFieldState(fieldName);\n const currentValue = formContext.getValues(fieldName);\n const isUnstartedVisit = !fieldState.error && !hasReceivedInputRef.current && isUnfilledFieldValue(currentValue);\n\n if (isUnstartedVisit) {\n /*\n * The touch goes through `setValue` rather than `field.onBlur` because RHF's blur handler\n * validates under a blur mode: skipping only the caller's own `trigger` would leave that\n * second validation in place.\n */\n formContext.setValue(fieldName, currentValue, { shouldTouch: true, shouldDirty: false, shouldValidate: false });\n return true;\n }\n\n fieldOnBlur();\n return false;\n },\n [formContext, fieldName],\n );\n\n const noteInputReceived = useCallback(() => {\n hasReceivedInputRef.current = true;\n }, []);\n\n return { handleFieldBlur, noteInputReceived };\n}\n"]}
1
+ {"version":3,"file":"unstarted-field-visit.js","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/unstarted-field-visit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAc;IACjD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IACvE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;AACpD,CAAC;AAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,UAAU,sBAAsB,CAAC,SAAiB;IACtD,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAE1C,MAAM,eAAe,GAAG,WAAW,CACjC,CAAC,WAAuB,EAAW,EAAE;QACnC,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QACxD,MAAM,YAAY,GAAG,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACtD,MAAM,gBAAgB,GAAG,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,mBAAmB,CAAC,OAAO,IAAI,oBAAoB,CAAC,YAAY,CAAC,CAAC;QAEjH,IAAI,gBAAgB,EAAE,CAAC;YACrB;;;;eAIG;YACH,WAAW,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;YAChH,OAAO,IAAI,CAAC;QACd,CAAC;QAED,WAAW,EAAE,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC,EACD,CAAC,WAAW,EAAE,SAAS,CAAC,CACzB,CAAC;IAEF,MAAM,iBAAiB,GAAG,WAAW,CAAC,GAAG,EAAE;QACzC,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC;AAChD,CAAC","sourcesContent":["import { useCallback, useRef } from 'react';\nimport { useFormContext } from 'react-hook-form';\n\n/**\n * Whether a form value holds nothing the person entered: absent, the framework's cleared `null`, an\n * empty string, or an empty array. `0` and `false` are values, not emptiness.\n *\n * An object-valued field — an address, a `{ from, to }` range — is never unfilled by this test, so it\n * keeps validating on blur. Deliberate: emptiness there is per-part and belongs to the control.\n */\nexport function isUnfilledFieldValue(value: unknown): boolean {\n if (value === undefined || value === null || value === '') return true;\n return Array.isArray(value) && value.length === 0;\n}\n\nexport interface UnstartedFieldVisitGate {\n /**\n * Call in place of react-hook-form's `field.onBlur`. Answers whether the blur was an UNSTARTED VISIT,\n * in which case the field was marked touched WITHOUT validating and the caller must not validate\n * either. Otherwise `field.onBlur` ran as usual and the caller proceeds with its own rules.\n */\n handleFieldBlur: (fieldOnBlur: () => void) => boolean;\n /** Record that the person entered something into this field. Call from the change handler. */\n noteInputReceived: () => void;\n}\n\n/**\n * A blur is not a verdict on a field the person never filled.\n *\n * Focus leaves an input for reasons that say nothing about intent: picking a browser autofill\n * suggestion (the case that surfaced this — Chrome's saved-email list on the sign-in field), switching\n * to a password manager, tabbing past a field on the way to another. Validating then reports\n * \"required\" / \"invalid format\" on a field the person has not started, and on autofill the error\n * flashes until the filled value re-validates it away.\n *\n * So a blur on a field that is EMPTY, has received NO input since it mounted and shows NO error yet\n * only records the visit. An empty required field is still reported at submit, which validates every\n * field regardless. Everything else is unchanged: a field holding a value is validated on blur, a\n * field the person typed into and then emptied is, and a field already in error keeps re-validating.\n *\n * Decided from practice rather than asked: Cloudscape's validation pattern — \"delay validation until\n * after a user has entered data, unless they are in the process of fixing validation errors\".\n * spec-cite: https://cloudscape.design/patterns/general/errors/validation/ — \"General\" timing guidance.\n * The rejected alternative, validating every blur (the same page's on-blur example includes empty\n * fields), is what produced the defect.\n *\n * ## Why this is a shared hook and not a rule inside `FormField`\n *\n * Under a blur-validating react-hook-form `mode` (`onBlur` or `onTouched`, which a form or a resource may declare; the\n * default is `onSubmit`, `Form.tsx`), RHF's OWN blur handler validates, and a field with a format validates on blur by\n * its own default.\n * Every site that hands a control `field.onBlur` therefore carries this decision, not just the one\n * that also calls `trigger`. `FormField` covers the ordinary fields; `AutomatedArrayField` renders its\n * multi-select and checkbox-group array fields through its own `Controller`s and needs the same gate.\n * A second hand-written copy is how one of the two drifts — see\n * `.claude/rules/invariant-call-site-enumeration.md`.\n *\n * Not RHF's `isDirty`, which compares the CURRENT value with the default: typing \"a\" and deleting it\n * returns to the default and reads as pristine, although the person did start the field.\n *\n * Known limits, each of which only ever makes validation LESS eager and never lets a value through —\n * submit, wizard Next, section save and autosave all validate independently:\n * - the record lives with the mounted field, so a remount resets it and `form.reset()` does not clear it;\n * - an ARRAY-valued field is not marked touched. RHF tracks touched per ELEMENT for array values, so an\n * empty array has nothing to mark and `touchedFields` stays empty. Nothing depends on it there — the\n * array controls show an error from the submitted state, not from touched — and refusing to judge is\n * the part that matters. Measured by the array pins.\n */\nexport function useUnstartedFieldVisit(fieldName: string): UnstartedFieldVisitGate {\n const formContext = useFormContext();\n const hasReceivedInputRef = useRef(false);\n\n const handleFieldBlur = useCallback(\n (fieldOnBlur: () => void): boolean => {\n const fieldState = formContext.getFieldState(fieldName);\n const currentValue = formContext.getValues(fieldName);\n const isUnstartedVisit = !fieldState.error && !hasReceivedInputRef.current && isUnfilledFieldValue(currentValue);\n\n if (isUnstartedVisit) {\n /*\n * The touch goes through `setValue` rather than `field.onBlur` because RHF's blur handler\n * validates under a blur mode: skipping only the caller's own `trigger` would leave that\n * second validation in place.\n */\n formContext.setValue(fieldName, currentValue, { shouldTouch: true, shouldDirty: false, shouldValidate: false });\n return true;\n }\n\n fieldOnBlur();\n return false;\n },\n [formContext, fieldName],\n );\n\n const noteInputReceived = useCallback(() => {\n hasReceivedInputRef.current = true;\n }, []);\n\n return { handleFieldBlur, noteInputReceived };\n}\n"]}
@@ -5,9 +5,9 @@
5
5
  * Both used to call `form.trigger(names)` and, when it failed, stop. Three things went wrong between those two lines:
6
6
  *
7
7
  * 1. **The errors stayed invisible.** A field shows a CLIENT error once it is touched or the form has been submitted
8
- * (`getFieldError`). In the default blur mode, the fields a person never visited are neither, so Save or Next did
8
+ * (`getFieldError`). Without a whole-form submit, the fields a person never visited are neither, so Save or Next did
9
9
  * nothing visible at all. The fields that failed are now marked touched, and the first one is scrolled to (and its
10
- * hidden panel shown, `field-reveal.ts`). A server error shows whatever the touch state, and its field is NOT
10
+ * hidden panel shown, `field-reveal.ts`), and the attempt is recorded so a missing value shows too (`save-attempt.ts`). A server error shows whatever the touch state, and its field is NOT
11
11
  * touched: touching writes the value back, and the server-error auto-clear reads any write as an edit.
12
12
  * 2. **A server's refusal was erased.** `trigger` re-runs the CLIENT schema at those names and replaces their errors,
13
13
  * so a uniqueness conflict or a rejection the server returned, which no client schema can know about, vanished,
@@ -1 +1 @@
1
- {"version":3,"file":"validate-fields-and-show-errors.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/validate-fields-and-show-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAc,WAAW,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AA+B9E;;;;GAIG;AACH,wBAAsB,2BAA2B,CAAC,OAAO,SAAS,WAAW,EAC3E,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAC5B,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,OAAO,CAAC,OAAO,CAAC,CAoBlB"}
1
+ {"version":3,"file":"validate-fields-and-show-errors.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/validation-errors/validate-fields-and-show-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAc,WAAW,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAgC9E;;;;GAIG;AACH,wBAAsB,2BAA2B,CAAC,OAAO,SAAS,WAAW,EAC3E,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAC5B,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,OAAO,CAAC,OAAO,CAAC,CAsBlB"}
@@ -1,5 +1,6 @@
1
1
  import { SERVER_ERROR_TYPE, UNIQUE_ERROR_TYPE } from '../form-context.js';
2
2
  import { scrollAndFocusFirstErroredField } from './scroll-to-first-error.utils.js';
3
+ import { recordSaveAttempt } from './save-attempt.js';
3
4
  /** Every error leaf under `node`, with its dotted path. A leaf carries a string `type` or `message`; `ref` is never walked. */
4
5
  function collectErrorLeaves(node, path, leaves) {
5
6
  if (!node || typeof node !== 'object')
@@ -39,6 +40,8 @@ export async function validateFieldsAndShowErrors(form, fieldNames) {
39
40
  return true;
40
41
  const leaves = erroredLeavesOf(form, fieldNames);
41
42
  const untypedForm = form;
43
+ // A Save or a Next is the person asking to save these fields: their missing values may show now (`getFieldError`).
44
+ recordSaveAttempt(form.control, fieldNames);
42
45
  const fieldArrayNames = fieldArrayNamesOf(untypedForm);
43
46
  for (const leaf of leaves) {
44
47
  if (isServerError(leaf.error) || fieldArrayNames.has(leaf.path))