@microsoft/mgt-react
Advanced tools
Comparing version 2.1.0-preview.3ad97e9 to 2.1.0-preview.3e755ca
@@ -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; | ||
@@ -70,4 +62,2 @@ type?: PersonType; | ||
export declare type PeopleProps = { | ||
className?: string; | ||
id?: string; | ||
groupId?: string; | ||
@@ -84,4 +74,2 @@ userIds?: string[]; | ||
export declare type PersonCardProps = { | ||
className?: string; | ||
id?: string; | ||
personDetails?: IDynamicPerson; | ||
@@ -100,4 +88,2 @@ personQuery?: string; | ||
export declare type PersonProps = { | ||
className?: string; | ||
id?: string; | ||
config?: MgtPersonConfig; | ||
@@ -124,4 +110,2 @@ personQuery?: string; | ||
export declare type TasksProps = { | ||
className?: string; | ||
id?: string; | ||
res?: TasksStringResource; | ||
@@ -147,4 +131,2 @@ isNewTaskVisible?: boolean; | ||
export declare type TeamsChannelPickerProps = { | ||
className?: string; | ||
id?: string; | ||
selectedItem?: SelectedChannel; | ||
@@ -156,4 +138,2 @@ templateContext?: TemplateContext; | ||
export declare type TodoProps = { | ||
className?: string; | ||
id?: string; | ||
taskFilter?: TodoFilter; | ||
@@ -168,14 +148,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 |
@@ -57,3 +57,3 @@ /** | ||
*/ | ||
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 |
@@ -25,3 +25,3 @@ /** | ||
if (!tag) { | ||
throw '"type" must be set!'; | ||
throw '"wcType" must be set!'; | ||
} | ||
@@ -122,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 |
{ | ||
"name": "@microsoft/mgt-react", | ||
"version": "2.1.0-preview.3ad97e9", | ||
"version": "2.1.0-preview.3e755ca", | ||
"description": "Microsoft Graph Toolkit React wrapper class", | ||
@@ -34,7 +34,7 @@ "author": "Microsoft", | ||
"dependencies": { | ||
"@microsoft/mgt-components": "2.1.0-preview.3ad97e9", | ||
"@microsoft/mgt-element": "2.1.0-preview.3ad97e9", | ||
"@microsoft/microsoft-graph-types": "^1.27.0", | ||
"@microsoft/mgt-components": "2.1.0-preview.3e755ca", | ||
"@microsoft/mgt-element": "2.1.0-preview.3e755ca", | ||
"@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; | ||
@@ -75,4 +67,2 @@ type?: PersonType; | ||
export type PeopleProps = { | ||
className?: string; | ||
id?: string; | ||
groupId?: string; | ||
@@ -90,4 +80,2 @@ userIds?: string[]; | ||
export type PersonCardProps = { | ||
className?: string; | ||
id?: string; | ||
personDetails?: IDynamicPerson; | ||
@@ -107,4 +95,2 @@ personQuery?: string; | ||
export type PersonProps = { | ||
className?: string; | ||
id?: string; | ||
config?: MgtPersonConfig; | ||
@@ -132,4 +118,2 @@ personQuery?: string; | ||
export type TasksProps = { | ||
className?: string; | ||
id?: string; | ||
res?: TasksStringResource; | ||
@@ -156,4 +140,2 @@ isNewTaskVisible?: boolean; | ||
export type TeamsChannelPickerProps = { | ||
className?: string; | ||
id?: string; | ||
selectedItem?: SelectedChannel; | ||
@@ -166,4 +148,2 @@ templateContext?: TemplateContext; | ||
export type TodoProps = { | ||
className?: string; | ||
id?: string; | ||
taskFilter?: TodoFilter; | ||
@@ -170,0 +150,0 @@ readOnly?: boolean; |
@@ -33,3 +33,3 @@ /** | ||
if (!tag) { | ||
throw '"type" must be set!'; | ||
throw '"wcType" must be set!'; | ||
} | ||
@@ -145,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; | ||
}; |
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
48467
668
+ Added@microsoft/mgt-components@2.1.0-preview.3e755ca(transitive)
+ Added@microsoft/mgt-element@2.1.0-preview.3e755ca(transitive)
+ Addedwc-react@0.4.0(transitive)
- Removed@microsoft/mgt-components@2.1.0-preview.3ad97e9(transitive)
- Removed@microsoft/mgt-element@2.1.0-preview.3ad97e9(transitive)
- Removedwc-react@0.3.1(transitive)
Updatedwc-react@^0.4.0