@24i/bigscreen-sdk 1.1.0 → 2.1.1-alpha.2133

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.
Files changed (256) hide show
  1. package/README.md +1 -1
  2. package/package.json +34 -53
  3. package/packages/adobe-heartbeat/src/AdobeHeartbeat.ts +9 -9
  4. package/packages/async-image/src/AsyncImage.tsx +10 -15
  5. package/packages/developer-tools/PlayerDebugWindow/README.md +1 -1
  6. package/packages/developer-tools/src/DeveloperToolsService/DeveloperToolsList.tsx +0 -11
  7. package/packages/developer-tools/src/PlayerDebugWindow/PlayerDebugWindow.tsx +5 -5
  8. package/packages/developer-tools/src/PlayerDebugWindow/constants.ts +0 -15
  9. package/packages/developer-tools/src/TechnicalInfo/TechnicalInfoDetail.tsx +1 -2
  10. package/packages/developer-tools/src/TechnicalInfo/TechnicalInfoProvider.ts +3 -34
  11. package/packages/developer-tools/src/TechnicalInfo/__mocks__/Device.ts +0 -4
  12. package/packages/developer-tools/src/TechnicalInfo/translations.ts +0 -4
  13. package/packages/device/src/getKeyDigit.ts +2 -2
  14. package/packages/device/src/resolver/resolver.ts +5 -18
  15. package/packages/digital-clock/src/DigitalClock.tsx +4 -15
  16. package/packages/driver-androidtv/src/DeviceAndroidTV.ts +9 -54
  17. package/packages/driver-androidtv/src/__mocks__/javaScriptBridge.ts +5 -29
  18. package/packages/driver-androidtv/src/keymap.ts +0 -18
  19. package/packages/driver-androidtv/src/types.ts +16 -102
  20. package/packages/driver-base/src/DeviceBase.ts +2 -61
  21. package/packages/driver-base/src/KeyMap/Key.ts +1 -8
  22. package/packages/driver-base/src/KeyMap/KeyMap.ts +0 -4
  23. package/packages/driver-base/src/KeyMap/interface.ts +0 -1
  24. package/packages/driver-base/src/KeyMap/overrideValues.ts +1 -2
  25. package/packages/driver-base/src/__mocks__/keyMap.ts +0 -1
  26. package/packages/driver-base/src/types/DeviceEvent.ts +0 -2
  27. package/packages/driver-base/src/types/KeycodeKeyMap.ts +0 -1
  28. package/packages/driver-browser/src/keymap.ts +0 -8
  29. package/packages/driver-entone/src/keymap.ts +0 -1
  30. package/packages/driver-tizen/src/TizenKeys.ts +0 -2
  31. package/packages/driver-vidaa/src/DeviceVidaa.ts +2 -3
  32. package/packages/driver-vidaa/src/__mocks__/vidaa.ts +1 -1
  33. package/packages/driver-vidaa/src/keymap.ts +0 -2
  34. package/packages/driver-webos/src/DeviceWebos.ts +0 -8
  35. package/packages/driver-webos/src/keymap.ts +1 -2
  36. package/packages/driver-xbox/src/keymap.ts +1 -1
  37. package/packages/epg/README.md +1 -3
  38. package/packages/epg/src/v2/Cell.tsx +2 -16
  39. package/packages/epg/src/v2/DataManager.ts +41 -112
  40. package/packages/epg/src/v2/DatePicker.tsx +3 -9
  41. package/packages/epg/src/v2/DateToast/DateToast.tsx +9 -12
  42. package/packages/epg/src/v2/Day.tsx +3 -6
  43. package/packages/epg/src/v2/Epg.tsx +5 -5
  44. package/packages/epg/src/v2/MockGenerator/generator.ts +2 -3
  45. package/packages/epg/src/v2/ProgramInfo/utils.ts +3 -4
  46. package/packages/epg/src/v2/Row.tsx +1 -3
  47. package/packages/epg/src/v2/TimelineSection.tsx +1 -4
  48. package/packages/epg/src/v2/basic/CellsManager.tsx +2 -7
  49. package/packages/epg/src/v2/basic/RowsManager.tsx +1 -3
  50. package/packages/epg/src/v2/interface.ts +0 -13
  51. package/packages/events-manager/src/EventsManager.ts +56 -1
  52. package/packages/focus/README.md +0 -33
  53. package/packages/focus/src/IFocusable.ts +0 -1
  54. package/packages/focus/src/Layout/Base.tsx +6 -41
  55. package/packages/focus/src/Layout/Matrix.tsx +19 -51
  56. package/packages/focus/src/Layout/__test__/Base.spec.ts +180 -0
  57. package/packages/focus/src/Layout/__test__/Horizontal.spec.ts +94 -0
  58. package/packages/focus/src/Layout/__test__/Matrix.spec.ts +261 -0
  59. package/packages/focus/src/Layout/__test__/Vertical.spec.ts +46 -0
  60. package/packages/focus/src/Layout/__test__/isRtl.spec.ts +23 -0
  61. package/packages/focus/src/Layout/__test__/shared.ts +19 -0
  62. package/packages/focus/src/focusFirstExisting.ts +1 -7
  63. package/packages/focus/src/index.ts +1 -2
  64. package/packages/gallup/src/Gallup.ts +3 -3
  65. package/packages/grid/src/Base/Base.tsx +10 -15
  66. package/packages/grid/src/FirstOnlyGrid/FirstOnlyGrid.tsx +2 -4
  67. package/packages/icon/src/Icon.tsx +5 -27
  68. package/packages/input/README.md +1 -4
  69. package/packages/input/src/Input.tsx +29 -65
  70. package/packages/input/src/handleOverflow.ts +29 -0
  71. package/packages/interactable/README.md +1 -2
  72. package/packages/interactable/src/Interactable.tsx +3 -9
  73. package/packages/interactable/src/interface.ts +0 -1
  74. package/packages/jsx/src/index.ts +1 -1
  75. package/packages/jsx/src/test-utils/index.ts +0 -1
  76. package/packages/keyboard/src/Backdrop/Backdrop.scss +0 -2
  77. package/packages/keyboard/src/KeyboardBase.tsx +4 -16
  78. package/packages/keyboard/src/WhitelabelKeyboard/Keyboard.scss +0 -4
  79. package/packages/keyboard/src/WhitelabelKeyboard/Keyboard.tsx +20 -28
  80. package/packages/keyboard/src/WhitelabelKeyboard/_sizes.1080.scss +0 -1
  81. package/packages/keyboard/src/WhitelabelKeyboard/_sizes.scss +0 -1
  82. package/packages/keyboard/src/WhitelabelKeyboard/layouts/index.ts +0 -11
  83. package/packages/keyboard/src/WhitelabelKeyboard/types.ts +0 -1
  84. package/packages/l10n/README.md +0 -18
  85. package/packages/l10n/src/date/common.ts +6 -18
  86. package/packages/l10n/src/date/cs.ts +8 -2
  87. package/packages/l10n/src/date/en-001.ts +3 -3
  88. package/packages/l10n/src/date/en-common.ts +4 -5
  89. package/packages/l10n/src/date/en-us.ts +3 -3
  90. package/packages/l10n/src/date/iso.ts +13 -12
  91. package/packages/l10n/src/date/types.ts +0 -9
  92. package/packages/l10n/src/l10n.ts +3 -61
  93. package/packages/list/src/Base/Base.tsx +9 -19
  94. package/packages/list/src/Base/interface.ts +2 -2
  95. package/packages/list/src/CenteredList/controller.ts +1 -0
  96. package/packages/list/src/EdgeOffsetList/EdgeOffsetList.tsx +3 -3
  97. package/packages/list/src/UnifiedListController/UnifiedListController.ts +2 -6
  98. package/packages/logger/src/loggers/SentryLogger/Sentry.ts +0 -1
  99. package/packages/logger/src/loggers/SentryLogger/SentryLogger.ts +2 -2
  100. package/packages/menu/src/MenuAndContentContainer/MenuAndContentContainer.tsx +3 -31
  101. package/packages/menu/src/MenuAndContentContainer/interface.ts +0 -8
  102. package/packages/modal-service/README.md +1 -4
  103. package/packages/modal-service/src/ModalService.tsx +5 -29
  104. package/packages/perf-utils/README.md +120 -1
  105. package/packages/perf-utils/src/array/filter.ts +54 -1
  106. package/packages/perf-utils/src/array/find.ts +43 -1
  107. package/packages/perf-utils/src/array/findIndex.ts +43 -1
  108. package/packages/perf-utils/src/array/forEach.ts +48 -1
  109. package/packages/perf-utils/src/array/includes.ts +41 -1
  110. package/packages/perf-utils/src/array/includesNaN.ts +32 -1
  111. package/packages/perf-utils/src/array/index.ts +7 -1
  112. package/packages/perf-utils/src/array/map.ts +52 -1
  113. package/packages/player-ui/README.md +1 -1
  114. package/packages/player-ui/src/CurrentTime.tsx +2 -2
  115. package/packages/player-ui/src/Duration.tsx +2 -2
  116. package/packages/player-ui/src/PauseButton.tsx +0 -8
  117. package/packages/player-ui/src/PlayerInteractable.tsx +0 -1
  118. package/packages/player-ui/src/PlayerTime.tsx +1 -3
  119. package/packages/player-ui/src/PlayerUI.tsx +35 -68
  120. package/packages/player-ui/src/RemainingTime.tsx +2 -2
  121. package/packages/player-ui/src/Seekbar.tsx +18 -110
  122. package/packages/player-ui/src/Seeking.ts +16 -57
  123. package/packages/player-ui/src/Subtitles.tsx +2 -2
  124. package/packages/player-ui/src/index.ts +0 -1
  125. package/packages/player-ui/src/mocks.ts +8 -32
  126. package/packages/player-ui/src/timeUtils.ts +3 -3
  127. package/packages/player-ui/src/types.ts +3 -9
  128. package/packages/router/src/Route.tsx +27 -61
  129. package/packages/router/src/Router.tsx +13 -59
  130. package/packages/router/src/history.ts +1 -8
  131. package/packages/router/src/index.ts +1 -1
  132. package/packages/router/src/utils.ts +4 -9
  133. package/packages/sass-utils/src/linear-gradient.scss +4 -9
  134. package/packages/sass-utils/src/scale.1080.scss +1 -3
  135. package/packages/sass-utils/src/scale.720.scss +1 -1
  136. package/packages/time/README.md +1 -4
  137. package/packages/time/src/Time.ts +13 -35
  138. package/packages/time/src/constants.ts +0 -1
  139. package/packages/toast/src/ToastService.tsx +5 -16
  140. package/packages/types-bigscreen-jsx/README.md +4 -5
  141. package/packages/types-bigscreen-jsx/index.d.ts +67 -72
  142. package/packages/utils/README.md +0 -27
  143. package/packages/utils/src/elementUtils.ts +0 -25
  144. package/packages/utils/src/index.ts +0 -8
  145. package/packages/utils/src/scaledImage.ts +3 -6
  146. package/packages/utils/src/textUtils.ts +14 -46
  147. package/packages/utils/src/wait.ts +1 -3
  148. package/packages/utils/src/xhr/xhrSend.ts +1 -3
  149. package/packages/utils/src/xhr/xhrSendRetry.ts +1 -3
  150. package/packages/zapping/src/ChannelZapping.ts +0 -9
  151. package/packages/zapping/src/Zapping.tsx +0 -10
  152. package/.vscode/settings.json +0 -6
  153. package/packages/analytics/README.md +0 -8
  154. package/packages/analytics/src/A.ts +0 -1
  155. package/packages/analytics/src/Analytics.ts +0 -1
  156. package/packages/analytics/src/analyticsOnScroll.ts +0 -1
  157. package/packages/analytics/src/clients/ConsoleAnalytics/ConsoleAnalytics.ts +0 -1
  158. package/packages/analytics/src/clients/ConsoleAnalytics/index.ts +0 -1
  159. package/packages/analytics/src/clients/GoogleAnalytics/GoogleAnalytics.ts +0 -200
  160. package/packages/analytics/src/clients/GoogleAnalytics/constants.ts +0 -118
  161. package/packages/analytics/src/clients/GoogleAnalytics/getUrl.ts +0 -17
  162. package/packages/analytics/src/clients/GoogleAnalytics/index.ts +0 -2
  163. package/packages/analytics/src/clients/GoogleAnalytics/interface.ts +0 -77
  164. package/packages/analytics/src/clients/GoogleAnalytics/mapPayload.ts +0 -50
  165. package/packages/analytics/src/clients/GoogleAnalytics/prepareBody.ts +0 -14
  166. package/packages/analytics/src/clients/TealiumAnalytics/TealiumAnalytics.ts +0 -169
  167. package/packages/analytics/src/clients/TealiumAnalytics/constants.ts +0 -102
  168. package/packages/analytics/src/clients/TealiumAnalytics/findIdForLanguage.ts +0 -9
  169. package/packages/analytics/src/clients/TealiumAnalytics/index.ts +0 -4
  170. package/packages/analytics/src/clients/TealiumAnalytics/interface.ts +0 -33
  171. package/packages/analytics/src/clients/TealiumAnalytics/mappers/__mocks__/mediaPayload.ts +0 -70
  172. package/packages/analytics/src/clients/TealiumAnalytics/mappers/helper.ts +0 -36
  173. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapAppError.ts +0 -13
  174. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapFavoriteAdd.ts +0 -11
  175. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapFavoriteRemove.ts +0 -11
  176. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapPlayerClose.ts +0 -15
  177. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapPlayerOpen.ts +0 -15
  178. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapSceneView.ts +0 -18
  179. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapSearch.ts +0 -18
  180. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapSearchFailed.ts +0 -8
  181. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapSearchSuccess.ts +0 -8
  182. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapVideoPause.ts +0 -15
  183. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapVideoProgress.ts +0 -18
  184. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapVideoResume.ts +0 -15
  185. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapVideoStart.ts +0 -15
  186. package/packages/analytics/src/clients/TealiumAnalytics/mappers/mapVideoStop.ts +0 -15
  187. package/packages/analytics/src/clients/TealiumAnalytics/types.ts +0 -156
  188. package/packages/analytics/src/clients/TwentyFourIQ/TwentyFourIQClient.ts +0 -116
  189. package/packages/analytics/src/clients/TwentyFourIQ/constants.ts +0 -99
  190. package/packages/analytics/src/clients/TwentyFourIQ/helper.ts +0 -34
  191. package/packages/analytics/src/clients/TwentyFourIQ/index.ts +0 -2
  192. package/packages/analytics/src/clients/TwentyFourIQ/interface.ts +0 -31
  193. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapAdLoaded.ts +0 -13
  194. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapAdSkipped.ts +0 -16
  195. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapBase.ts +0 -21
  196. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapBuffering.ts +0 -15
  197. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapPlayerClose.ts +0 -24
  198. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapPlayerOpen.ts +0 -18
  199. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapSceneView.ts +0 -15
  200. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapScroll.ts +0 -17
  201. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoComplete.ts +0 -21
  202. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoPause.ts +0 -24
  203. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoProgress.ts +0 -24
  204. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoStart.ts +0 -34
  205. package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoStop.ts +0 -32
  206. package/packages/analytics/src/clients/TwentyFourIQ/types.ts +0 -115
  207. package/packages/analytics/src/constants.ts +0 -1
  208. package/packages/analytics/src/index.ts +0 -3
  209. package/packages/analytics/src/interface.ts +0 -1
  210. package/packages/analytics/src/utils/generateSessionId.ts +0 -8
  211. package/packages/create-package/dist/createPackage.js +0 -66
  212. package/packages/create-package/dist/createPackage.js.map +0 -1
  213. package/packages/create-package/dist/index.js +0 -5
  214. package/packages/create-package/dist/index.js.map +0 -1
  215. package/packages/create-package/dist/questionnaire/questions.js +0 -35
  216. package/packages/create-package/dist/questionnaire/questions.js.map +0 -1
  217. package/packages/create-package/dist/settings/Settings.js +0 -10
  218. package/packages/create-package/dist/settings/Settings.js.map +0 -1
  219. package/packages/create-package/dist/types.js +0 -3
  220. package/packages/create-package/dist/types.js.map +0 -1
  221. package/packages/device/src/driver/index.firetv.ts +0 -1
  222. package/packages/device/src/driver/index.smartcast.tv.ts +0 -1
  223. package/packages/driver-firetv/src/DeviceFireTV.ts +0 -18
  224. package/packages/driver-firetv/src/__mocks__/javaScriptBridge.ts +0 -36
  225. package/packages/driver-firetv/src/index.ts +0 -1
  226. package/packages/driver-smartcast/src/DeviceSmartCast.ts +0 -317
  227. package/packages/driver-smartcast/src/__mocks__/api.ts +0 -49
  228. package/packages/driver-smartcast/src/index.ts +0 -1
  229. package/packages/driver-smartcast/src/keymap.ts +0 -9
  230. package/packages/driver-smartcast/src/types.ts +0 -65
  231. package/packages/focus/src/hasFocus.ts +0 -36
  232. package/packages/input/src/utils.ts +0 -71
  233. package/packages/jsx/src/test-utils/keyup.ts +0 -27
  234. package/packages/keyboard/src/WhitelabelKeyboard/layouts/arabic.ts +0 -27
  235. package/packages/keyboard/src/WhitelabelKeyboard/layouts/burmese.ts +0 -27
  236. package/packages/keyboard/src/WhitelabelKeyboard/layouts/dari.ts +0 -28
  237. package/packages/keyboard/src/WhitelabelKeyboard/layouts/korean.ts +0 -26
  238. package/packages/keyboard/src/WhitelabelKeyboard/layouts/pashto.ts +0 -27
  239. package/packages/keyboard/src/WhitelabelKeyboard/layouts/persian.ts +0 -27
  240. package/packages/keyboard/src/WhitelabelKeyboard/layouts/russian.ts +0 -27
  241. package/packages/keyboard/src/WhitelabelKeyboard/layouts/tibetan.ts +0 -26
  242. package/packages/keyboard/src/WhitelabelKeyboard/layouts/turkish.ts +0 -26
  243. package/packages/keyboard/src/WhitelabelKeyboard/layouts/ukrainian.ts +0 -27
  244. package/packages/keyboard/src/WhitelabelKeyboard/layouts/urdu.ts +0 -26
  245. package/packages/l10n/src/date/de.ts +0 -97
  246. package/packages/l10n/src/date/es.ts +0 -71
  247. package/packages/l10n/src/date/fr.ts +0 -94
  248. package/packages/l10n/src/date/he.ts +0 -101
  249. package/packages/time/src/adapters/24iMediaTimeApi.ts +0 -47
  250. package/packages/time/src/services/24iMediaTimeApi/24iMediaTimeApi.ts +0 -43
  251. package/packages/time/src/services/24iMediaTimeApi/index.ts +0 -6
  252. package/packages/utils/src/forceReflow.ts +0 -14
  253. package/packages/utils/src/keyPress/index.ts +0 -6
  254. package/packages/utils/src/keyPress/keyPressSimulator.ts +0 -74
  255. package/packages/utils/src/keyPress/simulateKeyPress.ts +0 -25
  256. package/utils/release/release.ts +0 -154
