@prosopo/procaptcha-bundle 2.6.6 → 2.6.8

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 (69) hide show
  1. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -1
  2. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
  3. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -1
  4. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -1
  5. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -1
  6. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
  7. package/CHANGELOG.md +20 -0
  8. package/dist/bundle/ProcaptchaWidget-DPyDGPiI.js +156 -0
  9. package/dist/bundle/{ProcaptchaWidget-DrBDhP6X.js → ProcaptchaWidget-DoqUlwHS.js} +7 -7
  10. package/dist/bundle/{asU8a-CJdNkNEq.js → asU8a-BixKX-w0.js} +1 -1
  11. package/dist/bundle/bip39-D7YSihxf.js +260 -0
  12. package/dist/bundle/{browser-ponyfill-Dy1JBTMg.js → browser-ponyfill-Bctlk3uB.js} +30 -31
  13. package/dist/bundle/{captchaComponentProvider-DmV1WTrT.js → captchaComponentProvider-BL18T1UE.js} +4 -4
  14. package/dist/bundle/{captchaRenderer-RIsSZXCC.js → captchaRenderer-BAMErqQN.js} +2 -2
  15. package/dist/bundle/{emotion-element-5486c51c.browser.esm-C3u8NMUC.js → emotion-element-5486c51c.browser.esm-Bjt1gs1F.js} +1 -1
  16. package/dist/bundle/{hash-_rWungeW.js → hash-CrwduMDb.js} +483 -796
  17. package/dist/bundle/{i18nFrontend-CsPT71ro.js → i18nFrontend-DCv3P9jv.js} +1 -1
  18. package/dist/bundle/{index-Wgw2GQWq.js → index-1qH2dz7u.js} +2 -2
  19. package/dist/bundle/index-BeN3et18.js +4844 -0
  20. package/dist/bundle/{index-DxIFpl6U.js → index-ByKGlSkE.js} +1 -1
  21. package/dist/bundle/{index-Cu5oL_7b.js → index-CBquknc2.js} +5 -5
  22. package/dist/bundle/locales/ar/translation.json +1 -2
  23. package/dist/bundle/locales/az/translation.json +1 -2
  24. package/dist/bundle/locales/cs/translation.json +1 -2
  25. package/dist/bundle/locales/de/translation.json +1 -2
  26. package/dist/bundle/locales/el/translation.json +1 -2
  27. package/dist/bundle/locales/en/translation.json +1 -2
  28. package/dist/bundle/locales/es/translation.json +1 -2
  29. package/dist/bundle/locales/fi/translation.json +1 -2
  30. package/dist/bundle/locales/fr/translation.json +1 -2
  31. package/dist/bundle/locales/hi/translation.json +1 -2
  32. package/dist/bundle/locales/hu/translation.json +1 -2
  33. package/dist/bundle/locales/id/translation.json +1 -2
  34. package/dist/bundle/locales/it/translation.json +1 -2
  35. package/dist/bundle/locales/ja/translation.json +1 -2
  36. package/dist/bundle/locales/jv/translation.json +1 -2
  37. package/dist/bundle/locales/ko/translation.json +1 -2
  38. package/dist/bundle/locales/ml/translation.json +1 -2
  39. package/dist/bundle/locales/ms/translation.json +1 -2
  40. package/dist/bundle/locales/nl/translation.json +1 -2
  41. package/dist/bundle/locales/no/translation.json +1 -2
  42. package/dist/bundle/locales/pl/translation.json +1 -2
  43. package/dist/bundle/locales/pt/translation.json +1 -2
  44. package/dist/bundle/locales/pt-br/translation.json +1 -2
  45. package/dist/bundle/locales/ro/translation.json +1 -2
  46. package/dist/bundle/locales/ru/translation.json +1 -2
  47. package/dist/bundle/locales/sr/translation.json +1 -2
  48. package/dist/bundle/locales/sv/translation.json +1 -2
  49. package/dist/bundle/locales/th/translation.json +1 -2
  50. package/dist/bundle/locales/tr/translation.json +1 -2
  51. package/dist/bundle/locales/uk/translation.json +1 -2
  52. package/dist/bundle/locales/vi/translation.json +1 -2
  53. package/dist/bundle/locales/zh-cn/translation.json +1 -2
  54. package/dist/bundle/procaptcha.bundle.js +1 -1
  55. package/dist/bundle/sha256-CGE_4eEY.js +171 -0
  56. package/dist/bundle/toU8a-CPMbkkSw.js +109 -0
  57. package/dist/bundle/{useTranslation-CJplXtqb.js → useTranslation-BJsfZyOx.js} +3 -3
  58. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -1
  59. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
  60. package/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -1
  61. package/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -1
  62. package/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -1
  63. package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
  64. package/package.json +9 -10
  65. package/stats.html +1 -1
  66. package/dist/bundle/ProcaptchaWidget-rAM-9Rap.js +0 -360
  67. package/dist/bundle/bip39-Du2cANEV.js +0 -365
  68. package/dist/bundle/index-BVr9fC_3.js +0 -4386
  69. package/dist/bundle/toU8a-C68WUzs_.js +0 -24
