🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

myst-common

Package Overview
Dependencies
Maintainers
2
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myst-common - npm Package Compare versions

Comparing version

to
1.1.5

4

dist/index.d.ts

@@ -1,7 +0,7 @@

export { toText, fileError, fileWarn, fileInfo, createId, normalizeLabel, createHtmlId, liftChildren, setTextAsChild, copyNode, mergeTextNodes, } from './utils.js';
export { admonitionKindToTitle, toText, fileError, fileWarn, fileInfo, createId, normalizeLabel, createHtmlId, liftChildren, setTextAsChild, copyNode, mergeTextNodes, } from './utils.js';
export { selectBlockParts, extractPart } from './extractParts.js';
export { TemplateKind, TemplateOptionType } from './templates.js';
export { NotebookCell, ParseTypesEnum } from './types.js';
export { AdmonitionKind, NotebookCell, ParseTypesEnum, TargetKind } from './types.js';
export type { MessageInfo } from './utils.js';
export type { GenericNode, GenericParent, Citations, References, ArgDefinition, DirectiveData, RoleData, DirectiveSpec, RoleSpec, ParseTypes, } from './types.js';
//# sourceMappingURL=index.d.ts.map

@@ -1,4 +0,4 @@

export { toText, fileError, fileWarn, fileInfo, createId, normalizeLabel, createHtmlId, liftChildren, setTextAsChild, copyNode, mergeTextNodes, } from './utils.js';
export { admonitionKindToTitle, toText, fileError, fileWarn, fileInfo, createId, normalizeLabel, createHtmlId, liftChildren, setTextAsChild, copyNode, mergeTextNodes, } from './utils.js';
export { selectBlockParts, extractPart } from './extractParts.js';
export { TemplateKind, TemplateOptionType } from './templates.js';
export { NotebookCell, ParseTypesEnum } from './types.js';
export { AdmonitionKind, NotebookCell, ParseTypesEnum, TargetKind } from './types.js';

@@ -72,3 +72,23 @@ import type { Node } from 'myst-spec';

};
export declare enum TargetKind {
heading = "heading",
equation = "equation",
figure = "figure",
table = "table",
code = "code"
}
export declare enum AdmonitionKind {
admonition = "admonition",
attention = "attention",
caution = "caution",
danger = "danger",
error = "error",
important = "important",
hint = "hint",
note = "note",
seealso = "seealso",
tip = "tip",
warning = "warning"
}
export {};
//# sourceMappingURL=types.d.ts.map

@@ -14,1 +14,23 @@ export var NotebookCell;

})(ParseTypesEnum || (ParseTypesEnum = {}));
export var TargetKind;
(function (TargetKind) {
TargetKind["heading"] = "heading";
TargetKind["equation"] = "equation";
TargetKind["figure"] = "figure";
TargetKind["table"] = "table";
TargetKind["code"] = "code";
})(TargetKind || (TargetKind = {}));
export var AdmonitionKind;
(function (AdmonitionKind) {
AdmonitionKind["admonition"] = "admonition";
AdmonitionKind["attention"] = "attention";
AdmonitionKind["caution"] = "caution";
AdmonitionKind["danger"] = "danger";
AdmonitionKind["error"] = "error";
AdmonitionKind["important"] = "important";
AdmonitionKind["hint"] = "hint";
AdmonitionKind["note"] = "note";
AdmonitionKind["seealso"] = "seealso";
AdmonitionKind["tip"] = "tip";
AdmonitionKind["warning"] = "warning";
})(AdmonitionKind || (AdmonitionKind = {}));
import type { VFile } from 'vfile';
import type { VFileMessage } from 'vfile-message';
import type { Node, Parent } from 'myst-spec';
import type { GenericNode, GenericParent } from './types.js';
import type { AdmonitionKind, GenericNode, GenericParent } from './types.js';
export type MessageInfo = {

@@ -34,2 +34,3 @@ node?: Node;

export declare function mergeTextNodes(node: GenericNode): GenericNode;
export declare function admonitionKindToTitle(kind: AdmonitionKind | string): string;
//# sourceMappingURL=utils.d.ts.map

@@ -124,1 +124,16 @@ import { map } from 'unist-util-map';

}
export function admonitionKindToTitle(kind) {
const transform = {
attention: 'Attention',
caution: 'Caution',
danger: 'Danger',
error: 'Error',
important: 'Important',
hint: 'Hint',
note: 'Note',
seealso: 'See Also',
tip: 'Tip',
warning: 'Warning',
};
return transform[kind] || `Unknown Admonition "${kind}"`;
}
{
"name": "myst-common",
"sideEffects": false,
"version": "1.1.4",
"version": "1.1.5",
"type": "module",

@@ -6,0 +6,0 @@ "exports": "./dist/index.js",

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