@buoy-gg/console 7.0.26 → 7.0.27
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/lib/commonjs/components/ConsoleLogList.js +10 -9
- package/lib/commonjs/components/ConsoleLogList.js.map +1 -1
- package/lib/commonjs/devtools/ConsoleBody.js +14 -12
- package/lib/commonjs/devtools/ConsoleBody.js.map +1 -1
- package/lib/commonjs/devtools/ConsoleHeader.js +14 -14
- package/lib/commonjs/devtools/ConsoleHeader.js.map +1 -1
- package/lib/commonjs/devtools/ConsoleView.js +3 -1
- package/lib/commonjs/devtools/ConsoleView.js.map +1 -1
- package/lib/commonjs/devtools/theme.js +15 -20
- package/lib/commonjs/devtools/theme.js.map +1 -1
- package/lib/module/components/ConsoleLogList.js +11 -10
- package/lib/module/components/ConsoleLogList.js.map +1 -1
- package/lib/module/devtools/ConsoleBody.js +15 -13
- package/lib/module/devtools/ConsoleBody.js.map +1 -1
- package/lib/module/devtools/ConsoleHeader.js +15 -15
- package/lib/module/devtools/ConsoleHeader.js.map +1 -1
- package/lib/module/devtools/ConsoleView.js +3 -1
- package/lib/module/devtools/ConsoleView.js.map +1 -1
- package/lib/module/devtools/theme.js +16 -20
- package/lib/module/devtools/theme.js.map +1 -1
- package/lib/typescript/devtools/theme.d.ts +6 -9
- package/lib/typescript/devtools/theme.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/ConsoleLogList.tsx +11 -10
- package/src/devtools/ConsoleBody.tsx +15 -12
- package/src/devtools/ConsoleHeader.tsx +15 -15
- package/src/devtools/ConsoleView.tsx +3 -1
- package/src/devtools/theme.ts +13 -16
|
@@ -11,7 +11,7 @@ import { View, TextInput, TouchableOpacity, StyleSheet } from "react-native";
|
|
|
11
11
|
import {
|
|
12
12
|
ModalHeader,
|
|
13
13
|
TabSelector,
|
|
14
|
-
|
|
14
|
+
night,
|
|
15
15
|
Search,
|
|
16
16
|
Filter,
|
|
17
17
|
Trash2,
|
|
@@ -50,11 +50,11 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
|
|
|
50
50
|
<ModalHeader.Content title="" noMargin>
|
|
51
51
|
{c.searchActive ? (
|
|
52
52
|
<View style={styles.searchContainer}>
|
|
53
|
-
<Search size={14} color={
|
|
53
|
+
<Search size={14} color={night.color.textSecondary} />
|
|
54
54
|
<TextInput
|
|
55
55
|
style={styles.searchInput}
|
|
56
56
|
placeholder="Filter logs… /regex/ -exclude"
|
|
57
|
-
placeholderTextColor={
|
|
57
|
+
placeholderTextColor={night.color.placeholder}
|
|
58
58
|
value={c.query}
|
|
59
59
|
onChangeText={c.setQuery}
|
|
60
60
|
autoCapitalize="none"
|
|
@@ -64,7 +64,7 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
|
|
|
64
64
|
/>
|
|
65
65
|
{c.query.length > 0 ? (
|
|
66
66
|
<TouchableOpacity onPress={() => c.setQuery("")} style={styles.searchClear}>
|
|
67
|
-
<X size={14} color={
|
|
67
|
+
<X size={14} color={night.color.textSecondary} />
|
|
68
68
|
</TouchableOpacity>
|
|
69
69
|
) : null}
|
|
70
70
|
</View>
|
|
@@ -83,7 +83,7 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
|
|
|
83
83
|
style={[styles.actionBtn, c.searchActive && styles.actionBtnActive]}
|
|
84
84
|
accessibilityLabel="Search logs"
|
|
85
85
|
>
|
|
86
|
-
<Search size={14} color={c.searchActive ?
|
|
86
|
+
<Search size={14} color={c.searchActive ? night.color.accent : night.color.textSecondary} />
|
|
87
87
|
</TouchableOpacity>
|
|
88
88
|
|
|
89
89
|
<TouchableOpacity
|
|
@@ -91,7 +91,7 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
|
|
|
91
91
|
style={[styles.actionBtn, c.isLevelCustom && styles.actionBtnActive]}
|
|
92
92
|
accessibilityLabel="Filters"
|
|
93
93
|
>
|
|
94
|
-
<Filter size={14} color={c.isLevelCustom ?
|
|
94
|
+
<Filter size={14} color={c.isLevelCustom ? night.color.accent : night.color.textSecondary} />
|
|
95
95
|
</TouchableOpacity>
|
|
96
96
|
|
|
97
97
|
<TouchableOpacity
|
|
@@ -100,7 +100,7 @@ export function ConsoleHeader({ c, onBack }: ConsoleHeaderProps) {
|
|
|
100
100
|
style={[styles.actionBtn, !hasRows && styles.actionBtnDisabled]}
|
|
101
101
|
accessibilityLabel="Clear console"
|
|
102
102
|
>
|
|
103
|
-
<Trash2 size={14} color={hasRows ?
|
|
103
|
+
<Trash2 size={14} color={hasRows ? night.color.textSecondary : night.color.textTertiary} />
|
|
104
104
|
</TouchableOpacity>
|
|
105
105
|
</ModalHeader.Actions>
|
|
106
106
|
</ModalHeader>
|
|
@@ -112,15 +112,15 @@ const styles = StyleSheet.create({
|
|
|
112
112
|
width: 32,
|
|
113
113
|
height: 32,
|
|
114
114
|
borderRadius: 8,
|
|
115
|
-
backgroundColor:
|
|
115
|
+
backgroundColor: night.color.buttonSurface,
|
|
116
116
|
borderWidth: 1,
|
|
117
|
-
borderColor:
|
|
117
|
+
borderColor: night.color.border,
|
|
118
118
|
alignItems: "center",
|
|
119
119
|
justifyContent: "center",
|
|
120
120
|
},
|
|
121
121
|
actionBtnActive: {
|
|
122
|
-
backgroundColor:
|
|
123
|
-
borderColor:
|
|
122
|
+
backgroundColor: night.color.accentSoft,
|
|
123
|
+
borderColor: night.color.accentBorderStrong,
|
|
124
124
|
},
|
|
125
125
|
actionBtnDisabled: {
|
|
126
126
|
opacity: 0.55,
|
|
@@ -128,16 +128,16 @@ const styles = StyleSheet.create({
|
|
|
128
128
|
searchContainer: {
|
|
129
129
|
flexDirection: "row",
|
|
130
130
|
alignItems: "center",
|
|
131
|
-
backgroundColor:
|
|
132
|
-
borderRadius:
|
|
131
|
+
backgroundColor: night.color.surfaceElevated,
|
|
132
|
+
borderRadius: night.radius.row,
|
|
133
133
|
borderWidth: 1,
|
|
134
|
-
borderColor:
|
|
134
|
+
borderColor: night.color.border,
|
|
135
135
|
paddingHorizontal: 12,
|
|
136
136
|
paddingVertical: 5,
|
|
137
137
|
},
|
|
138
138
|
searchInput: {
|
|
139
139
|
flex: 1,
|
|
140
|
-
color:
|
|
140
|
+
color: night.color.text,
|
|
141
141
|
fontSize: 13,
|
|
142
142
|
marginLeft: 6,
|
|
143
143
|
paddingVertical: 2,
|
|
@@ -29,7 +29,9 @@ export function ConsoleView() {
|
|
|
29
29
|
const styles = StyleSheet.create({
|
|
30
30
|
container: {
|
|
31
31
|
flex: 1,
|
|
32
|
-
|
|
32
|
+
// Transparent so the desktop workbench's hoisted sky (one field spanning
|
|
33
|
+
// sidebar + panel) shows through — the shell paints its base beneath it.
|
|
34
|
+
backgroundColor: "transparent",
|
|
33
35
|
},
|
|
34
36
|
headerBar: {
|
|
35
37
|
paddingHorizontal: 12,
|
package/src/devtools/theme.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Console palette — a dark theme
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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 {
|
|
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) —
|
|
72
|
+
/** Dark theme (active) — night chrome, classic DevTools data colours. */
|
|
76
73
|
export const darkTheme: ConsoleColors = {
|
|
77
|
-
baseContainer: "#0A0A0C", //
|
|
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:
|
|
81
|
-
inputBackground:
|
|
82
|
-
menuBackground:
|
|
83
|
-
onSurface:
|
|
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:
|
|
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)
|