Skip to content

Commit

Permalink
Move Caption to block-editor for mobile tests
Browse files Browse the repository at this point in the history
This move avoids a dependency issue that was causing the mobile tests to
fail due to the Caption component's import of RichText from the
block-editor package.
  • Loading branch information
mchowning committed Aug 1, 2019
1 parent 350dc82 commit 2e5beca
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export { default as MediaPlaceholder } from './media-placeholder';
export { default as MediaUpload, MEDIA_TYPE_IMAGE, MEDIA_TYPE_VIDEO } from './media-upload';
export { default as URLInput } from './url-input';
export { default as BlockInvalidWarning } from './block-list/block-invalid-warning';
export { default as Caption } from './caption';

// Content Related Components
export { default as BlockList } from './block-list';
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import { isEmpty } from 'lodash';
*/
import {
BottomSheet,
Caption,
Icon,
Toolbar,
ToolbarButton,
} from '@wordpress/components';
import {
Caption,
MediaPlaceholder,
MediaUpload,
MEDIA_TYPE_IMAGE,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/video/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import {
* WordPress dependencies
*/
import {
Caption,
Icon,
Toolbar,
ToolbarButton,
} from '@wordpress/components';
import {
Caption,
MediaPlaceholder,
MediaUpload,
MEDIA_TYPE_VIDEO,
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export { default as Spinner } from './spinner';
export { createSlotFill, Slot, Fill, Provider as SlotFillProvider } from './slot-fill';
export { default as BaseControl } from './base-control';
export { default as TextareaControl } from './textarea-control';
export { default as Caption } from './caption';

// Higher-Order Components
export { default as withConstrainedTabbing } from './higher-order/with-constrained-tabbing';
Expand Down

0 comments on commit 2e5beca

Please sign in to comment.