mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 12:54:08 +01:00 
			
		
		
		
	Compare commits
	
		
			36 Commits
		
	
	
		
			@mermaid-j
			...
			sidv/argos
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					8ac0c7350b | ||
| 
						 | 
					d5bd6cd90c | ||
| 
						 | 
					c38d9a6620 | ||
| 
						 | 
					2f65429aa4 | ||
| 
						 | 
					c24028f2a4 | ||
| 
						 | 
					a20c292653 | ||
| 
						 | 
					1c6304b3fb | ||
| 
						 | 
					3ac93af80c | ||
| 
						 | 
					ce586e1b31 | ||
| 
						 | 
					926f97124b | ||
| 
						 | 
					0f2301f2d6 | ||
| 
						 | 
					58e8f65135 | ||
| 
						 | 
					1b51fbfcca | ||
| 
						 | 
					a989d22255 | ||
| 
						 | 
					f5a90ff6dc | ||
| 
						 | 
					1296840696 | ||
| 
						 | 
					c71b56ebe3 | ||
| 
						 | 
					9904afce64 | ||
| 
						 | 
					a827fb1202 | ||
| 
						 | 
					b83b778f2a | ||
| 
						 | 
					8885fe5129 | ||
| 
						 | 
					22274dba3c | ||
| 
						 | 
					86a91597f9 | ||
| 
						 | 
					bf04b94057 | ||
| 
						 | 
					1b12ac133e | ||
| 
						 | 
					e55880a9c4 | ||
| 
						 | 
					9cc309b69c | ||
| 
						 | 
					72d60d2633 | ||
| 
						 | 
					2401eea725 | ||
| 
						 | 
					ddf18dd233 | ||
| 
						 | 
					4b98dabc3f | ||
| 
						 | 
					38a3ad3370 | ||
| 
						 | 
					b777c12094 | ||
| 
						 | 
					8fc36d2684 | ||
| 
						 | 
					6e0fe03552 | ||
| 
						 | 
					e5a28de26e | 
							
								
								
									
										5
									
								
								.changeset/dry-students-act.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.changeset/dry-students-act.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
'mermaid': patch
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
Add missing TypeScript dependencies
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/autofix.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/autofix.yml
									
									
									
									
										vendored
									
									
								
							@@ -19,7 +19,7 @@ jobs:
 | 
			
		||||
        # uses version from "packageManager" field in package.json
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          cache: pnpm
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/build-docs.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build-docs.yml
									
									
									
									
										vendored
									
									
								
							@@ -23,7 +23,7 @@ jobs:
 | 
			
		||||
      - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          cache: pnpm
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							@@ -36,7 +36,7 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      # Initializes the CodeQL tools for scanning.
 | 
			
		||||
      - name: Initialize CodeQL
 | 
			
		||||
        uses: github/codeql-action/init@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5
 | 
			
		||||
        uses: github/codeql-action/init@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
 | 
			
		||||
        with:
 | 
			
		||||
          config-file: ./.github/codeql/codeql-config.yml
 | 
			
		||||
          languages: ${{ matrix.language }}
 | 
			
		||||
@@ -48,7 +48,7 @@ jobs:
 | 
			
		||||
      # Autobuild attempts to build any compiled languages  (C/C++, C#, or Java).
 | 
			
		||||
      # If this step fails, then you should remove it and run the build manually (see below)
 | 
			
		||||
      - name: Autobuild
 | 
			
		||||
        uses: github/codeql-action/autobuild@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5
 | 
			
		||||
        uses: github/codeql-action/autobuild@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
 | 
			
		||||
 | 
			
		||||
      # ℹ️ Command-line programs to run using the OS shell.
 | 
			
		||||
      # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
 | 
			
		||||
@@ -62,4 +62,4 @@ jobs:
 | 
			
		||||
      #   make release
 | 
			
		||||
 | 
			
		||||
      - name: Perform CodeQL Analysis
 | 
			
		||||
        uses: github/codeql-action/analyze@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5
 | 
			
		||||
        uses: github/codeql-action/analyze@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/e2e-applitools.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/e2e-applitools.yml
									
									
									
									
										vendored
									
									
								
							@@ -38,7 +38,7 @@ jobs:
 | 
			
		||||
        # uses version from "packageManager" field in package.json
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										53
									
								
								.github/workflows/e2e-timings.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								.github/workflows/e2e-timings.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,53 @@
 | 
			
		||||
