@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.
Files changed (232) hide show
  1. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
  2. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.js +10 -1
  3. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -0
  4. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts +2 -0
  5. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
  6. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js +32 -0
  7. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js.map +1 -0
  8. 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
  9. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +1 -0
  10. 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
  11. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +1 -1
  12. 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
  13. package/{dist → .rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist}/bundle/util/captcha/captchaProps.d.ts +1 -0
  14. 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
  15. 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
  16. 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
  17. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +2 -1
  18. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +1 -0
  19. 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
  20. 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
  21. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +1 -0
  22. 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
  23. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -1
  24. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +1 -1
  25. 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
  26. package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +6 -2
  27. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -0
  28. package/CHANGELOG.md +440 -0
  29. package/coverage/base.css +224 -0
  30. package/coverage/block-navigation.js +87 -0
  31. package/coverage/clover.xml +599 -0
  32. package/coverage/coverage-final.json +17 -0
  33. package/coverage/favicon.png +0 -0
  34. package/coverage/index.html +161 -0
  35. package/coverage/prettify.css +1 -0
  36. package/coverage/prettify.js +2 -0
  37. package/coverage/sort-arrow-sprite.png +0 -0
  38. package/coverage/sorter.js +210 -0
  39. package/coverage/src/components.ts.html +139 -0
  40. package/coverage/src/index.html +131 -0
  41. package/coverage/src/index.ts.html +844 -0
  42. package/coverage/src/util/captcha/captchaComponentProvider.tsx.html +214 -0
  43. package/coverage/src/util/captcha/captchaComponentsList.ts.html +178 -0
  44. package/coverage/src/util/captcha/captchaProps.ts.html +166 -0
  45. package/coverage/src/util/captcha/captchaRenderer.tsx.html +481 -0
  46. package/coverage/src/util/captcha/captchaType.ts.html +181 -0
  47. package/coverage/src/util/captcha/components/frictionlessCaptcha.tsx.html +205 -0
  48. package/coverage/src/util/captcha/components/imageCaptcha.tsx.html +178 -0
  49. package/coverage/src/util/captcha/components/index.html +146 -0
  50. package/coverage/src/util/captcha/components/powCaptcha.tsx.html +178 -0
  51. package/coverage/src/util/captcha/index.html +176 -0
  52. package/coverage/src/util/config.ts.html +172 -0
  53. package/coverage/src/util/configCreator.ts.html +241 -0
  54. package/coverage/src/util/index.html +191 -0
  55. package/coverage/src/util/language.ts.html +244 -0
  56. package/coverage/src/util/timeout.ts.html +214 -0
  57. package/coverage/src/util/widgetFactory.ts.html +532 -0
  58. package/coverage/src/util/widgetThemeResolver.ts.html +205 -0
  59. package/dist/bundle/{ProcaptchaWidget-CXxnCzl2.js → ProcaptchaWidget-CuMH13Bh.js} +340 -320
  60. package/dist/bundle/{ProcaptchaWidget-BIt2pcrz.js → ProcaptchaWidget-DsflBBn_.js} +25 -25
  61. package/dist/bundle/{browser-ponyfill-CvzSbL_o.js → browser-ponyfill-DXriyH6D.js} +4 -4
  62. package/dist/bundle/{builder-DNHtDoNG.js → builder-ByZ5z580.js} +3 -1
  63. package/dist/bundle/captchaComponentProvider-D02Su4nd.js +1013 -0
  64. package/dist/bundle/captchaRenderer-BV-WgbEA.js +70 -0
  65. package/dist/bundle/{commonChunk-BKceWhtS.js → commonChunk-PB26mndo.js} +66 -69
  66. package/dist/bundle/{emotion-element-5486c51c.browser.esm-CimrRZxS.js → emotion-element-c39617d8.browser.esm-DG1XhEZ1.js} +343 -345
  67. package/dist/bundle/{index-KHTbPva_.js → index-B9KeZfID.js} +3 -3
  68. package/dist/bundle/{index-hrOz2CPm.js → index-Calnfnac.js} +97 -87
  69. package/dist/bundle/index-DU371vQ0.js +1634 -0
  70. package/dist/bundle/index.d.ts.map +1 -1
  71. package/dist/bundle/nobleChunk-Bbltwf44.js +2728 -0
  72. package/dist/bundle/procaptcha.bundle.js +2 -2
  73. package/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +1 -0
  74. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
  75. package/dist/bundle/util/captcha/captchaProps.d.ts.map +1 -1
  76. package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
  77. package/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -1
  78. package/dist/bundle/util/configCreator.d.ts.map +1 -1
  79. package/dist/bundle/util/widgetFactory.d.ts.map +1 -1
  80. package/dist/bundle/{utilChunk-DPr6oTOj.js → utilChunk-WRTGKXbU.js} +109 -102
  81. package/dist/bundle/{utilCryptoChunk-BKe3CKqn.js → utilCryptoChunk-B4ZdOwus.js} +252 -243
  82. package/dist/bundle/{web2Chunk-Cqw91v-J.js → web2Chunk-BGN6Hv-C.js} +1097 -1002
  83. package/dist/bundle/web3Chunk-BIX2T9Eo.js +525 -0
  84. package/dist/bundle/{zodChunk-wTu9ZHzV.js → zodChunk-CaINhWMQ.js} +10 -10
  85. package/dist/cjs/index.cjs +10 -1
  86. package/dist/cjs/util/captcha/captchaComponentProvider.cjs +3 -2
  87. package/dist/cjs/util/captcha/captchaRenderer.cjs +4 -3
  88. package/dist/cjs/util/captcha/components/frictionlessCaptcha.cjs +4 -3
  89. package/dist/cjs/util/captcha/components/imageCaptcha.cjs +1 -1
  90. package/dist/cjs/util/captcha/components/powCaptcha.cjs +1 -1
  91. package/dist/cjs/util/configCreator.cjs +0 -1
  92. package/dist/cjs/util/widgetFactory.cjs +7 -2
  93. package/dist/components.d.ts.map +1 -0
  94. package/dist/components.js +5 -0
  95. package/dist/components.js.map +1 -0
  96. package/dist/index.d.ts.map +1 -0
  97. package/dist/index.js +10 -1
  98. package/dist/index.js.map +1 -0
  99. package/dist/tests/procaptchaReady.unit.test.d.ts +2 -0
  100. package/dist/tests/procaptchaReady.unit.test.d.ts.map +1 -0
  101. package/dist/tests/procaptchaReady.unit.test.js +32 -0
  102. package/dist/tests/procaptchaReady.unit.test.js.map +1 -0
  103. package/dist/tests/util/captchaType.test.d.ts.map +1 -0
  104. package/dist/tests/util/captchaType.test.js +36 -0
  105. package/dist/tests/util/captchaType.test.js.map +1 -0
  106. package/dist/tests/util/config.test.d.ts.map +1 -0
  107. package/dist/tests/util/config.test.js +69 -0
  108. package/dist/tests/util/config.test.js.map +1 -0
  109. package/dist/tests/util/renderLogic.test.d.ts.map +1 -0
  110. package/dist/tests/util/renderLogic.test.js +136 -0
  111. package/dist/tests/util/renderLogic.test.js.map +1 -0
  112. package/dist/util/captcha/captchaComponentProvider.d.ts.map +1 -0
  113. package/dist/util/captcha/captchaComponentProvider.js +3 -2
  114. package/dist/util/captcha/captchaComponentProvider.js.map +1 -0
  115. package/dist/util/captcha/captchaComponentsList.d.ts.map +1 -0
  116. package/dist/util/captcha/captchaComponentsList.js.map +1 -0
  117. package/{.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle → dist}/util/captcha/captchaProps.d.ts +1 -0
  118. package/dist/util/captcha/captchaProps.d.ts.map +1 -0
  119. package/dist/util/captcha/captchaProps.js +2 -0
  120. package/dist/util/captcha/captchaProps.js.map +1 -0
  121. package/dist/{bundle/util → util}/captcha/captchaRenderer.d.ts +1 -1
  122. package/dist/util/captcha/captchaRenderer.d.ts.map +1 -0
  123. package/dist/util/captcha/captchaRenderer.js +4 -3
  124. package/dist/util/captcha/captchaRenderer.js.map +1 -0
  125. package/dist/util/captcha/captchaType.d.ts.map +1 -0
  126. package/dist/util/captcha/captchaType.js.map +1 -0
  127. package/dist/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
  128. package/dist/util/captcha/components/frictionlessCaptcha.js +4 -3
  129. package/dist/util/captcha/components/frictionlessCaptcha.js.map +1 -0
  130. package/dist/util/captcha/components/imageCaptcha.d.ts.map +1 -0
  131. package/dist/util/captcha/components/imageCaptcha.js +1 -1
  132. package/dist/util/captcha/components/imageCaptcha.js.map +1 -0
  133. package/dist/util/captcha/components/powCaptcha.d.ts.map +1 -0
  134. package/dist/util/captcha/components/powCaptcha.js +1 -1
  135. package/dist/util/captcha/components/powCaptcha.js.map +1 -0
  136. package/dist/util/config.d.ts.map +1 -0
  137. package/dist/util/config.js.map +1 -0
  138. package/dist/util/configCreator.d.ts.map +1 -0
  139. package/dist/util/configCreator.js +0 -1
  140. package/dist/util/configCreator.js.map +1 -0
  141. package/dist/util/language.d.ts.map +1 -0
  142. package/dist/util/language.js.map +1 -0
  143. package/dist/util/timeout.d.ts.map +1 -0
  144. package/dist/util/timeout.js.map +1 -0
  145. package/dist/util/widgetFactory.d.ts.map +1 -0
  146. package/dist/util/widgetFactory.js +7 -2
  147. package/dist/util/widgetFactory.js.map +1 -0
  148. package/dist/util/widgetThemeResolver.d.ts.map +1 -0
  149. package/dist/util/widgetThemeResolver.js.map +1 -0
  150. package/package.json +24 -25
  151. package/stats.html +2239 -2132
  152. package/vite.test.config.ts +3 -2
  153. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -1
  154. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +0 -1
  155. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +0 -1
  156. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +0 -1
  157. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +0 -1
  158. package/dist/bundle/captchaComponentProvider-BGEAkC9Y.js +0 -968
  159. package/dist/bundle/captchaRenderer-CqnUYyKY.js +0 -70
  160. package/dist/bundle/index-7Xh-Mf8v.js +0 -1318
  161. package/dist/bundle/nobleChunk-CQ4ENyKh.js +0 -3769
  162. package/dist/bundle/web3Chunk-BcwDKvjL.js +0 -517
  163. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -0
  164. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -0
  165. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -0
  166. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -0
  167. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -0
  168. /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
  169. /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
  170. /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
  171. /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
  172. /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
  173. /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
  174. /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
  175. /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
  176. /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
  177. /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
  178. /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
  179. /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
  180. /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
  181. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -0
  182. /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
  183. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -0
  184. /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
  185. /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
  186. /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
  187. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -0
  188. /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
  189. /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
  190. /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
  191. /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
  192. /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
  193. /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
  194. /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
  195. /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
  196. /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
  197. /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
  198. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -0
  199. /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
  200. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -0
  201. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -0
  202. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -0
  203. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -0
  204. /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
  205. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -0
  206. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -0
  207. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -0
  208. /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
  209. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -0
  210. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -0
  211. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -0
  212. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -0
  213. /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
  214. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -0
  215. /package/.rollup.cache/home/{runner/work/captcha → chris/dev/prosopo/captcha-private}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -0
  216. /package/dist/{bundle/components.d.ts → components.d.ts} +0 -0
  217. /package/dist/{bundle/index.d.ts → index.d.ts} +0 -0
  218. /package/dist/{bundle/tests → tests}/util/captchaType.test.d.ts +0 -0
  219. /package/dist/{bundle/tests → tests}/util/config.test.d.ts +0 -0
  220. /package/dist/{bundle/tests → tests}/util/renderLogic.test.d.ts +0 -0
  221. /package/dist/{bundle/util → util}/captcha/captchaComponentProvider.d.ts +0 -0
  222. /package/dist/{bundle/util → util}/captcha/captchaComponentsList.d.ts +0 -0
  223. /package/dist/{bundle/util → util}/captcha/captchaType.d.ts +0 -0
  224. /package/dist/{bundle/util → util}/captcha/components/frictionlessCaptcha.d.ts +0 -0
  225. /package/dist/{bundle/util → util}/captcha/components/imageCaptcha.d.ts +0 -0
  226. /package/dist/{bundle/util → util}/captcha/components/powCaptcha.d.ts +0 -0
  227. /package/dist/{bundle/util → util}/config.d.ts +0 -0
  228. /package/dist/{bundle/util → util}/configCreator.d.ts +0 -0
  229. /package/dist/{bundle/util → util}/language.d.ts +0 -0
  230. /package/dist/{bundle/util → util}/timeout.d.ts +0 -0
  231. /package/dist/{bundle/util → util}/widgetFactory.d.ts +0 -0
  232. /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 L } from "./zodChunk-wTu9ZHzV.js";
