@prosopo/react-procaptcha-integration-demo 1.1.44 → 1.1.77

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/react-procaptcha-integration-demo@1.1.44 build:cjs
2
+ > @prosopo/react-procaptcha-integration-demo@1.1.77 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
@@ -51,5 +51,5 @@ Build end
51
51
  rendering chunks...
52
52
  dist/cjs/index.cjs 0.07 kB
53
53
  dist/cjs/app.cjs 0.68 kB
54
- dist/cjs/integrationDemo.cjs 0.72 kB
55
- ✓ built in 195ms
54
+ dist/cjs/integrationDemo.cjs 0.69 kB
55
+ ✓ built in 137ms
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/react-procaptcha-integration-demo@1.1.44 build
2
+ > @prosopo/react-procaptcha-integration-demo@1.1.77 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/react-procaptcha-integration-demo@1.1.44 build:cross-env
6
+ > @prosopo/react-procaptcha-integration-demo@1.1.77 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
@@ -54,6 +54,6 @@ Build end
54
54
  ✓ 3 modules transformed.
55
55
  rendering chunks...
56
56
  dist/index.js 0.05 kB
57
+ dist/integrationDemo.js 0.53 kB
57
58
  dist/app.js 0.56 kB
58
- dist/integrationDemo.js 0.56 kB
59
- ✓ built in 186ms
59
+ ✓ built in 135ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,170 @@
1
1
  # @prosopo/react-procaptcha-integration-demo
2
2
 
