@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.
- package/LICENSE +21 -0
- package/README.md +69 -2
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/index.js +50 -0
- package/dist/actions/index.js.map +7 -0
- package/dist/actions/plugins/auto-save.plugin.d.ts +39 -0
- package/dist/actions/plugins/auto-save.plugin.js +10 -0
- package/dist/actions/plugins/auto-save.plugin.js.map +7 -0
- package/dist/actions/plugins/form-reset.plugin.d.ts +23 -0
- package/dist/actions/plugins/form-reset.plugin.js +9 -0
- package/dist/actions/plugins/form-reset.plugin.js.map +7 -0
- package/dist/actions/plugins/form-submit.plugin.d.ts +31 -0
- package/dist/actions/plugins/form-submit.plugin.js +9 -0
- package/dist/actions/plugins/form-submit.plugin.js.map +7 -0
- package/dist/actions/plugins/form-submit.registration.d.ts +22 -0
- package/dist/actions/plugins/form-submit.registration.js +8 -0
- package/dist/actions/plugins/form-submit.registration.js.map +7 -0
- package/dist/actions/plugins/gtm.plugin.d.ts +30 -0
- package/dist/actions/plugins/gtm.plugin.js +8 -0
- package/dist/actions/plugins/gtm.plugin.js.map +7 -0
- package/dist/actions/plugins/index.d.ts +16 -0
- package/dist/actions/plugins/index.js +45 -0
- package/dist/actions/plugins/index.js.map +7 -0
- package/dist/actions/plugins/notification.plugin.d.ts +32 -0
- package/dist/actions/plugins/notification.plugin.js +9 -0
- package/dist/actions/plugins/notification.plugin.js.map +7 -0
- package/dist/actions/plugins/notification.registration.d.ts +22 -0
- package/dist/actions/plugins/notification.registration.js +8 -0
- package/dist/actions/plugins/notification.registration.js.map +7 -0
- package/dist/actions/plugins/registrations.d.ts +17 -0
- package/dist/actions/plugins/registrations.js +14 -0
- package/dist/actions/plugins/registrations.js.map +7 -0
- package/dist/actions/triggers.d.ts +42 -0
- package/dist/actions/triggers.js +6 -0
- package/dist/actions/triggers.js.map +7 -0
- package/dist/actions/types.d.ts +16 -0
- package/dist/actions/types.js +1 -0
- package/dist/actions/types.js.map +7 -0
- package/dist/agent-tool/index.d.ts +54 -0
- package/dist/agent-tool/index.js +128 -0
- package/dist/agent-tool/index.js.map +7 -0
- package/dist/browser/action-registrations.d.ts +46 -0
- package/dist/browser/action-registrations.js +19 -0
- package/dist/browser/action-registrations.js.map +7 -0
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.js +36 -0
- package/dist/browser/index.js.map +7 -0
- package/dist/browser/tools/auto-save-storage.d.ts +20 -0
- package/dist/browser/tools/auto-save-storage.js +12 -0
- package/dist/browser/tools/auto-save-storage.js.map +7 -0
- package/dist/browser/tools/gdpr-consent.d.ts +32 -0
- package/dist/browser/tools/gdpr-consent.js +11 -0
- package/dist/browser/tools/gdpr-consent.js.map +7 -0
- package/dist/browser/tools/gtm-tracker.d.ts +7 -0
- package/dist/browser/tools/gtm-tracker.js +7 -0
- package/dist/browser/tools/gtm-tracker.js.map +7 -0
- package/dist/builder/form-authoring.d.ts +159 -0
- package/dist/builder/form-authoring.js +1 -0
- package/dist/builder/form-authoring.js.map +7 -0
- package/dist/builder/form-values.d.ts +158 -0
- package/dist/builder/form-values.js +0 -0
- package/dist/builder/form-values.js.map +7 -0
- package/dist/builder/index.d.ts +5 -0
- package/dist/builder/index.js +2 -0
- package/dist/builder/index.js.map +7 -0
- package/dist/builder/types.utils.d.ts +137 -0
- package/dist/builder/types.utils.js +1 -0
- package/dist/builder/types.utils.js.map +7 -0
- package/dist/chunk-237BHPDH.js +88 -0
- package/dist/chunk-237BHPDH.js.map +7 -0
- package/dist/chunk-25PLQDKN.js +45 -0
- package/dist/chunk-25PLQDKN.js.map +7 -0
- package/dist/chunk-2XWISGGM.js +8 -0
- package/dist/chunk-2XWISGGM.js.map +7 -0
- package/dist/chunk-2YKQAVI2.js +8 -0
- package/dist/chunk-2YKQAVI2.js.map +7 -0
- package/dist/chunk-3B7CJOF6.js +18 -0
- package/dist/chunk-3B7CJOF6.js.map +7 -0
- package/dist/chunk-3YLRJVVN.js +17 -0
- package/dist/chunk-3YLRJVVN.js.map +7 -0
- package/dist/chunk-4CUGHU36.js +58 -0
- package/dist/chunk-4CUGHU36.js.map +7 -0
- package/dist/chunk-4FELFUCD.js +0 -0
- package/dist/chunk-4FELFUCD.js.map +7 -0
- package/dist/chunk-4XPLSYTK.js +82 -0
- package/dist/chunk-4XPLSYTK.js.map +7 -0
- package/dist/chunk-5Y6U3MR3.js +54 -0
- package/dist/chunk-5Y6U3MR3.js.map +7 -0
- package/dist/chunk-6BAJHAGL.js +29 -0
- package/dist/chunk-6BAJHAGL.js.map +7 -0
- package/dist/chunk-6EYX257T.js +23 -0
- package/dist/chunk-6EYX257T.js.map +7 -0
- package/dist/chunk-6FUGK5HQ.js +26 -0
- package/dist/chunk-6FUGK5HQ.js.map +7 -0
- package/dist/chunk-6IZYNHZ3.js +118 -0
- package/dist/chunk-6IZYNHZ3.js.map +7 -0
- package/dist/chunk-6NV2JDGI.js +8 -0
- package/dist/chunk-6NV2JDGI.js.map +7 -0
- package/dist/chunk-6R2MBQPL.js +19 -0
- package/dist/chunk-6R2MBQPL.js.map +7 -0
- package/dist/chunk-7EQJUI5N.js +40 -0
- package/dist/chunk-7EQJUI5N.js.map +7 -0
- package/dist/chunk-A5VLMQAK.js +2780 -0
- package/dist/chunk-A5VLMQAK.js.map +7 -0
- package/dist/chunk-AUZ45XPE.js +27 -0
- package/dist/chunk-AUZ45XPE.js.map +7 -0
- package/dist/chunk-BIHEIJG3.js +0 -0
- package/dist/chunk-BIHEIJG3.js.map +7 -0
- package/dist/chunk-BKNWW4PK.js +0 -0
- package/dist/chunk-BKNWW4PK.js.map +7 -0
- package/dist/chunk-BLFLCSG3.js +71 -0
- package/dist/chunk-BLFLCSG3.js.map +7 -0
- package/dist/chunk-BYYGAGNH.js +0 -0
- package/dist/chunk-BYYGAGNH.js.map +7 -0
- package/dist/chunk-CANRZY5A.js +87 -0
- package/dist/chunk-CANRZY5A.js.map +7 -0
- package/dist/chunk-CAZPWBQ4.js +18 -0
- package/dist/chunk-CAZPWBQ4.js.map +7 -0
- package/dist/chunk-CMPOBBRV.js +10 -0
- package/dist/chunk-CMPOBBRV.js.map +7 -0
- package/dist/chunk-CRQWKC67.js +118 -0
- package/dist/chunk-CRQWKC67.js.map +7 -0
- package/dist/chunk-CRVXBWSY.js +70 -0
- package/dist/chunk-CRVXBWSY.js.map +7 -0
- package/dist/chunk-D6ZHV6AT.js +0 -0
- package/dist/chunk-D6ZHV6AT.js.map +7 -0
- package/dist/chunk-DP7SYLLI.js +206 -0
- package/dist/chunk-DP7SYLLI.js.map +7 -0
- package/dist/chunk-DVDKPY2A.js +12 -0
- package/dist/chunk-DVDKPY2A.js.map +7 -0
- package/dist/chunk-E4VONSLO.js +15 -0
- package/dist/chunk-E4VONSLO.js.map +7 -0
- package/dist/chunk-EEYGPPLU.js +185 -0
- package/dist/chunk-EEYGPPLU.js.map +7 -0
- package/dist/chunk-EI5TMJDC.js +56 -0
- package/dist/chunk-EI5TMJDC.js.map +7 -0
- package/dist/chunk-EQ5AIF3T.js +117 -0
- package/dist/chunk-EQ5AIF3T.js.map +7 -0
- package/dist/chunk-EZZHO6DQ.js +26 -0
- package/dist/chunk-EZZHO6DQ.js.map +7 -0
- package/dist/chunk-FUHLRG3M.js +130 -0
- package/dist/chunk-FUHLRG3M.js.map +7 -0
- package/dist/chunk-FVOL3ZOJ.js +101 -0
- package/dist/chunk-FVOL3ZOJ.js.map +7 -0
- package/dist/chunk-G33EUV7N.js +288 -0
- package/dist/chunk-G33EUV7N.js.map +7 -0
- package/dist/chunk-GH34XFCC.js +56 -0
- package/dist/chunk-GH34XFCC.js.map +7 -0
- package/dist/chunk-GKWRJ6H4.js +27 -0
- package/dist/chunk-GKWRJ6H4.js.map +7 -0
- package/dist/chunk-GQHMU3AR.js +907 -0
- package/dist/chunk-GQHMU3AR.js.map +7 -0
- package/dist/chunk-GRZU6F7Q.js +80 -0
- package/dist/chunk-GRZU6F7Q.js.map +7 -0
- package/dist/chunk-GT2LARKT.js +107 -0
- package/dist/chunk-GT2LARKT.js.map +7 -0
- package/dist/chunk-H4ABGAAG.js +60 -0
- package/dist/chunk-H4ABGAAG.js.map +7 -0
- package/dist/chunk-H63UHX42.js +93 -0
- package/dist/chunk-H63UHX42.js.map +7 -0
- package/dist/chunk-HIS4MGIR.js +8 -0
- package/dist/chunk-HIS4MGIR.js.map +7 -0
- package/dist/chunk-HPPFSWIV.js +213 -0
- package/dist/chunk-HPPFSWIV.js.map +7 -0
- package/dist/chunk-J2FC5K4B.js +87 -0
- package/dist/chunk-J2FC5K4B.js.map +7 -0
- package/dist/chunk-J5BSFDVK.js +123 -0
- package/dist/chunk-J5BSFDVK.js.map +7 -0
- package/dist/chunk-J7GSNWXT.js +151 -0
- package/dist/chunk-J7GSNWXT.js.map +7 -0
- package/dist/chunk-JA5ET6MC.js +550 -0
- package/dist/chunk-JA5ET6MC.js.map +7 -0
- package/dist/chunk-K22S7IZR.js +12 -0
- package/dist/chunk-K22S7IZR.js.map +7 -0
- package/dist/chunk-K5TMXCMY.js +139 -0
- package/dist/chunk-K5TMXCMY.js.map +7 -0
- package/dist/chunk-KE53GN4Q.js +246 -0
- package/dist/chunk-KE53GN4Q.js.map +7 -0
- package/dist/chunk-KFQEDSYI.js +24 -0
- package/dist/chunk-KFQEDSYI.js.map +7 -0
- package/dist/chunk-KH6QWB5Y.js +51 -0
- package/dist/chunk-KH6QWB5Y.js.map +7 -0
- package/dist/chunk-KLATKWUA.js +116 -0
- package/dist/chunk-KLATKWUA.js.map +7 -0
- package/dist/chunk-KSKWSUOB.js +17 -0
- package/dist/chunk-KSKWSUOB.js.map +7 -0
- package/dist/chunk-LFWEJXWE.js +68 -0
- package/dist/chunk-LFWEJXWE.js.map +7 -0
- package/dist/chunk-LMWJAD3B.js +24 -0
- package/dist/chunk-LMWJAD3B.js.map +7 -0
- package/dist/chunk-MD23VADH.js +92 -0
- package/dist/chunk-MD23VADH.js.map +7 -0
- package/dist/chunk-MKMJT3XR.js +0 -0
- package/dist/chunk-MKMJT3XR.js.map +7 -0
- package/dist/chunk-NJTLBSTR.js +82 -0
- package/dist/chunk-NJTLBSTR.js.map +7 -0
- package/dist/chunk-NJXKMF67.js +182 -0
- package/dist/chunk-NJXKMF67.js.map +7 -0
- package/dist/chunk-OBQBIOGN.js +16 -0
- package/dist/chunk-OBQBIOGN.js.map +7 -0
- package/dist/chunk-OLYHNFKC.js +82 -0
- package/dist/chunk-OLYHNFKC.js.map +7 -0
- package/dist/chunk-OR2L7EKO.js +33 -0
- package/dist/chunk-OR2L7EKO.js.map +7 -0
- package/dist/chunk-OUF57UZ7.js +28 -0
- package/dist/chunk-OUF57UZ7.js.map +7 -0
- package/dist/chunk-PBMM2N77.js +56 -0
- package/dist/chunk-PBMM2N77.js.map +7 -0
- package/dist/chunk-PCL2KNHC.js +6 -0
- package/dist/chunk-PCL2KNHC.js.map +7 -0
- package/dist/chunk-PH3LWLYN.js +49 -0
- package/dist/chunk-PH3LWLYN.js.map +7 -0
- package/dist/chunk-PHNMDWSK.js +9 -0
- package/dist/chunk-PHNMDWSK.js.map +7 -0
- package/dist/chunk-PN5EH6DM.js +36 -0
- package/dist/chunk-PN5EH6DM.js.map +7 -0
- package/dist/chunk-POCAINUE.js +42 -0
- package/dist/chunk-POCAINUE.js.map +7 -0
- package/dist/chunk-Q5LEK7CI.js +64 -0
- package/dist/chunk-Q5LEK7CI.js.map +7 -0
- package/dist/chunk-QH7VW7IY.js +0 -0
- package/dist/chunk-QH7VW7IY.js.map +7 -0
- package/dist/chunk-QLGM2AZW.js +173 -0
- package/dist/chunk-QLGM2AZW.js.map +7 -0
- package/dist/chunk-QT3EYUL5.js +85 -0
- package/dist/chunk-QT3EYUL5.js.map +7 -0
- package/dist/chunk-QYHOFLRX.js +43 -0
- package/dist/chunk-QYHOFLRX.js.map +7 -0
- package/dist/chunk-R3MBVWVI.js +127 -0
- package/dist/chunk-R3MBVWVI.js.map +7 -0
- package/dist/chunk-R6V3LH7F.js +67 -0
- package/dist/chunk-R6V3LH7F.js.map +7 -0
- package/dist/chunk-RB22U6HI.js +64 -0
- package/dist/chunk-RB22U6HI.js.map +7 -0
- package/dist/chunk-RQRQYYTB.js +34 -0
- package/dist/chunk-RQRQYYTB.js.map +7 -0
- package/dist/chunk-S5D2QE4G.js +53 -0
- package/dist/chunk-S5D2QE4G.js.map +7 -0
- package/dist/chunk-S7I76ISM.js +245 -0
- package/dist/chunk-S7I76ISM.js.map +7 -0
- package/dist/chunk-TBDZOQ2C.js +66 -0
- package/dist/chunk-TBDZOQ2C.js.map +7 -0
- package/dist/chunk-TSKELYW7.js +55 -0
- package/dist/chunk-TSKELYW7.js.map +7 -0
- package/dist/chunk-U3YHTQHR.js +215 -0
- package/dist/chunk-U3YHTQHR.js.map +7 -0
- package/dist/chunk-UGL3KNOT.js +42 -0
- package/dist/chunk-UGL3KNOT.js.map +7 -0
- package/dist/chunk-UN3DARLG.js +35 -0
- package/dist/chunk-UN3DARLG.js.map +7 -0
- package/dist/chunk-V5H7L5PJ.js +587 -0
- package/dist/chunk-V5H7L5PJ.js.map +7 -0
- package/dist/chunk-VGGERKV2.js +7 -0
- package/dist/chunk-VGGERKV2.js.map +7 -0
- package/dist/chunk-VVFXYY65.js +0 -0
- package/dist/chunk-VVFXYY65.js.map +7 -0
- package/dist/chunk-WLDCYUN6.js +161 -0
- package/dist/chunk-WLDCYUN6.js.map +7 -0
- package/dist/chunk-WMDTQS36.js +0 -0
- package/dist/chunk-WMDTQS36.js.map +7 -0
- package/dist/chunk-WUTGZYP4.js +290 -0
- package/dist/chunk-WUTGZYP4.js.map +7 -0
- package/dist/chunk-XKN3WWK3.js +0 -0
- package/dist/chunk-XKN3WWK3.js.map +7 -0
- package/dist/chunk-XQ5VJ4QO.js +62 -0
- package/dist/chunk-XQ5VJ4QO.js.map +7 -0
- package/dist/chunk-XQVKX47O.js +174 -0
- package/dist/chunk-XQVKX47O.js.map +7 -0
- package/dist/chunk-Y5CNB57V.js +22 -0
- package/dist/chunk-Y5CNB57V.js.map +7 -0
- package/dist/chunk-YDGH7DTL.js +18 -0
- package/dist/chunk-YDGH7DTL.js.map +7 -0
- package/dist/chunk-YIFUBPJ3.js +0 -0
- package/dist/chunk-YIFUBPJ3.js.map +7 -0
- package/dist/chunk-YUUDXRBW.js +212 -0
- package/dist/chunk-YUUDXRBW.js.map +7 -0
- package/dist/chunk-Z6DQLJS2.js +23 -0
- package/dist/chunk-Z6DQLJS2.js.map +7 -0
- package/dist/chunk-ZDEZ2FOC.js +81 -0
- package/dist/chunk-ZDEZ2FOC.js.map +7 -0
- package/dist/chunk-ZUYSGCEH.js +65 -0
- package/dist/chunk-ZUYSGCEH.js.map +7 -0
- package/dist/chunk-ZYP3MIH3.js +115 -0
- package/dist/chunk-ZYP3MIH3.js.map +7 -0
- package/dist/constraints/constraint-evaluator.d.ts +57 -0
- package/dist/constraints/constraint-evaluator.js +17 -0
- package/dist/constraints/constraint-evaluator.js.map +7 -0
- package/dist/constraints/index.d.ts +1 -0
- package/dist/constraints/index.js +17 -0
- package/dist/constraints/index.js.map +7 -0
- package/dist/csrf/index.d.ts +43 -0
- package/dist/csrf/index.js +43 -0
- package/dist/csrf/index.js.map +7 -0
- package/dist/engine/build-form-engine.d.ts +27 -0
- package/dist/engine/build-form-engine.js +58 -0
- package/dist/engine/build-form-engine.js.map +7 -0
- package/dist/engine/component-type.d.ts +19 -0
- package/dist/engine/component-type.js +6 -0
- package/dist/engine/component-type.js.map +7 -0
- package/dist/engine/create-form-engine.d.ts +100 -0
- package/dist/engine/create-form-engine.js +59 -0
- package/dist/engine/create-form-engine.js.map +7 -0
- package/dist/engine/form-action-context.d.ts +70 -0
- package/dist/engine/form-action-context.js +10 -0
- package/dist/engine/form-action-context.js.map +7 -0
- package/dist/engine/form-engine.d.ts +236 -0
- package/dist/engine/form-engine.js +61 -0
- package/dist/engine/form-engine.js.map +7 -0
- package/dist/engine/index.d.ts +12 -0
- package/dist/engine/index.js +124 -0
- package/dist/engine/index.js.map +7 -0
- package/dist/engine/schema-artifacts.d.ts +87 -0
- package/dist/engine/schema-artifacts.js +14 -0
- package/dist/engine/schema-artifacts.js.map +7 -0
- package/dist/engine/schema-metadata-catalog.d.ts +41 -0
- package/dist/engine/schema-metadata-catalog.js +6 -0
- package/dist/engine/schema-metadata-catalog.js.map +7 -0
- package/dist/engine/step-machine.d.ts +59 -0
- package/dist/engine/step-machine.js +32 -0
- package/dist/engine/step-machine.js.map +7 -0
- package/dist/engine/submission-schema.d.ts +53 -0
- package/dist/engine/submission-schema.js +22 -0
- package/dist/engine/submission-schema.js.map +7 -0
- package/dist/engine/value-validation.d.ts +237 -0
- package/dist/engine/value-validation.js +39 -0
- package/dist/engine/value-validation.js.map +7 -0
- package/dist/index.d.ts +76 -0
- package/dist/index.js +283 -0
- package/dist/index.js.map +7 -0
- package/dist/lib/authoring-catalog.d.ts +5 -0
- package/dist/lib/authoring-catalog.js +11 -0
- package/dist/lib/authoring-catalog.js.map +7 -0
- package/dist/lib/container-kind-of.d.ts +5 -0
- package/dist/lib/container-kind-of.js +6 -0
- package/dist/lib/container-kind-of.js.map +7 -0
- package/dist/lib/debounce.d.ts +19 -0
- package/dist/lib/debounce.js +6 -0
- package/dist/lib/debounce.js.map +7 -0
- package/dist/lib/deep-readonly.d.ts +12 -0
- package/dist/lib/deep-readonly.js +0 -0
- package/dist/lib/deep-readonly.js.map +7 -0
- package/dist/lib/element-children.d.ts +35 -0
- package/dist/lib/element-children.js +16 -0
- package/dist/lib/element-children.js.map +7 -0
- package/dist/lib/exported-action-envelope.d.ts +11 -0
- package/dist/lib/exported-action-envelope.js +7 -0
- package/dist/lib/exported-action-envelope.js.map +7 -0
- package/dist/lib/exported-rules.d.ts +14 -0
- package/dist/lib/exported-rules.js +6 -0
- package/dist/lib/exported-rules.js.map +7 -0
- package/dist/lib/field-ref.d.ts +13 -0
- package/dist/lib/field-ref.js +6 -0
- package/dist/lib/field-ref.js.map +7 -0
- package/dist/lib/field-scope.d.ts +121 -0
- package/dist/lib/field-scope.js +41 -0
- package/dist/lib/field-scope.js.map +7 -0
- package/dist/lib/form-fetch.d.ts +36 -0
- package/dist/lib/form-fetch.js +10 -0
- package/dist/lib/form-fetch.js.map +7 -0
- package/dist/lib/form-view.d.ts +33 -0
- package/dist/lib/form-view.js +12 -0
- package/dist/lib/form-view.js.map +7 -0
- package/dist/lib/frozen-copy.d.ts +9 -0
- package/dist/lib/frozen-copy.js +7 -0
- package/dist/lib/frozen-copy.js.map +7 -0
- package/dist/lib/is-plain-object.d.ts +2 -0
- package/dist/lib/is-plain-object.js +6 -0
- package/dist/lib/is-plain-object.js.map +7 -0
- package/dist/lib/logger.d.ts +2 -0
- package/dist/lib/logger.js +6 -0
- package/dist/lib/logger.js.map +7 -0
- package/dist/lib/normalized-form-config.d.ts +106 -0
- package/dist/lib/normalized-form-config.js +19 -0
- package/dist/lib/normalized-form-config.js.map +7 -0
- package/dist/lib/omit-paths.d.ts +11 -0
- package/dist/lib/omit-paths.js +7 -0
- package/dist/lib/omit-paths.js.map +7 -0
- package/dist/lib/path-values.d.ts +47 -0
- package/dist/lib/path-values.js +22 -0
- package/dist/lib/path-values.js.map +7 -0
- package/dist/lib/renderer-data-attributes.d.ts +10 -0
- package/dist/lib/renderer-data-attributes.js +6 -0
- package/dist/lib/renderer-data-attributes.js.map +7 -0
- package/dist/lib/reserved-path-keys.d.ts +10 -0
- package/dist/lib/reserved-path-keys.js +10 -0
- package/dist/lib/reserved-path-keys.js.map +7 -0
- package/dist/lib/resolve-appearance.d.ts +48 -0
- package/dist/lib/resolve-appearance.js +10 -0
- package/dist/lib/resolve-appearance.js.map +7 -0
- package/dist/lib/standard-json-schema.d.ts +27 -0
- package/dist/lib/standard-json-schema.js +8 -0
- package/dist/lib/standard-json-schema.js.map +7 -0
- package/dist/lib/standard-schema.d.ts +19 -0
- package/dist/lib/standard-schema.js +8 -0
- package/dist/lib/standard-schema.js.map +7 -0
- package/dist/lib/submission-shape.d.ts +60 -0
- package/dist/lib/submission-shape.js +14 -0
- package/dist/lib/submission-shape.js.map +7 -0
- package/dist/lib/validate-form/grid-checks.d.ts +57 -0
- package/dist/lib/validate-form/grid-checks.js +16 -0
- package/dist/lib/validate-form/grid-checks.js.map +7 -0
- package/dist/lib/validate-form/issues.d.ts +43 -0
- package/dist/lib/validate-form/issues.js +13 -0
- package/dist/lib/validate-form/issues.js.map +7 -0
- package/dist/lib/validate-form/options.d.ts +22 -0
- package/dist/lib/validate-form/options.js +0 -0
- package/dist/lib/validate-form/options.js.map +7 -0
- package/dist/lib/validate-form/parse-elements.d.ts +23 -0
- package/dist/lib/validate-form/parse-elements.js +21 -0
- package/dist/lib/validate-form/parse-elements.js.map +7 -0
- package/dist/lib/validate-form/parse-owner-actions.d.ts +14 -0
- package/dist/lib/validate-form/parse-owner-actions.js +10 -0
- package/dist/lib/validate-form/parse-owner-actions.js.map +7 -0
- package/dist/lib/validate-form/parse-view.d.ts +11 -0
- package/dist/lib/validate-form/parse-view.js +11 -0
- package/dist/lib/validate-form/parse-view.js.map +7 -0
- package/dist/lib/validate-form/schema-issues.d.ts +16 -0
- package/dist/lib/validate-form/schema-issues.js +8 -0
- package/dist/lib/validate-form/schema-issues.js.map +7 -0
- package/dist/lib/validate-form/step-checks.d.ts +18 -0
- package/dist/lib/validate-form/step-checks.js +15 -0
- package/dist/lib/validate-form/step-checks.js.map +7 -0
- package/dist/lib/validate-form/validation-error.d.ts +26 -0
- package/dist/lib/validate-form/validation-error.js +8 -0
- package/dist/lib/validate-form/validation-error.js.map +7 -0
- package/dist/lib/validate-form.d.ts +34 -0
- package/dist/lib/validate-form.js +62 -0
- package/dist/lib/validate-form.js.map +7 -0
- package/dist/lib/zod-json-schema.d.ts +33 -0
- package/dist/lib/zod-json-schema.js +10 -0
- package/dist/lib/zod-json-schema.js.map +7 -0
- package/dist/recipes/built-in-specs.d.ts +1832 -0
- package/dist/recipes/built-in-specs.js +28 -0
- package/dist/recipes/built-in-specs.js.map +7 -0
- package/dist/recipes/built-in.d.ts +2 -0
- package/dist/recipes/built-in.js +49 -0
- package/dist/recipes/built-in.js.map +7 -0
- package/dist/recipes/define-form-recipe.d.ts +10 -0
- package/dist/recipes/define-form-recipe.js +6 -0
- package/dist/recipes/define-form-recipe.js.map +7 -0
- package/dist/recipes/define-recipe-spec.d.ts +13 -0
- package/dist/recipes/define-recipe-spec.js +8 -0
- package/dist/recipes/define-recipe-spec.js.map +7 -0
- package/dist/recipes/index.d.ts +6 -0
- package/dist/recipes/index.js +43 -0
- package/dist/recipes/index.js.map +7 -0
- package/dist/recipes/protocol.d.ts +24 -0
- package/dist/recipes/protocol.js +11 -0
- package/dist/recipes/protocol.js.map +7 -0
- package/dist/recipes/slot-schemas.d.ts +128 -0
- package/dist/recipes/slot-schemas.js +24 -0
- package/dist/recipes/slot-schemas.js.map +7 -0
- package/dist/recipes/types.d.ts +55 -0
- package/dist/recipes/types.js +1 -0
- package/dist/recipes/types.js.map +7 -0
- package/dist/recipes/view-model.d.ts +93 -0
- package/dist/recipes/view-model.js +29 -0
- package/dist/recipes/view-model.js.map +7 -0
- package/dist/registries/index.d.ts +8 -0
- package/dist/registries/index.js +0 -0
- package/dist/registries/index.js.map +7 -0
- package/dist/runtime/create-form-runtime.d.ts +43 -0
- package/dist/runtime/create-form-runtime.js +41 -0
- package/dist/runtime/create-form-runtime.js.map +7 -0
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime/index.js +44 -0
- package/dist/runtime/index.js.map +7 -0
- package/dist/runtime/submission-lifecycle.d.ts +65 -0
- package/dist/runtime/submission-lifecycle.js +6 -0
- package/dist/runtime/submission-lifecycle.js.map +7 -0
- package/dist/runtime/types.d.ts +172 -0
- package/dist/runtime/types.js +6 -0
- package/dist/runtime/types.js.map +7 -0
- package/dist/schemas/base-field.d.ts +450 -0
- package/dist/schemas/base-field.js +36 -0
- package/dist/schemas/base-field.js.map +7 -0
- package/dist/schemas/field-config.d.ts +36 -0
- package/dist/schemas/field-config.js +1 -0
- package/dist/schemas/field-config.js.map +7 -0
- package/dist/schemas/form-config-shape.d.ts +763 -0
- package/dist/schemas/form-config-shape.js +35 -0
- package/dist/schemas/form-config-shape.js.map +7 -0
- package/dist/schemas/form-config.d.ts +1288 -0
- package/dist/schemas/form-config.js +41 -0
- package/dist/schemas/form-config.js.map +7 -0
- package/dist/schemas/html-attributes.d.ts +12 -0
- package/dist/schemas/html-attributes.js +12 -0
- package/dist/schemas/html-attributes.js.map +7 -0
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.js +165 -0
- package/dist/schemas/index.js.map +7 -0
- package/dist/schemas/validation/async/cache.d.ts +39 -0
- package/dist/schemas/validation/async/cache.js +6 -0
- package/dist/schemas/validation/async/cache.js.map +7 -0
- package/dist/schemas/validation/async/handler.d.ts +21 -0
- package/dist/schemas/validation/async/handler.js +11 -0
- package/dist/schemas/validation/async/handler.js.map +7 -0
- package/dist/schemas/validation/async/index.d.ts +8 -0
- package/dist/schemas/validation/async/index.js +14 -0
- package/dist/schemas/validation/async/index.js.map +7 -0
- package/dist/schemas/validation/defaults.d.ts +6 -0
- package/dist/schemas/validation/defaults.js +12 -0
- package/dist/schemas/validation/defaults.js.map +7 -0
- package/dist/schemas/validation/dependencies.d.ts +52 -0
- package/dist/schemas/validation/dependencies.js +17 -0
- package/dist/schemas/validation/dependencies.js.map +7 -0
- package/dist/schemas/validation/empty.d.ts +1 -0
- package/dist/schemas/validation/empty.js +6 -0
- package/dist/schemas/validation/empty.js.map +7 -0
- package/dist/schemas/validation/errors.d.ts +44 -0
- package/dist/schemas/validation/errors.js +12 -0
- package/dist/schemas/validation/errors.js.map +7 -0
- package/dist/schemas/validation/index.d.ts +9 -0
- package/dist/schemas/validation/index.js +130 -0
- package/dist/schemas/validation/index.js.map +7 -0
- package/dist/schemas/validation/presets.d.ts +66 -0
- package/dist/schemas/validation/presets.js +6 -0
- package/dist/schemas/validation/presets.js.map +7 -0
- package/dist/schemas/validation/relations.d.ts +12 -0
- package/dist/schemas/validation/relations.js +8 -0
- package/dist/schemas/validation/relations.js.map +7 -0
- package/dist/schemas/validation/types.d.ts +817 -0
- package/dist/schemas/validation/types.js +64 -0
- package/dist/schemas/validation/types.js.map +7 -0
- package/dist/schemas/validation/utils.d.ts +76 -0
- package/dist/schemas/validation/utils.js +24 -0
- package/dist/schemas/validation/utils.js.map +7 -0
- package/dist/schemas/validation/validation-registry.d.ts +124 -0
- package/dist/schemas/validation/validation-registry.js +27 -0
- package/dist/schemas/validation/validation-registry.js.map +7 -0
- package/dist/server-errors/from-json-api-errors.d.ts +13 -0
- package/dist/server-errors/from-json-api-errors.js +10 -0
- package/dist/server-errors/from-json-api-errors.js.map +7 -0
- package/dist/server-errors/from-problem-details.d.ts +15 -0
- package/dist/server-errors/from-problem-details.js +10 -0
- package/dist/server-errors/from-problem-details.js.map +7 -0
- package/dist/server-errors/index.d.ts +8 -0
- package/dist/server-errors/index.js +17 -0
- package/dist/server-errors/index.js.map +7 -0
- package/dist/server-errors/shared.d.ts +34 -0
- package/dist/server-errors/shared.js +23 -0
- package/dist/server-errors/shared.js.map +7 -0
- package/dist/state-container/create-form-state-container.d.ts +17 -0
- package/dist/state-container/create-form-state-container.js +31 -0
- package/dist/state-container/create-form-state-container.js.map +7 -0
- package/dist/state-container/dirty.d.ts +11 -0
- package/dist/state-container/dirty.js +9 -0
- package/dist/state-container/dirty.js.map +7 -0
- package/dist/state-container/field-array.d.ts +41 -0
- package/dist/state-container/field-array.js +8 -0
- package/dist/state-container/field-array.js.map +7 -0
- package/dist/state-container/hydration.d.ts +21 -0
- package/dist/state-container/hydration.js +11 -0
- package/dist/state-container/hydration.js.map +7 -0
- package/dist/state-container/index.d.ts +16 -0
- package/dist/state-container/index.js +51 -0
- package/dist/state-container/index.js.map +7 -0
- package/dist/state-container/issue-text.d.ts +11 -0
- package/dist/state-container/issue-text.js +6 -0
- package/dist/state-container/issue-text.js.map +7 -0
- package/dist/state-container/row-ids.d.ts +34 -0
- package/dist/state-container/row-ids.js +19 -0
- package/dist/state-container/row-ids.js.map +7 -0
- package/dist/state-container/selectors.d.ts +33 -0
- package/dist/state-container/selectors.js +22 -0
- package/dist/state-container/selectors.js.map +7 -0
- package/dist/state-container/stale-results.d.ts +28 -0
- package/dist/state-container/stale-results.js +9 -0
- package/dist/state-container/stale-results.js.map +7 -0
- package/dist/state-container/state-tree.d.ts +56 -0
- package/dist/state-container/state-tree.js +33 -0
- package/dist/state-container/state-tree.js.map +7 -0
- package/dist/state-container/submission.d.ts +45 -0
- package/dist/state-container/submission.js +26 -0
- package/dist/state-container/submission.js.map +7 -0
- package/dist/state-container/types.d.ts +404 -0
- package/dist/state-container/types.js +6 -0
- package/dist/state-container/types.js.map +7 -0
- package/dist/state-container/value-tree.d.ts +56 -0
- package/dist/state-container/value-tree.js +34 -0
- package/dist/state-container/value-tree.js.map +7 -0
- package/dist/testing/assert.d.ts +92 -0
- package/dist/testing/assert.js +42 -0
- package/dist/testing/assert.js.map +7 -0
- package/dist/testing/form-state-container-conformance.d.ts +63 -0
- package/dist/testing/form-state-container-conformance.js +44 -0
- package/dist/testing/form-state-container-conformance.js.map +7 -0
- package/dist/testing/index.d.ts +8 -0
- package/dist/testing/index.js +36 -0
- package/dist/testing/index.js.map +7 -0
- package/dist/types/actions.d.ts +75 -0
- package/dist/types/actions.js +1 -0
- package/dist/types/actions.js.map +7 -0
- package/dist/types/categories.d.ts +21 -0
- package/dist/types/categories.js +8 -0
- package/dist/types/categories.js.map +7 -0
- package/dist/types/define-element.d.ts +73 -0
- package/dist/types/define-element.js +8 -0
- package/dist/types/define-element.js.map +7 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.js +17 -0
- package/dist/types/index.js.map +7 -0
- package/dist/types/metadata.d.ts +14 -0
- package/dist/types/metadata.js +1 -0
- package/dist/types/metadata.js.map +7 -0
- package/dist/types/registration.d.ts +142 -0
- package/dist/types/registration.js +1 -0
- package/dist/types/registration.js.map +7 -0
- package/package.json +113 -3
- package/skill/SKILL.md +79 -0
- package/skill/reference/forms-actions.md +51 -0
- package/skill/reference/forms-submission.md +44 -0
- package/skill/reference/forms-validation.md +91 -0
- package/skill/reference/forms.md +180 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FormEngine
|
|
3
|
+
} from "../chunk-V5H7L5PJ.js";
|
|
4
|
+
import "../chunk-ZYP3MIH3.js";
|
|
5
|
+
import "../chunk-PBMM2N77.js";
|
|
6
|
+
import {
|
|
7
|
+
ComponentType
|
|
8
|
+
} from "../chunk-DVDKPY2A.js";
|
|
9
|
+
import "../chunk-POCAINUE.js";
|
|
10
|
+
import "../chunk-DP7SYLLI.js";
|
|
11
|
+
import "../chunk-NJXKMF67.js";
|
|
12
|
+
import "../chunk-6R2MBQPL.js";
|
|
13
|
+
import "../chunk-GRZU6F7Q.js";
|
|
14
|
+
import "../chunk-Q5LEK7CI.js";
|
|
15
|
+
import "../chunk-PN5EH6DM.js";
|
|
16
|
+
import "../chunk-YUUDXRBW.js";
|
|
17
|
+
import "../chunk-KSKWSUOB.js";
|
|
18
|
+
import "../chunk-RQRQYYTB.js";
|
|
19
|
+
import "../chunk-AUZ45XPE.js";
|
|
20
|
+
import "../chunk-CAZPWBQ4.js";
|
|
21
|
+
import "../chunk-S5D2QE4G.js";
|
|
22
|
+
import "../chunk-EI5TMJDC.js";
|
|
23
|
+
import "../chunk-2YKQAVI2.js";
|
|
24
|
+
import "../chunk-UGL3KNOT.js";
|
|
25
|
+
import "../chunk-EZZHO6DQ.js";
|
|
26
|
+
import "../chunk-HPPFSWIV.js";
|
|
27
|
+
import "../chunk-25PLQDKN.js";
|
|
28
|
+
import "../chunk-7EQJUI5N.js";
|
|
29
|
+
import "../chunk-XQ5VJ4QO.js";
|
|
30
|
+
import "../chunk-237BHPDH.js";
|
|
31
|
+
import "../chunk-MKMJT3XR.js";
|
|
32
|
+
import "../chunk-XQVKX47O.js";
|
|
33
|
+
import "../chunk-4CUGHU36.js";
|
|
34
|
+
import "../chunk-6IZYNHZ3.js";
|
|
35
|
+
import "../chunk-FVOL3ZOJ.js";
|
|
36
|
+
import "../chunk-LMWJAD3B.js";
|
|
37
|
+
import "../chunk-OUF57UZ7.js";
|
|
38
|
+
import "../chunk-G33EUV7N.js";
|
|
39
|
+
import "../chunk-J7GSNWXT.js";
|
|
40
|
+
import "../chunk-MD23VADH.js";
|
|
41
|
+
import "../chunk-OLYHNFKC.js";
|
|
42
|
+
import "../chunk-KE53GN4Q.js";
|
|
43
|
+
import "../chunk-GH34XFCC.js";
|
|
44
|
+
import "../chunk-NJTLBSTR.js";
|
|
45
|
+
import "../chunk-VGGERKV2.js";
|
|
46
|
+
import "../chunk-3B7CJOF6.js";
|
|
47
|
+
import "../chunk-KLATKWUA.js";
|
|
48
|
+
import "../chunk-YDGH7DTL.js";
|
|
49
|
+
import "../chunk-S7I76ISM.js";
|
|
50
|
+
import "../chunk-CRQWKC67.js";
|
|
51
|
+
import "../chunk-QLGM2AZW.js";
|
|
52
|
+
import "../chunk-ZUYSGCEH.js";
|
|
53
|
+
import "../chunk-OR2L7EKO.js";
|
|
54
|
+
import "../chunk-6BAJHAGL.js";
|
|
55
|
+
import "../chunk-6NV2JDGI.js";
|
|
56
|
+
import "../chunk-3YLRJVVN.js";
|
|
57
|
+
import "../chunk-CMPOBBRV.js";
|
|
58
|
+
export {
|
|
59
|
+
ComponentType,
|
|
60
|
+
FormEngine
|
|
61
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Engine module - FormEngine and related utilities
|
|
3
|
+
*/
|
|
4
|
+
export * from './component-type';
|
|
5
|
+
export * from './form-engine';
|
|
6
|
+
export * from './create-form-engine';
|
|
7
|
+
export * from './schema-artifacts';
|
|
8
|
+
export * from './schema-metadata-catalog';
|
|
9
|
+
export * from './step-machine';
|
|
10
|
+
export * from './form-action-context';
|
|
11
|
+
export * from './value-validation';
|
|
12
|
+
export type { SubmissionSchema, SubmissionSchemaConfig } from './submission-schema';
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createFormEngine
|
|
3
|
+
} from "../chunk-6EYX257T.js";
|
|
4
|
+
import {
|
|
5
|
+
FormEngine
|
|
6
|
+
} from "../chunk-V5H7L5PJ.js";
|
|
7
|
+
import {
|
|
8
|
+
createActionConfigValidatorMap,
|
|
9
|
+
createFormEngineSchemaArtifacts,
|
|
10
|
+
createZodRegistryFromCatalog
|
|
11
|
+
} from "../chunk-ZYP3MIH3.js";
|
|
12
|
+
import {
|
|
13
|
+
SchemaMetadataCatalog
|
|
14
|
+
} from "../chunk-PBMM2N77.js";
|
|
15
|
+
import {
|
|
16
|
+
ComponentType
|
|
17
|
+
} from "../chunk-DVDKPY2A.js";
|
|
18
|
+
import "../chunk-POCAINUE.js";
|
|
19
|
+
import "../chunk-DP7SYLLI.js";
|
|
20
|
+
import "../chunk-NJXKMF67.js";
|
|
21
|
+
import "../chunk-6R2MBQPL.js";
|
|
22
|
+
import "../chunk-GRZU6F7Q.js";
|
|
23
|
+
import "../chunk-Q5LEK7CI.js";
|
|
24
|
+
import "../chunk-PN5EH6DM.js";
|
|
25
|
+
import "../chunk-YUUDXRBW.js";
|
|
26
|
+
import "../chunk-KSKWSUOB.js";
|
|
27
|
+
import "../chunk-RQRQYYTB.js";
|
|
28
|
+
import "../chunk-AUZ45XPE.js";
|
|
29
|
+
import "../chunk-CAZPWBQ4.js";
|
|
30
|
+
import "../chunk-S5D2QE4G.js";
|
|
31
|
+
import "../chunk-EI5TMJDC.js";
|
|
32
|
+
import "../chunk-2YKQAVI2.js";
|
|
33
|
+
import "../chunk-UGL3KNOT.js";
|
|
34
|
+
import "../chunk-EZZHO6DQ.js";
|
|
35
|
+
import {
|
|
36
|
+
buildFormActionContext,
|
|
37
|
+
collectStepActions,
|
|
38
|
+
hasConfiguredActions
|
|
39
|
+
} from "../chunk-5Y6U3MR3.js";
|
|
40
|
+
import "../chunk-HPPFSWIV.js";
|
|
41
|
+
import "../chunk-25PLQDKN.js";
|
|
42
|
+
import {
|
|
43
|
+
activeStepIds,
|
|
44
|
+
deriveStepStates,
|
|
45
|
+
moveProgress,
|
|
46
|
+
startProgress,
|
|
47
|
+
stepAfter,
|
|
48
|
+
stepBefore,
|
|
49
|
+
stepsWithErrors
|
|
50
|
+
} from "../chunk-PH3LWLYN.js";
|
|
51
|
+
import "../chunk-7EQJUI5N.js";
|
|
52
|
+
import "../chunk-XQ5VJ4QO.js";
|
|
53
|
+
import "../chunk-237BHPDH.js";
|
|
54
|
+
import "../chunk-MKMJT3XR.js";
|
|
55
|
+
import "../chunk-XQVKX47O.js";
|
|
56
|
+
import "../chunk-4CUGHU36.js";
|
|
57
|
+
import "../chunk-6IZYNHZ3.js";
|
|
58
|
+
import "../chunk-FVOL3ZOJ.js";
|
|
59
|
+
import "../chunk-LMWJAD3B.js";
|
|
60
|
+
import "../chunk-OUF57UZ7.js";
|
|
61
|
+
import "../chunk-G33EUV7N.js";
|
|
62
|
+
import "../chunk-J7GSNWXT.js";
|
|
63
|
+
import "../chunk-MD23VADH.js";
|
|
64
|
+
import "../chunk-OLYHNFKC.js";
|
|
65
|
+
import "../chunk-KE53GN4Q.js";
|
|
66
|
+
import "../chunk-GH34XFCC.js";
|
|
67
|
+
import "../chunk-NJTLBSTR.js";
|
|
68
|
+
import "../chunk-VGGERKV2.js";
|
|
69
|
+
import {
|
|
70
|
+
FormValidationFailure,
|
|
71
|
+
collectStepFieldPaths,
|
|
72
|
+
effectiveRulesFor,
|
|
73
|
+
foldFieldParticipation,
|
|
74
|
+
hasParticipationRules,
|
|
75
|
+
isPathExcluded,
|
|
76
|
+
planFormValidation,
|
|
77
|
+
resolveParticipation,
|
|
78
|
+
runValidationPlan,
|
|
79
|
+
validateFieldValue,
|
|
80
|
+
validateFormValues
|
|
81
|
+
} from "../chunk-WUTGZYP4.js";
|
|
82
|
+
import "../chunk-R3MBVWVI.js";
|
|
83
|
+
import "../chunk-3B7CJOF6.js";
|
|
84
|
+
import "../chunk-KLATKWUA.js";
|
|
85
|
+
import "../chunk-YDGH7DTL.js";
|
|
86
|
+
import "../chunk-S7I76ISM.js";
|
|
87
|
+
import "../chunk-CRQWKC67.js";
|
|
88
|
+
import "../chunk-QLGM2AZW.js";
|
|
89
|
+
import "../chunk-ZUYSGCEH.js";
|
|
90
|
+
import "../chunk-OR2L7EKO.js";
|
|
91
|
+
import "../chunk-6BAJHAGL.js";
|
|
92
|
+
import "../chunk-6NV2JDGI.js";
|
|
93
|
+
import "../chunk-3YLRJVVN.js";
|
|
94
|
+
import "../chunk-CMPOBBRV.js";
|
|
95
|
+
export {
|
|
96
|
+
ComponentType,
|
|
97
|
+
FormEngine,
|
|
98
|
+
FormValidationFailure,
|
|
99
|
+
SchemaMetadataCatalog,
|
|
100
|
+
activeStepIds,
|
|
101
|
+
buildFormActionContext,
|
|
102
|
+
collectStepActions,
|
|
103
|
+
collectStepFieldPaths,
|
|
104
|
+
createActionConfigValidatorMap,
|
|
105
|
+
createFormEngine,
|
|
106
|
+
createFormEngineSchemaArtifacts,
|
|
107
|
+
createZodRegistryFromCatalog,
|
|
108
|
+
deriveStepStates,
|
|
109
|
+
effectiveRulesFor,
|
|
110
|
+
foldFieldParticipation,
|
|
111
|
+
hasConfiguredActions,
|
|
112
|
+
hasParticipationRules,
|
|
113
|
+
isPathExcluded,
|
|
114
|
+
moveProgress,
|
|
115
|
+
planFormValidation,
|
|
116
|
+
resolveParticipation,
|
|
117
|
+
runValidationPlan,
|
|
118
|
+
startProgress,
|
|
119
|
+
stepAfter,
|
|
120
|
+
stepBefore,
|
|
121
|
+
stepsWithErrors,
|
|
122
|
+
validateFieldValue,
|
|
123
|
+
validateFormValues
|
|
124
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
import type { StandardJSONSchemaV1 } from '@standard-schema/spec';
|
|
3
|
+
import { ComponentType } from './component-type';
|
|
4
|
+
import { SchemaMetadataCatalog } from './schema-metadata-catalog';
|
|
5
|
+
import { type JSONSchemaObject, type JSONSchemaTarget } from '../lib/standard-json-schema.js';
|
|
6
|
+
/**
|
|
7
|
+
* Metadata for form engine JSON Schema generation.
|
|
8
|
+
* Used across all component types (elements, recipes, and actions).
|
|
9
|
+
*/
|
|
10
|
+
export interface FormEngineSchemaMetadata {
|
|
11
|
+
id?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
componentType: ComponentType;
|
|
15
|
+
category?: string;
|
|
16
|
+
examples?: unknown[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Metadata registry used by the schema artifact layer.
|
|
20
|
+
*/
|
|
21
|
+
export type FormEngineSchemaMetadataRegistry = ReturnType<typeof z.registry<FormEngineSchemaMetadata>>;
|
|
22
|
+
/**
|
|
23
|
+
* Bundles the validator and metadata registry used for schema generation.
|
|
24
|
+
* The engine depends on this abstraction instead of hard-coding JSON Schema
|
|
25
|
+
* conversion details into runtime methods.
|
|
26
|
+
*/
|
|
27
|
+
export interface FormEngineSchemaArtifacts {
|
|
28
|
+
metadataCatalog: SchemaMetadataCatalog;
|
|
29
|
+
metadataRegistry: FormEngineSchemaMetadataRegistry;
|
|
30
|
+
formConfigValidator: z.ZodMiniType;
|
|
31
|
+
/**
|
|
32
|
+
* The schemas the JSON Schema export lists in place of a registration's own, by catalog id.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* An element's or recipe's export schema is closed over the appearance axes it declares. The
|
|
36
|
+
* catalog keeps the registration's validator schema, so this holds the export's alone.
|
|
37
|
+
*/
|
|
38
|
+
exportSchemas: ReadonlyMap<string, z.ZodMiniType>;
|
|
39
|
+
jsonSchema: FormEngineJSONSchemaSerializer;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A schema the JSON Schema export defines once and refers to by its id, though it is no registration of the catalog.
|
|
43
|
+
*
|
|
44
|
+
* @remarks Without an id a schema is written out at every place that uses it.
|
|
45
|
+
*/
|
|
46
|
+
export interface SharedExportSchema {
|
|
47
|
+
readonly schema: z.ZodMiniType;
|
|
48
|
+
readonly metadata: FormEngineSchemaMetadata;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Bridge catalog metadata into a Zod registry for JSON Schema generation.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* An entry with an export schema is registered by that schema rather than the catalog's, so the
|
|
55
|
+
* export refers to it by the entry's id.
|
|
56
|
+
*/
|
|
57
|
+
export declare function createZodRegistryFromCatalog(catalog: SchemaMetadataCatalog, exportSchemas?: ReadonlyMap<string, z.ZodMiniType>): FormEngineSchemaMetadataRegistry;
|
|
58
|
+
/**
|
|
59
|
+
* Serializer contract used by the engine for emitted JSON Schema artifacts.
|
|
60
|
+
* Exposes collections and per-configuration input/output converters.
|
|
61
|
+
*/
|
|
62
|
+
export interface FormEngineJSONSchemaSerializer {
|
|
63
|
+
generateCollection: (options?: {
|
|
64
|
+
target?: JSONSchemaTarget;
|
|
65
|
+
uri?: (id: string) => string;
|
|
66
|
+
io?: 'input' | 'output';
|
|
67
|
+
}) => JSONSchemaObject;
|
|
68
|
+
generateFormConfig: (options?: {
|
|
69
|
+
target?: JSONSchemaTarget;
|
|
70
|
+
io?: 'input' | 'output';
|
|
71
|
+
}) => JSONSchemaObject;
|
|
72
|
+
generateActionConfig: (actionType: string, options?: {
|
|
73
|
+
target?: JSONSchemaTarget;
|
|
74
|
+
io?: 'input' | 'output';
|
|
75
|
+
}) => JSONSchemaObject | undefined;
|
|
76
|
+
formConfigStandardSchema: StandardJSONSchemaV1;
|
|
77
|
+
actionConfigStandardSchemas: Record<string, StandardJSONSchemaV1>;
|
|
78
|
+
}
|
|
79
|
+
/** The Zod schemas the JSON Schema export lists the actions by, keyed by `$type`. */
|
|
80
|
+
export declare function createActionConfigValidatorMap(exportedActions: Iterable<{
|
|
81
|
+
$type: string;
|
|
82
|
+
exportSchema: unknown;
|
|
83
|
+
}>): Map<string, z.ZodMiniType>;
|
|
84
|
+
/**
|
|
85
|
+
* Create a schema artifact bundle from the current validator implementation.
|
|
86
|
+
*/
|
|
87
|
+
export declare function createFormEngineSchemaArtifacts(metadataCatalog: SchemaMetadataCatalog, formConfigValidator: z.ZodMiniType, actionConfigValidators?: Map<string, z.ZodMiniType>, exportSchemas?: ReadonlyMap<string, z.ZodMiniType>, sharedSchemas?: readonly SharedExportSchema[]): FormEngineSchemaArtifacts;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createActionConfigValidatorMap,
|
|
3
|
+
createFormEngineSchemaArtifacts,
|
|
4
|
+
createZodRegistryFromCatalog
|
|
5
|
+
} from "../chunk-ZYP3MIH3.js";
|
|
6
|
+
import "../chunk-PBMM2N77.js";
|
|
7
|
+
import "../chunk-DVDKPY2A.js";
|
|
8
|
+
import "../chunk-POCAINUE.js";
|
|
9
|
+
import "../chunk-25PLQDKN.js";
|
|
10
|
+
export {
|
|
11
|
+
createActionConfigValidatorMap,
|
|
12
|
+
createFormEngineSchemaArtifacts,
|
|
13
|
+
createZodRegistryFromCatalog
|
|
14
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
+
import type { ComponentType } from './component-type';
|
|
3
|
+
/**
|
|
4
|
+
* Metadata entry for a registered component schema.
|
|
5
|
+
* Used by JSON Schema collection and tooling without coupling to Zod's registry.
|
|
6
|
+
*/
|
|
7
|
+
export interface SchemaMetadataEntry {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
componentType: ComponentType;
|
|
12
|
+
category?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Catalog of schema metadata keyed by stable component ids (e.g. `element:text`).
|
|
16
|
+
* Replaces direct use of `z.registry()` for metadata storage in engine construction.
|
|
17
|
+
*/
|
|
18
|
+
export declare class SchemaMetadataCatalog {
|
|
19
|
+
private entries;
|
|
20
|
+
private schemasById;
|
|
21
|
+
private idBySchema;
|
|
22
|
+
/** Catalog and JSON Schema id of a registration, such as `element:text`. */
|
|
23
|
+
static entryId(componentType: ComponentType, $type: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Associate a validator schema with catalog metadata.
|
|
26
|
+
*/
|
|
27
|
+
register(schema: StandardSchemaV1, entry: SchemaMetadataEntry): void;
|
|
28
|
+
/** Create an independent catalog with the same schema and metadata entries. */
|
|
29
|
+
clone(): SchemaMetadataCatalog;
|
|
30
|
+
get(id: string): SchemaMetadataEntry | undefined;
|
|
31
|
+
getBySchema(schema: StandardSchemaV1): SchemaMetadataEntry | undefined;
|
|
32
|
+
getAll(): SchemaMetadataEntry[];
|
|
33
|
+
has(schema: StandardSchemaV1): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* All registered schema/metadata pairs for adapters (e.g. z.registry bridge).
|
|
36
|
+
*/
|
|
37
|
+
getRegisteredSchemas(): Array<{
|
|
38
|
+
schema: StandardSchemaV1;
|
|
39
|
+
entry: SchemaMetadataEntry;
|
|
40
|
+
}>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type ValidationStep } from './value-validation';
|
|
2
|
+
/**
|
|
3
|
+
* How freely a wizard moves forward.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* `'linear'` reaches only steps already visited and validates every step on the way; `'free'` reaches any
|
|
7
|
+
* active step without validating. Going back is always allowed and `next()` validates in both.
|
|
8
|
+
*/
|
|
9
|
+
export type StepNavigationMode = 'linear' | 'free';
|
|
10
|
+
/**
|
|
11
|
+
* One step of a form as a renderer reads it.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Only `visited` and `complete` are stored, by step id. `skipped` is derived from the values (the step's
|
|
15
|
+
* constraints hide it) and `invalid` from the errors recorded at its fields, so neither can go stale.
|
|
16
|
+
*/
|
|
17
|
+
export interface FormStepState {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
/** Its constraints hide it: it is passed over and its fields take no part. */
|
|
20
|
+
readonly skipped: boolean;
|
|
21
|
+
readonly visited: boolean;
|
|
22
|
+
/** `next()` validated it and moved on. */
|
|
23
|
+
readonly complete: boolean;
|
|
24
|
+
/** An error is recorded at one of its fields. */
|
|
25
|
+
readonly invalid: boolean;
|
|
26
|
+
/** `goTo` can move there: an active step other than the current one that is before it, or after it when the form's `navigation` is `'free'` or the step was visited. */
|
|
27
|
+
readonly reachable: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** What the runtime stores of the steps: where the user is, and which steps were visited and completed, by id. */
|
|
30
|
+
export interface StepProgress {
|
|
31
|
+
readonly current: string;
|
|
32
|
+
readonly visited: readonly string[];
|
|
33
|
+
readonly complete: readonly string[];
|
|
34
|
+
}
|
|
35
|
+
/** Progress at the start: the first step is current and visited. */
|
|
36
|
+
export declare const startProgress: (first: string) => StepProgress;
|
|
37
|
+
/** Progress after moving to `to`, which becomes visited, with `completed` marked complete. */
|
|
38
|
+
export declare function moveProgress(progress: StepProgress, to: string, completed?: readonly string[]): StepProgress;
|
|
39
|
+
/** The steps as renderers read them, from the stored progress and what the values and errors say. */
|
|
40
|
+
export declare function deriveStepStates(steps: readonly {
|
|
41
|
+
readonly id: string;
|
|
42
|
+
}[], progress: StepProgress, derived: {
|
|
43
|
+
readonly skipped: readonly string[];
|
|
44
|
+
readonly invalid: readonly string[];
|
|
45
|
+
}, mode: StepNavigationMode): FormStepState[];
|
|
46
|
+
/** The ids of the steps that are not skipped, in order. */
|
|
47
|
+
export declare const activeStepIds: (states: readonly FormStepState[]) => string[];
|
|
48
|
+
/** The nearest active step after `id`, which may itself be skipped, or `undefined` on the last one. */
|
|
49
|
+
export declare function stepAfter(states: readonly FormStepState[], id: string): string | undefined;
|
|
50
|
+
/** The nearest active step before `id`, which may itself be skipped, or `undefined` on the first one. */
|
|
51
|
+
export declare function stepBefore(states: readonly FormStepState[], id: string): string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The ids of the steps that have an error recorded at one of their fields.
|
|
54
|
+
*
|
|
55
|
+
* @remarks Fields are read as `collectStepFieldPaths` expands them over the live rows.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stepsWithErrors(steps: readonly (ValidationStep & {
|
|
58
|
+
readonly id: string;
|
|
59
|
+
})[], values: Record<string, unknown>, errors: Readonly<Record<string, unknown>>): string[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
activeStepIds,
|
|
3
|
+
deriveStepStates,
|
|
4
|
+
moveProgress,
|
|
5
|
+
startProgress,
|
|
6
|
+
stepAfter,
|
|
7
|
+
stepBefore,
|
|
8
|
+
stepsWithErrors
|
|
9
|
+
} from "../chunk-PH3LWLYN.js";
|
|
10
|
+
import "../chunk-WUTGZYP4.js";
|
|
11
|
+
import "../chunk-R3MBVWVI.js";
|
|
12
|
+
import "../chunk-3B7CJOF6.js";
|
|
13
|
+
import "../chunk-KLATKWUA.js";
|
|
14
|
+
import "../chunk-YDGH7DTL.js";
|
|
15
|
+
import "../chunk-S7I76ISM.js";
|
|
16
|
+
import "../chunk-CRQWKC67.js";
|
|
17
|
+
import "../chunk-QLGM2AZW.js";
|
|
18
|
+
import "../chunk-ZUYSGCEH.js";
|
|
19
|
+
import "../chunk-OR2L7EKO.js";
|
|
20
|
+
import "../chunk-6BAJHAGL.js";
|
|
21
|
+
import "../chunk-6NV2JDGI.js";
|
|
22
|
+
import "../chunk-3YLRJVVN.js";
|
|
23
|
+
import "../chunk-CMPOBBRV.js";
|
|
24
|
+
export {
|
|
25
|
+
activeStepIds,
|
|
26
|
+
deriveStepStates,
|
|
27
|
+
moveProgress,
|
|
28
|
+
startProgress,
|
|
29
|
+
stepAfter,
|
|
30
|
+
stepBefore,
|
|
31
|
+
stepsWithErrors
|
|
32
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { StandardJSONSchemaV1, StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
+
import { type ShapeStep } from '../lib/submission-shape.js';
|
|
3
|
+
import type { ValidationRegistry } from '../schemas/validation/validation-registry.js';
|
|
4
|
+
import type { AnyElementRegistration } from '../types/registration.js';
|
|
5
|
+
/**
|
|
6
|
+
* The submitted values of a form, as a Standard Schema, and as a Standard JSON Schema where its value schemas can say so.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* `~standard.validate` checks a submission: the values the container submits, whose keys are the fields' names
|
|
10
|
+
* (dotted names nested), and returns them without any key a field does not declare. A mismatch is a broken
|
|
11
|
+
* element contract, not a user error. `partial` is the same schema with every key optional at every depth and
|
|
12
|
+
* every leaf allowed to be empty, for the `defaultValues` of a form that has not been filled. A value schema that cannot
|
|
13
|
+
* check a default (it throws, or is asynchronous) is reported there as an issue at its field, so one default that cannot
|
|
14
|
+
* be checked never stops the others from being.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* An issue of `partial` is at the field, because a default is kept or dropped as a whole: a leaf is a field, a group is
|
|
18
|
+
* not (its fields are), and a list is one field, so an issue inside a row is at the list (`tags`, not `tags.0` or
|
|
19
|
+
* `tags.0.name`). `createFormRuntime` drops the default of each field `partial` reports.
|
|
20
|
+
*/
|
|
21
|
+
export interface SubmissionSchema<TValues = Readonly<Record<string, unknown>>> extends StandardSchemaV1<unknown, TValues>, StandardJSONSchemaV1<unknown, TValues> {
|
|
22
|
+
readonly '~standard': StandardSchemaV1.Props<unknown, TValues> & StandardJSONSchemaV1.Props<unknown, TValues>;
|
|
23
|
+
readonly partial: {
|
|
24
|
+
readonly '~standard': Omit<StandardSchemaV1.Props<unknown, unknown>, 'validate'> & {
|
|
25
|
+
readonly validate: (value: unknown) => StandardSchemaV1.Result<unknown>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/** What the composer needs of an engine: the element registrations and the validation rules. */
|
|
30
|
+
export interface SubmissionSchemaSource {
|
|
31
|
+
getElement(id: string): AnyElementRegistration | undefined;
|
|
32
|
+
readonly validationRegistry: ValidationRegistry;
|
|
33
|
+
}
|
|
34
|
+
/** What it reads of the form config: its steps and its payload. */
|
|
35
|
+
export interface SubmissionSchemaConfig {
|
|
36
|
+
readonly steps: readonly ShapeStep[];
|
|
37
|
+
readonly payload?: Readonly<Record<string, unknown>>;
|
|
38
|
+
}
|
|
39
|
+
/** What an issue of a partial parse says when a default could not be checked at all, which the runtime reads to tell it from a mismatch. */
|
|
40
|
+
export declare const DEFAULT_NOT_CHECKED = "The default could not be checked: ";
|
|
41
|
+
/** The path of an issue as the dotted string a field is known by (`contacts.0.email`). */
|
|
42
|
+
export declare function issuePath(issue: StandardSchemaV1.Issue): string;
|
|
43
|
+
/**
|
|
44
|
+
* Composes the submission schema of a form from its elements' value declarations.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* The rules are the container's, read from one {@link buildSubmissionShape}: dotted names nest, named containers
|
|
48
|
+
* become objects, `containerKind: 'array'` becomes an array, 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 `payload`
|
|
49
|
+
* keys are added as they are. A named element that declares no value (a static one) is carried as it is, so the keys of the schema are exactly the shape's. An optional
|
|
50
|
+
* leaf field accepts its empty value (`''` or `null`) as well as its declared one, because a submission keeps what the
|
|
51
|
+
* user cleared; a required field is held to its declaration. Its JSON Schema describes each field by its label, then its help text. A value schema is read once, when this is called.
|
|
52
|
+
*/
|
|
53
|
+
export declare function createSubmissionSchema(config: SubmissionSchemaConfig, source: SubmissionSchemaSource): SubmissionSchema;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_NOT_CHECKED,
|
|
3
|
+
createSubmissionSchema,
|
|
4
|
+
issuePath
|
|
5
|
+
} from "../chunk-HPPFSWIV.js";
|
|
6
|
+
import "../chunk-25PLQDKN.js";
|
|
7
|
+
import "../chunk-NJTLBSTR.js";
|
|
8
|
+
import "../chunk-3B7CJOF6.js";
|
|
9
|
+
import "../chunk-KLATKWUA.js";
|
|
10
|
+
import "../chunk-YDGH7DTL.js";
|
|
11
|
+
import "../chunk-S7I76ISM.js";
|
|
12
|
+
import "../chunk-CRQWKC67.js";
|
|
13
|
+
import "../chunk-QLGM2AZW.js";
|
|
14
|
+
import "../chunk-ZUYSGCEH.js";
|
|
15
|
+
import "../chunk-OR2L7EKO.js";
|
|
16
|
+
import "../chunk-3YLRJVVN.js";
|
|
17
|
+
import "../chunk-CMPOBBRV.js";
|
|
18
|
+
export {
|
|
19
|
+
DEFAULT_NOT_CHECKED,
|
|
20
|
+
createSubmissionSchema,
|
|
21
|
+
issuePath
|
|
22
|
+
};
|