@buoy-gg/console 7.0.26 → 7.0.28

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 (34) hide show
  1. package/lib/commonjs/components/ConsoleLogList.js +10 -9
  2. package/lib/commonjs/components/ConsoleLogList.js.map +1 -1
  3. package/lib/commonjs/devtools/ConsoleBody.js +14 -12
  4. package/lib/commonjs/devtools/ConsoleBody.js.map +1 -1
  5. package/lib/commonjs/devtools/ConsoleHeader.js +14 -14
  6. package/lib/commonjs/devtools/ConsoleHeader.js.map +1 -1
  7. package/lib/commonjs/devtools/ConsoleMessageRow.js +31 -21
  8. package/lib/commonjs/devtools/ConsoleMessageRow.js.map +1 -1
  9. package/lib/commonjs/devtools/ConsoleView.js +3 -1
  10. package/lib/commonjs/devtools/ConsoleView.js.map +1 -1
  11. package/lib/commonjs/devtools/theme.js +15 -20
  12. package/lib/commonjs/devtools/theme.js.map +1 -1
  13. package/lib/module/components/ConsoleLogList.js +11 -10
  14. package/lib/module/components/ConsoleLogList.js.map +1 -1
  15. package/lib/module/devtools/ConsoleBody.js +15 -13
  16. package/lib/module/devtools/ConsoleBody.js.map +1 -1
  17. package/lib/module/devtools/ConsoleHeader.js +15 -15
  18. package/lib/module/devtools/ConsoleHeader.js.map +1 -1
  19. package/lib/module/devtools/ConsoleMessageRow.js +31 -21
  20. package/lib/module/devtools/ConsoleMessageRow.js.map +1 -1
  21. package/lib/module/devtools/ConsoleView.js +3 -1
  22. package/lib/module/devtools/ConsoleView.js.map +1 -1
  23. package/lib/module/devtools/theme.js +16 -20
  24. package/lib/module/devtools/theme.js.map +1 -1
  25. package/lib/typescript/devtools/ConsoleMessageRow.d.ts.map +1 -1
  26. package/lib/typescript/devtools/theme.d.ts +6 -9
  27. package/lib/typescript/devtools/theme.d.ts.map +1 -1
  28. package/package.json +2 -2
  29. package/src/components/ConsoleLogList.tsx +11 -10
  30. package/src/devtools/ConsoleBody.tsx +15 -12
  31. package/src/devtools/ConsoleHeader.tsx +15 -15
  32. package/src/devtools/ConsoleMessageRow.tsx +42 -20
  33. package/src/devtools/ConsoleView.tsx +3 -1
  34. package/src/devtools/theme.ts +13 -16
@@ -1,12 +1,9 @@
1
1
  /**
2
- * Console palette — a dark theme matched to Buoy's shared design tokens
3
- * (`macOSColors` in @buoy-gg/shared-ui) so the console reads as part of the
4
- * tool suite, tuned for contrast per WCAG AA:
5
- * - body text #F5F5F7 on #0A0A0C ≈ 17:1
6
- * - secondary #A1A1A6 on #0A0A0C ≈ 7:1
7
- * - links #40CCFF on #0A0A0C ≈ 9:1
8
- * - dividers / nesting guides lightened to ~#3A3A40 so lines are clearly
9
- * visible against the near-black surface.
2
+ * Console palette — a dark theme whose CHROME entries (surfaces, dividers,
3
+ * default/secondary text) come from Buoy's `night` tokens so the console reads
4
+ * as part of the night suite, while the Chrome-DevTools DATA colours (level
5
+ * rows, value types, links, ANSI) stay classic — they tell the user something
6
+ * about the logged data.
10
7
  * `lightTheme` below holds the exact DevTools light tokens and `consoleTheme`
11
8
  * picks between the two from the host app's surface. Every shipped theme is
12
9
  * dark today, so the light branch is currently unreachable — it is kept because
@@ -17,7 +14,7 @@
17
14
  */
18
15
 
19
16
  import { Platform } from "react-native";
20
- import { macOSColors } from "@buoy-gg/shared-ui";
17
+ import { night } from "@buoy-gg/shared-ui";
21
18
 
22
19
  /**
23
20
  * Monospace font. On the desktop dashboard (react-native-web) the generic
@@ -72,18 +69,18 @@ export const lightTheme: ConsoleColors = {
72
69
  valuePreview: "rgba(31,31,31,0.62)",
73
70
  };
74
71
 
75
- /** Dark theme (active) — matched to Buoy macOSColors, contrast-tuned. */
72
+ /** Dark theme (active) — night chrome, classic DevTools data colours. */
76
73
  export const darkTheme: ConsoleColors = {
77
- baseContainer: "#0A0A0C", // macOSColors.background.base
74
+ baseContainer: "#0A0A0C", // desktop inline shell base (modal path is transparent)
78
75
  surfaceError: "rgba(255,69,58,0.15)", // semantic.errorBackground
79
76
  surfaceYellow: "rgba(255,235,59,0.13)", // semantic.warningBackground
80
- divider: "#3A3A40", // lightened from border.default (#2D2D2F) for visible lines
81
- inputBackground: "#26262A", // background.input
82
- menuBackground: "#1A1A1C", // background.card
83
- onSurface: "#F5F5F7", // text.primary (~17:1)
77
+ divider: night.color.fillTertiary, // row hairlines + nesting guides (strong enough to stay visible)
78
+ inputBackground: night.color.surfaceElevated,
79
+ menuBackground: night.color.surface,
80
+ onSurface: night.color.text,
84
81
  onSurfaceYellow: "#FFE9A3", // light warm yellow on dark warning row
85
82
  onErrorContainer: "#FFB4AB", // light red on dark error row
86
- tokenSubtle: "#A1A1A6", // text.secondary (~7:1 — timestamps, previews)
83
+ tokenSubtle: night.color.textSecondary, // timestamps, previews
87
84
  primary: "#40CCFF", // semantic.infoLight (links, ~9:1)
88
85
  valueNumber: "#FF9F1C", // orange (number + boolean)
89
86
  valueString: "#7EE787", // green (string/regexp/symbol)