backstage-plugin-techdocs-addon-mermaid 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/dist/Mermaid/Mermaid.esm.js +3 -0
- package/dist/Mermaid/Mermaid.esm.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -68,6 +68,39 @@ markdown_extensions:
|
|
|
68
68
|
format: !!python/name:pymdownx.superfences.fence_code_format
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
## Supporting Additional Layout Renderers
|
|
72
|
+
|
|
73
|
+
By providing a mermaid layout renderer that conforms to the `LayoutLoaderDefinition`, such as the [ELK Renderer](https://www.npmjs.com/package/@mermaid-js/layout-elk),
|
|
74
|
+
this plugin will include this provided render on page load.
|
|
75
|
+
|
|
76
|
+
**Example Usage**
|
|
77
|
+
|
|
78
|
+
In your Backstage application root folder run:
|
|
79
|
+
```bash
|
|
80
|
+
yarn add @mermaid-js/layout-elk
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Then within both `App.tsx` and `EntityPage.tsx` add the following:
|
|
84
|
+
```typescript
|
|
85
|
+
import elkLayouts from '@mermaid-js/layout-elk';
|
|
86
|
+
...
|
|
87
|
+
<Mermaid layoutLoaders={elkLayouts} config={{layout: 'elk'}} />
|
|
88
|
+
...
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
This will support both the legacy syntax and the modern syntax for defining which mermaid diagrams utilize the new layout renderer
|
|
92
|
+
Legacy
|
|
93
|
+
```bash
|
|
94
|
+
%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%%
|
|
95
|
+
```
|
|
96
|
+
Modern
|
|
97
|
+
```bash
|
|
98
|
+
---
|
|
99
|
+
config:
|
|
100
|
+
layout: elk
|
|
101
|
+
---
|
|
102
|
+
```
|
|
103
|
+
|
|
71
104
|
## Contributors Guide
|
|
72
105
|
|
|
73
106
|
This plugin can be developed in the context of an existing Backstage deployment or a [new local deployment](https://backstage.io/docs/getting-started/#1-create-your-backstage-app).
|
|
@@ -38,6 +38,9 @@ const MermaidAddon = (properties) => {
|
|
|
38
38
|
if (properties.iconLoaders) {
|
|
39
39
|
mermaid.registerIconPacks(properties.iconLoaders);
|
|
40
40
|
}
|
|
41
|
+
if (properties.layoutLoaders) {
|
|
42
|
+
mermaid.registerLayoutLoaders(properties.layoutLoaders);
|
|
43
|
+
}
|
|
41
44
|
mermaid.initialize(config);
|
|
42
45
|
setInitialized(true);
|
|
43
46
|
}, [initialized]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mermaid.esm.js","sources":["../../src/Mermaid/Mermaid.tsx"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect, useState } from 'react';\nimport { PaletteType, useTheme } from '@material-ui/core';\n\nimport { useShadowRootElements } from '@backstage/plugin-techdocs-react';\nimport mermaid, { MermaidConfig } from 'mermaid'\nimport { isMermaidCode } from './hooks';\nimport { MermaidProps } from './props';\nimport { BackstageTheme } from '@backstage/theme';\n\nexport function selectConfig(backstagePalette: PaletteType, properties: MermaidProps): MermaidConfig {\n // Theme set directly in the Mermaid configuration takes\n // precedence for backwards-compatibility\n if(properties.config) {\n return properties.config;\n }\n\n if(backstagePalette === 'light') {\n return properties.lightConfig || {};\n }\n\n return Object.assign({ theme: 'dark' }, properties.darkConfig);\n}\n\n/**\n * Show report issue button when text is highlighted\n */\n\nlet diagramId = 0\n\nconst makeDiagram = async (el: HTMLDivElement | HTMLPreElement, diagramText: string) => {\n el.style.display = 'none'\n\n const diagramElement = document.createElement('div')\n diagramElement.className = \"mermaid\"\n\n el.parentNode?.insertBefore(diagramElement, el.nextSibling);\n\n const id = `mermaid-${diagramId++}`\n const { svg, bindFunctions } = await mermaid.render(id, diagramText);\n diagramElement.innerHTML = svg\n bindFunctions?.(diagramElement);\n}\n\nexport const MermaidAddon = (properties: MermaidProps) => {\n const highlightTables = useShadowRootElements<HTMLDivElement>(['.highlighttable']);\n const highlightDivs = useShadowRootElements<HTMLDivElement>(['.highlight']);\n const mermaidPreBlocks = useShadowRootElements<HTMLPreElement>(['.mermaid']);\n const theme = useTheme<BackstageTheme>();\n\n const [ initialized, setInitialized ] = useState(false);\n\n useEffect(() => {\n if (initialized) {\n return;\n }\n const config = selectConfig(theme.palette.type, properties);\n if ( properties.iconLoaders ) {\n mermaid.registerIconPacks(properties.iconLoaders);\n }\n mermaid.initialize(config);\n setInitialized(true);\n }, [initialized]);\n\n useEffect(() => {\n if (!initialized) {\n return;\n }\n\n highlightTables.forEach(highlightTable => {\n if (!highlightTable.classList.contains('language-text')) {\n return;\n }\n\n // Skip already processed\n if (highlightTable.style.display === 'none') {\n return\n }\n\n const codeBlock = highlightTable.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.textContent || ''\n\n // Ideally we could detect mermaid based on some annotation, but use a regex for now\n if (!isMermaidCode(diagramText)) {\n return\n }\n\n makeDiagram(highlightTable, diagramText)\n });\n }, [initialized, highlightTables]);\n\n useEffect(() => {\n if (!initialized) {\n return;\n }\n\n highlightDivs.forEach(highlightDiv => {\n if (!highlightDiv.classList.contains('language-text')) {\n return;\n }\n\n // Skip already processed\n if (highlightDiv.style.display === 'none') {\n return\n }\n\n // skip mkdocs-material < 9 code blocks (handled above)\n const table = highlightDiv.querySelector('table')\n if (!table) {\n return\n }\n\n const codeBlock = highlightDiv.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.textContent || ''\n\n // Ideally we could detect mermaid based on some annotation, but use a regex for now\n if (!isMermaidCode(diagramText)) {\n return\n }\n\n makeDiagram(highlightDiv, diagramText)\n });\n }, [initialized, highlightDivs]);\n\n useEffect(() => {\n if (!initialized) {\n return;\n }\n\n mermaidPreBlocks.forEach(mermaidPreBlock => {\n // Skip already processed\n if (mermaidPreBlock.style.display === 'none') {\n return\n }\n\n const codeBlock = mermaidPreBlock.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.textContent || ''\n\n makeDiagram(mermaidPreBlock, diagramText)\n });\n }, [initialized, mermaidPreBlocks]);\n\n return null;\n};\n"],"names":[],"mappings":";;;;;;AAyBgB,SAAA,YAAA,CAAa,kBAA+B,UAAyC,EAAA;AAGnG,EAAA,IAAG,WAAW,MAAQ,EAAA;AACpB,IAAA,OAAO,UAAW,CAAA,MAAA;AAAA;AAGpB,EAAA,IAAG,qBAAqB,OAAS,EAAA;AAC/B,IAAO,OAAA,UAAA,CAAW,eAAe,EAAC;AAAA;AAGpC,EAAA,OAAO,OAAO,MAAO,CAAA,EAAE,OAAO,MAAO,EAAA,EAAG,WAAW,UAAU,CAAA;AAC/D;AAMA,IAAI,SAAY,GAAA,CAAA;AAEhB,MAAM,WAAA,GAAc,OAAO,EAAA,EAAqC,WAAwB,KAAA;AACtF,EAAA,EAAA,CAAG,MAAM,OAAU,GAAA,MAAA;AAEnB,EAAM,MAAA,cAAA,GAAiB,QAAS,CAAA,aAAA,CAAc,KAAK,CAAA;AACnD,EAAA,cAAA,CAAe,SAAY,GAAA,SAAA;AAE3B,EAAA,EAAA,CAAG,UAAY,EAAA,YAAA,CAAa,cAAgB,EAAA,EAAA,CAAG,WAAW,CAAA;AAE1D,EAAM,MAAA,EAAA,GAAK,WAAW,SAAW,EAAA,CAAA,CAAA;AACjC,EAAM,MAAA,EAAE,KAAK,aAAc,EAAA,GAAI,MAAM,OAAQ,CAAA,MAAA,CAAO,IAAI,WAAW,CAAA;AACnE,EAAA,cAAA,CAAe,SAAY,GAAA,GAAA;AAC3B,EAAA,aAAA,GAAgB,cAAc,CAAA;AAChC,CAAA;AAEa,MAAA,YAAA,GAAe,CAAC,UAA6B,KAAA;AACxD,EAAA,MAAM,eAAkB,GAAA,qBAAA,CAAsC,CAAC,iBAAiB,CAAC,CAAA;AACjF,EAAA,MAAM,aAAgB,GAAA,qBAAA,CAAsC,CAAC,YAAY,CAAC,CAAA;AAC1E,EAAA,MAAM,gBAAmB,GAAA,qBAAA,CAAsC,CAAC,UAAU,CAAC,CAAA;AAC3E,EAAA,MAAM,QAAQ,QAAyB,EAAA;AAEvC,EAAA,MAAM,CAAE,WAAA,EAAa,cAAe,CAAA,GAAI,SAAS,KAAK,CAAA;AAEtD,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,WAAa,EAAA;AACf,MAAA;AAAA;AAEF,IAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"Mermaid.esm.js","sources":["../../src/Mermaid/Mermaid.tsx"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect, useState } from 'react';\nimport { PaletteType, useTheme } from '@material-ui/core';\n\nimport { useShadowRootElements } from '@backstage/plugin-techdocs-react';\nimport mermaid, { MermaidConfig } from 'mermaid'\nimport { isMermaidCode } from './hooks';\nimport { MermaidProps } from './props';\nimport { BackstageTheme } from '@backstage/theme';\n\nexport function selectConfig(backstagePalette: PaletteType, properties: MermaidProps): MermaidConfig {\n // Theme set directly in the Mermaid configuration takes\n // precedence for backwards-compatibility\n if(properties.config) {\n return properties.config;\n }\n\n if(backstagePalette === 'light') {\n return properties.lightConfig || {};\n }\n\n return Object.assign({ theme: 'dark' }, properties.darkConfig);\n}\n\n/**\n * Show report issue button when text is highlighted\n */\n\nlet diagramId = 0\n\nconst makeDiagram = async (el: HTMLDivElement | HTMLPreElement, diagramText: string) => {\n el.style.display = 'none'\n\n const diagramElement = document.createElement('div')\n diagramElement.className = \"mermaid\"\n\n el.parentNode?.insertBefore(diagramElement, el.nextSibling);\n\n const id = `mermaid-${diagramId++}`\n const { svg, bindFunctions } = await mermaid.render(id, diagramText);\n diagramElement.innerHTML = svg\n bindFunctions?.(diagramElement);\n}\n\nexport const MermaidAddon = (properties: MermaidProps) => {\n const highlightTables = useShadowRootElements<HTMLDivElement>(['.highlighttable']);\n const highlightDivs = useShadowRootElements<HTMLDivElement>(['.highlight']);\n const mermaidPreBlocks = useShadowRootElements<HTMLPreElement>(['.mermaid']);\n const theme = useTheme<BackstageTheme>();\n\n const [ initialized, setInitialized ] = useState(false);\n\n useEffect(() => {\n if (initialized) {\n return;\n }\n const config: MermaidConfig = selectConfig(theme.palette.type, properties);\n if ( properties.iconLoaders ) {\n mermaid.registerIconPacks(properties.iconLoaders);\n }\n if (properties.layoutLoaders) {\n mermaid.registerLayoutLoaders(properties.layoutLoaders);\n }\n mermaid.initialize(config);\n setInitialized(true);\n }, [initialized]);\n\n useEffect(() => {\n if (!initialized) {\n return;\n }\n\n highlightTables.forEach(highlightTable => {\n if (!highlightTable.classList.contains('language-text')) {\n return;\n }\n\n // Skip already processed\n if (highlightTable.style.display === 'none') {\n return\n }\n\n const codeBlock = highlightTable.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.textContent || ''\n\n // Ideally we could detect mermaid based on some annotation, but use a regex for now\n if (!isMermaidCode(diagramText)) {\n return\n }\n\n makeDiagram(highlightTable, diagramText)\n });\n }, [initialized, highlightTables]);\n\n useEffect(() => {\n if (!initialized) {\n return;\n }\n\n highlightDivs.forEach(highlightDiv => {\n if (!highlightDiv.classList.contains('language-text')) {\n return;\n }\n\n // Skip already processed\n if (highlightDiv.style.display === 'none') {\n return\n }\n\n // skip mkdocs-material < 9 code blocks (handled above)\n const table = highlightDiv.querySelector('table')\n if (!table) {\n return\n }\n\n const codeBlock = highlightDiv.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.textContent || ''\n\n // Ideally we could detect mermaid based on some annotation, but use a regex for now\n if (!isMermaidCode(diagramText)) {\n return\n }\n\n makeDiagram(highlightDiv, diagramText)\n });\n }, [initialized, highlightDivs]);\n\n useEffect(() => {\n if (!initialized) {\n return;\n }\n\n mermaidPreBlocks.forEach(mermaidPreBlock => {\n // Skip already processed\n if (mermaidPreBlock.style.display === 'none') {\n return\n }\n\n const codeBlock = mermaidPreBlock.querySelector('code')\n if (!codeBlock) {\n return\n }\n\n const diagramText = codeBlock.textContent || ''\n\n makeDiagram(mermaidPreBlock, diagramText)\n });\n }, [initialized, mermaidPreBlocks]);\n\n return null;\n};\n"],"names":[],"mappings":";;;;;;AAyBgB,SAAA,YAAA,CAAa,kBAA+B,UAAyC,EAAA;AAGnG,EAAA,IAAG,WAAW,MAAQ,EAAA;AACpB,IAAA,OAAO,UAAW,CAAA,MAAA;AAAA;AAGpB,EAAA,IAAG,qBAAqB,OAAS,EAAA;AAC/B,IAAO,OAAA,UAAA,CAAW,eAAe,EAAC;AAAA;AAGpC,EAAA,OAAO,OAAO,MAAO,CAAA,EAAE,OAAO,MAAO,EAAA,EAAG,WAAW,UAAU,CAAA;AAC/D;AAMA,IAAI,SAAY,GAAA,CAAA;AAEhB,MAAM,WAAA,GAAc,OAAO,EAAA,EAAqC,WAAwB,KAAA;AACtF,EAAA,EAAA,CAAG,MAAM,OAAU,GAAA,MAAA;AAEnB,EAAM,MAAA,cAAA,GAAiB,QAAS,CAAA,aAAA,CAAc,KAAK,CAAA;AACnD,EAAA,cAAA,CAAe,SAAY,GAAA,SAAA;AAE3B,EAAA,EAAA,CAAG,UAAY,EAAA,YAA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A,CAAC,aAAc,CAAA,WAAW,CAAG,EAAA;AAC/B,QAAA;AAAA;AAGF,MAAA,WAAA,CAAY,cAAc,WAAW,CAAA;AAAA,KACtC,CAAA;AAAA,GACA,EAAA,CAAC,WAAa,EAAA,aAAa,CAAC,CAAA;AAE/B,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,CAAC,WAAa,EAAA;AAChB,MAAA;AAAA;AAGF,IAAA,gBAAA,CAAiB,QAAQ,CAAmB,eAAA,KAAA;AAE1C,MAAI,IAAA,eAAA,CAAgB,KAAM,CAAA,OAAA,KAAY,MAAQ,EAAA;AAC5C,QAAA;AAAA;AAGF,MAAM,MAAA,SAAA,GAAY,eAAgB,CAAA,aAAA,CAAc,MAAM,CAAA;AACtD,MAAA,IAAI,CAAC,SAAW,EAAA;AACd,QAAA;AAAA;AAGF,MAAM,MAAA,WAAA,GAAc,UAAU,WAAe,IAAA,EAAA;AAE7C,MAAA,WAAA,CAAY,iBAAiB,WAAW,CAAA;AAAA,KACzC,CAAA;AAAA,GACA,EAAA,CAAC,WAAa,EAAA,gBAAgB,CAAC,CAAA;AAElC,EAAO,OAAA,IAAA;AACT;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
3
|
-
import { MermaidConfig } from 'mermaid';
|
|
3
|
+
import { MermaidConfig, LayoutLoaderDefinition } from 'mermaid';
|
|
4
4
|
import { IconLoader } from 'mermaid/dist/rendering-util/icons';
|
|
5
5
|
|
|
6
6
|
type MermaidProps = {
|
|
@@ -8,6 +8,7 @@ type MermaidProps = {
|
|
|
8
8
|
darkConfig?: MermaidConfig;
|
|
9
9
|
config?: MermaidConfig;
|
|
10
10
|
iconLoaders?: IconLoader[];
|
|
11
|
+
layoutLoaders?: LayoutLoaderDefinition[];
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backstage-plugin-techdocs-addon-mermaid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"main": "dist/index.esm.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@material-ui/core": "^4.12.2",
|
|
40
40
|
"@material-ui/icons": "^4.11.3",
|
|
41
41
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
42
|
-
"mermaid": "^11.
|
|
42
|
+
"mermaid": "^11.4.1",
|
|
43
43
|
"react-use": "^17.2.4"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"@testing-library/user-event": "^14.0.0",
|
|
62
62
|
"@types/jest": "*",
|
|
63
63
|
"@types/node": "*",
|
|
64
|
-
"@types/react": "^18.
|
|
64
|
+
"@types/react": "^18.3.12",
|
|
65
65
|
"cross-fetch": "^3.1.5",
|
|
66
66
|
"msw": "^1.0.0",
|
|
67
|
-
"react": "^18.
|
|
68
|
-
"react-dom": "^18.
|
|
67
|
+
"react": "^18.3.1",
|
|
68
|
+
"react-dom": "^18.3.1",
|
|
69
69
|
"react-router-dom": "^6.3.0",
|
|
70
70
|
"typescript": "~5.2.0"
|
|
71
71
|
},
|