Remove double import of block editor private apis

[MAILPOET-6319]
This commit is contained in:
Rostislav Wolny
2024-11-26 09:06:18 +01:00
committed by Oluwaseun Olorunsola
parent 8d1d32a213
commit b1c8f2cc0e

View File

@@ -3,8 +3,6 @@
*/ */
import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis'; import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
import { import {
// @ts-expect-error No types for privateApis.
privateApis as blockEditorPrivateApi,
// @ts-expect-error No types for privateApis. // @ts-expect-error No types for privateApis.
privateApis as blockEditorPrivateApis, privateApis as blockEditorPrivateApis,
} from '@wordpress/block-editor'; } from '@wordpress/block-editor';
@@ -61,7 +59,7 @@ const { ColorPanel: StylesColorPanel } = unlock( blockEditorPrivateApis );
/** /**
* The useGlobalStylesOutputWithConfig is used to generate the CSS for the email editor content from the style settings. * The useGlobalStylesOutputWithConfig is used to generate the CSS for the email editor content from the style settings.
*/ */
const { useGlobalStylesOutputWithConfig } = unlock( blockEditorPrivateApi ); const { useGlobalStylesOutputWithConfig } = unlock( blockEditorPrivateApis );
export { export {
BlockCanvas, BlockCanvas,