ionbase-ui 0.73.0 → 0.75.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.
@@ -11131,6 +11131,36 @@
11131
11131
  "ratio": 9.04,
11132
11132
  "min": 4.5
11133
11133
  },
11134
+ {
11135
+ "component": "chart",
11136
+ "context": "ion-chart ion-chart__caption",
11137
+ "state": "default",
11138
+ "fg": "--text-secondary",
11139
+ "bg": "--surface-muted",
11140
+ "backdrop": null,
11141
+ "kind": "text",
11142
+ "ground": "assumed",
11143
+ "mode": "Light",
11144
+ "fgHex": "#384252",
11145
+ "bgHex": "#f0f2f4",
11146
+ "ratio": 9.04,
11147
+ "min": 4.5
11148
+ },
11149
+ {
11150
+ "component": "chart",
11151
+ "context": "ion-chart-legend ion-chart-legend__item",
11152
+ "state": "default",
11153
+ "fg": "--text-secondary",
11154
+ "bg": "--surface-muted",
11155
+ "backdrop": null,
11156
+ "kind": "text",
11157
+ "ground": "assumed",
11158
+ "mode": "Light",
11159
+ "fgHex": "#384252",
11160
+ "bgHex": "#f0f2f4",
11161
+ "ratio": 9.04,
11162
+ "min": 4.5
11163
+ },
11134
11164
  {
11135
11165
  "component": "checkbox",
11136
11166
  "context": "ion-checkbox ion-checkbox__label",
@@ -12280,6 +12310,36 @@
12280
12310
  "ratio": 9.53,
12281
12311
  "min": 4.5
12282
12312
  },
12313
+ {
12314
+ "component": "chart",
12315
+ "context": "ion-chart ion-chart__caption",
12316
+ "state": "default",
12317
+ "fg": "--text-secondary",
12318
+ "bg": "--surface-page",
12319
+ "backdrop": null,
12320
+ "kind": "text",
12321
+ "ground": "assumed",
12322
+ "mode": "Light",
12323
+ "fgHex": "#384252",
12324
+ "bgHex": "#f6f8f9",
12325
+ "ratio": 9.53,
12326
+ "min": 4.5
12327
+ },
12328
+ {
12329
+ "component": "chart",
12330
+ "context": "ion-chart-legend ion-chart-legend__item",
12331
+ "state": "default",
12332
+ "fg": "--text-secondary",
12333
+ "bg": "--surface-page",
12334
+ "backdrop": null,
12335
+ "kind": "text",
12336
+ "ground": "assumed",
12337
+ "mode": "Light",
12338
+ "fgHex": "#384252",
12339
+ "bgHex": "#f6f8f9",
12340
+ "ratio": 9.53,
12341
+ "min": 4.5
12342
+ },
12283
12343
  {
12284
12344
  "component": "checkbox",
12285
12345
  "context": "ion-checkbox ion-checkbox__label",
@@ -13415,6 +13475,50 @@
13415
13475
  "ratio": 10.15,
13416
13476
  "min": 4.5
13417
13477
  },
13478
+ {
13479
+ "component": "chart",
13480
+ "context": "ion-chart ion-chart__caption",
13481
+ "state": "default",
13482
+ "fg": "--text-secondary",
13483
+ "bg": "--surface-default",
13484
+ "backdrop": null,
13485
+ "kind": "text",
13486
+ "ground": "assumed",
13487
+ "mode": "Light",
13488
+ "fgHex": "#384252",
13489
+ "bgHex": "#ffffff",
13490
+ "ratio": 10.15,
13491
+ "min": 4.5
13492
+ },
13493
+ {
13494
+ "component": "chart",
13495
+ "context": "ion-chart-legend ion-chart-legend__item",
13496
+ "state": "default",
13497
+ "fg": "--text-secondary",
13498
+ "bg": "--surface-default",
13499
+ "backdrop": null,
13500
+ "kind": "text",
13501
+ "ground": "assumed",
13502
+ "mode": "Light",
13503
+ "fgHex": "#384252",
13504
+ "bgHex": "#ffffff",
13505
+ "ratio": 10.15,
13506
+ "min": 4.5
13507
+ },
13508
+ {
13509
+ "component": "chart",
13510
+ "context": "ion-chart-tooltip ion-chart-tooltip__label",
13511
+ "state": "default",
13512
+ "fg": "--text-secondary",
13513
+ "bg": "--surface-raised",
13514
+ "backdrop": "--surface-raised",
13515
+ "kind": "text",
13516
+ "mode": "Light",
13517
+ "fgHex": "#384252",
13518
+ "bgHex": "#ffffff",
13519
+ "ratio": 10.15,
13520
+ "min": 4.5
13521
+ },
13418
13522
  {
13419
13523
  "component": "checkbox",
13420
13524
  "context": "ion-checkbox ion-checkbox__label",
@@ -15371,6 +15475,50 @@
15371
15475
  "ratio": 11.38,
15372
15476
  "min": 4.5
15373
15477
  },
