Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mermaid

Package Overview
Dependencies
Maintainers
5
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mermaid - npm Package Compare versions

Comparing version 11.0.2 to 11.1.0

dist/chunks/mermaid.core/architectureDiagram-WQGLKCSC.mjs

17

dist/config.type.d.ts

@@ -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;

2

dist/mermaidAPI.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc