Skip to content

Commit 1e82d23

Browse files
Update release/latest to v1.3.5 (#665)
* Updated to version 1.3.5 * Integrating changes from #609 * Update package-lock.json
1 parent 823ee85 commit 1e82d23

File tree

11 files changed

+35726
-27878
lines changed

11 files changed

+35726
-27878
lines changed

lerna.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"packages": [
3-
"packages/mgt"
4-
],
5-
"version": "1.3.3"
2+
"packages": ["packages/mgt"],
3+
"version": "1.3.5"
64
}

package-lock.json

Lines changed: 27833 additions & 27833 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mgt/package-lock.json

Lines changed: 7812 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mgt/package.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/mgt",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "The Microsoft Graph Toolkit",
55
"keywords": [
66
"microsoft graph",
@@ -54,6 +54,23 @@
5454
"msal": "^1.3.2",
5555
"office-ui-fabric-core": "11.0.0"
5656
},
57+
"devDependencies": {
58+
"cpx": "1.5.0",
59+
"shx": "0.3.2",
60+
"npm-run-all": "4.1.5",
61+
"tslint": "6.1.3",
62+
"@webcomponents/webcomponentsjs": "2.4.4",
63+
"rollup": "^1.29.1",
64+
"rollup-plugin-babel": "^4.3.3",
65+
"rollup-plugin-babel-minify": "^9.1.1",
66+
"rollup-plugin-commonjs": "^10.1.0",
67+
"rollup-plugin-json": "^4.0.0",
68+
"rollup-plugin-node-resolve": "^5.2.0",
69+
"rollup-plugin-postcss": "^2.5.0",
70+
"rollup-plugin-terser": "^5.2.0",
71+
"rollup-plugin-typescript": "^1.0.1",
72+
"es-dev-server": "1.57.5"
73+
},
5774
"jest-junit": {
5875
"suiteName": "jest tests",
5976
"output": "testResults/junit.xml",

packages/mgt/src/components/mgt-login/mgt-login.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ export class MgtLogin extends MgtTemplatedComponent {
178178
if (this.userDetails.personImage) {
179179
this._image = this.userDetails.personImage;
180180
}
181+
182+
this.fireCustomEvent('loginCompleted');
181183
} else {
182184
this.userDetails = null;
183185
}

packages/mgt/src/components/mgt-tasks/mgt-tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ export class MgtTasks extends MgtTemplatedComponent {
653653
this._hiddenTasks = this._hiddenTasks.filter(id => id !== task.id);
654654
}
655655

656-
private async assignPeople(task: ITask, people: Array<User | Person | Contact>) {
656+
private async assignPeople(task: ITask, people: (User | Person | Contact)[]) {
657657
const ts = this.getTaskSource();
658658
if (!ts) {
659659
return;

packages/mgt/src/graph/graph.people.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export async function findContactByEmail(graph: IGraph, email: string): Promise<
151151
* @returns {(Promise<Array<Person | Contact>>)}
152152
* @memberof Graph
153153
*/
154-
export function findUserByEmail(graph: IGraph, email: string): Promise<Array<Person | Contact>> {
154+
export function findUserByEmail(graph: IGraph, email: string): Promise<(Person | Contact)[]> {
155155
return Promise.all([findPeople(graph, email), findContactByEmail(graph, email)]).then(([people, contacts]) => {
156156
return ((people as any[]) || []).concat(contacts || []);
157157
});

packages/mgt/src/utils/EventDispatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type EventHandler<E> = (event: E) => void;
1818
* @template E
1919
*/
2020
export class EventDispatcher<E> {
21-
private eventHandlers: Array<EventHandler<E>> = [];
21+
private eventHandlers: EventHandler<E>[] = [];
2222
/**
2323
* fires event handler
2424
*

packages/mgt/src/utils/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
// THIS FILE IS AUTO GENERATED
99
// ANY CHANGES WILL BE LOST DURING BUILD
1010

11-
export const PACKAGE_VERSION = '1.3.4';
11+
export const PACKAGE_VERSION = '1.3.5';

samples/examples/login-popup.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<script type="module" src="../../packages/mgt/dist/es6/index.js"></script>
6+
</head>
7+
8+
<body>
9+
<!-- <mgt-msal-provider client-id="af4ad92c-e141-49ac-9d86-23af45007101"></mgt-msal-provider> -->
10+
11+
<mgt-login></mgt-login>
12+
13+
<div id="loginStatus" style="padding-top: 20px">
14+
</div>
15+
16+
<script type="module">
17+
import { Providers, ProviderState, MsalProvider, LoginType } from '../../packages/mgt/dist/es6/index.js';
18+
19+
Providers.globalProvider = new MsalProvider({
20+
clientId: 'af4ad92c-e141-49ac-9d86-23af45007101',
21+
loginType: LoginType.Popup
22+
});
23+
24+
document.querySelector('mgt-login').addEventListener('loginCompleted', e => {
25+
console.log(e);
26+
document.getElementById('loginStatus').innerText = "Login completed successfully";
27+
});
28+
</script>
29+
30+
</html>

0 commit comments

Comments
 (0)