15478
+ {
15479
+ "component": "chart",
15480
+ "context": "ion-chart ion-chart__caption",
15481
+ "state": "default",
15482
+ "fg": "--text-secondary",
15483
+ "bg": "--surface-muted",
15484
+ "backdrop": null,
15485
+ "kind": "text",
15486
+ "ground": "assumed",
15487
+ "mode": "Dark",
15488
+ "fgHex": "#dde0e4",
15489
+ "bgHex": "#1d2735",
15490
+ "ratio": 11.38,
15491
+ "min": 4.5
15492
+ },
15493
+ {
15494
+ "component": "chart",
15495
+ "context": "ion-chart-legend ion-chart-legend__item",
15496
+ "state": "default",
15497
+ "fg": "--text-secondary",
15498
+ "bg": "--surface-muted",
15499
+ "backdrop": null,
15500
+ "kind": "text",
15501
+ "ground": "assumed",
15502
+ "mode": "Dark",
15503
+ "fgHex": "#dde0e4",
15504
+ "bgHex": "#1d2735",
15505
+ "ratio": 11.38,
15506
+ "min": 4.5
15507
+ },
15508
+ {
15509
+ "component": "chart",
15510
+ "context": "ion-chart-tooltip ion-chart-tooltip__label",
15511
+ "state": "default",
15512
+ "fg": "--text-secondary",
15513
+ "bg": "--surface-raised",
15514
+ "backdrop": "--surface-raised",
15515
+ "kind": "text",
15516
+ "mode": "Dark",
15517
+ "fgHex": "#dde0e4",
15518
+ "bgHex": "#1d2735",
15519
+ "ratio": 11.38,
15520
+ "min": 4.5
15521
+ },
15374
15522
  {
15375
15523
  "component": "checkbox",
15376
15524
  "context": "ion-checkbox ion-checkbox__label",
@@ -16673,6 +16821,36 @@
16673
16821
  "ratio": 13.31,
16674
16822
  "min": 4.5
16675
16823
  },
16824
+ {
16825
+ "component": "chart",
16826
+ "context": "ion-chart ion-chart__caption",
16827
+ "state": "default",
16828
+ "fg": "--text-secondary",
16829
+ "bg": "--surface-page",
16830
+ "backdrop": null,
16831
+ "kind": "text",
16832
+ "ground": "assumed",
16833
+ "mode": "Dark",
16834
+ "fgHex": "#dde0e4",
16835
+ "bgHex": "#131923",
16836
+ "ratio": 13.31,
16837
+ "min": 4.5
16838
+ },
16839
+ {
16840
+ "component": "chart",
16841
+ "context": "ion-chart-legend ion-chart-legend__item",
16842
+ "state": "default",
16843
+ "fg": "--text-secondary",
16844
+ "bg": "--surface-page",
16845
+ "backdrop": null,
16846
+ "kind": "text",
16847
+ "ground": "assumed",
16848
+ "mode": "Dark",
16849
+ "fgHex": "#dde0e4",
16850
+ "bgHex": "#131923",
16851
+ "ratio": 13.31,
16852
+ "min": 4.5
16853
+ },
16676
16854
  {
16677
16855
  "component": "checkbox",
16678
16856
  "context": "ion-checkbox ion-checkbox__label",
@@ -17763,6 +17941,76 @@
17763
17941
  "ratio": 14.14,
17764
17942
  "min": 4.5
17765
17943
  },
