@barzhsieh/nuxt-content-mermaid 2.1.0-alpha.1 → 2.1.1
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/dist/module.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { MermaidConfig } from 'mermaid';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* - 'light':
|
|
5
|
-
* - 'dark':
|
|
6
|
-
* @see https://mermaid.js.org/ecosystem/integrations.html
|
|
3
|
+
* Switch between configured dark/light themes
|
|
4
|
+
* - 'light': corresponds to contentMermaid.theme.light setting
|
|
5
|
+
* - 'dark': corresponds to contentMermaid.theme.dark setting
|
|
7
6
|
*/
|
|
8
7
|
export type SimpleMermaidTheme = 'light' | 'dark';
|
|
9
8
|
/**
|
|
10
|
-
* Mermaid
|
|
11
|
-
*
|
|
12
|
-
* -
|
|
13
|
-
* -
|
|
14
|
-
* -
|
|
9
|
+
* Mermaid theme type
|
|
10
|
+
* Can be:
|
|
11
|
+
* - Simple mode: 'light', 'dark' (corresponds to configured light/dark theme)
|
|
12
|
+
* - Official themes: 'default', 'forest', 'dark', 'neutral', 'base', etc.
|
|
13
|
+
* @see https://mermaid.js.org/config/schema-docs/config.html?#theme
|
|
14
|
+
* - null: Reset to auto mode
|
|
15
15
|
*/
|
|
16
16
|
export type MermaidThemeMode = MermaidConfig['theme'] | SimpleMermaidTheme | null;
|
|
17
17
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barzhsieh/nuxt-content-mermaid",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "A Nuxt module designed for integrating Mermaid with `@nuxt/content`. It automatically converts `mermaid` code blocks in Markdown into responsive chart components, and supports lazy loading and dark/light theme switching.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|