@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,237 @@
|
|
|
1
|
+
import type { ConstraintLogic } from '../schemas/base-field.js';
|
|
2
|
+
import type { BaseValidationRule } from '../schemas/validation/types.js';
|
|
3
|
+
import type { ValidationRegistry } from '../schemas/validation/validation-registry.js';
|
|
4
|
+
import type { DebounceScope } from '../lib/debounce.js';
|
|
5
|
+
export interface ValidationElement {
|
|
6
|
+
readonly name?: string;
|
|
7
|
+
readonly id?: string;
|
|
8
|
+
readonly elements?: readonly ValidationElement[];
|
|
9
|
+
readonly $type?: string;
|
|
10
|
+
readonly rules?: readonly BaseValidationRule[];
|
|
11
|
+
readonly constraints?: readonly ConstraintLogic[];
|
|
12
|
+
/** Authored `disabled`: a disabled field takes no part in validation. */
|
|
13
|
+
readonly disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type ValidationElementTree = ReadonlyArray<ValidationElement>;
|
|
16
|
+
export interface ValidationStep {
|
|
17
|
+
readonly id?: string;
|
|
18
|
+
readonly elements: readonly ValidationElement[];
|
|
19
|
+
/** `show` and `hide` constraints on earlier steps' fields: a step they hide is skipped. */
|
|
20
|
+
readonly constraints?: readonly ConstraintLogic[];
|
|
21
|
+
}
|
|
22
|
+
export interface EffectiveRulesInput {
|
|
23
|
+
element: ValidationElement;
|
|
24
|
+
fieldPath: string;
|
|
25
|
+
values: Record<string, unknown>;
|
|
26
|
+
registry: ValidationRegistry;
|
|
27
|
+
/** Set when a `require` constraint of a container around the field holds. */
|
|
28
|
+
inheritedRequired?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the field's own `require` constraint holds, when the caller already resolved it in order with {@link resolveParticipation}.
|
|
31
|
+
*
|
|
32
|
+
* @remarks Evaluated from the field's constraints against `values` when omitted.
|
|
33
|
+
*/
|
|
34
|
+
requiredByConstraint?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface ValidateFieldValueInput extends EffectiveRulesInput {
|
|
37
|
+
value: unknown;
|
|
38
|
+
/**
|
|
39
|
+
* Keyed async validation state for this caller's form lifetime.
|
|
40
|
+
*
|
|
41
|
+
* @remarks Required: a fresh scope per call delays debounced rules without coalescing them.
|
|
42
|
+
*/
|
|
43
|
+
debounceScope: DebounceScope;
|
|
44
|
+
}
|
|
45
|
+
export interface ValidateFormValuesInput {
|
|
46
|
+
/** The form's steps: a skipped step's fields take no part, as hidden fields do not. */
|
|
47
|
+
steps: readonly ValidationStep[];
|
|
48
|
+
values: Record<string, unknown>;
|
|
49
|
+
registry: ValidationRegistry;
|
|
50
|
+
/**
|
|
51
|
+
* Limits validation to these paths, and to the paths below them unless `exactNames` is set.
|
|
52
|
+
*
|
|
53
|
+
* @remarks Omitted, every field is validated; an empty list validates nothing, as `validate([])` of the form state container does.
|
|
54
|
+
*/
|
|
55
|
+
names?: readonly string[];
|
|
56
|
+
/** Match `names` as whole paths: a field below a named container is not validated. */
|
|
57
|
+
exactNames?: boolean;
|
|
58
|
+
/** Keyed async validation state for this caller's form lifetime; see `ValidateFieldValueInput`. */
|
|
59
|
+
debounceScope: DebounceScope;
|
|
60
|
+
}
|
|
61
|
+
/** Whether a failed rule blocks the form (`error`) or only advises (`warning`). */
|
|
62
|
+
export type ValidationSeverity = 'error' | 'warning';
|
|
63
|
+
/**
|
|
64
|
+
* One rule a value fails, with what a translation needs to say so.
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
* `type` is the rule's `$type`, `ruleId` the author's stable name for that rule and `params` the options its
|
|
68
|
+
* registration exposes (`{ minLength: 8 }`), so a message is composed from the issue and not parsed out of
|
|
69
|
+
* the text. `message` is only the text the author wrote on the rule: the schema library's generic text is
|
|
70
|
+
* never used. A rule reports one issue however many checks its schema runs.
|
|
71
|
+
*/
|
|
72
|
+
export interface ValidationIssue {
|
|
73
|
+
readonly type: string;
|
|
74
|
+
readonly ruleId?: string;
|
|
75
|
+
readonly params?: Readonly<Record<string, unknown>>;
|
|
76
|
+
readonly message?: string;
|
|
77
|
+
readonly severity: ValidationSeverity;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A rule that could not run: its schema could not be built, or it threw while checking the value.
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* Not a field error. The value is neither valid nor invalid as far as this rule goes, and the cause is
|
|
84
|
+
* the author's or the integration's to fix. `path` and `ruleType` say where; `cause` is what was thrown.
|
|
85
|
+
*/
|
|
86
|
+
export declare class FormValidationFailure extends Error {
|
|
87
|
+
readonly path: string;
|
|
88
|
+
readonly ruleType: string;
|
|
89
|
+
readonly ruleId?: string;
|
|
90
|
+
/** `'unavailable'` when the service the rule asks could not answer, else `'error'`. */
|
|
91
|
+
readonly reason: 'unavailable' | 'error';
|
|
92
|
+
constructor(path: string, rule: {
|
|
93
|
+
readonly $type: string;
|
|
94
|
+
readonly id?: string;
|
|
95
|
+
}, cause: unknown);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* What validating one field found: the rules it fails, in rule order, and the rules that could not run.
|
|
99
|
+
*
|
|
100
|
+
* @remarks
|
|
101
|
+
* `superseded` is set when a rule's check was replaced by a later one before it ran: the field was not
|
|
102
|
+
* fully checked, so it is neither valid nor invalid and a caller must not decide on it. It is state, not an issue.
|
|
103
|
+
*/
|
|
104
|
+
export interface FieldValidationResult {
|
|
105
|
+
readonly issues: readonly ValidationIssue[];
|
|
106
|
+
readonly failures: readonly FormValidationFailure[];
|
|
107
|
+
readonly superseded: boolean;
|
|
108
|
+
}
|
|
109
|
+
/** What a validation found, by the dotted path of the field; a container has its own entry. Only paths with something to report appear. */
|
|
110
|
+
export interface FormValidationOutcome {
|
|
111
|
+
readonly issues: Readonly<Record<string, readonly ValidationIssue[]>>;
|
|
112
|
+
readonly failures: Readonly<Record<string, readonly FormValidationFailure[]>>;
|
|
113
|
+
/** The paths a rule of which was replaced by a later check before it ran: not decided either way. */
|
|
114
|
+
readonly superseded: readonly string[];
|
|
115
|
+
}
|
|
116
|
+
interface FieldElementPath {
|
|
117
|
+
readonly element: ValidationElement;
|
|
118
|
+
readonly fieldPath: string;
|
|
119
|
+
readonly hasChildren: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Lists the named paths in a step, expanding field templates for each live array row.
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* Container paths stay whole so their own rules can be validated, while leaf
|
|
126
|
+
* paths such as `contacts.email` expand to the rendered `contacts.0.email` paths.
|
|
127
|
+
*/
|
|
128
|
+
export declare function collectStepFieldPaths(step: ValidationStep | undefined, values?: Record<string, unknown>): string[];
|
|
129
|
+
/**
|
|
130
|
+
* Resolves authored rules and adds a required rule when a `require` constraint holds.
|
|
131
|
+
*
|
|
132
|
+
* @remarks
|
|
133
|
+
* Constraint references use the rendered path, so each row of an array evaluates
|
|
134
|
+
* against its own sibling values.
|
|
135
|
+
*/
|
|
136
|
+
export declare function effectiveRulesFor({ element, fieldPath, values, registry, inheritedRequired, requiredByConstraint, }: EffectiveRulesInput): BaseValidationRule[];
|
|
137
|
+
/**
|
|
138
|
+
* Validates one field value against each of its rules.
|
|
139
|
+
*
|
|
140
|
+
* @remarks
|
|
141
|
+
* `issues` lists the rules the value fails in rule order, whatever order they finish in, one issue per
|
|
142
|
+
* rule. A rule that cannot run is a failure rather than an issue, and the other rules still report: it
|
|
143
|
+
* says nothing about the value.
|
|
144
|
+
*/
|
|
145
|
+
export declare function validateFieldValue({ element, value, values, fieldPath, registry, debounceScope, inheritedRequired, requiredByConstraint, }: ValidateFieldValueInput): Promise<FieldValidationResult>;
|
|
146
|
+
/** Whether `path` is an excluded path or lies below one. */
|
|
147
|
+
export declare const isPathExcluded: (excluded: readonly string[], path: string) => boolean;
|
|
148
|
+
/**
|
|
149
|
+
* What the constraints and the authored `disabled` of one field say, in order, with the value of whatever was excluded before it absent.
|
|
150
|
+
*
|
|
151
|
+
* @remarks `required` is the field's own `require` constraint; the rules' own `required` is not in it. Ancestors are not folded in: see {@link foldFieldParticipation}.
|
|
152
|
+
*/
|
|
153
|
+
export interface FieldParticipation {
|
|
154
|
+
readonly hidden: boolean;
|
|
155
|
+
readonly disabled: boolean;
|
|
156
|
+
readonly required: boolean;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* What takes part in a form, from its steps and the current values.
|
|
160
|
+
*
|
|
161
|
+
* @remarks
|
|
162
|
+
* `excluded` lists the paths that take no part, each with everything below it. `skippedSteps` lists the ids of
|
|
163
|
+
* the steps its constraints hide, which exclude every field they hold. `fields` has an entry for each rendered
|
|
164
|
+
* path that has a constraint, is disabled by authoring or is held by a skipped step. An element without a name, such as a note
|
|
165
|
+
* with a constraint, is keyed by its id under its parent's path.
|
|
166
|
+
*/
|
|
167
|
+
export interface Participation {
|
|
168
|
+
readonly excluded: readonly string[];
|
|
169
|
+
readonly skippedSteps: readonly string[];
|
|
170
|
+
readonly fields: Readonly<Record<string, FieldParticipation>>;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* The state of a path with its ancestors folded in: hidden or disabled when it or a path around it is, required when a `require` constraint of it or, for a field, of a container around it holds.
|
|
174
|
+
*
|
|
175
|
+
* @remarks A container's own `required` rule does not pass down; only its `require` constraint does.
|
|
176
|
+
*/
|
|
177
|
+
export declare function foldFieldParticipation(fields: Readonly<Record<string, FieldParticipation>>, path: string, { inheritRequired }?: {
|
|
178
|
+
inheritRequired?: boolean;
|
|
179
|
+
}): FieldParticipation;
|
|
180
|
+
/**
|
|
181
|
+
* Resolves which steps and paths take part, and what each constraint says, from the config and the current values.
|
|
182
|
+
*
|
|
183
|
+
* @remarks
|
|
184
|
+
* One rule for every consumer of "does this field count", and the only place constraints are evaluated for a
|
|
185
|
+
* form. A step a `show` or `hide` constraint hides is skipped and excludes everything it holds. A field a
|
|
186
|
+
* `show` or `hide` constraint hides, and a field that is disabled, whether authored (`disabled`) or by a
|
|
187
|
+
* constraint (`disable`, `enable`), is excluded together with everything below it. Show, disable and require
|
|
188
|
+
* are all read in one ordered pass, against the values with whatever was excluded before absent, so a field
|
|
189
|
+
* cannot stay shown or required because of an answer nobody can give. A constraint that reads a field
|
|
190
|
+
* resolved later sees its value as held. A field inside an excluded container still gets its own state, read against the values from before the container was excluded. An inactive wizard step is not excluded: it is only not rendered.
|
|
191
|
+
*
|
|
192
|
+
* `shownStep` resolves that step as if its constraints held, so its fields get their own states: a renderer that
|
|
193
|
+
* authors every step's fields once, and lets the step's host hide a skipped step, reads those states for the markup
|
|
194
|
+
* of that step only. The result is no verdict on what takes part: the steps after it read the held values of the
|
|
195
|
+
* step, so only that step's fields are meaningful.
|
|
196
|
+
*/
|
|
197
|
+
export declare function resolveParticipation(steps: readonly ValidationStep[], values: Record<string, unknown>, { shownStep }?: {
|
|
198
|
+
shownStep?: string;
|
|
199
|
+
}): Participation;
|
|
200
|
+
/** Whether a config has anything that can exclude a path, so a container may skip resolving participation. */
|
|
201
|
+
export declare function hasParticipationRules(steps: readonly ValidationStep[]): boolean;
|
|
202
|
+
/** The fields a validation covers, and the values it was planned over. */
|
|
203
|
+
export interface ValidationPlan {
|
|
204
|
+
readonly fields: readonly PlannedField[];
|
|
205
|
+
readonly values: Record<string, unknown>;
|
|
206
|
+
}
|
|
207
|
+
/** One field to validate: its element, its rendered path, whether its own `require` constraint holds and whether one of a container around it does. */
|
|
208
|
+
export interface PlannedField extends FieldElementPath {
|
|
209
|
+
readonly requiredByConstraint: boolean;
|
|
210
|
+
readonly inheritedRequired: boolean;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Lists the fields a validation of `names` covers: the requested paths that take part, expanded over live rows.
|
|
214
|
+
*
|
|
215
|
+
* @remarks
|
|
216
|
+
* A field inside a container (fieldset or array) whose `require` constraint holds is required, at any
|
|
217
|
+
* depth. The container's own `required` rule does not pass down. A planned path is one the validation
|
|
218
|
+
* will report on, so a caller can say which paths are pending before it starts. `participation` is the
|
|
219
|
+
* caller's own {@link resolveParticipation} of the same values, which the container keeps.
|
|
220
|
+
*/
|
|
221
|
+
export declare function planFormValidation({ steps, values, names, exactNames, participation, }: Pick<ValidateFormValuesInput, 'steps' | 'values' | 'names' | 'exactNames'> & {
|
|
222
|
+
participation?: Participation;
|
|
223
|
+
}): ValidationPlan;
|
|
224
|
+
/** Runs a plan: every planned field against its value and rules, in parallel. */
|
|
225
|
+
export declare function runValidationPlan(plan: ValidationPlan, { registry, debounceScope }: Pick<ValidateFormValuesInput, 'registry' | 'debounceScope'>): Promise<FormValidationOutcome>;
|
|
226
|
+
/**
|
|
227
|
+
* Validates named fields and returns what each failed rule reported, by dotted path.
|
|
228
|
+
*
|
|
229
|
+
* @remarks
|
|
230
|
+
* `names` limits validation to matching paths and their descendants, which lets callers validate a
|
|
231
|
+
* wizard step without surfacing errors from later steps; `exactNames` limits it to the named paths
|
|
232
|
+
* themselves. The results are flat so that a container and a row inside it can both fail: `contacts` and
|
|
233
|
+
* `contacts.0.email` are separate keys. Paths that do not take part, see {@link resolveParticipation},
|
|
234
|
+
* are not validated.
|
|
235
|
+
*/
|
|
236
|
+
export declare function validateFormValues(input: ValidateFormValuesInput): Promise<FormValidationOutcome>;
|
|
237
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FormValidationFailure,
|
|
3
|
+
collectStepFieldPaths,
|
|
4
|
+
effectiveRulesFor,
|
|
5
|
+
foldFieldParticipation,
|
|
6
|
+
hasParticipationRules,
|
|
7
|
+
isPathExcluded,
|
|
8
|
+
planFormValidation,
|
|
9
|
+
resolveParticipation,
|
|
10
|
+
runValidationPlan,
|
|
11
|
+
validateFieldValue,
|
|
12
|
+
validateFormValues
|
|
13
|
+
} from "../chunk-WUTGZYP4.js";
|
|
14
|
+
import "../chunk-R3MBVWVI.js";
|
|
15
|
+
import "../chunk-3B7CJOF6.js";
|
|
16
|
+
import "../chunk-KLATKWUA.js";
|
|
17
|
+
import "../chunk-YDGH7DTL.js";
|
|
18
|
+
import "../chunk-S7I76ISM.js";
|
|
19
|
+
import "../chunk-CRQWKC67.js";
|
|
20
|
+
import "../chunk-QLGM2AZW.js";
|
|
21
|
+
import "../chunk-ZUYSGCEH.js";
|
|
22
|
+
import "../chunk-OR2L7EKO.js";
|
|
23
|
+
import "../chunk-6BAJHAGL.js";
|
|
24
|
+
import "../chunk-6NV2JDGI.js";
|
|
25
|
+
import "../chunk-3YLRJVVN.js";
|
|
26
|
+
import "../chunk-CMPOBBRV.js";
|
|
27
|
+
export {
|
|
28
|
+
FormValidationFailure,
|
|
29
|
+
collectStepFieldPaths,
|
|
30
|
+
effectiveRulesFor,
|
|
31
|
+
foldFieldParticipation,
|
|
32
|
+
hasParticipationRules,
|
|
33
|
+
isPathExcluded,
|
|
34
|
+
planFormValidation,
|
|
35
|
+
resolveParticipation,
|
|
36
|
+
runValidationPlan,
|
|
37
|
+
validateFieldValue,
|
|
38
|
+
validateFormValues
|
|
39
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @schema-engine/forms
|
|
3
|
+
*
|
|
4
|
+
* A comprehensive form engine with advanced validation, actions, and tools.
|
|
5
|
+
* Tree-shakable library designed for maximum flexibility and performance.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* The root lists what the bindings, the registry widgets and an application need, by name. Anything else a module
|
|
9
|
+
* of the package holds is internal, so a symbol has one import path: here, or the entry that owns it
|
|
10
|
+
* (`/state-container`, `/recipes`, `/csrf`, `/server-errors`, `/browser`, `/testing`, `/agent-tool`).
|
|
11
|
+
*/
|
|
12
|
+
export { autoSavePlugin } from './actions/plugins/auto-save.plugin';
|
|
13
|
+
export type { AutoSaveAction, AutoSavePluginConfig, AutoSaveStorage } from './actions/plugins/auto-save.plugin';
|
|
14
|
+
export { formResetPlugin } from './actions/plugins/form-reset.plugin';
|
|
15
|
+
export type { FormResetAction, FormResetPluginConfig } from './actions/plugins/form-reset.plugin';
|
|
16
|
+
export { formSubmitPlugin } from './actions/plugins/form-submit.plugin';
|
|
17
|
+
export type { FormSubmitAction, FormSubmitPluginConfig } from './actions/plugins/form-submit.plugin';
|
|
18
|
+
export { SubmitActionRegistration } from './actions/plugins/form-submit.registration';
|
|
19
|
+
export { gtmPlugin } from './actions/plugins/gtm.plugin';
|
|
20
|
+
export type { GTMEventAction, GTMPluginConfig, GTMTrackerInterface } from './actions/plugins/gtm.plugin';
|
|
21
|
+
export { notificationPlugin } from './actions/plugins/notification.plugin';
|
|
22
|
+
export type { NotificationAction, NotificationPluginConfig } from './actions/plugins/notification.plugin';
|
|
23
|
+
export { NotificationActionRegistration } from './actions/plugins/notification.registration';
|
|
24
|
+
export { FormActionTriggerSchema } from './actions/triggers';
|
|
25
|
+
export type { FormActionTrigger } from './actions/triggers';
|
|
26
|
+
export type { ActionExecutionResult, FormActionConfig } from './actions/types';
|
|
27
|
+
export type { DefaultValuesOf, ValuesOf } from './builder/form-values';
|
|
28
|
+
export type { ActionRegistrationConstraint, ElementRegistrationConstraint, EngineOutputMaps, RecipeRegistrationConstraint, ValueEntry, } from './builder/types.utils';
|
|
29
|
+
export { createFormEngine } from './engine/create-form-engine';
|
|
30
|
+
export type { CreateFormEngineOptions, ExtendFormEngineOptions, FormEngineFromOptions, } from './engine/create-form-engine';
|
|
31
|
+
export type { FormActionContextFormState } from './engine/form-action-context';
|
|
32
|
+
export { FormEngine } from './engine/form-engine';
|
|
33
|
+
export type { FormEngineRuntime } from './engine/form-engine';
|
|
34
|
+
export type { FormStepState, StepNavigationMode } from './engine/step-machine';
|
|
35
|
+
export type { SubmissionSchema, SubmissionSchemaConfig } from './engine/submission-schema';
|
|
36
|
+
export { FormValidationFailure, foldFieldParticipation, resolveParticipation, validateFormValues, } from './engine/value-validation';
|
|
37
|
+
export type { FieldParticipation, Participation, ValidationElementTree, ValidationIssue, ValidationSeverity, ValidationStep, } from './engine/value-validation';
|
|
38
|
+
export { createDebounceScope } from './lib/debounce';
|
|
39
|
+
export type { DebounceScope } from './lib/debounce';
|
|
40
|
+
export type { DeepReadonly } from './lib/deep-readonly';
|
|
41
|
+
export { elementChildrenSchema, getElementChildren } from './lib/element-children';
|
|
42
|
+
export type { ElementChildrenInput, ElementChildrenOutput } from './lib/element-children';
|
|
43
|
+
export { applyFieldOverlay, arrayItemScope, collectInitialValues, composeElementKey, composeFieldId, composeFieldName, createArrayRowDefault, flattenStepElements, objectFieldScope, seedArrayRows, usesScalarArrayItem, } from './lib/field-scope';
|
|
44
|
+
export type { FieldOverlay, FieldScope } from './lib/field-scope';
|
|
45
|
+
export type { FormFetch } from './lib/form-fetch';
|
|
46
|
+
export { DEFAULT_WIZARD_RECIPE, assertFormEngine, getRenderableSteps, stepGrid } from './lib/form-view';
|
|
47
|
+
export { getElementContainerKind, isNormalizedElementConfig, isNormalizedFormConfig, markNormalizedElementConfig, markNormalizedFormConfig, } from './lib/normalized-form-config';
|
|
48
|
+
export type { FormConfigView, NormalizedElementConfig, NormalizedFormConfig, ValuesBrand, } from './lib/normalized-form-config';
|
|
49
|
+
export { getValueAtPath, setValueAtPath } from './lib/path-values';
|
|
50
|
+
export { validateRegistrationConfig } from './lib/standard-schema';
|
|
51
|
+
export type { FormValidationIssue, FormValidationResult } from './lib/validate-form/issues';
|
|
52
|
+
export type { ValidateFormOptions } from './lib/validate-form/options';
|
|
53
|
+
export { FormValidationError, formatIssuePath } from './lib/validate-form/validation-error';
|
|
54
|
+
export type { ActionRegistrationRegistry, ElementRegistry, RecipeRegistry } from './registries';
|
|
55
|
+
export { createFormRuntime, defaultNavigate } from './runtime/create-form-runtime';
|
|
56
|
+
export type { SubmissionActionResult } from './runtime/submission-lifecycle';
|
|
57
|
+
export { isSubmissionBusy } from './runtime/types';
|
|
58
|
+
export type { CreateFormRuntimeOptions, FormRuntime, FormRuntimeConfig, FormRuntimeHost, FormRuntimeOutcome, FormRuntimeSnapshot, FormRuntimeStep, FormSubmissionState, FormSubmitHelpers, FormValues, NavigationOutcome, SubmissionStatus, SubmitOutcome, } from './runtime/types';
|
|
59
|
+
export { BaseFieldSchema } from './schemas/base-field';
|
|
60
|
+
export type { BaseField, BaseFieldInput, ConstraintLogic, StepConstraint } from './schemas/base-field';
|
|
61
|
+
export type { ElementConfig, ElementId, GetElementConfig } from './schemas/field-config';
|
|
62
|
+
export type { FormConfig, FormStep, FormViewConfig } from './schemas/form-config';
|
|
63
|
+
export { mergeControlProps } from './schemas/html-attributes';
|
|
64
|
+
export { ValidationSuperseded, ValidationUnavailable } from './schemas/validation/errors';
|
|
65
|
+
export { ValidationPresets } from './schemas/validation/presets';
|
|
66
|
+
export { AsyncRuleSchema, Base64RuleSchema, BaseValidationRuleSchema, CidrRuleSchema, Cuid2RuleSchema, CuidRuleSchema, DateRuleSchema, DateTimeRuleSchema, EmailRuleSchema, HashRuleSchema, HexRuleSchema, Ipv4RuleSchema, Ipv6RuleSchema, JwtRuleSchema, MaxItemsRuleSchema, MaxLengthRuleSchema, MaxRuleSchema, MinItemsRuleSchema, MinLengthRuleSchema, MinRuleSchema, PatternRuleSchema, PhoneRuleSchema, RelateRuleSchema, RequiredRuleSchema, TimeRuleSchema, UlidRuleSchema, UrlRuleSchema, UuidRuleSchema, ValidationRuleSchema, } from './schemas/validation/types';
|
|
67
|
+
export type { AsyncRule, Base64Rule, BaseValidationRule, CidrRule, Cuid2Rule, CuidRule, DateRule, DateTimeRule, EmailRule, HashRule, HexRule, Ipv4Rule, Ipv6Rule, JwtRule, MaxItemsRule, MaxLengthRule, MaxRule, MinItemsRule, MinLengthRule, MinRule, PatternRule, PhoneRule, RelateRule, RelationAssert, RequiredRule, TimeRule, UlidRule, UrlRule, UuidRule, ValidationContext, ValidationRegistration, ValidationRegistrationConstraint, ValidationRule, ValidationScope, } from './schemas/validation/types';
|
|
68
|
+
export { createValidationContext, getValidationRulesForElement, isFieldRequired } from './schemas/validation/utils';
|
|
69
|
+
export type { ValidationContextInput } from './schemas/validation/utils';
|
|
70
|
+
export { createDefaultValidationRegistry, createValidationRegistry } from './schemas/validation/validation-registry';
|
|
71
|
+
export type { RuleCheck, ValidationRegistry, ValidationRegistryOptions, } from './schemas/validation/validation-registry';
|
|
72
|
+
export type { BuilderActionBaseContext, BuilderActionRuntimeContext } from './types/actions';
|
|
73
|
+
export { defineInput, defineStatic } from './types/define-element';
|
|
74
|
+
export type { ElementRenderProps } from './types/define-element';
|
|
75
|
+
export type { ElementMetadata } from './types/metadata';
|
|
76
|
+
export type { AnyActionRegistration, AnyElementRegistration, AnyRecipeRegistration, BuilderActionConfig, BuilderActionRegistration, ContainerKind, ElementKind, InputRegistration, RecipeRegistration, StaticRegistration, ValueDeclaration, } from './types/registration';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NotificationActionRegistration
|
|
3
|
+
} from "./chunk-6FUGK5HQ.js";
|
|
4
|
+
import {
|
|
5
|
+
SubmitActionRegistration
|
|
6
|
+
} from "./chunk-Z6DQLJS2.js";
|
|
7
|
+
import {
|
|
8
|
+
formSubmitPlugin
|
|
9
|
+
} from "./chunk-GT2LARKT.js";
|
|
10
|
+
import {
|
|
11
|
+
notificationPlugin
|
|
12
|
+
} from "./chunk-QT3EYUL5.js";
|
|
13
|
+
import {
|
|
14
|
+
formResetPlugin
|
|
15
|
+
} from "./chunk-LFWEJXWE.js";
|
|
16
|
+
import {
|
|
17
|
+
gtmPlugin
|
|
18
|
+
} from "./chunk-ZDEZ2FOC.js";
|
|
19
|
+
import {
|
|
20
|
+
autoSavePlugin
|
|
21
|
+
} from "./chunk-4XPLSYTK.js";
|
|
22
|
+
import {
|
|
23
|
+
createFormEngine
|
|
24
|
+
} from "./chunk-6EYX257T.js";
|
|
25
|
+
import {
|
|
26
|
+
FormEngine
|
|
27
|
+
} from "./chunk-V5H7L5PJ.js";
|
|
28
|
+
import "./chunk-ZYP3MIH3.js";
|
|
29
|
+
import "./chunk-PBMM2N77.js";
|
|
30
|
+
import "./chunk-DVDKPY2A.js";
|
|
31
|
+
import "./chunk-POCAINUE.js";
|
|
32
|
+
import {
|
|
33
|
+
validateRegistrationConfig
|
|
34
|
+
} from "./chunk-Y5CNB57V.js";
|
|
35
|
+
import "./chunk-DP7SYLLI.js";
|
|
36
|
+
import "./chunk-NJXKMF67.js";
|
|
37
|
+
import "./chunk-6R2MBQPL.js";
|
|
38
|
+
import "./chunk-GRZU6F7Q.js";
|
|
39
|
+
import "./chunk-Q5LEK7CI.js";
|
|
40
|
+
import {
|
|
41
|
+
FormValidationError,
|
|
42
|
+
formatIssuePath
|
|
43
|
+
} from "./chunk-PN5EH6DM.js";
|
|
44
|
+
import "./chunk-YUUDXRBW.js";
|
|
45
|
+
import "./chunk-KSKWSUOB.js";
|
|
46
|
+
import "./chunk-RQRQYYTB.js";
|
|
47
|
+
import "./chunk-AUZ45XPE.js";
|
|
48
|
+
import {
|
|
49
|
+
FormActionTriggerSchema
|
|
50
|
+
} from "./chunk-CAZPWBQ4.js";
|
|
51
|
+
import "./chunk-S5D2QE4G.js";
|
|
52
|
+
import "./chunk-EI5TMJDC.js";
|
|
53
|
+
import "./chunk-2YKQAVI2.js";
|
|
54
|
+
import "./chunk-UGL3KNOT.js";
|
|
55
|
+
import {
|
|
56
|
+
DEFAULT_WIZARD_RECIPE,
|
|
57
|
+
assertFormEngine,
|
|
58
|
+
getRenderableSteps,
|
|
59
|
+
stepGrid
|
|
60
|
+
} from "./chunk-EZZHO6DQ.js";
|
|
61
|
+
import {
|
|
62
|
+
createFormRuntime,
|
|
63
|
+
defaultNavigate
|
|
64
|
+
} from "./chunk-JA5ET6MC.js";
|
|
65
|
+
import "./chunk-5Y6U3MR3.js";
|
|
66
|
+
import "./chunk-HPPFSWIV.js";
|
|
67
|
+
import "./chunk-25PLQDKN.js";
|
|
68
|
+
import "./chunk-GKWRJ6H4.js";
|
|
69
|
+
import "./chunk-H63UHX42.js";
|
|
70
|
+
import {
|
|
71
|
+
isSubmissionBusy
|
|
72
|
+
} from "./chunk-2XWISGGM.js";
|
|
73
|
+
import "./chunk-PH3LWLYN.js";
|
|
74
|
+
import "./chunk-7EQJUI5N.js";
|
|
75
|
+
import "./chunk-XQ5VJ4QO.js";
|
|
76
|
+
import {
|
|
77
|
+
BaseFieldSchema
|
|
78
|
+
} from "./chunk-237BHPDH.js";
|
|
79
|
+
import "./chunk-MKMJT3XR.js";
|
|
80
|
+
import {
|
|
81
|
+
ValidationPresets
|
|
82
|
+
} from "./chunk-XQVKX47O.js";
|
|
83
|
+
import {
|
|
84
|
+
mergeControlProps
|
|
85
|
+
} from "./chunk-4CUGHU36.js";
|
|
86
|
+
import {
|
|
87
|
+
createDefaultValidationRegistry,
|
|
88
|
+
createValidationRegistry
|
|
89
|
+
} from "./chunk-6IZYNHZ3.js";
|
|
90
|
+
import "./chunk-FVOL3ZOJ.js";
|
|
91
|
+
import "./chunk-LMWJAD3B.js";
|
|
92
|
+
import "./chunk-OUF57UZ7.js";
|
|
93
|
+
import "./chunk-G33EUV7N.js";
|
|
94
|
+
import "./chunk-J7GSNWXT.js";
|
|
95
|
+
import "./chunk-MD23VADH.js";
|
|
96
|
+
import "./chunk-OLYHNFKC.js";
|
|
97
|
+
import {
|
|
98
|
+
AsyncRuleSchema,
|
|
99
|
+
Base64RuleSchema,
|
|
100
|
+
BaseValidationRuleSchema,
|
|
101
|
+
CidrRuleSchema,
|
|
102
|
+
Cuid2RuleSchema,
|
|
103
|
+
CuidRuleSchema,
|
|
104
|
+
DateRuleSchema,
|
|
105
|
+
DateTimeRuleSchema,
|
|
106
|
+
EmailRuleSchema,
|
|
107
|
+
HashRuleSchema,
|
|
108
|
+
HexRuleSchema,
|
|
109
|
+
Ipv4RuleSchema,
|
|
110
|
+
Ipv6RuleSchema,
|
|
111
|
+
JwtRuleSchema,
|
|
112
|
+
MaxItemsRuleSchema,
|
|
113
|
+
MaxLengthRuleSchema,
|
|
114
|
+
MaxRuleSchema,
|
|
115
|
+
MinItemsRuleSchema,
|
|
116
|
+
MinLengthRuleSchema,
|
|
117
|
+
MinRuleSchema,
|
|
118
|
+
PatternRuleSchema,
|
|
119
|
+
PhoneRuleSchema,
|
|
120
|
+
RelateRuleSchema,
|
|
121
|
+
RequiredRuleSchema,
|
|
122
|
+
TimeRuleSchema,
|
|
123
|
+
UlidRuleSchema,
|
|
124
|
+
UrlRuleSchema,
|
|
125
|
+
UuidRuleSchema,
|
|
126
|
+
ValidationRuleSchema
|
|
127
|
+
} from "./chunk-KE53GN4Q.js";
|
|
128
|
+
import "./chunk-GQHMU3AR.js";
|
|
129
|
+
import "./chunk-GH34XFCC.js";
|
|
130
|
+
import "./chunk-EQ5AIF3T.js";
|
|
131
|
+
import "./chunk-QYHOFLRX.js";
|
|
132
|
+
import "./chunk-EEYGPPLU.js";
|
|
133
|
+
import "./chunk-BLFLCSG3.js";
|
|
134
|
+
import "./chunk-NJTLBSTR.js";
|
|
135
|
+
import "./chunk-VGGERKV2.js";
|
|
136
|
+
import {
|
|
137
|
+
FormValidationFailure,
|
|
138
|
+
foldFieldParticipation,
|
|
139
|
+
resolveParticipation,
|
|
140
|
+
validateFormValues
|
|
141
|
+
} from "./chunk-WUTGZYP4.js";
|
|
142
|
+
import "./chunk-R3MBVWVI.js";
|
|
143
|
+
import "./chunk-3B7CJOF6.js";
|
|
144
|
+
import {
|
|
145
|
+
createValidationContext,
|
|
146
|
+
getValidationRulesForElement,
|
|
147
|
+
isFieldRequired
|
|
148
|
+
} from "./chunk-KLATKWUA.js";
|
|
149
|
+
import "./chunk-YDGH7DTL.js";
|
|
150
|
+
import {
|
|
151
|
+
applyFieldOverlay,
|
|
152
|
+
arrayItemScope,
|
|
153
|
+
collectInitialValues,
|
|
154
|
+
composeElementKey,
|
|
155
|
+
composeFieldId,
|
|
156
|
+
composeFieldName,
|
|
157
|
+
createArrayRowDefault,
|
|
158
|
+
flattenStepElements,
|
|
159
|
+
objectFieldScope,
|
|
160
|
+
seedArrayRows,
|
|
161
|
+
usesScalarArrayItem
|
|
162
|
+
} from "./chunk-S7I76ISM.js";
|
|
163
|
+
import {
|
|
164
|
+
getElementContainerKind,
|
|
165
|
+
isNormalizedElementConfig,
|
|
166
|
+
isNormalizedFormConfig,
|
|
167
|
+
markNormalizedElementConfig,
|
|
168
|
+
markNormalizedFormConfig
|
|
169
|
+
} from "./chunk-CRQWKC67.js";
|
|
170
|
+
import {
|
|
171
|
+
getValueAtPath,
|
|
172
|
+
setValueAtPath
|
|
173
|
+
} from "./chunk-QLGM2AZW.js";
|
|
174
|
+
import {
|
|
175
|
+
elementChildrenSchema,
|
|
176
|
+
getElementChildren
|
|
177
|
+
} from "./chunk-ZUYSGCEH.js";
|
|
178
|
+
import {
|
|
179
|
+
createDebounceScope
|
|
180
|
+
} from "./chunk-OR2L7EKO.js";
|
|
181
|
+
import {
|
|
182
|
+
ValidationSuperseded,
|
|
183
|
+
ValidationUnavailable
|
|
184
|
+
} from "./chunk-6BAJHAGL.js";
|
|
185
|
+
import "./chunk-6NV2JDGI.js";
|
|
186
|
+
import "./chunk-PCL2KNHC.js";
|
|
187
|
+
import "./chunk-UN3DARLG.js";
|
|
188
|
+
import "./chunk-RB22U6HI.js";
|
|
189
|
+
import "./chunk-K5TMXCMY.js";
|
|
190
|
+
import "./chunk-3YLRJVVN.js";
|
|
191
|
+
import "./chunk-CMPOBBRV.js";
|
|
192
|
+
import {
|
|
193
|
+
defineInput,
|
|
194
|
+
defineStatic
|
|
195
|
+
} from "./chunk-K22S7IZR.js";
|
|
196
|
+
export {
|
|
197
|
+
AsyncRuleSchema,
|
|
198
|
+
Base64RuleSchema,
|
|
199
|
+
BaseFieldSchema,
|
|
200
|
+
BaseValidationRuleSchema,
|
|
201
|
+
CidrRuleSchema,
|
|
202
|
+
Cuid2RuleSchema,
|
|
203
|
+
CuidRuleSchema,
|
|
204
|
+
DEFAULT_WIZARD_RECIPE,
|
|
205
|
+
DateRuleSchema,
|
|
206
|
+
DateTimeRuleSchema,
|
|
207
|
+
EmailRuleSchema,
|
|
208
|
+
FormActionTriggerSchema,
|
|
209
|
+
FormEngine,
|
|
210
|
+
FormValidationError,
|
|
211
|
+
FormValidationFailure,
|
|
212
|
+
HashRuleSchema,
|
|
213
|
+
HexRuleSchema,
|
|
214
|
+
Ipv4RuleSchema,
|
|
215
|
+
Ipv6RuleSchema,
|
|
216
|
+
JwtRuleSchema,
|
|
217
|
+
MaxItemsRuleSchema,
|
|
218
|
+
MaxLengthRuleSchema,
|
|
219
|
+
MaxRuleSchema,
|
|
220
|
+
MinItemsRuleSchema,
|
|
221
|
+
MinLengthRuleSchema,
|
|
222
|
+
MinRuleSchema,
|
|
223
|
+
NotificationActionRegistration,
|
|
224
|
+
PatternRuleSchema,
|
|
225
|
+
PhoneRuleSchema,
|
|
226
|
+
RelateRuleSchema,
|
|
227
|
+
RequiredRuleSchema,
|
|
228
|
+
SubmitActionRegistration,
|
|
229
|
+
TimeRuleSchema,
|
|
230
|
+
UlidRuleSchema,
|
|
231
|
+
UrlRuleSchema,
|
|
232
|
+
UuidRuleSchema,
|
|
233
|
+
ValidationPresets,
|
|
234
|
+
ValidationRuleSchema,
|
|
235
|
+
ValidationSuperseded,
|
|
236
|
+
ValidationUnavailable,
|
|
237
|
+
applyFieldOverlay,
|
|
238
|
+
arrayItemScope,
|
|
239
|
+
assertFormEngine,
|
|
240
|
+
autoSavePlugin,
|
|
241
|
+
collectInitialValues,
|
|
242
|
+
composeElementKey,
|
|
243
|
+
composeFieldId,
|
|
244
|
+
composeFieldName,
|
|
245
|
+
createArrayRowDefault,
|
|
246
|
+
createDebounceScope,
|
|
247
|
+
createDefaultValidationRegistry,
|
|
248
|
+
createFormEngine,
|
|
249
|
+
createFormRuntime,
|
|
250
|
+
createValidationContext,
|
|
251
|
+
createValidationRegistry,
|
|
252
|
+
defaultNavigate,
|
|
253
|
+
defineInput,
|
|
254
|
+
defineStatic,
|
|
255
|
+
elementChildrenSchema,
|
|
256
|
+
flattenStepElements,
|
|
257
|
+
foldFieldParticipation,
|
|
258
|
+
formResetPlugin,
|
|
259
|
+
formSubmitPlugin,
|
|
260
|
+
formatIssuePath,
|
|
261
|
+
getElementChildren,
|
|
262
|
+
getElementContainerKind,
|
|
263
|
+
getRenderableSteps,
|
|
264
|
+
getValidationRulesForElement,
|
|
265
|
+
getValueAtPath,
|
|
266
|
+
gtmPlugin,
|
|
267
|
+
isFieldRequired,
|
|
268
|
+
isNormalizedElementConfig,
|
|
269
|
+
isNormalizedFormConfig,
|
|
270
|
+
isSubmissionBusy,
|
|
271
|
+
markNormalizedElementConfig,
|
|
272
|
+
markNormalizedFormConfig,
|
|
273
|
+
mergeControlProps,
|
|
274
|
+
notificationPlugin,
|
|
275
|
+
objectFieldScope,
|
|
276
|
+
resolveParticipation,
|
|
277
|
+
seedArrayRows,
|
|
278
|
+
setValueAtPath,
|
|
279
|
+
stepGrid,
|
|
280
|
+
usesScalarArrayItem,
|
|
281
|
+
validateFormValues,
|
|
282
|
+
validateRegistrationConfig
|
|
283
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AnyRecipeRegistration } from '../types/registration.js';
|
|
2
|
+
import type { RecipeDescriptor, ViewCatalog } from '../recipes/types.js';
|
|
3
|
+
export declare function describeRecipeFromRegistration(recipe: AnyRecipeRegistration, generateViewSchema?: (recipe: AnyRecipeRegistration) => Record<string, unknown>): RecipeDescriptor;
|
|
4
|
+
export declare function describeViewCatalogFromRecipes(recipes: AnyRecipeRegistration[], generateViewSchema?: (recipe: AnyRecipeRegistration) => Record<string, unknown>): ViewCatalog;
|
|
5
|
+
export declare function getAuthoringInstructionsFromCatalog(catalog: ViewCatalog): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
describeRecipeFromRegistration,
|
|
3
|
+
describeViewCatalogFromRecipes,
|
|
4
|
+
getAuthoringInstructionsFromCatalog
|
|
5
|
+
} from "../chunk-EI5TMJDC.js";
|
|
6
|
+
import "../chunk-EZZHO6DQ.js";
|
|
7
|
+
export {
|
|
8
|
+
describeRecipeFromRegistration,
|
|
9
|
+
describeViewCatalogFromRecipes,
|
|
10
|
+
getAuthoringInstructionsFromCatalog
|
|
11
|
+
};
|