Skip to content

Commit

Permalink
Update @wordpress/core-data imports
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Jun 12, 2024
1 parent 84cc16e commit 16628ee
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/paragraph/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jest.mock( '@wordpress/compose/src/utils/debounce', () => ( {
// Mock link suggestions that are fetched by the link picker
// when typing a search query.
jest.mock( '@wordpress/core-data/src/fetch', () => ( {
__experimentalFetchLinkSuggestions: jest.fn().mockResolvedValue( [ {} ] ),
fetchLinkSuggestions: jest.fn().mockResolvedValue( [ {} ] ),
} ) );

setupCoreBlocks();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jest.mock( '@wordpress/compose/src/utils/debounce', () => ( {
// Mock link suggestions that are fetched by the link picker
// when typing a search query.
jest.mock( '@wordpress/core-data/src/fetch', () => ( {
__experimentalFetchLinkSuggestions: jest.fn().mockResolvedValue( [ {} ] ),
fetchLinkSuggestions: jest.fn().mockResolvedValue( [ {} ] ),
} ) );

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/fetch/fetch-link-suggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export type SearchResult = {
*
* @example
* ```js
* import { __experimentalFetchLinkSuggestions as fetchLinkSuggestions } from '@wordpress/core-data';
* import { fetchLinkSuggestions } from '@wordpress/core-data';
*
* //...
*
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
__experimentalGetCoreBlocks,
__experimentalRegisterExperimentalCoreBlocks,
} from '@wordpress/block-library';
import { __experimentalFetchLinkSuggestions as fetchLinkSuggestions } from '@wordpress/core-data';
import { fetchLinkSuggestions } from '@wordpress/core-data';
import {
registerLegacyWidgetBlock,
registerLegacyWidgetVariations,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useMemo, useCallback } from '@wordpress/element';
import { useDispatch, useSelect } from '@wordpress/data';
import {
store as coreStore,
__experimentalFetchLinkSuggestions as fetchLinkSuggestions,
fetchLinkSuggestions,
__experimentalFetchUrlData as fetchUrlData,
} from '@wordpress/core-data';
import { __ } from '@wordpress/i18n';
Expand Down

0 comments on commit 16628ee

Please sign in to comment.