myst-common
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -14,3 +14,3 @@ "use strict"; | ||
exports.__esModule = true; | ||
exports.ParseTypesEnum = exports.TemplateOptionType = exports.TemplateKind = exports.extractPart = exports.selectBlockParts = exports.mergeTextNodes = exports.copyNode = exports.setTextAsChild = exports.liftChildren = exports.createHtmlId = exports.normalizeLabel = exports.createId = exports.fileInfo = exports.fileWarn = exports.fileError = exports.toText = void 0; | ||
exports.SourceFileKind = exports.ParseTypesEnum = exports.TemplateOptionType = exports.TemplateKind = exports.extractPart = exports.selectBlockParts = exports.mergeTextNodes = exports.copyNode = exports.setTextAsChild = exports.liftChildren = exports.createHtmlId = exports.normalizeLabel = exports.createId = exports.fileInfo = exports.fileWarn = exports.fileError = exports.toText = void 0; | ||
var utils_1 = require("./utils"); | ||
@@ -36,1 +36,2 @@ __createBinding(exports, utils_1, "toText"); | ||
__createBinding(exports, types_1, "ParseTypesEnum"); | ||
__createBinding(exports, types_1, "SourceFileKind"); |
"use strict"; | ||
exports.__esModule = true; | ||
exports.ParseTypesEnum = void 0; | ||
exports.ParseTypesEnum = exports.SourceFileKind = void 0; | ||
var SourceFileKind; | ||
(function (SourceFileKind) { | ||
SourceFileKind["Article"] = "Article"; | ||
SourceFileKind["Notebook"] = "Notebook"; | ||
})(SourceFileKind = exports.SourceFileKind || (exports.SourceFileKind = {})); | ||
// Types for defining roles and directives | ||
@@ -5,0 +10,0 @@ var ParseTypesEnum; |
export { toText, fileError, fileWarn, fileInfo, createId, normalizeLabel, createHtmlId, liftChildren, setTextAsChild, copyNode, mergeTextNodes, } from './utils'; | ||
export { selectBlockParts, extractPart } from './extractParts'; | ||
export { TemplateKind, TemplateOptionType } from './templates'; | ||
export { ParseTypesEnum } from './types'; | ||
export { ParseTypesEnum, SourceFileKind } from './types'; |
@@ -0,1 +1,6 @@ | ||
export var SourceFileKind; | ||
(function (SourceFileKind) { | ||
SourceFileKind["Article"] = "Article"; | ||
SourceFileKind["Notebook"] = "Notebook"; | ||
})(SourceFileKind || (SourceFileKind = {})); | ||
// Types for defining roles and directives | ||
@@ -2,0 +7,0 @@ export var ParseTypesEnum; |
export { toText, fileError, fileWarn, fileInfo, createId, normalizeLabel, createHtmlId, liftChildren, setTextAsChild, copyNode, mergeTextNodes, } from './utils'; | ||
export { selectBlockParts, extractPart } from './extractParts'; | ||
export { TemplateKind, TemplateOptionType } from './templates'; | ||
export { ParseTypesEnum } from './types'; | ||
export { ParseTypesEnum, SourceFileKind } from './types'; | ||
export type { MessageInfo } from './utils'; | ||
export type { GenericNode, GenericParent, Citations, Footnotes, References, ArgDefinition, DirectiveData, RoleData, DirectiveSpec, RoleSpec, ParseTypes, } from './types'; | ||
export type { Dependency, GenericNode, GenericParent, Citations, References, ArgDefinition, DirectiveData, RoleData, DirectiveSpec, RoleSpec, ParseTypes, } from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
import type { Root } from 'mdast'; | ||
import type { FootnoteDefinition, Node } from 'myst-spec'; | ||
import type { Node } from 'myst-spec'; | ||
import type { VFile } from 'vfile'; | ||
@@ -24,3 +24,10 @@ export declare type GenericNode<T extends Record<string, any> = Record<string, any>> = { | ||
}; | ||
export declare type Footnotes = Record<string, FootnoteDefinition>; | ||
export declare enum SourceFileKind { | ||
Article = "Article", | ||
Notebook = "Notebook" | ||
} | ||
export declare type Dependency = { | ||
url: string; | ||
kind?: SourceFileKind; | ||
}; | ||
export declare type References = { | ||
@@ -27,0 +34,0 @@ cite?: Citations; |
{ | ||
"name": "myst-common", | ||
"sideEffects": false, | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"main": "./dist/cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "./dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29749
591