@types/react 17.0.84 → 17.0.86

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.
react v17.0/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react (https://react.dev/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react/v17.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 19 Mar 2025 15:02:26 GMT
11
+ * Last updated: Wed, 21 May 2025 10:38:15 GMT
12
12
  * Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler), [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react v17.0/global.d.ts CHANGED
@@ -13,6 +13,7 @@ interface ClipboardEvent extends Event {}
13
13
  interface CompositionEvent extends Event {}
14
14
  interface DragEvent extends Event {}
15
15
  interface FocusEvent extends Event {}
16
+ interface InputEvent extends Event {}
16
17
  interface KeyboardEvent extends Event {}
17
18
  interface MouseEvent extends Event {}
18
19
  interface TouchEvent extends Event {}
react v17.0/index.d.ts CHANGED
@@ -9,6 +9,7 @@ type NativeClipboardEvent = ClipboardEvent;
9
9
  type NativeCompositionEvent = CompositionEvent;
10
10
  type NativeDragEvent = DragEvent;
11
11
  type NativeFocusEvent = FocusEvent;
12
+ type NativeInputEvent = InputEvent;
12
13
  type NativeKeyboardEvent = KeyboardEvent;
13
14
  type NativeMouseEvent = MouseEvent;
14
15
  type NativeTouchEvent = TouchEvent;
@@ -1201,6 +1202,10 @@ declare namespace React {
1201
1202
  target: EventTarget & T;
1202
1203
  }
1203
1204
 
1205
+ interface InputEvent<T = Element> extends SyntheticEvent<T, NativeInputEvent> {
1206
+ data: string;
1207
+ }
1208
+
1204
1209
  export type ModifierKey =
1205
1210
  | "Alt"
1206
1211
  | "AltGraph"
@@ -1316,6 +1321,7 @@ declare namespace React {
1316
1321
  type FocusEventHandler<T = Element> = EventHandler<FocusEvent<T>>;
1317
1322
  type FormEventHandler<T = Element> = EventHandler<FormEvent<T>>;
1318
1323
  type ChangeEventHandler<T = Element> = EventHandler<ChangeEvent<T>>;
1324
+ type InputEventHandler<T = Element> = EventHandler<InputEvent<T>>;
1319
1325
  type KeyboardEventHandler<T = Element> = EventHandler<KeyboardEvent<T>>;
1320
1326
  type MouseEventHandler<T = Element> = EventHandler<MouseEvent<T>>;
1321
1327
  type TouchEventHandler<T = Element> = EventHandler<TouchEvent<T>>;
@@ -1393,7 +1399,7 @@ declare namespace React {
1393
1399
  // Form Events
1394
1400
  onChange?: FormEventHandler<T> | undefined;
1395
1401
  onChangeCapture?: FormEventHandler<T> | undefined;
1396
- onBeforeInput?: FormEventHandler<T> | undefined;
1402
+ onBeforeInput?: InputEventHandler<T> | undefined;
1397
1403
  onBeforeInputCapture?: FormEventHandler<T> | undefined;
1398
1404
  onInput?: FormEventHandler<T> | undefined;
1399
1405
  onInputCapture?: FormEventHandler<T> | undefined;
@@ -1591,6 +1597,16 @@ declare namespace React {
1591
1597
  * presented if they are made.
1592
1598
  */
1593
1599
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
1600
+ /**
1601
+ * Defines a string value that labels the current element, which is intended to be converted into Braille.
1602
+ * @see aria-label.
1603
+ */
1604
+ "aria-braillelabel"?: string | undefined;
1605
+ /**
1606
+ * Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
1607
+ * @see aria-roledescription.
1608
+ */
1609
+ "aria-brailleroledescription"?: string | undefined;
1594
1610
  /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
1595
1611
  "aria-busy"?: Booleanish | undefined;
1596
1612
  /**
@@ -1608,6 +1624,11 @@ declare namespace React {
1608
1624
  * @see aria-colcount @see aria-colspan.
1609
1625
  */
1610
1626
  "aria-colindex"?: number | undefined;
1627
+ /**
1628
+ * Defines a human readable text alternative of aria-colindex.
1629
+ * @see aria-rowindextext.
1630
+ */
1631
+ "aria-colindextext"?: string | undefined;
1611
1632
  /**
1612
1633
  * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
1613
1634
  * @see aria-colindex @see aria-rowspan.
@@ -1625,6 +1646,11 @@ declare namespace React {
1625
1646
  * @see aria-labelledby
1626
1647
  */
1627
1648
  "aria-describedby"?: string | undefined;
1649
+ /**
1650
+ * Defines a string value that describes or annotates the current element.
1651
+ * @see related aria-describedby.
1652
+ */
1653
+ "aria-description"?: string | undefined;
1628
1654
  /**
1629
1655
  * Identifies the element that provides a detailed, extended description for the object.
1630
1656
  * @see aria-describedby.
@@ -1749,6 +1775,11 @@ declare namespace React {
1749
1775
  * @see aria-rowcount @see aria-rowspan.
1750
1776
  */
1751
1777
  "aria-rowindex"?: number | undefined;
1778
+ /**
1779
+ * Defines a human readable text alternative of aria-rowindex.
1780
+ * @see aria-colindextext.
1781
+ */
1782
+ "aria-rowindextext"?: string | undefined;
1752
1783
  /**
1753
1784
  * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
1754
1785
  * @see aria-rowindex @see aria-colspan.
@@ -2503,6 +2534,9 @@ declare namespace React {
2503
2534
  width?: number | string | undefined;
2504
2535
  disablePictureInPicture?: boolean | undefined;
2505
2536
  disableRemotePlayback?: boolean | undefined;
2537
+
2538
+ onResize?: ReactEventHandler<T> | undefined;
2539
+ onResizeCapture?: ReactEventHandler<T> | undefined;
2506
2540
  }
2507
2541
 
2508
2542
  // this list is "complete" in that it contains every SVG attribute
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.84",
3
+ "version": "17.0.86",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -170,6 +170,6 @@
170
170
  "csstype": "^3.0.2"
171
171
  },
172
172
  "peerDependencies": {},
173
- "typesPublisherContentHash": "bde960465cc06ea7da4f9d23fa1df9e00ee7c545afe171bd150e6428ae63a5fd",
174
- "typeScriptVersion": "5.0"
173
+ "typesPublisherContentHash": "ff918e46db782f768a0577fda8f638a348a5f3004de575ab757ff0144723e0d9",
174
+ "typeScriptVersion": "5.1"
175
175
  }