Merge pull request #2260 from 72636c/bug/percy_migrate_dev_dependency

Move `@percy/migrate` to devDependencies
This commit is contained in:
Ashish Jain
2021-08-26 18:40:53 +02:00
committed by GitHub
7 changed files with 212 additions and 212 deletions

206
dist/mermaid.core.js vendored
View File

@@ -656,7 +656,7 @@ module.exports = function(module) {
/*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, sideEffects, husky, default */ /*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, sideEffects, husky, default */
/***/ (function(module) { /***/ (function(module) {
module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.11.4\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --color\",\"build:production\":\"yarn build:development --mode production --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js src/defaultConfig.js --shallow -f md --markdown-toc false > docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack serve --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"@percy/migrate\":\"^0.11.0\",\"d3\":\"^7.0.0\",\"dagre\":\"^0.8.5\",\"dagre-d3\":\"^0.6.4\",\"dompurify\":\"2.3.1\",\"graphlib\":\"^2.1.8\",\"khroma\":\"^1.4.1\",\"moment-mini\":\"^2.24.0\",\"stylis\":\"^4.0.10\"},\"devDependencies\":{\"@babel/core\":\"^7.14.6\",\"@babel/eslint-parser\":\"^7.14.7\",\"@babel/preset-env\":\"^7.14.7\",\"@babel/register\":\"^7.14.5\",\"@percy/cli\":\"^1.0.0-beta.58\",\"@percy/cypress\":\"^3.1.0\",\"babel-jest\":\"^27.0.6\",\"babel-loader\":\"^8.2.2\",\"coveralls\":\"^3.0.2\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"8.1.0\",\"documentation\":\"13.2.0\",\"eslint\":\"^7.30.0\",\"eslint-config-prettier\":\"^8.3.0\",\"eslint-plugin-prettier\":\"^3.4.0\",\"husky\":\"^7.0.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^27.0.6\",\"jison\":\"^0.4.18\",\"js-base64\":\"3.6.1\",\"moment\":\"^2.23.0\",\"prettier\":\"^2.3.2\",\"start-server-and-test\":\"^1.12.6\",\"terser-webpack-plugin\":\"^4.2.3\",\"webpack\":\"^4.41.2\",\"webpack-cli\":\"^4.7.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^3.0.0\"},\"files\":[\"dist\"],\"sideEffects\":[\"**/*.css\",\"**/*.scss\"],\"husky\":{\"hooks\":{\"pre-push\":\"yarn test\"}}}"); module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.11.4\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --color\",\"build:production\":\"yarn build:development --mode production --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js src/defaultConfig.js --shallow -f md --markdown-toc false > docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack serve --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"d3\":\"^7.0.0\",\"dagre\":\"^0.8.5\",\"dagre-d3\":\"^0.6.4\",\"dompurify\":\"2.3.1\",\"graphlib\":\"^2.1.8\",\"khroma\":\"^1.4.1\",\"moment-mini\":\"^2.24.0\",\"stylis\":\"^4.0.10\"},\"devDependencies\":{\"@babel/core\":\"^7.14.6\",\"@babel/eslint-parser\":\"^7.14.7\",\"@babel/preset-env\":\"^7.14.7\",\"@babel/register\":\"^7.14.5\",\"@percy/cli\":\"^1.0.0-beta.58\",\"@percy/cypress\":\"^3.1.0\",\"@percy/migrate\":\"^0.11.0\",\"babel-jest\":\"^27.0.6\",\"babel-loader\":\"^8.2.2\",\"coveralls\":\"^3.0.2\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"8.1.0\",\"documentation\":\"13.2.0\",\"eslint\":\"^7.30.0\",\"eslint-config-prettier\":\"^8.3.0\",\"eslint-plugin-prettier\":\"^3.4.0\",\"husky\":\"^7.0.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^27.0.6\",\"jison\":\"^0.4.18\",\"js-base64\":\"3.6.1\",\"moment\":\"^2.23.0\",\"prettier\":\"^2.3.2\",\"start-server-and-test\":\"^1.12.6\",\"terser-webpack-plugin\":\"^4.2.3\",\"webpack\":\"^4.41.2\",\"webpack-cli\":\"^4.7.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^3.0.0\"},\"files\":[\"dist\"],\"sideEffects\":[\"**/*.css\",\"**/*.scss\"],\"husky\":{\"hooks\":{\"pre-push\":\"yarn test\"}}}");
/***/ }), /***/ }),
@@ -2172,9 +2172,9 @@ function intersectEllipse(node, rx, ry, point) {
"use strict"; "use strict";
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* /*
* Returns the point at which two lines, p and q, intersect or returns * Returns the point at which two lines, p and q, intersect or returns
* undefined if they do not intersect. * undefined if they do not intersect.
*/ */
function intersectLine(p1, p2, q1, q2) { function intersectLine(p1, p2, q1, q2) {
// Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994, // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,
@@ -6458,7 +6458,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -8098,19 +8098,19 @@ case 7: case 8:
this.$=[]; this.$=[];
break; break;
case 12: case 12:
yy.addEntity($$[$0-4]); yy.addEntity($$[$0-4]);
yy.addEntity($$[$0-2]); yy.addEntity($$[$0-2]);
yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]); yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);
/*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/ /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/
break; break;
case 13: case 13:
/* console.log('detected block'); */ /* console.log('detected block'); */
yy.addEntity($$[$0-3]); yy.addEntity($$[$0-3]);
yy.addAttributes($$[$0-3], $$[$0-1]); yy.addAttributes($$[$0-3], $$[$0-1]);
/* console.log('handled block'); */ /* console.log('handled block'); */
break; break;
case 14: case 14:
@@ -8135,9 +8135,9 @@ case 20: case 21:
this.$=$$[$0]; this.$=$$[$0];
break; break;
case 22: case 22:
this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] }; this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };
/*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/ /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/
break; break;
case 23: case 23:
@@ -8329,7 +8329,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -11216,10 +11216,10 @@ case 10:
this.$ = []; this.$ = [];
break; break;
case 11: case 11:
if($$[$0] !== []){ if($$[$0] !== []){
$$[$0-1].push($$[$0]); $$[$0-1].push($$[$0]);
} }
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 12: case 77: case 79: case 91: case 147: case 149: case 150: case 12: case 77: case 79: case 91: case 147: case 149: case 150:
@@ -11570,7 +11570,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -13601,7 +13601,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -15746,7 +15746,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -16072,8 +16072,8 @@ stateStackSize:function stateStackSize() {
return this.conditionStack.length; return this.conditionStack.length;
}, },
options: {"case-insensitive":true}, options: {"case-insensitive":true},
performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
// Pre-lexer code can go here // Pre-lexer code can go here
var YYSTATE=YY_START; var YYSTATE=YY_START;
switch($avoiding_name_collisions) { switch($avoiding_name_collisions) {
@@ -16411,7 +16411,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -16982,7 +16982,7 @@ var draw = function draw(txt, id) {
var themeVariables = conf.themeVariables; var themeVariables = conf.themeVariables;
var myGeneratedColors = [themeVariables.pie1, themeVariables.pie2, themeVariables.pie3, themeVariables.pie4, themeVariables.pie5, themeVariables.pie6, themeVariables.pie7, themeVariables.pie8, themeVariables.pie9, themeVariables.pie10, themeVariables.pie11, themeVariables.pie12]; // Set the color scale var myGeneratedColors = [themeVariables.pie1, themeVariables.pie2, themeVariables.pie3, themeVariables.pie4, themeVariables.pie5, themeVariables.pie6, themeVariables.pie7, themeVariables.pie8, themeVariables.pie9, themeVariables.pie10, themeVariables.pie11, themeVariables.pie12]; // Set the color scale
var color = Object(d3__WEBPACK_IMPORTED_MODULE_0__["scaleOrdinal"])().domain(data).range(myGeneratedColors); // Compute the position of each group on the pie: var color = Object(d3__WEBPACK_IMPORTED_MODULE_0__["scaleOrdinal"])().range(myGeneratedColors); // Compute the position of each group on the pie:
var pie = Object(d3__WEBPACK_IMPORTED_MODULE_0__["pie"])().value(function (d) { var pie = Object(d3__WEBPACK_IMPORTED_MODULE_0__["pie"])().value(function (d) {
return d[1]; return d[1];
@@ -17396,7 +17396,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -18478,39 +18478,39 @@ case 19:
this.$=[{type:'setTitle', text:$$[$0-1]}] this.$=[{type:'setTitle', text:$$[$0-1]}]
break; break;
case 20: case 20:
$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START}); $$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});
$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END}); $$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 21: case 21:
$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START }); $$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });
$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END }); $$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 22: case 22:
$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START}); $$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});
$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END}); $$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 23: case 23:
// Alt start // Alt start
$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START}); $$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});
// Content in alt is already in $$[$0-1] // Content in alt is already in $$[$0-1]
// End // End
$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END}); $$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 24: case 24:
// Parallel start // Parallel start
$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START}); $$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});
// Content in par is already in $$[$0-1] // Content in par is already in $$[$0-1]
// End // End
$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END}); $$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 27: case 27:
@@ -18520,15 +18520,15 @@ case 29:
this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]);
break; break;
case 30: case 30:
this.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}]; this.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];
break; break;
case 31: case 31:
// Coerce actor_pair into a [to, from, ...] array // Coerce actor_pair into a [to, from, ...] array
$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2); $$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);
$$[$0-2][0] = $$[$0-2][0].actor; $$[$0-2][0] = $$[$0-2][0].actor;
$$[$0-2][1] = $$[$0-2][1].actor; $$[$0-2][1] = $$[$0-2][1].actor;
this.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}]; this.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];
break; break;
case 34: case 34:
@@ -18544,13 +18544,13 @@ case 37:
this.$ = yy.PLACEMENT.RIGHTOF; this.$ = yy.PLACEMENT.RIGHTOF;
break; break;
case 38: case 38:
this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]}, this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},
{type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]} {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}
] ]
break; break;
case 39: case 39:
this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]}, this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},
{type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]} {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}
] ]
break; break;
case 40: case 40:
@@ -18751,7 +18751,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -21194,11 +21194,11 @@ case 5:
this.$ = [] this.$ = []
break; break;
case 6: case 6:
if($$[$0]!='nl'){ if($$[$0]!='nl'){
$$[$0-1].push($$[$0]);this.$ = $$[$0-1] $$[$0-1].push($$[$0]);this.$ = $$[$0-1]
} }
// console.warn('Got document',$$[$0-1], $$[$0]); // console.warn('Got document',$$[$0-1], $$[$0]);
break; break;
case 7: case 8: case 7: case 8:
@@ -21214,66 +21214,66 @@ case 11:
/*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])}; /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};
break; break;
case 12: case 12:
/*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/ /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/
this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}}; this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};
break; break;
case 13: case 13:
/*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/ /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/
this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()}; this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};
break; break;
case 17: case 17:
/* console.warn('Adding document for state without id ', $$[$0-3]);*/ /* console.warn('Adding document for state without id ', $$[$0-3]);*/
this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] } this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }
break; break;
case 18: case 18:
var id=$$[$0]; var id=$$[$0];
var description = $$[$0-2].trim(); var description = $$[$0-2].trim();
if($$[$0].match(':')){ if($$[$0].match(':')){
var parts = $$[$0].split(':'); var parts = $$[$0].split(':');
id=parts[0]; id=parts[0];
description = [description, parts[1]]; description = [description, parts[1]];
} }
this.$={stmt: 'state', id: id, type: 'default', description: description}; this.$={stmt: 'state', id: id, type: 'default', description: description};
break; break;
case 19: case 19:
// console.warn('Adding document for state with id zxzx', $$[$0-3], $$[$0-2], yy.getDirection()); yy.addDocument($$[$0-3]); // console.warn('Adding document for state with id zxzx', $$[$0-3], $$[$0-2], yy.getDirection()); yy.addDocument($$[$0-3]);
this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] } this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }
break; break;
case 20: case 20:
this.$={ stmt: 'state', id: $$[$0], type: 'fork' } this.$={ stmt: 'state', id: $$[$0], type: 'fork' }
break; break;
case 21: case 21:
this.$={ stmt: 'state', id: $$[$0], type: 'join' } this.$={ stmt: 'state', id: $$[$0], type: 'join' }
break; break;
case 22: case 22:
this.$={ stmt: 'state', id: $$[$0], type: 'choice' } this.$={ stmt: 'state', id: $$[$0], type: 'choice' }
break; break;
case 23: case 23:
this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' } this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }
break; break;
case 24: case 24:
/* console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/ /* console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/
this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}}; this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};
break; break;
case 30: case 30:
@@ -21456,7 +21456,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -24029,7 +24029,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({

File diff suppressed because one or more lines are too long

206
dist/mermaid.js vendored
View File

@@ -109509,7 +109509,7 @@ module.exports = function(module) {
/*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, sideEffects, husky, default */ /*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, sideEffects, husky, default */
/***/ (function(module) { /***/ (function(module) {
module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.11.4\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --color\",\"build:production\":\"yarn build:development --mode production --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js src/defaultConfig.js --shallow -f md --markdown-toc false > docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack serve --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"@percy/migrate\":\"^0.11.0\",\"d3\":\"^7.0.0\",\"dagre\":\"^0.8.5\",\"dagre-d3\":\"^0.6.4\",\"dompurify\":\"2.3.1\",\"graphlib\":\"^2.1.8\",\"khroma\":\"^1.4.1\",\"moment-mini\":\"^2.24.0\",\"stylis\":\"^4.0.10\"},\"devDependencies\":{\"@babel/core\":\"^7.14.6\",\"@babel/eslint-parser\":\"^7.14.7\",\"@babel/preset-env\":\"^7.14.7\",\"@babel/register\":\"^7.14.5\",\"@percy/cli\":\"^1.0.0-beta.58\",\"@percy/cypress\":\"^3.1.0\",\"babel-jest\":\"^27.0.6\",\"babel-loader\":\"^8.2.2\",\"coveralls\":\"^3.0.2\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"8.1.0\",\"documentation\":\"13.2.0\",\"eslint\":\"^7.30.0\",\"eslint-config-prettier\":\"^8.3.0\",\"eslint-plugin-prettier\":\"^3.4.0\",\"husky\":\"^7.0.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^27.0.6\",\"jison\":\"^0.4.18\",\"js-base64\":\"3.6.1\",\"moment\":\"^2.23.0\",\"prettier\":\"^2.3.2\",\"start-server-and-test\":\"^1.12.6\",\"terser-webpack-plugin\":\"^4.2.3\",\"webpack\":\"^4.41.2\",\"webpack-cli\":\"^4.7.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^3.0.0\"},\"files\":[\"dist\"],\"sideEffects\":[\"**/*.css\",\"**/*.scss\"],\"husky\":{\"hooks\":{\"pre-push\":\"yarn test\"}}}"); module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.11.4\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --color\",\"build:production\":\"yarn build:development --mode production --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js src/defaultConfig.js --shallow -f md --markdown-toc false > docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack serve --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"d3\":\"^7.0.0\",\"dagre\":\"^0.8.5\",\"dagre-d3\":\"^0.6.4\",\"dompurify\":\"2.3.1\",\"graphlib\":\"^2.1.8\",\"khroma\":\"^1.4.1\",\"moment-mini\":\"^2.24.0\",\"stylis\":\"^4.0.10\"},\"devDependencies\":{\"@babel/core\":\"^7.14.6\",\"@babel/eslint-parser\":\"^7.14.7\",\"@babel/preset-env\":\"^7.14.7\",\"@babel/register\":\"^7.14.5\",\"@percy/cli\":\"^1.0.0-beta.58\",\"@percy/cypress\":\"^3.1.0\",\"@percy/migrate\":\"^0.11.0\",\"babel-jest\":\"^27.0.6\",\"babel-loader\":\"^8.2.2\",\"coveralls\":\"^3.0.2\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"8.1.0\",\"documentation\":\"13.2.0\",\"eslint\":\"^7.30.0\",\"eslint-config-prettier\":\"^8.3.0\",\"eslint-plugin-prettier\":\"^3.4.0\",\"husky\":\"^7.0.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^27.0.6\",\"jison\":\"^0.4.18\",\"js-base64\":\"3.6.1\",\"moment\":\"^2.23.0\",\"prettier\":\"^2.3.2\",\"start-server-and-test\":\"^1.12.6\",\"terser-webpack-plugin\":\"^4.2.3\",\"webpack\":\"^4.41.2\",\"webpack-cli\":\"^4.7.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^3.0.0\"},\"files\":[\"dist\"],\"sideEffects\":[\"**/*.css\",\"**/*.scss\"],\"husky\":{\"hooks\":{\"pre-push\":\"yarn test\"}}}");
/***/ }), /***/ }),
@@ -111022,9 +111022,9 @@ function intersectEllipse(node, rx, ry, point) {
"use strict"; "use strict";
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* /*
* Returns the point at which two lines, p and q, intersect or returns * Returns the point at which two lines, p and q, intersect or returns
* undefined if they do not intersect. * undefined if they do not intersect.
*/ */
function intersectLine(p1, p2, q1, q2) { function intersectLine(p1, p2, q1, q2) {
// Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994, // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,
@@ -115303,7 +115303,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -116941,19 +116941,19 @@ case 7: case 8:
this.$=[]; this.$=[];
break; break;
case 12: case 12:
yy.addEntity($$[$0-4]); yy.addEntity($$[$0-4]);
yy.addEntity($$[$0-2]); yy.addEntity($$[$0-2]);
yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]); yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);
/*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/ /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/
break; break;
case 13: case 13:
/* console.log('detected block'); */ /* console.log('detected block'); */
yy.addEntity($$[$0-3]); yy.addEntity($$[$0-3]);
yy.addAttributes($$[$0-3], $$[$0-1]); yy.addAttributes($$[$0-3], $$[$0-1]);
/* console.log('handled block'); */ /* console.log('handled block'); */
break; break;
case 14: case 14:
@@ -116978,9 +116978,9 @@ case 20: case 21:
this.$=$$[$0]; this.$=$$[$0];
break; break;
case 22: case 22:
this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] }; this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };
/*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/ /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/
break; break;
case 23: case 23:
@@ -117172,7 +117172,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -120056,10 +120056,10 @@ case 10:
this.$ = []; this.$ = [];
break; break;
case 11: case 11:
if($$[$0] !== []){ if($$[$0] !== []){
$$[$0-1].push($$[$0]); $$[$0-1].push($$[$0]);
} }
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 12: case 77: case 79: case 91: case 147: case 149: case 150: case 12: case 77: case 79: case 91: case 147: case 149: case 150:
@@ -120410,7 +120410,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -122440,7 +122440,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -124583,7 +124583,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -124909,8 +124909,8 @@ stateStackSize:function stateStackSize() {
return this.conditionStack.length; return this.conditionStack.length;
}, },
options: {"case-insensitive":true}, options: {"case-insensitive":true},
performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
// Pre-lexer code can go here // Pre-lexer code can go here
var YYSTATE=YY_START; var YYSTATE=YY_START;
switch($avoiding_name_collisions) { switch($avoiding_name_collisions) {
@@ -125248,7 +125248,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -125818,7 +125818,7 @@ var draw = function draw(txt, id) {
var themeVariables = conf.themeVariables; var themeVariables = conf.themeVariables;
var myGeneratedColors = [themeVariables.pie1, themeVariables.pie2, themeVariables.pie3, themeVariables.pie4, themeVariables.pie5, themeVariables.pie6, themeVariables.pie7, themeVariables.pie8, themeVariables.pie9, themeVariables.pie10, themeVariables.pie11, themeVariables.pie12]; // Set the color scale var myGeneratedColors = [themeVariables.pie1, themeVariables.pie2, themeVariables.pie3, themeVariables.pie4, themeVariables.pie5, themeVariables.pie6, themeVariables.pie7, themeVariables.pie8, themeVariables.pie9, themeVariables.pie10, themeVariables.pie11, themeVariables.pie12]; // Set the color scale
var color = Object(d3__WEBPACK_IMPORTED_MODULE_0__["scaleOrdinal"])().domain(data).range(myGeneratedColors); // Compute the position of each group on the pie: var color = Object(d3__WEBPACK_IMPORTED_MODULE_0__["scaleOrdinal"])().range(myGeneratedColors); // Compute the position of each group on the pie:
var pie = Object(d3__WEBPACK_IMPORTED_MODULE_0__["pie"])().value(function (d) { var pie = Object(d3__WEBPACK_IMPORTED_MODULE_0__["pie"])().value(function (d) {
return d[1]; return d[1];
@@ -126232,7 +126232,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -127313,39 +127313,39 @@ case 19:
this.$=[{type:'setTitle', text:$$[$0-1]}] this.$=[{type:'setTitle', text:$$[$0-1]}]
break; break;
case 20: case 20:
$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START}); $$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});
$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END}); $$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 21: case 21:
$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START }); $$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });
$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END }); $$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 22: case 22:
$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START}); $$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});
$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END}); $$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 23: case 23:
// Alt start // Alt start
$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START}); $$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});
// Content in alt is already in $$[$0-1] // Content in alt is already in $$[$0-1]
// End // End
$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END}); $$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 24: case 24:
// Parallel start // Parallel start
$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START}); $$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});
// Content in par is already in $$[$0-1] // Content in par is already in $$[$0-1]
// End // End
$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END}); $$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});
this.$=$$[$0-1]; this.$=$$[$0-1];
break; break;
case 27: case 27:
@@ -127355,15 +127355,15 @@ case 29:
this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]);
break; break;
case 30: case 30:
this.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}]; this.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];
break; break;
case 31: case 31:
// Coerce actor_pair into a [to, from, ...] array // Coerce actor_pair into a [to, from, ...] array
$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2); $$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);
$$[$0-2][0] = $$[$0-2][0].actor; $$[$0-2][0] = $$[$0-2][0].actor;
$$[$0-2][1] = $$[$0-2][1].actor; $$[$0-2][1] = $$[$0-2][1].actor;
this.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}]; this.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];
break; break;
case 34: case 34:
@@ -127379,13 +127379,13 @@ case 37:
this.$ = yy.PLACEMENT.RIGHTOF; this.$ = yy.PLACEMENT.RIGHTOF;
break; break;
case 38: case 38:
this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]}, this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},
{type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]} {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}
] ]
break; break;
case 39: case 39:
this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]}, this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},
{type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]} {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}
] ]
break; break;
case 40: case 40:
@@ -127586,7 +127586,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -130028,11 +130028,11 @@ case 5:
this.$ = [] this.$ = []
break; break;
case 6: case 6:
if($$[$0]!='nl'){ if($$[$0]!='nl'){
$$[$0-1].push($$[$0]);this.$ = $$[$0-1] $$[$0-1].push($$[$0]);this.$ = $$[$0-1]
} }
// console.warn('Got document',$$[$0-1], $$[$0]); // console.warn('Got document',$$[$0-1], $$[$0]);
break; break;
case 7: case 8: case 7: case 8:
@@ -130048,66 +130048,66 @@ case 11:
/*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])}; /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};
break; break;
case 12: case 12:
/*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/ /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/
this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}}; this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};
break; break;
case 13: case 13:
/*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/ /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/
this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()}; this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};
break; break;
case 17: case 17:
/* console.warn('Adding document for state without id ', $$[$0-3]);*/ /* console.warn('Adding document for state without id ', $$[$0-3]);*/
this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] } this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }
break; break;
case 18: case 18:
var id=$$[$0]; var id=$$[$0];
var description = $$[$0-2].trim(); var description = $$[$0-2].trim();
if($$[$0].match(':')){ if($$[$0].match(':')){
var parts = $$[$0].split(':'); var parts = $$[$0].split(':');
id=parts[0]; id=parts[0];
description = [description, parts[1]]; description = [description, parts[1]];
} }
this.$={stmt: 'state', id: id, type: 'default', description: description}; this.$={stmt: 'state', id: id, type: 'default', description: description};
break; break;
case 19: case 19:
// console.warn('Adding document for state with id zxzx', $$[$0-3], $$[$0-2], yy.getDirection()); yy.addDocument($$[$0-3]); // console.warn('Adding document for state with id zxzx', $$[$0-3], $$[$0-2], yy.getDirection()); yy.addDocument($$[$0-3]);
this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] } this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }
break; break;
case 20: case 20:
this.$={ stmt: 'state', id: $$[$0], type: 'fork' } this.$={ stmt: 'state', id: $$[$0], type: 'fork' }
break; break;
case 21: case 21:
this.$={ stmt: 'state', id: $$[$0], type: 'join' } this.$={ stmt: 'state', id: $$[$0], type: 'join' }
break; break;
case 22: case 22:
this.$={ stmt: 'state', id: $$[$0], type: 'choice' } this.$={ stmt: 'state', id: $$[$0], type: 'choice' }
break; break;
case 23: case 23:
this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' } this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }
break; break;
case 24: case 24:
/* console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/ /* console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/
this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}}; this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};
break; break;
case 30: case 30:
@@ -130290,7 +130290,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({
@@ -132859,7 +132859,7 @@ parse: function parse(input) {
} }
return true; return true;
}}; }};
/* generated by jison-lex 0.3.4 */ /* generated by jison-lex 0.3.4 */
var lexer = (function(){ var lexer = (function(){
var lexer = ({ var lexer = ({

2
dist/mermaid.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/mermaid.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -48,7 +48,6 @@
}, },
"dependencies": { "dependencies": {
"@braintree/sanitize-url": "^3.1.0", "@braintree/sanitize-url": "^3.1.0",
"@percy/migrate": "^0.11.0",
"d3": "^7.0.0", "d3": "^7.0.0",
"dagre": "^0.8.5", "dagre": "^0.8.5",
"dagre-d3": "^0.6.4", "dagre-d3": "^0.6.4",
@@ -65,6 +64,7 @@
"@babel/register": "^7.14.5", "@babel/register": "^7.14.5",
"@percy/cli": "^1.0.0-beta.58", "@percy/cli": "^1.0.0-beta.58",
"@percy/cypress": "^3.1.0", "@percy/cypress": "^3.1.0",
"@percy/migrate": "^0.11.0",
"babel-jest": "^27.0.6", "babel-jest": "^27.0.6",
"babel-loader": "^8.2.2", "babel-loader": "^8.2.2",
"coveralls": "^3.0.2", "coveralls": "^3.0.2",