@navios/commander-tui 1.0.0 → 1.1.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/lib/index.cjs +19 -10
  4. package/lib/index.cjs.map +1 -1
  5. package/lib/index.d.cts +37 -28
  6. package/lib/index.d.cts.map +1 -1
  7. package/lib/index.d.mts +48 -39
  8. package/lib/index.d.mts.map +1 -1
  9. package/lib/index.mjs +19 -10
  10. package/lib/index.mjs.map +1 -1
  11. package/lib/{screen_manager_bridge-CkV7637i.cjs → screen_manager_bridge-Cp2p1Ix3.cjs} +1 -1
  12. package/lib/{screen_manager_bridge-Dfg4QUrl.mjs → screen_manager_bridge-D2BBwKcF.mjs} +13 -1
  13. package/lib/screen_manager_bridge-D2BBwKcF.mjs.map +1 -0
  14. package/lib/{screen_manager_bridge-DN2J6_k1.mjs → screen_manager_bridge-DT-l0rxa.mjs} +1 -1
  15. package/lib/{screen_manager_bridge-BpDgVu3e.cjs → screen_manager_bridge-hMUrLiBP.cjs} +13 -1
  16. package/lib/screen_manager_bridge-hMUrLiBP.cjs.map +1 -0
  17. package/package.json +1 -1
  18. package/src/__tests__/components/__snapshots__/filter_bar.spec.tsx.snap +48 -0
  19. package/src/__tests__/components/__snapshots__/loading_message.spec.tsx.snap +32 -0
  20. package/src/__tests__/components/__snapshots__/log_message.spec.tsx.snap +76 -0
  21. package/src/__tests__/components/__snapshots__/progress_message.spec.tsx.snap +40 -0
  22. package/src/__tests__/components/__snapshots__/prompt_renderer.spec.tsx.snap +68 -0
  23. package/src/__tests__/components/__snapshots__/sidebar.spec.tsx.snap +240 -0
  24. package/src/__tests__/components/sidebar.spec.tsx +17 -0
  25. package/src/overrides/console.logger.override.ts +8 -1
  26. package/src/schemas/screen-options.ts +2 -0
  27. package/src/services/screen.ts +3 -0
  28. package/src/services/screen_manager.tsx +15 -11
  29. package/src/themes/dark.ts +4 -0
  30. package/src/themes/high-contrast.ts +4 -0
  31. package/src/themes/light.ts +4 -0
  32. package/src/types/screen.types.ts +1 -1
  33. package/src/types/theme.types.ts +1 -0
  34. package/lib/screen_manager_bridge-BpDgVu3e.cjs.map +0 -1
  35. package/lib/screen_manager_bridge-Dfg4QUrl.mjs.map +0 -1
@@ -138,6 +138,10 @@ exports[`FilterBar > combined states > should render with search query and disab
138
138
  "color": "#F59E0B",
139
139
  "icon": "◐",
140
140
  },
141
+ "static": {
142
+ "color": "#3B82F6",
143
+ "icon": "●",
144
+ },
141
145
  "success": {
142
146
  "color": "#22C55E",
143
147
  "icon": "✓",
@@ -322,6 +326,10 @@ exports[`FilterBar > level counts > should not show counts when zero 1`] = `
322
326
  "color": "#F59E0B",
323
327
  "icon": "◐",
324
328
  },
329
+ "static": {
330
+ "color": "#3B82F6",
331
+ "icon": "●",
332
+ },
325
333
  "success": {
326
334
  "color": "#22C55E",
327
335
  "icon": "✓",
@@ -510,6 +518,10 @@ exports[`FilterBar > level counts > should render level counts 1`] = `
510
518
  "color": "#F59E0B",
511
519
  "icon": "◐",
512
520
  },
521
+ "static": {
522
+ "color": "#3B82F6",
523
+ "icon": "●",
524
+ },
513
525
  "success": {
514
526
  "color": "#22C55E",
515
527
  "icon": "✓",
@@ -698,6 +710,10 @@ exports[`FilterBar > level counts > should truncate high counts to 99+ 1`] = `
698
710
  "color": "#F59E0B",
699
711
  "icon": "◐",
700
712
  },
