@ai-gui/plugin-mermaid 0.5.0 → 0.6.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/index.cjs CHANGED
@@ -52,7 +52,8 @@ function mermaid(opts = {}) {
52
52
  const { svg } = await m.render(id, node.content ?? "");
53
53
  return {
54
54
  kind: "html",
55
- html: svg
55
+ html: svg,
56
+ trusted: true
56
57
  };
57
58
  } catch {
58
59
  return errorHtml();
package/dist/index.js CHANGED
@@ -50,7 +50,8 @@ function mermaid(opts = {}) {
50
50
  const { svg } = await m.render(id, node.content ?? "");
51
51
  return {
52
52
  kind: "html",
53
- html: svg
53
+ html: svg,
54
+ trusted: true
54
55
  };
55
56
  } catch {
56
57
  return errorHtml();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-gui/plugin-mermaid",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Mermaid diagram plugin for AIGUI.",
5
5
  "keywords": [
6
6
  "llm",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "mermaid": "^11.4.0",
55
- "@ai-gui/core": "0.5.0"
55
+ "@ai-gui/core": "0.6.0"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsdown",