@prosopo/procaptcha-bundle 3.0.13 → 3.2.2
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 → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.js +10 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -0
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts +2 -0
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js +32 -0
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js.map +1 -0
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +19 -9
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +1 -0
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +1 -1
- package/{dist → .rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist}/bundle/util/captcha/captchaProps.d.ts +1 -0
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +2 -1
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +1 -0
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js +2 -2
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +1 -0
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +1 -1
- package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +6 -2
- package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -0
- package/CHANGELOG.md +440 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +599 -0
- package/coverage/coverage-final.json +17 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +161 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +210 -0
- package/coverage/src/components.ts.html +139 -0
- package/coverage/src/index.html +131 -0
- package/coverage/src/index.ts.html +844 -0
- package/coverage/src/util/captcha/captchaComponentProvider.tsx.html +214 -0
- package/coverage/src/util/captcha/captchaComponentsList.ts.html +178 -0
- package/coverage/src/util/captcha/captchaProps.ts.html +166 -0
- package/coverage/src/util/captcha/captchaRenderer.tsx.html +481 -0
- package/coverage/src/util/captcha/captchaType.ts.html +181 -0
- package/coverage/src/util/captcha/components/frictionlessCaptcha.tsx.html +205 -0
- package/coverage/src/util/captcha/components/imageCaptcha.tsx.html +178 -0
- package/coverage/src/util/captcha/components/index.html +146 -0
- package/coverage/src/util/captcha/components/powCaptcha.tsx.html +178 -0
- package/coverage/src/util/captcha/index.html +176 -0
- package/coverage/src/util/config.ts.html +172 -0
- package/coverage/src/util/configCreator.ts.html +241 -0
- package/coverage/src/util/index.html +191 -0
- package/coverage/src/util/language.ts.html +244 -0
- package/coverage/src/util/timeout.ts.html +214 -0
- package/coverage/src/util/widgetFactory.ts.html +532 -0
- package/coverage/src/util/widgetThemeResolver.ts.html +205 -0
- package/dist/bundle/{ProcaptchaWidget-CXxnCzl2.js → ProcaptchaWidget-CuMH13Bh.js} +340 -320
- package/dist/bundle/{ProcaptchaWidget-BIt2pcrz.js → ProcaptchaWidget-DsflBBn_.js} +25 -25
- package/dist/bundle/{browser-ponyfill-CvzSbL_o.js → browser-ponyfill-DXriyH6D.js} +4 -4
- package/dist/bundle/{builder-DNHtDoNG.js → builder-ByZ5z580.js} +3 -1
- package/dist/bundle/captchaComponentProvider-D02Su4nd.js +1013 -0
- package/dist/bundle/captchaRenderer-BV-WgbEA.js +70 -0
- package/dist/bundle/{commonChunk-BKceWhtS.js → commonChunk-PB26mndo.js} +66 -69
- package/dist/bundle/{emotion-element-5486c51c.browser.esm-CimrRZxS.js → emotion-element-c39617d8.browser.esm-DG1XhEZ1.js} +343 -345
- package/dist/bundle/{index-KHTbPva_.js → index-B9KeZfID.js} +3 -3
- package/dist/bundle/{index-hrOz2CPm.js → index-Calnfnac.js} +97 -87
- package/dist/bundle/index-DU371vQ0.js +1634 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/nobleChunk-Bbltwf44.js +2728 -0
- package/dist/bundle/procaptcha.bundle.js +2 -2
- package/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
- package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
- package/dist/bundle/util/captcha/captchaProps.d.ts.map +1 -1
- package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -1
- package/dist/bundle/util/configCreator.d.ts.map +1 -1
- package/dist/bundle/util/widgetFactory.d.ts.map +1 -1
- package/dist/bundle/{utilChunk-DPr6oTOj.js → utilChunk-WRTGKXbU.js} +109 -102
- package/dist/bundle/{utilCryptoChunk-BKe3CKqn.js → utilCryptoChunk-B4ZdOwus.js} +252 -243
- package/dist/bundle/{web2Chunk-Cqw91v-J.js → web2Chunk-BGN6Hv-C.js} +1097 -1002
- package/dist/bundle/web3Chunk-BIX2T9Eo.js +525 -0
- package/dist/bundle/{zodChunk-wTu9ZHzV.js → zodChunk-CaINhWMQ.js} +10 -10
- package/dist/cjs/index.cjs +10 -1
- package/dist/cjs/util/captcha/captchaComponentProvider.cjs +3 -2
- package/dist/cjs/util/captcha/captchaRenderer.cjs +4 -3
- package/dist/cjs/util/captcha/components/frictionlessCaptcha.cjs +4 -3
- package/dist/cjs/util/captcha/components/imageCaptcha.cjs +1 -1
- package/dist/cjs/util/captcha/components/powCaptcha.cjs +1 -1
- package/dist/cjs/util/configCreator.cjs +0 -1
- package/dist/cjs/util/widgetFactory.cjs +7 -2
- package/dist/components.d.ts.map +1 -0
- package/dist/components.js +5 -0
- package/dist/components.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -0
- package/dist/tests/procaptchaReady.unit.test.d.ts +2 -0
- package/dist/tests/procaptchaReady.unit.test.d.ts.map +1 -0
- package/dist/tests/procaptchaReady.unit.test.js +32 -0
- package/dist/tests/procaptchaReady.unit.test.js.map +1 -0
- package/dist/tests/util/captchaType.test.d.ts.map +1 -0
- package/dist/tests/util/captchaType.test.js +36 -0
- package/dist/tests/util/captchaType.test.js.map +1 -0
- package/dist/tests/util/config.test.d.ts.map +1 -0
- package/dist/tests/util/config.test.js +69 -0
- package/dist/tests/util/config.test.js.map +1 -0
- package/dist/tests/util/renderLogic.test.d.ts.map +1 -0
- package/dist/tests/util/renderLogic.test.js +136 -0
- package/dist/tests/util/renderLogic.test.js.map +1 -0
- package/dist/util/captcha/captchaComponentProvider.d.ts.map +1 -0
- package/dist/util/captcha/captchaComponentProvider.js +3 -2
- package/dist/util/captcha/captchaComponentProvider.js.map +1 -0
- package/dist/util/captcha/captchaComponentsList.d.ts.map +1 -0
- package/dist/util/captcha/captchaComponentsList.js.map +1 -0
- package/{.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle → dist}/util/captcha/captchaProps.d.ts +1 -0
- 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/{bundle/util → util}/captcha/captchaRenderer.d.ts +1 -1
- package/dist/util/captcha/captchaRenderer.d.ts.map +1 -0
- package/dist/util/captcha/captchaRenderer.js +4 -3
- 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/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
- package/dist/util/captcha/components/frictionlessCaptcha.js +4 -3
- package/dist/util/captcha/components/frictionlessCaptcha.js.map +1 -0
- package/dist/util/captcha/components/imageCaptcha.d.ts.map +1 -0
- package/dist/util/captcha/components/imageCaptcha.js +1 -1
- package/dist/util/captcha/components/imageCaptcha.js.map +1 -0
- package/dist/util/captcha/components/powCaptcha.d.ts.map +1 -0
- package/dist/util/captcha/components/powCaptcha.js +1 -1
- package/dist/util/captcha/components/powCaptcha.js.map +1 -0
- package/dist/util/config.d.ts.map +1 -0
- package/dist/util/config.js.map +1 -0
- package/dist/util/configCreator.d.ts.map +1 -0
- package/dist/util/configCreator.js +0 -1
- package/dist/util/configCreator.js.map +1 -0
- package/dist/util/language.d.ts.map +1 -0
- package/dist/util/language.js.map +1 -0
- package/dist/util/timeout.d.ts.map +1 -0
- package/dist/util/timeout.js.map +1 -0
- package/dist/util/widgetFactory.d.ts.map +1 -0
- package/dist/util/widgetFactory.js +7 -2
- package/dist/util/widgetFactory.js.map +1 -0
- package/dist/util/widgetThemeResolver.d.ts.map +1 -0
- package/dist/util/widgetThemeResolver.js.map +1 -0
- package/package.json +24 -25
- package/stats.html +2239 -2132
- package/vite.test.config.ts +3 -2
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +0 -1
- package/dist/bundle/captchaComponentProvider-BGEAkC9Y.js +0 -968
- package/dist/bundle/captchaRenderer-CqnUYyKY.js +0 -70
- package/dist/bundle/index-7Xh-Mf8v.js +0 -1318
- package/dist/bundle/nobleChunk-CQ4ENyKh.js +0 -3769
- package/dist/bundle/web3Chunk-BcwDKvjL.js +0 -517
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -0
- /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -0
- /package/dist/{bundle/components.d.ts → components.d.ts} +0 -0
- /package/dist/{bundle/index.d.ts → index.d.ts} +0 -0
- /package/dist/{bundle/tests → tests}/util/captchaType.test.d.ts +0 -0
- /package/dist/{bundle/tests → tests}/util/config.test.d.ts +0 -0
- /package/dist/{bundle/tests → tests}/util/renderLogic.test.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/captchaComponentProvider.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/captchaComponentsList.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/captchaType.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/components/frictionlessCaptcha.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/components/imageCaptcha.d.ts +0 -0
- /package/dist/{bundle/util → util}/captcha/components/powCaptcha.d.ts +0 -0
- /package/dist/{bundle/util → util}/config.d.ts +0 -0
- /package/dist/{bundle/util → util}/configCreator.d.ts +0 -0
- /package/dist/{bundle/util → util}/language.d.ts +0 -0
- /package/dist/{bundle/util → util}/timeout.d.ts +0 -0
- /package/dist/{bundle/util → util}/widgetFactory.d.ts +0 -0
- /package/dist/{bundle/util → util}/widgetThemeResolver.d.ts +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { c as C, j as v, C as f } from "./emotion-element-c39617d8.browser.esm-DG1XhEZ1.js";
|
|
2
|
+
import { r as R } from "./index-B9KeZfID.js";
|
|
3
|
+
import { P as b, b as A, L as i } from "./web2Chunk-BGN6Hv-C.js";
|
|
4
|
+
var l, E = R;
|
|
5
|
+
l = E.createRoot;
|
|
6
|
+
function x(o, e = "light", t, a = !0, r = !1, c) {
|
|
7
|
+
return o || (o = ""), b.parse({
|
|
8
|
+
defaultEnvironment: A.parse("production"),
|
|
9
|
+
userAccountAddress: c || "",
|
|
10
|
+
account: {
|
|
11
|
+
address: o
|
|
12
|
+
},
|
|
13
|
+
serverUrl: "",
|
|
14
|
+
mongoAtlasUri: "mongodb+srv://<MONGO_URI_HERE>/frictionless_events",
|
|
15
|
+
web2: a,
|
|
16
|
+
mode: r ? "invisible" : "visible",
|
|
17
|
+
theme: e,
|
|
18
|
+
language: t
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const y = (o, e, t) => {
|
|
22
|
+
const a = (o == null ? void 0 : o.language) || e.getAttribute("data-language");
|
|
23
|
+
a && (t.language = L(a));
|
|
24
|
+
}, L = (o) => {
|
|
25
|
+
try {
|
|
26
|
+
return i.parse(o);
|
|
27
|
+
} catch {
|
|
28
|
+
return console.error("Invalid language attribute: ".concat(o)), i.parse("en");
|
|
29
|
+
}
|
|
30
|
+
}, P = (o, e, t) => {
|
|
31
|
+
const a = (o == null ? void 0 : o["challenge-valid-length"]) || e.getAttribute("data-challenge-valid-length");
|
|
32
|
+
a && (t.captchas.image.solutionTimeout = Number.parseInt(a), t.captchas.pow.solutionTimeout = Number.parseInt(a));
|
|
33
|
+
};
|
|
34
|
+
class V {
|
|
35
|
+
constructor(e) {
|
|
36
|
+
this.captchaComponentProvider = e;
|
|
37
|
+
}
|
|
38
|
+
renderCaptcha(e, t, a, r, c, h, u, m) {
|
|
39
|
+
const g = (a == null ? void 0 : a.captchaType) || e.defaultCaptchaType, n = x(a.siteKey, a.theme, a.language, c, u, a.userAccountAddress);
|
|
40
|
+
this.readAndValidateSettings(t, n, a);
|
|
41
|
+
const s = this.createReactRoot(t, e.identifierPrefix), p = this.makeEmotionCache(e.emotionCacheKey, t), d = this.captchaComponentProvider.getCaptchaComponent(g, {
|
|
42
|
+
config: n,
|
|
43
|
+
i18n: h,
|
|
44
|
+
callbacks: r,
|
|
45
|
+
container: m
|
|
46
|
+
});
|
|
47
|
+
return this.renderCaptchaComponent(s, p, d), s;
|
|
48
|
+
}
|
|
49
|
+
readAndValidateSettings(e, t, a) {
|
|
50
|
+
P(a, e, t), y(a, e, t);
|
|
51
|
+
}
|
|
52
|
+
makeEmotionCache(e, t) {
|
|
53
|
+
return C({
|
|
54
|
+
key: e,
|
|
55
|
+
prepend: !0,
|
|
56
|
+
container: t
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
createReactRoot(e, t) {
|
|
60
|
+
return l(e, {
|
|
61
|
+
identifierPrefix: t
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
renderCaptchaComponent(e, t, a) {
|
|
65
|
+
e.render(v.jsx(f, { value: t, children: a }));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
V as CaptchaRenderer
|
|
70
|
+
};
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { z as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
f,
|
|
1
|
+
import { z as v } from "./zodChunk-CaINhWMQ.js";
|
|
2
|
+
const h = "info", m = "debug", b = "trace", k = "warn", y = "error", w = "fatal";
|
|
3
|
+
v.enum([
|
|
4
|
+
h,
|
|
6
5
|
m,
|
|
7
|
-
d,
|
|
8
|
-
v,
|
|
9
6
|
b,
|
|
10
|
-
k
|
|
7
|
+
k,
|
|
8
|
+
y,
|
|
9
|
+
w
|
|
11
10
|
]);
|
|
12
|
-
const
|
|
13
|
-
[
|
|
11
|
+
const P = {
|
|
12
|
+
[b]: 5,
|
|
14
13
|
[m]: 4,
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
14
|
+
[h]: 3,
|
|
15
|
+
[k]: 2,
|
|
16
|
+
[y]: 1,
|
|
17
|
+
[w]: 0
|
|
19
18
|
};
|
|
20
|
-
function
|
|
19
|
+
function S(s, t) {
|
|
21
20
|
const e = new E(t);
|
|
22
|
-
return e.setLogLevel(
|
|
21
|
+
return e.setLogLevel(s), e;
|
|
23
22
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
23
|
+
const D = typeof window < "u" && typeof window.document < "u", u = "json", M = "plain";
|
|
24
|
+
v.enum([u, M]);
|
|
26
25
|
class E {
|
|
27
|
-
constructor(t, e =
|
|
28
|
-
this.scope = t, this.levelMap = e, this.pretty = 0, this.printStack = !1, this.format =
|
|
26
|
+
constructor(t, e = P) {
|
|
27
|
+
this.scope = t, this.levelMap = e, this.pretty = 0, this.printStack = !1, this.format = u, this.level = h, this.levelNum = this.levelMap[this.level];
|
|
29
28
|
}
|
|
30
29
|
setFormat(t) {
|
|
31
|
-
if (this.format = t, this.format !==
|
|
30
|
+
if (this.format = t, this.format !== u)
|
|
32
31
|
throw new Error("Only JSON format implemented for now");
|
|
33
32
|
}
|
|
34
33
|
getFormat() {
|
|
@@ -62,49 +61,49 @@ class E {
|
|
|
62
61
|
unpackError(t) {
|
|
63
62
|
const e = t, r = { ...t };
|
|
64
63
|
r.name = e.name || "Error", this.printStack && (e.stack && (r.stack = e.stack), e.stacktrace && (r.stacktrace = e.stacktrace)), e.cause && (r.cause = e.cause), e.code && (r.code = e.code), e.details && (r.details = e.details), e.context && (r.context = e.context), e.data && (r.data = e.data), e.info && (r.info = e.info), e.metadata && (r.metadata = e.metadata), e.status && (r.status = e.status), e.statusCode && (r.statusCode = e.statusCode), e.cause && (e.cause instanceof Error ? r.cause = this.unpackError(e.cause) : r.cause = e.cause);
|
|
65
|
-
const
|
|
64
|
+
const a = e.message || e.msg || "";
|
|
66
65
|
return e.message && e.msg && (r.msg = e.msg), {
|
|
67
|
-
msg:
|
|
66
|
+
msg: a,
|
|
68
67
|
data: r
|
|
69
68
|
};
|
|
70
69
|
}
|
|
71
70
|
print(t, e, r) {
|
|
72
71
|
if (this.levelMap[r] > this.levelNum)
|
|
73
72
|
return;
|
|
74
|
-
const
|
|
75
|
-
let { data: c, msg:
|
|
76
|
-
if (
|
|
77
|
-
if (
|
|
78
|
-
const
|
|
79
|
-
|
|
73
|
+
const a = (/* @__PURE__ */ new Date()).toISOString();
|
|
74
|
+
let { data: c, msg: l, err: i } = e(), o, g;
|
|
75
|
+
if (i)
|
|
76
|
+
if (i instanceof Error || typeof i == "object") {
|
|
77
|
+
const f = this.unpackError(i);
|
|
78
|
+
o = f.msg, g = f.data;
|
|
80
79
|
} else
|
|
81
|
-
|
|
80
|
+
o = String(i);
|
|
82
81
|
this.defaultData && (c = { ...this.defaultData, ...c });
|
|
83
|
-
const n = { scope: this.scope, ts:
|
|
84
|
-
if (c && (n.data = c),
|
|
85
|
-
|
|
82
|
+
const n = { scope: this.scope, ts: a, level: this.level };
|
|
83
|
+
if (c && (n.data = c), l && (n.msg = l), o && (n.err = o), g && (n.errData = g), D)
|
|
84
|
+
l || o ? t(l || o, n) : t(n);
|
|
86
85
|
else {
|
|
87
|
-
const
|
|
88
|
-
t(
|
|
86
|
+
const f = d(n), x = JSON.stringify(f, null, this.pretty);
|
|
87
|
+
t(x);
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
info(t) {
|
|
92
|
-
this.print(console.info.bind(console), t,
|
|
91
|
+
this.print(console.info.bind(console), t, h);
|
|
93
92
|
}
|
|
94
93
|
debug(t) {
|
|
95
94
|
this.print(console.debug.bind(console), t, m);
|
|
96
95
|
}
|
|
97
96
|
trace(t) {
|
|
98
|
-
this.print(console.trace.bind(console), t,
|
|
97
|
+
this.print(console.trace.bind(console), t, b);
|
|
99
98
|
}
|
|
100
99
|
warn(t) {
|
|
101
|
-
this.print(console.warn.bind(console), t,
|
|
100
|
+
this.print(console.warn.bind(console), t, k);
|
|
102
101
|
}
|
|
103
102
|
error(t) {
|
|
104
|
-
this.print(console.error.bind(console), t,
|
|
103
|
+
this.print(console.error.bind(console), t, y);
|
|
105
104
|
}
|
|
106
105
|
fatal(t) {
|
|
107
|
-
this.print(console.error.bind(console), t,
|
|
106
|
+
this.print(console.error.bind(console), t, w);
|
|
108
107
|
}
|
|
109
108
|
log(t, e) {
|
|
110
109
|
switch (t) {
|
|
@@ -131,17 +130,27 @@ class E {
|
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
|
-
const
|
|
135
|
-
|
|
133
|
+
const d = (s) => {
|
|
134
|
+
if (typeof s == "bigint")
|
|
135
|
+
return s.toString();
|
|
136
|
+
if (N(s))
|
|
137
|
+
for (const t of Object.keys(s))
|
|
138
|
+
s[t] = d(s[t]);
|
|
139
|
+
if (Array.isArray(s))
|
|
140
|
+
for (let t = 0; t < s.length; t++)
|
|
141
|
+
s[t] = d(s[t]);
|
|
142
|
+
return s;
|
|
143
|
+
}, N = (s) => Object === (s == null ? void 0 : s.constructor), O = { t: (s) => s };
|
|
144
|
+
class L extends Error {
|
|
136
145
|
constructor(t, e) {
|
|
137
|
-
const r = (e == null ? void 0 : e.logger) ||
|
|
146
|
+
const r = (e == null ? void 0 : e.logger) || S("info", import.meta.url), a = (e == null ? void 0 : e.logLevel) || "error", c = (e == null ? void 0 : e.i18n) || O;
|
|
138
147
|
t instanceof Error ? (super(c.t(t.message)), this.translationKey = e == null ? void 0 : e.translationKey, this.context = {
|
|
139
148
|
...e == null ? void 0 : e.context,
|
|
140
149
|
...e != null && e.translationKey ? { translationMessage: c.t(e.translationKey) } : {}
|
|
141
|
-
}) : (super(c.t(t)), this.translationKey = t, this.context = e == null ? void 0 : e.context), e != null && e.silent || this.logError(r,
|
|
150
|
+
}) : (super(c.t(t)), this.translationKey = t, this.context = e == null ? void 0 : e.context), e != null && e.silent || this.logError(r, a, e == null ? void 0 : e.name);
|
|
142
151
|
}
|
|
143
152
|
logError(t, e, r) {
|
|
144
|
-
const
|
|
153
|
+
const a = { error: this.message, context: this.context }, c = { errorType: r || this.name, errorParams: a };
|
|
145
154
|
if (e === "debug") {
|
|
146
155
|
t.debug(() => ({ data: { ...c, stack: this.stack } }));
|
|
147
156
|
return;
|
|
@@ -149,38 +158,26 @@ class w extends Error {
|
|
|
149
158
|
t.error(() => ({ data: { ...c } }));
|
|
150
159
|
}
|
|
151
160
|
}
|
|
152
|
-
class
|
|
161
|
+
class A extends L {
|
|
153
162
|
constructor(t, e) {
|
|
154
|
-
const r = (e == null ? void 0 : e.name) || "ProsopoError",
|
|
155
|
-
super(t,
|
|
163
|
+
const r = (e == null ? void 0 : e.name) || "ProsopoError", a = { ...e, name: r };
|
|
164
|
+
super(t, a);
|
|
156
165
|
}
|
|
157
166
|
}
|
|
158
|
-
class
|
|
167
|
+
class F extends L {
|
|
159
168
|
constructor(t, e) {
|
|
160
|
-
const r = (e == null ? void 0 : e.name) || "ProsopoEnvError",
|
|
161
|
-
super(t,
|
|
169
|
+
const r = (e == null ? void 0 : e.name) || "ProsopoEnvError", a = { ...e, name: r };
|
|
170
|
+
super(t, a);
|
|
162
171
|
}
|
|
163
172
|
}
|
|
164
|
-
class
|
|
173
|
+
class K extends L {
|
|
165
174
|
constructor(t, e) {
|
|
166
|
-
const r = (e == null ? void 0 : e.name) || "ProsopoDatasetError",
|
|
167
|
-
super(t,
|
|
175
|
+
const r = (e == null ? void 0 : e.name) || "ProsopoDatasetError", a = { ...e, name: r };
|
|
176
|
+
super(t, a);
|
|
168
177
|
}
|
|
169
178
|
}
|
|
170
|
-
const M = "";
|
|
171
|
-
function A(a, t) {
|
|
172
|
-
return a.join(M);
|
|
173
|
-
}
|
|
174
|
-
function O(a, t) {
|
|
175
|
-
return y(a, t);
|
|
176
|
-
}
|
|
177
|
-
function C(a) {
|
|
178
|
-
return O(A(a));
|
|
179
|
-
}
|
|
180
179
|
export {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
C as c,
|
|
185
|
-
O as h
|
|
180
|
+
A as P,
|
|
181
|
+
F as a,
|
|
182
|
+
K as b
|
|
186
183
|
};
|