@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
@@ -1,5 +1,5 @@
1
1
  import { g as Dc } from "./bnChunk-DRlDxTFg.js";
2
- import { r as _a } from "./web2Chunk-Cqw91v-J.js";
2
+ import { r as _a } from "./web2Chunk-BGN6Hv-C.js";
3
3
  var Co = { exports: {} }, ve = {}, xo = { exports: {} }, _o = {};
4
4
  (function(e) {
5
5
  function t(C, z) {
@@ -626,13 +626,13 @@ function Oo(e) {
626
626
  function Ql(e, t) {
627
627
  return e == null || e === "http://www.w3.org/1999/xhtml" ? Oo(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e;
628
628
  }
629
- var Jn, Fo = function(e) {
629
+ var Jn, Fo = (function(e) {
630
630
  return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, n, r, l) {
631
631
  MSApp.execUnsafeLocalFunction(function() {
632
632
  return e(t, n, r, l);
633
633
  });
634
634
  } : e;
635
- }(function(e, t) {
635
+ })(function(e, t) {
636
636
  if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in e) e.innerHTML = t;
637
637
  else {
638
638
  for (Jn = Jn || document.createElement("div"), Jn.innerHTML = "<svg>" + t.valueOf().toString() + "</svg>", t = Jn.firstChild; e.firstChild; ) e.removeChild(e.firstChild);
@@ -1,13 +1,13 @@
1
- import { A, a as _, C as W, l as $ } from "./web2Chunk-Cqw91v-J.js";
1
+ import { A as S, a as v, C as W, l as $ } from "./web2Chunk-BGN6Hv-C.js";
2
2
  function N(e) {
3
3
  const t = e.getRootNode();
4
4
  return (t instanceof ShadowRoot ? t.host : e).closest("form");
5
5
  }
6
- const l = () => {
6
+ const r = () => {
7
7
  Array.from(
8
- document.getElementsByName(A.procaptchaResponse)
8
+ document.getElementsByName(S.procaptchaResponse)
9
9
  ).map((t) => t.remove());
10
- }, u = (e) => {
10
+ }, f = (e) => {
11
11
  const t = window[e.replace("window.", "")];
12
12
  if (typeof t != "function")
13
13
  throw new Error(
@@ -15,18 +15,18 @@ const l = () => {
15
15
  );
16
16
  return t;
17
17
  }, M = (e) => ({
18
- onHuman: (t) => I(t, e),
18
+ onHuman: (t) => D(t, e),
19
19
  onChallengeExpired: () => {
20
- l();
20
+ r();
21
21
  },
22
22
  onExtensionNotFound: () => {
23
23
  console.error("Extension not found");
24
24
  },
25
25
  onExpired: () => {
26
- l();
26
+ r();
27
27
  },
28
28
  onError: (t) => {
29
- l(), console.error(t);
29
+ r(), console.error(t);
30
30
  },
31
31
  onClose: () => {
32
32
  },
@@ -36,104 +36,104 @@ const l = () => {
36
36
  alert("Captcha challenge failed. Please try again");
37
37
  },
38
38
  onReset: () => {
39
- l();
39
+ r();
40
40
  },
41
41
  onReload: () => {
42
42
  }
43
- }), s = (e, t, o) => {
43
+ }), d = (e, t, o) => {
44
44
  const a = t.getAttribute(`data-${e}`);
45
45
  if (a) {
46
- const n = u(a);
46
+ const n = f(a);
47
47
  if (n)
48
48
  return n;
49
49
  }
50
50
  if (typeof o == "function")
51
51
  return o;
52
52
  if (typeof o == "string")
53
- return u(o);
53
+ return f(o);
54
54
  };
55
- function H(e, t, o) {
56
- const a = s(
55
+ function P(e, t, o) {
56
+ const a = d(
57
57
  "callback",
58
58
  o,
59
59
  e == null ? void 0 : e.callback
60
60
  );
61
- a && (t.onHuman = (f) => {
62
- I(f, o), a(f);
61
+ a && (t.onHuman = (l) => {
62
+ D(l, o), a(l);
63
63
  });
64
- const n = s(
64
+ const n = d(
65
65
  "chalexpired-callback",
66
66
  o,
67
67
  e == null ? void 0 : e["chalexpired-callback"]
68
68
  );
69
69
  n && (t.onChallengeExpired = () => {
70
- l(), n();
70
+ r(), n();
71
71
  });
72
- const c = s(
72
+ const c = d(
73
73
  "expired-callback",
74
74
  o,
75
75
  e == null ? void 0 : e["expired-callback"]
76
76
  );
77
77
  c && (t.onExpired = () => {
78
- l(), c();
78
+ r(), c();
79
79
  });
80
- const i = s(
80
+ const i = d(
81
81
  "error-callback",
82
82
  o,
83
83
  e == null ? void 0 : e["error-callback"]
84
84
  );
85
- i && (t.onError = (f) => {
86
- l(), i(f);
85
+ i && (t.onError = (l) => {
86
+ r(), i(l);
87
87
  });
88
- const r = s(
88
+ const s = d(
89
89
  "close-callback",
90
90
  o,
91
91
  e == null ? void 0 : e["close-callback"]
92
92
  );
93
- r && (t.onClose = () => {
94
- r();
93
+ s && (t.onClose = () => {
94
+ s();
95
95
  });
96
- const y = s(
96
+ const p = d(
97
97
  "open-callback",
98
98
  o,
99
99
  e == null ? void 0 : e["open-callback"]
100
100
  );
101
- y && (t.onOpen = () => {
102
- y();
101
+ p && (t.onOpen = () => {
102
+ p();
103
103
  });
104
- const w = s(
104
+ const y = d(
105
105
  "failed-callback",
106
106
  o,
107
107
  e == null ? void 0 : e["failed-callback"]
108
108
  );
109
- w && (t.onFailed = () => {
110
- w();
109
+ y && (t.onFailed = () => {
110
+ y();
111
111
  });
112
- const h = s(
112
+ const w = d(
113
113
  "reset-callback",
114
114
  o,
115
115
  e == null ? void 0 : e["reset-callback"]
116
116
  );
117
- h && (t.onReset = () => {
118
- l(), h();
117
+ w && (t.onReset = () => {
118
+ r(), w();
119
119
  });
120
120
  }
121
- const I = (e, t) => {
122
- if (l(), t) {
121
+ const D = (e, t) => {
122
+ if (r(), t) {
123
123
  const o = N(t);
124
124
  if (!o) {
125
125
  console.error("Parent form not found for the element:", t);
126
126
  return;
127
127
  }
128
128
  const a = document.createElement("input");
129
- a.type = "hidden", a.name = A.procaptchaResponse, a.value = e, o.appendChild(a);
129
+ a.type = "hidden", a.name = S.procaptchaResponse, a.value = e, o.appendChild(a);
130
130
  }
131
- }, P = "https://prosopo.io", T = "Visit prosopo.io to learn more about the service and its accessibility options.", U = 74, x = 80, F = "80px", v = "302px", G = "8px", j = "2px", z = "1px solid", E = "checkbox__loading-spinner";
131
+ }, H = "https://prosopo.io", T = "Visit prosopo.io to learn more about the service and its accessibility options.", U = 74, x = 80, F = "80px", _ = "302px", G = "8px", j = "2px", z = "1px solid", E = "checkbox__loading-spinner";
132
132
  function B(e) {
133
133
  const t = document.createElement("div");
134
- return t.className = "checkbox", t.innerHTML = X(e) + q, t;
134
+ return t.className = "checkbox", t.innerHTML = X(e) + K, t;
135
135
  }
136
- const K = (e) => (e.shadowRoot || e).querySelector(".checkbox__content"), q = `
136
+ const q = (e) => (e.shadowRoot || e).querySelector(".checkbox__content"), K = `
137
137
  <div class="checkbox__outer">
138
138
  <div class="checkbox__wrapper">
139
139
  <div class="checkbox__inner">
@@ -236,7 +236,7 @@ const Y = `
236
236
  `;
237
237
  function Z(e) {
238
238
  return `
239
- <a href="${P}?utm_campaign=widget" tabindex="0" target="_blank" role="button"
239
+ <a href="${H}?utm_campaign=widget" tabindex="0" target="_blank" role="button"
240
240
  aria-label="${T}"
241
241
  style="text-decoration: none;">
242
242
  <div class="prosopo-logo">
@@ -291,7 +291,7 @@ function O(e) {
291
291
  }
292
292
 
293
293
  .widget__outer {
294
- max-width: ${v};
294
+ max-width: ${_};
295
295
  min-height: 100%;
296
296
  overflow-x: auto;
297
297
  width: 100%;
@@ -318,7 +318,7 @@ function O(e) {
318
318
  }
319
319
 
320
320
  .widget__dimensions {
321
- max-width: ${v};
321
+ max-width: ${_};
322
322
  min-height: ${x}px;
323
323
  }
324
324
 
@@ -358,15 +358,15 @@ const ne = (e) => `
358
358
  ${e}
359
359
  </style>
360
360
  `, ce = (e) => {
361
- e.style.display = "flex", e.style.flexDirection = "column", e.style.width = "100%", e.style.maxWidth = v;
361
+ e.style.display = "flex", e.style.flexDirection = "column", e.style.width = "100%", e.style.maxWidth = _;
362
362
  };
363
363
  function ie(e, t, o) {
364
364
  const a = J(t), n = ae(o);
365
365
  le(n).appendChild(a), e.innerHTML = "", e.appendChild(n);
366
- const i = K(n);
366
+ const i = q(n);
367
367
  if (!(i instanceof HTMLElement))
368
368
  throw new Error("Fail to initialize widget: interactive area is not found");
369
- return i;
369
+ return { widgetInteractiveArea: i, webComponent: n };
370
370
  }
371
371
  const le = (e) => e.shadowRoot || e, g = {
372
372
  0: "#fff",
@@ -433,7 +433,7 @@ const le = (e) => e.shadowRoot || e, g = {
433
433
  }
434
434
  };
435
435
  function R(e) {
436
- return Object.values(W).find((a) => a === _(e, 0).getAttribute("data-captcha-type")) || "frictionless";
436
+ return Object.values(W).find((a) => a === v(e, 0).getAttribute("data-captcha-type")) || "frictionless";
437
437
  }
438
438
  const k = (e) => document.querySelector('script[src*="'.concat(e, '"]')), de = (e) => {
439
439
  const t = k(e);
@@ -446,7 +446,7 @@ const k = (e) => document.querySelector('script[src*="'.concat(e, '"]')), de = (
446
446
  }
447
447
  return { onloadUrlCallback: void 0, renderExplicit: void 0 };
448
448
  };
449
- class he {
449
+ class pe {
450
450
  constructor(t) {
451
451
  this.widgetThemeResolver = t, this.captchaRenderer = null, this._i18n = null;
452
452
  }
@@ -458,34 +458,36 @@ class he {
458
458
  async createWidgets(t, o, a = !0, n = !1) {
459
459
  return Promise.all(t.map((c) => {
460
460
  const i = M(c);
461
- return H(o, i, c), this.createWidget(c, o, i, a, n);
461
+ return P(o, i, c), this.createWidget(c, o, i, a, n);
462
462
  }));
463
463
  }
464
464
  async createWidget(t, o, a, n = !0, c = !1) {
465
465
  o.theme = this.widgetThemeResolver.resolveWidgetTheme(t, o);
466
466
  const i = o.theme === "light" ? re : se;
467
- let r;
467
+ let s, p;
468
468
  if (c) {
469
- const h = document.createElement("div");
470
- t.appendChild(h), r = h;
471
- } else
472
- r = ie(t, i, "prosopo-procaptcha");
469
+ const l = document.createElement("div");
470
+ t.appendChild(l), s = l, p = l;
471
+ } else {
472
+ const l = ie(t, i, "prosopo-procaptcha");
473
+ s = l.widgetInteractiveArea, p = l.webComponent;
474
+ }
473
475
  return (await this.getCaptchaRenderer()).renderCaptcha({
474
476
  identifierPrefix: "procaptcha-",
475
477
  emotionCacheKey: "procaptcha",
476
478
  webComponentTag: "prosopo-procaptcha",
477
479
  defaultCaptchaType: W.frictionless
478
- }, r, o, a, n, this.i18n, c);
480
+ }, s, o, a, n, this.i18n, c, p);
479
481
  }
480
482
  async getCaptchaRenderer() {
481
483
  return this._i18n === null && (this._i18n = await $()), this.captchaRenderer === null && (this.captchaRenderer = await this.createCaptchaRenderer()), this.captchaRenderer;
482
484
  }
483
485
  async createCaptchaRenderer() {
484
- const t = (await import("./captchaRenderer-CqnUYyKY.js")).CaptchaRenderer, o = (await import("./captchaComponentProvider-BGEAkC9Y.js").then((a) => a.d)).CaptchaComponentProvider;
486
+ const t = (await import("./captchaRenderer-BV-WgbEA.js")).CaptchaRenderer, o = (await import("./captchaComponentProvider-D02Su4nd.js").then((a) => a.d)).CaptchaComponentProvider;
485
487
  return new t(new o());
486
488
  }
487
489
  }
488
- class pe {
490
+ class he {
489
491
  constructor() {
490
492
  this.themesSet = /* @__PURE__ */ new Set(["light", "dark"]), this.defaultTheme = "light";
491
493
  }
@@ -498,20 +500,20 @@ class pe {
498
500
  }
499
501
  }
500
502
  const C = "procaptcha.bundle.js";
501
- let d = [];
502
- const b = new he(new pe()), fe = "procaptcha:execute", S = async () => {
503
+ let h = [];
504
+ const b = new pe(new he()), ue = "procaptcha:execute", fe = "procaptcha:ready", A = async () => {
503
505
  const e = Array.from(document.getElementsByClassName("procaptcha")).filter((o) => o.tagName.toLowerCase() !== "button");
504
506
  if (e.length) {
505
- const o = _(e, 0).getAttribute("data-sitekey"), a = _(e, 0).getAttribute("data-web3");
507
+ const o = v(e, 0).getAttribute("data-sitekey"), a = v(e, 0).getAttribute("data-web3");
506
508
  if (!o) {
507
- console.error("No siteKey found");
509
+ console.error("No site key found");
508
510
  return;
509
511
  }
510
512
  const n = R(e), c = await b.createWidgets(e, {
511
513
  captchaType: n,
512
514
  siteKey: o
513
515
  }, a !== "true");
514
- d.push(...c);
516
+ h.push(...c);
515
517
  }
516
518
  const t = Array.from(document.getElementsByClassName("procaptcha")).filter((o) => o.tagName.toLowerCase() === "button");
517
519
  if (t.length)
@@ -521,33 +523,33 @@ const b = new he(new pe()), fe = "procaptcha:execute", S = async () => {
521
523
  siteKey: a,
522
524
  callback: n
523
525
  }, !0, !0);
524
- d.push(...i), o.addEventListener("click", async (r) => {
525
- r.preventDefault(), D();
526
+ h.push(...i), o.addEventListener("click", async (s) => {
527
+ s.preventDefault(), I();
526
528
  });
527
529
  }
528
- }, ue = async (e, t) => {
530
+ }, ge = async (e, t) => {
529
531
  const o = Object.prototype.hasOwnProperty.call(t, "size") && t.size === "invisible", a = !t.web3;
530
532
  if (o || e.tagName.toLowerCase() === "button") {
531
533
  const c = await b.createWidgets([e], t, a, !0);
532
- d.push(...c);
534
+ h.push(...c);
533
535
  return;
534
536
  }
535
537
  const n = await b.createWidgets([e], t, a, !1);
536
- d.push(...n);
538
+ h.push(...n);
537
539
  };
538
- function p(e) {
540
+ function u(e) {
539
541
  document && document.readyState !== "loading" ? e() : document.addEventListener("DOMContentLoaded", () => {
540
542
  e();
541
543
  });
542
544
  }
543
- const D = () => {
545
+ const I = () => {
544
546
  var e;
545
- const t = ge();
547
+ const t = me();
546
548
  if (t.length === 0) {
547
549
  console.error("No Procaptcha containers found for execution");
548
550
  return;
549
551
  }
550
- const o = new CustomEvent(fe, {
552
+ const o = new CustomEvent(ue, {
551
553
  detail: {
552
554
  containerId: ((e = t[0]) == null ? void 0 : e.id) || "procaptcha-container",
553
555
  containerCount: t.length,
@@ -558,7 +560,7 @@ const D = () => {
558
560
  });
559
561
  document.dispatchEvent(o);
560
562
  };
561
- function ge() {
563
+ function me() {
562
564
  const e = [], t = Array.from(document.querySelectorAll('[data-size="invisible"]'));
563
565
  e.push(...t);
564
566
  const o = Array.from(document.querySelectorAll('#procaptcha-container, [id$="-procaptcha-container"]')), a = Array.from(document.getElementsByClassName("p-procaptcha"));
@@ -572,28 +574,36 @@ const L = () => {
572
574
  const { onloadUrlCallback: o, renderExplicit: a } = de(C);
573
575
  let n = !1;
574
576
  if (a !== "explicit" && ((e = k(C)) == null || e.addEventListener("load", () => {
575
- p(S), n = !0;
576
- }), document.readyState === "complete" && !n && p(S)), o && ((t = k(C)) == null || t.addEventListener("load", () => {
577
- const c = u(o);
578
- p(c);
577
+ u(A), n = !0;
578
+ }), document.readyState === "complete" && !n && u(A)), o && ((t = k(C)) == null || t.addEventListener("load", () => {
579
+ const c = f(o);
580
+ u(c);
579
581
  }), document.readyState === "complete" && !n)) {
580
- const c = u(o);
581
- p(c);
582
+ const c = f(o);
583
+ u(c);
582
584
  }
583
- }, me = () => {
584
- for (const e of d)
585
+ }, be = () => {
586
+ for (const e of h)
585
587
  e.unmount();
586
- d = [], L();
588
+ h = [], L();
587
589
  };
588
- window.procaptcha = { ready: p, render: ue, reset: me, execute: D };
590
+ window.procaptcha = { ready: u, render: ge, reset: be, execute: I };
591
+ const ye = new CustomEvent(fe, {
592
+ detail: {
593
+ timestamp: Date.now()
594
+ },
595
+ bubbles: !0,
596
+ cancelable: !1
597
+ });
598
+ document.dispatchEvent(ye);
589
599
  L();
590
600
  export {
591
601
  E as W,
592
- p as a,
593
- me as b,
602
+ u as a,
603
+ be as b,
594
604
  se as d,
595
- D as e,
605
+ I as e,
596
606
  M as g,
597
607
  re as l,
598
- ue as r
608
+ ge as r
599
609
  };