@navios/commander-tui 1.0.0 → 1.2.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 (45) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +27 -0
  3. package/dist/tsconfig.tsbuildinfo +1 -1
  4. package/lib/index.cjs +338 -22
  5. package/lib/index.cjs.map +1 -1
  6. package/lib/index.d.cts +161 -118
  7. package/lib/index.d.cts.map +1 -1
  8. package/lib/index.d.mts +176 -133
  9. package/lib/index.d.mts.map +1 -1
  10. package/lib/index.mjs +333 -24
  11. package/lib/index.mjs.map +1 -1
  12. package/lib/{screen_manager_bridge-DN2J6_k1.mjs → screen_manager_bridge-Bk1i53h5.mjs} +1 -1
  13. package/lib/{screen_manager_bridge-Dfg4QUrl.mjs → screen_manager_bridge-BwPVr0bX.mjs} +17 -3
  14. package/lib/screen_manager_bridge-BwPVr0bX.mjs.map +1 -0
  15. package/lib/{screen_manager_bridge-BpDgVu3e.cjs → screen_manager_bridge-CWxLO0CK.cjs} +17 -3
  16. package/lib/screen_manager_bridge-CWxLO0CK.cjs.map +1 -0
  17. package/lib/{screen_manager_bridge-CkV7637i.cjs → screen_manager_bridge-DXc57iXW.cjs} +1 -1
  18. package/package.json +1 -1
  19. package/src/__tests__/components/__snapshots__/filter_bar.spec.tsx.snap +2604 -0
  20. package/src/__tests__/components/__snapshots__/loading_message.spec.tsx.snap +1621 -0
  21. package/src/__tests__/components/__snapshots__/log_message.spec.tsx.snap +3757 -0
  22. package/src/__tests__/components/__snapshots__/progress_message.spec.tsx.snap +2042 -0
  23. package/src/__tests__/components/__snapshots__/prompt_renderer.spec.tsx.snap +3652 -0
  24. package/src/__tests__/components/__snapshots__/sidebar.spec.tsx.snap +3426 -0
  25. package/src/__tests__/components/sidebar.spec.tsx +17 -0
  26. package/src/__tests__/services/logger.spec.ts +5 -3
  27. package/src/factories/index.ts +1 -0
  28. package/src/factories/isomorphic-logger.factory.ts +23 -0
  29. package/src/index.ts +5 -0
  30. package/src/interfaces/index.ts +1 -0
  31. package/src/interfaces/isomorphic-logger.ts +9 -0
  32. package/src/overrides/console.logger.override.ts +8 -1
  33. package/src/schemas/screen-options.ts +2 -0
  34. package/src/services/logger.ts +1 -1
  35. package/src/services/screen.ts +3 -0
  36. package/src/services/screen_manager.tsx +16 -12
  37. package/src/themes/dark.ts +4 -0
  38. package/src/themes/high-contrast.ts +4 -0
  39. package/src/themes/light.ts +4 -0
  40. package/src/tokens/logger.ts +9 -0
  41. package/src/types/screen.types.ts +2 -2
  42. package/src/types/theme.types.ts +1 -0
  43. package/src/utils/format.ts +3 -2
  44. package/lib/screen_manager_bridge-BpDgVu3e.cjs.map +0 -1
  45. package/lib/screen_manager_bridge-Dfg4QUrl.mjs.map +0 -1
