Skip to content

Commit 47bd913

Browse files
authored
Blocks: move from editor to block-editor (#14047)
Now that Jetpack will require WordPress 5.2, we can update our blocks to use the @wordpress/block-editor package that was added in WP 5.2. This will get rid of a few deprecated messages that were present when using the block editor.
1 parent 5f3a9b5 commit 47bd913

File tree

33 files changed

+37
-37
lines changed

33 files changed

+37
-37
lines changed

extensions/blocks/business-hours/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import apiFetch from '@wordpress/api-fetch';
55
import classNames from 'classnames';
66
import { __ } from '@wordpress/i18n';
77
import { __experimentalGetSettings } from '@wordpress/date';
8-
import { BlockIcon } from '@wordpress/editor';
8+
import { BlockIcon } from '@wordpress/block-editor';
99
import { Component } from '@wordpress/element';
1010
import { Placeholder } from '@wordpress/components';
1111

extensions/blocks/contact-form/components/jetpack-contact-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from '@wordpress/components';
1717
import { Component, Fragment } from '@wordpress/element';
1818
import { compose, withInstanceId } from '@wordpress/compose';
19-
import { InnerBlocks, InspectorControls, URLInput } from '@wordpress/editor';
19+
import { InnerBlocks, InspectorControls, URLInput } from '@wordpress/block-editor';
2020

2121
/**
2222
* Internal dependencies

extensions/blocks/contact-form/components/jetpack-field-checkbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { __ } from '@wordpress/i18n';
55
import { BaseControl, PanelBody, TextControl, ToggleControl } from '@wordpress/components';
66
import { Fragment } from '@wordpress/element';
7-
import { InspectorControls } from '@wordpress/editor';
7+
import { InspectorControls } from '@wordpress/block-editor';
88
import { withInstanceId } from '@wordpress/compose';
99

1010
/**

extensions/blocks/contact-form/components/jetpack-field-label.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* External dependencies
33
*/
44
import { __ } from '@wordpress/i18n';
5-
import { PlainText } from '@wordpress/editor';
5+
import { PlainText } from '@wordpress/block-editor';
66
import { ToggleControl } from '@wordpress/components';
77

88
const JetpackFieldLabel = ( { setAttributes, label, resetFocus, isSelected, required } ) => {

extensions/blocks/contact-form/components/jetpack-field-multiple.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { __ } from '@wordpress/i18n';
55
import { BaseControl, IconButton, PanelBody, TextControl } from '@wordpress/components';
66
import { Component, Fragment } from '@wordpress/element';
7-
import { InspectorControls } from '@wordpress/editor';
7+
import { InspectorControls } from '@wordpress/block-editor';
88
import { withInstanceId } from '@wordpress/compose';
99

1010
/**

extensions/blocks/contact-form/components/jetpack-field-textarea.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
import { __ } from '@wordpress/i18n';
55
import { Fragment } from '@wordpress/element';
6-
import { InspectorControls } from '@wordpress/editor';
6+
import { InspectorControls } from '@wordpress/block-editor';
77
import { PanelBody, TextareaControl, TextControl } from '@wordpress/components';
88

99
/**

extensions/blocks/contact-form/components/jetpack-field.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import classNames from 'classnames';
55
import { __ } from '@wordpress/i18n';
66
import { Fragment } from '@wordpress/element';
7-
import { InspectorControls } from '@wordpress/editor';
7+
import { InspectorControls } from '@wordpress/block-editor';
88
import { PanelBody, TextControl } from '@wordpress/components';
99

1010
/**

extensions/blocks/contact-form/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { __, _x } from '@wordpress/i18n';
55
import { getBlockType, createBlock } from '@wordpress/blocks';
66
import { Path, Circle } from '@wordpress/components';
77
import { Fragment } from '@wordpress/element';
8-
import { InnerBlocks } from '@wordpress/editor';
8+
import { InnerBlocks } from '@wordpress/block-editor';
99

1010
/**
1111
* Internal dependencies

extensions/blocks/contact-info/address/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import classnames from 'classnames';
55
import { __ } from '@wordpress/i18n';
66
import { Component, Fragment } from '@wordpress/element';
7-
import { PlainText } from '@wordpress/editor';
7+
import { PlainText } from '@wordpress/block-editor';
88
import { ToggleControl } from '@wordpress/components';
99

1010
/**

extensions/blocks/contact-info/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* External dependencies
33
*/
4-
import { InnerBlocks } from '@wordpress/editor';
4+
import { InnerBlocks } from '@wordpress/block-editor';
55
import classnames from 'classnames';
66

77
/**

0 commit comments

Comments
 (0)