abledom 0.6.4 → 0.6.5
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/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/ts3.9/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -111,7 +111,7 @@ declare class AbleDOM {
|
|
|
111
111
|
private _onFocusOut;
|
|
112
112
|
private _notifyAsync;
|
|
113
113
|
private _getCurrentIssues;
|
|
114
|
-
idle(markAsRead?: boolean, timeout?: number): Promise<ValidationIssue[]
|
|
114
|
+
idle(markAsRead?: boolean, timeout?: number): Promise<ValidationIssue[]>;
|
|
115
115
|
clearCurrentIssues(anchored?: boolean, notAnchored?: boolean): void;
|
|
116
116
|
highlightElement(element: HTMLElement | null, scrollIntoView?: boolean, autoHideTime?: number): void;
|
|
117
117
|
log: typeof console.error;
|
package/dist/index.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ declare class AbleDOM {
|
|
|
111
111
|
private _onFocusOut;
|
|
112
112
|
private _notifyAsync;
|
|
113
113
|
private _getCurrentIssues;
|
|
114
|
-
idle(markAsRead?: boolean, timeout?: number): Promise<ValidationIssue[]
|
|
114
|
+
idle(markAsRead?: boolean, timeout?: number): Promise<ValidationIssue[]>;
|
|
115
115
|
clearCurrentIssues(anchored?: boolean, notAnchored?: boolean): void;
|
|
116
116
|
highlightElement(element: HTMLElement | null, scrollIntoView?: boolean, autoHideTime?: number): void;
|
|
117
117
|
log: typeof console.error;
|
package/dist/index.js
CHANGED
|
@@ -1492,8 +1492,7 @@ var AbleDOM = class {
|
|
|
1492
1492
|
let timeoutPromise = timeout ? new Promise((resolve) => {
|
|
1493
1493
|
timeoutResolve = () => {
|
|
1494
1494
|
timeoutClear == null ? void 0 : timeoutClear();
|
|
1495
|
-
|
|
1496
|
-
resolve(null);
|
|
1495
|
+
resolve(this._getCurrentIssues(!!markAsRead));
|
|
1497
1496
|
};
|
|
1498
1497
|
let timeoutTimer = this._win.setTimeout(() => {
|
|
1499
1498
|
timeoutClear = void 0;
|
|
@@ -1502,6 +1501,7 @@ var AbleDOM = class {
|
|
|
1502
1501
|
}, timeout);
|
|
1503
1502
|
timeoutClear = () => {
|
|
1504
1503
|
this._win.clearTimeout(timeoutTimer);
|
|
1504
|
+
timeoutResolve = void 0;
|
|
1505
1505
|
timeoutClear = void 0;
|
|
1506
1506
|
};
|
|
1507
1507
|
}) : void 0;
|
|
@@ -1511,7 +1511,7 @@ var AbleDOM = class {
|
|
|
1511
1511
|
delete this._idlePromise;
|
|
1512
1512
|
delete this._idleResolve;
|
|
1513
1513
|
resolve(this._getCurrentIssues(timedOut ? false : !!markAsRead));
|
|
1514
|
-
|
|
1514
|
+
timeoutClear == null ? void 0 : timeoutClear();
|
|
1515
1515
|
};
|
|
1516
1516
|
});
|
|
1517
1517
|
}
|