name: E2E - Generate Timings
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  # run this workflow every night at 3am
 | 
			
		||||
  schedule:
 | 
			
		||||
    - cron: '28 3 * * *'
 | 
			
		||||
  # or when the user triggers it from GitHub Actions page
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
 | 
			
		||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
  contents: write
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  timings:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    container:
 | 
			
		||||
      image: cypress/browsers:node-20.11.0-chrome-121.0.6167.85-1-ff-120.0-edge-121.0.2277.83-1
 | 
			
		||||
      options: --user 1001
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
 | 
			
		||||
      - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        uses: cypress-io/github-action@0da3c06ed8217b912deea9d8ee69630baed1737e # v6.7.6
 | 
			
		||||
        with:
 | 
			
		||||
          runTests: false
 | 
			
		||||
      - name: Cypress run
 | 
			
		||||
        uses: cypress-io/github-action@0da3c06ed8217b912deea9d8ee69630baed1737e # v6.7.6
 | 
			
		||||
        id: cypress
 | 
			
		||||
        with:
 | 
			
		||||
          install: false
 | 
			
		||||
          start: pnpm run dev:coverage
 | 
			
		||||
          wait-on: 'http://localhost:9000'
 | 
			
		||||
          browser: chrome
 | 
			
		||||
          publish-summary: false
 | 
			
		||||
        env:
 | 
			
		||||
          VITEST_COVERAGE: true
 | 
			
		||||
          CYPRESS_COMMIT: ${{ github.sha }}
 | 
			
		||||
          SPLIT: 1
 | 
			
		||||
          SPLIT_INDEX: 0
 | 
			
		||||
          SPLIT_FILE: 'cypress/timings.json'
 | 
			
		||||
      - name: Commit changes
 | 
			
		||||
        uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
 | 
			
		||||
        with:
 | 
			
		||||
          add: 'cypress/timings.json'
 | 
			
		||||
          author_name: 'github-actions[bot]'
 | 
			
		||||
          author_email: '41898282+github-actions[bot]@users.noreply.github.com'
 | 
			
		||||
          message: 'chore: update E2E timings'
 | 
			
		||||
							
								
								
									
										28
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							@@ -28,7 +28,6 @@ env:
 | 
			
		||||
      ) || 
 | 
			
		||||
      github.event.before
 | 
			
		||||
    }}
 | 
			
		||||
  shouldRunParallel: ${{ secrets.CYPRESS_RECORD_KEY != '' && !(github.event_name == 'push' && github.ref == 'refs/heads/develop') }}
 | 
			
		||||
jobs:
 | 
			
		||||
  cache:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
@@ -39,7 +38,7 @@ jobs:
 | 
			
		||||
      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
 | 
			
		||||
      - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
      - name: Cache snapshots
 | 
			
		||||
@@ -59,7 +58,7 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        if: ${{ steps.cache-snapshot.outputs.cache-hit != 'true' }}
 | 
			
		||||
        uses: cypress-io/github-action@df7484c5ba85def7eef30db301afa688187bc378 # v6.7.2
 | 
			
		||||
        uses: cypress-io/github-action@0da3c06ed8217b912deea9d8ee69630baed1737e # v6.7.6
 | 
			
		||||
        with:
 | 
			
		||||
          # just perform install
 | 
			
		||||
          runTests: false
 | 
			
		||||
@@ -80,7 +79,7 @@ jobs:
 | 
			
		||||
    strategy:
 | 
			
		||||
      fail-fast: false
 | 
			
		||||
      matrix:
 | 
			
		||||
        containers: [1, 2, 3, 4]
 | 
			
		||||
        containers: [1, 2, 3, 4, 5]
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
 | 
			
		||||
 | 
			
		||||
@@ -88,7 +87,7 @@ jobs:
 | 
			
		||||
        # uses version from "packageManager" field in package.json
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
 | 
			
		||||
@@ -101,7 +100,7 @@ jobs:
 | 
			
		||||
          key: ${{ runner.os }}-snapshots-${{ env.targetHash }}
 | 
			
		||||
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        uses: cypress-io/github-action@df7484c5ba85def7eef30db301afa688187bc378 # v6.7.2
 | 
			
		||||
        uses: cypress-io/github-action@0da3c06ed8217b912deea9d8ee69630baed1737e # v6.7.6
 | 
			
		||||
        with:
 | 
			
		||||
          runTests: false
 | 
			
		||||
 | 
			
		||||
