From 812c5cd9dcc2ed93c68207c023bfe0fa37522ff2 Mon Sep 17 00:00:00 2001 From: qradle Date: Wed, 31 Jan 2024 11:57:00 +0300 Subject: [PATCH 1/2] fix: add form block textContent into transofmers config --- src/text-transform/config.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/text-transform/config.ts b/src/text-transform/config.ts index ff57aecc8..0c90049cf 100644 --- a/src/text-transform/config.ts +++ b/src/text-transform/config.ts @@ -380,4 +380,16 @@ export const config: BlocksConfig = { parser: createItemsParser(['text']), }, ], + [BlockType.FormBlock]: [ + { + fields: ['textContent'], + transformer: yfmTransformer, + parser: parseContentLayout, + }, + { + fields: ['textContent'], + transformer: typografTransformer, + parser: parseContentLayoutTitle, + }, + ], }; From f400ba5e39ad5569d0dc41c3d26806cb9327c14c Mon Sep 17 00:00:00 2001 From: qradle Date: Wed, 31 Jan 2024 14:30:00 +0300 Subject: [PATCH 2/2] fix: form block docs textContent link --- src/blocks/Form/__stories__/Form.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks/Form/__stories__/Form.mdx b/src/blocks/Form/__stories__/Form.mdx index 35ee34a7d..1d42ae712 100644 --- a/src/blocks/Form/__stories__/Form.mdx +++ b/src/blocks/Form/__stories__/Form.mdx @@ -11,7 +11,7 @@ import * as FormBlockStories from './Form.stories.tsx'; `title?: string` - Title. -`textContent?` - See the [Content](?path=/story/components-content--default&viewMode=docs) component. +`textContent?` - See the [Content](?path=/story/components-content--docs&viewMode=docs) component. `formData: {yandex?: Object, hubspot?: Object}` - See [Yandex](?path=/story/components-yandexform--docs&viewMode=docs) / [Hubspot](?path=/story/components-hubspotform--docs&viewMode=docs) form data.