@office-iss/react-native-win32 0.69.0-preview.4 → 0.70.0-preview.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 (154) hide show
  1. package/.eslintrc.js +0 -1
  2. package/.flowconfig +5 -1
  3. package/CHANGELOG.json +228 -24
  4. package/CHANGELOG.md +92 -14
  5. package/IntegrationTests/AsyncStorageTest.js +20 -4
  6. package/IntegrationTests/BUCK +2 -2
  7. package/IntegrationTests/LayoutEventsTest.js +4 -1
  8. package/IntegrationTests/{launchWebSocketServer.command → launchWebSocketServer.sh} +3 -9
  9. package/Libraries/Alert/Alert.js +18 -4
  10. package/Libraries/Alert/Alert.win32.js +2 -0
  11. package/Libraries/Alert/NativeAlertManager.js +1 -0
  12. package/Libraries/Animated/Animated.js +2 -2
  13. package/Libraries/Animated/AnimatedEvent.js +7 -4
  14. package/Libraries/Animated/AnimatedImplementation.js +17 -3
  15. package/Libraries/Animated/AnimatedMock.js +7 -2
  16. package/Libraries/Animated/NativeAnimatedHelper.js +220 -95
  17. package/Libraries/Animated/NativeAnimatedModule.js +3 -0
  18. package/Libraries/Animated/NativeAnimatedTurboModule.js +3 -0
  19. package/Libraries/Animated/animations/SpringAnimation.js +3 -3
  20. package/Libraries/Animated/animations/TimingAnimation.js +3 -3
  21. package/Libraries/Animated/createAnimatedComponent.js +8 -1
  22. package/Libraries/Animated/nodes/AnimatedAddition.js +3 -1
  23. package/Libraries/Animated/nodes/AnimatedColor.js +50 -29
  24. package/Libraries/Animated/nodes/AnimatedDiffClamp.js +3 -1
  25. package/Libraries/Animated/nodes/AnimatedDivision.js +3 -1
  26. package/Libraries/Animated/nodes/AnimatedInterpolation.js +22 -21
  27. package/Libraries/Animated/nodes/AnimatedModulo.js +3 -1
  28. package/Libraries/Animated/nodes/AnimatedMultiplication.js +3 -2
  29. package/Libraries/Animated/nodes/AnimatedProps.js +20 -12
  30. package/Libraries/Animated/nodes/AnimatedStyle.js +19 -16
  31. package/Libraries/Animated/nodes/AnimatedSubtraction.js +3 -1
  32. package/Libraries/Animated/nodes/AnimatedTransform.js +5 -5
  33. package/Libraries/Animated/nodes/AnimatedValue.js +14 -5
  34. package/Libraries/Animated/nodes/AnimatedValueXY.js +28 -1
  35. package/Libraries/Animated/useAnimatedProps.js +1 -0
  36. package/Libraries/AppState/AppState.js +0 -32
  37. package/Libraries/BatchedBridge/MessageQueue.js +21 -15
  38. package/Libraries/BatchedBridge/NativeModules.js +3 -4
  39. package/Libraries/Blob/FileReader.js +0 -6
  40. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +0 -20
  41. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +0 -20
  42. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -0
  43. package/Libraries/Components/Keyboard/Keyboard.js +0 -11
  44. package/Libraries/Components/Pressable/Pressable.js +2 -0
  45. package/Libraries/Components/Pressable/Pressable.win32.js +2 -0
  46. package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +1 -3
  47. package/Libraries/Components/SafeAreaView/SafeAreaView.js +3 -30
  48. package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +4 -32
  49. package/Libraries/Components/ScrollView/ScrollView.js +13 -11
  50. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +5 -3
  51. package/Libraries/Components/StatusBar/StatusBar.js +10 -7
  52. package/Libraries/Components/TextInput/InputAccessoryView.js +14 -13
  53. package/Libraries/Components/TextInput/TextInput.js +12 -2
  54. package/Libraries/Components/Touchable/PooledClass.js +16 -4
  55. package/Libraries/Components/Touchable/Touchable.js +50 -1
  56. package/Libraries/Components/Touchable/Touchable.win32.js +972 -0
  57. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +6 -2
  58. package/Libraries/Components/View/ReactNativeStyleAttributes.js +0 -7
  59. package/Libraries/Components/View/ViewPropTypes.js +3 -8
  60. package/Libraries/Components/View/ViewPropTypes.win32.js +3 -8
  61. package/Libraries/Core/ExceptionsManager.js +2 -0
  62. package/Libraries/Core/ReactNativeVersion.js +2 -2
  63. package/Libraries/Core/Timers/JSTimers.js +2 -2
  64. package/Libraries/Core/polyfillPromise.js +0 -32
  65. package/Libraries/Core/setUpBatchedBridge.js +5 -1
  66. package/Libraries/Core/setUpPerformance.js +1 -1
  67. package/Libraries/EventEmitter/NativeEventEmitter.js +0 -13
  68. package/Libraries/Image/AssetSourceResolver.js +2 -2
  69. package/Libraries/Image/Image.android.js +5 -3
  70. package/Libraries/Image/Image.ios.js +6 -3
  71. package/Libraries/Image/Image.win32.js +6 -3
  72. package/Libraries/Image/ImageSource.js +7 -5
  73. package/Libraries/Inspector/ElementBox.js +2 -2
  74. package/Libraries/Inspector/NetworkOverlay.js +13 -8
  75. package/Libraries/Interaction/PanResponder.js +16 -14
  76. package/Libraries/Linking/Linking.js +0 -11
  77. package/Libraries/Lists/FlatList.js +3 -2
  78. package/Libraries/Lists/SectionList.js +2 -0
  79. package/Libraries/Lists/ViewabilityHelper.js +7 -3
  80. package/Libraries/Lists/VirtualizeUtils.js +33 -20
  81. package/Libraries/Lists/VirtualizedList.js +93 -47
  82. package/Libraries/Lists/VirtualizedListContext.js +1 -0
  83. package/Libraries/Lists/VirtualizedSectionList.js +14 -9
  84. package/Libraries/Lists/__tests__/VirtualizeUtils-test.js +19 -18
  85. package/Libraries/Lists/__tests__/VirtualizedList-test.js +10 -6
  86. package/Libraries/LogBox/Data/LogBoxData.js +1 -1
  87. package/Libraries/LogBox/Data/parseLogBoxLog.js +1 -1
  88. package/Libraries/LogBox/LogBox.js +3 -1
  89. package/Libraries/LogBox/UI/AnsiHighlight.js +2 -0
  90. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +3 -0
  91. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +0 -3
  92. package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +8 -3
  93. package/Libraries/NativeComponent/BaseViewConfig.android.js +9 -18
  94. package/Libraries/NativeComponent/BaseViewConfig.ios.js +26 -12
  95. package/Libraries/NativeComponent/BaseViewConfig.win32.js +26 -12
  96. package/Libraries/Network/XMLHttpRequest.js +9 -11
  97. package/Libraries/Performance/PureComponentDebug.js +1 -0
  98. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +9 -1
  99. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +16 -0
  100. package/Libraries/Pressability/Pressability.js +26 -16
  101. package/Libraries/Pressability/Pressability.win32.js +26 -16
  102. package/Libraries/Promise.js +0 -1
  103. package/Libraries/ReactNative/AppRegistry.js +16 -13
  104. package/Libraries/ReactNative/BridgelessUIManager.js +2 -0
  105. package/Libraries/ReactNative/PaperUIManager.js +9 -9
  106. package/Libraries/ReactNative/PaperUIManager.win32.js +7 -8
  107. package/Libraries/ReactNative/ReactNativeFeatureFlags.js +12 -0
  108. package/Libraries/ReactNative/ReactNativeRuntimeDiagnostics.js +68 -0
  109. package/Libraries/ReactNative/getNativeComponentAttributes.js +6 -7
  110. package/Libraries/ReactNative/renderApplication.js +1 -1
  111. package/Libraries/Renderer/implementations/ReactFabric-dev.js +4443 -3615
  112. package/Libraries/Renderer/implementations/ReactFabric-prod.js +1496 -1170
  113. package/Libraries/Renderer/implementations/ReactFabric-profiling.js +1694 -1356
  114. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +4439 -3588
  115. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1583 -1249
  116. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1719 -1372
  117. package/Libraries/Storage/AsyncStorage.js +7 -1
  118. package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +8 -0
  119. package/Libraries/StyleSheet/flattenStyle.js +1 -1
  120. package/Libraries/StyleSheet/processTransform.js +2 -0
  121. package/Libraries/StyleSheet/splitLayoutProps.js +2 -0
  122. package/Libraries/Text/Text.js +15 -7
  123. package/Libraries/Types/CoreEventTypes.js +137 -11
  124. package/Libraries/Types/CoreEventTypes.win32.js +147 -22
  125. package/Libraries/Utilities/Dimensions.js +0 -13
  126. package/Libraries/Utilities/Dimensions.win32.js +0 -9
  127. package/Libraries/Utilities/HMRClient.js +3 -3
  128. package/Libraries/Utilities/Platform.ios.js +0 -7
  129. package/Libraries/Utilities/ReactNativeTestTools.js +3 -1
  130. package/Libraries/Utilities/codegenNativeCommands.js +11 -2
  131. package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +2 -0
  132. package/Libraries/Utilities/stringifySafe.js +3 -1
  133. package/Libraries/Utilities/truncate.js +1 -1
  134. package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -2
  135. package/Libraries/Vibration/Vibration.js +1 -1
  136. package/Libraries/WebSocket/WebSocket.js +1 -0
  137. package/Libraries/vendor/emitter/EventEmitter.js +105 -12
  138. package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +73 -117
  139. package/flow/JSITimerInternalType.js +30 -0
  140. package/jest/assetFileTransformer.js +3 -2
  141. package/jest/setup.js +4 -0
  142. package/jest.config.js +0 -1
  143. package/overrides.json +23 -16
  144. package/package.json +21 -22
  145. package/rntypes/index.d.ts +0 -1
  146. package/src/rntypes/index.d.ts +0 -1
  147. package/Libraries/vendor/emitter/EventSubscription.js +0 -19
  148. package/Libraries/vendor/emitter/_EmitterSubscription.js +0 -62
  149. package/Libraries/vendor/emitter/_EventEmitter.js +0 -184
  150. package/Libraries/vendor/emitter/_EventSubscription.js +0 -45
  151. package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +0 -108
  152. package/jest/preprocessor.js +0 -40
  153. package/jest/preprocessor_DO_NOT_USE.js +0 -122
  154. package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizeUtils-test.js.snap +0 -3