@@ -117,11 +116,8 @@ jobs:
 | 
			
		||||
      # Install NPM dependencies, cache them correctly
 | 
			
		||||
      # and run all Cypress tests
 | 
			
		||||
      - name: Cypress run
 | 
			
		||||
        uses: cypress-io/github-action@df7484c5ba85def7eef30db301afa688187bc378 # v6.7.2
 | 
			
		||||
        uses: cypress-io/github-action@0da3c06ed8217b912deea9d8ee69630baed1737e # v6.7.6
 | 
			
		||||
        id: cypress
 | 
			
		||||
        # If CYPRESS_RECORD_KEY is set, run in parallel on all containers
 | 
			
		||||
        # Otherwise (e.g. if running from fork), we run on a single container only
 | 
			
		||||
        if: ${{ env.shouldRunParallel == 'true' || ( matrix.containers == 1 ) }}
 | 
			
		||||
        with:
 | 
			
		||||
          install: false
 | 
			
		||||
          start: pnpm run dev:coverage
 | 
			
		||||
@@ -129,16 +125,18 @@ jobs:
 | 
			
		||||
          browser: chrome
 | 
			
		||||
          # Disable recording if we don't have an API key
 | 
			
		||||
          # e.g. if this action was run from a fork
 | 
			
		||||
          record: ${{ env.shouldRunParallel == 'true' }}
 | 
			
		||||
          parallel: ${{ env.shouldRunParallel == 'true' }}
 | 
			
		||||
          record: ${{ secrets.CYPRESS_RECORD_KEY != '' }}
 | 
			
		||||
        env:
 | 
			
		||||
          CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
 | 
			
		||||
          VITEST_COVERAGE: true
 | 
			
		||||
          CYPRESS_COMMIT: ${{ github.sha }}
 | 
			
		||||
          ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
 | 
			
		||||
          ARGOS_PARALLEL: ${{ env.shouldRunParallel == 'true' }}
 | 
			
		||||
          ARGOS_PARALLEL_TOTAL: 4
 | 
			
		||||
          ARGOS_PARALLEL_INDEX: ${{ matrix.containers }}
 | 
			
		||||
          ARGOS_PARALLEL: true
 | 
			
		||||
          ARGOS_PARALLEL_TOTAL: ${{ strategy.job-total }}
 | 
			
		||||
          ARGOS_PARALLEL_INDEX: ${{ strategy.job-index }}
 | 
			
		||||
          SPLIT: ${{ strategy.job-total }}
 | 
			
		||||
          SPLIT_INDEX: ${{ strategy.job-index }}
 | 
			
		||||
          SPLIT_FILE: 'cypress/timings.json'
 | 
			
		||||
 | 
			
		||||
      - name: Upload Coverage to Codecov
 | 
			
		||||
        uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
								
							@@ -29,7 +29,7 @@ jobs:
 | 
			
		||||
        # uses version from "packageManager" field in package.json
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          cache: pnpm
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/publish-docs.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/publish-docs.yml
									
									
									
									
										vendored
									
									
								
							@@ -28,7 +28,7 @@ jobs:
 | 
			
		||||
      - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          cache: pnpm
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,7 @@ jobs:
 | 
			
		||||
      - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          cache: pnpm
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/release-preview.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/release-preview.yml
									
									
									
									
										vendored
									
									
								
							@@ -31,7 +31,7 @@ jobs:
 | 
			
		||||
      - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          cache: pnpm
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@@ -26,7 +26,7 @@ jobs:
 | 
			
		||||
      - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          cache: pnpm
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
@@ -36,7 +36,7 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      - name: Create Release Pull Request or Publish to npm
 | 
			
		||||
        id: changesets
 | 
			
		||||
        uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
 | 
			
		||||
        uses: changesets/action@3de3850952bec538fde60aac71731376e57b9b57 # v1.4.8
 | 
			
		||||
        with:
 | 
			
		||||
          version: pnpm changeset:version
 | 
			
		||||
          publish: pnpm changeset:publish
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								.github/workflows/scorecard.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/scorecard.yml
									
									
									
									
										vendored
									
									
								
							@@ -16,11 +16,11 @@ jobs:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout code
 | 
			
		||||
        uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
 | 
			
		||||
        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
 | 
			
		||||
        with:
 | 
			
		||||
          persist-credentials: false
 | 
			
		||||
      - name: Run analysis
 | 
			
		||||
        uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
 | 
			
		||||
        uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
 | 
			
		||||
        with:
 | 
			
		||||
          results_file: results.sarif
 | 
			
		||||
          results_format: sarif
 | 
			
		||||
