@microsoft/mgt-react
Advanced tools
Comparing version 2.1.0-preview.b2d9eba to 2.1.0-preview.e61861c
@@ -7,4 +7,2 @@ /// <reference types="react" /> | ||
export declare type AgendaProps = { | ||
className?: string; | ||
id?: string; | ||
date?: string; | ||
@@ -23,4 +21,2 @@ groupId?: string; | ||
export declare type GetProps = { | ||
className?: string; | ||
id?: string; | ||
resource?: string; | ||
@@ -39,4 +35,2 @@ scopes?: string[]; | ||
export declare type LoginProps = { | ||
className?: string; | ||
id?: string; | ||
userDetails?: IDynamicPerson; | ||
@@ -52,4 +46,2 @@ templateContext?: TemplateContext; | ||
export declare type PeoplePickerProps = { | ||
className?: string; | ||
id?: string; | ||
groupId?: string; | ||
@@ -65,2 +57,3 @@ type?: PersonType; | ||
selectedPeople?: IDynamicPerson[]; | ||
disabled?: boolean; | ||
templateContext?: TemplateContext; | ||
@@ -71,4 +64,2 @@ mediaQuery?: ComponentMediaQuery; | ||
export declare type PeopleProps = { | ||
className?: string; | ||
id?: string; | ||
groupId?: string; | ||
@@ -85,4 +76,2 @@ userIds?: string[]; | ||
export declare type PersonCardProps = { | ||
className?: string; | ||
id?: string; | ||
personDetails?: IDynamicPerson; | ||
@@ -101,4 +90,2 @@ personQuery?: string; | ||
export declare type PersonProps = { | ||
className?: string; | ||
id?: string; | ||
config?: MgtPersonConfig; | ||
@@ -120,6 +107,7 @@ personQuery?: string; | ||
mediaQuery?: ComponentMediaQuery; | ||
line1clicked?: (e: Event) => void; | ||
line2clicked?: (e: Event) => void; | ||
line3clicked?: (e: Event) => void; | ||
}; | ||
export declare type TasksProps = { | ||
className?: string; | ||
id?: string; | ||
res?: TasksStringResource; | ||
@@ -145,4 +133,2 @@ isNewTaskVisible?: boolean; | ||
export declare type TeamsChannelPickerProps = { | ||
className?: string; | ||
id?: string; | ||
selectedItem?: SelectedChannel; | ||
@@ -154,4 +140,2 @@ templateContext?: TemplateContext; | ||
export declare type TodoProps = { | ||
className?: string; | ||
id?: string; | ||
taskFilter?: TodoFilter; | ||
@@ -166,14 +150,14 @@ readOnly?: boolean; | ||
}; | ||
export declare const Agenda: import("react").FC<AgendaProps>; | ||
export declare const Get: import("react").FC<GetProps>; | ||
export declare const Login: import("react").FC<LoginProps>; | ||
export declare const PeoplePicker: import("react").FC<PeoplePickerProps>; | ||
export declare const People: import("react").FC<PeopleProps>; | ||
export declare const PersonCard: import("react").FC<PersonCardProps>; | ||
export declare const Person: import("react").FC<PersonProps>; | ||
export declare const Tasks: import("react").FC<TasksProps>; | ||
export declare const TeamsChannelPicker: import("react").FC<TeamsChannelPickerProps>; | ||
export declare const Todo: import("react").FC<TodoProps>; | ||
export declare const Agenda: import("react").FC<AgendaProps & import("react").HTMLAttributes<any>>; | ||
export declare const Get: import("react").FC<GetProps & import("react").HTMLAttributes<any>>; | ||
export declare const Login: import("react").FC<LoginProps & import("react").HTMLAttributes<any>>; | ||
export declare const PeoplePicker: import("react").FC<PeoplePickerProps & import("react").HTMLAttributes<any>>; | ||
export declare const People: import("react").FC<PeopleProps & import("react").HTMLAttributes<any>>; | ||
export declare const PersonCard: import("react").FC<PersonCardProps & import("react").HTMLAttributes<any>>; | ||
export declare const Person: import("react").FC<PersonProps & import("react").HTMLAttributes<any>>; | ||
export declare const Tasks: import("react").FC<TasksProps & import("react").HTMLAttributes<any>>; | ||
export declare const TeamsChannelPicker: import("react").FC<TeamsChannelPickerProps & import("react").HTMLAttributes<any>>; | ||
export declare const Todo: import("react").FC<TodoProps & import("react").HTMLAttributes<any>>; | ||
export { ResponseType, IDynamicPerson, PersonType, GroupType, PersonCardInteraction, MgtPersonConfig, PersonViewType, AvatarSize, TasksStringResource, TasksSource, TaskFilter, SelectedChannel, TodoFilter } from '@microsoft/mgt-components'; | ||
export { TemplateContext, ComponentMediaQuery } from '@microsoft/mgt-element'; | ||
//# sourceMappingURL=react.d.ts.map |
@@ -0,1 +1,7 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
export * from './Mgt'; | ||
@@ -2,0 +8,0 @@ export * from './MgtTemplateProps'; |
@@ -0,1 +1,7 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
export * from './Mgt'; | ||
@@ -2,0 +8,0 @@ export * from './MgtTemplateProps'; |
@@ -0,1 +1,7 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
import React, { ReactNode } from 'react'; | ||
@@ -51,3 +57,3 @@ import { Wc, WcProps, WcTypeProps } from 'wc-react'; | ||
*/ | ||
export declare const wrapMgt: <T = WcProps>(tag: string) => React.FC<T>; | ||
export declare const wrapMgt: <T = WcProps>(tag: string) => React.FC<T & React.HTMLAttributes<any>>; | ||
//# sourceMappingURL=Mgt.d.ts.map |
@@ -0,1 +1,7 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
import React from 'react'; | ||
@@ -19,3 +25,3 @@ import ReactDOM from 'react-dom'; | ||
if (!tag) { | ||
throw '"type" must be set!'; | ||
throw '"wcType" must be set!'; | ||
} | ||
@@ -116,5 +122,5 @@ this.processTemplates(this.props.children); | ||
export const wrapMgt = (tag) => { | ||
const component = (props) => React.createElement(Mgt, Object.assign({ type: tag }, props)); | ||
const component = (props) => React.createElement(Mgt, Object.assign({ wcType: tag }, props)); | ||
return component; | ||
}; | ||
//# sourceMappingURL=Mgt.js.map |
@@ -0,1 +1,7 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
export declare type MgtTemplateProps = { | ||
@@ -2,0 +8,0 @@ template?: string; |
@@ -0,1 +1,7 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
//# sourceMappingURL=MgtTemplateProps.js.map |
{ | ||
"name": "@microsoft/mgt-react", | ||
"version": "2.1.0-preview.b2d9eba", | ||
"version": "2.1.0-preview.e61861c", | ||
"description": "Microsoft Graph Toolkit React wrapper class", | ||
@@ -34,7 +34,7 @@ "author": "Microsoft", | ||
"dependencies": { | ||
"@microsoft/mgt-components": "2.1.0-preview.b2d9eba", | ||
"@microsoft/mgt-element": "2.1.0-preview.b2d9eba", | ||
"@microsoft/microsoft-graph-types": "^1.27.0", | ||
"@microsoft/mgt-components": "2.1.0-preview.e61861c", | ||
"@microsoft/mgt-element": "2.1.0-preview.e61861c", | ||
"@microsoft/microsoft-graph-types": "^1.28.0", | ||
"@microsoft/microsoft-graph-types-beta": "github:microsoftgraph/msgraph-typescript-typings#beta", | ||
"wc-react": "^0.3.1" | ||
"wc-react": "^0.4.0" | ||
}, | ||
@@ -41,0 +41,0 @@ "publishConfig": { |
@@ -8,4 +8,2 @@ import { ResponseType,IDynamicPerson,PersonType,GroupType,PersonCardInteraction,MgtPersonConfig,PersonViewType,AvatarSize,TasksStringResource,TasksSource,TaskFilter,SelectedChannel,TodoFilter } from '@microsoft/mgt-components'; | ||
export type AgendaProps = { | ||
className?: string; | ||
id?: string; | ||
date?: string; | ||
@@ -25,4 +23,2 @@ groupId?: string; | ||
export type GetProps = { | ||
className?: string; | ||
id?: string; | ||
resource?: string; | ||
@@ -42,4 +38,2 @@ scopes?: string[]; | ||
export type LoginProps = { | ||
className?: string; | ||
id?: string; | ||
userDetails?: IDynamicPerson; | ||
@@ -56,4 +50,2 @@ templateContext?: TemplateContext; | ||
export type PeoplePickerProps = { | ||
className?: string; | ||
id?: string; | ||
groupId?: string; | ||
@@ -69,2 +61,3 @@ type?: PersonType; | ||
selectedPeople?: IDynamicPerson[]; | ||
disabled?: boolean; | ||
templateContext?: TemplateContext; | ||
@@ -76,4 +69,2 @@ mediaQuery?: ComponentMediaQuery; | ||
export type PeopleProps = { | ||
className?: string; | ||
id?: string; | ||
groupId?: string; | ||
@@ -91,4 +82,2 @@ userIds?: string[]; | ||
export type PersonCardProps = { | ||
className?: string; | ||
id?: string; | ||
personDetails?: IDynamicPerson; | ||
@@ -108,4 +97,2 @@ personQuery?: string; | ||
export type PersonProps = { | ||
className?: string; | ||
id?: string; | ||
config?: MgtPersonConfig; | ||
@@ -127,7 +114,8 @@ personQuery?: string; | ||
mediaQuery?: ComponentMediaQuery; | ||
line1clicked?: (e: Event) => void; | ||
line2clicked?: (e: Event) => void; | ||
line3clicked?: (e: Event) => void; | ||
} | ||
export type TasksProps = { | ||
className?: string; | ||
id?: string; | ||
res?: TasksStringResource; | ||
@@ -154,4 +142,2 @@ isNewTaskVisible?: boolean; | ||
export type TeamsChannelPickerProps = { | ||
className?: string; | ||
id?: string; | ||
selectedItem?: SelectedChannel; | ||
@@ -164,4 +150,2 @@ templateContext?: TemplateContext; | ||
export type TodoProps = { | ||
className?: string; | ||
id?: string; | ||
taskFilter?: TodoFilter; | ||
@@ -168,0 +152,0 @@ readOnly?: boolean; |
@@ -0,3 +1,10 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
export * from './Mgt'; | ||
export * from './MgtTemplateProps'; | ||
export * from './generated/react'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
import React, { ReactNode, ReactElement } from 'react'; | ||
@@ -26,3 +33,3 @@ import ReactDOM from 'react-dom'; | ||
if (!tag) { | ||
throw '"type" must be set!'; | ||
throw '"wcType" must be set!'; | ||
} | ||
@@ -138,4 +145,5 @@ | ||
export const wrapMgt = <T = WcProps>(tag: string) => { | ||
const component: React.FC<T> = (props: T) => React.createElement(Mgt, { type: tag, ...props }); | ||
const component: React.FC<T & React.HTMLAttributes<any>> = (props: T) => | ||
React.createElement(Mgt, { wcType: tag, ...props }); | ||
return component; | ||
}; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
export type MgtTemplateProps = { | ||
@@ -2,0 +9,0 @@ template?: string; |
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
48566
670
+ Added@microsoft/mgt-components@2.1.0-preview.e61861c(transitive)
+ Added@microsoft/mgt-element@2.1.0-preview.e61861c(transitive)
+ Addedwc-react@0.4.0(transitive)
- Removed@microsoft/mgt-components@2.1.0-preview.b2d9eba(transitive)
- Removed@microsoft/mgt-element@2.1.0-preview.b2d9eba(transitive)
- Removedwc-react@0.3.1(transitive)
Updatedwc-react@^0.4.0