@jini-ai/admin 0.7.2 → 0.7.3-next.1

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 (585) hide show
  1. package/CHANGELOG.md +4 -6
  2. package/dist/agent-plugins/agent-plugins.module.d.ts +1 -1
  3. package/dist/agent-plugins/agent-plugins.module.js +1 -1
  4. package/dist/agent-plugins/controllers/agent-plugin-files.controller.d.ts +3 -3
  5. package/dist/agent-plugins/controllers/agent-plugin-files.controller.js +1 -1
  6. package/dist/agent-plugins/controllers/agent-plugins.controller.d.ts +3 -3
  7. package/dist/agent-plugins/controllers/agent-plugins.controller.js +30 -27
  8. package/dist/agent-plugins/index.d.ts +11 -8
  9. package/dist/agent-plugins/index.js +7 -8
  10. package/dist/agent-plugins/models.d.ts +19 -11
  11. package/dist/agent-plugins/ports.d.ts +1 -1
  12. package/dist/agent-plugins/ports.js +1 -1
  13. package/dist/agent-plugins/react/components/AgentPluginFileContent.d.ts +4 -2
  14. package/dist/agent-plugins/react/components/AgentPluginFileContent.js +3 -3
  15. package/dist/agent-plugins/react/components/AgentPluginFileTree.d.ts +4 -2
  16. package/dist/agent-plugins/react/components/AgentPluginFileTree.js +2 -2
  17. package/dist/agent-plugins/react/components/AgentPluginInspector.d.ts +4 -2
  18. package/dist/agent-plugins/react/components/AgentPluginInspector.js +3 -3
  19. package/dist/agent-plugins/react/components/AgentPluginListPanel.d.ts +5 -3
  20. package/dist/agent-plugins/react/components/AgentPluginListPanel.js +3 -3
  21. package/dist/agent-plugins/react/components/AgentPluginRow.d.ts +3 -1
  22. package/dist/agent-plugins/react/components/AgentPluginRow.js +3 -3
  23. package/dist/agent-plugins/react/hooks/AgentPluginInspector.hooks.js +2 -2
  24. package/dist/agent-plugins/react/hooks/AgentPluginPanel.hooks.d.ts +6 -5
  25. package/dist/agent-plugins/react/hooks/AgentPluginRow.hooks.d.ts +5 -4
  26. package/dist/agent-plugins/react/hooks/AgentPluginsPage.hooks.d.ts +11 -7
  27. package/dist/agent-plugins/react/hooks/AgentPluginsPage.hooks.js +3 -3
  28. package/dist/agent-plugins/react/hooks/AgentPluginsPorts.hooks.d.ts +5 -0
  29. package/dist/agent-plugins/react/hooks/AgentPluginsPorts.hooks.js +11 -1
  30. package/dist/agent-plugins/react/hooks/MarketplaceTab.hooks.d.ts +1 -1
  31. package/dist/agent-plugins/react/index.d.ts +25 -71
  32. package/dist/agent-plugins/react/index.js +9 -6
  33. package/dist/agent-plugins/react/pages/AgentPluginsPage.d.ts +8 -2
  34. package/dist/agent-plugins/react/pages/AgentPluginsPage.js +3 -3
  35. package/dist/agent-plugins/react/tabs/DownloadedTab.d.ts +2 -2
  36. package/dist/agent-plugins/react/tabs/DownloadedTab.js +1 -1
  37. package/dist/agent-plugins/react/tabs/InstalledTab.d.ts +2 -2
  38. package/dist/agent-plugins/react/tabs/InstalledTab.js +1 -1
  39. package/dist/agent-plugins/react/tabs/MarketplaceTab.d.ts +5 -2
  40. package/dist/agent-plugins/react/tabs/MarketplaceTab.js +3 -3
  41. package/dist/browser/index.d.ts +2 -0
  42. package/dist/browser/index.js +2 -0
  43. package/dist/browser/react-root-errors.d.ts +19 -0
  44. package/dist/browser/react-root-errors.js +16 -0
  45. package/dist/comments/adapters/http.js +2 -3
  46. package/dist/comments/adapters/memory.d.ts +5 -3
  47. package/dist/comments/adapters/memory.js +5 -6
  48. package/dist/comments/comments.module.d.ts +3 -3
  49. package/dist/comments/comments.module.js +1 -1
  50. package/dist/comments/controllers/comment-queue.controller.d.ts +14 -12
  51. package/dist/comments/controllers/comment-queue.controller.js +154 -155
  52. package/dist/comments/controllers/comment-settings.controller.d.ts +4 -4
  53. package/dist/comments/controllers/comment-settings.controller.js +40 -39
  54. package/dist/comments/controllers/comments.controller.d.ts +4 -4
  55. package/dist/comments/controllers/comments.controller.js +1 -2
  56. package/dist/comments/ports.d.ts +3 -3
  57. package/dist/comments/ports.js +1 -1
  58. package/dist/comments/react/components/QueueActionsCell.d.ts +20 -0
  59. package/dist/comments/react/components/QueueActionsCell.js +15 -0
  60. package/dist/comments/react/components/QueueSection.d.ts +20 -9
  61. package/dist/comments/react/components/QueueSection.js +9 -20
  62. package/dist/comments/react/components/SettingsFields.d.ts +13 -0
  63. package/dist/comments/react/components/SettingsFields.js +17 -0
  64. package/dist/comments/react/components/SettingsSection.d.ts +4 -1
  65. package/dist/comments/react/components/SettingsSection.js +5 -10
  66. package/dist/comments/react/hooks/CommentsPage.hooks.js +1 -1
  67. package/dist/comments/react/hooks/CommentsPorts.hooks.d.ts +5 -0
  68. package/dist/comments/react/hooks/CommentsPorts.hooks.js +11 -1
  69. package/dist/comments/react/hooks/QueueActionsCell.hooks.d.ts +13 -0
  70. package/dist/comments/react/hooks/QueueActionsCell.hooks.js +7 -0
  71. package/dist/comments/react/hooks/QueueSection.hooks.d.ts +3 -11
  72. package/dist/comments/react/hooks/QueueSection.hooks.js +8 -11
  73. package/dist/comments/react/hooks/use-comment-queue.hooks.js +4 -4
  74. package/dist/comments/react/hooks/use-comment-settings.hooks.js +3 -3
  75. package/dist/comments/react/hooks/use-comments.hooks.js +3 -3
  76. package/dist/comments/react/index.d.ts +27 -89
  77. package/dist/comments/react/index.js +5 -6
  78. package/dist/comments/react/pages/CommentsPage.d.ts +4 -1
  79. package/dist/comments/react/pages/CommentsPage.js +2 -2
  80. package/dist/comments/rules.d.ts +1 -1
  81. package/dist/comments/rules.js +2 -3
  82. package/dist/contracts/credential-management.d.ts +1 -1
  83. package/dist/contracts/credential-management.js +1 -1
  84. package/dist/contracts/media-picker.d.ts +1 -1
  85. package/dist/contracts/media-picker.js +1 -1
  86. package/dist/contracts/playground-render-target.d.ts +1 -1
  87. package/dist/contracts/playground-render-target.js +1 -1
  88. package/dist/core/entities/rules.d.ts +8 -2
  89. package/dist/core/entities/rules.js +3 -3
  90. package/dist/core/index.d.ts +1 -2
  91. package/dist/core/index.js +1 -3
  92. package/dist/core/ledger-slice.d.ts +3 -3
  93. package/dist/core/ledger-slice.js +3 -3
  94. package/dist/core/manifest/rules.js +1 -1
  95. package/dist/core/manifest/types.d.ts +11 -0
  96. package/dist/core/module/create-admin.d.ts +1 -8
  97. package/dist/core/module/create-admin.js +4 -9
  98. package/dist/core/module/index.d.ts +1 -5
  99. package/dist/core/module/index.js +1 -3
  100. package/dist/core/ports/auth.d.ts +2 -2
  101. package/dist/core/ports/auth.js +1 -1
  102. package/dist/core/ports/comment-repo.d.ts +53 -0
  103. package/dist/core/ports/comment-repo.js +2 -0
  104. package/dist/core/ports/comments.d.ts +1 -1
  105. package/dist/core/ports/comments.js +1 -1
  106. package/dist/core/ports/database.d.ts +1 -1
  107. package/dist/core/ports/embed-policy.d.ts +19 -0
  108. package/dist/core/ports/embed-policy.js +2 -0
  109. package/dist/core/ports/entities.d.ts +14 -0
  110. package/dist/core/ports/forms-catalog.d.ts +27 -0
  111. package/dist/core/ports/forms-catalog.js +2 -0
  112. package/dist/core/ports/forms.d.ts +3 -3
  113. package/dist/core/ports/identity.d.ts +1 -1
  114. package/dist/core/ports/identity.js +1 -1
  115. package/dist/core/ports/index.d.ts +3 -0
  116. package/dist/core/ports/media.d.ts +1 -1
  117. package/dist/core/ports/plugins.d.ts +1 -1
  118. package/dist/core/react/bind-react.d.ts +6 -16
  119. package/dist/core/react/bind-react.js +1 -1
  120. package/dist/core/react/index.d.ts +3 -2
  121. package/dist/core/react/index.js +3 -2
  122. package/dist/core/react/module-ui.d.ts +10 -0
  123. package/dist/core/react/module-ui.js +6 -0
  124. package/dist/core/react/use-controller.d.ts +1 -1
  125. package/dist/core/react/use-controller.js +2 -1
  126. package/dist/core/routing/route-template.d.ts +11 -0
  127. package/dist/core/routing/route-template.js +23 -0
  128. package/dist/core/transport/http.js +7 -5
  129. package/dist/core/transport/index.d.ts +0 -1
  130. package/dist/core/transport/index.js +0 -1
  131. package/dist/forms/adapters/http.js +2 -2
  132. package/dist/forms/adapters/memory.d.ts +1 -1
  133. package/dist/forms/adapters/memory.js +35 -26
  134. package/dist/forms/controllers/draft-store.d.ts +4 -4
  135. package/dist/forms/controllers/draft-store.js +1 -1
  136. package/dist/forms/controllers/field-attributes-dialog.controller.d.ts +7 -8
  137. package/dist/forms/controllers/field-attributes-dialog.controller.js +8 -6
  138. package/dist/forms/controllers/form-editor.controller.d.ts +8 -5
  139. package/dist/forms/controllers/form-editor.controller.js +2 -2
  140. package/dist/forms/controllers/form-fields-editor.controller.d.ts +4 -4
  141. package/dist/forms/controllers/form-submission-detail.controller.d.ts +4 -4
  142. package/dist/forms/controllers/form-submissions.controller.d.ts +4 -4
  143. package/dist/forms/controllers/forms-list.controller.d.ts +4 -4
  144. package/dist/forms/field-settings.d.ts +32 -16
  145. package/dist/forms/field-settings.js +52 -41
  146. package/dist/forms/forms.module.d.ts +5 -4
  147. package/dist/forms/forms.module.js +3 -3
  148. package/dist/forms/html-rules.d.ts +4 -2
  149. package/dist/forms/html-rules.js +19 -19
  150. package/dist/forms/index.d.ts +6 -4
  151. package/dist/forms/index.js +3 -3
  152. package/dist/forms/messages.en.js +1 -1
  153. package/dist/forms/models.d.ts +1 -1
  154. package/dist/forms/ports.d.ts +8 -4
  155. package/dist/forms/ports.js +3 -1
  156. package/dist/forms/react/components/FieldAttributesDialog.d.ts +4 -1
  157. package/dist/forms/react/components/FieldAttributesDialog.js +6 -28
  158. package/dist/forms/react/components/FieldAttributesStyling.d.ts +26 -0
  159. package/dist/forms/react/components/FieldAttributesStyling.js +42 -0
  160. package/dist/forms/react/components/FieldSettingsRows.js +3 -4
  161. package/dist/forms/react/components/FieldSettingsSection.d.ts +4 -1
  162. package/dist/forms/react/components/FieldSettingsSection.js +3 -3
  163. package/dist/forms/react/components/FormEditorFieldsBody.d.ts +5 -2
  164. package/dist/forms/react/components/FormEditorFieldsBody.js +3 -3
  165. package/dist/forms/react/components/FormEditorFieldsBodyParts.js +1 -1
  166. package/dist/forms/react/components/FormEditorFieldsSlot.d.ts +6 -0
  167. package/dist/forms/react/components/FormEditorFieldsSlot.js +10 -0
  168. package/dist/forms/react/components/FormEditorHeader.d.ts +9 -0
  169. package/dist/forms/react/components/FormEditorHeader.js +16 -0
  170. package/dist/forms/react/components/FormEditorHeaderText.d.ts +1 -1
  171. package/dist/forms/react/components/FormEditorHeaderText.js +1 -1
  172. package/dist/forms/react/components/FormEditorMainPanel.d.ts +1 -1
  173. package/dist/forms/react/components/FormEditorMainPanel.js +4 -4
  174. package/dist/forms/react/components/FormEditorTabStrip.d.ts +5 -2
  175. package/dist/forms/react/components/FormEditorTabStrip.js +3 -4
  176. package/dist/forms/react/components/FormFieldRow.d.ts +10 -0
  177. package/dist/forms/react/components/FormFieldRow.js +53 -0
  178. package/dist/forms/react/components/FormFieldsEditor.d.ts +4 -1
  179. package/dist/forms/react/components/FormFieldsEditor.js +6 -22
  180. package/dist/forms/react/components/FormFieldsTableParts.d.ts +10 -0
  181. package/dist/forms/react/components/FormFieldsTableParts.js +11 -0
  182. package/dist/forms/react/components/FormSubmissionDate.d.ts +1 -1
  183. package/dist/forms/react/components/FormSubmissionDate.js +1 -1
  184. package/dist/forms/react/components/FormSubmissionDetail.d.ts +4 -1
  185. package/dist/forms/react/components/FormSubmissionDetail.js +3 -3
  186. package/dist/forms/react/components/FormSubmissions.d.ts +6 -1
  187. package/dist/forms/react/components/FormSubmissions.js +3 -3
  188. package/dist/forms/react/components/FormSubmissionsTable.js +1 -1
  189. package/dist/forms/react/components/FormsListParts.d.ts +36 -0
  190. package/dist/forms/react/components/FormsListParts.js +41 -0
  191. package/dist/forms/react/hooks/FormsPorts.hooks.d.ts +7 -1
  192. package/dist/forms/react/hooks/FormsPorts.hooks.js +11 -1
  193. package/dist/forms/react/hooks/forms-view.hooks.d.ts +17 -11
  194. package/dist/forms/react/hooks/forms-view.hooks.js +13 -11
  195. package/dist/forms/react/hooks/use-field-attributes-dialog.hooks.d.ts +4 -1
  196. package/dist/forms/react/hooks/use-field-attributes-dialog.hooks.js +6 -4
  197. package/dist/forms/react/hooks/use-form-editor-parts.hooks.d.ts +127 -0
  198. package/dist/forms/react/hooks/use-form-editor-parts.hooks.js +223 -0
  199. package/dist/forms/react/hooks/use-form-editor.hooks.d.ts +13 -3
  200. package/dist/forms/react/hooks/use-form-editor.hooks.js +34 -210
  201. package/dist/forms/react/hooks/use-form-fields-editor.hooks.js +2 -2
  202. package/dist/forms/react/hooks/use-form-submission-detail.hooks.d.ts +2 -2
  203. package/dist/forms/react/hooks/use-form-submission-detail.hooks.js +4 -4
  204. package/dist/forms/react/hooks/use-form-submissions.hooks.d.ts +2 -2
  205. package/dist/forms/react/hooks/use-form-submissions.hooks.js +4 -5
  206. package/dist/forms/react/hooks/use-forms-list.hooks.js +3 -3
  207. package/dist/forms/react/index.d.ts +35 -26
  208. package/dist/forms/react/index.js +5 -6
  209. package/dist/forms/react/pages/FormEditor.d.ts +2 -2
  210. package/dist/forms/react/pages/FormEditor.js +7 -12
  211. package/dist/forms/react/pages/FormsList.d.ts +5 -2
  212. package/dist/forms/react/pages/FormsList.js +4 -30
  213. package/dist/forms/rules.d.ts +5 -5
  214. package/dist/forms/rules.js +8 -20
  215. package/dist/media/adapters/http.d.ts +24 -2
  216. package/dist/media/adapters/http.js +133 -10
  217. package/dist/media/adapters/memory.js +41 -46
  218. package/dist/media/conformance/media-api.conformance.js +60 -42
  219. package/dist/media/controllers/edit-media.controller.d.ts +5 -5
  220. package/dist/media/controllers/edit-media.controller.js +20 -17
  221. package/dist/media/controllers/library.controller.d.ts +14 -14
  222. package/dist/media/controllers/library.controller.js +180 -167
  223. package/dist/media/controllers/providers.controller.d.ts +4 -4
  224. package/dist/media/controllers/providers.controller.js +46 -40
  225. package/dist/media/html-attributes.d.ts +23 -13
  226. package/dist/media/html-attributes.js +15 -23
  227. package/dist/media/index.d.ts +5 -4
  228. package/dist/media/index.js +3 -3
  229. package/dist/media/media.module.d.ts +6 -5
  230. package/dist/media/media.module.js +3 -3
  231. package/dist/media/ports.d.ts +8 -3
  232. package/dist/media/ports.js +4 -1
  233. package/dist/media/react/components/EditMediaPanel.d.ts +4 -1
  234. package/dist/media/react/components/EditMediaPanel.js +3 -3
  235. package/dist/media/react/components/MediaCard.d.ts +7 -2
  236. package/dist/media/react/components/MediaCard.js +6 -6
  237. package/dist/media/react/components/MediaDialog.d.ts +4 -1
  238. package/dist/media/react/components/MediaDialog.js +3 -3
  239. package/dist/media/react/components/MediaGrid.d.ts +4 -1
  240. package/dist/media/react/components/MediaGrid.js +2 -2
  241. package/dist/media/react/components/MediaIcons.d.ts +9 -9
  242. package/dist/media/react/components/MediaIcons.js +9 -9
  243. package/dist/media/react/components/MediaLightbox.d.ts +4 -1
  244. package/dist/media/react/components/MediaLightbox.js +3 -3
  245. package/dist/media/react/components/MediaPicker.d.ts +4 -1
  246. package/dist/media/react/components/MediaPicker.js +3 -3
  247. package/dist/media/react/components/MediaPurgeDialog.d.ts +4 -1
  248. package/dist/media/react/components/MediaPurgeDialog.js +3 -3
  249. package/dist/media/react/components/UploadButton.d.ts +4 -1
  250. package/dist/media/react/components/UploadButton.js +3 -3
  251. package/dist/media/react/hooks/EditMediaPanel.hooks.d.ts +6 -3
  252. package/dist/media/react/hooks/EditMediaPanel.hooks.js +62 -50
  253. package/dist/media/react/hooks/LibraryTab.hooks.d.ts +23 -23
  254. package/dist/media/react/hooks/LibraryTab.hooks.js +52 -36
  255. package/dist/media/react/hooks/MediaCard.hooks.d.ts +1 -1
  256. package/dist/media/react/hooks/MediaCard.hooks.js +2 -1
  257. package/dist/media/react/hooks/MediaDialog.hooks.d.ts +1 -1
  258. package/dist/media/react/hooks/MediaPage.hooks.d.ts +22 -18
  259. package/dist/media/react/hooks/MediaPage.hooks.js +3 -3
  260. package/dist/media/react/hooks/MediaPicker.hooks.d.ts +1 -1
  261. package/dist/media/react/hooks/MediaPicker.hooks.js +2 -2
  262. package/dist/media/react/hooks/MediaPorts.hooks.d.ts +7 -0
  263. package/dist/media/react/hooks/MediaPorts.hooks.js +11 -1
  264. package/dist/media/react/hooks/MediaQuery.hooks.d.ts +3 -3
  265. package/dist/media/react/hooks/MediaQuery.hooks.js +1 -1
  266. package/dist/media/react/hooks/ProvidersTab.hooks.d.ts +7 -1
  267. package/dist/media/react/hooks/ProvidersTab.hooks.js +49 -46
  268. package/dist/media/react/index.d.ts +39 -114
  269. package/dist/media/react/index.js +55 -48
  270. package/dist/media/react/pages/MediaPage.d.ts +4 -1
  271. package/dist/media/react/pages/MediaPage.js +2 -2
  272. package/dist/media/react/tabs/LibraryTab.d.ts +5 -2
  273. package/dist/media/react/tabs/LibraryTab.js +3 -3
  274. package/dist/media/react/tabs/ProvidersTab.d.ts +5 -2
  275. package/dist/media/react/tabs/ProvidersTab.js +2 -2
  276. package/dist/media/rules.d.ts +0 -7
  277. package/dist/media/rules.js +0 -12
  278. package/dist/playground/controllers/playground.controller.d.ts +3 -3
  279. package/dist/playground/controllers/playground.controller.js +1 -1
  280. package/dist/playground/playground.module.d.ts +1 -1
  281. package/dist/playground/playground.module.js +1 -1
  282. package/dist/playground/react/components/Canvas.d.ts +5 -2
  283. package/dist/playground/react/components/Canvas.js +3 -3
  284. package/dist/playground/react/hooks/Canvas.hooks.d.ts +1 -1
  285. package/dist/playground/react/hooks/PlaygroundPage.hooks.d.ts +7 -3
  286. package/dist/playground/react/hooks/PlaygroundPorts.hooks.js +1 -1
  287. package/dist/playground/react/index.d.ts +9 -9
  288. package/dist/playground/react/pages/PlaygroundPage.d.ts +8 -2
  289. package/dist/playground/react/pages/PlaygroundPage.js +3 -3
  290. package/dist/playground/react/tabs/CanvasTab.d.ts +2 -2
  291. package/dist/playground/react/tabs/CanvasTab.js +1 -1
  292. package/dist/react/OverlayHost.d.ts +4 -1
  293. package/dist/react/OverlayHost.js +2 -2
  294. package/dist/react/components/ConfirmDialog/ConfirmDialog.d.ts +12 -2
  295. package/dist/react/components/ConfirmDialog/ConfirmDialog.hooks.js +1 -2
  296. package/dist/react/components/ConfirmDialog/ConfirmDialog.js +6 -4
  297. package/dist/react/components/ConfirmDialog/confirm-dialog-attrs.d.ts +1 -1
  298. package/dist/react/components/ConfirmDialog/confirm-dialog-attrs.js +1 -1
  299. package/dist/react/components/InteractiveHtmlEditor/InteractiveHtmlEditor.d.ts +2 -2
  300. package/dist/react/components/InteractiveHtmlEditor/InteractiveHtmlEditor.js +9 -8
  301. package/dist/react/components/RowMenu/RowMenu.hooks.js +66 -63
  302. package/dist/react/components/RowMenu/RowMenu.js +1 -1
  303. package/dist/react/components/Sidebar.d.ts +11 -4
  304. package/dist/react/components/Sidebar.js +11 -101
  305. package/dist/react/components/SidebarIcon.d.ts +4 -0
  306. package/dist/react/components/SidebarIcon.js +91 -0
  307. package/dist/react/components/ThemePreviewReloadControl.d.ts +7 -0
  308. package/dist/react/components/ThemePreviewReloadControl.js +5 -0
  309. package/dist/react/entities/EntityDetail.d.ts +4 -1
  310. package/dist/react/entities/EntityDetail.hooks.d.ts +14 -0
  311. package/dist/react/entities/EntityDetail.hooks.js +10 -0
  312. package/dist/react/entities/EntityDetail.js +3 -6
  313. package/dist/react/entities/EntityEdit.d.ts +6 -1
  314. package/dist/react/entities/EntityEdit.js +23 -6
  315. package/dist/react/entities/EntityField.d.ts +3 -1
  316. package/dist/react/entities/EntityField.js +9 -6
  317. package/dist/react/entities/EntityList.d.ts +4 -1
  318. package/dist/react/entities/EntityList.hooks.d.ts +33 -0
  319. package/dist/react/entities/EntityList.hooks.js +28 -0
  320. package/dist/react/entities/EntityList.js +3 -23
  321. package/dist/react/entities/FailureNotice.d.ts +29 -0
  322. package/dist/react/entities/FailureNotice.js +33 -0
  323. package/dist/react/entities/contribution.d.ts +2 -0
  324. package/dist/react/entities/contribution.js +2 -2
  325. package/dist/react/entities/rules.d.ts +6 -1
  326. package/dist/react/entities/rules.js +7 -4
  327. package/dist/react/entities/types.d.ts +19 -0
  328. package/dist/react/entities/use-entity-edit.d.ts +11 -2
  329. package/dist/react/entities/use-entity-edit.js +18 -12
  330. package/dist/react/entities/use-entity-read.d.ts +7 -2
  331. package/dist/react/entities/use-entity-read.js +9 -4
  332. package/dist/react/hooks/use-browser-telemetry-feed.d.ts +13 -0
  333. package/dist/react/hooks/use-browser-telemetry-feed.js +14 -0
  334. package/dist/react/hooks/use-overflow-title.d.ts +17 -0
  335. package/dist/react/hooks/use-overflow-title.js +29 -0
  336. package/dist/react/hooks/use-process-restart.d.ts +46 -0
  337. package/dist/react/hooks/use-process-restart.js +59 -0
  338. package/dist/react/hooks/use-rail-label-titles.d.ts +18 -0
  339. package/dist/react/hooks/use-rail-label-titles.js +44 -0
  340. package/dist/react/index.d.ts +6 -0
  341. package/dist/react/index.js +5 -0
  342. package/dist/react/kit-media-providers.d.ts +187 -0
  343. package/dist/react/kit-media-providers.js +2 -0
  344. package/dist/react/kit.d.ts +478 -0
  345. package/dist/react/kit.js +75 -0
  346. package/dist/react/overlays.d.ts +4 -4
  347. package/dist/react/overlays.js +1 -1
  348. package/dist/react/shell/AdminShell.d.ts +2 -2
  349. package/dist/react/shell/AdminShell.js +56 -24
  350. package/dist/react/shell/index.d.ts +1 -1
  351. package/dist/react/shell/model.d.ts +9 -1
  352. package/dist/react/shell/model.js +31 -15
  353. package/dist/react/shell/shell-hooks.d.ts +34 -0
  354. package/dist/react/shell/shell-hooks.js +31 -0
  355. package/dist/react/shell/theme-ports.d.ts +1 -1
  356. package/dist/react/shell/types.d.ts +97 -3
  357. package/dist/react/shell/use-admin-theme.d.ts +4 -2
  358. package/dist/react/shell/use-admin-theme.js +4 -3
  359. package/dist/react/testing-kit-media-providers.d.ts +3 -0
  360. package/dist/react/testing-kit-media-providers.js +96 -0
  361. package/dist/react/testing-kit.d.ts +11 -0
  362. package/dist/react/testing-kit.js +114 -0
  363. package/dist/redirects/adapters/memory.js +42 -33
  364. package/dist/redirects/conformance/redirects-api.conformance.js +1 -1
  365. package/dist/redirects/controllers/hit-count.controller.d.ts +5 -5
  366. package/dist/redirects/controllers/hit-count.controller.js +1 -1
  367. package/dist/redirects/controllers/import-redirects.controller.d.ts +5 -5
  368. package/dist/redirects/controllers/import-redirects.controller.js +1 -1
  369. package/dist/redirects/controllers/redirects.controller.d.ts +5 -5
  370. package/dist/redirects/controllers/redirects.controller.js +1 -1
  371. package/dist/redirects/index.d.ts +11 -7
  372. package/dist/redirects/index.js +6 -7
  373. package/dist/redirects/ports.d.ts +2 -2
  374. package/dist/redirects/ports.js +1 -1
  375. package/dist/redirects/react/components/CreateRedirectForm.d.ts +17 -0
  376. package/dist/redirects/react/components/CreateRedirectForm.js +19 -0
  377. package/dist/redirects/react/components/HitCountCell.js +2 -2
  378. package/dist/redirects/react/components/ImportRedirectsForm.js +1 -1
  379. package/dist/redirects/react/hooks/RedirectsPage.hooks.d.ts +1 -1
  380. package/dist/redirects/react/hooks/RedirectsPorts.hooks.d.ts +5 -0
  381. package/dist/redirects/react/hooks/RedirectsPorts.hooks.js +11 -1
  382. package/dist/redirects/react/hooks/use-hit-count-cell.hooks.js +3 -3
  383. package/dist/redirects/react/hooks/use-import-redirects-form.hooks.js +4 -4
  384. package/dist/redirects/react/hooks/use-redirects.hooks.d.ts +1 -1
  385. package/dist/redirects/react/hooks/use-redirects.hooks.js +4 -4
  386. package/dist/redirects/react/hooks/wired.hooks.d.ts +1 -1
  387. package/dist/redirects/react/index.d.ts +25 -90
  388. package/dist/redirects/react/index.js +6 -7
  389. package/dist/redirects/react/pages/RedirectsPage.d.ts +3 -1
  390. package/dist/redirects/react/pages/RedirectsPage.js +5 -5
  391. package/dist/redirects/redirects.module.d.ts +2 -2
  392. package/dist/redirects/redirects.module.js +1 -1
  393. package/dist/security/controllers/access-tokens.controller.d.ts +4 -4
  394. package/dist/security/controllers/access-tokens.controller.js +20 -15
  395. package/dist/security/controllers/other-credentials.controller.d.ts +4 -4
  396. package/dist/security/controllers/other-credentials.controller.js +1 -1
  397. package/dist/security/controllers/root-key.controller.d.ts +4 -4
  398. package/dist/security/controllers/root-key.controller.js +1 -1
  399. package/dist/security/ports.d.ts +3 -3
  400. package/dist/security/ports.js +1 -1
  401. package/dist/security/react/components/CredentialEditor.d.ts +4 -2
  402. package/dist/security/react/components/CredentialEditor.js +3 -3
  403. package/dist/security/react/hooks/AccessTokensTab.hooks.d.ts +5 -5
  404. package/dist/security/react/hooks/RootKeyTab.hooks.d.ts +1 -1
  405. package/dist/security/react/hooks/SecurityPage.hooks.d.ts +7 -3
  406. package/dist/security/react/hooks/SecurityPorts.hooks.js +1 -1
  407. package/dist/security/react/index.d.ts +22 -22
  408. package/dist/security/react/pages/SecurityPage.d.ts +8 -2
  409. package/dist/security/react/pages/SecurityPage.js +3 -3
  410. package/dist/security/react/tabs/AccessTokensTab.d.ts +5 -2
  411. package/dist/security/react/tabs/AccessTokensTab.js +3 -3
  412. package/dist/security/react/tabs/RootKeyTab.d.ts +5 -2
  413. package/dist/security/react/tabs/RootKeyTab.js +3 -3
  414. package/dist/security/rules.d.ts +1 -1
  415. package/dist/security/security.module.d.ts +4 -4
  416. package/dist/security/security.module.js +1 -1
  417. package/dist/seo/controllers/entry-picker.controller.d.ts +7 -7
  418. package/dist/seo/controllers/entry-picker.controller.js +1 -1
  419. package/dist/seo/controllers/entry-section.controller.d.ts +9 -9
  420. package/dist/seo/controllers/entry-section.controller.js +1 -1
  421. package/dist/seo/controllers/media-ref.controller.d.ts +9 -9
  422. package/dist/seo/controllers/media-ref.controller.js +1 -1
  423. package/dist/seo/controllers/seo-entry.controller.d.ts +7 -7
  424. package/dist/seo/controllers/seo-entry.controller.js +1 -1
  425. package/dist/seo/controllers/seo.controller.d.ts +7 -7
  426. package/dist/seo/controllers/seo.controller.js +1 -1
  427. package/dist/seo/controllers/sitemap.controller.d.ts +7 -7
  428. package/dist/seo/controllers/sitemap.controller.js +2 -2
  429. package/dist/seo/index.d.ts +4 -2
  430. package/dist/seo/index.js +2 -2
  431. package/dist/seo/ports.d.ts +2 -2
  432. package/dist/seo/ports.js +1 -1
  433. package/dist/seo/react/components/AnalyzePanel.d.ts +13 -0
  434. package/dist/seo/react/components/AnalyzePanel.js +21 -0
  435. package/dist/seo/react/components/EntryPicker.d.ts +19 -0
  436. package/dist/seo/react/components/EntryPicker.js +25 -0
  437. package/dist/seo/react/components/MediaPickerBridge.d.ts +4 -1
  438. package/dist/seo/react/components/MediaPickerBridge.js +2 -2
  439. package/dist/seo/react/components/MediaRefField.d.ts +5 -2
  440. package/dist/seo/react/components/MediaRefField.js +5 -5
  441. package/dist/seo/react/components/SeoEntryFields.d.ts +19 -0
  442. package/dist/seo/react/components/SeoEntryFields.js +19 -0
  443. package/dist/seo/react/components/SeoEntryPanel.d.ts +31 -0
  444. package/dist/seo/react/components/SeoEntryPanel.js +64 -0
  445. package/dist/seo/react/components/SeoIcons.d.ts +3 -3
  446. package/dist/seo/react/components/SeoIcons.js +3 -3
  447. package/dist/seo/react/components/SeoSection.d.ts +27 -0
  448. package/dist/seo/react/components/SeoSection.js +24 -0
  449. package/dist/seo/react/components/SitemapModal.d.ts +42 -2
  450. package/dist/seo/react/components/SitemapModal.js +17 -17
  451. package/dist/seo/react/hooks/MediaRefField.hooks.js +6 -6
  452. package/dist/seo/react/hooks/SeoModuleTabs.d.ts +2 -2
  453. package/dist/seo/react/hooks/SeoModuleTabs.js +3 -1
  454. package/dist/seo/react/hooks/SeoPage.hooks.d.ts +2 -2
  455. package/dist/seo/react/hooks/SeoPorts.hooks.d.ts +5 -0
  456. package/dist/seo/react/hooks/SeoPorts.hooks.js +11 -1
  457. package/dist/seo/react/hooks/SeoQuery.hooks.d.ts +3 -3
  458. package/dist/seo/react/hooks/SeoQuery.hooks.js +1 -1
  459. package/dist/seo/react/hooks/SitemapModal.hooks.js +1 -1
  460. package/dist/seo/react/hooks/use-entry-picker.hooks.js +1 -1
  461. package/dist/seo/react/hooks/use-seo-entry-panel.hooks.js +3 -3
  462. package/dist/seo/react/hooks/use-seo-entry-section.hooks.js +2 -2
  463. package/dist/seo/react/hooks/use-seo.hooks.js +3 -3
  464. package/dist/seo/react/hooks/use-share-image-warning.hooks.js +1 -1
  465. package/dist/seo/react/hooks/use-sitemap-modal.hooks.d.ts +4 -1
  466. package/dist/seo/react/hooks/use-sitemap-modal.hooks.js +6 -5
  467. package/dist/seo/react/index.d.ts +28 -21
  468. package/dist/seo/react/index.js +5 -6
  469. package/dist/seo/react/pages/SeoPage.d.ts +16 -82
  470. package/dist/seo/react/pages/SeoPage.js +29 -216
  471. package/dist/seo/react/tabs/SeoDefaultsSections.d.ts +19 -0
  472. package/dist/seo/react/tabs/SeoDefaultsSections.js +48 -0
  473. package/dist/seo/react/tabs/SeoDefaultsTab.d.ts +24 -0
  474. package/dist/seo/react/tabs/SeoDefaultsTab.js +30 -0
  475. package/dist/seo/react/tabs/SeoSitemapTab.d.ts +24 -0
  476. package/dist/seo/react/tabs/SeoSitemapTab.js +38 -0
  477. package/dist/seo/rules.d.ts +3 -3
  478. package/dist/seo/rules.js +6 -6
  479. package/dist/seo/seo.module.d.ts +3 -3
  480. package/dist/seo/seo.module.js +1 -1
  481. package/dist/source-control/controllers/source-control.controller.d.ts +3 -3
  482. package/dist/source-control/controllers/source-control.controller.js +1 -1
  483. package/dist/source-control/ports.d.ts +1 -1
  484. package/dist/source-control/ports.js +1 -1
  485. package/dist/source-control/react/components/SourceControlCredentialFields.d.ts +4 -2
  486. package/dist/source-control/react/components/SourceControlCredentialFields.js +3 -3
  487. package/dist/source-control/react/components/SourceControlProviderRow.d.ts +1 -1
  488. package/dist/source-control/react/components/SourceControlProviderRow.js +2 -2
  489. package/dist/source-control/react/hooks/ProvidersTab.hooks.d.ts +1 -1
  490. package/dist/source-control/react/hooks/ProvidersTab.hooks.js +2 -2
  491. package/dist/source-control/react/hooks/SourceControlPage.hooks.d.ts +7 -3
  492. package/dist/source-control/react/hooks/SourceControlPorts.hooks.d.ts +5 -0
  493. package/dist/source-control/react/hooks/SourceControlPorts.hooks.js +11 -1
  494. package/dist/source-control/react/index.d.ts +25 -50
  495. package/dist/source-control/react/index.js +9 -6
  496. package/dist/source-control/react/pages/SourceControlPage.d.ts +8 -2
  497. package/dist/source-control/react/pages/SourceControlPage.js +3 -3
  498. package/dist/source-control/react/tabs/ProvidersTab.d.ts +5 -2
  499. package/dist/source-control/react/tabs/ProvidersTab.js +3 -3
  500. package/dist/source-control/source-control.module.d.ts +2 -2
  501. package/dist/source-control/source-control.module.js +1 -1
  502. package/dist/widgets/adapters/http.js +2 -2
  503. package/dist/widgets/adapters/memory.js +26 -20
  504. package/dist/widgets/controllers/instance-editor.controller.d.ts +3 -3
  505. package/dist/widgets/controllers/instance-editor.controller.js +48 -38
  506. package/dist/widgets/controllers/library.controller.d.ts +3 -3
  507. package/dist/widgets/controllers/library.controller.js +1 -2
  508. package/dist/widgets/controllers/region-editor.controller.d.ts +3 -3
  509. package/dist/widgets/controllers/region-editor.controller.js +5 -5
  510. package/dist/widgets/controllers/regions.controller.d.ts +3 -3
  511. package/dist/widgets/controllers/regions.controller.js +1 -2
  512. package/dist/widgets/index.d.ts +2 -1
  513. package/dist/widgets/index.js +1 -1
  514. package/dist/widgets/messages.en.js +1 -1
  515. package/dist/widgets/ports.d.ts +3 -3
  516. package/dist/widgets/ports.js +1 -1
  517. package/dist/widgets/react/components/RegionPlacementRow.d.ts +14 -0
  518. package/dist/widgets/react/components/RegionPlacementRow.js +8 -0
  519. package/dist/widgets/react/components/TrashWidgetDialog.d.ts +11 -0
  520. package/dist/widgets/react/components/TrashWidgetDialog.js +8 -0
  521. package/dist/widgets/react/components/WidgetInstanceNotices.js +1 -1
  522. package/dist/widgets/react/components/WidgetPageHeaders.d.ts +42 -0
  523. package/dist/widgets/react/components/WidgetPageHeaders.js +54 -0
  524. package/dist/widgets/react/components/WidgetRegionEditorHeaderActions.js +1 -1
  525. package/dist/widgets/react/components/WidgetTableColumns.d.ts +12 -0
  526. package/dist/widgets/react/components/WidgetTableColumns.js +47 -0
  527. package/dist/widgets/react/hooks/WidgetsPorts.hooks.d.ts +12 -7
  528. package/dist/widgets/react/hooks/WidgetsPorts.hooks.js +11 -0
  529. package/dist/widgets/react/hooks/WidgetsQuery.hooks.d.ts +2 -2
  530. package/dist/widgets/react/hooks/WidgetsQuery.hooks.js +1 -1
  531. package/dist/widgets/react/hooks/page-views.hooks.d.ts +1 -1
  532. package/dist/widgets/react/hooks/page-views.hooks.js +1 -1
  533. package/dist/widgets/react/hooks/use-widget-instance-editor.hooks.d.ts +2 -2
  534. package/dist/widgets/react/hooks/use-widget-instance-editor.hooks.js +3 -3
  535. package/dist/widgets/react/hooks/use-widget-region-editor.hooks.d.ts +1 -1
  536. package/dist/widgets/react/hooks/use-widget-region-editor.hooks.js +2 -2
  537. package/dist/widgets/react/hooks/use-widget-regions.hooks.d.ts +3 -1
  538. package/dist/widgets/react/hooks/use-widget-regions.hooks.js +7 -6
  539. package/dist/widgets/react/hooks/use-widgets-library.hooks.d.ts +4 -2
  540. package/dist/widgets/react/hooks/use-widgets-library.hooks.js +7 -6
  541. package/dist/widgets/react/index.d.ts +41 -34
  542. package/dist/widgets/react/index.js +5 -6
  543. package/dist/widgets/react/pages/WidgetInstanceEditor.d.ts +5 -1
  544. package/dist/widgets/react/pages/WidgetInstanceEditor.js +7 -9
  545. package/dist/widgets/react/pages/WidgetRegionEditor.d.ts +5 -1
  546. package/dist/widgets/react/pages/WidgetRegionEditor.js +8 -10
  547. package/dist/widgets/react/pages/WidgetRegions.d.ts +5 -1
  548. package/dist/widgets/react/pages/WidgetRegions.js +6 -8
  549. package/dist/widgets/react/pages/WidgetsLibrary.d.ts +5 -1
  550. package/dist/widgets/react/pages/WidgetsLibrary.js +8 -45
  551. package/dist/widgets/rules.d.ts +5 -3
  552. package/dist/widgets/rules.js +4 -9
  553. package/dist/widgets/widgets.module.d.ts +3 -3
  554. package/dist/widgets/widgets.module.js +1 -1
  555. package/package.json +23 -57
  556. package/dist/consent/react/ConsentFields.d.ts +0 -39
  557. package/dist/consent/react/ConsentFields.js +0 -87
  558. package/dist/consent/react/ConsentPreviewFrame.d.ts +0 -14
  559. package/dist/consent/react/ConsentPreviewFrame.js +0 -14
  560. package/dist/consent/react/ConsentSettingsPanel.d.ts +0 -54
  561. package/dist/consent/react/ConsentSettingsPanel.js +0 -13
  562. package/dist/consent/react/index.d.ts +0 -8
  563. package/dist/consent/react/index.js +0 -4
  564. package/dist/consent/react/settings-panel.hooks.d.ts +0 -49
  565. package/dist/consent/react/settings-panel.hooks.js +0 -57
  566. package/dist/core/module/controller-store.d.ts +0 -22
  567. package/dist/core/module/controller-store.js +0 -32
  568. package/dist/core/module/define-admin-module.d.ts +0 -4
  569. package/dist/core/module/define-admin-module.js +0 -5
  570. package/dist/core/module/token.d.ts +0 -19
  571. package/dist/core/module/token.js +0 -4
  572. package/dist/core/module/types.d.ts +0 -79
  573. package/dist/core/module/types.js +0 -2
  574. package/dist/core/permissions/rules.d.ts +0 -35
  575. package/dist/core/permissions/rules.js +0 -34
  576. package/dist/core/transport/errors.d.ts +0 -62
  577. package/dist/core/transport/errors.js +0 -63
  578. package/dist/core/transport/query-suffix.d.ts +0 -3
  579. package/dist/core/transport/query-suffix.js +0 -5
  580. package/dist/media/styles.d.ts +0 -4
  581. package/dist/media/styles.js +0 -5
  582. package/dist/react/bind-react.d.ts +0 -2
  583. package/dist/react/bind-react.js +0 -3
  584. package/dist/react/use-controller.d.ts +0 -2
  585. package/dist/react/use-controller.js +0 -3
