@opendikw/web-ui 0.1.3 → 0.1.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.
package/README.md CHANGED
@@ -32,6 +32,11 @@ sources require no reconversion. The repository's
32
32
  `tests/fixtures/scientific-markdown.json` is shared by regression, workbench e2e
33
33
  and independent packed/registry consumer checks and can be reused downstream.
34
34
 
35
+ Cohort `0.1.4` uses the shared forward details scanner and built-in chart row
36
+ trimming so malformed blocks and long whitespace do not trigger polynomial
37
+ regular-expression backtracking. Safe details, scientific markup, chart data
38
+ and heading anchors retain their existing behavior.
39
+
35
40
  `useTheme({ storageKey })` returns `preference`, `resolved` and `setPreference`.
36
41
  It applies the resolved theme, follows OS changes for `system`, and persists an
37
42
  explicit selection to that application's key. Mounting does not overwrite a
@@ -6,7 +6,7 @@ function isAlignmentRow(cells) {
6
6
  return cells.length > 0 && cells.every((cell) => ALIGNMENT_CELL.test(cell.trim()));
7
7
  }
8
8
  export function parseChartFromDetails(content, type) {
9
- const lines = content.split("\n").map((line) => line.replace(/\s+$/, ""));
9
+ const lines = content.split("\n").map((line) => line.trimEnd());
10
10
  const tableLines = [];
11
11
  const freeText = [];
12
12
  let inTable = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendikw/web-ui",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -61,7 +61,7 @@
61
61
  "access": "public"
62
62
  },
63
63
  "dependencies": {
64
- "@opendikw/web-client": "0.1.3",
64
+ "@opendikw/web-client": "0.1.4",
65
65
  "lucide-react": "1.49.0",
66
66
  "markdown-it": "15.0.2",
67
67
  "katex": "0.18.9",