datocms-structured-text-utils
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -250,3 +250,3 @@ export declare type Node = BlockNode | InlineNode; | ||
id: string; | ||
value: string | boolean | number; | ||
value: string; | ||
}; | ||
@@ -263,5 +263,6 @@ export declare type LinkType = 'link'; | ||
* "url": "https://www.datocms.com/" | ||
* "meta": { | ||
* "openInNewWindow": true | ||
* }, | ||
* "meta": [ | ||
* { "id": "rel", "value": "nofollow" }, | ||
* { "id": "target", "value": "_blank" } | ||
* ], | ||
* "children": [ | ||
@@ -278,4 +279,6 @@ * { | ||
type: LinkType; | ||
/** | ||
* The actual URL where the link points to. Can be any string, no specific format is enforced. | ||
*/ | ||
url: string; | ||
children: Array<Span>; | ||
/** | ||
@@ -285,2 +288,3 @@ * Array of tuples containing custom meta-information for the link. | ||
meta?: Array<MetaEntry>; | ||
children: Array<Span>; | ||
}; | ||
@@ -303,5 +307,6 @@ export declare type ItemLinkType = 'itemLink'; | ||
* "item": "38945648", | ||
* "meta": { | ||
* "openInNewWindow": true, | ||
* }, | ||
* "meta": [ | ||
* { "id": "rel", "value": "nofollow" }, | ||
* { "id": "target", "value": "_blank" } | ||
* ], | ||
* "children": [ | ||
@@ -320,3 +325,2 @@ * { | ||
item: string; | ||
children: Array<Span>; | ||
/** | ||
@@ -326,2 +330,3 @@ * Array of tuples containing custom meta-information for the link. | ||
meta?: Array<MetaEntry>; | ||
children: Array<Span>; | ||
}; | ||
@@ -328,0 +333,0 @@ export declare type InlineItemType = 'inlineItem'; |
{ | ||
"name": "datocms-structured-text-utils", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "A set of Typescript types and helpers to work with DatoCMS Structured Text fields", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "7e008a80156771f0826fe7c0561cd6d29a6b2fdc" | ||
"gitHead": "bd09e68a28affbe3bf294c4f4a8a13791d948d4e" | ||
} |
44831
821
0