@types/web 0.0.297 → 0.0.298
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/README.md +1 -1
- package/index.d.ts +424 -7
- package/package.json +1 -1
- package/ts5.5/index.d.ts +424 -7
- package/ts5.6/index.d.ts +424 -7
- package/ts5.9/index.d.ts +424 -7
package/ts5.9/index.d.ts
CHANGED
|
@@ -947,12 +947,12 @@ interface KeySystemTrackConfiguration {
|
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
interface KeyboardEventInit extends EventModifierInit {
|
|
950
|
-
/** @deprecated */
|
|
950
|
+
/** @deprecated `charCode` is inconsistent across environments, consider using `key` instead. */
|
|
951
951
|
charCode?: number;
|
|
952
952
|
code?: string;
|
|
953
953
|
isComposing?: boolean;
|
|
954
954
|
key?: string;
|
|
955
|
-
/** @deprecated */
|
|
955
|
+
/** @deprecated `keyCode` is inconsistent across environments, consider using `key` instead. */
|
|
956
956
|
keyCode?: number;
|
|
957
957
|
location?: number;
|
|
958
958
|
repeat?: boolean;
|
|
@@ -1257,11 +1257,59 @@ interface MutationObserverInit {
|
|
|
1257
1257
|
subtree?: boolean;
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
|
+
interface NavigateEventInit extends EventInit {
|
|
1261
|
+
canIntercept?: boolean;
|
|
1262
|
+
destination: NavigationDestination;
|
|
1263
|
+
downloadRequest?: string | null;
|
|
1264
|
+
formData?: FormData | null;
|
|
1265
|
+
hasUAVisualTransition?: boolean;
|
|
1266
|
+
hashChange?: boolean;
|
|
1267
|
+
info?: any;
|
|
1268
|
+
navigationType?: NavigationType;
|
|
1269
|
+
signal: AbortSignal;
|
|
1270
|
+
sourceElement?: Element | null;
|
|
1271
|
+
userInitiated?: boolean;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
interface NavigationCurrentEntryChangeEventInit extends EventInit {
|
|
1275
|
+
from: NavigationHistoryEntry;
|
|
1276
|
+
navigationType?: NavigationType | null;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
interface NavigationInterceptOptions {
|
|
1280
|
+
focusReset?: NavigationFocusReset;
|
|
1281
|
+
handler?: NavigationInterceptHandler;
|
|
1282
|
+
precommitHandler?: NavigationPrecommitHandler;
|
|
1283
|
+
scroll?: NavigationScrollBehavior;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
interface NavigationNavigateOptions extends NavigationOptions {
|
|
1287
|
+
history?: NavigationHistoryBehavior;
|
|
1288
|
+
state?: any;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
interface NavigationOptions {
|
|
1292
|
+
info?: any;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1260
1295
|
interface NavigationPreloadState {
|
|
1261
1296
|
enabled?: boolean;
|
|
1262
1297
|
headerValue?: string;
|
|
1263
1298
|
}
|
|
1264
1299
|
|
|
1300
|
+
interface NavigationReloadOptions extends NavigationOptions {
|
|
1301
|
+
state?: any;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
interface NavigationResult {
|
|
1305
|
+
committed?: Promise<NavigationHistoryEntry>;
|
|
1306
|
+
finished?: Promise<NavigationHistoryEntry>;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
interface NavigationUpdateCurrentEntryOptions {
|
|
1310
|
+
state: any;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1265
1313
|
interface NotificationOptions {
|
|
1266
1314
|
badge?: string;
|
|
1267
1315
|
body?: string;
|
|
@@ -6982,6 +7030,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6982
7030
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/empty-cells)
|
|
6983
7031
|
*/
|
|
6984
7032
|
emptyCells: string;
|
|
7033
|
+
/**
|
|
7034
|
+
* The field-sizing CSS property enables you to control the sizing behavior of elements that are given a default preferred size, such as form control elements. This property enables you to override the default sizing behavior, allowing form controls to adjust in size to fit their contents.
|
|
7035
|
+
*
|
|
7036
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/field-sizing)
|
|
7037
|
+
*/
|
|
7038
|
+
fieldSizing: string;
|
|
6985
7039
|
/**
|
|
6986
7040
|
* The **`fill`** CSS property defines how SVG text content and the interior canvas of SVG shapes are filled or painted. If present, it overrides the element's fill attribute.
|
|
6987
7041
|
*
|
|
@@ -8050,6 +8104,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8050
8104
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-try-order)
|
|
8051
8105
|
*/
|
|
8052
8106
|
positionTryOrder: string;
|
|
8107
|
+
/**
|
|
8108
|
+
* The position-visibility CSS property enables conditionally hiding an anchor-positioned element depending on, for example, whether it is overflowing its containing element or the viewport.
|
|
8109
|
+
*
|
|
8110
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-visibility)
|
|
8111
|
+
*/
|
|
8112
|
+
positionVisibility: string;
|
|
8053
8113
|
/**
|
|
8054
8114
|
* The print-color-adjust CSS property sets what, if anything, the user agent may do to optimize the appearance of the element on the output device. By default, the browser is allowed to make any adjustments to the element's appearance it determines to be necessary and prudent given the type and capabilities of the output device.
|
|
8055
8115
|
*
|
|
@@ -9195,7 +9255,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
9195
9255
|
*/
|
|
9196
9256
|
wordSpacing: string;
|
|
9197
9257
|
/**
|
|
9198
|
-
* @deprecated
|
|
9258
|
+
* @deprecated `word-wrap` is a legacy alias of `overflow-wrap`.
|
|
9199
9259
|
*
|
|
9200
9260
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/overflow-wrap)
|
|
9201
9261
|
*/
|
|
@@ -11989,6 +12049,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
11989
12049
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
|
|
11990
12050
|
*/
|
|
11991
12051
|
readonly URL: string;
|
|
12052
|
+
/**
|
|
12053
|
+
* The **`activeViewTransition`** read-only property of the Document interface returns a ViewTransition instance representing the view transition currently active on the document.
|
|
12054
|
+
*
|
|
12055
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeViewTransition)
|
|
12056
|
+
*/
|
|
12057
|
+
readonly activeViewTransition: ViewTransition | null;
|
|
11992
12058
|
/**
|
|
11993
12059
|
* Returns or sets the color of an active link in the document body. A link is active during the time between mousedown and mouseup events.
|
|
11994
12060
|
* @deprecated
|
|
@@ -12408,6 +12474,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
12408
12474
|
createEvent(eventInterface: "MessageEvent"): MessageEvent;
|
|
12409
12475
|
createEvent(eventInterface: "MouseEvent"): MouseEvent;
|
|
12410
12476
|
createEvent(eventInterface: "MouseEvents"): MouseEvent;
|
|
12477
|
+
createEvent(eventInterface: "NavigateEvent"): NavigateEvent;
|
|
12478
|
+
createEvent(eventInterface: "NavigationCurrentEntryChangeEvent"): NavigationCurrentEntryChangeEvent;
|
|
12411
12479
|
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
|
|
12412
12480
|
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
|
|
12413
12481
|
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
|
|
@@ -21544,7 +21612,7 @@ declare var KeyframeEffect: {
|
|
|
21544
21612
|
*
|
|
21545
21613
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint)
|
|
21546
21614
|
*/
|
|
21547
|
-
interface LargestContentfulPaint extends PerformanceEntry {
|
|
21615
|
+
interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin {
|
|
21548
21616
|
/**
|
|
21549
21617
|
* The **`element`** read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.
|
|
21550
21618
|
*
|
|
@@ -23559,6 +23627,182 @@ declare var NamedNodeMap: {
|
|
|
23559
23627
|
new(): NamedNodeMap;
|
|
23560
23628
|
};
|
|
23561
23629
|
|
|
23630
|
+
/**
|
|
23631
|
+
* The **`NavigateEvent`** interface of the Navigation API is the event object for the navigate event, which fires when any type of navigation is initiated (this includes usage of History API features like History.go()). NavigateEvent provides access to information about that navigation, and allows developers to intercept and control the navigation handling.
|
|
23632
|
+
*
|
|
23633
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent)
|
|
23634
|
+
*/
|
|
23635
|
+
interface NavigateEvent extends Event {
|
|
23636
|
+
/**
|
|
23637
|
+
* The **`canIntercept`** read-only property of the NavigateEvent interface returns true if the navigation can be intercepted and have its URL rewritten, or false otherwise
|
|
23638
|
+
*
|
|
23639
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/canIntercept)
|
|
23640
|
+
*/
|
|
23641
|
+
readonly canIntercept: boolean;
|
|
23642
|
+
/**
|
|
23643
|
+
* The **`destination`** read-only property of the NavigateEvent interface returns a NavigationDestination object representing the destination being navigated to.
|
|
23644
|
+
*
|
|
23645
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/destination)
|
|
23646
|
+
*/
|
|
23647
|
+
readonly destination: NavigationDestination;
|
|
23648
|
+
/**
|
|
23649
|
+
* The **`downloadRequest`** read-only property of the NavigateEvent interface returns the filename of the file requested for download, in the case of a download navigation (e.g., an <a> or <area> element with a download attribute), or null otherwise.
|
|
23650
|
+
*
|
|
23651
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/downloadRequest)
|
|
23652
|
+
*/
|
|
23653
|
+
readonly downloadRequest: string | null;
|
|
23654
|
+
/**
|
|
23655
|
+
* The **`formData`** read-only property of the NavigateEvent interface returns the FormData object representing the submitted data in the case of a POST form submission, or null otherwise.
|
|
23656
|
+
*
|
|
23657
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/formData)
|
|
23658
|
+
*/
|
|
23659
|
+
readonly formData: FormData | null;
|
|
23660
|
+
/**
|
|
23661
|
+
* The **`hasUAVisualTransition`** read-only property of the NavigateEvent interface returns true if the user agent performed a visual transition for this navigation before dispatching this event, or false otherwise.
|
|
23662
|
+
*
|
|
23663
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hasUAVisualTransition)
|
|
23664
|
+
*/
|
|
23665
|
+
readonly hasUAVisualTransition: boolean;
|
|
23666
|
+
/**
|
|
23667
|
+
* The **`hashChange`** read-only property of the NavigateEvent interface returns true if the navigation is a fragment navigation (i.e., to a fragment identifier in the same document), or false otherwise.
|
|
23668
|
+
*
|
|
23669
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hashChange)
|
|
23670
|
+
*/
|
|
23671
|
+
readonly hashChange: boolean;
|
|
23672
|
+
/**
|
|
23673
|
+
* The **`info`** read-only property of the NavigateEvent interface returns the info data value passed by the initiating navigation operation (e.g., Navigation.back(), or Navigation.navigate()), or undefined if no info data was passed.
|
|
23674
|
+
*
|
|
23675
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/info)
|
|
23676
|
+
*/
|
|
23677
|
+
readonly info: any;
|
|
23678
|
+
/**
|
|
23679
|
+
* The **`navigationType`** read-only property of the NavigateEvent interface returns the type of the navigation — push, reload, replace, or traverse.
|
|
23680
|
+
*
|
|
23681
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/navigationType)
|
|
23682
|
+
*/
|
|
23683
|
+
readonly navigationType: NavigationType;
|
|
23684
|
+
/**
|
|
23685
|
+
* The **`signal`** read-only property of the NavigateEvent interface returns an AbortSignal, which will become aborted if the navigation is cancelled (e.g., by the user pressing the browser's "Stop" button, or another navigation starting and thus cancelling the ongoing one).
|
|
23686
|
+
*
|
|
23687
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/signal)
|
|
23688
|
+
*/
|
|
23689
|
+
readonly signal: AbortSignal;
|
|
23690
|
+
/**
|
|
23691
|
+
* The **`sourceElement`** read-only property of the NavigateEvent interface returns an Element object representing the initiating element, in cases where the navigation was initiated by an element.
|
|
23692
|
+
*
|
|
23693
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/sourceElement)
|
|
23694
|
+
*/
|
|
23695
|
+
readonly sourceElement: Element | null;
|
|
23696
|
+
/**
|
|
23697
|
+
* The **`userInitiated`** read-only property of the NavigateEvent interface returns true if the navigation was initiated by the user (e.g., by clicking a link, submitting a form, or pressing the browser's "Back"/"Forward" buttons), or false otherwise.
|
|
23698
|
+
*
|
|
23699
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/userInitiated)
|
|
23700
|
+
*/
|
|
23701
|
+
readonly userInitiated: boolean;
|
|
23702
|
+
/**
|
|
23703
|
+
* The **`intercept()`** method of the NavigateEvent interface intercepts this navigation, turning it into a same-document navigation to the destination URL.
|
|
23704
|
+
*
|
|
23705
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/intercept)
|
|
23706
|
+
*/
|
|
23707
|
+
intercept(options?: NavigationInterceptOptions): void;
|
|
23708
|
+
/**
|
|
23709
|
+
* The **`scroll()`** method of the NavigateEvent interface can be called to manually trigger the browser-driven scrolling behavior that occurs in response to the navigation, if you want it to happen before the navigation handling has completed.
|
|
23710
|
+
*
|
|
23711
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/scroll)
|
|
23712
|
+
*/
|
|
23713
|
+
scroll(): void;
|
|
23714
|
+
}
|
|
23715
|
+
|
|
23716
|
+
declare var NavigateEvent: {
|
|
23717
|
+
prototype: NavigateEvent;
|
|
23718
|
+
new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
|
|
23719
|
+
};
|
|
23720
|
+
|
|
23721
|
+
/**
|
|
23722
|
+
* The **`Navigation`** interface of the Navigation API allows control over all navigation actions for the current window in one central place, including initiating navigations programmatically, examining navigation history entries, and managing navigations as they happen.
|
|
23723
|
+
*
|
|
23724
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation)
|
|
23725
|
+
*/
|
|
23726
|
+
interface Navigation extends EventTarget {
|
|
23727
|
+
/**
|
|
23728
|
+
* The **`activation`** read-only property of the Navigation interface returns a NavigationActivation object containing information about the most recent cross-document navigation, which "activated" this Document. The property will stay constant during same-document navigations.
|
|
23729
|
+
*
|
|
23730
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/activation)
|
|
23731
|
+
*/
|
|
23732
|
+
readonly activation: NavigationActivation | null;
|
|
23733
|
+
/**
|
|
23734
|
+
* The **`canGoBack`** read-only property of the Navigation interface returns true if it is possible to navigate backwards in the navigation history (i.e., the currentEntry is not the first one in the history entry list), and false if it is not.
|
|
23735
|
+
*
|
|
23736
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoBack)
|
|
23737
|
+
*/
|
|
23738
|
+
readonly canGoBack: boolean;
|
|
23739
|
+
/**
|
|
23740
|
+
* The **`canGoForward`** read-only property of the Navigation interface returns true if it is possible to navigate forwards in the navigation history (i.e., the currentEntry is not the last one in the history entry list), and false if it is not.
|
|
23741
|
+
*
|
|
23742
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoForward)
|
|
23743
|
+
*/
|
|
23744
|
+
readonly canGoForward: boolean;
|
|
23745
|
+
/**
|
|
23746
|
+
* The **`currentEntry`** read-only property of the Navigation interface returns a NavigationHistoryEntry object representing the location the user is currently navigated to right now.
|
|
23747
|
+
*
|
|
23748
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
|
|
23749
|
+
*/
|
|
23750
|
+
readonly currentEntry: NavigationHistoryEntry | null;
|
|
23751
|
+
/**
|
|
23752
|
+
* The **`transition`** read-only property of the Navigation interface returns a NavigationTransition object representing the status of an in-progress navigation, which can be used to track it.
|
|
23753
|
+
*
|
|
23754
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/transition)
|
|
23755
|
+
*/
|
|
23756
|
+
readonly transition: NavigationTransition | null;
|
|
23757
|
+
/**
|
|
23758
|
+
* The **`back()`** method of the Navigation interface navigates backwards by one entry in the navigation history.
|
|
23759
|
+
*
|
|
23760
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/back)
|
|
23761
|
+
*/
|
|
23762
|
+
back(options?: NavigationOptions): NavigationResult;
|
|
23763
|
+
/**
|
|
23764
|
+
* The **`entries()`** method of the Navigation interface returns an array of NavigationHistoryEntry objects representing all existing history entries.
|
|
23765
|
+
*
|
|
23766
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/entries)
|
|
23767
|
+
*/
|
|
23768
|
+
entries(): NavigationHistoryEntry[];
|
|
23769
|
+
/**
|
|
23770
|
+
* The **`forward()`** method of the Navigation interface navigates forwards by one entry in the navigation history.
|
|
23771
|
+
*
|
|
23772
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/forward)
|
|
23773
|
+
*/
|
|
23774
|
+
forward(options?: NavigationOptions): NavigationResult;
|
|
23775
|
+
/**
|
|
23776
|
+
* The **`navigate()`** method of the Navigation interface navigates to a specific URL, updating any provided state in the history entries list.
|
|
23777
|
+
*
|
|
23778
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate)
|
|
23779
|
+
*/
|
|
23780
|
+
navigate(url: string | URL, options?: NavigationNavigateOptions): NavigationResult;
|
|
23781
|
+
/**
|
|
23782
|
+
* The **`reload()`** method of the Navigation interface reloads the current URL, updating any provided state in the history entries list.
|
|
23783
|
+
*
|
|
23784
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/reload)
|
|
23785
|
+
*/
|
|
23786
|
+
reload(options?: NavigationReloadOptions): NavigationResult;
|
|
23787
|
+
/**
|
|
23788
|
+
* The **`traverseTo()`** method of the Navigation interface navigates to the NavigationHistoryEntry identified by the given key.
|
|
23789
|
+
*
|
|
23790
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/traverseTo)
|
|
23791
|
+
*/
|
|
23792
|
+
traverseTo(key: string, options?: NavigationOptions): NavigationResult;
|
|
23793
|
+
/**
|
|
23794
|
+
* The **`updateCurrentEntry()`** method of the Navigation interface updates the state of the currentEntry; used in cases where the state change will be independent of a navigation or reload.
|
|
23795
|
+
*
|
|
23796
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
|
|
23797
|
+
*/
|
|
23798
|
+
updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
|
|
23799
|
+
}
|
|
23800
|
+
|
|
23801
|
+
declare var Navigation: {
|
|
23802
|
+
prototype: Navigation;
|
|
23803
|
+
new(): Navigation;
|
|
23804
|
+
};
|
|
23805
|
+
|
|
23562
23806
|
/**
|
|
23563
23807
|
* The **`NavigationActivation`** interface of the Navigation API represents a recent cross-document navigation. It contains the navigation type and outgoing and inbound document history entries.
|
|
23564
23808
|
*
|
|
@@ -23590,6 +23834,80 @@ declare var NavigationActivation: {
|
|
|
23590
23834
|
new(): NavigationActivation;
|
|
23591
23835
|
};
|
|
23592
23836
|
|
|
23837
|
+
/**
|
|
23838
|
+
* The **`NavigationCurrentEntryChangeEvent`** interface of the Navigation API is the event object for the currententrychange event, which fires when the Navigation.currentEntry has changed.
|
|
23839
|
+
*
|
|
23840
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent)
|
|
23841
|
+
*/
|
|
23842
|
+
interface NavigationCurrentEntryChangeEvent extends Event {
|
|
23843
|
+
/**
|
|
23844
|
+
* The **`from`** read-only property of the NavigationCurrentEntryChangeEvent interface returns the NavigationHistoryEntry that was navigated from.
|
|
23845
|
+
*
|
|
23846
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/from)
|
|
23847
|
+
*/
|
|
23848
|
+
readonly from: NavigationHistoryEntry;
|
|
23849
|
+
/**
|
|
23850
|
+
* The **`navigationType`** read-only property of the NavigationCurrentEntryChangeEvent interface returns the type of the navigation that resulted in the change. The property may be null if the change occurs due to Navigation.updateCurrentEntry().
|
|
23851
|
+
*
|
|
23852
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/navigationType)
|
|
23853
|
+
*/
|
|
23854
|
+
readonly navigationType: NavigationType | null;
|
|
23855
|
+
}
|
|
23856
|
+
|
|
23857
|
+
declare var NavigationCurrentEntryChangeEvent: {
|
|
23858
|
+
prototype: NavigationCurrentEntryChangeEvent;
|
|
23859
|
+
new(type: string, eventInitDict: NavigationCurrentEntryChangeEventInit): NavigationCurrentEntryChangeEvent;
|
|
23860
|
+
};
|
|
23861
|
+
|
|
23862
|
+
/**
|
|
23863
|
+
* The **`NavigationDestination`** interface of the Navigation API represents the destination being navigated to in the current navigation.
|
|
23864
|
+
*
|
|
23865
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination)
|
|
23866
|
+
*/
|
|
23867
|
+
interface NavigationDestination {
|
|
23868
|
+
/**
|
|
23869
|
+
* The **`id`** read-only property of the NavigationDestination interface returns the id value of the destination NavigationHistoryEntry if the NavigateEvent.navigationType is traverse, or an empty string otherwise.
|
|
23870
|
+
*
|
|
23871
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/id)
|
|
23872
|
+
*/
|
|
23873
|
+
readonly id: string;
|
|
23874
|
+
/**
|
|
23875
|
+
* The **`index`** read-only property of the NavigationDestination interface returns the index value of the destination NavigationHistoryEntry if the NavigateEvent.navigationType is traverse, or -1 otherwise.
|
|
23876
|
+
*
|
|
23877
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/index)
|
|
23878
|
+
*/
|
|
23879
|
+
readonly index: number;
|
|
23880
|
+
/**
|
|
23881
|
+
* The **`key`** read-only property of the NavigationDestination interface returns the key value of the destination NavigationHistoryEntry if the NavigateEvent.navigationType is traverse, or an empty string otherwise.
|
|
23882
|
+
*
|
|
23883
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/key)
|
|
23884
|
+
*/
|
|
23885
|
+
readonly key: string;
|
|
23886
|
+
/**
|
|
23887
|
+
* The **`sameDocument`** read-only property of the NavigationDestination interface returns true if the navigation is to the same document as the current Document value, or false otherwise.
|
|
23888
|
+
*
|
|
23889
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/sameDocument)
|
|
23890
|
+
*/
|
|
23891
|
+
readonly sameDocument: boolean;
|
|
23892
|
+
/**
|
|
23893
|
+
* The **`url`** read-only property of the NavigationDestination interface returns the URL being navigated to.
|
|
23894
|
+
*
|
|
23895
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/url)
|
|
23896
|
+
*/
|
|
23897
|
+
readonly url: string;
|
|
23898
|
+
/**
|
|
23899
|
+
* The **`getState()`** method of the NavigationDestination interface returns a clone of the developer-supplied state associated with the destination NavigationHistoryEntry, or navigation operation (e.g., navigate()) as appropriate.
|
|
23900
|
+
*
|
|
23901
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/getState)
|
|
23902
|
+
*/
|
|
23903
|
+
getState(): any;
|
|
23904
|
+
}
|
|
23905
|
+
|
|
23906
|
+
declare var NavigationDestination: {
|
|
23907
|
+
prototype: NavigationDestination;
|
|
23908
|
+
new(): NavigationDestination;
|
|
23909
|
+
};
|
|
23910
|
+
|
|
23593
23911
|
interface NavigationHistoryEntryEventMap {
|
|
23594
23912
|
"dispose": Event;
|
|
23595
23913
|
}
|
|
@@ -23649,6 +23967,25 @@ declare var NavigationHistoryEntry: {
|
|
|
23649
23967
|
new(): NavigationHistoryEntry;
|
|
23650
23968
|
};
|
|
23651
23969
|
|
|
23970
|
+
/**
|
|
23971
|
+
* The **`NavigationPrecommitController`** interface of the Navigation API defines redirect behavior for a navigation precommit handler.
|
|
23972
|
+
*
|
|
23973
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
23974
|
+
*/
|
|
23975
|
+
interface NavigationPrecommitController {
|
|
23976
|
+
/**
|
|
23977
|
+
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
23978
|
+
*
|
|
23979
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/redirect)
|
|
23980
|
+
*/
|
|
23981
|
+
redirect(url: string | URL, options?: NavigationNavigateOptions): void;
|
|
23982
|
+
}
|
|
23983
|
+
|
|
23984
|
+
declare var NavigationPrecommitController: {
|
|
23985
|
+
prototype: NavigationPrecommitController;
|
|
23986
|
+
new(): NavigationPrecommitController;
|
|
23987
|
+
};
|
|
23988
|
+
|
|
23652
23989
|
/**
|
|
23653
23990
|
* The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
|
|
23654
23991
|
* Available only in secure contexts.
|
|
@@ -23687,6 +24024,38 @@ declare var NavigationPreloadManager: {
|
|
|
23687
24024
|
new(): NavigationPreloadManager;
|
|
23688
24025
|
};
|
|
23689
24026
|
|
|
24027
|
+
/**
|
|
24028
|
+
* The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage.
|
|
24029
|
+
*
|
|
24030
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
|
|
24031
|
+
*/
|
|
24032
|
+
interface NavigationTransition {
|
|
24033
|
+
readonly committed: Promise<void>;
|
|
24034
|
+
/**
|
|
24035
|
+
* The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
|
|
24036
|
+
*
|
|
24037
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/finished)
|
|
24038
|
+
*/
|
|
24039
|
+
readonly finished: Promise<void>;
|
|
24040
|
+
/**
|
|
24041
|
+
* The **`from`** read-only property of the NavigationTransition interface returns the NavigationHistoryEntry that the transition is coming from.
|
|
24042
|
+
*
|
|
24043
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/from)
|
|
24044
|
+
*/
|
|
24045
|
+
readonly from: NavigationHistoryEntry;
|
|
24046
|
+
/**
|
|
24047
|
+
* The **`navigationType`** read-only property of the NavigationTransition interface returns the type of the ongoing navigation.
|
|
24048
|
+
*
|
|
24049
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/navigationType)
|
|
24050
|
+
*/
|
|
24051
|
+
readonly navigationType: NavigationType;
|
|
24052
|
+
}
|
|
24053
|
+
|
|
24054
|
+
declare var NavigationTransition: {
|
|
24055
|
+
prototype: NavigationTransition;
|
|
24056
|
+
new(): NavigationTransition;
|
|
24057
|
+
};
|
|
24058
|
+
|
|
23690
24059
|
/**
|
|
23691
24060
|
* The **`Navigator`** interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.
|
|
23692
24061
|
*
|
|
@@ -24829,6 +25198,11 @@ declare var PageTransitionEvent: {
|
|
|
24829
25198
|
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
|
|
24830
25199
|
};
|
|
24831
25200
|
|
|
25201
|
+
interface PaintTimingMixin {
|
|
25202
|
+
readonly paintTime: DOMHighResTimeStamp;
|
|
25203
|
+
readonly presentationTime: DOMHighResTimeStamp | null;
|
|
25204
|
+
}
|
|
25205
|
+
|
|
24832
25206
|
/**
|
|
24833
25207
|
* The **`PannerNode`** interface defines an audio-processing object that represents the location, direction, and behavior of an audio source signal in a simulated physical space. This AudioNode uses right-hand Cartesian coordinates to describe the source's position as a vector and its orientation as a 3D directional cone.
|
|
24834
25208
|
*
|
|
@@ -25344,6 +25718,7 @@ interface Performance extends EventTarget {
|
|
|
25344
25718
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
|
|
25345
25719
|
*/
|
|
25346
25720
|
readonly eventCounts: EventCounts;
|
|
25721
|
+
readonly interactionCount: number;
|
|
25347
25722
|
/**
|
|
25348
25723
|
* The legacy **`Performance.navigation`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
|
|
25349
25724
|
* @deprecated
|
|
@@ -25769,7 +26144,7 @@ declare var PerformanceObserverEntryList: {
|
|
|
25769
26144
|
*
|
|
25770
26145
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
|
|
25771
26146
|
*/
|
|
25772
|
-
interface PerformancePaintTiming extends PerformanceEntry {
|
|
26147
|
+
interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
|
|
25773
26148
|
toJSON(): any;
|
|
25774
26149
|
}
|
|
25775
26150
|
|
|
@@ -28666,6 +29041,19 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
28666
29041
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
|
|
28667
29042
|
*/
|
|
28668
29043
|
download: string;
|
|
29044
|
+
/**
|
|
29045
|
+
* The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource.
|
|
29046
|
+
*
|
|
29047
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang)
|
|
29048
|
+
*/
|
|
29049
|
+
hreflang: string;
|
|
29050
|
+
/**
|
|
29051
|
+
* The **`ping`** property of the SVGAElement interface returns a string that reflects the ping attribute, containing a space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking.
|
|
29052
|
+
*
|
|
29053
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/ping)
|
|
29054
|
+
*/
|
|
29055
|
+
ping: string;
|
|
29056
|
+
referrerPolicy: string;
|
|
28669
29057
|
/**
|
|
28670
29058
|
* The **`rel`** property of the SVGAElement returns a string reflecting the value of the rel attribute of the SVG <a> element.
|
|
28671
29059
|
*
|
|
@@ -28685,6 +29073,12 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
28685
29073
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target)
|
|
28686
29074
|
*/
|
|
28687
29075
|
readonly target: SVGAnimatedString;
|
|
29076
|
+
/**
|
|
29077
|
+
* The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource.
|
|
29078
|
+
*
|
|
29079
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type)
|
|
29080
|
+
*/
|
|
29081
|
+
type: string;
|
|
28688
29082
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
28689
29083
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
28690
29084
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -39062,6 +39456,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
39062
39456
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
|
|
39063
39457
|
*/
|
|
39064
39458
|
name: string;
|
|
39459
|
+
/**
|
|
39460
|
+
* The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
|
|
39461
|
+
*
|
|
39462
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
|
|
39463
|
+
*/
|
|
39464
|
+
readonly navigation: Navigation;
|
|
39065
39465
|
/**
|
|
39066
39466
|
* The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
|
|
39067
39467
|
*
|
|
@@ -39462,7 +39862,7 @@ interface WindowEventHandlers {
|
|
|
39462
39862
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
39463
39863
|
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
39464
39864
|
/**
|
|
39465
|
-
* @deprecated
|
|
39865
|
+
* @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
|
|
39466
39866
|
*
|
|
39467
39867
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
39468
39868
|
*/
|
|
@@ -40749,6 +41149,14 @@ interface MutationCallback {
|
|
|
40749
41149
|
(mutations: MutationRecord[], observer: MutationObserver): void;
|
|
40750
41150
|
}
|
|
40751
41151
|
|
|
41152
|
+
interface NavigationInterceptHandler {
|
|
41153
|
+
(): void | PromiseLike<void>;
|
|
41154
|
+
}
|
|
41155
|
+
|
|
41156
|
+
interface NavigationPrecommitHandler {
|
|
41157
|
+
(controller: NavigationPrecommitController): void | PromiseLike<void>;
|
|
41158
|
+
}
|
|
41159
|
+
|
|
40752
41160
|
interface NotificationPermissionCallback {
|
|
40753
41161
|
(permission: NotificationPermission): void;
|
|
40754
41162
|
}
|
|
@@ -41230,6 +41638,12 @@ declare var menubar: BarProp;
|
|
|
41230
41638
|
*/
|
|
41231
41639
|
/** @deprecated */
|
|
41232
41640
|
declare const name: void;
|
|
41641
|
+
/**
|
|
41642
|
+
* The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
|
|
41643
|
+
*
|
|
41644
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
|
|
41645
|
+
*/
|
|
41646
|
+
declare var navigation: Navigation;
|
|
41233
41647
|
/**
|
|
41234
41648
|
* The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
|
|
41235
41649
|
*
|
|
@@ -41831,7 +42245,7 @@ declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
|
|
|
41831
42245
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
41832
42246
|
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
41833
42247
|
/**
|
|
41834
|
-
* @deprecated
|
|
42248
|
+
* @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
|
|
41835
42249
|
*
|
|
41836
42250
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
41837
42251
|
*/
|
|
@@ -42067,6 +42481,9 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
|
|
|
42067
42481
|
type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
|
|
42068
42482
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
42069
42483
|
type MediaStreamTrackState = "ended" | "live";
|
|
42484
|
+
type NavigationFocusReset = "after-transition" | "manual";
|
|
42485
|
+
type NavigationHistoryBehavior = "auto" | "push" | "replace";
|
|
42486
|
+
type NavigationScrollBehavior = "after-transition" | "manual";
|
|
42070
42487
|
type NavigationTimingType = "back_forward" | "navigate" | "reload";
|
|
42071
42488
|
type NavigationType = "push" | "reload" | "replace" | "traverse";
|
|
42072
42489
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|