Ashley Engelund
2a98791ec9
use optional chaining check for get acc title and get acc description
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2022-11-20 12:17:21 -08:00
Ashley Engelund (weedySeaDragon @ github)
67a015c71d
re-re-fixed the contributing doc
2022-11-17 16:58:18 -08:00
Ashley Engelund (weedySeaDragon @ github)
69526402e2
format .md files
2022-11-17 16:51:23 -08:00
Ashley Engelund (weedySeaDragon @ github)
b51759d36e
set describeby to accessible description element id
2022-11-17 15:50:52 -08:00
Ashley Engelund (weedySeaDragon @ github)
68b1805c40
(minor) fix typo, whitespace formatting
2022-11-17 15:49:37 -08:00
Ashley Engelund (weedySeaDragon @ github)
9cc862b951
doc: adding diagrams: revise a11y section
2022-11-17 15:48:17 -08:00
Ashley Engelund (weedySeaDragon @ github)
4fb4aa417c
doc: revise A11y: fix multi-line ex, +describedby, alpha sort examples
2022-11-17 15:47:22 -08:00
Ashley Engelund (weedySeaDragon @ github)
0adc6a6112
remove a11y from individual diagrams; now happens in mermaidAPI render
2022-11-17 12:28:11 -08:00
Ashley Engelund (weedySeaDragon @ github)
29efc116f3
put a11y into mermaidAPI render; add render spec (mock diagram renderers etc)
2022-11-17 12:27:17 -08:00
Ashley Engelund (weedySeaDragon @ github)
f62c5d9698
add diagram renderer mocks
2022-11-17 12:25:14 -08:00
Ashley Engelund (weedySeaDragon @ github)
1ad537bc4d
d3 mock: use MockedD3; remove sequence specific mock code
2022-11-17 12:24:58 -08:00
Ashley Engelund (weedySeaDragon @ github)
1fc02940ae
move mocks specific to only seq spec files out of global d3 mock
2022-11-17 12:24:16 -08:00
Ashley Engelund (weedySeaDragon @ github)
8a3c4f64b2
MockedD3: node() return Element; add selectAll()
2022-11-17 12:23:01 -08:00
Ashley Engelund (weedySeaDragon @ github)
4d7496b8dd
add error checking (empty diagramType, title, desc) to a11y methods
2022-11-17 12:21:45 -08:00
Ashley Engelund (weedySeaDragon @ github)
03a11e103e
(minor) fix typo
2022-11-17 12:19:31 -08:00
Ashley Engelund (weedySeaDragon @ github)
c3313050ce
Merge remote-tracking branch 'MERMAID/develop' into feat/3626-aria-roledescription-for-svg
2022-11-17 11:17:18 -08:00
Sidharth Vinod
461236030c
Merge pull request #3798 from weedySeaDragon/bug/1952-stateDiagram--classDef-fix-classes-type
...
bug: State diagram fix classes type
2022-11-17 22:01:09 +05:30
Sidharth Vinod
8cc291162f
Merge pull request #3735 from aloisklink/ci/disable-pinning-dependencies
...
CI: disable pinning dependencies
2022-11-17 21:59:06 +05:30
Alois Klink
c2bd6a490f
ci(renovate): disable pinning dependencies
...
We shouldn't pin dependencies unless we have to.
This is for two reasons:
- If a dependency has a security issue, users should be able to
easily update the dependency, before `mermaid` makes a new release
- If using `mermaid.core.js` in an app, using a dependency range
means that users can bundle less dependencies.
E.g. they won't need to bundle `lodash@4.17.y` just becasue mermaid
needs `lodash@4.17.x`.
For development/CI, our dependencies are pinned by pnpm-lock.yaml
file anyway.
2022-11-16 20:00:17 +00:00
Alois Klink
476917bda9
Revert "chore(deps): pin dependencies"
...
This reverts commit 17b72d565de595c94c1e339da37fc81676c4b200.
2022-11-16 20:00:16 +00:00
Sidharth Vinod
653682a4b8
Merge pull request #3804 from weedySeaDragon/bug/3803_vitepress-config-shiki-import-fix
...
bug: change shiki getHighlighter import
2022-11-16 10:16:04 +05:30
Ashley Engelund (weedySeaDragon @ github)
d99707641b
add "roledescription" to cSpell list of words (as in 'aria-roledescription')
2022-11-15 13:49:05 -08:00
Ashley Engelund (weedySeaDragon @ github)
0d9566dd71
diagrams: use a11y title,desc specific method (was renamed)
2022-11-15 13:48:35 -08:00
Ashley Engelund (weedySeaDragon @ github)
8d96518092
accessibility.js -> ts; + set aria-roledescription; add spec
2022-11-15 13:47:16 -08:00
Ashley Engelund (weedySeaDragon @ github)
717aca6824
change shiki getHighlighter import
2022-11-15 13:09:16 -08:00
Ashley Engelund (weedySeaDragon @ github)
2cbf6110a6
create separate spec for stateRenderer-v2
2022-11-15 12:30:10 -08:00
Ashley Engelund (weedySeaDragon @ github)
fcec9adbcd
diagramStates should not be global; pass it into functions; minor comment fixes
2022-11-15 09:19:27 -08:00
Ashley Engelund (weedySeaDragon @ github)
13f3008f82
diagramClasses no longer needs to be cached; mermaidAPI no longer calls it repeatedly
2022-11-15 09:18:10 -08:00
Ashley Engelund (weedySeaDragon @ github)
6090a1f65a
(minor) import expectTypeOf in spec
2022-11-15 09:14:00 -08:00
Ashley Engelund (weedySeaDragon @ github)
1ecd4a551d
(minor) fix JSdoc tag
2022-11-15 09:13:27 -08:00
Ashley Engelund (weedySeaDragon @ github)
c6db0524bd
+ spec stateRenderer-v2.js getClasses() to verify it returns a {}
2022-11-15 09:01:34 -08:00
Ashley Engelund (weedySeaDragon @ github)
d3f5474f38
(minor) fix JSdoc types in comments
2022-11-15 08:59:01 -08:00
Ashley Engelund (weedySeaDragon @ github)
9996e53e24
(minor) add comments, remove duplicated line
2022-11-15 08:50:20 -08:00
Knut Sveidqvist
3b79ee35e0
Merge pull request #3780 from mermaid-js/sidv/mergeMaster
...
chore: Merge master to develop
2022-11-15 12:47:32 +01:00
Sidharth Vinod
b202b539bf
Merge pull request #3765 from spier/feature/check-links-in-docs
...
Add GHA that will check links + Fix broken links
2022-11-15 14:17:18 +05:30
Sidharth Vinod
e27966c15f
chore: Add master to link checker
2022-11-15 14:16:41 +05:30
Ashley Engelund (weedySeaDragon @ github)
345eaade22
stateDB classes must be a {} not []
2022-11-14 11:39:58 -08:00
Ashley Engelund (weedySeaDragon @ github)
ccd55a0bde
add stateDiagram-v2 to list of graphs with classDefs
2022-11-14 11:24:59 -08:00
Sidharth Vinod
846a03663c
fix(docs): ClassDiagram table
2022-11-14 22:15:34 +05:30
Sidharth Vinod
ad6eba452c
Merge branch 'develop' into sidv/mergeMaster
...
* develop:
fix(deps): update dependency rollup to v3
2022-11-14 16:44:57 +05:30
Sidharth Vinod
eae88c51d2
Cleanup
2022-11-14 16:42:08 +05:30
Sidharth Vinod
752cc3a527
Merge pull request #3674 from mermaid-js/renovate/rollup-3.x
...
fix(deps): update dependency rollup to v3
2022-11-14 16:41:09 +05:30
Sidharth Vinod
051b4271d3
Cleanup docs
2022-11-14 15:24:47 +05:30
Sidharth Vinod
4decaf0308
chore: Fix tsdoc
2022-11-14 15:17:13 +05:30
Sidharth Vinod
9144fa390f
cleanup
2022-11-14 15:05:58 +05:30
Sidharth Vinod
c354d9e1e3
Merge remote-tracking branch 'origin/master' into sidv/mergeMaster
...
* origin/master: (76 commits)
fix: `use-inline-specifiers-lockfile-format` to pnpm
Hacky fix for pnpm issue
chore: Cleanup pakage.json, fix jisonLint
feat: Switch CDN
Updated README-files
Updated URL
Updated release
Increased package version to 9.2.2
Added registerExternalDiagram for Mindmap
fix: Remove registerDiagram export
fix versions
feat: Add config validator MVP
Apply suggestions from code review
fix: Import path in viewer.js
Cleanup package.json
Restore package and lock from master
fix pnpm lock
Fix pnpm-lock
Fixing applitools batches
Fix pnpm
...
2022-11-14 14:57:08 +05:30
Sidharth Vinod
77a326dedf
Merge Master
2022-11-14 14:51:23 +05:30
Sidharth Vinod
2d9bdedaf5
Merge branch 'develop' into sidv/mergeMaster
...
* develop:
chore(deps): update all non-major dependencies
fix(deps): update all non-major dependencies
fix: `sourceLinkTemplate` in typedoc
only call getClasses if the diagram renderer supports it
fix typo
merge fix: get classDefs only if diagram is in CLASSDEF_DIAGRAMS
use lodash isEmpty instead of method defined in utils
chore: Fix cspell
fix: Type of DiagramStyleClassDef, general cleanup
change spec descriptions to active voice (= shorter b/c 'should' isn't needed)
functions and specs: removeExistingElements
functions and specs: createUserstyles; minor changes
functions and specs: createCssStyles, appendDivSvgG,cleanUpSvgCode, putIntoIFrame [for render]
add MockedD3.ts
const isSandboxed, isLooseSecurityLevel, fontFamily; a few more CONSTs
more meaningful var names; move related lines together; const idSelector
comment the main steps (prepare to break into functions that can be tested)
render: define const iFrameId, enclosingDivID and _selector to use in function
specs: encodeEntities, decodeEntities
render: constants
2022-11-14 13:57:09 +05:30
renovate[bot]
04a99a7cd3
fix(deps): update dependency rollup to v3
2022-11-14 07:51:09 +00:00
Sidharth Vinod
0763590c24
Merge pull request #3791 from mermaid-js/renovate/all-minor-patch
...
chore(deps): update all non-major dependencies (minor)
2022-11-14 13:18:10 +05:30