From 0ffe04ad28c0235279d35cfeed78edad3acf8952 Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:39:34 +1100 Subject: [PATCH] useInnerBlocksProps: stabilise dropZoneElement prop --- packages/block-editor/src/components/inner-blocks/index.js | 4 ++-- packages/edit-post/src/components/visual-editor/index.js | 2 +- .../src/components/block-editor/site-editor-canvas.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-editor/src/components/inner-blocks/index.js b/packages/block-editor/src/components/inner-blocks/index.js index abcde9f096e81..d637a16f36360 100644 --- a/packages/block-editor/src/components/inner-blocks/index.js +++ b/packages/block-editor/src/components/inner-blocks/index.js @@ -172,7 +172,7 @@ export function useInnerBlocksProps( props = {}, options = {} ) { const { __unstableDisableLayoutClassNames, __unstableDisableDropZone, - __unstableDropZoneElement, + dropZoneElement, } = options; const { clientId, @@ -214,7 +214,7 @@ export function useInnerBlocksProps( props = {}, options = {} ) { ); const blockDropZoneRef = useBlockDropZone( { - dropZoneElement: __unstableDropZoneElement, + dropZoneElement, rootClientId: clientId, } ); diff --git a/packages/edit-post/src/components/visual-editor/index.js b/packages/edit-post/src/components/visual-editor/index.js index 98fb302ce29c9..25dcf941970ac 100644 --- a/packages/edit-post/src/components/visual-editor/index.js +++ b/packages/edit-post/src/components/visual-editor/index.js @@ -411,7 +411,7 @@ export default function VisualEditor( { styles } ) { : `${ blockListLayoutClass } wp-block-post-content` // Ensure root level blocks receive default/flow blockGap styling rules. } layout={ blockListLayout } - __unstableDropZoneElement={ + dropZoneElement={ // When iframed, pass in the html element of the iframe to // ensure the drop zone extends to the edges of the iframe. isToBeIframed diff --git a/packages/edit-site/src/components/block-editor/site-editor-canvas.js b/packages/edit-site/src/components/block-editor/site-editor-canvas.js index d3bc2ec56dfd8..643fa84559f60 100644 --- a/packages/edit-site/src/components/block-editor/site-editor-canvas.js +++ b/packages/edit-site/src/components/block-editor/site-editor-canvas.js @@ -134,7 +134,7 @@ export default function SiteEditorCanvas() { isTemplateTypeNavigation, } ) } - __unstableDropZoneElement={ + dropZoneElement={ // Pass in the html element of the iframe to ensure that // the drop zone extends to the very edges of the iframe, // even if the template is shorter than the viewport.