@llmnative/react 1.37.0 → 1.38.0
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/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3388 -3288
- package/dist/index.mjs.map +1 -1
- package/dist/types/src/I18n.d.ts +1 -0
- package/dist/types/src/components/charts/ColumnCharts.d.ts +36 -0
- package/dist/types/src/components/charts/index.d.ts +2 -2
- package/llms-full.txt +4 -0
- package/package.json +1 -1
package/dist/types/src/I18n.d.ts
CHANGED
|
@@ -58,6 +58,42 @@ export interface StackedColumnChartProps {
|
|
|
58
58
|
}
|
|
59
59
|
/** CR-112 — columns per bucket, stacked by series, gliding between periods; optional comparison tick per column. */
|
|
60
60
|
export declare function StackedColumnChart({ series, labels, ariaLabel, titles, labelEvery, format: formatProp, comparison, comparisonLabel, height, className }: StackedColumnChartProps): React.JSX.Element;
|
|
61
|
+
export interface SequenceSeries {
|
|
62
|
+
readonly id: string;
|
|
63
|
+
readonly label: string;
|
|
64
|
+
/** A slot of the palette (1…8) or a theme token; by default the slot of its position. */
|
|
65
|
+
readonly color?: ChartColor;
|
|
66
|
+
}
|
|
67
|
+
export interface SequenceSegment {
|
|
68
|
+
/** The id of its series: its colour and its name. A series may come back in the same column. */
|
|
69
|
+
readonly series: string;
|
|
70
|
+
readonly value: number;
|
|
71
|
+
}
|
|
72
|
+
export interface SequenceColumn {
|
|
73
|
+
readonly label: string;
|
|
74
|
+
/** Title of its tooltip and of its row in the data table; by default its label. */
|
|
75
|
+
readonly title?: string;
|
|
76
|
+
/** Bottom to top, in the order they happened. */
|
|
77
|
+
readonly segments: readonly SequenceSegment[];
|
|
78
|
+
/** Rows added to its tooltip, after the segments. */
|
|
79
|
+
readonly tooltip?: readonly ChartTooltipRow[];
|
|
80
|
+
}
|
|
81
|
+
export interface SequenceColumnChartProps {
|
|
82
|
+
series: readonly SequenceSeries[];
|
|
83
|
+
columns: readonly SequenceColumn[];
|
|
84
|
+
ariaLabel: string;
|
|
85
|
+
/** One axis label every N columns (the last always shown). */
|
|
86
|
+
labelEvery?: number;
|
|
87
|
+
format?: (value: number) => string;
|
|
88
|
+
height?: number;
|
|
89
|
+
className?: string;
|
|
90
|
+
onColumnClick?: (column: SequenceColumn, index: number) => void;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* CR-114 — columns of segments in sequence: each column keeps its own order, bottom to top, and a series
|
|
94
|
+
* may come back in it (the turns of the agents on one item, a rework a second segment of the same colour).
|
|
95
|
+
*/
|
|
96
|
+
export declare function SequenceColumnChart({ series, columns, ariaLabel, labelEvery, format: formatProp, height, className, onColumnClick }: SequenceColumnChartProps): React.JSX.Element;
|
|
61
97
|
export interface DivergingBar {
|
|
62
98
|
readonly label: string;
|
|
63
99
|
/** Above the zero line; null: no data (nothing drawn). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ColumnChart, StackedColumnChart, DivergingBarChart } from './ColumnCharts';
|
|
2
|
-
export type { ColumnChartColumn, ColumnChartMarker, ColumnChartProps, ChartSeries, StackedColumnChartProps, DivergingBar, DivergingBarChartProps } from './ColumnCharts';
|
|
1
|
+
export { ColumnChart, StackedColumnChart, SequenceColumnChart, DivergingBarChart } from './ColumnCharts';
|
|
2
|
+
export type { ColumnChartColumn, ColumnChartMarker, ColumnChartProps, ChartSeries, StackedColumnChartProps, SequenceSeries, SequenceSegment, SequenceColumn, SequenceColumnChartProps, DivergingBar, DivergingBarChartProps } from './ColumnCharts';
|
|
3
3
|
export { LineChart, AreaChart, Sparkline } from './LineCharts';
|
|
4
4
|
export type { LineSeries, LineChartProps, AreaChartProps, SparklineProps } from './LineCharts';
|
|
5
5
|
export { ScatterChart } from './ScatterChart';
|
package/llms-full.txt
CHANGED
|
@@ -881,6 +881,10 @@ finché sono al massimo 40), tabella dei dati `sr-only` con `ariaLabel` come did
|
|
|
881
881
|
<StackedColumnChart ariaLabel="Ore per agente" labels={days} labelEvery={2} format={(v) => `${v} h`}
|
|
882
882
|
series={[{ id: 'dev', label: 'Developer', values: dev }, { id: 'qa', label: 'Tester', values: qa, color: 3 }]}
|
|
883
883
|
comparison={previousTotals} comparisonLabel="periodo precedente" />
|
|
884
|
+
<SequenceColumnChart ariaLabel="Turni per CR" format={(v) => `${v} min`} // CR-114: ogni colonna nel suo ordine, una serie può tornare
|
|
885
|
+
series={[{ id: 'dev', label: 'Developer' }, { id: 'rev', label: 'Reviewer' }]}
|
|
886
|
+
columns={[{ label: '#34', title: 'CR #34', segments: [{ series: 'dev', value: 18 }, { series: 'rev', value: 6 }, { series: 'dev', value: 11 }] }]}
|
|
887
|
+
onColumnClick={(column) => {}} />
|
|
884
888
|
<LineChart ariaLabel="Lead time" labels={days} threshold={{ value: 6.5, label: 'obiettivo' }} baseline={0} domain={[0, 10]}
|
|
885
889
|
series={[{ id: 'now', label: 'Ora', values: [3, null, 5], area: true, band: { min, max } }, { id: 'before', label: 'Prima', values: prev, dashed: true }]} />
|
|
886
890
|
<AreaChart ariaLabel="Flusso cumulativo" labels={days} stacked series={[{ id: 'closed', label: 'Chiuse', values: closed }]} />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmnative/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0",
|
|
4
4
|
"description": "LLM-native React framework for deterministic UI generation. Data-driven by default, schema-driven optional. Ultra-low token consumption — built for AI agents, not just humans.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|