js.foresight-devtools 1.1.2-beta.1 → 1.2.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/dist/index.d.ts +32 -17
- package/dist/index.js +265 -148
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -167,17 +167,40 @@ declare global {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
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
|
+
updated(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
|
+
|
|
170
193
|
declare class SingleElement extends LitElement {
|
|
171
194
|
static styles: lit.CSSResult[];
|
|
172
|
-
elementData: ForesightElementData
|
|
173
|
-
elementId: string;
|
|
174
|
-
};
|
|
195
|
+
elementData: ForesightElementData;
|
|
175
196
|
isActive: boolean;
|
|
176
197
|
isExpanded: boolean;
|
|
177
198
|
onToggle: ((elementId: string) => void) | undefined;
|
|
178
199
|
private getBorderColor;
|
|
179
200
|
private getStatusIndicatorClass;
|
|
201
|
+
private getStatusText;
|
|
180
202
|
private formatElementDetails;
|
|
203
|
+
private handleUnregister;
|
|
181
204
|
render(): lit.TemplateResult<1>;
|
|
182
205
|
}
|
|
183
206
|
declare global {
|
|
@@ -189,27 +212,24 @@ declare global {
|
|
|
189
212
|
declare class ElementTab extends LitElement {
|
|
190
213
|
static styles: lit.CSSResult;
|
|
191
214
|
private hitCount;
|
|
192
|
-
private visibleElementsCount;
|
|
193
|
-
private totalElementsCount;
|
|
194
215
|
private sortDropdown;
|
|
195
216
|
private sortOrder;
|
|
196
217
|
private elementListItems;
|
|
197
218
|
private noContentMessage;
|
|
198
|
-
private
|
|
219
|
+
private runningCallbacks;
|
|
199
220
|
private expandedElementIds;
|
|
200
|
-
private elementIdCounter;
|
|
201
221
|
private _abortController;
|
|
202
222
|
constructor();
|
|
203
223
|
private handleSortChange;
|
|
204
|
-
private generateElementId;
|
|
205
224
|
private handleElementToggle;
|
|
206
|
-
private updateVisibilityCounts;
|
|
207
225
|
private _generateHitsChipTitle;
|
|
208
226
|
connectedCallback(): void;
|
|
209
227
|
disconnectedCallback(): void;
|
|
210
228
|
private updateElementListFromManager;
|
|
211
229
|
private handleCallbackCompleted;
|
|
212
230
|
private getSortedElements;
|
|
231
|
+
private getActiveElements;
|
|
232
|
+
private getInactiveElements;
|
|
213
233
|
private sortByDocumentPosition;
|
|
214
234
|
render(): lit.TemplateResult<1>;
|
|
215
235
|
}
|
|
@@ -276,20 +296,15 @@ interface CallbackInvokedPayload extends PayloadBase {
|
|
|
276
296
|
callbackInfo: ElementCallbackInfo;
|
|
277
297
|
meta: Record<string, unknown>;
|
|
278
298
|
}
|
|
279
|
-
interface
|
|
299
|
+
interface CallbackCompletedPayload extends PayloadBase {
|
|
280
300
|
type: "callbackCompleted";
|
|
281
301
|
name: string;
|
|
282
302
|
hitType: CallbackHitType;
|
|
283
|
-
status: "success" | "error";
|
|
303
|
+
status: "success" | "error" | undefined;
|
|
304
|
+
errorMessage: string | undefined | null;
|
|
284
305
|
callbackInfo: ElementCallbackInfo;
|
|
285
306
|
meta: Record<string, unknown>;
|
|
286
307
|
}
|
|
287
|
-
type CallbackCompletedPayload = CallbackCompletedBasePayload & ({
|
|
288
|
-
status: "success";
|
|
289
|
-
} | {
|
|
290
|
-
status: "error";
|
|
291
|
-
errorMessage: string;
|
|
292
|
-
});
|
|
293
308
|
interface MouseTrajectoryUpdatePayload extends PayloadBase {
|
|
294
309
|
type: "mouseTrajectoryUpdate";
|
|
295
310
|
currentPoint: Point;
|