Remove double import of block editor private apis
[MAILPOET-6319]
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
8d1d32a213
commit
b1c8f2cc0e
@@ -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,
|
||||||
|
Reference in New Issue
Block a user