3
+ ## 1.1.77
4
+ ### Patch Changes
5
+
6
+ - @prosopo/react-procaptcha-wrapper@1.1.77
7
+
8
+ ## 1.1.76
9
+ ### Patch Changes
10
+
11
+ - @prosopo/react-procaptcha-wrapper@1.1.76
12
+
13
+ ## 1.1.75
14
+ ### Patch Changes
15
+
16
+ - @prosopo/react-procaptcha-wrapper@1.1.75
17
+
18
+ ## 1.1.74
19
+ ### Patch Changes
20
+
21
+ - @prosopo/react-procaptcha-wrapper@1.1.74
22
+
23
+ ## 1.1.73
24
+ ### Patch Changes
25
+
26
+ - @prosopo/react-procaptcha-wrapper@1.1.73
27
+
28
+ ## 1.1.72
29
+ ### Patch Changes
30
+
31
+ - @prosopo/react-procaptcha-wrapper@1.1.72
32
+
33
+ ## 1.1.71
34
+ ### Patch Changes
35
+
36
+ - @prosopo/react-procaptcha-wrapper@1.1.71
37
+
38
+ ## 1.1.70
39
+ ### Patch Changes
40
+
41
+ - @prosopo/react-procaptcha-wrapper@1.1.70
42
+
43
+ ## 1.1.69
44
+ ### Patch Changes
45
+
46
+ - @prosopo/react-procaptcha-wrapper@1.1.69
47
+
48
+ ## 1.1.68
49
+ ### Patch Changes
50
+
51
+ - @prosopo/react-procaptcha-wrapper@1.1.68
52
+
53
+ ## 1.1.67
54
+ ### Patch Changes
55
+
56
+ - @prosopo/react-procaptcha-wrapper@1.1.67
57
+
58
+ ## 1.1.66
59
+ ### Patch Changes
60
+
61
+ - @prosopo/react-procaptcha-wrapper@1.1.66
62
+
63
+ ## 1.1.65
64
+ ### Patch Changes
65
+
66
+ - @prosopo/react-procaptcha-wrapper@1.1.65
67
+
68
+ ## 1.1.64
69
+ ### Patch Changes
70
+
71
+ - @prosopo/react-procaptcha-wrapper@1.1.64
72
+
73
+ ## 1.1.63
74
+ ### Patch Changes
75
+
76
+ - @prosopo/react-procaptcha-wrapper@1.1.63
77
+
78
+ ## 1.1.62
79
+ ### Patch Changes
80
+
81
+ - @prosopo/react-procaptcha-wrapper@1.1.62
82
+
83
+ ## 1.1.61
84
+ ### Patch Changes
85
+
86
+ - @prosopo/react-procaptcha-wrapper@1.1.61
87
+
88
+ ## 1.1.60
89
+ ### Patch Changes
90
+
91
+ - @prosopo/react-procaptcha-wrapper@1.1.60
92
+
93
+ ## 1.1.59
94
+ ### Patch Changes
95
+
96
+ - @prosopo/react-procaptcha-wrapper@1.1.59
97
+
98
+ ## 1.1.58
99
+ ### Patch Changes
100
+
101
+ - @prosopo/react-procaptcha-wrapper@1.1.58
102
+
103
+ ## 1.1.57
104
+ ### Patch Changes
105
+
106
+ - @prosopo/react-procaptcha-wrapper@1.1.57
107
+
108
+ ## 1.1.56
109
+ ### Patch Changes
110
+
111
+ - @prosopo/react-procaptcha-wrapper@1.1.56
112
+
113
+ ## 1.1.55
114
+ ### Patch Changes
115
+
116
+ - @prosopo/react-procaptcha-wrapper@1.1.55
117
+
118
+ ## 1.1.54
119
+ ### Patch Changes
120
+
121
+ - @prosopo/react-procaptcha-wrapper@1.1.54
122
+
123
+ ## 1.1.53
124
+ ### Patch Changes
125
+
126
+ - @prosopo/react-procaptcha-wrapper@1.1.53
127
+
128
+ ## 1.1.52
129
+ ### Patch Changes
130
+
131
+ - @prosopo/react-procaptcha-wrapper@1.1.52
132
+
133
+ ## 1.1.51
134
+ ### Patch Changes
135
+
136
+ - @prosopo/react-procaptcha-wrapper@1.1.51
137
+
138
+ ## 1.1.50
139
+ ### Patch Changes
140
+
141
+ - @prosopo/react-procaptcha-wrapper@1.1.50
142
+
143
+ ## 1.1.49
144
+ ### Patch Changes
145
+
146
+ - @prosopo/react-procaptcha-wrapper@1.1.49
147
+
148
+ ## 1.1.48
149
+ ### Patch Changes
150
+
151
+ - @prosopo/react-procaptcha-wrapper@1.1.48
152
+
153
+ ## 1.1.47
154
+ ### Patch Changes
155
+
156
+ - @prosopo/react-procaptcha-wrapper@1.1.47
157
+
158
+ ## 1.1.46
159
+ ### Patch Changes
160
+
161
+ - @prosopo/react-procaptcha-wrapper@1.1.46
162
+
163
+ ## 1.1.45
164
+ ### Patch Changes
165
+
166
+ - @prosopo/react-procaptcha-wrapper@1.1.45
167
+
3
168
  ## 1.1.44
4
169
  ### Patch Changes
5
170
 
