@microsoft/mgt-sharepoint-provider
Advanced tools
Comparing version 2.0.0-preview.9 to 2.0.0-preview.6594bcb
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "@microsoft/mgt-sharepoint-provider", | ||
"version": "2.0.0-preview.9", | ||
"version": "2.0.0-preview.6594bcb", | ||
"description": "The Microsoft Graph Toolkit SharePoint Provider", | ||
@@ -40,21 +40,7 @@ "keywords": [ | ||
"setLicense": "gulp setLicense --cwd .", | ||
"postpack": "cpx *.tgz ../../../artifacts", | ||
"publish:next": "npm publish --tag next" | ||
"postpack": "cpx *.tgz ../../../artifacts" | ||
}, | ||
"dependencies": { | ||
"@microsoft/mgt-element": "2.0.0-preview.9" | ||
"@microsoft/mgt-element": "2.0.0-preview.6594bcb" | ||
}, | ||
"devDependencies": { | ||
"cpx": "^1.5.0", | ||
"gulp": "^4.0.2", | ||
"gulp-append-prepend": "^1.0.8", | ||
"gulp-header-license": "^1.0.9", | ||
"gulp-rename": "^2.0.0", | ||
"gulp-sass": "^4.0.2", | ||
"gulp-util": "^3.0.8", | ||
"shx": "^0.3.2", | ||
"tslint": "^5.20.1", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.7.5" | ||
}, | ||
"publishConfig": { | ||
@@ -61,0 +47,0 @@ "directory": "dist" |
@@ -1,1 +0,36 @@ | ||
# MGT Msal Provider | ||
# Microsoft Graph Toolkit SharePoint Provider | ||
[![npm](https://img.shields.io/npm/v/@microsoft/mgt-sharepoint-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-sharepoint-provider) | ||
The [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. | ||
The `@microsoft/mgt-sharepoint-provider` package exposes the `SharePointProvider` class to be used inside your SharePoint web parts to power the components with Microsoft Graph access. | ||
[See docs for full documentation of the SharePointProvider](https://docs.microsoft.com/graph/toolkit/providers/sharepoint) | ||
## Usage | ||
1. Install the packages | ||
```bash | ||
npm install @microsoft/mgt-element @microsoft/mgt-sharepoint-provider | ||
``` | ||
2. Initialize the provider in code | ||
```ts | ||
import {Providers} from '@microsoft/mgt-element'; | ||
import {SharePointProvider} from '@microsoft/mgt-sharepoint-provider'; | ||
// add the onInit() method if not already there in your web part class | ||
protected async onInit() { | ||
Providers.globalProvider = new SharePointProvider(this.context); | ||
} | ||
``` | ||
See [provider usage documentation](https://docs.microsoft.com/graph/toolkit/providers) to learn about how to use the providers with the mgt components, to sign in/sign out, get access tokens, call Microsoft Graph, and more. | ||
## Sea also | ||
* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs) | ||
* [Microsoft Graph Toolkit repository](https://aka.ms/mgt) | ||
* [Microsoft Graph Toolkit playground](https://mgt.dev) |
Sorry, the diff of this file is not supported yet
435324
0
36
+ Added@microsoft/mgt-element@2.0.0-preview.6594bcb(transitive)
- Removed@microsoft/mgt-element@2.0.0-preview.9(transitive)