@verbb/formie-browser 1.0.1 → 1.0.3
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/CHANGELOG.md +16 -0
- package/dist/chunks/address-finder-BjMuEiwF.js +37 -0
- package/dist/chunks/bpoint-KudsBCo2.js +26 -0
- package/dist/chunks/calculations-DlGSkQ3W.js +147 -0
- package/dist/chunks/captcha-eu-CterYFok.js +34 -0
- package/dist/chunks/checkbox-radio-CBvgk3hR.js +136 -0
- package/dist/chunks/conditions-DYy1-Hwt.js +459 -0
- package/dist/chunks/date-picker-BlD--zfe.js +4994 -0
- package/dist/chunks/eway-qwc-B5Us.js +74 -0
- package/dist/chunks/file-upload-CIgHrXfp.js +316 -0
- package/dist/chunks/friendly-captcha-v1-EDFac33c.js +33 -0
- package/dist/chunks/friendly-captcha-v2-BDpSvFGR.js +38 -0
- package/dist/chunks/go-cardless-DuDMVsnz.js +24 -0
- package/dist/chunks/google-address-Bmjp01pH.js +181 -0
- package/dist/chunks/hcaptcha-BTQ6An6g.js +56 -0
- package/dist/chunks/hidden-DbPdOxKb.js +31 -0
- package/dist/chunks/index-BEsfee-D.js +1839 -0
- package/dist/chunks/index-BP7Unm5Y.js +863 -0
- package/dist/chunks/index-BcqwpPNE.js +4314 -0
- package/dist/chunks/loqate-BdNGv93o.js +55 -0
- package/dist/chunks/mollie-DFOjTuGX.js +24 -0
- package/dist/chunks/moneris-BbFfl-EL.js +101 -0
- package/dist/chunks/opayo-CmgYa9ya.js +122 -0
- package/dist/chunks/paddle-BUi7w1_o.js +60 -0
- package/dist/chunks/paypal-A-ePfh6k.js +100 -0
- package/dist/chunks/payway-BqFCbhyo.js +56 -0
- package/dist/chunks/phone-country-DPMiqk4L.js +3765 -0
- package/dist/chunks/place-kit-CX7tamAg.js +42 -0
- package/dist/chunks/placekit-autocomplete.esm-LAwfbPZl.js +1299 -0
- package/dist/chunks/recaptcha-enterprise-DxF6cW95.js +71 -0
- package/dist/chunks/recaptcha-shared-DhGcbiaq.js +15 -0
- package/dist/chunks/recaptcha-v2-checkbox-R9EfbZ4k.js +41 -0
- package/dist/chunks/recaptcha-v2-invisible-DV9hswAp.js +59 -0
- package/dist/chunks/recaptcha-v3-V0xc-Edh.js +28 -0
- package/dist/chunks/repeater-DKUT6TGI.js +124 -0
- package/dist/chunks/rich-text-SH7KiaKH.js +304 -0
- package/dist/chunks/scripts-D9N2d5rN.js +36 -0
- package/dist/chunks/sdk-3SicTWby.js +1559 -0
- package/dist/chunks/shared-BmntPmnW.js +80 -0
- package/dist/chunks/signature-BA3tQsGT.js +550 -0
- package/dist/chunks/snaptcha-DV7p6J9k.js +8 -0
- package/dist/chunks/square-Bs-ndqYK.js +46 -0
- package/dist/chunks/stripe-DkZAHxtn.js +202 -0
- package/dist/chunks/styles-C3aqgtek.js +21 -0
- package/dist/chunks/summary-Dq2i9TQk.js +126 -0
- package/dist/chunks/table-Cu4WfVcw.js +95 -0
- package/dist/chunks/text-limit-2ycmB-Ae.js +135 -0
- package/dist/chunks/turnstile-CId90tRr.js +59 -0
- package/dist/chunks/utils-BntI3W4S.js +6149 -0
- package/dist/css/theme/forms/_form.css +28 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -3205
- package/dist/js/compatibility/dom-adapter.d.ts +12 -0
- package/dist/js/compatibility/dom-adapter.d.ts.map +1 -0
- package/dist/js/compatibility/event-map.d.ts +25 -0
- package/dist/js/compatibility/event-map.d.ts.map +1 -0
- package/dist/js/compatibility/validator-adapter.d.ts +17 -0
- package/dist/js/compatibility/validator-adapter.d.ts.map +1 -0
- package/dist/js/contracts/client.d.ts +40 -0
- package/dist/js/contracts/client.d.ts.map +1 -0
- package/dist/js/contracts/common.d.ts +5 -0
- package/dist/js/contracts/common.d.ts.map +1 -0
- package/dist/js/contracts/modules.d.ts +47 -0
- package/dist/js/contracts/modules.d.ts.map +1 -0
- package/dist/js/contracts/schema.d.ts +79 -0
- package/dist/js/contracts/schema.d.ts.map +1 -0
- package/dist/js/contracts/theme.d.ts +2 -0
- package/dist/js/contracts/theme.d.ts.map +1 -0
- package/dist/js/core/create-formie-client.d.ts +3 -0
- package/dist/js/core/create-formie-client.d.ts.map +1 -0
- package/dist/js/core/dom-events.d.ts +2 -0
- package/dist/js/core/dom-events.d.ts.map +1 -0
- package/dist/js/core/formie.d.ts +27 -0
- package/dist/js/core/formie.d.ts.map +1 -0
- package/dist/js/core/hydrate-modules.d.ts +22 -0
- package/dist/js/core/hydrate-modules.d.ts.map +1 -0
- package/dist/js/core/page-client-event.d.ts +9 -0
- package/dist/js/core/page-client-event.d.ts.map +1 -0
- package/dist/js/core/page-tab-errors.d.ts +2 -0
- package/dist/js/core/page-tab-errors.d.ts.map +1 -0
- package/dist/js/core/submit-flow.d.ts +21 -0
- package/dist/js/core/submit-flow.d.ts.map +1 -0
- package/dist/js/core/submit-result-state.d.ts +8 -0
- package/dist/js/core/submit-result-state.d.ts.map +1 -0
- package/dist/js/core/submit-result-ui.d.ts +10 -0
- package/dist/js/core/submit-result-ui.d.ts.map +1 -0
- package/dist/js/events/event-bus.d.ts +21 -0
- package/dist/js/events/event-bus.d.ts.map +1 -0
- package/dist/js/modules/address/address-finder.d.ts +2 -0
- package/dist/js/modules/address/address-finder.d.ts.map +1 -0
- package/dist/js/modules/address/api.d.ts +8 -0
- package/dist/js/modules/address/api.d.ts.map +1 -0
- package/dist/js/modules/address/constants.d.ts +15 -0
- package/dist/js/modules/address/constants.d.ts.map +1 -0
- package/dist/js/modules/address/factories.d.ts +35 -0
- package/dist/js/modules/address/factories.d.ts.map +1 -0
- package/dist/js/modules/address/google-address.d.ts +9 -0
- package/dist/js/modules/address/google-address.d.ts.map +1 -0
- package/dist/js/modules/address/host.d.ts +30 -0
- package/dist/js/modules/address/host.d.ts.map +1 -0
- package/dist/js/modules/address/index.d.ts +3 -0
- package/dist/js/modules/address/index.d.ts.map +1 -0
- package/dist/js/modules/address/loqate.d.ts +2 -0
- package/dist/js/modules/address/loqate.d.ts.map +1 -0
- package/dist/js/modules/address/place-kit.d.ts +2 -0
- package/dist/js/modules/address/place-kit.d.ts.map +1 -0
- package/dist/js/modules/captchas/api.d.ts +9 -0
- package/dist/js/modules/captchas/api.d.ts.map +1 -0
- package/dist/js/modules/captchas/captcha-eu.d.ts +2 -0
- package/dist/js/modules/captchas/captcha-eu.d.ts.map +1 -0
- package/dist/js/modules/captchas/constants.d.ts +5 -0
- package/dist/js/modules/captchas/constants.d.ts.map +1 -0
- package/dist/js/modules/captchas/factories.d.ts +63 -0
- package/dist/js/modules/captchas/factories.d.ts.map +1 -0
- package/dist/js/modules/captchas/friendly-captcha-v1.d.ts +2 -0
- package/dist/js/modules/captchas/friendly-captcha-v1.d.ts.map +1 -0
- package/dist/js/modules/captchas/friendly-captcha-v2.d.ts +2 -0
- package/dist/js/modules/captchas/friendly-captcha-v2.d.ts.map +1 -0
- package/dist/js/modules/captchas/hcaptcha.d.ts +2 -0
- package/dist/js/modules/captchas/hcaptcha.d.ts.map +1 -0
- package/dist/js/modules/captchas/host.d.ts +78 -0
- package/dist/js/modules/captchas/host.d.ts.map +1 -0
- package/dist/js/modules/captchas/index.d.ts +3 -0
- package/dist/js/modules/captchas/index.d.ts.map +1 -0
- package/dist/js/modules/captchas/recaptcha-enterprise.d.ts +2 -0
- package/dist/js/modules/captchas/recaptcha-enterprise.d.ts.map +1 -0
- package/dist/js/modules/captchas/recaptcha-shared.d.ts +26 -0
- package/dist/js/modules/captchas/recaptcha-shared.d.ts.map +1 -0
- package/dist/js/modules/captchas/recaptcha-v2-checkbox.d.ts +2 -0
- package/dist/js/modules/captchas/recaptcha-v2-checkbox.d.ts.map +1 -0
- package/dist/js/modules/captchas/recaptcha-v2-invisible.d.ts +2 -0
- package/dist/js/modules/captchas/recaptcha-v2-invisible.d.ts.map +1 -0
- package/dist/js/modules/captchas/recaptcha-v3.d.ts +2 -0
- package/dist/js/modules/captchas/recaptcha-v3.d.ts.map +1 -0
- package/dist/js/modules/captchas/snaptcha.d.ts +2 -0
- package/dist/js/modules/captchas/snaptcha.d.ts.map +1 -0
- package/dist/js/modules/captchas/turnstile.d.ts +2 -0
- package/dist/js/modules/captchas/turnstile.d.ts.map +1 -0
- package/dist/js/modules/captchas/utils.d.ts +13 -0
- package/dist/js/modules/captchas/utils.d.ts.map +1 -0
- package/dist/js/modules/fields/calculations.d.ts +3 -0
- package/dist/js/modules/fields/calculations.d.ts.map +1 -0
- package/dist/js/modules/fields/checkbox-radio.d.ts +3 -0
- package/dist/js/modules/fields/checkbox-radio.d.ts.map +1 -0
- package/dist/js/modules/fields/conditions/config.d.ts +5 -0
- package/dist/js/modules/fields/conditions/config.d.ts.map +1 -0
- package/dist/js/modules/fields/conditions/effects.d.ts +4 -0
- package/dist/js/modules/fields/conditions/effects.d.ts.map +1 -0
- package/dist/js/modules/fields/conditions/evaluator.d.ts +6 -0
- package/dist/js/modules/fields/conditions/evaluator.d.ts.map +1 -0
- package/dist/js/modules/fields/conditions/references.d.ts +5 -0
- package/dist/js/modules/fields/conditions/references.d.ts.map +1 -0
- package/dist/js/modules/fields/conditions/transforms.d.ts +3 -0
- package/dist/js/modules/fields/conditions/transforms.d.ts.map +1 -0
- package/dist/js/modules/fields/conditions/types.d.ts +30 -0
- package/dist/js/modules/fields/conditions/types.d.ts.map +1 -0
- package/dist/js/modules/fields/conditions/values.d.ts +5 -0
- package/dist/js/modules/fields/conditions/values.d.ts.map +1 -0
- package/dist/js/modules/fields/conditions.d.ts +3 -0
- package/dist/js/modules/fields/conditions.d.ts.map +1 -0
- package/dist/js/modules/fields/date-picker.d.ts +3 -0
- package/dist/js/modules/fields/date-picker.d.ts.map +1 -0
- package/dist/js/modules/fields/file-upload.d.ts +3 -0
- package/dist/js/modules/fields/file-upload.d.ts.map +1 -0
- package/dist/js/modules/fields/hidden.d.ts +3 -0
- package/dist/js/modules/fields/hidden.d.ts.map +1 -0
- package/dist/js/modules/fields/index.d.ts +3 -0
- package/dist/js/modules/fields/index.d.ts.map +1 -0
- package/dist/js/modules/fields/phone-country.d.ts +3 -0
- package/dist/js/modules/fields/phone-country.d.ts.map +1 -0
- package/dist/js/modules/fields/repeater.d.ts +3 -0
- package/dist/js/modules/fields/repeater.d.ts.map +1 -0
- package/dist/js/modules/fields/rich-text.d.ts +3 -0
- package/dist/js/modules/fields/rich-text.d.ts.map +1 -0
- package/dist/js/modules/fields/shared.d.ts +20 -0
- package/dist/js/modules/fields/shared.d.ts.map +1 -0
- package/dist/js/modules/fields/signature.d.ts +3 -0
- package/dist/js/modules/fields/signature.d.ts.map +1 -0
- package/dist/js/modules/fields/summary.d.ts +3 -0
- package/dist/js/modules/fields/summary.d.ts.map +1 -0
- package/dist/js/modules/fields/table.d.ts +3 -0
- package/dist/js/modules/fields/table.d.ts.map +1 -0
- package/dist/js/modules/fields/text-limit.d.ts +3 -0
- package/dist/js/modules/fields/text-limit.d.ts.map +1 -0
- package/dist/js/modules/loader.d.ts +11 -0
- package/dist/js/modules/loader.d.ts.map +1 -0
- package/dist/js/modules/payments/api.d.ts +8 -0
- package/dist/js/modules/payments/api.d.ts.map +1 -0
- package/dist/js/modules/payments/bpoint.d.ts +2 -0
- package/dist/js/modules/payments/bpoint.d.ts.map +1 -0
- package/dist/js/modules/payments/constants.d.ts +5 -0
- package/dist/js/modules/payments/constants.d.ts.map +1 -0
- package/dist/js/modules/payments/eway.d.ts +9 -0
- package/dist/js/modules/payments/eway.d.ts.map +1 -0
- package/dist/js/modules/payments/factories.d.ts +54 -0
- package/dist/js/modules/payments/factories.d.ts.map +1 -0
- package/dist/js/modules/payments/go-cardless.d.ts +2 -0
- package/dist/js/modules/payments/go-cardless.d.ts.map +1 -0
- package/dist/js/modules/payments/host.d.ts +70 -0
- package/dist/js/modules/payments/host.d.ts.map +1 -0
- package/dist/js/modules/payments/index.d.ts +3 -0
- package/dist/js/modules/payments/index.d.ts.map +1 -0
- package/dist/js/modules/payments/mollie.d.ts +2 -0
- package/dist/js/modules/payments/mollie.d.ts.map +1 -0
- package/dist/js/modules/payments/moneris.d.ts +2 -0
- package/dist/js/modules/payments/moneris.d.ts.map +1 -0
- package/dist/js/modules/payments/opayo.d.ts +25 -0
- package/dist/js/modules/payments/opayo.d.ts.map +1 -0
- package/dist/js/modules/payments/paddle.d.ts +2 -0
- package/dist/js/modules/payments/paddle.d.ts.map +1 -0
- package/dist/js/modules/payments/paypal.d.ts +2 -0
- package/dist/js/modules/payments/paypal.d.ts.map +1 -0
- package/dist/js/modules/payments/payway.d.ts +2 -0
- package/dist/js/modules/payments/payway.d.ts.map +1 -0
- package/dist/js/modules/payments/square.d.ts +2 -0
- package/dist/js/modules/payments/square.d.ts.map +1 -0
- package/dist/js/modules/payments/stripe.d.ts +2 -0
- package/dist/js/modules/payments/stripe.d.ts.map +1 -0
- package/dist/js/modules/payments/utils.d.ts +17 -0
- package/dist/js/modules/payments/utils.d.ts.map +1 -0
- package/dist/js/modules/registry.d.ts +9 -0
- package/dist/js/modules/registry.d.ts.map +1 -0
- package/dist/js/modules/styles.d.ts +2 -0
- package/dist/js/modules/styles.d.ts.map +1 -0
- package/dist/js/submit/pipeline.d.ts +18 -0
- package/dist/js/submit/pipeline.d.ts.map +1 -0
- package/dist/js/theme/theme-classes.d.ts +10 -0
- package/dist/js/theme/theme-classes.d.ts.map +1 -0
- package/dist/js/transport/forms-api.d.ts +11 -0
- package/dist/js/transport/forms-api.d.ts.map +1 -0
- package/dist/js/utils/async.d.ts +8 -0
- package/dist/js/utils/async.d.ts.map +1 -0
- package/dist/js/utils/debug.d.ts +10 -0
- package/dist/js/utils/debug.d.ts.map +1 -0
- package/dist/js/utils/event-names.d.ts +13 -0
- package/dist/js/utils/event-names.d.ts.map +1 -0
- package/dist/js/utils/field-references.d.ts +6 -0
- package/dist/js/utils/field-references.d.ts.map +1 -0
- package/dist/js/utils/field-references.keys.d.ts +4 -0
- package/dist/js/utils/field-references.keys.d.ts.map +1 -0
- package/dist/js/utils/field-references.parser.d.ts +3 -0
- package/dist/js/utils/field-references.parser.d.ts.map +1 -0
- package/dist/js/utils/field-references.registry.d.ts +3 -0
- package/dist/js/utils/field-references.registry.d.ts.map +1 -0
- package/dist/js/utils/field-references.resolver.d.ts +4 -0
- package/dist/js/utils/field-references.resolver.d.ts.map +1 -0
- package/dist/js/utils/field-references.types.d.ts +27 -0
- package/dist/js/utils/field-references.types.d.ts.map +1 -0
- package/dist/js/utils/fields.d.ts +5 -0
- package/dist/js/utils/fields.d.ts.map +1 -0
- package/dist/js/utils/http.d.ts +9 -0
- package/dist/js/utils/http.d.ts.map +1 -0
- package/dist/js/utils/i18n.d.ts +7 -0
- package/dist/js/utils/i18n.d.ts.map +1 -0
- package/dist/js/utils/scripts.d.ts +13 -0
- package/dist/js/utils/scripts.d.ts.map +1 -0
- package/dist/js/utils/unload-warning.d.ts +10 -0
- package/dist/js/utils/unload-warning.d.ts.map +1 -0
- package/dist/js/validation/rules/email.d.ts +4 -0
- package/dist/js/validation/rules/email.d.ts.map +1 -0
- package/dist/js/validation/rules/match.d.ts +4 -0
- package/dist/js/validation/rules/match.d.ts.map +1 -0
- package/dist/js/validation/rules/number.d.ts +4 -0
- package/dist/js/validation/rules/number.d.ts.map +1 -0
- package/dist/js/validation/rules/required.d.ts +4 -0
- package/dist/js/validation/rules/required.d.ts.map +1 -0
- package/dist/js/validation/rules/shared.d.ts +7 -0
- package/dist/js/validation/rules/shared.d.ts.map +1 -0
- package/dist/js/validation/rules/url.d.ts +4 -0
- package/dist/js/validation/rules/url.d.ts.map +1 -0
- package/dist/js/validation/rules.d.ts +10 -0
- package/dist/js/validation/rules.d.ts.map +1 -0
- package/dist/js/validation/scope.d.ts +6 -0
- package/dist/js/validation/scope.d.ts.map +1 -0
- package/dist/js/validation/submit-readiness.d.ts +4 -0
- package/dist/js/validation/submit-readiness.d.ts.map +1 -0
- package/dist/js/validation/types.d.ts +44 -0
- package/dist/js/validation/types.d.ts.map +1 -0
- package/dist/js/validation/validator.d.ts +54 -0
- package/dist/js/validation/validator.d.ts.map +1 -0
- package/package.json +3 -2
- package/src/css/theme/forms/_form.css +28 -0
- package/src/js/core/create-formie-client.ts +6 -0
- package/src/js/core/submit-result-state.ts +17 -0
- package/src/js/modules/address/google-address.ts +33 -1
- package/src/js/modules/fields/conditions/effects.ts +79 -2
- package/src/js/modules/fields/conditions.ts +53 -11
- package/src/js/modules/fields/file-upload.ts +189 -97
- package/src/js/modules/fields/repeater.ts +1 -1
- package/src/js/modules/fields/rich-text.ts +2 -2
- package/src/js/modules/fields/signature.ts +1 -1
- package/src/js/modules/fields/summary.ts +1 -1
- package/src/js/modules/fields/table.ts +1 -1
- package/src/js/modules/fields/text-limit.ts +1 -1
- package/src/js/modules/payments/paypal.ts +1 -1
- package/src/js/modules/payments/payway.ts +1 -1
- package/src/js/modules/payments/stripe.ts +1 -1
- package/src/js/submit/pipeline.ts +3 -28
- package/src/js/validation/scope.ts +25 -0
- package/src/js/validation/submit-readiness.ts +157 -0
- package/src/js/validation/validator.ts +4 -0
- package/dist/chunks/address-finder-DfMCiW89.js +0 -47
- package/dist/chunks/api-CbqEMQT5.js +0 -181
- package/dist/chunks/api-DE7LfK-R.js +0 -960
- package/dist/chunks/api-DOfDzYC_.js +0 -538
- package/dist/chunks/async-B3DUf1GZ.js +0 -26
- package/dist/chunks/bpoint-Ciy3yY9Q.js +0 -34
- package/dist/chunks/calculations-CkYAqO_-.js +0 -197
- package/dist/chunks/captcha-eu-DnOWhMwr.js +0 -43
- package/dist/chunks/checkbox-radio-0x7Tc0br.js +0 -197
- package/dist/chunks/chunk-K6L4z4UQ.js +0 -24
- package/dist/chunks/conditions-4fXKhEJS.js +0 -609
- package/dist/chunks/date-picker-B6iZkjHS.js +0 -6204
- package/dist/chunks/debug-KnZeKYBI.js +0 -39
- package/dist/chunks/dist-D09GnXMW.js +0 -2663
- package/dist/chunks/event-names-DamGPtXR.js +0 -51
- package/dist/chunks/eway-DEAYcwT0.js +0 -86
- package/dist/chunks/field-references.keys-BpBZ_quS.js +0 -24
- package/dist/chunks/field-references.resolver-Ba6xhiJC.js +0 -183
- package/dist/chunks/file-upload-BIj85NFH.js +0 -428
- package/dist/chunks/friendly-captcha-v1-CqO4WVre.js +0 -40
- package/dist/chunks/friendly-captcha-v2-CyykcJcM.js +0 -47
- package/dist/chunks/friendly-challenge-Dg8XkStd.js +0 -1101
- package/dist/chunks/go-cardless-CuND59rR.js +0 -26
- package/dist/chunks/google-address--uR8WDSm.js +0 -208
- package/dist/chunks/hcaptcha-CmaFUesv.js +0 -72
- package/dist/chunks/hidden-CYnZYple.js +0 -36
- package/dist/chunks/http-18nn97DZ.js +0 -29
- package/dist/chunks/i18n-vUh-KGiH.js +0 -55
- package/dist/chunks/loqate-BICNJlVK.js +0 -97
- package/dist/chunks/mollie-DwlsgHZ1.js +0 -26
- package/dist/chunks/moneris-B_IFZFTx.js +0 -159
- package/dist/chunks/opayo-U2x_TOII.js +0 -192
- package/dist/chunks/paddle-BqXFrc79.js +0 -75
- package/dist/chunks/paypal-VowQ3ilP.js +0 -121
- package/dist/chunks/payway-VOO-ajyg.js +0 -75
- package/dist/chunks/phone-country-B6Me4lK0.js +0 -3317
- package/dist/chunks/place-kit-ldUl-u9w.js +0 -56
- package/dist/chunks/placekit-autocomplete.esm-D-lGeaZl.js +0 -1771
- package/dist/chunks/recaptcha-enterprise-DPJNyv1X.js +0 -72
- package/dist/chunks/recaptcha-shared-DTI4qWVR.js +0 -22
- package/dist/chunks/recaptcha-v2-checkbox-zFjpvJ5c.js +0 -49
- package/dist/chunks/recaptcha-v2-invisible-CnYtkNvz.js +0 -62
- package/dist/chunks/recaptcha-v3-EAlWhnkX.js +0 -33
- package/dist/chunks/repeater-BPm7Mkyn.js +0 -149
- package/dist/chunks/rich-text-CHSly1Hq.js +0 -438
- package/dist/chunks/scripts-BGD_iU_6.js +0 -41
- package/dist/chunks/sdk-B7u9fTlP.js +0 -2103
- package/dist/chunks/shared-DC6_1u8X.js +0 -85
- package/dist/chunks/signature-DNMCgrMd.js +0 -763
- package/dist/chunks/snaptcha-CCDunGeb.js +0 -8
- package/dist/chunks/square-BLqK51rS.js +0 -61
- package/dist/chunks/stripe-B6ZcDQdx.js +0 -273
- package/dist/chunks/styles-BIh6g7V_.js +0 -22
- package/dist/chunks/summary-BTG0uIOt.js +0 -189
- package/dist/chunks/table-BTYc0Qm8.js +0 -122
- package/dist/chunks/text-limit-CgBMu4sJ.js +0 -177
- package/dist/chunks/theme-classes-vSHpdCUO.js +0 -59
- package/dist/chunks/turnstile-DP0bdR7T.js +0 -68
- package/dist/chunks/utils-ByrEVYrJ.js +0 -49584
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { t as ensureModuleStyles } from "./styles-BIh6g7V_.js";
|
|
2
|
-
import { r as Le } from "./dist-D09GnXMW.js";
|
|
3
|
-
import { c as retainFormValidators, i as getModuleFieldTarget, s as releaseFormValidators } from "./shared-DC6_1u8X.js";
|
|
4
|
-
import textLimitCss from "#theme/fields/_text-limit.css?inline";
|
|
5
|
-
//#region src/js/modules/fields/text-limit.ts
|
|
6
|
-
var INPUT_SELECTOR = "input[data-formie-single-line-text-input], textarea[data-formie-multi-line-text-input]";
|
|
7
|
-
var TEXT_LIMIT_VALIDATORS = [
|
|
8
|
-
"textMinCharacterLimit",
|
|
9
|
-
"textMaxCharacterLimit",
|
|
10
|
-
"textMinWordLimit",
|
|
11
|
-
"textMaxWordLimit"
|
|
12
|
-
];
|
|
13
|
-
var VALIDATOR_SCOPE = "text-limit";
|
|
14
|
-
var ALLOW_OVERTYPE_ATTR = "data-formie-text-limit-allow-overtype";
|
|
15
|
-
var limitTargetCache = /* @__PURE__ */ new WeakMap();
|
|
16
|
-
ensureModuleStyles("text-limit", [textLimitCss]);
|
|
17
|
-
function isTextLimitInput(input) {
|
|
18
|
-
return input instanceof HTMLInputElement || input instanceof HTMLTextAreaElement;
|
|
19
|
-
}
|
|
20
|
-
function getLimitValue(input, attribute) {
|
|
21
|
-
return parseInt(input.getAttribute(attribute) || "", 10) || 0;
|
|
22
|
-
}
|
|
23
|
-
function hasAnyLimitAttributes(input) {
|
|
24
|
-
return input.hasAttribute("data-formie-min-chars") || input.hasAttribute("data-formie-max-chars") || input.hasAttribute("data-formie-min-words") || input.hasAttribute("data-formie-max-words");
|
|
25
|
-
}
|
|
26
|
-
function hasCounterLimitAttributes(input) {
|
|
27
|
-
return input.hasAttribute("data-formie-max-chars") || input.hasAttribute("data-formie-max-words");
|
|
28
|
-
}
|
|
29
|
-
function allowsOvertype(input) {
|
|
30
|
-
return input.hasAttribute(ALLOW_OVERTYPE_ATTR);
|
|
31
|
-
}
|
|
32
|
-
function hasNoRawValue(input) {
|
|
33
|
-
return input.value === "";
|
|
34
|
-
}
|
|
35
|
-
function registerValidators(form) {
|
|
36
|
-
retainFormValidators(form, VALIDATOR_SCOPE, (validator) => {
|
|
37
|
-
validator.addValidator("textMinCharacterLimit", ({ input }) => {
|
|
38
|
-
if (!isTextLimitInput(input)) return true;
|
|
39
|
-
const limit = getLimitValue(input, "data-formie-min-chars");
|
|
40
|
-
if (!limit || hasNoRawValue(input)) return true;
|
|
41
|
-
return Le(input.value).graphemeCount >= limit;
|
|
42
|
-
}, ({ label, input, t }) => {
|
|
43
|
-
return t("{attribute} must be no less than {min} characters.", {
|
|
44
|
-
attribute: label,
|
|
45
|
-
min: input.getAttribute("data-formie-min-chars") || ""
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
validator.addValidator("textMaxCharacterLimit", ({ input }) => {
|
|
49
|
-
if (!isTextLimitInput(input)) return true;
|
|
50
|
-
if (allowsOvertype(input)) return true;
|
|
51
|
-
const limit = getLimitValue(input, "data-formie-max-chars");
|
|
52
|
-
if (!limit || hasNoRawValue(input)) return true;
|
|
53
|
-
return Le(input.value).graphemeCount <= limit;
|
|
54
|
-
}, ({ label, input, t }) => {
|
|
55
|
-
return t("{attribute} must be no greater than {max} characters.", {
|
|
56
|
-
attribute: label,
|
|
57
|
-
max: input.getAttribute("data-formie-max-chars") || ""
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
validator.addValidator("textMinWordLimit", ({ input }) => {
|
|
61
|
-
if (!isTextLimitInput(input)) return true;
|
|
62
|
-
const limit = getLimitValue(input, "data-formie-min-words");
|
|
63
|
-
if (!limit || input.value.trim() === "") return true;
|
|
64
|
-
return Le(input.value).wordCount >= limit;
|
|
65
|
-
}, ({ label, input, t }) => {
|
|
66
|
-
return t("{attribute} must be no less than {min} words.", {
|
|
67
|
-
attribute: label,
|
|
68
|
-
min: input.getAttribute("data-formie-min-words") || ""
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
validator.addValidator("textMaxWordLimit", ({ input }) => {
|
|
72
|
-
if (!isTextLimitInput(input)) return true;
|
|
73
|
-
if (allowsOvertype(input)) return true;
|
|
74
|
-
const limit = getLimitValue(input, "data-formie-max-words");
|
|
75
|
-
if (!limit || input.value.trim() === "") return true;
|
|
76
|
-
return Le(input.value).wordCount <= limit;
|
|
77
|
-
}, ({ label, input, t }) => {
|
|
78
|
-
return t("{attribute} must be no greater than {max} words.", {
|
|
79
|
-
attribute: label,
|
|
80
|
-
max: input.getAttribute("data-formie-max-words") || ""
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function unregisterValidators(form) {
|
|
86
|
-
releaseFormValidators(form, VALIDATOR_SCOPE, TEXT_LIMIT_VALIDATORS);
|
|
87
|
-
}
|
|
88
|
-
function getLimitTarget(input) {
|
|
89
|
-
if (limitTargetCache.has(input)) return limitTargetCache.get(input) || null;
|
|
90
|
-
const field = input.closest("[data-formie-field-handle]");
|
|
91
|
-
if (!field) {
|
|
92
|
-
limitTargetCache.set(input, null);
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
const existingTarget = field.querySelector("[data-formie-limit-text]");
|
|
96
|
-
if (existingTarget) {
|
|
97
|
-
limitTargetCache.set(input, existingTarget);
|
|
98
|
-
return existingTarget;
|
|
99
|
-
}
|
|
100
|
-
const control = field.querySelector("[data-formie-field-control]");
|
|
101
|
-
const target = document.createElement("div");
|
|
102
|
-
target.className = "formie-field-limit formie-limit-text";
|
|
103
|
-
target.setAttribute("data-formie-field-limit", "true");
|
|
104
|
-
target.setAttribute("data-formie-limit-text", "true");
|
|
105
|
-
if (control?.parentElement) {
|
|
106
|
-
control.insertAdjacentElement("afterend", target);
|
|
107
|
-
limitTargetCache.set(input, target);
|
|
108
|
-
return target;
|
|
109
|
-
}
|
|
110
|
-
field.appendChild(target);
|
|
111
|
-
limitTargetCache.set(input, target);
|
|
112
|
-
return target;
|
|
113
|
-
}
|
|
114
|
-
function renderCounter(target, remaining, unit) {
|
|
115
|
-
const number = document.createElement("span");
|
|
116
|
-
number.className = remaining < 0 ? "formie-limit-number formie-limit-number-error" : "formie-limit-number";
|
|
117
|
-
number.textContent = String(remaining);
|
|
118
|
-
target.replaceChildren(number, document.createTextNode(` ${Math.abs(remaining) === 1 ? unit : `${unit}s`} left`));
|
|
119
|
-
}
|
|
120
|
-
function updateCounter(input) {
|
|
121
|
-
const maxChars = getLimitValue(input, "data-formie-max-chars");
|
|
122
|
-
const maxWords = getLimitValue(input, "data-formie-max-words");
|
|
123
|
-
const target = getLimitTarget(input);
|
|
124
|
-
if (!target) return;
|
|
125
|
-
const metrics = Le(input.value);
|
|
126
|
-
if (maxChars > 0) {
|
|
127
|
-
renderCounter(target, maxChars - metrics.graphemeCount, "character");
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
if (maxWords > 0) renderCounter(target, maxWords - metrics.wordCount, "word");
|
|
131
|
-
}
|
|
132
|
-
var textLimitModule = {
|
|
133
|
-
id: "text-limit",
|
|
134
|
-
kind: "field",
|
|
135
|
-
match: (ctx) => {
|
|
136
|
-
return !!ctx.target.querySelector(INPUT_SELECTOR);
|
|
137
|
-
},
|
|
138
|
-
setup: async (ctx) => {
|
|
139
|
-
const options = ctx.options || {};
|
|
140
|
-
const field = getModuleFieldTarget(ctx);
|
|
141
|
-
const inputs = Array.from((field || ctx.target).querySelectorAll(INPUT_SELECTOR)).filter((input) => {
|
|
142
|
-
return (input instanceof HTMLInputElement || input instanceof HTMLTextAreaElement) && hasAnyLimitAttributes(input);
|
|
143
|
-
});
|
|
144
|
-
const counterInputs = inputs.filter((input) => {
|
|
145
|
-
return hasCounterLimitAttributes(input);
|
|
146
|
-
});
|
|
147
|
-
if (options.allowOvertype) inputs.forEach((input) => {
|
|
148
|
-
input.setAttribute(ALLOW_OVERTYPE_ATTR, "true");
|
|
149
|
-
});
|
|
150
|
-
registerValidators(ctx.form);
|
|
151
|
-
const unbinds = counterInputs.map((input) => {
|
|
152
|
-
const handler = () => {
|
|
153
|
-
updateCounter(input);
|
|
154
|
-
};
|
|
155
|
-
input.addEventListener("input", handler);
|
|
156
|
-
input.addEventListener("change", handler);
|
|
157
|
-
updateCounter(input);
|
|
158
|
-
return () => {
|
|
159
|
-
input.removeEventListener("input", handler);
|
|
160
|
-
input.removeEventListener("change", handler);
|
|
161
|
-
};
|
|
162
|
-
});
|
|
163
|
-
await ctx.emit("formie:module:text-limit:init", { count: inputs.length });
|
|
164
|
-
return { destroy: () => {
|
|
165
|
-
unbinds.forEach((unbind) => {
|
|
166
|
-
unbind();
|
|
167
|
-
});
|
|
168
|
-
if (options.allowOvertype) inputs.forEach((input) => {
|
|
169
|
-
input.removeAttribute(ALLOW_OVERTYPE_ATTR);
|
|
170
|
-
});
|
|
171
|
-
unregisterValidators(ctx.form);
|
|
172
|
-
ctx.emit("formie:module:text-limit:destroy", {});
|
|
173
|
-
} };
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
//#endregion
|
|
177
|
-
export { textLimitModule };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
//#region src/js/theme/theme-classes.ts
|
|
2
|
-
var themeRegistry = /* @__PURE__ */ new WeakMap();
|
|
3
|
-
var THEME_ROOT_SELECTORS = "[data-formie-form], [data-formie], form";
|
|
4
|
-
function splitClasses(value) {
|
|
5
|
-
if (!value) return [];
|
|
6
|
-
return (Array.isArray(value) ? value : [value]).flatMap((item) => {
|
|
7
|
-
return String(item).split(/\s+/);
|
|
8
|
-
}).map((item) => {
|
|
9
|
-
return item.trim();
|
|
10
|
-
}).filter(Boolean);
|
|
11
|
-
}
|
|
12
|
-
function uniqueClasses(classes) {
|
|
13
|
-
return Array.from(new Set(classes));
|
|
14
|
-
}
|
|
15
|
-
function resolveThemeClassMap(source) {
|
|
16
|
-
if (!source) return {};
|
|
17
|
-
const directMatch = themeRegistry.get(source);
|
|
18
|
-
if (directMatch) return directMatch;
|
|
19
|
-
const root = source.closest(THEME_ROOT_SELECTORS);
|
|
20
|
-
if (!root) return {};
|
|
21
|
-
return themeRegistry.get(root) || {};
|
|
22
|
-
}
|
|
23
|
-
function normalizeThemeClassMap(theme) {
|
|
24
|
-
const normalized = {};
|
|
25
|
-
Object.entries(theme || {}).forEach(([key, value]) => {
|
|
26
|
-
const classes = uniqueClasses(splitClasses(value));
|
|
27
|
-
if (classes.length) normalized[key] = classes;
|
|
28
|
-
});
|
|
29
|
-
return normalized;
|
|
30
|
-
}
|
|
31
|
-
function registerThemeClassMap(target, theme, form) {
|
|
32
|
-
const normalized = normalizeThemeClassMap(theme);
|
|
33
|
-
const resolvedForm = form || (target instanceof HTMLFormElement ? target : target.querySelector("form"));
|
|
34
|
-
themeRegistry.set(target, normalized);
|
|
35
|
-
if (resolvedForm) themeRegistry.set(resolvedForm, normalized);
|
|
36
|
-
return normalized;
|
|
37
|
-
}
|
|
38
|
-
function getThemeClasses(source, key) {
|
|
39
|
-
return resolveThemeClassMap(source)[key] || [];
|
|
40
|
-
}
|
|
41
|
-
function addThemeClasses(target, source, ...keys) {
|
|
42
|
-
const classes = uniqueClasses(keys.flatMap((key) => {
|
|
43
|
-
return getThemeClasses(source, key);
|
|
44
|
-
}));
|
|
45
|
-
if (classes.length) target.classList.add(...classes);
|
|
46
|
-
}
|
|
47
|
-
function removeThemeClasses(target, source, ...keys) {
|
|
48
|
-
const classes = uniqueClasses(keys.flatMap((key) => {
|
|
49
|
-
return getThemeClasses(source, key);
|
|
50
|
-
}));
|
|
51
|
-
if (classes.length) target.classList.remove(...classes);
|
|
52
|
-
}
|
|
53
|
-
function toggleThemeClasses(target, source, key, enabled) {
|
|
54
|
-
getThemeClasses(source, key).forEach((className) => {
|
|
55
|
-
target.classList.toggle(className, enabled);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
//#endregion
|
|
59
|
-
export { toggleThemeClasses as i, registerThemeClassMap as n, removeThemeClasses as r, addThemeClasses as t };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { a as CAPTCHA_PROVIDER_LOAD_TIMEOUT_MS, i as CAPTCHA_EXECUTE_WAIT_FOR_VALUE_MS, o as CAPTCHA_SUBMIT_WAIT_FOR_VALUE_MS, r as getScriptAttributes, t as defineCaptchaModule } from "./api-DOfDzYC_.js";
|
|
2
|
-
import { r as loadScriptAndEnsureGlobal } from "./scripts-BGD_iU_6.js";
|
|
3
|
-
//#region src/js/modules/captchas/turnstile.ts
|
|
4
|
-
function getTurnstileWaitForValueMs(provider) {
|
|
5
|
-
const appearance = provider.appearance || "always";
|
|
6
|
-
return (provider.execution || (appearance === "execute" ? "execute" : "render")) === "execute" ? CAPTCHA_EXECUTE_WAIT_FOR_VALUE_MS : CAPTCHA_SUBMIT_WAIT_FOR_VALUE_MS;
|
|
7
|
-
}
|
|
8
|
-
async function loadTurnstileGlobal(options) {
|
|
9
|
-
const { async, defer } = getScriptAttributes(options.loadingMethod);
|
|
10
|
-
return loadScriptAndEnsureGlobal("turnstile", {
|
|
11
|
-
id: "FORMIE_TURNSTILE_SCRIPT",
|
|
12
|
-
src: "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",
|
|
13
|
-
async,
|
|
14
|
-
defer,
|
|
15
|
-
timeoutMs: CAPTCHA_PROVIDER_LOAD_TIMEOUT_MS
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
var turnstileModule = defineCaptchaModule({
|
|
19
|
-
id: "turnstile",
|
|
20
|
-
defaultPlaceholderSelector: "[data-turnstile-placeholder]",
|
|
21
|
-
defaultTokenFieldNames: ["cf-turnstile-response"],
|
|
22
|
-
load: ({ options }) => {
|
|
23
|
-
return loadTurnstileGlobal(options.provider);
|
|
24
|
-
},
|
|
25
|
-
mount: ({ api, container, provider, services }) => {
|
|
26
|
-
const appearance = provider.appearance || "always";
|
|
27
|
-
const execution = provider.execution || (appearance === "execute" ? "execute" : "render");
|
|
28
|
-
return api.render(container, {
|
|
29
|
-
sitekey: provider.siteKey || "",
|
|
30
|
-
theme: provider.theme || "auto",
|
|
31
|
-
size: provider.size || "normal",
|
|
32
|
-
appearance,
|
|
33
|
-
execution,
|
|
34
|
-
callback: (token) => {
|
|
35
|
-
if (typeof token === "string" && token.trim() !== "") services.tokens.write(token.trim());
|
|
36
|
-
services.errors.clear();
|
|
37
|
-
},
|
|
38
|
-
"expired-callback": () => {
|
|
39
|
-
services.tokens.clear();
|
|
40
|
-
services.errors.clear();
|
|
41
|
-
},
|
|
42
|
-
"timeout-callback": () => {
|
|
43
|
-
services.tokens.clear();
|
|
44
|
-
services.errors.clear();
|
|
45
|
-
},
|
|
46
|
-
"error-callback": () => {
|
|
47
|
-
services.tokens.clear();
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
screen: ({ api, widget, placeholder, services, provider, stageCtx }) => {
|
|
52
|
-
if (services.tokens.has()) return;
|
|
53
|
-
api.execute(widget);
|
|
54
|
-
return services.tokens.wait(getTurnstileWaitForValueMs(provider)).then((hasToken) => {
|
|
55
|
-
if (!hasToken) {
|
|
56
|
-
const message = services.errors.getDefaultMessage();
|
|
57
|
-
services.errors.show(message, placeholder);
|
|
58
|
-
stageCtx.abort(message);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
},
|
|
62
|
-
unmount: ({ api, widget, services }) => {
|
|
63
|
-
api.reset(widget);
|
|
64
|
-
services.tokens.clear();
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
//#endregion
|
|
68
|
-
export { turnstileModule };
|