Skip to content

Commit

Permalink
Merge PR clauderic#491 - fix: update helperContainer prop type defini…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
redking committed Mar 25, 2019
2 parents 953952d + f51112e commit 282c6fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="1.5.0"></a>

# [1.5.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.4.0...v1.5.0) (2019-01-22)

### Features

- allow helperContainer prop to be a function returning an HTMLElement ([f4a9b4a](https://github.com/clauderic/react-sortable-hoc/commit/f4a9b4a))

<a name="1.4.0"></a>

# [1.4.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.3.0...v1.4.0) (2019-01-10)
Expand Down
4 changes: 3 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export type ContainerGetter = (
element: React.ReactElement<any>,
) => HTMLElement | Promise<HTMLElement>;

export type HelperContainerGetter = () => HTMLElement;

export interface Dimensions {
width: number;
height: number;
Expand Down Expand Up @@ -92,7 +94,7 @@ export interface SortableContainerProps {
lockOffset?: Offset | [Offset, Offset];
getContainer?: ContainerGetter;
getHelperDimensions?: (sort: SortStart) => Dimensions;
helperContainer?: HTMLElement;
helperContainer?: HTMLElement | HelperContainerGetter;
}

export interface SortableElementProps {
Expand Down

0 comments on commit 282c6fc

Please sign in to comment.