js.foresight-devtools 1.4.0 → 2.1.0
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/LICENSE +21 -0
- package/README.md +10 -4
- package/dist/index.d.mts +612 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2194 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +64 -65
- package/dist/index.d.ts +0 -569
- package/dist/index.js +0 -2031
package/package.json
CHANGED
|
@@ -1,65 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "js.foresight-devtools",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Visual debugging tools for ForesightJS - mouse trajectory prediction and element interaction visualization",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
],
|
|
36
|
-
"
|
|
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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "js.foresight-devtools",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Visual debugging tools for ForesightJS - mouse trajectory prediction and element interaction visualization",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.mjs",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.mts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.mts",
|
|
12
|
+
"default": "./dist/index.mjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://foresightjs.com/docs/getting_started/development_tools",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/spaansba/ForesightJS",
|
|
19
|
+
"directory": "packages/js.foresight-devtools"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"foresight",
|
|
28
|
+
"debugger",
|
|
29
|
+
"mouse-trajectory",
|
|
30
|
+
"visualization",
|
|
31
|
+
"debug-tools",
|
|
32
|
+
"development",
|
|
33
|
+
"foresightjs",
|
|
34
|
+
"devtools"
|
|
35
|
+
],
|
|
36
|
+
"author": "Bart Spaans",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"llms": "https://foresightjs.com/llms.txt",
|
|
39
|
+
"llmsFull": "https://foresightjs.com/llms-full.txt",
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"js.foresight": "^4.1.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^25.5.2",
|
|
45
|
+
"tslib": "^2.8.1",
|
|
46
|
+
"tsdown": "^0.21.7",
|
|
47
|
+
"typescript": "^6.0.2",
|
|
48
|
+
"vitest": "^4.1.2",
|
|
49
|
+
"js.foresight": "4.1.0"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"lit": "^3.3.2"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsdown --sourcemap",
|
|
56
|
+
"build:prod": "tsdown",
|
|
57
|
+
"dev": "tsdown --watch",
|
|
58
|
+
"test": "vitest",
|
|
59
|
+
"test:watch": "vitest --watch",
|
|
60
|
+
"test:run": "vitest run",
|
|
61
|
+
"prettier": "prettier --write .",
|
|
62
|
+
"lint": "eslint . --fix"
|
|
63
|
+
}
|
|
64
|
+
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,569 +0,0 @@
|
|
|
1
|
-
import * as lit from 'lit';
|
|
2
|
-
import { LitElement, TemplateResult, PropertyValues } from 'lit';
|
|
3
|
-
import { ForesightEvent, ForesightElementData, ForesightManagerSettings as ForesightManagerSettings$1 } from 'js.foresight';
|
|
4
|
-
import { ForesightEvent as ForesightEvent$1, ElementCallbackInfo, HitSlop, UpdatedDataPropertyNames, CallbackHitType, Point, ScrollDirection, ForesightManagerSettings, UpdatedManagerSetting, CallbackHits, ForesightElementData as ForesightElementData$1, ForesightManagerData } from 'js.foresight/types/types';
|
|
5
|
-
|
|
6
|
-
type DeepPartial<T> = T extends object ? {
|
|
7
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
8
|
-
} : T;
|
|
9
|
-
type DevtoolsSettings = {
|
|
10
|
-
/**
|
|
11
|
-
* Whether to show visual debugging information on the screen.
|
|
12
|
-
* This includes overlays for elements, hit slop areas, the predicted mouse path and a debug control panel.
|
|
13
|
-
* @default true
|
|
14
|
-
*/
|
|
15
|
-
showDebugger: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Determines if the debugger control panel should be initialized in a minimized state.
|
|
18
|
-
*
|
|
19
|
-
* @link https://foresightjs.com/docs/getting_started/debug
|
|
20
|
-
*
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
isControlPanelDefaultMinimized: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Determines if name tags should be displayed visually above each registered element.
|
|
26
|
-
* This is a helpful visual aid for identifying which elements are being tracked.
|
|
27
|
-
*
|
|
28
|
-
* @link https://foresightjs.com/docs/getting_started/debug
|
|
29
|
-
*
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
showNameTags: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the default sorting order for the list of registered elements in the debugger panel.
|
|
35
|
-
* - `'visibility'`: Sorts elements by their viewport visibility (visible elements first),
|
|
36
|
-
* with a secondary documentOrder sort.
|
|
37
|
-
* - `'documentOrder'`: Sorts elements based on their order of appearance in the
|
|
38
|
-
* document's structure (matching the HTML source).
|
|
39
|
-
* - `'insertionOrder'`: Sorts by registration order.
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* @link https://foresightjs.com/docs/getting_started/debug
|
|
43
|
-
*
|
|
44
|
-
* @default 'visibility'
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
sortElementList: SortElementList;
|
|
48
|
-
logging: LogEvents & {
|
|
49
|
-
logLocation: LoggingLocations;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
type LogEvents = {
|
|
53
|
-
[K in ForesightEvent]: boolean;
|
|
54
|
-
};
|
|
55
|
-
type LoggingLocations = "controlPanel" | "console" | "both" | "none";
|
|
56
|
-
type SortElementList = "documentOrder" | "visibility" | "insertionOrder";
|
|
57
|
-
type DebuggerBooleanSettingKeys = {
|
|
58
|
-
[K in keyof DevtoolsSettings]: Required<DevtoolsSettings>[K] extends boolean ? K : never;
|
|
59
|
-
}[keyof DevtoolsSettings];
|
|
60
|
-
|
|
61
|
-
declare class ChipElement extends LitElement {
|
|
62
|
-
static styles: lit.CSSResult[];
|
|
63
|
-
title: string;
|
|
64
|
-
render(): lit.TemplateResult<1>;
|
|
65
|
-
}
|
|
66
|
-
declare global {
|
|
67
|
-
interface HTMLElementTagNameMap {
|
|
68
|
-
"chip-element": ChipElement;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
declare class TabContent extends LitElement {
|
|
73
|
-
static styles: lit.CSSResult[];
|
|
74
|
-
noContentMessage: string;
|
|
75
|
-
hasContent: boolean;
|
|
76
|
-
render(): lit.TemplateResult<1>;
|
|
77
|
-
}
|
|
78
|
-
declare global {
|
|
79
|
-
interface HTMLElementTagNameMap {
|
|
80
|
-
"tab-content": TabContent;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
declare class TabHeader extends LitElement {
|
|
85
|
-
static styles: lit.CSSResult[];
|
|
86
|
-
render(): lit.TemplateResult<1>;
|
|
87
|
-
}
|
|
88
|
-
declare global {
|
|
89
|
-
interface HTMLElementTagNameMap {
|
|
90
|
-
"tab-header": TabHeader;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
type DropdownOption = {
|
|
95
|
-
value: string;
|
|
96
|
-
label: string;
|
|
97
|
-
title: string;
|
|
98
|
-
icon: TemplateResult;
|
|
99
|
-
};
|
|
100
|
-
declare abstract class BaseDropdown extends LitElement {
|
|
101
|
-
private static currentlyOpen;
|
|
102
|
-
static styles: lit.CSSResult[];
|
|
103
|
-
protected isDropdownOpen: boolean;
|
|
104
|
-
dropdownOptions: DropdownOption[];
|
|
105
|
-
connectedCallback(): void;
|
|
106
|
-
disconnectedCallback(): void;
|
|
107
|
-
protected _toggleDropdown: (event: MouseEvent) => void;
|
|
108
|
-
protected _closeDropdown(): void;
|
|
109
|
-
protected _positionDropdown(): void;
|
|
110
|
-
protected _handleOutsideClick: (event: MouseEvent) => void;
|
|
111
|
-
protected abstract _handleOptionClick(option: DropdownOption): void;
|
|
112
|
-
protected abstract _getTriggerIcon(): TemplateResult;
|
|
113
|
-
protected abstract _isOptionSelected(option: DropdownOption): boolean;
|
|
114
|
-
protected abstract _getTriggerTitle(): string;
|
|
115
|
-
protected abstract _getTriggerLabel(): string;
|
|
116
|
-
render(): TemplateResult<1>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
declare class SingleSelectDropdown extends BaseDropdown {
|
|
120
|
-
selectedOptionValue: string;
|
|
121
|
-
onSelectionChange?: (value: string) => void;
|
|
122
|
-
connectedCallback(): void;
|
|
123
|
-
willUpdate(changedProperties: Map<PropertyKey, unknown>): void;
|
|
124
|
-
protected _handleOptionClick(option: DropdownOption): void;
|
|
125
|
-
protected _getTriggerIcon(): TemplateResult;
|
|
126
|
-
protected _isOptionSelected(option: DropdownOption): boolean;
|
|
127
|
-
protected _getTriggerTitle(): string;
|
|
128
|
-
protected _getTriggerLabel(): string;
|
|
129
|
-
private _getSelectedOption;
|
|
130
|
-
}
|
|
131
|
-
declare global {
|
|
132
|
-
interface HTMLElementTagNameMap {
|
|
133
|
-
"single-select-dropdown": SingleSelectDropdown;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
declare class CopyIcon extends LitElement {
|
|
138
|
-
static styles: lit.CSSResult;
|
|
139
|
-
title: string;
|
|
140
|
-
onCopy?: (event: MouseEvent) => Promise<void> | void;
|
|
141
|
-
private isCopied;
|
|
142
|
-
private copyTimeout;
|
|
143
|
-
private handleClick;
|
|
144
|
-
disconnectedCallback(): void;
|
|
145
|
-
render(): lit.TemplateResult<1>;
|
|
146
|
-
}
|
|
147
|
-
declare global {
|
|
148
|
-
interface HTMLElementTagNameMap {
|
|
149
|
-
"copy-icon": CopyIcon;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
declare class ExpandableItem extends LitElement {
|
|
154
|
-
static styles: lit.CSSResult[];
|
|
155
|
-
borderColor: string;
|
|
156
|
-
showCopyButton: boolean;
|
|
157
|
-
itemId: string;
|
|
158
|
-
isExpanded: boolean;
|
|
159
|
-
onToggle: ((itemId: string) => void) | undefined;
|
|
160
|
-
private toggleExpand;
|
|
161
|
-
private handleCopy;
|
|
162
|
-
render(): lit.TemplateResult<1>;
|
|
163
|
-
}
|
|
164
|
-
declare global {
|
|
165
|
-
interface HTMLElementTagNameMap {
|
|
166
|
-
"expandable-item": ExpandableItem;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
declare class ReactivateCountdown extends LitElement {
|
|
171
|
-
static styles: lit.CSSResult[];
|
|
172
|
-
elementData: ForesightElementData;
|
|
173
|
-
private remainingTime;
|
|
174
|
-
private isCountdownActive;
|
|
175
|
-
private intervalId;
|
|
176
|
-
private startTime;
|
|
177
|
-
connectedCallback(): void;
|
|
178
|
-
disconnectedCallback(): void;
|
|
179
|
-
willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
180
|
-
private checkAndStartCountdown;
|
|
181
|
-
private startCountdown;
|
|
182
|
-
private clearCountdown;
|
|
183
|
-
private handleTimerClick;
|
|
184
|
-
private formatTime;
|
|
185
|
-
render(): lit.TemplateResult<1>;
|
|
186
|
-
}
|
|
187
|
-
declare global {
|
|
188
|
-
interface HTMLElementTagNameMap {
|
|
189
|
-
"reactivate-countdown": ReactivateCountdown;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
declare class SingleElement extends LitElement {
|
|
194
|
-
static styles: lit.CSSResult[];
|
|
195
|
-
elementData: ForesightElementData;
|
|
196
|
-
isActive: boolean;
|
|
197
|
-
isExpanded: boolean;
|
|
198
|
-
onToggle: ((elementId: string) => void) | undefined;
|
|
199
|
-
private currentDeviceStrategy;
|
|
200
|
-
private _abortController;
|
|
201
|
-
connectedCallback(): void;
|
|
202
|
-
disconnectedCallback(): void;
|
|
203
|
-
private getBorderColor;
|
|
204
|
-
private getStatusIndicatorClass;
|
|
205
|
-
private getStatusText;
|
|
206
|
-
private formatElementDetails;
|
|
207
|
-
private handleUnregister;
|
|
208
|
-
render(): lit.TemplateResult<1>;
|
|
209
|
-
}
|
|
210
|
-
declare global {
|
|
211
|
-
interface HTMLElementTagNameMap {
|
|
212
|
-
"single-element": SingleElement;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
declare class ElementTab extends LitElement {
|
|
217
|
-
static styles: lit.CSSResult;
|
|
218
|
-
private hitCount;
|
|
219
|
-
private sortDropdown;
|
|
220
|
-
private sortOrder;
|
|
221
|
-
private elementListItems;
|
|
222
|
-
private noContentMessage;
|
|
223
|
-
private runningCallbacks;
|
|
224
|
-
private expandedElementIds;
|
|
225
|
-
private _abortController;
|
|
226
|
-
private _pendingElementUpdates;
|
|
227
|
-
private _updateDebounceId;
|
|
228
|
-
private _cachedActiveElements;
|
|
229
|
-
private _cachedInactiveElements;
|
|
230
|
-
private _elementsCacheDirty;
|
|
231
|
-
constructor();
|
|
232
|
-
private handleSortChange;
|
|
233
|
-
private handleElementToggle;
|
|
234
|
-
private _generateHitsChipTitle;
|
|
235
|
-
connectedCallback(): void;
|
|
236
|
-
disconnectedCallback(): void;
|
|
237
|
-
private _scheduleDebouncedUpdate;
|
|
238
|
-
private _flushPendingUpdates;
|
|
239
|
-
private updateElementListFromManager;
|
|
240
|
-
private handleCallbackCompleted;
|
|
241
|
-
private getSortedElements;
|
|
242
|
-
private _recomputeElementsCache;
|
|
243
|
-
private get activeElements();
|
|
244
|
-
private get inactiveElements();
|
|
245
|
-
private sortByDocumentPosition;
|
|
246
|
-
render(): lit.TemplateResult<1>;
|
|
247
|
-
}
|
|
248
|
-
declare global {
|
|
249
|
-
interface HTMLElementTagNameMap {
|
|
250
|
-
"element-tab": ElementTab;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
declare class MultiSelectDropdown extends BaseDropdown {
|
|
255
|
-
static styles: lit.CSSResult[];
|
|
256
|
-
selectedValues: string[];
|
|
257
|
-
onSelectionChange?: (changedValue: string, isSelected: boolean) => void;
|
|
258
|
-
protected _handleOptionClick(option: DropdownOption): void;
|
|
259
|
-
protected _getTriggerIcon(): TemplateResult;
|
|
260
|
-
protected _isOptionSelected(option: DropdownOption): boolean;
|
|
261
|
-
protected _getTriggerTitle(): string;
|
|
262
|
-
protected _getTriggerLabel(): string;
|
|
263
|
-
render(): TemplateResult<1>;
|
|
264
|
-
}
|
|
265
|
-
declare global {
|
|
266
|
-
interface HTMLElementTagNameMap {
|
|
267
|
-
"multi-select-dropdown": MultiSelectDropdown;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
type SerializedEventType = ForesightEvent$1 | "serializationError" | "managerDataPayload";
|
|
272
|
-
interface PayloadBase {
|
|
273
|
-
type: SerializedEventType;
|
|
274
|
-
localizedTimestamp: string;
|
|
275
|
-
summary: string;
|
|
276
|
-
logId: string;
|
|
277
|
-
}
|
|
278
|
-
interface ElementRegisteredPayload extends PayloadBase {
|
|
279
|
-
type: "elementRegistered";
|
|
280
|
-
name: string;
|
|
281
|
-
id: string;
|
|
282
|
-
callbackInfo: ElementCallbackInfo;
|
|
283
|
-
hitslop: HitSlop;
|
|
284
|
-
meta: Record<string, unknown>;
|
|
285
|
-
}
|
|
286
|
-
interface ElementUnregisteredEvent extends PayloadBase {
|
|
287
|
-
type: "elementUnregistered";
|
|
288
|
-
name: string;
|
|
289
|
-
id: string;
|
|
290
|
-
callbackInfo: ElementCallbackInfo;
|
|
291
|
-
meta: Record<string, unknown>;
|
|
292
|
-
wasLastRegisteredElement: boolean;
|
|
293
|
-
}
|
|
294
|
-
interface ElementReactivatedPayload extends PayloadBase {
|
|
295
|
-
type: "elementReactivated";
|
|
296
|
-
name: string;
|
|
297
|
-
id: string;
|
|
298
|
-
callbackInfo: ElementCallbackInfo;
|
|
299
|
-
meta: Record<string, unknown>;
|
|
300
|
-
}
|
|
301
|
-
interface ElementDataUpdatedPayload extends PayloadBase {
|
|
302
|
-
type: "elementDataUpdated";
|
|
303
|
-
name: string;
|
|
304
|
-
updatedProps: UpdatedDataPropertyNames[];
|
|
305
|
-
callbackInfo: ElementCallbackInfo;
|
|
306
|
-
isIntersecting: boolean;
|
|
307
|
-
meta: Record<string, unknown>;
|
|
308
|
-
}
|
|
309
|
-
interface CallbackInvokedPayload extends PayloadBase {
|
|
310
|
-
type: "callbackInvoked";
|
|
311
|
-
name: string;
|
|
312
|
-
hitType: CallbackHitType;
|
|
313
|
-
callbackInfo: ElementCallbackInfo;
|
|
314
|
-
meta: Record<string, unknown>;
|
|
315
|
-
}
|
|
316
|
-
interface CallbackCompletedPayload extends PayloadBase {
|
|
317
|
-
type: "callbackCompleted";
|
|
318
|
-
elapsed: string;
|
|
319
|
-
name: string;
|
|
320
|
-
hitType: CallbackHitType;
|
|
321
|
-
status: "success" | "error" | undefined;
|
|
322
|
-
errorMessage: string | undefined | null;
|
|
323
|
-
callbackInfo: ElementCallbackInfo;
|
|
324
|
-
wasLastActiveElement: boolean;
|
|
325
|
-
meta: Record<string, unknown>;
|
|
326
|
-
}
|
|
327
|
-
interface MouseTrajectoryUpdatePayload extends PayloadBase {
|
|
328
|
-
type: "mouseTrajectoryUpdate";
|
|
329
|
-
currentPoint: Point;
|
|
330
|
-
predictedPoint: Point;
|
|
331
|
-
positionCount: number;
|
|
332
|
-
mousePredictionEnabled: boolean;
|
|
333
|
-
}
|
|
334
|
-
interface ScrollTrajectoryUpdatePayload extends PayloadBase {
|
|
335
|
-
type: "scrollTrajectoryUpdate";
|
|
336
|
-
currentPoint: Point;
|
|
337
|
-
predictedPoint: Point;
|
|
338
|
-
scrollDirection: ScrollDirection;
|
|
339
|
-
}
|
|
340
|
-
interface ManagerSettingsChangedPayload extends PayloadBase {
|
|
341
|
-
type: "managerSettingsChanged";
|
|
342
|
-
globalSettings: ForesightManagerSettings;
|
|
343
|
-
settingsChanged: UpdatedManagerSetting[];
|
|
344
|
-
}
|
|
345
|
-
interface DeviceStrategyChangedPayload extends PayloadBase {
|
|
346
|
-
type: "deviceStrategyChanged";
|
|
347
|
-
oldStrategy: string;
|
|
348
|
-
newStrategy: string;
|
|
349
|
-
}
|
|
350
|
-
interface SerializationErrorPayload extends PayloadBase {
|
|
351
|
-
type: "serializationError";
|
|
352
|
-
error: "Failed to serialize event data";
|
|
353
|
-
errorMessage: string;
|
|
354
|
-
}
|
|
355
|
-
interface ManagerDataPayload extends PayloadBase {
|
|
356
|
-
type: "managerDataPayload";
|
|
357
|
-
warning: string;
|
|
358
|
-
globalCallbackHits: CallbackHits;
|
|
359
|
-
eventListenerCount: Record<string, number>;
|
|
360
|
-
managerSettings: ForesightManagerSettings;
|
|
361
|
-
registeredElements: Array<Omit<ForesightElementData$1, "element"> & {
|
|
362
|
-
elementInfo: string;
|
|
363
|
-
}>;
|
|
364
|
-
loadedModules: ForesightManagerData["loadedModules"];
|
|
365
|
-
}
|
|
366
|
-
type SerializedEventData = ElementRegisteredPayload | ElementUnregisteredEvent | ElementReactivatedPayload | ElementDataUpdatedPayload | CallbackInvokedPayload | CallbackCompletedPayload | MouseTrajectoryUpdatePayload | ScrollTrajectoryUpdatePayload | ManagerSettingsChangedPayload | DeviceStrategyChangedPayload | ManagerDataPayload | SerializationErrorPayload;
|
|
367
|
-
|
|
368
|
-
declare class SingleLog extends LitElement {
|
|
369
|
-
static styles: lit.CSSResult[];
|
|
370
|
-
log: SerializedEventData;
|
|
371
|
-
constructor(log: SerializedEventData);
|
|
372
|
-
isExpanded: boolean;
|
|
373
|
-
onToggle: ((logId: string) => void) | undefined;
|
|
374
|
-
protected updated(changedProperties: PropertyValues<this>): void;
|
|
375
|
-
private serializeLogDataWithoutSummary;
|
|
376
|
-
private getLogTypeColor;
|
|
377
|
-
private getEventDisplayName;
|
|
378
|
-
private truncateLogSummary;
|
|
379
|
-
render(): lit.TemplateResult<1>;
|
|
380
|
-
}
|
|
381
|
-
declare global {
|
|
382
|
-
interface HTMLElementTagNameMap {
|
|
383
|
-
"single-log": SingleLog;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
declare class LogTab extends LitElement {
|
|
388
|
-
static styles: lit.CSSResult[];
|
|
389
|
-
private logDropdown;
|
|
390
|
-
private filterDropdown;
|
|
391
|
-
private logLocation;
|
|
392
|
-
private eventsEnabled;
|
|
393
|
-
private logs;
|
|
394
|
-
private expandedLogIds;
|
|
395
|
-
private MAX_LOGS;
|
|
396
|
-
private logIdCounter;
|
|
397
|
-
noContentMessage: string;
|
|
398
|
-
private _abortController;
|
|
399
|
-
private _eventListeners;
|
|
400
|
-
constructor();
|
|
401
|
-
private handleLogLocationChange;
|
|
402
|
-
private handleFilterChange;
|
|
403
|
-
private getSelectedEventFilters;
|
|
404
|
-
private shouldShowPerformanceWarning;
|
|
405
|
-
private getNoLogsMessage;
|
|
406
|
-
private handleLogToggle;
|
|
407
|
-
private clearLogs;
|
|
408
|
-
connectedCallback(): void;
|
|
409
|
-
disconnectedCallback(): void;
|
|
410
|
-
private setupDynamicEventListeners;
|
|
411
|
-
private addForesightEventListener;
|
|
412
|
-
private removeForesightEventListener;
|
|
413
|
-
private removeAllEventListeners;
|
|
414
|
-
private getEventColor;
|
|
415
|
-
private handleEvent;
|
|
416
|
-
private addLog;
|
|
417
|
-
private logManagerData;
|
|
418
|
-
private addManagerLog;
|
|
419
|
-
private addEventLog;
|
|
420
|
-
render(): lit.TemplateResult<1>;
|
|
421
|
-
}
|
|
422
|
-
declare global {
|
|
423
|
-
interface HTMLElementTagNameMap {
|
|
424
|
-
"log-tab": LogTab;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
declare class SettingItem extends LitElement {
|
|
429
|
-
static styles: lit.CSSResult[];
|
|
430
|
-
header: string;
|
|
431
|
-
description: string;
|
|
432
|
-
render(): lit.TemplateResult<1>;
|
|
433
|
-
}
|
|
434
|
-
declare global {
|
|
435
|
-
interface HTMLElementTagNameMap {
|
|
436
|
-
"setting-item": SettingItem;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
declare class SettingItemCheckbox extends LitElement {
|
|
441
|
-
static styles: lit.CSSResult[];
|
|
442
|
-
isChecked: boolean;
|
|
443
|
-
header: string;
|
|
444
|
-
description: string;
|
|
445
|
-
setting: keyof ForesightManagerSettings$1 | keyof DevtoolsSettings;
|
|
446
|
-
private handleCheckboxChange;
|
|
447
|
-
render(): lit.TemplateResult<1>;
|
|
448
|
-
}
|
|
449
|
-
declare global {
|
|
450
|
-
interface HTMLElementTagNameMap {
|
|
451
|
-
"setting-item-checkbox": SettingItemCheckbox;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
declare class SettingItemRange extends LitElement {
|
|
456
|
-
static styles: lit.CSSResult[];
|
|
457
|
-
minValue: number;
|
|
458
|
-
maxValue: number;
|
|
459
|
-
currentValue: number;
|
|
460
|
-
unit: string;
|
|
461
|
-
header: string;
|
|
462
|
-
description: string;
|
|
463
|
-
setting: keyof ForesightManagerSettings$1;
|
|
464
|
-
private displayValue;
|
|
465
|
-
private handleRangeInput;
|
|
466
|
-
private handleRangeChange;
|
|
467
|
-
willUpdate(changedProperties: PropertyValues): void;
|
|
468
|
-
render(): lit.TemplateResult<1>;
|
|
469
|
-
}
|
|
470
|
-
declare global {
|
|
471
|
-
interface HTMLElementTagNameMap {
|
|
472
|
-
"setting-item-range": SettingItemRange;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
declare class SettingsTab extends LitElement {
|
|
477
|
-
static styles: lit.CSSResult;
|
|
478
|
-
private managerSettings;
|
|
479
|
-
private initialSettings;
|
|
480
|
-
private devtoolsSettings;
|
|
481
|
-
private changedSettings;
|
|
482
|
-
private currentCorner;
|
|
483
|
-
private touchDeviceStrategyOptions;
|
|
484
|
-
private minimumConnectionTypeOptions;
|
|
485
|
-
private cornerOptions;
|
|
486
|
-
private _abortController;
|
|
487
|
-
constructor();
|
|
488
|
-
connectedCallback(): void;
|
|
489
|
-
disconnectedCallback(): void;
|
|
490
|
-
private _updateChangedSettings;
|
|
491
|
-
private _checkManagerSettingsChanges;
|
|
492
|
-
private _checkDevtoolsSettingsChanges;
|
|
493
|
-
private _handleDevtoolsSettingChange;
|
|
494
|
-
private _handleTouchDeviceStrategyChange;
|
|
495
|
-
private _handleMinimumConnectionTypeChange;
|
|
496
|
-
private _handleCornerChange;
|
|
497
|
-
private getCurrentCorner;
|
|
498
|
-
private handleCopySettings;
|
|
499
|
-
private generateSettingsCode;
|
|
500
|
-
render(): lit.TemplateResult<1>;
|
|
501
|
-
}
|
|
502
|
-
declare global {
|
|
503
|
-
interface HTMLElementTagNameMap {
|
|
504
|
-
"settings-tab": SettingsTab;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
declare class ElementOverlays extends LitElement {
|
|
509
|
-
private overlayMap;
|
|
510
|
-
private callbackAnimations;
|
|
511
|
-
private containerElement;
|
|
512
|
-
static styles: lit.CSSResult[];
|
|
513
|
-
private _abortController;
|
|
514
|
-
connectedCallback(): void;
|
|
515
|
-
private createElementOverlays;
|
|
516
|
-
private updateElementOverlays;
|
|
517
|
-
private createOrUpdateElementOverlay;
|
|
518
|
-
private removeElementOverlay;
|
|
519
|
-
private clearCallbackAnimationTimeout;
|
|
520
|
-
private highlightElementCallback;
|
|
521
|
-
private unhighlightElementCallback;
|
|
522
|
-
updateNameTagVisibility(showNameTags: boolean): void;
|
|
523
|
-
disconnectedCallback(): void;
|
|
524
|
-
render(): lit.TemplateResult<1>;
|
|
525
|
-
}
|
|
526
|
-
declare global {
|
|
527
|
-
interface HTMLElementTagNameMap {
|
|
528
|
-
"element-overlays": ElementOverlays;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
declare class DebugOverlay extends LitElement {
|
|
533
|
-
static styles: lit.CSSResult[];
|
|
534
|
-
private _abortController;
|
|
535
|
-
private _strategy;
|
|
536
|
-
connectedCallback(): void;
|
|
537
|
-
private handleDeviceStrategyChange;
|
|
538
|
-
disconnectedCallback(): void;
|
|
539
|
-
render(): lit.TemplateResult<1>;
|
|
540
|
-
}
|
|
541
|
-
declare global {
|
|
542
|
-
interface HTMLElementTagNameMap {
|
|
543
|
-
"debug-overlay": DebugOverlay;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
declare class ForesightDevtools extends LitElement {
|
|
548
|
-
static styles: lit.CSSResult[];
|
|
549
|
-
private isInitialized;
|
|
550
|
-
private static _instance;
|
|
551
|
-
devtoolsSettings: Required<DevtoolsSettings>;
|
|
552
|
-
private constructor();
|
|
553
|
-
private static createAndAppendInstance;
|
|
554
|
-
static initialize(props?: DeepPartial<DevtoolsSettings>): ForesightDevtools;
|
|
555
|
-
static get instance(): ForesightDevtools;
|
|
556
|
-
disconnectedCallback(): void;
|
|
557
|
-
private shouldUpdateSetting;
|
|
558
|
-
private updateLoggingSetting;
|
|
559
|
-
alterDevtoolsSettings(props?: DeepPartial<DevtoolsSettings>): void;
|
|
560
|
-
private cleanup;
|
|
561
|
-
render(): lit.TemplateResult<1>;
|
|
562
|
-
}
|
|
563
|
-
declare global {
|
|
564
|
-
interface HTMLElementTagNameMap {
|
|
565
|
-
"foresight-devtools": ForesightDevtools;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export { type DebuggerBooleanSettingKeys, type DevtoolsSettings, ForesightDevtools, type SortElementList };
|