@seamless-auth/react 0.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.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * isValidEmail
3
+ *
4
+ * Determine if the given string is a valid phone number or not
5
+ * @param email An email to validate
6
+ * @returns boolean - Is the email valid or not
7
+ */
8
+ export declare const isValidEmail: (email: string) => boolean;
9
+ /**
10
+ * isValidPhoneNumber
11
+ *
12
+ * Determine if the given string is a valid phone number or not
13
+ * @param phone A phone number
14
+ * @returns {boolean} - Is the phone number valid or not
15
+ */
16
+ export declare const isValidPhoneNumber: (phone: string) => boolean;
17
+ /**
18
+ * Check for Passkey support
19
+ * @returns {boolean} - If the current context supports passkeys
20
+ */
21
+ export declare function isPasskeySupported(): Promise<boolean>;
package/package.json ADDED
@@ -0,0 +1,110 @@
1
+ {
2
+ "name": "@seamless-auth/react",
3
+ "version": "0.0.1",
4
+ "description": "A drop in authentication solution for react applications.",
5
+ "module": "dist/index.es.js",
6
+ "types": "dist/index.d.ts",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.es.js",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "engines": {
20
+ "npm": ">=9.0.0 <12.0.0",
21
+ "node": ">=20.0.0 <23.0.0"
22
+ },
23
+ "scripts": {
24
+ "test": "jest",
25
+ "test-build": "rollup -c",
26
+ "build": "rimraf dist && tsc && rollup -c",
27
+ "prepare": "npm run build",
28
+ "check-npm-build": "npm pack --dry-run",
29
+ "lint": "eslint ./src/"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/fells-code/seamless-auth-react.git"
34
+ },
35
+ "author": "Brandon Corbett <brandon.corbett@fellscode.com>",
36
+ "license": "ISC",
37
+ "bugs": {
38
+ "url": "https://github.com/fells-code/seamless-auth-react/issues"
39
+ },
40
+ "homepage": "https://github.com/fells-code/seamless-auth-react#readme",
41
+ "peerDependencies": {
42
+ "react": "^18.0.0 || ^19.0.0",
43
+ "react-dom": "^18.0.0 || ^19.0.0",
44
+ "react-router-dom": "^6.4.0 || ^7.0.0"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/cli": "^7.24.8",
48
+ "@babel/core": "^7.25.2",
49
+ "@babel/plugin-transform-runtime": "^7.27.1",
50
+ "@babel/preset-env": "^7.25.4",
51
+ "@babel/preset-react": "^7.24.7",
52
+ "@babel/preset-typescript": "^7.27.1",
53
+ "@eslint/js": "^9.17.0",
54
+ "@rollup/plugin-babel": "^6.0.4",
55
+ "@rollup/plugin-commonjs": "^26.0.1",
56
+ "@rollup/plugin-node-resolve": "^15.2.3",
57
+ "@rollup/plugin-terser": "^0.4.4",
58
+ "@rollup/plugin-typescript": "^11.1.6",
59
+ "@semantic-release/changelog": "^6.0.3",
60
+ "@semantic-release/commit-analyzer": "^13.0.1",
61
+ "@semantic-release/github": "^11.0.3",
62
+ "@semantic-release/npm": "^12.0.1",
63
+ "@semantic-release/release-notes-generator": "^14.0.3",
64
+ "@testing-library/jest-dom": "^6.6.3",
65
+ "@testing-library/react": "^16.0.1",
66
+ "@types/jest": "^29.5.12",
67
+ "@types/react": "^18.3.4",
68
+ "@types/react-dom": "^18.3.0",
69
+ "@types/validator": "^13.15.0",
70
+ "eslint": "^9.17.0",
71
+ "eslint-plugin-import": "^2.31.0",
72
+ "eslint-plugin-jsdoc": "^50.6.3",
73
+ "eslint-plugin-react": "^7.37.3",
74
+ "eslint-plugin-simple-import-sort": "^12.1.1",
75
+ "globals": "^15.14.0",
76
+ "identity-obj-proxy": "^3.0.0",
77
+ "jest": "^29.7.0",
78
+ "jest-environment-jsdom": "^29.7.0",
79
+ "postcss": "^8.5.3",
80
+ "postcss-import": "^16.1.0",
81
+ "postcss-modules": "^6.0.1",
82
+ "postcss-url": "^10.1.3",
83
+ "react": "^18.3.1",
84
+ "react-dom": "^18.3.1",
85
+ "rimraf": "^6.0.1",
86
+ "rollup": "^4.0.0",
87
+ "rollup-plugin-peer-deps-external": "^2.2.4",
88
+ "rollup-plugin-postcss": "^4.0.2",
89
+ "semantic-release": "^24.2.5",
90
+ "ts-jest": "^29.2.5",
91
+ "ts-node": "^10.9.2",
92
+ "tslib": "^2.7.0",
93
+ "typescript": "^5.5.4",
94
+ "typescript-eslint": "^8.18.2"
95
+ },
96
+ "dependencies": {
97
+ "@babel/runtime": "^7.27.1",
98
+ "@simplewebauthn/browser": "^13.1.0",
99
+ "libphonenumber-js": "^1.12.7",
100
+ "validator": "^13.15.0"
101
+ },
102
+ "sideEffects": true,
103
+ "typesVersions": {
104
+ "*": {
105
+ "*": [
106
+ "dist/index.d.ts"
107
+ ]
108
+ }
109
+ }
110
+ }