@markdy/mdx 1.0.10 → 1.0.11

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/README.md CHANGED
@@ -61,7 +61,7 @@ beat main:
61
61
 
62
62
  ## Performance Notes
63
63
 
64
- - Default transform options set `autoplay=false`, `loop=false`, `progressBar=false`.
64
+ - The transform adds no implicit props, so a scene's own `player:` config stays authoritative. Pass `remarkMarkdy({ defaults: { autoplay: false, loop: false, progressBar: false } })` to restore the previous static-page behavior for every block.
65
65
  - Runtime diagram component does not import renderer code until the block enters viewport.
66
66
  - Placeholder is SSR-safe and keeps stable layout ratio to avoid CLS.
67
67
 
package/dist/index.js CHANGED
@@ -270,12 +270,7 @@ function toCodeAttribute(code) {
270
270
  }
271
271
  function remarkMarkdy(opts = {}) {
272
272
  const componentName = opts.componentName ?? "MarkdyDiagram";
273
- const defaultProps = {
274
- autoplay: false,
275
- loop: false,
276
- progressBar: false,
277
- ...opts.defaults
278
- };
273
+ const defaultProps = { ...opts.defaults };
279
274
  return (tree) => {
280
275
  visit(tree, "code", (node, index, parent) => {
281
276
  if (index === void 0 || !parent) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/mdx",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
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": "1.0.10"
45
+ "@markdy/renderer-dom": "1.0.11"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": ">=18.0.0",