@schema-engine/forms 0.0.0-stage → 0.5.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 (614) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +69 -2
  3. package/dist/actions/index.d.ts +3 -0
  4. package/dist/actions/index.js +50 -0
  5. package/dist/actions/index.js.map +7 -0
  6. package/dist/actions/plugins/auto-save.plugin.d.ts +39 -0
  7. package/dist/actions/plugins/auto-save.plugin.js +10 -0
  8. package/dist/actions/plugins/auto-save.plugin.js.map +7 -0
  9. package/dist/actions/plugins/form-reset.plugin.d.ts +23 -0
  10. package/dist/actions/plugins/form-reset.plugin.js +9 -0
  11. package/dist/actions/plugins/form-reset.plugin.js.map +7 -0
  12. package/dist/actions/plugins/form-submit.plugin.d.ts +31 -0
  13. package/dist/actions/plugins/form-submit.plugin.js +9 -0
  14. package/dist/actions/plugins/form-submit.plugin.js.map +7 -0
  15. package/dist/actions/plugins/form-submit.registration.d.ts +22 -0
  16. package/dist/actions/plugins/form-submit.registration.js +8 -0
  17. package/dist/actions/plugins/form-submit.registration.js.map +7 -0
  18. package/dist/actions/plugins/gtm.plugin.d.ts +30 -0
  19. package/dist/actions/plugins/gtm.plugin.js +8 -0
  20. package/dist/actions/plugins/gtm.plugin.js.map +7 -0
  21. package/dist/actions/plugins/index.d.ts +16 -0
  22. package/dist/actions/plugins/index.js +45 -0
  23. package/dist/actions/plugins/index.js.map +7 -0
  24. package/dist/actions/plugins/notification.plugin.d.ts +32 -0
  25. package/dist/actions/plugins/notification.plugin.js +9 -0
  26. package/dist/actions/plugins/notification.plugin.js.map +7 -0
  27. package/dist/actions/plugins/notification.registration.d.ts +22 -0
  28. package/dist/actions/plugins/notification.registration.js +8 -0
  29. package/dist/actions/plugins/notification.registration.js.map +7 -0
  30. package/dist/actions/plugins/registrations.d.ts +17 -0
  31. package/dist/actions/plugins/registrations.js +14 -0
  32. package/dist/actions/plugins/registrations.js.map +7 -0
  33. package/dist/actions/triggers.d.ts +42 -0
  34. package/dist/actions/triggers.js +6 -0
  35. package/dist/actions/triggers.js.map +7 -0
  36. package/dist/actions/types.d.ts +16 -0
  37. package/dist/actions/types.js +1 -0
  38. package/dist/actions/types.js.map +7 -0
  39. package/dist/agent-tool/index.d.ts +54 -0
  40. package/dist/agent-tool/index.js +128 -0
  41. package/dist/agent-tool/index.js.map +7 -0
  42. package/dist/browser/action-registrations.d.ts +46 -0
  43. package/dist/browser/action-registrations.js +19 -0
  44. package/dist/browser/action-registrations.js.map +7 -0
  45. package/dist/browser/index.d.ts +4 -0
  46. package/dist/browser/index.js +36 -0
  47. package/dist/browser/index.js.map +7 -0
  48. package/dist/browser/tools/auto-save-storage.d.ts +20 -0
  49. package/dist/browser/tools/auto-save-storage.js +12 -0
  50. package/dist/browser/tools/auto-save-storage.js.map +7 -0
  51. package/dist/browser/tools/gdpr-consent.d.ts +32 -0
  52. package/dist/browser/tools/gdpr-consent.js +11 -0
  53. package/dist/browser/tools/gdpr-consent.js.map +7 -0
  54. package/dist/browser/tools/gtm-tracker.d.ts +7 -0
  55. package/dist/browser/tools/gtm-tracker.js +7 -0
  56. package/dist/browser/tools/gtm-tracker.js.map +7 -0
  57. package/dist/builder/form-authoring.d.ts +159 -0
  58. package/dist/builder/form-authoring.js +1 -0
  59. package/dist/builder/form-authoring.js.map +7 -0
  60. package/dist/builder/form-values.d.ts +158 -0
  61. package/dist/builder/form-values.js +0 -0
  62. package/dist/builder/form-values.js.map +7 -0
  63. package/dist/builder/index.d.ts +5 -0
  64. package/dist/builder/index.js +2 -0
  65. package/dist/builder/index.js.map +7 -0
  66. package/dist/builder/types.utils.d.ts +137 -0
  67. package/dist/builder/types.utils.js +1 -0
  68. package/dist/builder/types.utils.js.map +7 -0
  69. package/dist/chunk-237BHPDH.js +88 -0
  70. package/dist/chunk-237BHPDH.js.map +7 -0
  71. package/dist/chunk-25PLQDKN.js +45 -0
  72. package/dist/chunk-25PLQDKN.js.map +7 -0
  73. package/dist/chunk-2XWISGGM.js +8 -0
  74. package/dist/chunk-2XWISGGM.js.map +7 -0
  75. package/dist/chunk-2YKQAVI2.js +8 -0
  76. package/dist/chunk-2YKQAVI2.js.map +7 -0
  77. package/dist/chunk-3B7CJOF6.js +18 -0
  78. package/dist/chunk-3B7CJOF6.js.map +7 -0
  79. package/dist/chunk-3YLRJVVN.js +17 -0
  80. package/dist/chunk-3YLRJVVN.js.map +7 -0
  81. package/dist/chunk-4CUGHU36.js +58 -0
  82. package/dist/chunk-4CUGHU36.js.map +7 -0
  83. package/dist/chunk-4FELFUCD.js +0 -0
  84. package/dist/chunk-4FELFUCD.js.map +7 -0
  85. package/dist/chunk-4XPLSYTK.js +82 -0
  86. package/dist/chunk-4XPLSYTK.js.map +7 -0
  87. package/dist/chunk-5Y6U3MR3.js +54 -0
  88. package/dist/chunk-5Y6U3MR3.js.map +7 -0
  89. package/dist/chunk-6BAJHAGL.js +29 -0
  90. package/dist/chunk-6BAJHAGL.js.map +7 -0
  91. package/dist/chunk-6EYX257T.js +23 -0
  92. package/dist/chunk-6EYX257T.js.map +7 -0
  93. package/dist/chunk-6FUGK5HQ.js +26 -0
  94. package/dist/chunk-6FUGK5HQ.js.map +7 -0
  95. package/dist/chunk-6IZYNHZ3.js +118 -0
  96. package/dist/chunk-6IZYNHZ3.js.map +7 -0
  97. package/dist/chunk-6NV2JDGI.js +8 -0
  98. package/dist/chunk-6NV2JDGI.js.map +7 -0
  99. package/dist/chunk-6R2MBQPL.js +19 -0
  100. package/dist/chunk-6R2MBQPL.js.map +7 -0
  101. package/dist/chunk-7EQJUI5N.js +40 -0
  102. package/dist/chunk-7EQJUI5N.js.map +7 -0
  103. package/dist/chunk-A5VLMQAK.js +2780 -0
  104. package/dist/chunk-A5VLMQAK.js.map +7 -0
  105. package/dist/chunk-AUZ45XPE.js +27 -0
  106. package/dist/chunk-AUZ45XPE.js.map +7 -0
  107. package/dist/chunk-BIHEIJG3.js +0 -0
  108. package/dist/chunk-BIHEIJG3.js.map +7 -0
  109. package/dist/chunk-BKNWW4PK.js +0 -0
  110. package/dist/chunk-BKNWW4PK.js.map +7 -0
  111. package/dist/chunk-BLFLCSG3.js +71 -0
  112. package/dist/chunk-BLFLCSG3.js.map +7 -0
  113. package/dist/chunk-BYYGAGNH.js +0 -0
  114. package/dist/chunk-BYYGAGNH.js.map +7 -0
  115. package/dist/chunk-CANRZY5A.js +87 -0
  116. package/dist/chunk-CANRZY5A.js.map +7 -0
  117. package/dist/chunk-CAZPWBQ4.js +18 -0
  118. package/dist/chunk-CAZPWBQ4.js.map +7 -0
  119. package/dist/chunk-CMPOBBRV.js +10 -0
  120. package/dist/chunk-CMPOBBRV.js.map +7 -0
  121. package/dist/chunk-CRQWKC67.js +118 -0
  122. package/dist/chunk-CRQWKC67.js.map +7 -0
  123. package/dist/chunk-CRVXBWSY.js +70 -0
  124. package/dist/chunk-CRVXBWSY.js.map +7 -0
  125. package/dist/chunk-D6ZHV6AT.js +0 -0
  126. package/dist/chunk-D6ZHV6AT.js.map +7 -0
  127. package/dist/chunk-DP7SYLLI.js +206 -0
  128. package/dist/chunk-DP7SYLLI.js.map +7 -0
  129. package/dist/chunk-DVDKPY2A.js +12 -0
  130. package/dist/chunk-DVDKPY2A.js.map +7 -0
  131. package/dist/chunk-E4VONSLO.js +15 -0
  132. package/dist/chunk-E4VONSLO.js.map +7 -0
  133. package/dist/chunk-EEYGPPLU.js +185 -0
  134. package/dist/chunk-EEYGPPLU.js.map +7 -0
  135. package/dist/chunk-EI5TMJDC.js +56 -0
  136. package/dist/chunk-EI5TMJDC.js.map +7 -0
  137. package/dist/chunk-EQ5AIF3T.js +117 -0
  138. package/dist/chunk-EQ5AIF3T.js.map +7 -0
  139. package/dist/chunk-EZZHO6DQ.js +26 -0
  140. package/dist/chunk-EZZHO6DQ.js.map +7 -0
  141. package/dist/chunk-FUHLRG3M.js +130 -0
  142. package/dist/chunk-FUHLRG3M.js.map +7 -0
  143. package/dist/chunk-FVOL3ZOJ.js +101 -0
  144. package/dist/chunk-FVOL3ZOJ.js.map +7 -0
  145. package/dist/chunk-G33EUV7N.js +288 -0
  146. package/dist/chunk-G33EUV7N.js.map +7 -0
  147. package/dist/chunk-GH34XFCC.js +56 -0
  148. package/dist/chunk-GH34XFCC.js.map +7 -0
  149. package/dist/chunk-GKWRJ6H4.js +27 -0
  150. package/dist/chunk-GKWRJ6H4.js.map +7 -0
  151. package/dist/chunk-GQHMU3AR.js +907 -0
  152. package/dist/chunk-GQHMU3AR.js.map +7 -0
  153. package/dist/chunk-GRZU6F7Q.js +80 -0
  154. package/dist/chunk-GRZU6F7Q.js.map +7 -0
  155. package/dist/chunk-GT2LARKT.js +107 -0
  156. package/dist/chunk-GT2LARKT.js.map +7 -0
  157. package/dist/chunk-H4ABGAAG.js +60 -0
  158. package/dist/chunk-H4ABGAAG.js.map +7 -0
  159. package/dist/chunk-H63UHX42.js +93 -0
  160. package/dist/chunk-H63UHX42.js.map +7 -0
  161. package/dist/chunk-HIS4MGIR.js +8 -0
  162. package/dist/chunk-HIS4MGIR.js.map +7 -0
  163. package/dist/chunk-HPPFSWIV.js +213 -0
  164. package/dist/chunk-HPPFSWIV.js.map +7 -0
  165. package/dist/chunk-J2FC5K4B.js +87 -0
  166. package/dist/chunk-J2FC5K4B.js.map +7 -0
  167. package/dist/chunk-J5BSFDVK.js +123 -0
  168. package/dist/chunk-J5BSFDVK.js.map +7 -0
  169. package/dist/chunk-J7GSNWXT.js +151 -0
  170. package/dist/chunk-J7GSNWXT.js.map +7 -0
  171. package/dist/chunk-JA5ET6MC.js +550 -0
  172. package/dist/chunk-JA5ET6MC.js.map +7 -0
  173. package/dist/chunk-K22S7IZR.js +12 -0
  174. package/dist/chunk-K22S7IZR.js.map +7 -0
  175. package/dist/chunk-K5TMXCMY.js +139 -0
  176. package/dist/chunk-K5TMXCMY.js.map +7 -0
  177. package/dist/chunk-KE53GN4Q.js +246 -0
  178. package/dist/chunk-KE53GN4Q.js.map +7 -0
  179. package/dist/chunk-KFQEDSYI.js +24 -0
  180. package/dist/chunk-KFQEDSYI.js.map +7 -0
  181. package/dist/chunk-KH6QWB5Y.js +51 -0
  182. package/dist/chunk-KH6QWB5Y.js.map +7 -0
  183. package/dist/chunk-KLATKWUA.js +116 -0
  184. package/dist/chunk-KLATKWUA.js.map +7 -0
  185. package/dist/chunk-KSKWSUOB.js +17 -0
  186. package/dist/chunk-KSKWSUOB.js.map +7 -0
  187. package/dist/chunk-LFWEJXWE.js +68 -0
  188. package/dist/chunk-LFWEJXWE.js.map +7 -0
  189. package/dist/chunk-LMWJAD3B.js +24 -0
  190. package/dist/chunk-LMWJAD3B.js.map +7 -0
  191. package/dist/chunk-MD23VADH.js +92 -0
  192. package/dist/chunk-MD23VADH.js.map +7 -0
  193. package/dist/chunk-MKMJT3XR.js +0 -0
  194. package/dist/chunk-MKMJT3XR.js.map +7 -0
  195. package/dist/chunk-NJTLBSTR.js +82 -0
  196. package/dist/chunk-NJTLBSTR.js.map +7 -0
  197. package/dist/chunk-NJXKMF67.js +182 -0
  198. package/dist/chunk-NJXKMF67.js.map +7 -0
  199. package/dist/chunk-OBQBIOGN.js +16 -0
  200. package/dist/chunk-OBQBIOGN.js.map +7 -0
  201. package/dist/chunk-OLYHNFKC.js +82 -0
  202. package/dist/chunk-OLYHNFKC.js.map +7 -0
  203. package/dist/chunk-OR2L7EKO.js +33 -0
  204. package/dist/chunk-OR2L7EKO.js.map +7 -0
  205. package/dist/chunk-OUF57UZ7.js +28 -0
  206. package/dist/chunk-OUF57UZ7.js.map +7 -0
  207. package/dist/chunk-PBMM2N77.js +56 -0
  208. package/dist/chunk-PBMM2N77.js.map +7 -0
  209. package/dist/chunk-PCL2KNHC.js +6 -0
  210. package/dist/chunk-PCL2KNHC.js.map +7 -0
  211. package/dist/chunk-PH3LWLYN.js +49 -0
  212. package/dist/chunk-PH3LWLYN.js.map +7 -0
  213. package/dist/chunk-PHNMDWSK.js +9 -0
  214. package/dist/chunk-PHNMDWSK.js.map +7 -0
  215. package/dist/chunk-PN5EH6DM.js +36 -0
  216. package/dist/chunk-PN5EH6DM.js.map +7 -0
  217. package/dist/chunk-POCAINUE.js +42 -0
  218. package/dist/chunk-POCAINUE.js.map +7 -0
  219. package/dist/chunk-Q5LEK7CI.js +64 -0
  220. package/dist/chunk-Q5LEK7CI.js.map +7 -0
  221. package/dist/chunk-QH7VW7IY.js +0 -0
  222. package/dist/chunk-QH7VW7IY.js.map +7 -0
  223. package/dist/chunk-QLGM2AZW.js +173 -0
  224. package/dist/chunk-QLGM2AZW.js.map +7 -0
  225. package/dist/chunk-QT3EYUL5.js +85 -0
  226. package/dist/chunk-QT3EYUL5.js.map +7 -0
  227. package/dist/chunk-QYHOFLRX.js +43 -0
  228. package/dist/chunk-QYHOFLRX.js.map +7 -0
  229. package/dist/chunk-R3MBVWVI.js +127 -0
  230. package/dist/chunk-R3MBVWVI.js.map +7 -0
  231. package/dist/chunk-R6V3LH7F.js +67 -0
  232. package/dist/chunk-R6V3LH7F.js.map +7 -0
  233. package/dist/chunk-RB22U6HI.js +64 -0
  234. package/dist/chunk-RB22U6HI.js.map +7 -0
  235. package/dist/chunk-RQRQYYTB.js +34 -0
  236. package/dist/chunk-RQRQYYTB.js.map +7 -0
  237. package/dist/chunk-S5D2QE4G.js +53 -0
  238. package/dist/chunk-S5D2QE4G.js.map +7 -0
  239. package/dist/chunk-S7I76ISM.js +245 -0
  240. package/dist/chunk-S7I76ISM.js.map +7 -0
  241. package/dist/chunk-TBDZOQ2C.js +66 -0
  242. package/dist/chunk-TBDZOQ2C.js.map +7 -0
  243. package/dist/chunk-TSKELYW7.js +55 -0
  244. package/dist/chunk-TSKELYW7.js.map +7 -0
  245. package/dist/chunk-U3YHTQHR.js +215 -0
  246. package/dist/chunk-U3YHTQHR.js.map +7 -0
  247. package/dist/chunk-UGL3KNOT.js +42 -0
  248. package/dist/chunk-UGL3KNOT.js.map +7 -0
  249. package/dist/chunk-UN3DARLG.js +35 -0
  250. package/dist/chunk-UN3DARLG.js.map +7 -0
  251. package/dist/chunk-V5H7L5PJ.js +587 -0
  252. package/dist/chunk-V5H7L5PJ.js.map +7 -0
  253. package/dist/chunk-VGGERKV2.js +7 -0
  254. package/dist/chunk-VGGERKV2.js.map +7 -0
  255. package/dist/chunk-VVFXYY65.js +0 -0
  256. package/dist/chunk-VVFXYY65.js.map +7 -0
  257. package/dist/chunk-WLDCYUN6.js +161 -0
  258. package/dist/chunk-WLDCYUN6.js.map +7 -0
  259. package/dist/chunk-WMDTQS36.js +0 -0
  260. package/dist/chunk-WMDTQS36.js.map +7 -0
  261. package/dist/chunk-WUTGZYP4.js +290 -0
  262. package/dist/chunk-WUTGZYP4.js.map +7 -0
  263. package/dist/chunk-XKN3WWK3.js +0 -0
  264. package/dist/chunk-XKN3WWK3.js.map +7 -0
  265. package/dist/chunk-XQ5VJ4QO.js +62 -0
  266. package/dist/chunk-XQ5VJ4QO.js.map +7 -0
  267. package/dist/chunk-XQVKX47O.js +174 -0
  268. package/dist/chunk-XQVKX47O.js.map +7 -0
  269. package/dist/chunk-Y5CNB57V.js +22 -0
  270. package/dist/chunk-Y5CNB57V.js.map +7 -0
  271. package/dist/chunk-YDGH7DTL.js +18 -0
  272. package/dist/chunk-YDGH7DTL.js.map +7 -0
  273. package/dist/chunk-YIFUBPJ3.js +0 -0
  274. package/dist/chunk-YIFUBPJ3.js.map +7 -0
  275. package/dist/chunk-YUUDXRBW.js +212 -0
  276. package/dist/chunk-YUUDXRBW.js.map +7 -0
  277. package/dist/chunk-Z6DQLJS2.js +23 -0
  278. package/dist/chunk-Z6DQLJS2.js.map +7 -0
  279. package/dist/chunk-ZDEZ2FOC.js +81 -0
  280. package/dist/chunk-ZDEZ2FOC.js.map +7 -0
  281. package/dist/chunk-ZUYSGCEH.js +65 -0
  282. package/dist/chunk-ZUYSGCEH.js.map +7 -0
  283. package/dist/chunk-ZYP3MIH3.js +115 -0
  284. package/dist/chunk-ZYP3MIH3.js.map +7 -0
  285. package/dist/constraints/constraint-evaluator.d.ts +57 -0
  286. package/dist/constraints/constraint-evaluator.js +17 -0
  287. package/dist/constraints/constraint-evaluator.js.map +7 -0
  288. package/dist/constraints/index.d.ts +1 -0
  289. package/dist/constraints/index.js +17 -0
  290. package/dist/constraints/index.js.map +7 -0
  291. package/dist/csrf/index.d.ts +43 -0
  292. package/dist/csrf/index.js +43 -0
  293. package/dist/csrf/index.js.map +7 -0
  294. package/dist/engine/build-form-engine.d.ts +27 -0
  295. package/dist/engine/build-form-engine.js +58 -0
  296. package/dist/engine/build-form-engine.js.map +7 -0
  297. package/dist/engine/component-type.d.ts +19 -0
  298. package/dist/engine/component-type.js +6 -0
  299. package/dist/engine/component-type.js.map +7 -0
  300. package/dist/engine/create-form-engine.d.ts +100 -0
  301. package/dist/engine/create-form-engine.js +59 -0
  302. package/dist/engine/create-form-engine.js.map +7 -0
  303. package/dist/engine/form-action-context.d.ts +70 -0
  304. package/dist/engine/form-action-context.js +10 -0
  305. package/dist/engine/form-action-context.js.map +7 -0
  306. package/dist/engine/form-engine.d.ts +236 -0
  307. package/dist/engine/form-engine.js +61 -0
  308. package/dist/engine/form-engine.js.map +7 -0
  309. package/dist/engine/index.d.ts +12 -0
  310. package/dist/engine/index.js +124 -0
  311. package/dist/engine/index.js.map +7 -0
  312. package/dist/engine/schema-artifacts.d.ts +87 -0
  313. package/dist/engine/schema-artifacts.js +14 -0
  314. package/dist/engine/schema-artifacts.js.map +7 -0
  315. package/dist/engine/schema-metadata-catalog.d.ts +41 -0
  316. package/dist/engine/schema-metadata-catalog.js +6 -0
  317. package/dist/engine/schema-metadata-catalog.js.map +7 -0
  318. package/dist/engine/step-machine.d.ts +59 -0
  319. package/dist/engine/step-machine.js +32 -0
  320. package/dist/engine/step-machine.js.map +7 -0
  321. package/dist/engine/submission-schema.d.ts +53 -0
  322. package/dist/engine/submission-schema.js +22 -0
  323. package/dist/engine/submission-schema.js.map +7 -0
  324. package/dist/engine/value-validation.d.ts +237 -0
  325. package/dist/engine/value-validation.js +39 -0
  326. package/dist/engine/value-validation.js.map +7 -0
  327. package/dist/index.d.ts +76 -0
  328. package/dist/index.js +283 -0
  329. package/dist/index.js.map +7 -0
  330. package/dist/lib/authoring-catalog.d.ts +5 -0
  331. package/dist/lib/authoring-catalog.js +11 -0
  332. package/dist/lib/authoring-catalog.js.map +7 -0
  333. package/dist/lib/container-kind-of.d.ts +5 -0
  334. package/dist/lib/container-kind-of.js +6 -0
  335. package/dist/lib/container-kind-of.js.map +7 -0
  336. package/dist/lib/debounce.d.ts +19 -0
  337. package/dist/lib/debounce.js +6 -0
  338. package/dist/lib/debounce.js.map +7 -0
  339. package/dist/lib/deep-readonly.d.ts +12 -0
  340. package/dist/lib/deep-readonly.js +0 -0
  341. package/dist/lib/deep-readonly.js.map +7 -0
  342. package/dist/lib/element-children.d.ts +35 -0
  343. package/dist/lib/element-children.js +16 -0
  344. package/dist/lib/element-children.js.map +7 -0
  345. package/dist/lib/exported-action-envelope.d.ts +11 -0
  346. package/dist/lib/exported-action-envelope.js +7 -0
  347. package/dist/lib/exported-action-envelope.js.map +7 -0
  348. package/dist/lib/exported-rules.d.ts +14 -0
  349. package/dist/lib/exported-rules.js +6 -0
  350. package/dist/lib/exported-rules.js.map +7 -0
  351. package/dist/lib/field-ref.d.ts +13 -0
  352. package/dist/lib/field-ref.js +6 -0
  353. package/dist/lib/field-ref.js.map +7 -0
  354. package/dist/lib/field-scope.d.ts +121 -0
  355. package/dist/lib/field-scope.js +41 -0
  356. package/dist/lib/field-scope.js.map +7 -0
  357. package/dist/lib/form-fetch.d.ts +36 -0
  358. package/dist/lib/form-fetch.js +10 -0
  359. package/dist/lib/form-fetch.js.map +7 -0
  360. package/dist/lib/form-view.d.ts +33 -0
  361. package/dist/lib/form-view.js +12 -0
  362. package/dist/lib/form-view.js.map +7 -0
  363. package/dist/lib/frozen-copy.d.ts +9 -0
  364. package/dist/lib/frozen-copy.js +7 -0
  365. package/dist/lib/frozen-copy.js.map +7 -0
  366. package/dist/lib/is-plain-object.d.ts +2 -0
  367. package/dist/lib/is-plain-object.js +6 -0
  368. package/dist/lib/is-plain-object.js.map +7 -0
  369. package/dist/lib/logger.d.ts +2 -0
  370. package/dist/lib/logger.js +6 -0
  371. package/dist/lib/logger.js.map +7 -0
  372. package/dist/lib/normalized-form-config.d.ts +106 -0
  373. package/dist/lib/normalized-form-config.js +19 -0
  374. package/dist/lib/normalized-form-config.js.map +7 -0
  375. package/dist/lib/omit-paths.d.ts +11 -0
  376. package/dist/lib/omit-paths.js +7 -0
  377. package/dist/lib/omit-paths.js.map +7 -0
  378. package/dist/lib/path-values.d.ts +47 -0
  379. package/dist/lib/path-values.js +22 -0
  380. package/dist/lib/path-values.js.map +7 -0
  381. package/dist/lib/renderer-data-attributes.d.ts +10 -0
  382. package/dist/lib/renderer-data-attributes.js +6 -0
  383. package/dist/lib/renderer-data-attributes.js.map +7 -0
  384. package/dist/lib/reserved-path-keys.d.ts +10 -0
  385. package/dist/lib/reserved-path-keys.js +10 -0
  386. package/dist/lib/reserved-path-keys.js.map +7 -0
  387. package/dist/lib/resolve-appearance.d.ts +48 -0
  388. package/dist/lib/resolve-appearance.js +10 -0
  389. package/dist/lib/resolve-appearance.js.map +7 -0
  390. package/dist/lib/standard-json-schema.d.ts +27 -0
  391. package/dist/lib/standard-json-schema.js +8 -0
  392. package/dist/lib/standard-json-schema.js.map +7 -0
  393. package/dist/lib/standard-schema.d.ts +19 -0
  394. package/dist/lib/standard-schema.js +8 -0
  395. package/dist/lib/standard-schema.js.map +7 -0
  396. package/dist/lib/submission-shape.d.ts +60 -0
  397. package/dist/lib/submission-shape.js +14 -0
  398. package/dist/lib/submission-shape.js.map +7 -0
  399. package/dist/lib/validate-form/grid-checks.d.ts +57 -0
  400. package/dist/lib/validate-form/grid-checks.js +16 -0
  401. package/dist/lib/validate-form/grid-checks.js.map +7 -0
  402. package/dist/lib/validate-form/issues.d.ts +43 -0
  403. package/dist/lib/validate-form/issues.js +13 -0
  404. package/dist/lib/validate-form/issues.js.map +7 -0
  405. package/dist/lib/validate-form/options.d.ts +22 -0
  406. package/dist/lib/validate-form/options.js +0 -0
  407. package/dist/lib/validate-form/options.js.map +7 -0
  408. package/dist/lib/validate-form/parse-elements.d.ts +23 -0
  409. package/dist/lib/validate-form/parse-elements.js +21 -0
  410. package/dist/lib/validate-form/parse-elements.js.map +7 -0
  411. package/dist/lib/validate-form/parse-owner-actions.d.ts +14 -0
  412. package/dist/lib/validate-form/parse-owner-actions.js +10 -0
  413. package/dist/lib/validate-form/parse-owner-actions.js.map +7 -0
  414. package/dist/lib/validate-form/parse-view.d.ts +11 -0
  415. package/dist/lib/validate-form/parse-view.js +11 -0
  416. package/dist/lib/validate-form/parse-view.js.map +7 -0
  417. package/dist/lib/validate-form/schema-issues.d.ts +16 -0
  418. package/dist/lib/validate-form/schema-issues.js +8 -0
  419. package/dist/lib/validate-form/schema-issues.js.map +7 -0
  420. package/dist/lib/validate-form/step-checks.d.ts +18 -0
  421. package/dist/lib/validate-form/step-checks.js +15 -0
  422. package/dist/lib/validate-form/step-checks.js.map +7 -0
  423. package/dist/lib/validate-form/validation-error.d.ts +26 -0
  424. package/dist/lib/validate-form/validation-error.js +8 -0
  425. package/dist/lib/validate-form/validation-error.js.map +7 -0
  426. package/dist/lib/validate-form.d.ts +34 -0
  427. package/dist/lib/validate-form.js +62 -0
  428. package/dist/lib/validate-form.js.map +7 -0
  429. package/dist/lib/zod-json-schema.d.ts +33 -0
  430. package/dist/lib/zod-json-schema.js +10 -0
  431. package/dist/lib/zod-json-schema.js.map +7 -0
  432. package/dist/recipes/built-in-specs.d.ts +1832 -0
  433. package/dist/recipes/built-in-specs.js +28 -0
  434. package/dist/recipes/built-in-specs.js.map +7 -0
  435. package/dist/recipes/built-in.d.ts +2 -0
  436. package/dist/recipes/built-in.js +49 -0
  437. package/dist/recipes/built-in.js.map +7 -0
  438. package/dist/recipes/define-form-recipe.d.ts +10 -0
  439. package/dist/recipes/define-form-recipe.js +6 -0
  440. package/dist/recipes/define-form-recipe.js.map +7 -0
  441. package/dist/recipes/define-recipe-spec.d.ts +13 -0
  442. package/dist/recipes/define-recipe-spec.js +8 -0
  443. package/dist/recipes/define-recipe-spec.js.map +7 -0
  444. package/dist/recipes/index.d.ts +6 -0
  445. package/dist/recipes/index.js +43 -0
  446. package/dist/recipes/index.js.map +7 -0
  447. package/dist/recipes/protocol.d.ts +24 -0
  448. package/dist/recipes/protocol.js +11 -0
  449. package/dist/recipes/protocol.js.map +7 -0
  450. package/dist/recipes/slot-schemas.d.ts +128 -0
  451. package/dist/recipes/slot-schemas.js +24 -0
  452. package/dist/recipes/slot-schemas.js.map +7 -0
  453. package/dist/recipes/types.d.ts +55 -0
  454. package/dist/recipes/types.js +1 -0
  455. package/dist/recipes/types.js.map +7 -0
  456. package/dist/recipes/view-model.d.ts +93 -0
  457. package/dist/recipes/view-model.js +29 -0
  458. package/dist/recipes/view-model.js.map +7 -0
  459. package/dist/registries/index.d.ts +8 -0
  460. package/dist/registries/index.js +0 -0
  461. package/dist/registries/index.js.map +7 -0
  462. package/dist/runtime/create-form-runtime.d.ts +43 -0
  463. package/dist/runtime/create-form-runtime.js +41 -0
  464. package/dist/runtime/create-form-runtime.js.map +7 -0
  465. package/dist/runtime/index.d.ts +3 -0
  466. package/dist/runtime/index.js +44 -0
  467. package/dist/runtime/index.js.map +7 -0
  468. package/dist/runtime/submission-lifecycle.d.ts +65 -0
  469. package/dist/runtime/submission-lifecycle.js +6 -0
  470. package/dist/runtime/submission-lifecycle.js.map +7 -0
  471. package/dist/runtime/types.d.ts +172 -0
  472. package/dist/runtime/types.js +6 -0
  473. package/dist/runtime/types.js.map +7 -0
  474. package/dist/schemas/base-field.d.ts +450 -0
  475. package/dist/schemas/base-field.js +36 -0
  476. package/dist/schemas/base-field.js.map +7 -0
  477. package/dist/schemas/field-config.d.ts +36 -0
  478. package/dist/schemas/field-config.js +1 -0
  479. package/dist/schemas/field-config.js.map +7 -0
  480. package/dist/schemas/form-config-shape.d.ts +763 -0
  481. package/dist/schemas/form-config-shape.js +35 -0
  482. package/dist/schemas/form-config-shape.js.map +7 -0
  483. package/dist/schemas/form-config.d.ts +1288 -0
  484. package/dist/schemas/form-config.js +41 -0
  485. package/dist/schemas/form-config.js.map +7 -0
  486. package/dist/schemas/html-attributes.d.ts +12 -0
  487. package/dist/schemas/html-attributes.js +12 -0
  488. package/dist/schemas/html-attributes.js.map +7 -0
  489. package/dist/schemas/index.d.ts +5 -0
  490. package/dist/schemas/index.js +165 -0
  491. package/dist/schemas/index.js.map +7 -0
  492. package/dist/schemas/validation/async/cache.d.ts +39 -0
  493. package/dist/schemas/validation/async/cache.js +6 -0
  494. package/dist/schemas/validation/async/cache.js.map +7 -0
  495. package/dist/schemas/validation/async/handler.d.ts +21 -0
  496. package/dist/schemas/validation/async/handler.js +11 -0
  497. package/dist/schemas/validation/async/handler.js.map +7 -0
  498. package/dist/schemas/validation/async/index.d.ts +8 -0
  499. package/dist/schemas/validation/async/index.js +14 -0
  500. package/dist/schemas/validation/async/index.js.map +7 -0
  501. package/dist/schemas/validation/defaults.d.ts +6 -0
  502. package/dist/schemas/validation/defaults.js +12 -0
  503. package/dist/schemas/validation/defaults.js.map +7 -0
  504. package/dist/schemas/validation/dependencies.d.ts +52 -0
  505. package/dist/schemas/validation/dependencies.js +17 -0
  506. package/dist/schemas/validation/dependencies.js.map +7 -0
  507. package/dist/schemas/validation/empty.d.ts +1 -0
  508. package/dist/schemas/validation/empty.js +6 -0
  509. package/dist/schemas/validation/empty.js.map +7 -0
  510. package/dist/schemas/validation/errors.d.ts +44 -0
  511. package/dist/schemas/validation/errors.js +12 -0
  512. package/dist/schemas/validation/errors.js.map +7 -0
  513. package/dist/schemas/validation/index.d.ts +9 -0
  514. package/dist/schemas/validation/index.js +130 -0
  515. package/dist/schemas/validation/index.js.map +7 -0
  516. package/dist/schemas/validation/presets.d.ts +66 -0
  517. package/dist/schemas/validation/presets.js +6 -0
  518. package/dist/schemas/validation/presets.js.map +7 -0
  519. package/dist/schemas/validation/relations.d.ts +12 -0
  520. package/dist/schemas/validation/relations.js +8 -0
  521. package/dist/schemas/validation/relations.js.map +7 -0
  522. package/dist/schemas/validation/types.d.ts +817 -0
  523. package/dist/schemas/validation/types.js +64 -0
  524. package/dist/schemas/validation/types.js.map +7 -0
  525. package/dist/schemas/validation/utils.d.ts +76 -0
  526. package/dist/schemas/validation/utils.js +24 -0
  527. package/dist/schemas/validation/utils.js.map +7 -0
  528. package/dist/schemas/validation/validation-registry.d.ts +124 -0
  529. package/dist/schemas/validation/validation-registry.js +27 -0
  530. package/dist/schemas/validation/validation-registry.js.map +7 -0
  531. package/dist/server-errors/from-json-api-errors.d.ts +13 -0
  532. package/dist/server-errors/from-json-api-errors.js +10 -0
  533. package/dist/server-errors/from-json-api-errors.js.map +7 -0
  534. package/dist/server-errors/from-problem-details.d.ts +15 -0
  535. package/dist/server-errors/from-problem-details.js +10 -0
  536. package/dist/server-errors/from-problem-details.js.map +7 -0
  537. package/dist/server-errors/index.d.ts +8 -0
  538. package/dist/server-errors/index.js +17 -0
  539. package/dist/server-errors/index.js.map +7 -0
  540. package/dist/server-errors/shared.d.ts +34 -0
  541. package/dist/server-errors/shared.js +23 -0
  542. package/dist/server-errors/shared.js.map +7 -0
  543. package/dist/state-container/create-form-state-container.d.ts +17 -0
  544. package/dist/state-container/create-form-state-container.js +31 -0
  545. package/dist/state-container/create-form-state-container.js.map +7 -0
  546. package/dist/state-container/dirty.d.ts +11 -0
  547. package/dist/state-container/dirty.js +9 -0
  548. package/dist/state-container/dirty.js.map +7 -0
  549. package/dist/state-container/field-array.d.ts +41 -0
  550. package/dist/state-container/field-array.js +8 -0
  551. package/dist/state-container/field-array.js.map +7 -0
  552. package/dist/state-container/hydration.d.ts +21 -0
  553. package/dist/state-container/hydration.js +11 -0
  554. package/dist/state-container/hydration.js.map +7 -0
  555. package/dist/state-container/index.d.ts +16 -0
  556. package/dist/state-container/index.js +51 -0
  557. package/dist/state-container/index.js.map +7 -0
  558. package/dist/state-container/issue-text.d.ts +11 -0
  559. package/dist/state-container/issue-text.js +6 -0
  560. package/dist/state-container/issue-text.js.map +7 -0
  561. package/dist/state-container/row-ids.d.ts +34 -0
  562. package/dist/state-container/row-ids.js +19 -0
  563. package/dist/state-container/row-ids.js.map +7 -0
  564. package/dist/state-container/selectors.d.ts +33 -0
  565. package/dist/state-container/selectors.js +22 -0
  566. package/dist/state-container/selectors.js.map +7 -0
  567. package/dist/state-container/stale-results.d.ts +28 -0
  568. package/dist/state-container/stale-results.js +9 -0
  569. package/dist/state-container/stale-results.js.map +7 -0
  570. package/dist/state-container/state-tree.d.ts +56 -0
  571. package/dist/state-container/state-tree.js +33 -0
  572. package/dist/state-container/state-tree.js.map +7 -0
  573. package/dist/state-container/submission.d.ts +45 -0
  574. package/dist/state-container/submission.js +26 -0
  575. package/dist/state-container/submission.js.map +7 -0
  576. package/dist/state-container/types.d.ts +404 -0
  577. package/dist/state-container/types.js +6 -0
  578. package/dist/state-container/types.js.map +7 -0
  579. package/dist/state-container/value-tree.d.ts +56 -0
  580. package/dist/state-container/value-tree.js +34 -0
  581. package/dist/state-container/value-tree.js.map +7 -0
  582. package/dist/testing/assert.d.ts +92 -0
  583. package/dist/testing/assert.js +42 -0
  584. package/dist/testing/assert.js.map +7 -0
  585. package/dist/testing/form-state-container-conformance.d.ts +63 -0
  586. package/dist/testing/form-state-container-conformance.js +44 -0
  587. package/dist/testing/form-state-container-conformance.js.map +7 -0
  588. package/dist/testing/index.d.ts +8 -0
  589. package/dist/testing/index.js +36 -0
  590. package/dist/testing/index.js.map +7 -0
  591. package/dist/types/actions.d.ts +75 -0
  592. package/dist/types/actions.js +1 -0
  593. package/dist/types/actions.js.map +7 -0
  594. package/dist/types/categories.d.ts +21 -0
  595. package/dist/types/categories.js +8 -0
  596. package/dist/types/categories.js.map +7 -0
  597. package/dist/types/define-element.d.ts +73 -0
  598. package/dist/types/define-element.js +8 -0
  599. package/dist/types/define-element.js.map +7 -0
  600. package/dist/types/index.d.ts +10 -0
  601. package/dist/types/index.js +17 -0
  602. package/dist/types/index.js.map +7 -0
  603. package/dist/types/metadata.d.ts +14 -0
  604. package/dist/types/metadata.js +1 -0
  605. package/dist/types/metadata.js.map +7 -0
  606. package/dist/types/registration.d.ts +142 -0
  607. package/dist/types/registration.js +1 -0
  608. package/dist/types/registration.js.map +7 -0
  609. package/package.json +113 -3
  610. package/skill/SKILL.md +79 -0
  611. package/skill/reference/forms-actions.md +51 -0
  612. package/skill/reference/forms-submission.md +44 -0
  613. package/skill/reference/forms-validation.md +91 -0
  614. package/skill/reference/forms.md +180 -0
