@docusaurus/theme-mermaid 3.3.2 → 3.5.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.
@@ -4,7 +4,6 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- /// <reference path="../../src/theme-mermaid.d.ts" />
8
7
  import type { RenderResult, MermaidConfig } from 'mermaid';
9
8
  import type { ThemeConfig } from '@docusaurus/theme-mermaid';
10
9
  export declare const MermaidContainerClassName = "docusaurus-mermaid-container";
package/lib/index.js CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.validateThemeConfig = void 0;
10
+ exports.default = themeMermaid;
10
11
  function themeMermaid() {
11
12
  return {
12
13
  name: 'docusaurus-theme-mermaid',
@@ -18,6 +19,5 @@ function themeMermaid() {
18
19
  },
19
20
  };
20
21
  }
21
- exports.default = themeMermaid;
22
22
  var validateThemeConfig_1 = require("./validateThemeConfig");
23
23
  Object.defineProperty(exports, "validateThemeConfig", { enumerable: true, get: function () { return validateThemeConfig_1.validateThemeConfig; } });
@@ -4,7 +4,5 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- /// <reference path="../../../src/theme-mermaid.d.ts" />
8
- /// <reference types="react" />
9
7
  import type { Props } from '@theme/Mermaid';
10
8
  export default function Mermaid(props: Props): JSX.Element;
@@ -4,7 +4,6 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- /// <reference path="../src/theme-mermaid.d.ts" />
8
7
  import { Joi } from '@docusaurus/utils-validation';
9
8
  import type { ThemeConfig } from '@docusaurus/theme-mermaid';
10
9
  import type { ThemeConfigValidationContext } from '@docusaurus/types';
@@ -6,7 +6,8 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.validateThemeConfig = exports.Schema = exports.DEFAULT_THEME_CONFIG = void 0;
9
+ exports.Schema = exports.DEFAULT_THEME_CONFIG = void 0;
10
+ exports.validateThemeConfig = validateThemeConfig;
10
11
  const utils_validation_1 = require("@docusaurus/utils-validation");
11
12
  exports.DEFAULT_THEME_CONFIG = {
12
13
  mermaid: {
@@ -29,4 +30,3 @@ exports.Schema = utils_validation_1.Joi.object({
29
30
  function validateThemeConfig({ validate, themeConfig, }) {
30
31
  return validate(exports.Schema, themeConfig);
31
32
  }
32
- exports.validateThemeConfig = validateThemeConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-mermaid",
3
- "version": "3.3.2",
3
+ "version": "3.5.0",
4
4
  "description": "Mermaid components for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-mermaid.d.ts",
@@ -33,11 +33,11 @@
33
33
  "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
34
34
  },
35
35
  "dependencies": {
36
- "@docusaurus/core": "3.3.2",
37
- "@docusaurus/module-type-aliases": "3.3.2",
38
- "@docusaurus/theme-common": "3.3.2",
39
- "@docusaurus/types": "3.3.2",
40
- "@docusaurus/utils-validation": "3.3.2",
36
+ "@docusaurus/core": "3.5.0",
37
+ "@docusaurus/module-type-aliases": "3.5.0",
38
+ "@docusaurus/theme-common": "3.5.0",
39
+ "@docusaurus/types": "3.5.0",
40
+ "@docusaurus/utils-validation": "3.5.0",
41
41
  "mermaid": "^10.4.0",
42
42
  "tslib": "^2.6.0"
43
43
  },
@@ -51,5 +51,5 @@
51
51
  "engines": {
52
52
  "node": ">=18.0"
53
53
  },
54
- "gitHead": "bc638d674bfbde1e254ef306697f47e764b5e107"
54
+ "gitHead": "cb5829f3c34b26d798b869e38ee25073488140bd"
55
55
  }