Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten blocks directory #737

Merged
merged 1 commit into from
May 9, 2017
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
1 change: 0 additions & 1 deletion blocks/components/index.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion blocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ import './library';
// Blocks are inferred from the HTML source of a post through a parsing mechanism
// and then stored as objects in state, from which it is then rendered for editing.
export * from './api';
export * from './components';
export { default as Editable } from './editable';
2 changes: 1 addition & 1 deletion blocks/library/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import IconButton from 'components/icon-button';
*/
import './style.scss';
import { registerBlock, query } from '../../api';
import Editable from '../../components/editable';
import Editable from '../../editable';

const { attr, children } = query;

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/embed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Button from 'components/button';
* Internal dependencies
*/
import { registerBlock, query } from '../../api';
import Editable from '../../components/editable';
import Editable from '../../editable';

const { attr, children } = query;

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/heading/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import './style.scss';
import { registerBlock, query } from '../../api';
import Editable from '../../components/editable';
import Editable from '../../editable';

const { children, prop } = query;

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Button from 'components/button';
*/
import './style.scss';
import { registerBlock, query } from '../../api';
import Editable from '../../components/editable';
import Editable from '../../editable';

const { attr, children } = query;

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import './style.scss';
import { registerBlock, query as hpq } from '../../api';
import Editable from '../../components/editable';
import Editable from '../../editable';

const { children, prop } = hpq;

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/pullquote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import './style.scss';
import { registerBlock, query as hpq } from '../../api';
import Editable from '../../components/editable';
import Editable from '../../editable';

const { children, query } = hpq;

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/quote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import './style.scss';
import { registerBlock, query as hpq } from '../../api';
import Editable from '../../components/editable';
import Editable from '../../editable';

const { children, query } = hpq;

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Internal dependencies
*/
import { registerBlock, createBlock, query } from '../../api';
import Editable from '../../components/editable';
import Editable from '../../editable';

const { children } = query;

Expand Down