package/.eslintrc.js CHANGED
@@ -13,7 +13,6 @@ module.exports = {
13
13
  rules: {
14
14
  '@typescript-eslint/no-unnecessary-condition': 'off',
15
15
  'no-restricted-syntax': 'off',
16
- '@typescript-eslint/no-unused-vars': 'off',
17
16
  },
18
17
  },
19
18
  ],
package/.flowconfig CHANGED
@@ -14,6 +14,7 @@
14
14
  <PROJECT_ROOT>/Libraries/Components/SafeAreaView/SafeAreaView.js
15
15
  <PROJECT_ROOT>/Libraries/Components/TextInput/TextInput.js
16
16
  <PROJECT_ROOT>/Libraries/Components/TextInput/TextInputState.js
17
+ <PROJECT_ROOT>/Libraries/Components/Touchable/Touchable.js
17
18
  <PROJECT_ROOT>/Libraries/Components/Touchable/TouchableNativeFeedback.js
18
19
  <PROJECT_ROOT>/Libraries/Components/View/ReactNativeViewAttributes.js
19
20
  <PROJECT_ROOT>/Libraries/Components/View/View.js
@@ -78,6 +79,7 @@ flow/
78
79
  emoji=true
79
80
 
80
81
  exact_by_default=true
82
+ exact_empty_objects=true
81
83
 
