@tamagui/react-native-web-lite 1.116.0 → 1.116.2

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 (243) hide show
  1. package/dist/cjs/AccessibilityInfo/index.js +96 -0
  2. package/dist/cjs/ActivityIndicator/__tests__/index-test.js +116 -0
  3. package/dist/cjs/ActivityIndicator/index.js +108 -0
  4. package/dist/cjs/Alert/index.js +25 -0
  5. package/dist/cjs/AppRegistry/AppContainer.js +41 -0
  6. package/dist/cjs/AppRegistry/__tests__/index-test.js +77 -0
  7. package/dist/cjs/AppRegistry/__tests__/index-test.node.js +131 -0
  8. package/dist/cjs/AppRegistry/index.js +98 -0
  9. package/dist/cjs/AppRegistry/renderApplication.js +51 -0
  10. package/dist/cjs/AppState/__tests__/index-test.js +33 -0
  11. package/dist/cjs/AppState/index.js +71 -0
  12. package/dist/cjs/Appearance/index.js +41 -0
  13. package/dist/cjs/BackHandler/index.js +32 -0
  14. package/dist/cjs/Clipboard/index.js +47 -0
  15. package/dist/cjs/DeviceEmitter.js +29 -0
  16. package/dist/cjs/DeviceInfo/index.js +62 -0
  17. package/dist/cjs/Dimensions/__tests__/index-test.js +51 -0
  18. package/dist/cjs/Dimensions/index.js +74 -0
  19. package/dist/cjs/I18nManager/index.js +30 -0
  20. package/dist/cjs/Image/index.js +253 -0
  21. package/dist/cjs/Image/types.js +14 -0
  22. package/dist/cjs/ImageBackground/__tests__/index-test.js +48 -0
  23. package/dist/cjs/ImageBackground/index.js +62 -0
  24. package/dist/cjs/Keyboard/index.js +35 -0
  25. package/dist/cjs/KeyboardAvoidingView/index.js +56 -0
  26. package/dist/cjs/Linking/__tests__/index-test.js +38 -0
  27. package/dist/cjs/Linking/index.js +86 -0
  28. package/dist/cjs/LogBox/index.js +31 -0
  29. package/dist/cjs/Modal/ModalAnimation.js +137 -0
  30. package/dist/cjs/Modal/ModalContent.js +75 -0
  31. package/dist/cjs/Modal/ModalFocusTrap.js +105 -0
  32. package/dist/cjs/Modal/ModalPortal.js +43 -0
  33. package/dist/cjs/Modal/index.js +92 -0
  34. package/dist/cjs/NativeModules/index.js +25 -0
  35. package/dist/cjs/PanResponder/index.js +29 -0
  36. package/dist/cjs/PixelRatio/index.js +60 -0
  37. package/dist/cjs/Pressable/index.js +140 -0
  38. package/dist/cjs/RefreshControl/index.js +48 -0
  39. package/dist/cjs/SafeAreaView/index.js +43 -0
  40. package/dist/cjs/ScrollView/ScrollViewBase.js +124 -0
  41. package/dist/cjs/ScrollView/index.js +374 -0
  42. package/dist/cjs/Share/index.js +56 -0
  43. package/dist/cjs/StatusBar/index.js +31 -0
  44. package/dist/cjs/Text/index.js +152 -0
  45. package/dist/cjs/Text/types.js +14 -0
  46. package/dist/cjs/TextInput/__tests__/index-test.js +422 -0
  47. package/dist/cjs/TextInput/index.js +260 -0
  48. package/dist/cjs/TextInput/types.js +14 -0
  49. package/dist/cjs/TouchableOpacity.js +123 -0
  50. package/dist/cjs/TouchableWithoutFeedback.js +90 -0
  51. package/dist/cjs/UnimplementedView.js +36 -0
  52. package/dist/cjs/Vibration/index.js +31 -0
  53. package/dist/cjs/View/index.js +101 -0
  54. package/dist/cjs/View/types.js +14 -0
  55. package/dist/cjs/createElement/__tests__/index-test.js +536 -0
  56. package/dist/cjs/createElement/index.js +37 -0
  57. package/dist/cjs/createReactDOMStyle.js +21 -0
  58. package/dist/cjs/findNodeHandle.js +29 -0
  59. package/dist/cjs/index.js +110 -0
  60. package/dist/cjs/render/index.js +45 -0
  61. package/dist/cjs/styleTypes.js +14 -0
  62. package/dist/cjs/types.js +14 -0
  63. package/dist/cjs/useColorScheme/index.js +39 -0
  64. package/dist/cjs/useLocaleContext/index.js +21 -0
  65. package/dist/cjs/useWindowDimensions/index.js +41 -0
  66. package/dist/cjs/vendor/react-native/Animated/Animated.js +35 -0
  67. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +143 -0
  68. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +458 -0
  69. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +126 -0
  70. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +2 -0
  71. package/dist/cjs/vendor/react-native/Animated/Easing.js +189 -0
  72. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +335 -0
  73. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js +29 -0
  74. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js +29 -0
  75. package/dist/cjs/vendor/react-native/Animated/SpringConfig.js +70 -0
  76. package/dist/cjs/vendor/react-native/Animated/animations/Animation.js +64 -0
  77. package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js +63 -0
  78. package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js +146 -0
  79. package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js +82 -0
  80. package/dist/cjs/vendor/react-native/Animated/bezier.js +72 -0
  81. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +29 -0
  82. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +38 -0
  83. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +29 -0
  84. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +29 -0
  85. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +42 -0
  86. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js +57 -0
  87. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js +197 -0
  88. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +60 -0
  89. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js +58 -0
  90. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +175 -0
  91. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js +58 -0
  92. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +57 -0
  93. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js +136 -0
  94. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js +112 -0
  95. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js +100 -0
  96. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +57 -0
  97. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js +76 -0
  98. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js +100 -0
  99. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js +182 -0
  100. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js +167 -0
  101. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +67 -0
  102. package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js +89 -0
  103. package/dist/cjs/vendor/react-native/FeatureFlags.js +28 -0
  104. package/dist/cjs/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.js +29 -0
  105. package/dist/cjs/vendor/react-native/NativeEventEmitter/index.js +73 -0
  106. package/dist/cjs/vendor/react-native/PanResponder/index.js +272 -0
  107. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +118 -0
  108. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +2 -0
  109. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +28 -0
  110. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +15 -0
  111. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +29 -0
  112. package/dist/cjs/vendor/react-native/emitter/EventEmitter.js +30 -0
  113. package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +2 -0
  114. package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.js +55 -0
  115. package/dist/cjs/vendor/react-native/emitter/_EventEmitter.js +135 -0
  116. package/dist/cjs/vendor/react-native/emitter/_EventSubscription.js +37 -0
  117. package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.js +76 -0
  118. package/dist/cjs/vendor/react-native/infoLog/index.js +25 -0
  119. package/dist/cjs/vendor/react-native/useRefEffect.js +30 -0
  120. package/dist/cjs/without-animated.js +95 -0
  121. package/package.json +6 -6
  122. package/dist/cjs/PanResponder/Alternative.cjs +0 -198
  123. package/dist/cjs/PanResponder/Alternative.cjs.map +0 -6
  124. /package/dist/cjs/AccessibilityInfo/{index.cjs.map → index.js.map} +0 -0
  125. /package/dist/cjs/ActivityIndicator/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  126. /package/dist/cjs/ActivityIndicator/{index.cjs.map → index.js.map} +0 -0
  127. /package/dist/cjs/Alert/{index.cjs.map → index.js.map} +0 -0
  128. /package/dist/cjs/AppRegistry/{AppContainer.cjs.map → AppContainer.js.map} +0 -0
  129. /package/dist/cjs/AppRegistry/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  130. /package/dist/cjs/AppRegistry/__tests__/{index-test.node.cjs.map → index-test.node.js.map} +0 -0
  131. /package/dist/cjs/AppRegistry/{index.cjs.map → index.js.map} +0 -0
  132. /package/dist/cjs/AppRegistry/{renderApplication.cjs.map → renderApplication.js.map} +0 -0
  133. /package/dist/cjs/AppState/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  134. /package/dist/cjs/AppState/{index.cjs.map → index.js.map} +0 -0
  135. /package/dist/cjs/Appearance/{index.cjs.map → index.js.map} +0 -0
  136. /package/dist/cjs/BackHandler/{index.cjs.map → index.js.map} +0 -0
  137. /package/dist/cjs/Clipboard/{index.cjs.map → index.js.map} +0 -0
  138. /package/dist/cjs/{DeviceEmitter.cjs.map → DeviceEmitter.js.map} +0 -0
  139. /package/dist/cjs/DeviceInfo/{index.cjs.map → index.js.map} +0 -0
  140. /package/dist/cjs/Dimensions/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  141. /package/dist/cjs/Dimensions/{index.cjs.map → index.js.map} +0 -0
  142. /package/dist/cjs/I18nManager/{index.cjs.map → index.js.map} +0 -0
  143. /package/dist/cjs/Image/{index.cjs.map → index.js.map} +0 -0
  144. /package/dist/cjs/Image/{types.cjs.map → types.js.map} +0 -0
  145. /package/dist/cjs/ImageBackground/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  146. /package/dist/cjs/ImageBackground/{index.cjs.map → index.js.map} +0 -0
  147. /package/dist/cjs/Keyboard/{index.cjs.map → index.js.map} +0 -0
  148. /package/dist/cjs/KeyboardAvoidingView/{index.cjs.map → index.js.map} +0 -0
  149. /package/dist/cjs/Linking/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  150. /package/dist/cjs/Linking/{index.cjs.map → index.js.map} +0 -0
  151. /package/dist/cjs/LogBox/{index.cjs.map → index.js.map} +0 -0
  152. /package/dist/cjs/Modal/{ModalAnimation.cjs.map → ModalAnimation.js.map} +0 -0
  153. /package/dist/cjs/Modal/{ModalContent.cjs.map → ModalContent.js.map} +0 -0
  154. /package/dist/cjs/Modal/{ModalFocusTrap.cjs.map → ModalFocusTrap.js.map} +0 -0
  155. /package/dist/cjs/Modal/{ModalPortal.cjs.map → ModalPortal.js.map} +0 -0
  156. /package/dist/cjs/Modal/{index.cjs.map → index.js.map} +0 -0
  157. /package/dist/cjs/NativeModules/{index.cjs.map → index.js.map} +0 -0
  158. /package/dist/cjs/PanResponder/{index.cjs.map → index.js.map} +0 -0
  159. /package/dist/cjs/PixelRatio/{index.cjs.map → index.js.map} +0 -0
  160. /package/dist/cjs/Pressable/{index.cjs.map → index.js.map} +0 -0
  161. /package/dist/cjs/RefreshControl/{index.cjs.map → index.js.map} +0 -0
  162. /package/dist/cjs/SafeAreaView/{index.cjs.map → index.js.map} +0 -0
  163. /package/dist/cjs/ScrollView/{ScrollViewBase.cjs.map → ScrollViewBase.js.map} +0 -0
  164. /package/dist/cjs/ScrollView/{index.cjs.map → index.js.map} +0 -0
  165. /package/dist/cjs/Share/{index.cjs.map → index.js.map} +0 -0
  166. /package/dist/cjs/StatusBar/{index.cjs.map → index.js.map} +0 -0
  167. /package/dist/cjs/Text/{index.cjs.map → index.js.map} +0 -0
  168. /package/dist/cjs/Text/{types.cjs.map → types.js.map} +0 -0
  169. /package/dist/cjs/TextInput/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  170. /package/dist/cjs/TextInput/{index.cjs.map → index.js.map} +0 -0
  171. /package/dist/cjs/TextInput/{types.cjs.map → types.js.map} +0 -0
  172. /package/dist/cjs/{TouchableOpacity.cjs.map → TouchableOpacity.js.map} +0 -0
  173. /package/dist/cjs/{TouchableWithoutFeedback.cjs.map → TouchableWithoutFeedback.js.map} +0 -0
  174. /package/dist/cjs/{UnimplementedView.cjs.map → UnimplementedView.js.map} +0 -0
  175. /package/dist/cjs/Vibration/{index.cjs.map → index.js.map} +0 -0
  176. /package/dist/cjs/View/{index.cjs.map → index.js.map} +0 -0
  177. /package/dist/cjs/View/{types.cjs.map → types.js.map} +0 -0
  178. /package/dist/cjs/createElement/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  179. /package/dist/cjs/createElement/{index.cjs.map → index.js.map} +0 -0
  180. /package/dist/cjs/{createReactDOMStyle.cjs.map → createReactDOMStyle.js.map} +0 -0
  181. /package/dist/cjs/{findNodeHandle.cjs.map → findNodeHandle.js.map} +0 -0
  182. /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
  183. /package/dist/cjs/render/{index.cjs.map → index.js.map} +0 -0
  184. /package/dist/cjs/{styleTypes.cjs.map → styleTypes.js.map} +0 -0
  185. /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
  186. /package/dist/cjs/useColorScheme/{index.cjs.map → index.js.map} +0 -0
  187. /package/dist/cjs/useLocaleContext/{index.cjs.map → index.js.map} +0 -0
  188. /package/dist/cjs/useWindowDimensions/{index.cjs.map → index.js.map} +0 -0
  189. /package/dist/cjs/vendor/react-native/Animated/{Animated.cjs.map → Animated.js.map} +0 -0
  190. /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.cjs.map → AnimatedEvent.js.map} +0 -0
  191. /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.cjs.map → AnimatedImplementation.js.map} +0 -0
  192. /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.cjs.map → AnimatedMock.js.map} +0 -0
  193. /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.cjs.map → AnimatedPlatformConfig.js.map} +0 -0
  194. /package/dist/cjs/vendor/react-native/Animated/{Easing.cjs.map → Easing.js.map} +0 -0
  195. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.cjs.map → NativeAnimatedHelper.js.map} +0 -0
  196. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.cjs.map → NativeAnimatedModule.js.map} +0 -0
  197. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.cjs.map → NativeAnimatedTurboModule.js.map} +0 -0
  198. /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.cjs.map → SpringConfig.js.map} +0 -0
  199. /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.cjs.map → Animation.js.map} +0 -0
  200. /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.cjs.map → DecayAnimation.js.map} +0 -0
  201. /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.cjs.map → SpringAnimation.js.map} +0 -0
  202. /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.cjs.map → TimingAnimation.js.map} +0 -0
  203. /package/dist/cjs/vendor/react-native/Animated/{bezier.cjs.map → bezier.js.map} +0 -0
  204. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.cjs.map → AnimatedImage.js.map} +0 -0
  205. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.cjs.map → AnimatedScrollView.js.map} +0 -0
  206. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.cjs.map → AnimatedText.js.map} +0 -0
  207. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.cjs.map → AnimatedView.js.map} +0 -0
  208. /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.cjs.map → createAnimatedComponent.js.map} +0 -0
  209. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.cjs.map → AnimatedAddition.js.map} +0 -0
  210. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.cjs.map → AnimatedColor.js.map} +0 -0
  211. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.cjs.map → AnimatedDiffClamp.js.map} +0 -0
  212. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.cjs.map → AnimatedDivision.js.map} +0 -0
  213. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.cjs.map → AnimatedInterpolation.js.map} +0 -0
  214. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.cjs.map → AnimatedModulo.js.map} +0 -0
  215. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.cjs.map → AnimatedMultiplication.js.map} +0 -0
  216. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.cjs.map → AnimatedNode.js.map} +0 -0
  217. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.cjs.map → AnimatedProps.js.map} +0 -0
  218. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.cjs.map → AnimatedStyle.js.map} +0 -0
  219. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.cjs.map → AnimatedSubtraction.js.map} +0 -0
  220. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.cjs.map → AnimatedTracking.js.map} +0 -0
  221. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.cjs.map → AnimatedTransform.js.map} +0 -0
  222. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.cjs.map → AnimatedValue.js.map} +0 -0
  223. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.cjs.map → AnimatedValueXY.js.map} +0 -0
  224. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.cjs.map → AnimatedWithChildren.js.map} +0 -0
  225. /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.cjs.map → useAnimatedProps.js.map} +0 -0
  226. /package/dist/cjs/vendor/react-native/{FeatureFlags.cjs.map → FeatureFlags.js.map} +0 -0
  227. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.cjs.map → RCTDeviceEventEmitter.js.map} +0 -0
  228. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.cjs.map → index.js.map} +0 -0
  229. /package/dist/cjs/vendor/react-native/PanResponder/{index.cjs.map → index.js.map} +0 -0
  230. /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.cjs.map → index.js.map} +0 -0
  231. /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.cjs.map → RCTExport.js.map} +0 -0
  232. /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.cjs.map → TurboModuleRegistry.js.map} +0 -0
  233. /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.cjs.map → CoreEventTypes.js.map} +0 -0
  234. /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.cjs.map → setAndForwardRef.js.map} +0 -0
  235. /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.cjs.map → EventEmitter.js.map} +0 -0
  236. /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.cjs.map → EventSubscription.js.map} +0 -0
  237. /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.cjs.map → _EmitterSubscription.js.map} +0 -0
  238. /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.cjs.map → _EventEmitter.js.map} +0 -0
  239. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.cjs.map → _EventSubscription.js.map} +0 -0
  240. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.cjs.map → _EventSubscriptionVendor.js.map} +0 -0
  241. /package/dist/cjs/vendor/react-native/infoLog/{index.cjs.map → index.js.map} +0 -0
  242. /package/dist/cjs/vendor/react-native/{useRefEffect.cjs.map → useRefEffect.js.map} +0 -0
  243. /package/dist/cjs/{without-animated.cjs.map → without-animated.js.map} +0 -0
