-
+
{text}
diff --git a/src/sub-blocks/Quote/__stories__/data.json b/src/sub-blocks/Quote/__stories__/data.json
index f9e3d7994..55d3f63e0 100644
--- a/src/sub-blocks/Quote/__stories__/data.json
+++ b/src/sub-blocks/Quote/__stories__/data.json
@@ -38,9 +38,15 @@
"firstName": "Lorem",
"secondName": "ipsum",
"description": "Lorem ipsum",
- "avatar": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_6-12_light.png"
+ "avatar": {
+ "src": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img_6-12_light.png",
+ "alt": "Avatar alt"
+ }
},
- "logo": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img-mini_6-12_light.png"
+ "logo": {
+ "src": "https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/img-mini_6-12_light.png",
+ "alt": "Logo alt"
+ }
}
}
}
diff --git a/src/sub-blocks/Quote/schema.ts b/src/sub-blocks/Quote/schema.ts
index ae17ec339..230b92195 100644
--- a/src/sub-blocks/Quote/schema.ts
+++ b/src/sub-blocks/Quote/schema.ts
@@ -1,4 +1,4 @@
-import {ImageProps, imageUrlPattern} from '../../components/Image/schema';
+import {ImageProps} from '../../components/Image/schema';
import {BaseProps, ThemeProps, authorItem, withTheme} from '../../schema/validators/common';
export const Quote = {
@@ -12,10 +12,7 @@ export const Quote = {
contentType: 'text',
},
image: withTheme(ImageProps),
- logo: {
- type: 'string',
- pattern: imageUrlPattern,
- },
+ logo: ImageProps,
color: {
type: 'string',
},
diff --git a/src/text-transform/transformers.ts b/src/text-transform/transformers.ts
index 2375ae7cd..68287a4ab 100644
--- a/src/text-transform/transformers.ts
+++ b/src/text-transform/transformers.ts
@@ -78,7 +78,9 @@ function transformBlock(
}
if ('children' in block && block.children) {
- block.children = transformBlocks(block.children as ConstructorBlock[], lang, blocksConfig);
+ block.children = transformBlocks(block.children as ConstructorBlock[], lang, blocksConfig, {
+ plugins,
+ });
}
return block;