From cae456f9bb28dff7f7769b7feb7cf061406aefdc Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 20 Jul 2024 14:26:27 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../setup/interfaces/mermaid.MermaidConfig.md | 30 ++++++++++++------- docs/config/setup/modules/defaultConfig.md | 2 +- packages/parser/tests/contextMap.test.ts | 10 +++++-- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/docs/config/setup/interfaces/mermaid.MermaidConfig.md b/docs/config/setup/interfaces/mermaid.MermaidConfig.md index ef5a4313a9..63727ed1a6 100644 --- a/docs/config/setup/interfaces/mermaid.MermaidConfig.md +++ b/docs/config/setup/interfaces/mermaid.MermaidConfig.md @@ -39,7 +39,7 @@ This matters if you are using base tag settings. #### Defined in -[packages/mermaid/src/config.type.ts:162](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L162) +[packages/mermaid/src/config.type.ts:163](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L163) --- @@ -49,7 +49,7 @@ This matters if you are using base tag settings. #### Defined in -[packages/mermaid/src/config.type.ts:159](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L159) +[packages/mermaid/src/config.type.ts:160](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L160) --- @@ -63,6 +63,16 @@ This matters if you are using base tag settings. --- +### contextMap + +• `Optional` **contextMap**: `ContextMapLanguageDiagramConfig` + +#### Defined in + +[packages/mermaid/src/config.type.ts:158](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L158) + +--- + ### darkMode • `Optional` **darkMode**: `boolean` @@ -111,7 +121,7 @@ should not change unless content is changed. #### Defined in -[packages/mermaid/src/config.type.ts:163](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L163) +[packages/mermaid/src/config.type.ts:164](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L164) --- @@ -155,7 +165,7 @@ See #### Defined in -[packages/mermaid/src/config.type.ts:165](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L165) +[packages/mermaid/src/config.type.ts:166](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L166) --- @@ -189,7 +199,7 @@ If set to true, ignores legacyMathML. #### Defined in -[packages/mermaid/src/config.type.ts:158](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L158) +[packages/mermaid/src/config.type.ts:159](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L159) --- @@ -246,7 +256,7 @@ This option decides the amount of logging to be used by mermaid. #### Defined in -[packages/mermaid/src/config.type.ts:166](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L166) +[packages/mermaid/src/config.type.ts:167](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L167) --- @@ -290,7 +300,7 @@ The maximum allowed size of the users text diagram #### Defined in -[packages/mermaid/src/config.type.ts:161](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L161) +[packages/mermaid/src/config.type.ts:162](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L162) --- @@ -330,7 +340,7 @@ The maximum allowed size of the users text diagram #### Defined in -[packages/mermaid/src/config.type.ts:160](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L160) +[packages/mermaid/src/config.type.ts:161](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L161) --- @@ -401,7 +411,7 @@ This is useful when you want to control how to handle syntax errors in your appl #### Defined in -[packages/mermaid/src/config.type.ts:172](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L172) +[packages/mermaid/src/config.type.ts:173](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L173) --- @@ -454,7 +464,7 @@ You may also use `themeCSS` to override this value. #### Defined in -[packages/mermaid/src/config.type.ts:164](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L164) +[packages/mermaid/src/config.type.ts:165](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts#L165) --- diff --git a/docs/config/setup/modules/defaultConfig.md b/docs/config/setup/modules/defaultConfig.md index 512d240362..25c9ccac79 100644 --- a/docs/config/setup/modules/defaultConfig.md +++ b/docs/config/setup/modules/defaultConfig.md @@ -14,7 +14,7 @@ #### Defined in -[packages/mermaid/src/defaultConfig.ts:275](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L275) +[packages/mermaid/src/defaultConfig.ts:280](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts#L280) --- diff --git a/packages/parser/tests/contextMap.test.ts b/packages/parser/tests/contextMap.test.ts index 71d98a689b..ac7ea89775 100644 --- a/packages/parser/tests/contextMap.test.ts +++ b/packages/parser/tests/contextMap.test.ts @@ -2,7 +2,11 @@ import { parse } from '../src/parse.js'; import { describe, expect, it } from 'vitest'; import { expandToString as s } from 'langium/generate'; import { isContextMap as isModel } from '../src/language/generated/ast.js'; -import type { ContextMap as Model, ContextMapNode, ContextMapLink} from '../src/language/generated/ast.js'; +import type { + ContextMap as Model, + ContextMapNode, + ContextMapLink, +} from '../src/language/generated/ast.js'; describe('contextMap parsing', () => { const exampleGrammar = ` @@ -69,7 +73,7 @@ context-map-beta ${ast.blocks[0].body ?.filter((n) => n.$type === 'ContextMapNode') .map((rawNode) => { - const node = rawNode as ContextMapNode + const node = rawNode as ContextMapNode; return s` Node: name: ${node.name} @@ -80,7 +84,7 @@ context-map-beta ${ast.blocks[0].body ?.filter((n) => n.$type === 'ContextMapLink') .map((rawLink) => { - const link = rawLink as ContextMapLink + const link = rawLink as ContextMapLink; return s` Edge: direction: ${link.direction}