@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.
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js +15 -17
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +23 -27
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +2 -2
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +4 -7
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +2 -2
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +9 -4
- package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -1
- package/dist/bundle/ProcaptchaWidget-CCSN3Dxj.js +636 -0
- package/dist/bundle/{ProcaptchaWidget-Dnwno-4N.js → ProcaptchaWidget-Dfex8hc8.js} +4 -4
- package/dist/bundle/{asU8a-JliaME7-.js → asU8a-CAsEnbuP.js} +1 -1
- package/dist/bundle/{bip39-CFjno8fK.js → bip39-DCaMcFzo.js} +2 -2
- package/dist/bundle/{captchaComponentProvider-dcMua0p9.js → captchaComponentProvider-Dm44AMrY.js} +23 -18
- package/dist/bundle/captchaRenderer-BBodRhQu.js +70 -0
- package/dist/bundle/{emotion-element-5486c51c.browser.esm-Bywq83R5.js → emotion-element-5486c51c.browser.esm-CQHFV-dS.js} +711 -746
- package/dist/bundle/{fp.esm-C0kLYOiJ.js → fp.esm-DYWeNGcH.js} +17 -0
- package/dist/bundle/{hash-CtL1HOjf.js → hash-D-64Vz5z.js} +1 -1
- package/dist/bundle/{captchaRenderer-D-du50M4.js → index-9I1Aae33.js} +1293 -1355
- package/dist/bundle/index-DCHEbWAs.js +1242 -0
- package/dist/bundle/{index-DcG_c-Na.js → index-DkQ4njKa.js} +12 -12
- package/dist/bundle/{index-BTlHNFX8.js → index-DxswvPTy.js} +285 -183
- package/dist/bundle/{index-BMjJnq60.js → index-nNwZuute.js} +252 -252
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/locales/de/translation.json +55 -405
- package/dist/bundle/locales/en/translation.json +55 -405
- package/dist/bundle/locales/es/translation.json +55 -405
- package/dist/bundle/locales/fr/translation.json +55 -405
- package/dist/bundle/locales/it/translation.json +55 -405
- package/dist/bundle/locales/pt/translation.json +55 -405
- package/dist/bundle/locales/pt-BR/translation.json +55 -405
- package/dist/bundle/procaptcha.bundle.js +1 -1
- package/dist/bundle/{useTranslation-7b6JJ18N.js → useTranslation-CEt2t9kE.js} +1 -1
- package/dist/bundle/util/captcha/captchaRenderer.d.ts +2 -2
- package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/dist/bundle/util/widgetFactory.d.ts +2 -2
- package/dist/bundle/util/widgetFactory.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -17
- package/dist/index.js.map +1 -1
- package/dist/tests/util/renderLogic.test.js +23 -27
- package/dist/tests/util/renderLogic.test.js.map +1 -1
- package/dist/util/captcha/captchaRenderer.d.ts +2 -2
- package/dist/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/dist/util/captcha/captchaRenderer.js +4 -7
- package/dist/util/captcha/captchaRenderer.js.map +1 -1
- package/dist/util/widgetFactory.d.ts +2 -2
- package/dist/util/widgetFactory.d.ts.map +1 -1
- package/dist/util/widgetFactory.js +9 -4
- package/dist/util/widgetFactory.js.map +1 -1
- package/package.json +20 -14
- package/stats.html +1 -1
- package/vite.config.ts +18 -3
- package/vite.serve.config.ts +24 -0
- package/dist/bundle/ProcaptchaWidget-BlWWnPeB.js +0 -615
- package/dist/bundle/index-B8oMghZ3.js +0 -1120
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ProcaptchaPow } from "@prosopo/procaptcha-pow";
|
|
3
|
-
import { ProcaptchaConfigSchema } from "@prosopo/types";
|
|
3
|
+
import { ProcaptchaConfigSchema, } from "@prosopo/types";
|
|
4
4
|
import { JSDOM } from "jsdom";
|
|
5
5
|
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
6
6
|
import { WidgetFactory } from "../../util/widgetFactory.js";
|
|
7
7
|
import { WidgetThemeResolver } from "../../util/widgetThemeResolver.js";
|
|
8
8
|
const widgetFactory = new WidgetFactory(new WidgetThemeResolver());
|
|
9
|
+
const callbacks = {
|
|
10
|
+
onHuman: () => console.log("onHuman"),
|
|
11
|
+
onChallengeExpired: () => console.log("onChallengeExpired"),
|
|
12
|
+
onExpired: () => console.log("onExpired"),
|
|
13
|
+
onError: () => console.log("onError"),
|
|
14
|
+
onClose: () => console.log("onClose"),
|
|
15
|
+
onOpen: () => console.log("onOpen"),
|
|
16
|
+
onFailed: () => console.log("onFailed"),
|
|
17
|
+
onReset: () => console.log("onReset"),
|
|
18
|
+
onExtensionNotFound: () => console.log("onExtensionNotFound"),
|
|
19
|
+
onReload: () => console.log("onReload"),
|
|
20
|
+
};
|
|
9
21
|
vi.mock("@prosopo/detector", async () => {
|
|
10
22
|
return {
|
|
11
23
|
isBot: async () => {
|
|
@@ -81,37 +93,21 @@ describe("Config utility functions", () => {
|
|
|
81
93
|
script["data-failed-callback"] = "onFailed";
|
|
82
94
|
script["data-reset-callback"] = "onReset";
|
|
83
95
|
document.body.appendChild(script);
|
|
84
|
-
const onHuman = () => console.log("onHuman");
|
|
85
|
-
const onChallengeExpired = () => console.log("onChallengeExpired");
|
|
86
|
-
const onExpired = () => console.log("onExpired");
|
|
87
|
-
const onError = () => console.log("onError");
|
|
88
|
-
const onClose = () => console.log("onClose");
|
|
89
|
-
const onOpen = () => console.log("onOpen");
|
|
90
|
-
const onFailed = () => console.log("onFailed");
|
|
91
|
-
const onReset = () => console.log("onReset");
|
|
92
96
|
expect(ctx.window).toBeDefined();
|
|
93
97
|
if (!ctx.window) {
|
|
94
98
|
expect(true).toBe(false);
|
|
95
99
|
return;
|
|
96
100
|
}
|
|
97
|
-
ctx.window.onHuman = onHuman;
|
|
98
|
-
ctx.window.onChallengeExpired = onChallengeExpired;
|
|
99
|
-
ctx.window.onExpired = onExpired;
|
|
100
|
-
ctx.window.onError = onError;
|
|
101
|
-
ctx.window.onClose = onClose;
|
|
102
|
-
ctx.window.onOpen = onOpen;
|
|
103
|
-
ctx.window.onFailed = onFailed;
|
|
104
|
-
ctx.window.onReset = onReset;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
onChallengeExpired,
|
|
108
|
-
onExpired,
|
|
109
|
-
onError,
|
|
110
|
-
onClose,
|
|
111
|
-
onOpen,
|
|
112
|
-
onFailed,
|
|
113
|
-
onReset,
|
|
114
|
-
};
|
|
101
|
+
ctx.window.onHuman = callbacks.onHuman;
|
|
102
|
+
ctx.window.onChallengeExpired = callbacks.onChallengeExpired;
|
|
103
|
+
ctx.window.onExpired = callbacks.onExpired;
|
|
104
|
+
ctx.window.onError = callbacks.onError;
|
|
105
|
+
ctx.window.onClose = callbacks.onClose;
|
|
106
|
+
ctx.window.onOpen = callbacks.onOpen;
|
|
107
|
+
ctx.window.onFailed = callbacks.onFailed;
|
|
108
|
+
ctx.window.onReset = callbacks.onReset;
|
|
109
|
+
ctx.window.onExtensionNotFound = callbacks.onExtensionNotFound;
|
|
110
|
+
ctx.window.onReload = callbacks.onReload;
|
|
115
111
|
const config = ProcaptchaConfigSchema.parse({
|
|
116
112
|
account: { address: "1234" },
|
|
117
113
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderLogic.test.js","sourceRoot":"","sources":["../../../src/tests/util/renderLogic.test.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"renderLogic.test.js","sourceRoot":"","sources":["../../../src/tests/util/renderLogic.test.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAEN,sBAAsB,GAEtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAkB,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC;AAOnE,MAAM,SAAS,GAAc;IAC5B,OAAO,EAAE,GAAG,E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AE,MAAM;YACf,WAAW,EAAE,KAAK;SAClB,CAAC,CAAC;QAIH,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;YACrB,MAAM,CAAC,aAAa,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAG/C,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACzC,MAAM,KAAK,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;YAEpC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -14,8 +14,8 @@ interface RenderSettings {
|
|
|
14
14
|
declare class CaptchaRenderer {
|
|
15
15
|
private readonly captchaComponentProvider;
|
|
16
16
|
constructor(captchaComponentProvider: CaptchaComponentProvider);
|
|
17
|
-
renderCaptcha(settings: RenderSettings, container: HTMLElement, renderOptions: ProcaptchaRenderOptions, isWeb2: boolean, i18n: Ti18n, invisible?: boolean): Root;
|
|
18
|
-
protected readAndValidateSettings(element: Element,
|
|
17
|
+
renderCaptcha(settings: RenderSettings, container: HTMLElement, renderOptions: ProcaptchaRenderOptions, callbacks: Callbacks, isWeb2: boolean, i18n: Ti18n, invisible?: boolean): Root;
|
|
18
|
+
protected readAndValidateSettings(element: Element, config: ProcaptchaClientConfigOutput, renderOptions: ProcaptchaRenderOptions): void;
|
|
19
19
|
protected makeEmotionCache(cacheKey: string, container: HTMLElement): EmotionCache;
|
|
20
20
|
protected createReactRoot(container: HTMLElement, identifierPrefix: string): Root;
|
|
21
21
|
protected renderCaptchaComponent(reactRoot: Root, emotionCache: EmotionCache, captchaComponent: ReactNode): void;
|
|
@@ -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;
|
|
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,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"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import createCache from "@emotion/cache";
|
|
3
3
|
import { CacheProvider } from "@emotion/react";
|
|
4
|
-
import { getDefaultCallbacks, setUserCallbacks, } from "@prosopo/procaptcha-common";
|
|
5
4
|
import { createRoot } from "react-dom/client";
|
|
6
5
|
import { createConfig } from "../configCreator.js";
|
|
7
6
|
import { setLanguage } from "../language.js";
|
|
@@ -10,24 +9,22 @@ class CaptchaRenderer {
|
|
|
10
9
|
constructor(captchaComponentProvider) {
|
|
11
10
|
this.captchaComponentProvider = captchaComponentProvider;
|
|
12
11
|
}
|
|
13
|
-
renderCaptcha(settings, container, renderOptions, isWeb2, i18n, invisible = false) {
|
|
14
|
-
const callbacks = getDefaultCallbacks(container);
|
|
12
|
+
renderCaptcha(settings, container, renderOptions, callbacks, isWeb2, i18n, invisible = false) {
|
|
15
13
|
const captchaType = renderOptions?.captchaType ||
|
|
16
14
|
settings.defaultCaptchaType;
|
|
17
15
|
const config = createConfig(renderOptions.siteKey, renderOptions.theme, renderOptions.language, isWeb2, invisible);
|
|
18
|
-
this.readAndValidateSettings(container,
|
|
16
|
+
this.readAndValidateSettings(container, config, renderOptions);
|
|
19
17
|
const reactRoot = this.createReactRoot(container, settings.identifierPrefix);
|
|
20
18
|
const emotionCache = this.makeEmotionCache(settings.emotionCacheKey, container);
|
|
21
19
|
const captchaComponent = this.captchaComponentProvider.getCaptchaComponent(captchaType, {
|
|
22
20
|
config: config,
|
|
23
|
-
callbacks: callbacks,
|
|
24
21
|
i18n: i18n,
|
|
22
|
+
callbacks,
|
|
25
23
|
});
|
|
26
24
|
this.renderCaptchaComponent(reactRoot, emotionCache, captchaComponent);
|
|
27
25
|
return reactRoot;
|
|
28
26
|
}
|
|
29
|
-
readAndValidateSettings(element,
|
|
30
|
-
setUserCallbacks(renderOptions, callbacks, element);
|
|
27
|
+
readAndValidateSettings(element, config, renderOptions) {
|
|
31
28
|
setValidChallengeLength(renderOptions, element, config);
|
|
32
29
|
setLanguage(renderOptions, element, config);
|
|
33
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captchaRenderer.js","sourceRoot":"","sources":["../../../src/util/captcha/captchaRenderer.tsx"],"names":[],"mappings":";AAcA,OAAO,WAAkC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"captchaRenderer.js","sourceRoot":"","sources":["../../../src/util/captcha/captchaRenderer.tsx"],"names":[],"mappings":";AAcA,OAAO,WAAkC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAS/C,OAAO,EAAa,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAUxD,MAAM,eAAe;IAGpB,YAAY,wBAAkD;QAC7D,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;IAC1D,CAAC;IAEM,aAAa,CACnB,QAAwB,EACxB,SAAsB,EACtB,aAAsC,EACtC,SAAoB,EACpB,M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,gBAAgB;SAClC,CAAC,CAAC;IACJ,CAAC;IAES,sBAAsB,CAC/B,SAAe,EACf,YAA0B,EAC1B,gBAA2B;QAE3B,SAAS,CAAC,MAAM,CACf,KAAC,aAAa,IAAC,KAAK,EAAE,YAAY,YAAG,gBAAgB,GAAiB,CACtE,CAAC;IACH,CAAC;CACD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Ti18n } from "@prosopo/locale";
|
|
2
|
-
import { type ProcaptchaRenderOptions } from "@prosopo/types";
|
|
2
|
+
import { type Callbacks, type ProcaptchaRenderOptions } from "@prosopo/types";
|
|
3
3
|
import type { Root } from "react-dom/client";
|
|
4
4
|
import type { CaptchaRenderer } from "./captcha/captchaRenderer.js";
|
|
5
5
|
import type { WidgetThemeResolver } from "./widgetThemeResolver.js";
|
|
@@ -10,7 +10,7 @@ declare class WidgetFactory {
|
|
|
10
10
|
constructor(widgetThemeResolver: WidgetThemeResolver);
|
|
11
11
|
get i18n(): Ti18n;
|
|
12
12
|
createWidgets(containers: Element[], renderOptions: ProcaptchaRenderOptions, isWeb2?: boolean, invisible?: boolean): Promise<Root[]>;
|
|
13
|
-
createWidget(container: Element, renderOptions: ProcaptchaRenderOptions, isWeb2?: boolean, invisible?: boolean): Promise<Root>;
|
|
13
|
+
createWidget(container: Element, renderOptions: ProcaptchaRenderOptions, callbacks: Callbacks, isWeb2?: boolean, invisible?: boolean): Promise<Root>;
|
|
14
14
|
protected getCaptchaRenderer(): Promise<CaptchaRenderer>;
|
|
15
15
|
protected createCaptchaRenderer(): Promise<CaptchaRenderer>;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetFactory.d.ts","sourceRoot":"","sources":["../../src/util/widgetFactory.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"widgetFactory.d.ts","sourceRoot":"","sources":["../../src/util/widgetFactory.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAK7C,OAAO,EACN,KAAK,SAAS,EAGd,KAAK,uBAAuB,EAC5B,MAAM,gBAAgB,CAAC;AAMxB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,cAAM,aAAa;IAKjB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAJrC,OAAO,CAAC,eAAe,CAAgC;IACvD,OAAO,CAAC,KAAK,CAAsB;gBAGjB,mBAAmB,EAAE,mBAAmB;IAG1D,IAAI,IAAI,IAAI,KAAK,CAKhB;IAEY,aAAa,CACzB,UAAU,EAAE,OAAO,EAAE,EACrB,aAAa,EAAE,uBAAuB,EACtC,MAAM,UAAO,EACb,SAAS,UAAQ,GACf,OAAO,CAAC,IAAI,EAAE,CAAC;IAgBL,YAAY,CACxB,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,uBAAuB,EACtC,SAAS,EAAE,SAAS,EACpB,MAAM,UAAO,EACb,SAAS,UAAQ,GACf,OAAO,CAAC,IAAI,CAAC;cA+CA,kBAAkB,IAAI,OAAO,CAAC,eAAe,CAAC;cAY9C,qBAAqB,IAAI,OAAO,CAAC,eAAe,CAAC;CAUjE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { loadI18next } from "@prosopo/locale";
|
|
2
|
-
import {
|
|
2
|
+
import { getDefaultCallbacks, setUserCallbacks, } from "@prosopo/procaptcha-common";
|
|
3
|
+
import { CaptchaType, } from "@prosopo/types";
|
|
3
4
|
import { createWidgetSkeleton, darkTheme, lightTheme, } from "@prosopo/widget-skeleton";
|
|
4
5
|
class WidgetFactory {
|
|
5
6
|
constructor(widgetThemeResolver) {
|
|
@@ -14,9 +15,13 @@ class WidgetFactory {
|
|
|
14
15
|
return this._i18n;
|
|
15
16
|
}
|
|
16
17
|
async createWidgets(containers, renderOptions, isWeb2 = true, invisible = false) {
|
|
17
|
-
return Promise.all(containers.map((container) =>
|
|
18
|
+
return Promise.all(containers.map((container) => {
|
|
19
|
+
const callbacks = getDefaultCallbacks(container);
|
|
20
|
+
setUserCallbacks(renderOptions, callbacks, container);
|
|
21
|
+
return this.createWidget(container, renderOptions, callbacks, isWeb2, invisible);
|
|
22
|
+
}));
|
|
18
23
|
}
|
|
19
|
-
async createWidget(container, renderOptions, isWeb2 = true, invisible = false) {
|
|
24
|
+
async createWidget(container, renderOptions, callbacks, isWeb2 = true, invisible = false) {
|
|
20
25
|
renderOptions.theme = this.widgetThemeResolver.resolveWidgetTheme(container, renderOptions);
|
|
21
26
|
const widgetTheme = "light" === renderOptions.theme ? lightTheme : darkTheme;
|
|
22
27
|
let widgetInteractiveArea;
|
|
@@ -34,7 +39,7 @@ class WidgetFactory {
|
|
|
34
39
|
emotionCacheKey: "procaptcha",
|
|
35
40
|
webComponentTag: "prosopo-procaptcha",
|
|
36
41
|
defaultCaptchaType: CaptchaType.frictionless,
|
|
37
|
-
}, widgetInteractiveArea, renderOptions, isWeb2, this.i18n, invisible);
|
|
42
|
+
}, widgetInteractiveArea, renderOptions, callbacks, isWeb2, this.i18n, invisible);
|
|
38
43
|
return captchaRoot;
|
|
39
44
|
}
|
|
40
45
|
async getCaptchaRenderer() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetFactory.js","sourceRoot":"","sources":["../../src/util/widgetFactory.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,
|
|
1
|
+
{"version":3,"file":"widgetFactory.js","sourceRoot":"","sources":["../../src/util/widgetFactory.ts"],"names":[],"mappings":"AAcA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e,CAAC;QAElB,MAAM,wBAAwB,GAAG,CAChC,MAAM,MAAM,CAAC,uCAAuC,CAAC,CACrD,CAAC,wBAAwB,CAAC;QAE3B,OAAO,IAAI,eAAe,CAAC,IAAI,wBAAwB,EAAE,CAAC,CAAC;IAC5D,CAAC;CACD;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/procaptcha-bundle",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.5",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,18 +29,19 @@
|
|
|
29
29
|
"build:cjs": "npx vite --config vite.cjs.config.ts build",
|
|
30
30
|
"start": "NODE_ENV=${NODE_ENV:-development}; vite serve --mode $NODE_ENV --host",
|
|
31
31
|
"bundle": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.config.ts --mode $NODE_ENV --debug",
|
|
32
|
-
"bundle:webpack": "NODE_ENV=${NODE_ENV:-production}; webpack build --config webpack.config.cjs --mode $NODE_ENV"
|
|
32
|
+
"bundle:webpack": "NODE_ENV=${NODE_ENV:-production}; webpack build --config webpack.config.cjs --mode $NODE_ENV",
|
|
33
|
+
"serve": "NODE_ENV=${NODE_ENV:-development}; vite serve --config vite.serve.config.ts --mode $NODE_ENV --host"
|
|
33
34
|
},
|
|
34
35
|
"browserslist": ["> 0.5%, last 2 versions, not dead"],
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@prosopo/dotenv": "2.5.
|
|
37
|
-
"@prosopo/locale": "2.5.
|
|
38
|
-
"@prosopo/procaptcha-frictionless": "2.5.
|
|
39
|
-
"@prosopo/procaptcha-pow": "2.5.
|
|
40
|
-
"@prosopo/procaptcha-react": "2.5.
|
|
41
|
-
"@prosopo/widget-skeleton": "2.5.
|
|
42
|
-
"@prosopo/types": "2.5.
|
|
43
|
-
"@prosopo/util": "2.5.
|
|
37
|
+
"@prosopo/dotenv": "2.5.5",
|
|
38
|
+
"@prosopo/locale": "2.5.5",
|
|
39
|
+
"@prosopo/procaptcha-frictionless": "2.5.5",
|
|
40
|
+
"@prosopo/procaptcha-pow": "2.5.5",
|
|
41
|
+
"@prosopo/procaptcha-react": "2.5.5",
|
|
42
|
+
"@prosopo/widget-skeleton": "2.5.5",
|
|
43
|
+
"@prosopo/types": "2.5.5",
|
|
44
|
+
"@prosopo/util": "2.5.5",
|
|
44
45
|
"express": "4.21.2",
|
|
45
46
|
"react": "18.3.1",
|
|
46
47
|
"react-dom": "18.3.1"
|
|
@@ -58,16 +59,21 @@
|
|
|
58
59
|
"registry": "https://registry.npmjs.org"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
|
-
"@prosopo/config": "2.5.
|
|
62
|
+
"@prosopo/config": "2.5.5",
|
|
62
63
|
"@types/jsdom": "21.1.7",
|
|
63
|
-
"@
|
|
64
|
+
"@types/react-dom": "18.3.1",
|
|
65
|
+
"@types/react": "18.3.1",
|
|
66
|
+
"@vitest/coverage-v8": "3.0.9",
|
|
64
67
|
"concurrently": "9.0.1",
|
|
65
68
|
"del-cli": "6.0.0",
|
|
66
69
|
"npm-run-all": "2.1.0",
|
|
67
70
|
"tslib": "2.7.0",
|
|
68
71
|
"tsx": "4.19.1",
|
|
69
72
|
"typescript": "5.6.2",
|
|
70
|
-
"vite": "
|
|
71
|
-
"vitest": "
|
|
73
|
+
"vite": "6.2.3",
|
|
74
|
+
"vitest": "3.0.9"
|
|
75
|
+
},
|
|
76
|
+
"overrides": {
|
|
77
|
+
"@types/react": "18.3.1"
|
|
72
78
|
}
|
|
73
79
|
}
|