@ytspar/devbar 1.0.0-canary.45bdaca → 1.0.0-canary.4844c3c
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/README.md +4 -0
- package/dist/GlobalDevBar.d.ts +107 -257
- package/dist/GlobalDevBar.d.ts.map +1 -1
- package/dist/GlobalDevBar.js +71 -3431
- package/dist/GlobalDevBar.js.map +1 -1
- package/dist/constants.d.ts +4 -7
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -103
- package/dist/constants.js.map +1 -1
- package/dist/earlyConsoleCapture.d.ts +3 -31
- package/dist/earlyConsoleCapture.d.ts.map +1 -1
- package/dist/earlyConsoleCapture.js +3 -74
- package/dist/earlyConsoleCapture.js.map +1 -1
- package/dist/lazy/lazyHtml2Canvas.d.ts +4 -0
- package/dist/lazy/lazyHtml2Canvas.d.ts.map +1 -1
- package/dist/lazy/lazyHtml2Canvas.js.map +1 -1
- package/dist/modules/index.d.ts +15 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +14 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/keyboard.d.ts +15 -0
- package/dist/modules/keyboard.d.ts.map +1 -0
- package/dist/modules/keyboard.js +60 -0
- package/dist/modules/keyboard.js.map +1 -0
- package/dist/modules/performance.d.ts +26 -0
- package/dist/modules/performance.d.ts.map +1 -0
- package/dist/modules/performance.js +197 -0
- package/dist/modules/performance.js.map +1 -0
- package/dist/modules/rendering.d.ts +20 -0
- package/dist/modules/rendering.d.ts.map +1 -0
- package/dist/modules/rendering.js +1947 -0
- package/dist/modules/rendering.js.map +1 -0
- package/dist/modules/screenshot.d.ts +62 -0
- package/dist/modules/screenshot.d.ts.map +1 -0
- package/dist/modules/screenshot.js +325 -0
- package/dist/modules/screenshot.js.map +1 -0
- package/dist/modules/theme.d.ts +20 -0
- package/dist/modules/theme.d.ts.map +1 -0
- package/dist/modules/theme.js +60 -0
- package/dist/modules/theme.js.map +1 -0
- package/dist/modules/tooltips.d.ts +74 -0
- package/dist/modules/tooltips.d.ts.map +1 -0
- package/dist/modules/tooltips.js +553 -0
- package/dist/modules/tooltips.js.map +1 -0
- package/dist/modules/types.d.ts +118 -0
- package/dist/modules/types.d.ts.map +1 -0
- package/dist/modules/types.js +9 -0
- package/dist/modules/types.js.map +1 -0
- package/dist/modules/websocket.d.ts +16 -0
- package/dist/modules/websocket.d.ts.map +1 -0
- package/dist/modules/websocket.js +314 -0
- package/dist/modules/websocket.js.map +1 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -3
- package/dist/schema.js.map +1 -1
- package/dist/settings.d.ts +0 -2
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +1 -1
- package/dist/settings.js.map +1 -1
- package/dist/ui/icons.d.ts.map +1 -1
- package/dist/ui/icons.js.map +1 -1
- package/package.json +15 -13
package/README.md
CHANGED
|
@@ -15,6 +15,10 @@ Development toolbar with Sweetlink integration for browser-based development too
|
|
|
15
15
|
- **Page Schema**: View JSON-LD, Open Graph, and meta tag data
|
|
16
16
|
- **Sweetlink integration**: Real-time connection to dev server
|
|
17
17
|
|
|
18
|
+
## Requirements
|
|
19
|
+
|
|
20
|
+
This package is **ESM-only**. It requires `"type": "module"` in your `package.json` or an ESM-capable bundler (Vite, webpack, esbuild, etc.).
|
|
21
|
+
|
|
18
22
|
## Installation
|
|
19
23
|
|
|
20
24
|
```bash
|
package/dist/GlobalDevBar.d.ts
CHANGED
|
@@ -4,109 +4,126 @@
|
|
|
4
4
|
* A development toolbar that displays breakpoint info, performance stats,
|
|
5
5
|
* console error/warning counts, and provides screenshot capabilities via Sweetlink.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Framework-agnostic — no React, Vue, or other framework dependencies.
|
|
8
|
+
*
|
|
9
|
+
* Implementation is split across focused modules in ./modules/:
|
|
10
|
+
* - websocket.ts — WebSocket connection, reconnection, port scanning, message handling
|
|
11
|
+
* - screenshot.ts — Screenshot capture, design review, clipboard operations
|
|
12
|
+
* - rendering.ts — renderBar(), renderConsolePopup(), renderModal(), all DOM creation
|
|
13
|
+
* - performance.ts — setupPerformanceMonitoring(), FCP/LCP/CLS/INP observers
|
|
14
|
+
* - theme.ts — setupTheme(), toggleTheme(), theme media query handling
|
|
15
|
+
* - keyboard.ts — setupKeyboardShortcuts(), handleKeydown()
|
|
16
|
+
* - tooltips.ts — tooltip creation, positioning, and management helpers
|
|
9
17
|
*/
|
|
10
18
|
import { getThemeColors } from './constants.js';
|
|
19
|
+
import { DebugLogger } from './debug.js';
|
|
20
|
+
import { type DevBarSettings, type SettingsManager } from './settings.js';
|
|
11
21
|
import type { ConsoleLog, DebugConfig, DevBarControl, GlobalDevBarOptions, OutlineNode, PageSchema, SweetlinkCommand, ThemeMode } from './types.js';
|
|
22
|
+
import { ConsoleCapture } from '@ytspar/sweetlink/browser/consoleCapture';
|
|
12
23
|
export type { ConsoleLog, DebugConfig, SweetlinkCommand, OutlineNode, PageSchema, GlobalDevBarOptions, DevBarControl, ThemeMode, };
|
|
13
24
|
export type { DevBarPosition, DevBarSettings, MetricsVisibility } from './settings.js';
|
|
14
25
|
export { ACCENT_COLOR_PRESETS, DEFAULT_SETTINGS, getSettingsManager } from './settings.js';
|
|
15
|
-
|
|
16
|
-
interface EarlyConsoleCapture {
|
|
17
|
-
errorCount: number;
|
|
18
|
-
warningCount: number;
|
|
19
|
-
infoCount: number;
|
|
20
|
-
logs: ConsoleLog[];
|
|
21
|
-
originalConsole: {
|
|
22
|
-
log: typeof console.log;
|
|
23
|
-
error: typeof console.error;
|
|
24
|
-
warn: typeof console.warn;
|
|
25
|
-
info: typeof console.info;
|
|
26
|
-
} | null;
|
|
27
|
-
isPatched: boolean;
|
|
28
|
-
listeners: LogChangeListener[];
|
|
29
|
-
addListener: (listener: LogChangeListener) => void;
|
|
30
|
-
removeListener: (listener: LogChangeListener) => void;
|
|
31
|
-
}
|
|
32
|
-
declare const earlyConsoleCapture: EarlyConsoleCapture;
|
|
26
|
+
declare const consoleCapture: ConsoleCapture;
|
|
33
27
|
export declare class GlobalDevBar {
|
|
34
28
|
private static customControls;
|
|
35
|
-
|
|
29
|
+
options: Required<Omit<GlobalDevBarOptions, 'sizeOverrides' | 'debug'>> & Pick<GlobalDevBarOptions, 'sizeOverrides'>;
|
|
36
30
|
private debugConfig;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
31
|
+
debug: DebugLogger;
|
|
32
|
+
container: HTMLDivElement | null;
|
|
33
|
+
ws: WebSocket | null;
|
|
34
|
+
consoleLogs: ConsoleLog[];
|
|
35
|
+
sweetlinkConnected: boolean;
|
|
36
|
+
collapsed: boolean;
|
|
37
|
+
capturing: boolean;
|
|
38
|
+
copiedToClipboard: boolean;
|
|
39
|
+
copiedPath: boolean;
|
|
40
|
+
lastScreenshot: string | null;
|
|
41
|
+
designReviewInProgress: boolean;
|
|
42
|
+
lastDesignReview: string | null;
|
|
43
|
+
designReviewError: string | null;
|
|
44
|
+
showDesignReviewConfirm: boolean;
|
|
45
|
+
apiKeyStatus: {
|
|
46
|
+
configured: boolean;
|
|
47
|
+
model?: string;
|
|
48
|
+
pricing?: {
|
|
49
|
+
input: number;
|
|
50
|
+
output: number;
|
|
51
|
+
};
|
|
52
|
+
} | null;
|
|
53
|
+
lastOutline: string | null;
|
|
54
|
+
lastSchema: string | null;
|
|
55
|
+
savingOutline: boolean;
|
|
56
|
+
savingSchema: boolean;
|
|
57
|
+
consoleFilter: 'error' | 'warn' | 'info' | null;
|
|
58
|
+
savingConsoleLogs: boolean;
|
|
59
|
+
lastConsoleLogs: string | null;
|
|
60
|
+
consoleLogsTimeout: ReturnType<typeof setTimeout> | undefined;
|
|
61
|
+
showOutlineModal: boolean;
|
|
62
|
+
showSchemaModal: boolean;
|
|
63
|
+
activeTooltips: Set<HTMLDivElement>;
|
|
64
|
+
breakpointInfo: {
|
|
65
|
+
tailwindBreakpoint: string;
|
|
66
|
+
dimensions: string;
|
|
67
|
+
} | null;
|
|
68
|
+
perfStats: {
|
|
69
|
+
fcp: string;
|
|
70
|
+
lcp: string;
|
|
71
|
+
cls: string;
|
|
72
|
+
inp: string;
|
|
73
|
+
totalSize: string;
|
|
74
|
+
} | null;
|
|
75
|
+
lcpValue: number | null;
|
|
76
|
+
clsValue: number;
|
|
77
|
+
inpValue: number;
|
|
78
|
+
reconnectAttempts: number;
|
|
79
|
+
readonly currentAppPort: number;
|
|
80
|
+
readonly baseWsPort: number;
|
|
81
|
+
wsVerified: boolean;
|
|
82
|
+
serverProjectDir: string | null;
|
|
83
|
+
lastDotPosition: {
|
|
84
|
+
left: number;
|
|
85
|
+
top: number;
|
|
86
|
+
bottom: number;
|
|
87
|
+
} | null;
|
|
88
|
+
reconnectTimeout: ReturnType<typeof setTimeout> | null;
|
|
89
|
+
screenshotTimeout: ReturnType<typeof setTimeout> | null;
|
|
90
|
+
copiedPathTimeout: ReturnType<typeof setTimeout> | null;
|
|
91
|
+
designReviewTimeout: ReturnType<typeof setTimeout> | null;
|
|
92
|
+
designReviewErrorTimeout: ReturnType<typeof setTimeout> | null;
|
|
93
|
+
outlineTimeout: ReturnType<typeof setTimeout> | null;
|
|
94
|
+
schemaTimeout: ReturnType<typeof setTimeout> | null;
|
|
95
|
+
resizeHandler: (() => void) | null;
|
|
96
|
+
keydownHandler: ((e: KeyboardEvent) => void) | null;
|
|
97
|
+
fcpObserver: PerformanceObserver | null;
|
|
98
|
+
lcpObserver: PerformanceObserver | null;
|
|
99
|
+
clsObserver: PerformanceObserver | null;
|
|
100
|
+
inpObserver: PerformanceObserver | null;
|
|
101
|
+
destroyed: boolean;
|
|
102
|
+
themeMode: ThemeMode;
|
|
103
|
+
themeMediaQuery: MediaQueryList | null;
|
|
104
|
+
themeMediaHandler: ((e: MediaQueryListEvent) => void) | null;
|
|
105
|
+
compactMode: boolean;
|
|
106
|
+
showSettingsPopover: boolean;
|
|
107
|
+
overlayElement: HTMLDivElement | null;
|
|
108
|
+
settingsManager: SettingsManager;
|
|
92
109
|
private logChangeListener;
|
|
93
110
|
constructor(options?: GlobalDevBarOptions);
|
|
94
|
-
/**
|
|
95
|
-
* Get tooltip class name(s) if tooltips are enabled, otherwise empty string
|
|
96
|
-
*/
|
|
97
|
-
private tooltipClass;
|
|
98
111
|
/**
|
|
99
112
|
* Get current error, warning, and info counts from the log array
|
|
100
113
|
*/
|
|
101
|
-
|
|
114
|
+
getLogCounts(): {
|
|
115
|
+
errorCount: number;
|
|
116
|
+
warningCount: number;
|
|
117
|
+
infoCount: number;
|
|
118
|
+
};
|
|
102
119
|
/**
|
|
103
120
|
* Reset position style properties on an element to clear stale values
|
|
104
121
|
*/
|
|
105
|
-
|
|
122
|
+
resetPositionStyles(element: HTMLElement): void;
|
|
106
123
|
/**
|
|
107
124
|
* Create a collapsed count badge (used for error/warning counts in minimized state)
|
|
108
125
|
*/
|
|
109
|
-
|
|
126
|
+
createCollapsedBadge(count: number, bgColor: string, rightPos: string): HTMLSpanElement;
|
|
110
127
|
/**
|
|
111
128
|
* Register a custom control to be displayed in the devbar
|
|
112
129
|
*/
|
|
@@ -136,32 +153,14 @@ export declare class GlobalDevBar {
|
|
|
136
153
|
*/
|
|
137
154
|
destroy(): void;
|
|
138
155
|
private injectStyles;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Handle settings loaded from server
|
|
143
|
-
*/
|
|
144
|
-
private handleSettingsLoaded;
|
|
156
|
+
connectWebSocket(port?: number): void;
|
|
157
|
+
handleNotification(type: 'screenshot' | 'designReview' | 'outline' | 'schema' | 'consoleLogs', path: string | undefined, durationMs: number): void;
|
|
145
158
|
/**
|
|
146
159
|
* Apply settings to the DevBar state and options
|
|
147
160
|
*/
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
*/
|
|
152
|
-
private handleNotification;
|
|
153
|
-
private setupBreakpointDetection;
|
|
154
|
-
/**
|
|
155
|
-
* Get which metrics should be visible vs hidden based on available space.
|
|
156
|
-
* Dynamically calculates based on window width, number of badges, and other elements.
|
|
157
|
-
* Returns metrics in display order (FCP, LCP, CLS, INP, pageSize).
|
|
158
|
-
* Hides metrics in reverse priority order (pageSize first, then INP, CLS, LCP, FCP).
|
|
159
|
-
*/
|
|
160
|
-
private getResponsiveMetricVisibility;
|
|
161
|
-
private setupPerformanceMonitoring;
|
|
162
|
-
private setupKeyboardShortcuts;
|
|
163
|
-
private setupTheme;
|
|
164
|
-
private loadCompactMode;
|
|
161
|
+
applySettings(settings: DevBarSettings): void;
|
|
162
|
+
private clearConsoleLogs;
|
|
163
|
+
handleScreenshot(copyToClipboard: boolean): Promise<void>;
|
|
165
164
|
/**
|
|
166
165
|
* Get the current theme mode
|
|
167
166
|
*/
|
|
@@ -182,156 +181,7 @@ export declare class GlobalDevBar {
|
|
|
182
181
|
* Check if compact mode is enabled
|
|
183
182
|
*/
|
|
184
183
|
isCompactMode(): boolean;
|
|
185
|
-
|
|
186
|
-
private handleScreenshot;
|
|
187
|
-
private handleDesignReview;
|
|
188
|
-
/**
|
|
189
|
-
* Show the design review confirmation modal
|
|
190
|
-
* Checks API key status first
|
|
191
|
-
*/
|
|
192
|
-
private showDesignReviewConfirmation;
|
|
193
|
-
/**
|
|
194
|
-
* Calculate estimated cost for design review based on viewport size
|
|
195
|
-
*/
|
|
196
|
-
private calculateCostEstimate;
|
|
197
|
-
/**
|
|
198
|
-
* Close the design review confirmation modal
|
|
199
|
-
*/
|
|
200
|
-
private closeDesignReviewConfirm;
|
|
201
|
-
/**
|
|
202
|
-
* Proceed with design review after confirmation
|
|
203
|
-
*/
|
|
204
|
-
private proceedWithDesignReview;
|
|
205
|
-
private handleDocumentOutline;
|
|
206
|
-
private handlePageSchema;
|
|
207
|
-
private handleSaveOutline;
|
|
208
|
-
private handleSaveSchema;
|
|
209
|
-
private clearConsoleLogs;
|
|
210
|
-
private render;
|
|
211
|
-
private renderOverlays;
|
|
212
|
-
private renderDesignReviewConfirmModal;
|
|
213
|
-
/**
|
|
214
|
-
* Render content when API key is not configured
|
|
215
|
-
*/
|
|
216
|
-
private renderApiKeyNotConfiguredContent;
|
|
217
|
-
/**
|
|
218
|
-
* Render content when API key is configured (cost estimate and model info)
|
|
219
|
-
*/
|
|
220
|
-
private renderApiKeyConfiguredContent;
|
|
221
|
-
private renderConsolePopup;
|
|
222
|
-
/**
|
|
223
|
-
* Render console log items into a container
|
|
224
|
-
*/
|
|
225
|
-
private renderConsoleLogs;
|
|
226
|
-
private renderOutlineModal;
|
|
227
|
-
/**
|
|
228
|
-
* Recursively render outline nodes into a container element
|
|
229
|
-
*/
|
|
230
|
-
private renderOutlineNodes;
|
|
231
|
-
private renderSchemaModal;
|
|
232
|
-
/**
|
|
233
|
-
* Render a section of schema data (either array or key-value object)
|
|
234
|
-
*/
|
|
235
|
-
private renderSchemaSection;
|
|
236
|
-
/**
|
|
237
|
-
* Render JSON-LD items as formatted code blocks with syntax highlighting
|
|
238
|
-
*/
|
|
239
|
-
private renderJsonLdItems;
|
|
240
|
-
/**
|
|
241
|
-
* Append syntax-highlighted JSON to an element using safe DOM methods
|
|
242
|
-
* Uses textContent for all text to prevent XSS
|
|
243
|
-
*/
|
|
244
|
-
private appendHighlightedJson;
|
|
245
|
-
/**
|
|
246
|
-
* Render key-value pairs as rows with ellipsis overflow and hover tooltip
|
|
247
|
-
*/
|
|
248
|
-
private renderKeyValueItems;
|
|
249
|
-
/**
|
|
250
|
-
* Render compact mode - single row with essential controls only
|
|
251
|
-
* Shows: connection dot, error/warn badges, screenshot button, settings gear
|
|
252
|
-
*/
|
|
253
|
-
private renderCompact;
|
|
254
|
-
/**
|
|
255
|
-
* Create the settings gear button
|
|
256
|
-
*/
|
|
257
|
-
private createSettingsButton;
|
|
258
|
-
/**
|
|
259
|
-
* Create the compact mode toggle button with chevron icon
|
|
260
|
-
*/
|
|
261
|
-
private createCompactToggleButton;
|
|
262
|
-
/**
|
|
263
|
-
* Create a settings section with title
|
|
264
|
-
*/
|
|
265
|
-
private createSettingsSection;
|
|
266
|
-
/**
|
|
267
|
-
* Create a toggle switch row
|
|
268
|
-
*/
|
|
269
|
-
private createToggleRow;
|
|
270
|
-
/**
|
|
271
|
-
* Render the settings popover
|
|
272
|
-
*/
|
|
273
|
-
private renderSettingsPopover;
|
|
274
|
-
/**
|
|
275
|
-
* Reset all settings to defaults
|
|
276
|
-
*/
|
|
277
|
-
private resetToDefaults;
|
|
278
|
-
private renderCollapsed;
|
|
279
|
-
private renderExpanded;
|
|
280
|
-
/** Base styles for tooltip containers */
|
|
281
|
-
private readonly TOOLTIP_BASE_STYLES;
|
|
282
|
-
/** Create a tooltip container element and track it for cleanup */
|
|
283
|
-
private createTooltipContainer;
|
|
284
|
-
/** Remove a tooltip and untrack it */
|
|
285
|
-
private removeTooltip;
|
|
286
|
-
/** Clear all active tooltips (called on re-render) */
|
|
287
|
-
private clearAllTooltips;
|
|
288
|
-
/** Add a bold title to tooltip (metric name, feature name, etc.) */
|
|
289
|
-
private addTooltipTitle;
|
|
290
|
-
/** Add a description paragraph to tooltip */
|
|
291
|
-
private addTooltipDescription;
|
|
292
|
-
/** Add a muted uppercase section header to tooltip */
|
|
293
|
-
private addTooltipSectionHeader;
|
|
294
|
-
/** Add a colored row with dot + label + value (for thresholds) */
|
|
295
|
-
private addTooltipColoredRow;
|
|
296
|
-
/** Add an info row with label + value (for breakpoint details) */
|
|
297
|
-
private addTooltipInfoRow;
|
|
298
|
-
/** Position tooltip above the anchor element, adjusting for screen edges */
|
|
299
|
-
private positionTooltip;
|
|
300
|
-
/** Attach an HTML tooltip to an element with custom content builder */
|
|
301
|
-
private attachHtmlTooltip;
|
|
302
|
-
/**
|
|
303
|
-
* Attach an HTML tooltip with click-to-toggle support for mobile.
|
|
304
|
-
* - Click toggles tooltip open/closed (pinned state)
|
|
305
|
-
* - Hover opens tooltip on mouseenter (if not pinned)
|
|
306
|
-
* - Hover closes tooltip on mouseleave (if not pinned)
|
|
307
|
-
*/
|
|
308
|
-
private attachClickToggleTooltip;
|
|
309
|
-
/** Attach a metric tooltip with title, description, and colored thresholds */
|
|
310
|
-
private attachMetricTooltip;
|
|
311
|
-
/** Attach a breakpoint tooltip showing current breakpoint and all breakpoint ranges */
|
|
312
|
-
private attachBreakpointTooltip;
|
|
313
|
-
/** Attach a simple info tooltip with title and description */
|
|
314
|
-
private attachInfoTooltip;
|
|
315
|
-
/** Add a keyboard shortcut row to tooltip */
|
|
316
|
-
private addTooltipShortcut;
|
|
317
|
-
/** Add a warning message to tooltip */
|
|
318
|
-
private addTooltipWarning;
|
|
319
|
-
/** Add a success status message to tooltip */
|
|
320
|
-
private addTooltipSuccess;
|
|
321
|
-
/** Add an error status message to tooltip */
|
|
322
|
-
private addTooltipError;
|
|
323
|
-
/** Add a "in progress" status to tooltip */
|
|
324
|
-
private addTooltipProgress;
|
|
325
|
-
/** Attach a button tooltip with custom title color */
|
|
326
|
-
private attachButtonTooltip;
|
|
327
|
-
/**
|
|
328
|
-
* Create a console badge for error/warning/info counts
|
|
329
|
-
*/
|
|
330
|
-
private createConsoleBadge;
|
|
331
|
-
private createScreenshotButton;
|
|
332
|
-
private createAIReviewButton;
|
|
333
|
-
private createOutlineButton;
|
|
334
|
-
private createSchemaButton;
|
|
184
|
+
render(): void;
|
|
335
185
|
}
|
|
336
186
|
/**
|
|
337
187
|
* Initialize and mount the GlobalDevBar
|
|
@@ -348,5 +198,5 @@ export declare function getGlobalDevBar(): GlobalDevBar | null;
|
|
|
348
198
|
* Destroy the GlobalDevBar
|
|
349
199
|
*/
|
|
350
200
|
export declare function destroyGlobalDevBar(): void;
|
|
351
|
-
export { earlyConsoleCapture };
|
|
201
|
+
export { consoleCapture as earlyConsoleCapture };
|
|
352
202
|
//# sourceMappingURL=GlobalDevBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalDevBar.d.ts","sourceRoot":"","sources":["../src/GlobalDevBar.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"GlobalDevBar.d.ts","sourceRoot":"","sources":["../src/GlobalDevBar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,cAAc,EAIf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAwB,MAAM,YAAY,CAAC;AAC/D,OAAO,EAGL,KAAK,cAAc,EAEnB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,SAAS,EACV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAA0B,MAAM,0CAA0C,CAAC;AAmBlG,YAAY,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,SAAS,GACV,CAAC;AAGF,YAAY,EAAE,cAA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