From 87d7fe4be406aedb3aefa7d961ac3781ab600654 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 26 Apr 2019 14:52:57 -0400 Subject: [PATCH] Block Editor: Rename UnstableRichTextInputEvent to convention (#15198) * Block Editor: Rename UnstableRichTextInputEvent to convention * Block Editor: Rename UnstableRichTextInputEvent to convention Whoops --- packages/block-editor/src/components/index.js | 2 +- packages/block-editor/src/components/index.native.js | 2 +- packages/block-editor/src/components/rich-text/index.js | 2 +- .../block-editor/src/components/rich-text/index.native.js | 2 +- packages/block-editor/src/components/rich-text/input-event.js | 2 +- .../src/components/rich-text/input-event.native.js | 2 +- packages/editor/src/components/deprecated.js | 4 ++-- packages/editor/src/components/deprecated.native.js | 4 ++-- packages/format-library/src/bold/index.js | 4 ++-- packages/format-library/src/italic/index.js | 4 ++-- packages/format-library/src/underline/index.js | 4 ++-- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/block-editor/src/components/index.js b/packages/block-editor/src/components/index.js index 7e55774a4c2098..dc38643a6519b9 100644 --- a/packages/block-editor/src/components/index.js +++ b/packages/block-editor/src/components/index.js @@ -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'; diff --git a/packages/block-editor/src/components/index.native.js b/packages/block-editor/src/components/index.native.js index cb6169440765af..c1cdb633b190b8 100644 --- a/packages/block-editor/src/components/index.native.js +++ b/packages/block-editor/src/components/index.native.js @@ -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'; diff --git a/packages/block-editor/src/components/rich-text/index.js b/packages/block-editor/src/components/rich-text/index.js index c96d1cc2aad74d..d47e7d71e12ed2 100644 --- a/packages/block-editor/src/components/rich-text/index.js +++ b/packages/block-editor/src/components/rich-text/index.js @@ -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'; diff --git a/packages/block-editor/src/components/rich-text/index.native.js b/packages/block-editor/src/components/rich-text/index.native.js index 99a65f60396add..2f5ac490d3407b 100644 --- a/packages/block-editor/src/components/rich-text/index.native.js +++ b/packages/block-editor/src/components/rich-text/index.native.js @@ -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'; diff --git a/packages/block-editor/src/components/rich-text/input-event.js b/packages/block-editor/src/components/rich-text/input-event.js index e77a57cb898e76..016e3700956811 100644 --- a/packages/block-editor/src/components/rich-text/input-event.js +++ b/packages/block-editor/src/components/rich-text/input-event.js @@ -3,7 +3,7 @@ */ import { Component } from '@wordpress/element'; -export class UnstableRichTextInputEvent extends Component { +export class __unstableRichTextInputEvent extends Component { constructor() { super( ...arguments ); diff --git a/packages/block-editor/src/components/rich-text/input-event.native.js b/packages/block-editor/src/components/rich-text/input-event.native.js index b8f0fad0a969c1..f888365ccba59b 100644 --- a/packages/block-editor/src/components/rich-text/input-event.native.js +++ b/packages/block-editor/src/components/rich-text/input-event.native.js @@ -3,7 +3,7 @@ */ import { Component } from '@wordpress/element'; -export class UnstableRichTextInputEvent extends Component { +export class __unstableRichTextInputEvent extends Component { render() { return null; } diff --git a/packages/editor/src/components/deprecated.js b/packages/editor/src/components/deprecated.js index 80004056ec3114..8468f254c2dccf 100644 --- a/packages/editor/src/components/deprecated.js +++ b/packages/editor/src/components/deprecated.js @@ -40,7 +40,7 @@ import { RichTextShortcut, RichTextToolbarButton, RichTextInserterItem, - UnstableRichTextInputEvent, + __unstableRichTextInputEvent, MediaPlaceholder, MediaUpload, MediaUploadCheck, @@ -98,7 +98,7 @@ export { RichTextShortcut, RichTextToolbarButton, RichTextInserterItem, - UnstableRichTextInputEvent, + __unstableRichTextInputEvent, MediaPlaceholder, MediaUpload, MediaUploadCheck, diff --git a/packages/editor/src/components/deprecated.native.js b/packages/editor/src/components/deprecated.native.js index 39596edc9dab3b..ba6ebf23e31a1d 100644 --- a/packages/editor/src/components/deprecated.native.js +++ b/packages/editor/src/components/deprecated.native.js @@ -17,7 +17,7 @@ import { RichTextShortcut, RichTextToolbarButton, RichTextInserterItem, - UnstableRichTextInputEvent, + __unstableRichTextInputEvent, MediaPlaceholder, URLInput, withColors, @@ -39,7 +39,7 @@ export { RichTextShortcut, RichTextToolbarButton, RichTextInserterItem, - UnstableRichTextInputEvent, + __unstableRichTextInputEvent, MediaPlaceholder, URLInput, withColors, diff --git a/packages/format-library/src/bold/index.js b/packages/format-library/src/bold/index.js index 3026b749025ebf..70eb752cee8470 100644 --- a/packages/format-library/src/bold/index.js +++ b/packages/format-library/src/bold/index.js @@ -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'; @@ -32,7 +32,7 @@ export const bold = { shortcutType="primary" shortcutCharacter="b" /> - diff --git a/packages/format-library/src/italic/index.js b/packages/format-library/src/italic/index.js index 36974eb1c0fc00..194a0691c22774 100644 --- a/packages/format-library/src/italic/index.js +++ b/packages/format-library/src/italic/index.js @@ -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'; @@ -32,7 +32,7 @@ export const italic = { shortcutType="primary" shortcutCharacter="i" /> - diff --git a/packages/format-library/src/underline/index.js b/packages/format-library/src/underline/index.js index c049a0e8a3fba2..9be88724548c32 100644 --- a/packages/format-library/src/underline/index.js +++ b/packages/format-library/src/underline/index.js @@ -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'; @@ -34,7 +34,7 @@ export const underline = { character="u" onUse={ onToggle } /> -