Skip to content

Commit

Permalink
fix: Wrong import group for block-library/
Browse files Browse the repository at this point in the history
  • Loading branch information
im3dabasia committed Feb 28, 2025
1 parent c6f668d commit 565573f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
32 changes: 16 additions & 16 deletions packages/block-library/src/embed/edit.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**
* External dependencies
*/
import clsx from 'clsx';

/**
* WordPress dependencies
*/
import { __, _x, sprintf } from '@wordpress/i18n';
import { useState, useEffect } from '@wordpress/element';
import { useDispatch, useSelect } from '@wordpress/data';
import { useBlockProps } from '@wordpress/block-editor';
import { store as coreStore } from '@wordpress/core-data';
import { View } from '@wordpress/primitives';
import { getAuthority } from '@wordpress/url';

/**
* Internal dependencies
*/
Expand All @@ -14,22 +30,6 @@ import { embedContentIcon } from './icons';
import EmbedLoading from './embed-loading';
import EmbedPlaceholder from './embed-placeholder';
import EmbedPreview from './embed-preview';

/**
* External dependencies
*/
import clsx from 'clsx';

/**
* WordPress dependencies
*/
import { __, _x, sprintf } from '@wordpress/i18n';
import { useState, useEffect } from '@wordpress/element';
import { useDispatch, useSelect } from '@wordpress/data';
import { useBlockProps } from '@wordpress/block-editor';
import { store as coreStore } from '@wordpress/core-data';
import { View } from '@wordpress/primitives';
import { getAuthority } from '@wordpress/url';
import { Caption } from '../utils/caption';

const EmbedEdit = ( props ) => {
Expand Down
6 changes: 1 addition & 5 deletions packages/block-library/src/embed/embed-preview.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* Internal dependencies
*/
import { getPhotoHtml } from './util';

/**
* External dependencies
*/
Expand All @@ -20,6 +15,7 @@ import { getAuthority } from '@wordpress/url';
/**
* Internal dependencies
*/
import { getPhotoHtml } from './util';
import WpEmbedPreview from './wp-embed-preview';

export default function EmbedPreview( {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/embed/test/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from 'test/helpers';
import { Platform } from 'react-native';
import Clipboard from '@react-native-clipboard/clipboard';
import { WebView } from 'react-native-webview';

/**
* WordPress dependencies
Expand All @@ -30,7 +31,6 @@ import { requestPreview } from '@wordpress/react-native-bridge';
*/
import * as paragraph from '../../paragraph';
import * as embed from '..';
import { WebView } from 'react-native-webview';

// Override modal mock to prevent unmounting it when is not visible.
// This is required to be able to trigger onClose and onDismiss events when
Expand Down

0 comments on commit 565573f

Please sign in to comment.