@microsoft/mgt-element
Advanced tools
Comparing version 2.2.0 to 2.3.0-next.build21.b0a0338
@@ -27,5 +27,14 @@ /** | ||
graph: IGraph; | ||
/** | ||
* Enable/Disable multi account functionality | ||
* | ||
* @protected | ||
* @type {boolean} | ||
* @memberof IProvider | ||
*/ | ||
protected isMultipleAccountSupported: boolean; | ||
private _state; | ||
private _loginChangedDispatcher; | ||
private _activeAccountChangedDispatcher; | ||
get isMultiAccountSupported(): boolean; | ||
/** | ||
@@ -90,2 +99,9 @@ * returns state of Provider | ||
/** | ||
* Returns active account in case of multi-account sign in | ||
* | ||
* @return {*} {any[]} | ||
* @memberof IProvider | ||
*/ | ||
getActiveAccount?(): IProviderAccount; | ||
/** | ||
* Switch between two signed in accounts | ||
@@ -193,5 +209,6 @@ * | ||
export declare type IProviderAccount = { | ||
username?: string; | ||
id: string; | ||
mail?: string; | ||
name?: string; | ||
}; | ||
//# sourceMappingURL=IProvider.d.ts.map |
@@ -18,2 +18,10 @@ /** | ||
constructor() { | ||
/** | ||
* Enable/Disable multi account functionality | ||
* | ||
* @protected | ||
* @type {boolean} | ||
* @memberof IProvider | ||
*/ | ||
this.isMultipleAccountSupported = false; | ||
this._loginChangedDispatcher = new EventDispatcher(); | ||
@@ -23,2 +31,5 @@ this._activeAccountChangedDispatcher = new EventDispatcher(); | ||
} | ||
get isMultiAccountSupported() { | ||
return this.isMultipleAccountSupported; | ||
} | ||
/** | ||
@@ -25,0 +36,0 @@ * returns state of Provider |
@@ -94,3 +94,3 @@ /** | ||
}, | ||
isEnabled: true, | ||
isEnabled: false, | ||
people: { | ||
@@ -97,0 +97,0 @@ invalidationPeriod: null, |
@@ -7,3 +7,3 @@ /** | ||
*/ | ||
export declare const PACKAGE_VERSION = "2.2.0"; | ||
export declare const PACKAGE_VERSION = "2.3.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -9,3 +9,3 @@ /** | ||
// ANY CHANGES WILL BE LOST DURING BUILD | ||
export const PACKAGE_VERSION = '2.2.0'; | ||
export const PACKAGE_VERSION = '2.3.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@microsoft/mgt-element", | ||
"version": "2.2.0", | ||
"version": "2.3.0-next.build21.b0a0338", | ||
"description": "Microsoft Graph Toolkit base classes", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/microsoftgraph/microsoft-graph-toolkit", |
@@ -29,5 +29,16 @@ /** | ||
public graph: IGraph; | ||
/** | ||
* Enable/Disable multi account functionality | ||
* | ||
* @protected | ||
* @type {boolean} | ||
* @memberof IProvider | ||
*/ | ||
protected isMultipleAccountSupported: boolean = false; | ||
private _state: ProviderState; | ||
private _loginChangedDispatcher = new EventDispatcher<LoginChangedEvent>(); | ||
private _activeAccountChangedDispatcher = new EventDispatcher<ActiveAccountChanged>(); | ||
public get isMultiAccountSupported(): boolean { | ||
return this.isMultipleAccountSupported; | ||
} | ||
/** | ||
@@ -115,2 +126,10 @@ * returns state of Provider | ||
/** | ||
* Returns active account in case of multi-account sign in | ||
* | ||
* @return {*} {any[]} | ||
* @memberof IProvider | ||
*/ | ||
public getActiveAccount?(): IProviderAccount; | ||
/** | ||
* Switch between two signed in accounts | ||
@@ -236,4 +255,5 @@ * | ||
export type IProviderAccount = { | ||
username?: string; | ||
id: string; | ||
mail?: string; | ||
name?: string; | ||
}; |
@@ -164,3 +164,3 @@ /** | ||
}, | ||
isEnabled: true, | ||
isEnabled: false, | ||
people: { | ||
@@ -167,0 +167,0 @@ invalidationPeriod: null, |
@@ -11,2 +11,2 @@ /** | ||
export const PACKAGE_VERSION = '2.2.0'; | ||
export const PACKAGE_VERSION = '2.3.0'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1028849
7408
1