enarratio-emdash 0.4.2 → 0.4.3

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/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ the saved block's fields; every such change is listed here.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.4.3] - 2026-11-07
11
+
12
+ ### Changed
13
+
14
+ - The `astro` peer dependency is `>=6` and `emdash` is `>=1.0.0` (were exactly `7.4.4` and `1.4.0`), as the README says. Draws with
15
+ enarratio-astro 0.4.3. No block field changes.
16
+
10
17
  ## [0.4.2] - 2026-11-03
11
18
 
12
19
  ### Changed
package/README.md CHANGED
@@ -51,24 +51,24 @@ it only reads the block an editor saved and draws it.
51
51
 
52
52
  ## The Chart block
53
53
 
54
- | Field | Used by | Notes |
55
- |---|---|---|
56
- | Chart | all | Bar, Line, Area (stacked), Scatter or Heatmap. |
57
- | Title, subtitle | all | Shown above the chart. Optional. |
58
- | Description | all | **Required.** What the chart shows and finds, in a sentence. It names the chart for screen readers. |
59
- | Data | all | CSV, semicolon-separated, or pasted from a spreadsheet (tab-separated). The first row names the columns. Numbers such as `1,234` (quoted in CSV) are read as numbers; an empty cell is a gap. Up to 5000 rows and 50 columns. |
60
- | Column along the x axis | all | Column names match without regard to case. Line and area charts read ISO dates (`2026-03-01`) as a time axis. |
61
- | Column of values (y) | all | Bar charts count rows when it is blank. For a heatmap, the row column. |
62
- | Series column | bar, line, area, scatter | Splits rows into series, told apart by color and by legend, labels or symbols. |
63
- | Heatmap: column of cell values | heatmap | |
64
- | Axis labels and units | all | Optional. A unit shows after its axis label. |
65
- | Caption, notes | all | Optional. The caption is for method or caveats; notes are for definitions. |
66
- | Source, source link, byline | all | Optional. The source line, linked when a link is given, sits beside a CSV download of the data. |
67
- | Bar: several series, direction | bar | Stacked or side by side; vertical or horizontal. |
68
- | y scale | line, scatter | Linear or logarithmic. |
69
- | Regression | scatter | Least-squares line with its 95% confidence band. |
70
- | Data table | all | Behind a "Data table" toggle (default) or hidden for screen readers only. Every chart has one. |
71
- | Interactive | all | Adds Enarratio's enhancement script to the page. Off by default, so pages stay script-free. |
54
+ | Field | Used by | Notes |
55
+ | ------------------------------ | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
56
+ | Chart | all | Bar, Line, Area (stacked), Scatter or Heatmap. |
57
+ | Title, subtitle | all | Shown above the chart. Optional. |
58
+ | Description | all | **Required.** What the chart shows and finds, in a sentence. It names the chart for screen readers. |
59
+ | Data | all | CSV, semicolon-separated, or pasted from a spreadsheet (tab-separated). The first row names the columns. Numbers such as `1,234` (quoted in CSV) are read as numbers; an empty cell is a gap. Up to 5000 rows and 50 columns. |
60
+ | Column along the x axis | all | Column names match without regard to case. Line and area charts read ISO dates (`2026-03-01`) as a time axis. |
61
+ | Column of values (y) | all | Bar charts count rows when it is blank. For a heatmap, the row column. |
62
+ | Series column | bar, line, area, scatter | Splits rows into series, told apart by color and by legend, labels or symbols. |
63
+ | Heatmap: column of cell values | heatmap | |
64
+ | Axis labels and units | all | Optional. A unit shows after its axis label. |
65
+ | Caption, notes | all | Optional. The caption is for method or caveats; notes are for definitions. |
66
+ | Source, source link, byline | all | Optional. The source line, linked when a link is given, sits beside a CSV download of the data. |
67
+ | Bar: several series, direction | bar | Stacked or side by side; vertical or horizontal. |
68
+ | y scale | line, scatter | Linear or logarithmic. |
69
+ | Regression | scatter | Least-squares line with its 95% confidence band. |
70
+ | Data table | all | Behind a "Data table" toggle (default) or hidden for screen readers only. Every chart has one. |
71
+ | Interactive | all | Adds Enarratio's enhancement script to the page. Off by default, so pages stay script-free. |
72
72
 
73
73
  A block that cannot be drawn (a column that is not in the data, text in a number column, a missing
74
74
  description) is replaced on the page by a short note saying why, and the reason is logged, so one
@@ -97,7 +97,12 @@ plugin's:
97
97
  import { Chart } from "enarratio-emdash/astro";
98
98
  import { siteTheme } from "../site-theme";
99
99
  ---
