Skip to content

Commit

Permalink
Block Editor: Rename UnstableRichTextInputEvent to convention (#15198)
Browse files Browse the repository at this point in the history
* Block Editor: Rename UnstableRichTextInputEvent to convention

* Block Editor: Rename UnstableRichTextInputEvent to convention

Whoops
  • Loading branch information
aduth committed Apr 26, 2019
1 parent c8695f7 commit 87d7fe4
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export {
default as RichText,
RichTextShortcut,
RichTextToolbarButton,
UnstableRichTextInputEvent,
__unstableRichTextInputEvent,
} from './rich-text';
export { default as URLInput } from './url-input';
export { default as URLInputButton } from './url-input/button';
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export {
default as RichText,
RichTextShortcut,
RichTextToolbarButton,
UnstableRichTextInputEvent,
__unstableRichTextInputEvent,
} from './rich-text';
export { default as MediaPlaceholder } from './media-placeholder';
export { default as URLInput } from './url-input';
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,4 +1236,4 @@ RichTextContainer.Content.defaultProps = {
export default RichTextContainer;
export { RichTextShortcut } from './shortcut';
export { RichTextToolbarButton } from './toolbar-button';
export { UnstableRichTextInputEvent } from './input-event';
export { __unstableRichTextInputEvent } from './input-event';
Original file line number Diff line number Diff line change
Expand Up @@ -813,4 +813,4 @@ RichTextContainer.Content.defaultProps = {
export default RichTextContainer;
export { RichTextShortcut } from './shortcut';
export { RichTextToolbarButton } from './toolbar-button';
export { UnstableRichTextInputEvent } from './input-event';
export { __unstableRichTextInputEvent } from './input-event';
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { Component } from '@wordpress/element';

export class UnstableRichTextInputEvent extends Component {
export class __unstableRichTextInputEvent extends Component {
constructor() {
super( ...arguments );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { Component } from '@wordpress/element';

export class UnstableRichTextInputEvent extends Component {
export class __unstableRichTextInputEvent extends Component {
render() {
return null;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
RichTextShortcut,
RichTextToolbarButton,
RichTextInserterItem,
UnstableRichTextInputEvent,
__unstableRichTextInputEvent,
MediaPlaceholder,
MediaUpload,
MediaUploadCheck,
Expand Down Expand Up @@ -98,7 +98,7 @@ export {
RichTextShortcut,
RichTextToolbarButton,
RichTextInserterItem,
UnstableRichTextInputEvent,
__unstableRichTextInputEvent,
MediaPlaceholder,
MediaUpload,
MediaUploadCheck,
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/deprecated.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
RichTextShortcut,
RichTextToolbarButton,
RichTextInserterItem,
UnstableRichTextInputEvent,
__unstableRichTextInputEvent,
MediaPlaceholder,
URLInput,
withColors,
Expand All @@ -39,7 +39,7 @@ export {
RichTextShortcut,
RichTextToolbarButton,
RichTextInserterItem,
UnstableRichTextInputEvent,
__unstableRichTextInputEvent,
MediaPlaceholder,
URLInput,
withColors,
Expand Down
4 changes: 2 additions & 2 deletions packages/format-library/src/bold/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { __ } from '@wordpress/i18n';
import { Fragment } from '@wordpress/element';
import { toggleFormat } from '@wordpress/rich-text';
import { RichTextToolbarButton, RichTextShortcut, UnstableRichTextInputEvent } from '@wordpress/block-editor';
import { RichTextToolbarButton, RichTextShortcut, __unstableRichTextInputEvent } from '@wordpress/block-editor';

const name = 'core/bold';

Expand Down Expand Up @@ -32,7 +32,7 @@ export const bold = {
shortcutType="primary"
shortcutCharacter="b"
/>
<UnstableRichTextInputEvent
<__unstableRichTextInputEvent
inputType="formatBold"
onInput={ onToggle }
/>
Expand Down
4 changes: 2 additions & 2 deletions packages/format-library/src/italic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { __ } from '@wordpress/i18n';
import { Fragment } from '@wordpress/element';
import { toggleFormat } from '@wordpress/rich-text';
import { RichTextToolbarButton, RichTextShortcut, UnstableRichTextInputEvent } from '@wordpress/block-editor';
import { RichTextToolbarButton, RichTextShortcut, __unstableRichTextInputEvent } from '@wordpress/block-editor';

const name = 'core/italic';

Expand Down Expand Up @@ -32,7 +32,7 @@ export const italic = {
shortcutType="primary"
shortcutCharacter="i"
/>
<UnstableRichTextInputEvent
<__unstableRichTextInputEvent
inputType="formatItalic"
onInput={ onToggle }
/>
Expand Down
4 changes: 2 additions & 2 deletions packages/format-library/src/underline/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { __ } from '@wordpress/i18n';
import { Fragment } from '@wordpress/element';
import { toggleFormat } from '@wordpress/rich-text';
import { RichTextShortcut, UnstableRichTextInputEvent } from '@wordpress/block-editor';
import { RichTextShortcut, __unstableRichTextInputEvent } from '@wordpress/block-editor';

const name = 'core/underline';

Expand Down Expand Up @@ -34,7 +34,7 @@ export const underline = {
character="u"
onUse={ onToggle }
/>
<UnstableRichTextInputEvent
<__unstableRichTextInputEvent
inputType="formatUnderline"
onInput={ onToggle }
/>
Expand Down

0 comments on commit 87d7fe4

Please sign in to comment.