@@ -8,7 +8,6 @@ const IntegrationDemoComponent = () => {
8
8
  reactProcaptchaWrapper.ProcaptchaComponent,
9
9
  {
10
10
  siteKey,
11
- captchaType: "pow",
12
11
  language: "en",
13
12
  callback: (token) => {
14
13
  console.log("verified", token);
@@ -6,7 +6,6 @@ const IntegrationDemoComponent = () => {
6
6
  ProcaptchaComponent,
7
7
  {
8
8
  siteKey,
9
- captchaType: "pow",
10
9
  language: "en",
11
10
  callback: (token) => {
12
11
  console.log("verified", token);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/react-procaptcha-integration-demo",
3
- "version": "1.1.44",
3
+ "version": "1.1.77",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^24",
@@ -25,12 +25,12 @@
25
25
  "clean": "del-cli --verbose dist tsconfig.tsbuildinfo"
26
26
  },
27
27
  "dependencies": {
28
- "@prosopo/react-procaptcha-wrapper": "1.1.44",
28
+ "@prosopo/react-procaptcha-wrapper": "1.1.77",
29
29
  "react": "18.3.1",
30
30
  "react-dom": "18.3.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@prosopo/config": "3.3.0",
33
+ "@prosopo/config": "3.3.1",
34
34
  "@prosopo/procaptcha-integration-build-config": "1.1.28",
35
35
  "@types/node": "22.10.2",
36
36
  "@vitejs/plugin-react": "5.1.0",
@@ -42,5 +42,10 @@
42
42
  "url": "https://github.com/prosopo/captcha/issues"
43
43
  },
44
44
  "homepage": "https://github.com/prosopo/captcha#readme",
45
- "sideEffects": false
45
+ "sideEffects": false,
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/prosopo/captcha.git",
49
+ "directory": "integration/frameworks/react/react-procaptcha-integration-demo"
50
+ }
46
51
  }
package/src/app.tsx ADDED
@@ -0,0 +1,36 @@
1
+ // Copyright 2021-2026 Prosopo (UK) Ltd.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ import ReactDOM from "react-dom/client";
15
+ import { IntegrationDemoComponent } from "./integrationDemo.js";
16
+
17
+ class App {
18
+ public render(): void {
19
+ const rootElement = document.querySelector("#root");
20
+
21
+ if (rootElement) {
22
+ this.renderProcaptcha(rootElement);
23
+ return;
24
+ }
25
+
26
+ throw new Error("root element is not found");
27
+ }
28
+
29
+ protected renderProcaptcha(rootElement: Element): void {
30
+ const reactRoot = ReactDOM.createRoot(rootElement);
31
+
32
+ reactRoot.render(<IntegrationDemoComponent />);
33
+ }
34
+ }
35
+
36
+ export { App };
package/src/index.ts ADDED
@@ -0,0 +1,17 @@
1
+ // Copyright 2021-2026 Prosopo (UK) Ltd.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ import { App } from "./app.js";
16
+
17
+ new App().render();
@@ -0,0 +1,39 @@
1
+ // Copyright 2021-2026 Prosopo (UK) Ltd.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ import { ProcaptchaComponent } from "@prosopo/react-procaptcha-wrapper";
16
+ import type { ReactNode } from "react";
17
+
18
+ const IntegrationDemoComponent = (): ReactNode => {
19
+ // @ts-expect-error Env variables will be read by Vite
20
+ const siteKey = import.meta.env.VITE_PROCAPTCHA_SITE_KEY || "";
21
+
22
+ return (
23
+ <ProcaptchaComponent
24
+ siteKey={siteKey}
25
+ language={"en"}
26
+ callback={(token: string): void => {
27
+ console.log("verified", token);
28
+ }}
29
+ htmlAttributes={{
30
+ className: "my-app__procaptcha",
31
+ style: {
32
+ maxWidth: "600px",
33
+ },
34
+ }}
35
+ />
36
+ );
37
+ };
38
+
39
+ export { IntegrationDemoComponent };
@@ -0,0 +1,21 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "./src",
5
+ "outDir": "./dist",
6
+ "module": "NodeNext",
7
+ "moduleResolution": "NodeNext"
8
+ },
9
+ "include": ["./src"],
10
+ "references": [
11
+ {
12
+ "path": "../../../../dev/config/tsconfig.cjs.json"
13
+ },
14
+ {
15
+ "path": "../react-procaptcha-wrapper"
16
+ },
17
+ {
18
+ "path": "../../../procaptcha-integration-build-config"
19
+ }
20
+ ]
21
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "./src",
5
+ "outDir": "./dist",
6
+ "module": "NodeNext",
7
+ "moduleResolution": "NodeNext"
8
+ },
9
+ "include": [
10
+ "./src",
11
+ "src/**/*.ts",
12
+ "src/**/*.tsx",
13
+ "src/**/*.json",
14
+ "src/**/*.d.ts"
15
+ ],
16
+ "references": [
17
+ {
18
+ "path": "../../../../dev/config/tsconfig.json"
19
+ },
20
+ {
21
+ "path": "../react-procaptcha-wrapper"
22
+ },
23
+ {
24
+ "path": "../../../procaptcha-integration-build-config"
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "emitDeclarationOnly": true,
5
+ "declaration": true,
6
+ "declarationMap": true,
7
+ "composite": false
8
+ }
9
+ }