@@ -0,0 +1,135 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var EventEmitter_exports = {};
24
+ __export(EventEmitter_exports, {
25
+ default: () => EventEmitter_default
26
+ });
27
+ module.exports = __toCommonJS(EventEmitter_exports);
28
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_EmitterSubscription = __toESM(require("./_EmitterSubscription")), import_EventSubscriptionVendor = __toESM(require("./_EventSubscriptionVendor")), sparseFilterPredicate = () => !0;
29
+ class EventEmitter {
30
+ /**
31
+ * @constructor
32
+ *
33
+ * @param {EventSubscriptionVendor} subscriber - Optional subscriber instance
34
+ * to use. If omitted, a new subscriber will be created for the emitter.
35
+ */
36
+ constructor(subscriber = new import_EventSubscriptionVendor.default()) {
37
+ this._subscriber = subscriber;
38
+ }
39
+ /**
40
+ * Adds a listener to be invoked when events of the specified type are
41
+ * emitted. An optional calling context may be provided. The data arguments
42
+ * emitted will be passed to the listener function.
43
+ *
44
+ * TODO: Annotate the listener arg's type. This is tricky because listeners
45
+ * can be invoked with varargs.
46
+ *
47
+ * @param {string} eventType - Name of the event to listen to
48
+ * @param {function} listener - Function to invoke when the specified event is
49
+ * emitted
50
+ * @param {*} context - Optional context object to use when invoking the
51
+ * listener
52
+ */
53
+ addListener(eventType, listener, context) {
54
+ return this._subscriber.addSubscription(
55
+ eventType,
56
+ new import_EmitterSubscription.default(this, this._subscriber, listener, context)
57
+ );
58
+ }
59
+ /**
60
+ * Removes all of the registered listeners, including those registered as
61
+ * listener maps.
62
+ *
63
+ * @param {?string} eventType - Optional name of the event whose registered
64
+ * listeners to remove
65
+ */
66
+ removeAllListeners(eventType) {
67
+ this._subscriber.removeAllSubscriptions(eventType);
68
+ }
69
+ /**
70
+ * @deprecated Use `remove` on the EventSubscription from `addListener`.
71
+ */
72
+ removeSubscription(subscription) {
73
+ (0, import_react_native_web_internals.invariant)(
74
+ subscription.emitter === this,
75
+ "Subscription does not belong to this emitter."
76
+ ), this._subscriber.removeSubscription(subscription);
77
+ }
78
+ /**
79
+ * Returns the number of listeners that are currently registered for the given
80
+ * event.
81
+ *
82
+ * @param {string} eventType - Name of the event to query
83
+ * @returns {number}
84
+ */
85
+ listenerCount(eventType) {
86
+ var subscriptions = this._subscriber.getSubscriptionsForType(eventType);
87
+ return subscriptions ? (
88
+ // "callbackfn is called only for elements of the array which actually
89
+ // exist; it is not called for missing elements of the array."
90
+ // https://www.ecma-international.org/ecma-262/9.0/index.html#sec-array.prototype.filter
91
+ subscriptions.filter(sparseFilterPredicate).length
92
+ ) : 0;
93
+ }
94
+ /**
95
+ * Emits an event of the given type with the given data. All handlers of that
96
+ * particular type will be notified.
97
+ *
98
+ * @param {string} eventType - Name of the event to emit
99
+ * @param {...*} Arbitrary arguments to be passed to each registered listener
100
+ *
101
+ * @example
102
+ * emitter.addListener('someEvent', function(message) {
103
+ * console.log(message);
104
+ * });
105
+ *
106
+ * emitter.emit('someEvent', 'abc'); // logs 'abc'
107
+ */
108
+ emit(eventType) {
109
+ var subscriptions = this._subscriber.getSubscriptionsForType(eventType);
110
+ if (subscriptions) {
111
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)
112
+ args[_key - 1] = arguments[_key];
113
+ for (var i = 0, l = subscriptions.length; i < l; i++) {
114
+ var subscription = subscriptions[i];
115
+ subscription && subscription.listener && subscription.listener.apply(subscription.context, args);
116
+ }
117
+ }
118
+ }
119
+ /**
120
+ * @deprecated Use `remove` on the EventSubscription from `addListener`.
121
+ */
122
+ removeListener(eventType, listener) {
123
+ console.error(
124
+ "EventEmitter.removeListener('" + eventType + "', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`."
125
+ );
126
+ var subscriptions = this._subscriber.getSubscriptionsForType(eventType);
127
+ if (subscriptions)
128
+ for (var i = 0, l = subscriptions.length; i < l; i++) {
129
+ var subscription = subscriptions[i];
130
+ subscription && subscription.listener === listener && subscription.remove();
131
+ }
132
+ }
133
+ }
134
+ var EventEmitter_default = EventEmitter;
135
+ //# sourceMappingURL=_EventEmitter.js.map
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var EventSubscription_exports = {};
17
+ __export(EventSubscription_exports, {
18
+ default: () => EventSubscription_default
19
+ });
20
+ module.exports = __toCommonJS(EventSubscription_exports);
21
+ class _EventSubscription {
22
+ /**
23
+ * @param {EventSubscriptionVendor} subscriber the subscriber that controls
24
+ * this subscription.
25
+ */
26
+ constructor(subscriber) {
27
+ this.subscriber = subscriber;
28
+ }
29
+ /**
30
+ * Removes this subscription from the subscriber that controls it.
31
+ */
32
+ remove() {
33
+ this.subscriber.removeSubscription(this);
34
+ }
35
+ }
36
+ var EventSubscription_default = _EventSubscription;
37
+ //# sourceMappingURL=_EventSubscription.js.map
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var EventSubscriptionVendor_exports = {};
17
+ __export(EventSubscriptionVendor_exports, {
18
+ default: () => EventSubscriptionVendor_default
19
+ });
20
+ module.exports = __toCommonJS(EventSubscriptionVendor_exports);
21
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
22
+ class EventSubscriptionVendor {
23
+ constructor() {
24
+ this._subscriptionsForType = {};
25
+ }
26
+ /**
27
+ * Adds a subscription keyed by an event type.
28
+ *
29
+ * @param {string} eventType
30
+ * @param {EventSubscription} subscription
31
+ */
32
+ addSubscription(eventType, subscription) {
33
+ (0, import_react_native_web_internals.invariant)(
34
+ subscription.subscriber === this,
35
+ "The subscriber of the subscription is incorrectly set."
36
+ ), this._subscriptionsForType[eventType] || (this._subscriptionsForType[eventType] = []);
37
+ var key = this._subscriptionsForType[eventType].length;
38
+ return this._subscriptionsForType[eventType].push(subscription), subscription.eventType = eventType, subscription.key = key, subscription;
39
+ }
40
+ /**
41
+ * Removes a bulk set of the subscriptions.
42
+ *
43
+ * @param {?string} eventType - Optional name of the event type whose
44
+ * registered supscriptions to remove, if null remove all subscriptions.
45
+ */
46
+ removeAllSubscriptions(eventType) {
47
+ eventType == null ? this._subscriptionsForType = {} : delete this._subscriptionsForType[eventType];
48
+ }
49
+ /**
50
+ * Removes a specific subscription. Instead of calling this function, call
51
+ * `subscription.remove()` directly.
52
+ *
53
+ * @param {object} subscription
54
+ */
55
+ removeSubscription(subscription) {
56
+ var eventType = subscription.eventType, key = subscription.key, subscriptionsForType = this._subscriptionsForType[eventType];
57
+ subscriptionsForType && delete subscriptionsForType[key];
58
+ }
59
+ /**
60
+ * Returns the array of subscriptions that are currently registered for the
61
+ * given event type.
62
+ *
63
+ * Note: This array can be potentially sparse as subscriptions are deleted
64
+ * from it when they are removed.
65
+ *
66
+ * TODO: This returns a nullable array. wat?
67
+ *
68
+ * @param {string} eventType
69
+ * @returns {?array}
70
+ */
71
+ getSubscriptionsForType(eventType) {
72
+ return this._subscriptionsForType[eventType];
73
+ }
74
+ }
75
+ var EventSubscriptionVendor_default = EventSubscriptionVendor;
76
+ //# sourceMappingURL=_EventSubscriptionVendor.js.map
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var infoLog_exports = {};
17
+ __export(infoLog_exports, {
18
+ default: () => infoLog_default
19
+ });
20
+ module.exports = __toCommonJS(infoLog_exports);
21
+ function infoLog(...args) {
22
+ return console.log(...args);
23
+ }
24
+ var infoLog_default = infoLog;
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,30 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var useRefEffect_exports = {};
16
+ __export(useRefEffect_exports, {
17
+ default: () => useRefEffect
18
+ });
19
+ module.exports = __toCommonJS(useRefEffect_exports);
20
+ var import_react = require("react");
21
+ function useRefEffect(effect) {
22
+ const cleanupRef = (0, import_react.useRef)(void 0);
23
+ return (0, import_react.useCallback)(
24
+ (instance) => {
25
+ cleanupRef.current && (cleanupRef.current(), cleanupRef.current = void 0), instance != null && (cleanupRef.current = effect(instance));
26
+ },
27
+ [effect]
28
+ );
29
+ }
30
+ //# sourceMappingURL=useRefEffect.js.map
@@ -0,0 +1,95 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")), __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
15
+ // If the importer is in node compatibility mode or this is not an ESM
16
+ // file that has been converted to a CommonJS file using a Babel-
17
+ // compatible transform (i.e. "__esModule" has not been set), then set
18
+ // "default" to the CommonJS "module.exports" for node compatibility.
19
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
20
+ mod
21
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
22
+ var without_animated_exports = {};
23
+ __export(without_animated_exports, {
24
+ AccessibilityInfo: () => import_AccessibilityInfo.default,
25
+ ActivityIndicator: () => import_ActivityIndicator.default,
26
+ Alert: () => import_Alert.default,
27
+ AppRegistry: () => import_AppRegistry.default,
28
+ AppState: () => import_AppState.default,
29
+ Appearance: () => import_Appearance.default,
30
+ BackHandler: () => import_BackHandler.default,
31
+ Clipboard: () => import_Clipboard.default,
32
+ DeviceEmitter: () => import_DeviceEmitter.default,
33
+ DeviceEventEmitter: () => import_DeviceEmitter2.default,
34
+ DeviceInfo: () => import_DeviceInfo.default,
35
+ Dimensions: () => import_Dimensions.default,
36
+ DrawerLayoutAndroid: () => import_UnimplementedView.default,
37
+ FlatList: () => import_UnimplementedView4.default,
38
+ I18nManager: () => import_I18nManager.default,
39
+ Image: () => import_Image.default,
40
+ ImageBackground: () => import_ImageBackground.default,
41
+ ImageLoader: () => import_react_native_web_internals.ImageLoader,
42
+ Keyboard: () => import_Keyboard.default,
43
+ KeyboardAvoidingView: () => import_KeyboardAvoidingView.default,
44
+ Linking: () => import_Linking.default,
45
+ LogBox: () => import_LogBox.default,
46
+ Modal: () => import_Modal.default,
47
+ NativeEventEmitter: () => import_NativeEventEmitter.default,
48
+ NativeModules: () => import_NativeModules.default,
49
+ PanResponder: () => import_PanResponder.default,
50
+ PixelRatio: () => import_PixelRatio.default,
51
+ Platform: () => import_react_native_web_internals.Platform,
52
+ Pressable: () => import_Pressable.default,
53
+ RefreshControl: () => import_RefreshControl.default,
54
+ SafeAreaView: () => import_SafeAreaView.default,
55
+ ScrollView: () => import_ScrollView.default,
56
+ SectionList: () => import_UnimplementedView7.default,
57
+ Share: () => import_Share.default,
58
+ StatusBar: () => import_StatusBar.default,
59
+ Switch: () => import_UnimplementedView2.default,
60
+ Text: () => import_Text.default,
61
+ TextInput: () => import_TextInput.default,
62
+ TouchableHighlight: () => import_UnimplementedView5.default,
63
+ TouchableNativeFeedback: () => import_UnimplementedView6.default,
64
+ TouchableOpacity: () => import_TouchableOpacity.default,
65
+ TouchableWithoutFeedback: () => import_TouchableWithoutFeedback.default,
66
+ UIManager: () => import_react_native_web_internals.UIManager,
67
+ Vibration: () => import_Vibration.default,
68
+ View: () => import_View.default,
69
+ VirtualizedList: () => import_UnimplementedView3.default,
70
+ canUseDOM: () => import_react_native_web_internals.canUseDOM,
71
+ dismissKeyboard: () => import_react_native_web_internals.dismissKeyboard,
72
+ findNodeHandle: () => import_findNodeHandle.findNodeHandle,
73
+ isWebColor: () => import_react_native_web_internals.isWebColor,
74
+ mergeRefs: () => import_react_native_web_internals.mergeRefs,
75
+ processColor: () => import_react_native_web_internals.processColor,
76
+ render: () => import_render.default,
77
+ requireNativeComponent: () => requireNativeComponent,
78
+ unmountComponentAtNode: () => import_react_dom.unmountComponentAtNode,
79
+ unstable_createElement: () => import_createElement.default,
80
+ useColorScheme: () => import_useColorScheme.default,
81
+ useEvent: () => import_react_native_web_internals.useEvent,
82
+ useHover: () => import_react_native_web_internals.useHover,
83
+ useLocaleContext: () => import_useLocaleContext.useLocaleContext,
84
+ useMergeRefs: () => import_react_native_web_internals.useMergeRefs,
85
+ useWindowDimensions: () => import_useWindowDimensions.default
86
+ });
87
+ module.exports = __toCommonJS(without_animated_exports);
88
+ var import_createElement = __toESM(require("./createElement/index")), import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_render = __toESM(require("./render/index")), import_react_dom = require("react-dom"), import_NativeModules = __toESM(require("./NativeModules/index")), import_findNodeHandle = require("./findNodeHandle"), import_NativeEventEmitter = __toESM(require("./vendor/react-native/NativeEventEmitter/index")), import_AccessibilityInfo = __toESM(require("./AccessibilityInfo/index")), import_Alert = __toESM(require("./Alert/index")), import_Appearance = __toESM(require("./Appearance/index")), import_AppRegistry = __toESM(require("./AppRegistry/index")), import_AppState = __toESM(require("./AppState/index")), import_BackHandler = __toESM(require("./BackHandler/index")), import_Clipboard = __toESM(require("./Clipboard/index")), import_DeviceInfo = __toESM(require("./DeviceInfo/index")), import_DeviceEmitter = __toESM(require("./DeviceEmitter")), import_DeviceEmitter2 = __toESM(require("./DeviceEmitter")), import_Dimensions = __toESM(require("./Dimensions/index")), import_I18nManager = __toESM(require("./I18nManager/index")), import_Keyboard = __toESM(require("./Keyboard/index")), import_Linking = __toESM(require("./Linking/index")), import_PanResponder = __toESM(require("./PanResponder/index")), import_PixelRatio = __toESM(require("./PixelRatio/index")), import_Share = __toESM(require("./Share/index")), import_Vibration = __toESM(require("./Vibration/index")), import_UnimplementedView = __toESM(require("./UnimplementedView")), import_UnimplementedView2 = __toESM(require("./UnimplementedView")), import_UnimplementedView3 = __toESM(require("./UnimplementedView")), import_UnimplementedView4 = __toESM(require("./UnimplementedView")), import_UnimplementedView5 = __toESM(require("./UnimplementedView")), import_UnimplementedView6 = __toESM(require("./UnimplementedView")), import_UnimplementedView7 = __toESM(require("./UnimplementedView")), import_TouchableOpacity = __toESM(require("./TouchableOpacity")), import_TouchableWithoutFeedback = __toESM(require("./TouchableWithoutFeedback")), import_ActivityIndicator = __toESM(require("./ActivityIndicator/index")), import_Image = __toESM(require("./Image/index")), import_ImageBackground = __toESM(require("./ImageBackground/index")), import_KeyboardAvoidingView = __toESM(require("./KeyboardAvoidingView/index")), import_Modal = __toESM(require("./Modal/index")), import_Pressable = __toESM(require("./Pressable/index")), import_RefreshControl = __toESM(require("./RefreshControl/index")), import_SafeAreaView = __toESM(require("./SafeAreaView/index")), import_ScrollView = __toESM(require("./ScrollView/index")), import_StatusBar = __toESM(require("./StatusBar/index")), import_Text = __toESM(require("./Text/index")), import_TextInput = __toESM(require("./TextInput/index")), import_View = __toESM(require("./View/index")), import_LogBox = __toESM(require("./LogBox/index")), import_useColorScheme = __toESM(require("./useColorScheme/index")), import_useLocaleContext = require("./useLocaleContext/index"), import_useWindowDimensions = __toESM(require("./useWindowDimensions/index"));
89
+ __reExport(without_animated_exports, require("@tamagui/react-native-web-internals"), module.exports);
90
+ function requireNativeComponent(name) {
91
+ return function() {
92
+ return null;
93
+ };
94
+ }
95
+ //# sourceMappingURL=without-animated.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/react-native-web-lite",
3
- "version": "1.116.0",
3
+ "version": "1.116.2",
4
4
  "description": "React Native for Web",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs",
