@types/web 0.0.297 → 0.0.299

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/ts5.5/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;
@@ -6295,6 +6343,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6295
6343
  */
6296
6344
  backgroundSize: string;
6297
6345
  baselineShift: string;
6346
+ /** The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type. */
6298
6347
  baselineSource: string;
6299
6348
  /**
6300
6349
  * The block-size CSS property defines the size of an element's block along the block axis. If the writing-mode is horizontal, it corresponds to the height; if the writing mode is vertical, it corresponds to the width. A related property is inline-size, which defines the other dimension of the element.
@@ -6975,6 +7024,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6975
7024
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/empty-cells)
6976
7025
  */
6977
7026
  emptyCells: string;
7027
+ /**
7028
+ * 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.
7029
+ *
7030
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/field-sizing)
7031
+ */
7032
+ fieldSizing: string;
6978
7033
  /**
6979
7034
  * 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.
6980
7035
  *
@@ -8043,6 +8098,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
8043
8098
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-try-order)
8044
8099
  */
8045
8100
  positionTryOrder: string;
8101
+ /**
8102
+ * 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.
8103
+ *
8104
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-visibility)
8105
+ */
8106
+ positionVisibility: string;
8046
8107
  /**
8047
8108
  * 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.
8048
8109
  *
@@ -8536,7 +8597,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
8536
8597
  */
8537
8598
  textRendering: string;
8538
8599
  /**
8539
- * The text-shadow CSS property adds shadows to text. It accepts a comma-separated list of shadows to be applied to the text and any of its decorations. Each shadow is described by some combination of X and Y offsets from the element, blur radius, and color.
8600
+ * The text-shadow CSS property adds shadows to text. It accepts a comma-separated list of shadows to be applied to the text and any of its text-decoration. Each shadow is described by some combination of X and Y offsets from the element, blur radius, and color.
8540
8601
  *
8541
8602
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/text-shadow)
8542
8603
  */
@@ -9188,7 +9249,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
9188
9249
  */
9189
9250
  wordSpacing: string;
9190
9251
  /**
9191
- * @deprecated
9252
+ * @deprecated `word-wrap` is a legacy alias of `overflow-wrap`.
9192
9253
  *
9193
9254
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/overflow-wrap)
9194
9255
  */
@@ -11981,6 +12042,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
11981
12042
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
11982
12043
  */
11983
12044
  readonly URL: string;
12045
+ /**
12046
+ * The **`activeViewTransition`** read-only property of the Document interface returns a ViewTransition instance representing the view transition currently active on the document.
12047
+ *
12048
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeViewTransition)
12049
+ */
12050
+ readonly activeViewTransition: ViewTransition | null;
11984
12051
  /**
11985
12052
  * 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.
11986
12053
  * @deprecated
@@ -12400,6 +12467,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
12400
12467
  createEvent(eventInterface: "MessageEvent"): MessageEvent;
12401
12468
  createEvent(eventInterface: "MouseEvent"): MouseEvent;
12402
12469
  createEvent(eventInterface: "MouseEvents"): MouseEvent;
12470
+ createEvent(eventInterface: "NavigateEvent"): NavigateEvent;
12471
+ createEvent(eventInterface: "NavigationCurrentEntryChangeEvent"): NavigationCurrentEntryChangeEvent;
12403
12472
  createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
12404
12473
  createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
12405
12474
  createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
@@ -21523,7 +21592,7 @@ declare var KeyframeEffect: {
21523
21592
  *
21524
21593
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint)
21525
21594
  */
