myst-common
Advanced tools
Comparing version 1.1.22 to 1.1.23
@@ -7,4 +7,5 @@ export { admonitionKindToTitle, toText, fileError, fileWarn, fileInfo, createId, normalizeLabel, createHtmlId, liftChildren, setTextAsChild, copyNode, mergeTextNodes, writeTexLabelledComment, } from './utils.js'; | ||
export { AdmonitionKind, NotebookCell, NotebookCellTags, ParseTypesEnum, TargetKind, } from './types.js'; | ||
export type { IExpressionResult, IExpressionError, IExpressionOutput } from './types.js'; | ||
export type { MessageInfo } from './utils.js'; | ||
export type { GenericNode, GenericParent, Citations, References, ArgDefinition, BodyDefinition, OptionDefinition, DirectiveData, RoleData, DirectiveSpec, RoleSpec, ParseTypes, MystPlugin, PluginOptions, PluginUtils, TransformSpec, } from './types.js'; | ||
//# sourceMappingURL=index.d.ts.map |
import type { Plugin } from 'unified'; | ||
import type { Node, Directive, Role } from 'myst-spec'; | ||
import type { Directive, Node, Role } from 'myst-spec'; | ||
import type { VFile } from 'vfile'; | ||
import type * as nbformat from '@jupyterlab/nbformat'; | ||
import type { PartialJSONObject } from '@lumino/coreutils'; | ||
export type GenericNode<T extends Record<string, any> = Record<string, any>> = { | ||
@@ -136,3 +138,24 @@ type: string; | ||
} | ||
export interface IExpressionOutput { | ||
status: 'ok'; | ||
data: nbformat.IMimeBundle; | ||
metadata: PartialJSONObject; | ||
} | ||
export interface IExpressionError { | ||
status: 'error'; | ||
/** | ||
* Exception name | ||
*/ | ||
ename: string; | ||
/** | ||
* Exception value | ||
*/ | ||
evalue: string; | ||
/** | ||
* Traceback | ||
*/ | ||
traceback: string[]; | ||
} | ||
export type IExpressionResult = IExpressionError | IExpressionOutput; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "myst-common", | ||
"sideEffects": false, | ||
"version": "1.1.22", | ||
"version": "1.1.23", | ||
"type": "module", | ||
@@ -23,3 +23,3 @@ "exports": "./dist/index.js", | ||
"mdast": "^3.0.0", | ||
"myst-frontmatter": "^1.1.22", | ||
"myst-frontmatter": "^1.1.23", | ||
"myst-spec": "^0.0.5", | ||
@@ -34,5 +34,7 @@ "nanoid": "^4.0.0", | ||
"devDependencies": { | ||
"myst-spec-ext": "^1.1.22", | ||
"unist-builder": "3.0.0" | ||
"myst-spec-ext": "^1.1.23", | ||
"unist-builder": "3.0.0", | ||
"@jupyterlab/nbformat": "^3.5.2", | ||
"@lumino/coreutils": "^2.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41496
763
4
Updatedmyst-frontmatter@^1.1.23