@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.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;
@@ -6302,6 +6350,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6302
6350
  */
6303
6351
  backgroundSize: string;
6304
6352
  baselineShift: string;
6353
+ /** 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. */
6305
6354
  baselineSource: string;
6306
6355
  /**
6307
6356
  * 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.
@@ -6982,6 +7031,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6982
7031
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/empty-cells)
6983
7032
  */
6984
7033
  emptyCells: string;
7034
+ /**
7035
+ * 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.
7036
+ *
7037
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/field-sizing)
7038
+ */
7039
+ fieldSizing: string;
6985
7040
  /**
6986
7041
  * 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
7042
  *
@@ -8050,6 +8105,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
8050
8105
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-try-order)
8051
8106
  */
8052
8107
  positionTryOrder: string;
8108
+ /**
8109
+ * 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.
8110
+ *
8111
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-visibility)
8112
+ */
8113
+ positionVisibility: string;
8053
8114
  /**
8054
8115
  * 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
8116
  *
@@ -8543,7 +8604,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
8543
8604
  */
8544
8605
  textRendering: string;
8545
8606
  /**
8546
- * 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.
8607
+ * 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.
8547
8608
  *
8548
8609
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/text-shadow)
8549
8610
  */
@@ -9195,7 +9256,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
9195
9256
  */
9196
9257
  wordSpacing: string;
9197
9258
  /**
9198
- * @deprecated
9259
+ * @deprecated `word-wrap` is a legacy alias of `overflow-wrap`.
9199
9260
  *
9200
9261
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/overflow-wrap)
9201
9262
  */
@@ -11989,6 +12050,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
11989
12050
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
11990
12051
  */
11991
12052
  readonly URL: string;
12053
+ /**
12054
+ * The **`activeViewTransition`** read-only property of the Document interface returns a ViewTransition instance representing the view transition currently active on the document.
12055
+ *
12056
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeViewTransition)
12057
+ */
12058
+ readonly activeViewTransition: ViewTransition | null;
11992
12059
  /**
11993
12060
  * 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
12061
  * @deprecated
@@ -12408,6 +12475,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
12408
12475
  createEvent(eventInterface: "MessageEvent"): MessageEvent;
12409
12476
  createEvent(eventInterface: "MouseEvent"): MouseEvent;
12410
12477
  createEvent(eventInterface: "MouseEvents"): MouseEvent;
12478
+ createEvent(eventInterface: "NavigateEvent"): NavigateEvent;
12479
+ createEvent(eventInterface: "NavigationCurrentEntryChangeEvent"): NavigationCurrentEntryChangeEvent;
12411
12480
  createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
12412
12481
  createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
12413
12482
  createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
@@ -21544,7 +21613,7 @@ declare var KeyframeEffect: {
21544
21613
  *
21545
21614
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint)
21546
21615
  */
