@azure/msal-react 2.0.0-alpha.1 → 2.0.0-beta.0
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/LICENSE +21 -21
- package/README.md +144 -144
- package/dist/MsalContext.d.ts +10 -10
- package/dist/MsalContext.js +16 -16
- package/dist/MsalProvider.d.ts +9 -9
- package/dist/MsalProvider.js +130 -131
- package/dist/MsalProvider.js.map +1 -1
- package/dist/components/AuthenticatedTemplate.d.ts +8 -8
- package/dist/components/AuthenticatedTemplate.js +23 -23
- package/dist/components/MsalAuthenticationTemplate.d.ts +16 -16
- package/dist/components/MsalAuthenticationTemplate.js +33 -33
- package/dist/components/UnauthenticatedTemplate.d.ts +8 -8
- package/dist/components/UnauthenticatedTemplate.js +25 -25
- package/dist/components/withMsal.d.ts +11 -11
- package/dist/components/withMsal.js +17 -17
- package/dist/error/ReactAuthError.d.ts +16 -16
- package/dist/error/ReactAuthError.js +27 -27
- package/dist/hooks/useAccount.d.ts +7 -7
- package/dist/hooks/useAccount.js +33 -33
- package/dist/hooks/useIsAuthenticated.d.ts +6 -6
- package/dist/hooks/useIsAuthenticated.js +30 -30
- package/dist/hooks/useMsal.d.ts +5 -5
- package/dist/hooks/useMsal.js +8 -8
- package/dist/hooks/useMsalAuthentication.d.ts +18 -18
- package/dist/hooks/useMsalAuthentication.js +184 -184
- package/dist/index.d.ts +23 -23
- package/dist/index.js +1 -1
- package/dist/packageMetadata.d.ts +2 -2
- package/dist/packageMetadata.js +4 -4
- package/dist/types/AccountIdentifiers.d.ts +2 -2
- package/dist/utils/utilities.d.ts +17 -17
- package/dist/utils/utilities.js +60 -60
- package/package.json +69 -65
- package/dist/msal-react.cjs.development.js +0 -685
- package/dist/msal-react.cjs.development.js.map +0 -1
- package/dist/msal-react.cjs.production.min.js +0 -2
- package/dist/msal-react.cjs.production.min.js.map +0 -1
- package/dist/msal-react.esm.js +0 -667
- package/dist/msal-react.esm.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,65 +1,69 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@azure/msal-react",
|
|
3
|
-
"version": "2.0.0-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
},
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"react": "^
|
|
56
|
-
"react-dom": "^
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
}
|
|
65
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@azure/msal-react",
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
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
|
+
"patch",
|
|
26
|
+
"minor",
|
|
27
|
+
"major"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "rollup -c --strictDeprecations --bundleConfigAsCjs",
|
|
32
|
+
"build:modules:watch": "rollup -cw --bundleConfigAsCjs",
|
|
33
|
+
"test": "jest",
|
|
34
|
+
"test:coverage": "jest --coverage",
|
|
35
|
+
"lint": "cd ../../ && npm run lint:react",
|
|
36
|
+
"lint:fix": "npm run lint -- -- --fix",
|
|
37
|
+
"build:all": "npm run build:common && npm run build:browser && npm run build",
|
|
38
|
+
"build:browser": "cd ../msal-browser && npm run build",
|
|
39
|
+
"build:common": "cd ../msal-common && npm run build",
|
|
40
|
+
"link:localDeps": "npx lerna@6 bootstrap --scope @azure/msal-common --scope @azure/msal-browser --scope @azure/msal-react",
|
|
41
|
+
"prepack": "npm run build:all",
|
|
42
|
+
"format:check": "npx prettier --ignore-path .gitignore --check src test",
|
|
43
|
+
"format:fix": "npx prettier --ignore-path .gitignore --write src test"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@azure/msal-browser": "^3.0.0-beta.0",
|
|
47
|
+
"react": "^16.8.0 || ^17 || ^18"
|
|
48
|
+
},
|
|
49
|
+
"module": "dist/msal-react.esm.js",
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@azure/msal-browser": "^3.0.0-beta.0",
|
|
52
|
+
"@testing-library/jest-dom": "^5.11.5",
|
|
53
|
+
"@testing-library/react": "^13.4.0",
|
|
54
|
+
"@types/jest": "^27.0.0",
|
|
55
|
+
"@types/react": "^17.0.2",
|
|
56
|
+
"@types/react-dom": "^17.0.2",
|
|
57
|
+
"jest": "^27.0.4",
|
|
58
|
+
"prettier": "2.8.7",
|
|
59
|
+
"react": "^18.2.0",
|
|
60
|
+
"react-dom": "^18.2.0",
|
|
61
|
+
"ts-jest": "^27.0.2",
|
|
62
|
+
"tslib": "^2.0.0",
|
|
63
|
+
"typescript": "^4.9.5"
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@rollup/plugin-typescript": "^11.1.0",
|
|
67
|
+
"rollup": "^3.20.2"
|
|
68
|
+
}
|
|
69
|
+
}
|