@schema-engine/forms 0.0.0-stage → 0.5.0
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-2PTM54FQ.js +51 -0
- package/dist/chunk-2PTM54FQ.js.map +7 -0
- package/dist/chunk-2VKEOE2L.js +907 -0
- package/dist/chunk-2VKEOE2L.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-56CJ2UZ7.js +55 -0
- package/dist/chunk-56CJ2UZ7.js.map +7 -0
- package/dist/chunk-5QXT7YAJ.js +87 -0
- package/dist/chunk-5QXT7YAJ.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-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-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-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-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-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-GY657L56.js +206 -0
- package/dist/chunk-GY657L56.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-HEAKWS27.js +2730 -0
- package/dist/chunk-HEAKWS27.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-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-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-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-PXWVKJGF.js +6 -0
- package/dist/chunk-PXWVKJGF.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-U2X3IYSD.js +23 -0
- package/dist/chunk-U2X3IYSD.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-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-WS7SLVXL.js +550 -0
- package/dist/chunk-WS7SLVXL.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-XPQRHO5E.js +587 -0
- package/dist/chunk-XPQRHO5E.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/form-state-container-conformance.d.ts +51 -0
- package/dist/testing/form-state-container-conformance.js +43 -0
- package/dist/testing/form-state-container-conformance.js.map +7 -0
- package/dist/testing/index.d.ts +7 -0
- package/dist/testing/index.js +35 -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 +119 -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 +179 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FormConfigSchema,
|
|
3
|
+
FormStepSchema,
|
|
4
|
+
FormViewConfigSchema,
|
|
5
|
+
formConfigEnvelopeSchema
|
|
6
|
+
} from "../chunk-7EQJUI5N.js";
|
|
7
|
+
import {
|
|
8
|
+
TypedConfigEnvelopeSchema
|
|
9
|
+
} from "../chunk-XQ5VJ4QO.js";
|
|
10
|
+
import "../chunk-237BHPDH.js";
|
|
11
|
+
import "../chunk-MKMJT3XR.js";
|
|
12
|
+
import "../chunk-XQVKX47O.js";
|
|
13
|
+
import "../chunk-4CUGHU36.js";
|
|
14
|
+
import "../chunk-GH34XFCC.js";
|
|
15
|
+
import "../chunk-6IZYNHZ3.js";
|
|
16
|
+
import "../chunk-FVOL3ZOJ.js";
|
|
17
|
+
import "../chunk-LMWJAD3B.js";
|
|
18
|
+
import "../chunk-OUF57UZ7.js";
|
|
19
|
+
import "../chunk-G33EUV7N.js";
|
|
20
|
+
import "../chunk-J7GSNWXT.js";
|
|
21
|
+
import "../chunk-MD23VADH.js";
|
|
22
|
+
import "../chunk-OLYHNFKC.js";
|
|
23
|
+
import "../chunk-KE53GN4Q.js";
|
|
24
|
+
import "../chunk-KLATKWUA.js";
|
|
25
|
+
import "../chunk-YDGH7DTL.js";
|
|
26
|
+
import "../chunk-S7I76ISM.js";
|
|
27
|
+
import "../chunk-CRQWKC67.js";
|
|
28
|
+
import "../chunk-QLGM2AZW.js";
|
|
29
|
+
import "../chunk-OR2L7EKO.js";
|
|
30
|
+
import "../chunk-ZUYSGCEH.js";
|
|
31
|
+
import "../chunk-6BAJHAGL.js";
|
|
32
|
+
import "../chunk-6NV2JDGI.js";
|
|
33
|
+
import "../chunk-3YLRJVVN.js";
|
|
34
|
+
import "../chunk-CMPOBBRV.js";
|
|
35
|
+
export {
|
|
36
|
+
FormConfigSchema,
|
|
37
|
+
FormStepSchema,
|
|
38
|
+
FormViewConfigSchema,
|
|
39
|
+
TypedConfigEnvelopeSchema,
|
|
40
|
+
formConfigEnvelopeSchema
|
|
41
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const RESERVED_HTML_ATTRIBUTE_KEYS: Set<string>;
|
|
3
|
+
export declare const HtmlAttributeValueSchema: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>, z.ZodMiniBoolean<boolean>]>;
|
|
4
|
+
export declare const HtmlAttributesSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniNumber<number>, z.ZodMiniBoolean<boolean>]>>>;
|
|
5
|
+
export type HtmlAttributes = z.infer<typeof HtmlAttributesSchema>;
|
|
6
|
+
/**
|
|
7
|
+
* Merges optional field `htmlAttributes` under engine control props (identity, a11y, disabled).
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* Pass static control props only. Wire event handlers on the JSX node after spreading the result.
|
|
11
|
+
*/
|
|
12
|
+
export declare function mergeControlProps<const TControl extends Record<string, unknown>>(controlProps: TControl, htmlAttributes?: HtmlAttributes | null): TControl;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HtmlAttributeValueSchema,
|
|
3
|
+
HtmlAttributesSchema,
|
|
4
|
+
RESERVED_HTML_ATTRIBUTE_KEYS,
|
|
5
|
+
mergeControlProps
|
|
6
|
+
} from "../chunk-4CUGHU36.js";
|
|
7
|
+
export {
|
|
8
|
+
HtmlAttributeValueSchema,
|
|
9
|
+
HtmlAttributesSchema,
|
|
10
|
+
RESERVED_HTML_ATTRIBUTE_KEYS,
|
|
11
|
+
mergeControlProps
|
|
12
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import "../chunk-BKNWW4PK.js";
|
|
2
|
+
import {
|
|
3
|
+
FormConfigSchema,
|
|
4
|
+
FormStepSchema,
|
|
5
|
+
FormViewConfigSchema,
|
|
6
|
+
formConfigEnvelopeSchema
|
|
7
|
+
} from "../chunk-7EQJUI5N.js";
|
|
8
|
+
import {
|
|
9
|
+
TypedConfigEnvelopeSchema
|
|
10
|
+
} from "../chunk-XQ5VJ4QO.js";
|
|
11
|
+
import {
|
|
12
|
+
BaseFieldSchema,
|
|
13
|
+
ConstraintLogicSchema,
|
|
14
|
+
RendererStyleSchema,
|
|
15
|
+
StepConstraintSchema
|
|
16
|
+
} from "../chunk-237BHPDH.js";
|
|
17
|
+
import "../chunk-MKMJT3XR.js";
|
|
18
|
+
import {
|
|
19
|
+
ValidationPresets
|
|
20
|
+
} from "../chunk-XQVKX47O.js";
|
|
21
|
+
import {
|
|
22
|
+
HtmlAttributeValueSchema,
|
|
23
|
+
HtmlAttributesSchema,
|
|
24
|
+
RESERVED_HTML_ATTRIBUTE_KEYS,
|
|
25
|
+
mergeControlProps
|
|
26
|
+
} from "../chunk-4CUGHU36.js";
|
|
27
|
+
import {
|
|
28
|
+
buildDependencyIndex,
|
|
29
|
+
shouldSurfaceDependentError
|
|
30
|
+
} from "../chunk-GH34XFCC.js";
|
|
31
|
+
import {
|
|
32
|
+
createDefaultValidationRegistry,
|
|
33
|
+
createValidationRegistry
|
|
34
|
+
} from "../chunk-6IZYNHZ3.js";
|
|
35
|
+
import "../chunk-FVOL3ZOJ.js";
|
|
36
|
+
import "../chunk-LMWJAD3B.js";
|
|
37
|
+
import "../chunk-OUF57UZ7.js";
|
|
38
|
+
import {
|
|
39
|
+
defaultValidations
|
|
40
|
+
} from "../chunk-G33EUV7N.js";
|
|
41
|
+
import "../chunk-J7GSNWXT.js";
|
|
42
|
+
import "../chunk-MD23VADH.js";
|
|
43
|
+
import {
|
|
44
|
+
relateValidation
|
|
45
|
+
} from "../chunk-OLYHNFKC.js";
|
|
46
|
+
import {
|
|
47
|
+
AsyncRuleSchema,
|
|
48
|
+
Base64RuleSchema,
|
|
49
|
+
BaseValidationRuleSchema,
|
|
50
|
+
CidrRuleSchema,
|
|
51
|
+
Cuid2RuleSchema,
|
|
52
|
+
CuidRuleSchema,
|
|
53
|
+
DateRuleSchema,
|
|
54
|
+
DateTimeRuleSchema,
|
|
55
|
+
EmailRuleSchema,
|
|
56
|
+
HashRuleSchema,
|
|
57
|
+
HexRuleSchema,
|
|
58
|
+
Ipv4RuleSchema,
|
|
59
|
+
Ipv6RuleSchema,
|
|
60
|
+
JwtRuleSchema,
|
|
61
|
+
MaxItemsRuleSchema,
|
|
62
|
+
MaxLengthRuleSchema,
|
|
63
|
+
MaxRuleSchema,
|
|
64
|
+
MinItemsRuleSchema,
|
|
65
|
+
MinLengthRuleSchema,
|
|
66
|
+
MinRuleSchema,
|
|
67
|
+
PatternRuleSchema,
|
|
68
|
+
PhoneRuleSchema,
|
|
69
|
+
RelateRuleSchema,
|
|
70
|
+
RelationAssertSchema,
|
|
71
|
+
RequiredRuleSchema,
|
|
72
|
+
TimeRuleSchema,
|
|
73
|
+
UlidRuleSchema,
|
|
74
|
+
UrlRuleSchema,
|
|
75
|
+
UuidRuleSchema,
|
|
76
|
+
ValidationRuleSchema
|
|
77
|
+
} from "../chunk-KE53GN4Q.js";
|
|
78
|
+
import {
|
|
79
|
+
collectValidatableFields,
|
|
80
|
+
createValidationContext,
|
|
81
|
+
createZodSchemaFromRules,
|
|
82
|
+
generateFormSchema,
|
|
83
|
+
getValidationRulesForElement,
|
|
84
|
+
isFieldRequired
|
|
85
|
+
} from "../chunk-KLATKWUA.js";
|
|
86
|
+
import "../chunk-YDGH7DTL.js";
|
|
87
|
+
import "../chunk-S7I76ISM.js";
|
|
88
|
+
import "../chunk-CRQWKC67.js";
|
|
89
|
+
import "../chunk-QLGM2AZW.js";
|
|
90
|
+
import "../chunk-OR2L7EKO.js";
|
|
91
|
+
import "../chunk-ZUYSGCEH.js";
|
|
92
|
+
import {
|
|
93
|
+
REPORTED_TEXT,
|
|
94
|
+
ValidationRuleError,
|
|
95
|
+
ValidationSuperseded,
|
|
96
|
+
ValidationUnavailable
|
|
97
|
+
} from "../chunk-6BAJHAGL.js";
|
|
98
|
+
import {
|
|
99
|
+
isEmpty
|
|
100
|
+
} from "../chunk-6NV2JDGI.js";
|
|
101
|
+
import "../chunk-3YLRJVVN.js";
|
|
102
|
+
import "../chunk-CMPOBBRV.js";
|
|
103
|
+
export {
|
|
104
|
+
AsyncRuleSchema,
|
|
105
|
+
Base64RuleSchema,
|
|
106
|
+
BaseFieldSchema,
|
|
107
|
+
BaseValidationRuleSchema,
|
|
108
|
+
CidrRuleSchema,
|
|
109
|
+
ConstraintLogicSchema,
|
|
110
|
+
Cuid2RuleSchema,
|
|
111
|
+
CuidRuleSchema,
|
|
112
|
+
DateRuleSchema,
|
|
113
|
+
DateTimeRuleSchema,
|
|
114
|
+
EmailRuleSchema,
|
|
115
|
+
FormConfigSchema,
|
|
116
|
+
FormStepSchema,
|
|
117
|
+
FormViewConfigSchema,
|
|
118
|
+
HashRuleSchema,
|
|
119
|
+
HexRuleSchema,
|
|
120
|
+
HtmlAttributeValueSchema,
|
|
121
|
+
HtmlAttributesSchema,
|
|
122
|
+
Ipv4RuleSchema,
|
|
123
|
+
Ipv6RuleSchema,
|
|
124
|
+
JwtRuleSchema,
|
|
125
|
+
MaxItemsRuleSchema,
|
|
126
|
+
MaxLengthRuleSchema,
|
|
127
|
+
MaxRuleSchema,
|
|
128
|
+
MinItemsRuleSchema,
|
|
129
|
+
MinLengthRuleSchema,
|
|
130
|
+
MinRuleSchema,
|
|
131
|
+
PatternRuleSchema,
|
|
132
|
+
PhoneRuleSchema,
|
|
133
|
+
REPORTED_TEXT,
|
|
134
|
+
RESERVED_HTML_ATTRIBUTE_KEYS,
|
|
135
|
+
RelateRuleSchema,
|
|
136
|
+
RelationAssertSchema,
|
|
137
|
+
RendererStyleSchema,
|
|
138
|
+
RequiredRuleSchema,
|
|
139
|
+
StepConstraintSchema,
|
|
140
|
+
TimeRuleSchema,
|
|
141
|
+
TypedConfigEnvelopeSchema,
|
|
142
|
+
UlidRuleSchema,
|
|
143
|
+
UrlRuleSchema,
|
|
144
|
+
UuidRuleSchema,
|
|
145
|
+
ValidationPresets,
|
|
146
|
+
ValidationRuleError,
|
|
147
|
+
ValidationRuleSchema,
|
|
148
|
+
ValidationSuperseded,
|
|
149
|
+
ValidationUnavailable,
|
|
150
|
+
buildDependencyIndex,
|
|
151
|
+
collectValidatableFields,
|
|
152
|
+
createDefaultValidationRegistry,
|
|
153
|
+
createValidationContext,
|
|
154
|
+
createValidationRegistry,
|
|
155
|
+
createZodSchemaFromRules,
|
|
156
|
+
defaultValidations,
|
|
157
|
+
formConfigEnvelopeSchema,
|
|
158
|
+
generateFormSchema,
|
|
159
|
+
getValidationRulesForElement,
|
|
160
|
+
isEmpty,
|
|
161
|
+
isFieldRequired,
|
|
162
|
+
mergeControlProps,
|
|
163
|
+
relateValidation,
|
|
164
|
+
shouldSurfaceDependentError
|
|
165
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Async Validation Cache
|
|
3
|
+
*
|
|
4
|
+
* High-performance in-memory cache for async validation results
|
|
5
|
+
*/
|
|
6
|
+
interface CacheStats {
|
|
7
|
+
readonly size: number;
|
|
8
|
+
readonly hits: number;
|
|
9
|
+
readonly misses: number;
|
|
10
|
+
readonly evictions: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* High-performance in-memory cache for async validation results
|
|
14
|
+
*/
|
|
15
|
+
declare class AsyncValidationCache {
|
|
16
|
+
private readonly cache;
|
|
17
|
+
private readonly stats;
|
|
18
|
+
private readonly defaultTTL;
|
|
19
|
+
private readonly maxSize;
|
|
20
|
+
/**
|
|
21
|
+
* Generates cache key from validation parameters
|
|
22
|
+
*/
|
|
23
|
+
private generateCacheKey;
|
|
24
|
+
/**
|
|
25
|
+
* Evicts expired entries and enforces size limits
|
|
26
|
+
*/
|
|
27
|
+
private evictStale;
|
|
28
|
+
get(url: string, payload: Record<string, unknown>): unknown;
|
|
29
|
+
set(url: string, payload: Record<string, unknown>, result: unknown, customTTL?: number): void;
|
|
30
|
+
clear(): void;
|
|
31
|
+
cleanup(): void;
|
|
32
|
+
getStats(): CacheStats;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Global cache instance for async validation.
|
|
36
|
+
* Expired entries are evicted lazily on get/set; call cleanup() for explicit sweeps.
|
|
37
|
+
*/
|
|
38
|
+
export declare const asyncValidationCache: AsyncValidationCache;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
import type { AsyncRule, ValidationContext } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* HTTP methods supported for async validation requests
|
|
5
|
+
*/
|
|
6
|
+
export type AsyncValidationMethod = NonNullable<AsyncRule['method']>;
|
|
7
|
+
/**
|
|
8
|
+
* Expected response format for validation success determination
|
|
9
|
+
*/
|
|
10
|
+
export type AsyncValidationResponse = NonNullable<AsyncRule['expectedResponse']>;
|
|
11
|
+
/**
|
|
12
|
+
* Cache TTL for an answer of the service; an outage is never cached
|
|
13
|
+
*/
|
|
14
|
+
export declare const CACHE_TTL: {
|
|
15
|
+
readonly DEFAULT: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Creates a Zod Mini async validation handler for server-side validation.
|
|
19
|
+
* Includes debouncing, dependency resolution, and performance optimizations.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createAsyncValidationHandler(rule: AsyncRule, context: ValidationContext): z.ZodMiniUnknown;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CACHE_TTL,
|
|
3
|
+
createAsyncValidationHandler
|
|
4
|
+
} from "../../../chunk-J7GSNWXT.js";
|
|
5
|
+
import "../../../chunk-MD23VADH.js";
|
|
6
|
+
import "../../../chunk-6BAJHAGL.js";
|
|
7
|
+
import "../../../chunk-6NV2JDGI.js";
|
|
8
|
+
export {
|
|
9
|
+
CACHE_TTL,
|
|
10
|
+
createAsyncValidationHandler
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CACHE_TTL,
|
|
3
|
+
createAsyncValidationHandler
|
|
4
|
+
} from "../../../chunk-J7GSNWXT.js";
|
|
5
|
+
import {
|
|
6
|
+
asyncValidationCache
|
|
7
|
+
} from "../../../chunk-MD23VADH.js";
|
|
8
|
+
import "../../../chunk-6BAJHAGL.js";
|
|
9
|
+
import "../../../chunk-6NV2JDGI.js";
|
|
10
|
+
export {
|
|
11
|
+
CACHE_TTL,
|
|
12
|
+
asyncValidationCache,
|
|
13
|
+
createAsyncValidationHandler
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defaultValidations
|
|
3
|
+
} from "../../chunk-G33EUV7N.js";
|
|
4
|
+
import "../../chunk-J7GSNWXT.js";
|
|
5
|
+
import "../../chunk-MD23VADH.js";
|
|
6
|
+
import "../../chunk-OLYHNFKC.js";
|
|
7
|
+
import "../../chunk-KE53GN4Q.js";
|
|
8
|
+
import "../../chunk-6BAJHAGL.js";
|
|
9
|
+
import "../../chunk-6NV2JDGI.js";
|
|
10
|
+
export {
|
|
11
|
+
defaultValidations
|
|
12
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ValidationRegistry } from './validation-registry.js';
|
|
2
|
+
/**
|
|
3
|
+
* Which fields a renderer must re-validate when a value changes.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Built over *rendered* paths, so `lines.0.max` depends on `lines.0.quantity`
|
|
7
|
+
* and not on every row's quantity.
|
|
8
|
+
*/
|
|
9
|
+
export interface DependencyIndex {
|
|
10
|
+
/** Field paths whose validation must re-run when `path` changes. */
|
|
11
|
+
dependentsOf(path: string): readonly string[];
|
|
12
|
+
/** Union of {@link DependencyIndex.dependentsOf} across several changed paths. */
|
|
13
|
+
expand(changed: readonly string[]): string[];
|
|
14
|
+
/** Every path something depends on — the set worth diffing. */
|
|
15
|
+
readonly watched: readonly string[];
|
|
16
|
+
/**
|
|
17
|
+
* What the field at `path` reads, as its rules and constraints wrote it.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* References come back as authored, because what they mean depends on where the field is: a bare name
|
|
21
|
+
* is a sibling of the field and a dotted one is a position. Resolve them with `resolveFieldRef` against
|
|
22
|
+
* the field's path as it is when the question is asked.
|
|
23
|
+
*/
|
|
24
|
+
referencesOf(path: string): readonly string[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Inverts each field's declared rule and require-constraint dependencies into a change-to-dependents map.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Only direct dependents, deliberately: if `c` depends on `b` and `b` on `a`,
|
|
31
|
+
* changing `a` re-validates `b` and not `c`. Transitive expansion invites cycles
|
|
32
|
+
* and no assertion needs it, because every one of them reads values rather than
|
|
33
|
+
* another field's validity. A rule that depends on validity would have to
|
|
34
|
+
* revisit this.
|
|
35
|
+
*
|
|
36
|
+
* Not cached here: the index depends on the config and on how many array rows
|
|
37
|
+
* exist, so a caller that keeps one must rebuild it when a row is added or
|
|
38
|
+
* removed.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildDependencyIndex(elements: readonly object[], values: Record<string, unknown>, registry: ValidationRegistry): DependencyIndex;
|
|
41
|
+
/**
|
|
42
|
+
* Whether a dependent field's re-validation should be allowed to show an error.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Typing a password must not light up a confirmation the user has not reached.
|
|
46
|
+
* Both renderers ask this one function rather than deciding locally, which is
|
|
47
|
+
* the mistake the constraint subsystem made once and paid for twice.
|
|
48
|
+
*/
|
|
49
|
+
export declare function shouldSurfaceDependentError(field: {
|
|
50
|
+
touched: boolean;
|
|
51
|
+
submitted: boolean;
|
|
52
|
+
}): boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildDependencyIndex,
|
|
3
|
+
shouldSurfaceDependentError
|
|
4
|
+
} from "../../chunk-GH34XFCC.js";
|
|
5
|
+
import "../../chunk-KLATKWUA.js";
|
|
6
|
+
import "../../chunk-YDGH7DTL.js";
|
|
7
|
+
import "../../chunk-S7I76ISM.js";
|
|
8
|
+
import "../../chunk-CRQWKC67.js";
|
|
9
|
+
import "../../chunk-QLGM2AZW.js";
|
|
10
|
+
import "../../chunk-OR2L7EKO.js";
|
|
11
|
+
import "../../chunk-ZUYSGCEH.js";
|
|
12
|
+
import "../../chunk-3YLRJVVN.js";
|
|
13
|
+
import "../../chunk-CMPOBBRV.js";
|
|
14
|
+
export {
|
|
15
|
+
buildDependencyIndex,
|
|
16
|
+
shouldSurfaceDependentError
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isEmpty(value: unknown): boolean;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A validation rule that cannot be turned into a schema.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Thrown by `ValidationRegistry.createSchema` for a type nobody registered or a handler that throws on
|
|
6
|
+
* the rule it was given. `cause` is the handler's own error.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ValidationRuleError extends Error {
|
|
9
|
+
readonly ruleType: string;
|
|
10
|
+
constructor(ruleType: string, message: string, options?: {
|
|
11
|
+
cause?: unknown;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Thrown by a rule's schema when the check it started was replaced before it ran, so it has no result.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Distinct from a pass and from a failure: the value was never checked, and a later check owns the answer.
|
|
19
|
+
* It is state, never an issue. `validateFieldValue` reports it as `superseded`, and a caller must not take
|
|
20
|
+
* the field for valid.
|
|
21
|
+
*/
|
|
22
|
+
export declare class ValidationSuperseded extends Error {
|
|
23
|
+
constructor();
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Thrown by a rule's schema when the service it asks cannot answer: a non-ok response, a network failure or a body that is not an answer.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Operational, not a field error and never cached: the value was not judged, and asking again may succeed.
|
|
30
|
+
* `validateFieldValue` reports it as a `FormValidationFailure`, keeping this as its cause.
|
|
31
|
+
*/
|
|
32
|
+
export declare class ValidationUnavailable extends Error {
|
|
33
|
+
constructor(options?: {
|
|
34
|
+
cause?: unknown;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The key of an issue's `params` under which a schema reports text that comes from outside the engine.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* The library's own text for an issue (such as 'Invalid input') is never read. Text a service answered with is
|
|
42
|
+
* put here by the schema, and only this reaches a registration's `message` hook.
|
|
43
|
+
*/
|
|
44
|
+
export declare const REPORTED_TEXT = "schemaEngineReportedText";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './validation-registry.js';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './defaults.js';
|
|
4
|
+
export * from './dependencies.js';
|
|
5
|
+
export * from './relations.js';
|
|
6
|
+
export * from './empty.js';
|
|
7
|
+
export * from './presets.js';
|
|
8
|
+
export * from './utils.js';
|
|
9
|
+
export * from './errors.js';
|