@prosopo/procaptcha-bundle 3.2.2 → 3.2.9

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 (262) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/dist/cjs/util/captcha/captchaComponentProvider.cjs +1 -1
  3. package/dist/cjs/util/captcha/captchaRenderer.cjs +1 -1
  4. package/dist/cjs/util/captcha/components/frictionlessCaptcha.cjs +1 -1
  5. package/dist/cjs/util/captcha/components/imageCaptcha.cjs +1 -1
  6. package/dist/cjs/util/captcha/components/powCaptcha.cjs +1 -1
  7. package/dist/util/captcha/captchaComponentProvider.js +1 -1
  8. package/dist/util/captcha/captchaRenderer.js +1 -1
  9. package/dist/util/captcha/components/frictionlessCaptcha.js +1 -1
  10. package/dist/util/captcha/components/imageCaptcha.js +1 -1
  11. package/dist/util/captcha/components/powCaptcha.js +1 -1
  12. package/package.json +13 -13
  13. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -5
  14. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -1
  15. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -5
  16. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -1
  17. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -16
  18. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +0 -1
  19. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js +0 -144
  20. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -1
  21. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts +0 -2
  22. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +0 -1
  23. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js +0 -32
  24. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/procaptchaReady.unit.test.js.map +0 -1
  25. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts +0 -2
  26. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -1
  27. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +0 -36
  28. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +0 -1
  29. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts +0 -2
  30. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts.map +0 -1
  31. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js +0 -69
  32. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js.map +0 -1
  33. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts +0 -2
  34. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -1
  35. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +0 -136
  36. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +0 -1
  37. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -8
  38. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +0 -1
  39. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +0 -15
  40. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +0 -1
  41. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -6
  42. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -1
  43. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -11
  44. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +0 -1
  45. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts +0 -10
  46. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +0 -1
  47. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -2
  48. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +0 -1
  49. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -24
  50. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +0 -1
  51. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +0 -49
  52. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +0 -1
  53. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts +0 -3
  54. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +0 -1
  55. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -8
  56. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +0 -1
  57. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts +0 -4
  58. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
  59. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js +0 -14
  60. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +0 -1
  61. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts +0 -4
  62. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -1
  63. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js +0 -9
  64. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +0 -1
  65. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts +0 -4
  66. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -1
  67. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js +0 -9
  68. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +0 -1
  69. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -6
  70. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +0 -1
  71. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -13
  72. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -1
  73. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -5
  74. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +0 -1
  75. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -23
  76. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +0 -1
  77. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -3
  78. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts.map +0 -1
  79. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -17
  80. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -1
  81. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -3
  82. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts.map +0 -1
  83. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -9
  84. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -1
  85. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -18
  86. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +0 -1
  87. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +0 -66
  88. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +0 -1
  89. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -9
  90. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -1
  91. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -19
  92. package/.rollup.cache/home/chris/dev/prosopo/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -1
  93. package/coverage/base.css +0 -224
  94. package/coverage/block-navigation.js +0 -87
  95. package/coverage/clover.xml +0 -599
  96. package/coverage/coverage-final.json +0 -17
  97. package/coverage/favicon.png +0 -0
  98. package/coverage/index.html +0 -161
  99. package/coverage/prettify.css +0 -1
  100. package/coverage/prettify.js +0 -2
  101. package/coverage/sort-arrow-sprite.png +0 -0
  102. package/coverage/sorter.js +0 -210
  103. package/coverage/src/components.ts.html +0 -139
  104. package/coverage/src/index.html +0 -131
  105. package/coverage/src/index.ts.html +0 -844
  106. package/coverage/src/util/captcha/captchaComponentProvider.tsx.html +0 -214
  107. package/coverage/src/util/captcha/captchaComponentsList.ts.html +0 -178
  108. package/coverage/src/util/captcha/captchaProps.ts.html +0 -166
  109. package/coverage/src/util/captcha/captchaRenderer.tsx.html +0 -481
  110. package/coverage/src/util/captcha/captchaType.ts.html +0 -181
  111. package/coverage/src/util/captcha/components/frictionlessCaptcha.tsx.html +0 -205
  112. package/coverage/src/util/captcha/components/imageCaptcha.tsx.html +0 -178
  113. package/coverage/src/util/captcha/components/index.html +0 -146
  114. package/coverage/src/util/captcha/components/powCaptcha.tsx.html +0 -178
  115. package/coverage/src/util/captcha/index.html +0 -176
  116. package/coverage/src/util/config.ts.html +0 -172
  117. package/coverage/src/util/configCreator.ts.html +0 -241
  118. package/coverage/src/util/index.html +0 -191
  119. package/coverage/src/util/language.ts.html +0 -244
  120. package/coverage/src/util/timeout.ts.html +0 -214
  121. package/coverage/src/util/widgetFactory.ts.html +0 -532
  122. package/coverage/src/util/widgetThemeResolver.ts.html +0 -205
  123. package/dist/bundle/ProcaptchaWidget-CuMH13Bh.js +0 -1012
  124. package/dist/bundle/ProcaptchaWidget-DsflBBn_.js +0 -187
  125. package/dist/bundle/Signer-DP9drQ55.js +0 -23
  126. package/dist/bundle/bnChunk-DRlDxTFg.js +0 -1137
  127. package/dist/bundle/browser-ponyfill-DXriyH6D.js +0 -339
  128. package/dist/bundle/builder-ByZ5z580.js +0 -46
  129. package/dist/bundle/captchaComponentProvider-D02Su4nd.js +0 -1013
  130. package/dist/bundle/captchaRenderer-BV-WgbEA.js +0 -70
  131. package/dist/bundle/commonChunk-PB26mndo.js +0 -183
  132. package/dist/bundle/components.d.ts.map +0 -1
  133. package/dist/bundle/emotion-element-c39617d8.browser.esm-DG1XhEZ1.js +0 -916
  134. package/dist/bundle/fp.esm-DYWeNGcH.js +0 -1654
  135. package/dist/bundle/index-B9KeZfID.js +0 -5416
  136. package/dist/bundle/index-Calnfnac.js +0 -609
  137. package/dist/bundle/index-DU371vQ0.js +0 -1634
  138. package/dist/bundle/index.d.ts.map +0 -1
  139. package/dist/bundle/locales/ar/translation.json +0 -57
  140. package/dist/bundle/locales/az/translation.json +0 -57
  141. package/dist/bundle/locales/cs/translation.json +0 -57
  142. package/dist/bundle/locales/de/translation.json +0 -57
  143. package/dist/bundle/locales/el/translation.json +0 -57
  144. package/dist/bundle/locales/en/translation.json +0 -57
  145. package/dist/bundle/locales/es/translation.json +0 -57
  146. package/dist/bundle/locales/fi/translation.json +0 -57
  147. package/dist/bundle/locales/fr/translation.json +0 -57
  148. package/dist/bundle/locales/hi/translation.json +0 -57
  149. package/dist/bundle/locales/hu/translation.json +0 -57
  150. package/dist/bundle/locales/id/translation.json +0 -57
  151. package/dist/bundle/locales/it/translation.json +0 -57
  152. package/dist/bundle/locales/ja/translation.json +0 -57
  153. package/dist/bundle/locales/jv/translation.json +0 -57
  154. package/dist/bundle/locales/ko/translation.json +0 -57
  155. package/dist/bundle/locales/ml/translation.json +0 -57
  156. package/dist/bundle/locales/ms/translation.json +0 -57
  157. package/dist/bundle/locales/nl/translation.json +0 -57
  158. package/dist/bundle/locales/no/translation.json +0 -57
  159. package/dist/bundle/locales/pl/translation.json +0 -57
  160. package/dist/bundle/locales/pt/translation.json +0 -57
  161. package/dist/bundle/locales/pt-BR/translation.json +0 -57
  162. package/dist/bundle/locales/ro/translation.json +0 -57
  163. package/dist/bundle/locales/ru/translation.json +0 -57
  164. package/dist/bundle/locales/sr/translation.json +0 -57
  165. package/dist/bundle/locales/sv/translation.json +0 -57
  166. package/dist/bundle/locales/th/translation.json +0 -57
  167. package/dist/bundle/locales/tr/translation.json +0 -57
  168. package/dist/bundle/locales/uk/translation.json +0 -57
  169. package/dist/bundle/locales/vi/translation.json +0 -57
  170. package/dist/bundle/locales/zh-CN/translation.json +0 -57
  171. package/dist/bundle/nobleChunk-Bbltwf44.js +0 -2728
  172. package/dist/bundle/procaptcha.bundle.js +0 -8
  173. package/dist/bundle/tests/procaptchaReady.unit.test.d.ts.map +0 -1
  174. package/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -1
  175. package/dist/bundle/tests/util/config.test.d.ts.map +0 -1
  176. package/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -1
  177. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +0 -1
  178. package/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -1
  179. package/dist/bundle/util/captcha/captchaProps.d.ts.map +0 -1
  180. package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +0 -1
  181. package/dist/bundle/util/captcha/captchaType.d.ts.map +0 -1
  182. package/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
  183. package/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -1
  184. package/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -1
  185. package/dist/bundle/util/config.d.ts.map +0 -1
  186. package/dist/bundle/util/configCreator.d.ts.map +0 -1
  187. package/dist/bundle/util/language.d.ts.map +0 -1
  188. package/dist/bundle/util/timeout.d.ts.map +0 -1
  189. package/dist/bundle/util/widgetFactory.d.ts.map +0 -1
  190. package/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -1
  191. package/dist/bundle/utilChunk-WRTGKXbU.js +0 -324
  192. package/dist/bundle/utilCryptoChunk-B4ZdOwus.js +0 -1236
  193. package/dist/bundle/web2Chunk-BGN6Hv-C.js +0 -3972
  194. package/dist/bundle/web3Chunk-BIX2T9Eo.js +0 -525
  195. package/dist/bundle/zodChunk-CaINhWMQ.js +0 -2882
  196. package/dist/components.d.ts +0 -5
  197. package/dist/components.d.ts.map +0 -1
  198. package/dist/components.js +0 -5
  199. package/dist/components.js.map +0 -1
  200. package/dist/index.d.ts +0 -16
  201. package/dist/index.d.ts.map +0 -1
  202. package/dist/index.js.map +0 -1
  203. package/dist/tests/procaptchaReady.unit.test.d.ts +0 -2
  204. package/dist/tests/procaptchaReady.unit.test.d.ts.map +0 -1
  205. package/dist/tests/procaptchaReady.unit.test.js +0 -32
  206. package/dist/tests/procaptchaReady.unit.test.js.map +0 -1
  207. package/dist/tests/util/captchaType.test.d.ts +0 -2
  208. package/dist/tests/util/captchaType.test.d.ts.map +0 -1
  209. package/dist/tests/util/captchaType.test.js +0 -36
  210. package/dist/tests/util/captchaType.test.js.map +0 -1
  211. package/dist/tests/util/config.test.d.ts +0 -2
  212. package/dist/tests/util/config.test.d.ts.map +0 -1
  213. package/dist/tests/util/config.test.js +0 -69
  214. package/dist/tests/util/config.test.js.map +0 -1
  215. package/dist/tests/util/renderLogic.test.d.ts +0 -2
  216. package/dist/tests/util/renderLogic.test.d.ts.map +0 -1
  217. package/dist/tests/util/renderLogic.test.js +0 -136
  218. package/dist/tests/util/renderLogic.test.js.map +0 -1
  219. package/dist/util/captcha/captchaComponentProvider.d.ts +0 -8
  220. package/dist/util/captcha/captchaComponentProvider.d.ts.map +0 -1
  221. package/dist/util/captcha/captchaComponentProvider.js.map +0 -1
  222. package/dist/util/captcha/captchaComponentsList.d.ts +0 -6
  223. package/dist/util/captcha/captchaComponentsList.d.ts.map +0 -1
  224. package/dist/util/captcha/captchaComponentsList.js.map +0 -1
  225. package/dist/util/captcha/captchaProps.d.ts +0 -10
  226. package/dist/util/captcha/captchaProps.d.ts.map +0 -1
  227. package/dist/util/captcha/captchaProps.js +0 -2
  228. package/dist/util/captcha/captchaProps.js.map +0 -1
  229. package/dist/util/captcha/captchaRenderer.d.ts +0 -24
  230. package/dist/util/captcha/captchaRenderer.d.ts.map +0 -1
  231. package/dist/util/captcha/captchaRenderer.js.map +0 -1
  232. package/dist/util/captcha/captchaType.d.ts +0 -3
  233. package/dist/util/captcha/captchaType.d.ts.map +0 -1
  234. package/dist/util/captcha/captchaType.js.map +0 -1
  235. package/dist/util/captcha/components/frictionlessCaptcha.d.ts +0 -4
  236. package/dist/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
  237. package/dist/util/captcha/components/frictionlessCaptcha.js.map +0 -1
  238. package/dist/util/captcha/components/imageCaptcha.d.ts +0 -4
  239. package/dist/util/captcha/components/imageCaptcha.d.ts.map +0 -1
  240. package/dist/util/captcha/components/imageCaptcha.js.map +0 -1
  241. package/dist/util/captcha/components/powCaptcha.d.ts +0 -4
  242. package/dist/util/captcha/components/powCaptcha.d.ts.map +0 -1
  243. package/dist/util/captcha/components/powCaptcha.js.map +0 -1
  244. package/dist/util/config.d.ts +0 -6
  245. package/dist/util/config.d.ts.map +0 -1
  246. package/dist/util/config.js.map +0 -1
  247. package/dist/util/configCreator.d.ts +0 -5
  248. package/dist/util/configCreator.d.ts.map +0 -1
  249. package/dist/util/configCreator.js.map +0 -1
  250. package/dist/util/language.d.ts +0 -3
  251. package/dist/util/language.d.ts.map +0 -1
  252. package/dist/util/language.js.map +0 -1
  253. package/dist/util/timeout.d.ts +0 -3
  254. package/dist/util/timeout.d.ts.map +0 -1
  255. package/dist/util/timeout.js.map +0 -1
  256. package/dist/util/widgetFactory.d.ts +0 -18
  257. package/dist/util/widgetFactory.d.ts.map +0 -1
  258. package/dist/util/widgetFactory.js.map +0 -1
  259. package/dist/util/widgetThemeResolver.d.ts +0 -9
  260. package/dist/util/widgetThemeResolver.d.ts.map +0 -1
  261. package/dist/util/widgetThemeResolver.js.map +0 -1
  262. package/stats.html +0 -4949
