Comparing version 10.0.3-alpha.1 to 10.1.0-rc.1
export declare const mermaidAPI: { | ||
render: import("@vitest/spy").Mock<any[], any>; | ||
parse: (text: string, parseOptions?: import("../mermaidAPI").ParseOptions | undefined) => Promise<boolean | void>; | ||
parse: (text: string, parseOptions?: import("../mermaidAPI").ParseOptions | undefined) => Promise<boolean>; | ||
parseDirective: import("@vitest/spy").Mock<any[], any>; | ||
@@ -5,0 +5,0 @@ initialize: import("@vitest/spy").Mock<any[], any>; |
@@ -9,6 +9,6 @@ export declare const clear: () => void; | ||
declare const _default: { | ||
getAccTitle: () => string; | ||
setAccTitle: (txt: string) => void; | ||
getAccTitle: () => string; | ||
getDiagramTitle: () => string; | ||
setDiagramTitle: (txt: string) => void; | ||
getDiagramTitle: () => string; | ||
getAccDescription: () => string; | ||
@@ -15,0 +15,0 @@ setAccDescription: (txt: string) => void; |
@@ -321,2 +321,3 @@ import DOMPurify from 'dompurify'; | ||
topAxis?: boolean; | ||
displayMode?: string; | ||
} | ||
@@ -370,2 +371,3 @@ export interface SequenceDiagramConfig extends BaseDiagramConfig { | ||
defaultRenderer?: string; | ||
wrappingWidth?: number; | ||
} | ||
@@ -372,0 +374,0 @@ export interface FontConfig { |
export default createLabel; | ||
/** | ||
* @param _vertexText | ||
* @param style | ||
* @param isTitle | ||
* @param isNode | ||
* @deprecated svg-util/createText instead | ||
*/ | ||
declare function createLabel(_vertexText: any, style: any, isTitle: any, isNode: any): SVGForeignObjectElement | SVGTextElement; |
export function clear(): void; | ||
export function insertEdgeLabel(elem: any, edge: any): SVGForeignObjectElement | SVGTextElement; | ||
export function insertEdgeLabel(elem: any, edge: any): any; | ||
export function positionEdgeLabel(edge: any, paths: any): void; | ||
@@ -4,0 +4,0 @@ export function intersection(node: any, outsidePoint: any, insidePoint: any): { |
@@ -17,2 +17,3 @@ import { MermaidConfig } from '../config.type'; | ||
setDiagramTitle?: (title: string) => void; | ||
setDisplayMode?: (title: string) => void; | ||
getAccTitle?: () => string; | ||
@@ -19,0 +20,0 @@ getAccDescription?: () => string; |
import { DiagramDefinition } from '../../diagram-api/types'; | ||
export declare const diagram: DiagramDefinition; | ||
export default diagram; |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
export declare const setConf: (cnf: any) => void; | ||
export declare const setConf: () => void; | ||
/** | ||
@@ -17,5 +17,5 @@ * Draws a an info picture in the tag with id: id based on the graph definition in text. | ||
declare const _default: { | ||
setConf: (cnf: any) => void; | ||
setConf: () => void; | ||
draw: (_text: string, id: string, mermaidVersion: string) => void; | ||
}; | ||
export default _default; |
export function parseDirective(statement: any, context: any, type: any): void; | ||
export function lookUpDomId(id: any): any; | ||
export function addVertex(_id: any, text: any, type: any, style: any, classes: any, dir: any, props?: {}): void; | ||
export function addSingleLink(_start: any, _end: any, type: any, linkText: any): void; | ||
export function addLink(_start: any, _end: any, type: any, linktext: any): void; | ||
export function addVertex(_id: any, textObj: any, type: any, style: any, classes: any, dir: any, props?: {}): void; | ||
export function addSingleLink(_start: any, _end: any, type: any): void; | ||
export function addLink(_start: any, _end: any, type: any): void; | ||
export function updateLinkInterpolate(positions: any, interp: any): void; | ||
@@ -7,0 +7,0 @@ export function updateLink(positions: any, style: any): void; |
@@ -11,5 +11,5 @@ import { MermaidConfig } from '../../config.type'; | ||
setAccDescription: (txt: string) => void; | ||
addVertex: (_id: any, text: any, type: any, style: any, classes: any, dir: any, props?: {}) => void; | ||
addVertex: (_id: any, textObj: any, type: any, style: any, classes: any, dir: any, props?: {}) => void; | ||
lookUpDomId: (id: any) => any; | ||
addLink: (_start: any, _end: any, type: any, linktext: any) => void; | ||
addLink: (_start: any, _end: any, type: any) => void; | ||
updateLinkInterpolate: (positions: any, interp: any) => void; | ||
@@ -16,0 +16,0 @@ updateLink: (positions: any, style: any) => void; |
@@ -11,5 +11,5 @@ import { MermaidConfig } from '../../config.type'; | ||
setAccDescription: (txt: string) => void; | ||
addVertex: (_id: any, text: any, type: any, style: any, classes: any, dir: any, props?: {}) => void; | ||
addVertex: (_id: any, textObj: any, type: any, style: any, classes: any, dir: any, props?: {}) => void; | ||
lookUpDomId: (id: any) => any; | ||
addLink: (_start: any, _end: any, type: any, linktext: any) => void; | ||
addLink: (_start: any, _end: any, type: any) => void; | ||
updateLinkInterpolate: (positions: any, interp: any) => void; | ||
@@ -16,0 +16,0 @@ updateLink: (positions: any, style: any) => void; |
@@ -14,2 +14,4 @@ export function parseDirective(statement: any, context: any, type: any): void; | ||
export function topAxisEnabled(): boolean; | ||
export function setDisplayMode(txt: any): void; | ||
export function getDisplayMode(): string; | ||
export function getDateFormat(): string; | ||
@@ -52,2 +54,4 @@ export function setIncludes(txt: any): void; | ||
export { getDiagramTitle }; | ||
export { setDisplayMode }; | ||
export { getDisplayMode }; | ||
export { setAccDescription }; | ||
@@ -54,0 +58,0 @@ export { getAccDescription }; |
import { MermaidConfig } from './config.type'; | ||
import { mermaidAPI, ParseOptions, RenderResult } from './mermaidAPI'; | ||
import { detectType } from './diagram-api/detectType'; | ||
import type { ParseErrorFunction } from './Diagram'; | ||
@@ -129,3 +130,3 @@ import type { DetailedError } from './utils'; | ||
declare const render: (id: string, text: string, container?: Element) => Promise<RenderResult>; | ||
declare const mermaid: { | ||
export interface Mermaid { | ||
startOnLoad: boolean; | ||
@@ -142,3 +143,5 @@ parseError?: ParseErrorFunction; | ||
setParseErrorHandler: typeof setParseErrorHandler; | ||
}; | ||
detectType: typeof detectType; | ||
} | ||
declare const mermaid: Mermaid; | ||
export default mermaid; |
@@ -35,3 +35,3 @@ import { Diagram } from './Diagram'; | ||
*/ | ||
declare function parse(text: string, parseOptions?: ParseOptions): Promise<boolean | void>; | ||
declare function parse(text: string, parseOptions?: ParseOptions): Promise<boolean>; | ||
/** | ||
@@ -168,2 +168,3 @@ * @param text - text to be encoded | ||
* topAxis: false, | ||
* displayMode: '', | ||
* }, | ||
@@ -170,0 +171,0 @@ * }; |
{ | ||
"name": "mermaid", | ||
"version": "10.0.3-alpha.1", | ||
"version": "10.1.0-rc.1", | ||
"description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
"type": "module", | ||
"main": "./dist/mermaid.min.js", | ||
"module": "./dist/mermaid.core.mjs", | ||
@@ -13,3 +12,2 @@ "types": "./dist/mermaid.d.ts", | ||
"import": "./dist/mermaid.core.mjs", | ||
"require": "./dist/mermaid.js", | ||
"default": "./dist/mermaid.core.mjs" | ||
@@ -59,2 +57,3 @@ }, | ||
"@braintree/sanitize-url": "^6.0.0", | ||
"@khanacademy/simple-markdown": "^0.8.6", | ||
"cytoscape": "^3.23.0", | ||
@@ -64,3 +63,3 @@ "cytoscape-cose-bilkent": "^4.1.0", | ||
"d3": "^7.4.0", | ||
"dagre-d3-es": "7.0.9", | ||
"dagre-d3-es": "7.0.10", | ||
"dayjs": "^1.11.7", | ||
@@ -82,3 +81,3 @@ "dompurify": "2.4.5", | ||
"@types/jsdom": "^21.0.0", | ||
"@types/lodash-es": "^4.17.6", | ||
"@types/lodash-es": "^4.17.7", | ||
"@types/micromatch": "^4.0.2", | ||
@@ -115,9 +114,6 @@ "@types/prettier": "^2.7.1", | ||
"files": [ | ||
"dist/", | ||
"dist", | ||
"README.md" | ||
], | ||
"sideEffects": false, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
"sideEffects": false | ||
} |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33182442
17
385
307130
+ Added@khanacademy/simple-markdown@0.8.6(transitive)
+ Added@types/prop-types@15.7.13(transitive)
+ Added@types/react@18.3.11(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addeddagre-d3-es@7.0.10(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact@16.14.0(transitive)
+ Addedreact-dom@16.14.0(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedscheduler@0.19.1(transitive)
- Removeddagre-d3-es@7.0.9(transitive)
Updateddagre-d3-es@7.0.10