astro-dgmo 0.11.2 → 0.11.4

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 +5 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -22,7 +22,7 @@ API -200 OK-> Client
22
22
 
23
23
  ## Chart types & visual authoring
24
24
 
25
- One small plain-text language, **45 chart types** — flowcharts, sequence, state, class, ER, C4, org charts, gantt, maps, mind maps, and the full bar/line/pie/area/sankey family. Browse every type with live examples in the **[language reference](https://diagrammo.app/reference)**.
25
+ One small plain-text language, **50+ chart types** — flowcharts, sequence, state, class, ER, C4, org charts, gantt, maps, mind maps, and the full bar/line/pie/area/sankey family. Browse every type with live examples in the **[language reference](https://diagrammo.app/reference)**.
26
26
 
27
27
  Prefer to author visually? Draft diagrams in the **[Diagrammo desktop app](https://diagrammo.app/app)** or the **[online editor](https://online.diagrammo.app)** — live preview, autocomplete, optional vim keybindings, 7 themeable palettes, and one-click PNG/SVG export — then paste the `dgmo` block into your docs. More at **[diagrammo.app](https://diagrammo.app)**.
28
28
 
@@ -211,11 +211,13 @@ If your site marks dark mode some third way (`data-color-scheme="dark"`, `:root[
211
211
  display: none;
212
212
  }
213
213
  [data-mode='dark'] .dgmo-dark {
214
- display: block;
214
+ display: block !important;
215
215
  }
216
216
  ```
217
217
 
218
- If your site has no dark mode at all, you get the light diagram and nothing else to do: the dark wrapper ships with the `hidden` attribute, so it stays hidden until one of the rules above overrides it.
218
+ The `!important` is required, not decoration: the dark wrapper ships with an inline `display: none` (see below), and only an important rule outranks an inline declaration.
219
+
220
+ If your site has no dark mode at all, you get the light diagram and nothing else to do: the dark wrapper ships with an inline `display: none`, so it stays hidden until one of the rules above overrides it. That was the `hidden` attribute until `@diagrammo/dgmo` 0.82.0 — Tailwind v4 hides `[hidden]` with `!important` from inside `@layer base`, and a layered important declaration outranks an unlayered one whatever its specificity, so on a Tailwind v4 site no rule could reveal the dark diagram and every block was a blank box in dark mode.
219
221
 
220
222
  ## How it works
221
223
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-dgmo",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "Astro integration to render DGMO diagrams from fenced code blocks at build time. Powered by @diagrammo/dgmo.",
5
5
  "license": "MIT",
6
6
  "author": "Diagrammo LLC",
@@ -77,11 +77,11 @@
77
77
  }
78
78
  },
79
79
  "dependencies": {
80
- "remark-dgmo": ">=0.15.2 <1"
80
+ "remark-dgmo": ">=0.15.4 <1"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@astrojs/markdown-remark": "^7.2.2",
84
- "@diagrammo/dgmo": ">=0.79.0 <1",
84
+ "@diagrammo/dgmo": ">=0.82.0 <1",
85
85
  "@eslint/js": "^10.0.1",
86
86
  "@types/node": "^22.20.1",
87
87
  "astro": "^7.2.0",