js.foresight-devtools 1.1.1 → 1.1.2-beta.1
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 +24 -22
- package/dist/index.js +345 -345
- 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;
|
|
@@ -247,23 +247,25 @@ interface ElementRegisteredPayload extends PayloadBase {
|
|
|
247
247
|
type: "elementRegistered";
|
|
248
248
|
name: string;
|
|
249
249
|
id: string;
|
|
250
|
-
|
|
250
|
+
callbackInfo: ElementCallbackInfo;
|
|
251
251
|
hitslop: HitSlop;
|
|
252
252
|
meta: Record<string, unknown>;
|
|
253
253
|
}
|
|
254
|
-
interface
|
|
254
|
+
interface ElementUnregisteredEvent extends PayloadBase {
|
|
255
255
|
type: "elementUnregistered";
|
|
256
|
+
}
|
|
257
|
+
interface ElementReactivatedPayload extends PayloadBase {
|
|
258
|
+
type: "elementReactivated";
|
|
256
259
|
name: string;
|
|
257
260
|
id: string;
|
|
258
|
-
|
|
259
|
-
unregisterReason: string;
|
|
260
|
-
wasLastElement: boolean;
|
|
261
|
+
callbackInfo: ElementCallbackInfo;
|
|
261
262
|
meta: Record<string, unknown>;
|
|
262
263
|
}
|
|
263
264
|
interface ElementDataUpdatedPayload extends PayloadBase {
|
|
264
265
|
type: "elementDataUpdated";
|
|
265
266
|
name: string;
|
|
266
267
|
updatedProps: UpdatedDataPropertyNames[];
|
|
268
|
+
callbackInfo: ElementCallbackInfo;
|
|
267
269
|
isIntersecting: boolean;
|
|
268
270
|
meta: Record<string, unknown>;
|
|
269
271
|
}
|
|
@@ -271,15 +273,15 @@ interface CallbackInvokedPayload extends PayloadBase {
|
|
|
271
273
|
type: "callbackInvoked";
|
|
272
274
|
name: string;
|
|
273
275
|
hitType: CallbackHitType;
|
|
276
|
+
callbackInfo: ElementCallbackInfo;
|
|
274
277
|
meta: Record<string, unknown>;
|
|
275
278
|
}
|
|
276
279
|
interface CallbackCompletedBasePayload extends PayloadBase {
|
|
277
280
|
type: "callbackCompleted";
|
|
278
281
|
name: string;
|
|
279
|
-
callbackRunTimeFormatted: string;
|
|
280
|
-
callbackRunTimeRaw: number;
|
|
281
282
|
hitType: CallbackHitType;
|
|
282
283
|
status: "success" | "error";
|
|
284
|
+
callbackInfo: ElementCallbackInfo;
|
|
283
285
|
meta: Record<string, unknown>;
|
|
284
286
|
}
|
|
285
287
|
type CallbackCompletedPayload = CallbackCompletedBasePayload & ({
|
|
@@ -321,7 +323,7 @@ interface ManagerDataPayload extends PayloadBase {
|
|
|
321
323
|
elementInfo: string;
|
|
322
324
|
}>;
|
|
323
325
|
}
|
|
324
|
-
type SerializedEventData = ElementRegisteredPayload |
|
|
326
|
+
type SerializedEventData = ElementRegisteredPayload | ElementUnregisteredEvent | ElementReactivatedPayload | ElementDataUpdatedPayload | CallbackInvokedPayload | CallbackCompletedPayload | MouseTrajectoryUpdatePayload | ScrollTrajectoryUpdatePayload | ManagerSettingsChangedPayload | ManagerDataPayload | SerializationErrorPayload;
|
|
325
327
|
|
|
326
328
|
declare class SingleLog extends LitElement {
|
|
327
329
|
static styles: lit.CSSResult[];
|