package/CHANGELOG.md CHANGED
@@ -1,5 +1,96 @@
1
1
  # @prosopo/procaptcha-bundle
2
2
 
3
+ ## 3.2.9
4
+ ### Patch Changes
5
+
6
+ - 93d92a7: little bump for publish all
7
+ - Updated dependencies [93d92a7]
8
+ - @prosopo/dotenv@3.0.30
9
+ - @prosopo/locale@3.1.25
10
+ - @prosopo/procaptcha-common@2.9.18
11
+ - @prosopo/procaptcha-frictionless@2.8.21
12
+ - @prosopo/procaptcha-pow@2.8.26
13
+ - @prosopo/procaptcha-react@2.9.20
14
+ - @prosopo/types@3.6.3
15
+ - @prosopo/util@3.2.3
16
+ - @prosopo/widget-skeleton@2.7.11
17
+
18
+ ## 3.2.8
19
+ ### Patch Changes
20
+
21
+ - 8ee8434: bump node engines to 24 and npm version to 11
22
+ - cfee479: make @prosopo/config a dev dep
23
+ - Updated dependencies [8ee8434]
24
+ - Updated dependencies [cfee479]
25
+ - @prosopo/procaptcha-frictionless@2.8.20
26
+ - @prosopo/procaptcha-common@2.9.17
27
+ - @prosopo/procaptcha-react@2.9.19
28
+ - @prosopo/widget-skeleton@2.7.10
29
+ - @prosopo/procaptcha-pow@2.8.25
30
+ - @prosopo/dotenv@3.0.29
31
+ - @prosopo/locale@3.1.24
32
+ - @prosopo/types@3.6.2
33
+ - @prosopo/util@3.2.2
34
+
35
+ ## 3.2.7
36
+ ### Patch Changes
37
+
38
+ - e926831: mega mini bump for all to trigger publish all
39
+ - Updated dependencies [e926831]
40
+ - @prosopo/config@3.1.23
41
+ - @prosopo/dotenv@3.0.28
42
+ - @prosopo/locale@3.1.23
43
+ - @prosopo/procaptcha-common@2.9.16
44
+ - @prosopo/procaptcha-frictionless@2.8.19
45
+ - @prosopo/procaptcha-pow@2.8.24
46
+ - @prosopo/procaptcha-react@2.9.18
47
+ - @prosopo/types@3.6.1
48
+ - @prosopo/util@3.2.1
49
+ - @prosopo/widget-skeleton@2.7.9
50
+
51
+ ## 3.2.6
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies [9128d5e]
55
+ - Updated dependencies [9128d5e]
56
+ - @prosopo/procaptcha-common@2.9.15
57
+ - @prosopo/procaptcha-frictionless@2.8.18
58
+ - @prosopo/procaptcha-pow@2.8.23
59
+ - @prosopo/procaptcha-react@2.9.17
60
+
61
+ ## 3.2.5
62
+ ### Patch Changes
63
+
64
+ - @prosopo/procaptcha-react@2.9.16
65
+ - @prosopo/procaptcha-frictionless@2.8.17
66
+
67
+ ## 3.2.4
68
+ ### Patch Changes
69
+
70
+ - @prosopo/procaptcha-react@2.9.15
71
+ - @prosopo/procaptcha-frictionless@2.8.16
72
+
73
+ ## 3.2.3
74
+ ### Patch Changes
75
+
76
+ - 8ce9205: Change engine requirements
77
+ - b6e98b2: Run npm audit
78
+ - Updated dependencies [15ae7cf]
79
+ - Updated dependencies [bb5f41c]
80
+ - Updated dependencies [8ce9205]
81
+ - Updated dependencies [df79c03]
82
+ - Updated dependencies [b6e98b2]
83
+ - @prosopo/types@3.6.0
84
+ - @prosopo/util@3.2.0
85
+ - @prosopo/procaptcha-frictionless@2.8.15
86
+ - @prosopo/procaptcha-common@2.9.14
87
+ - @prosopo/procaptcha-react@2.9.14
88
+ - @prosopo/widget-skeleton@2.7.8
89
+ - @prosopo/procaptcha-pow@2.8.22
90
+ - @prosopo/dotenv@3.0.27
91
+ - @prosopo/locale@3.1.22
92
+ - @prosopo/config@3.1.22
93
+
3
94
  ## 3.2.2