2
- import { b as y } from "./utilCryptoChunk-BKe3CKqn.js";
3
- const f = "info", m = "debug", d = "trace", v = "warn", b = "error", k = "fatal";
4
- L.enum([
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 x = {
13
- [d]: 5,
11
+ const P = {
12
+ [b]: 5,
14
13
  [m]: 4,
15
- [f]: 3,
16
- [v]: 2,
17
- [b]: 1,
18
- [k]: 0
14
+ [h]: 3,
15
+ [k]: 2,
16
+ [y]: 1,
17
+ [w]: 0
19
18
  };
20
- function P(a, t) {
19
+ function S(s, t) {
21
20
  const e = new E(t);
22
- return e.setLogLevel(a), e;
21
+ return e.setLogLevel(s), e;
23
22
  }
24
- const S = typeof window < "u" && typeof window.document < "u", g = "json", D = "plain";
25
- L.enum([g, D]);
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 = x) {
28
- this.scope = t, this.levelMap = e, this.pretty = 0, this.printStack = !1, this.format = g, this.level = f, this.levelNum = this.levelMap[this.level];
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 !== g)
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 s = e.message || e.msg || "";
64
+ const a = e.message || e.msg || "";
66
65
  return e.message && e.msg && (r.msg = e.msg), {
67
- msg: s,
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 s = (/* @__PURE__ */ new Date()).toISOString();
75
- let { data: c, msg: i, err: o } = e(), l, h;
76
- if (o)
77
- if (o instanceof Error || typeof o == "object") {
78
- const u = this.unpackError(o);
79
- l = u.msg, h = u.data;
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
- l = String(o);
80
+ o = String(i);
82
81
  this.defaultData && (c = { ...this.defaultData, ...c });
83
- const n = { scope: this.scope, ts: s, level: this.level };
84
- if (c && (n.data = c), i && (n.msg = i), l && (n.err = l), h && (n.errData = h), S)
85
- i || l ? t(i || l, n) : t(n);
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 u = JSON.stringify(n, null, this.pretty);
88
- t(u);
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, f);
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, d);
97
+ this.print(console.trace.bind(console), t, b);
99
98
  }
100
99
  warn(t) {
101
- this.print(console.warn.bind(console), t, v);
100
+ this.print(console.warn.bind(console), t, k);
102
101
  }
103
102
  error(t) {
104
- this.print(console.error.bind(console), t, b);
103
+ this.print(console.error.bind(console), t, y);
105
104
  }
106
105
  fatal(t) {
107
- this.print(console.error.bind(console), t, k);
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 N = { t: (a) => a };
135
- class w extends Error {
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) || P("info", import.meta.url), s = (e == null ? void 0 : e.logLevel) || "error", c = (e == null ? void 0 : e.i18n) || N;
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, s, e == null ? void 0 : e.name);
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 s = { error: this.message, context: this.context }, c = { errorType: r || this.name, errorParams: s };
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 J extends w {
161
+ class A extends L {
153
162
  constructor(t, e) {
154
- const r = (e == null ? void 0 : e.name) || "ProsopoError", s = { ...e, name: r };
155
- super(t, s);
163
+ const r = (e == null ? void 0 : e.name) || "ProsopoError", a = { ...e, name: r };
164
+ super(t, a);
156
165
  }
157
166
  }
158
- class K extends w {
167
+ class F extends L {
159
168
  constructor(t, e) {
160
- const r = (e == null ? void 0 : e.name) || "ProsopoEnvError", s = { ...e, name: r };
161
- super(t, s);
169
+ const r = (e == null ? void 0 : e.name) || "ProsopoEnvError", a = { ...e, name: r };
170
+ super(t, a);
162
171
  }
163
172
  }
164
- class R extends w {
173
+ class K extends L {
165
174
  constructor(t, e) {
166
- const r = (e == null ? void 0 : e.name) || "ProsopoDatasetError", s = { ...e, name: r };
167
- super(t, s);
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
- J as P,
182
- K as a,
183
- R as b,
184
- C as c,
185
- O as h
180
+ A as P,
181
+ F as a,
182
+ K as b
186
183
  };