Skip to content

Commit

Permalink
Expose reusable Portal component as part of the API
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Jun 13, 2017
1 parent af091e0 commit 23c13c9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,10 @@
## Unreleased

## [[v0.7.3]](https://github.com/springload/draftail/releases/tag/v0.7.3)

- Expose reusable Portal component as part of the API.

## [[v0.7.2]](https://github.com/springload/draftail/releases/tag/v0.7.2)

### Changed
Expand Down
2 changes: 2 additions & 0 deletions lib/index.js
@@ -1,5 +1,6 @@
import DraftailEditor from './components/DraftailEditor';
import Icon from './components/Icon';
import Portal from './components/Portal';
import DraftUtils from './api/DraftUtils';
import { BLOCK_TYPE, ENTITY_TYPE, INLINE_STYLE } from './api/constants';

Expand All @@ -16,4 +17,5 @@ export {
ENTITY_TYPE,
INLINE_STYLE,
Icon,
Portal,
};
7 changes: 7 additions & 0 deletions lib/index.test.js
Expand Up @@ -4,6 +4,7 @@ import DraftailEditor, {
ENTITY_TYPE,
INLINE_STYLE,
Icon,
Portal,
} from './index';

describe('draftail', () => {
Expand Down Expand Up @@ -42,4 +43,10 @@ describe('draftail', () => {
expect(Icon).toBeDefined();
});
});

describe('#Portal', () => {
it('exists', () => {
expect(Portal).toBeDefined();
});
});
});

0 comments on commit 23c13c9

Please sign in to comment.