17944
+ {
17945
+ "component": "chart",
17946
+ "context": "ion-chart-tooltip",
17947
+ "state": "default",
17948
+ "fg": "--text-default",
17949
+ "bg": "--surface-raised",
17950
+ "backdrop": "--surface-raised",
17951
+ "kind": "text",
17952
+ "mode": "Dark",
17953
+ "fgHex": "#f6f8f9",
17954
+ "bgHex": "#1d2735",
17955
+ "ratio": 14.14,
17956
+ "min": 4.5
17957
+ },
17958
+ {
17959
+ "component": "chart",
17960
+ "context": "ion-chart-tooltip ion-chart-tooltip__title",
17961
+ "state": "default",
17962
+ "fg": "--text-default",
17963
+ "bg": "--surface-raised",
17964
+ "backdrop": "--surface-raised",
17965
+ "kind": "text",
17966
+ "mode": "Dark",
17967
+ "fgHex": "#f6f8f9",
17968
+ "bgHex": "#1d2735",
17969
+ "ratio": 14.14,
17970
+ "min": 4.5
17971
+ },
17972
+ {
17973
+ "component": "chart",
17974
+ "context": "ion-chart-tooltip ion-chart-tooltip__rows",
17975
+ "state": "default",
17976
+ "fg": "--text-default",
17977
+ "bg": "--surface-raised",
17978
+ "backdrop": "--surface-raised",
17979
+ "kind": "text",
17980
+ "mode": "Dark",
17981
+ "fgHex": "#f6f8f9",
17982
+ "bgHex": "#1d2735",
17983
+ "ratio": 14.14,
17984
+ "min": 4.5
17985
+ },
17986
+ {
17987
+ "component": "chart",
17988
+ "context": "ion-chart-tooltip ion-chart-tooltip__row",
17989
+ "state": "default",
17990
+ "fg": "--text-default",
17991
+ "bg": "--surface-raised",
17992
+ "backdrop": "--surface-raised",
17993
+ "kind": "text",
17994
+ "mode": "Dark",
17995
+ "fgHex": "#f6f8f9",
17996
+ "bgHex": "#1d2735",
17997
+ "ratio": 14.14,
17998
+ "min": 4.5
17999
+ },
18000
+ {
18001
+ "component": "chart",
18002
+ "context": "ion-chart-tooltip ion-chart-tooltip__value",
18003
+ "state": "default",
18004
+ "fg": "--text-default",
18005
+ "bg": "--surface-raised",
18006
+ "backdrop": "--surface-raised",
18007
+ "kind": "text",
18008
+ "mode": "Dark",
18009
+ "fgHex": "#f6f8f9",
18010
+ "bgHex": "#1d2735",
18011
+ "ratio": 14.14,
18012
+ "min": 4.5
18013
+ },
17766
18014
  {
17767
18015
  "component": "combobox",
17768
18016
  "context": "ion-combobox-menu ion-combobox-menu__label",
@@ -19341,6 +19589,36 @@
19341
19589
  "ratio": 15.86,
19342
19590
  "min": 4.5
19343
19591
  },
19592
+ {
19593
+ "component": "chart",
19594
+ "context": "ion-chart ion-chart__caption",
19595
+ "state": "default",
19596
+ "fg": "--text-secondary",
19597
+ "bg": "--surface-default",
19598
+ "backdrop": null,
19599
+ "kind": "text",
19600
+ "ground": "assumed",
19601
+ "mode": "Dark",
19602
+ "fgHex": "#dde0e4",
19603
+ "bgHex": "#000000",
19604
+ "ratio": 15.86,
19605
+ "min": 4.5
19606
+ },
19607
+ {
19608
+ "component": "chart",
19609
+ "context": "ion-chart-legend ion-chart-legend__item",
19610
+ "state": "default",
19611
+ "fg": "--text-secondary",
19612
+ "bg": "--surface-default",
19613
+ "backdrop": null,
19614
+ "kind": "text",
19615
+ "ground": "assumed",
19616
+ "mode": "Dark",
19617
+ "fgHex": "#dde0e4",
19618
+ "bgHex": "#000000",
19619
+ "ratio": 15.86,
19620
+ "min": 4.5
19621
+ },
19344
19622
  {
19345
19623
  "component": "checkbox",
19346
19624
  "context": "ion-checkbox ion-checkbox__label",
@@ -21409,6 +21687,76 @@
21409
21687
  "ratio": 17.63,
21410
21688
  "min": 4.5
21411
21689
  },