100
- <Chart node={Astro.props.node} theme={siteTheme} stylesheetOptions={{ colorScheme: { dark: '[data-theme="dark"]' } }} />
100
+
101
+ <Chart
102
+ node={Astro.props.node}
103
+ theme={siteTheme}
104
+ stylesheetOptions={{ colorScheme: { dark: '[data-theme="dark"]' } }}
105
+ />
101
106
  ```
102
107
 
103
108
  ```astro
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  import type { PluginDescriptor, ResolvedPlugin } from "emdash";
11
11
  export { BLOCK_TYPE, type ChartNode, chartBlock } from "./block.js";
12
12
  /** Kept equal to package.json's version, which a test checks. */
13
- export declare const VERSION = "0.4.2";
13
+ export declare const VERSION = "0.4.3";
14
14
  /** Options for {@link enarratioPlugin}. */
15
15
  export interface EnarratioPluginOptions {
16
16
  /**
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { definePlugin } from "emdash";
2
2
  import { chartBlock } from "./block.js";
3
3
  export { BLOCK_TYPE, chartBlock } from "./block.js";
4
4
  /** Kept equal to package.json's version, which a test checks. */
5
- export const VERSION = "0.4.2";
5
+ export const VERSION = "0.4.3";
6
6
  const ID = "enarratio";
7
7
  const COMPONENTS = {
8
8
  theme: "enarratio-emdash/astro",
package/package.json CHANGED
@@ -1,17 +1,32 @@
1
1
  {
2
2
  "name": "enarratio-emdash",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "EmDash plugin: a Chart block for the Portable Text editor, drawn on the server by Enarratio as accessible HTML and SVG",
5
5
  "keywords": [
6
- "emdash",
7
- "emdash-plugin",
6
+ "accessibility",
8
7
  "astro",
9
8
  "charts",
10
- "accessibility",
9
+ "emdash",
10
+ "emdash-plugin",
11
11
  "enarratio"
12
12
  ],
13
+ "homepage": "https://github.com/DrDustinEdwards/astro/tree/main/packages/enarratio-emdash#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/DrDustinEdwards/astro/issues"
16
+ },
13
17
  "license": "MIT",
14
18
  "author": "Dustin Edwards (https://dustinedwards.info)",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/DrDustinEdwards/astro.git",
22
+ "directory": "packages/enarratio-emdash"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "src",
27
+ "CHANGELOG.md",
28
+ "README.md"
29
+ ],
15
30
  "type": "module",
16
31
  "sideEffects": false,
17
32
  "main": "./dist/index.js",
@@ -25,38 +40,23 @@
25
40
  "./astro/none": "./src/astro/none.ts",
26
41
  "./package.json": "./package.json"
27
42
  },
28
- "files": [
29
- "dist",
30
- "src",
31
- "CHANGELOG.md",
32
- "README.md"
33
- ],
34
- "engines": {
35
- "node": ">=22.22"
36
- },
37
- "peerDependencies": {
38
- "astro": "7.4.4",
39
- "emdash": "1.4.0"
40
- },
41
43
  "publishConfig": {
42
44
  "access": "public",
43
45
  "tag": "latest"
44
46
  },
45
- "homepage": "https://github.com/DrDustinEdwards/astro/tree/main/packages/enarratio-emdash#readme",
46
- "bugs": {
47
- "url": "https://github.com/DrDustinEdwards/astro/issues"
48
- },
49
- "repository": {
50
- "type": "git",
51
- "url": "git+https://github.com/DrDustinEdwards/astro.git",
52
- "directory": "packages/enarratio-emdash"
53
- },
54
47
  "scripts": {
55
48
  "build": "tsc -p tsconfig.build.json",
56
49
  "test": "vitest run",
57
50
  "prepare": "npm run build"
58
51
  },
59
52
  "dependencies": {
60
- "enarratio-astro": "0.4.2"
53
+ "enarratio-astro": "0.4.3"
54
+ },
55
+ "peerDependencies": {
56
+ "astro": ">=6",
57
+ "emdash": ">=1.0.0"
58
+ },
59
+ "engines": {
60
+ "node": ">=22.22"
61
61
  }
62
62
  }
package/src/index.ts CHANGED
@@ -14,7 +14,7 @@ import { chartBlock } from "./block.js";
14
14
  export { BLOCK_TYPE, type ChartNode, chartBlock } from "./block.js";
15
15
 
16
16
  /** Kept equal to package.json's version, which a test checks. */
17
- export const VERSION = "0.4.2";
17
+ export const VERSION = "0.4.3";
18
18
  const ID = "enarratio";
19
19
 
20
20
  /** Options for {@link enarratioPlugin}. */