From 830848f32ee2eae13a771ee8e8241aa11aa7707a Mon Sep 17 00:00:00 2001 From: lipemat Date: Fri, 10 Nov 2023 13:00:55 -0600 Subject: [PATCH] Officially deprecate the @wordpress/element package - https://github.com/WordPress/gutenberg/pull/54494 - https://github.com/WordPress/gutenberg/pull/54908 --- wordpress__element/index.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wordpress__element/index.d.ts b/wordpress__element/index.d.ts index ee32566..bd4681c 100644 --- a/wordpress__element/index.d.ts +++ b/wordpress__element/index.d.ts @@ -3,6 +3,8 @@ * * @note You probably don't need to use this. * + * @deprecated Gutenberg has remove all uses of this package and documentation. + * * @link https://developer.wordpress.org/block-editor/reference-guides/packages/packages-element/ */ declare module '@wordpress/element' { @@ -10,10 +12,19 @@ declare module '@wordpress/element' { import {useEffect as reactUseEffect, useState as reactUseState} from 'react'; import {render as reactRender} from 'react-dom'; + /** + * @deprecated + */ export const Fragment: ComponentType<{}>; + /** + * @deprecated + */ export const useEffect: typeof reactUseEffect; + /** + * @deprecated + */ export const useState: typeof reactUseState; /**