21547
- interface LargestContentfulPaint extends PerformanceEntry {
21616
+ interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin {
21548
21617
  /**
21549
21618
  * The **`element`** read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.
21550
21619
  *
@@ -23559,6 +23628,182 @@ declare var NamedNodeMap: {
23559
23628
  new(): NamedNodeMap;
23560
23629
  };
23561
23630
 
23631
+ /**
23632
+ * 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.
23633
+ *
23634
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent)
23635
+ */
23636
+ interface NavigateEvent extends Event {
23637
+ /**
23638
+ * 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
23639
+ *
23640
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/canIntercept)
23641
+ */
23642
+ readonly canIntercept: boolean;
23643
+ /**
23644
+ * The **`destination`** read-only property of the NavigateEvent interface returns a NavigationDestination object representing the destination being navigated to.
23645
+ *
23646
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/destination)
23647
+ */
23648
+ readonly destination: NavigationDestination;
23649
+ /**
23650
+ * 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.
23651
+ *
23652
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/downloadRequest)
23653
+ */
23654
+ readonly downloadRequest: string | null;
23655
+ /**
23656
+ * 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.
23657
+ *
23658
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/formData)
23659
+ */
23660
+ readonly formData: FormData | null;
23661
+ /**
23662
+ * 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.
23663
+ *
23664
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hasUAVisualTransition)
23665
+ */
23666
+ readonly hasUAVisualTransition: boolean;
23667
+ /**
23668
+ * 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.
23669
+ *
23670
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hashChange)
23671
+ */
23672
+ readonly hashChange: boolean;
23673
+ /**
23674
+ * 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.
23675
+ *
23676
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/info)
23677
+ */
23678
+ readonly info: any;
23679
+ /**
23680
+ * The **`navigationType`** read-only property of the NavigateEvent interface returns the type of the navigation — push, reload, replace, or traverse.
23681
+ *
23682
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/navigationType)
23683
+ */
23684
+ readonly navigationType: NavigationType;
23685
+ /**
23686
+ * 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).
23687
+ *
23688
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/signal)
23689
+ */
23690
+ readonly signal: AbortSignal;
23691
+ /**
23692
+ * 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.
23693
+ *
23694
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/sourceElement)
23695
+ */
23696
+ readonly sourceElement: Element | null;
23697
+ /**
23698
+ * 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.
23699
+ *
23700
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/userInitiated)
23701
+ */
23702
+ readonly userInitiated: boolean;
23703
+ /**
23704
+ * The **`intercept()`** method of the NavigateEvent interface intercepts this navigation, turning it into a same-document navigation to the destination URL.
23705
+ *
23706
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/intercept)
23707
+ */
23708
+ intercept(options?: NavigationInterceptOptions): void;
23709
+ /**
23710
+ * 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.
23711
+ *
23712
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/scroll)
23713
+ */
23714
+ scroll(): void;
23715
+ }
23716
+
23717
+ declare var NavigateEvent: {
23718
+ prototype: NavigateEvent;
23719
+ new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
23720
+ };
23721
+
23722
+ /**
23723
+ * 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.
23724
+ *
23725
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation)
23726
+ */
23727
+ interface Navigation extends EventTarget {
23728
+ /**
23729
+ * 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.
23730
+ *
23731
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/activation)
23732
+ */
23733
+ readonly activation: NavigationActivation | null;
23734
+ /**
23735
+ * 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.
23736
+ *
23737
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoBack)
23738
+ */
23739
+ readonly canGoBack: boolean;
23740
+ /**
23741
+ * 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.
23742
+ *
23743
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoForward)
23744
+ */
23745
+ readonly canGoForward: boolean;
23746
+ /**
23747
+ * The **`currentEntry`** read-only property of the Navigation interface returns a NavigationHistoryEntry object representing the location the user is currently navigated to right now.
23748
+ *
23749
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
23750
+ */
23751
+ readonly currentEntry: NavigationHistoryEntry | null;
23752
+ /**
23753
+ * 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.
23754
+ *
23755
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/transition)
23756
+ */
23757
+ readonly transition: NavigationTransition | null;
23758
+ /**
23759
+ * The **`back()`** method of the Navigation interface navigates backwards by one entry in the navigation history.
23760
+ *
23761
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/back)
23762
+ */
23763
+ back(options?: NavigationOptions): NavigationResult;
23764
+ /**
23765
+ * The **`entries()`** method of the Navigation interface returns an array of NavigationHistoryEntry objects representing all existing history entries.
23766
+ *
23767
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/entries)
23768
+ */
23769
+ entries(): NavigationHistoryEntry[];
23770
+ /**
23771
+ * The **`forward()`** method of the Navigation interface navigates forwards by one entry in the navigation history.
23772
+ *
23773
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/forward)
23774
+ */
23775
+ forward(options?: NavigationOptions): NavigationResult;
23776
+ /**
23777
+ * The **`navigate()`** method of the Navigation interface navigates to a specific URL, updating any provided state in the history entries list.
23778
+ *
23779
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate)
23780
+ */
23781
+ navigate(url: string | URL, options?: NavigationNavigateOptions): NavigationResult;
23782
+ /**
23783
+ * The **`reload()`** method of the Navigation interface reloads the current URL, updating any provided state in the history entries list.
23784
+ *
23785
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/reload)
23786
+ */
23787
+ reload(options?: NavigationReloadOptions): NavigationResult;
23788
+ /**
23789
+ * The **`traverseTo()`** method of the Navigation interface navigates to the NavigationHistoryEntry identified by the given key.
23790
+ *
23791
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/traverseTo)
23792
+ */
23793
+ traverseTo(key: string, options?: NavigationOptions): NavigationResult;
23794
+ /**
23795
+ * 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.
23796
+ *
23797
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
23798
+ */
23799
+ updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
23800
+ }
23801
+
23802
+ declare var Navigation: {
23803
+ prototype: Navigation;
23804
+ new(): Navigation;
23805
+ };
23806
+
23562
23807
  /**
23563
23808
  * 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
23809
  *
@@ -23590,6 +23835,80 @@ declare var NavigationActivation: {
23590
23835
  new(): NavigationActivation;
23591
23836
  };
23592
23837
 
23838
+ /**
23839
+ * The **`NavigationCurrentEntryChangeEvent`** interface of the Navigation API is the event object for the currententrychange event, which fires when the Navigation.currentEntry has changed.
23840
+ *
23841
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent)
23842
+ */
23843
+ interface NavigationCurrentEntryChangeEvent extends Event {
23844
+ /**
23845
+ * The **`from`** read-only property of the NavigationCurrentEntryChangeEvent interface returns the NavigationHistoryEntry that was navigated from.
23846
+ *
23847
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/from)
23848
+ */
23849
+ readonly from: NavigationHistoryEntry;
23850
+ /**
23851
+ * 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().
23852
+ *
23853
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/navigationType)
23854
+ */
23855
+ readonly navigationType: NavigationType | null;
23856
+ }
23857
+
23858
+ declare var NavigationCurrentEntryChangeEvent: {
23859
+ prototype: NavigationCurrentEntryChangeEvent;
23860
+ new(type: string, eventInitDict: NavigationCurrentEntryChangeEventInit): NavigationCurrentEntryChangeEvent;
23861
+ };
23862
+
23863
+ /**
23864
+ * The **`NavigationDestination`** interface of the Navigation API represents the destination being navigated to in the current navigation.
23865
+ *
23866
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination)
23867
+ */
23868
+ interface NavigationDestination {
23869
+ /**
23870
+ * 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.
23871
+ *
23872
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/id)
23873
+ */
23874
+ readonly id: string;
23875
+ /**
23876
+ * 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.
23877
+ *
23878
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/index)
23879
+ */
23880
+ readonly index: number;
23881
+ /**
23882
+ * 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.
23883
+ *
23884
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/key)
23885
+ */
23886
+ readonly key: string;
23887
+ /**
23888
+ * 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.
23889
+ *
23890
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/sameDocument)
23891
+ */
23892
+ readonly sameDocument: boolean;
23893
+ /**
23894
+ * The **`url`** read-only property of the NavigationDestination interface returns the URL being navigated to.
23895
+ *
23896
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/url)
23897
+ */
23898
+ readonly url: string;
23899
+ /**
23900
+ * 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.
23901
+ *
23902
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/getState)
23903
+ */
23904
+ getState(): any;
23905
+ }
23906
+
23907
+ declare var NavigationDestination: {
23908
+ prototype: NavigationDestination;
23909
+ new(): NavigationDestination;
23910
+ };
23911
+
23593
23912
  interface NavigationHistoryEntryEventMap {
23594
23913
  "dispose": Event;
23595
23914
  }
@@ -23649,6 +23968,25 @@ declare var NavigationHistoryEntry: {
23649
23968
  new(): NavigationHistoryEntry;
23650
23969
  };
23651
23970
 
23971
+ /**
23972
+ * The **`NavigationPrecommitController`** interface of the Navigation API defines redirect behavior for a navigation precommit handler.
23973
+ *
23974
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
23975
+ */
23976
+ interface NavigationPrecommitController {
23977
+ /**
23978
+ * The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
23979
+ *
23980
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/redirect)
23981
+ */
23982
+ redirect(url: string | URL, options?: NavigationNavigateOptions): void;
23983
+ }
23984
+
23985
+ declare var NavigationPrecommitController: {
23986
+ prototype: NavigationPrecommitController;
23987
+ new(): NavigationPrecommitController;
23988
+ };
23989
+
23652
23990
  /**
23653
23991
  * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
23654
23992
  * Available only in secure contexts.
@@ -23687,6 +24025,38 @@ declare var NavigationPreloadManager: {
23687
24025
  new(): NavigationPreloadManager;
23688
24026
  };
23689
24027
 
24028
+ /**
24029
+ * 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.
24030
+ *
24031
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
24032
+ */
24033
+ interface NavigationTransition {
24034
+ readonly committed: Promise<void>;
24035
+ /**
24036
+ * 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.
24037
+ *
24038
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/finished)
24039
+ */
24040
+ readonly finished: Promise<void>;
24041
+ /**
24042
+ * The **`from`** read-only property of the NavigationTransition interface returns the NavigationHistoryEntry that the transition is coming from.
24043
+ *
24044
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/from)
24045
+ */
24046
+ readonly from: NavigationHistoryEntry;
24047
+ /**
24048
+ * The **`navigationType`** read-only property of the NavigationTransition interface returns the type of the ongoing navigation.
24049
+ *
24050
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/navigationType)
24051
+ */
24052
+ readonly navigationType: NavigationType;
24053
+ }
24054
+
24055
+ declare var NavigationTransition: {
24056
+ prototype: NavigationTransition;
24057
+ new(): NavigationTransition;
24058
+ };
24059
+
23690
24060
  /**
23691
24061
  * 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
24062
  *
@@ -24829,6 +25199,11 @@ declare var PageTransitionEvent: {
24829
25199
  new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
24830
25200
  };
24831
25201
 
25202
+ interface PaintTimingMixin {
25203
+ readonly paintTime: DOMHighResTimeStamp;
25204
+ readonly presentationTime: DOMHighResTimeStamp | null;
25205
+ }
25206
+
24832
25207
  /**
24833
25208
  * 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
25209
  *
@@ -25344,6 +25719,7 @@ interface Performance extends EventTarget {
25344
25719
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
25345
25720
  */
25346
25721
  readonly eventCounts: EventCounts;
25722
+ readonly interactionCount: number;
25347
25723
  /**
25348
25724
  * 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
25725
  * @deprecated
@@ -25769,7 +26145,7 @@ declare var PerformanceObserverEntryList: {
25769
26145
  *
25770
26146
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
25771
26147
  */
25772
- interface PerformancePaintTiming extends PerformanceEntry {
26148
+ interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
25773
26149
  toJSON(): any;
25774
26150
  }
25775
26151
 
@@ -28666,6 +29042,19 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
28666
29042
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
28667
29043
  */
28668
29044
  download: string;
29045
+ /**
29046
+ * The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource.
29047
+ *
29048
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang)
29049
+ */
29050
+ hreflang: string;
29051
+ /**
29052
+ * 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.
29053
+ *
29054
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/ping)
29055
+ */
29056
+ ping: string;
29057
+ referrerPolicy: string;
28669
29058
  /**
28670
29059
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the rel attribute of the SVG <a> element.
28671
29060
  *
@@ -28685,6 +29074,12 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
28685
29074
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target)
28686
29075
  */
28687
29076
  readonly target: SVGAnimatedString;
29077
+ /**
29078
+ * The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource.
29079
+ *
29080
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type)
29081
+ */
29082
+ type: string;
28688
29083
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
28689
29084
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
28690
29085
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -39062,6 +39457,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
39062
39457
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
39063
39458
  */
39064
39459
  name: string;
39460
+ /**
39461
+ * The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
39462
+ *
39463
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
39464
+ */
39465
+ readonly navigation: Navigation;
39065
39466
  /**
39066
39467
  * 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
39468
  *
@@ -39462,7 +39863,7 @@ interface WindowEventHandlers {
39462
39863
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
39463
39864
  onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
39464
39865
  /**
39465
- * @deprecated
39866
+ * @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
39466
39867
  *
39467
39868
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
39468
39869
  */
@@ -40749,6 +41150,14 @@ interface MutationCallback {
40749
41150
  (mutations: MutationRecord[], observer: MutationObserver): void;
40750
41151
  }
40751
41152
 
41153
+ interface NavigationInterceptHandler {
41154
+ (): void | PromiseLike<void>;
41155
+ }
41156
+
41157
+ interface NavigationPrecommitHandler {
41158
+ (controller: NavigationPrecommitController): void | PromiseLike<void>;
41159
+ }
41160
+
40752
41161
  interface NotificationPermissionCallback {
40753
41162
  (permission: NotificationPermission): void;
40754
41163
  }
@@ -41230,6 +41639,12 @@ declare var menubar: BarProp;
41230
41639
  */
41231
41640
  /** @deprecated */
41232
41641
  declare const name: void;
41642
+ /**
41643
+ * The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
41644
+ *
41645
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
41646
+ */
41647
+ declare var navigation: Navigation;
41233
41648
  /**
41234
41649
  * 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
41650
  *
@@ -41831,7 +42246,7 @@ declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
41831
42246
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
41832
42247
  declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
41833
42248
  /**
41834
- * @deprecated
42249
+ * @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
41835
42250
  *
41836
42251
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
41837
42252
  */
@@ -42067,6 +42482,9 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
42067
42482
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
42068
42483
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
42069
42484
  type MediaStreamTrackState = "ended" | "live";
42485
+ type NavigationFocusReset = "after-transition" | "manual";
42486
+ type NavigationHistoryBehavior = "auto" | "push" | "replace";
42487
+ type NavigationScrollBehavior = "after-transition" | "manual";
42070
42488
  type NavigationTimingType = "back_forward" | "navigate" | "reload";
42071
42489
  type NavigationType = "push" | "reload" | "replace" | "traverse";
42072
42490
  type NotificationDirection = "auto" | "ltr" | "rtl";