@@ -1,9 +1,12 @@
1
1
  import type { AdminFormField } from '../../models.js';
2
+ import { useFieldSettingsView } from '../hooks/forms-view.hooks.js';
2
3
  import type { FieldAttributesDialogController } from '../hooks/use-field-attributes-dialog.hooks.js';
3
4
  export interface FieldSettingsSectionProps {
4
5
  field: AdminFormField;
5
6
  controller: FieldAttributesDialogController;
6
7
  t: (key: string) => string;
8
+ /** Dependency injection seam for tests; defaulted to the real hook. */
9
+ useFieldSettingsViewHook?: typeof useFieldSettingsView;
7
10
  }
8
11
  /**
9
12
  * The settings half of the field dialog: one label-beside-control row per setting the field's
@@ -15,5 +18,5 @@ export interface FieldSettingsSectionProps {
15
18
  * placeholder (slider, file…) focused the Help text ⓘ, whose tip opened half behind the dialog
16
19
  * (Chrome check, 2026-10-11). Focus must land on an input, never on an ⓘ.
17
20
  */
18
- export declare function FieldSettingsSection({ field, controller, t }: FieldSettingsSectionProps): import("react").JSX.Element;
21
+ export declare function FieldSettingsSection({ field, controller, t, useFieldSettingsViewHook }: FieldSettingsSectionProps): import("react").JSX.Element;
19
22
  //# sourceMappingURL=FieldSettingsSection.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { agentHandle } from '@jini-ai/agentic';