@@ -37,14 +37,14 @@
37
37
  "./dist/*": "./dist/cjs/*/index.mjs"
38
38
  },
39
39
  "dependencies": {
40
- "@tamagui/normalize-css-color": "1.116.0",
41
- "@tamagui/react-native-use-pressable": "1.116.0",
42
- "@tamagui/react-native-use-responder-events": "1.116.0",
43
- "@tamagui/react-native-web-internals": "1.116.0",
40
+ "@tamagui/normalize-css-color": "1.116.2",
41
+ "@tamagui/react-native-use-pressable": "1.116.2",
42
+ "@tamagui/react-native-use-responder-events": "1.116.2",
43
+ "@tamagui/react-native-web-internals": "1.116.2",
44
44
  "invariant": "^2.2.4"
45
45
  },
46
46
  "devDependencies": {
47
- "@tamagui/build": "1.116.0",
47
+ "@tamagui/build": "1.116.2",
48
48
  "react": "^18.2.0 || ^19.0.0",
49
49
  "react-dom": "^18.2.0 || ^19.0.0"
50
50
  },
@@ -1,198 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
- get: () => from[key],
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
34
- var Alternative_exports = {};
35
- __export(Alternative_exports, {
36
- default: () => Alternative_default
37
- });
38
- module.exports = __toCommonJS(Alternative_exports);
39
- var import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
40
- import_TouchHistoryMath = __toESM(require("../vendor/react-native/TouchHistoryMath/index.cjs"));
41
- const {
42
- currentCentroidX,
43
- currentCentroidY,
44
- currentCentroidXOfTouchesChangedAfter,
45
- currentCentroidYOfTouchesChangedAfter,
46
- previousCentroidXOfTouchesChangedAfter,
47
- previousCentroidYOfTouchesChangedAfter
48
- } = import_TouchHistoryMath.default,
49
- PanResponder = {
50
- _initializeGestureState(gestureState) {
51
- gestureState.x = 0, gestureState.y = 0, gestureState.initialX = 0, gestureState.initialY = 0, gestureState.deltaX = 0, gestureState.deltaY = 0, gestureState.velocityX = 0, gestureState.velocityY = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
52
- },
53
- /**
54
- * Take all recently moved touches, calculate how the centroid has changed just for those
55
- * recently moved touches, and append that change to an accumulator. This is
56
- * to (at least) handle the case where the user is moving three fingers, and
57
- * then one of the fingers stops but the other two continue.
58
- *
59
- * This is very different than taking all of the recently moved touches and
60
- * storing their centroid as `dx/dy`. For correctness, we must *accumulate
61
- * changes* in the centroid of recently moved touches.
62
- *
63
- * There is also some nuance with how we handle multiple moved touches in a
64
- * single event. Multiple touches generate two 'move' events, each of
65
- * them triggering `onResponderMove`. But with the way `PanResponder` works,
66
- * all of the gesture inference is performed on the first dispatch, since it
67
- * looks at all of the touches. Therefore, `PanResponder` does not call
68
- * `onResponderMove` passed the first dispatch. This diverges from the
69
- * typical responder callback pattern (without using `PanResponder`), but
70
- * avoids more dispatches than necessary.
71
- *
72
- * When moving two touches in opposite directions, the cumulative
73
- * distance is zero in each dimension. When two touches move in parallel five
74
- * pixels in the same direction, the cumulative distance is five, not ten. If
75
- * two touches start, one moves five in a direction, then stops and the other
76
- * touch moves fives in the same direction, the cumulative distance is ten.
77
- *
78
- * This logic requires a kind of processing of time "clusters" of touch events
79
- * so that two touch moves that essentially occur in parallel but move every
80
- * other frame respectively, are considered part of the same movement.
81
- *
82
- * x/y: If a move event has been observed, `(x, y)` is the centroid of the most
83
- * recently moved "cluster" of active touches.
84
- * deltaX/deltaY: Cumulative touch distance. Accounts for touch moves that are
85
- * clustered together in time, moving the same direction. Only valid when
86
- * currently responder (otherwise, it only represents the drag distance below
87
- * the threshold).
88
- */
89
- _updateGestureStateOnMove(gestureState, touchHistory) {
90
- const movedAfter = gestureState._accountsForMovesUpTo,
91
- prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
92
- prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
93
- prevDeltaX = gestureState.deltaX,
94
- prevDeltaY = gestureState.deltaY,
95
- x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
96
- y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
97
- deltaX = prevDeltaX + (x - prevX),
98
- deltaY = prevDeltaY + (y - prevY),
99
- dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
100
- gestureState.deltaX = deltaX, gestureState.deltaY = deltaY, gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.velocityX = (deltaX - prevDeltaX) / dt, gestureState.velocityY = (deltaY - prevDeltaY) / dt, gestureState.x = x, gestureState.y = y, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
101
- },
102
- /**
103
- * Enhanced versions of all of the responder callbacks that provide not only
104
- * the `ResponderEvent`, but also the `PanResponder` gesture state.
105
- *
106
- * In general, for events that have capture equivalents, we update the
107
- * gestureState once in the capture phase and can use it in the bubble phase
108
- * as well.
109
- */
110
- create(config) {
111
- const interactionState = {
112
- handle: null
113
- },
114
- gestureState = {
115
- // Useful for debugging
116
- stateID: Math.random(),
117
- x: 0,
118
- y: 0,
119
- initialX: 0,
120
- initialY: 0,
121
- deltaX: 0,
122
- deltaY: 0,
123
- velocityX: 0,
124
- velocityY: 0,
125
- numberActiveTouches: 0,
126
- _accountsForMovesUpTo: 0
127
- },
128
- {
129
- onStartShouldSetResponder,
130
- onStartShouldSetResponderCapture,
131
- onMoveShouldSetResponder,
132
- onMoveShouldSetResponderCapture,
133
- onPanGrant,
134
- onPanStart,
135
- onPanMove,
136
- onPanEnd,
137
- onPanRelease,
138
- onPanReject,
139
- onPanTerminate,
140
- onPanTerminationRequest
141
- } = config;
142
- return {
143
- panHandlers: {
144
- onStartShouldSetResponder(event) {
145
- return onStartShouldSetResponder != null ? onStartShouldSetResponder(event, gestureState) : !1;
146
- },
147
- onMoveShouldSetResponder(event) {
148
- return onMoveShouldSetResponder != null ? onMoveShouldSetResponder(event, gestureState) : !1;
149
- },
150
- onStartShouldSetResponderCapture(event) {
151
- return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, onStartShouldSetResponderCapture != null ? onStartShouldSetResponderCapture(event, gestureState) : !1;
152
- },
153
- onMoveShouldSetResponderCapture(event) {
154
- const touchHistory = event.touchHistory;
155
- return PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onMoveShouldSetResponderCapture != null ? onMoveShouldSetResponderCapture(event, gestureState) : !1;
156
- },
157
- onResponderGrant(event) {
158
- interactionState.handle || (interactionState.handle = import_react_native_web_internals.InteractionManager.createInteractionHandle()), gestureState.initialX = currentCentroidX(event.touchHistory), gestureState.initialY = currentCentroidY(event.touchHistory), gestureState.deltaX = 0, gestureState.deltaY = 0, onPanGrant?.(event, gestureState);
159
- },
160
- onResponderReject(event) {
161
- clearInteractionHandle(interactionState, onPanReject, event, gestureState);
162
- },
163
- onResponderStart(event) {
164
- const {
165
- numberActiveTouches
166
- } = event.touchHistory;
167
- gestureState.numberActiveTouches = numberActiveTouches, onPanStart?.(event, gestureState);
168
- },
169
- onResponderMove(event) {
170
- const touchHistory = event.touchHistory;
171
- gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onPanMove?.(event, gestureState));
172
- },
173
- onResponderEnd(event) {
174
- const {
175
- numberActiveTouches
176
- } = event.touchHistory;
177
- gestureState.numberActiveTouches = numberActiveTouches, clearInteractionHandle(interactionState, onPanEnd, event, gestureState);
178
- },
179
- onResponderRelease(event) {
180
- clearInteractionHandle(interactionState, onPanRelease, event, gestureState), PanResponder._initializeGestureState(gestureState);
181
- },
182
- onResponderTerminate(event) {
183
- clearInteractionHandle(interactionState, onPanTerminate, event, gestureState), PanResponder._initializeGestureState(gestureState);
184
- },
185
- onResponderTerminationRequest(event) {
186
- return onPanTerminationRequest != null ? onPanTerminationRequest(event, gestureState) : !0;
187
- }
188
- },
189
- getInteractionHandle() {
190
- return interactionState.handle;
191
- }
192
- };
193
- }
194
- };
195
- function clearInteractionHandle(interactionState, callback, event, gestureState) {
196
- interactionState.handle && (import_react_native_web_internals.InteractionManager.clearInteractionHandle(interactionState.handle), interactionState.handle = null), callback && callback(event, gestureState);
197
- }
198
- var Alternative_default = PanResponder;
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/PanResponder/Alternative.tsx"],
4
- "mappings": "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",
5
- "names": ["TouchHistoryMath"]
6
- }
File without changes