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

Move InserterButton from components package to block-editor package #56494

Merged
merged 9 commits into from
Nov 30, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {
* WordPress dependencies
*/
import { useState, useEffect } from '@wordpress/element';
import { BottomSheet, Gradient, InserterButton } from '@wordpress/components';
import { BottomSheet, Gradient } from '@wordpress/components';
import { InserterButton } from '@wordpress/block-editor';
fluiddot marked this conversation as resolved.
Show resolved Hide resolved
import {
usePreferredColorScheme,
usePreferredColorSchemeStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
PanelBody,
BottomSheet,
FooterMessageControl,
InserterButton,
} from '@wordpress/components';
import { InserterButton } from '@wordpress/block-editor';
fluiddot marked this conversation as resolved.
Show resolved Hide resolved
import { Icon, close } from '@wordpress/icons';

/**
Expand Down
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 @@ -90,6 +90,7 @@ export { default as BlockStyles } from './block-styles';
export { default as DefaultBlockAppender } from './default-block-appender';
export { default as __unstableEditorStyles } from './editor-styles';
export { default as Inserter } from './inserter';
export { default as InserterButton } from './inserter-button';
export { useBlockProps } from './block-list/use-block-props';
export { default as FloatingToolbar } from './floating-toolbar';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import { Component } from '@wordpress/element';
import { Icon } from '@wordpress/components';
import { withPreferredColorScheme } from '@wordpress/compose';
import { __, sprintf } from '@wordpress/i18n';
import { BlockIcon } from '@wordpress/block-editor';

/**
* Internal dependencies
*/
import { BlockIcon } from '../block-icon';
import styles from './style.scss';
import sparkles from './sparkles';
class MenuItem extends Component {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';
import { SVG, Path } from '@wordpress/components';
fluiddot marked this conversation as resolved.
Show resolved Hide resolved

const sparkles = (
<SVG viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
Expand Down
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Enhancements

- `Button`: Add focus rings to focusable disabled buttons ([#56383](https://github.com/WordPress/gutenberg/pull/56383)).
- `InserterButton`: Move mobile InserterButton from components package to block-editor package ([#56494](https://github.com/WordPress/gutenberg/pull/56494))

### Experimental

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 @@ -110,7 +110,6 @@ export { default as ImageLinkDestinationsScreen } from './mobile/link-settings/i
export { default as SegmentedControl } from './mobile/segmented-control';
export { default as Image, IMAGE_DEFAULT_FOCAL_POINT } from './mobile/image';
export { default as ImageEditingButton } from './mobile/image/image-editing-button';
export { default as InserterButton } from './mobile/inserter-button';
fluiddot marked this conversation as resolved.
Show resolved Hide resolved
export { setClipboard, getClipboard } from './mobile/clipboard';
export { default as AudioPlayer } from './mobile/audio-player';
export { default as Badge } from './mobile/badge';
Expand Down
1 change: 1 addition & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ For each user feature we should also add a importance categorization label to i
-->

## Unreleased
- [*] [internal] Move InserterButton from components package to block-editor package [#56494]

## 1.109.0
- [*] Audio block: Improve legibility of audio file details on various background colors [#55627]
Expand Down
Loading