react-native-tvos 0.81.4-0 → 0.81.5-0

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 (269) hide show
  1. package/Libraries/Components/Button.js +0 -1
  2. package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
  3. package/Libraries/Components/Pressable/Pressable.js +14 -12
  4. package/Libraries/Components/TV/TVParallaxProperties.d.ts +42 -0
  5. package/Libraries/Components/TV/TVViewPropTypes.js +45 -8
  6. package/Libraries/Components/Touchable/TouchableHighlight.js +5 -32
  7. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -50
  8. package/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -1
  9. package/Libraries/Components/Touchable/TouchableOpacity.js +5 -56
  10. package/Libraries/Components/View/View.js +21 -1
  11. package/Libraries/Components/View/ViewPropTypes.d.ts +59 -41
  12. package/Libraries/Components/View/ViewPropTypes.js +5 -86
  13. package/Libraries/Core/ReactNativeVersion.js +1 -1
  14. package/React/Base/RCTUtils.mm +5 -1
  15. package/React/Base/RCTVersion.m +1 -1
  16. package/React/CoreModules/RCTDeviceInfo.mm +3 -4
  17. package/React/Views/RCTSwitchManager.m +24 -0
  18. package/ReactAndroid/gradle.properties +1 -1
  19. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +25 -1
  20. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  21. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt +1 -1
  22. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.kt +2 -2
  23. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +13 -26
  24. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
  25. package/ReactAndroid/src/main/jni/react/jni/TransformHelper.cpp +3 -1
  26. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  27. package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +0 -3
  28. package/ReactCommon/react/renderer/components/view/tests/ResolveTransformTest.cpp +377 -0
  29. package/package.json +8 -8
  30. package/sdks/hermesc/osx-bin/hermes +0 -0
  31. package/sdks/hermesc/osx-bin/hermesc +0 -0
  32. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  33. package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
  34. package/types/public/ReactNativeTVTypes.d.ts +1 -43
  35. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
  36. package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
  37. package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
  38. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
  39. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
  40. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
  41. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
  42. package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
  43. package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
  44. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
  45. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
  46. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
  47. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
  48. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
  49. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
  50. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
  51. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
  52. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
  53. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
  54. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
  55. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
  56. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
  57. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
  58. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
  59. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
  60. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
  61. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
  62. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
  63. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
  64. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
  65. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
  66. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
  67. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
  68. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
  69. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
  70. package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
  71. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
  72. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
  73. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
  74. package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
  75. package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
  76. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
  77. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
  78. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
  79. package/types_generated/Libraries/Components/Button.d.ts +0 -251
  80. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
  81. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
  82. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
  83. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
  84. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
  85. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
  86. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
  87. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
  88. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
  89. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
  90. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
  91. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
  92. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
  93. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
  94. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
  95. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
  96. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
  97. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
  98. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
  99. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
  100. package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
  101. package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
  102. package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
  103. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
  104. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
  105. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
  106. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
  107. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
  108. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
  109. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
  110. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
  111. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
  112. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
  113. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
  114. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
  115. package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
  116. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
  117. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
  118. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
  119. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
  120. package/types_generated/Libraries/Components/View/View.d.ts +0 -30
  121. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
  122. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
  123. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
  124. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
  125. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
  126. package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
  127. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
  128. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
  129. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
  130. package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
  131. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
  132. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
  133. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
  134. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
  135. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
  136. package/types_generated/Libraries/Image/Image.d.ts +0 -18
  137. package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
  138. package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
  139. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
  140. package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
  141. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
  142. package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
  143. package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
  144. package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
  145. package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
  146. package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
  147. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
  148. package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
  149. package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
  150. package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
  151. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
  152. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
  153. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
  154. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
  155. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
  156. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
  157. package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
  158. package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
  159. package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
  160. package/types_generated/Libraries/Network/FormData.d.ts +0 -56
  161. package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
  162. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
  163. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
  164. package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
  165. package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
  166. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
  167. package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
  168. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
  169. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
  170. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
  171. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
  172. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
  173. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
  174. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
  175. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
  176. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
  177. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
  178. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
  179. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
  180. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
  181. package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
  182. package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
  183. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
  184. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
  185. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
  186. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
  187. package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
  188. package/types_generated/Libraries/Share/Share.d.ts +0 -85
  189. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
  190. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
  191. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
  192. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
  193. package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
  194. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
  195. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
  196. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
  197. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
  198. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
  199. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
  200. package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
  201. package/types_generated/Libraries/Text/Text.d.ts +0 -30
  202. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
  203. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
  204. package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
  205. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
  206. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
  207. package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
  208. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
  209. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
  210. package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
  211. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
  212. package/types_generated/Libraries/UTFSequence.d.ts +0 -39
  213. package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
  214. package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
  215. package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
  216. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
  217. package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
  218. package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
  219. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
  220. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
  221. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
  222. package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
  223. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
  224. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
  225. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
  226. package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
  227. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
  228. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
  229. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
  230. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
  231. package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
  232. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
  233. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
  234. package/types_generated/index.d.ts +0 -164
  235. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
  236. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
  237. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
  238. package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
  239. package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
  240. package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
  241. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
  242. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
  243. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
  244. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
  245. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
  246. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
  247. package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
  248. package/types_generated/src/private/types/HostComponent.d.ts +0 -19
  249. package/types_generated/src/private/types/HostInstance.d.ts +0 -91
  250. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
  251. package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
  252. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
  253. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
  254. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
  255. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
  256. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
  257. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
  258. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
  259. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
  260. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
  261. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
  262. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
  263. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
  264. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
  265. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
  266. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
  267. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
  268. package/types_generated/tsconfig.json +0 -3
  269. package/types_generated/tsconfig.test.json +0 -16
