@prosopo/procaptcha-bundle 2.5.3 → 2.5.5

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 (60) hide show
  1. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
  2. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js +15 -17
  3. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -1
  4. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +23 -27
  5. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +1 -1
  6. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +2 -2
  7. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
  8. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +4 -7
  9. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +1 -1
  10. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +2 -2
  11. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +1 -1
  12. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +9 -4
  13. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -1
  14. package/dist/bundle/ProcaptchaWidget-CCSN3Dxj.js +636 -0
  15. package/dist/bundle/{ProcaptchaWidget-Dnwno-4N.js → ProcaptchaWidget-Dfex8hc8.js} +4 -4
  16. package/dist/bundle/{asU8a-JliaME7-.js → asU8a-CAsEnbuP.js} +1 -1
  17. package/dist/bundle/{bip39-CFjno8fK.js → bip39-DCaMcFzo.js} +2 -2
  18. package/dist/bundle/{captchaComponentProvider-dcMua0p9.js → captchaComponentProvider-Dm44AMrY.js} +23 -18
  19. package/dist/bundle/captchaRenderer-BBodRhQu.js +70 -0
  20. package/dist/bundle/{emotion-element-5486c51c.browser.esm-Bywq83R5.js → emotion-element-5486c51c.browser.esm-CQHFV-dS.js} +711 -746
  21. package/dist/bundle/{fp.esm-C0kLYOiJ.js → fp.esm-DYWeNGcH.js} +17 -0
  22. package/dist/bundle/{hash-CtL1HOjf.js → hash-D-64Vz5z.js} +1 -1
  23. package/dist/bundle/{captchaRenderer-D-du50M4.js → index-9I1Aae33.js} +1293 -1355
  24. package/dist/bundle/index-DCHEbWAs.js +1242 -0
  25. package/dist/bundle/{index-DcG_c-Na.js → index-DkQ4njKa.js} +12 -12
  26. package/dist/bundle/{index-BTlHNFX8.js → index-DxswvPTy.js} +285 -183
  27. package/dist/bundle/{index-BMjJnq60.js → index-nNwZuute.js} +252 -252
  28. package/dist/bundle/index.d.ts.map +1 -1
  29. package/dist/bundle/locales/de/translation.json +55 -405
  30. package/dist/bundle/locales/en/translation.json +55 -405
  31. package/dist/bundle/locales/es/translation.json +55 -405
  32. package/dist/bundle/locales/fr/translation.json +55 -405
  33. package/dist/bundle/locales/it/translation.json +55 -405
  34. package/dist/bundle/locales/pt/translation.json +55 -405
  35. package/dist/bundle/locales/pt-BR/translation.json +55 -405
  36. package/dist/bundle/procaptcha.bundle.js +1 -1
  37. package/dist/bundle/{useTranslation-7b6JJ18N.js → useTranslation-CEt2t9kE.js} +1 -1
  38. package/dist/bundle/util/captcha/captchaRenderer.d.ts +2 -2
  39. package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
  40. package/dist/bundle/util/widgetFactory.d.ts +2 -2
  41. package/dist/bundle/util/widgetFactory.d.ts.map +1 -1
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +15 -17
  44. package/dist/index.js.map +1 -1
  45. package/dist/tests/util/renderLogic.test.js +23 -27
  46. package/dist/tests/util/renderLogic.test.js.map +1 -1
  47. package/dist/util/captcha/captchaRenderer.d.ts +2 -2
  48. package/dist/util/captcha/captchaRenderer.d.ts.map +1 -1
  49. package/dist/util/captcha/captchaRenderer.js +4 -7
  50. package/dist/util/captcha/captchaRenderer.js.map +1 -1
  51. package/dist/util/widgetFactory.d.ts +2 -2
  52. package/dist/util/widgetFactory.d.ts.map +1 -1
  53. package/dist/util/widgetFactory.js +9 -4
  54. package/dist/util/widgetFactory.js.map +1 -1
  55. package/package.json +20 -14
  56. package/stats.html +1 -1
  57. package/vite.config.ts +18 -3
  58. package/vite.serve.config.ts +24 -0
  59. package/dist/bundle/ProcaptchaWidget-BlWWnPeB.js +0 -615
  60. package/dist/bundle/index-B8oMghZ3.js +0 -1120
