-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
2,000 additions
and
1,146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'@mermaid': patch | ||
--- | ||
|
||
Fixed an issue when the mermaid classdiagram crashes when adding a . to the namespace. | ||
Forexample | ||
|
||
```mermaid | ||
classDiagram | ||
namespace Company.Project.Module { | ||
class GenericClass~T~ { | ||
+addItem(item: T) | ||
+getItem() T | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'mermaid': patch | ||
--- | ||
|
||
Fix for issue with calculation of label width when using in firefox |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'mermaid': patch | ||
--- | ||
|
||
Ban DOMPurify v3.1.7 as a dependency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ Foswiki | |
Gitea | ||
graphlib | ||
Grav | ||
icones | ||
iconify | ||
Inkdrop | ||
jiti | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Preview release | ||
|
||
on: | ||
pull_request: | ||
branches: [develop] | ||
types: [opened, synchronize, labeled, ready_for_review] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
actions: write | ||
|
||
jobs: | ||
preview: | ||
if: ${{ github.repository_owner == 'mermaid-js' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
issues: write | ||
pull-requests: write | ||
name: Publish preview release | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
|
||
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | ||
with: | ||
cache: pnpm | ||
node-version-file: '.node-version' | ||
|
||
- name: Install Packages | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Publish packages | ||
run: pnpx pkg-pr-new publish --pnpm './packages/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<title>Architecture Mermaid Test Page</title> | ||
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" /> | ||
<style> | ||
div.mermaid { | ||
/* font-family: 'trebuchet ms', verdana, arial; */ | ||
font-family: 'Courier New', Courier, monospace !important; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<h2>External Icons Demo</h2> | ||
<pre class="mermaid"> | ||
architecture-beta | ||
service s3(logos:aws-s3)[Cloud Store] | ||
service ec2(logos:aws-ec2)[Server] | ||
service api(logos:aws-api-gateway)[Api Gateway] | ||
service fa(fa:image)[Font Awesome Icon] | ||
</pre> | ||
|
||
<script type="module"> | ||
import mermaid from './mermaid.esm.mjs'; | ||
mermaid.initialize({ | ||
startOnLoad: false, | ||
logLevel: 0, | ||
}); | ||
mermaid.registerIconPacks([ | ||
{ | ||
name: 'logos', | ||
loader: () => | ||
fetch('https://unpkg.com/@iconify-json/logos/icons.json').then((res) => res.json()), | ||
}, | ||
{ | ||
name: 'fa', | ||
loader: () => | ||
fetch('https://unpkg.com/@iconify-json/fa6-regular/icons.json').then((res) => | ||
res.json() | ||
), | ||
}, | ||
]); | ||
await mermaid.run(); | ||
if (window.Cypress) { | ||
window.rendered = true; | ||
} | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.