@umriss-ui/calculation 0.58.0 → 0.58.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.
- package/API.md +9 -0
- package/CHANGELOG.md +6 -0
- package/docs/llms-full.md +6 -6
- package/package.json +2 -2
package/API.md
CHANGED
|
@@ -245,3 +245,12 @@ Generated by the props step (`pnpm --filter @umriss-ui/calculation props`); do n
|
|
|
245
245
|
- aside?: ReactNode — Content of the caller's own beside the line - a sparkline, a link.
|
|
246
246
|
- emphasis?: "strong" | "muted" — How much the line stands out among the others ([ADR-0049](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0049-a-sum-takes-rows-from-data.md)): `strong` to be read first, `muted` to recede - a muted line still counts in full.
|
|
247
247
|
- rule?: "above" — `above` rules the line off from the ones before it, where a section starts that is not an interim.
|
|
248
|
+
|
|
249
|
+
## Types in full
|
|
250
|
+
|
|
251
|
+
### Metric
|
|
252
|
+
|
|
253
|
+
- id: string — The key of this metric's number in every `value` object.
|
|
254
|
+
- label: string — The metric's name, in the head above its column and in each row's sentence.
|
|
255
|
+
- unit?: string — A label written after the number where a result closes, and beneath the metric's name in the head.
|
|
256
|
+
- decimals?: number — Fixed number of fraction digits as shown, for every quantity of this metric. (default: a given as it was given, at most two for a derived number)
|
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,12 @@ From 0.34.0 the packages share one number - five, six from 0.40.0, when the dash
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
+
## 0.58.1 – `API.md` gives functions their signatures (Nov. 2026)
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- **`API.md` prints every function's signature and the members of every record type with their types** (a closing section "Types in full"), so that a caller reads what a function takes and what a record's fields are without opening the source.
|
|
22
|
+
|
|
17
23
|
## 0.58.0 – The candidate for 1.0, released in step (Nov. 2026)
|
|
18
24
|
|
|
19
25
|
No change of its own; the number moves with the other six, whose surface is frozen with this minor. The calculation's density was `"regular" | "compact"` already, the word core now uses too.
|
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/calculation 0.58.
|
|
1
|
+
# @umriss-ui/calculation 0.58.1
|
|
2
2
|
|
|
3
3
|
> React calculation view for data-dense applications - a derivation written as it is shown, evaluated by the library, folded and read line by line.
|
|
4
4
|
|
|
@@ -618,7 +618,7 @@ Also takes every attribute of `<div>` – without `children`.
|
|
|
618
618
|
- No result, formula text or operator of your own: a written-out operation the library did not perform could say something the number does not ([ADR-0027](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0027-a-calculation-is-written-as-it-is-shown.md)).
|
|
619
619
|
- No input: a calculation shows how a figure came about; changing a given is your application's form.
|
|
620
620
|
|
|
621
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.
|
|
621
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.1/docs/adr/0032-what-umriss-is-not.md).
|
|
622
622
|
|
|
623
623
|
### Tree
|
|
624
624
|
|
|
@@ -899,7 +899,7 @@ type Severity = "warning" | "alarm";
|
|
|
899
899
|
- Four operators and nothing else – no powers, roots or functions; compute those before and hand them in as givens.
|
|
900
900
|
- A unit is a label and is never converted or checked; the calculation does no unit algebra.
|
|
901
901
|
|
|
902
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.
|
|
902
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.1/docs/adr/0032-what-umriss-is-not.md).
|
|
903
903
|
|
|
904
904
|
### Chain
|
|
905
905
|
|
|
@@ -1259,7 +1259,7 @@ type Severity = "warning" | "alarm";
|
|
|
1259
1259
|
|
|
1260
1260
|
- A chain in view does not fold; as an operand of a tree it folds to its last interim.
|
|
1261
1261
|
|
|
1262
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.
|
|
1262
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.1/docs/adr/0032-what-umriss-is-not.md).
|
|
1263
1263
|
|
|
1264
1264
|
### Rows from data
|
|
1265
1265
|
|
|
@@ -1699,7 +1699,7 @@ From `Metric` — the full table stands on [Metrics](#metrics).
|
|
|
1699
1699
|
|
|
1700
1700
|
- Only a sum takes any count: an empty product, a difference of one and a quotient of anything but two still fail on the first render.
|
|
1701
1701
|
|
|
1702
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.
|
|
1702
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.1/docs/adr/0032-what-umriss-is-not.md).
|
|
1703
1703
|
|
|
1704
1704
|
### Given
|
|
1705
1705
|
|
|
@@ -2421,7 +2421,7 @@ The keys of [Calculation](#calculation) apply here.
|
|
|
2421
2421
|
- Unit, format and places belong to the metric; on a quantity they fail on the first render, and so does a missing or unknown metric key in a `value`.
|
|
2422
2422
|
- No target or limits with metrics: an assessment per cell is not there yet.
|
|
2423
2423
|
|
|
2424
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.
|
|
2424
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/calculation-v0.58.1/docs/adr/0032-what-umriss-is-not.md).
|
|
2425
2425
|
|
|
2426
2426
|
## In practice
|
|
2427
2427
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/calculation",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.1",
|
|
4
4
|
"description": "React calculation view for data-dense applications - a derivation written as it is shown, evaluated by the library, folded and read line by line.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@fontsource/geist-mono": "^5.3.0",
|
|
69
69
|
"@fontsource/geist-sans": "^5.3.0",
|
|
70
|
-
"@umriss-ui/core": "0.58.
|
|
70
|
+
"@umriss-ui/core": "0.58.1",
|
|
71
71
|
"@umriss-ui/demo": "0.0.0",
|
|
72
72
|
"@types/node": "^22.20.2",
|
|
73
73
|
"@types/react": "^19.0.0",
|