@markdy/astro 1.0.9 → 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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -41,7 +41,7 @@ Astro integration provides an island wrapper for lazy client-side hydration.
41
41
  import { Markdy } from "@markdy/astro";
42
42
 
43
43
  const code = `
44
- scene "Request" theme=paper width=800 height=400
44
+ scene theme=paper width=800 height=400
45
45
  browser Web
46
46
  service API
47
47
  beat main:
@@ -59,7 +59,7 @@ const code = `
59
59
  import { Markdy } from "@markdy/astro";
60
60
 
61
61
  export const code = `
62
- scene "Request" theme=paper width=600 height=300
62
+ scene theme=paper width=600 height=300
63
63
  browser Web
64
64
  service API
65
65
  beat main:
@@ -86,8 +86,8 @@ export const code = `
86
86
  | `sceneBoundaryProgress` | `boolean \| string` | `true` | Show boundary progress bar, or pass a custom color/gradient string |
87
87
  | `progressColor` | `string` | `plan.meta.progressColor ?? "rainbow"` | Custom progress bar color (e.g. `"#3b82f6"`) or gradient (e.g. `"#ec4899, #8b5cf6"`) |
88
88
  | `playbackRate` | `number` | `plan.meta.playbackRate ?? 1` | Normalized timeline speed multiplier; `1` is Markdy's normal pace |
89
- | `interactiveViewport` | `boolean` | `controls \|\| plan.meta.interactiveViewport` | Enable wheel zoom and drag pan after hydration |
90
- | `controls` | `boolean` | `plan.meta.controls ?? false` | Show left-aligned footer controls toolbar (play/pause, restart, speed, reset view); also enables viewport interaction |
89
+ | `interactiveViewport` | `boolean` | `controls \|\| player.interaction` | Enable wheel zoom and drag pan after hydration |
90
+ | `controls` | `boolean` | `player.controls` | Show the footer toolbar (play, prev/next beat, restart, seek, speed, fit, reset view, SVG, share); also enables viewport interaction |
91
91
  | `class` | `string` | — | CSS class for the outer wrapper |
92
92
 
93
93
  > **Self-Contained MarkdyScript:** You can declare `controls true`, `interactive true`, `progressColor "#3b82f6"`, `loop false`, etc. directly inside the `.markdy` code so you only need `<Markdy code={code} />`. Explicit props passed to `<Markdy />` will override in-script directives.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/astro",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Astro island component for diagram-native animated MarkdyScript architecture diagrams.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@markdy/renderer-dom": "1.0.9"
41
+ "@markdy/renderer-dom": "1.0.11"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "astro": ">=4.0.0"