82
84
  format.bracket_spacing=false
83
85
 
@@ -100,6 +102,8 @@ suppress_type=$FlowFixMeProps
100
102
  suppress_type=$FlowFixMeState
101
103
  suppress_type=$FlowFixMeEmpty
102
104
 
105
+ experimental.env_mode=ssa
106
+
103
107
  [lints]
104
108
  sketchy-null-number=warn
105
109
  sketchy-null-mixed=warn
@@ -120,4 +124,4 @@ untyped-import
120
124
  untyped-type-import
121
125
 
122
126
  [version]
123
- ^0.176.3
127
+ ^0.182.0
package/CHANGELOG.json CHANGED
@@ -2,73 +2,277 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 13 Jun 2022 15:10:29 GMT",
6
- "tag": "@office-iss/react-native-win32_v0.69.0-preview.4",
7
- "version": "0.69.0-preview.4",
5
+ "date": "Tue, 23 Aug 2022 23:36:27 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.70.0-preview.2",
7
+ "version": "0.70.0-preview.2",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "34109996+chiaramooney@users.noreply.github.com",
12
12
  "package": "@office-iss/react-native-win32",
13
- "commit": "014e0289748121cb0fc11393a98404f145b53b1c",
14
- "comment": "Integrate RC6"
13
+ "commit": "144a31db1774e3a88528560956483c63e5665b1d",
14
+ "comment": "Resolve Conflicts"
15
15
  },
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@office-iss/react-native-win32",
19
- "comment": "Bump @react-native-windows/virtualized-list to v0.69.0-preview.3",
20
- "commit": "a04f5f19cb869db2b5ceea5e73c4096842e57ed4"
19
+ "comment": "Bump @react-native-windows/virtualized-list to v0.70.0-preview.2",
20
+ "commit": "144a31db1774e3a88528560956483c63e5665b1d"
21
21
  }
22
22
  ]
23
23
  }
24
24
  },
