From f23f2072151fb4242911b4be31789b63b1832cba Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Thu, 11 Jul 2024 12:51:50 -0400 Subject: [PATCH] Add a link to the gutenberg PR --- entries/app-outside-block-editor/app.tsx | 2 ++ types/keyboardShortcuts.d.ts | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 types/keyboardShortcuts.d.ts diff --git a/entries/app-outside-block-editor/app.tsx b/entries/app-outside-block-editor/app.tsx index ddc3ac8..e6f1276 100644 --- a/entries/app-outside-block-editor/app.tsx +++ b/entries/app-outside-block-editor/app.tsx @@ -4,6 +4,8 @@ import commands from '@/services/commands'; /** * Command Palette Application Outside the Block Editor + * + * This is a workaround until {@link https://github.com/WordPress/gutenberg/pull/54515} is implemented */ function AppOutsideBlockEditor() { const availableCommands = useMemo(() => commands(), []); diff --git a/types/keyboardShortcuts.d.ts b/types/keyboardShortcuts.d.ts new file mode 100644 index 0000000..865509d --- /dev/null +++ b/types/keyboardShortcuts.d.ts @@ -0,0 +1,3 @@ +declare module '@wordpress/keyboard-shortcuts' { + export const ShortcutProvider: import('react').Provider; +}