@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,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bareControlsSpec,
|
|
3
|
+
builtInRecipeSpecs,
|
|
4
|
+
cardSpec,
|
|
5
|
+
cardWizardSpec,
|
|
6
|
+
heroBackgroundSpec,
|
|
7
|
+
heroWizardSpec,
|
|
8
|
+
sidebarWizardSpec,
|
|
9
|
+
splitScreenSpec,
|
|
10
|
+
splitScreenWizardSpec,
|
|
11
|
+
wizardSpec
|
|
12
|
+
} from "../chunk-WLDCYUN6.js";
|
|
13
|
+
import "../chunk-J5BSFDVK.js";
|
|
14
|
+
import "../chunk-E4VONSLO.js";
|
|
15
|
+
import "../chunk-UGL3KNOT.js";
|
|
16
|
+
import "../chunk-EZZHO6DQ.js";
|
|
17
|
+
export {
|
|
18
|
+
bareControlsSpec,
|
|
19
|
+
builtInRecipeSpecs,
|
|
20
|
+
cardSpec,
|
|
21
|
+
cardWizardSpec,
|
|
22
|
+
heroBackgroundSpec,
|
|
23
|
+
heroWizardSpec,
|
|
24
|
+
sidebarWizardSpec,
|
|
25
|
+
splitScreenSpec,
|
|
26
|
+
splitScreenWizardSpec,
|
|
27
|
+
wizardSpec
|
|
28
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bareControlsSpec,
|
|
3
|
+
builtInRecipeSpecs,
|
|
4
|
+
cardSpec,
|
|
5
|
+
cardWizardSpec,
|
|
6
|
+
heroBackgroundSpec,
|
|
7
|
+
heroWizardSpec,
|
|
8
|
+
sidebarWizardSpec,
|
|
9
|
+
splitScreenSpec,
|
|
10
|
+
splitScreenWizardSpec,
|
|
11
|
+
wizardSpec
|
|
12
|
+
} from "../chunk-WLDCYUN6.js";
|
|
13
|
+
import {
|
|
14
|
+
CardShellConfigSchema,
|
|
15
|
+
FormActionsConfigSchema,
|
|
16
|
+
HeroShellConfigSchema,
|
|
17
|
+
MinimalProgressConfigSchema,
|
|
18
|
+
SidebarShellConfigSchema,
|
|
19
|
+
SplitScreenShellConfigSchema,
|
|
20
|
+
StepHeaderConfigSchema,
|
|
21
|
+
StepIndicatorsConfigSchema,
|
|
22
|
+
WizardActionsConfigSchema,
|
|
23
|
+
formatStepLabel
|
|
24
|
+
} from "../chunk-J5BSFDVK.js";
|
|
25
|
+
import "../chunk-E4VONSLO.js";
|
|
26
|
+
import "../chunk-UGL3KNOT.js";
|
|
27
|
+
import "../chunk-EZZHO6DQ.js";
|
|
28
|
+
export {
|
|
29
|
+
CardShellConfigSchema,
|
|
30
|
+
FormActionsConfigSchema,
|
|
31
|
+
HeroShellConfigSchema,
|
|
32
|
+
MinimalProgressConfigSchema,
|
|
33
|
+
SidebarShellConfigSchema,
|
|
34
|
+
SplitScreenShellConfigSchema,
|
|
35
|
+
StepHeaderConfigSchema,
|
|
36
|
+
StepIndicatorsConfigSchema,
|
|
37
|
+
WizardActionsConfigSchema,
|
|
38
|
+
bareControlsSpec,
|
|
39
|
+
builtInRecipeSpecs,
|
|
40
|
+
cardSpec,
|
|
41
|
+
cardWizardSpec,
|
|
42
|
+
formatStepLabel,
|
|
43
|
+
heroBackgroundSpec,
|
|
44
|
+
heroWizardSpec,
|
|
45
|
+
sidebarWizardSpec,
|
|
46
|
+
splitScreenSpec,
|
|
47
|
+
splitScreenWizardSpec,
|
|
48
|
+
wizardSpec
|
|
49
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { z } from 'zod/mini';
|
|
2
|
+
import type { RecipeRegistration } from '../types/index.js';
|
|
3
|
+
import type { RecipeSlotSchemas, RecipeSpec } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Binds a recipe spec to a framework render payload (shell and slot components).
|
|
6
|
+
*
|
|
7
|
+
* Specs are canonical in this package. React implementations typically come
|
|
8
|
+
* from the Schema Engine registry; Radiant binds its own payload in-package.
|
|
9
|
+
*/
|
|
10
|
+
export declare function defineFormRecipe<const TType extends string, TSlots extends RecipeSlotSchemas, TSchema extends z.ZodMiniType, TRender>(spec: RecipeSpec<TType, TSchema, TSlots>, render: TRender): RecipeRegistration<TType, TSchema, TRender>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ProtocolRecipeSpecDefinition, type RecipeViewSchema } from '@schema-engine/layout';
|
|
2
|
+
import { type RecipeKind, type RecipeSlot } from './protocol';
|
|
3
|
+
import type { RecipeSlotSchemas, RecipeSpec } from './types';
|
|
4
|
+
export type { RecipeViewSchema } from '@schema-engine/layout';
|
|
5
|
+
/**
|
|
6
|
+
* Declares a form recipe's `$type`, kind, slot schemas, and metadata.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* `defineProtocolRecipeSpec` from `@schema-engine/layout` on {@link formRecipeProtocol}: single-step
|
|
10
|
+
* recipes cannot declare `progress` (their `actions` slot is the submit-only bar), and wizard
|
|
11
|
+
* recipes must declare `actions`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function defineRecipeSpec<const TType extends string, const TSlots extends RecipeSlotSchemas = Record<never, never>>(definition: ProtocolRecipeSpecDefinition<RecipeSlot, RecipeKind, TType, TSlots>): RecipeSpec<TType, RecipeViewSchema<TType, TSlots>, TSlots>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export { defineRecipeSpec } from './define-recipe-spec';
|
|
3
|
+
export type { RecipeViewSchema } from './define-recipe-spec';
|
|
4
|
+
export { formRecipeProtocol } from './protocol';
|
|
5
|
+
export * from './define-form-recipe';
|
|
6
|
+
export * from './view-model';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import "../chunk-XKN3WWK3.js";
|
|
2
|
+
import {
|
|
3
|
+
buildViewModel,
|
|
4
|
+
createViewNavigation,
|
|
5
|
+
getSlotConfig,
|
|
6
|
+
getViewRecipe,
|
|
7
|
+
projectViewSteps
|
|
8
|
+
} from "../chunk-J2FC5K4B.js";
|
|
9
|
+
import {
|
|
10
|
+
defineFormRecipe
|
|
11
|
+
} from "../chunk-PHNMDWSK.js";
|
|
12
|
+
import {
|
|
13
|
+
defineRecipeSpec
|
|
14
|
+
} from "../chunk-E4VONSLO.js";
|
|
15
|
+
import {
|
|
16
|
+
formRecipeProtocol
|
|
17
|
+
} from "../chunk-UGL3KNOT.js";
|
|
18
|
+
import "../chunk-EZZHO6DQ.js";
|
|
19
|
+
import "../chunk-PH3LWLYN.js";
|
|
20
|
+
import "../chunk-WUTGZYP4.js";
|
|
21
|
+
import "../chunk-R3MBVWVI.js";
|
|
22
|
+
import "../chunk-3B7CJOF6.js";
|
|
23
|
+
import "../chunk-KLATKWUA.js";
|
|
24
|
+
import "../chunk-YDGH7DTL.js";
|
|
25
|
+
import "../chunk-S7I76ISM.js";
|
|
26
|
+
import "../chunk-CRQWKC67.js";
|
|
27
|
+
import "../chunk-QLGM2AZW.js";
|
|
28
|
+
import "../chunk-OR2L7EKO.js";
|
|
29
|
+
import "../chunk-ZUYSGCEH.js";
|
|
30
|
+
import "../chunk-6BAJHAGL.js";
|
|
31
|
+
import "../chunk-6NV2JDGI.js";
|
|
32
|
+
import "../chunk-3YLRJVVN.js";
|
|
33
|
+
import "../chunk-CMPOBBRV.js";
|
|
34
|
+
export {
|
|
35
|
+
buildViewModel,
|
|
36
|
+
createViewNavigation,
|
|
37
|
+
defineFormRecipe,
|
|
38
|
+
defineRecipeSpec,
|
|
39
|
+
formRecipeProtocol,
|
|
40
|
+
getSlotConfig,
|
|
41
|
+
getViewRecipe,
|
|
42
|
+
projectViewSteps
|
|
43
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type KindOf, type SlotOf } from '@schema-engine/layout';
|
|
2
|
+
import type { ReadOnlyRegistry } from '@schema-engine/registry';
|
|
3
|
+
import type { AnyRecipeRegistration } from '../types/registration.js';
|
|
4
|
+
/**
|
|
5
|
+
* The recipe protocol of forms: four slots, composed in this order, and two kinds.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* A single-step recipe cannot declare `progress`; its `actions` slot is the submit-only bar. A
|
|
9
|
+
* wizard recipe must declare `actions`. The rules run in `defineRecipeSpec` for an early failure
|
|
10
|
+
* and in `buildFormEngine` for each winning registration (a recipe overridden later in the list is
|
|
11
|
+
* skipped), including hand-written ones with a non-Zod schema.
|
|
12
|
+
*/
|
|
13
|
+
export declare const formRecipeProtocol: import("@schema-engine/layout").RecipeProtocol<"actions" | "shell" | "header" | "progress", "single-step" | "wizard">;
|
|
14
|
+
export type RecipeKind = KindOf<typeof formRecipeProtocol>;
|
|
15
|
+
export type RecipeSlot = SlotOf<typeof formRecipeProtocol>;
|
|
16
|
+
/** Builds the forms `Recipe` registry, running {@link formRecipeProtocol}'s rules on each winning registration. */
|
|
17
|
+
export declare function createFormRecipeRegistry(recipes: readonly AnyRecipeRegistration[]): ReadOnlyRegistry<AnyRecipeRegistration>;
|
|
18
|
+
/**
|
|
19
|
+
* Checks the recipe a multi-step form without `view` falls back to.
|
|
20
|
+
*
|
|
21
|
+
* @param defaultWizardRecipe - The engine option; when omitted, {@link DEFAULT_WIZARD_RECIPE} is checked only if it is registered
|
|
22
|
+
* @throws {Error} When the named recipe is not registered or is not a wizard
|
|
23
|
+
*/
|
|
24
|
+
export declare function assertDefaultWizardRecipe(recipes: ReadOnlyRegistry<AnyRecipeRegistration>, defaultWizardRecipe: string | undefined): void;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const CardShellConfigSchema: z.ZodMiniObject<{
|
|
3
|
+
appearance: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
4
|
+
}, z.core.$strict>;
|
|
5
|
+
export declare const HeroShellConfigSchema: z.ZodMiniObject<{
|
|
6
|
+
appearance: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
7
|
+
backgroundImage: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8
|
+
backgroundVideo: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
9
|
+
contentWidth: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
10
|
+
sm: "sm";
|
|
11
|
+
md: "md";
|
|
12
|
+
lg: "lg";
|
|
13
|
+
xl: "xl";
|
|
14
|
+
}>>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export declare const SplitScreenShellConfigSchema: z.ZodMiniObject<{
|
|
17
|
+
appearance: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
18
|
+
sideContent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
19
|
+
sidePlacement: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
20
|
+
left: "left";
|
|
21
|
+
right: "right";
|
|
22
|
+
}>>;
|
|
23
|
+
sideWidth: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
24
|
+
wide: "wide";
|
|
25
|
+
narrow: "narrow";
|
|
26
|
+
normal: "normal";
|
|
27
|
+
}>>;
|
|
28
|
+
contentAlignment: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
29
|
+
center: "center";
|
|
30
|
+
top: "top";
|
|
31
|
+
bottom: "bottom";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export declare const SidebarShellConfigSchema: z.ZodMiniObject<{
|
|
35
|
+
appearance: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
36
|
+
showSeparator: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export declare const StepHeaderConfigSchema: z.ZodMiniObject<{
|
|
39
|
+
showDescription: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
40
|
+
showStepCounter: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
41
|
+
labels: z.ZodMiniPrefault<z.ZodMiniObject<{
|
|
42
|
+
stepCounter: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
43
|
+
}, z.core.$strict>>;
|
|
44
|
+
size: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
45
|
+
sm: "sm";
|
|
46
|
+
md: "md";
|
|
47
|
+
lg: "lg";
|
|
48
|
+
}>>;
|
|
49
|
+
align: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
50
|
+
start: "start";
|
|
51
|
+
center: "center";
|
|
52
|
+
}>>;
|
|
53
|
+
fallbackToFormTitle: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
54
|
+
titleAs: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
55
|
+
h1: "h1";
|
|
56
|
+
h2: "h2";
|
|
57
|
+
}>>;
|
|
58
|
+
inheritColor: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
59
|
+
counterPlacement: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
60
|
+
before: "before";
|
|
61
|
+
after: "after";
|
|
62
|
+
}>>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export declare const MinimalProgressConfigSchema: z.ZodMiniObject<{
|
|
65
|
+
showPercentage: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
66
|
+
labels: z.ZodMiniPrefault<z.ZodMiniObject<{
|
|
67
|
+
progress: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
68
|
+
valueText: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
export declare const StepIndicatorsConfigSchema: z.ZodMiniObject<{
|
|
72
|
+
orientation: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
73
|
+
horizontal: "horizontal";
|
|
74
|
+
sidebar: "sidebar";
|
|
75
|
+
}>>;
|
|
76
|
+
showStepNumbers: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
77
|
+
showStepTitles: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
78
|
+
showStepDescriptions: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
79
|
+
labels: z.ZodMiniPrefault<z.ZodMiniObject<{
|
|
80
|
+
regionAriaLabel: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
81
|
+
completed: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
82
|
+
untitledStep: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
export declare const WizardActionsConfigSchema: z.ZodMiniObject<{
|
|
86
|
+
labels: z.ZodMiniPrefault<z.ZodMiniObject<{
|
|
87
|
+
previous: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
88
|
+
previousAriaLabel: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
89
|
+
next: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
90
|
+
nextAriaLabel: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
91
|
+
submit: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
92
|
+
submitAriaLabel: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
93
|
+
submitting: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
94
|
+
stepCounter: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
|
+
showStepCounter: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
97
|
+
variant: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
98
|
+
default: "default";
|
|
99
|
+
minimal: "minimal";
|
|
100
|
+
}>>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
export declare const FormActionsConfigSchema: z.ZodMiniObject<{
|
|
103
|
+
labels: z.ZodMiniPrefault<z.ZodMiniObject<{
|
|
104
|
+
submit: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
105
|
+
submitAriaLabel: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
106
|
+
submitting: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
align: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
109
|
+
start: "start";
|
|
110
|
+
end: "end";
|
|
111
|
+
center: "center";
|
|
112
|
+
}>>;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
export type CardShellConfig = z.infer<typeof CardShellConfigSchema>;
|
|
115
|
+
export type HeroShellConfig = z.infer<typeof HeroShellConfigSchema>;
|
|
116
|
+
export type SplitScreenShellConfig = z.infer<typeof SplitScreenShellConfigSchema>;
|
|
117
|
+
export type SidebarShellConfig = z.infer<typeof SidebarShellConfigSchema>;
|
|
118
|
+
export type StepHeaderConfig = z.infer<typeof StepHeaderConfigSchema>;
|
|
119
|
+
export type MinimalProgressConfig = z.infer<typeof MinimalProgressConfigSchema>;
|
|
120
|
+
export type StepIndicatorsConfig = z.infer<typeof StepIndicatorsConfigSchema>;
|
|
121
|
+
export type WizardActionsConfig = z.infer<typeof WizardActionsConfigSchema>;
|
|
122
|
+
export type FormActionsConfig = z.infer<typeof FormActionsConfigSchema>;
|
|
123
|
+
/**
|
|
124
|
+
* @remarks
|
|
125
|
+
* Fills every `{current}` and `{total}` in a label template; other text is left as is.
|
|
126
|
+
* Also formats the progress value text, the untitled step title and the completed status.
|
|
127
|
+
*/
|
|
128
|
+
export declare function formatStepLabel(template: string, current: number, total: number): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CardShellConfigSchema,
|
|
3
|
+
FormActionsConfigSchema,
|
|
4
|
+
HeroShellConfigSchema,
|
|
5
|
+
MinimalProgressConfigSchema,
|
|
6
|
+
SidebarShellConfigSchema,
|
|
7
|
+
SplitScreenShellConfigSchema,
|
|
8
|
+
StepHeaderConfigSchema,
|
|
9
|
+
StepIndicatorsConfigSchema,
|
|
10
|
+
WizardActionsConfigSchema,
|
|
11
|
+
formatStepLabel
|
|
12
|
+
} from "../chunk-J5BSFDVK.js";
|
|
13
|
+
export {
|
|
14
|
+
CardShellConfigSchema,
|
|
15
|
+
FormActionsConfigSchema,
|
|
16
|
+
HeroShellConfigSchema,
|
|
17
|
+
MinimalProgressConfigSchema,
|
|
18
|
+
SidebarShellConfigSchema,
|
|
19
|
+
SplitScreenShellConfigSchema,
|
|
20
|
+
StepHeaderConfigSchema,
|
|
21
|
+
StepIndicatorsConfigSchema,
|
|
22
|
+
WizardActionsConfigSchema,
|
|
23
|
+
formatStepLabel
|
|
24
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type * as z from 'zod/mini';
|
|
2
|
+
import type { RecipeMetadata, ProtocolRecipeSlotSchemas, ProtocolRecipeSpec } from '@schema-engine/layout';
|
|
3
|
+
import type { RecipeKind, RecipeSlot } from './protocol';
|
|
4
|
+
export type { RecipeKind, RecipeSlot } from './protocol';
|
|
5
|
+
export type { RecipeMetadata, RecipeSlotDefaults } from '@schema-engine/layout';
|
|
6
|
+
export type RecipeSlotSchemas = ProtocolRecipeSlotSchemas<RecipeSlot>;
|
|
7
|
+
export interface RecipeDescriptor {
|
|
8
|
+
$type: string;
|
|
9
|
+
kind: RecipeKind;
|
|
10
|
+
slots: RecipeSlot[];
|
|
11
|
+
metadata: RecipeMetadata;
|
|
12
|
+
viewSchema: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
export interface ViewCatalog {
|
|
15
|
+
recipes: RecipeDescriptor[];
|
|
16
|
+
rules: {
|
|
17
|
+
noViewSingleStep: string;
|
|
18
|
+
noViewMultiStep: string;
|
|
19
|
+
oneViewPerForm: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A form recipe spec: the layout recipe spec on the forms protocol.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* `appearanceAxes` is declared per slot; see {@link ProtocolRecipeSpec.appearanceAxes}.
|
|
27
|
+
*/
|
|
28
|
+
export type RecipeSpec<TType extends string = string, TSchema extends z.ZodMiniType = z.ZodMiniType, TSlots extends RecipeSlotSchemas = RecipeSlotSchemas> = ProtocolRecipeSpec<RecipeSlot, RecipeKind, TType, TSchema, TSlots>;
|
|
29
|
+
/**
|
|
30
|
+
* Render payload an adapter binds to a spec: `slots` holds exactly the spec's non-shell slots,
|
|
31
|
+
* each required. `shell` is required only when the spec declares a shell config; a spec without
|
|
32
|
+
* one may still bind a shell component (the stack shell has no config).
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Adapters supply the component types, so a payload that omits a declared slot, or adds an
|
|
36
|
+
* undeclared one, fails to type-check at the binding site.
|
|
37
|
+
*/
|
|
38
|
+
export type RecipeRenderPayload<TSlots extends RecipeSlotSchemas, TShell, TSlot> = ('shell' extends keyof TSlots ? {
|
|
39
|
+
shell: TShell;
|
|
40
|
+
} : {
|
|
41
|
+
shell?: TShell;
|
|
42
|
+
}) & {
|
|
43
|
+
slots: {
|
|
44
|
+
[K in Exclude<keyof TSlots, 'shell'>]-?: TSlot;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export interface FormShellLayout<TNode> {
|
|
48
|
+
slots: {
|
|
49
|
+
header?: TNode;
|
|
50
|
+
progress?: TNode;
|
|
51
|
+
content: TNode;
|
|
52
|
+
actions?: TNode;
|
|
53
|
+
};
|
|
54
|
+
viewConfig: Record<string, unknown>;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../chunk-XKN3WWK3.js";
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
import type { FormConfigView } from '../lib/normalized-form-config.js';
|
|
3
|
+
import { type FormStepState } from '../engine/step-machine.js';
|
|
4
|
+
import type { AnyRecipeRegistration } from '../types/registration.js';
|
|
5
|
+
import { type RecipeViewModel } from '@schema-engine/layout';
|
|
6
|
+
import type { RecipeKind, RecipeSlot } from './types';
|
|
7
|
+
/**
|
|
8
|
+
* The commands a stepper or an actions block calls, and whether each is available.
|
|
9
|
+
*
|
|
10
|
+
* @remarks `goToStep` takes a step id, which stays right when steps are skipped; indexes do not.
|
|
11
|
+
*/
|
|
12
|
+
export interface ViewNavigation {
|
|
13
|
+
canGoNext: boolean;
|
|
14
|
+
canGoPrevious: boolean;
|
|
15
|
+
isFirstStep: boolean;
|
|
16
|
+
isLastStep: boolean;
|
|
17
|
+
/** Whether `goToStep(stepId)` can move there, as the runtime's step state says. */
|
|
18
|
+
canGoToStep: (stepId: string) => boolean;
|
|
19
|
+
goToStep: (stepId: string) => void;
|
|
20
|
+
goToNextStep: () => void;
|
|
21
|
+
goToPreviousStep: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* One step that is not skipped, as a recipe block reads it.
|
|
25
|
+
*
|
|
26
|
+
* @remarks `index` is the position among the steps that are not skipped and `total` how many there are, so progress reads "step 2 of 3" however many are skipped.
|
|
27
|
+
*/
|
|
28
|
+
export interface ViewStep {
|
|
29
|
+
id: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
index: number;
|
|
33
|
+
total: number;
|
|
34
|
+
isActive: boolean;
|
|
35
|
+
isCompleted: boolean;
|
|
36
|
+
isInvalid: boolean;
|
|
37
|
+
isVisited: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface ViewModel extends RecipeViewModel<RecipeKind> {
|
|
40
|
+
form: {
|
|
41
|
+
id: string;
|
|
42
|
+
title?: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
isSubmitting: boolean;
|
|
45
|
+
};
|
|
46
|
+
/** The steps that are not skipped, in order: what progress and a stepper count. */
|
|
47
|
+
steps: ViewStep[];
|
|
48
|
+
activeStep: ViewStep;
|
|
49
|
+
/** The position of the current step among `steps`. */
|
|
50
|
+
currentStepIndex: number;
|
|
51
|
+
navigation: ViewNavigation;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Reads one slot's complete config from a normalized view; see the layout `readSlotConfig`, which this
|
|
55
|
+
* types by the forms slot names.
|
|
56
|
+
*/
|
|
57
|
+
export declare function getSlotConfig<TSchema extends z.ZodMiniType>(viewConfig: Record<string, unknown>, slot: RecipeSlot, schema: TSchema): z.output<TSchema>;
|
|
58
|
+
/**
|
|
59
|
+
* Resolves the recipe a normalized form's `view` selects, or `undefined` when the form has no view.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* Throws when `view.$type` is not registered on the engine, so a config normalized elsewhere fails
|
|
63
|
+
* loudly instead of rendering without chrome.
|
|
64
|
+
*/
|
|
65
|
+
export declare function getViewRecipe(engine: {
|
|
66
|
+
getRecipe(id: string): AnyRecipeRegistration | undefined;
|
|
67
|
+
}, config: {
|
|
68
|
+
id: string;
|
|
69
|
+
view?: {
|
|
70
|
+
$type: string;
|
|
71
|
+
};
|
|
72
|
+
}): AnyRecipeRegistration | undefined;
|
|
73
|
+
/** Projects the steps that are not skipped, with their live state, onto the {@link ViewStep} list. */
|
|
74
|
+
export declare function projectViewSteps(steps: ReadonlyArray<{
|
|
75
|
+
id: string;
|
|
76
|
+
title?: string;
|
|
77
|
+
description?: string;
|
|
78
|
+
}>, states: readonly FormStepState[], current: string): ViewStep[];
|
|
79
|
+
/** The navigation a recipe block reads, from the step states and the commands of a runtime. */
|
|
80
|
+
export declare function createViewNavigation(states: readonly FormStepState[], current: string, commands: {
|
|
81
|
+
next: () => unknown;
|
|
82
|
+
back: () => unknown;
|
|
83
|
+
goTo: (id: string) => unknown;
|
|
84
|
+
}): ViewNavigation;
|
|
85
|
+
export declare function buildViewModel({ config, kind, states, current, navigation, isSubmitting, viewConfig, }: {
|
|
86
|
+
config: FormConfigView;
|
|
87
|
+
kind: RecipeKind;
|
|
88
|
+
states: readonly FormStepState[];
|
|
89
|
+
current: string;
|
|
90
|
+
navigation: ViewNavigation;
|
|
91
|
+
isSubmitting?: boolean;
|
|
92
|
+
viewConfig: Record<string, unknown>;
|
|
93
|
+
}): ViewModel;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildViewModel,
|
|
3
|
+
createViewNavigation,
|
|
4
|
+
getSlotConfig,
|
|
5
|
+
getViewRecipe,
|
|
6
|
+
projectViewSteps
|
|
7
|
+
} from "../chunk-J2FC5K4B.js";
|
|
8
|
+
import "../chunk-PH3LWLYN.js";
|
|
9
|
+
import "../chunk-WUTGZYP4.js";
|
|
10
|
+
import "../chunk-R3MBVWVI.js";
|
|
11
|
+
import "../chunk-3B7CJOF6.js";
|
|
12
|
+
import "../chunk-KLATKWUA.js";
|
|
13
|
+
import "../chunk-YDGH7DTL.js";
|
|
14
|
+
import "../chunk-S7I76ISM.js";
|
|
15
|
+
import "../chunk-CRQWKC67.js";
|
|
16
|
+
import "../chunk-QLGM2AZW.js";
|
|
17
|
+
import "../chunk-OR2L7EKO.js";
|
|
18
|
+
import "../chunk-ZUYSGCEH.js";
|
|
19
|
+
import "../chunk-6BAJHAGL.js";
|
|
20
|
+
import "../chunk-6NV2JDGI.js";
|
|
21
|
+
import "../chunk-3YLRJVVN.js";
|
|
22
|
+
import "../chunk-CMPOBBRV.js";
|
|
23
|
+
export {
|
|
24
|
+
buildViewModel,
|
|
25
|
+
createViewNavigation,
|
|
26
|
+
getSlotConfig,
|
|
27
|
+
getViewRecipe,
|
|
28
|
+
projectViewSteps
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReadOnlyRegistry } from '@schema-engine/registry';
|
|
2
|
+
import type { AnyActionRegistration, AnyElementRegistration, AnyRecipeRegistration } from '../types/registration.js';
|
|
3
|
+
/** The engine's read-only store of element registrations. */
|
|
4
|
+
export type ElementRegistry = ReadOnlyRegistry<AnyElementRegistration>;
|
|
5
|
+
/** The engine's read-only store of view recipe registrations. */
|
|
6
|
+
export type RecipeRegistry = ReadOnlyRegistry<AnyRecipeRegistration>;
|
|
7
|
+
/** The engine's read-only store of action registrations. */
|
|
8
|
+
export type ActionRegistrationRegistry = ReadOnlyRegistry<AnyActionRegistration>;
|
|
File without changes
|