Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/mgt-element

Package Overview
Dependencies
Maintainers
2
Versions
831
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/mgt-element - npm Package Compare versions

Comparing version 3.1.3-preview.267bc19 to 3.1.3-preview.2fb1064

dist/es6/components/baseTaskComponent.d.ts

3

dist/es6/components/baseComponent.d.ts

@@ -8,2 +8,3 @@ /**

import { LitElement, PropertyValueMap, PropertyValues } from 'lit';
import { ProviderState } from '../providers/IProvider';
/**

@@ -36,4 +37,6 @@ * Defines media query based on component width

* @extends {LitElement}
* @deprecated Use MgtBaseTaskComponent instead
*/
export declare abstract class MgtBaseComponent extends LitElement {
protected providerState: ProviderState;
/**

@@ -40,0 +43,0 @@ * Exposes the semver of the library the component is part of

@@ -59,2 +59,3 @@ /**

* @extends {LitElement}
* @deprecated Use MgtBaseTaskComponent instead
*/

@@ -122,2 +123,3 @@ export class MgtBaseComponent extends LitElement {

super();
this.providerState = ProviderState.Loading;
/**

@@ -145,2 +147,4 @@ * Gets or sets the direction of the component

this.handleProviderUpdates = () => {
var _a, _b;
this.providerState = (_b = (_a = Providers.globalProvider) === null || _a === void 0 ? void 0 : _a.state) !== null && _b !== void 0 ? _b : ProviderState.Loading;
void this.requestStateUpdate();

@@ -318,4 +322,8 @@ };

state(),
__metadata("design:type", Number)
], MgtBaseComponent.prototype, "providerState", void 0);
__decorate([
state(),
__metadata("design:type", String)
], MgtBaseComponent.prototype, "direction", void 0);
//# sourceMappingURL=baseComponent.js.map

@@ -10,2 +10,15 @@ /**

import { TemplateContext } from '../utils/TemplateContext';
/**
* Lookup for rendered component templates and contexts by slot name.
*/
export type RenderedTemplates = Record<string, {
/**
* Reference to the data context used to render the slot.
*/
context: Record<string, unknown>;
/**
* Reference to the rendered DOM element corresponding to the slot.
*/
slot: HTMLElement;
}>;
export interface TemplateRenderedData {

@@ -16,3 +29,3 @@ templateType: string;

}
type OrderedHtmlTemplate = HTMLTemplateElement & {
export type OrderedHtmlTemplate = HTMLTemplateElement & {
templateOrder: number;

@@ -27,2 +40,3 @@ };

* @extends {MgtBaseComponent}
* @deprecated Use MgtTemplatedTaskComponent instead
*

@@ -104,3 +118,2 @@ * @fires {CustomEvent<MgtElement.TemplateRenderedData>} templateRendered - fires when a template is rendered

}
export {};
//# sourceMappingURL=templatedComponent.d.ts.map

@@ -28,2 +28,3 @@ /**

* @extends {MgtBaseComponent}
* @deprecated Use MgtTemplatedTaskComponent instead
*

@@ -30,0 +31,0 @@ * @fires {CustomEvent<MgtElement.TemplateRenderedData>} templateRendered - fires when a template is rendered

@@ -13,3 +13,5 @@ /**

export * from './components/baseProvider';
export * from './components/baseTaskComponent';
export * from './components/templatedComponent';
export * from './components/templatedTaskComponent';
export * from './components/customElementHelper';

@@ -16,0 +18,0 @@ export * from './providers/IProvider';

@@ -13,3 +13,5 @@ /**

export * from './components/baseProvider';
export * from './components/baseTaskComponent';
export * from './components/templatedComponent';
export * from './components/templatedTaskComponent';
export * from './components/customElementHelper';

@@ -16,0 +18,0 @@ export * from './providers/IProvider';

2

dist/es6/utils/version.d.ts

@@ -7,3 +7,3 @@ /**

*/
export declare const PACKAGE_VERSION = "3.1.3-preview.267bc19";
export declare const PACKAGE_VERSION = "3.1.3-preview.2fb1064";
//# sourceMappingURL=version.d.ts.map

@@ -9,3 +9,3 @@ /**

// ANY CHANGES WILL BE LOST DURING BUILD
export const PACKAGE_VERSION = '3.1.3-preview.267bc19';
export const PACKAGE_VERSION = '3.1.3-preview.2fb1064';
//# sourceMappingURL=version.js.map
{
"name": "@microsoft/mgt-element",
"version": "3.1.3-preview.267bc19",
"version": "3.1.3-preview.2fb1064",
"description": "Microsoft Graph Toolkit base classes",

@@ -35,2 +35,3 @@ "homepage": "https://github.com/microsoftgraph/microsoft-graph-toolkit",

"dependencies": {
"@lit/task": "^1.0.0",
"@microsoft/microsoft-graph-client": "3.0.2",

@@ -37,0 +38,0 @@ "idb": "6.0.0",

@@ -45,4 +45,7 @@ /**

* @extends {LitElement}
* @deprecated Use MgtBaseTaskComponent instead
*/
export abstract class MgtBaseComponent extends LitElement {
@state()
protected providerState: ProviderState = ProviderState.Loading;
/**

@@ -313,2 +316,3 @@ * Exposes the semver of the library the component is part of

private readonly handleProviderUpdates = () => {
this.providerState = Providers.globalProvider?.state ?? ProviderState.Loading;
void this.requestStateUpdate();

@@ -315,0 +319,0 @@ };

@@ -19,3 +19,3 @@ /**

*/
type RenderedTemplates = Record<
export type RenderedTemplates = Record<
string,

@@ -40,3 +40,3 @@ {

type OrderedHtmlTemplate = HTMLTemplateElement & { templateOrder: number };
export type OrderedHtmlTemplate = HTMLTemplateElement & { templateOrder: number };

@@ -50,2 +50,3 @@ /**

* @extends {MgtBaseComponent}
* @deprecated Use MgtTemplatedTaskComponent instead
*

@@ -52,0 +53,0 @@ * @fires {CustomEvent<MgtElement.TemplateRenderedData>} templateRendered - fires when a template is rendered

@@ -15,3 +15,5 @@ /**

export * from './components/baseProvider';
export * from './components/baseTaskComponent';
export * from './components/templatedComponent';
export * from './components/templatedTaskComponent';
export * from './components/customElementHelper';

@@ -18,0 +20,0 @@

@@ -11,2 +11,2 @@ /**

export const PACKAGE_VERSION = '3.1.3-preview.267bc19';
export const PACKAGE_VERSION = '3.1.3-preview.2fb1064';

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

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

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

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

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc