@nibssplc/cams-sdk-react 0.0.1-beta.9 → 0.0.1-beta.90
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 +13 -5
- package/dist/components/CAMSProvider.d.ts +6 -6
- package/dist/components/ClientOnly.d.ts +6 -0
- package/dist/components/CoreFIDO.d.ts +20 -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 +7 -0
- package/dist/components/MFAOptions.d.ts +7 -0
- package/dist/components/ProtectedRoute.d.ts +1 -1
- 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 +8 -1
- package/dist/hooks/useCAMSMSALAuth.d.ts +17 -10
- package/dist/hooks/useFIDOAuth.d.ts +9 -0
- package/dist/hooks/useOTPHandler.d.ts +30 -0
- package/dist/index.cjs.js +1991 -18008
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.esm.js +1997 -18025
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/utils.d.ts +2 -0
- package/dist/utils/DeviceID.d.ts +1 -0
- package/dist/utils/FIDO.d.ts +10 -0
- package/dist/utils/cookies.d.ts +3 -0
- package/package.json +32 -9
- package/dist/index.umd.js +0 -18258
- package/dist/index.umd.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GenerateDeviceId: () => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a base64url-encoded string to an ArrayBuffer.
|
|
3
|
+
* @param base64url The base64url-encoded string
|
|
4
|
+
*/
|
|
5
|
+
export declare function base64urlToArrayBuffer(base64url: string): ArrayBuffer;
|
|
6
|
+
/**
|
|
7
|
+
* Converts an ArrayBuffer to a base64url-encoded string.
|
|
8
|
+
* @param buffer The ArrayBuffer to convert
|
|
9
|
+
*/
|
|
10
|
+
export declare function arrayBufferToBase64url(buffer: ArrayBuffer): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nibssplc/cams-sdk-react",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.90",
|
|
4
4
|
"description": "React hooks and components for NIBSS CAMS SDK",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -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.43",
|
|
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": [
|