@@ -32,6 +32,6 @@ jobs:
 | 
			
		||||
          path: results.sarif
 | 
			
		||||
          retention-days: 5
 | 
			
		||||
      - name: Upload to code-scanning
 | 
			
		||||
        uses: github/codeql-action/upload-sarif@f0f3afee809481da311ca3a6ff1ff51d81dbeb24 # v3.26.4
 | 
			
		||||
        uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
 | 
			
		||||
        with:
 | 
			
		||||
          sarif_file: results.sarif
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							@@ -15,7 +15,7 @@ jobs:
 | 
			
		||||
        # uses version from "packageManager" field in package.json
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
 | 
			
		||||
        uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
 | 
			
		||||
        with:
 | 
			
		||||
          cache: pnpm
 | 
			
		||||
          node-version-file: '.node-version'
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,9 @@
 | 
			
		||||
import { defineConfig } from 'cypress';
 | 
			
		||||
import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin';
 | 
			
		||||
import coverage from '@cypress/code-coverage/task';
 | 
			
		||||
import eyesPlugin from '@applitools/eyes-cypress';
 | 
			
		||||
import { registerArgosTask } from '@argos-ci/cypress/task';
 | 
			
		||||
import coverage from '@cypress/code-coverage/task';
 | 
			
		||||
import { defineConfig } from 'cypress';
 | 
			
		||||
import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin';
 | 
			
		||||
import cypressSplit from 'cypress-split';
 | 
			
		||||
 | 
			
		||||
