@ytspar/devbar 1.0.0-canary.92db425 → 1.0.0-canary.bf42899

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.
@@ -7,8 +7,9 @@
7
7
  * This is a vanilla JS replacement for the React-based GlobalDevBar component
8
8
  * to avoid React dependency conflicts in host applications.
9
9
  */
10
- import type { ConsoleLog, SweetlinkCommand, OutlineNode, PageSchema, GlobalDevBarOptions, DevBarControl } from './types.js';
11
- export type { ConsoleLog, SweetlinkCommand, OutlineNode, PageSchema, GlobalDevBarOptions, DevBarControl };
10
+ import { getThemeColors } from './constants.js';
11
+ import type { ConsoleLog, DebugConfig, DevBarControl, GlobalDevBarOptions, OutlineNode, PageSchema, SweetlinkCommand, ThemeMode } from './types.js';
12
+ export type { ConsoleLog, DebugConfig, SweetlinkCommand, OutlineNode, PageSchema, GlobalDevBarOptions, DevBarControl, ThemeMode, };
12
13
  interface EarlyConsoleCapture {
13
14
  errorCount: number;
14
15
  warningCount: number;
@@ -25,6 +26,8 @@ declare const earlyConsoleCapture: EarlyConsoleCapture;
25
26
  export declare class GlobalDevBar {
26
27
  private static customControls;
27
28
  private options;
29
+ private debugConfig;
30
+ private debug;
28
31
  private container;
29
32
  private ws;
30
33
  private consoleLogs;
@@ -47,7 +50,10 @@ export declare class GlobalDevBar {
47
50
  private breakpointInfo;
48
51
  private perfStats;
49
52
  private lcpValue;
53
+ private clsValue;
54
+ private inpValue;
50
55
  private reconnectAttempts;
56
+ private lastDotPosition;
51
57
  private reconnectTimeout;
52
58
  private screenshotTimeout;
53
59
  private copiedPathTimeout;
@@ -59,7 +65,14 @@ export declare class GlobalDevBar {
59
65
  private keydownHandler;
60
66
  private fcpObserver;
61
67
  private lcpObserver;
68
+ private clsObserver;
69
+ private inpObserver;
62
70
  private destroyed;
71
+ private themeMode;
72
+ private themeMediaQuery;
73
+ private themeMediaHandler;
74
+ private compactMode;
75
+ private showSettingsPopover;
63
76
  private overlayElement;
64
77
  constructor(options?: GlobalDevBarOptions);
65
78
  /**
@@ -94,6 +107,10 @@ export declare class GlobalDevBar {
94
107
  * Initialize and mount the devbar
95
108
  */
96
109
  init(): void;
110
+ /**
111
+ * Get the current position
112
+ */
113
+ getPosition(): string;
97
114
  /**
98
115
  * Destroy the devbar and cleanup
99
116
  */
@@ -108,6 +125,28 @@ export declare class GlobalDevBar {
108
125
  private setupBreakpointDetection;
109
126
  private setupPerformanceMonitoring;
110
127
  private setupKeyboardShortcuts;
128
+ private setupTheme;
129
+ private loadCompactMode;
130
+ /**
131
+ * Get the current theme mode
132
+ */
133
+ getThemeMode(): ThemeMode;
134
+ /**
135
+ * Set the theme mode
136
+ */
137
+ setThemeMode(mode: ThemeMode): void;
138
+ /**
139
+ * Get the current effective theme colors
140
+ */
141
+ getColors(): ReturnType<typeof getThemeColors>;
142
+ /**
143
+ * Toggle compact mode
144
+ */
145
+ toggleCompactMode(): void;
146
+ /**
147
+ * Check if compact mode is enabled
148
+ */
149
+ isCompactMode(): boolean;
111
150
  private copyPathToClipboard;
112
151
  private handleScreenshot;
113
152
  private handleDesignReview;
@@ -172,6 +211,19 @@ export declare class GlobalDevBar {
172
211
  * Render key-value pairs as rows with ellipsis overflow and hover tooltip
173
212
  */
174
213
  private renderKeyValueItems;
214
+ /**
215
+ * Render compact mode - single row with essential controls only
216
+ * Shows: connection dot, error/warn badges, screenshot button, settings gear
217
+ */
218
+ private renderCompact;
219
+ /**
220
+ * Create the settings gear button
221
+ */
222
+ private createSettingsButton;
223
+ /**
224
+ * Render the settings popover
225
+ */
226
+ private renderSettingsPopover;
175
227
  private renderCollapsed;
176
228
  private renderExpanded;
177
229
  /**
@@ -179,6 +231,14 @@ export declare class GlobalDevBar {
179
231
  */
180
232
  private createConsoleBadge;
181
233
  private createScreenshotButton;
234
+ /**
235
+ * Get the tooltip text for the screenshot button based on current state
236
+ */
237
+ private getScreenshotTooltip;
238
+ /**
239
+ * Get the tooltip text for the AI review button based on current state
240
+ */
241
+ private getAIReviewTooltip;
182
242
  private createAIReviewButton;
183
243
  private createOutlineButton;
184
244
  private createSchemaButton;