@types/web 0.0.140 → 0.0.141

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.140 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.140.
50
+ You can read what changed in version 0.0.141 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.141.
package/index.d.ts CHANGED
@@ -272,6 +272,10 @@ interface ConstrainULongRange extends ULongRange {
272
272
  ideal?: number;
273
273
  }
274
274
 
275
+ interface ContentVisibilityAutoStateChangeEventInit extends EventInit {
276
+ skipped?: boolean;
277
+ }
278
+
275
279
  interface ConvolverOptions extends AudioNodeOptions {
276
280
  buffer?: AudioBuffer | null;
277
281
  disableNormalization?: boolean;
@@ -1755,16 +1759,16 @@ interface ScrollToOptions extends ScrollOptions {
1755
1759
  interface SecurityPolicyViolationEventInit extends EventInit {
1756
1760
  blockedURI?: string;
1757
1761
  columnNumber?: number;
1758
- disposition: SecurityPolicyViolationEventDisposition;
1759
- documentURI: string;
1760
- effectiveDirective: string;
1762
+ disposition?: SecurityPolicyViolationEventDisposition;
1763
+ documentURI?: string;
1764
+ effectiveDirective?: string;
1761
1765
  lineNumber?: number;
1762
- originalPolicy: string;
1766
+ originalPolicy?: string;
1763
1767
  referrer?: string;
1764
1768
  sample?: string;
1765
1769
  sourceFile?: string;
1766
- statusCode: number;
1767
- violatedDirective: string;
1770
+ statusCode?: number;
1771
+ violatedDirective?: string;
1768
1772
  }
1769
1773
 
1770
1774
  interface ShadowRootInit {
@@ -4092,6 +4096,8 @@ interface CSSStyleDeclaration {
4092
4096
  containerType: string;
4093
4097
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
4094
4098
  content: string;
4099
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */
4100
+ contentVisibility: string;
4095
4101
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
4096
4102
  counterIncrement: string;
4097
4103
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
@@ -4593,6 +4599,7 @@ interface CSSStyleDeclaration {
4593
4599
  textUnderlinePosition: string;
4594
4600
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
4595
4601
  textWrap: string;
4602
+ textWrapMode: string;
4596
4603
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
4597
4604
  top: string;
4598
4605
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
@@ -5815,6 +5822,17 @@ declare var ConstantSourceNode: {
5815
5822
  new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
5816
5823
  };
5817
5824
 
5825
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */
5826
+ interface ContentVisibilityAutoStateChangeEvent extends Event {
5827
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */
5828
+ readonly skipped: boolean;
5829
+ }
5830
+
5831
+ declare var ContentVisibilityAutoStateChangeEvent: {
5832
+ prototype: ContentVisibilityAutoStateChangeEvent;
5833
+ new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent;
5834
+ };
5835
+
5818
5836
  /**
5819
5837
  * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
5820
5838
  *
@@ -5976,6 +5994,16 @@ declare var CustomEvent: {
5976
5994
  new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
5977
5995
  };
5978
5996
 
5997
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */
5998
+ interface CustomStateSet {
5999
+ forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void;
6000
+ }
6001
+
6002
+ declare var CustomStateSet: {
6003
+ prototype: CustomStateSet;
6004
+ new(): CustomStateSet;
6005
+ };
6006
+
5979
6007
  /**
5980
6008
  * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
5981
6009
  *
@@ -7164,6 +7192,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
7164
7192
  createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
7165
7193
  createEvent(eventInterface: "CloseEvent"): CloseEvent;
7166
7194
  createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
7195
+ createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
7167
7196
  createEvent(eventInterface: "CustomEvent"): CustomEvent;
7168
7197
  createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
7169
7198
  createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
@@ -7941,6 +7970,8 @@ interface ElementInternals extends ARIAMixin {
7941
7970
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
7942
7971
  */
7943
7972
  readonly shadowRoot: ShadowRoot | null;
7973
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */
7974
+ readonly states: CustomStateSet;
7944
7975
  /**
7945
7976
  * Returns the error message that would be shown to the user if internals's target element was to be checked for validity.
7946
7977
  *
@@ -8719,7 +8750,6 @@ declare var GainNode: {
8719
8750
 
8720
8751
  /**
8721
8752
  * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
8722
- * Available only in secure contexts.
8723
8753
  *
8724
8754
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
8725
8755
  */
@@ -8748,7 +8778,6 @@ declare var Gamepad: {
8748
8778
 
8749
8779
  /**
8750
8780
  * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
8751
- * Available only in secure contexts.
8752
8781
  *
8753
8782
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
8754
8783
  */
@@ -8768,7 +8797,6 @@ declare var GamepadButton: {
8768
8797
 
8769
8798
  /**
8770
8799
  * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
8771
- * Available only in secure contexts.
8772
8800
  *
8773
8801
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
8774
8802
  */
@@ -21490,6 +21518,8 @@ interface ShadowRootEventMap {
21490
21518
 
21491
21519
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
21492
21520
  interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
21521
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
21522
+ readonly clonable: boolean;
21493
21523
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
21494
21524
  readonly delegatesFocus: boolean;
21495
21525
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
@@ -26020,7 +26050,11 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
26020
26050
  readonly window: Window & typeof globalThis;
26021
26051
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
26022
26052
  alert(message?: any): void;
26023
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
26053
+ /**
26054
+ * @deprecated
26055
+ *
26056
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
26057
+ */
26024
26058
  blur(): void;
26025
26059
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
26026
26060
  cancelIdleCallback(handle: number): void;
@@ -27645,7 +27679,11 @@ declare var visualViewport: VisualViewport | null;
27645
27679
  declare var window: Window & typeof globalThis;
27646
27680
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
27647
27681
  declare function alert(message?: any): void;
27648
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
27682
+ /**
27683
+ * @deprecated
27684
+ *
27685
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
27686
+ */
27649
27687
  declare function blur(): void;
27650
27688
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
27651
27689
  declare function cancelIdleCallback(handle: number): void;
package/iterable.d.ts CHANGED
@@ -70,6 +70,9 @@ interface CanvasPathDrawingStyles {
70
70
  setLineDash(segments: Iterable<number>): void;
71
71
  }
72
72
 
73
+ interface CustomStateSet extends Set<string> {
74
+ }
75
+
73
76
  interface DOMRectList {
74
77
  [Symbol.iterator](): IterableIterator<DOMRect>;
75
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.140",
3
+ "version": "0.0.141",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],