Skip to content

Commit

Permalink
fix: Wrong import group for router/, core-data/, editor/
Browse files Browse the repository at this point in the history
  • Loading branch information
im3dabasia committed Feb 28, 2025
1 parent 9bc4901 commit ceb13e2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/core-data/src/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { createSelector, createRegistrySelector } from '@wordpress/data';
import { addQueryArgs } from '@wordpress/url';
import deprecated from '@wordpress/deprecated';
import type { UndoManager } from '@wordpress/undo-manager';

/**
* Internal dependencies
Expand All @@ -23,7 +24,6 @@ import {
getUserPermissionCacheKey,
} from './utils';
import type * as ET from './entity-types';
import type { UndoManager } from '@wordpress/undo-manager';

// This is an incomplete, high-level approximation of the State type.
// It makes the selectors slightly more safe, but is intended to evolve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import { readFile } from 'fs/promises';
import { basename } from 'path';
import { getType } from 'mime';
import type { Locator } from '@playwright/test';

/**
* Internal dependencies
*/
import type { PageUtils } from './index';
import type { Locator } from '@playwright/test';

type FileObject = {
name: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* External dependencies
*/
import { act, render, screen } from 'test/helpers';
import { AccessibilityInfo } from 'react-native';

/**
* WordPress dependencies
Expand All @@ -15,7 +16,6 @@ import {
* Internal dependencies
*/
import OfflineStatus from '../index';
import { AccessibilityInfo } from 'react-native';

jest.mock( '../style.native.scss', () => ( {
'offline--icon': {
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/preview-dropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import { useSelect, useDispatch } from '@wordpress/data';
import { store as coreStore } from '@wordpress/core-data';
import { store as preferencesStore } from '@wordpress/preferences';
import { ActionItem } from '@wordpress/interface';
import { store as blockEditorStore } from '@wordpress/block-editor';

/**
* Internal dependencies
*/
import { store as editorStore } from '../../store';
import { store as blockEditorStore } from '@wordpress/block-editor';
import PostPreviewButton from '../post-preview-button';
import { unlock } from '../../lock-unlock';

Expand Down
10 changes: 5 additions & 5 deletions packages/editor/src/private-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
* WordPress dependencies
*/
import * as interfaceApis from '@wordpress/interface';
import {
CreateTemplatePartModal,
patternTitleField,
templateTitleField,
} from '@wordpress/fields';

/**
* Internal dependencies
Expand All @@ -23,11 +28,6 @@ import {
mergeBaseAndUserConfigs,
GlobalStylesProvider,
} from './components/global-styles-provider';
import {
CreateTemplatePartModal,
patternTitleField,
templateTitleField,
} from '@wordpress/fields';
import { registerCoreBlockBindingsSources } from './bindings/api';
import { getTemplateInfo } from './utils/get-template-info';

Expand Down
6 changes: 1 addition & 5 deletions packages/router/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
import RouteRecognizer from 'route-recognizer';
import { createBrowserHistory } from 'history';
import type { ReactNode } from 'react';

/**
* WordPress dependencies
Expand All @@ -21,11 +22,6 @@ import {
} from '@wordpress/url';
import { useEvent } from '@wordpress/compose';

/**
* Internal dependencies
*/
import type { ReactNode } from 'react';

const history = createBrowserHistory();
interface Route {
name: string;
Expand Down

0 comments on commit ceb13e2

Please sign in to comment.