21690
+ {
21691
+ "component": "chart",
21692
+ "context": "ion-chart-tooltip",
21693
+ "state": "default",
21694
+ "fg": "--text-default",
21695
+ "bg": "--surface-raised",
21696
+ "backdrop": "--surface-raised",
21697
+ "kind": "text",
21698
+ "mode": "Light",
21699
+ "fgHex": "#131923",
21700
+ "bgHex": "#ffffff",
21701
+ "ratio": 17.63,
21702
+ "min": 4.5
21703
+ },
21704
+ {
21705
+ "component": "chart",
21706
+ "context": "ion-chart-tooltip ion-chart-tooltip__title",
21707
+ "state": "default",
21708
+ "fg": "--text-default",
21709
+ "bg": "--surface-raised",
21710
+ "backdrop": "--surface-raised",
21711
+ "kind": "text",
21712
+ "mode": "Light",
21713
+ "fgHex": "#131923",
21714
+ "bgHex": "#ffffff",
21715
+ "ratio": 17.63,
21716
+ "min": 4.5
21717
+ },
21718
+ {
21719
+ "component": "chart",
21720
+ "context": "ion-chart-tooltip ion-chart-tooltip__rows",
21721
+ "state": "default",
21722
+ "fg": "--text-default",
21723
+ "bg": "--surface-raised",
21724
+ "backdrop": "--surface-raised",
21725
+ "kind": "text",
21726
+ "mode": "Light",
21727
+ "fgHex": "#131923",
21728
+ "bgHex": "#ffffff",
21729
+ "ratio": 17.63,
21730
+ "min": 4.5
21731
+ },
21732
+ {
21733
+ "component": "chart",
21734
+ "context": "ion-chart-tooltip ion-chart-tooltip__row",
21735
+ "state": "default",
21736
+ "fg": "--text-default",
21737
+ "bg": "--surface-raised",
21738
+ "backdrop": "--surface-raised",
21739
+ "kind": "text",
21740
+ "mode": "Light",
21741
+ "fgHex": "#131923",
21742
+ "bgHex": "#ffffff",
21743
+ "ratio": 17.63,
21744
+ "min": 4.5
21745
+ },
21746
+ {
21747
+ "component": "chart",
21748
+ "context": "ion-chart-tooltip ion-chart-tooltip__value",
21749
+ "state": "default",
21750
+ "fg": "--text-default",
21751
+ "bg": "--surface-raised",
21752
+ "backdrop": "--surface-raised",
21753
+ "kind": "text",
21754
+ "mode": "Light",
21755
+ "fgHex": "#131923",
21756
+ "bgHex": "#ffffff",
21757
+ "ratio": 17.63,
21758
+ "min": 4.5
21759
+ },
21412
21760
  {
21413
21761
  "component": "combobox",
21414
21762
  "context": "ion-combobox-menu ion-combobox-menu__label",
@@ -1,10 +1,23 @@
1
1
  {
2
2
  "package": "ionbase-ui",
3
- "version": "0.73.0",
3
+ "version": "0.75.0",
4
4
  "usage": "Pick a component here, then read dist/meta/<Name>.json for its full contract.",
5
5
  "hooks": [
6
+ "useAgentRun",
6
7
  "useToast"
7
8
  ],
9
+ "helpers": [
10
+ "agentRunFrom",
11
+ "agentRunHasEnded",
12
+ "agentRunLog",
13
+ "agentRunReducer",
14
+ "chartAxisProps",
15
+ "chartGridProps",
16
+ "chartSeriesClass",
17
+ "chartTooltipProps",
18
+ "initialAgentRunState",
19
+ "replayAgentRun"
20
+ ],
8
21
  "components": {
9
22
  "Accordion": {
10
23
  "summary": "Sections that collapse, with the document's heading structure intact. Holds the open set and the heading level.",
@@ -235,6 +248,25 @@
235
248
  "detail": "dist/meta/Button.json",
236
249
  "hasIntent": true
237
250
  },
251
+ "ChartLegend": {
252
+ "summary": "Which colour is which series, for a chart drawn with visx. The swatch reads the same token as the series.",
253
+ "status": "stable",
254
+ "variants": {
255
+ "shape": [
256
+ "square",
257
+ "line"
258
+ ]
259
+ },
260
+ "detail": "dist/meta/ChartLegend.json",
261
+ "hasIntent": true
262
+ },
263
+ "ChartTooltip": {
264
+ "summary": "The panel showing the values under the pointer on a visx chart. visx positions it; this draws it.",
265
+ "status": "stable",
266
+ "variants": {},
267
+ "detail": "dist/meta/ChartTooltip.json",
268
+ "hasIntent": true
269
+ },
238
270
  "Checkbox": {
239
271
  "summary": "A native checkbox with the system's styling, supporting an indeterminate state.",
240
272
  "status": "stable",
@@ -16,6 +16,20 @@
16
16
  "Alert",
17
17
  "Badge"
18
18
  ],
19
+ "drivenBy": {
20
+ "hook": "useAgentRun",
21
+ "note": "It turns the events a run reports into the props on AgentActivityStep (`status`), StreamingText (`outputProps`), AgentStop (`stopProps`) and ApprovalGate (`approvalProps`), and applies this pattern's states on the way: one active step, a stop keeps what was done and skips the rest, a failure marks the step that was running. It owns state, not markup or copy — which steps to show is `log`, and every sentence is yours. Feed it with `dispatch` from a live run or `replay(recording)` from a stored one; `agentRunFrom(events)` rebuilds a finished run without playing it.",
22
+ "events": [
23
+ "`run-started` — optionally with `steps: [{ id, label }]`, the plan, so steps the run never reaches can be named as not done",
24
+ "`step-started` { id, label? } — closes whichever step was active; exactly one is active at a time",
25
+ "`step-done` / `step-skipped` { id }",
26
+ "`step-failed` { id, error? }",
27
+ "`approval-requested` { id } — the step becomes the ApprovalGate; the run is `awaiting`",
28
+ "`approval-resolved` { id, decision: approved | rejected | expired, resolution? } — `expired` ends the run without acting",
29
+ "`output` { text } — appended; `output-done` ends streaming",
30
+ "`run-finished`, `run-failed` { error? }, `run-stopped` { resolution? } — the three ends a producer sends; after any end, later events are ignored"
31
+ ]
32
+ },
19
33
  "structure": [
20
34
  "A header row carrying the task name and the AgentStop control. The stop is the first thing on screen and it stays there for the whole run.",
21
35
  "An AgentActivity list of AgentActivityStep, one per step, in the order they happened. Exactly one step is `active` at a time.",
@@ -13,6 +13,10 @@
13
13
  "AgentStop",
14
14
  "Alert"
15
15
  ],
16
+ "drivenBy": {
17
+ "hook": "useAgentRun",
18
+ "note": "`approvalProps` carries the gate's `status`, `isSubmitting` and `resolution`, and `onApprove`/`onReject` when `onDecision` is given. A decision that throws stays pending with `state.approval.error` set — show it, because a decision the server never received must not look made. A stop or an expiry while pending resolves the gate as `expired`, never as approved."
19
+ },
16
20
  "structure": [
17
21
  "The gate appears in place, where the run reached it — inside the step log, not in a dialog that covers it.",
18
22
  "The AgentActivityStep that is waiting stays `active`; the ApprovalGate is its `detail`.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "ionbase-ui",
3
- "version": "0.73.0",
3
+ "version": "0.75.0",
4
4
  "usage": "A pattern is a documented composition of components, not a component. Read one here, then read the contracts of what it composes.",
5
5
  "patterns": {
6
6
  "AgentRun": {
@@ -15,6 +15,7 @@
15
15
  "Alert",
16
16
  "Badge"
17
17
  ],
18
+ "drivenBy": "useAgentRun",
18
19
  "states": [
19
20
  "loading",
20
21
  "empty",
@@ -113,6 +114,7 @@
113
114
  "AgentStop",
114
115
  "Alert"
115
116
  ],
117
+ "drivenBy": "useAgentRun",
116
118
  "states": [
117
119
  "loading",
118
120
  "empty",