@prosopo/procaptcha-frictionless 2.0.0 → 2.0.1

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.
@@ -4,6 +4,6 @@ const jsxRuntime = require("@emotion/react/jsx-runtime");
4
4
  const webComponents = require("@prosopo/web-components");
5
5
  const react = require("react");
6
6
  const _interopNamespaceDefaultOnly = (e) => Object.freeze(Object.defineProperty({ __proto__: null, default: e }, Symbol.toStringTag, { value: "Module" }));
7
- const ProcaptchaWidget = react.lazy(async () => Promise.resolve().then(() => /* @__PURE__ */ _interopNamespaceDefaultOnly(require("./Captcha.cjs"))));
7
+ const ProcaptchaWidget = react.lazy(async () => Promise.resolve().then(() => /* @__PURE__ */ _interopNamespaceDefaultOnly(require("./ProcaptchaWidget.cjs"))));
8
8
  const ProcaptchaPow = (props) => jsxRuntime.jsx(react.Suspense, { fallback: jsxRuntime.jsx(webComponents.ProcaptchaPlaceholder, { darkMode: props.config.theme }), children: jsxRuntime.jsx(ProcaptchaWidget, { config: props.config, callbacks: props.callbacks }) });
9
9
  exports.ProcaptchaPow = ProcaptchaPow;
@@ -28,7 +28,11 @@ const Procaptcha = (props) => {
28
28
  form.removeEventListener("submit", handleSubmit);
29
29
  };
30
30
  }, []);
31
- return jsxRuntime.jsx("div", { ref: captchaRef, children: jsxRuntime.jsx("div", { style: { maxWidth: "100%", maxHeight: "100%", overflowX: "auto" }, children: jsxRuntime.jsx(webComponents.ContainerDiv, { children: jsxRuntime.jsx(webComponents.WidthBasedStylesDiv, { children: jsxRuntime.jsxs("div", { style: webComponents.WIDGET_DIMENSIONS, "data-cy": "button-human", children: [" ", jsxRuntime.jsxs("div", { style: {
31
+ return jsxRuntime.jsx("div", { ref: captchaRef, children: jsxRuntime.jsx("div", { style: {
32
+ maxWidth: webComponents.WIDGET_MAX_WIDTH,
33
+ maxHeight: "100%",
34
+ overflowX: "auto"
35
+ }, children: jsxRuntime.jsx(webComponents.ContainerDiv, { children: jsxRuntime.jsx(webComponents.WidthBasedStylesDiv, { children: jsxRuntime.jsxs("div", { style: webComponents.WIDGET_DIMENSIONS, "data-cy": "button-human", children: [" ", jsxRuntime.jsxs("div", { style: {
32
36
  padding: webComponents.WIDGET_PADDING,
33
37
  border: webComponents.WIDGET_BORDER,
34
38
  backgroundColor: theme.palette.background.default,
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- require("./components/Captcha.cjs");
3
+ require("./components/ProcaptchaWidget.cjs");
4
4
  const ProcaptchaPoW = require("./components/ProcaptchaPoW.cjs");
5
5
  exports.ProcaptchaPow = ProcaptchaPoW.ProcaptchaPow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-frictionless",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -24,17 +24,19 @@
24
24
  "build": "tsc --build --verbose",
25
25
  "build:cjs": "npx vite --config vite.cjs.config.ts build"
26
26
  },
27
- "browserslist": ["> 0.5%, last 2 versions, not dead"],
27
+ "browserslist": [
28
+ "> 0.5%, last 2 versions, not dead"
29
+ ],
28
30
  "dependencies": {
29
- "@prosopo/detector": "2.0.0",
30
- "@prosopo/procaptcha-pow": "2.0.0",
31
- "@prosopo/procaptcha-react": "2.0.0",
32
- "@prosopo/types": "2.0.0",
33
- "@prosopo/web-components": "2.0.0",
31
+ "@prosopo/detector": "2.0.1",
32
+ "@prosopo/procaptcha-pow": "2.0.1",
33
+ "@prosopo/procaptcha-react": "2.0.1",
34
+ "@prosopo/types": "2.0.1",
35
+ "@prosopo/web-components": "2.0.1",
34
36
  "react": "^18.3.1"
35
37
  },
36
38
  "devDependencies": {
37
- "@prosopo/config": "2.0.0",
39
+ "@prosopo/config": "2.0.1",
38
40
  "tslib": "2.6.2",
39
41
  "typescript": "5.1.6"
40
42
  },