From be1b318f2378988bb49d17256bb56c510e54d0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Fri, 23 Oct 2026 08:39:19 -0400 Subject: [PATCH] Fix BlockType type brand and a comment typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EnumValue<'Blocktype'> did not match its EnumDecl<'BlockType'> / enum_('BlockType'); type-only change, no runtime effect. Also capitalize a sentence in util.content.ts. Signed-off-by: Léon Avic Simmons --- src/plugins/enums.ts | 2 +- src/plugins/util.content.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/enums.ts b/src/plugins/enums.ts index b746a2d..48fd31d 100644 --- a/src/plugins/enums.ts +++ b/src/plugins/enums.ts @@ -9,7 +9,7 @@ export const BackgroundSource: EnumDecl<'BackgroundSource'> = enum_('BackgroundS NONE: [4, 'none'], }); -export type BlockType = EnumValue<'Blocktype'>; +export type BlockType = EnumValue<'BlockType'>; export const BlockType: EnumDecl<'BlockType'> = enum_('BlockType', { UNDEFINED: [-1, 'undefined'], NAVIGATION: [1, 'navigation'], diff --git a/src/plugins/util.content.ts b/src/plugins/util.content.ts index 706215c..2f0c344 100644 --- a/src/plugins/util.content.ts +++ b/src/plugins/util.content.ts @@ -19,7 +19,7 @@ export const getFocalPoint = (media: Node) => { export const getAltText = (ctx: Context, image: Node): string => { // Content items for image blocks were populated with an altText value with a migration. - // See CMS-33805. for those, the content item value should always be used even if it is empty. + // See CMS-33805. For those, the content item value should always be used even if it is empty. const blockType = ctx.resolve(['blockType']); if (!blockType.isMissing() && blockType.asNumber() === BlockType.IMAGE.code) { const altText = image.path(['altText']);