From 901149222ba1bac45d8018a509bcd43114228a52 Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Fri, 18 Oct 2024 09:03:07 -0600 Subject: [PATCH] fix: cannot query field "align" on type "CoreQuoteAttributes"' (#1946) * - update query fragment on CoreQuote to be compatible with WordPress 6.6 * - update query string * fix: add legacyBehavior in * chore: update changeset --------- Co-authored-by: Theo <328805+theodesp@users.noreply.github.com> --- .changeset/smart-pumas-act.md | 7 +++++++ packages/blocks/src/blocks/CoreButton.tsx | 2 +- packages/blocks/src/blocks/CoreQuote.tsx | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .changeset/smart-pumas-act.md diff --git a/.changeset/smart-pumas-act.md b/.changeset/smart-pumas-act.md new file mode 100644 index 000000000..58f30db3e --- /dev/null +++ b/.changeset/smart-pumas-act.md @@ -0,0 +1,7 @@ +--- +'@faustwp/blocks': major +--- + +Updates the GraphQL fragment associated with the CoreQuote component to be compatible with WordPress 6.6 + +Adds `legacyBehavior` to CoreButton link to work on Next.js v13. diff --git a/packages/blocks/src/blocks/CoreButton.tsx b/packages/blocks/src/blocks/CoreButton.tsx index 02a8a32f7..081172b3c 100644 --- a/packages/blocks/src/blocks/CoreButton.tsx +++ b/packages/blocks/src/blocks/CoreButton.tsx @@ -35,7 +35,7 @@ export function CoreButton(props: CoreButtonFragmentProps) { aria-label={attributes?.text} id={attributes?.anchor} className={attributes?.cssClassName}> - +