@markdy/astro 0.7.29 → 0.8.1

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 +14 -9
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -36,14 +36,16 @@ Astro integration provides an island wrapper for lazy client-side hydration.
36
36
  import { Markdy } from "@markdy/astro";
37
37
 
38
38
  const code = `
39
- scene width=800 height=400 bg=#fff5f9
40
- actor hero = figure(#c68642, m, 😎) at (400, 200)
41
- @0.0: hero.enter(from=left, dur=0.8)
42
- @1.5: hero.say("Hello!", dur=1.2)
39
+ scene "Request" theme=midnight width=800 height=400
40
+ browser Web
41
+ service API
42
+ beat main:
43
+ show $nodes
44
+ Web -> API "GET /users"
43
45
  `;
44
46
  ---
45
47
 
46
- <Markdy code={code} width={800} height={400} bg="#fff5f9" autoplay />
48
+ <Markdy code={code} width={800} height={400} bg="#07111f" autoplay />
47
49
  ```
48
50
 
49
51
  ### In MDX
@@ -52,12 +54,15 @@ const code = `
52
54
  import { Markdy } from "@markdy/astro";
53
55
 
54
56
  export const code = `
55
- scene width=600 height=300 bg=white
56
- actor label = text("Hello") at (200, 130) size 40 opacity 0
57
- @0.3: label.fade_in(dur=0.6)
57
+ scene "Request" theme=midnight width=600 height=300
58
+ browser Web
59
+ service API
60
+ beat main:
61
+ show $nodes
62
+ Web -> API "GET /users"
58
63
  `;
59
64
 
60
- <Markdy code={code} width={600} height={300} autoplay />
65
+ <Markdy code={code} width={600} height={300} bg="#07111f" autoplay />
61
66
  ```
62
67
 
63
68
  ## Props
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@markdy/astro",
3
- "version": "0.7.29",
4
- "description": "Astro island component for MarkdyScript animations.",
3
+ "version": "0.8.1",
4
+ "description": "Astro island component for animated MarkdyScript architecture diagrams.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "sideEffects": false,
@@ -16,12 +16,12 @@
16
16
  "keywords": [
17
17
  "markdy",
18
18
  "astro",
19
- "animation",
20
- "island",
21
- "component",
22
- "astro-animation",
23
19
  "astro-component",
24
- "declarative"
20
+ "diagram-as-code",
21
+ "architecture-diagram",
22
+ "animated-diagram",
23
+ "island",
24
+ "component"
25
25
  ],
26
26
  "author": "Hoang Yell <hoangyell@gmail.com> (https://hoangyell.com)",
27
27
  "homepage": "https://markdy.com",
@@ -37,7 +37,7 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@markdy/renderer-dom": "0.7.29"
40
+ "@markdy/renderer-dom": "0.8.1"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "astro": ">=4.0.0"