@@ -1,126 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<fdcb8f75452f2ed31332a255cfabd651>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/dom/nodes/ReadOnlyNode.js
11
- */
12
-
13
- import type NodeList from "../oldstylecollections/NodeList";
14
- import type { InstanceHandle } from "./internals/NodeInternals";
15
- import type ReactNativeDocument from "./ReactNativeDocument";
16
- import type ReadOnlyElement from "./ReadOnlyElement";
17
- declare class ReadOnlyNode {
18
- constructor(instanceHandle: InstanceHandle, ownerDocument: ReactNativeDocument | null);
19
- get childNodes(): NodeList<ReadOnlyNode>;
20
- get firstChild(): ReadOnlyNode | null;
21
- get isConnected(): boolean;
22
- get lastChild(): ReadOnlyNode | null;
23
- get nextSibling(): ReadOnlyNode | null;
24
- /**
25
- * @abstract
26
- */
27
- get nodeName(): string;
28
- /**
29
- * @abstract
30
- */
31
- get nodeType(): number;
32
- /**
33
- * @abstract
34
- */
35
- get nodeValue(): string | null;
36
- get ownerDocument(): ReactNativeDocument | null;
37
- get parentElement(): ReadOnlyElement | null;
38
- get parentNode(): ReadOnlyNode | null;
39
- get previousSibling(): ReadOnlyNode | null;
40
- /**
41
- * @abstract
42
- */
43
- get textContent(): string;
44
- compareDocumentPosition(otherNode: ReadOnlyNode): number;
45
- contains(otherNode: ReadOnlyNode): boolean;
46
- getRootNode(): ReadOnlyNode;
47
- hasChildNodes(): boolean;
48
- /**
49
- * Type of Element, HTMLElement and ReactNativeElement instances.
50
- */
51
- static ELEMENT_NODE: number;
52
- /**
53
- * Currently Unused in React Native.
54
- */
55
- static ATTRIBUTE_NODE: number;
56
- /**
57
- * Text nodes.
58
- */
59
- static TEXT_NODE: number;
60
- /**
61
- * @deprecated Unused in React Native.
62
- */
63
- static CDATA_SECTION_NODE: number;
64
- /**
65
- * @deprecated
66
- */
67
- static ENTITY_REFERENCE_NODE: number;
68
- /**
69
- * @deprecated
70
- */
71
- static ENTITY_NODE: number;
72
- /**
73
- * @deprecated Unused in React Native.
74
- */
75
- static PROCESSING_INSTRUCTION_NODE: number;
76
- /**
77
- * @deprecated Unused in React Native.
78
- */
79
- static COMMENT_NODE: number;
80
- /**
81
- * Document nodes.
82
- */
83
- static DOCUMENT_NODE: number;
84
- /**
85
- * @deprecated Unused in React Native.
86
- */
87
- static DOCUMENT_TYPE_NODE: number;
88
- /**
89
- * @deprecated Unused in React Native.
90
- */
91
- static DOCUMENT_FRAGMENT_NODE: number;
92
- /**
93
- * @deprecated
94
- */
95
- static NOTATION_NODE: number;
96
- /**
97
- * Both nodes are in different documents.
98
- */
99
- static DOCUMENT_POSITION_DISCONNECTED: number;
100
- /**
101
- * `otherNode` precedes the node in either a pre-order depth-first traversal of a tree containing both
102
- * (e.g., as an ancestor or previous sibling or a descendant of a previous sibling or previous sibling of an ancestor)
103
- * or (if they are disconnected) in an arbitrary but consistent ordering.
104
- */
105
- static DOCUMENT_POSITION_PRECEDING: number;
106
- /**
107
- * `otherNode` follows the node in either a pre-order depth-first traversal of a tree containing both
108
- * (e.g., as a descendant or following sibling or a descendant of a following sibling or following sibling of an ancestor)
109
- * or (if they are disconnected) in an arbitrary but consistent ordering.
110
- */
111
- static DOCUMENT_POSITION_FOLLOWING: number;
112
- /**
113
- * `otherNode` is an ancestor of the node.
114
- */
115
- static DOCUMENT_POSITION_CONTAINS: number;
116
- /**
117
- * `otherNode` is a descendant of the node.
118
- */
119
- static DOCUMENT_POSITION_CONTAINED_BY: number;
120
- /**
121
- * @deprecated Unused in React Native.
122
- */
123
- static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
124
- }
125
- export default ReadOnlyNode;
126
- export declare function getChildNodes(node: ReadOnlyNode): ReadonlyArray<ReadOnlyNode>;
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<f32d1d4b660a77ad6caa63b33c15ac98>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/dom/nodes/ReadOnlyText.js
11
- */
12
-
13
- import ReadOnlyCharacterData from "./ReadOnlyCharacterData";
14
- declare class ReadOnlyText extends ReadOnlyCharacterData {
15
- /**
16
- * @override
17
- */
18
- get nodeName(): string;
19
- /**
20
- * @override
21
- */
22
- get nodeType(): number;
23
- }
24
- export default ReadOnlyText;
@@ -1,29 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<c62cfd7e7c72cb82d443023e7ebc94b7>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/dom/nodes/internals/NodeInternals.js
11
- */
12
-
13
- import type { InternalInstanceHandle } from "../../../../../../Libraries/Renderer/shims/ReactNativeTypes";
14
- import type ReactNativeDocument from "../ReactNativeDocument";
15
- import type ReadOnlyCharacterData from "../ReadOnlyCharacterData";
16
- import type ReadOnlyElement from "../ReadOnlyElement";
17
- import type ReadOnlyNode from "../ReadOnlyNode";
18
- import type { NativeElementReference, NativeNodeReference, NativeTextReference } from "../specs/NativeDOM";
19
- import type { ReactNativeDocumentElementInstanceHandle } from "./ReactNativeDocumentElementInstanceHandle";
20
- import type { ReactNativeDocumentInstanceHandle } from "./ReactNativeDocumentInstanceHandle";
21
- export type InstanceHandle = InternalInstanceHandle | ReactNativeDocumentElementInstanceHandle | ReactNativeDocumentInstanceHandle;
22
- export declare function getInstanceHandle(node: ReadOnlyNode): InstanceHandle;
23
- export declare function setInstanceHandle(node: ReadOnlyNode, instanceHandle: InstanceHandle): void;
24
- export declare function getOwnerDocument(node: ReadOnlyNode): ReactNativeDocument | null;
25
- export declare function setOwnerDocument(node: ReadOnlyNode, ownerDocument: ReactNativeDocument | null): void;
26
- export declare function getPublicInstanceFromInstanceHandle(instanceHandle: InstanceHandle): null | undefined | ReadOnlyNode;
27
- export declare function getNativeNodeReference(node: ReadOnlyNode): null | undefined | NativeNodeReference;
28
- export declare function getNativeElementReference(node: ReadOnlyElement): null | undefined | NativeElementReference;
29
- export declare function getNativeTextReference(node: ReadOnlyCharacterData): null | undefined | NativeTextReference;
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<4279d9404fca6df4001c6c1bb7493f18>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.js
11
- */
12
-
13
- import type ReadOnlyNode from "../ReadOnlyNode";
14
- import type { NativeElementReference } from "../specs/NativeDOM";
15
- export declare type ReactNativeDocumentElementInstanceHandle = symbol & {
16
- __ReactNativeDocumentElementInstanceHandle__: string;
17
- };
18
- export declare function createReactNativeDocumentElementInstanceHandle(): ReactNativeDocumentElementInstanceHandle;
19
- export declare function getNativeElementReferenceFromReactNativeDocumentElementInstanceHandle(instanceHandle: ReactNativeDocumentElementInstanceHandle): null | undefined | NativeElementReference;
20
- export declare function setNativeElementReferenceForReactNativeDocumentElementInstanceHandle(instanceHandle: ReactNativeDocumentElementInstanceHandle, nativeElementReference: null | undefined | NativeElementReference): void;
21
- export declare function getPublicInstanceFromReactNativeDocumentElementInstanceHandle(instanceHandle: ReactNativeDocumentElementInstanceHandle): null | undefined | ReadOnlyNode;
22
- export declare function setPublicInstanceForReactNativeDocumentElementInstanceHandle(instanceHandle: ReactNativeDocumentElementInstanceHandle, publicInstance: null | undefined | ReadOnlyNode): void;
23
- export declare function isReactNativeDocumentElementInstanceHandle(instanceHandle: unknown): instanceHandle is ReactNativeDocumentElementInstanceHandle;
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<819544fe09b1657761ce86c52a0ee0e5>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.js
11
- */
12
-
13
- import type { RootTag } from "../../../../../../Libraries/ReactNative/RootTag";
14
- import type ReactNativeDocument from "../ReactNativeDocument";
15
- import type { NativeNodeReference } from "../specs/NativeDOM";
16
- export declare type ReactNativeDocumentInstanceHandle = symbol & {
17
- __ReactNativeDocumentInstanceHandle__: string;
18
- };
19
- export declare function createReactNativeDocumentInstanceHandle(rootTag: RootTag): ReactNativeDocumentInstanceHandle;
20
- export declare function getNativeNodeReferenceFromReactNativeDocumentInstanceHandle(instanceHandle: ReactNativeDocumentInstanceHandle): null | undefined | NativeNodeReference;
21
- export declare function getPublicInstanceFromReactNativeDocumentInstanceHandle(instanceHandle: ReactNativeDocumentInstanceHandle): null | undefined | ReactNativeDocument;
22
- export declare function isReactNativeDocumentInstanceHandle(instanceHandle: unknown): instanceHandle is ReactNativeDocumentInstanceHandle;
@@ -1,222 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<716fe662d93f768cd3abfa8981c9583e>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/dom/nodes/specs/NativeDOM.js
11
- */
12
-
13
- import type { RootTag } from "../../../../../../Libraries/ReactNative/RootTag";
14
- import type { TurboModule } from "../../../../../../Libraries/TurboModule/RCTExport";
15
- import type { InstanceHandle } from "../internals/NodeInternals";
16
- export declare type NativeElementReference = symbol & {
17
- __NativeElementReference__: string;
18
- };
19
- export declare type NativeTextReference = symbol & {
20
- __NativeTextReference__: string;
21
- };
22
- export type NativeNodeReference = NativeElementReference | NativeTextReference | RootTag;
23
- export type MeasureInWindowOnSuccessCallback = (x: number, y: number, width: number, height: number) => void;
24
- export type MeasureOnSuccessCallback = (x: number, y: number, width: number, height: number, pageX: number, pageY: number) => void;
25
- export type MeasureLayoutOnSuccessCallback = (left: number, top: number, width: number, height: number) => void;
26
- export interface Spec extends TurboModule {
27
- readonly compareDocumentPosition: (nativeNodeReference: unknown, otherNativeNodeReference: unknown) => number;
28
- readonly getChildNodes: (nativeNodeReference: unknown) => ReadonlyArray<unknown>;
29
- readonly getParentNode: (nativeNodeReference: unknown) => unknown;
30
- readonly isConnected: (nativeNodeReference: unknown) => boolean;
31
- readonly getBorderWidth: (nativeElementReference: unknown) => ReadonlyArray<number>;
32
- readonly getBoundingClientRect: (nativeElementReference: unknown, includeTransform: boolean) => ReadonlyArray<number>;
33
- readonly getInnerSize: (nativeElementReference: unknown) => ReadonlyArray<number>;
34
- readonly getScrollPosition: (nativeElementReference: unknown) => ReadonlyArray<number>;
35
- readonly getScrollSize: (nativeElementReference: unknown) => ReadonlyArray<number>;
36
- readonly getTagName: (nativeElementReference: unknown) => string;
37
- readonly getTextContent: (nativeElementReference: unknown) => string;
38
- readonly hasPointerCapture: (nativeElementReference: unknown, pointerId: number) => boolean;
39
- readonly releasePointerCapture: (nativeElementReference: unknown, pointerId: number) => void;
40
- readonly setPointerCapture: (nativeElementReference: unknown, pointerId: number) => void;
41
- readonly getOffset: (nativeElementReference: unknown) => ReadonlyArray<unknown>;
42
- readonly linkRootNode?: (rootTag: number, instanceHandle: unknown) => unknown;
43
- /**
44
- * Legacy layout APIs (for `ReactNativeElement`).
45
- */
46
-
47
- readonly measure: (nativeElementReference: unknown, callback: MeasureOnSuccessCallback) => void;
48
- readonly measureInWindow: (nativeElementReference: unknown, callback: MeasureInWindowOnSuccessCallback) => void;
49
- readonly measureLayout: (nativeElementReference: unknown, relativeNode: unknown, onFail: () => void, onSuccess: MeasureLayoutOnSuccessCallback) => void;
50
- /**
51
- * Legacy direct manipulation APIs (for `ReactNativeElement`).
52
- */
53
-
54
- readonly setNativeProps?: (nativeElementReference: unknown, updatePayload: unknown) => void;
55
- }
56
- export declare function getRawNativeDOMForTests(): null | undefined | Spec;
57
- export interface RefinedSpec {
58
- /**
59
- * This is a React Native implementation of `Node.prototype.compareDocumentPosition`
60
- * (see https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition).
61
- *
62
- * It uses the version of the shadow nodes that are present in the current
63
- * revision of the shadow tree (if any). If any of the nodes is not present,
64
- * it just indicates they are disconnected.
65
- */
66
- readonly compareDocumentPosition: (nativeNodeReference: NativeNodeReference, otherNativeNodeReference: NativeNodeReference) => number;
67
- /**
68
- * This is a React Native implementation of `Node.prototype.childNodes`
69
- * (see https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes).
70
- *
71
- * If a version of the given shadow node is present in the current revision
72
- * of an active shadow tree, it returns an array of instance handles of its
73
- * children. Otherwise, it returns an empty array.
74
- */
75
- readonly getChildNodes: (nativeNodeReference: NativeNodeReference) => ReadonlyArray<InstanceHandle>;
76
- /**
77
- * This is a React Native implementation of `Node.prototype.parentNode`
78
- * (see https://developer.mozilla.org/en-US/docs/Web/API/Node/parentNode).
79
- *
80
- * If a version of the given shadow node is present in the current revision of
81
- * an active shadow tree, it returns the instance handle of its parent.
82
- * Otherwise, it returns `null`.
83
- */
84
- readonly getParentNode: (nativeNodeReference: NativeNodeReference) => InstanceHandle | undefined;
85
- /**
86
- * This is a React Native implementation of `Node.prototype.isConnected`
87
- * (see https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected).
88
- *
89
- * Indicates whether a version of the given shadow node is present in the
90
- * current revision of an active shadow tree.
91
- */
92
- readonly isConnected: (nativeNodeReference: NativeNodeReference) => boolean;
93
- /**
94
- * This is a method to access the border size of a shadow node, to implement
95
- * these methods:
96
- * - `Element.prototype.clientLeft`: see https://developer.mozilla.org/en-US/docs/Web/API/Element/clientLeft.
97
- * - `Element.prototype.clientTop`: see https://developer.mozilla.org/en-US/docs/Web/API/Element/clientTop.
98
- *
99
- * It uses the version of the shadow node that is present in the current
100
- * revision of the shadow tree. If the node is not present, it is not
101
- * displayed (because any of its ancestors or itself have 'display: none'), or
102
- * it has an inline display, it returns `undefined`. Otherwise, it returns its
103
- * border size.
104
- */
105
- readonly getBorderWidth: (nativeElementReference: NativeElementReference) => Readonly<[number, number, number, number]>;
106
- /**
107
- * This is a React Native implementation of `Element.prototype.getBoundingClientRect`
108
- * (see https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).
109
- *
110
- * This is similar to `measureInWindow`, except it's explicitly synchronous
111
- * (returns the result instead of passing it to a callback).
112
- *
113
- * It allows indicating whether to include transforms so it can also be used
114
- * to implement methods like [`offsetWidth`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetWidth)
115
- * and [`offsetHeight`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight).
116
- */
117
- readonly getBoundingClientRect: (nativeElementReference: NativeElementReference, includeTransform: boolean) => Readonly<[number, number, number, number]>;
118
- /**
119
- * This is a method to access the inner size of a shadow node, to implement
120
- * these methods:
121
- * - `Element.prototype.clientWidth`: see https://developer.mozilla.org/en-US/docs/Web/API/Element/clientWidth.
122
- * - `Element.prototype.clientHeight`: see https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight.
123
- *
124
- * It uses the version of the shadow node that is present in the current
125
- * revision of the shadow tree. If the node is not present, it is not
126
- * displayed (because any of its ancestors or itself have 'display: none'), or
127
- * it has an inline display, it returns `undefined`. Otherwise, it returns its
128
- * inner size.
129
- */
130
- readonly getInnerSize: (nativeElementReference: NativeElementReference) => Readonly<[number, number]>;
131
- /**
132
- * This is a method to access scroll information for a shadow node, to
133
- * implement these methods:
134
- * - `Element.prototype.scrollLeft`: see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft.
135
- * - `Element.prototype.scrollTop`: see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop.
136
- *
137
- * It uses the version of the shadow node that is present in the current
138
- * revision of the shadow tree. If the node is not present or is not displayed
139
- * (because any of its ancestors or itself have 'display: none'), it returns
140
- * `undefined`. Otherwise, it returns the scroll position.
141
- */
142
- readonly getScrollPosition: (nativeElementReference: NativeElementReference) => Readonly<[number, number]>;
143
- /**
144
- *
145
- * This is a method to access the scroll information of a shadow node, to
146
- * implement these methods:
147
- * - `Element.prototype.scrollWidth`: see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth.
148
- * - `Element.prototype.scrollHeight`: see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight.
149
- *
150
- * It uses the version of the shadow node that is present in the current
151
- * revision of the shadow tree. If the node is not present or is not displayed
152
- * (because any of its ancestors or itself have 'display: none'), it returns
153
- * `undefined`. Otherwise, it returns the scroll size.
154
- */
155
- readonly getScrollSize: (nativeElementReference: NativeElementReference) => Readonly<[number, number]>;
156
- /**
157
- * This is a method to access the normalized tag name of a shadow node, to
158
- * implement `Element.prototype.tagName` (see https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName).
159
- */
160
- readonly getTagName: (nativeElementReference: NativeElementReference) => string;
161
- /**
162
- * This is a React Native implementation of `Element.prototype.textContent`
163
- * (see https://developer.mozilla.org/en-US/docs/Web/API/Element/textContent).
164
- *
165
- * It uses the version of the shadow node that is present in the current
166
- * revision of the shadow tree.
167
- * If the version is present, is traverses all its children in DFS and
168
- * concatenates all the text contents. Otherwise, it returns an empty string.
169
- *
170
- * This is also used to access the text content of text nodes, which does not
171
- * need any traversal.
172
- */
173
- readonly getTextContent: (nativeNodeReference: NativeNodeReference) => string;
174
- readonly hasPointerCapture: (nativeElementReference: NativeElementReference, pointerId: number) => boolean;
175
- readonly releasePointerCapture: (nativeElementReference: NativeElementReference, pointerId: number) => void;
176
- readonly setPointerCapture: (nativeElementReference: NativeElementReference, pointerId: number) => void;
177
- /**
178
- * This is a method to access the offset information for a shadow node, to
179
- * implement these methods:
180
- * - `HTMLElement.prototype.offsetParent`: see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent.
181
- * - `HTMLElement.prototype.offsetTop`: see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetTop.
182
- * - `HTMLElement.prototype.offsetLeft`: see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetLeft.
183
- *
184
- * It uses the version of the shadow node that is present in the current
185
- * revision of the shadow tree. If the node is not present or is not
186
- * displayed (because any of its ancestors or itself have 'display: none'),
187
- * it returns `undefined`. Otherwise, it returns its parent (as all nodes in
188
- * React Native are currently "positioned") and its offset relative to its
189
- * parent.
190
- */
191
- readonly getOffset: (nativeElementReference: NativeElementReference) => Readonly<[InstanceHandle | undefined, number, number]>;
192
- /**
193
- * In React Native, surfaces that represent trees (similar to a `Document` on
194
- * Web) are created in native first, and then populated from JavaScript.
195
- *
196
- * Because React does not create this special node, we need a way to link
197
- * the JavaScript instance with that node, which is what this method allows.
198
- *
199
- * It also allows the implementation of `Node.prototype.ownerDocument` and
200
- * `Node.prototype.getRootNode`
201
- * (see https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument and
202
- * https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode).
203
- *
204
- * Returns a shadow node representing the root node if it is still mounted.
205
- */
206
- readonly linkRootNode: (rootTag: RootTag, instanceHandle: InstanceHandle) => NativeElementReference | undefined;
207
- /**
208
- * Legacy layout APIs
209
- */
210
-
211
- readonly measure: (nativeElementReference: NativeElementReference, callback: MeasureOnSuccessCallback) => void;
212
- readonly measureInWindow: (nativeElementReference: NativeElementReference, callback: MeasureInWindowOnSuccessCallback) => void;
213
- readonly measureLayout: (nativeElementReference: NativeElementReference, relativeNode: NativeElementReference, onFail: () => void, onSuccess: MeasureLayoutOnSuccessCallback) => void;
214
- /**
215
- * Legacy direct manipulation APIs
216
- */
217
- readonly setNativeProps: (nativeElementReference: NativeElementReference, updatePayload: {}) => void;
218
- }
219
- declare const NativeDOM: RefinedSpec;
220
- declare const $$NativeDOM: typeof NativeDOM;
221
- declare type $$NativeDOM = typeof $$NativeDOM;
222
- export default $$NativeDOM;
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<88880f9a2f53106f1eb3108cbb08561f>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/dom/oldstylecollections/HTMLCollection.js.flow
11
- */
12
-
13
- import type { ArrayLike } from "../../utils/ArrayLikeUtils";
14
- declare class HTMLCollection<T> implements Iterable<T>, ArrayLike<T> {
15
- [index: number]: T;
16
- readonly length: number;
17
- item(index: number): T | null;
18
- namedItem(name: string): T | null;
19
- [Symbol.iterator](): Iterator<T>;
20
- }
21
- export default HTMLCollection;
22
- export declare function createHTMLCollection<T>(elements: ReadonlyArray<T>): HTMLCollection<T>;
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<23642911fc596c9fbf0cc75de275f195>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/dom/oldstylecollections/NodeList.js.flow
11
- */
12
-
13
- import type { ArrayLike } from "../../utils/ArrayLikeUtils";
14
- declare class NodeList<T> implements Iterable<T>, ArrayLike<T> {
15
- [index: number]: T;
16
- readonly length: number;
17
- item(index: number): T | null;
18
- entries(): Iterator<[number, T]>;
19
- forEach<ThisType>(callbackFn: (value: T, index: number, array: NodeList<T>) => unknown, thisArg?: ThisType): void;
20
- keys(): Iterator<number>;
21
- values(): Iterator<T>;
22
- [Symbol.iterator](): Iterator<T>;
23
- }
24
- export default NodeList;
25
- export declare function createNodeList<T>(elements: ReadonlyArray<T>): NodeList<T>;
@@ -1,46 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<fe449db36b9a64d1f135356421d5e919>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/geometry/DOMRect.js
11
- */
12
-
13
- import DOMRectReadOnly, { type DOMRectInit } from "./DOMRectReadOnly";
14
- /**
15
- * A `DOMRect` describes the size and position of a rectangle.
16
- * The type of box represented by the `DOMRect` is specified by the method or property that returned it.
17
- *
18
- * This is a (mostly) spec-compliant version of `DOMRect` (https://developer.mozilla.org/en-US/docs/Web/API/DOMRect).
19
- */
20
- declare class DOMRect extends DOMRectReadOnly {
21
- /**
22
- * The x coordinate of the `DOMRect`'s origin.
23
- */
24
- get x(): number;
25
- set x(x: null | undefined | number);
26
- /**
27
- * The y coordinate of the `DOMRect`'s origin.
28
- */
29
- get y(): number;
30
- set y(y: null | undefined | number);
31
- /**
32
- * The width of the `DOMRect`.
33
- */
34
- get width(): number;
35
- set width(width: null | undefined | number);
36
- /**
37
- * The height of the `DOMRect`.
38
- */
39
- get height(): number;
40
- set height(height: null | undefined | number);
41
- /**
42
- * Creates a new `DOMRect` object with a given location and dimensions.
43
- */
44
- static fromRect(rect?: null | undefined | DOMRectInit): DOMRect;
45
- }
46
- export default DOMRect;
@@ -1,73 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<f0df95b6e075bd1e51e4d9154eccff3e>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/geometry/DOMRectReadOnly.js
11
- */
12
-
13
- export interface DOMRectInit {
14
- x?: number | undefined;
15
- y?: number | undefined;
16
- width?: number | undefined;
17
- height?: number | undefined;
18
- }
19
- /**
20
- * The `DOMRectReadOnly` interface specifies the standard properties used by `DOMRect` to define a rectangle whose properties are immutable.
21
- *
22
- * This is a (mostly) spec-compliant version of `DOMRectReadOnly` (https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly).
23
- */
24
- declare class DOMRectReadOnly {
25
- constructor(x: null | undefined | number, y: null | undefined | number, width: null | undefined | number, height: null | undefined | number);
26
- /**
27
- * The x coordinate of the `DOMRectReadOnly`'s origin.
28
- */
29
- get x(): number;
30
- /**
31
- * The y coordinate of the `DOMRectReadOnly`'s origin.
32
- */
33
- get y(): number;
34
- /**
35
- * The width of the `DOMRectReadOnly`.
36
- */
37
- get width(): number;
38
- /**
39
- * The height of the `DOMRectReadOnly`.
40
- */
41
- get height(): number;
42
- /**
43
- * Returns the top coordinate value of the `DOMRect` (has the same value as `y`, or `y + height` if `height` is negative).
44
- */
45
- get top(): number;
46
- /**
47
- * Returns the right coordinate value of the `DOMRect` (has the same value as ``x + width`, or `x` if `width` is negative).
48
- */
49
- get right(): number;
50
- /**
51
- * Returns the bottom coordinate value of the `DOMRect` (has the same value as `y + height`, or `y` if `height` is negative).
52
- */
53
- get bottom(): number;
54
- /**
55
- * Returns the left coordinate value of the `DOMRect` (has the same value as `x`, or `x + width` if `width` is negative).
56
- */
57
- get left(): number;
58
- toJSON(): {
59
- x: number;
60
- y: number;
61
- width: number;
62
- height: number;
63
- top: number;
64
- left: number;
65
- bottom: number;
66
- right: number;
67
- };
68
- /**
69
- * Creates a new `DOMRectReadOnly` object with a given location and dimensions.
70
- */
71
- static fromRect(rect?: null | undefined | DOMRectInit): DOMRectReadOnly;
72
- }
73
- export default DOMRectReadOnly;
@@ -1,27 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<cfdad9da7fc95e9eda66f33dd8bb2522>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/src/private/webapis/utils/ArrayLikeUtils.js
11
- */
12
-
13
- /**
14
- * This definition is different from the current built-in type `$ArrayLike`
15
- * provided by Flow, in that this is an interface and that one is an object.
16
- *
17
- * The difference is important because, when using objects, Flow thinks
18
- * a `length` property would be copied over when using the spread operator,
19
- * which is incorrect.
20
- */
21
- export interface ArrayLike<T> extends Iterable<T> {
22
- [indexer: number]: T;
23
- readonly length: number;
24
- }
25
- export declare function createValueIterator<T>(arrayLike: ArrayLike<T>): Iterator<T>;
26
- export declare function createKeyIterator<T>(arrayLike: ArrayLike<T>): Iterator<number>;
27
- export declare function createEntriesIterator<T>(arrayLike: ArrayLike<T>): Iterator<[number, T]>;
@@ -1,3 +0,0 @@
1
- {
2
- "compilerOptions": {}
3
- }