@@ -0,0 +1,109 @@
1
+ function s(t) {
2
+ if (!Number.isSafeInteger(t) || t < 0)
3
+ throw new Error(`positive integer expected, not ${t}`);
4
+ }
5
+ function a(t) {
6
+ return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
7
+ }
8
+ function u(t, ...e) {
9
+ if (!a(t))
10
+ throw new Error("Uint8Array expected");
11
+ if (e.length > 0 && !e.includes(t.length))
12
+ throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
13
+ }
14
+ function x(t) {
15
+ if (typeof t != "function" || typeof t.create != "function")
16
+ throw new Error("Hash should be wrapped by utils.wrapConstructor");
17
+ s(t.outputLen), s(t.blockLen);
18
+ }
19
+ function L(t, e = !0) {
20
+ if (t.destroyed)
21
+ throw new Error("Hash instance has been destroyed");
22
+ if (e && t.finished)
23
+ throw new Error("Hash#digest() has already been called");
24
+ }
25
+ function E(t, e) {
26
+ u(t);
27
+ const n = e.outputLen;
28
+ if (t.length < n)
29
+ throw new Error(`digestInto() expects output buffer of length at least ${n}`);
30
+ }
31
+ const A = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), T = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), U = (t, e) => t << 32 - e | t >>> e, k = (t, e) => t << e | t >>> 32 - e >>> 0, l = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, f = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255, m = l ? (t) => t : (t) => f(t);
32
+ function O(t) {
33
+ for (let e = 0; e < t.length; e++)
34
+ t[e] = f(t[e]);
35
+ }
36
+ function p(t) {
37
+ if (typeof t != "string")
38
+ throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
39
+ return new Uint8Array(new TextEncoder().encode(t));
40
+ }
41
+ function c(t) {
42
+ return typeof t == "string" && (t = p(t)), u(t), t;
43
+ }
44
+ class S {
45
+ // Safe version that clones internal state
46
+ clone() {
47
+ return this._cloneInto();
48
+ }
49
+ }
50
+ const d = {}.toString;
51
+ function $(t, e) {
52
+ if (e !== void 0 && d.call(e) !== "[object Object]")
53
+ throw new Error("Options should be object or undefined");
54
+ return Object.assign(t, e);
55
+ }
56
+ function j(t) {
57
+ const e = (o) => t().update(c(o)).digest(), n = t();
58
+ return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
59
+ }
60
+ function B(t) {
61
+ const e = (o, r) => t(r).update(c(o)).digest(), n = t({});
62
+ return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = (o) => t(o), e;
63
+ }
64
+ function H(t) {
65
+ const e = (o, r) => t(r).update(c(o)).digest(), n = t({});
66
+ return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = (o) => t(o), e;
67
+ }
68
+ function y(t) {
69
+ return t("return this");
70
+ }
71
+ const i = typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : y(Function);
72
+ function w(t, e) {
73
+ return typeof i[t] > "u" ? e : i[t];
74
+ }
75
+ let b = class {
76
+ encode(e) {
77
+ const n = e.length, o = new Uint8Array(n);
78
+ for (let r = 0; r < n; r++)
79
+ o[r] = e.charCodeAt(r);
80
+ return o;
81
+ }
82
+ };
83
+ const g = /* @__PURE__ */ w("TextEncoder", b), h = new g();
84
+ function C(t) {
85
+ return t ? h.encode(t.toString()) : new Uint8Array();
86
+ }
87
+ export {
88
+ S as H,
89
+ m as a,
90
+ O as b,
91
+ w as c,
92
+ j as d,
93
+ L as e,
94
+ H as f,
95
+ u as g,
96
+ $ as h,
97
+ l as i,
98
+ x as j,
99
+ T as k,
100
+ U as l,
101
+ s as n,
102
+ E as o,
103
+ k as r,
104
+ C as s,
105
+ c as t,
106
+ A as u,
107
+ B as w,
108
+ i as x
109
+ };
@@ -1,6 +1,6 @@
1
- import { n as X, r as p } from "./emotion-element-5486c51c.browser.esm-C3u8NMUC.js";
2
- import { s as Y } from "./toU8a-C68WUzs_.js";
3
- import { g as q, a as B, i as K } from "./i18nFrontend-CsPT71ro.js";
1
+ import { n as X, r as p } from "./emotion-element-5486c51c.browser.esm-Bjt1gs1F.js";
2
+ import { s as Y } from "./toU8a-CPMbkkSw.js";
3
+ import { g as q, a as B, i as K } from "./i18nFrontend-DCv3P9jv.js";
4
4
  function re(e) {
5
5
  return X(Y(e));
6
6
  }
@@ -1,4 +1,3 @@
1
- import type { CaptchaType } from "@prosopo/types";
2
1
  import type { ReactNode } from "react";
3
2
  import type { CaptchaProps } from "./captchaProps.js";
