@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.
Files changed (40) hide show
  1. package/README.md +239 -104
  2. package/dist/components/ADLoginModal.d.ts +7 -0
  3. package/dist/components/AuthFailureAnimation.d.ts +5 -0
  4. package/dist/components/AuthSuccessAnimation.d.ts +5 -0
  5. package/dist/components/CAMSMSALProvider.d.ts +13 -5
  6. package/dist/components/CAMSProvider.d.ts +6 -6
  7. package/dist/components/ClientOnly.d.ts +6 -0
  8. package/dist/components/CoreFIDO.d.ts +20 -0
  9. package/dist/components/DefaultLoginPage.d.ts +2 -0
  10. package/dist/components/ErrorFallback.d.ts +5 -0
  11. package/dist/components/GenericOTP.d.ts +13 -0
  12. package/dist/components/Loading.d.ts +6 -0
  13. package/dist/components/MFAGate.d.ts +7 -0
  14. package/dist/components/MFAOptions.d.ts +7 -0
  15. package/dist/components/ProtectedRoute.d.ts +1 -1
  16. package/dist/components/UnifiedCAMSProvider.d.ts +22 -0
  17. package/dist/components/ui/button.d.ts +10 -0
  18. package/dist/components/ui/card.d.ts +9 -0
  19. package/dist/components/ui/dialog.d.ts +15 -0
  20. package/dist/components/ui/form.d.ts +24 -0
  21. package/dist/components/ui/input-otp.d.ts +11 -0
  22. package/dist/components/ui/input.d.ts +5 -0
  23. package/dist/components/ui/label.d.ts +4 -0
  24. package/dist/context/CAMSContext.d.ts +19 -0
  25. package/dist/hooks/useCAMSAuth.d.ts +8 -1
  26. package/dist/hooks/useCAMSMSALAuth.d.ts +17 -10
  27. package/dist/hooks/useFIDOAuth.d.ts +9 -0
  28. package/dist/hooks/useOTPHandler.d.ts +30 -0
  29. package/dist/index.cjs.js +1991 -18008
  30. package/dist/index.cjs.js.map +1 -1
  31. package/dist/index.d.ts +10 -2
  32. package/dist/index.esm.js +1997 -18025
  33. package/dist/index.esm.js.map +1 -1
  34. package/dist/lib/utils.d.ts +2 -0
  35. package/dist/utils/DeviceID.d.ts +1 -0
  36. package/dist/utils/FIDO.d.ts +10 -0
  37. package/dist/utils/cookies.d.ts +3 -0
  38. package/package.json +32 -9
  39. package/dist/index.umd.js +0 -18258
  40. package/dist/index.umd.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -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;
@@ -0,0 +1,3 @@
1
+ export declare const setCookie: (name: string, value: string, days?: number) => void;
2
+ export declare const getCookie: (name: string) => string | null;
3
+ export declare const deleteCookie: (name: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nibssplc/cams-sdk-react",
3
- "version": "0.0.1-beta.9",
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
- "@nibssplc/cams-sdk": "^0.0.1-beta.30",
33
- "tslib": "^2.6.0"
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.0.0",
48
- "@testing-library/react": "^14.0.0",
49
- "@types/react": "^18.0.0",
50
- "@types/react-dom": "^18.0.0",
51
- "react": "^18.0.0",
52
- "react-dom": "^18.0.0",
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": [