export default eyesPlugin(
 | 
			
		||||
  defineConfig({
 | 
			
		||||
@@ -13,6 +14,7 @@ export default eyesPlugin(
 | 
			
		||||
      specPattern: 'cypress/integration/**/*.{js,ts}',
 | 
			
		||||
      setupNodeEvents(on, config) {
 | 
			
		||||
        coverage(on, config);
 | 
			
		||||
        cypressSplit(on, config);
 | 
			
		||||
        on('before:browser:launch', (browser, launchOptions) => {
 | 
			
		||||
          if (browser.name === 'chrome' && browser.isHeadless) {
 | 
			
		||||
            launchOptions.args.push('--window-size=1440,1024', '--force-device-scale-factor=1');
 | 
			
		||||
 
 | 
			
		||||
@@ -29,6 +29,7 @@ export const mermaidUrl = (
 | 
			
		||||
  options: CypressMermaidConfig,
 | 
			
		||||
  api: boolean
 | 
			
		||||
): string => {
 | 
			
		||||
  options.handDrawnSeed = 1;
 | 
			
		||||
  const codeObject: CodeObject = {
 | 
			
		||||
    code: graphStr,
 | 
			
		||||
    mermaid: options,
 | 
			
		||||
 
 | 
			
		||||
@@ -173,7 +173,8 @@ describe.skip('architecture diagram', () => {
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
describe('architecture - external', () => {
 | 
			
		||||
// Skipped as the layout is not deterministic, and causes issues in E2E tests.
 | 
			
		||||
describe.skip('architecture - external', () => {
 | 
			
		||||
  it('should allow adding external icons', () => {
 | 
			
		||||
    urlSnapshotTest('http://localhost:9000/architecture-external.html');
 | 
			
		||||
  });
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -30,7 +29,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -47,7 +45,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      C -->|Two| E[iPhone]
 | 
			
		||||
      C -->|Three| F[Car]
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -62,7 +60,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      C -->|Two| E[\\iPhone\\]
 | 
			
		||||
      C -->|Three| F[Car]
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -78,7 +76,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      classDef processHead fill:#888888,color:white,font-weight:bold,stroke-width:3px,stroke:#001f3f
 | 
			
		||||
      class 1A,1B,D,E processHead
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -107,7 +105,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      35(SAM.CommonFA.PopulationFME)-->39(SAM.CommonFA.ChargeDetails)
 | 
			
		||||
      36(SAM.CommonFA.PremetricCost)-->39(SAM.CommonFA.ChargeDetails)
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -178,7 +176,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      9a072290_1ec3_e711_8c5a_005056ad0002-->d6072290_1ec3_e711_8c5a_005056ad0002
 | 
			
		||||
      9a072290_1ec3_e711_8c5a_005056ad0002-->71082290_1ec3_e711_8c5a_005056ad0002
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -187,7 +185,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `
 | 
			
		||||
    graph TB;subgraph "number as labels";1;end;
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -199,7 +197,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
        a1-->a2
 | 
			
		||||
      end
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -211,7 +209,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
        a1-->a2
 | 
			
		||||
      end
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -246,7 +244,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      style foo fill:#F99,stroke-width:2px,stroke:#F0F,color:darkred
 | 
			
		||||
      style bar fill:#999,stroke-width:10px,stroke:#0F0,color:blue
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -348,7 +346,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      sid-7CE72B24-E0C1-46D3-8132-8BA66BE05AA7-->sid-4DA958A0-26D9-4D47-93A7-70F39FD7D51A;
 | 
			
		||||
      sid-7CE72B24-E0C1-46D3-8132-8BA66BE05AA7-->sid-4FC27B48-A6F9-460A-A675-021F5854FE22;
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -364,7 +362,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        listUrl: false,
 | 
			
		||||
        listId: 'color styling',
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
@@ -390,7 +387,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        listUrl: false,
 | 
			
		||||
        listId: 'color styling',
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
@@ -411,7 +407,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -435,7 +430,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -457,7 +451,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -471,7 +464,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -485,7 +477,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -500,7 +491,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -527,7 +517,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      class A someclass;`,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -544,7 +533,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      C -->|Two| E[iPhone]
 | 
			
		||||
      C -->|Three| F[fa:fa-car Car]
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, flowchart: { nodeSpacing: 50 }, fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', flowchart: { nodeSpacing: 50 }, fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -560,7 +549,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { rankSpacing: '100' },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -578,7 +566,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -603,7 +590,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      click E "notes://do-your-thing/id" "other protocol test"
 | 
			
		||||
      click F "javascript:alert('test')" "script test"
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, securityLevel: 'loose', fontFamily: 'courier' }
 | 
			
		||||
      { look: 'handDrawn', securityLevel: 'loose', fontFamily: 'courier' }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -623,7 +610,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      click B "index.html#link-clicked" "link test"
 | 
			
		||||
      click D testClick "click test"
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, flowchart: { htmlLabels: true } }
 | 
			
		||||
      { look: 'handDrawn', flowchart: { htmlLabels: true } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -645,7 +632,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -664,7 +650,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      class A myClass1
 | 
			
		||||
      class D myClass2
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, flowchart: { htmlLabels: true } }
 | 
			
		||||
      { look: 'handDrawn', flowchart: { htmlLabels: true } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -682,7 +668,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -711,7 +696,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -728,7 +712,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -752,7 +735,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: false },
 | 
			
		||||
        fontFamily: 'courier',
 | 
			
		||||
      }
 | 
			
		||||
@@ -769,7 +751,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      C -->|Two| E[iPhone]
 | 
			
		||||
      C -->|Three| F[fa:fa-car Car]
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, flowchart: { diagramPadding: 0 } }
 | 
			
		||||
      { look: 'handDrawn', flowchart: { diagramPadding: 0 } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
@@ -804,7 +786,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `graph TD
 | 
			
		||||
        a["<strong>Haiya</strong>"]-->b
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, htmlLabels: false, flowchart: { htmlLabels: false } }
 | 
			
		||||
      { look: 'handDrawn', htmlLabels: false, flowchart: { htmlLabels: false } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
  it('FDH37: should render non-escaped with html labels', () => {
 | 
			
		||||
@@ -814,7 +796,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        htmlLabels: true,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
@@ -830,7 +811,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      C -->|Two| E[iPhone]
 | 
			
		||||
      C -->|Three| F[fa:fa-car Car]
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, flowchart: { useMaxWidth: true } }
 | 
			
		||||
      { look: 'handDrawn', flowchart: { useMaxWidth: true } }
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg').should((svg) => {
 | 
			
		||||
      expect(svg).to.have.attr('width', '100%');
 | 
			
		||||
@@ -853,7 +834,7 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      C -->|Two| E[iPhone]
 | 
			
		||||
      C -->|Three| F[fa:fa-car Car]
 | 
			
		||||
      `,
 | 
			
		||||
      { look: 'handDrawn', handDrawnSeed: 1, flowchart: { useMaxWidth: false } }
 | 
			
		||||
      { look: 'handDrawn', flowchart: { useMaxWidth: false } }
 | 
			
		||||
    );
 | 
			
		||||
    cy.get('svg').should((svg) => {
 | 
			
		||||
      // const height = parseFloat(svg.attr('height'));
 | 
			
		||||
@@ -874,7 +855,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        htmlLabels: true,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
@@ -904,7 +884,6 @@ describe('Flowchart HandDrawn', () => {
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        htmlLabels: true,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
@@ -919,7 +898,6 @@ graph TD
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        htmlLabels: true,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
@@ -937,7 +915,6 @@ graph TD
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        htmlLabels: true,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
@@ -977,7 +954,6 @@ graph TD
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        htmlLabels: true,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
@@ -999,7 +975,6 @@ graph TD
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        htmlLabels: true,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
@@ -1016,7 +991,6 @@ graph TD
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        htmlLabels: true,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
@@ -1032,7 +1006,6 @@ graph TD
 | 
			
		||||
      `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        htmlLabels: true,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
@@ -1051,7 +1024,6 @@ graph TD
 | 
			
		||||
    `,
 | 
			
		||||
      {
 | 
			
		||||
        look: 'handDrawn',
 | 
			
		||||
        handDrawnSeed: 1,
 | 
			
		||||
        flowchart: { htmlLabels: true },
 | 
			
		||||
        securityLevel: 'loose',
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										152
									
								
								cypress/timings.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										152
									
								
								cypress/timings.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,152 @@
 | 
			
		||||
{
 | 
			
		||||
  "durations": [
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/other/configuration.spec.js",
 | 
			
		||||
      "duration": 4989
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/other/external-diagrams.spec.js",
 | 
			
		||||
      "duration": 1382
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/other/ghsa.spec.js",
 | 
			
		||||
      "duration": 3178
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/other/iife.spec.js",
 | 
			
		||||
      "duration": 1372
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/other/interaction.spec.js",
 | 
			
		||||
      "duration": 8998
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/other/rerender.spec.js",
 | 
			
		||||
      "duration": 1249
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/other/xss.spec.js",
 | 
			
		||||
      "duration": 25664
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/appli.spec.js",
 | 
			
		||||
      "duration": 1928
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/architecture.spec.ts",
 | 
			
		||||
      "duration": 2330
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/block.spec.js",
 | 
			
		||||
      "duration": 11156
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/c4.spec.js",
 | 
			
		||||
      "duration": 3418
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/classDiagram-v2.spec.js",
 | 
			
		||||
      "duration": 14866
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/classDiagram.spec.js",
 | 
			
		||||
      "duration": 9894
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/conf-and-directives.spec.js",
 | 
			
		||||
      "duration": 5778
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/current.spec.js",
 | 
			
		||||
      "duration": 1690
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/erDiagram.spec.js",
 | 
			
		||||
      "duration": 9144
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/errorDiagram.spec.js",
 | 
			
		||||
      "duration": 1951
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/flowchart-elk.spec.js",
 | 
			
		||||
      "duration": 2196
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/flowchart-handDrawn.spec.js",
 | 
			
		||||
      "duration": 21029
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/flowchart-shape-alias.spec.ts",
 | 
			
		||||
      "duration": 16087
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/flowchart-v2.spec.js",
 | 
			
		||||
      "duration": 27465
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/flowchart.spec.js",
 | 
			
		||||
      "duration": 20035
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/gantt.spec.js",
 | 
			
		||||
      "duration": 11366
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/gitGraph.spec.js",
 | 
			
		||||
      "duration": 34025
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/iconShape.spec.ts",
 | 
			
		||||
      "duration": 185902
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/imageShape.spec.ts",
 | 
			
		||||
      "duration": 41631
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/info.spec.ts",
 | 
			
		||||
      "duration": 1736
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/journey.spec.js",
 | 
			
		||||
      "duration": 2247
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/katex.spec.js",
 | 
			
		||||
      "duration": 2144
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/marker_unique_id.spec.js",
 | 
			
		||||
      "duration": 1646
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/mindmap.spec.ts",
 | 
			
		||||
      "duration": 6406
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/newShapes.spec.ts",
 | 
			
		||||
      "duration": 107219
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/stateDiagram.spec.js",
 | 
			
		||||
      "duration": 15834
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/theme.spec.js",
 | 
			
		||||
      "duration": 33240
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/timeline.spec.ts",
 | 
			
		||||
      "duration": 7122
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/xyChart.spec.js",
 | 
			
		||||
      "duration": 11127
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "spec": "cypress/integration/rendering/zenuml.spec.js",
 | 
			
		||||
      "duration": 2391
 | 
			
		||||
    }
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
@@ -127,7 +127,7 @@ Error.prepareStackTrace
 | 
			
		||||
 | 
			
		||||
#### Defined in
 | 
			
		||||
 | 
			
		||||
node_modules/.pnpm/@types+node\@20.16.2/node_modules/@types/node/globals.d.ts:28
 | 
			
		||||
node_modules/.pnpm/@types+node\@20.16.11/node_modules/@types/node/globals.d.ts:98
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
@@ -141,7 +141,7 @@ Error.stackTraceLimit
 | 
			
		||||
 | 
			
		||||
#### Defined in
 | 
			
		||||
 | 
			
		||||
node_modules/.pnpm/@types+node\@20.16.2/node_modules/@types/node/globals.d.ts:30
 | 
			
		||||
node_modules/.pnpm/@types+node\@20.16.11/node_modules/@types/node/globals.d.ts:100
 | 
			
		||||
 | 
			
		||||
## Methods
 | 
			
		||||
 | 
			
		||||
@@ -168,4 +168,4 @@ Error.captureStackTrace
 | 
			
		||||
 | 
			
		||||
#### Defined in
 | 
			
		||||
 | 
			
		||||
node_modules/.pnpm/@types+node\@20.16.2/node_modules/@types/node/globals.d.ts:21
 | 
			
		||||
node_modules/.pnpm/@types+node\@20.16.11/node_modules/@types/node/globals.d.ts:91
 | 
			
		||||
 
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@applitools/eyes-cypress": "^3.44.4",
 | 
			
		||||
    "@argos-ci/cypress": "^2.1.0",
 | 
			
		||||
    "@argos-ci/cypress": "^2.2.3",
 | 
			
		||||
    "@changesets/changelog-github": "^0.5.0",
 | 
			
		||||
    "@changesets/cli": "^2.27.7",
 | 
			
		||||
    "@cspell/eslint-plugin": "^8.8.4",
 | 
			
		||||
@@ -91,6 +91,7 @@
 | 
			
		||||
    "cspell": "^8.6.0",
 | 
			
		||||
    "cypress": "^13.14.1",
 | 
			
		||||
    "cypress-image-snapshot": "^4.0.1",
 | 
			
		||||
    "cypress-split": "^1.24.0",
 | 
			
		||||
    "esbuild": "^0.21.5",
 | 
			
		||||
    "eslint": "^9.4.0",
 | 
			
		||||
    "eslint-config-prettier": "^9.1.0",
 | 
			
		||||
@@ -103,7 +104,7 @@
 | 
			
		||||
    "eslint-plugin-markdown": "^5.0.0",
 | 
			
		||||
    "eslint-plugin-no-only-tests": "^3.1.0",
 | 
			
		||||
    "eslint-plugin-tsdoc": "^0.3.0",
 | 
			
		||||
    "eslint-plugin-unicorn": "^55.0.0",
 | 
			
		||||
    "eslint-plugin-unicorn": "^56.0.0",
 | 
			
		||||
    "express": "^4.19.1",
 | 
			
		||||
    "globals": "^15.4.0",
 | 
			
		||||
    "globby": "^14.0.1",
 | 
			
		||||
 
 | 
			
		||||
@@ -70,12 +70,14 @@
 | 
			
		||||
    "@braintree/sanitize-url": "^7.0.1",
 | 
			
		||||
    "@iconify/utils": "^2.1.32",
 | 
			
		||||
    "@mermaid-js/parser": "workspace:^",
 | 
			
		||||
    "@types/d3": "^7.4.3",
 | 
			
		||||
    "@types/dompurify": "^3.0.5",
 | 
			
		||||
    "cytoscape": "^3.29.2",
 | 
			
		||||
    "cytoscape-cose-bilkent": "^4.1.0",
 | 
			
		||||
    "cytoscape-fcose": "^2.2.0",
 | 
			
		||||
    "d3": "^7.9.0",
 | 
			
		||||
    "d3-sankey": "^0.12.3",
 | 
			
		||||
    "dagre-d3-es": "7.0.10",
 | 
			
		||||
    "dagre-d3-es": "7.0.11",
 | 
			
		||||
    "dayjs": "^1.11.10",
 | 
			
		||||
    "dompurify": "^3.0.11 <3.1.7",
 | 
			
		||||
    "katex": "^0.16.9",
 | 
			
		||||
@@ -92,13 +94,11 @@
 | 
			
		||||
    "@iconify/types": "^2.0.0",
 | 
			
		||||
    "@types/cytoscape": "^3.21.4",
 | 
			
		||||
    "@types/cytoscape-fcose": "^2.2.4",
 | 
			
		||||
    "@types/d3": "^7.4.3",
 | 
			
		||||
    "@types/d3-sankey": "^0.12.4",
 | 
			
		||||
    "@types/d3-scale": "^4.0.8",
 | 
			
		||||
    "@types/d3-scale-chromatic": "^3.0.3",
 | 
			
		||||
    "@types/d3-selection": "^3.0.10",
 | 
			
		||||
    "@types/d3-shape": "^3.1.6",
 | 
			
		||||
    "@types/dompurify": "^3.0.5",
 | 
			
		||||
    "@types/jsdom": "^21.1.6",
 | 
			
		||||
    "@types/katex": "^0.16.7",
 | 
			
		||||
    "@types/lodash-es": "^4.17.12",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								patches/@argos-ci__api-client.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								patches/@argos-ci__api-client.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
diff --git a/dist/index.mjs b/dist/index.mjs
 | 
			
		||||
index 121ed29385ceca37f7cb6b7188709d7ec506dfa6..41092962ccde5177a261b816cffb55f6a1615d6e 100644
 | 
			
		||||
--- a/dist/index.mjs
 | 
			
		||||
+++ b/dist/index.mjs
 | 
			
		||||
@@ -25,6 +25,10 @@ class APIError extends Error {
 | 
			
		||||
  */ function throwAPIError(fetchResponse) {
 | 
			
		||||
     const { error, response } = fetchResponse;
 | 
			
		||||
     if (error && typeof error === "object" && "error" in error && typeof error.error === "string") {
 | 
			
		||||
+        const message = error.details?.[0]?.message;
 | 
			
		||||
+        if (message) {
 | 
			
		||||
+            throw new APIError(`${error.error}: ${message}`);
 | 
			
		||||
+        }
 | 
			
		||||
         throw new APIError(error.error);
 | 
			
		||||
     }
 | 
			
		||||
     throw new APIError(`API error: ${response.status} ${response.statusText}`);
 | 
			
		||||
							
								
								
									
										39
									
								
								patches/@argos-ci__core.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								patches/@argos-ci__core.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
			
		||||
diff --git a/dist/index.mjs b/dist/index.mjs
 | 
			
		||||
index 5cbaad945826960a6b77b44bf9661e1c2523c16d..6df2474578cdcf2b6d26330bd23dbb48a24ecafe 100644
 | 
			
		||||
--- a/dist/index.mjs
 | 
			
		||||
+++ b/dist/index.mjs
 | 
			
		||||
@@ -914,13 +914,7 @@ async function uploadFilesToS3(files) {
 | 
			
		||||
     await uploadFilesToS3(uploadFiles);
 | 
			
		||||
     // Update build
 | 
			
		||||
     debug("Updating build");
 | 
			
		||||
-    const uploadBuildResponse = await apiClient.PUT("/builds/{buildId}", {
 | 
			
		||||
-        params: {
 | 
			
		||||
-            path: {
 | 
			
		||||
-                buildId: result.build.id
 | 
			
		||||
-            }
 | 
			
		||||
-        },
 | 
			
		||||
-        body: {
 | 
			
		||||
+    const body = {
 | 
			
		||||
             screenshots: screenshots.map((screenshot)=>({
 | 
			
		||||
                     key: screenshot.hash,
 | 
			
		||||
                     name: screenshot.name,
 | 
			
		||||
@@ -933,9 +927,18 @@ async function uploadFilesToS3(files) {
 | 
			
		||||
             parallelTotal: config.parallelTotal,
 | 
			
		||||
             parallelIndex: config.parallelIndex,
 | 
			
		||||
             metadata: params.metadata
 | 
			
		||||
-        }
 | 
			
		||||
+        };
 | 
			
		||||
+    const uploadBuildResponse = await apiClient.PUT("/builds/{buildId}", {
 | 
			
		||||
+        params: {
 | 
			
		||||
+            path: {
 | 
			
		||||
+                buildId: result.build.id
 | 
			
		||||
+            }
 | 
			
		||||
+        },
 | 
			
		||||
+        body
 | 
			
		||||
     });
 | 
			
		||||
     if (uploadBuildResponse.error) {
 | 
			
		||||
+        console.error(JSON.stringify({body, buildId: result.build.id}, null, 2))
 | 
			
		||||
+        console.error(JSON.stringify(uploadBuildResponse, null, 2))
 | 
			
		||||
         throwAPIError(uploadBuildResponse);
 | 
			
		||||
     }
 | 
			
		||||
     return {
 | 
			
		||||
							
								
								
									
										6138
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6138
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -35,6 +35,10 @@
 | 
			
		||||
    {
 | 
			
		||||
      "groupName": "eslint",
 | 
			
		||||
      "matchPackagePatterns": ["eslint"]
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "groupName": "dompurify",
 | 
			
		||||
      "matchPackagePatterns": ["dompurify"]
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "dependencyDashboard": false,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user