4
3
  declare class CaptchaComponentProvider {
@@ -1 +1 @@
1
- {"version":3,"file":"captchaComponentProvider.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentProvider.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,cAAM,wBAAwB;IACtB,mBAAmB,CACzB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,GACxB,SAAS;CAaZ;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"captchaComponentProvider.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentProvider.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,cAAM,wBAAwB;IACtB,mBAAmB,CACzB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,GACxB,SAAS;CAaZ;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- import { CaptchaType } from "@prosopo/types";
2
1
  import type React from "react";
3
2
  import type { CaptchaProps } from "./captchaProps.js";
4
3
  declare const captchaComponentsList: Record<CaptchaType, React.ComponentType<CaptchaProps>>;
@@ -1 +1 @@
1
- {"version":3,"file":"captchaComponentsList.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentsList.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKtD,QAAA,MAAM,qBAAqB,EAAE,MAAM,CAClC,WAAW,EACX,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAKjC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"captchaComponentsList.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaComponentsList.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKtD,QAAA,MAAM,qBAAqB,EAAE,MAAM,CAClC,WAAW,EACX,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAKjC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { type EmotionCache } from "@emotion/cache";
2
2
  import type { Ti18n } from "@prosopo/locale";
3
3
  import type { Callbacks, ProcaptchaClientConfigOutput, ProcaptchaRenderOptions } from "@prosopo/types";
4
- import type { CaptchaType } from "@prosopo/types";
5
4
  import type { ReactNode } from "react";
6
5
  import { type Root } from "react-dom/client";
7
6
  import type { CaptchaComponentProvider } from "./captchaComponentProvider.js";
@@ -1 +1 @@
1
- {"version":3,"file":"captchaRenderer.d.ts","sourceRoot":"","sources":["../../../../src/util/captcha/captchaRenderer.tsx"],"names":[],"mappings":"AAcA,OAAoB,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EACX,SAAS,EACT,4BAA4B,EAC5B,uBAAuB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,kBAAkB,CAAC;AAIzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,UAAU,cAAc;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM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AE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,UAAU,cAAc;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,WAAW,CAAC;CAChC;AAED,cAAM,eAAe;IACpB,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAA2B;gBAExD,wBAAwB,EAAE,wBAAwB;IAIvD,aAAa,CACnB,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAE,WAAW,EACtB,aAAa,EAAE,uBAAuB,EACtC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,EACX,SAAS,UAAQ,GACf,IAAI;IAsCP,SAAS,CAAC,uBAAuB,CAChC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,4BAA4B,EACpC,aAAa,EAAE,uBAAuB,GACpC,IAAI;IAKP,SAAS,CAAC,gBAAgB,CACzB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,WAAW,GACpB,YAAY;IAQf,SAAS,CAAC,eAAe,CACxB,SAAS,EAAE,WAAW,EACtB,gBAAgB,EAAE,MAAM,GACtB,IAAI;IAMP,SAAS,CAAC,sBAAsB,CAC/B,SAAS,EAAE,IAAI,EACf,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,SAAS,GACzB,IAAI;CAKP;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-bundle",
3
- "version": "2.6.6",
3
+ "version": "2.6.8",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -36,22 +36,21 @@
36
36
  "> 0.5%, last 2 versions, not dead"
37
37
  ],
38
38
  "dependencies": {
39
- "@prosopo/dotenv": "2.6.0",
39
+ "@prosopo/dotenv": "2.6.1",
40
40
  "@prosopo/locale": "2.6.0",
41
- "@prosopo/procaptcha-frictionless": "2.6.6",
42
- "@prosopo/procaptcha-pow": "2.6.6",
43
- "@prosopo/procaptcha-react": "2.6.6",
44
- "@prosopo/types": "2.7.0",
45
- "@prosopo/util": "2.6.0",
41
+ "@prosopo/procaptcha-frictionless": "2.6.8",
42
+ "@prosopo/procaptcha-pow": "2.6.8",
43
+ "@prosopo/procaptcha-react": "2.6.8",
46
44
  "@prosopo/widget-skeleton": "2.6.0",
45
+ "@prosopo/types": "2.7.1",
46
+ "@prosopo/util": "2.6.0",
47
47
  "express": "4.21.2",
48
48
  "react": "18.3.1",
49
49
  "react-dom": "18.3.1"
50
50
  },
51
51
  "repository": {
52
52
  "type": "git",
53
- "url": "git+https://github.com/prosopo/captcha.git",
54
- "directory": "packages/procaptcha-bundle"
53
+ "url": "git+https://github.com/prosopo/captcha.git"
55
54
  },
56
55
  "bugs": {
57
56
  "url": "https://github.com/prosopo/captcha/issues"
@@ -64,8 +63,8 @@
64
63
  "devDependencies": {
65
64
  "@prosopo/config": "2.6.0",
66
65
  "@types/jsdom": "21.1.7",
67
- "@types/react": "18.3.1",
68
66
  "@types/react-dom": "18.3.1",
67
+ "@types/react": "18.3.1",
69
68
  "@vitest/coverage-v8": "3.0.9",
70
69
  "concurrently": "9.0.1",
71
70
  "del-cli": "6.0.0",