Socket
Socket
Sign inDemoInstall

mermaid

Package Overview
Dependencies
55
Maintainers
4
Versions
224
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.0.2 to 10.0.3-alpha.1

dist/add-html-label-21980bb0.js

4

dist/config.type.d.ts

@@ -214,3 +214,5 @@ import DOMPurify from 'dompurify';

}
export declare type PieDiagramConfig = BaseDiagramConfig;
export interface PieDiagramConfig extends BaseDiagramConfig {
textPosition?: number;
}
export interface ErDiagramConfig extends BaseDiagramConfig {

@@ -217,0 +219,0 @@ titleTopMargin?: number;

import { DetailedError } from './utils';
export declare type ParseErrorFunction = (err: string | DetailedError | unknown, hash?: any) => void;
/**
* An object representing a parsed mermaid diagram definition.
* @privateRemarks This is exported as part of the public mermaidAPI.
*/
export declare class Diagram {

@@ -16,2 +20,11 @@ text: string;

}
/**
* Parse the text asynchronously and generate a Diagram object asynchronously.
* **Warning:** This function may be changed in the future.
* @alpha
* @param text - The mermaid diagram definition.
* @returns A the Promise of a Diagram object.
* @throws {@link UnknownDiagramError} if the diagram type can not be found.
* @privateRemarks This is exported as part of the public mermaidAPI.
*/
export declare const getDiagramFromText: (text: string) => Promise<Diagram>;
export function parseDirective(statement: any, context: any, type: any): void;
declare namespace _default {
export { parseDirective };
export function getConfig(): import("../../config.type").BaseDiagramConfig | undefined;
export function getConfig(): import("../../config.type").PieDiagramConfig | undefined;
export { addSection };

@@ -6,0 +6,0 @@ export { getSections };

@@ -0,1 +1,2 @@

import { Diagram } from './Diagram';
import { MermaidConfig } from './config.type';

@@ -175,2 +176,3 @@ interface DiagramStyleClassDef {

parseDirective: (p: any, statement: string, context: string, type: string) => void;
getDiagramFromText: (text: string) => Promise<Diagram>;
initialize: typeof initialize;

@@ -177,0 +179,0 @@ getConfig: () => MermaidConfig;

@@ -125,2 +125,4 @@ export function getThemeVariables(userOverrides: any): Theme;

pieStrokeWidth: any;
pieOuterStrokeWidth: any;
pieOuterStrokeColor: any;
pieOpacity: any;

@@ -127,0 +129,0 @@ requirementBackground: any;

@@ -114,2 +114,4 @@ export function getThemeVariables(userOverrides: any): Theme;

pieStrokeWidth: any;
pieOuterStrokeWidth: any;
pieOuterStrokeColor: any;
pieOpacity: any;

@@ -116,0 +118,0 @@ classText: string | undefined;

@@ -127,2 +127,4 @@ export function getThemeVariables(userOverrides: any): Theme;

pieStrokeWidth: any;
pieOuterStrokeWidth: any;
pieOuterStrokeColor: any;
pieOpacity: any;

@@ -129,0 +131,0 @@ requirementBackground: any;

@@ -124,2 +124,4 @@ export function getThemeVariables(userOverrides: any): Theme;

pieStrokeWidth: any;
pieOuterStrokeWidth: any;
pieOuterStrokeColor: any;
pieOpacity: any;

@@ -126,0 +128,0 @@ requirementBackground: any;

@@ -120,2 +120,4 @@ export function getThemeVariables(userOverrides: any): Theme;

pieStrokeWidth: any;
pieOuterStrokeWidth: any;
pieOuterStrokeColor: any;
pieOpacity: any;

@@ -122,0 +124,0 @@ requirementBackground: any;

{
"name": "mermaid",
"version": "10.0.2",
"version": "10.0.3-alpha.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",

@@ -11,3 +12,5 @@ "types": "./dist/mermaid.d.ts",

"types": "./dist/mermaid.d.ts",
"import": "./dist/mermaid.core.mjs"
"import": "./dist/mermaid.core.mjs",
"require": "./dist/mermaid.js",
"default": "./dist/mermaid.core.mjs"
},

@@ -62,3 +65,3 @@ "./*": "./*"

"dayjs": "^1.11.7",
"dompurify": "2.4.3",
"dompurify": "2.4.5",
"elkjs": "^0.8.2",

@@ -110,6 +113,9 @@ "khroma": "^2.0.0",

"files": [
"dist",
"dist/",
"README.md"
],
"sideEffects": false
"sideEffects": false,
"publishConfig": {
"access": "public"
}
}

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc