@ytspar/devbar 1.0.0-canary.bf42899 → 1.0.0-canary.c511f13
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 +34 -0
- package/dist/GlobalDevBar.js +506 -93
- package/dist/constants.d.ts +30 -20
- package/dist/constants.js +37 -27
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -7
- package/dist/outline.js +43 -10
- package/dist/presets.d.ts +1 -1
- package/dist/schema.js +4 -3
- package/dist/settings.d.ts +150 -0
- package/dist/settings.js +292 -0
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +2 -2
- package/dist/ui/modals.d.ts +4 -0
- package/dist/ui/modals.js +53 -7
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/GlobalDevBar.d.ts
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
import { getThemeColors } from './constants.js';
|
|
11
11
|
import type { ConsoleLog, DebugConfig, DevBarControl, GlobalDevBarOptions, OutlineNode, PageSchema, SweetlinkCommand, ThemeMode } from './types.js';
|
|
12
12
|
export type { ConsoleLog, DebugConfig, SweetlinkCommand, OutlineNode, PageSchema, GlobalDevBarOptions, DevBarControl, ThemeMode, };
|
|
13
|
+
export type { DevBarPosition, DevBarSettings, MetricsVisibility } from './settings.js';
|
|
14
|
+
export { ACCENT_COLOR_PRESETS, DEFAULT_SETTINGS, getSettingsManager } from './settings.js';
|
|
13
15
|
interface EarlyConsoleCapture {
|
|
14
16
|
errorCount: number;
|
|
15
17
|
warningCount: number;
|
|
@@ -44,6 +46,8 @@ export declare class GlobalDevBar {
|
|
|
44
46
|
private apiKeyStatus;
|
|
45
47
|
private lastOutline;
|
|
46
48
|
private lastSchema;
|
|
49
|
+
private savingOutline;
|
|
50
|
+
private savingSchema;
|
|
47
51
|
private consoleFilter;
|
|
48
52
|
private showOutlineModal;
|
|
49
53
|
private showSchemaModal;
|
|
@@ -53,6 +57,11 @@ export declare class GlobalDevBar {
|
|
|
53
57
|
private clsValue;
|
|
54
58
|
private inpValue;
|
|
55
59
|
private reconnectAttempts;
|
|
60
|
+
private readonly currentAppPort;
|
|
61
|
+
private readonly baseWsPort;
|
|
62
|
+
private wsVerified;
|
|
63
|
+
private serverProjectDir;
|
|
64
|
+
private verificationTimeout;
|
|
56
65
|
private lastDotPosition;
|
|
57
66
|
private reconnectTimeout;
|
|
58
67
|
private screenshotTimeout;
|
|
@@ -74,6 +83,7 @@ export declare class GlobalDevBar {
|
|
|
74
83
|
private compactMode;
|
|
75
84
|
private showSettingsPopover;
|
|
76
85
|
private overlayElement;
|
|
86
|
+
private settingsManager;
|
|
77
87
|
constructor(options?: GlobalDevBarOptions);
|
|
78
88
|
/**
|
|
79
89
|
* Get tooltip class name(s) if tooltips are enabled, otherwise empty string
|
|
@@ -118,6 +128,14 @@ export declare class GlobalDevBar {
|
|
|
118
128
|
private injectStyles;
|
|
119
129
|
private connectWebSocket;
|
|
120
130
|
private handleSweetlinkCommand;
|
|
131
|
+
/**
|
|
132
|
+
* Handle settings loaded from server
|
|
133
|
+
*/
|
|
134
|
+
private handleSettingsLoaded;
|
|
135
|
+
/**
|
|
136
|
+
* Apply settings to the DevBar state and options
|
|
137
|
+
*/
|
|
138
|
+
private applySettings;
|
|
121
139
|
/**
|
|
122
140
|
* Handle notification state updates with auto-clear timeout
|
|
123
141
|
*/
|
|
@@ -220,10 +238,26 @@ export declare class GlobalDevBar {
|
|
|
220
238
|
* Create the settings gear button
|
|
221
239
|
*/
|
|
222
240
|
private createSettingsButton;
|
|
241
|
+
/**
|
|
242
|
+
* Create the compact mode toggle button with chevron icon
|
|
243
|
+
*/
|
|
244
|
+
private createCompactToggleButton;
|
|
245
|
+
/**
|
|
246
|
+
* Create a settings section with title
|
|
247
|
+
*/
|
|
248
|
+
private createSettingsSection;
|
|
249
|
+
/**
|
|
250
|
+
* Create a toggle switch row
|
|
251
|
+
*/
|
|
252
|
+
private createToggleRow;
|
|
223
253
|
/**
|
|
224
254
|
* Render the settings popover
|
|
225
255
|
*/
|
|
226
256
|
private renderSettingsPopover;
|
|
257
|
+
/**
|
|
258
|
+
* Reset all settings to defaults
|
|
259
|
+
*/
|
|
260
|
+
private resetToDefaults;
|
|
227
261
|
private renderCollapsed;
|
|
228
262
|
private renderExpanded;
|
|
229
263
|
/**
|