@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 CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.297 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.297.
50
+ You can read what changed in version 0.0.298 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.298.
package/index.d.ts CHANGED
@@ -950,12 +950,12 @@ interface KeySystemTrackConfiguration {
950
950
  }
951
951
 
952
952
  interface KeyboardEventInit extends EventModifierInit {
953
- /** @deprecated */
953
+ /** @deprecated `charCode` is inconsistent across environments, consider using `key` instead. */
954
954
  charCode?: number;
955
955
  code?: string;
956
956
  isComposing?: boolean;
957
957
  key?: string;
958
- /** @deprecated */
958
+ /** @deprecated `keyCode` is inconsistent across environments, consider using `key` instead. */
959
959
  keyCode?: number;
960
960
  location?: number;
961
961
  repeat?: boolean;
@@ -1260,11 +1260,59 @@ interface MutationObserverInit {
1260
1260
  subtree?: boolean;
1261
1261
  }
1262
1262
 
1263
+ interface NavigateEventInit extends EventInit {
1264
+ canIntercept?: boolean;
1265
+ destination: NavigationDestination;
1266
+ downloadRequest?: string | null;
1267
+ formData?: FormData | null;
1268
+ hasUAVisualTransition?: boolean;
1269
+ hashChange?: boolean;
1270
+ info?: any;
1271
+ navigationType?: NavigationType;
1272
+ signal: AbortSignal;
1273
+ sourceElement?: Element | null;
1274
+ userInitiated?: boolean;
1275
+ }
1276
+
1277
+ interface NavigationCurrentEntryChangeEventInit extends EventInit {
1278
+ from: NavigationHistoryEntry;
1279
+ navigationType?: NavigationType | null;
1280
+ }
1281
+
1282
+ interface NavigationInterceptOptions {
1283
+ focusReset?: NavigationFocusReset;
1284
+ handler?: NavigationInterceptHandler;
1285
+ precommitHandler?: NavigationPrecommitHandler;
1286
+ scroll?: NavigationScrollBehavior;
1287
+ }
1288
+
1289
+ interface NavigationNavigateOptions extends NavigationOptions {
1290
+ history?: NavigationHistoryBehavior;
1291
+ state?: any;
1292
+ }
1293
+
1294
+ interface NavigationOptions {
1295
+ info?: any;
1296
+ }
1297
+
1263
1298
  interface NavigationPreloadState {
1264
1299
  enabled?: boolean;
1265
1300
  headerValue?: string;
1266
1301
  }
1267
1302
 
1303
+ interface NavigationReloadOptions extends NavigationOptions {
1304
+ state?: any;
1305
+ }
1306
+
1307
+ interface NavigationResult {
1308
+ committed?: Promise<NavigationHistoryEntry>;
1309
+ finished?: Promise<NavigationHistoryEntry>;
1310
+ }
1311
+
1312
+ interface NavigationUpdateCurrentEntryOptions {
1313
+ state: any;
1314
+ }
1315
+
1268
1316
  interface NotificationOptions {
1269
1317
  badge?: string;
1270
1318
  body?: string;
@@ -6985,6 +7033,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6985
7033
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/empty-cells)
6986
7034
  */
6987
7035
  emptyCells: string;
7036
+ /**
7037
+ * 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.
7038
+ *
7039
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/field-sizing)
7040
+ */
7041
+ fieldSizing: string;
6988
7042
  /**
6989
7043
  * 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.
6990
7044
  *
@@ -8053,6 +8107,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
8053
8107
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-try-order)
8054
8108
  */
8055
8109
  positionTryOrder: string;
8110
+ /**
8111
+ * 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.
8112
+ *
8113
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-visibility)
8114
+ */
8115
+ positionVisibility: string;
8056
8116
  /**
8057
8117
  * 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.
8058
8118
  *
@@ -9198,7 +9258,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
9198
9258
  */
9199
9259
  wordSpacing: string;
9200
9260
  /**
9201
- * @deprecated
9261
+ * @deprecated `word-wrap` is a legacy alias of `overflow-wrap`.
9202
9262
  *
9203
9263
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/overflow-wrap)
9204
9264
  */
@@ -11992,6 +12052,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
11992
12052
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
11993
12053
  */
11994
12054
  readonly URL: string;
12055
+ /**
12056
+ * The **`activeViewTransition`** read-only property of the Document interface returns a ViewTransition instance representing the view transition currently active on the document.
12057
+ *
12058
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeViewTransition)
12059
+ */
12060
+ readonly activeViewTransition: ViewTransition | null;
11995
12061
  /**
11996
12062
  * 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.
11997
12063
  * @deprecated
@@ -12411,6 +12477,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
12411
12477
  createEvent(eventInterface: "MessageEvent"): MessageEvent;
12412
12478
  createEvent(eventInterface: "MouseEvent"): MouseEvent;
12413
12479
  createEvent(eventInterface: "MouseEvents"): MouseEvent;
12480
+ createEvent(eventInterface: "NavigateEvent"): NavigateEvent;
12481
+ createEvent(eventInterface: "NavigationCurrentEntryChangeEvent"): NavigationCurrentEntryChangeEvent;
12414
12482
  createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
12415
12483
  createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
12416
12484
  createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
@@ -21547,7 +21615,7 @@ declare var KeyframeEffect: {
21547
21615
  *
21548
21616
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint)
21549
21617
  */
21550
- interface LargestContentfulPaint extends PerformanceEntry {
21618
+ interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin {
21551
21619
  /**
21552
21620
  * The **`element`** read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.
21553
21621
  *
@@ -23562,6 +23630,182 @@ declare var NamedNodeMap: {
23562
23630
  new(): NamedNodeMap;
23563
23631
  };
23564
23632
 
23633
+ /**
23634
+ * 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.
23635
+ *
23636
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent)
23637
+ */
23638
+ interface NavigateEvent extends Event {
23639
+ /**
23640
+ * 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
23641
+ *
23642
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/canIntercept)
23643
+ */
23644
+ readonly canIntercept: boolean;
23645
+ /**
23646
+ * The **`destination`** read-only property of the NavigateEvent interface returns a NavigationDestination object representing the destination being navigated to.
23647
+ *
23648
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/destination)
23649
+ */
23650
+ readonly destination: NavigationDestination;
23651
+ /**
23652
+ * 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.
23653
+ *
23654
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/downloadRequest)
23655
+ */
23656
+ readonly downloadRequest: string | null;
23657
+ /**
23658
+ * 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.
23659
+ *
23660
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/formData)
23661
+ */
23662
+ readonly formData: FormData | null;
23663
+ /**
23664
+ * 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.
23665
+ *
23666
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hasUAVisualTransition)
23667
+ */
23668
+ readonly hasUAVisualTransition: boolean;
23669
+ /**
23670
+ * 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.
23671
+ *
23672
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hashChange)
23673
+ */
23674
+ readonly hashChange: boolean;
23675
+ /**
23676
+ * 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.
23677
+ *
23678
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/info)
23679
+ */
23680
+ readonly info: any;
23681
+ /**
23682
+ * The **`navigationType`** read-only property of the NavigateEvent interface returns the type of the navigation — push, reload, replace, or traverse.
23683
+ *
23684
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/navigationType)
23685
+ */
23686
+ readonly navigationType: NavigationType;
23687
+ /**
23688
+ * 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).
23689
+ *
23690
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/signal)
23691
+ */
23692
+ readonly signal: AbortSignal;
23693
+ /**
23694
+ * 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.
23695
+ *
23696
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/sourceElement)
23697
+ */
23698
+ readonly sourceElement: Element | null;
23699
+ /**
23700
+ * 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.
23701
+ *
23702
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/userInitiated)
23703
+ */
23704
+ readonly userInitiated: boolean;
23705
+ /**
23706
+ * The **`intercept()`** method of the NavigateEvent interface intercepts this navigation, turning it into a same-document navigation to the destination URL.
23707
+ *
23708
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/intercept)
23709
+ */
23710
+ intercept(options?: NavigationInterceptOptions): void;
23711
+ /**
23712
+ * 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.
23713
+ *
23714
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/scroll)
23715
+ */
23716
+ scroll(): void;
23717
+ }
23718
+
23719
+ declare var NavigateEvent: {
23720
+ prototype: NavigateEvent;
23721
+ new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
23722
+ };
23723
+
23724
+ /**
23725
+ * 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.
23726
+ *
23727
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation)
23728
+ */
23729
+ interface Navigation extends EventTarget {
23730
+ /**
23731
+ * 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.
23732
+ *
23733
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/activation)
23734
+ */
23735
+ readonly activation: NavigationActivation | null;
23736
+ /**
23737
+ * 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.
23738
+ *
23739
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoBack)
23740
+ */
23741
+ readonly canGoBack: boolean;
23742
+ /**
23743
+ * 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.
23744
+ *
23745
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoForward)
23746
+ */
23747
+ readonly canGoForward: boolean;
23748
+ /**
23749
+ * The **`currentEntry`** read-only property of the Navigation interface returns a NavigationHistoryEntry object representing the location the user is currently navigated to right now.
23750
+ *
23751
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
23752
+ */
23753
+ readonly currentEntry: NavigationHistoryEntry | null;
23754
+ /**
23755
+ * 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.
23756
+ *
23757
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/transition)
23758
+ */
23759
+ readonly transition: NavigationTransition | null;
23760
+ /**
23761
+ * The **`back()`** method of the Navigation interface navigates backwards by one entry in the navigation history.
23762
+ *
23763
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/back)
23764
+ */
23765
+ back(options?: NavigationOptions): NavigationResult;
23766
+ /**
23767
+ * The **`entries()`** method of the Navigation interface returns an array of NavigationHistoryEntry objects representing all existing history entries.
23768
+ *
23769
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/entries)
23770
+ */
23771
+ entries(): NavigationHistoryEntry[];
23772
+ /**
23773
+ * The **`forward()`** method of the Navigation interface navigates forwards by one entry in the navigation history.
23774
+ *
23775
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/forward)
23776
+ */
23777
+ forward(options?: NavigationOptions): NavigationResult;
23778
+ /**
23779
+ * The **`navigate()`** method of the Navigation interface navigates to a specific URL, updating any provided state in the history entries list.
23780
+ *
23781
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate)
23782
+ */
23783
+ navigate(url: string | URL, options?: NavigationNavigateOptions): NavigationResult;
23784
+ /**
23785
+ * The **`reload()`** method of the Navigation interface reloads the current URL, updating any provided state in the history entries list.
23786
+ *
23787
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/reload)
23788
+ */
23789
+ reload(options?: NavigationReloadOptions): NavigationResult;
23790
+ /**
23791
+ * The **`traverseTo()`** method of the Navigation interface navigates to the NavigationHistoryEntry identified by the given key.
23792
+ *
23793
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/traverseTo)
23794
+ */
23795
+ traverseTo(key: string, options?: NavigationOptions): NavigationResult;
23796
+ /**
23797
+ * 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.
23798
+ *
23799
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
23800
+ */
23801
+ updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
23802
+ }
23803
+
23804
+ declare var Navigation: {
23805
+ prototype: Navigation;
23806
+ new(): Navigation;
23807
+ };
23808
+
23565
23809
  /**
23566
23810
  * 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.
23567
23811
  *
@@ -23593,6 +23837,80 @@ declare var NavigationActivation: {
23593
23837
  new(): NavigationActivation;
23594
23838
  };
23595
23839
 
23840
+ /**
23841
+ * The **`NavigationCurrentEntryChangeEvent`** interface of the Navigation API is the event object for the currententrychange event, which fires when the Navigation.currentEntry has changed.
23842
+ *
23843
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent)
23844
+ */
23845
+ interface NavigationCurrentEntryChangeEvent extends Event {
23846
+ /**
23847
+ * The **`from`** read-only property of the NavigationCurrentEntryChangeEvent interface returns the NavigationHistoryEntry that was navigated from.
23848
+ *
23849
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/from)
23850
+ */
23851
+ readonly from: NavigationHistoryEntry;
23852
+ /**
23853
+ * 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().
23854
+ *
23855
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/navigationType)
23856
+ */
23857
+ readonly navigationType: NavigationType | null;
23858
+ }
23859
+
23860
+ declare var NavigationCurrentEntryChangeEvent: {
23861
+ prototype: NavigationCurrentEntryChangeEvent;
23862
+ new(type: string, eventInitDict: NavigationCurrentEntryChangeEventInit): NavigationCurrentEntryChangeEvent;
23863
+ };
23864
+
23865
+ /**
23866
+ * The **`NavigationDestination`** interface of the Navigation API represents the destination being navigated to in the current navigation.
23867
+ *
23868
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination)
23869
+ */
23870
+ interface NavigationDestination {
23871
+ /**
23872
+ * 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.
23873
+ *
23874
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/id)
23875
+ */
23876
+ readonly id: string;
23877
+ /**
23878
+ * 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.
23879
+ *
23880
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/index)
23881
+ */
23882
+ readonly index: number;
23883
+ /**
23884
+ * 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.
23885
+ *
23886
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/key)
23887
+ */
23888
+ readonly key: string;
23889
+ /**
23890
+ * 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.
23891
+ *
23892
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/sameDocument)
23893
+ */
23894
+ readonly sameDocument: boolean;
23895
+ /**
23896
+ * The **`url`** read-only property of the NavigationDestination interface returns the URL being navigated to.
23897
+ *
23898
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/url)
23899
+ */
23900
+ readonly url: string;
23901
+ /**
23902
+ * 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.
23903
+ *
23904
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/getState)
23905
+ */
23906
+ getState(): any;
23907
+ }
23908
+
23909
+ declare var NavigationDestination: {
23910
+ prototype: NavigationDestination;
23911
+ new(): NavigationDestination;
23912
+ };
23913
+
23596
23914
  interface NavigationHistoryEntryEventMap {
23597
23915
  "dispose": Event;
23598
23916
  }
@@ -23652,6 +23970,25 @@ declare var NavigationHistoryEntry: {
23652
23970
  new(): NavigationHistoryEntry;
23653
23971
  };
23654
23972
 
23973
+ /**
23974
+ * The **`NavigationPrecommitController`** interface of the Navigation API defines redirect behavior for a navigation precommit handler.
23975
+ *
23976
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
23977
+ */
23978
+ interface NavigationPrecommitController {
23979
+ /**
23980
+ * The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
23981
+ *
23982
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/redirect)
23983
+ */
23984
+ redirect(url: string | URL, options?: NavigationNavigateOptions): void;
23985
+ }
23986
+
23987
+ declare var NavigationPrecommitController: {
23988
+ prototype: NavigationPrecommitController;
23989
+ new(): NavigationPrecommitController;
23990
+ };
23991
+
23655
23992
  /**
23656
23993
  * The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
23657
23994
  * Available only in secure contexts.
@@ -23690,6 +24027,38 @@ declare var NavigationPreloadManager: {
23690
24027
  new(): NavigationPreloadManager;
23691
24028
  };
23692
24029
 
24030
+ /**
24031
+ * 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.
24032
+ *
24033
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
24034
+ */
24035
+ interface NavigationTransition {
24036
+ readonly committed: Promise<void>;
24037
+ /**
24038
+ * 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.
24039
+ *
24040
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/finished)
24041
+ */
24042
+ readonly finished: Promise<void>;
24043
+ /**
24044
+ * The **`from`** read-only property of the NavigationTransition interface returns the NavigationHistoryEntry that the transition is coming from.
24045
+ *
24046
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/from)
24047
+ */
24048
+ readonly from: NavigationHistoryEntry;
24049
+ /**
24050
+ * The **`navigationType`** read-only property of the NavigationTransition interface returns the type of the ongoing navigation.
24051
+ *
24052
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/navigationType)
24053
+ */
24054
+ readonly navigationType: NavigationType;
24055
+ }
24056
+
24057
+ declare var NavigationTransition: {
24058
+ prototype: NavigationTransition;
24059
+ new(): NavigationTransition;
24060
+ };
24061
+
23693
24062
  /**
23694
24063
  * 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.
23695
24064
  *
@@ -24832,6 +25201,11 @@ declare var PageTransitionEvent: {
24832
25201
  new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
24833
25202
  };
24834
25203
 
25204
+ interface PaintTimingMixin {
25205
+ readonly paintTime: DOMHighResTimeStamp;
25206
+ readonly presentationTime: DOMHighResTimeStamp | null;
25207
+ }
25208
+
24835
25209
  /**
24836
25210
  * 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.
24837
25211
  *
@@ -25347,6 +25721,7 @@ interface Performance extends EventTarget {
25347
25721
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
25348
25722
  */
25349
25723
  readonly eventCounts: EventCounts;
25724
+ readonly interactionCount: number;
25350
25725
  /**
25351
25726
  * 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.
25352
25727
  * @deprecated
@@ -25772,7 +26147,7 @@ declare var PerformanceObserverEntryList: {
25772
26147
  *
25773
26148
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
25774
26149
  */
25775
- interface PerformancePaintTiming extends PerformanceEntry {
26150
+ interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
25776
26151
  toJSON(): any;
25777
26152
  }
25778
26153
 
@@ -28669,6 +29044,19 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
28669
29044
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
28670
29045
  */
28671
29046
  download: string;
29047
+ /**
29048
+ * The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource.
29049
+ *
29050
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang)
29051
+ */
29052
+ hreflang: string;
29053
+ /**
29054
+ * 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.
29055
+ *
29056
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/ping)
29057
+ */
29058
+ ping: string;
29059
+ referrerPolicy: string;
28672
29060
  /**
28673
29061
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the rel attribute of the SVG <a> element.
28674
29062
  *
@@ -28688,6 +29076,12 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
28688
29076
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target)
28689
29077
  */
28690
29078
  readonly target: SVGAnimatedString;
29079
+ /**
29080
+ * The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource.
29081
+ *
29082
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type)
29083
+ */
29084
+ type: string;
28691
29085
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
28692
29086
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
28693
29087
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -39065,6 +39459,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
39065
39459
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
39066
39460
  */
39067
39461
  name: string;
39462
+ /**
39463
+ * The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
39464
+ *
39465
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
39466
+ */
39467
+ readonly navigation: Navigation;
39068
39468
  /**
39069
39469
  * The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
39070
39470
  *
@@ -39465,7 +39865,7 @@ interface WindowEventHandlers {
39465
39865
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
39466
39866
  onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
39467
39867
  /**
39468
- * @deprecated
39868
+ * @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
39469
39869
  *
39470
39870
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
39471
39871
  */
@@ -40752,6 +41152,14 @@ interface MutationCallback {
40752
41152
  (mutations: MutationRecord[], observer: MutationObserver): void;
40753
41153
  }
40754
41154
 
41155
+ interface NavigationInterceptHandler {
41156
+ (): void | PromiseLike<void>;
41157
+ }
41158
+
41159
+ interface NavigationPrecommitHandler {
41160
+ (controller: NavigationPrecommitController): void | PromiseLike<void>;
41161
+ }
41162
+
40755
41163
  interface NotificationPermissionCallback {
40756
41164
  (permission: NotificationPermission): void;
40757
41165
  }
@@ -41233,6 +41641,12 @@ declare var menubar: BarProp;
41233
41641
  */
41234
41642
  /** @deprecated */
41235
41643
  declare const name: void;
41644
+ /**
41645
+ * The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
41646
+ *
41647
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
41648
+ */
41649
+ declare var navigation: Navigation;
41236
41650
  /**
41237
41651
  * The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
41238
41652
  *
@@ -41834,7 +42248,7 @@ declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
41834
42248
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
41835
42249
  declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
41836
42250
  /**
41837
- * @deprecated
42251
+ * @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
41838
42252
  *
41839
42253
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
41840
42254
  */
@@ -42070,6 +42484,9 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
42070
42484
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
42071
42485
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
42072
42486
  type MediaStreamTrackState = "ended" | "live";
42487
+ type NavigationFocusReset = "after-transition" | "manual";
42488
+ type NavigationHistoryBehavior = "auto" | "push" | "replace";
42489
+ type NavigationScrollBehavior = "after-transition" | "manual";
42073
42490
  type NavigationTimingType = "back_forward" | "navigate" | "reload";
42074
42491
  type NavigationType = "push" | "reload" | "replace" | "traverse";
42075
42492
  type NotificationDirection = "auto" | "ltr" | "rtl";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.297",
3
+ "version": "0.0.298",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],