@prosopo/react-procaptcha-integration-demo 1.0.0

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.
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ declare const IntegrationDemoComponent: () => ReactNode;
3
+ export { IntegrationDemoComponent };
4
+ //# sourceMappingURL=integrationDemo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrationDemo.d.ts","sourceRoot":"","sources":["../src/integrationDemo.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,QAAA,MAAM,wBAAwB,QAAO,SAoBpC,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
package/index.html ADDED
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+
7
+ <title>React Integration Demo</title>
8
+ </head>
9
+ <body>
10
+ <noscript>You need to enable JavaScript to run this app.</noscript>
11
+ <div id="root"></div>
12
+ <script type="module" src="src/index.ts"></script>
13
+ </body>
14
+ </html>
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@prosopo/react-procaptcha-integration-demo",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "engines": {
6
+ "node": "20",
7
+ "npm": "10.8.2"
8
+ },
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "scripts": {
12
+ "test": "echo \"No test specified\"",
13
+ "clean": "del-cli ./dist",
14
+ "build": "npx vite build",
15
+ "dev": "npx vite dev --port=9330"
16
+ },
17
+ "dependencies": {
18
+ "@prosopo/react-procaptcha-wrapper": "1.0.0",
19
+ "react": "18.3.1",
20
+ "react-dom": "18.3.1"
21
+ },
22
+ "devDependencies": {
23
+ "@prosopo/procaptcha-integration-build-config": "1.0.0",
24
+ "@vitejs/plugin-react": "4.3.4",
25
+ "del-cli": "6.0.0"
26
+ },
27
+ "author": "PROSOPO LIMITED <info@prosopo.io>",
28
+ "license": "Apache-2.0",
29
+ "bugs": {
30
+ "url": "https://github.com/prosopo/captcha/issues"
31
+ },
32
+ "homepage": "https://github.com/prosopo/captcha#readme",
33
+ "sideEffects": false
34
+ }
package/readme.md ADDED
@@ -0,0 +1,4 @@
1
+ # React Procaptcha Integration demo
2
+
3
+ It's a demo React application that showcases usage of `@prosopo/react-procaptcha-wrapper`, the React Procaptcha
4
+ integration component.
package/vite.config.ts ADDED
@@ -0,0 +1,24 @@
1
+ // Copyright 2021-2025 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 { createIntegrationViteConfig } from "@prosopo/procaptcha-integration-build-config";
16
+ import react from "@vitejs/plugin-react";
17
+
18
+ export default createIntegrationViteConfig({
19
+ name: "ReactProcaptchaIntegrationDemo",
20
+ directory: __dirname,
21
+ viteSettings: {
22
+ plugins: [react()],
23
+ },
24
+ });