@nibssplc/cams-sdk-react 0.0.1-beta.8 → 0.0.1-beta.80
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/README.md +239 -104
- package/dist/components/ADLoginModal.d.ts +7 -0
- package/dist/components/AuthFailureAnimation.d.ts +5 -0
- package/dist/components/AuthSuccessAnimation.d.ts +5 -0
- package/dist/components/CAMSMSALProvider.d.ts +16 -0
- package/dist/components/CAMSProvider.d.ts +13 -0
- package/dist/components/ClientOnly.d.ts +6 -0
- package/dist/components/DefaultLoginPage.d.ts +2 -0
- package/dist/components/ErrorFallback.d.ts +5 -0
- package/dist/components/GenericOTP.d.ts +13 -0
- package/dist/components/Loading.d.ts +6 -0
- package/dist/components/MFAGate.d.ts +8 -0
- package/dist/components/MFAOptions.d.ts +7 -0
- package/dist/components/ProtectedRoute.d.ts +7 -0
- package/dist/components/UnifiedCAMSProvider.d.ts +22 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/dialog.d.ts +15 -0
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/context/CAMSContext.d.ts +19 -0
- package/dist/hooks/useCAMSAuth.d.ts +24 -0
- package/dist/hooks/useCAMSMSALAuth.d.ts +30 -0
- package/dist/hooks/useCAMSPopupAuth.d.ts +17 -0
- package/dist/hooks/useOTPHandler.d.ts +17 -0
- package/dist/index.cjs.js +2067 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.esm.js +2028 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/utils/DeviceID.d.ts +1 -0
- package/dist/utils/cookies.d.ts +3 -0
- package/package.json +36 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GenerateDeviceId: () => string;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nibssplc/cams-sdk-react",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.80",
|
|
4
4
|
"description": "React hooks and components for NIBSS CAMS SDK",
|
|
5
|
-
"main": "dist/index.cjs.js",
|
|
6
|
-
"module": "dist/index.esm.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "./dist/index.cjs.js",
|
|
6
|
+
"module": "./dist/index.esm.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"clean": "rm -rf dist || true",
|
|
18
|
-
"build": "
|
|
18
|
+
"build": "npm run clean && rollup -c",
|
|
19
19
|
"lint": "eslint src --ext .ts,.tsx",
|
|
20
20
|
"test": "npx jest --verbose"
|
|
21
21
|
},
|
|
@@ -29,8 +29,25 @@
|
|
|
29
29
|
"author": "NIBSS PLC, Caleb Boluwade",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
32
|
+
"@hookform/resolvers": "^5.2.2",
|
|
33
|
+
"@nibssplc/cams-sdk": "^0.0.1-beta.36",
|
|
34
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
35
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
36
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
37
|
+
"axios": "^1.12.2",
|
|
38
|
+
"class-variance-authority": "^0.7.1",
|
|
39
|
+
"clsx": "^2.1.1",
|
|
40
|
+
"framer-motion": "^12.23.22",
|
|
41
|
+
"input-otp": "^1.4.2",
|
|
42
|
+
"ldrs": "^1.1.7",
|
|
43
|
+
"lucide-react": "^0.544.0",
|
|
44
|
+
"motion": "^12.23.22",
|
|
45
|
+
"react-hook-form": "^7.63.0",
|
|
46
|
+
"sonner": "^2.0.7",
|
|
47
|
+
"tailwind": "^4.0.0",
|
|
48
|
+
"tailwind-merge": "^3.3.1",
|
|
49
|
+
"tslib": "^2.6.0",
|
|
50
|
+
"zod": "^4.1.11"
|
|
34
51
|
},
|
|
35
52
|
"optionalDependencies": {
|
|
36
53
|
"@azure/msal-browser": "^3.0.0",
|
|
@@ -42,15 +59,21 @@
|
|
|
42
59
|
},
|
|
43
60
|
"devDependencies": {
|
|
44
61
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
62
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
45
63
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
46
64
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
47
|
-
"@testing-library/jest-dom": "^6.
|
|
48
|
-
"@testing-library/react": "^
|
|
49
|
-
"@types/react": "^
|
|
50
|
-
"@types/react-dom": "^
|
|
51
|
-
"
|
|
52
|
-
"
|
|
65
|
+
"@testing-library/jest-dom": "^6.8.0",
|
|
66
|
+
"@testing-library/react": "^16.3.0",
|
|
67
|
+
"@types/react": "^19",
|
|
68
|
+
"@types/react-dom": "^19",
|
|
69
|
+
"jest": "^29.7.0",
|
|
70
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
71
|
+
"postcss": "^8.5.6",
|
|
72
|
+
"react": "^19.1.0",
|
|
73
|
+
"react-dom": "^19.1.0",
|
|
53
74
|
"rollup": "^4.21.1",
|
|
75
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
76
|
+
"ts-jest": "^29.4.4",
|
|
54
77
|
"typescript": "^5.4.5"
|
|
55
78
|
},
|
|
56
79
|
"files": [
|