21526
- interface LargestContentfulPaint extends PerformanceEntry {
21595
+ interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin {
21527
21596
  /**
21528
21597
  * The **`element`** read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.
21529
21598
  *
@@ -23538,6 +23607,182 @@ declare var NamedNodeMap: {
23538
23607
  new(): NamedNodeMap;
23539
23608
  };
23540
23609
 
23610
+ /**
23611
+ * 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.
23612
+ *
23613
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent)
23614
+ */
23615
+ interface NavigateEvent extends Event {
23616
+ /**
23617
+ * 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
23618
+ *
23619
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/canIntercept)
23620
+ */
23621
+ readonly canIntercept: boolean;
23622
+ /**
23623
+ * The **`destination`** read-only property of the NavigateEvent interface returns a NavigationDestination object representing the destination being navigated to.
23624
+ *
23625
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/destination)
23626
+ */
23627
+ readonly destination: NavigationDestination;
23628
+ /**
23629
+ * 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.
23630
+ *
23631
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/downloadRequest)
23632
+ */
23633
+ readonly downloadRequest: string | null;
23634
+ /**
23635
+ * 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.
23636
+ *
23637
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/formData)
23638
+ */
23639
+ readonly formData: FormData | null;
23640
+ /**
23641
+ * 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.
23642
+ *
23643
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hasUAVisualTransition)
23644
+ */
23645
+ readonly hasUAVisualTransition: boolean;
23646
+ /**
23647
+ * 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.
23648
+ *
23649
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hashChange)
23650
+ */
23651
+ readonly hashChange: boolean;
23652
+ /**
23653
+ * 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.
23654
+ *
23655
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/info)
23656
+ */
23657
+ readonly info: any;
23658
+ /**
23659
+ * The **`navigationType`** read-only property of the NavigateEvent interface returns the type of the navigation — push, reload, replace, or traverse.
23660
+ *
23661
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/navigationType)
23662
+ */
23663
+ readonly navigationType: NavigationType;
23664
+ /**
23665
+ * 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).
23666
+ *
23667
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/signal)
23668
+ */
23669
+ readonly signal: AbortSignal;
23670
+ /**
23671
+ * 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.
23672
+ *
23673
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/sourceElement)
23674
+ */
23675
+ readonly sourceElement: Element | null;
23676
+ /**
23677
+ * 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.
23678
+ *
23679
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/userInitiated)
23680
+ */
23681
+ readonly userInitiated: boolean;
23682
+ /**
23683
+ * The **`intercept()`** method of the NavigateEvent interface intercepts this navigation, turning it into a same-document navigation to the destination URL.
23684
+ *
23685
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/intercept)
23686
+ */
23687
+ intercept(options?: NavigationInterceptOptions): void;
23688
+ /**
23689
+ * 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.
23690
+ *
23691
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/scroll)
23692
+ */
23693
+ scroll(): void;
23694
+ }
23695
+
23696
+ declare var NavigateEvent: {
23697
+ prototype: NavigateEvent;
23698
+ new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
23699
+ };
23700
+
23701
+ /**
23702
+ * 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.
23703
+ *
23704
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation)
23705
+ */
23706
+ interface Navigation extends EventTarget {
23707
+ /**
23708
+ * 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.
23709
+ *
23710
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/activation)
23711
+ */
23712
+ readonly activation: NavigationActivation | null;
23713
+ /**
23714
+ * 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.
23715
+ *
23716
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoBack)
23717
+ */
23718
+ readonly canGoBack: boolean;
23719
+ /**
23720
+ * 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.
23721
+ *
23722
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoForward)
23723
+ */
23724
+ readonly canGoForward: boolean;
23725
+ /**
23726
+ * The **`currentEntry`** read-only property of the Navigation interface returns a NavigationHistoryEntry object representing the location the user is currently navigated to right now.
23727
+ *
23728
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
23729
+ */
23730
+ readonly currentEntry: NavigationHistoryEntry | null;
23731
+ /**
23732
+ * 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.
23733
+ *
23734
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/transition)
23735
+ */
23736
+ readonly transition: NavigationTransition | null;
23737
+ /**
23738
+ * The **`back()`** method of the Navigation interface navigates backwards by one entry in the navigation history.
23739
+ *
23740
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/back)
23741
+ */
23742
+ back(options?: NavigationOptions): NavigationResult;
23743
+ /**
23744
+ * The **`entries()`** method of the Navigation interface returns an array of NavigationHistoryEntry objects representing all existing history entries.
23745
+ *
23746
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/entries)
23747
+ */
23748
+ entries(): NavigationHistoryEntry[];
23749
+ /**
23750
+ * The **`forward()`** method of the Navigation interface navigates forwards by one entry in the navigation history.
23751
+ *
23752
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/forward)
23753
+ */
23754
+ forward(options?: NavigationOptions): NavigationResult;
23755
+ /**
23756
+ * The **`navigate()`** method of the Navigation interface navigates to a specific URL, updating any provided state in the history entries list.
23757
+ *
23758
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate)
23759
+ */
23760
+ navigate(url: string | URL, options?: NavigationNavigateOptions): NavigationResult;
23761
+ /**
23762
+ * The **`reload()`** method of the Navigation interface reloads the current URL, updating any provided state in the history entries list.
23763
+ *
23764
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/reload)
23765
+ */
23766
+ reload(options?: NavigationReloadOptions): NavigationResult;
23767
+ /**
23768
+ * The **`traverseTo()`** method of the Navigation interface navigates to the NavigationHistoryEntry identified by the given key.
23769
+ *
23770
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/traverseTo)
23771
+ */
23772
+ traverseTo(key: string, options?: NavigationOptions): NavigationResult;
23773
+ /**
23774
+ * 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.
23775
+ *
23776
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
23777
+ */
23778
+ updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
23779
+ }
23780
+
23781
+ declare var Navigation: {
23782
+ prototype: Navigation;
23783
+ new(): Navigation;
23784
+ };
23785
+
23541
23786
  /**
23542
23787
  * 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.
23543
23788
  *
@@ -23569,6 +23814,80 @@ declare var NavigationActivation: {
23569
23814
  new(): NavigationActivation;
23570
23815
  };
23571
23816
 
23817
+ /**
23818
+ * The **`NavigationCurrentEntryChangeEvent`** interface of the Navigation API is the event object for the currententrychange event, which fires when the Navigation.currentEntry has changed.
23819
+ *
23820
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent)
23821
+ */
23822
+ interface NavigationCurrentEntryChangeEvent extends Event {
23823
+ /**
23824
+ * The **`from`** read-only property of the NavigationCurrentEntryChangeEvent interface returns the NavigationHistoryEntry that was navigated from.
23825
+ *
23826
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/from)
23827
+ */
23828
+ readonly from: NavigationHistoryEntry;
23829
+ /**
23830
+ * 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().
23831
+ *
23832
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/navigationType)
23833
+ */
23834
+ readonly navigationType: NavigationType | null;
23835
+ }
23836
+
23837
+ declare var NavigationCurrentEntryChangeEvent: {
23838
+ prototype: NavigationCurrentEntryChangeEvent;
23839
+ new(type: string, eventInitDict: NavigationCurrentEntryChangeEventInit): NavigationCurrentEntryChangeEvent;
23840
+ };
23841
+
23842
+ /**
23843
+ * The **`NavigationDestination`** interface of the Navigation API represents the destination being navigated to in the current navigation.
23844
+ *
23845
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination)
23846
+ */
23847
+ interface NavigationDestination {
23848
+ /**
23849
+ * 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.
23850
+ *
23851
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/id)
23852
+ */
23853
+ readonly id: string;
23854
+ /**
23855
+ * 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.
23856
+ *
23857
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/index)
23858
+ */
23859
+ readonly index: number;
23860
+ /**
23861
+ * 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.
23862
+ *
23863
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/key)
23864
+ */
23865
+ readonly key: string;
23866
+ /**
23867
+ * 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.
23868
+ *
23869
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/sameDocument)
23870
+ */
23871
+ readonly sameDocument: boolean;
23872
+ /**
23873
+ * The **`url`** read-only property of the NavigationDestination interface returns the URL being navigated to.
23874
+ *
23875
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/url)
23876
+ */
23877
+ readonly url: string;
23878
+ /**
23879
+ * 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.
23880
+ *
23881
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/getState)
23882
+ */
23883
+ getState(): any;
23884
+ }
23885
+
23886
+ declare var NavigationDestination: {
23887
+ prototype: NavigationDestination;
23888
+ new(): NavigationDestination;
23889
+ };
23890
+
23572
23891
  interface NavigationHistoryEntryEventMap {
23573
23892
  "dispose": Event;
23574
23893
  }
@@ -23628,6 +23947,25 @@ declare var NavigationHistoryEntry: {
23628
23947
  new(): NavigationHistoryEntry;
23629
23948
  };
23630
23949
 
23950
+ /**
23951
+ * The **`NavigationPrecommitController`** interface of the Navigation API defines redirect behavior for a navigation precommit handler.
23952
+ *
23953
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
23954
+ */
23955
+ interface NavigationPrecommitController {
23956
+ /**
23957
+ * The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
23958
+ *
23959
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/redirect)
23960
+ */
23961
+ redirect(url: string | URL, options?: NavigationNavigateOptions): void;
23962
+ }
23963
+
23964
+ declare var NavigationPrecommitController: {
23965
+ prototype: NavigationPrecommitController;
23966
+ new(): NavigationPrecommitController;
23967
+ };
23968
+
23631
23969
  /**
23632
23970
  * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
23633
23971
  * Available only in secure contexts.
@@ -23666,6 +24004,38 @@ declare var NavigationPreloadManager: {
23666
24004
  new(): NavigationPreloadManager;
23667
24005
  };
23668
24006
 
24007
+ /**
24008
+ * 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.
24009
+ *
24010
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
24011
+ */
24012
+ interface NavigationTransition {
24013
+ readonly committed: Promise<void>;
24014
+ /**
24015
+ * 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.
24016
+ *
24017
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/finished)
24018
+ */
24019
+ readonly finished: Promise<void>;
24020
+ /**
24021
+ * The **`from`** read-only property of the NavigationTransition interface returns the NavigationHistoryEntry that the transition is coming from.
24022
+ *
24023
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/from)
24024
+ */
24025
+ readonly from: NavigationHistoryEntry;
24026
+ /**
24027
+ * The **`navigationType`** read-only property of the NavigationTransition interface returns the type of the ongoing navigation.
24028
+ *
24029
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/navigationType)
24030
+ */
24031
+ readonly navigationType: NavigationType;
24032
+ }
24033
+
24034
+ declare var NavigationTransition: {
24035
+ prototype: NavigationTransition;
24036
+ new(): NavigationTransition;
24037
+ };
24038
+
23669
24039
  /**
23670
24040
  * 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.
23671
24041
  *
@@ -24808,6 +25178,11 @@ declare var PageTransitionEvent: {
24808
25178
  new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
24809
25179
  };
24810
25180
 
25181
+ interface PaintTimingMixin {
25182
+ readonly paintTime: DOMHighResTimeStamp;
25183
+ readonly presentationTime: DOMHighResTimeStamp | null;
25184
+ }
25185
+
24811
25186
  /**
24812
25187
  * 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.
24813
25188
  *
@@ -25323,6 +25698,7 @@ interface Performance extends EventTarget {
25323
25698
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
25324
25699
  */
25325
25700
  readonly eventCounts: EventCounts;
25701
+ readonly interactionCount: number;
25326
25702
  /**
25327
25703
  * 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.
25328
25704
  * @deprecated
@@ -25748,7 +26124,7 @@ declare var PerformanceObserverEntryList: {
25748
26124
  *
25749
26125
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
25750
26126
  */
25751
- interface PerformancePaintTiming extends PerformanceEntry {
26127
+ interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
25752
26128
  toJSON(): any;
25753
26129
  }
25754
26130
 
@@ -28645,6 +29021,19 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
28645
29021
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
28646
29022
  */
28647
29023
  download: string;
29024
+ /**
29025
+ * The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource.
29026
+ *
29027
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang)
29028
+ */
29029
+ hreflang: string;
29030
+ /**
29031
+ * 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.
29032
+ *
29033
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/ping)
29034
+ */
29035
+ ping: string;
29036
+ referrerPolicy: string;
28648
29037
  /**
28649
29038
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the rel attribute of the SVG <a> element.
28650
29039
  *
@@ -28663,6 +29052,12 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
28663
29052
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target)
28664
29053
  */
28665
29054
  readonly target: SVGAnimatedString;
29055
+ /**
29056
+ * The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource.
29057
+ *
29058
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type)
29059
+ */
29060
+ type: string;
28666
29061
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
28667
29062
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
28668
29063
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -39039,6 +39434,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
39039
39434
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
39040
39435
  */
39041
39436
  name: string;
39437
+ /**
39438
+ * The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
39439
+ *
39440
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
39441
+ */
39442
+ readonly navigation: Navigation;
39042
39443
  /**
39043
39444
  * The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
39044
39445
  *
@@ -39439,7 +39840,7 @@ interface WindowEventHandlers {
39439
39840
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
39440
39841
  onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
39441
39842
  /**
39442
- * @deprecated
39843
+ * @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
39443
39844
  *
39444
39845
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
39445
39846
  */
@@ -40726,6 +41127,14 @@ interface MutationCallback {
40726
41127
  (mutations: MutationRecord[], observer: MutationObserver): void;
40727
41128
  }
40728
41129
 
41130
+ interface NavigationInterceptHandler {
41131
+ (): void | PromiseLike<void>;
41132
+ }
41133
+
41134
+ interface NavigationPrecommitHandler {
41135
+ (controller: NavigationPrecommitController): void | PromiseLike<void>;
41136
+ }
41137
+
40729
41138
  interface NotificationPermissionCallback {
40730
41139
  (permission: NotificationPermission): void;
40731
41140
  }
@@ -41207,6 +41616,12 @@ declare var menubar: BarProp;
41207
41616
  */
41208
41617
  /** @deprecated */
41209
41618
  declare const name: void;
41619
+ /**
41620
+ * The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
41621
+ *
41622
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
41623
+ */
41624
+ declare var navigation: Navigation;
41210
41625
  /**
41211
41626
  * The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
41212
41627
  *
@@ -41808,7 +42223,7 @@ declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
41808
42223
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
41809
42224
  declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
41810
42225
  /**
41811
- * @deprecated
42226
+ * @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
41812
42227
  *
41813
42228
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
41814
42229
  */
@@ -42044,6 +42459,9 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
42044
42459
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
42045
42460
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
42046
42461
  type MediaStreamTrackState = "ended" | "live";
42462
+ type NavigationFocusReset = "after-transition" | "manual";
42463
+ type NavigationHistoryBehavior = "auto" | "push" | "replace";
42464
+ type NavigationScrollBehavior = "after-transition" | "manual";
42047
42465
  type NavigationTimingType = "back_forward" | "navigate" | "reload";
42048
42466
  type NavigationType = "push" | "reload" | "replace" | "traverse";
42049
42467
  type NotificationDirection = "auto" | "ltr" | "rtl";