@ytspar/devbar 1.0.0-canary.7d77a97 → 1.0.0-canary.900165d
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/dist/GlobalDevBar.d.ts +49 -2
- package/dist/GlobalDevBar.js +549 -4
- package/dist/accessibility.d.ts +84 -0
- package/dist/accessibility.js +155 -0
- package/dist/constants.d.ts +91 -0
- package/dist/constants.js +96 -0
- package/dist/debug.d.ts +39 -0
- package/dist/debug.js +92 -0
- package/dist/index.d.ts +11 -5
- package/dist/index.js +19 -7
- package/dist/lazy/index.d.ts +6 -0
- package/dist/lazy/index.js +6 -0
- package/dist/lazy/lazyHtml2Canvas.d.ts +29 -0
- package/dist/lazy/lazyHtml2Canvas.js +37 -0
- package/dist/network.d.ts +92 -0
- package/dist/network.js +176 -0
- package/dist/presets.d.ts +57 -0
- package/dist/presets.js +133 -0
- package/dist/storage.d.ts +83 -0
- package/dist/storage.js +182 -0
- package/dist/types.d.ts +26 -1
- package/package.json +1 -1
package/dist/GlobalDevBar.d.ts
CHANGED
|
@@ -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
|
|
11
|
-
|
|
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,6 +50,8 @@ 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;
|
|
51
56
|
private lastDotPosition;
|
|
52
57
|
private reconnectTimeout;
|
|
@@ -60,7 +65,14 @@ export declare class GlobalDevBar {
|
|
|
60
65
|
private keydownHandler;
|
|
61
66
|
private fcpObserver;
|
|
62
67
|
private lcpObserver;
|
|
68
|
+
private clsObserver;
|
|
69
|
+
private inpObserver;
|
|
63
70
|
private destroyed;
|
|
71
|
+
private themeMode;
|
|
72
|
+
private themeMediaQuery;
|
|
73
|
+
private themeMediaHandler;
|
|
74
|
+
private compactMode;
|
|
75
|
+
private showSettingsPopover;
|
|
64
76
|
private overlayElement;
|
|
65
77
|
constructor(options?: GlobalDevBarOptions);
|
|
66
78
|
/**
|
|
@@ -113,6 +125,28 @@ export declare class GlobalDevBar {
|
|
|
113
125
|
private setupBreakpointDetection;
|
|
114
126
|
private setupPerformanceMonitoring;
|
|
115
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;
|
|
116
150
|
private copyPathToClipboard;
|
|
117
151
|
private handleScreenshot;
|
|
118
152
|
private handleDesignReview;
|
|
@@ -177,6 +211,19 @@ export declare class GlobalDevBar {
|
|
|
177
211
|
* Render key-value pairs as rows with ellipsis overflow and hover tooltip
|
|
178
212
|
*/
|
|
179
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;
|
|
180
227
|
private renderCollapsed;
|
|
181
228
|
private renderExpanded;
|
|
182
229
|
/**
|