@contentful/structured-text-types
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -8,4 +8,6 @@ "use strict"; | ||
HYPERLINK: 'hyperlink', | ||
ENTRY_HYPERLINK: 'entry-hyperlink', | ||
ASSET_HYPERLINK: 'asset-hyperlink', | ||
EMBEDDED_ENTRY: 'embedded-entry-inline', | ||
}; | ||
//# sourceMappingURL=inlines.js.map |
@@ -29,3 +29,2 @@ "use strict"; | ||
* Dictionary of all container block types, and the set block types they accept as children. | ||
* | ||
*/ | ||
@@ -32,0 +31,0 @@ exports.CONTAINERS = (_a = {}, |
@@ -31,2 +31,4 @@ 'use strict'; | ||
HYPERLINK: 'hyperlink', | ||
ENTRY_HYPERLINK: 'entry-hyperlink', | ||
ASSET_HYPERLINK: 'asset-hyperlink', | ||
EMBEDDED_ENTRY: 'embedded-entry-inline', | ||
@@ -70,3 +72,2 @@ }; | ||
* Dictionary of all container block types, and the set block types they accept as children. | ||
* | ||
*/ | ||
@@ -73,0 +74,0 @@ var CONTAINERS = (_a = {}, |
@@ -6,4 +6,6 @@ /** | ||
HYPERLINK: string; | ||
ENTRY_HYPERLINK: string; | ||
ASSET_HYPERLINK: string; | ||
EMBEDDED_ENTRY: string; | ||
}; | ||
export default _default; |
@@ -73,1 +73,15 @@ import { Block, Inline } from './types'; | ||
} | ||
export interface AssetHyperlink extends Inline { | ||
nodeType: 'asset-hyperlink'; | ||
data: { | ||
target: Link<'Asset'>; | ||
title: string; | ||
}; | ||
} | ||
export interface EntryHyperlink extends Inline { | ||
nodeType: 'entry-hyperlink'; | ||
data: { | ||
target: Link<'Entry'>; | ||
title: string; | ||
}; | ||
} |
@@ -12,3 +12,2 @@ /** | ||
* Dictionary of all container block types, and the set block types they accept as children. | ||
* | ||
*/ | ||
@@ -15,0 +14,0 @@ export declare const CONTAINERS: { |
{ | ||
"name": "@contentful/structured-text-types", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25370
460