4
95
  ### Patch Changes
5
96
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const types = require("@prosopo/types");
5
5
  const captchaComponentsList = require("./captchaComponentsList.cjs");
6
6
  class CaptchaComponentProvider {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const createCache = require("@emotion/cache");
5
5
  const react = require("@emotion/react");
6
6
  const client = require("react-dom/client");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const procaptchaCommon = require("@prosopo/procaptcha-common");
5
5
  const procaptchaFrictionless = require("@prosopo/procaptcha-frictionless");
6
6
  const react = require("react");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const procaptchaCommon = require("@prosopo/procaptcha-common");
5
5
  const procaptchaReact = require("@prosopo/procaptcha-react");
6
6
  const ImageCaptcha = (props) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("@emotion/react/jsx-runtime");
3
+ const jsxRuntime = require("react/jsx-runtime");
4
4
  const procaptchaCommon = require("@prosopo/procaptcha-common");
5
5
  const procaptchaPow = require("@prosopo/procaptcha-pow");
6
6
  const PowCaptcha = (props) => {
@@ -1,4 +1,4 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { CaptchaType } from "@prosopo/types";
3
3
  import { captchaComponentsList } from "./captchaComponentsList.js";
4
4
  class CaptchaComponentProvider {
@@ -1,4 +1,4 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import createCache from "@emotion/cache";
3
3
  import { CacheProvider } from "@emotion/react";
4
4
  import { createRoot } from "react-dom/client";
@@ -1,4 +1,4 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { getDefaultEvents } from "@prosopo/procaptcha-common";
3
3
  import { ProcaptchaFrictionless } from "@prosopo/procaptcha-frictionless";
4
4
  import { useState } from "react";
@@ -1,4 +1,4 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { getDefaultEvents } from "@prosopo/procaptcha-common";
3
3
  import { Procaptcha } from "@prosopo/procaptcha-react";
4
4
  const ImageCaptcha = (props) => {
@@ -1,4 +1,4 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { getDefaultEvents } from "@prosopo/procaptcha-common";
3
3
  import { ProcaptchaPow } from "@prosopo/procaptcha-pow";
4
4
  const PowCaptcha = (props) => {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-bundle",
3
- "version": "3.2.2",
3
+ "version": "3.2.9",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
7
7
  "type": "module",
8
8
  "sideEffects": false,
9
9
  "engines": {
10
- "node": ">=v20.0.0",
11
- "npm": ">=10.6.0"
10
+ "node": "^24",
11
+ "npm": "^11"
12
12
  },
13
13
  "exports": {
14
14
  ".": {
@@ -37,16 +37,15 @@
37
37
  },
38
38
  "browserslist": ["> 0.5%, last 2 versions, not dead"],
39
39
  "dependencies": {
40
- "@prosopo/dotenv": "3.0.26",
41
- "@prosopo/locale": "3.1.21",
42
- "@prosopo/procaptcha-common": "2.9.13",
43
- "@prosopo/procaptcha-frictionless": "2.8.14",
44
- "@prosopo/procaptcha-pow": "2.8.21",
45
- "@prosopo/procaptcha-react": "2.9.13",
46
- "@prosopo/types": "3.5.11",
47
- "@prosopo/util": "3.1.7",
48
- "@prosopo/widget-skeleton": "2.7.7",
49
- "@prosopo/config": "3.1.21",
40
+ "@prosopo/dotenv": "3.0.30",
41
+ "@prosopo/locale": "3.1.25",
42
+ "@prosopo/procaptcha-common": "2.9.18",
43
+ "@prosopo/procaptcha-frictionless": "2.8.21",
44
+ "@prosopo/procaptcha-pow": "2.8.26",
45
+ "@prosopo/procaptcha-react": "2.9.20",
46
+ "@prosopo/types": "3.6.3",
47
+ "@prosopo/util": "3.2.3",
48
+ "@prosopo/widget-skeleton": "2.7.11",
50
49
  "dotenv": "16.4.5",
51
50
  "fast-glob": "3.3.2",
52
51
  "jsdom": "25.0.0",
@@ -68,6 +67,7 @@
68
67
  "registry": "https://registry.npmjs.org"
69
68
  },
70
69
  "devDependencies": {
70
+ "@prosopo/config": "3.1.25",
71
71
  "@types/jsdom": "21.1.7",
72
72
  "@types/node": "22.10.2",
73
73
  "@types/react": "18.3.1",
@@ -1,5 +0,0 @@
1
- export * from "./util/captcha/components/frictionlessCaptcha.js";
2
- export * from "./util/captcha/components/powCaptcha.js";
3
- export * from "./util/captcha/components/imageCaptcha.js";
4
- export * from "./util/captcha/captchaComponentProvider.js";
5
- //# sourceMappingURL=components.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/components.ts"],"names":[],"mappings":"AAcA,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from "./util/captcha/components/frictionlessCaptcha.js";
2
- export * from "./util/captcha/components/powCaptcha.js";
3
- export * from "./util/captcha/components/imageCaptcha.js";
4
- export * from "./util/captcha/captchaComponentProvider.js";
5
- //# sourceMappingURL=components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/components.ts"],"names":[],"mappings":"AAcA,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { ProcaptchaRenderOptions } from "@prosopo/types";
2
- export declare const render: (element: Element, renderOptions: ProcaptchaRenderOptions) => Promise<void>;
3
- export default function ready(fn: () => void): void;
4
- export declare const execute: () => void;
5
- declare global {
6
- interface Window {
7
- procaptcha: {
8
- ready: typeof ready;
9
- render: typeof render;
10
- reset: typeof reset;
11
- execute: typeof execute;
12
- };
13
- }
14
- }
15
- export declare const reset: () => void;
16
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAoF9D,eAAO,MAAM,MAAM,YACT,OAAO,iBACD,uBAAuB,kBA2BtC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,EAAE,MAAM,IAAI,QAY3C;AAED,eAAO,MAAM,OAAO,YAqBnB,CAAC;AAkCF,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,UAAU,EAAE;YACX,KAAK,EAAE,OAAO,KAAK,CAAC;YACpB,MAAM,EAAE,OAAO,MAAM,CAAC;YACtB,KAAK,EAAE,OAAO,KAAK,CAAC;YACpB,OAAO,EAAE,OAAO,OAAO,CAAC;SACxB,CAAC;KACF;CACD;AAmCD,eAAO,MAAM,KAAK,YAOjB,CAAC"}
@@ -1,144 +0,0 @@
1
- import { getWindowCallback } from "@prosopo/procaptcha-common";
2
- import { at } from "@prosopo/util";
3
- import { getCaptchaType } from "./util/captcha/captchaType.js";
4
- import { extractParams, getProcaptchaScript } from "./util/config.js";
5
- import { WidgetFactory } from "./util/widgetFactory.js";
6
- import { WidgetThemeResolver } from "./util/widgetThemeResolver.js";
7
- const BUNDLE_NAME = "procaptcha.bundle.js";
8
- let procaptchaRoots = [];
9
- const widgetFactory = new WidgetFactory(new WidgetThemeResolver());
10
- const PROCAPTCHA_EXECUTE_EVENT = "procaptcha:execute";
11
- const PROCAPTCHA_READY_EVENT = "procaptcha:ready";
12
- const implicitRender = async () => {
13
- const elements = Array.from(document.getElementsByClassName("procaptcha")).filter((element) => element.tagName.toLowerCase() !== "button");
14
- if (elements.length) {
15
- const siteKey = at(elements, 0).getAttribute("data-sitekey");
16
- const web3 = at(elements, 0).getAttribute("data-web3");
17
- if (!siteKey) {
18
- console.error("No site key found");
19
- return;
20
- }
21
- const captchaType = getCaptchaType(elements);
22
- const root = await widgetFactory.createWidgets(elements, {
23
- captchaType: captchaType,
24
- siteKey: siteKey,
25
- }, !(web3 === "true"));
26
- procaptchaRoots.push(...root);
27
- }
28
- const invisibleButtons = Array.from(document.getElementsByClassName("procaptcha")).filter((button) => button.tagName.toLowerCase() === "button");
29
- if (invisibleButtons.length) {
30
- for (const button of invisibleButtons) {
31
- const siteKey = button.getAttribute("data-sitekey") || "";
32
- const callback = button.getAttribute("data-callback") || "";
33
- const captchaType = getCaptchaType([button]);
34
- const root = await widgetFactory.createWidgets([button], {
35
- captchaType: captchaType,
36
- siteKey: siteKey,
37
- callback: callback,
38
- }, true, true);
39
- procaptchaRoots.push(...root);
40
- button.addEventListener("click", async (event) => {
41
- event.preventDefault();
42
- execute();
43
- });
44
- }
45
- }
46
- };
47
- export const render = async (element, renderOptions) => {
48
- const hasInvisibleSize = Object.prototype.hasOwnProperty.call(renderOptions, "size") &&
49
- renderOptions.size === "invisible";
50
- const isWeb2 = !renderOptions.web3;
51
- if (hasInvisibleSize || element.tagName.toLowerCase() === "button") {
52
- const roots = await widgetFactory.createWidgets([element], renderOptions, isWeb2, true);
53
- procaptchaRoots.push(...roots);
54
- return;
55
- }
56
- const roots = await widgetFactory.createWidgets([element], renderOptions, isWeb2, false);
57
- procaptchaRoots.push(...roots);
58
- };
59
- export default function ready(fn) {
60
- if (document && document.readyState !== "loading") {
61
- console.log("document.readyState ready!");
62
- fn();
63
- }
64
- else {
65
- console.log("DOMContentLoaded listener!");
66
- document.addEventListener("DOMContentLoaded", () => {
67
- console.log("DOMContentLoaded fired");
68
- console.log(window);
69
- fn();
70
- });
71
- }
72
- }
73
- export const execute = () => {
74
- const containers = findProcaptchaContainers();
75
- if (containers.length === 0) {
76
- console.error("No Procaptcha containers found for execution");
77
- return;
78
- }
79
- const executeEvent = new CustomEvent(PROCAPTCHA_EXECUTE_EVENT, {
80
- detail: {
81
- containerId: containers[0]?.id || "procaptcha-container",
82
- containerCount: containers.length,
83
- timestamp: Date.now(),
84
- },
85
- bubbles: true,
86
- cancelable: true,
87
- });
88
- document.dispatchEvent(executeEvent);
89
- };
90
- function findProcaptchaContainers() {
91
- const containers = [];
92
- const invisibleContainers = Array.from(document.querySelectorAll('[data-size="invisible"]'));
93
- containers.push(...invisibleContainers);
94
- const idContainers = Array.from(document.querySelectorAll('#procaptcha-container, [id$="-procaptcha-container"]'));
95
- const classContainers = Array.from(document.getElementsByClassName("p-procaptcha"));
96
- containers.push(...classContainers);
97
- for (const container of idContainers) {
98
- if (!containers.includes(container)) {
99
- containers.push(container);
100
- }
101
- }
102
- return containers;
103
- }
104
- const start = () => {
105
- const { onloadUrlCallback, renderExplicit } = extractParams(BUNDLE_NAME);
106
- let readyCalled = false;
107
- if (renderExplicit !== "explicit") {
108
- getProcaptchaScript(BUNDLE_NAME)?.addEventListener("load", () => {
109
- ready(implicitRender);
110
- readyCalled = true;
111
- });
112
- if (document.readyState === "complete" && !readyCalled) {
113
- ready(implicitRender);
114
- }
115
- }
116
- if (onloadUrlCallback) {
117
- getProcaptchaScript(BUNDLE_NAME)?.addEventListener("load", () => {
118
- const onloadCallback = getWindowCallback(onloadUrlCallback);
119
- ready(onloadCallback);
120
- });
121
- if (document.readyState === "complete" && !readyCalled) {
122
- const onloadCallback = getWindowCallback(onloadUrlCallback);
123
- ready(onloadCallback);
124
- }
125
- }
126
- };
127
- export const reset = () => {
128
- for (const root of procaptchaRoots) {
129
- root.unmount();
130
- }
131
- procaptchaRoots = [];
132
- start();
133
- };
134
- window.procaptcha = { ready, render, reset, execute };
135
- const procaptchaReadyEvent = new CustomEvent(PROCAPTCHA_READY_EVENT, {
136
- detail: {
137
- timestamp: Date.now(),
138
- },
139
- bubbles: true,
140
- cancelable: false,
141
- });
142
- document.dispatchEvent(procaptchaReadyEvent);
143
- start();
144
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAC3C,IAAI,eAAe,GAAW,EAAE,CAAC;AAEjC,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC;AAGnE,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAGtD,MAAM,sB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;IAED,IAAI,iBAAiB,EAAE,CAAC;QAEvB,mBAAmB,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE;YAC/D,MAAM,cAAc,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;YAC5D,KAAK,CAAC,cAAc,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;QAGH,IAAI,QAAQ,CAAC,UAAU,KAAK,UAAU,IAAI,CAAC,WAAW,EAAE,CAAC;YACxD,MAAM,cAAc,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;YAC5D,KAAK,CAAC,cAAc,CAAC,CAAC;QACvB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE;IACzB,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,CAAC,OAAO,EAAE,CAAC;IAChB,CAAC;IACD,eAAe,GAAG,EAAE,CAAC;IAErB,KAAK,EAAE,CAAC;AACT,CAAC,CAAC;AAGF,MAAM,CAAC,UAAU,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAGtD,MAAM,oBAAoB,GAAG,IAAI,WAAW,CAAC,sBAAsB,EAAE;IACpE,MAAM,EAAE;QACP,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACrB;IACD,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,KAAK;CACjB,CAAC,CAAC;AACH,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;AAE7C,KAAK,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=procaptchaReady.unit.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"procaptchaReady.unit.test.d.ts","sourceRoot":"","sources":["../../../src/tests/procaptchaReady.unit.test.ts"],"names":[],"mappings":""}
@@ -1,32 +0,0 @@
1
- import { JSDOM } from "jsdom";
2
- import { afterEach, beforeEach, describe, expect, it } from "vitest";
3
- describe("procaptcha:ready event", () => {
4
- let dom;
5
- beforeEach(() => {
6
- dom = new JSDOM("<!DOCTYPE html><html><body></body></html>", {
7
- url: "https://example.com",
8
- });
9
- global.document = dom.window.document;
10
- global.window = dom.window;
11
- });
12
- afterEach(() => {
13
- global.document = undefined;
14
- global.window = undefined;
15
- });
16
- it("should dispatch procaptcha:ready event when window.procaptcha is set", (done) => {
17
- document.addEventListener("procaptcha:ready", (event) => {
18
- const customEvent = event;
19
- expect(customEvent.detail).toBeDefined();
20
- expect(typeof customEvent.detail.timestamp).toBe("number");
21
- expect(customEvent.bubbles).toBe(true);
22
- expect(customEvent.cancelable).toBe(false);
23
- expect(window.procaptcha).toBeDefined();
24
- expect(window.procaptcha?.render).toBeDefined();
25
- expect(window.procaptcha?.ready).toBeDefined();
26
- expect(window.procaptcha?.reset).toBeDefined();
27
- expect(window.procaptcha?.execute).toBeDefined();
28
- });
29
- import("../index.js");
30
- });
31
- });
32
- //# sourceMappingURL=procaptchaReady.unit.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"procaptchaReady.unit.test.js","sourceRoot":"","sources":["../../../src/tests/procaptchaReady.unit.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAErE,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACvC,IAAI,GAAU,CAAC;IAEf,UAAU,CAAC,GAAG,EAAE;QACf,GAAG,GAAG,IAAI,KAAK,CAAC,2CAA2C,EAAE;YAC5D,GAAG,EAAE,qBAAqB;SAC1B,CAAC,CAAC;QAEH,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEtC,MAAM,CAAC,MAAM,GAAG,GAAG,C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../src/tests/util/captchaType.test.ts"],"names":[],"mappings":""}
@@ -1,36 +0,0 @@
1
- import { CaptchaType } from "@prosopo/types";
2
- import { JSDOM } from "jsdom";
3
- import { beforeEach, describe, expect, it } from "vitest";
4
- import { getCaptchaType } from "../../util/captcha/captchaType.js";
5
- describe("getCaptchaType", () => {
6
- beforeEach(() => {
7
- const dom = new JSDOM("<!DOCTYPE html><html><body></body></html>");
8
- global.document = dom.window.document;
9
- });
10
- it("should return the correct captcha type when a valid type is set", () => {
11
- const element = document.createElement("div");
12
- element.setAttribute("data-captcha-type", CaptchaType.pow);
13
- const result = getCaptchaType([element]);
14
- expect(result).toBe(CaptchaType.pow);
15
- });
16
- it('should return "frictionless" when no captcha type is set', () => {
17
- const element = document.createElement("div");
18
- const result = getCaptchaType([element]);
19
- expect(result).toBe("frictionless");
20
- });
21
- it('should return "frictionless" when an invalid captcha type is set', () => {
22
- const element = document.createElement("div");
23
- element.setAttribute("data-captcha-type", "invalid-type");
24
- const result = getCaptchaType([element]);
25
- expect(result).toBe("frictionless");
26
- });
27
- it("should work with all valid FeaturesEnum values", () => {
28
- const element = document.createElement("div");
29
- for (const feature of Object.values(CaptchaType)) {
30
- element.setAttribute("data-captcha-type", feature);
31
- const result = getCaptchaType([element]);
32
- expect(result).toBe(feature);
33
- }
34
- });
35
- });
36
- //# sourceMappingURL=captchaType.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"captchaType.test.js","sourceRoot":"","sources":["../../../../src/tests/util/captchaType.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE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,aAAa,CAAC,KAAK,CAAC,CAAC;QAE9C,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YAClD,OAAO,CAAC,YAAY,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;YACnD,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACzC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.test.d.ts","sourceRoot":"","sources":["../../../../src/tests/util/config.test.ts"],"names":[],"mappings":""}
@@ -1,69 +0,0 @@
1
- import { JSDOM } from "jsdom";
2
- import { afterEach, beforeEach, describe, expect, it } from "vitest";
3
- import { extractParams, getProcaptchaScript } from "../../util/config.js";
4
- describe("Config utility functions", () => {
5
- let dom;
6
- beforeEach(() => {
7
- dom = new JSDOM("<!DOCTYPE html><html><body></body></html>", {
8
- url: "https://example.com",
9
- });
10
- global.document = dom.window.document;
11
- });
12
- afterEach(() => {
13
- global.document = undefined;
14
- });
15
- describe("getProcaptchaScript", () => {
16
- it("should return null when no matching script is found", () => {
17
- const result = getProcaptchaScript("nonexistent");
18
- expect(result).toBeNull();
19
- });
20
- it("should return the script element when a matching script is found", () => {
21
- const script = document.createElement("script");
22
- script.src = "https://example.com/procaptcha.js";
23
- document.body.appendChild(script);
24
- const result = getProcaptchaScript("procaptcha");
25
- expect(result).toBe(script);
26
- });
27
- });
28
- describe("extractParams", () => {
29
- it("should return undefined values when no matching script is found", () => {
30
- const result = extractParams("nonexistent");
31
- expect(result).toEqual({
32
- onloadUrlCallback: undefined,
33
- renderExplicit: undefined,
34
- });
35
- });
36
- it("should extract parameters from the script URL", () => {
37
- const script = document.createElement("script");
38
- script.src =
39
- "https://example.com/procaptcha.js?onload=onloadCallback&render=explicit";
40
- document.body.appendChild(script);
41
- const result = extractParams("procaptcha");
42
- expect(result).toEqual({
43
- onloadUrlCallback: "onloadCallback",
44
- renderExplicit: "explicit",
45
- });
46
- });
47
- it("should return undefined for missing parameters", () => {
48
- const script = document.createElement("script");
49
- script.src = "https://example.com/procaptcha.js?onload=onloadCallback";
50
- document.body.appendChild(script);
51
- const result = extractParams("procaptcha");
52
- expect(result).toEqual({
53
- onloadUrlCallback: "onloadCallback",
54
- renderExplicit: undefined,
55
- });
56
- });
57
- it("should handle scripts without query parameters", () => {
58
- const script = document.createElement("script");
59
- script.src = "https://example.com/procaptcha.js";
60
- document.body.appendChild(script);
61
- const result = extractParams("procaptcha");
62
- expect(result).toEqual({
63
- onloadUrlCallback: undefined,
64
- renderExplicit: undefined,
65
- });
66
- });
67
- });
68
- });
69
- //# sourceMappingURL=config.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.test.js","sourceRoot":"","sources":["../../../../src/tests/util/config.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE1E,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACzC,IAAI,GAAU,CAAC;IAEf,UAAU,CAAC,GAAG,EAAE;QACf,GAAG,GAAG,IAAI,KAAK,CAAC,2CAA2C,EAAE;YAC5D,GAAG,EAAE,qBAAqB;SAC1B,CAAC,CAAC;QACH,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QAEb,MAAc,CAAC,QAAQ,GAAG,SAAS,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,QAAQ,CA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