js.foresight-devtools 1.1.1 → 1.1.2-beta.2
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/index.d.ts +28 -23
- package/dist/index.js +386 -353
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { LitElement, TemplateResult, PropertyValues } from 'lit';
|
|
3
3
|
import { ForesightEvent, ForesightElementData, ForesightManagerSettings as ForesightManagerSettings$1 } from 'js.foresight';
|
|
4
|
-
import { ForesightEvent as ForesightEvent$1, HitSlop, UpdatedDataPropertyNames, CallbackHitType, Point, ScrollDirection, ForesightManagerSettings, UpdatedManagerSetting, CallbackHits, ForesightElementData as ForesightElementData$1 } from 'js.foresight/types/types';
|
|
4
|
+
import { ForesightEvent as ForesightEvent$1, ElementCallbackInfo, HitSlop, UpdatedDataPropertyNames, CallbackHitType, Point, ScrollDirection, ForesightManagerSettings, UpdatedManagerSetting, CallbackHits, ForesightElementData as ForesightElementData$1 } from 'js.foresight/types/types';
|
|
5
5
|
|
|
6
6
|
type DeepPartial<T> = T extends object ? {
|
|
7
7
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
@@ -58,13 +58,14 @@ type DebuggerBooleanSettingKeys = {
|
|
|
58
58
|
[K in keyof DevtoolsSettings]: Required<DevtoolsSettings>[K] extends boolean ? K : never;
|
|
59
59
|
}[keyof DevtoolsSettings];
|
|
60
60
|
|
|
61
|
-
declare class
|
|
61
|
+
declare class ChipElement extends LitElement {
|
|
62
62
|
static styles: lit.CSSResult[];
|
|
63
|
+
title: string;
|
|
63
64
|
render(): lit.TemplateResult<1>;
|
|
64
65
|
}
|
|
65
66
|
declare global {
|
|
66
67
|
interface HTMLElementTagNameMap {
|
|
67
|
-
"
|
|
68
|
+
"chip-element": ChipElement;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -80,6 +81,16 @@ declare global {
|
|
|
80
81
|
}
|
|
81
82
|
}
|
|
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
|
+
|
|
83
94
|
type DropdownOption = {
|
|
84
95
|
value: string;
|
|
85
96
|
label: string;
|
|
@@ -123,17 +134,6 @@ declare global {
|
|
|
123
134
|
}
|
|
124
135
|
}
|
|
125
136
|
|
|
126
|
-
declare class ChipElement extends LitElement {
|
|
127
|
-
static styles: lit.CSSResult[];
|
|
128
|
-
title: string;
|
|
129
|
-
render(): lit.TemplateResult<1>;
|
|
130
|
-
}
|
|
131
|
-
declare global {
|
|
132
|
-
interface HTMLElementTagNameMap {
|
|
133
|
-
"chip-element": ChipElement;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
137
|
declare class CopyIcon extends LitElement {
|
|
138
138
|
static styles: lit.CSSResult;
|
|
139
139
|
title: string;
|
|
@@ -177,6 +177,7 @@ declare class SingleElement extends LitElement {
|
|
|
177
177
|
onToggle: ((elementId: string) => void) | undefined;
|
|
178
178
|
private getBorderColor;
|
|
179
179
|
private getStatusIndicatorClass;
|
|
180
|
+
private getStatusText;
|
|
180
181
|
private formatElementDetails;
|
|
181
182
|
render(): lit.TemplateResult<1>;
|
|
182
183
|
}
|
|
@@ -190,12 +191,13 @@ declare class ElementTab extends LitElement {
|
|
|
190
191
|
static styles: lit.CSSResult;
|
|
191
192
|
private hitCount;
|
|
192
193
|
private visibleElementsCount;
|
|
194
|
+
private activeElementCallbacksCount;
|
|
193
195
|
private totalElementsCount;
|
|
194
196
|
private sortDropdown;
|
|
195
197
|
private sortOrder;
|
|
196
198
|
private elementListItems;
|
|
197
199
|
private noContentMessage;
|
|
198
|
-
private
|
|
200
|
+
private runningCallbacks;
|
|
199
201
|
private expandedElementIds;
|
|
200
202
|
private elementIdCounter;
|
|
201
203
|
private _abortController;
|
|
@@ -203,6 +205,7 @@ declare class ElementTab extends LitElement {
|
|
|
203
205
|
private handleSortChange;
|
|
204
206
|
private generateElementId;
|
|
205
207
|
private handleElementToggle;
|
|
208
|
+
private updateActiveCallbackCount;
|
|
206
209
|
private updateVisibilityCounts;
|
|
207
210
|
private _generateHitsChipTitle;
|
|
208
211
|
connectedCallback(): void;
|
|
@@ -247,23 +250,25 @@ interface ElementRegisteredPayload extends PayloadBase {
|
|
|
247
250
|
type: "elementRegistered";
|
|
248
251
|
name: string;
|
|
249
252
|
id: string;
|
|
250
|
-
|
|
253
|
+
callbackInfo: ElementCallbackInfo;
|
|
251
254
|
hitslop: HitSlop;
|
|
252
255
|
meta: Record<string, unknown>;
|
|
253
256
|
}
|
|
254
|
-
interface
|
|
257
|
+
interface ElementUnregisteredEvent extends PayloadBase {
|
|
255
258
|
type: "elementUnregistered";
|
|
259
|
+
}
|
|
260
|
+
interface ElementReactivatedPayload extends PayloadBase {
|
|
261
|
+
type: "elementReactivated";
|
|
256
262
|
name: string;
|
|
257
263
|
id: string;
|
|
258
|
-
|
|
259
|
-
unregisterReason: string;
|
|
260
|
-
wasLastElement: boolean;
|
|
264
|
+
callbackInfo: ElementCallbackInfo;
|
|
261
265
|
meta: Record<string, unknown>;
|
|
262
266
|
}
|
|
263
267
|
interface ElementDataUpdatedPayload extends PayloadBase {
|
|
264
268
|
type: "elementDataUpdated";
|
|
265
269
|
name: string;
|
|
266
270
|
updatedProps: UpdatedDataPropertyNames[];
|
|
271
|
+
callbackInfo: ElementCallbackInfo;
|
|
267
272
|
isIntersecting: boolean;
|
|
268
273
|
meta: Record<string, unknown>;
|
|
269
274
|
}
|
|
@@ -271,15 +276,15 @@ interface CallbackInvokedPayload extends PayloadBase {
|
|
|
271
276
|
type: "callbackInvoked";
|
|
272
277
|
name: string;
|
|
273
278
|
hitType: CallbackHitType;
|
|
279
|
+
callbackInfo: ElementCallbackInfo;
|
|
274
280
|
meta: Record<string, unknown>;
|
|
275
281
|
}
|
|
276
282
|
interface CallbackCompletedBasePayload extends PayloadBase {
|
|
277
283
|
type: "callbackCompleted";
|
|
278
284
|
name: string;
|
|
279
|
-
callbackRunTimeFormatted: string;
|
|
280
|
-
callbackRunTimeRaw: number;
|
|
281
285
|
hitType: CallbackHitType;
|
|
282
286
|
status: "success" | "error";
|
|
287
|
+
callbackInfo: ElementCallbackInfo;
|
|
283
288
|
meta: Record<string, unknown>;
|
|
284
289
|
}
|
|
285
290
|
type CallbackCompletedPayload = CallbackCompletedBasePayload & ({
|
|
@@ -321,7 +326,7 @@ interface ManagerDataPayload extends PayloadBase {
|
|
|
321
326
|
elementInfo: string;
|
|
322
327
|
}>;
|
|
323
328
|
}
|
|
324
|
-
type SerializedEventData = ElementRegisteredPayload |
|
|
329
|
+
type SerializedEventData = ElementRegisteredPayload | ElementUnregisteredEvent | ElementReactivatedPayload | ElementDataUpdatedPayload | CallbackInvokedPayload | CallbackCompletedPayload | MouseTrajectoryUpdatePayload | ScrollTrajectoryUpdatePayload | ManagerSettingsChangedPayload | ManagerDataPayload | SerializationErrorPayload;
|
|
325
330
|
|
|
326
331
|
declare class SingleLog extends LitElement {
|
|
327
332
|
static styles: lit.CSSResult[];
|