@@ -27,7 +27,6 @@
27
27
  // Victor Magalhães <https://github.com/vhfmag>
28
28
  // Dale Tan <https://github.com/hellatan>
29
29
  // Priyanshu Rav <https://github.com/priyanshurav>
30
- // Dmitry Semigradsky <https://github.com/Semigradsky>
31
30
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
32
31
  // TypeScript Version: 2.8
33
32
 
@@ -133,19 +132,9 @@ declare namespace React {
133
132
  key?: Key | null | undefined;
134
133
  }
135
134
  interface RefAttributes<T> extends Attributes {
136
- /**
137
- * Allows getting a ref to the component instance.
138
- * Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).
139
- * @see https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom
140
- */
141
135
  ref?: Ref<T> | undefined;
142
136
  }
143
137
  interface ClassAttributes<T> extends Attributes {
144
- /**
145
- * Allows getting a ref to the component instance.
146
- * Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).
147
- * @see https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom
148
- */
149
138
  ref?: LegacyRef<T> | undefined;
150
139
  }
151
140
 
@@ -413,7 +402,7 @@ declare namespace React {
413
402
  const version: string;
414
403
 
415
404
  /**
416
- * {@link https://react.dev/reference/react/Profiler#onrender-callback Profiler API}
405
+ * {@link https://reactjs.org/docs/profiler.html#onrender-callback Profiler API}
417
406
  */
418
407
  type ProfilerOnRenderCallback = (
419
408
  id: string,
@@ -460,7 +449,7 @@ declare namespace React {
460
449
  * }
461
450
  * ```
462
451
  *
463
- * @see https://react.dev/reference/react/Component#static-contexttype
452
+ * @see https://reactjs.org/docs/context.html#classcontexttype
464
453
  */
465
454
  static contextType?: Context<any> | undefined;
466
455
 
@@ -477,14 +466,14 @@ declare namespace React {
477
466
  * declare context: React.ContextType<typeof MyContext>
478
467
  * ```
479
468
  *
480
- * @see https://react.dev/reference/react/Component#context
469
+ * @see https://reactjs.org/docs/context.html
481
470
  */
482
471
  context: unknown;
483
472
 
484
473
  constructor(props: Readonly<P> | P);
485
474
  /**
486
475
  * @deprecated
487
- * @see https://legacy.reactjs.org/docs/legacy-context.html
476
+ * @see https://reactjs.org/docs/legacy-context.html
488
477
  */
489
478
  constructor(props: P, context: any);
490
479
 
@@ -503,7 +492,7 @@ declare namespace React {
503
492
  state: Readonly<S>;
504
493
  /**
505
494
  * @deprecated
506
- * https://legacy.reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs
495
+ * https://reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs
507
496
  */
508
497
  refs: {
509
498
  [key: string]: ReactInstance
@@ -679,8 +668,8 @@ declare namespace React {
679
668
  * prevents this from being invoked.
680
669
  *
681
670
  * @deprecated 16.3, use componentDidMount or the constructor instead; will stop working in React 17
682
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state
683
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
671
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state
672
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
684
673
  */
685
674
  componentWillMount?(): void;
686
675
  /**
@@ -693,8 +682,8 @@ declare namespace React {
693
682
  * prevents this from being invoked.
694
683
  *
695
684
  * @deprecated 16.3, use componentDidMount or the constructor instead
696
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state
697
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
685
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#initializing-state
686
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
698
687
  */
699
688
  UNSAFE_componentWillMount?(): void;
700
689
  /**
@@ -708,8 +697,8 @@ declare namespace React {
708
697
  * prevents this from being invoked.
709
698
  *
710
699
  * @deprecated 16.3, use static getDerivedStateFromProps instead; will stop working in React 17
711
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props
712
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
700
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props
701
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
713
702
  */
714
703
  componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
715
704
  /**
@@ -725,8 +714,8 @@ declare namespace React {
725
714
  * prevents this from being invoked.
726
715
  *
727
716
  * @deprecated 16.3, use static getDerivedStateFromProps instead
728
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props
729
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
717
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props
718
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
730
719
  */
731
720
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
732
721
  /**
@@ -738,8 +727,8 @@ declare namespace React {
738
727
  * prevents this from being invoked.
739
728
  *
740
729
  * @deprecated 16.3, use getSnapshotBeforeUpdate instead; will stop working in React 17
741
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update
742
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
730
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update
731
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
743
732
  */
744
733
  componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
745
734
  /**
@@ -753,8 +742,8 @@ declare namespace React {
753
742
  * prevents this from being invoked.
754
743
  *
755
744
  * @deprecated 16.3, use getSnapshotBeforeUpdate instead
756
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update
757
- * @see https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
745
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#reading-dom-properties-before-an-update
746
+ * @see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
758
747
  */
759
748
  UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
760
749
  }
@@ -793,10 +782,10 @@ declare namespace React {
793
782
 
794
783
  /** Ensures that the props do not include ref at all */
795
784
  type PropsWithoutRef<P> =
796
- // Omit would not be sufficient for this. We'd like to avoid unnecessary mapping and need a distributive conditional to support unions.
785
+ // Pick would not be sufficient for this. We'd like to avoid unnecessary mapping and need a distributive conditional to support unions.
797
786
  // see: https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types
798
787
  // https://github.com/Microsoft/TypeScript/issues/28339
799
- P extends any ? ('ref' extends keyof P ? Omit<P, 'ref'> : P) : P;
788
+ P extends any ? ('ref' extends keyof P ? Pick<P, Exclude<keyof P, 'ref'>> : P) : P;
800
789
  /** Ensures that the props do not include string ref, which cannot be forwarded */
801
790
  type PropsWithRef<P> =
802
791
  // Just "P extends { ref?: infer R }" looks sufficient, but R will infer as {} if P is {}.
@@ -897,14 +886,14 @@ declare namespace React {
897
886
  * context value, as given by the nearest context provider for the given context.
898
887
  *
899
888
  * @version 16.8.0
900
- * @see https://react.dev/reference/react/useContext
889
+ * @see https://reactjs.org/docs/hooks-reference.html#usecontext
901
890
  */
902
891
  function useContext<T>(context: Context<T>/*, (not public API) observedBits?: number|boolean */): T;
903
892
  /**
904
893
  * Returns a stateful value, and a function to update it.
905
894
  *
906
895
  * @version 16.8.0
907
- * @see https://react.dev/reference/react/useState
896
+ * @see https://reactjs.org/docs/hooks-reference.html#usestate
908
897
  */
909
898
  function useState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];
910
899
  // convenience overload when first argument is omitted
@@ -912,7 +901,7 @@ declare namespace React {
912
901
  * Returns a stateful value, and a function to update it.
913
902
  *
914
903
  * @version 16.8.0
915
- * @see https://react.dev/reference/react/useState
904
+ * @see https://reactjs.org/docs/hooks-reference.html#usestate
916
905
  */
917
906
  function useState<S = undefined>(): [S | undefined, Dispatch<SetStateAction<S | undefined>>];
918
907
  /**
@@ -923,7 +912,7 @@ declare namespace React {
923
912
  * updates because you can pass `dispatch` down instead of callbacks.
924
913
  *
925
914
  * @version 16.8.0
926
- * @see https://react.dev/reference/react/useReducer
915
+ * @see https://reactjs.org/docs/hooks-reference.html#usereducer
927
916
  */
928
917
  // overload where dispatch could accept 0 arguments.
929
918
  function useReducer<R extends ReducerWithoutAction<any>, I>(
@@ -939,7 +928,7 @@ declare namespace React {
939
928
  * updates because you can pass `dispatch` down instead of callbacks.
940
929
  *
941
930
  * @version 16.8.0
942
- * @see https://react.dev/reference/react/useReducer
931
+ * @see https://reactjs.org/docs/hooks-reference.html#usereducer
943
932
  */
944
933
  // overload where dispatch could accept 0 arguments.
945
934
  function useReducer<R extends ReducerWithoutAction<any>>(
@@ -955,7 +944,7 @@ declare namespace React {
955
944
  * updates because you can pass `dispatch` down instead of callbacks.
956
945
  *
957
946
  * @version 16.8.0
958
- * @see https://react.dev/reference/react/useReducer
947
+ * @see https://reactjs.org/docs/hooks-reference.html#usereducer
959
948
  */
960
949
  // overload where "I" may be a subset of ReducerState<R>; used to provide autocompletion.
961
950
  // If "I" matches ReducerState<R> exactly then the last overload will allow initializer to be omitted.
@@ -973,7 +962,7 @@ declare namespace React {
973
962
  * updates because you can pass `dispatch` down instead of callbacks.
974
963
  *
975
964
  * @version 16.8.0
976
- * @see https://react.dev/reference/react/useReducer
965
+ * @see https://reactjs.org/docs/hooks-reference.html#usereducer
977
966
  */
978
967
  // overload for free "I"; all goes as long as initializer converts it into "ReducerState<R>".
979
968
  function useReducer<R extends Reducer<any, any>, I>(
@@ -989,7 +978,7 @@ declare namespace React {
989
978
  * updates because you can pass `dispatch` down instead of callbacks.
990
979
  *
991
980
  * @version 16.8.0
992
- * @see https://react.dev/reference/react/useReducer
981
+ * @see https://reactjs.org/docs/hooks-reference.html#usereducer
993
982
  */
994
983
 
995
984
  // I'm not sure if I keep this 2-ary or if I make it (2,3)-ary; it's currently (2,3)-ary.
@@ -1014,7 +1003,7 @@ declare namespace React {
1014
1003
  * value around similar to how you’d use instance fields in classes.
1015
1004
  *
1016
1005
  * @version 16.8.0
1017
- * @see https://react.dev/reference/react/useRef
1006
+ * @see https://reactjs.org/docs/hooks-reference.html#useref
1018
1007
  */
1019
1008
  function useRef<T>(initialValue: T): MutableRefObject<T>;
1020
1009
  // convenience overload for refs given as a ref prop as they typically start with a null value
@@ -1029,7 +1018,7 @@ declare namespace React {
1029
1018
  * of the generic argument.
1030
1019
  *
1031
1020
  * @version 16.8.0
1032
- * @see https://react.dev/reference/react/useRef
1021
+ * @see https://reactjs.org/docs/hooks-reference.html#useref
1033
1022
  */
1034
1023
  function useRef<T>(initialValue: T|null): RefObject<T>;
1035
1024
  // convenience overload for potentially undefined initialValue / call with 0 arguments
@@ -1042,7 +1031,7 @@ declare namespace React {
1042
1031
  * value around similar to how you’d use instance fields in classes.
1043
1032
  *
1044
1033
  * @version 16.8.0
1045
- * @see https://react.dev/reference/react/useRef
1034
+ * @see https://reactjs.org/docs/hooks-reference.html#useref
1046
1035
  */
1047
1036
  function useRef<T = undefined>(): MutableRefObject<T | undefined>;
1048
1037
  /**
@@ -1056,7 +1045,7 @@ declare namespace React {
1056
1045
  * `componentDidMount` and `componentDidUpdate`.
1057
1046
  *
1058
1047
  * @version 16.8.0
1059
- * @see https://react.dev/reference/react/useLayoutEffect
1048
+ * @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect
1060
1049
  */
1061
1050
  function useLayoutEffect(effect: EffectCallback, deps?: DependencyList): void;
1062
1051
  /**
@@ -1066,7 +1055,7 @@ declare namespace React {
1066
1055
  * @param deps If present, effect will only activate if the values in the list change.
1067
1056
  *
1068
1057
  * @version 16.8.0
1069
- * @see https://react.dev/reference/react/useEffect
1058
+ * @see https://reactjs.org/docs/hooks-reference.html#useeffect
1070
1059
  */
1071
1060
  function useEffect(effect: EffectCallback, deps?: DependencyList): void;
1072
1061
  // NOTE: this does not accept strings, but this will have to be fixed by removing strings from type Ref<T>
@@ -1077,7 +1066,7 @@ declare namespace React {
1077
1066
  * `useImperativeHandle` should be used with `React.forwardRef`.
1078
1067
  *
1079
1068
  * @version 16.8.0
1080
- * @see https://react.dev/reference/react/useImperativeHandle
1069
+ * @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle
1081
1070
  */
1082
1071
  function useImperativeHandle<T, R extends T>(ref: Ref<T>|undefined, init: () => R, deps?: DependencyList): void;
1083
1072
  // I made 'inputs' required here and in useMemo as there's no point to memoizing without the memoization key
@@ -1087,7 +1076,7 @@ declare namespace React {
1087
1076
  * has changed.
1088
1077
  *
1089
1078
  * @version 16.8.0
1090
- * @see https://react.dev/reference/react/useCallback
1079
+ * @see https://reactjs.org/docs/hooks-reference.html#usecallback
1091
1080
  */
1092
1081
  // A specific function type would not trigger implicit any.
1093
1082
  // See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/52873#issuecomment-845806435 for a comparison between `Function` and more specific types.
@@ -1097,7 +1086,7 @@ declare namespace React {
1097
1086
  * `useMemo` will only recompute the memoized value when one of the `deps` has changed.
1098
1087
  *
1099
1088
  * @version 16.8.0
1100
- * @see https://react.dev/reference/react/useMemo
1089
+ * @see https://reactjs.org/docs/hooks-reference.html#usememo
1101
1090
  */
1102
1091
  // allow undefined, but don't make it optional as that is very likely a mistake
1103
1092
  function useMemo<T>(factory: () => T, deps: DependencyList | undefined): T;
@@ -1108,7 +1097,7 @@ declare namespace React {
1108
1097
  * It’s most valuable for custom hooks that are part of shared libraries.
1109
1098
  *
1110
1099
  * @version 16.8.0
1111
- * @see https://react.dev/reference/react/useDebugValue
1100
+ * @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue
1112
1101
  */
1113
1102
  // the name of the custom hook is itself derived from the function name at runtime:
1114
1103
  // it's just the function name without the "use" prefix.
@@ -1138,7 +1127,7 @@ declare namespace React {
1138
1127
  *
1139
1128
  * @param value The value that is going to be deferred
1140
1129
  *
1141
- * @see https://react.dev/reference/react/useDeferredValue
1130
+ * @see https://reactjs.org/docs/concurrent-mode-reference.html#usedeferredvalue
1142
1131
  */
1143
1132
  export function useDeferredValue<T>(value: T): T;
1144
1133
 
@@ -1155,7 +1144,7 @@ declare namespace React {
1155
1144
  *
1156
1145
  * **If some state update causes a component to suspend, that state update should be wrapped in a transition.**`
1157
1146
  *
1158
- * @see https://react.dev/reference/react/useTransition
1147
+ * @see https://reactjs.org/docs/concurrent-mode-reference.html#usetransition
1159
1148
  */
1160
1149
  export function useTransition(): [boolean, TransitionStartFunction];
1161
1150
 
@@ -1261,8 +1250,6 @@ declare namespace React {
1261
1250
  target: EventTarget & T;
1262
1251
  }
1263
1252
 
1264
- export type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
1265
-
1266
1253
  interface KeyboardEvent<T = Element> extends UIEvent<T, NativeKeyboardEvent> {
1267
1254
  altKey: boolean;
1268
1255
  /** @deprecated */
@@ -1272,7 +1259,7 @@ declare namespace React {
1272
1259
  /**
1273
1260
  * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
1274
1261
  */
1275
- getModifierState(key: ModifierKey): boolean;
1262
+ getModifierState(key: string): boolean;
1276
1263
  /**
1277
1264
  * See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values
1278
1265
  */
@@ -1298,7 +1285,7 @@ declare namespace React {
1298
1285
  /**
1299
1286
  * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
1300
1287
  */
1301
- getModifierState(key: ModifierKey): boolean;
1288
+ getModifierState(key: string): boolean;
1302
1289
  metaKey: boolean;
1303
1290
  movementX: number;
1304
1291
  movementY: number;
@@ -1317,7 +1304,7 @@ declare namespace React {
1317
1304
  /**
1318
1305
  * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
1319
1306
  */
1320
- getModifierState(key: ModifierKey): boolean;
1307
+ getModifierState(key: string): boolean;
1321
1308
  metaKey: boolean;
1322
1309
  shiftKey: boolean;
1323
1310
  targetTouches: TouchList;
@@ -1406,10 +1393,10 @@ declare namespace React {
1406
1393
  onCompositionUpdateCapture?: CompositionEventHandler<T> | undefined;
1407
1394
 
1408
1395
  // Focus Events
1409
- onFocus?: (event: globalThis.FocusEvent) => void;
1410
- onFocusCapture?: (event: globalThis.FocusEvent) => void;
1411
- onBlur?: (event: globalThis.FocusEvent) => void;
1412
- onBlurCapture?: (event: globalThis.FocusEvent) => void;
1396
+ onFocus?: FocusEventHandler<T> | undefined;
1397
+ onFocusCapture?: FocusEventHandler<T> | undefined;
1398
+ onBlur?: FocusEventHandler<T> | undefined;
1399
+ onBlurCapture?: FocusEventHandler<T> | undefined;
1413
1400
 
1414
1401
  // Form Events
1415
1402
  onChange?: (event: globalThis.Event) => void;
@@ -1472,8 +1459,6 @@ declare namespace React {
1472
1459
  onProgressCapture?: ReactEventHandler<T> | undefined;
1473
1460
  onRateChange?: ReactEventHandler<T> | undefined;
1474
1461
  onRateChangeCapture?: ReactEventHandler<T> | undefined;
1475
- onResize?: ReactEventHandler<T> | undefined;
1476
- onResizeCapture?: ReactEventHandler<T> | undefined;
1477
1462
  onSeeked?: ReactEventHandler<T> | undefined;
1478
1463
  onSeekedCapture?: ReactEventHandler<T> | undefined;
1479
1464
  onSeeking?: ReactEventHandler<T> | undefined;
@@ -1865,7 +1850,6 @@ declare namespace React {
1865
1850
 
1866
1851
  // Standard HTML Attributes
1867
1852
  accessKey?: string | undefined;
1868
- autoFocus?: boolean | undefined;
1869
1853
  className?: string | undefined;
1870
1854
  contentEditable?: Booleanish | "inherit" | undefined;
1871
1855
  contextMenu?: string | undefined;
@@ -1874,7 +1858,6 @@ declare namespace React {
1874
1858
  hidden?: boolean | undefined;
1875
1859
  id?: string | undefined;
1876
1860
  lang?: string | undefined;
1877
- nonce?: string | undefined;
1878
1861
  placeholder?: string | undefined;
1879
1862
  slot?: string | undefined;
1880
1863
  spellCheck?: Booleanish | undefined;
@@ -1891,14 +1874,11 @@ declare namespace React {
1891
1874
 
1892
1875
  // RDFa Attributes
1893
1876
  about?: string | undefined;
1894
- content?: string | undefined;
1895
1877
  datatype?: string | undefined;
1896
1878
  inlist?: any;
1897
1879
  prefix?: string | undefined;
1898
1880
  property?: string | undefined;
1899
- rel?: string | undefined;
1900
1881
  resource?: string | undefined;
1901
- rev?: string | undefined;
1902
1882
  typeof?: string | undefined;
1903
1883
  vocab?: string | undefined;
1904
1884
 
@@ -1940,6 +1920,7 @@ declare namespace React {
1940
1920
  as?: string | undefined;
1941
1921
  async?: boolean | undefined;
1942
1922
  autoComplete?: string | undefined;
1923
+ autoFocus?: boolean | undefined;
1943
1924
  autoPlay?: boolean | undefined;
1944
1925
  capture?: boolean | 'user' | 'environment' | undefined;
1945
1926
  cellPadding?: number | string | undefined;
@@ -1951,9 +1932,10 @@ declare namespace React {
1951
1932
  classID?: string | undefined;
1952
1933
  cols?: number | undefined;
1953
1934
  colSpan?: number | undefined;
1935
+ content?: string | undefined;
1954
1936
  controls?: boolean | undefined;
1955
1937
  coords?: string | undefined;
1956
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
1938
+ crossOrigin?: string | undefined;
1957
1939
  data?: string | undefined;
1958
1940
  dateTime?: string | undefined;
1959
1941
  default?: boolean | undefined;
@@ -1996,6 +1978,7 @@ declare namespace React {
1996
1978
  multiple?: boolean | undefined;
1997
1979
  muted?: boolean | undefined;
1998
1980
  name?: string | undefined;
1981
+ nonce?: string | undefined;
1999
1982
  noValidate?: boolean | undefined;
2000
1983
  open?: boolean | undefined;
2001
1984
  optimum?: number | undefined;
@@ -2005,6 +1988,7 @@ declare namespace React {
2005
1988
  poster?: string | undefined;
2006
1989
  preload?: string | undefined;
2007
1990
  readOnly?: boolean | undefined;
1991
+ rel?: string | undefined;
2008
1992
  required?: boolean | undefined;
2009
1993
  reversed?: boolean | undefined;
2010
1994
  rows?: number | undefined;
@@ -2059,6 +2043,7 @@ declare namespace React {
2059
2043
  hrefLang?: string | undefined;
2060
2044
  media?: string | undefined;
2061
2045
  ping?: string | undefined;
2046
+ rel?: string | undefined;
2062
2047
  target?: HTMLAttributeAnchorTarget | undefined;
2063
2048
  type?: string | undefined;
2064
2049
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
@@ -2074,6 +2059,7 @@ declare namespace React {
2074
2059
  hrefLang?: string | undefined;
2075
2060
  media?: string | undefined;
2076
2061
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2062
+ rel?: string | undefined;
2077
2063
  shape?: string | undefined;
2078
2064
  target?: string | undefined;
2079
2065
  }
@@ -2088,6 +2074,7 @@ declare namespace React {
2088
2074
  }
2089
2075
 
2090
2076
  interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
2077
+ autoFocus?: boolean | undefined;
2091
2078
  disabled?: boolean | undefined;
2092
2079
  form?: string | undefined;
2093
2080
  formAction?: string | undefined;
@@ -2156,6 +2143,7 @@ declare namespace React {
2156
2143
  name?: string | undefined;
2157
2144
  noValidate?: boolean | undefined;
2158
2145
  target?: string | undefined;
2146
+ rel?: string | undefined;
2159
2147
  }
2160
2148
 
2161
2149
  interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -2233,9 +2221,10 @@ declare namespace React {
2233
2221
  accept?: string | undefined;
2234
2222
  alt?: string | undefined;
2235
2223
  autoComplete?: string | undefined;
2224
+ autoFocus?: boolean | undefined;
2236
2225
  capture?: boolean | 'user' | 'environment' | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
2237
2226
  checked?: boolean | undefined;
2238
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2227
+ crossOrigin?: string | undefined;
2239
2228
  disabled?: boolean | undefined;
2240
2229
  enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined;
2241
2230
  form?: string | undefined;
@@ -2267,6 +2256,7 @@ declare namespace React {
2267
2256
  }
2268
2257
 
2269
2258
  interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
2259
+ autoFocus?: boolean | undefined;
2270
2260
  challenge?: string | undefined;
2271
2261
  disabled?: boolean | undefined;
2272
2262
  form?: string | undefined;
@@ -2286,7 +2276,7 @@ declare namespace React {
2286
2276
 
2287
2277
  interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
2288
2278
  as?: string | undefined;
2289
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2279
+ crossOrigin?: string | undefined;
2290
2280
  href?: string | undefined;
2291
2281
  hrefLang?: string | undefined;
2292
2282
  integrity?: string | undefined;
@@ -2294,6 +2284,7 @@ declare namespace React {
2294
2284
  imageSrcSet?: string | undefined;
2295
2285
  imageSizes?: string | undefined;
2296
2286
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2287
+ rel?: string | undefined;
2297
2288
  sizes?: string | undefined;
2298
2289
  type?: string | undefined;
2299
2290
  charSet?: string | undefined;
@@ -2311,7 +2302,7 @@ declare namespace React {
2311
2302
  autoPlay?: boolean | undefined;
2312
2303
  controls?: boolean | undefined;
2313
2304
  controlsList?: string | undefined;
2314
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2305
+ crossOrigin?: string | undefined;
2315
2306
  loop?: boolean | undefined;
2316
2307
  mediaGroup?: string | undefined;
2317
2308
  muted?: boolean | undefined;
@@ -2322,6 +2313,7 @@ declare namespace React {
2322
2313
 
2323
2314
  interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
2324
2315
  charSet?: string | undefined;
2316
+ content?: string | undefined;
2325
2317
  httpEquiv?: string | undefined;
2326
2318
  name?: string | undefined;
2327
2319
  media?: string | undefined;
@@ -2395,10 +2387,11 @@ declare namespace React {
2395
2387
  async?: boolean | undefined;
2396
2388
  /** @deprecated */
2397
2389
  charSet?: string | undefined;
2398
- crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2390
+ crossOrigin?: string | undefined;
2399
2391
  defer?: boolean | undefined;
2400
2392
  integrity?: string | undefined;
2401
2393
  noModule?: boolean | undefined;
2394
+ nonce?: string | undefined;
2402
2395
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2403
2396
  src?: string | undefined;
2404
2397
  type?: string | undefined;
@@ -2406,6 +2399,7 @@ declare namespace React {
2406
2399
 
2407
2400
  interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
2408
2401
  autoComplete?: string | undefined;
2402
+ autoFocus?: boolean | undefined;
2409
2403
  disabled?: boolean | undefined;
2410
2404
  form?: string | undefined;
2411
2405
  multiple?: boolean | undefined;
@@ -2428,6 +2422,7 @@ declare namespace React {
2428
2422
 
2429
2423
  interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
2430
2424
  media?: string | undefined;
2425
+ nonce?: string | undefined;
2431
2426
  scoped?: boolean | undefined;
2432
2427
  type?: string | undefined;
2433
2428
  }
@@ -2446,6 +2441,7 @@ declare namespace React {
2446
2441
 
2447
2442
  interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
2448
2443
  autoComplete?: string | undefined;
2444
+ autoFocus?: boolean | undefined;
2449
2445
  cols?: number | undefined;
2450
2446
  dirName?: string | undefined;
2451
2447
  disabled?: boolean | undefined;
@@ -2785,6 +2781,7 @@ declare namespace React {
2785
2781
  interface WebViewHTMLAttributes<T> extends HTMLAttributes<T> {
2786
2782
  allowFullScreen?: boolean | undefined;
2787
2783
  allowpopups?: boolean | undefined;
2784
+ autoFocus?: boolean | undefined;
2788
2785
  autosize?: boolean | undefined;
2789
2786
  blinkfeatures?: string | undefined;
2790
2787
  disableblinkfeatures?: string | undefined;
@@ -2824,7 +2821,6 @@ declare namespace React {
2824
2821
  button: DetailedHTMLFactory<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
2825
2822
  canvas: DetailedHTMLFactory<CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>;
2826
2823
  caption: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2827
- center: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2828
2824
  cite: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2829
2825
  code: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2830
2826
  col: DetailedHTMLFactory<ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
@@ -3162,7 +3158,6 @@ declare global {
3162
3158
  button: React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
3163
3159
  canvas: React.DetailedHTMLProps<React.CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>;
3164
3160
  caption: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3165
- center: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3166
3161
  cite: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3167
3162
  code: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3168
3163
  col: React.DetailedHTMLProps<React.ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
@@ -21,8 +21,6 @@ import { generateUuid } from '@24i/bigscreen-sdk/utils/generateUuid';
21
21
  - **[addClass](#addClass)** - safely adds class to reference.
22
22
  - **[debounce](#debounce)** - debounced function is only executed again after a period of not being called, supports leading, trailing (default) and both executions.
23
23
  - **[displayToggler](#displayToggler)** - exports `getDisplayToggler` that allows you to easily show/hide an element with guard preventing unnecessary DOM calls.
24
- - **[elementUtils](#elementUtils)** - various utils above HTMLElement.
25
- - **[forceReflow](#forceReflow)** - To force a DOM reflow on given DOM element.
26
24
  - **[generateUuid](#generateUuid)** - function to get UUIDv4 according to RFC 4122.
27
25
  - **[isMouseUsed](#isMouseUsed)** - **DEPRECATED** moved to `device` package.
28
26
  - **[memoryInfo](#memoryInfo)** - two functions that returns currently active segment size and total allocated size of JS heap, in bytes.
@@ -36,8 +34,6 @@ import { generateUuid } from '@24i/bigscreen-sdk/utils/generateUuid';
36
34
  - **[timers](#timers)** - functions to simplify work with setTimeout and setInterval.
37
35
  - **[counter](#counter)** - exports `createCounter` that allows you to add value to counter till callback is triggered at some point.
38
36
  - **[xhr](#xhr)** - provides wrap over `XMLHttpRequest`, with the possibility to repeat the failing request.
39
- - **[simulateKeyPress](#simulateKeyPress)** - simulate key press in the `keydown` handler.
40
- - **[keyPressSimulator](#keyPressSimulator)** - simulate key press globally for the specific keys.
41
37
 
42
38
  ### addClass
43
39
  Adds a class to the element in the reference.
@@ -96,21 +92,6 @@ And returns `IDisplayToggler` interface with 4 functions:
96
92
  - `isVisible: () => boolean;` - returns true if the element is visible, false otherwise
97
93
  - `isHidden: () => boolean;` - returns true if the element is hidden, false otherwise
98
94
 
99
- ### elementUtils
100
- Various utils for HTMLElement such as visibility tests or element wrapping tests.
101
-
102
- ### forceReflow
103
- To force a DOM reflow on given DOM element. It can be needed for transitions
104
- or other purposes.
105
-
106
- It takes 1 param:
107
- - `elementOrReference: HTMLElement | Reference<HTMLElement>` - DOM element or
108
- reference to element on which reflow is called.
109
-
110
- ```ts
111
- forceReflow(elementRef);
112
- ```
113
-
114
95
  ### generateUuid
115
96
  Returns an UUIDv4 according to RFC 4122, like ex. "123e4567-e89b-12d3-a456-426614174000".
116
97
 
@@ -353,11 +334,3 @@ const retryConfig = {
353
334
  const options = { ...xhrSendOptions, retryConfig };
354
335
  const response = await xhrSendRetry(url, options);
355
336
  ```
356
-
357
- ### keyPressSimulator and simulateKeyPress
358
- Modifies `keydown` event behavior to be similar to `keypress` and causes triggering `keydown` event only once
359
- before the key is released. This is because `keypress` event is deprecated and it is not implemented
360
- with the same behavior on all platforms.
361
-
362
- - Use globally for the specific keys with `keyPressSimulator` util.
363
- - Use locally in the `keydown` handler with `simulateKeyPress` util.