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

Block Editor: Rename UnstableRichTextInputEvent to convention #15198

Merged
merged 2 commits into from
Apr 26, 2019
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
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 @@ -23,7 +23,7 @@ export {
default as RichText,
RichTextShortcut,
RichTextToolbarButton,
UnstableRichTextInputEvent,
__unstableRichTextInputEvent,
} from './rich-text';
export { default as MediaPlaceholder } from './media-placeholder';
export { default as MediaUpload } from './media-upload';
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 @@ -1233,4 +1233,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