backstage-plugin-techdocs-addon-mermaid 0.24.0 → 0.25.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.
package/dist/alpha.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
2
2
  import { TechDocsAddonOptions } from '@backstage/plugin-techdocs-react/alpha';
3
3
 
4
- declare const techDocsMermaidAddon: _backstage_frontend_plugin_api.ExtensionDefinition<{
4
+ declare const techDocsMermaidAddon: _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
5
5
  kind: "addon";
6
6
  name: "mermaid";
7
7
  config: {};
8
8
  configInput: {};
9
- output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<TechDocsAddonOptions, "techdocs.addon", {}>;
9
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<TechDocsAddonOptions, "techdocs.addon", {}>;
10
10
  inputs: {};
11
11
  params: TechDocsAddonOptions;
12
12
  }>;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,21 @@
1
1
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
2
2
  import { MermaidConfig, LayoutLoaderDefinition } from 'mermaid';
3
- import { IconLoader } from 'mermaid/dist/rendering-util/icons';
3
+ import { IconifyJSON } from '@iconify/types';
4
4
  export { techDocsMermaidAddon, default as techDocsMermaidAddonModule } from './alpha.js';
5
5
  import '@backstage/frontend-plugin-api';
6
6
  import '@backstage/plugin-techdocs-react/alpha';
7
7
 
8
+ /**
9
+ * Icon loader for registering icon packs with Mermaid.
10
+ * Can be either synchronous (with icons) or asynchronous (with loader function).
11
+ */
12
+ type IconLoader = {
13
+ name: string;
14
+ loader: () => Promise<IconifyJSON>;
15
+ } | {
16
+ name: string;
17
+ icons: IconifyJSON;
18
+ };
8
19
  /**
9
20
  * Configuration options for controlling D3 zoom and pan behavior in Mermaid diagrams.
10
21
  * These options allow fine-tuning of the interactive zoom and pan capabilities.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backstage-plugin-techdocs-addon-mermaid",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "main": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "typesVersions": {
@@ -55,14 +55,16 @@
55
55
  "test": "backstage-cli package test",
56
56
  "clean": "backstage-cli package clean",
57
57
  "prepack": "backstage-cli package prepack",
58
- "postpack": "backstage-cli package postpack"
58
+ "postpack": "backstage-cli package postpack",
59
+ "tsc": "tsc",
60
+ "tsc:full": "tsc --skipLibCheck false --incremental false"
59
61
  },
60
62
  "dependencies": {
61
- "@backstage/core-components": "^0.17.3",
62
- "@backstage/core-plugin-api": "^1.10.8",
63
- "@backstage/frontend-plugin-api": "^0.10.3",
64
- "@backstage/plugin-techdocs-react": "^1.3.0",
65
- "@backstage/theme": "^0.6.6",
63
+ "@backstage/core-components": "^0.18.6",
64
+ "@backstage/core-plugin-api": "^1.12.2",
65
+ "@backstage/frontend-plugin-api": "^0.13.4",
66
+ "@backstage/plugin-techdocs-react": "^1.3.7",
67
+ "@backstage/theme": "^0.7.1",
66
68
  "@material-ui/core": "^4.12.2",
67
69
  "@material-ui/icons": "^4.11.3",
68
70
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -84,26 +86,32 @@
84
86
  }
85
87
  },
86
88
  "devDependencies": {
87
- "@backstage/cli": "^0.33.0",
88
- "@backstage/core-app-api": "^1.17.1",
89
- "@backstage/dev-utils": "^1.1.11",
90
- "@backstage/plugin-techdocs-addons-test-utils": "^1.0.50",
91
- "@backstage/test-utils": "^1.7.9",
89
+ "@backstage/cli": "^0.35.3",
90
+ "@backstage/core-app-api": "^1.19.4",
91
+ "@backstage/dev-utils": "^1.1.19",
92
+ "@backstage/plugin-techdocs-addons-test-utils": "^2.0.1",
93
+ "@backstage/test-utils": "^1.7.14",
92
94
  "@date-io/core": "^1.3.13",
95
+ "@iconify/types": "^2.0.0",
96
+ "@jest/environment-jsdom-abstract": "^30",
93
97
  "@svgr/core": "^6.0.0",
94
98
  "@testing-library/dom": "^10.0.0",
95
99
  "@testing-library/jest-dom": "^6.0.0",
96
100
  "@testing-library/react": "^16.0.0",
97
101
  "@testing-library/user-event": "^14.0.0",
98
102
  "@types/d3": "^7.4.3",
99
- "@types/jest": "*",
103
+ "@types/jest": "^30",
104
+ "@types/jsdom": "^27",
100
105
  "@types/node": "*",
101
106
  "@types/react": "^18.3.12",
102
107
  "cross-fetch": "^3.1.5",
108
+ "jest": "^30",
109
+ "jsdom": "^27",
103
110
  "msw": "^1.0.0",
104
111
  "react": "^18.3.1",
105
112
  "react-dom": "^18.3.1",
106
113
  "react-router-dom": "^6.3.0",
114
+ "shadow-dom-testing-library": "^1.13.1",
107
115
  "typescript": "~5.6.0"
108
116
  },
109
117
  "files": [