25
25
  {
26
- "date": "Mon, 06 Jun 2022 15:09:03 GMT",
27
- "tag": "@office-iss/react-native-win32_v0.69.0-preview.3",
28
- "version": "0.69.0-preview.3",
26
+ "date": "Mon, 22 Aug 2022 20:20:06 GMT",
27
+ "tag": "@office-iss/react-native-win32_v0.70.0-preview.1",
28
+ "version": "0.70.0-preview.1",
29
29
  "comments": {
30
30
  "prerelease": [
31
+ {
32
+ "author": "34109996+chiaramooney@users.noreply.github.com",
33
+ "package": "@office-iss/react-native-win32",
34
+ "commit": "b4acd4f5d8015a953cde246e1f612f44a0767e97",
35
+ "comment": "Promote 0.70 to preview"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@office-iss/react-native-win32",
40
+ "comment": "Bump @react-native-windows/virtualized-list to v0.70.0-preview.1",
41
+ "commit": "a5034fc1c5336413a381652b8edefc1b4ca76832"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "date": "Sat, 20 Aug 2022 05:08:53 GMT",
48
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.158",
49
+ "version": "0.0.0-canary.158",
50
+ "comments": {
51
+ "prerelease": [
52
+ {
53
+ "author": "34109996+chiaramooney@users.noreply.github.com",
54
+ "package": "@office-iss/react-native-win32",
55
+ "commit": "409648078984fc75c56d990aa2c151f419131eb3",
56
+ "comment": "Integrate 7/14"
57
+ },
31
58
  {
32
59
  "author": "beachball",
33
60
  "package": "@office-iss/react-native-win32",
34
- "comment": "Bump @react-native-windows/virtualized-list to v0.69.0-preview.2",
35
- "commit": "55fc1addf2b30c941a64ca361f78549caac88230"
61
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.49",
62
+ "commit": "0a49d9c313261cae2876122cd28bb1110219fb60"
36
63
  }
37
64
  ]
38
65
  }
39
66
  },
40
67
  {
41
- "date": "Mon, 16 May 2022 15:09:01 GMT",
42
- "tag": "@office-iss/react-native-win32_v0.69.0-preview.2",
43
- "version": "0.69.0-preview.2",
68
+ "date": "Wed, 03 Aug 2022 05:09:40 GMT",
69
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.157",
70
+ "version": "0.0.0-canary.157",
71
+ "comments": {
72
+ "prerelease": [
73
+ {
74
+ "author": "34109996+chiaramooney@users.noreply.github.com",
75
+ "package": "@office-iss/react-native-win32",
76
+ "commit": "d521a4704a276ec138073c14f5e37d0094fca7f2",
77
+ "comment": "Integrate 7/4"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@office-iss/react-native-win32",
82
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.48",
83
+ "commit": "a4e3b6ddea368f38b71b0a776b2952bd1653c44f"
84
+ }
85
+ ]
86
+ }
87
+ },
88
+ {
89
+ "date": "Tue, 12 Jul 2022 05:10:12 GMT",
90
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.156",
91
+ "version": "0.0.0-canary.156",
44
92
  "comments": {
45
93
  "prerelease": [
46
94
  {
47
95
  "author": "jthysell@microsoft.com",
48
96
  "package": "@office-iss/react-native-win32",
49
- "commit": "70ed2cf44501f1ac1951638154915bc14f073406",
50
- "comment": "Upgrade to @react-native-community/cli@8.0.0-alpha.6"
97
+ "commit": "24b8aafe312aece0f8d3d4049b80f94bc078080b",
98
+ "comment": "CG: Remove dependency on deprecated `hermes-engine` package"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ {
104
+ "date": "Fri, 17 Jun 2022 05:10:04 GMT",
105
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.155",
106
+ "version": "0.0.0-canary.155",
107
+ "comments": {
108
+ "prerelease": [
109
+ {
110
+ "author": "34109996+chiaramooney@users.noreply.github.com",
111
+ "package": "@office-iss/react-native-win32",
112
+ "commit": "4b2b9ced05f9fefa5faaa3c6ec582236ffbfd500",
113
+ "comment": "Integrate 6/14"
114
+ },
115
+ {
116
+ "author": "beachball",
117
+ "package": "@office-iss/react-native-win32",
118
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.47",
119
+ "commit": "4b2b9ced05f9fefa5faaa3c6ec582236ffbfd500"
120
+ }
121
+ ]
122
+ }
123
+ },
124
+ {
125
+ "date": "Fri, 10 Jun 2022 05:09:59 GMT",
126
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.154",
127
+ "version": "0.0.0-canary.154",
128
+ "comments": {
129
+ "prerelease": [
130
+ {
131
+ "author": "34109996+chiaramooney@users.noreply.github.com",
132
+ "package": "@office-iss/react-native-win32",
133
+ "commit": "72aca533cbb597d07e8ddc744f6dac9d260afbe2",
134
+ "comment": "Integrate 6/8"
135
+ },
136
+ {
137
+ "author": "beachball",
138
+ "package": "@office-iss/react-native-win32",
139
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.46",
140
+ "commit": "6688554a96e3df80111c2eec9c11279351ba0e5f"
51
141
  }
52
142
  ]
53
143
  }
54
144
  },
55
145
  {
56
- "date": "Wed, 04 May 2022 23:30:22 GMT",
57
- "tag": "@office-iss/react-native-win32_v0.69.0-preview.1",
58
- "version": "0.69.0-preview.1",
146
+ "date": "Thu, 09 Jun 2022 05:09:48 GMT",
147
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.153",
148
+ "version": "0.0.0-canary.153",
149
+ "comments": {
150
+ "prerelease": [
151
+ {
152
+ "author": "tatianakapos@microsoft.com",
153
+ "package": "@office-iss/react-native-win32",
154
+ "commit": "c8b1cae46b586d81561df23c2071bad15a3afa5b",
155
+ "comment": "integrate-6-3-22"
156
+ },
157
+ {
158
+ "author": "beachball",
159
+ "package": "@office-iss/react-native-win32",
160
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.45",
161
+ "commit": "72b5d9301e9878448c0d1a2bf8e3b238adfa9c1b"
162
+ }
163
+ ]
164
+ }
165
+ },
166
+ {
167
+ "date": "Sat, 04 Jun 2022 05:10:04 GMT",
168
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.152",
169
+ "version": "0.0.0-canary.152",
170
+ "comments": {
171
+ "prerelease": [
172
+ {
173
+ "author": "tatianakapos@microsoft.com",
174
+ "package": "@office-iss/react-native-win32",
175
+ "commit": "5dff9fb894d2e274467a37fcac5219eca8ad0ebd",
176
+ "comment": "integrate 5-16-22"
177
+ },
178
+ {
179
+ "author": "beachball",
180
+ "package": "@office-iss/react-native-win32",
181
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.44",
182
+ "commit": "5dff9fb894d2e274467a37fcac5219eca8ad0ebd"
183
+ },
184
+ {
185
+ "author": "beachball",
186
+ "package": "@office-iss/react-native-win32",
187
+ "comment": "Bump @rnw-scripts/just-task to v2.2.5",
188
+ "commit": "5dff9fb894d2e274467a37fcac5219eca8ad0ebd"
189
+ },
190
+ {
191
+ "author": "beachball",
192
+ "package": "@office-iss/react-native-win32",
193
+ "comment": "Bump react-native-platform-override to v1.6.13",
194
+ "commit": "5dff9fb894d2e274467a37fcac5219eca8ad0ebd"
195
+ }
196
+ ]
197
+ }
198
+ },
199
+ {
200
+ "date": "Thu, 12 May 2022 05:09:43 GMT",
201
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.151",
202
+ "version": "0.0.0-canary.151",
203
+ "comments": {
204
+ "prerelease": [
205
+ {
206
+ "author": "ngerlem@microsoft.com",
207
+ "package": "@office-iss/react-native-win32",
208
+ "commit": "edf2bf35d8cba11571bb5938fc0f37044e5606d5",
209
+ "comment": "Build/dependency fixes"
210
+ },
211
+ {
212
+ "author": "beachball",
213
+ "package": "@office-iss/react-native-win32",
214
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.43",
215
+ "commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
216
+ },
217
+ {
218
+ "author": "beachball",
219
+ "package": "@office-iss/react-native-win32",
220
+ "comment": "Bump @rnw-scripts/eslint-config to v1.1.13",
221
+ "commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
222
+ },
223
+ {
224
+ "author": "beachball",
225
+ "package": "@office-iss/react-native-win32",
226
+ "comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.0.7",
227
+ "commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
228
+ },
229
+ {
230
+ "author": "beachball",
231
+ "package": "@office-iss/react-native-win32",
232
+ "comment": "Bump @rnw-scripts/just-task to v2.2.4",
233
+ "commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
234
+ },
235
+ {
236
+ "author": "beachball",
237
+ "package": "@office-iss/react-native-win32",
238
+ "comment": "Bump react-native-platform-override to v1.6.12",
239
+ "commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
240
+ }
241
+ ]
242
+ }
243
+ },
244
+ {
245
+ "date": "Wed, 11 May 2022 05:08:51 GMT",
246
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.150",
247
+ "version": "0.0.0-canary.150",
59
248
  "comments": {
60
249
  "prerelease": [
61
250
  {
62
251
  "author": "jthysell@microsoft.com",
63
252
  "package": "@office-iss/react-native-win32",
64
- "commit": "460c63a1d225ae27c0ca64a4ef0d21ea477e546b",
65
- "comment": "Promote 0.69 to preview"
253
+ "commit": "601ce5567434a9e7b2dac151d45d641f68c7c0a4",
254
+ "comment": "Upgrade to @react-native-community/cli@8.0.0-alpha.6"
255
+ }
256
+ ]
257
+ }
258
+ },
259
+ {
260
+ "date": "Tue, 10 May 2022 05:08:46 GMT",
261
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.149",
262
+ "version": "0.0.0-canary.149",
263
+ "comments": {
264
+ "prerelease": [
265
+ {
266
+ "author": "tatianakapos@microsoft.com",
267
+ "package": "@office-iss/react-native-win32",
268
+ "commit": "69494f5f087d34b14a789967783fd4b3c929d40a",
269
+ "comment": "integrate 5-1-22"
66
270
  },
67
271
  {
68
272
  "author": "beachball",
69
273
  "package": "@office-iss/react-native-win32",
70
- "comment": "Bump @react-native-windows/virtualized-list to v0.69.0-preview.1",
71
- "commit": "4ec3e5663977bb8a0079f362fd35e21cf39dc636"
274
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.42",
275
+ "commit": "75857a696c79a569bf47ac5917cd1d69009820b3"
72
276
  }
73
277
  ]
74
278
  }
package/CHANGELOG.md CHANGED
@@ -1,42 +1,120 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 13 Jun 2022 15:10:29 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 23 Aug 2022 23:36:27 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.69.0-preview.4
7
+ ## 0.70.0-preview.2
8
8
 
9
- Mon, 13 Jun 2022 15:10:29 GMT
9
+ Tue, 23 Aug 2022 23:36:27 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Integrate RC6 (34109996+chiaramooney@users.noreply.github.com)
14
- - Bump @react-native-windows/virtualized-list to v0.69.0-preview.3
13
+ - Resolve Conflicts (34109996+chiaramooney@users.noreply.github.com)
14
+ - Bump @react-native-windows/virtualized-list to v0.70.0-preview.2
15
15
 
16
- ## 0.69.0-preview.3
16
+ ## 0.70.0-preview.1
17
17
 
18
- Mon, 06 Jun 2022 15:09:03 GMT
18
+ Mon, 22 Aug 2022 20:20:06 GMT
19
19
 
20
20
  ### Changes
21
21
 
22
- - Bump @react-native-windows/virtualized-list to v0.69.0-preview.2
22
+ - Promote 0.70 to preview (34109996+chiaramooney@users.noreply.github.com)
23
+ - Bump @react-native-windows/virtualized-list to v0.70.0-preview.1
23
24
 
24
- ## 0.69.0-preview.2
25
+ ## 0.0.0-canary.158
25
26
 
26
- Mon, 16 May 2022 15:09:01 GMT
27
+ Sat, 20 Aug 2022 05:08:53 GMT
28
+
29
+ ### Changes
30
+
31
+ - Integrate 7/14 (34109996+chiaramooney@users.noreply.github.com)
32
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.49
33
+
34
+ ## 0.0.0-canary.157
35
+
36
+ Wed, 03 Aug 2022 05:09:40 GMT
37
+
38
+ ### Changes
39
+
40
+ - Integrate 7/4 (34109996+chiaramooney@users.noreply.github.com)
41
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.48
42
+
43
+ ## 0.0.0-canary.156
44
+
45
+ Tue, 12 Jul 2022 05:10:12 GMT
46
+
47
+ ### Changes
48
+
49
+ - CG: Remove dependency on deprecated `hermes-engine` package (jthysell@microsoft.com)
50
+
51
+ ## 0.0.0-canary.155
52
+
53
+ Fri, 17 Jun 2022 05:10:04 GMT
54
+
55
+ ### Changes
56
+
57
+ - Integrate 6/14 (34109996+chiaramooney@users.noreply.github.com)
58
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.47
59
+
60
+ ## 0.0.0-canary.154
61
+
62
+ Fri, 10 Jun 2022 05:09:59 GMT
63
+
64
+ ### Changes
65
+
66
+ - Integrate 6/8 (34109996+chiaramooney@users.noreply.github.com)
67
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.46
68
+
69
+ ## 0.0.0-canary.153
70
+
71
+ Thu, 09 Jun 2022 05:09:48 GMT
72
+
73
+ ### Changes
74
+
75
+ - integrate-6-3-22 (tatianakapos@microsoft.com)
76
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.45
77
+
78
+ ## 0.0.0-canary.152
79
+
80
+ Sat, 04 Jun 2022 05:10:04 GMT
81
+
82
+ ### Changes
83
+
84
+ - integrate 5-16-22 (tatianakapos@microsoft.com)
85
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.44
86
+ - Bump @rnw-scripts/just-task to v2.2.5
87
+ - Bump react-native-platform-override to v1.6.13
88
+
89
+ ## 0.0.0-canary.151
90
+
91
+ Thu, 12 May 2022 05:09:43 GMT
92
+
93
+ ### Changes
94
+
95
+ - Build/dependency fixes (ngerlem@microsoft.com)
96
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.43
97
+ - Bump @rnw-scripts/eslint-config to v1.1.13
98
+ - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.0.7
99
+ - Bump @rnw-scripts/just-task to v2.2.4
100
+ - Bump react-native-platform-override to v1.6.12
101
+
102
+ ## 0.0.0-canary.150
103
+
104
+ Wed, 11 May 2022 05:08:51 GMT
27
105
 
28
106
  ### Changes
29
107
 
30
108
  - Upgrade to @react-native-community/cli@8.0.0-alpha.6 (jthysell@microsoft.com)
31
109
 
32
- ## 0.69.0-preview.1
110
+ ## 0.0.0-canary.149
33
111
 
34
- Wed, 04 May 2022 23:30:22 GMT
112
+ Tue, 10 May 2022 05:08:46 GMT
35
113
 
36
114
  ### Changes
37
115
 
38
- - Promote 0.69 to preview (jthysell@microsoft.com)
39
- - Bump @react-native-windows/virtualized-list to v0.69.0-preview.1
116
+ - integrate 5-1-22 (tatianakapos@microsoft.com)
117
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.42
40
118
 
41
119
  ## 0.0.0-canary.148
42
120
 
@@ -33,7 +33,7 @@ const VAL_MERGE_EXPECT = {foo: 1, bar: {hoo: 2, boo: 1}, baz: 2, moo: {a: 3}};
33
33
  let done = (result: ?boolean) => {};
34
34
  let updateMessage = (message: string) => {};
35
35
 
36
- function runTestCase(description: string, fn) {
36
+ function runTestCase(description: string, fn: () => void) {
37
37
  updateMessage(description);
38
38
  fn();
39
39
  }
@@ -61,7 +61,20 @@ function stringify(
61
61
  return JSON.stringify(value);
62
62
  }
63
63
 
64
- function expectEqual(lhs, rhs, testname: string) {
64
+ function expectEqual(
65
+ lhs: ?(any | string | Array<Array<string>>),
66
+ rhs:
67
+ | null
68
+ | string
69
+ | {
70
+ bar: {boo: number, hoo: number},
71
+ baz: number,
72
+ foo: number,
73
+ moo: {a: number},
74
+ }
75
+ | Array<Array<string>>,
76
+ testname: string,
77
+ ) {
65
78
  expectTrue(
66
79
  !deepDiffer(lhs, rhs),
67
80
  'Error in test ' +
@@ -73,7 +86,10 @@ function expectEqual(lhs, rhs, testname: string) {
73
86
  );
74
87
  }
75
88
 
76
- function expectAsyncNoError(place, err) {
89
+ function expectAsyncNoError(
90
+ place: string,
91
+ err: ?(Error | string | Array<Error>),
92
+ ) {
77
93
  if (err instanceof Error) {
78
94
  err = err.message;
79
95
  }
@@ -207,7 +223,7 @@ class AsyncStorageTest extends React.Component<{...}, $FlowFixMeState> {
207
223
  this.setState({done: true}, () => {
208
224
  TestModule.markTestCompleted();
209
225
  });
210
- updateMessage = msg => {
226
+ updateMessage = (msg: string) => {
211
227
  this.setState({messages: this.state.messages.concat('\n' + msg)});
212
228
  DEBUG && console.log(msg);
213
229
  };
@@ -1,4 +1,4 @@
1
- load("@fbsource//tools/build_defs:js_glob.bzl", "js_glob")
1
+ load("@fbsource//tools/build_defs:js_library_glob.bzl", "js_library_glob")
2
2
  load("@fbsource//tools/build_defs/oss:metro_defs.bzl", "rn_library")
3
3
 
4
4
  # This file was generated by running
@@ -6,7 +6,7 @@ load("@fbsource//tools/build_defs/oss:metro_defs.bzl", "rn_library")
6
6
 
7
7
  rn_library(
8
8
  name = "IntegrationTests",
9
- srcs = js_glob(
9
+ srcs = js_library_glob(
10
10
  [
11
11
  "**/*",
12
12
  ],
@@ -19,7 +19,7 @@ import type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';
19
19
 
20
20
  const deepDiffer = require('react-native/Libraries/Utilities/differ/deepDiffer');
21
21
 
22
- function debug(...args) {
22
+ function debug(...args: Array<void | Layout | string>) {
23
23
  // console.log.apply(null, arguments);
24
24
  }
25
25
 
@@ -119,16 +119,19 @@ class LayoutEventsTest extends React.Component<Props, State> {
119
119
  }
120
120
 
121
121
  onViewLayout: (e: LayoutEvent) => void = (e: LayoutEvent) => {
122
+ // $FlowFixMe[incompatible-call]
122
123
  debug('received view layout event\n', e.nativeEvent);
123
124
  this.setState({viewLayout: e.nativeEvent.layout}, this.checkLayout);
124
125
  };
125
126
 
126
127
  onTextLayout: (e: LayoutEvent) => void = (e: LayoutEvent) => {
128
+ // $FlowFixMe[incompatible-call]
127
129
  debug('received text layout event\n', e.nativeEvent);
128
130
  this.setState({textLayout: e.nativeEvent.layout}, this.checkLayout);
129
131
  };
130
132
 
131
133
  onImageLayout: (e: LayoutEvent) => void = (e: LayoutEvent) => {
134
+ // $FlowFixMe[incompatible-call]
132
135
  debug('received image layout event\n', e.nativeEvent);
133
136
  this.setState({imageLayout: e.nativeEvent.layout}, this.checkLayout);
134
137
  };
@@ -1,18 +1,12 @@
1
1
  #!/bin/bash
2
-
3
2
  # Copyright (c) Meta Platforms, Inc. and affiliates.
4
3
  #
5
4
  # This source code is licensed under the MIT license found in the
6
5
  # LICENSE file in the root directory of this source tree.
7
6
 
8
- # Set terminal title
9
- echo -en "\033]0;Web Socket Test Server\a"
10
- clear
11
-
12
7
  THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
13
- pushd "$THIS_DIR"
8
+ pushd "$THIS_DIR" || exit
14
9
  ./websocket_integration_test_server.js
15
- popd
10
+ popd || exit
16
11
 
17
- echo "Process terminated. Press <enter> to close the window"
18
- read
12
+ echo "Process terminated."
@@ -8,8 +8,9 @@
8
8
  * @flow
9
9
  */
10
10
 
11
- import Platform from '../Utilities/Platform';
12
11
  import type {DialogOptions} from '../NativeModules/specs/NativeDialogManagerAndroid';
12
+
13
+ import Platform from '../Utilities/Platform';
13
14
  import RCTAlertManager from './RCTAlertManager';
14
15
 
15
16
  export type AlertType =
@@ -27,6 +28,7 @@ export type Buttons = Array<{
27
28
 
28
29
  type Options = {
29
30
  cancelable?: ?boolean,
31
+ userInterfaceStyle?: 'unspecified' | 'light' | 'dark',
30
32
  onDismiss?: ?() => void,
31
33
  ...
32
34
  };
@@ -44,7 +46,15 @@ class Alert {
44
46
  options?: Options,
45
47
  ): void {
46
48
  if (Platform.OS === 'ios') {
47
- Alert.prompt(title, message, buttons, 'default');
49
+ Alert.prompt(
50
+ title,
51
+ message,
52
+ buttons,
53
+ 'default',
54
+ undefined,
55
+ undefined,
56
+ options,
57
+ );
48
58
  } else if (Platform.OS === 'android') {
49
59
  const NativeDialogManagerAndroid =
50
60
  require('../NativeModules/specs/NativeDialogManagerAndroid').default;
@@ -82,6 +92,8 @@ class Alert {
82
92
  config.buttonPositive = buttonPositive.text || defaultPositiveText;
83
93
  }
84
94
 
95
+ /* $FlowFixMe[missing-local-annot] The type annotation(s) required by
96
+ * Flow's LTI update could not be added via codemod */
85
97
  const onAction = (action, buttonKey) => {
86
98
  if (action === constants.buttonClicked) {
87
99
  if (buttonKey === constants.buttonNeutral) {
@@ -95,7 +107,7 @@ class Alert {
95
107
  options && options.onDismiss && options.onDismiss();
96
108
  }
97
109
  };
98
- const onError = errorMessage => console.warn(errorMessage);
110
+ const onError = (errorMessage: string) => console.warn(errorMessage);
99
111
  NativeDialogManagerAndroid.showAlert(config, onError, onAction);
100
112
  }
101
113
  }
@@ -107,6 +119,7 @@ class Alert {
107
119
  type?: ?AlertType = 'plain-text',
108
120
  defaultValue?: string,
109
121
  keyboardType?: string,
122
+ options?: Options,
110
123
  ): void {
111
124
  if (Platform.OS === 'ios') {
112
125
  let callbacks = [];
@@ -124,7 +137,7 @@ class Alert {
124
137
  destructiveButtonKey = String(index);
125
138
  }
126
139
  if (btn.text || index < (callbackOrButtons || []).length - 1) {
127
- const btnDef = {};
140
+ const btnDef: {[number]: string} = {};
128
141
  btnDef[index] = btn.text || '';
129
142
  buttons.push(btnDef);
130
143
  }
@@ -141,6 +154,7 @@ class Alert {
141
154
  cancelButtonKey,
142
155
  destructiveButtonKey,
143
156
  keyboardType,
157
+ userInterfaceStyle: options?.userInterfaceStyle || undefined,
144
158
  },
145
159
  (id, value) => {
146
160
  const cb = callbacks[id];