Skip to content

Commit

Permalink
Fix circular dependency issues?
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jan 29, 2024
1 parent 0ae33ce commit 34c2821
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { shadow as shadowIcon, Icon, check } from '@wordpress/icons';
/**
* Internal dependencies
*/
import { mergeOrigins } from '../../store/private-selectors/get-inherited-settings';
import { mergeOrigins } from '../../store/get-inherited-settings';
import { getValueFromVariable, TOOLSPANEL_DROPDOWNMENU_PROPS } from './utils';
import { setImmutably } from '../../utils/object';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useCallback } from '@wordpress/element';
import {
mergeOrigins,
hasMergedOrigins,
} from '../../store/private-selectors/get-inherited-settings';
} from '../../store/get-inherited-settings';
import FontFamilyControl from '../font-family';
import FontAppearanceControl from '../font-appearance-control';
import LineHeightControl from '../line-height-control';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { applyFilters } from '@wordpress/hooks';
/**
* Internal dependencies
*/
import { getValueFromObjectPath } from '../../utils/object';
import { getValueFromObjectPath } from '../utils/object';
import {
getBlockParents,
getBlockName,
getSettings,
getBlockAttributes,
} from '../selectors';
} from './selectors';

const blockedPaths = [
'color',
Expand Down
6 changes: 6 additions & 0 deletions packages/block-editor/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ import reducer from './reducer';
import * as selectors from './selectors';
import * as privateActions from './private-actions';
import * as privateSelectors from './private-selectors';
import { getInheritedSettings } from './get-inherited-settings';
import * as resolvers from './resolvers';
import * as actions from './actions';
import { STORE_NAME } from './constants';
import { unlock } from '../lock-unlock';

privateSelectors = {
...privateSelectors,
getInheritedSettings,
};

/**
* Block editor data store configuration.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ import {
getBlockEditingMode,
getSettings,
canInsertBlockType,
} from '../selectors';
import { checkAllowListRecursive, getAllPatternsDependants } from '../utils';
import { INSERTER_PATTERN_TYPES } from '../../components/inserter/block-patterns-tab/utils';
import { store } from '..';
import { unlock } from '../../lock-unlock';

export { getInheritedSettings } from './get-inherited-settings';
} from './selectors';
import { checkAllowListRecursive, getAllPatternsDependants } from './utils';
import { INSERTER_PATTERN_TYPES } from '../components/inserter/block-patterns-tab/utils';
import { store } from '.';
import { unlock } from '../lock-unlock';

/**
* Returns true if the block interface is hidden, or false otherwise.
Expand Down Expand Up @@ -175,7 +173,7 @@ export function getStyleOverrides( state ) {
return state.styleOverrides;
}

/** @typedef {import('../actions').InserterMediaCategory} InserterMediaCategory */
/** @typedef {import('./actions').InserterMediaCategory} InserterMediaCategory */
/**
* Returns the registered inserter media categories through the public API.
*
Expand Down

0 comments on commit 34c2821

Please sign in to comment.