Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Breaking BaseButton Types dependency from ContextualMenu class",
"type": "patch"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not certain this is a patch. What if people used to depend on props from ContextualMenu? @dzearing / @aditima - what's your take. When I chatted with @pgonzal we believe this a breaking change that we may need to hold off till 6?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They can still use them because it's any. This won't be breaking.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second though any covers everything and the ContextMenu was itself pointing back to IContextualMenuProps

}
],
"packageName": "office-ui-fabric-react",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import { ContextualMenu } from './ContextualMenu';
import { DirectionalHint } from '../../common/DirectionalHint';
import { FocusZoneDirection, IFocusZoneProps } from '../../FocusZone';
import { IIconProps } from '../Icon/Icon.types';
Expand Down Expand Up @@ -29,7 +28,10 @@ export interface IContextualMenu {

}

export interface IContextualMenuProps extends React.Props<ContextualMenu>, IWithResponsiveModeState {
/**
* React.Props is deprecated and we're removing it in 6.0. Usage of 'any' should go away with it.
*/
export interface IContextualMenuProps extends React.Props<any>, IWithResponsiveModeState {
/**
* Optional callback to access the IContextualMenu interface. Use this instead of ref for accessing
* the public methods and properties of the component.
Expand Down Expand Up @@ -489,7 +491,10 @@ export interface IContextualMenuItem {
inactive?: boolean;
}

export interface IContextualMenuSection extends React.Props<ContextualMenu> {
/**
* React.Props is deprecated and we're removing it in 6.0. Usage of 'any' should go away with it.
*/
export interface IContextualMenuSection extends React.Props<any> {

/**
* The items to include inside the section.
Expand Down