@prosopo/procaptcha-bundle 2.5.0 → 2.5.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/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +4 -4
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js +4 -4
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +3 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js +83 -13
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +5 -6
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +8 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +11 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +6 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha/componentsList.js → captcha/captchaComponentsList.js} +3 -3
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha/captcha.d.ts → captcha/captchaProps.d.ts} +3 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +2 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +24 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +51 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/frictionlessCaptcha.d.ts +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
- package/{dist/util/renderLogic → .rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util}/captcha/components/frictionlessCaptcha.js +2 -2
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/imageCaptcha.d.ts +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/imageCaptcha.js +2 -2
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/powCaptcha.d.ts +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/powCaptcha.js +2 -2
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -2
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -19
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +5 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +24 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +18 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +57 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +9 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +19 -0
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +1 -0
- package/dist/bundle/ProcaptchaWidget-BlWWnPeB.js +615 -0
- package/dist/bundle/ProcaptchaWidget-Dnwno-4N.js +156 -0
- package/dist/bundle/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/bundle/{asU8a-Br9wz334.js → asU8a-JliaME7-.js} +1 -1
- package/dist/bundle/{bip39-BtaWByKg.js → bip39-CFjno8fK.js} +2 -2
- package/dist/bundle/{browser-ponyfill-Ck_bwPOY.js → browser-ponyfill-Dy1JBTMg.js} +20 -20
- package/dist/bundle/captchaComponentProvider-dcMua0p9.js +1013 -0
- package/dist/bundle/captchaRenderer-D-du50M4.js +5478 -0
- package/dist/bundle/components.d.ts +4 -4
- package/dist/bundle/components.d.ts.map +1 -1
- package/dist/bundle/emotion-element-5486c51c.browser.esm-Bywq83R5.js +1838 -0
- package/dist/bundle/{hash-KElfghPn.js → hash-CtL1HOjf.js} +1 -1
- package/dist/bundle/i18nFrontend-C_RgmvGh.js +2273 -0
- package/dist/bundle/index-B8oMghZ3.js +1120 -0
- package/dist/bundle/{index-Cb-XcaMX.js → index-BMjJnq60.js} +11 -10
- package/dist/bundle/index-BTlHNFX8.js +504 -0
- package/dist/bundle/{index-B0trzdT2.js → index-DcG_c-Na.js} +20 -19
- package/dist/bundle/index.d.ts +3 -1
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/locales/de/translation.json +2 -1
- package/dist/bundle/locales/en/translation.json +2 -1
- package/dist/bundle/locales/es/translation.json +2 -1
- package/dist/bundle/locales/fr/translation.json +2 -1
- package/dist/bundle/locales/it/translation.json +2 -1
- package/dist/bundle/locales/pt/translation.json +2 -1
- package/dist/bundle/locales/pt-BR/translation.json +2 -1
- package/dist/bundle/procaptcha.bundle.js +4 -3
- package/dist/bundle/translations-B0P9axY3.js +2885 -0
- package/dist/bundle/useTranslation-7b6JJ18N.js +158 -0
- package/dist/bundle/util/captcha/captchaComponentProvider.d.ts +8 -0
- package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -0
- package/dist/bundle/util/captcha/captchaComponentsList.d.ts +6 -0
- package/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -0
- package/dist/{util/renderLogic/captcha/captcha.d.ts → bundle/util/captcha/captchaProps.d.ts} +3 -1
- package/dist/bundle/util/captcha/captchaProps.d.ts.map +1 -0
- package/dist/bundle/util/captcha/captchaRenderer.d.ts +24 -0
- package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -0
- package/dist/bundle/util/captcha/captchaType.d.ts.map +1 -0
- package/dist/bundle/util/{renderLogic/captcha → captcha}/components/frictionlessCaptcha.d.ts +1 -1
- package/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
- package/dist/bundle/util/{renderLogic/captcha → captcha}/components/imageCaptcha.d.ts +1 -1
- package/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +1 -0
- package/dist/bundle/util/{renderLogic/captcha → captcha}/components/powCaptcha.d.ts +1 -1
- package/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +1 -0
- package/dist/bundle/util/config.d.ts +0 -2
- package/dist/bundle/util/config.d.ts.map +1 -1
- package/dist/bundle/util/configCreator.d.ts +5 -0
- package/dist/bundle/util/configCreator.d.ts.map +1 -0
- package/dist/bundle/util/widgetFactory.d.ts +18 -0
- package/dist/bundle/util/widgetFactory.d.ts.map +1 -0
- package/dist/bundle/util/widgetThemeResolver.d.ts +9 -0
- package/dist/bundle/util/widgetThemeResolver.d.ts.map +1 -0
- package/dist/components.d.ts +4 -4
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +4 -4
- package/dist/components.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +83 -13
- package/dist/index.js.map +1 -1
- package/dist/tests/util/captchaType.test.js +1 -1
- package/dist/tests/util/captchaType.test.js.map +1 -1
- package/dist/tests/util/renderLogic.test.js +5 -6
- package/dist/tests/util/renderLogic.test.js.map +1 -1
- package/dist/util/captcha/captchaComponentProvider.d.ts +8 -0
- package/dist/util/captcha/captchaComponentProvider.d.ts.map +1 -0
- package/dist/util/captcha/captchaComponentProvider.js +11 -0
- package/dist/util/captcha/captchaComponentProvider.js.map +1 -0
- package/dist/util/captcha/captchaComponentsList.d.ts +6 -0
- package/dist/util/captcha/captchaComponentsList.d.ts.map +1 -0
- package/dist/util/{renderLogic/captcha/componentsList.js → captcha/captchaComponentsList.js} +3 -3
- package/dist/util/captcha/captchaComponentsList.js.map +1 -0
- package/dist/{bundle/util/renderLogic/captcha/captcha.d.ts → util/captcha/captchaProps.d.ts} +3 -1
- package/dist/util/captcha/captchaProps.d.ts.map +1 -0
- package/dist/util/captcha/captchaProps.js +2 -0
- package/dist/util/captcha/captchaProps.js.map +1 -0
- package/dist/util/captcha/captchaRenderer.d.ts +24 -0
- package/dist/util/captcha/captchaRenderer.d.ts.map +1 -0
- package/dist/util/captcha/captchaRenderer.js +51 -0
- package/dist/util/captcha/captchaRenderer.js.map +1 -0
- package/dist/util/captcha/captchaType.d.ts.map +1 -0
- package/dist/util/captcha/captchaType.js.map +1 -0
- package/dist/util/{renderLogic/captcha → captcha}/components/frictionlessCaptcha.d.ts +1 -1
- package/dist/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
- package/{.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic → dist/util}/captcha/components/frictionlessCaptcha.js +2 -2
- package/dist/util/captcha/components/frictionlessCaptcha.js.map +1 -0
- package/dist/util/{renderLogic/captcha → captcha}/components/imageCaptcha.d.ts +1 -1
- package/dist/util/captcha/components/imageCaptcha.d.ts.map +1 -0
- package/dist/util/{renderLogic/captcha → captcha}/components/imageCaptcha.js +2 -2
- package/dist/util/captcha/components/imageCaptcha.js.map +1 -0
- package/dist/util/{renderLogic/captcha → captcha}/components/powCaptcha.d.ts +1 -1
- package/dist/util/captcha/components/powCaptcha.d.ts.map +1 -0
- package/dist/util/{renderLogic/captcha → captcha}/components/powCaptcha.js +2 -2
- package/dist/util/captcha/components/powCaptcha.js.map +1 -0
- package/dist/util/config.d.ts +0 -2
- package/dist/util/config.d.ts.map +1 -1
- package/dist/util/config.js +0 -19
- package/dist/util/config.js.map +1 -1
- package/dist/util/configCreator.d.ts +5 -0
- package/dist/util/configCreator.d.ts.map +1 -0
- package/dist/util/configCreator.js +24 -0
- package/dist/util/configCreator.js.map +1 -0
- package/dist/util/widgetFactory.d.ts +18 -0
- package/dist/util/widgetFactory.d.ts.map +1 -0
- package/dist/util/widgetFactory.js +57 -0
- package/dist/util/widgetFactory.js.map +1 -0
- package/dist/util/widgetThemeResolver.d.ts +9 -0
- package/dist/util/widgetThemeResolver.d.ts.map +1 -0
- package/dist/util/widgetThemeResolver.js +19 -0
- package/dist/util/widgetThemeResolver.js.map +1 -0
- package/package.json +10 -9
- package/stats.html +1 -1
- package/vite.cjs.config.ts +1 -1
- package/vite.config.ts +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captchaType.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captchaType.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.js +0 -2
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts +0 -8
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.js +0 -11
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/powCaptcha.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/powCaptcha.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.d.ts +0 -6
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.d.ts +0 -8
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.js +0 -29
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.d.ts +0 -23
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.js +0 -52
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.d.ts +0 -3
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.js +0 -14
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/theme.d.ts +0 -3
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/theme.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/theme.js +0 -9
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/theme.js.map +0 -1
- package/dist/bundle/ProcaptchaWidget-CAyH6qD7.js +0 -161
- package/dist/bundle/ProcaptchaWidget-CY3qomFu.js +0 -619
- package/dist/bundle/index-VYSrdSle.js +0 -11587
- package/dist/bundle/index-n-2hvBzo.js +0 -1190
- package/dist/bundle/useTranslation-CcYxvTxi.js +0 -2435
- package/dist/bundle/util/captchaType.d.ts.map +0 -1
- package/dist/bundle/util/renderLogic/captcha/captcha.d.ts.map +0 -1
- package/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts +0 -8
- package/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts.map +0 -1
- package/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
- package/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.d.ts.map +0 -1
- package/dist/bundle/util/renderLogic/captcha/components/powCaptcha.d.ts.map +0 -1
- package/dist/bundle/util/renderLogic/captcha/componentsList.d.ts +0 -6
- package/dist/bundle/util/renderLogic/captcha/componentsList.d.ts.map +0 -1
- package/dist/bundle/util/renderLogic/webComponent.d.ts +0 -8
- package/dist/bundle/util/renderLogic/webComponent.d.ts.map +0 -1
- package/dist/bundle/util/renderLogic/widgetRenderer.d.ts +0 -23
- package/dist/bundle/util/renderLogic/widgetRenderer.d.ts.map +0 -1
- package/dist/bundle/util/renderLogic.d.ts +0 -3
- package/dist/bundle/util/renderLogic.d.ts.map +0 -1
- package/dist/bundle/util/theme.d.ts +0 -3
- package/dist/bundle/util/theme.d.ts.map +0 -1
- package/dist/util/captchaType.d.ts.map +0 -1
- package/dist/util/captchaType.js.map +0 -1
- package/dist/util/renderLogic/captcha/captcha.d.ts.map +0 -1
- package/dist/util/renderLogic/captcha/captcha.js +0 -2
- package/dist/util/renderLogic/captcha/captcha.js.map +0 -1
- package/dist/util/renderLogic/captcha/captchaRenderer.d.ts +0 -8
- package/dist/util/renderLogic/captcha/captchaRenderer.d.ts.map +0 -1
- package/dist/util/renderLogic/captcha/captchaRenderer.js +0 -11
- package/dist/util/renderLogic/captcha/captchaRenderer.js.map +0 -1
- package/dist/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
- package/dist/util/renderLogic/captcha/components/frictionlessCaptcha.js.map +0 -1
- package/dist/util/renderLogic/captcha/components/imageCaptcha.d.ts.map +0 -1
- package/dist/util/renderLogic/captcha/components/imageCaptcha.js.map +0 -1
- package/dist/util/renderLogic/captcha/components/powCaptcha.d.ts.map +0 -1
- package/dist/util/renderLogic/captcha/components/powCaptcha.js.map +0 -1
- package/dist/util/renderLogic/captcha/componentsList.d.ts +0 -6
- package/dist/util/renderLogic/captcha/componentsList.d.ts.map +0 -1
- package/dist/util/renderLogic/captcha/componentsList.js.map +0 -1
- package/dist/util/renderLogic/webComponent.d.ts +0 -8
- package/dist/util/renderLogic/webComponent.d.ts.map +0 -1
- package/dist/util/renderLogic/webComponent.js +0 -29
- package/dist/util/renderLogic/webComponent.js.map +0 -1
- package/dist/util/renderLogic/widgetRenderer.d.ts +0 -23
- package/dist/util/renderLogic/widgetRenderer.d.ts.map +0 -1
- package/dist/util/renderLogic/widgetRenderer.js +0 -52
- package/dist/util/renderLogic/widgetRenderer.js.map +0 -1
- package/dist/util/renderLogic.d.ts +0 -3
- package/dist/util/renderLogic.d.ts.map +0 -1
- package/dist/util/renderLogic.js +0 -14
- package/dist/util/renderLogic.js.map +0 -1
- package/dist/util/theme.d.ts +0 -3
- package/dist/util/theme.d.ts.map +0 -1
- package/dist/util/theme.js +0 -9
- package/dist/util/theme.js.map +0 -1
- /package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{captchaType.d.ts → captcha/captchaType.d.ts} +0 -0
- /package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{captchaType.js → captcha/captchaType.js} +0 -0
- /package/dist/bundle/util/{captchaType.d.ts → captcha/captchaType.d.ts} +0 -0
- /package/dist/util/{captchaType.d.ts → captcha/captchaType.d.ts} +0 -0
- /package/dist/util/{captchaType.js → captcha/captchaType.js} +0 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { p as X, r as p } from "./emotion-element-5486c51c.browser.esm-Bywq83R5.js";
|
|
2
|
+
import { s as Y } from "./toU8a-BWKf-2UU.js";
|
|
3
|
+
import { g as q, a as B, i as K } from "./i18nFrontend-C_RgmvGh.js";
|
|
4
|
+
function re(e) {
|
|
5
|
+
return X(Y(e));
|
|
6
|
+
}
|
|
7
|
+
const te = (e) => new Promise((s) => setTimeout(s, e)), ce = (e, s) => (o) => {
|
|
8
|
+
Object.assign(e, o), s(o);
|
|
9
|
+
}, P = (e, s) => {
|
|
10
|
+
const o = e(s), a = (n) => {
|
|
11
|
+
o.current = n;
|
|
12
|
+
};
|
|
13
|
+
return [o.current, a];
|
|
14
|
+
}, ue = (e, s) => {
|
|
15
|
+
const [o, a] = e(!1), [t, n] = e(0), [l, N] = e([]), [h, r] = P(s, void 0), [g, A] = e(!1), [E, b] = e(void 0), [I, w] = e(!1), [T, M] = e(void 0), [m, C] = e(void 0), [v, O] = P(s, void 0), [z, L] = P(s, void 0), [c, u] = P(s, void 0), [d, f] = e(!1), [F, _] = e(0), [$, G] = e(void 0), [J, W] = e(void 0);
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
isHuman: o,
|
|
19
|
+
index: t,
|
|
20
|
+
solutions: l,
|
|
21
|
+
captchaApi: h,
|
|
22
|
+
showModal: g,
|
|
23
|
+
challenge: E,
|
|
24
|
+
loading: I,
|
|
25
|
+
account: T,
|
|
26
|
+
dappAccount: m,
|
|
27
|
+
submission: v,
|
|
28
|
+
timeout: z,
|
|
29
|
+
successfullChallengeTimeout: c,
|
|
30
|
+
sendData: d,
|
|
31
|
+
attemptCount: F,
|
|
32
|
+
error: $,
|
|
33
|
+
sessionId: J
|
|
34
|
+
},
|
|
35
|
+
(i) => {
|
|
36
|
+
i.account !== void 0 && M(i.account), i.isHuman !== void 0 && a(i.isHuman), i.index !== void 0 && n(i.index), i.solutions !== void 0 && N(i.solutions.slice()), i.captchaApi !== void 0 && r(i.captchaApi), i.showModal !== void 0 && A(i.showModal), i.challenge !== void 0 && b(i.challenge), i.loading !== void 0 && w(i.loading), i.showModal !== void 0 && A(i.showModal), i.dappAccount !== void 0 && C(i.dappAccount), i.submission !== void 0 && O(i.submission), i.timeout !== void 0 && L(i.timeout), i.successfullChallengeTimeout !== void 0 && u(i.timeout), i.sendData !== void 0 && f(i.sendData), i.attemptCount !== void 0 && _(i.attemptCount), i.error !== void 0 && G(i.error), i.sessionId !== void 0 && W(i.sessionId);
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
}, Q = (e, s, o, a) => {
|
|
40
|
+
var n, l, N, h;
|
|
41
|
+
const t = [o, {
|
|
42
|
+
code: s,
|
|
43
|
+
...a || {}
|
|
44
|
+
}];
|
|
45
|
+
if ((l = (n = e == null ? void 0 : e.services) == null ? void 0 : n.logger) != null && l.forward)
|
|
46
|
+
return e.services.logger.forward(t, "warn", "react-i18next::", !0);
|
|
47
|
+
y(t[0]) && (t[0] = `react-i18next:: ${t[0]}`), (h = (N = e == null ? void 0 : e.services) == null ? void 0 : N.logger) != null && h.warn ? e.services.logger.warn(...t) : console != null && console.warn && [...t];
|
|
48
|
+
}, U = {}, H = (e, s, o, a) => {
|
|
49
|
+
y(o) && U[o] || (y(o) && (U[o] = /* @__PURE__ */ new Date()), Q(e, s, o, a));
|
|
50
|
+
}, D = (e, s) => () => {
|
|
51
|
+
if (e.isInitialized)
|
|
52
|
+
s();
|
|
53
|
+
else {
|
|
54
|
+
const o = () => {
|
|
55
|
+
setTimeout(() => {
|
|
56
|
+
e.off("initialized", o);
|
|
57
|
+
}, 0), s();
|
|
58
|
+
};
|
|
59
|
+
e.on("initialized", o);
|
|
60
|
+
}
|
|
61
|
+
}, R = (e, s, o) => {
|
|
62
|
+
e.loadNamespaces(s, D(e, o));
|
|
63
|
+
}, j = (e, s, o, a) => {
|
|
64
|
+
if (y(o) && (o = [o]), e.options.preload && e.options.preload.indexOf(s) > -1) return R(e, o, a);
|
|
65
|
+
o.forEach((t) => {
|
|
66
|
+
e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
|
|
67
|
+
}), e.loadLanguages(s, D(e, a));
|
|
68
|
+
}, Z = (e, s, o = {}) => !s.languages || !s.languages.length ? (H(s, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
|
|
69
|
+
languages: s.languages
|
|
70
|
+
}), !0) : s.hasLoadedNamespace(e, {
|
|
71
|
+
lng: o.lng,
|
|
72
|
+
precheck: (a, t) => {
|
|
73
|
+
var n;
|
|
74
|
+
if (((n = o.bindI18n) == null ? void 0 : n.indexOf("languageChanging")) > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !t(a.isLanguageChangingTo, e)) return !1;
|
|
75
|
+
}
|
|
76
|
+
}), y = (e) => typeof e == "string", V = (e) => typeof e == "object" && e !== null, x = p.createContext();
|
|
77
|
+
class S {
|
|
78
|
+
constructor() {
|
|
79
|
+
this.usedNamespaces = {};
|
|
80
|
+
}
|
|
81
|
+
addUsedNamespaces(s) {
|
|
82
|
+
s.forEach((o) => {
|
|
83
|
+
this.usedNamespaces[o] || (this.usedNamespaces[o] = !0);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
getUsedNamespaces() {
|
|
87
|
+
return Object.keys(this.usedNamespaces);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const ee = (e, s) => {
|
|
91
|
+
const o = p.useRef();
|
|
92
|
+
return p.useEffect(() => {
|
|
93
|
+
o.current = e;
|
|
94
|
+
}, [e, s]), o.current;
|
|
95
|
+
}, k = (e, s, o, a) => e.getFixedT(s, o, a), se = (e, s, o, a) => p.useCallback(k(e, s, o, a), [e, s, o, a]), ne = (e, s = {}) => {
|
|
96
|
+
var v, O, z, L;
|
|
97
|
+
const {
|
|
98
|
+
i18n: o
|
|
99
|
+
} = s, {
|
|
100
|
+
i18n: a,
|
|
101
|
+
defaultNS: t
|
|
102
|
+
} = p.useContext(x) || {}, n = o || a || q();
|
|
103
|
+
if (n && !n.reportNamespaces && (n.reportNamespaces = new S()), !n) {
|
|
104
|
+
H(n, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
105
|
+
const c = (d, f) => y(f) ? f : V(f) && y(f.defaultValue) ? f.defaultValue : Array.isArray(d) ? d[d.length - 1] : d, u = [c, {}, !1];
|
|
106
|
+
return u.t = c, u.i18n = {}, u.ready = !1, u;
|
|
107
|
+
}
|
|
108
|
+
(v = n.options.react) != null && v.wait && H(n, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
109
|
+
const l = {
|
|
110
|
+
...B(),
|
|
111
|
+
...n.options.react,
|
|
112
|
+
...s
|
|
113
|
+
}, {
|
|
114
|
+
useSuspense: N,
|
|
115
|
+
keyPrefix: h
|
|
116
|
+
} = l;
|
|
117
|
+
let r = e || t || ((O = n.options) == null ? void 0 : O.defaultNS);
|
|
118
|
+
r = y(r) ? [r] : r || ["translation"], (L = (z = n.reportNamespaces).addUsedNamespaces) == null || L.call(z, r);
|
|
119
|
+
const g = (n.isInitialized || n.initializedStoreOnce) && r.every((c) => Z(c, n, l)), A = se(n, s.lng || null, l.nsMode === "fallback" ? r : r[0], h), E = () => A, b = () => k(n, s.lng || null, l.nsMode === "fallback" ? r : r[0], h), [I, w] = p.useState(E);
|
|
120
|
+
let T = r.join();
|
|
121
|
+
s.lng && (T = `${s.lng}${T}`);
|
|
122
|
+
const M = ee(T), m = p.useRef(!0);
|
|
123
|
+
p.useEffect(() => {
|
|
124
|
+
const {
|
|
125
|
+
bindI18n: c,
|
|
126
|
+
bindI18nStore: u
|
|
127
|
+
} = l;
|
|
128
|
+
m.current = !0, !g && !N && (s.lng ? j(n, s.lng, r, () => {
|
|
129
|
+
m.current && w(b);
|
|
130
|
+
}) : R(n, r, () => {
|
|
131
|
+
m.current && w(b);
|
|
132
|
+
})), g && M && M !== T && m.current && w(b);
|
|
133
|
+
const d = () => {
|
|
134
|
+
m.current && w(b);
|
|
135
|
+
};
|
|
136
|
+
return c && (n == null || n.on(c, d)), u && (n == null || n.store.on(u, d)), () => {
|
|
137
|
+
m.current = !1, n && (c == null || c.split(" ").forEach((f) => n.off(f, d))), u && n && u.split(" ").forEach((f) => n.store.off(f, d));
|
|
138
|
+
};
|
|
139
|
+
}, [n, T]), p.useEffect(() => {
|
|
140
|
+
m.current && g && w(E);
|
|
141
|
+
}, [n, h, g]);
|
|
142
|
+
const C = [I, n, g];
|
|
143
|
+
if (C.t = I, C.i18n = n, C.ready = g, g || !g && !N) return C;
|
|
144
|
+
throw new Promise((c) => {
|
|
145
|
+
s.lng ? j(n, s.lng, r, () => c()) : R(n, r, () => c());
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
function de(e) {
|
|
149
|
+
const s = K();
|
|
150
|
+
return ne("translation", { i18n: s, ...e });
|
|
151
|
+
}
|
|
152
|
+
export {
|
|
153
|
+
te as a,
|
|
154
|
+
ce as b,
|
|
155
|
+
ue as c,
|
|
156
|
+
re as s,
|
|
157
|
+
de as u
|
|
158
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CaptchaType } from "@prosopo/types";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { CaptchaProps } from "./captchaProps.js";
|
|
4
|
+
declare class CaptchaComponentProvider {
|
|
5
|
+
getCaptchaComponent(captchaType: CaptchaType, captchaProps: CaptchaProps): ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export { CaptchaComponentProvider };
|
|
8
|
+
//# sourceMappingURL=captchaComponentProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captchaComponentProvider.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentProvider.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,cAAM,wBAAwB;IACtB,mBAAmB,CACzB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,GACxB,SAAS;CAaZ;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CaptchaType } from "@prosopo/types";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { CaptchaProps } from "./captchaProps.js";
|
|
4
|
+
declare const captchaComponentsList: Record<CaptchaType, React.ComponentType<CaptchaProps>>;
|
|
5
|
+
export { captchaComponentsList };
|
|
6
|
+
//# sourceMappingURL=captchaComponentsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captchaComponentsList.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentsList.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKtD,QAAA,MAAM,qBAAqB,EAAE,MAAM,CAClC,WAAW,EACX,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAKjC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
package/dist/{util/renderLogic/captcha/captcha.d.ts → bundle/util/captcha/captchaProps.d.ts}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { Ti18n } from "@prosopo/locale";
|
|
1
2
|
import type { ProcaptchaCallbacks, ProcaptchaClientConfigInput } from "@prosopo/types";
|
|
2
3
|
interface CaptchaProps {
|
|
3
4
|
config: ProcaptchaClientConfigInput;
|
|
4
5
|
callbacks: ProcaptchaCallbacks;
|
|
6
|
+
i18n: Ti18n;
|
|
5
7
|
}
|
|
6
8
|
export type { CaptchaProps };
|
|
7
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=captchaProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captchaProps.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaProps.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EACX,mBAAmB,EACnB,2BAA2B,EAC3B,MAAM,gBAAgB,CAAC;AAExB,UAAU,YAAY;IACrB,MAAM,EAAE,2BAA2B,CAAC;IACpC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,IAAI,EAAE,KAAK,CAAC;CACZ;AAED,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type EmotionCache } from "@emotion/cache";
|
|
2
|
+
import type { Ti18n } from "@prosopo/locale";
|
|
3
|
+
import type { Callbacks, ProcaptchaClientConfigOutput, ProcaptchaRenderOptions } from "@prosopo/types";
|
|
4
|
+
import type { CaptchaType } from "@prosopo/types";
|
|
5
|
+
import type { ReactNode } from "react";
|
|
6
|
+
import { type Root } from "react-dom/client";
|
|
7
|
+
import type { CaptchaComponentProvider } from "./captchaComponentProvider.js";
|
|
8
|
+
interface RenderSettings {
|
|
9
|
+
identifierPrefix: string;
|
|
10
|
+
emotionCacheKey: string;
|
|
11
|
+
webComponentTag: string;
|
|
12
|
+
defaultCaptchaType: CaptchaType;
|
|
13
|
+
}
|
|
14
|
+
declare class CaptchaRenderer {
|
|
15
|
+
private readonly captchaComponentProvider;
|
|
16
|
+
constructor(captchaComponentProvider: CaptchaComponentProvider);
|
|
17
|
+
renderCaptcha(settings: RenderSettings, container: HTMLElement, renderOptions: ProcaptchaRenderOptions, isWeb2: boolean, i18n: Ti18n, invisible?: boolean): Root;
|
|
18
|
+
protected readAndValidateSettings(element: Element, callbacks: Callbacks, config: ProcaptchaClientConfigOutput, renderOptions: ProcaptchaRenderOptions): void;
|
|
19
|
+
protected makeEmotionCache(cacheKey: string, container: HTMLElement): EmotionCache;
|
|
20
|
+
protected createReactRoot(container: HTMLElement, identifierPrefix: string): Root;
|
|
21
|
+
protected renderCaptchaComponent(reactRoot: Root, emotionCache: EmotionCache, captchaComponent: ReactNode): void;
|
|
22
|
+
}
|
|
23
|
+
export { CaptchaRenderer };
|
|
24
|
+
//# sourceMappingURL=captchaRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captchaRenderer.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaRenderer.tsx"],"names":[],"mappings":"AAcA,OAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAK7C,OAAO,KAAK,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ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaType.ts"],"names":[],"mappings":"AAuBA,wBAAgB,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,OAQjD"}
|
package/dist/bundle/util/{renderLogic/captcha → captcha}/components/frictionlessCaptcha.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CaptchaProps } from "../
|
|
1
|
+
import type { CaptchaProps } from "../captchaProps.js";
|
|
2
2
|
declare const FrictionlessCaptcha: (props: CaptchaProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { FrictionlessCaptcha };
|
|
4
4
|
//# sourceMappingURL=frictionlessCaptcha.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frictionlessCaptcha.d.ts","sourceRoot":"","sources":["../../../../../src/util/captcha/components/frictionlessCaptcha.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,QAAA,MAAM,mBAAmB,UAAW,YAAY,4CAkB/C,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CaptchaProps } from "../
|
|
1
|
+
import type { CaptchaProps } from "../captchaProps.js";
|
|
2
2
|
declare const ImageCaptcha: (props: CaptchaProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { ImageCaptcha };
|
|
4
4
|
//# sourceMappingURL=imageCaptcha.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageCaptcha.d.ts","sourceRoot":"","sources":["../../../../../src/util/captcha/components/imageCaptcha.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,QAAA,MAAM,YAAY,UAAW,YAAY,4CAUxC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powCaptcha.d.ts","sourceRoot":"","sources":["../../../../../src/util/captcha/components/powCaptcha.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,QAAA,MAAM,UAAU,UAAW,YAAY,4CAUtC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { type ProcaptchaClientConfigOutput } from "@prosopo/types";
|
|
2
|
-
export declare const getConfig: (siteKey?: string, web2?: boolean) => ProcaptchaClientConfigOutput;
|
|
3
1
|
export declare const getProcaptchaScript: (name: string) => HTMLScriptElement | null;
|
|
4
2
|
export declare const extractParams: (name: string) => {
|
|
5
3
|
onloadUrlCallback: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/util/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/util/config.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,mBAAmB,SAAU,MAAM,6BACoB,CAAC;AAErE,eAAO,MAAM,aAAa,SAAU,MAAM;;;CAWzC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { LanguageSchema } from "@prosopo/locale";
|
|
2
|
+
import { type ProcaptchaClientConfigOutput } from "@prosopo/types";
|
|
3
|
+
declare function createConfig(siteKey?: string, theme?: "light" | "dark", language?: typeof LanguageSchema, web2?: boolean, invisible?: boolean): ProcaptchaClientConfigOutput;
|
|
4
|
+
export { createConfig };
|
|
5
|
+
//# sourceMappingURL=configCreator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configCreator.d.ts","sourceRoot":"","sources":["../../../src/util/configCreator.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAEN,KAAK,4BAA4B,EAEjC,MAAM,gBAAgB,CAAC;AAExB,iBAAS,YAAY,CACpB,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,OAAO,GAAG,MAAgB,EACjC,QAAQ,CAAC,EAAE,OAAO,cAAc,EAChC,IAAI,UAAO,EACX,SAAS,UAAQ,GACf,4BAA4B,CAqB9B;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Ti18n } from "@prosopo/locale";
|
|
2
|
+
import { type ProcaptchaRenderOptions } from "@prosopo/types";
|
|
3
|
+
import type { Root } from "react-dom/client";
|
|
4
|
+
import type { CaptchaRenderer } from "./captcha/captchaRenderer.js";
|
|
5
|
+
import type { WidgetThemeResolver } from "./widgetThemeResolver.js";
|
|
6
|
+
declare class WidgetFactory {
|
|
7
|
+
private readonly widgetThemeResolver;
|
|
8
|
+
private captchaRenderer;
|
|
9
|
+
private _i18n;
|
|
10
|
+
constructor(widgetThemeResolver: WidgetThemeResolver);
|
|
11
|
+
get i18n(): Ti18n;
|
|
12
|
+
createWidgets(containers: Element[], renderOptions: ProcaptchaRenderOptions, isWeb2?: boolean, invisible?: boolean): Promise<Root[]>;
|
|
13
|
+
createWidget(container: Element, renderOptions: ProcaptchaRenderOptions, isWeb2?: boolean, invisible?: boolean): Promise<Root>;
|
|
14
|
+
protected getCaptchaRenderer(): Promise<CaptchaRenderer>;
|
|
15
|
+
protected createCaptchaRenderer(): Promise<CaptchaRenderer>;
|
|
16
|
+
}
|
|
17
|
+
export { WidgetFactory };
|
|
18
|
+
//# sourceMappingURL=widgetFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgetFactory.d.ts","sourceRoot":"","sources":["../../../src/util/widgetFactory.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAM3E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,cAAM,aAAa;IAKjB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAJrC,OAAO,CAAC,eAAe,CAAgC;IACvD,OAAO,CAAC,KAAK,CAAsB;gBAGjB,mBAAmB,EAAE,mBAAmB;IAG1D,IAAI,IAAI,IAAI,KAAK,CAKhB;IAEY,aAAa,CACzB,UAAU,EAAE,OAAO,EAAE,EACrB,aAAa,EAAE,uBAAuB,EACtC,MAAM,UAAO,EACb,SAAS,UAAQ,GACf,OAAO,CAAC,IAAI,EAAE,CAAC;IAQL,YAAY,CACxB,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,uBAAuB,EACtC,MAAM,UAAO,EACb,SAAS,UAAQ,GACf,OAAO,CAAC,IAAI,CAAC;cA8CA,kBAAkB,IAAI,OAAO,CAAC,eAAe,CAAC;cAY9C,qBAAqB,IAAI,OAAO,CAAC,eAAe,CAAC;CAUjE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ProcaptchaRenderOptions } from "@prosopo/types";
|
|
2
|
+
declare class WidgetThemeResolver {
|
|
3
|
+
private readonly themesSet;
|
|
4
|
+
private readonly defaultTheme;
|
|
5
|
+
resolveWidgetTheme(element: Element, renderOptions: ProcaptchaRenderOptions): "light" | "dark";
|
|
6
|
+
protected validateTheme(themeAttribute: string): "light" | "dark";
|
|
7
|
+
}
|
|
8
|
+
export { WidgetThemeResolver };
|
|
9
|
+
//# sourceMappingURL=widgetThemeResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgetThemeResolver.d.ts","sourceRoot":"","sources":["../../../src/util/widgetThemeResolver.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,cAAM,mBAAmB;IACxB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA8B;IACxD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAW;IAEjC,kBAAkB,CACxB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,uBAAuB,GACpC,OAAO,GAAG,MAAM;IASnB,SAAS,CAAC,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM;CAKjE;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
package/dist/components.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./util/
|
|
2
|
-
export * from "./util/
|
|
3
|
-
export * from "./util/
|
|
4
|
-
export * from "./util/
|
|
1
|
+
export * from "./util/captcha/components/frictionlessCaptcha.js";
|
|
2
|
+
export * from "./util/captcha/components/powCaptcha.js";
|
|
3
|
+
export * from "./util/captcha/components/imageCaptcha.js";
|
|
4
|
+
export * from "./util/captcha/captchaComponentProvider.js";
|
|
5
5
|
//# sourceMappingURL=components.d.ts.map
|
package/dist/components.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAcA,cAAc,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAcA,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC"}
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./util/
|
|
2
|
-
export * from "./util/
|
|
3
|
-
export * from "./util/
|
|
4
|
-
export * from "./util/
|
|
1
|
+
export * from "./util/captcha/components/frictionlessCaptcha.js";
|
|
2
|
+
export * from "./util/captcha/components/powCaptcha.js";
|
|
3
|
+
export * from "./util/captcha/components/imageCaptcha.js";
|
|
4
|
+
export * from "./util/captcha/captchaComponentProvider.js";
|
|
5
5
|
//# sourceMappingURL=components.js.map
|
package/dist/components.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAcA,cAAc,
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAcA,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { ProcaptchaRenderOptions } from "@prosopo/types";
|
|
2
|
-
export declare const render: (element: Element, renderOptions: ProcaptchaRenderOptions) => void
|
|
2
|
+
export declare const render: (element: Element, renderOptions: ProcaptchaRenderOptions) => Promise<void>;
|
|
3
3
|
export default function ready(fn: () => void): void;
|
|
4
|
+
export declare const execute: () => void;
|
|
4
5
|
declare global {
|
|
5
6
|
interface Window {
|
|
6
7
|
procaptcha: {
|
|
7
8
|
ready: typeof ready;
|
|
8
9
|
render: typeof render;
|
|
9
10
|
reset: typeof reset;
|
|
11
|
+
execute: typeof execute;
|
|
10
12
|
};
|
|
11
13
|
}
|
|
12
14
|
}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAiF9D,eAAO,MAAM,MAAM,YACT,OAAO,iBACD,uBAAuB,kBAoBtC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,EAAE,MAAM,IAAI,QAQ3C;AAED,eAAO,MAAM,OAAO,YAqBnB,CAAC;AAiDF,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,UAAU,EAAE;YACX,KAAK,EAAE,OAAO,KAAK,CAAC;YACpB,MAAM,EAAE,OAAO,MAAM,CAAC;YACtB,KAAK,EAAE,OAAO,KAAK,CAAC;YACpB,OAAO,EAAE,OAAO,OAAO,CAAC;SACxB,CAAC;KACF;CACD;AA2BD,eAAO,MAAM,KAAK,YAOjB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { getWindowCallback } from "@prosopo/procaptcha-common";
|
|
2
2
|
import { at } from "@prosopo/util";
|
|
3
|
-
import { getCaptchaType } from "./util/captchaType.js";
|
|
4
|
-
import { extractParams,
|
|
5
|
-
import {
|
|
3
|
+
import { getCaptchaType } from "./util/captcha/captchaType.js";
|
|
4
|
+
import { extractParams, getProcaptchaScript } from "./util/config.js";
|
|
5
|
+
import { WidgetFactory } from "./util/widgetFactory.js";
|
|
6
|
+
import { WidgetThemeResolver } from "./util/widgetThemeResolver.js";
|
|
6
7
|
const BUNDLE_NAME = "procaptcha.bundle.js";
|
|
7
8
|
let procaptchaRoots = [];
|
|
8
|
-
const
|
|
9
|
-
|
|
9
|
+
const widgetFactory = new WidgetFactory(new WidgetThemeResolver());
|
|
10
|
+
const PROCAPTCHA_EXECUTE_EVENT = "procaptcha:execute";
|
|
11
|
+
const implicitRender = async () => {
|
|
12
|
+
const elements = Array.from(document.getElementsByClassName("procaptcha")).filter((element) => element.tagName.toLowerCase() !== "button");
|
|
10
13
|
if (elements.length) {
|
|
11
14
|
const siteKey = at(elements, 0).getAttribute("data-sitekey");
|
|
12
15
|
const web3 = at(elements, 0).getAttribute("data-web3");
|
|
@@ -15,16 +18,40 @@ const implicitRender = () => {
|
|
|
15
18
|
return;
|
|
16
19
|
}
|
|
17
20
|
const captchaType = getCaptchaType(elements);
|
|
18
|
-
const root =
|
|
19
|
-
captchaType,
|
|
20
|
-
siteKey,
|
|
21
|
-
});
|
|
21
|
+
const root = await widgetFactory.createWidgets(elements, {
|
|
22
|
+
captchaType: captchaType,
|
|
23
|
+
siteKey: siteKey,
|
|
24
|
+
}, !(web3 === "true"));
|
|
22
25
|
procaptchaRoots.push(...root);
|
|
23
26
|
}
|
|
27
|
+
const invisibleButtons = Array.from(document.getElementsByClassName("procaptcha")).filter((button) => button.tagName.toLowerCase() === "button");
|
|
28
|
+
if (invisibleButtons.length) {
|
|
29
|
+
for (const button of invisibleButtons) {
|
|
30
|
+
const siteKey = button.getAttribute("data-sitekey") || "";
|
|
31
|
+
const callback = button.getAttribute("data-callback") || "";
|
|
32
|
+
const captchaType = getCaptchaType([button]);
|
|
33
|
+
const root = await widgetFactory.createWidgets([button], {
|
|
34
|
+
captchaType: captchaType,
|
|
35
|
+
siteKey: siteKey,
|
|
36
|
+
callback: callback,
|
|
37
|
+
}, true, true);
|
|
38
|
+
procaptchaRoots.push(...root);
|
|
39
|
+
button.addEventListener("click", async (event) => {
|
|
40
|
+
event.preventDefault();
|
|
41
|
+
execute();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
24
45
|
};
|
|
25
|
-
export const render = (element, renderOptions) => {
|
|
26
|
-
const
|
|
27
|
-
|
|
46
|
+
export const render = async (element, renderOptions) => {
|
|
47
|
+
const hasInvisibleSize = Object.prototype.hasOwnProperty.call(renderOptions, "size") &&
|
|
48
|
+
renderOptions.size === "invisible";
|
|
49
|
+
if (hasInvisibleSize || element.tagName.toLowerCase() === "button") {
|
|
50
|
+
const roots = await widgetFactory.createWidgets([element], renderOptions, true, true);
|
|
51
|
+
procaptchaRoots.push(...roots);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const roots = await widgetFactory.createWidgets([element], renderOptions);
|
|
28
55
|
procaptchaRoots.push(...roots);
|
|
29
56
|
};
|
|
30
57
|
export default function ready(fn) {
|
|
@@ -37,6 +64,49 @@ export default function ready(fn) {
|
|
|
37
64
|
document.addEventListener("DOMContentLoaded", fn);
|
|
38
65
|
}
|
|
39
66
|
}
|
|
67
|
+
export const execute = () => {
|
|
68
|
+
const containers = findProcaptchaContainers();
|
|
69
|
+
if (containers.length === 0) {
|
|
70
|
+
console.error("No Procaptcha containers found for execution");
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const executeEvent = new CustomEvent(PROCAPTCHA_EXECUTE_EVENT, {
|
|
74
|
+
detail: {
|
|
75
|
+
containerId: containers[0]?.id || "procaptcha-container",
|
|
76
|
+
containerCount: containers.length,
|
|
77
|
+
timestamp: Date.now(),
|
|
78
|
+
},
|
|
79
|
+
bubbles: true,
|
|
80
|
+
cancelable: true,
|
|
81
|
+
});
|
|
82
|
+
document.dispatchEvent(executeEvent);
|
|
83
|
+
};
|
|
84
|
+
function findProcaptchaContainers() {
|
|
85
|
+
const containers = [];
|
|
86
|
+
const invisibleContainers = Array.from(document.querySelectorAll('[data-size="invisible"]'));
|
|
87
|
+
containers.push(...invisibleContainers);
|
|
88
|
+
const idContainers = Array.from(document.querySelectorAll('#procaptcha-container, [id$="-procaptcha-container"]'));
|
|
89
|
+
const classContainers = Array.from(document.getElementsByClassName("p-procaptcha"));
|
|
90
|
+
containers.push(...classContainers);
|
|
91
|
+
for (const container of idContainers) {
|
|
92
|
+
if (!containers.includes(container)) {
|
|
93
|
+
containers.push(container);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return containers;
|
|
97
|
+
}
|
|
98
|
+
function getElementAttributes(element) {
|
|
99
|
+
const attributes = {};
|
|
100
|
+
if (element?.attributes) {
|
|
101
|
+
for (let i = 0; i < element.attributes.length; i++) {
|
|
102
|
+
const attr = element.attributes[i];
|
|
103
|
+
if (attr?.name && attr.value !== undefined) {
|
|
104
|
+
attributes[attr.name] = attr.value;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return attributes;
|
|
109
|
+
}
|
|
40
110
|
const start = () => {
|
|
41
111
|
const { onloadUrlCallback, renderExplicit } = extractParams(BUNDLE_NAME);
|
|
42
112
|
if (renderExplicit !== "explicit") {
|
|
@@ -61,6 +131,6 @@ export const reset = () => {
|
|
|
61
131
|
procaptchaRoots = [];
|
|
62
132
|
start();
|
|
63
133
|
};
|
|
64
|
-
window.procaptcha = { ready, render, reset };
|
|
134
|
+
window.procaptcha = { ready, render, reset, execute };
|
|
65
135
|
start();
|
|
66
136
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAC3C,IAAI,eAAe,GAAW,EAAE,CAAC;AAEjC,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC;AAGnE,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAGtD,MAAM,cAAc,GAAG,KAAK,IAAI,EAAE;IAEjC,MAAM,QAAQ,GAAc,KAAK,CAAC,IAAI,CACrC,QAAQ,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAC7C,CAAC,MAAM,CAAC,CAAC,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AAC,MAAM,EAAE,GAAG,EAAE;YAC/D,KAAK,CAAC,cAAc,CAAC,CAAC;YACtB,WAAW,GAAG,IAAI,CAAC;QACpB,CAAC,CAAC,CAAC;QAEH,IAAI,QAAQ,CAAC,UAAU,KAAK,UAAU,IAAI,CAAC,WAAW,EAAE,CAAC;YACxD,KAAK,CAAC,cAAc,CAAC,CAAC;QACvB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE;IACzB,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,CAAC,OAAO,EAAE,CAAC;IAChB,CAAC;IACD,eAAe,GAAG,EAAE,CAAC;IAErB,KAAK,EAAE,CAAC;AACT,CAAC,CAAC;AAGF,MAAM,CAAC,UAAU,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAEtD,KAAK,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CaptchaType } from "@prosopo/types";
|
|
2
2
|
import { JSDOM } from "jsdom";
|
|
3
3
|
import { beforeEach, describe, expect, it } from "vitest";
|
|
4
|
-
import { getCaptchaType } from "../../util/captchaType.js";
|
|
4
|
+
import { getCaptchaType } from "../../util/captcha/captchaType.js";
|
|
5
5
|
describe("getCaptchaType", () => {
|
|
6
6
|
beforeEach(() => {
|
|
7
7
|
const dom = new JSDOM("<!DOCTYPE html><html><body></body></html>");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captchaType.test.js","sourceRoot":"","sources":["../../../src/tests/util/captchaType.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC1D,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,CAAC,kEAAkE,EAAE,GAAG,EAAE;QAC3E,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC9C,OAAO,CAAC,YAAY,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;QAE1D,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAEzC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACzD,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE9C,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YAClD,OAAO,CAAC,YAAY,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;YACnD,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -3,7 +3,9 @@ import { ProcaptchaPow } from "@prosopo/procaptcha-pow";
|
|
|
3
3
|
import { ProcaptchaConfigSchema } from "@prosopo/types";
|
|
4
4
|
import { JSDOM } from "jsdom";
|
|
5
5
|
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
6
|
-
import {
|
|
6
|
+
import { WidgetFactory } from "../../util/widgetFactory.js";
|
|
7
|
+
import { WidgetThemeResolver } from "../../util/widgetThemeResolver.js";
|
|
8
|
+
const widgetFactory = new WidgetFactory(new WidgetThemeResolver());
|
|
7
9
|
vi.mock("@prosopo/detector", async () => {
|
|
8
10
|
return {
|
|
9
11
|
isBot: async () => {
|
|
@@ -59,10 +61,7 @@ describe("Config utility functions", () => {
|
|
|
59
61
|
expect(true).toBe(false);
|
|
60
62
|
return;
|
|
61
63
|
}
|
|
62
|
-
|
|
63
|
-
account: { address: "1234" },
|
|
64
|
-
});
|
|
65
|
-
renderLogic([script], config, {
|
|
64
|
+
await widgetFactory.createWidgets([script], {
|
|
66
65
|
siteKey: "1234",
|
|
67
66
|
captchaType: "pow",
|
|
68
67
|
});
|
|
@@ -116,7 +115,7 @@ describe("Config utility functions", () => {
|
|
|
116
115
|
const config = ProcaptchaConfigSchema.parse({
|
|
117
116
|
account: { address: "1234" },
|
|
118
117
|
});
|
|
119
|
-
|
|
118
|
+
await widgetFactory.createWidgets([script], {
|
|
120
119
|
siteKey: "1234",
|
|
121
120
|
captchaType: "pow",
|
|
122
121
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderLogic.test.js","sourceRoot":"","sources":["../../../src/tests/util/renderLogic.test.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAwB,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAkB,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"renderLogic.test.js","sourceRoot":"","sources":["../../../src/tests/util/renderLogic.test.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAwB,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAkB,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACzE,O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