@@ -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": "✓",
@@ -1380,3 +1412,1592 @@ exports[`LoadingMessage > with timestamp > should include timestamp in all state
1380
1412
  />
1381
1413
  </LoggerProvider>
1382
1414
  `;
1415
+
1416
+ exports[`LoadingMessage fail state should render fail state 1`] = `
1417
+ {
1418
+ "$$typeof": Symbol(react.transitional.element),
1419
+ "_debugInfo": null,
1420
+ "_debugStack": [Error: react-stack-top-frame],
1421
+ "_debugTask": null,
1422
+ "_owner": null,
1423
+ "_store": {
1424
+ "validated": 0,
1425
+ },
1426
+ "key": null,
1427
+ "props": {
1428
+ "children": {
1429
+ "$$typeof": Symbol(react.transitional.element),
1430
+ "_debugInfo": null,
1431
+ "_debugStack": [Error: react-stack-top-frame],
1432
+ "_debugTask": null,
1433
+ "_owner": null,
1434
+ "_store": {
1435
+ "validated": 1,
1436
+ },
1437
+ "key": null,
1438
+ "props": {
1439
+ "message": {
1440
+ "content": "Loading...",
1441
+ "id": "loading-33",
1442
+ "resolvedContent": "Failed to load data",
1443
+ "status": "fail",
1444
+ "timestamp": 2025-01-01T00:00:00.000Z,
1445
+ "type": "loading",
1446
+ },
1447
+ },
1448
+ "ref": null,
1449
+ "type": [Function: LoadingMessage],
1450
+ },
1451
+ "levelColors": undefined,
1452
+ "theme": {
1453
+ "colors": {
1454
+ "background": "#111827",
1455
+ "error": "#EF4444",
1456
+ "foreground": "#F9FAFB",
1457
+ "muted": "#6B7280",
1458
+ "primary": "#3B82F6",
1459
+ "secondary": "#8B5CF6",
1460
+ "success": "#22C55E",
1461
+ "warning": "#F59E0B",
1462
+ },
1463
+ "errorHighlight": {
1464
+ "background": "#EF444425",
1465
+ "border": "#EF4444",
1466
+ "gutterBackground": "#EF444440",
1467
+ },
1468
+ "file": {
1469
+ "background": "#3B82F615",
1470
+ "border": "#3B82F6",
1471
+ "headerBackground": "#3B82F625",
1472
+ "headerText": "#F9FAFB",
1473
+ },
1474
+ "filter": {
1475
+ "activeLevel": "#3B82F6",
1476
+ "background": "#1F293780",
1477
+ "border": "#3B82F6",
1478
+ "cursor": "#3B82F6",
1479
+ "inactiveLevel": "#4B5563",
1480
+ "inputBackground": "#1F2937",
1481
+ "inputPlaceholder": "#6B7280",
1482
+ "inputText": "#F9FAFB",
1483
+ "text": "#E5E7EB",
1484
+ "textDim": "#6B7280",
1485
+ },
1486
+ "group": {
1487
+ "background": "#6B728010",
1488
+ "border": "#6B7280",
1489
+ "headerText": "#E5E7EB",
1490
+ "icon": "#9CA3AF",
1491
+ },
1492
+ "header": {
1493
+ "background": undefined,
1494
+ "border": "#374151",
1495
+ "text": "#F9FAFB",
1496
+ },
1497
+ "help": {
1498
+ "background": "#1F2937",
1499
+ "border": "#3B82F6",
1500
+ "category": "#3B82F6",
1501
+ "description": "#E5E7EB",
1502
+ "hint": "#6B7280",
1503
+ "key": "#F59E0B",
1504
+ "title": "#F9FAFB",
1505
+ },
1506
+ "logLevels": {
1507
+ "debug": {
1508
+ "background": "#8B5CF615",
1509
+ "border": "#8B5CF6",
1510
+ },
1511
+ "error": {
1512
+ "background": "#EF444415",
1513
+ "border": "#EF4444",
1514
+ },
1515
+ "fatal": {
1516
+ "background": "#DC262625",
1517
+ "border": "#DC2626",
1518
+ "text": "#FCA5A5",
1519
+ },
1520
+ "log": {
1521
+ "background": "#3B82F615",
1522
+ "border": "#3B82F6",
1523
+ },
1524
+ "verbose": {
1525
+ "background": "#6B728015",
1526
+ "border": "#6B7280",
1527
+ },
1528
+ "warn": {
1529
+ "background": "#F59E0B15",
1530
+ "border": "#F59E0B",
1531
+ },
1532
+ },
1533
+ "name": "dark",
1534
+ "progress": {
1535
+ "background": "#3B82F615",
1536
+ "barEmpty": "#374151",
1537
+ "barFilled": "#3B82F6",
1538
+ "border": "#3B82F6",
1539
+ "complete": "#22C55E",
1540
+ "completeBackground": "#22C55E15",
1541
+ "failed": "#EF4444",
1542
+ "failedBackground": "#EF444415",
1543
+ "text": "#E5E7EB",
1544
+ "textDim": "#9CA3AF",
1545
+ },
1546
+ "prompt": {
1547
+ "border": "#374151",
1548
+ "buttonBackground": "#374151",
1549
+ "buttonSelectedBackground": "#1F2937",
1550
+ "cancelButton": "#EF4444",
1551
+ "confirmButton": "#22C55E",
1552
+ "focusBorder": "#3B82F6",
1553
+ "inputBackground": "#1F2937",
1554
+ "inputBorder": "#3B82F6",
1555
+ "inputCursor": "#3B82F6",
1556
+ "inputPlaceholder": "#6B7280",
1557
+ "inputText": "#F9FAFB",
1558
+ "optionSelected": "#3B82F6",
1559
+ "optionSelectedBackground": "#1E3A5F",
1560
+ "optionText": "#E5E7EB",
1561
+ "optionTextDim": "#9CA3AF",
1562
+ "question": "#F9FAFB",
1563
+ },
1564
+ "separator": {
1565
+ "line": "#374151",
1566
+ "text": "#6B7280",
1567
+ },
1568
+ "sidebar": {
1569
+ "background": undefined,
1570
+ "badge": "#3B82F6",
1571
+ "border": "#374151",
1572
+ "focusBorder": "#3B82F6",
1573
+ "hoverBackground": "#374151",
1574
+ "selectedBackground": "#1F293780",
1575
+ "text": "#E5E7EB",
1576
+ "textDim": "#6B7280",
1577
+ },
1578
+ "statusIndicators": {
1579
+ "fail": {
1580
+ "color": "#EF4444",
1581
+ "icon": "✗",
1582
+ },
1583
+ "pending": {
1584
+ "color": "#F59E0B",
1585
+ "icon": "◐",
1586
+ },
1587
+ "static": {
1588
+ "color": "#3B82F6",
1589
+ "icon": "●",
1590
+ },
1591
+ "success": {
1592
+ "color": "#22C55E",
1593
+ "icon": "✓",
1594
+ },
1595
+ "waiting": {
1596
+ "color": "#6B7280",
1597
+ "icon": "○",
1598
+ },
1599
+ },
1600
+ "table": {
1601
+ "background": "#3B82F615",
1602
+ "border": "#3B82F6",
1603
+ "cellText": "#E5E7EB",
1604
+ "headerText": "#F9FAFB",
1605
+ "separator": "#3B82F650",
1606
+ "title": "#F9FAFB",
1607
+ },
1608
+ },
1609
+ },
1610
+ "ref": null,
1611
+ "type": [Function: LoggerProvider],
1612
+ }
1613
+ `;
1614
+
1615
+ exports[`LoadingMessage fail state should show error message when failed 1`] = `
1616
+ {
1617
+ "$$typeof": Symbol(react.transitional.element),
1618
+ "_debugInfo": null,
1619
+ "_debugStack": [Error: react-stack-top-frame],
1620
+ "_debugTask": null,
1621
+ "_owner": null,
1622
+ "_store": {
1623
+ "validated": 0,
1624
+ },
1625
+ "key": null,
1626
+ "props": {
1627
+ "children": {
1628
+ "$$typeof": Symbol(react.transitional.element),
1629
+ "_debugInfo": null,
1630
+ "_debugStack": [Error: react-stack-top-frame],
1631
+ "_debugTask": null,
1632
+ "_owner": null,
1633
+ "_store": {
1634
+ "validated": 1,
1635
+ },
1636
+ "key": null,
1637
+ "props": {
1638
+ "message": {
1639
+ "content": "Connecting to server...",
1640
+ "id": "loading-34",
1641
+ "resolvedContent": "Connection timeout",
1642
+ "status": "fail",
1643
+ "timestamp": 2025-01-01T00:00:00.000Z,
1644
+ "type": "loading",
1645
+ },
1646
+ },
1647
+ "ref": null,
1648
+ "type": [Function: LoadingMessage],
1649
+ },
1650
+ "levelColors": undefined,
1651
+ "theme": {
1652
+ "colors": {
1653
+ "background": "#111827",
1654
+ "error": "#EF4444",
1655
+ "foreground": "#F9FAFB",
1656
+ "muted": "#6B7280",
1657
+ "primary": "#3B82F6",
1658
+ "secondary": "#8B5CF6",
1659
+ "success": "#22C55E",
1660
+ "warning": "#F59E0B",
1661
+ },
1662
+ "errorHighlight": {
1663
+ "background": "#EF444425",
1664
+ "border": "#EF4444",
1665
+ "gutterBackground": "#EF444440",
1666
+ },
1667
+ "file": {
1668
+ "background": "#3B82F615",
1669
+ "border": "#3B82F6",
1670
+ "headerBackground": "#3B82F625",
1671
+ "headerText": "#F9FAFB",
1672
+ },
1673
+ "filter": {
1674
+ "activeLevel": "#3B82F6",
1675
+ "background": "#1F293780",
1676
+ "border": "#3B82F6",
1677
+ "cursor": "#3B82F6",
1678
+ "inactiveLevel": "#4B5563",
1679
+ "inputBackground": "#1F2937",
1680
+ "inputPlaceholder": "#6B7280",
1681
+ "inputText": "#F9FAFB",
1682
+ "text": "#E5E7EB",
1683
+ "textDim": "#6B7280",
1684
+ },
1685
+ "group": {
1686
+ "background": "#6B728010",
1687
+ "border": "#6B7280",
1688
+ "headerText": "#E5E7EB",
1689
+ "icon": "#9CA3AF",
1690
+ },
1691
+ "header": {
1692
+ "background": undefined,
1693
+ "border": "#374151",
1694
+ "text": "#F9FAFB",
1695
+ },
1696
+ "help": {
1697
+ "background": "#1F2937",
1698
+ "border": "#3B82F6",
1699
+ "category": "#3B82F6",
1700
+ "description": "#E5E7EB",
1701
+ "hint": "#6B7280",
1702
+ "key": "#F59E0B",
1703
+ "title": "#F9FAFB",
1704
+ },
1705
+ "logLevels": {
1706
+ "debug": {
1707
+ "background": "#8B5CF615",
1708
+ "border": "#8B5CF6",
1709
+ },
1710
+ "error": {
1711
+ "background": "#EF444415",
1712
+ "border": "#EF4444",
1713
+ },
1714
+ "fatal": {
1715
+ "background": "#DC262625",
1716
+ "border": "#DC2626",
1717
+ "text": "#FCA5A5",
1718
+ },
1719
+ "log": {
1720
+ "background": "#3B82F615",
1721
+ "border": "#3B82F6",
1722
+ },
1723
+ "verbose": {
1724
+ "background": "#6B728015",
1725
+ "border": "#6B7280",
1726
+ },
1727
+ "warn": {
1728
+ "background": "#F59E0B15",
1729
+ "border": "#F59E0B",
1730
+ },
1731
+ },
1732
+ "name": "dark",
1733
+ "progress": {
1734
+ "background": "#3B82F615",
1735
+ "barEmpty": "#374151",
1736
+ "barFilled": "#3B82F6",
1737
+ "border": "#3B82F6",
1738
+ "complete": "#22C55E",
1739
+ "completeBackground": "#22C55E15",
1740
+ "failed": "#EF4444",
1741
+ "failedBackground": "#EF444415",
1742
+ "text": "#E5E7EB",
1743
+ "textDim": "#9CA3AF",
1744
+ },
1745
+ "prompt": {
1746
+ "border": "#374151",
1747
+ "buttonBackground": "#374151",
1748
+ "buttonSelectedBackground": "#1F2937",
1749
+ "cancelButton": "#EF4444",
1750
+ "confirmButton": "#22C55E",
1751
+ "focusBorder": "#3B82F6",
1752
+ "inputBackground": "#1F2937",
1753
+ "inputBorder": "#3B82F6",
1754
+ "inputCursor": "#3B82F6",
1755
+ "inputPlaceholder": "#6B7280",
1756
+ "inputText": "#F9FAFB",
1757
+ "optionSelected": "#3B82F6",
1758
+ "optionSelectedBackground": "#1E3A5F",
1759
+ "optionText": "#E5E7EB",
1760
+ "optionTextDim": "#9CA3AF",
1761
+ "question": "#F9FAFB",
1762
+ },
1763
+ "separator": {
1764
+ "line": "#374151",
1765
+ "text": "#6B7280",
1766
+ },
1767
+ "sidebar": {
1768
+ "background": undefined,
1769
+ "badge": "#3B82F6",
1770
+ "border": "#374151",
1771
+ "focusBorder": "#3B82F6",
1772
+ "hoverBackground": "#374151",
1773
+ "selectedBackground": "#1F293780",
1774
+ "text": "#E5E7EB",
1775
+ "textDim": "#6B7280",
1776
+ },
1777
+ "statusIndicators": {
1778
+ "fail": {
1779
+ "color": "#EF4444",
1780
+ "icon": "✗",
1781
+ },
1782
+ "pending": {
1783
+ "color": "#F59E0B",
1784
+ "icon": "◐",
1785
+ },
1786
+ "static": {
1787
+ "color": "#3B82F6",
1788
+ "icon": "●",
1789
+ },
1790
+ "success": {
1791
+ "color": "#22C55E",
1792
+ "icon": "✓",
1793
+ },
1794
+ "waiting": {
1795
+ "color": "#6B7280",
1796
+ "icon": "○",
1797
+ },
1798
+ },
1799
+ "table": {
1800
+ "background": "#3B82F615",
1801
+ "border": "#3B82F6",
1802
+ "cellText": "#E5E7EB",
1803
+ "headerText": "#F9FAFB",
1804
+ "separator": "#3B82F650",
1805
+ "title": "#F9FAFB",
1806
+ },
1807
+ },
1808
+ },
1809
+ "ref": null,
1810
+ "type": [Function: LoggerProvider],
1811
+ }
1812
+ `;
1813
+
1814
+ exports[`LoadingMessage loading state should render loading state 1`] = `
1815
+ {
1816
+ "$$typeof": Symbol(react.transitional.element),
1817
+ "_debugInfo": null,
1818
+ "_debugStack": [Error: react-stack-top-frame],
1819
+ "_debugTask": null,
1820
+ "_owner": null,
1821
+ "_store": {
1822
+ "validated": 0,
1823
+ },
1824
+ "key": null,
1825
+ "props": {
1826
+ "children": {
1827
+ "$$typeof": Symbol(react.transitional.element),
1828
+ "_debugInfo": null,
1829
+ "_debugStack": [Error: react-stack-top-frame],
1830
+ "_debugTask": null,
1831
+ "_owner": null,
1832
+ "_store": {
1833
+ "validated": 1,
1834
+ },
1835
+ "key": null,
1836
+ "props": {
1837
+ "message": {
1838
+ "content": "Loading data...",
1839
+ "id": "loading-28",
1840
+ "status": "loading",
1841
+ "timestamp": 2025-01-01T00:00:00.000Z,
1842
+ "type": "loading",
1843
+ },
1844
+ },
1845
+ "ref": null,
1846
+ "type": [Function: LoadingMessage],
1847
+ },
1848
+ "levelColors": undefined,
1849
+ "theme": {
1850
+ "colors": {
1851
+ "background": "#111827",
1852
+ "error": "#EF4444",
1853
+ "foreground": "#F9FAFB",
1854
+ "muted": "#6B7280",
1855
+ "primary": "#3B82F6",
1856
+ "secondary": "#8B5CF6",
1857
+ "success": "#22C55E",
1858
+ "warning": "#F59E0B",
1859
+ },
1860
+ "errorHighlight": {
1861
+ "background": "#EF444425",
1862
+ "border": "#EF4444",
1863
+ "gutterBackground": "#EF444440",
1864
+ },
1865
+ "file": {
1866
+ "background": "#3B82F615",
1867
+ "border": "#3B82F6",
1868
+ "headerBackground": "#3B82F625",
1869
+ "headerText": "#F9FAFB",
1870
+ },
1871
+ "filter": {
1872
+ "activeLevel": "#3B82F6",
1873
+ "background": "#1F293780",
1874
+ "border": "#3B82F6",
1875
+ "cursor": "#3B82F6",
1876
+ "inactiveLevel": "#4B5563",
1877
+ "inputBackground": "#1F2937",
1878
+ "inputPlaceholder": "#6B7280",
1879
+ "inputText": "#F9FAFB",
1880
+ "text": "#E5E7EB",
1881
+ "textDim": "#6B7280",
1882
+ },
1883
+ "group": {
1884
+ "background": "#6B728010",
1885
+ "border": "#6B7280",
1886
+ "headerText": "#E5E7EB",
1887
+ "icon": "#9CA3AF",
1888
+ },
1889
+ "header": {
1890
+ "background": undefined,
1891
+ "border": "#374151",
1892
+ "text": "#F9FAFB",
1893
+ },
1894
+ "help": {
1895
+ "background": "#1F2937",
1896
+ "border": "#3B82F6",
1897
+ "category": "#3B82F6",
1898
+ "description": "#E5E7EB",
1899
+ "hint": "#6B7280",
1900
+ "key": "#F59E0B",
1901
+ "title": "#F9FAFB",
1902
+ },
1903
+ "logLevels": {
1904
+ "debug": {
1905
+ "background": "#8B5CF615",
1906
+ "border": "#8B5CF6",
1907
+ },
1908
+ "error": {
1909
+ "background": "#EF444415",
1910
+ "border": "#EF4444",
1911
+ },
1912
+ "fatal": {
1913
+ "background": "#DC262625",
1914
+ "border": "#DC2626",
1915
+ "text": "#FCA5A5",
1916
+ },
1917
+ "log": {
1918
+ "background": "#3B82F615",
1919
+ "border": "#3B82F6",
1920
+ },
1921
+ "verbose": {
1922
+ "background": "#6B728015",
1923
+ "border": "#6B7280",
1924
+ },
1925
+ "warn": {
1926
+ "background": "#F59E0B15",
1927
+ "border": "#F59E0B",
1928
+ },
1929
+ },
1930
+ "name": "dark",
1931
+ "progress": {
1932
+ "background": "#3B82F615",
1933
+ "barEmpty": "#374151",
1934
+ "barFilled": "#3B82F6",
1935
+ "border": "#3B82F6",
1936
+ "complete": "#22C55E",
1937
+ "completeBackground": "#22C55E15",
1938
+ "failed": "#EF4444",
1939
+ "failedBackground": "#EF444415",
1940
+ "text": "#E5E7EB",
1941
+ "textDim": "#9CA3AF",
1942
+ },
1943
+ "prompt": {
1944
+ "border": "#374151",
1945
+ "buttonBackground": "#374151",
1946
+ "buttonSelectedBackground": "#1F2937",
1947
+ "cancelButton": "#EF4444",
1948
+ "confirmButton": "#22C55E",
1949
+ "focusBorder": "#3B82F6",
1950
+ "inputBackground": "#1F2937",
1951
+ "inputBorder": "#3B82F6",
1952
+ "inputCursor": "#3B82F6",
1953
+ "inputPlaceholder": "#6B7280",
1954
+ "inputText": "#F9FAFB",
1955
+ "optionSelected": "#3B82F6",
1956
+ "optionSelectedBackground": "#1E3A5F",
1957
+ "optionText": "#E5E7EB",
1958
+ "optionTextDim": "#9CA3AF",
1959
+ "question": "#F9FAFB",
1960
+ },
1961
+ "separator": {
1962
+ "line": "#374151",
1963
+ "text": "#6B7280",
1964
+ },
1965
+ "sidebar": {
1966
+ "background": undefined,
1967
+ "badge": "#3B82F6",
1968
+ "border": "#374151",
1969
+ "focusBorder": "#3B82F6",
1970
+ "hoverBackground": "#374151",
1971
+ "selectedBackground": "#1F293780",
1972
+ "text": "#E5E7EB",
1973
+ "textDim": "#6B7280",
1974
+ },
1975
+ "statusIndicators": {
1976
+ "fail": {
1977
+ "color": "#EF4444",
1978
+ "icon": "✗",
1979
+ },
1980
+ "pending": {
1981
+ "color": "#F59E0B",
1982
+ "icon": "◐",
1983
+ },
1984
+ "static": {
1985
+ "color": "#3B82F6",
1986
+ "icon": "●",
1987
+ },
1988
+ "success": {
1989
+ "color": "#22C55E",
1990
+ "icon": "✓",
1991
+ },
1992
+ "waiting": {
1993
+ "color": "#6B7280",
1994
+ "icon": "○",
1995
+ },
1996
+ },
1997
+ "table": {
1998
+ "background": "#3B82F615",
1999
+ "border": "#3B82F6",
2000
+ "cellText": "#E5E7EB",
2001
+ "headerText": "#F9FAFB",
2002
+ "separator": "#3B82F650",
2003
+ "title": "#F9FAFB",
2004
+ },
2005
+ },
2006
+ },
2007
+ "ref": null,
2008
+ "type": [Function: LoggerProvider],
2009
+ }
2010
+ `;
2011
+
2012
+ exports[`LoadingMessage loading state should render loading with custom content 1`] = `
2013
+ {
2014
+ "$$typeof": Symbol(react.transitional.element),
2015
+ "_debugInfo": null,
2016
+ "_debugStack": [Error: react-stack-top-frame],
2017
+ "_debugTask": null,
2018
+ "_owner": null,
2019
+ "_store": {
2020
+ "validated": 0,
2021
+ },
2022
+ "key": null,
2023
+ "props": {
2024
+ "children": {
2025
+ "$$typeof": Symbol(react.transitional.element),
2026
+ "_debugInfo": null,
2027
+ "_debugStack": [Error: react-stack-top-frame],
2028
+ "_debugTask": null,
2029
+ "_owner": null,
2030
+ "_store": {
2031
+ "validated": 1,
2032
+ },
2033
+ "key": null,
2034
+ "props": {
2035
+ "message": {
2036
+ "content": "Fetching user information...",
2037
+ "id": "loading-29",
2038
+ "status": "loading",
2039
+ "timestamp": 2025-01-01T00:00:00.000Z,
2040
+ "type": "loading",
2041
+ },
2042
+ },
2043
+ "ref": null,
2044
+ "type": [Function: LoadingMessage],
2045
+ },
2046
+ "levelColors": undefined,
2047
+ "theme": {
2048
+ "colors": {
2049
+ "background": "#111827",
2050
+ "error": "#EF4444",
2051
+ "foreground": "#F9FAFB",
2052
+ "muted": "#6B7280",
2053
+ "primary": "#3B82F6",
2054
+ "secondary": "#8B5CF6",
2055
+ "success": "#22C55E",
2056
+ "warning": "#F59E0B",
2057
+ },
2058
+ "errorHighlight": {
2059
+ "background": "#EF444425",
2060
+ "border": "#EF4444",
2061
+ "gutterBackground": "#EF444440",
2062
+ },
2063
+ "file": {
2064
+ "background": "#3B82F615",
2065
+ "border": "#3B82F6",
2066
+ "headerBackground": "#3B82F625",
2067
+ "headerText": "#F9FAFB",
2068
+ },
2069
+ "filter": {
2070
+ "activeLevel": "#3B82F6",
2071
+ "background": "#1F293780",
2072
+ "border": "#3B82F6",
2073
+ "cursor": "#3B82F6",
2074
+ "inactiveLevel": "#4B5563",
2075
+ "inputBackground": "#1F2937",
2076
+ "inputPlaceholder": "#6B7280",
2077
+ "inputText": "#F9FAFB",
2078
+ "text": "#E5E7EB",
2079
+ "textDim": "#6B7280",
2080
+ },
2081
+ "group": {
2082
+ "background": "#6B728010",
2083
+ "border": "#6B7280",
2084
+ "headerText": "#E5E7EB",
2085
+ "icon": "#9CA3AF",
2086
+ },
2087
+ "header": {
2088
+ "background": undefined,
2089
+ "border": "#374151",
2090
+ "text": "#F9FAFB",
2091
+ },
2092
+ "help": {
2093
+ "background": "#1F2937",
2094
+ "border": "#3B82F6",
2095
+ "category": "#3B82F6",
2096
+ "description": "#E5E7EB",
2097
+ "hint": "#6B7280",
2098
+ "key": "#F59E0B",
2099
+ "title": "#F9FAFB",
2100
+ },
2101
+ "logLevels": {
2102
+ "debug": {
2103
+ "background": "#8B5CF615",
2104
+ "border": "#8B5CF6",
2105
+ },
2106
+ "error": {
2107
+ "background": "#EF444415",
2108
+ "border": "#EF4444",
2109
+ },
2110
+ "fatal": {
2111
+ "background": "#DC262625",
2112
+ "border": "#DC2626",
2113
+ "text": "#FCA5A5",
2114
+ },
2115
+ "log": {
2116
+ "background": "#3B82F615",
2117
+ "border": "#3B82F6",
2118
+ },
2119
+ "verbose": {
2120
+ "background": "#6B728015",
2121
+ "border": "#6B7280",
2122
+ },
2123
+ "warn": {
2124
+ "background": "#F59E0B15",
2125
+ "border": "#F59E0B",
2126
+ },
2127
+ },
2128
+ "name": "dark",
2129
+ "progress": {
2130
+ "background": "#3B82F615",
2131
+ "barEmpty": "#374151",
2132
+ "barFilled": "#3B82F6",
2133
+ "border": "#3B82F6",
2134
+ "complete": "#22C55E",
2135
+ "completeBackground": "#22C55E15",
2136
+ "failed": "#EF4444",
2137
+ "failedBackground": "#EF444415",
2138
+ "text": "#E5E7EB",
2139
+ "textDim": "#9CA3AF",
2140
+ },
2141
+ "prompt": {
2142
+ "border": "#374151",
2143
+ "buttonBackground": "#374151",
2144
+ "buttonSelectedBackground": "#1F2937",
2145
+ "cancelButton": "#EF4444",
2146
+ "confirmButton": "#22C55E",
2147
+ "focusBorder": "#3B82F6",
2148
+ "inputBackground": "#1F2937",
2149
+ "inputBorder": "#3B82F6",
2150
+ "inputCursor": "#3B82F6",
2151
+ "inputPlaceholder": "#6B7280",
2152
+ "inputText": "#F9FAFB",
2153
+ "optionSelected": "#3B82F6",
2154
+ "optionSelectedBackground": "#1E3A5F",
2155
+ "optionText": "#E5E7EB",
2156
+ "optionTextDim": "#9CA3AF",
2157
+ "question": "#F9FAFB",
2158
+ },
2159
+ "separator": {
2160
+ "line": "#374151",
2161
+ "text": "#6B7280",
2162
+ },
2163
+ "sidebar": {
2164
+ "background": undefined,
2165
+ "badge": "#3B82F6",
2166
+ "border": "#374151",
2167
+ "focusBorder": "#3B82F6",
2168
+ "hoverBackground": "#374151",
2169
+ "selectedBackground": "#1F293780",
2170
+ "text": "#E5E7EB",
2171
+ "textDim": "#6B7280",
2172
+ },
2173
+ "statusIndicators": {
2174
+ "fail": {
2175
+ "color": "#EF4444",
2176
+ "icon": "✗",
2177
+ },
2178
+ "pending": {
2179
+ "color": "#F59E0B",
2180
+ "icon": "◐",
2181
+ },
2182
+ "static": {
2183
+ "color": "#3B82F6",
2184
+ "icon": "●",
2185
+ },
2186
+ "success": {
2187
+ "color": "#22C55E",
2188
+ "icon": "✓",
2189
+ },
2190
+ "waiting": {
2191
+ "color": "#6B7280",
2192
+ "icon": "○",
2193
+ },
2194
+ },
2195
+ "table": {
2196
+ "background": "#3B82F615",
2197
+ "border": "#3B82F6",
2198
+ "cellText": "#E5E7EB",
2199
+ "headerText": "#F9FAFB",
2200
+ "separator": "#3B82F650",
2201
+ "title": "#F9FAFB",
2202
+ },
2203
+ },
2204
+ },
2205
+ "ref": null,
2206
+ "type": [Function: LoggerProvider],
2207
+ }
2208
+ `;
2209
+
2210
+ exports[`LoadingMessage success state should fall back to original content if no resolvedContent 1`] = `
2211
+ {
2212
+ "$$typeof": Symbol(react.transitional.element),
2213
+ "_debugInfo": null,
2214
+ "_debugStack": [Error: react-stack-top-frame],
2215
+ "_debugTask": null,
2216
+ "_owner": null,
2217
+ "_store": {
2218
+ "validated": 0,
2219
+ },
2220
+ "key": null,
2221
+ "props": {
2222
+ "children": {
2223
+ "$$typeof": Symbol(react.transitional.element),
2224
+ "_debugInfo": null,
2225
+ "_debugStack": [Error: react-stack-top-frame],
2226
+ "_debugTask": null,
2227
+ "_owner": null,
2228
+ "_store": {
2229
+ "validated": 1,
2230
+ },
2231
+ "key": null,
2232
+ "props": {
2233
+ "message": {
2234
+ "content": "Loading completed",
2235
+ "id": "loading-32",
2236
+ "resolvedContent": undefined,
2237
+ "status": "success",
2238
+ "timestamp": 2025-01-01T00:00:00.000Z,
2239
+ "type": "loading",
2240
+ },
2241
+ },
2242
+ "ref": null,
2243
+ "type": [Function: LoadingMessage],
2244
+ },
2245
+ "levelColors": undefined,
2246
+ "theme": {
2247
+ "colors": {
2248
+ "background": "#111827",
2249
+ "error": "#EF4444",
2250
+ "foreground": "#F9FAFB",
2251
+ "muted": "#6B7280",
2252
+ "primary": "#3B82F6",
2253
+ "secondary": "#8B5CF6",
2254
+ "success": "#22C55E",
2255
+ "warning": "#F59E0B",
2256
+ },
2257
+ "errorHighlight": {
2258
+ "background": "#EF444425",
2259
+ "border": "#EF4444",
2260
+ "gutterBackground": "#EF444440",
2261
+ },
2262
+ "file": {
2263
+ "background": "#3B82F615",
2264
+ "border": "#3B82F6",
2265
+ "headerBackground": "#3B82F625",
2266
+ "headerText": "#F9FAFB",
2267
+ },
2268
+ "filter": {
2269
+ "activeLevel": "#3B82F6",
2270
+ "background": "#1F293780",
2271
+ "border": "#3B82F6",
2272
+ "cursor": "#3B82F6",
2273
+ "inactiveLevel": "#4B5563",
2274
+ "inputBackground": "#1F2937",
2275
+ "inputPlaceholder": "#6B7280",
2276
+ "inputText": "#F9FAFB",
2277
+ "text": "#E5E7EB",
2278
+ "textDim": "#6B7280",
2279
+ },
2280
+ "group": {
2281
+ "background": "#6B728010",
2282
+ "border": "#6B7280",
2283
+ "headerText": "#E5E7EB",
2284
+ "icon": "#9CA3AF",
2285
+ },
2286
+ "header": {
2287
+ "background": undefined,
2288
+ "border": "#374151",
2289
+ "text": "#F9FAFB",
2290
+ },
2291
+ "help": {
2292
+ "background": "#1F2937",
2293
+ "border": "#3B82F6",
2294
+ "category": "#3B82F6",
2295
+ "description": "#E5E7EB",
2296
+ "hint": "#6B7280",
2297
+ "key": "#F59E0B",
2298
+ "title": "#F9FAFB",
2299
+ },
2300
+ "logLevels": {
2301
+ "debug": {
2302
+ "background": "#8B5CF615",
2303
+ "border": "#8B5CF6",
2304
+ },
2305
+ "error": {
2306
+ "background": "#EF444415",
2307
+ "border": "#EF4444",
2308
+ },
2309
+ "fatal": {
2310
+ "background": "#DC262625",
2311
+ "border": "#DC2626",
2312
+ "text": "#FCA5A5",
2313
+ },
2314
+ "log": {
2315
+ "background": "#3B82F615",
2316
+ "border": "#3B82F6",
2317
+ },
2318
+ "verbose": {
2319
+ "background": "#6B728015",
2320
+ "border": "#6B7280",
2321
+ },
2322
+ "warn": {
2323
+ "background": "#F59E0B15",
2324
+ "border": "#F59E0B",
2325
+ },
2326
+ },
2327
+ "name": "dark",
2328
+ "progress": {
2329
+ "background": "#3B82F615",
2330
+ "barEmpty": "#374151",
2331
+ "barFilled": "#3B82F6",
2332
+ "border": "#3B82F6",
2333
+ "complete": "#22C55E",
2334
+ "completeBackground": "#22C55E15",
2335
+ "failed": "#EF4444",
2336
+ "failedBackground": "#EF444415",
2337
+ "text": "#E5E7EB",
2338
+ "textDim": "#9CA3AF",
2339
+ },
2340
+ "prompt": {
2341
+ "border": "#374151",
2342
+ "buttonBackground": "#374151",
2343
+ "buttonSelectedBackground": "#1F2937",
2344
+ "cancelButton": "#EF4444",
2345
+ "confirmButton": "#22C55E",
2346
+ "focusBorder": "#3B82F6",
2347
+ "inputBackground": "#1F2937",
2348
+ "inputBorder": "#3B82F6",
2349
+ "inputCursor": "#3B82F6",
2350
+ "inputPlaceholder": "#6B7280",
2351
+ "inputText": "#F9FAFB",
2352
+ "optionSelected": "#3B82F6",
2353
+ "optionSelectedBackground": "#1E3A5F",
2354
+ "optionText": "#E5E7EB",
2355
+ "optionTextDim": "#9CA3AF",
2356
+ "question": "#F9FAFB",
2357
+ },
2358
+ "separator": {
2359
+ "line": "#374151",
2360
+ "text": "#6B7280",
2361
+ },
2362
+ "sidebar": {
2363
+ "background": undefined,
2364
+ "badge": "#3B82F6",
2365
+ "border": "#374151",
2366
+ "focusBorder": "#3B82F6",
2367
+ "hoverBackground": "#374151",
2368
+ "selectedBackground": "#1F293780",
2369
+ "text": "#E5E7EB",
2370
+ "textDim": "#6B7280",
2371
+ },
2372
+ "statusIndicators": {
2373
+ "fail": {
2374
+ "color": "#EF4444",
2375
+ "icon": "✗",
2376
+ },
2377
+ "pending": {
2378
+ "color": "#F59E0B",
2379
+ "icon": "◐",
2380
+ },
2381
+ "static": {
2382
+ "color": "#3B82F6",
2383
+ "icon": "●",
2384
+ },
2385
+ "success": {
2386
+ "color": "#22C55E",
2387
+ "icon": "✓",
2388
+ },
2389
+ "waiting": {
2390
+ "color": "#6B7280",
2391
+ "icon": "○",
2392
+ },
2393
+ },
2394
+ "table": {
2395
+ "background": "#3B82F615",
2396
+ "border": "#3B82F6",
2397
+ "cellText": "#E5E7EB",
2398
+ "headerText": "#F9FAFB",
2399
+ "separator": "#3B82F650",
2400
+ "title": "#F9FAFB",
2401
+ },
2402
+ },
2403
+ },
2404
+ "ref": null,
2405
+ "type": [Function: LoggerProvider],
2406
+ }
2407
+ `;
2408
+
2409
+ exports[`LoadingMessage success state should render success state 1`] = `
2410
+ {
2411
+ "$$typeof": Symbol(react.transitional.element),
2412
+ "_debugInfo": null,
2413
+ "_debugStack": [Error: react-stack-top-frame],
2414
+ "_debugTask": null,
2415
+ "_owner": null,
2416
+ "_store": {
2417
+ "validated": 0,
2418
+ },
2419
+ "key": null,
2420
+ "props": {
2421
+ "children": {
2422
+ "$$typeof": Symbol(react.transitional.element),
2423
+ "_debugInfo": null,
2424
+ "_debugStack": [Error: react-stack-top-frame],
2425
+ "_debugTask": null,
2426
+ "_owner": null,
2427
+ "_store": {
2428
+ "validated": 1,
2429
+ },
2430
+ "key": null,
2431
+ "props": {
2432
+ "message": {
2433
+ "content": "Loading...",
2434
+ "id": "loading-30",
2435
+ "resolvedContent": "Successfully loaded!",
2436
+ "status": "success",
2437
+ "timestamp": 2025-01-01T00:00:00.000Z,
2438
+ "type": "loading",
2439
+ },
2440
+ },
2441
+ "ref": null,
2442
+ "type": [Function: LoadingMessage],
2443
+ },
2444
+ "levelColors": undefined,
2445
+ "theme": {
2446
+ "colors": {
2447
+ "background": "#111827",
2448
+ "error": "#EF4444",
2449
+ "foreground": "#F9FAFB",
2450
+ "muted": "#6B7280",
2451
+ "primary": "#3B82F6",
2452
+ "secondary": "#8B5CF6",
2453
+ "success": "#22C55E",
2454
+ "warning": "#F59E0B",
2455
+ },
2456
+ "errorHighlight": {
2457
+ "background": "#EF444425",
2458
+ "border": "#EF4444",
2459
+ "gutterBackground": "#EF444440",
2460
+ },
2461
+ "file": {
2462
+ "background": "#3B82F615",
2463
+ "border": "#3B82F6",
2464
+ "headerBackground": "#3B82F625",
2465
+ "headerText": "#F9FAFB",
2466
+ },
2467
+ "filter": {
2468
+ "activeLevel": "#3B82F6",
2469
+ "background": "#1F293780",
2470
+ "border": "#3B82F6",
2471
+ "cursor": "#3B82F6",
2472
+ "inactiveLevel": "#4B5563",
2473
+ "inputBackground": "#1F2937",
2474
+ "inputPlaceholder": "#6B7280",
2475
+ "inputText": "#F9FAFB",
2476
+ "text": "#E5E7EB",
2477
+ "textDim": "#6B7280",
2478
+ },
2479
+ "group": {
2480
+ "background": "#6B728010",
2481
+ "border": "#6B7280",
2482
+ "headerText": "#E5E7EB",
2483
+ "icon": "#9CA3AF",
2484
+ },
2485
+ "header": {
2486
+ "background": undefined,
2487
+ "border": "#374151",
2488
+ "text": "#F9FAFB",
2489
+ },
2490
+ "help": {
2491
+ "background": "#1F2937",
2492
+ "border": "#3B82F6",
2493
+ "category": "#3B82F6",
2494
+ "description": "#E5E7EB",
2495
+ "hint": "#6B7280",
2496
+ "key": "#F59E0B",
2497
+ "title": "#F9FAFB",
2498
+ },
2499
+ "logLevels": {
2500
+ "debug": {
2501
+ "background": "#8B5CF615",
2502
+ "border": "#8B5CF6",
2503
+ },
2504
+ "error": {
2505
+ "background": "#EF444415",
2506
+ "border": "#EF4444",
2507
+ },
2508
+ "fatal": {
2509
+ "background": "#DC262625",
2510
+ "border": "#DC2626",
2511
+ "text": "#FCA5A5",
2512
+ },
2513
+ "log": {
2514
+ "background": "#3B82F615",
2515
+ "border": "#3B82F6",
2516
+ },
2517
+ "verbose": {
2518
+ "background": "#6B728015",
2519
+ "border": "#6B7280",
2520
+ },
2521
+ "warn": {
2522
+ "background": "#F59E0B15",
2523
+ "border": "#F59E0B",
2524
+ },
2525
+ },
2526
+ "name": "dark",
2527
+ "progress": {
2528
+ "background": "#3B82F615",
2529
+ "barEmpty": "#374151",
2530
+ "barFilled": "#3B82F6",
2531
+ "border": "#3B82F6",
2532
+ "complete": "#22C55E",
2533
+ "completeBackground": "#22C55E15",
2534
+ "failed": "#EF4444",
2535
+ "failedBackground": "#EF444415",
2536
+ "text": "#E5E7EB",
2537
+ "textDim": "#9CA3AF",
2538
+ },
2539
+ "prompt": {
2540
+ "border": "#374151",
2541
+ "buttonBackground": "#374151",
2542
+ "buttonSelectedBackground": "#1F2937",
2543
+ "cancelButton": "#EF4444",
2544
+ "confirmButton": "#22C55E",
2545
+ "focusBorder": "#3B82F6",
2546
+ "inputBackground": "#1F2937",
2547
+ "inputBorder": "#3B82F6",
2548
+ "inputCursor": "#3B82F6",
2549
+ "inputPlaceholder": "#6B7280",
2550
+ "inputText": "#F9FAFB",
2551
+ "optionSelected": "#3B82F6",
2552
+ "optionSelectedBackground": "#1E3A5F",
2553
+ "optionText": "#E5E7EB",
2554
+ "optionTextDim": "#9CA3AF",
2555
+ "question": "#F9FAFB",
2556
+ },
2557
+ "separator": {
2558
+ "line": "#374151",
2559
+ "text": "#6B7280",
2560
+ },
2561
+ "sidebar": {
2562
+ "background": undefined,
2563
+ "badge": "#3B82F6",
2564
+ "border": "#374151",
2565
+ "focusBorder": "#3B82F6",
2566
+ "hoverBackground": "#374151",
2567
+ "selectedBackground": "#1F293780",
2568
+ "text": "#E5E7EB",
2569
+ "textDim": "#6B7280",
2570
+ },
2571
+ "statusIndicators": {
2572
+ "fail": {
2573
+ "color": "#EF4444",
2574
+ "icon": "✗",
2575
+ },
2576
+ "pending": {
2577
+ "color": "#F59E0B",
2578
+ "icon": "◐",
2579
+ },
2580
+ "static": {
2581
+ "color": "#3B82F6",
2582
+ "icon": "●",
2583
+ },
2584
+ "success": {
2585
+ "color": "#22C55E",
2586
+ "icon": "✓",
2587
+ },
2588
+ "waiting": {
2589
+ "color": "#6B7280",
2590
+ "icon": "○",
2591
+ },
2592
+ },
2593
+ "table": {
2594
+ "background": "#3B82F615",
2595
+ "border": "#3B82F6",
2596
+ "cellText": "#E5E7EB",
2597
+ "headerText": "#F9FAFB",
2598
+ "separator": "#3B82F650",
2599
+ "title": "#F9FAFB",
2600
+ },
2601
+ },
2602
+ },
2603
+ "ref": null,
2604
+ "type": [Function: LoggerProvider],
2605
+ }
2606
+ `;
2607
+
2608
+ exports[`LoadingMessage success state should show resolved content when success 1`] = `
2609
+ {
2610
+ "$$typeof": Symbol(react.transitional.element),
2611
+ "_debugInfo": null,
2612
+ "_debugStack": [Error: react-stack-top-frame],
2613
+ "_debugTask": null,
2614
+ "_owner": null,
2615
+ "_store": {
2616
+ "validated": 0,
2617
+ },
2618
+ "key": null,
2619
+ "props": {
2620
+ "children": {
2621
+ "$$typeof": Symbol(react.transitional.element),
2622
+ "_debugInfo": null,
2623
+ "_debugStack": [Error: react-stack-top-frame],
2624
+ "_debugTask": null,
2625
+ "_owner": null,
2626
+ "_store": {
2627
+ "validated": 1,
2628
+ },
2629
+ "key": null,
2630
+ "props": {
2631
+ "message": {
2632
+ "content": "Original loading message",
2633
+ "id": "loading-31",
2634
+ "resolvedContent": "Operation completed successfully",
2635
+ "status": "success",
2636
+ "timestamp": 2025-01-01T00:00:00.000Z,
2637
+ "type": "loading",
2638
+ },
2639
+ },
2640
+ "ref": null,
2641
+ "type": [Function: LoadingMessage],
2642
+ },
2643
+ "levelColors": undefined,
2644
+ "theme": {
2645
+ "colors": {
2646
+ "background": "#111827",
2647
+ "error": "#EF4444",
2648
+ "foreground": "#F9FAFB",
2649
+ "muted": "#6B7280",
2650
+ "primary": "#3B82F6",
2651
+ "secondary": "#8B5CF6",
2652
+ "success": "#22C55E",
2653
+ "warning": "#F59E0B",
2654
+ },
2655
+ "errorHighlight": {
2656
+ "background": "#EF444425",
2657
+ "border": "#EF4444",
2658
+ "gutterBackground": "#EF444440",
2659
+ },
2660
+ "file": {
2661
+ "background": "#3B82F615",
2662
+ "border": "#3B82F6",
2663
+ "headerBackground": "#3B82F625",
2664
+ "headerText": "#F9FAFB",
2665
+ },
2666
+ "filter": {
2667
+ "activeLevel": "#3B82F6",
2668
+ "background": "#1F293780",
2669
+ "border": "#3B82F6",
2670
+ "cursor": "#3B82F6",
2671
+ "inactiveLevel": "#4B5563",
2672
+ "inputBackground": "#1F2937",
2673
+ "inputPlaceholder": "#6B7280",
2674
+ "inputText": "#F9FAFB",
2675
+ "text": "#E5E7EB",
2676
+ "textDim": "#6B7280",
2677
+ },
2678
+ "group": {
2679
+ "background": "#6B728010",
2680
+ "border": "#6B7280",
2681
+ "headerText": "#E5E7EB",
2682
+ "icon": "#9CA3AF",
2683
+ },
2684
+ "header": {
2685
+ "background": undefined,
2686
+ "border": "#374151",
2687
+ "text": "#F9FAFB",
2688
+ },
2689
+ "help": {
2690
+ "background": "#1F2937",
2691
+ "border": "#3B82F6",
2692
+ "category": "#3B82F6",
2693
+ "description": "#E5E7EB",
2694
+ "hint": "#6B7280",
2695
+ "key": "#F59E0B",
2696
+ "title": "#F9FAFB",
2697
+ },
2698
+ "logLevels": {
2699
+ "debug": {
2700
+ "background": "#8B5CF615",
2701
+ "border": "#8B5CF6",
2702
+ },
2703
+ "error": {
2704
+ "background": "#EF444415",
2705
+ "border": "#EF4444",
2706
+ },
2707
+ "fatal": {
2708
+ "background": "#DC262625",
2709
+ "border": "#DC2626",
2710
+ "text": "#FCA5A5",
2711
+ },
2712
+ "log": {
2713
+ "background": "#3B82F615",
2714
+ "border": "#3B82F6",
2715
+ },
2716
+ "verbose": {
2717
+ "background": "#6B728015",
2718
+ "border": "#6B7280",
2719
+ },
2720
+ "warn": {
2721
+ "background": "#F59E0B15",
2722
+ "border": "#F59E0B",
2723
+ },
2724
+ },
2725
+ "name": "dark",
2726
+ "progress": {
2727
+ "background": "#3B82F615",
2728
+ "barEmpty": "#374151",
2729
+ "barFilled": "#3B82F6",
2730
+ "border": "#3B82F6",
2731
+ "complete": "#22C55E",
2732
+ "completeBackground": "#22C55E15",
2733
+ "failed": "#EF4444",
2734
+ "failedBackground": "#EF444415",
2735
+ "text": "#E5E7EB",
2736
+ "textDim": "#9CA3AF",
2737
+ },
2738
+ "prompt": {
2739
+ "border": "#374151",
2740
+ "buttonBackground": "#374151",
2741
+ "buttonSelectedBackground": "#1F2937",
2742
+ "cancelButton": "#EF4444",
2743
+ "confirmButton": "#22C55E",
2744
+ "focusBorder": "#3B82F6",
2745
+ "inputBackground": "#1F2937",
2746
+ "inputBorder": "#3B82F6",
2747
+ "inputCursor": "#3B82F6",
2748
+ "inputPlaceholder": "#6B7280",
2749
+ "inputText": "#F9FAFB",
2750
+ "optionSelected": "#3B82F6",
2751
+ "optionSelectedBackground": "#1E3A5F",
2752
+ "optionText": "#E5E7EB",
2753
+ "optionTextDim": "#9CA3AF",
2754
+ "question": "#F9FAFB",
2755
+ },
2756
+ "separator": {
2757
+ "line": "#374151",
2758
+ "text": "#6B7280",
2759
+ },
2760
+ "sidebar": {
2761
+ "background": undefined,
2762
+ "badge": "#3B82F6",
2763
+ "border": "#374151",
2764
+ "focusBorder": "#3B82F6",
2765
+ "hoverBackground": "#374151",
2766
+ "selectedBackground": "#1F293780",
2767
+ "text": "#E5E7EB",
2768
+ "textDim": "#6B7280",
2769
+ },
2770
+ "statusIndicators": {
2771
+ "fail": {
2772
+ "color": "#EF4444",
2773
+ "icon": "✗",
2774
+ },
2775
+ "pending": {
2776
+ "color": "#F59E0B",
2777
+ "icon": "◐",
2778
+ },
2779
+ "static": {
2780
+ "color": "#3B82F6",
2781
+ "icon": "●",
2782
+ },
2783
+ "success": {
2784
+ "color": "#22C55E",
2785
+ "icon": "✓",
2786
+ },
2787
+ "waiting": {
2788
+ "color": "#6B7280",
2789
+ "icon": "○",
2790
+ },
2791
+ },
2792
+ "table": {
2793
+ "background": "#3B82F615",
2794
+ "border": "#3B82F6",
2795
+ "cellText": "#E5E7EB",
2796
+ "headerText": "#F9FAFB",
2797
+ "separator": "#3B82F650",
2798
+ "title": "#F9FAFB",
2799
+ },
2800
+ },
2801
+ },
2802
+ "ref": null,
2803
+ "type": [Function: LoggerProvider],
2804
+ }
2805
+ `;
2806
+
2807
+ exports[`LoadingMessage with timestamp should include timestamp in all states 1`] = `
2808
+ {
2809
+ "$$typeof": Symbol(react.transitional.element),
2810
+ "_debugInfo": null,
2811
+ "_debugStack": [Error: react-stack-top-frame],
2812
+ "_debugTask": null,
2813
+ "_owner": null,
2814
+ "_store": {
2815
+ "validated": 0,
2816
+ },
2817
+ "key": null,
2818
+ "props": {
2819
+ "children": {
2820
+ "$$typeof": Symbol(react.transitional.element),
2821
+ "_debugInfo": null,
2822
+ "_debugStack": [Error: react-stack-top-frame],
2823
+ "_debugTask": null,
2824
+ "_owner": null,
2825
+ "_store": {
2826
+ "validated": 1,
2827
+ },
2828
+ "key": null,
2829
+ "props": {
2830
+ "message": {
2831
+ "content": "Loading...",
2832
+ "id": "loading-35",
2833
+ "status": "loading",
2834
+ "timestamp": 2024-01-15T10:30:00.000Z,
2835
+ "type": "loading",
2836
+ },
2837
+ },
2838
+ "ref": null,
2839
+ "type": [Function: LoadingMessage],
2840
+ },
2841
+ "levelColors": undefined,
2842
+ "theme": {
2843
+ "colors": {
2844
+ "background": "#111827",
2845
+ "error": "#EF4444",
2846
+ "foreground": "#F9FAFB",
2847
+ "muted": "#6B7280",
2848
+ "primary": "#3B82F6",
2849
+ "secondary": "#8B5CF6",
2850
+ "success": "#22C55E",
2851
+ "warning": "#F59E0B",
2852
+ },
2853
+ "errorHighlight": {
2854
+ "background": "#EF444425",
2855
+ "border": "#EF4444",
2856
+ "gutterBackground": "#EF444440",
2857
+ },
2858
+ "file": {
2859
+ "background": "#3B82F615",
2860
+ "border": "#3B82F6",
2861
+ "headerBackground": "#3B82F625",
2862
+ "headerText": "#F9FAFB",
2863
+ },
2864
+ "filter": {
2865
+ "activeLevel": "#3B82F6",
2866
+ "background": "#1F293780",
2867
+ "border": "#3B82F6",
2868
+ "cursor": "#3B82F6",
2869
+ "inactiveLevel": "#4B5563",
2870
+ "inputBackground": "#1F2937",
2871
+ "inputPlaceholder": "#6B7280",
2872
+ "inputText": "#F9FAFB",
2873
+ "text": "#E5E7EB",
2874
+ "textDim": "#6B7280",
2875
+ },
2876
+ "group": {
2877
+ "background": "#6B728010",
2878
+ "border": "#6B7280",
2879
+ "headerText": "#E5E7EB",
2880
+ "icon": "#9CA3AF",
2881
+ },
2882
+ "header": {
2883
+ "background": undefined,
2884
+ "border": "#374151",
2885
+ "text": "#F9FAFB",
2886
+ },
2887
+ "help": {
2888
+ "background": "#1F2937",
2889
+ "border": "#3B82F6",
2890
+ "category": "#3B82F6",
2891
+ "description": "#E5E7EB",
2892
+ "hint": "#6B7280",
2893
+ "key": "#F59E0B",
2894
+ "title": "#F9FAFB",
2895
+ },
2896
+ "logLevels": {
2897
+ "debug": {
2898
+ "background": "#8B5CF615",
2899
+ "border": "#8B5CF6",
2900
+ },
2901
+ "error": {
2902
+ "background": "#EF444415",
2903
+ "border": "#EF4444",
2904
+ },
2905
+ "fatal": {
2906
+ "background": "#DC262625",
2907
+ "border": "#DC2626",
2908
+ "text": "#FCA5A5",
2909
+ },
2910
+ "log": {
2911
+ "background": "#3B82F615",
2912
+ "border": "#3B82F6",
2913
+ },
2914
+ "verbose": {
2915
+ "background": "#6B728015",
2916
+ "border": "#6B7280",
2917
+ },
2918
+ "warn": {
2919
+ "background": "#F59E0B15",
2920
+ "border": "#F59E0B",
2921
+ },
2922
+ },
2923
+ "name": "dark",
2924
+ "progress": {
2925
+ "background": "#3B82F615",
2926
+ "barEmpty": "#374151",
2927
+ "barFilled": "#3B82F6",
2928
+ "border": "#3B82F6",
2929
+ "complete": "#22C55E",
2930
+ "completeBackground": "#22C55E15",
2931
+ "failed": "#EF4444",
2932
+ "failedBackground": "#EF444415",
2933
+ "text": "#E5E7EB",
2934
+ "textDim": "#9CA3AF",
2935
+ },
2936
+ "prompt": {
2937
+ "border": "#374151",
2938
+ "buttonBackground": "#374151",
2939
+ "buttonSelectedBackground": "#1F2937",
2940
+ "cancelButton": "#EF4444",
2941
+ "confirmButton": "#22C55E",
2942
+ "focusBorder": "#3B82F6",
2943
+ "inputBackground": "#1F2937",
2944
+ "inputBorder": "#3B82F6",
2945
+ "inputCursor": "#3B82F6",
2946
+ "inputPlaceholder": "#6B7280",
2947
+ "inputText": "#F9FAFB",
2948
+ "optionSelected": "#3B82F6",
2949
+ "optionSelectedBackground": "#1E3A5F",
2950
+ "optionText": "#E5E7EB",
2951
+ "optionTextDim": "#9CA3AF",
2952
+ "question": "#F9FAFB",
2953
+ },
2954
+ "separator": {
2955
+ "line": "#374151",
2956
+ "text": "#6B7280",
2957
+ },
2958
+ "sidebar": {
2959
+ "background": undefined,
2960
+ "badge": "#3B82F6",
2961
+ "border": "#374151",
2962
+ "focusBorder": "#3B82F6",
2963
+ "hoverBackground": "#374151",
2964
+ "selectedBackground": "#1F293780",
2965
+ "text": "#E5E7EB",
2966
+ "textDim": "#6B7280",
2967
+ },
2968
+ "statusIndicators": {
2969
+ "fail": {
2970
+ "color": "#EF4444",
2971
+ "icon": "✗",
2972
+ },
2973
+ "pending": {
2974
+ "color": "#F59E0B",
2975
+ "icon": "◐",
2976
+ },
2977
+ "static": {
2978
+ "color": "#3B82F6",
2979
+ "icon": "●",
2980
+ },
2981
+ "success": {
2982
+ "color": "#22C55E",
2983
+ "icon": "✓",
2984
+ },
2985
+ "waiting": {
2986
+ "color": "#6B7280",
2987
+ "icon": "○",
2988
+ },
2989
+ },
2990
+ "table": {
2991
+ "background": "#3B82F615",
2992
+ "border": "#3B82F6",
2993
+ "cellText": "#E5E7EB",
2994
+ "headerText": "#F9FAFB",
2995
+ "separator": "#3B82F650",
2996
+ "title": "#F9FAFB",
2997
+ },
2998
+ },
2999
+ },
3000
+ "ref": null,
3001
+ "type": [Function: LoggerProvider],
3002
+ }
3003
+ `;