@@ -1,18 +1,18 @@
1
- import { p as g } from "./emotion-element-5486c51c.browser.esm-Bywq83R5.js";
2
- import { w as m, i as f, a as l } from "./hash-CtL1HOjf.js";
1
+ import { m } from "./emotion-element-5486c51c.browser.esm-CQHFV-dS.js";
2
+ import { w as g, i as f, a as l } from "./hash-D-64Vz5z.js";
3
3
  import { s as E } from "./toU8a-BWKf-2UU.js";
4
- import { b as i } from "./captchaComponentProvider-dcMua0p9.js";
4
+ import { b as i } from "./captchaComponentProvider-Dm44AMrY.js";
5
5
  const b = "dev";
6
6
  class y {
7
7
  }
8
8
  function x() {
9
- return m().then(() => {
9
+ return g().then(() => {
10
10
  if (!f())
11
11
  throw new Error("Unable to initialize @polkadot/util-crypto");
12
12
  return !0;
13
13
  }).catch(() => !1);
14
14
  }
15
- const h = async () => (await import("./fp.esm-C0kLYOiJ.js")).default, N = async () => (await (await (await h()).load()).get()).visitorId, T = async () => (await import("./Signer-DP9drQ55.js")).default, O = async () => (await import("./index-BMjJnq60.js")).Keyring, A = async () => (await import("./bip39-CFjno8fK.js").then((r) => r.c)).entropyToMnemonic;
15
+ const h = async () => (await import("./fp.esm-DYWeNGcH.js")).default, N = async () => (await (await (await h()).load()).get()).visitorId, T = async () => (await import("./Signer-DP9drQ55.js")).default, O = async () => (await import("./index-nNwZuute.js")).Keyring, A = async () => (await import("./bip39-DCaMcFzo.js").then((r) => r.c)).entropyToMnemonic;
16
16
  class W extends y {
17
17
  async getAccount(e) {
18
18
  const t = await this.createAccount(e), n = await this.createExtension(t);
@@ -28,7 +28,7 @@ class W extends y {
28
28
  const o = e.keypair.sign(a.data);
29
29
  return {
30
30
  id: 1,
31
- signature: g(o)
31
+ signature: m(o)
32
32
  };
33
33
  }, {
34
34
  accounts: {
@@ -43,13 +43,13 @@ class W extends y {
43
43
  }
44
44
  async createAccount(e) {
45
45
  await x();
46
- const t = await O(), n = await N(), a = l(n, 128).slice(2), o = E(a), u = (await A())(o), s = "sr25519", w = new t({
46
+ const t = await O(), n = await N(), a = l(n, 128).slice(2), o = E(a), u = (await A())(o), s = "sr25519", d = new t({
47
47
  type: s
48
- }).addFromMnemonic(u), d = w.address;
48
+ }).addFromMnemonic(u), p = d.address;
49
49
  return {
50
- address: d,
51
- name: d,
52
- keypair: w
50
+ address: p,
51
+ name: p,
52
+ keypair: d
53
53
  };
54
54
  }
55
55
  }
@@ -65,7 +65,7 @@ class _ extends y {
65
65
  if (o.length === 0)
66
66
  throw new i("WIDGET.NO_EXTENSION_FOUND");
67
67
  for (const c of o) {
68
- const s = (await c.accounts.get()).find((p) => p.address === n);
68
+ const s = (await c.accounts.get()).find((w) => w.address === n);
69
69
  if (s)
70
70
  return { account: s, extension: c };
71
71
  }