@azure/msal-react 2.0.0-alpha.1 → 2.0.0-alpha.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 (38) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +144 -144
  3. package/dist/MsalContext.d.ts +10 -10
  4. package/dist/MsalContext.js +16 -16
  5. package/dist/MsalProvider.d.ts +9 -9
  6. package/dist/MsalProvider.js +131 -131
  7. package/dist/components/AuthenticatedTemplate.d.ts +8 -8
  8. package/dist/components/AuthenticatedTemplate.js +23 -23
  9. package/dist/components/MsalAuthenticationTemplate.d.ts +16 -16
  10. package/dist/components/MsalAuthenticationTemplate.js +33 -33
  11. package/dist/components/UnauthenticatedTemplate.d.ts +8 -8
  12. package/dist/components/UnauthenticatedTemplate.js +25 -25
  13. package/dist/components/withMsal.d.ts +11 -11
  14. package/dist/components/withMsal.js +17 -17
  15. package/dist/error/ReactAuthError.d.ts +16 -16
  16. package/dist/error/ReactAuthError.js +27 -27
  17. package/dist/hooks/useAccount.d.ts +7 -7
  18. package/dist/hooks/useAccount.js +33 -33
  19. package/dist/hooks/useIsAuthenticated.d.ts +6 -6
  20. package/dist/hooks/useIsAuthenticated.js +30 -30
  21. package/dist/hooks/useMsal.d.ts +5 -5
  22. package/dist/hooks/useMsal.js +8 -8
  23. package/dist/hooks/useMsalAuthentication.d.ts +18 -18
  24. package/dist/hooks/useMsalAuthentication.js +184 -184
  25. package/dist/index.d.ts +23 -23
  26. package/dist/index.js +1 -1
  27. package/dist/packageMetadata.d.ts +2 -2
  28. package/dist/packageMetadata.js +4 -4
  29. package/dist/types/AccountIdentifiers.d.ts +2 -2
  30. package/dist/utils/utilities.d.ts +17 -17
  31. package/dist/utils/utilities.js +60 -60
  32. package/package.json +65 -65
  33. package/dist/msal-react.cjs.development.js +0 -685
  34. package/dist/msal-react.cjs.development.js.map +0 -1
  35. package/dist/msal-react.cjs.production.min.js +0 -2
  36. package/dist/msal-react.cjs.production.min.js.map +0 -1
  37. package/dist/msal-react.esm.js +0 -667
  38. package/dist/msal-react.esm.js.map +0 -1
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
- {
2
- "name": "@azure/msal-react",
3
- "version": "2.0.0-alpha.1",
4
- "author": {
5
- "name": "Microsoft",
6
- "email": "nugetaad@microsoft.com",
7
- "url": "https://www.microsoft.com"
8
- },
9
- "license": "MIT",
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
13
- },
14
- "description": "Microsoft Authentication Library for React",
15
- "main": "dist/index.js",
16
- "typings": "dist/index.d.ts",
17
- "files": [
18
- "dist"
19
- ],
20
- "engines": {
21
- "node": ">=10"
22
- },
23
- "beachball": {
24
- "disallowedChangeTypes": []
25
- },
26
- "scripts": {
27
- "build": "rollup -c --strictDeprecations --bundleConfigAsCjs",
28
- "build:modules:watch": "rollup -cw --bundleConfigAsCjs",
29
- "test": "jest",
30
- "test:coverage": "jest --coverage",
31
- "lint": "cd ../../ && npm run lint:react",
32
- "lint:fix": "npm run lint -- -- --fix",
33
- "build:all": "npm run build:common && npm run build:browser && npm run build",
34
- "build:browser": "cd ../msal-browser && npm run build",
35
- "build:common": "cd ../msal-common && npm run build",
36
- "link:localDeps": "npx lerna bootstrap --scope @azure/msal-common --scope @azure/msal-browser --scope @azure/msal-react",
37
- "prepack": "npm run build:all",
38
- "format:check": "npx prettier --ignore-path .gitignore --check src test",
39
- "format:fix": "npx prettier --ignore-path .gitignore --write src test"
40
- },
41
- "peerDependencies": {
42
- "@azure/msal-browser": "^3.0.0-alpha.1",
43
- "react": "^16.8.0 || ^17 || ^18"
44
- },
45
- "module": "dist/msal-react.esm.js",
46
- "devDependencies": {
47
- "@azure/msal-browser": "^3.0.0-alpha.1",
48
- "@testing-library/jest-dom": "^5.11.5",
49
- "@testing-library/react": "^13.4.0",
50
- "@types/jest": "^27.0.0",
51
- "@types/react": "^17.0.2",
52
- "@types/react-dom": "^17.0.2",
53
- "jest": "^27.0.4",
54
- "prettier": "2.8.7",
55
- "react": "^18.2.0",
56
- "react-dom": "^18.2.0",
57
- "ts-jest": "^27.0.2",
58
- "tslib": "^2.0.0",
59
- "typescript": "^4.9.5"
60
- },
61
- "dependencies": {
62
- "@rollup/plugin-typescript": "^11.1.0",
63
- "rollup": "^3.20.2"
64
- }
65
- }
1
+ {
2
+ "name": "@azure/msal-react",
3
+ "version": "2.0.0-alpha.2",
4
+ "author": {
5
+ "name": "Microsoft",
6
+ "email": "nugetaad@microsoft.com",
7
+ "url": "https://www.microsoft.com"
8
+ },
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
13
+ },
14
+ "description": "Microsoft Authentication Library for React",
15
+ "main": "dist/index.js",
16
+ "typings": "dist/index.d.ts",
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "engines": {
21
+ "node": ">=10"
22
+ },
23
+ "beachball": {
24
+ "disallowedChangeTypes": []
25
+ },
26
+ "scripts": {
27
+ "build": "rollup -c --strictDeprecations --bundleConfigAsCjs",
28
+ "build:modules:watch": "rollup -cw --bundleConfigAsCjs",
29
+ "test": "jest",
30
+ "test:coverage": "jest --coverage",
31
+ "lint": "cd ../../ && npm run lint:react",
32
+ "lint:fix": "npm run lint -- -- --fix",
33
+ "build:all": "npm run build:common && npm run build:browser && npm run build",
34
+ "build:browser": "cd ../msal-browser && npm run build",
35
+ "build:common": "cd ../msal-common && npm run build",
36
+ "link:localDeps": "npx lerna bootstrap --scope @azure/msal-common --scope @azure/msal-browser --scope @azure/msal-react",
37
+ "prepack": "npm run build:all",
38
+ "format:check": "npx prettier --ignore-path .gitignore --check src test",
39
+ "format:fix": "npx prettier --ignore-path .gitignore --write src test"
40
+ },
41
+ "peerDependencies": {
42
+ "@azure/msal-browser": "^3.0.0-alpha.2",
43
+ "react": "^16.8.0 || ^17 || ^18"
44
+ },
45
+ "module": "dist/msal-react.esm.js",
46
+ "devDependencies": {
47
+ "@azure/msal-browser": "^3.0.0-alpha.2",
48
+ "@testing-library/jest-dom": "^5.11.5",
49
+ "@testing-library/react": "^13.4.0",
50
+ "@types/jest": "^27.0.0",
51
+ "@types/react": "^17.0.2",
52
+ "@types/react-dom": "^17.0.2",
53
+ "jest": "^27.0.4",
54
+ "prettier": "2.8.7",
55
+ "react": "^18.2.0",
56
+ "react-dom": "^18.2.0",
57
+ "ts-jest": "^27.0.2",
58
+ "tslib": "^2.0.0",
59
+ "typescript": "^4.9.5"
60
+ },
61
+ "dependencies": {
62
+ "@rollup/plugin-typescript": "^11.1.0",
63
+ "rollup": "^3.20.2"
64
+ }
65
+ }