@nibssplc/cams-sdk-react 0.0.1-beta.8 → 0.0.1-beta.82

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 (36) 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 +16 -0
  6. package/dist/components/CAMSProvider.d.ts +13 -0
  7. package/dist/components/ClientOnly.d.ts +6 -0
  8. package/dist/components/DefaultLoginPage.d.ts +2 -0
  9. package/dist/components/ErrorFallback.d.ts +5 -0
  10. package/dist/components/GenericOTP.d.ts +13 -0
  11. package/dist/components/Loading.d.ts +6 -0
  12. package/dist/components/MFAGate.d.ts +8 -0
  13. package/dist/components/MFAOptions.d.ts +7 -0
  14. package/dist/components/ProtectedRoute.d.ts +7 -0
  15. package/dist/components/UnifiedCAMSProvider.d.ts +22 -0
  16. package/dist/components/ui/button.d.ts +10 -0
  17. package/dist/components/ui/card.d.ts +9 -0
  18. package/dist/components/ui/dialog.d.ts +15 -0
  19. package/dist/components/ui/form.d.ts +24 -0
  20. package/dist/components/ui/input-otp.d.ts +11 -0
  21. package/dist/components/ui/input.d.ts +5 -0
  22. package/dist/components/ui/label.d.ts +4 -0
  23. package/dist/context/CAMSContext.d.ts +19 -0
  24. package/dist/hooks/useCAMSAuth.d.ts +24 -0
  25. package/dist/hooks/useCAMSMSALAuth.d.ts +30 -0
  26. package/dist/hooks/useCAMSPopupAuth.d.ts +17 -0
  27. package/dist/hooks/useOTPHandler.d.ts +17 -0
  28. package/dist/index.cjs.js +2063 -0
  29. package/dist/index.cjs.js.map +1 -0
  30. package/dist/index.d.ts +13 -0
  31. package/dist/index.esm.js +2024 -0
  32. package/dist/index.esm.js.map +1 -0
  33. package/dist/lib/utils.d.ts +2 -0
  34. package/dist/utils/DeviceID.d.ts +1 -0
  35. package/dist/utils/cookies.d.ts +3 -0
  36. package/package.json +36 -13
@@ -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,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,10 +1,10 @@
1
1
  {
2
2
  "name": "@nibssplc/cams-sdk-react",
3
- "version": "0.0.1-beta.8",
3
+ "version": "0.0.1-beta.82",
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": "tsc --outDir dist --declaration",
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
- "@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.37",
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": [