Comparing version 11.0.2 to 11.1.0
@@ -99,2 +99,7 @@ /** | ||
nodePlacementStrategy?: 'SIMPLE' | 'NETWORK_SIMPLEX' | 'LINEAR_SEGMENTS' | 'BRANDES_KOEPF'; | ||
/** | ||
* This strategy decides how to find cycles in the graph and deciding which edges need adjustment to break loops. | ||
* | ||
*/ | ||
cycleBreakingStrategy?: 'GREEDY' | 'DEPTH_FIRST' | 'INTERACTIVE' | 'MODEL_ORDER' | 'GREEDY_MODEL_ORDER'; | ||
}; | ||
@@ -182,2 +187,3 @@ darkMode?: boolean; | ||
requirement?: RequirementDiagramConfig; | ||
architecture?: ArchitectureDiagramConfig; | ||
mindmap?: MindmapDiagramConfig; | ||
@@ -994,2 +1000,13 @@ gitGraph?: GitGraphDiagramConfig; | ||
/** | ||
* The object containing configurations specific for architecture diagrams | ||
* | ||
* This interface was referenced by `MermaidConfig`'s JSON-Schema | ||
* via the `definition` "ArchitectureDiagramConfig". | ||
*/ | ||
export interface ArchitectureDiagramConfig extends BaseDiagramConfig { | ||
padding?: number; | ||
iconSize?: number; | ||
fontSize?: number; | ||
} | ||
/** | ||
* The object containing configurations specific for mindmap diagrams | ||
@@ -996,0 +1013,0 @@ * |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid | ||
* functionality and to render the diagrams to svg code! | ||
*/ | ||
import { registerIconPacks } from '$root/rendering-util/icons.js'; | ||
import type { MermaidConfig } from './config.type.js'; | ||
@@ -168,4 +173,5 @@ import { detectType } from './diagram-api/detectType.js'; | ||
detectType: typeof detectType; | ||
registerIconPacks: typeof registerIconPacks; | ||
} | ||
declare const mermaid: Mermaid; | ||
export default mermaid; |
@@ -1,4 +0,4 @@ | ||
import { Diagram } from './Diagram.js'; | ||
import type { MermaidConfig } from './config.type.js'; | ||
import type { DiagramMetadata, DiagramStyleClassDef } from './diagram-api/types.js'; | ||
import { Diagram } from './Diagram.js'; | ||
import type { D3Element, ParseOptions, ParseResult, RenderResult } from './types.js'; | ||
@@ -5,0 +5,0 @@ /** |
@@ -130,2 +130,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
pieOpacity: any; | ||
archEdgeColor: any; | ||
archEdgeArrowColor: any; | ||
archEdgeWidth: any; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: any; | ||
quadrant1Fill: any; | ||
@@ -132,0 +137,0 @@ quadrant2Fill: any; |
@@ -70,2 +70,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
personBkg: string; | ||
archEdgeColor: string; | ||
archEdgeArrowColor: string; | ||
archEdgeWidth: string; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: string; | ||
labelColor: string; | ||
@@ -72,0 +77,0 @@ errorBkgColor: string; |
@@ -68,2 +68,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
personBkg: string; | ||
archEdgeColor: string; | ||
archEdgeArrowColor: string; | ||
archEdgeWidth: string; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: string; | ||
labelColor: string; | ||
@@ -70,0 +75,0 @@ errorBkgColor: string; |
@@ -67,2 +67,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
personBkg: string; | ||
archEdgeColor: string; | ||
archEdgeArrowColor: string; | ||
archEdgeWidth: string; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: string; | ||
labelColor: string; | ||
@@ -69,0 +74,0 @@ errorBkgColor: string; |
@@ -72,2 +72,7 @@ export function getThemeVariables(userOverrides: any): Theme; | ||
personBkg: string; | ||
archEdgeColor: string; | ||
archEdgeArrowColor: string; | ||
archEdgeWidth: string; | ||
archGroupBorderColor: any; | ||
archGroupBorderWidth: string; | ||
labelColor: string; | ||
@@ -74,0 +79,0 @@ errorBkgColor: string; |
{ | ||
"name": "mermaid", | ||
"version": "11.0.2", | ||
"version": "11.1.0", | ||
"description": "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.", | ||
@@ -52,4 +52,6 @@ "type": "module", | ||
"@braintree/sanitize-url": "^7.0.1", | ||
"@iconify/utils": "^2.1.32", | ||
"cytoscape": "^3.29.2", | ||
"cytoscape-cose-bilkent": "^4.1.0", | ||
"cytoscape-fcose": "^2.2.0", | ||
"d3": "^7.9.0", | ||
@@ -68,7 +70,9 @@ "d3-sankey": "^0.12.3", | ||
"uuid": "^9.0.1", | ||
"@mermaid-js/parser": "^0.2.0" | ||
"@mermaid-js/parser": "^0.3.0" | ||
}, | ||
"devDependencies": { | ||
"@adobe/jsonschema2md": "^8.0.0", | ||
"@iconify/types": "^2.0.0", | ||
"@types/cytoscape": "^3.21.4", | ||
"@types/cytoscape-fcose": "^2.2.4", | ||
"@types/d3": "^7.4.3", | ||
@@ -75,0 +79,0 @@ "@types/d3-sankey": "^0.12.4", |
@@ -38,3 +38,4 @@ <p align="center"> | ||
[![Twitter Follow](https://img.shields.io/badge/Social-mermaidjs__-blue?style=social&logo=X)](https://twitter.com/mermaidjs_) | ||
[![Covered by Argos Visual Testing](https://argos-ci.com/badge.svg)](https://argos-ci.com) | ||
[![Covered by Argos Visual Testing](https://argos-ci.com/badge.svg)](https://argos-ci.com?utm_source=mermaid&utm_campaign=oss) | ||
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/mermaid-js/mermaid/badge)](https://securityscorecards.dev/viewer/?uri=github.com/mermaid-js/mermaid) | ||
@@ -86,2 +87,6 @@ <img src="./img/header.png" alt="" /> | ||
Our PR Visual Regression Testing is powered by [Argos](https://argos-ci.com/?utm_source=mermaid&utm_campaign=oss) with their generous Open Source plan. It makes the process of reviewing PRs with visual changes a breeze. | ||
[![Covered by Argos Visual Testing](https://argos-ci.com/badge-large.svg)](https://argos-ci.com?utm_source=mermaid&utm_campaign=oss) | ||
In our release process we rely heavily on visual regression tests using [applitools](https://applitools.com/). Applitools is a great service which has been easy to use and integrate with our tests. | ||
@@ -88,0 +93,0 @@ |
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
60186277
647
213218
443
19
43
20
7
+ Added@iconify/utils@^2.1.32
+ Addedcytoscape-fcose@^2.2.0
+ Added@antfu/install-pkg@0.4.1(transitive)
+ Added@antfu/utils@0.7.10(transitive)
+ Added@iconify/types@2.0.0(transitive)
+ Added@iconify/utils@2.1.33(transitive)
+ Added@mermaid-js/parser@0.3.0(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedconfbox@0.1.8(transitive)
+ Addedcose-base@2.2.0(transitive)
+ Addedcytoscape-fcose@2.2.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedkolorist@1.8.0(transitive)
+ Addedlayout-base@2.0.1(transitive)
+ Addedlocal-pkg@0.5.0(transitive)
+ Addedmlly@1.7.2(transitive)
+ Addedms@2.1.3(transitive)
+ Addedpackage-manager-detector@0.2.2(transitive)
+ Addedpathe@1.1.2(transitive)
+ Addedpkg-types@1.2.1(transitive)
+ Addedtinyexec@0.3.1(transitive)
+ Addedufo@1.5.4(transitive)
- Removed@mermaid-js/parser@0.2.0(transitive)
Updated@mermaid-js/parser@^0.3.0