@markdy/mdx 0.8.26 → 0.8.28

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -153,7 +153,7 @@ function MarkdyDiagram({
153
153
  "aria-label": title,
154
154
  "aria-busy": "true",
155
155
  style: {
156
- maxWidth: `${width}px`,
156
+ maxWidth: typeof width === "number" ? `${width}px` : width,
157
157
  width: "100%",
158
158
  aspectRatio: `${resolvedWidth}/${resolvedHeight}`,
159
159
  overflow: "hidden"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/mdx",
3
- "version": "0.8.26",
3
+ "version": "0.8.28",
4
4
  "description": "MDX plugin and lightweight React component for diagram-native animated Markdy diagrams.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "unist-util-visit": "^5.0.0",
45
- "@markdy/renderer-dom": "0.8.26"
45
+ "@markdy/renderer-dom": "0.8.28"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": ">=18.0.0",