pict-docuserve 1.4.7 → 1.4.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict-docuserve",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "Pict Documentation Server - A single-page documentation viewer built on Pict",
5
5
  "main": "source/Pict-Application-Docuserve.js",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "pict-provider": "^1.0.13",
34
34
  "pict-provider-theme": "^1.1.1",
35
35
  "pict-section-code": "^1.0.11",
36
- "pict-section-content": "^1.0.8",
36
+ "pict-section-content": "^1.0.9",
37
37
  "pict-section-histogram": "^1.0.1",
38
38
  "pict-section-modal": "^1.1.4",
39
39
  "pict-section-theme": "^1.1.1",
@@ -241,6 +241,28 @@ const _ViewConfiguration =
241
241
  .pict-content pre.mermaid .arrowheadPath {
242
242
  fill: var(--theme-color-text-secondary, #5E5549) !important;
243
243
  }
244
+ /* Dark-mode override for handcrafted mermaid flowchart diagrams that
245
+ bake per-node inline fill colors via `style X fill:#...` directives
246
+ (the architecture / module docs use these to mark layer hierarchy
247
+ with Material pastels). Mermaid renders those as inline
248
+ `style="fill:#..."` SVG attributes — highest specificity, so neither
249
+ themeVariables nor unflagged CSS can reach them. In light mode the
250
+ pastels read fine; in dark mode the same light fills stamp a
251
+ high-contrast island onto the dark page with unreadable text.
252
+ Force the fills back to a theme background so dark-mode reads;
253
+ light mode is intentionally unmodified so the per-layer hierarchy
254
+ stays intact there. Sibling to the block-beta invert filter below:
255
+ block-beta diagrams need full inversion (their inner palette is
256
+ baked separately), flowcharts only need a fill swap. */
257
+ .theme-dark .pict-content pre.mermaid .node rect,
258
+ .theme-dark .pict-content pre.mermaid .node polygon,
259
+ .theme-dark .pict-content pre.mermaid .node circle,
260
+ .theme-dark .pict-content pre.mermaid .node ellipse,
261
+ .theme-dark .pict-content pre.mermaid .node path,
262
+ .theme-dark .pict-content pre.mermaid .cluster rect {
263
+ fill: var(--theme-color-background-tertiary, #2A241E) !important;
264
+ stroke: var(--theme-color-border-default, #5E5549) !important;
265
+ }
244
266
  /* Mermaid 11's block-beta renderer ignores the themeVariables we
245
267
  pass to mermaid.initialize() — it bakes its own multi-color
246
268
  palette directly into each rect's inline SVG attributes. In