@@ -0,0 +1,27 @@
1
+ import { type CsrfPolicy, type FormFetch } from '../lib/form-fetch.js';
2
+ import type { FormIssueFormatter } from '../state-container/types.js';
3
+ import type { ActionRegistrationConstraint, ElementRegistrationConstraint, RecipeRegistrationConstraint } from '../builder/types.utils.js';
4
+ import type { ValidationRegistrationConstraint } from '../schemas/validation/types.js';
5
+ import { FormEngine } from './form-engine.js';
6
+ import { SchemaMetadataCatalog } from './schema-metadata-catalog.js';
7
+ import { type LayoutInput } from '@schema-engine/layout';
8
+ export type FormEngineRegistrationLists = {
9
+ elements?: readonly ElementRegistrationConstraint[];
10
+ recipes?: readonly RecipeRegistrationConstraint[];
11
+ actions?: readonly ActionRegistrationConstraint[];
12
+ validations?: readonly ValidationRegistrationConstraint[];
13
+ catalog?: SchemaMetadataCatalog;
14
+ defaultWizardRecipe?: string;
15
+ formatIssue?: FormIssueFormatter;
16
+ layout?: LayoutInput;
17
+ fetch?: FormFetch;
18
+ csrf?: CsrfPolicy;
19
+ };
20
+ /**
21
+ * Single construction path for {@link createFormEngine} and {@link FormEngine.extend}.
22
+ * Later duplicate `$type` values overwrite earlier ones (last-wins).
23
+ */
24
+ export declare function buildFormEngine(lists: FormEngineRegistrationLists): FormEngine<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, import("../builder/types.utils.js").EngineOutputMaps, {
25
+ size: "default" | "compact" | "comfortable";
26
+ surface: "flat" | "elevated" | "outlined";
27
+ }>;
@@ -0,0 +1,58 @@
1
+ import {
2
+ buildFormEngine
3
+ } from "../chunk-V5H7L5PJ.js";
4
+ import "../chunk-ZYP3MIH3.js";
5
+ import "../chunk-PBMM2N77.js";
6
+ import "../chunk-DVDKPY2A.js";
7
+ import "../chunk-POCAINUE.js";
8
+ import "../chunk-DP7SYLLI.js";
9
+ import "../chunk-NJXKMF67.js";
10
+ import "../chunk-6R2MBQPL.js";
11
+ import "../chunk-GRZU6F7Q.js";
12
+ import "../chunk-Q5LEK7CI.js";
13
+ import "../chunk-PN5EH6DM.js";
14
+ import "../chunk-YUUDXRBW.js";
15
+ import "../chunk-KSKWSUOB.js";
16
+ import "../chunk-RQRQYYTB.js";
17
+ import "../chunk-AUZ45XPE.js";
18
+ import "../chunk-CAZPWBQ4.js";
19
+ import "../chunk-S5D2QE4G.js";
20
+ import "../chunk-EI5TMJDC.js";
21
+ import "../chunk-2YKQAVI2.js";
22
+ import "../chunk-UGL3KNOT.js";
23
+ import "../chunk-EZZHO6DQ.js";
24
+ import "../chunk-HPPFSWIV.js";
25
+ import "../chunk-25PLQDKN.js";
26
+ import "../chunk-7EQJUI5N.js";
27
+ import "../chunk-XQ5VJ4QO.js";
28
+ import "../chunk-237BHPDH.js";
29
+ import "../chunk-MKMJT3XR.js";
30
+ import "../chunk-XQVKX47O.js";
31
+ import "../chunk-4CUGHU36.js";
32
+ import "../chunk-6IZYNHZ3.js";
33
+ import "../chunk-FVOL3ZOJ.js";
34
+ import "../chunk-LMWJAD3B.js";
35
+ import "../chunk-OUF57UZ7.js";
36
+ import "../chunk-G33EUV7N.js";
37
+ import "../chunk-J7GSNWXT.js";
38
+ import "../chunk-MD23VADH.js";
39
+ import "../chunk-OLYHNFKC.js";
40
+ import "../chunk-KE53GN4Q.js";
41
+ import "../chunk-GH34XFCC.js";
42
+ import "../chunk-NJTLBSTR.js";
43
+ import "../chunk-VGGERKV2.js";
44
+ import "../chunk-3B7CJOF6.js";
45
+ import "../chunk-KLATKWUA.js";
46
+ import "../chunk-YDGH7DTL.js";
47
+ import "../chunk-S7I76ISM.js";
48
+ import "../chunk-CRQWKC67.js";
49
+ import "../chunk-QLGM2AZW.js";
50
+ import "../chunk-ZUYSGCEH.js";
51
+ import "../chunk-OR2L7EKO.js";
52
+ import "../chunk-6BAJHAGL.js";
53
+ import "../chunk-6NV2JDGI.js";
54
+ import "../chunk-3YLRJVVN.js";
55
+ import "../chunk-CMPOBBRV.js";
56
+ export {
57
+ buildFormEngine
58
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Stable component kind identifiers shared across registries, builders, and
3
+ * schema metadata.
4
+ *
5
+ * Keeping this outside `form-engine` prevents lower-level schema helpers from
6
+ * depending on the runtime engine module, which keeps the extraction boundary
7
+ * cleaner.
8
+ */
9
+ export declare const ComponentType: {
10
+ readonly Element: "element";
11
+ readonly Recipe: "recipe";
12
+ readonly Action: "action";
13
+ readonly Axis: "axis";
14
+ readonly Validation: "validation";
15
+ };
16
+ /**
17
+ * Union of all supported component kind identifiers.
18
+ */
19
+ export type ComponentType = (typeof ComponentType)[keyof typeof ComponentType];
@@ -0,0 +1,6 @@
1
+ import {
2
+ ComponentType
3
+ } from "../chunk-DVDKPY2A.js";
4
+ export {
5
+ ComponentType
6
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,100 @@
1
+ import type { CsrfPolicy, FormFetch } from '../lib/form-fetch.js';
2
+ import type { FormIssueFormatter } from '../state-container/types.js';
3
+ import type { MergedRegistrationMap, MergedOutputMap, MergedValueMap, MergedActionRegistrationMap, ElementRegistrationConstraint, RecipeRegistrationConstraint, ActionRegistrationConstraint, ValidationRegistrationConstraint } from '../builder/types.utils.js';
4
+ import type { FormEngine } from './form-engine';
5
+ import type { SchemaMetadataCatalog } from './schema-metadata-catalog';
6
+ import type { LayoutAxes, LayoutInput } from '@schema-engine/layout';
7
+ export interface CreateFormEngineOptions<TElements extends readonly ElementRegistrationConstraint[] = readonly [], TRecipes extends readonly RecipeRegistrationConstraint[] = readonly [], TActions extends readonly ActionRegistrationConstraint[] = readonly [], TLayout extends LayoutInput = Record<never, never>> {
8
+ elements?: TElements;
9
+ recipes?: TRecipes;
10
+ actions?: TActions;
11
+ /**
12
+ * Validation rules to add to the built-in ones and those the elements declare.
13
+ *
14
+ * @remarks
15
+ * Stored with the other validations in a read-only registry: a later registration with the same
16
+ * `$type` replaces an earlier one without a warning, and each `schema` must be a Standard Schema or
17
+ * the build throws. These come after the validations elements declare, so they win over them.
18
+ * {@link FormEngine.extend} inherits them. Rule configs are not typed per engine: the rule objects in
19
+ * a field's `rules` keep their `$type` string.
20
+ */
21
+ validations?: readonly ValidationRegistrationConstraint[];
22
+ /**
23
+ * Extra schema metadata entries. The engine copies the catalog and writes every
24
+ * registration's entry over it, so an entry with a registration's id is replaced.
25
+ */
26
+ catalog?: SchemaMetadataCatalog;
27
+ /**
28
+ * Recipe `validateForm` writes as `view` for a multi-step form that omits one. Defaults to `'bare-controls'`.
29
+ *
30
+ * @remarks
31
+ * Must name a registered `wizard`-kind recipe, or the engine build throws. {@link FormEngine.extend}
32
+ * inherits it. Without this option and without a registered `bare-controls`, a multi-step form
33
+ * without `view` stays without one and `validateForm` warns.
34
+ */
35
+ defaultWizardRecipe?: string;
36
+ /**
37
+ * Turns an issue into the text to show: the one formatter both renderer bindings read.
38
+ *
39
+ * @remarks
40
+ * The engine reports what is wrong (`type`, `ruleId`, `params`) and owns no text, so the application's
41
+ * i18n layer supplies it here once, as `(issue, { path }) => string`. A renderer or provider may still pass
42
+ * its own for one form, and the issue's own `message` is the fallback. {@link FormEngine.extend} inherits it.
43
+ */
44
+ formatIssue?: FormIssueFormatter;
45
+ /**
46
+ * The layout theme: a compiled theme from `createLayoutTheme`, or inline `{ grid, appearance }` options.
47
+ *
48
+ * @remarks
49
+ * `grid` is the grid vocabulary (breakpoint thresholds, gap tokens, default min column width).
50
+ * `appearance` is the named axes a form picks values on, over the built-in `size`
51
+ * (`compact | default | comfortable`) and `surface` (`flat | outlined | elevated`); an axis lists
52
+ * its values by name, or maps each value to the CSS custom properties it sets. Elements and
53
+ * recipe slots declare which axes they support.
54
+ *
55
+ * Pass one compiled theme to several engines and they share its `data-se-theme` and stylesheet,
56
+ * so an embedded form matches its page. Inline options compile a theme of the engine's own, with
57
+ * the renderer's `data-se-*` attribute names reserved so an axis cannot reuse one.
58
+ * {@link FormEngine.extend} inherits it.
59
+ */
60
+ layout?: TLayout;
61
+ /**
62
+ * The request function every request the engine makes goes through; the global `fetch` by default.
63
+ *
64
+ * @remarks
65
+ * Today that is the `async` validation rule, and actions receive it as `context.fetch`. It is exposed as
66
+ * {@link FormEngine.fetch}, with the CSRF policy applied. {@link FormEngine.extend} inherits it.
67
+ */
68
+ fetch?: FormFetch;
69
+ /**
70
+ * Where a CSRF token comes from, from `csrf.fromMeta`, `csrf.fromCookie` or `csrf.custom` of `@schema-engine/forms/csrf`.
71
+ *
72
+ * @remarks
73
+ * Off unless set. The engine's `fetch` then adds the token as the policy's header to same-origin requests with an
74
+ * unsafe method, and a binding reads the policy with {@link FormEngine.getCsrf} to add a hidden input to a native
75
+ * post. The token is read at request time and is never part of the config, the payload or the submitted values.
76
+ * {@link FormEngine.extend} inherits it.
77
+ */
78
+ csrf?: CsrfPolicy;
79
+ }
80
+ /** Options for {@link FormEngine.extend}; layout theme and default wizard recipe are always inherited from the source engine. */
81
+ export type ExtendFormEngineOptions<TElements extends readonly ElementRegistrationConstraint[] = readonly [], TRecipes extends readonly RecipeRegistrationConstraint[] = readonly [], TActions extends readonly ActionRegistrationConstraint[] = readonly []> = Omit<CreateFormEngineOptions<TElements, TRecipes, TActions>, 'layout' | 'defaultWizardRecipe' | 'formatIssue' | 'fetch' | 'csrf'>;
82
+ /** {@link FormEngine} specialization produced from registration lists. */
83
+ export type FormEngineFromOptions<TElements extends readonly ElementRegistrationConstraint[], TRecipes extends readonly RecipeRegistrationConstraint[], TActions extends readonly ActionRegistrationConstraint[], TLayout extends LayoutInput = Record<never, never>> = FormEngine<MergedRegistrationMap<TElements>, MergedRegistrationMap<TRecipes>, MergedActionRegistrationMap<TActions>, {
84
+ elements: MergedOutputMap<TElements>;
85
+ recipes: MergedOutputMap<TRecipes>;
86
+ actions: MergedOutputMap<TActions>;
87
+ values: MergedValueMap<TElements>;
88
+ }, LayoutAxes<TLayout>>;
89
+ /**
90
+ * Create an immutable {@link FormEngine} from declarative registration arrays.
91
+ *
92
+ * Duplicate `$type` values follow last-wins semantics at runtime. For typing,
93
+ * last-wins applies to tuples and inline arrays; open `T[]` values use a union
94
+ * of configs for the same `$type`. Spread shared barrels and append overrides:
95
+ *
96
+ * ```ts
97
+ * createFormEngine({ elements: [...schemaFormRegistrations, customInput] });
98
+ * ```
99
+ */
100
+ export declare function createFormEngine<const TElements extends readonly ElementRegistrationConstraint[] = readonly [], const TRecipes extends readonly RecipeRegistrationConstraint[] = readonly [], const TActions extends readonly ActionRegistrationConstraint[] = readonly [], const TLayout extends LayoutInput = Record<never, never>>(options?: CreateFormEngineOptions<TElements, TRecipes, TActions, TLayout>): FormEngineFromOptions<TElements, TRecipes, TActions, TLayout>;
@@ -0,0 +1,59 @@
1
+ import {
2
+ createFormEngine
3
+ } from "../chunk-6EYX257T.js";
4
+ import "../chunk-V5H7L5PJ.js";
5
+ import "../chunk-ZYP3MIH3.js";
6
+ import "../chunk-PBMM2N77.js";
7
+ import "../chunk-DVDKPY2A.js";
8
+ import "../chunk-POCAINUE.js";
9
+ import "../chunk-DP7SYLLI.js";
10
+ import "../chunk-NJXKMF67.js";
11
+ import "../chunk-6R2MBQPL.js";
12
+ import "../chunk-GRZU6F7Q.js";
13
+ import "../chunk-Q5LEK7CI.js";
14
+ import "../chunk-PN5EH6DM.js";
15
+ import "../chunk-YUUDXRBW.js";
16
+ import "../chunk-KSKWSUOB.js";
17
+ import "../chunk-RQRQYYTB.js";
18
+ import "../chunk-AUZ45XPE.js";
19
+ import "../chunk-CAZPWBQ4.js";
20
+ import "../chunk-S5D2QE4G.js";
21
+ import "../chunk-EI5TMJDC.js";
22
+ import "../chunk-2YKQAVI2.js";
23
+ import "../chunk-UGL3KNOT.js";
24
+ import "../chunk-EZZHO6DQ.js";
25
+ import "../chunk-HPPFSWIV.js";
26
+ import "../chunk-25PLQDKN.js";
27
+ import "../chunk-7EQJUI5N.js";
28
+ import "../chunk-XQ5VJ4QO.js";
29
+ import "../chunk-237BHPDH.js";
30
+ import "../chunk-MKMJT3XR.js";
31
+ import "../chunk-XQVKX47O.js";
32
+ import "../chunk-4CUGHU36.js";
33
+ import "../chunk-6IZYNHZ3.js";
34
+ import "../chunk-FVOL3ZOJ.js";
35
+ import "../chunk-LMWJAD3B.js";
36
+ import "../chunk-OUF57UZ7.js";
37
+ import "../chunk-G33EUV7N.js";
38
+ import "../chunk-J7GSNWXT.js";
39
+ import "../chunk-MD23VADH.js";
40
+ import "../chunk-OLYHNFKC.js";
41
+ import "../chunk-KE53GN4Q.js";
42
+ import "../chunk-GH34XFCC.js";
43
+ import "../chunk-NJTLBSTR.js";
44
+ import "../chunk-VGGERKV2.js";
45
+ import "../chunk-3B7CJOF6.js";
46
+ import "../chunk-KLATKWUA.js";
47
+ import "../chunk-YDGH7DTL.js";
48
+ import "../chunk-S7I76ISM.js";
49
+ import "../chunk-CRQWKC67.js";
50
+ import "../chunk-QLGM2AZW.js";
51
+ import "../chunk-ZUYSGCEH.js";
52
+ import "../chunk-OR2L7EKO.js";
53
+ import "../chunk-6BAJHAGL.js";
54
+ import "../chunk-6NV2JDGI.js";
55
+ import "../chunk-3YLRJVVN.js";
56
+ import "../chunk-CMPOBBRV.js";
57
+ export {
58
+ createFormEngine
59
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,70 @@
1
+ import type { FormFetch } from '../lib/form-fetch';
2
+ import type { BuilderActionBaseContext } from '../types/index.js';
3
+ import type { FormStateError } from '../state-container/types.js';
4
+ /**
5
+ * Renderer form state in the engine's shape.
6
+ *
7
+ * @remarks
8
+ * `errors` is flat, one entry per dotted field path, so `address.street` is read as
9
+ * `errors['address.street']` in every renderer and a container and a row inside it
10
+ * can both fail, and `touched` is flat the same way. A renderer that keeps them in another shape
11
+ * converts them before building the context.
12
+ *
13
+ * `isValid` is the snapshot's: true when no error is recorded, in every renderer. It says
14
+ * nothing about fields no validation has reached; `context.form.checkValidity()` answers for
15
+ * the current values.
16
+ */
17
+ export interface FormActionContextFormState {
18
+ /** Whether no error is recorded for a path that takes part, as `snapshot.isValid` says. */
19
+ isValid: boolean;
20
+ /** Errors by dotted field path, as `validateFormValues` returns them. */
21
+ errors: Readonly<Record<string, FormStateError>>;
22
+ /** Touched fields by dotted path, `true` at each field the user has touched. */
23
+ touched: Readonly<Partial<Record<string, boolean>>>;
24
+ submitCount: number;
25
+ }
26
+ interface BuildFormActionContextOptions<TForm extends BuilderActionBaseContext['form']> {
27
+ config: {
28
+ id?: string;
29
+ };
30
+ values: Record<string, unknown>;
31
+ formState: FormActionContextFormState;
32
+ /** The current step: its id, its position among the steps that are not skipped and how many there are. */
33
+ step: {
34
+ id: string;
35
+ position: number;
36
+ total: number;
37
+ };
38
+ mountedAt: number;
39
+ form: TForm;
40
+ /** The engine's `fetch`, which the context hands to actions. */
41
+ fetch: FormFetch;
42
+ }
43
+ /**
44
+ * Builds the framework-neutral action context used by form action dispatch.
45
+ *
46
+ * @remarks
47
+ * Step start times are kept per form instance and reset when its current step changes.
48
+ * `userInteractions` counts touched fields plus submissions.
49
+ */
50
+ export declare function buildFormActionContext<TForm extends BuilderActionBaseContext['form']>({ config, values, formState, step, mountedAt, form, fetch, }: BuildFormActionContextOptions<TForm>): BuilderActionBaseContext;
51
+ interface ActionScopes<TAction> {
52
+ actions?: readonly TAction[];
53
+ steps: readonly {
54
+ id: string;
55
+ actions?: readonly TAction[];
56
+ }[];
57
+ }
58
+ /**
59
+ * Lists the actions a trigger dispatches while the step `stepId` is current: the form's `actions`,
60
+ * then that step's.
61
+ *
62
+ * @remarks
63
+ * The runtime dispatches `step_leave` while the step being left is current and `step_change` and
64
+ * `step_enter` once the entered step is, so a step's actions see the step triggers of navigation
65
+ * into and out of that step, plus every other trigger fired while it is current.
66
+ */
67
+ export declare function collectStepActions<TAction>(config: ActionScopes<TAction>, stepId: string): TAction[];
68
+ /** Whether the form or any of its steps configures an action. */
69
+ export declare function hasConfiguredActions(config: ActionScopes<unknown>): boolean;
70
+ export {};
@@ -0,0 +1,10 @@
1
+ import {
2
+ buildFormActionContext,
3
+ collectStepActions,
4
+ hasConfiguredActions
5
+ } from "../chunk-5Y6U3MR3.js";
6
+ export {
7
+ buildFormActionContext,
8
+ collectStepActions,
9
+ hasConfiguredActions
10
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,236 @@
1
+ import type { CsrfPolicy, FormFetch } from '../lib/form-fetch.js';
2
+ import type { FormIssueFormatter } from '../state-container/types.js';
3
+ import type { AnyActionRegistration, AnyElementRegistration, AnyRecipeRegistration } from '../types/registration.js';
4
+ import type { ActionRegistrationRegistry, ElementRegistry, RecipeRegistry } from '../registries/index.js';
5
+ import type { StandardJSONSchemaV1 } from '../lib/standard-json-schema.js';
6
+ import type { StandardSchemaV1 } from '@standard-schema/spec';
7
+ import * as z from 'zod/mini';
8
+ import type { FormEngineSchemaArtifacts } from './schema-artifacts';
9
+ import { type FormValidationResult } from '../lib/validate-form.js';
10
+ import type { NormalizedElementConfig, NormalizedFormConfig, ValuesBrand } from '../lib/normalized-form-config.js';
11
+ import type { ExactFormAppearance, ExactViewConfig, FormAuthoringInput } from '../builder/form-authoring.js';
12
+ import type { LastWinsMerge, EngineOutputMaps, MergedOutputMap, MergedValueMap, MergedRegistrationMap, MergedActionRegistrationMap, ElementRegistrationConstraint, RecipeRegistrationConstraint, ActionRegistrationConstraint } from '../builder/types.utils.js';
13
+ import type { ExtendFormEngineOptions } from './create-form-engine';
14
+ import type { ValuesOf } from '../builder/form-values.js';
15
+ import type { FormValues } from '../runtime/types.js';
16
+ import { SchemaMetadataCatalog } from './schema-metadata-catalog';
17
+ import type { LayoutTheme, ResolvedAppearanceAxes } from '@schema-engine/layout';
18
+ import type { ValidationRegistry } from '../schemas/validation/validation-registry.js';
19
+ import type { ValidationRegistrationConstraint } from '../schemas/validation/types.js';
20
+ import type { RecipeDescriptor, ViewCatalog } from '../recipes/types.js';
21
+ import { type SubmissionSchema, type SubmissionSchemaConfig } from './submission-schema';
22
+ export * from './component-type';
23
+ /**
24
+ * Engine registries - internal storage for all registered components.
25
+ */
26
+ export interface EngineRegistries {
27
+ elements: ElementRegistry;
28
+ recipes: RecipeRegistry;
29
+ actions: ActionRegistrationRegistry;
30
+ schemaArtifacts: FormEngineSchemaArtifacts;
31
+ layout: LayoutTheme;
32
+ validationRegistry: ValidationRegistry;
33
+ /** The validations passed to `createFormEngine`, kept so {@link FormEngine.extend} can rebuild the registry. */
34
+ validations: readonly ValidationRegistrationConstraint[];
35
+ defaultWizardRecipe?: string;
36
+ formatIssue?: FormIssueFormatter;
37
+ /** The engine's request function, with the CSRF policy applied. */
38
+ fetch: FormFetch;
39
+ /** The `fetch` given to `createFormEngine`, without the policy, so {@link FormEngine.extend} can rebuild. */
40
+ baseFetch?: FormFetch;
41
+ csrf?: CsrfPolicy;
42
+ }
43
+ /** What `validateForm` takes beside the config: the application's schema of the submitted values. */
44
+ export interface ValidateFormValuesOption<TSchema extends StandardSchemaV1 = StandardSchemaV1> {
45
+ readonly values: TSchema;
46
+ }
47
+ export declare class FormEngine<TElements extends Record<string, unknown> = Record<string, unknown>, TRecipes extends Record<string, unknown> = Record<string, unknown>, TActions extends Record<string, unknown> = Record<string, unknown>, TOutputs extends EngineOutputMaps = EngineOutputMaps, TAppearance extends Record<string, string> = ResolvedAppearanceAxes> {
48
+ private readonly registries;
49
+ private readonly schemaArtifacts;
50
+ private readonly layout;
51
+ private readonly validationRegistry;
52
+ private readonly submissionSchemas;
53
+ /**
54
+ * Every request the engine makes goes through this: the `fetch` given to `createFormEngine`, or the global one,
55
+ * with the CSRF policy applied. Bindings and actions use it (`context.fetch`) so no one remembers a token.
56
+ */
57
+ readonly fetch: FormFetch;
58
+ /**
59
+ * @remarks
60
+ * Shares the registries it receives instead of copying them. They are
61
+ * read-only, so engines built by `extend` can share them safely. Construct
62
+ * engines with `createFormEngine`; passing a registry that changes later is
63
+ * unsupported.
64
+ */
65
+ constructor(registries: EngineRegistries);
66
+ getElement(id: string): AnyElementRegistration | undefined;
67
+ getAllElements(): AnyElementRegistration[];
68
+ getElementIds(): string[];
69
+ hasElement(id: string): boolean;
70
+ getRecipe(id: string): AnyRecipeRegistration | undefined;
71
+ getAllRecipes(): AnyRecipeRegistration[];
72
+ getRecipeIds(): string[];
73
+ hasRecipe(id: string): boolean;
74
+ /**
75
+ * The engine's immutable layout theme: grid vocabulary, appearance vocabulary, one id and one stylesheet.
76
+ *
77
+ * @remarks
78
+ * Compiled once when the engine is built (or taken as given from `createFormEngine({ layout })`).
79
+ * Renderers emit `css` inside the rendered form markup, so SSR output is styled with no FOUC and
80
+ * no runtime injection, and put `id` on the form, grid and item elements as `data-se-theme`.
81
+ * Engines built on the same theme share its id; React hoists the shared stylesheet to one
82
+ * element, while Radiant inlines an identical copy per form.
83
+ */
84
+ getLayout(): LayoutTheme;
85
+ /** The formatter of issues given to `createFormEngine`, which both renderer bindings read; `undefined` when none was. */
86
+ getIssueFormatter(): FormIssueFormatter | undefined;
87
+ /** The CSRF policy given to `createFormEngine`, for a binding that adds a hidden input to a native post; `undefined` when there is none. */
88
+ getCsrf(): CsrfPolicy | undefined;
89
+ getValidationRegistry(): ValidationRegistry;
90
+ getAction(id: string): AnyActionRegistration | undefined;
91
+ getAllActions(): AnyActionRegistration[];
92
+ getActionTypes(): string[];
93
+ hasAction(id: string): boolean;
94
+ getSummary(): {
95
+ elements: {
96
+ count: number;
97
+ ids: string[];
98
+ };
99
+ recipes: {
100
+ count: number;
101
+ ids: string[];
102
+ };
103
+ actions: {
104
+ count: number;
105
+ types: string[];
106
+ };
107
+ };
108
+ /**
109
+ * Validate external JSON against this engine's registrations.
110
+ * Applies defaults and schema transforms. Prefer {@link defineForm} when authoring in TypeScript.
111
+ * Returns a frozen {@link NormalizedFormConfig} owned by this engine.
112
+ *
113
+ * @remarks
114
+ * A config that arrives as JSON cannot be typed by inference, so the application binds the schema of what it
115
+ * submits with `values`: the runtime parses a submission with it after the one derived from the elements, and
116
+ * the values type of the form is its output. Without `values`, `onSubmit` receives {@link FormValues}, still
117
+ * checked at runtime by {@link FormEngine.submissionSchema}. A form that is already normalized keeps its own values
118
+ * type, and anything else (JSON, an authoring object) gives `FormValues`, so it is not a form of a narrower type: the
119
+ * values type is a claim only a normalized form can make, and naming one for plain input is a type error.
120
+ */
121
+ validateForm<TValues extends FormValues = FormValues>(config: ValuesBrand<TValues>): NormalizedFormConfig<TOutputs['elements'], TOutputs['recipes'], TOutputs['actions'], NoInfer<TValues>>;
122
+ validateForm(config: unknown): NormalizedFormConfig<TOutputs['elements'], TOutputs['recipes'], TOutputs['actions'], FormValues>;
123
+ validateForm<TSchema extends StandardSchemaV1>(config: unknown, options: ValidateFormValuesOption<TSchema>): NormalizedFormConfig<TOutputs['elements'], TOutputs['recipes'], TOutputs['actions'], StandardSchemaV1.InferOutput<TSchema>>;
124
+ /**
125
+ * Same validation as {@link validateForm}, returned as a result instead of thrown.
126
+ *
127
+ * @returns `{ success: true, data }` with the frozen normalized form, or `{ success: false, issues }`
128
+ * with the problems found and the config path each is about (`['steps', 0, 'elements', 2, 'grid', 'width']`;
129
+ * `[]` for the whole form). The shape fits a YAML or editor integration that points an issue at a location.
130
+ *
131
+ * @remarks
132
+ * A malformed form envelope (its own shape, such as `steps` not being an array) stops the deeper
133
+ * checks and is reported alone; once it parses, element, action, grid and view issues come together.
134
+ *
135
+ * Still throws for a misuse of the API, such as a registration whose Standard Schema is async.
136
+ */
137
+ safeValidateForm(config: unknown): FormValidationResult<NormalizedFormConfig<TOutputs['elements'], TOutputs['recipes'], TOutputs['actions'], FormValues>>;
138
+ safeValidateForm<TSchema extends StandardSchemaV1>(config: unknown, options: ValidateFormValuesOption<TSchema>): FormValidationResult<NormalizedFormConfig<TOutputs['elements'], TOutputs['recipes'], TOutputs['actions'], StandardSchemaV1.InferOutput<TSchema>>>;
139
+ private validateOptions;
140
+ /**
141
+ * Author a form from this engine's registered elements, recipes, and actions.
142
+ * Same runtime pipeline as {@link validateForm}.
143
+ *
144
+ * @remarks
145
+ * The result carries the values type the literal config declares ({@link ValuesOf}), which a renderer reads to
146
+ * type `onSubmit`, `onAction` and `defaultValues`. A config that is not a literal gives {@link FormValues}.
147
+ *
148
+ * The type is derived from the literal, not from this call's result: it is the static twin of
149
+ * {@link FormEngine.submissionSchema}, which `createFormRuntime` checks every submission against.
150
+ */
151
+ defineForm<const TConfig extends FormAuthoringInput<TElements, TRecipes, TActions, TAppearance> & {
152
+ /** @remarks Rejects the callbacks `FormConfig` no longer has, which an inferred generic would let through. */
153
+ onSubmit?: never;
154
+ onChange?: never;
155
+ }>(config: TConfig & {
156
+ view?: ExactViewConfig<TConfig['view'], TRecipes, TAppearance>;
157
+ } & ExactFormAppearance<TConfig, TAppearance>): NormalizedFormConfig<TOutputs['elements'], TOutputs['recipes'], TOutputs['actions'], ValuesOf<TConfig, TOutputs['values']>>;
158
+ /**
159
+ * The schema of the values a submission of `config` holds, composed from the `value` its elements declare.
160
+ *
161
+ * @remarks
162
+ * It follows the rules the form state container submits by: dotted names nest, named containers become
163
+ * objects, a container of kind `array` becomes a list, a one-child row is a list of values (unless its child is a container of its own, which makes the rows objects), and the config's
164
+ * `payload` keys are added. A field is a required key only when it has a `required` rule and neither it, a
165
+ * container around it nor its step has `constraints` or `disabled`; any other key may be absent, and an
166
+ * optional leaf field may hold its empty value (`''` or `null`), and a list or a group its empty list or object. Keys no field declares are not part of it.
167
+ * `createFormRuntime` parses every submission with it, so one that does not match fails with a
168
+ * `valueMismatch` issue. Its `~standard.jsonSchema` `input()` and `output()` throw for a value schema that has no JSON Schema.
169
+ */
170
+ submissionSchema(config: SubmissionSchemaConfig): SubmissionSchema;
171
+ /**
172
+ * Validate a single element against this engine's registrations, including nested children.
173
+ * Use for standalone or dynamically created fields that are not already inside a normalized form.
174
+ * The normalized marker is applied only after this element and its children succeed.
175
+ */
176
+ validateElement(config: unknown): NormalizedElementConfig<TOutputs['elements']>;
177
+ describeRecipe($type: string): RecipeDescriptor;
178
+ describeViewCatalog(): ViewCatalog;
179
+ getAuthoringInstructions(): string;
180
+ /**
181
+ * @remarks
182
+ * Generated as input: authors may omit prefaulted slots and defaulted keys, so only `$type` is required.
183
+ *
184
+ * Uses the schema the export lists the recipe by, which lists each slot's declared appearance axes,
185
+ * so a view document gets the same autocomplete as the form config.
186
+ */
187
+ private generateRecipeViewSchema;
188
+ getSchemaArtifacts(): FormEngineSchemaArtifacts;
189
+ getFormConfigStandardSchema(): StandardJSONSchemaV1;
190
+ getActionConfigStandardSchema(actionType: string): StandardJSONSchemaV1 | undefined;
191
+ getSchemaCatalog(): SchemaMetadataCatalog;
192
+ getSchemaRegistry(): z.core.$ZodRegistry<import("./schema-artifacts").FormEngineSchemaMetadata, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
193
+ generateJSONSchemaCollection(options?: {
194
+ target?: 'draft-4' | 'draft-7' | 'draft-2020-12' | 'openapi-3.0';
195
+ uri?: (id: string) => string;
196
+ io?: 'input' | 'output';
197
+ }): import("../lib/standard-json-schema.js").JSONSchemaObject;
198
+ getFormConfigSchema(): z.ZodMiniType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
199
+ /**
200
+ * JSON Schema of the form config authors write, for editor autocomplete.
201
+ *
202
+ * @remarks
203
+ * `io` defaults to `'input'`, as it does for {@link FormEngine.generateJSONSchemaCollection} and
204
+ * {@link FormEngine.generateActionConfigSchema}: the export describes what authors write, and an element
205
+ * schema that pipes a transform (Radiant's `input-otp`) has no JSON Schema for its output side, so
206
+ * `io: 'output'` throws for an engine that registers one.
207
+ */
208
+ generateFormConfigSchema(options?: {
209
+ target?: 'draft-4' | 'draft-7' | 'draft-2020-12' | 'openapi-3.0';
210
+ io?: 'input' | 'output';
211
+ }): import("../lib/standard-json-schema.js").JSONSchemaObject;
212
+ generateActionConfigSchema(actionType: string, options?: {
213
+ target?: 'draft-4' | 'draft-7' | 'draft-2020-12' | 'openapi-3.0';
214
+ io?: 'input' | 'output';
215
+ }): import("../lib/standard-json-schema.js").JSONSchemaObject | undefined;
216
+ /**
217
+ * Return a new engine with additional registrations merged in.
218
+ * Duplicate `$type` values follow last-wins semantics.
219
+ */
220
+ extend<const TNewElements extends readonly ElementRegistrationConstraint[] = readonly [], const TNewRecipes extends readonly RecipeRegistrationConstraint[] = readonly [], const TNewActions extends readonly ActionRegistrationConstraint[] = readonly []>(options?: ExtendFormEngineOptions<TNewElements, TNewRecipes, TNewActions>): FormEngine<LastWinsMerge<TElements, MergedRegistrationMap<TNewElements>>, LastWinsMerge<TRecipes, MergedRegistrationMap<TNewRecipes>>, LastWinsMerge<TActions, MergedActionRegistrationMap<TNewActions>>, {
221
+ elements: LastWinsMerge<TOutputs['elements'], MergedOutputMap<TNewElements>>;
222
+ recipes: LastWinsMerge<TOutputs['recipes'], MergedOutputMap<TNewRecipes>>;
223
+ actions: LastWinsMerge<TOutputs['actions'], MergedOutputMap<TNewActions>>;
224
+ values: LastWinsMerge<TOutputs['values'], MergedValueMap<TNewElements>>;
225
+ }, TAppearance>;
226
+ }
227
+ /**
228
+ * Engine operations available while rendering a form.
229
+ *
230
+ * @remarks
231
+ * Registration extension belongs to engine construction. Omitting it allows a
232
+ * renderer to hold engines with different parsed output maps without widening
233
+ * their authoring or normalized return types on the constructed engine.
234
+ */
235
+ export type FormEngineRuntime<TElements extends Record<string, unknown> = Record<string, unknown>, TRecipes extends Record<string, unknown> = Record<string, unknown>, TActions extends Record<string, unknown> = Record<string, unknown>, TOutputs extends EngineOutputMaps = EngineOutputMaps, TAppearance extends Record<string, string> = ResolvedAppearanceAxes> = Omit<FormEngine<TElements, TRecipes, TActions, TOutputs, TAppearance>, 'extend'>;
236
+ export type { EngineOutputMaps } from '../builder/types.utils.js';