2
+ import { agentHandle } from '@jini-ai/core/agent-handles';
3
3
  import { useFieldSettingsView } from '../hooks/forms-view.hooks.js';
4
4
  import { FieldSettingsDefaultRows, FieldSettingsLimitRows, FieldSettingsOptionsRow, FieldSettingsTextRows, FieldSettingsUploadRows } from './FieldSettingsRows.js';
5
5
  /**
@@ -12,8 +12,8 @@ import { FieldSettingsDefaultRows, FieldSettingsLimitRows, FieldSettingsOptionsR
12
12
  * placeholder (slider, file…) focused the Help text ⓘ, whose tip opened half behind the dialog
13
13
  * (Chrome check, 2026-10-11). Focus must land on an input, never on an ⓘ.
14
14
  */
15
- export function FieldSettingsSection({ field, controller, t }) {
16
- const view = useFieldSettingsView({ field, controller, t });
15
+ export function FieldSettingsSection({ field, controller, t, useFieldSettingsViewHook = useFieldSettingsView }) {
16
+ const view = useFieldSettingsViewHook({ field, controller, t });
17
17
  const { settings } = view;
18
18
  return (_jsxs("div", { className: "field-settings", ...agentHandle({ handle: 'form-field-settings' }, { role: 'region', label: "This field's type-specific settings" }), children: [_jsx(FieldSettingsTextRows, { view: view, t: t }), settings.options ? _jsx(FieldSettingsOptionsRow, { view: view, t: t }) : null, _jsx(FieldSettingsDefaultRows, { view: view, t: t }), _jsx(FieldSettingsLimitRows, { view: view, t: t }), settings.upload ? _jsx(FieldSettingsUploadRows, { view: view, t: t }) : null] }));
19
19
  }
@@ -1,5 +1,6 @@
1
- import type { FormProviderDescription } from "@jini-ai/cms/forms";
1
+ import type { FormProviderDescription } from "@jini-ai/core/contracts/forms";
2
2
  import type { AdminFormProviderSelection } from "../../../core/ports/forms.js";
3
+ import { useFormFieldsBodyView } from "../hooks/forms-view.hooks.js";
3
4
  import type { AdminFormDefinition, AdminFormField } from '../../models.js';
4
5
  export interface FormEditorFieldsBodyProps {
5
6
  providers?: readonly FormProviderDescription[] | undefined;
@@ -26,11 +27,13 @@ export interface FormEditorFieldsBodyProps {
26
27
  onHtmlChange: (html: string) => void;
27
28
  onCopyEmbed: () => void;
28
29
  copyFeedback: string | null;
30
+ /** Dependency injection seam for tests; defaulted to the real hook. */
31
+ useFormFieldsBodyViewHook?: typeof useFormFieldsBodyView;
29
32
  }
30
33
  /** Edit the existing form body and explicit collection destination without crossing their state boundaries.
31
34
  * @complexity O(f) render time/space for fields; event callbacks perform no direct I/O.
32
35
  * Provider settings come from the shared runtime description; no vendor choices live in this view. */
33
- export declare function FormEditorFieldsBody(props: FormEditorFieldsBodyProps): import("react").JSX.Element;
36
+ export declare function FormEditorFieldsBody({ useFormFieldsBodyViewHook, ...props }: FormEditorFieldsBodyProps): import("react").JSX.Element;
34
37
  /** The page-header title/description text — split out because `FormEditor`'s isNew-dependent copy
35
38
  * (two ternaries, one with a `||` fallback) is otherwise indistinguishable, in the complexity
36
39
  * count, from the branches that actually decide what's on screen. */
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { FormProviderSettings } from "./FormProviderSettings.js";
3
3
  import { useFormFieldsBodyView } from "../hooks/forms-view.hooks.js";
4
- import { agentHandle } from '@jini-ai/agentic';
4
+ import { agentHandle } from '@jini-ai/core/agent-handles';
5
5
  import { FormEditorActions, FormEditorModeSwitch } from "./FormEditorFieldsBodyParts.js";
6
6
  /** Edit the existing form body and explicit collection destination without crossing their state boundaries.
7
7
  * @complexity O(f) render time/space for fields; event callbacks perform no direct I/O.
8
8
  * Provider settings come from the shared runtime description; no vendor choices live in this view. */
9
- export function FormEditorFieldsBody(props) {
10
- const handlers = useFormFieldsBodyView(props);
9
+ export function FormEditorFieldsBody({ useFormFieldsBodyViewHook = useFormFieldsBodyView, ...props }) {
10
+ const handlers = useFormFieldsBodyViewHook(props);
11
11
  const { name, slug, isNew, t } = props;
12
12
  return (_jsxs(_Fragment, { children: [_jsx("div", { className: "field-group", children: _jsxs("div", { className: "field-row", children: [_jsxs("div", { className: "field", children: [_jsx("label", { className: "field-label", htmlFor: "form-name", children: t("Name") }), _jsx("input", { id: "form-name", value: name, onChange: handlers.onName, ...agentHandle({ handle: "form-editor-name" }, { role: "field", label: "This form's display name" }) })] }), _jsxs("div", { className: "field", children: [_jsx("label", { className: "field-label", htmlFor: "form-slug", children: t("Slug") }), _jsx("input", { id: "form-slug", value: slug, disabled: !isNew, onChange: handlers.onSlug, ...agentHandle({ handle: "form-editor-slug" }, {
13
13
  role: "field",
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { agentHandle } from '@jini-ai/agentic';
2
+ import { agentHandle } from '@jini-ai/core/agent-handles';
3
3
  import { FormFieldsEditor } from "./FormFieldsEditor.js";
4
4
  /** Builder/HTML switch plus whichever editor the current mode shows. */
5
5
  export function FormEditorModeSwitch({ props, handlers }) {
@@ -0,0 +1,6 @@
1
+ import type { useWiredFormEditor } from "../hooks/use-form-editor.hooks.js";
2
+ /** The name/slug fields, the field table and the action row, wired from the editor state. */
3
+ export declare function FormEditorFieldsSlot({ editor }: {
4
+ editor: ReturnType<typeof useWiredFormEditor>;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=FormEditorFieldsSlot.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { FormEditorFieldsBody } from "./FormEditorFieldsBody.js";
3
+ /** The name/slug fields, the field table and the action row, wired from the editor state. */
4
+ export function FormEditorFieldsSlot({ editor }) {
5
+ const { provider, setProvider, providers, providersError, mode, onModeChange, html, setHtml, copyEmbed, copyFeedback, isNew, form, name, setName, slug, setSlug, fields, setFields, saving, existingFieldIds, handleSave, handleStatusToggle, t } = editor;
6
+ // Shared between the "new form" (no tabs, always visible) and "existing form, Fields tab"
7
+ // views — kept as one JSX value instead of two copies so the two paths can't drift.
8
+ return (_jsx(FormEditorFieldsBody, { mode: mode, onModeChange: onModeChange, html: html, onHtmlChange: setHtml, onCopyEmbed: copyEmbed, copyFeedback: copyFeedback, provider: provider, onProviderChange: setProvider, providers: providers, providersError: providersError, name: name, onNameChange: setName, slug: slug, onSlugChange: setSlug, isNew: isNew, fields: fields, existingFieldIds: existingFieldIds, onFieldsChange: setFields, form: form, saving: saving, onStatusToggle: handleStatusToggle, onSave: handleSave, t: t }));
9
+ }
10
+ //# sourceMappingURL=FormEditorFieldsSlot.js.map
@@ -0,0 +1,9 @@
1
+ import type { MouseEventHandler } from 'react';
2
+ /** Back link and title block above the form editor. */
3
+ export declare function FormEditorHeader({ isNew, name, onBack, t }: {
4
+ isNew: boolean;
5
+ name: string;
6
+ onBack: MouseEventHandler<HTMLAnchorElement>;
7
+ t: (key: string) => string;
8
+ }): import("react").JSX.Element;
9
+ //# sourceMappingURL=FormEditorHeader.d.ts.map
@@ -0,0 +1,16 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { agentHandle } from '@jini-ai/core/agent-handles';
3
+ import { FormEditorHeaderText } from './FormEditorHeaderText.js';
4
+ /** Back link and title block above the form editor. */
5
+ export function FormEditorHeader({ isNew, name, onBack, t }) {
6
+ // `page-header-split` (the same modifier `PageEditorHeader`/`PostEditor` use on the shared
7
+ // `.page-header`, `styles.css`) — back link alone at the far left, title block centred.
8
+ // Forms has no Save/Delete group living in this header (that's inside the fields panel
9
+ // below), so the header's third rail just stays empty, same as the editors' post-move
10
+ // state.
11
+ return (_jsxs("div", { className: "page-header page-header-split", ...agentHandle({ handle: "form-editor-header" }, {
12
+ role: "region",
13
+ label: "Form editor header — title and the Back to forms link",
14
+ }), children: [_jsx("div", { className: "page-header-lead", children: _jsxs("a", { className: "btn-secondary", href: "/admin/forms", "aria-label": t("Back to forms"), onClick: onBack, ...agentHandle({ handle: "form-editor-back" }, { role: "link", label: "Back to the list of all forms" }), children: ["\u2190 ", t("Back")] }) }), _jsx(FormEditorHeaderText, { isNew: isNew, name: name, t: t })] }));
15
+ }
16
+ //# sourceMappingURL=FormEditorHeader.js.map
@@ -2,6 +2,6 @@ export declare function FormEditorHeaderText(props: {
2
2
  isNew: boolean;
3
3
  name: string;
4
4
  t: (key: string) => string;
5
- }, _optional?: Record<string, never>): import("react").JSX.Element;
5
+ }): import("react").JSX.Element;
6
6
  /** The Fields/Submissions tab strip — renders only for an existing, loaded form (`showTabs`). */
7
7
  //# sourceMappingURL=FormEditorHeaderText.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export function FormEditorHeaderText(props, _optional = {}) {
2
+ export function FormEditorHeaderText(props) {
3
3
  const { isNew, name, t } = props;
4
4
  return (_jsxs("div", { className: "page-header-text", children: [_jsx("p", { className: "page-kicker", children: t("Content") }), _jsx("h1", { className: "page-title", children: isNew ? t("New form") : name || t("Form") }), _jsx("p", { className: "page-description", children: isNew
5
5
  ? t("Configure a new form's fields.")
@@ -8,5 +8,5 @@ export declare function FormEditorMainPanel(props: {
8
8
  /** Translator closure — see `FormEditor()`'s own `t`. */
9
9
  t: (key: string) => string;
10
10
  answerColumns: FormAnswerColumn[];
11
- }, _optional?: Record<string, never>): React.JSX.Element;
11
+ }): React.JSX.Element;
12
12
  //# sourceMappingURL=FormEditorMainPanel.d.ts.map
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { FormSubmissions } from "./FormSubmissions.js";
3
- export function FormEditorMainPanel(props, _optional = {}) {
3
+ export function FormEditorMainPanel(props) {
4
4
  const { isNew, tab, formId, fieldsBody, t, answerColumns } = props;
5
5
  if (isNew) {
6
- return _jsx("div", { className: "form-editor-panel", children: fieldsBody });
6
+ return _jsx("div", { className: "jini-form-editor-panel", children: fieldsBody });
7
7
  }
8
8
  if (tab === "fields") {
9
- return (_jsx("div", { className: "form-editor-panel", role: "tabpanel", id: "form-panel-fields", "aria-labelledby": "form-tab-fields", children: fieldsBody }));
9
+ return (_jsx("div", { className: "jini-form-editor-panel", role: "tabpanel", id: "form-panel-fields", "aria-labelledby": "form-tab-fields", children: fieldsBody }));
10
10
  }
11
- return (_jsx("div", { className: "form-editor-panel", role: "tabpanel", id: "form-panel-submissions", "aria-labelledby": "form-tab-submissions", children: _jsx(FormSubmissions, { formId: formId, t: t, answerColumns: answerColumns }) }));
11
+ return (_jsx("div", { className: "jini-form-editor-panel", role: "tabpanel", id: "form-panel-submissions", "aria-labelledby": "form-tab-submissions", children: _jsx(FormSubmissions, { formId: formId, t: t, answerColumns: answerColumns }) }));
12
12
  }
13
13
  //# sourceMappingURL=FormEditorMainPanel.js.map
@@ -1,5 +1,6 @@
1
+ import { useFormTabStripView } from "../hooks/forms-view.hooks.js";
1
2
  import type * as React from 'react';
2
- export declare function FormEditorTabStrip(props: {
3
+ export declare function FormEditorTabStrip({ showTabs, tab, onTabChange, tabRefs, onTabsKeyDown, t, useFormTabStripViewHook }: {
3
4
  showTabs: boolean;
4
5
  tab: "fields" | "submissions";
5
6
  onTabChange: (tab: "fields" | "submissions") => void;
@@ -7,7 +8,9 @@ export declare function FormEditorTabStrip(props: {
7
8
  onTabsKeyDown: (e: React.KeyboardEvent) => void;
8
9
  /** Translator closure — see `FormEditor()`'s own `t`. */
9
10
  t: (key: string) => string;
10
- }, _optional?: Record<string, never>): React.JSX.Element | null;
11
+ /** Dependency injection seam for tests; defaulted to the real hook. */
12
+ useFormTabStripViewHook?: typeof useFormTabStripView;
13
+ }): React.JSX.Element | null;
11
14
  /** Which card is showing below the tab strip: the fields form (always for `isNew`, or when the
12
15
  * Fields tab is active) or the submissions table. */
13
16
  //# sourceMappingURL=FormEditorTabStrip.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useFormTabStripView } from "../hooks/forms-view.hooks.js";
3
- import { agentHandle } from '@jini-ai/agentic';
4
- export function FormEditorTabStrip(props, _optional = {}) {
5
- const { showTabs, tab, onTabChange, tabRefs, onTabsKeyDown, t } = props;
6
- const tabs = useFormTabStripView({ onTabChange, tabRefs });
3
+ import { agentHandle } from '@jini-ai/core/agent-handles';
4
+ export function FormEditorTabStrip({ showTabs, tab, onTabChange, tabRefs, onTabsKeyDown, t, useFormTabStripViewHook = useFormTabStripView }) {
5
+ const tabs = useFormTabStripViewHook({ onTabChange, tabRefs });
7
6
  if (!showTabs)
8
7
  return null;
9
8
  return (_jsx("div", { className: "form-tabs", role: "tablist", "aria-label": t("Form sections"), onKeyDown: onTabsKeyDown, children: tabs.map((formTab) => (_jsx("button", { ref: formTab.ref, type: "button", role: "tab", id: `form-tab-${formTab.id}`, className: "form-tab", "aria-selected": tab === formTab.id, "aria-controls": `form-panel-${formTab.id}`, tabIndex: tab === formTab.id ? 0 : -1, onClick: formTab.onClick, ...agentHandle({ handle: `form-tab-${formTab.id}` }, {
@@ -0,0 +1,10 @@
1
+ import type { useFormFieldsView } from '../hooks/forms-view.hooks.js';
2
+ type Row = ReturnType<typeof useFormFieldsView>["rows"][number];
3
+ type Cell = {
4
+ row: Row;
5
+ t: (key: string) => string;
6
+ };
7
+ /** One field of the form as a table row. */
8
+ export declare function FormFieldRow({ row, t }: Cell): import("react").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=FormFieldRow.d.ts.map
@@ -0,0 +1,53 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { agentHandle } from '@jini-ai/core/agent-handles';
3
+ /** Field id, locked once saved. */
4
+ function FieldIdCell({ row: { field, index, isExisting, base, onId }, t }) {
5
+ return (_jsx("td", { "data-label": t("ID"), children: _jsx("input", { "aria-label": `Field ${index + 1} id`, value: field.id, disabled: isExisting, onChange: onId, ...agentHandle({ handle: `${base}-id` }, {
6
+ role: "field",
7
+ label: "This field's unique id — the key its value is submitted under. Locked once saved.",
8
+ }) }) }));
9
+ }
10
+ /** Field label. */
11
+ function FieldLabelCell({ row: { field, index, base, onLabel }, t }) {
12
+ return (_jsx("td", { "data-label": t("Label"), children: _jsx("input", { "aria-label": `Field ${index + 1} label`, value: field.label, onChange: onLabel, ...agentHandle({ handle: `${base}-label` }, { role: "field", label: "This field's on-page label" }) }) }));
13
+ }
14
+ /** The type picker, grouped by the registry. */
15
+ function FieldTypeCell({ row: { field, index, base, typeGroups, onType }, t }) {
16
+ return (_jsx("td", { "data-label": t("Type"), children: _jsx("select", { "aria-label": `Field ${index + 1} type`, value: field.type, onChange: onType, ...agentHandle({ handle: `${base}-type` }, {
17
+ role: "field",
18
+ label: "This field's input type — set with page.select_option, not click",
19
+ }), children: typeGroups.map(({ group, types }) => (_jsx("optgroup", { label: t(group), children: types.map((type) => (_jsx("option", { value: type.type, children: t(type.label) }, type.type))) }, group))) }) }));
20
+ }
21
+ /** Required checkbox. */
22
+ function FieldRequiredCell({ row: { field, index, base, onRequired }, t }) {
23
+ return (_jsx("td", { "data-label": t("Required"), children: _jsx("input", { type: "checkbox", "aria-label": `Field ${index + 1} required`, checked: field.required, onChange: onRequired, ...agentHandle({ handle: `${base}-required` }, {
24
+ role: "checkbox",
25
+ label: "Whether this field must be filled in before the form can be submitted",
26
+ }) }) }));
27
+ }
28
+ /** Max length, or a dash for types without one. */
29
+ function FieldMaxLengthCell({ row: { field, index, base, hasLength, onMaxLength }, t }) {
30
+ return (_jsx("td", { "data-label": t("Max length"), children: !hasLength ? (_jsx("span", { "aria-hidden": "true", children: "\u2014" })) : (_jsx("input", { type: "number", "aria-label": `Field ${index + 1} max length`, value: field.maxLength ?? "", onChange: onMaxLength, ...agentHandle({ handle: `${base}-max-length` }, {
31
+ role: "field",
32
+ label: "The maximum number of characters this field accepts — blank means no limit",
33
+ }) })) }));
34
+ }
35
+ /** The kebab that opens the field settings dialog. */
36
+ function FieldSettingsCell({ row: { base, displayName, ref, onAttributes }, t }) {
37
+ return (_jsx("td", { "data-label": t("Settings"), children: _jsx("button", { ref: ref, type: "button", className: "row-menu-trigger", "aria-label": t('Settings for field "{name}"').replace("{name}", () => displayName), onClick: onAttributes, ...agentHandle({ handle: `${base}-attributes` }, {
38
+ role: "button",
39
+ label: "Open this field's settings dialog: placeholder, help text, default, options, limits, CSS classes and HTML attributes",
40
+ }), children: _jsxs("svg", { viewBox: "0 0 18 18", fill: "currentColor", "aria-hidden": "true", children: [_jsx("circle", { cx: "9", cy: "4.5", r: "1.5" }), _jsx("circle", { cx: "9", cy: "9", r: "1.5" }), _jsx("circle", { cx: "9", cy: "13.5", r: "1.5" })] }) }) }));
41
+ }
42
+ /** Remove, refused once the field is saved. */
43
+ function FieldRemoveCell({ row: { base, isExisting, onRemove }, t }) {
44
+ return (_jsx("td", { className: "jini-form-field-remove-cell", children: _jsx("button", { type: "button", disabled: isExisting, title: isExisting ? t("Existing fields cannot be removed once created") : undefined, onClick: onRemove, ...agentHandle({ handle: `${base}-remove` }, {
45
+ role: "button",
46
+ label: "Remove this field from the form. Refused once the field has been saved.",
47
+ }), children: t("Remove") }) }));
48
+ }
49
+ /** One field of the form as a table row. */
50
+ export function FormFieldRow({ row, t }) {
51
+ return (_jsxs("tr", { children: [_jsx(FieldIdCell, { row: row, t: t }), _jsx(FieldLabelCell, { row: row, t: t }), _jsx(FieldTypeCell, { row: row, t: t }), _jsx(FieldRequiredCell, { row: row, t: t }), _jsx(FieldMaxLengthCell, { row: row, t: t }), _jsx(FieldSettingsCell, { row: row, t: t }), _jsx(FieldRemoveCell, { row: row, t: t })] }));
52
+ }
53
+ //# sourceMappingURL=FormFieldRow.js.map
@@ -1,3 +1,4 @@
1
+ import { useFormFieldsView } from "../hooks/forms-view.hooks.js";
1
2
  import type { AdminFormField } from '../../models.js';
2
3
  import { useFormFieldsEditor } from '../hooks/use-form-fields-editor.hooks.js';
3
4
  export interface FormFieldsEditorProps {
@@ -8,6 +9,8 @@ export interface FormFieldsEditorProps {
8
9
  useFormFieldsEditorHook?: typeof useFormFieldsEditor;
9
10
  /** Translator closure — see `FormEditor()`'s own `t`. */
10
11
  t: (key: string) => string;
12
+ /** Same seam for the row view-model hook. */
13
+ useFormFieldsViewHook?: typeof useFormFieldsView;
11
14
  }
12
- export declare function FormFieldsEditor({ fields, existingFieldIds, onChange, useFormFieldsEditorHook, t, }: FormFieldsEditorProps, _optional?: Record<string, never>): import("react").JSX.Element;
15
+ export declare function FormFieldsEditor({ fields, existingFieldIds, onChange, useFormFieldsEditorHook, useFormFieldsViewHook, t, }: FormFieldsEditorProps): import("react").JSX.Element;
13
16
  //# sourceMappingURL=FormFieldsEditor.d.ts.map
@@ -1,9 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useFormFieldsView } from "../hooks/forms-view.hooks.js";
3
- import { agentHandle } from '@jini-ai/agentic';
3
+ import { agentHandle } from '@jini-ai/core/agent-handles';
4
4
  import { useFormFieldsEditor } from '../hooks/use-form-fields-editor.hooks.js';
5
5
  import { FieldAttributesDialog } from "./FieldAttributesDialog.js";
6
- export function FormFieldsEditor({ fields, existingFieldIds = [], onChange, useFormFieldsEditorHook = useFormFieldsEditor, t, }, _optional = {}) {
6
+ import { FormFieldRow } from "./FormFieldRow.js";
7
+ import { FormFieldsTableFoot, FormFieldsTableHead } from "./FormFieldsTableParts.js";
8
+ export function FormFieldsEditor({ fields, existingFieldIds = [], onChange, useFormFieldsEditorHook = useFormFieldsEditor, useFormFieldsViewHook = useFormFieldsView, t, }) {
7
9
  const controller = useFormFieldsEditorHook({ fields, onChange });
8
10
  const { editingAttrsIndex, closeAttrsDialog, addField } = controller;
9
11
  // Field ids are the form's own field vocabulary and are unique once saved, but a freshly-added
@@ -11,28 +13,10 @@ export function FormFieldsEditor({ fields, existingFieldIds = [], onChange, useF
11
13
  // position fallback covers that case the same way it covers any other unsluggable id. Not
12
14
  // `useMemo`d: one form's own field list is small and this is an O(n) pass, cheap enough that
13
15
  // memoizing it was not judged worth the added indirection.
14
- const { rows, editingField, saveAttributes } = useFormFieldsView({ fields, existingFieldIds, controller });
16
+ const { rows, editingField, saveAttributes } = useFormFieldsViewHook({ fields, existingFieldIds, controller });
15
17
  return (_jsxs(_Fragment, { children: [_jsxs("table", { className: "list-table form-fields-table", ...agentHandle({ handle: "form-fields-table" }, {
16
18
  role: "region",
17
19
  label: "This form's field definitions — one row per field, in the order they render on the live form",
18
- }), children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: "14%" } }), _jsx("col", { style: { width: "17%" } }), _jsx("col", { style: { width: "21%" } }), _jsx("col", { style: { width: "8%" } }), _jsx("col", { style: { width: "14%" } }), _jsx("col", { style: { width: "8%" } }), _jsx("col", { style: { width: "18%" } })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: t("ID") }), _jsx("th", { children: t("Label") }), _jsx("th", { children: t("Type") }), _jsx("th", { children: t("Req") }), _jsx("th", { children: t("Max length") }), _jsx("th", { children: t("More") }), _jsx("th", {})] }) }), _jsx("tbody", { children: rows.map(({ field, index, isExisting, base, displayName, typeGroups, hasLength, onId, onLabel, onType, onRequired, onMaxLength, ref, onAttributes, onRemove }) => (_jsxs("tr", { children: [_jsx("td", { "data-label": t("ID"), children: _jsx("input", { "aria-label": `Field ${index + 1} id`, value: field.id, disabled: isExisting, onChange: onId, ...agentHandle({ handle: `${base}-id` }, {
19
- role: "field",
20
- label: "This field's unique id — the key its value is submitted under. Locked once saved.",
21
- }) }) }), _jsx("td", { "data-label": t("Label"), children: _jsx("input", { "aria-label": `Field ${index + 1} label`, value: field.label, onChange: onLabel, ...agentHandle({ handle: `${base}-label` }, { role: "field", label: "This field's on-page label" }) }) }), _jsx("td", { "data-label": t("Type"), children: _jsx("select", { "aria-label": `Field ${index + 1} type`, value: field.type, onChange: onType, ...agentHandle({ handle: `${base}-type` }, {
22
- role: "field",
23
- label: "This field's input type — set with page.select_option, not click",
24
- }), children: typeGroups.map(({ group, types }) => (_jsx("optgroup", { label: t(group), children: types.map((type) => (_jsx("option", { value: type.type, children: t(type.label) }, type.type))) }, group))) }) }), _jsx("td", { "data-label": t("Required"), children: _jsx("input", { type: "checkbox", "aria-label": `Field ${index + 1} required`, checked: field.required, onChange: onRequired, ...agentHandle({ handle: `${base}-required` }, {
25
- role: "checkbox",
26
- label: "Whether this field must be filled in before the form can be submitted",
27
- }) }) }), _jsx("td", { "data-label": t("Max length"), children: !hasLength ? (_jsx("span", { "aria-hidden": "true", children: "\u2014" })) : (_jsx("input", { type: "number", "aria-label": `Field ${index + 1} max length`, value: field.maxLength ?? "", onChange: onMaxLength, ...agentHandle({ handle: `${base}-max-length` }, {
28
- role: "field",
29
- label: "The maximum number of characters this field accepts — blank means no limit",
30
- }) })) }), _jsx("td", { "data-label": t("Settings"), children: _jsx("button", { ref: ref, type: "button", className: "row-menu-trigger", "aria-label": t('Settings for field "{name}"').replace("{name}", displayName), onClick: onAttributes, ...agentHandle({ handle: `${base}-attributes` }, {
31
- role: "button",
32
- label: "Open this field's settings dialog: placeholder, help text, default, options, limits, CSS classes and HTML attributes",
33
- }), children: _jsxs("svg", { viewBox: "0 0 18 18", fill: "currentColor", "aria-hidden": "true", children: [_jsx("circle", { cx: "9", cy: "4.5", r: "1.5" }), _jsx("circle", { cx: "9", cy: "9", r: "1.5" }), _jsx("circle", { cx: "9", cy: "13.5", r: "1.5" })] }) }) }), _jsx("td", { className: "form-field-remove-cell", children: _jsx("button", { type: "button", disabled: isExisting, title: isExisting ? t("Existing fields cannot be removed once created") : undefined, onClick: onRemove, ...agentHandle({ handle: `${base}-remove` }, {
34
- role: "button",
35
- label: "Remove this field from the form. Refused once the field has been saved.",
36
- }), children: t("Remove") }) })] }, index))) }), _jsx("tfoot", { children: _jsx("tr", { children: _jsx("td", { colSpan: 7, children: _jsx("button", { type: "button", className: "btn-secondary", onClick: addField, ...agentHandle({ handle: "form-fields-add" }, { role: "button", label: "Add a new field to this form" }), children: t("Add field") }) }) }) })] }), editingAttrsIndex !== null && editingField ? (_jsx(FieldAttributesDialog, { field: editingField, fieldIndex: editingAttrsIndex, onSave: saveAttributes, onCancel: closeAttrsDialog, t: t })) : null] }));
20
+ }), children: [_jsx(FormFieldsTableHead, { t: t }), _jsx("tbody", { children: rows.map((row) => (_jsx(FormFieldRow, { row: row, t: t }, row.index))) }), _jsx(FormFieldsTableFoot, { addField: addField, t: t })] }), editingAttrsIndex !== null && editingField ? (_jsx(FieldAttributesDialog, { field: editingField, fieldIndex: editingAttrsIndex, onSave: saveAttributes, onCancel: closeAttrsDialog, t: t })) : null] }));
37
21
  }
38
22
  //# sourceMappingURL=FormFieldsEditor.js.map
@@ -0,0 +1,10 @@
1
+ /** Column widths and header row of the field table. */
2
+ export declare function FormFieldsTableHead({ t }: {
3
+ t: (key: string) => string;
4
+ }, _optional?: Record<string, never>): import("react").JSX.Element;
5
+ /** The footer row holding the "Add field" button. */
6
+ export declare function FormFieldsTableFoot({ addField, t }: {
7
+ addField: () => void;
8
+ t: (key: string) => string;
9
+ }): import("react").JSX.Element;
10
+ //# sourceMappingURL=FormFieldsTableParts.d.ts.map
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { agentHandle } from '@jini-ai/core/agent-handles';
3
+ /** Column widths and header row of the field table. */
4
+ export function FormFieldsTableHead({ t }, _optional = {}) {
5
+ return (_jsxs(_Fragment, { children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: "14%" } }), _jsx("col", { style: { width: "17%" } }), _jsx("col", { style: { width: "21%" } }), _jsx("col", { style: { width: "8%" } }), _jsx("col", { style: { width: "14%" } }), _jsx("col", { style: { width: "8%" } }), _jsx("col", { style: { width: "18%" } })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: t("ID") }), _jsx("th", { children: t("Label") }), _jsx("th", { children: t("Type") }), _jsx("th", { children: t("Req") }), _jsx("th", { children: t("Max length") }), _jsx("th", { children: t("More") }), _jsx("th", {})] }) })] }));
6
+ }
7
+ /** The footer row holding the "Add field" button. */
8
+ export function FormFieldsTableFoot({ addField, t }) {
9
+ return (_jsx("tfoot", { children: _jsx("tr", { children: _jsx("td", { colSpan: 7, children: _jsx("button", { type: "button", className: "btn-secondary", onClick: addField, ...agentHandle({ handle: "form-fields-add" }, { role: "button", label: "Add a new field to this form" }), children: t("Add field") }) }) }) }));
10
+ }
11
+ //# sourceMappingURL=FormFieldsTableParts.js.map
@@ -4,5 +4,5 @@ export declare function FormSubmissionDate({ date }: {
4
4
  full: string;
5
5
  dateTime: string | undefined;
6
6
  };
7
- }, _optional?: Record<string, never>): import("react").JSX.Element;
7
+ }): import("react").JSX.Element;
8
8
  //# sourceMappingURL=FormSubmissionDate.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- export function FormSubmissionDate({ date }, _optional = {}) {
2
+ export function FormSubmissionDate({ date }) {
3
3
  return _jsx("time", { dateTime: date.dateTime, title: date.full, children: date.text });
4
4
  }
5
5
  //# sourceMappingURL=FormSubmissionDate.js.map
@@ -1,4 +1,5 @@
1
1
  import { useWiredFormSubmissionDetail } from '../hooks/use-form-submission-detail.hooks.js';
2
+ import { useFormSubmissionDate } from '../hooks/use-form-submission-date.hooks.js';
2
3
  import { type FormAnswerColumn } from '../../html-rules.js';
3
4
  export interface FormSubmissionDetailProps {
4
5
  formId: string;
@@ -10,6 +11,8 @@ export interface FormSubmissionDetailProps {
10
11
  /** Translator closure — see `FormEditor()`'s own `t`. */
11
12
  t: (key: string) => string;
12
13
  answerColumns?: readonly FormAnswerColumn[];
14
+ /** Same seam for the date formatter. */
15
+ useFormSubmissionDateHook?: typeof useFormSubmissionDate;
13
16
  }
14
- export declare function FormSubmissionDetail({ formId, submissionId, onBack, onDeleted, useFormSubmissionDetailHook, t, answerColumns, }: FormSubmissionDetailProps, _optional?: Record<string, never>): import("react").JSX.Element;
17
+ export declare function FormSubmissionDetail({ formId, submissionId, onBack, onDeleted, useFormSubmissionDetailHook, useFormSubmissionDateHook, t, answerColumns, }: FormSubmissionDetailProps, _optional?: Record<string, never>): import("react").JSX.Element;
15
18
  //# sourceMappingURL=FormSubmissionDetail.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { ConfirmDialog } from '../../../react/components/ConfirmDialog/ConfirmDialog.js';
3
- import { agentHandle } from '@jini-ai/agentic';
3
+ import { agentHandle } from '@jini-ai/core/agent-handles';
4
4
  import { useWiredFormSubmissionDetail } from '../hooks/use-form-submission-detail.hooks.js';
5
5
  import { useFormSubmissionDate } from '../hooks/use-form-submission-date.hooks.js';
6
6
  import { FormSubmissionDate } from "./FormSubmissionDate.js";
7
7
  import { formSubmissionRows } from '../../html-rules.js';
8
- export function FormSubmissionDetail({ formId, submissionId, onBack, onDeleted, useFormSubmissionDetailHook = useWiredFormSubmissionDetail, t, answerColumns = [], }, _optional = {}) {
9
- const formatDate = useFormSubmissionDate({});
8
+ export function FormSubmissionDetail({ formId, submissionId, onBack, onDeleted, useFormSubmissionDetailHook = useWiredFormSubmissionDetail, useFormSubmissionDateHook = useFormSubmissionDate, t, answerColumns = [], }, _optional = {}) {
9
+ const formatDate = useFormSubmissionDateHook({});
10
10
  const { submission, error, confirmOpen, deleting, requestDelete, cancelDelete, confirmDelete, fileUrl } = useFormSubmissionDetailHook({
11
11
  formId,
12
12
  submissionId,
@@ -1,5 +1,7 @@
1
+ import { useSubmissionsView } from "../hooks/forms-view.hooks.js";
1
2
  import type { FormAnswerColumn } from '../../html-rules.js';
2
3
  import { useWiredFormSubmissions } from '../hooks/use-form-submissions.hooks.js';
4
+ import { useFormSubmissionDate } from '../hooks/use-form-submission-date.hooks.js';
3
5
  export interface FormSubmissionsProps {
4
6
  formId: string;
5
7
  /** Dependency injection seam for tests — see `PostsProps.usePostsHook` for the convention. */
@@ -7,6 +9,9 @@ export interface FormSubmissionsProps {
7
9
  /** Translator closure — see `FormEditor()`'s own `t`. */
8
10
  t: (key: string) => string;
9
11
  answerColumns?: FormAnswerColumn[];
12
+ /** Same seam for the date formatter and the row view-model hooks. */
13
+ useFormSubmissionDateHook?: typeof useFormSubmissionDate;
14
+ useSubmissionsViewHook?: typeof useSubmissionsView;
10
15
  }
11
- export declare function FormSubmissions({ formId, useFormSubmissionsHook, t, answerColumns }: FormSubmissionsProps): import("react").JSX.Element;
16
+ export declare function FormSubmissions({ formId, useFormSubmissionsHook, useFormSubmissionDateHook, useSubmissionsViewHook, t, answerColumns, }: FormSubmissionsProps): import("react").JSX.Element;
12
17
  //# sourceMappingURL=FormSubmissions.d.ts.map
@@ -4,11 +4,11 @@ import { useWiredFormSubmissions } from '../hooks/use-form-submissions.hooks.js'
4
4
  import { useFormSubmissionDate } from '../hooks/use-form-submission-date.hooks.js';
5
5
  import { FormSubmissionDetail } from "./FormSubmissionDetail.js";
6
6
  import { FormSubmissionsTable } from "./FormSubmissionsTable.js";
7
- export function FormSubmissions({ formId, useFormSubmissionsHook = useWiredFormSubmissions, t, answerColumns = [] }) {
8
- const formatDate = useFormSubmissionDate({});
7
+ export function FormSubmissions({ formId, useFormSubmissionsHook = useWiredFormSubmissions, useFormSubmissionDateHook = useFormSubmissionDate, useSubmissionsViewHook = useSubmissionsView, t, answerColumns = [], }) {
8
+ const formatDate = useFormSubmissionDateHook({});
9
9
  const controller = useFormSubmissionsHook({ formId });
10
10
  const { submissions, nextCursor, error, selectedId, loadingMore } = controller;
11
- const { rows, back, loadMore } = useSubmissionsView({ controller });
11
+ const { rows, back, loadMore } = useSubmissionsViewHook({ controller });
12
12
  if (selectedId) {
13
13
  return (_jsx(FormSubmissionDetail, { formId: formId, submissionId: selectedId, onBack: back, onDeleted: back, t: t, answerColumns: answerColumns }));
14
14
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { DataTable } from '../../../react/components/DataTable.js';
3
- import { agentHandle } from '@jini-ai/agentic';
3
+ import { agentHandle } from '@jini-ai/core/agent-handles';
4
4
  import { FormSubmissionDate } from "./FormSubmissionDate.js";
5
5
  export function FormSubmissionsTable({ rows, loadMore, error, nextCursor, loadingMore, formatDate, answerColumns, t }) {
6
6
  return (_jsxs("div", { children: [error ? _jsx("div", { className: "notice error", children: error }) : null, _jsx(DataTable, { rows: rows, rowKey: (s) => s.id, columns: [
@@ -0,0 +1,36 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { AdminFormDefinition } from '../../models.js';
3
+ import type { useFormsListView } from '../hooks/forms-view.hooks.js';
4
+ export type FormsListRow = ReturnType<typeof useFormsListView>["rows"][number];
5
+ type Translate = (key: string) => string;
6
+ /** Title block, the optional host slot and the "New form" link. */
7
+ export declare function FormsListHeader({ headerActions, t }: {
8
+ headerActions: ReactNode;
9
+ t: Translate;
10
+ }): import("react").JSX.Element;
11
+ /** Table columns of the forms list: name link, slug, dates, field count and the row menu. */
12
+ export declare function formsListColumns({ t }: {
13
+ t: Translate;
14
+ }, _optional?: Record<string, never>): ({
15
+ key: string;
16
+ header: string;
17
+ cell: (form: FormsListRow) => import("react").JSX.Element;
18
+ } | {
19
+ key: string;
20
+ header: string;
21
+ cell: (form: FormsListRow) => string;
22
+ } | {
23
+ key: string;
24
+ header: string;
25
+ cell: (form: FormsListRow) => number;
26
+ })[];
27
+ /** The "Move to trash?" confirmation for one form. */
28
+ export declare function FormsListDeleteDialog({ pendingDelete, rowSavingId, removeForm, cancelDelete, t }: {
29
+ pendingDelete: AdminFormDefinition | null;
30
+ rowSavingId: string | null;
31
+ removeForm: () => void;
32
+ cancelDelete: () => void;
33
+ t: Translate;
34
+ }): import("react").JSX.Element;
35
+ export {};
36
+ //# sourceMappingURL=FormsListParts.d.ts.map
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ConfirmDialog } from '../../../react/components/ConfirmDialog/ConfirmDialog.js';
3
+ import { RowMenu } from '../../../react/components/RowMenu/RowMenu.js';
4
+ import { agentHandle } from '@jini-ai/core/agent-handles';
5
+ /** Title block, the optional host slot and the "New form" link. */
6
+ export function FormsListHeader({ headerActions, t }) {
7
+ return (_jsxs("div", { className: "page-header", ...agentHandle({ handle: "forms-header" }, { role: "region", label: "Forms list header — page title and the New form button" }), children: [_jsxs("div", { className: "page-header-text", children: [_jsx("p", { className: "page-kicker", children: t("Content") }), _jsx("h1", { className: "page-title", children: t("Forms") }), _jsx("p", { className: "page-description", children: t("Manage the forms embedded across the site and their submissions.") })] }), _jsxs("div", { className: "page-actions", children: [headerActions, _jsx("a", { className: "btn-primary", href: "/admin/forms/new", ...agentHandle({ handle: "forms-new" }, { role: "link", label: "Create a new form" }), children: t("New form") })] })] }));
8
+ }
9
+ /** Table columns of the forms list: name link, slug, dates, field count and the row menu. */
10
+ export function formsListColumns({ t }, _optional = {}) {
11
+ return [
12
+ {
13
+ key: "name",
14
+ header: t("Name"),
15
+ cell: (form) => (_jsx("a", { href: `/admin/forms/${form.slug}`, ...agentHandle({ handle: `${form.rowHandle}-edit` }, {
16
+ role: "link",
17
+ label: "Open this form's editor",
18
+ }), children: form.name })),
19
+ },
20
+ { key: "slug", header: t("Slug"), cell: (form) => form.slug },
21
+ {
22
+ key: "dates",
23
+ header: t("Created / Updated"),
24
+ // One `<time>` per line (created, then updated — or one line when never edited). The
25
+ // visible text is the bare short date; the event word lives in the hover title and the
26
+ // screen-reader text only, since the header already names both events.
27
+ cell: (form) => (_jsx("span", { className: "jini-forms-dates", children: form.dates.map((line) => (_jsxs("time", { className: "forms-dates-line", dateTime: line.dateTime, title: line.label, children: [_jsx("span", { "aria-hidden": "true", children: line.text }), _jsx("span", { className: "visually-hidden", children: line.label })] }, line.kind))) })),
28
+ },
29
+ { key: "fields", header: t("Fields"), cell: (form) => form.fields.length },
30
+ {
31
+ key: "actions",
32
+ header: t("More"),
33
+ cell: (form) => (_jsx(RowMenu, { triggerLabel: form.menuLabel, agentHandle: `${form.rowHandle}-menu`, items: form.menuItems })),
34
+ },
35
+ ];
36
+ }
37
+ /** The "Move to trash?" confirmation for one form. */
38
+ export function FormsListDeleteDialog({ pendingDelete, rowSavingId, removeForm, cancelDelete, t }) {
39
+ return (_jsx(ConfirmDialog, { open: pendingDelete !== null, agentHandle: "forms-delete", title: t("Move to trash?"), body: pendingDelete ? (_jsxs("p", { children: [t("Move"), " \"", pendingDelete.name, "\" ", t("to trash? It will disappear from the site and from this list.")] })) : null, confirmLabel: t("Move to trash"), destructive: true, pending: pendingDelete !== null && rowSavingId === pendingDelete.id, onConfirm: removeForm, onCancel: cancelDelete }));
40
+ }
41
+ //# sourceMappingURL=FormsListParts.js.map
@@ -1,8 +1,10 @@
1
1
  import type { ComponentType, ReactNode } from 'react';
2
- import type { AdminFormsPort, FormsTrashPort, FormsEventsPort, FormsNavigationPort } from '../../ports.js';
2
+ import type { AdminFormsPort, FormsCatalogPort, FormsTrashPort, FormsEventsPort, FormsNavigationPort } from '../../ports.js';
3
3
  import type { FormsTranslator } from '../../models.js';
4
+ import type { UseAdminController } from '@jini-ai/core/contracts/admin-module';
4
5
  export interface FormsPorts {
5
6
  readonly formsApi: AdminFormsPort;
7
+ readonly formsCatalog: FormsCatalogPort;
6
8
  readonly formsTrash: FormsTrashPort;
7
9
  readonly formsEvents?: FormsEventsPort;
8
10
  readonly formsNavigation?: FormsNavigationPort;
@@ -38,4 +40,8 @@ export declare function useFormsOptions(_required?: Record<string, never>, _opti
38
40
  }>;
39
41
  };
40
42
  };
43
+ /** The controller hook the host injects through the module factory (owner answer 2026-11-17, J4:
44
+ * injected, never imported). The factory's Provider supplies it; outside it a hook fails loudly. */
45
+ export declare const FormsControllerContext: import("react").Context<UseAdminController | null>;
46
+ export declare const useFormsController: UseAdminController;
41
47
  //# sourceMappingURL=FormsPorts.hooks.d.ts.map