Skip to content

Commit a9323a1

Browse files
authored
fix: add map block to text transform blocks [CLOUDFRONT-15094] (#206)
1 parent 3971057 commit a9323a1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/components/Map/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Map
33
`type: "map"`
44

55
`center: number[]` - Geo coordinates of the map center, required for `Yandex maps`
6+
67
`zoom?: number` - Map zoom level. In google maps values ranging from 0 (the whole world) to 21 (individual buildings). In Yandex maps values ranging from 1 (the whole world) to 16 (individual buildings)
78

89
`address?: string;` - URL-escaped place name, address. You need to use it for `Google maps`

src/text-transform/blocks.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,13 @@ const config: BlocksConfig = {
289289
transformer: yfmTransformer,
290290
},
291291
],
292+
[BlockType.MapBlock]: [
293+
...blockHeaderTransfomer,
294+
{
295+
fields: ['title', 'additionalInfo'],
296+
transformer: yfmTransformer,
297+
},
298+
],
292299
[BlockType.TabsBlock]: [
293300
...blockHeaderTransfomer,
294301
{

0 commit comments

Comments
 (0)