@portabletext/markdown 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
- package/src/default-schema.ts +0 -166
- package/src/example-document.md +0 -237
- package/src/example-document.out.md +0 -235
- package/src/example-document.terse-pt.json +0 -124
- package/src/example-document.test.ts +0 -87
- package/src/from-portable-text/build-list-index-map.ts +0 -133
- package/src/from-portable-text/portable-text-to-markdown.ts +0 -135
- package/src/from-portable-text/render-node.ts +0 -176
- package/src/from-portable-text/renderers/block-spacing.ts +0 -39
- package/src/from-portable-text/renderers/hard-break.ts +0 -4
- package/src/from-portable-text/renderers/list-item.ts +0 -32
- package/src/from-portable-text/renderers/marks.ts +0 -113
- package/src/from-portable-text/renderers/style.ts +0 -79
- package/src/from-portable-text/renderers/type.ts +0 -126
- package/src/from-portable-text/types.ts +0 -240
- package/src/index.ts +0 -51
- package/src/key-generator.ts +0 -32
- package/src/markdown-to-portable-text.test.ts +0 -3273
- package/src/portable-text-to-markdown.test.ts +0 -803
- package/src/to-portable-text/markdown-to-portable-text.ts +0 -1204
- package/src/to-portable-text/matchers.ts +0 -192
package/README.md
CHANGED
|
@@ -8,6 +8,54 @@
|
|
|
8
8
|
npm install @portabletext/markdown
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## Quick start
|
|
12
|
+
|
|
13
|
+
**Markdown → Portable Text**
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import {markdownToPortableText} from '@portabletext/markdown'
|
|
17
|
+
|
|
18
|
+
const blocks = markdownToPortableText('# Hello **world**')
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
[
|
|
23
|
+
{
|
|
24
|
+
"_type": "block",
|
|
25
|
+
"_key": "f4s8k2",
|
|
26
|
+
"style": "h1",
|
|
27
|
+
"children": [
|
|
28
|
+
{"_type": "span", "_key": "a9c3x1", "text": "Hello ", "marks": []},
|
|
29
|
+
{"_type": "span", "_key": "b7d2m5", "text": "world", "marks": ["strong"]}
|
|
30
|
+
],
|
|
31
|
+
"markDefs": []
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Portable Text → Markdown**
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
import {portableTextToMarkdown} from '@portabletext/markdown'
|
|
40
|
+
|
|
41
|
+
const markdown = portableTextToMarkdown([
|
|
42
|
+
{
|
|
43
|
+
_type: 'block',
|
|
44
|
+
_key: 'f4s8k2',
|
|
45
|
+
style: 'h1',
|
|
46
|
+
children: [
|
|
47
|
+
{_type: 'span', _key: 'a9c3x1', text: 'Hello ', marks: []},
|
|
48
|
+
{_type: 'span', _key: 'b7d2m5', text: 'world', marks: ['strong']},
|
|
49
|
+
],
|
|
50
|
+
markDefs: [],
|
|
51
|
+
},
|
|
52
|
+
])
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```md
|
|
56
|
+
# Hello **world**
|
|
57
|
+
```
|
|
58
|
+
|
|
11
59
|
## Supported features
|
|
12
60
|
|
|
13
61
|
| Feature | Markdown → Portable Text | Portable Text → Markdown |
|
|
@@ -35,23 +83,70 @@ npm install @portabletext/markdown
|
|
|
35
83
|
|
|
36
84
|
### `markdownToPortableText`
|
|
37
85
|
|
|
38
|
-
Converts a Markdown string to an array of Portable Text blocks.
|
|
39
|
-
|
|
40
86
|
```ts
|
|
41
87
|
import {markdownToPortableText} from '@portabletext/markdown'
|
|
42
88
|
|
|
43
|
-
const
|
|
89
|
+
const blocks = markdownToPortableText(`
|
|
44
90
|
# Hello World
|
|
45
91
|
|
|
46
|
-
This is
|
|
92
|
+
This is **bold** and *italic* text with a [link](https://example.com).
|
|
47
93
|
|
|
48
94
|
- First item
|
|
49
95
|
- Second item
|
|
96
|
+
`)
|
|
97
|
+
```
|
|
50
98
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
99
|
+
```json
|
|
100
|
+
[
|
|
101
|
+
{
|
|
102
|
+
"_type": "block",
|
|
103
|
+
"_key": "k9f2x1",
|
|
104
|
+
"style": "h1",
|
|
105
|
+
"children": [
|
|
106
|
+
{"_type": "span", "_key": "s1a2b3", "text": "Hello World", "marks": []}
|
|
107
|
+
],
|
|
108
|
+
"markDefs": []
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"_type": "block",
|
|
112
|
+
"_key": "m3n4p5",
|
|
113
|
+
"style": "normal",
|
|
114
|
+
"children": [
|
|
115
|
+
{"_type": "span", "_key": "s2c3d4", "text": "This is ", "marks": []},
|
|
116
|
+
{"_type": "span", "_key": "s3e4f5", "text": "bold", "marks": ["strong"]},
|
|
117
|
+
{"_type": "span", "_key": "s4g5h6", "text": " and ", "marks": []},
|
|
118
|
+
{"_type": "span", "_key": "s5i6j7", "text": "italic", "marks": ["em"]},
|
|
119
|
+
{"_type": "span", "_key": "s6k7l8", "text": " text with a ", "marks": []},
|
|
120
|
+
{"_type": "span", "_key": "s7m8n9", "text": "link", "marks": ["a1b2c3"]},
|
|
121
|
+
{"_type": "span", "_key": "s8o9p0", "text": ".", "marks": []}
|
|
122
|
+
],
|
|
123
|
+
"markDefs": [
|
|
124
|
+
{"_type": "link", "_key": "a1b2c3", "href": "https://example.com"}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"_type": "block",
|
|
129
|
+
"_key": "q1r2s3",
|
|
130
|
+
"style": "normal",
|
|
131
|
+
"listItem": "bullet",
|
|
132
|
+
"level": 1,
|
|
133
|
+
"children": [
|
|
134
|
+
{"_type": "span", "_key": "s9q0r1", "text": "First item", "marks": []}
|
|
135
|
+
],
|
|
136
|
+
"markDefs": []
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"_type": "block",
|
|
140
|
+
"_key": "t4u5v6",
|
|
141
|
+
"style": "normal",
|
|
142
|
+
"listItem": "bullet",
|
|
143
|
+
"level": 1,
|
|
144
|
+
"children": [
|
|
145
|
+
{"_type": "span", "_key": "s0s1t2", "text": "Second item", "marks": []}
|
|
146
|
+
],
|
|
147
|
+
"markDefs": []
|
|
148
|
+
}
|
|
149
|
+
]
|
|
55
150
|
```
|
|
56
151
|
|
|
57
152
|
The conversion is driven by two concepts:
|
|
@@ -215,23 +310,60 @@ markdownToPortableText(markdown, {
|
|
|
215
310
|
|
|
216
311
|
### `portableTextToMarkdown`
|
|
217
312
|
|
|
218
|
-
Converts an array of Portable Text blocks to a Markdown string.
|
|
219
|
-
|
|
220
313
|
```ts
|
|
221
314
|
import {portableTextToMarkdown} from '@portabletext/markdown'
|
|
222
315
|
|
|
223
|
-
const
|
|
316
|
+
const markdown = portableTextToMarkdown([
|
|
224
317
|
{
|
|
225
318
|
_type: 'block',
|
|
226
|
-
_key: '
|
|
319
|
+
_key: 'k9f2x1',
|
|
227
320
|
style: 'h1',
|
|
228
|
-
children: [{_type: 'span', _key: '
|
|
321
|
+
children: [{_type: 'span', _key: 's1a2b3', text: 'Hello World', marks: []}],
|
|
229
322
|
markDefs: [],
|
|
230
323
|
},
|
|
231
|
-
|
|
324
|
+
{
|
|
325
|
+
_type: 'block',
|
|
326
|
+
_key: 'm3n4p5',
|
|
327
|
+
style: 'normal',
|
|
328
|
+
children: [
|
|
329
|
+
{_type: 'span', _key: 's2c3d4', text: 'This is ', marks: []},
|
|
330
|
+
{_type: 'span', _key: 's3e4f5', text: 'bold', marks: ['strong']},
|
|
331
|
+
{_type: 'span', _key: 's4g5h6', text: ' and ', marks: []},
|
|
332
|
+
{_type: 'span', _key: 's5i6j7', text: 'italic', marks: ['em']},
|
|
333
|
+
{_type: 'span', _key: 's6k7l8', text: ' text with a ', marks: []},
|
|
334
|
+
{_type: 'span', _key: 's7m8n9', text: 'link', marks: ['a1b2c3']},
|
|
335
|
+
{_type: 'span', _key: 's8o9p0', text: '.', marks: []},
|
|
336
|
+
],
|
|
337
|
+
markDefs: [{_type: 'link', _key: 'a1b2c3', href: 'https://example.com'}],
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
_type: 'block',
|
|
341
|
+
_key: 'q1r2s3',
|
|
342
|
+
style: 'normal',
|
|
343
|
+
listItem: 'bullet',
|
|
344
|
+
level: 1,
|
|
345
|
+
children: [{_type: 'span', _key: 's9q0r1', text: 'First item', marks: []}],
|
|
346
|
+
markDefs: [],
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
_type: 'block',
|
|
350
|
+
_key: 't4u5v6',
|
|
351
|
+
style: 'normal',
|
|
352
|
+
listItem: 'bullet',
|
|
353
|
+
level: 1,
|
|
354
|
+
children: [{_type: 'span', _key: 's0s1t2', text: 'Second item', marks: []}],
|
|
355
|
+
markDefs: [],
|
|
356
|
+
},
|
|
357
|
+
])
|
|
358
|
+
```
|
|
232
359
|
|
|
233
|
-
|
|
234
|
-
|
|
360
|
+
```md
|
|
361
|
+
# Hello World
|
|
362
|
+
|
|
363
|
+
This is **bold** and _italic_ text with a [link](https://example.com).
|
|
364
|
+
|
|
365
|
+
- First item
|
|
366
|
+
- Second item
|
|
235
367
|
```
|
|
236
368
|
|
|
237
369
|
The conversion is driven by **Renderers**: functions that render Portable Text elements to Markdown strings. The library includes default renderers for common types; provide your own for custom block types.
|
|
@@ -319,13 +451,6 @@ portableTextToMarkdown(blocks, {
|
|
|
319
451
|
| `DefaultImageRenderer` | `{src: string, alt?: string, title?: string}` | `` |
|
|
320
452
|
| `DefaultTableRenderer` | `{rows: [...], headerRows?: number}` | Markdown table |
|
|
321
453
|
|
|
322
|
-
**Other exports:** The library also exports mark renderers, block style renderers, and TypeScript types:
|
|
323
|
-
|
|
324
|
-
- `DefaultStrongRenderer`, `DefaultEmRenderer`, `DefaultCodeRenderer`, `DefaultUnderlineRenderer`, `DefaultStrikeThroughRenderer`, `DefaultLinkRenderer`
|
|
325
|
-
- `DefaultNormalRenderer`, `DefaultBlockquoteRenderer`, `DefaultH1Renderer`–`DefaultH6Renderer`
|
|
326
|
-
- `DefaultListItemRenderer`, `DefaultHardBreakRenderer`, `DefaultBlockSpacingRenderer`
|
|
327
|
-
- `BlockSpacingRenderer`, `PortableTextRenderers`, `PortableTextMarkRenderer`, etc.
|
|
328
|
-
|
|
329
454
|
#### What renderers receive
|
|
330
455
|
|
|
331
456
|
**Block renderers** (`block.*`):
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["ArbitraryTypedObject","TypedObject","PortableTextBlock","M","C","S","L","PortableTextMarkDefinition","PortableTextSpan","PortableTextBlockStyle","PortableTextListItemType","PortableTextLink","PortableTextListItemBlock","Omit"],"sources":["../../../node_modules/.pnpm/@portabletext+types@3.0.0/node_modules/@portabletext/types/dist/index.d.ts","../src/from-portable-text/renderers/block-spacing.ts","../src/from-portable-text/types.ts","../src/from-portable-text/portable-text-to-markdown.ts","../src/from-portable-text/renderers/hard-break.ts","../src/from-portable-text/renderers/list-item.ts","../src/from-portable-text/renderers/style.ts","../src/from-portable-text/renderers/marks.ts","../src/from-portable-text/renderers/type.ts","../src/to-portable-text/matchers.ts","../src/to-portable-text/markdown-to-portable-text.ts"],"sourcesContent":["/**\n * Any object with an `_type` that is a string. Can hold any other properties.\n * @public\n */\nexport declare type ArbitraryTypedObject = TypedObject & {\n [key: string]: any;\n};\n\n/**\n * A Portable Text Block can be thought of as one paragraph, quote or list item.\n * In other words, it is a container for text, that can have a visual style associated with it.\n * The actual text value is stored in portable text spans inside of the `childen` array.\n *\n * @typeParam M - Mark types that be used for text spans\n * @typeParam C - Types allowed as children of this block\n * @typeParam S - Allowed block styles (eg `normal`, `blockquote`, `h3` etc)\n * @typeParam L - Allowed list item types (eg `number`, `bullet` etc)\n * @public\n */\nexport declare interface PortableTextBlock<\n M extends PortableTextMarkDefinition = PortableTextMarkDefinition,\n C extends TypedObject = ArbitraryTypedObject | PortableTextSpan,\n S extends string = PortableTextBlockStyle,\n L extends string = PortableTextListItemType,\n> extends TypedObject {\n /**\n * Type name identifying this as a portable text block.\n * All items within a portable text array should have a `_type` property.\n *\n * Usually 'block', but can be customized to other values\n */\n _type: \"block\" | string;\n /**\n * A key that identifies this block uniquely within the parent array. Used to more easily address\n * the block when editing collaboratively, but is also very useful for keys inside of React and\n * other rendering frameworks that can use keys to optimize operations.\n */\n _key?: string;\n /**\n * Array of inline items for this block. Usually contain text spans, but can be\n * configured to include inline objects of other types as well.\n */\n children: C[];\n /**\n * Array of mark definitions used in child text spans. By having them be on the block level,\n * the same mark definition can be reused for multiple text spans, which is often the case\n * with nested marks.\n */\n markDefs?: M[];\n /**\n * Visual style of the block\n * Common values: 'normal', 'blockquote', 'h1'...'h6'\n */\n style?: S;\n /**\n * If this block is a list item, identifies which style of list item this is\n * Common values: 'bullet', 'number', but can be configured\n */\n listItem?: L;\n /**\n * If this block is a list item, identifies which level of nesting it belongs within\n */\n level?: number;\n}\n\n/**\n * A set of _common_ (but not required/standarized) block styles\n * @public\n */\nexport declare type PortableTextBlockStyle =\n | \"normal\"\n | \"blockquote\"\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | string;\n\n/**\n * The simplest representation of a link\n * @public\n */\nexport declare interface PortableTextLink {\n _type: \"link\";\n href: string;\n}\n\n/**\n * Strictly speaking the same as a portable text block, but `listItem` is required\n *\n * @typeParam M - Mark types that be used for text spans\n * @typeParam C - Types allowed as children of this block\n * @typeParam S - Allowed block styles (eg `normal`, `blockquote`, `h3` etc)\n * @typeParam L - Allowed list item types (eg `number`, `bullet` etc)\n * @public\n */\nexport declare interface PortableTextListItemBlock<\n M extends PortableTextMarkDefinition = PortableTextMarkDefinition,\n C extends TypedObject = PortableTextSpan,\n S extends string = PortableTextBlockStyle,\n L extends string = PortableTextListItemType,\n> extends Omit<PortableTextBlock<M, C, S, L>, \"listItem\"> {\n listItem: L;\n}\n\n/**\n * A set of _common_ (but not required/standardized) list item types\n * @public\n */\nexport declare type PortableTextListItemType = \"bullet\" | \"number\" | string;\n\n/**\n * A mark definition holds information for marked text. For instance, a text span could reference\n * a mark definition for a hyperlink, a geoposition, a reference to a document or anything that is\n * representable as a JSON object.\n * @public\n */\nexport declare interface PortableTextMarkDefinition {\n /**\n * Unknown properties\n */\n [key: string]: unknown;\n /**\n * Identifies the type of mark this is, and is used to pick the correct React components to use\n * when rendering a text span marked with this mark type.\n */\n _type: string;\n /**\n * Uniquely identifies this mark definition within the block\n */\n _key: string;\n}\n\n/**\n * A Portable Text Span holds a chunk of the actual text value of a Portable Text Block\n * @public\n */\nexport declare interface PortableTextSpan {\n /**\n * Type is always `span` for portable text spans, as these don't vary in shape\n */\n _type: \"span\";\n /**\n * Unique (within parent block) key for this portable text span\n */\n _key?: string;\n /**\n * The actual text value of this text span\n */\n text: string;\n /**\n * An array of marks this text span is annotated with, identified by its `_key`.\n * If the key cannot be found in the parent blocks mark definition, the mark is assumed to be a\n * decorator (a simpler mark without any properties - for instance `strong` or `em`)\n */\n marks?: string[];\n}\n\n/**\n * Any object with an `_type` property (which is required in portable text arrays),\n * as well as a _potential_ `_key` (highly encouraged)\n * @public\n */\nexport declare interface TypedObject {\n /**\n * Identifies the type of object/span this is, and is used to pick the correct React components\n * to use when rendering a span or inline object with this type.\n */\n _type: string;\n /**\n * Uniquely identifies this object within its parent block.\n * Not _required_, but highly encouraged.\n */\n _key?: string;\n}\n\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;AAIA;AAeA;AACYO,aAhBQP,oBAAAA,GAAuBC,WAgB/BM,GAAAA;EAA6BA,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;CAC7BN;;;;;;;;;;AAgDZ;AA6BA;AACYM,kBAhFaL,mBAgFbK,CAA6BA,UA/E7BA,0BA+E6BA,GA/EAA,0BA+EAA,EAC7BN,UA/EAA,WA+EAA,GA/EcD,oBA+EdC,GA/EqCO,gBA+ErCP,EAAc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Object","TypedObject","PortableTextBlock","M","C","S","L","PortableTextMarkDefinition","PortableTextSpan","PortableTextBlockStyle","PortableTextListItemType","PortableTextLink","PortableTextListItemBlock","Omit"],"sources":["../../../node_modules/.pnpm/@portabletext+types@3.0.0/node_modules/@portabletext/types/dist/index.d.ts","../src/from-portable-text/renderers/block-spacing.ts","../src/from-portable-text/types.ts","../src/from-portable-text/portable-text-to-markdown.ts","../src/from-portable-text/renderers/hard-break.ts","../src/from-portable-text/renderers/list-item.ts","../src/from-portable-text/renderers/style.ts","../src/from-portable-text/renderers/marks.ts","../src/from-portable-text/renderers/type.ts","../src/to-portable-text/matchers.ts","../src/to-portable-text/markdown-to-portable-text.ts"],"sourcesContent":["/**\n * Any object with an `_type` that is a string. Can hold any other properties.\n * @public\n */\nexport declare type ArbitraryTypedObject = TypedObject & {\n [key: string]: any;\n};\n\n/**\n * A Portable Text Block can be thought of as one paragraph, quote or list item.\n * In other words, it is a container for text, that can have a visual style associated with it.\n * The actual text value is stored in portable text spans inside of the `childen` array.\n *\n * @typeParam M - Mark types that be used for text spans\n * @typeParam C - Types allowed as children of this block\n * @typeParam S - Allowed block styles (eg `normal`, `blockquote`, `h3` etc)\n * @typeParam L - Allowed list item types (eg `number`, `bullet` etc)\n * @public\n */\nexport declare interface PortableTextBlock<\n M extends PortableTextMarkDefinition = PortableTextMarkDefinition,\n C extends TypedObject = ArbitraryTypedObject | PortableTextSpan,\n S extends string = PortableTextBlockStyle,\n L extends string = PortableTextListItemType,\n> extends TypedObject {\n /**\n * Type name identifying this as a portable text block.\n * All items within a portable text array should have a `_type` property.\n *\n * Usually 'block', but can be customized to other values\n */\n _type: \"block\" | string;\n /**\n * A key that identifies this block uniquely within the parent array. Used to more easily address\n * the block when editing collaboratively, but is also very useful for keys inside of React and\n * other rendering frameworks that can use keys to optimize operations.\n */\n _key?: string;\n /**\n * Array of inline items for this block. Usually contain text spans, but can be\n * configured to include inline objects of other types as well.\n */\n children: C[];\n /**\n * Array of mark definitions used in child text spans. By having them be on the block level,\n * the same mark definition can be reused for multiple text spans, which is often the case\n * with nested marks.\n */\n markDefs?: M[];\n /**\n * Visual style of the block\n * Common values: 'normal', 'blockquote', 'h1'...'h6'\n */\n style?: S;\n /**\n * If this block is a list item, identifies which style of list item this is\n * Common values: 'bullet', 'number', but can be configured\n */\n listItem?: L;\n /**\n * If this block is a list item, identifies which level of nesting it belongs within\n */\n level?: number;\n}\n\n/**\n * A set of _common_ (but not required/standarized) block styles\n * @public\n */\nexport declare type PortableTextBlockStyle =\n | \"normal\"\n | \"blockquote\"\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | string;\n\n/**\n * The simplest representation of a link\n * @public\n */\nexport declare interface PortableTextLink {\n _type: \"link\";\n href: string;\n}\n\n/**\n * Strictly speaking the same as a portable text block, but `listItem` is required\n *\n * @typeParam M - Mark types that be used for text spans\n * @typeParam C - Types allowed as children of this block\n * @typeParam S - Allowed block styles (eg `normal`, `blockquote`, `h3` etc)\n * @typeParam L - Allowed list item types (eg `number`, `bullet` etc)\n * @public\n */\nexport declare interface PortableTextListItemBlock<\n M extends PortableTextMarkDefinition = PortableTextMarkDefinition,\n C extends TypedObject = PortableTextSpan,\n S extends string = PortableTextBlockStyle,\n L extends string = PortableTextListItemType,\n> extends Omit<PortableTextBlock<M, C, S, L>, \"listItem\"> {\n listItem: L;\n}\n\n/**\n * A set of _common_ (but not required/standardized) list item types\n * @public\n */\nexport declare type PortableTextListItemType = \"bullet\" | \"number\" | string;\n\n/**\n * A mark definition holds information for marked text. For instance, a text span could reference\n * a mark definition for a hyperlink, a geoposition, a reference to a document or anything that is\n * representable as a JSON object.\n * @public\n */\nexport declare interface PortableTextMarkDefinition {\n /**\n * Unknown properties\n */\n [key: string]: unknown;\n /**\n * Identifies the type of mark this is, and is used to pick the correct React components to use\n * when rendering a text span marked with this mark type.\n */\n _type: string;\n /**\n * Uniquely identifies this mark definition within the block\n */\n _key: string;\n}\n\n/**\n * A Portable Text Span holds a chunk of the actual text value of a Portable Text Block\n * @public\n */\nexport declare interface PortableTextSpan {\n /**\n * Type is always `span` for portable text spans, as these don't vary in shape\n */\n _type: \"span\";\n /**\n * Unique (within parent block) key for this portable text span\n */\n _key?: string;\n /**\n * The actual text value of this text span\n */\n text: string;\n /**\n * An array of marks this text span is annotated with, identified by its `_key`.\n * If the key cannot be found in the parent blocks mark definition, the mark is assumed to be a\n * decorator (a simpler mark without any properties - for instance `strong` or `em`)\n */\n marks?: string[];\n}\n\n/**\n * Any object with an `_type` property (which is required in portable text arrays),\n * as well as a _potential_ `_key` (highly encouraged)\n * @public\n */\nexport declare interface TypedObject {\n /**\n * Identifies the type of object/span this is, and is used to pick the correct React components\n * to use when rendering a span or inline object with this type.\n */\n _type: string;\n /**\n * Uniquely identifies this object within its parent block.\n * Not _required_, but highly encouraged.\n */\n _key?: string;\n}\n\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;AAIA;AAeA;AACYO,aAhBQP,oBAAAA,GAAuBC,WAgB/BM,GAAAA;EAA6BA,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;CAC7BN;;;;;;;;;;AAgDZ;AA6BA;AACYM,kBAhFaL,mBAgFbK,CAA6BA,UA/E7BA,0BA+E6BA,GA/EAA,0BA+EAA,EAC7BN,UA/EAA,WA+EAA,GA/EcD,oBA+EdC,GA/EqCO,gBA+ErCP,EAAcO,UAAAA,MAAAA,GA9ELC,sBA8EKD,EACLC,UAAAA,MAAAA,GA9EAC,wBA8EAD,CACAC,SA9EXT,WA8EWS,CAAAA;EACYP;;;;;;EAAvBU,KAAAA,EAAAA,OAAAA,GAAAA,MAAAA;EAAI;AAQd;AAQA;AAoBA;AA0BA;;EC5JA;AAQA;;ACHA;EASA,QAAY,EFmBAT,CEnBA,EAAA;EAOZ;AAQA;;;;EAC0C,QAAA,CAAA,EFS7BD,CET6B,EAAA;EAM1C;;;;EAC0C,KAAA,CAAA,EFOhCE,C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