@archbase/security 3.0.0 → 3.0.2

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 (45) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/src/ArchbaseAccessToken.d.ts +1 -0
  3. package/dist/src/ArchbaseAccessTokenService.d.ts +11 -0
  4. package/dist/src/ArchbaseApiTokenService.d.ts +12 -0
  5. package/dist/src/ArchbaseAuthenticator.d.ts +24 -0
  6. package/dist/src/ArchbaseGroupService.d.ts +10 -0
  7. package/dist/src/ArchbaseLogin.d.ts +30 -0
  8. package/dist/src/ArchbaseProfileService.d.ts +10 -0
  9. package/dist/src/ArchbaseResetPassword.d.ts +14 -0
  10. package/dist/src/ArchbaseResourceService.d.ts +16 -0
  11. package/dist/src/ArchbaseSecurityComponents.d.ts +40 -0
  12. package/dist/src/ArchbaseSecurityContext.d.ts +41 -0
  13. package/dist/src/ArchbaseSecurityHooks.d.ts +24 -0
  14. package/dist/src/ArchbaseSecurityManager.d.ts +58 -0
  15. package/dist/src/ArchbaseTenantManager.d.ts +22 -0
  16. package/dist/src/ArchbaseTokenManager.d.ts +1 -0
  17. package/dist/src/ArchbaseUser.d.ts +19 -0
  18. package/dist/src/ArchbaseUserService.d.ts +11 -0
  19. package/dist/src/DefaultArchbaseTokenManager.d.ts +20 -0
  20. package/dist/src/SecurityDomain.d.ts +221 -0
  21. package/dist/src/SecurityType.d.ts +5 -0
  22. package/dist/src/examples/ContextualAuthenticationExample.d.ts +113 -0
  23. package/dist/src/examples/SecurityExample.d.ts +2 -0
  24. package/dist/src/hooks/index.d.ts +5 -0
  25. package/dist/src/hooks/useArchbaseAuthenticationManager.d.ts +36 -0
  26. package/dist/src/hooks/useArchbaseGetCurrentToken.d.ts +4 -0
  27. package/dist/src/hooks/useArchbaseGetLoggedUser.d.ts +2 -0
  28. package/dist/src/hooks/useArchbaseResetPassword.d.ts +8 -0
  29. package/dist/src/hooks/useArchbaseSecurityManager.d.ts +11 -0
  30. package/dist/src/index.d.ts +27 -0
  31. package/dist/src/oauth2/AuthContext.d.ts +4 -0
  32. package/dist/src/oauth2/Types.d.ts +108 -0
  33. package/dist/src/oauth2/authConfig.d.ts +3 -0
  34. package/dist/src/oauth2/authentication.d.ts +9 -0
  35. package/dist/src/oauth2/decodeJWT.d.ts +5 -0
  36. package/dist/src/oauth2/errors.d.ts +5 -0
  37. package/dist/src/oauth2/hooks.d.ts +2 -0
  38. package/dist/src/oauth2/httpUtils.d.ts +2 -0
  39. package/dist/src/oauth2/index.d.ts +10 -0
  40. package/dist/src/oauth2/pkceUtils.d.ts +6 -0
  41. package/dist/src/oauth2/timeUtils.d.ts +9 -0
  42. package/dist/src/types/ArchbaseSecurityTypes.d.ts +50 -0
  43. package/dist/src/types/ContextualAuthentication.d.ts +160 -0
  44. package/package.json +23 -22
  45. package/dist/archbase-security-3.0.0.tgz +0 -0
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@archbase/security",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Security and authentication components for Archbase React",
5
- "main": "dist/index.js",
6
- "module": "dist/index.js",
7
- "types": "dist/index.d.ts",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
@@ -25,41 +25,42 @@
25
25
  "author": "Edson Martins",
26
26
  "license": "MIT",
27
27
  "dependencies": {
28
- "react": "^19.0.0",
29
- "react-dom": "^19.0.0",
30
- "react-i18next": "^15.1.2",
28
+ "@archbase/components": "3.0.2",
29
+ "@archbase/core": "3.0.2",
30
+ "@archbase/data": "3.0.2",
31
+ "@archbase/layout": "3.0.2",
32
+ "crypto-js": "^4.1.1",
31
33
  "i18next": "^25.3.1",
32
- "lodash": "4.17.21",
33
34
  "inversify": "^6.0.1",
34
- "reflect-metadata": "^0.1.13",
35
- "crypto-js": "^4.1.1",
36
- "jwt-decode": "^4.0.0",
37
35
  "inversify-react": "^1.1.0",
36
+ "jwt-decode": "^4.0.0",
37
+ "lodash": "4.17.21",
38
+ "react": "^19.2.3",
39
+ "react-dom": "^19.2.3",
40
+ "react-i18next": "^15.1.2",
41
+ "reflect-metadata": "^0.1.13",
38
42
  "rxjs": "^7.8.2",
39
- "uuid": "^9.0.1",
40
- "@archbase/core": "3.0.0",
41
- "@archbase/data": "3.0.0",
42
- "@archbase/components": "3.0.0",
43
- "@archbase/layout": "3.0.0"
43
+ "uuid": "^9.0.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/react": "^19.0.0",
47
- "@types/react-dom": "^19.0.0",
48
- "@types/lodash": "^4.14.200",
49
46
  "@types/crypto-js": "^4.1.1",
47
+ "@types/lodash": "^4.14.200",
48
+ "@types/react": "^19.0.6",
49
+ "@types/react-dom": "^19.0.2",
50
50
  "typescript": "^5.7.0",
51
51
  "vite": "^6.3.5",
52
+ "vite-plugin-dts": "^4.5.4",
52
53
  "vitest": "^2.0.0"
53
54
  },
54
55
  "peerDependencies": {
55
- "react": ">=18.0.0",
56
- "react-dom": ">=18.0.0",
57
56
  "@mantine/core": "8.3.12",
58
57
  "@mantine/dates": "8.3.12",
59
58
  "@mantine/hooks": "8.3.12",
60
59
  "@mantine/modals": "8.3.12",
61
60
  "@mantine/notifications": "8.3.12",
62
- "@tabler/icons-react": "^3.27.0"
61
+ "@tabler/icons-react": "^3.27.0",
62
+ "react": ">=18.0.0",
63
+ "react-dom": ">=18.0.0"
63
64
  },
64
65
  "scripts": {
65
66
  "build": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build",
Binary file