713
+ "static": {
714
+ "color": "#3B82F6",
715
+ "icon": "●",
716
+ },
701
717
  "success": {
702
718
  "color": "#22C55E",
703
719
  "icon": "✓",
@@ -886,6 +902,10 @@ exports[`FilterBar > log level toggles > should render log level toggles 1`] = `
886
902
  "color": "#F59E0B",
887
903
  "icon": "◐",
888
904
  },
905
+ "static": {
906
+ "color": "#3B82F6",
907
+ "icon": "●",
908
+ },
889
909
  "success": {
890
910
  "color": "#22C55E",
891
911
  "icon": "✓",
@@ -1074,6 +1094,10 @@ exports[`FilterBar > log level toggles > should render with all levels enabled 1
1074
1094
  "color": "#F59E0B",
1075
1095
  "icon": "◐",
1076
1096
  },
1097
+ "static": {
1098
+ "color": "#3B82F6",
1099
+ "icon": "●",
1100
+ },
1077
1101
  "success": {
1078
1102
  "color": "#22C55E",
1079
1103
  "icon": "✓",
@@ -1262,6 +1286,10 @@ exports[`FilterBar > log level toggles > should render with only one level enabl
1262
1286
  "color": "#F59E0B",
1263
1287
  "icon": "◐",
1264
1288
  },
1289
+ "static": {
1290
+ "color": "#3B82F6",
1291
+ "icon": "●",
1292
+ },
1265
1293
  "success": {
1266
1294
  "color": "#22C55E",
1267
1295
  "icon": "✓",
@@ -1445,6 +1473,10 @@ exports[`FilterBar > log level toggles > should render with some levels disabled
1445
1473
  "color": "#F59E0B",
1446
1474
  "icon": "◐",
1447
1475
  },
1476
+ "static": {
1477
+ "color": "#3B82F6",
1478
+ "icon": "●",
1479
+ },
1448
1480
  "success": {
1449
1481
  "color": "#22C55E",
1450
1482
  "icon": "✓",
@@ -1630,6 +1662,10 @@ exports[`FilterBar > search input > should render levels focused state 1`] = `
1630
1662
  "color": "#F59E0B",
1631
1663
  "icon": "◐",
1632
1664
  },
1665
+ "static": {
1666
+ "color": "#3B82F6",
1667
+ "icon": "●",
1668
+ },
1633
1669
  "success": {
1634
1670
  "color": "#22C55E",
1635
1671
  "icon": "✓",
@@ -1818,6 +1854,10 @@ exports[`FilterBar > search input > should render search focused state 1`] = `
1818
1854
  "color": "#F59E0B",
1819
1855
  "icon": "◐",
1820
1856
  },
1857
+ "static": {
1858
+ "color": "#3B82F6",
1859
+ "icon": "●",
1860
+ },
1821
1861
  "success": {
1822
1862
  "color": "#22C55E",
1823
1863
  "icon": "✓",
@@ -2006,6 +2046,10 @@ exports[`FilterBar > search input > should render search input 1`] = `
2006
2046
  "color": "#F59E0B",
2007
2047
  "icon": "◐",
2008
2048
  },
2049
+ "static": {
2050
+ "color": "#3B82F6",
2051
+ "icon": "●",
2052
+ },
2009
2053
  "success": {
2010
2054
  "color": "#22C55E",
2011
2055
  "icon": "✓",
@@ -2194,6 +2238,10 @@ exports[`FilterBar > search input > should render with active search query 1`] =
2194
2238
  "color": "#F59E0B",
2195
2239
  "icon": "◐",
2196
2240
  },
2241
+ "static": {
2242
+ "color": "#3B82F6",
2243
+ "icon": "●",
2244
+ },
2197
2245
  "success": {
2198
2246
  "color": "#22C55E",
2199
2247
  "icon": "✓",
@@ -138,6 +138,10 @@ exports[`LoadingMessage > fail state > should render fail state 1`] = `
138
138
  "color": "#F59E0B",
139
139
  "icon": "◐",
140
140
  },
141
+ "static": {
142
+ "color": "#3B82F6",
143
+ "icon": "●",
144
+ },
141
145
  "success": {
142
146
  "color": "#22C55E",
143
147
  "icon": "✓",
@@ -311,6 +315,10 @@ exports[`LoadingMessage > fail state > should show error message when failed 1`]
311
315
  "color": "#F59E0B",
312
316
  "icon": "◐",
313
317
  },
318
+ "static": {
319
+ "color": "#3B82F6",
320
+ "icon": "●",
321
+ },
314
322
  "success": {
315
323
  "color": "#22C55E",
316
324
  "icon": "✓",
@@ -484,6 +492,10 @@ exports[`LoadingMessage > loading state > should render loading state 1`] = `
484
492
  "color": "#F59E0B",
485
493
  "icon": "◐",
486
494
  },
495
+ "static": {
496
+ "color": "#3B82F6",
497
+ "icon": "●",
498
+ },
487
499
  "success": {
488
500
  "color": "#22C55E",
489
501
  "icon": "✓",
@@ -656,6 +668,10 @@ exports[`LoadingMessage > loading state > should render loading with custom cont
656
668
  "color": "#F59E0B",
657
669
  "icon": "◐",
658
670
  },
671
+ "static": {
672
+ "color": "#3B82F6",
673
+ "icon": "●",
674
+ },
659
675
  "success": {
660
676
  "color": "#22C55E",
661
677
  "icon": "✓",
@@ -828,6 +844,10 @@ exports[`LoadingMessage > success state > should fall back to original content i
828
844
  "color": "#F59E0B",
829
845
  "icon": "◐",
830
846
  },
847
+ "static": {
848
+ "color": "#3B82F6",
849
+ "icon": "●",
850
+ },
831
851
  "success": {
832
852
  "color": "#22C55E",
833
853
  "icon": "✓",
@@ -1001,6 +1021,10 @@ exports[`LoadingMessage > success state > should render success state 1`] = `
1001
1021
  "color": "#F59E0B",
1002
1022
  "icon": "◐",
1003
1023
  },
1024
+ "static": {
1025
+ "color": "#3B82F6",
1026
+ "icon": "●",
1027
+ },
1004
1028
  "success": {
1005
1029
  "color": "#22C55E",
1006
1030
  "icon": "✓",
@@ -1174,6 +1198,10 @@ exports[`LoadingMessage > success state > should show resolved content when succ
1174
1198
  "color": "#F59E0B",
1175
1199
  "icon": "◐",
1176
1200
  },
1201
+ "static": {
1202
+ "color": "#3B82F6",
1203
+ "icon": "●",
1204
+ },
1177
1205
  "success": {
1178
1206
  "color": "#22C55E",
1179
1207
  "icon": "✓",
@@ -1347,6 +1375,10 @@ exports[`LoadingMessage > with timestamp > should include timestamp in all state
1347
1375
  "color": "#F59E0B",
1348
1376
  "icon": "◐",
1349
1377
  },
1378
+ "static": {
1379
+ "color": "#3B82F6",
1380
+ "icon": "●",
1381
+ },
1350
1382
  "success": {
1351
1383
  "color": "#22C55E",
1352
1384
  "icon": "✓",
@@ -138,6 +138,10 @@ exports[`LogMessage > border styles > should render with thick border style 1`]
138
138
  "color": "#F59E0B",
139
139
  "icon": "◐",
140
140
  },
141
+ "static": {
142
+ "color": "#3B82F6",
143
+ "icon": "●",
144
+ },
141
145
  "success": {
142
146
  "color": "#22C55E",
143
147
  "icon": "✓",
@@ -305,6 +309,10 @@ exports[`LogMessage > border styles > should render with thin border style (defa
305
309
  "color": "#F59E0B",
306
310
  "icon": "◐",
307
311
  },
312
+ "static": {
313
+ "color": "#3B82F6",
314
+ "icon": "●",
315
+ },
308
316
  "success": {
309
317
  "color": "#22C55E",
310
318
  "icon": "✓",
@@ -472,6 +480,10 @@ exports[`LogMessage > renders log levels > should render debug level 1`] = `
472
480
  "color": "#F59E0B",
473
481
  "icon": "◐",
474
482
  },
483
+ "static": {
484
+ "color": "#3B82F6",
485
+ "icon": "●",
486
+ },
475
487
  "success": {
476
488
  "color": "#22C55E",
477
489
  "icon": "✓",
@@ -638,6 +650,10 @@ exports[`LogMessage > renders log levels > should render error level 1`] = `
638
650
  "color": "#F59E0B",
639
651
  "icon": "◐",
640
652
  },
653
+ "static": {
654
+ "color": "#3B82F6",
655
+ "icon": "●",
656
+ },
641
657
  "success": {
642
658
  "color": "#22C55E",
643
659
  "icon": "✓",
@@ -804,6 +820,10 @@ exports[`LogMessage > renders log levels > should render fatal level 1`] = `
804
820
  "color": "#F59E0B",
805
821
  "icon": "◐",
806
822
  },
823
+ "static": {
824
+ "color": "#3B82F6",
825
+ "icon": "●",
826
+ },
807
827
  "success": {
808
828
  "color": "#22C55E",
809
829
  "icon": "✓",
@@ -970,6 +990,10 @@ exports[`LogMessage > renders log levels > should render log level 1`] = `
970
990
  "color": "#F59E0B",
971
991
  "icon": "◐",
972
992
  },
993
+ "static": {
994
+ "color": "#3B82F6",
995
+ "icon": "●",
996
+ },
973
997
  "success": {
974
998
  "color": "#22C55E",
975
999
  "icon": "✓",
@@ -1136,6 +1160,10 @@ exports[`LogMessage > renders log levels > should render verbose level 1`] = `
1136
1160
  "color": "#F59E0B",
1137
1161
  "icon": "◐",
1138
1162
  },
1163
+ "static": {
1164
+ "color": "#3B82F6",
1165
+ "icon": "●",
1166
+ },
1139
1167
  "success": {
1140
1168
  "color": "#22C55E",
1141
1169
  "icon": "✓",
@@ -1302,6 +1330,10 @@ exports[`LogMessage > renders log levels > should render warn level 1`] = `
1302
1330
  "color": "#F59E0B",
1303
1331
  "icon": "◐",
1304
1332
  },
1333
+ "static": {
1334
+ "color": "#3B82F6",
1335
+ "icon": "●",
1336
+ },
1305
1337
  "success": {
1306
1338
  "color": "#22C55E",
1307
1339
  "icon": "✓",
@@ -1468,6 +1500,10 @@ exports[`LogMessage > variants > should render with success variant 1`] = `
1468
1500
  "color": "#F59E0B",
1469
1501
  "icon": "◐",
1470
1502
  },
1503
+ "static": {
1504
+ "color": "#3B82F6",
1505
+ "icon": "●",
1506
+ },
1471
1507
  "success": {
1472
1508
  "color": "#22C55E",
1473
1509
  "icon": "✓",
@@ -1635,6 +1671,10 @@ exports[`LogMessage > variants > should render with trace variant 1`] = `
1635
1671
  "color": "#F59E0B",
1636
1672
  "icon": "◐",
1637
1673
  },
1674
+ "static": {
1675
+ "color": "#3B82F6",
1676
+ "icon": "●",
1677
+ },
1638
1678
  "success": {
1639
1679
  "color": "#22C55E",
1640
1680
  "icon": "✓",
@@ -1802,6 +1842,10 @@ exports[`LogMessage > with custom colors > should render with custom backgroundC
1802
1842
  "color": "#F59E0B",
1803
1843
  "icon": "◐",
1804
1844
  },
1845
+ "static": {
1846
+ "color": "#3B82F6",
1847
+ "icon": "●",
1848
+ },
1805
1849
  "success": {
1806
1850
  "color": "#22C55E",
1807
1851
  "icon": "✓",
@@ -1969,6 +2013,10 @@ exports[`LogMessage > with custom colors > should render with custom borderColor
1969
2013
  "color": "#F59E0B",
1970
2014
  "icon": "◐",
1971
2015
  },
2016
+ "static": {
2017
+ "color": "#3B82F6",
2018
+ "icon": "●",
2019
+ },
1972
2020
  "success": {
1973
2021
  "color": "#22C55E",
1974
2022
  "icon": "✓",
@@ -2136,6 +2184,10 @@ exports[`LogMessage > with label > should render with label 1`] = `
2136
2184
  "color": "#F59E0B",
2137
2185
  "icon": "◐",
2138
2186
  },
2187
+ "static": {
2188
+ "color": "#3B82F6",
2189
+ "icon": "●",
2190
+ },
2139
2191
  "success": {
2140
2192
  "color": "#22C55E",
2141
2193
  "icon": "✓",
@@ -2303,6 +2355,10 @@ exports[`LogMessage > with label > should render with label and timestamp 1`] =
2303
2355
  "color": "#F59E0B",
2304
2356
  "icon": "◐",
2305
2357
  },
2358
+ "static": {
2359
+ "color": "#3B82F6",
2360
+ "icon": "●",
2361
+ },
2306
2362
  "success": {
2307
2363
  "color": "#22C55E",
2308
2364
  "icon": "✓",
@@ -2471,6 +2527,10 @@ exports[`LogMessage > with padding and margin > should render with custom margin
2471
2527
  "color": "#F59E0B",
2472
2528
  "icon": "◐",
2473
2529
  },
2530
+ "static": {
2531
+ "color": "#3B82F6",
2532
+ "icon": "●",
2533
+ },
2474
2534
  "success": {
2475
2535
  "color": "#22C55E",
2476
2536
  "icon": "✓",
@@ -2638,6 +2698,10 @@ exports[`LogMessage > with padding and margin > should render with custom paddin
2638
2698
  "color": "#F59E0B",
2639
2699
  "icon": "◐",
2640
2700
  },
2701
+ "static": {
2702
+ "color": "#3B82F6",
2703
+ "icon": "●",
2704
+ },
2641
2705
  "success": {
2642
2706
  "color": "#22C55E",
2643
2707
  "icon": "✓",
@@ -2805,6 +2869,10 @@ exports[`LogMessage > with timestamp > should render with Date timestamp 1`] = `
2805
2869
  "color": "#F59E0B",
2806
2870
  "icon": "◐",
2807
2871
  },
2872
+ "static": {
2873
+ "color": "#3B82F6",
2874
+ "icon": "●",
2875
+ },
2808
2876
  "success": {
2809
2877
  "color": "#22C55E",
2810
2878
  "icon": "✓",
@@ -2972,6 +3040,10 @@ exports[`LogMessage > with timestamp > should render with string timestamp 1`] =
2972
3040
  "color": "#F59E0B",
2973
3041
  "icon": "◐",
2974
3042
  },
3043
+ "static": {
3044
+ "color": "#3B82F6",
3045
+ "icon": "●",
3046
+ },
2975
3047
  "success": {
2976
3048
  "color": "#22C55E",
2977
3049
  "icon": "✓",
@@ -3139,6 +3211,10 @@ exports[`LogMessage > with trace content > should render with trace 1`] = `
3139
3211
  "color": "#F59E0B",
3140
3212
  "icon": "◐",
3141
3213
  },
3214
+ "static": {
3215
+ "color": "#3B82F6",
3216
+ "icon": "●",
3217
+ },
3142
3218
  "success": {
3143
3219
  "color": "#22C55E",
3144
3220
  "icon": "✓",
@@ -138,6 +138,10 @@ exports[`ProgressMessage > complete state > should render complete state 1`] = `
138
138
  "color": "#F59E0B",
139
139
  "icon": "◐",
140
140
  },
141
+ "static": {
142
+ "color": "#3B82F6",
143
+ "icon": "●",
144
+ },
141
145
  "success": {
142
146
  "color": "#22C55E",
143
147
  "icon": "✓",
@@ -312,6 +316,10 @@ exports[`ProgressMessage > complete state > should show resolved content when co
312
316
  "color": "#F59E0B",
313
317
  "icon": "◐",
314
318
  },
319
+ "static": {
320
+ "color": "#3B82F6",
321
+ "icon": "●",
322
+ },
315
323
  "success": {
316
324
  "color": "#22C55E",
317
325
  "icon": "✓",
@@ -487,6 +495,10 @@ exports[`ProgressMessage > failed state > should render failed state 1`] = `
487
495
  "color": "#F59E0B",
488
496
  "icon": "◐",
489
497
  },
498
+ "static": {
499
+ "color": "#3B82F6",
500
+ "icon": "●",
501
+ },
490
502
  "success": {
491
503
  "color": "#22C55E",
492
504
  "icon": "✓",
@@ -661,6 +673,10 @@ exports[`ProgressMessage > failed state > should show error content when failed
661
673
  "color": "#F59E0B",
662
674
  "icon": "◐",
663
675
  },
676
+ "static": {
677
+ "color": "#3B82F6",
678
+ "icon": "●",
679
+ },
664
680
  "success": {
665
681
  "color": "#22C55E",
666
682
  "icon": "✓",
@@ -836,6 +852,10 @@ exports[`ProgressMessage > progress percentages > should handle non-100 totals 1
836
852
  "color": "#F59E0B",
837
853
  "icon": "◐",
838
854
  },
855
+ "static": {
856
+ "color": "#3B82F6",
857
+ "icon": "●",
858
+ },
839
859
  "success": {
840
860
  "color": "#22C55E",
841
861
  "icon": "✓",
@@ -1010,6 +1030,10 @@ exports[`ProgressMessage > progress percentages > should render progress at 0% 1
1010
1030
  "color": "#F59E0B",
1011
1031
  "icon": "◐",
1012
1032
  },
1033
+ "static": {
1034
+ "color": "#3B82F6",
1035
+ "icon": "●",
1036
+ },
1013
1037
  "success": {
1014
1038
  "color": "#22C55E",
1015
1039
  "icon": "✓",
@@ -1184,6 +1208,10 @@ exports[`ProgressMessage > progress percentages > should render progress at 50%
1184
1208
  "color": "#F59E0B",
1185
1209
  "icon": "◐",
1186
1210
  },
1211
+ "static": {
1212
+ "color": "#3B82F6",
1213
+ "icon": "●",
1214
+ },
1187
1215
  "success": {
1188
1216
  "color": "#22C55E",
1189
1217
  "icon": "✓",
@@ -1358,6 +1386,10 @@ exports[`ProgressMessage > progress percentages > should render progress at 100%
1358
1386
  "color": "#F59E0B",
1359
1387
  "icon": "◐",
1360
1388
  },
1389
+ "static": {
1390
+ "color": "#3B82F6",
1391
+ "icon": "●",
1392
+ },
1361
1393
  "success": {
1362
1394
  "color": "#22C55E",
1363
1395
  "icon": "✓",
@@ -1532,6 +1564,10 @@ exports[`ProgressMessage > progress percentages > should render progress at arbi
1532
1564
  "color": "#F59E0B",
1533
1565
  "icon": "◐",
1534
1566
  },
1567
+ "static": {
1568
+ "color": "#3B82F6",
1569
+ "icon": "●",
1570
+ },
1535
1571
  "success": {
1536
1572
  "color": "#22C55E",
1537
1573
  "icon": "✓",
@@ -1706,6 +1742,10 @@ exports[`ProgressMessage > with label > should render with label 1`] = `
1706
1742
  "color": "#F59E0B",
1707
1743
  "icon": "◐",
1708
1744
  },
1745
+ "static": {
1746
+ "color": "#3B82F6",
1747
+ "icon": "●",
1748
+ },
1709
1749
  "success": {
1710
1750
  "color": "#22C55E",
1711
1751
  "icon": "✓",