@office-iss/react-native-win32 0.69.0 → 0.70.0-preview.1
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.
- package/.eslintrc.js +0 -1
- package/.flowconfig +5 -1
- package/CHANGELOG.json +194 -32
- package/CHANGELOG.md +79 -19
- package/IntegrationTests/AsyncStorageTest.js +20 -4
- package/IntegrationTests/BUCK +2 -2
- package/IntegrationTests/LayoutEventsTest.js +4 -1
- package/IntegrationTests/{launchWebSocketServer.command → launchWebSocketServer.sh} +3 -9
- package/Libraries/Alert/Alert.js +18 -4
- package/Libraries/Alert/Alert.win32.js +2 -0
- package/Libraries/Alert/NativeAlertManager.js +1 -0
- package/Libraries/Animated/Animated.js +2 -2
- package/Libraries/Animated/AnimatedEvent.js +7 -4
- package/Libraries/Animated/AnimatedImplementation.js +17 -3
- package/Libraries/Animated/AnimatedMock.js +7 -2
- package/Libraries/Animated/NativeAnimatedHelper.js +220 -95
- package/Libraries/Animated/NativeAnimatedModule.js +3 -0
- package/Libraries/Animated/NativeAnimatedTurboModule.js +3 -0
- package/Libraries/Animated/animations/SpringAnimation.js +3 -3
- package/Libraries/Animated/animations/TimingAnimation.js +3 -3
- package/Libraries/Animated/createAnimatedComponent.js +8 -1
- package/Libraries/Animated/nodes/AnimatedAddition.js +3 -1
- package/Libraries/Animated/nodes/AnimatedColor.js +50 -29
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +3 -1
- package/Libraries/Animated/nodes/AnimatedDivision.js +3 -1
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +22 -21
- package/Libraries/Animated/nodes/AnimatedModulo.js +3 -1
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +3 -2
- package/Libraries/Animated/nodes/AnimatedProps.js +20 -12
- package/Libraries/Animated/nodes/AnimatedStyle.js +19 -16
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +3 -1
- package/Libraries/Animated/nodes/AnimatedTransform.js +5 -5
- package/Libraries/Animated/nodes/AnimatedValue.js +14 -5
- package/Libraries/Animated/nodes/AnimatedValueXY.js +28 -1
- package/Libraries/Animated/useAnimatedProps.js +1 -0
- package/Libraries/AppState/AppState.js +0 -32
- package/Libraries/BatchedBridge/MessageQueue.js +21 -15
- package/Libraries/BatchedBridge/NativeModules.js +3 -4
- package/Libraries/Blob/FileReader.js +0 -6
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +0 -20
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +0 -20
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -0
- package/Libraries/Components/Keyboard/Keyboard.js +0 -11
- package/Libraries/Components/Pressable/Pressable.js +2 -0
- package/Libraries/Components/Pressable/Pressable.win32.js +2 -0
- package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +1 -3
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +3 -30
- package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +4 -32
- package/Libraries/Components/ScrollView/ScrollView.js +13 -11
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +5 -3
- package/Libraries/Components/StatusBar/StatusBar.js +10 -7
- package/Libraries/Components/TextInput/InputAccessoryView.js +14 -13
- package/Libraries/Components/TextInput/TextInput.js +12 -2
- package/Libraries/Components/Touchable/PooledClass.js +16 -4
- package/Libraries/Components/Touchable/Touchable.js +50 -1
- package/Libraries/Components/Touchable/Touchable.win32.js +972 -0
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +6 -2
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +0 -7
- package/Libraries/Components/View/ViewPropTypes.js +3 -8
- package/Libraries/Components/View/ViewPropTypes.win32.js +3 -8
- package/Libraries/Core/ExceptionsManager.js +2 -0
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/Timers/JSTimers.js +2 -2
- package/Libraries/Core/polyfillPromise.js +0 -32
- package/Libraries/Core/setUpBatchedBridge.js +5 -1
- package/Libraries/Core/setUpPerformance.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.js +0 -13
- package/Libraries/Image/AssetSourceResolver.js +2 -2
- package/Libraries/Image/Image.android.js +5 -3
- package/Libraries/Image/Image.ios.js +6 -3
- package/Libraries/Image/Image.win32.js +6 -3
- package/Libraries/Image/ImageSource.js +7 -5
- package/Libraries/Inspector/ElementBox.js +2 -2
- package/Libraries/Inspector/NetworkOverlay.js +13 -8
- package/Libraries/Interaction/PanResponder.js +16 -14
- package/Libraries/Linking/Linking.js +0 -11
- package/Libraries/Lists/FlatList.js +3 -2
- package/Libraries/Lists/SectionList.js +2 -0
- package/Libraries/Lists/ViewabilityHelper.js +7 -3
- package/Libraries/Lists/VirtualizeUtils.js +33 -20
- package/Libraries/Lists/VirtualizedList.js +93 -47
- package/Libraries/Lists/VirtualizedListContext.js +1 -0
- package/Libraries/Lists/VirtualizedSectionList.js +14 -9
- package/Libraries/Lists/__tests__/VirtualizeUtils-test.js +19 -18
- package/Libraries/Lists/__tests__/VirtualizedList-test.js +10 -6
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +1 -1
- package/Libraries/LogBox/LogBox.js +3 -1
- package/Libraries/LogBox/UI/AnsiHighlight.js +2 -0
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +3 -0
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +0 -3
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +8 -3
- package/Libraries/NativeComponent/BaseViewConfig.android.js +9 -18
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +26 -12
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +26 -12
- package/Libraries/Network/XMLHttpRequest.js +9 -11
- package/Libraries/Performance/PureComponentDebug.js +1 -0
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +9 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +16 -0
- package/Libraries/Pressability/Pressability.js +26 -16
- package/Libraries/Pressability/Pressability.win32.js +26 -16
- package/Libraries/Promise.js +0 -1
- package/Libraries/ReactNative/AppRegistry.js +16 -13
- package/Libraries/ReactNative/BridgelessUIManager.js +2 -0
- package/Libraries/ReactNative/PaperUIManager.js +9 -9
- package/Libraries/ReactNative/PaperUIManager.win32.js +7 -8
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +12 -0
- package/Libraries/ReactNative/ReactNativeRuntimeDiagnostics.js +68 -0
- package/Libraries/ReactNative/getNativeComponentAttributes.js +6 -7
- package/Libraries/ReactNative/renderApplication.js +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +4443 -3615
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +1496 -1170
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +1694 -1356
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +4439 -3588
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1583 -1249
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1719 -1372
- package/Libraries/Storage/AsyncStorage.js +7 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +8 -0
- package/Libraries/StyleSheet/flattenStyle.js +1 -1
- package/Libraries/StyleSheet/processTransform.js +2 -0
- package/Libraries/StyleSheet/splitLayoutProps.js +2 -0
- package/Libraries/Text/Text.js +15 -7
- package/Libraries/Types/CoreEventTypes.js +137 -11
- package/Libraries/Types/CoreEventTypes.win32.js +147 -22
- package/Libraries/Utilities/Dimensions.js +0 -13
- package/Libraries/Utilities/Dimensions.win32.js +0 -9
- package/Libraries/Utilities/HMRClient.js +3 -3
- package/Libraries/Utilities/Platform.ios.js +0 -7
- package/Libraries/Utilities/ReactNativeTestTools.js +3 -1
- package/Libraries/Utilities/codegenNativeCommands.js +11 -2
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +2 -0
- package/Libraries/Utilities/stringifySafe.js +3 -1
- package/Libraries/Utilities/truncate.js +1 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -2
- package/Libraries/Vibration/Vibration.js +1 -1
- package/Libraries/WebSocket/WebSocket.js +1 -0
- package/Libraries/vendor/emitter/EventEmitter.js +105 -12
- package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +73 -117
- package/flow/JSITimerInternalType.js +30 -0
- package/jest/assetFileTransformer.js +3 -2
- package/jest/setup.js +4 -0
- package/jest.config.js +0 -1
- package/overrides.json +23 -16
- package/package.json +23 -24
- package/rntypes/index.d.ts +0 -1
- package/src/rntypes/index.d.ts +0 -1
- package/Libraries/vendor/emitter/EventSubscription.js +0 -19
- package/Libraries/vendor/emitter/_EmitterSubscription.js +0 -62
- package/Libraries/vendor/emitter/_EventEmitter.js +0 -184
- package/Libraries/vendor/emitter/_EventSubscription.js +0 -45
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +0 -108
- package/jest/preprocessor.js +0 -40
- package/jest/preprocessor_DO_NOT_USE.js +0 -122
- package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizeUtils-test.js.snap +0 -3
package/.eslintrc.js
CHANGED
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.
|
|
127
|
+
^0.182.0
|
package/CHANGELOG.json
CHANGED
|
@@ -2,94 +2,256 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
6
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
7
|
-
"version": "0.
|
|
5
|
+
"date": "Mon, 22 Aug 2022 20:19:25 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.70.0-preview.1",
|
|
7
|
+
"version": "0.70.0-preview.1",
|
|
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": "
|
|
14
|
-
"comment": "
|
|
13
|
+
"commit": "b4acd4f5d8015a953cde246e1f612f44a0767e97",
|
|
14
|
+
"comment": "Promote 0.70 to preview"
|
|
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.
|
|
20
|
-
"commit": "
|
|
19
|
+
"comment": "Bump @react-native-windows/virtualized-list to v0.70.0-preview.1",
|
|
20
|
+
"commit": "a5034fc1c5336413a381652b8edefc1b4ca76832"
|
|
21
21
|
}
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"date": "
|
|
27
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
28
|
-
"version": "0.
|
|
26
|
+
"date": "Sat, 20 Aug 2022 05:08:53 GMT",
|
|
27
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.158",
|
|
28
|
+
"version": "0.0.0-canary.158",
|
|
29
29
|
"comments": {
|
|
30
30
|
"prerelease": [
|
|
31
31
|
{
|
|
32
32
|
"author": "34109996+chiaramooney@users.noreply.github.com",
|
|
33
33
|
"package": "@office-iss/react-native-win32",
|
|
34
|
-
"commit": "
|
|
35
|
-
"comment": "Integrate
|
|
34
|
+
"commit": "409648078984fc75c56d990aa2c151f419131eb3",
|
|
35
|
+
"comment": "Integrate 7/14"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"author": "beachball",
|
|
39
39
|
"package": "@office-iss/react-native-win32",
|
|
40
|
-
"comment": "Bump @react-native-windows/virtualized-list to v0.
|
|
41
|
-
"commit": "
|
|
40
|
+
"comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.49",
|
|
41
|
+
"commit": "0a49d9c313261cae2876122cd28bb1110219fb60"
|
|
42
42
|
}
|
|
43
43
|
]
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"date": "
|
|
48
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
49
|
-
"version": "0.
|
|
47
|
+
"date": "Wed, 03 Aug 2022 05:09:40 GMT",
|
|
48
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.157",
|
|
49
|
+
"version": "0.0.0-canary.157",
|
|
50
50
|
"comments": {
|
|
51
51
|
"prerelease": [
|
|
52
|
+
{
|
|
53
|
+
"author": "34109996+chiaramooney@users.noreply.github.com",
|
|
54
|
+
"package": "@office-iss/react-native-win32",
|
|
55
|
+
"commit": "d521a4704a276ec138073c14f5e37d0094fca7f2",
|
|
56
|
+
"comment": "Integrate 7/4"
|
|
57
|
+
},
|
|
52
58
|
{
|
|
53
59
|
"author": "beachball",
|
|
54
60
|
"package": "@office-iss/react-native-win32",
|
|
55
|
-
"comment": "Bump @react-native-windows/virtualized-list to v0.
|
|
56
|
-
"commit": "
|
|
61
|
+
"comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.48",
|
|
62
|
+
"commit": "a4e3b6ddea368f38b71b0a776b2952bd1653c44f"
|
|
57
63
|
}
|
|
58
64
|
]
|
|
59
65
|
}
|
|
60
66
|
},
|
|
61
67
|
{
|
|
62
|
-
"date": "
|
|
63
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
64
|
-
"version": "0.
|
|
68
|
+
"date": "Tue, 12 Jul 2022 05:10:12 GMT",
|
|
69
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.156",
|
|
70
|
+
"version": "0.0.0-canary.156",
|
|
65
71
|
"comments": {
|
|
66
72
|
"prerelease": [
|
|
67
73
|
{
|
|
68
74
|
"author": "jthysell@microsoft.com",
|
|
69
75
|
"package": "@office-iss/react-native-win32",
|
|
70
|
-
"commit": "
|
|
71
|
-
"comment": "
|
|
76
|
+
"commit": "24b8aafe312aece0f8d3d4049b80f94bc078080b",
|
|
77
|
+
"comment": "CG: Remove dependency on deprecated `hermes-engine` package"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"date": "Fri, 17 Jun 2022 05:10:04 GMT",
|
|
84
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.155",
|
|
85
|
+
"version": "0.0.0-canary.155",
|
|
86
|
+
"comments": {
|
|
87
|
+
"prerelease": [
|
|
88
|
+
{
|
|
89
|
+
"author": "34109996+chiaramooney@users.noreply.github.com",
|
|
90
|
+
"package": "@office-iss/react-native-win32",
|
|
91
|
+
"commit": "4b2b9ced05f9fefa5faaa3c6ec582236ffbfd500",
|
|
92
|
+
"comment": "Integrate 6/14"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"author": "beachball",
|
|
96
|
+
"package": "@office-iss/react-native-win32",
|
|
97
|
+
"comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.47",
|
|
98
|
+
"commit": "4b2b9ced05f9fefa5faaa3c6ec582236ffbfd500"
|
|
72
99
|
}
|
|
73
100
|
]
|
|
74
101
|
}
|
|
75
102
|
},
|
|
76
103
|
{
|
|
77
|
-
"date": "
|
|
78
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
79
|
-
"version": "0.
|
|
104
|
+
"date": "Fri, 10 Jun 2022 05:09:59 GMT",
|
|
105
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.154",
|
|
106
|
+
"version": "0.0.0-canary.154",
|
|
107
|
+
"comments": {
|
|
108
|
+
"prerelease": [
|
|
109
|
+
{
|
|
110
|
+
"author": "34109996+chiaramooney@users.noreply.github.com",
|
|
111
|
+
"package": "@office-iss/react-native-win32",
|
|
112
|
+
"commit": "72aca533cbb597d07e8ddc744f6dac9d260afbe2",
|
|
113
|
+
"comment": "Integrate 6/8"
|
|
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.46",
|
|
119
|
+
"commit": "6688554a96e3df80111c2eec9c11279351ba0e5f"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"date": "Thu, 09 Jun 2022 05:09:48 GMT",
|
|
126
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.153",
|
|
127
|
+
"version": "0.0.0-canary.153",
|
|
128
|
+
"comments": {
|
|
129
|
+
"prerelease": [
|
|
130
|
+
{
|
|
131
|
+
"author": "tatianakapos@microsoft.com",
|
|
132
|
+
"package": "@office-iss/react-native-win32",
|
|
133
|
+
"commit": "c8b1cae46b586d81561df23c2071bad15a3afa5b",
|
|
134
|
+
"comment": "integrate-6-3-22"
|
|
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.45",
|
|
140
|
+
"commit": "72b5d9301e9878448c0d1a2bf8e3b238adfa9c1b"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"date": "Sat, 04 Jun 2022 05:10:04 GMT",
|
|
147
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.152",
|
|
148
|
+
"version": "0.0.0-canary.152",
|
|
149
|
+
"comments": {
|
|
150
|
+
"prerelease": [
|
|
151
|
+
{
|
|
152
|
+
"author": "tatianakapos@microsoft.com",
|
|
153
|
+
"package": "@office-iss/react-native-win32",
|
|
154
|
+
"commit": "5dff9fb894d2e274467a37fcac5219eca8ad0ebd",
|
|
155
|
+
"comment": "integrate 5-16-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.44",
|
|
161
|
+
"commit": "5dff9fb894d2e274467a37fcac5219eca8ad0ebd"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"author": "beachball",
|
|
165
|
+
"package": "@office-iss/react-native-win32",
|
|
166
|
+
"comment": "Bump @rnw-scripts/just-task to v2.2.5",
|
|
167
|
+
"commit": "5dff9fb894d2e274467a37fcac5219eca8ad0ebd"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"author": "beachball",
|
|
171
|
+
"package": "@office-iss/react-native-win32",
|
|
172
|
+
"comment": "Bump react-native-platform-override to v1.6.13",
|
|
173
|
+
"commit": "5dff9fb894d2e274467a37fcac5219eca8ad0ebd"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"date": "Thu, 12 May 2022 05:09:43 GMT",
|
|
180
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.151",
|
|
181
|
+
"version": "0.0.0-canary.151",
|
|
182
|
+
"comments": {
|
|
183
|
+
"prerelease": [
|
|
184
|
+
{
|
|
185
|
+
"author": "ngerlem@microsoft.com",
|
|
186
|
+
"package": "@office-iss/react-native-win32",
|
|
187
|
+
"commit": "edf2bf35d8cba11571bb5938fc0f37044e5606d5",
|
|
188
|
+
"comment": "Build/dependency fixes"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"author": "beachball",
|
|
192
|
+
"package": "@office-iss/react-native-win32",
|
|
193
|
+
"comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.43",
|
|
194
|
+
"commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"author": "beachball",
|
|
198
|
+
"package": "@office-iss/react-native-win32",
|
|
199
|
+
"comment": "Bump @rnw-scripts/eslint-config to v1.1.13",
|
|
200
|
+
"commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"author": "beachball",
|
|
204
|
+
"package": "@office-iss/react-native-win32",
|
|
205
|
+
"comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.0.7",
|
|
206
|
+
"commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"author": "beachball",
|
|
210
|
+
"package": "@office-iss/react-native-win32",
|
|
211
|
+
"comment": "Bump @rnw-scripts/just-task to v2.2.4",
|
|
212
|
+
"commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"author": "beachball",
|
|
216
|
+
"package": "@office-iss/react-native-win32",
|
|
217
|
+
"comment": "Bump react-native-platform-override to v1.6.12",
|
|
218
|
+
"commit": "a0ce0770a6161c9a8505faa6857df80e3c7c6ad0"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"date": "Wed, 11 May 2022 05:08:51 GMT",
|
|
225
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.150",
|
|
226
|
+
"version": "0.0.0-canary.150",
|
|
80
227
|
"comments": {
|
|
81
228
|
"prerelease": [
|
|
82
229
|
{
|
|
83
230
|
"author": "jthysell@microsoft.com",
|
|
84
231
|
"package": "@office-iss/react-native-win32",
|
|
85
|
-
"commit": "
|
|
86
|
-
"comment": "
|
|
232
|
+
"commit": "601ce5567434a9e7b2dac151d45d641f68c7c0a4",
|
|
233
|
+
"comment": "Upgrade to @react-native-community/cli@8.0.0-alpha.6"
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"date": "Tue, 10 May 2022 05:08:46 GMT",
|
|
240
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.149",
|
|
241
|
+
"version": "0.0.0-canary.149",
|
|
242
|
+
"comments": {
|
|
243
|
+
"prerelease": [
|
|
244
|
+
{
|
|
245
|
+
"author": "tatianakapos@microsoft.com",
|
|
246
|
+
"package": "@office-iss/react-native-win32",
|
|
247
|
+
"commit": "69494f5f087d34b14a789967783fd4b3c929d40a",
|
|
248
|
+
"comment": "integrate 5-1-22"
|
|
87
249
|
},
|
|
88
250
|
{
|
|
89
251
|
"author": "beachball",
|
|
90
252
|
"package": "@office-iss/react-native-win32",
|
|
91
|
-
"comment": "Bump @react-native-windows/virtualized-list to v0.
|
|
92
|
-
"commit": "
|
|
253
|
+
"comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.42",
|
|
254
|
+
"commit": "75857a696c79a569bf47ac5917cd1d69009820b3"
|
|
93
255
|
}
|
|
94
256
|
]
|
|
95
257
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,51 +1,111 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on Mon,
|
|
3
|
+
This log was last generated on Mon, 22 Aug 2022 20:19:25 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.
|
|
7
|
+
## 0.70.0-preview.1
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 22 Aug 2022 20:19:25 GMT
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Changes
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
- Bump @react-native-windows/virtualized-list to v0.
|
|
13
|
+
- Promote 0.70 to preview (34109996+chiaramooney@users.noreply.github.com)
|
|
14
|
+
- Bump @react-native-windows/virtualized-list to v0.70.0-preview.1
|
|
15
15
|
|
|
16
|
-
## 0.
|
|
16
|
+
## 0.0.0-canary.158
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Sat, 20 Aug 2022 05:08:53 GMT
|
|
19
19
|
|
|
20
20
|
### Changes
|
|
21
21
|
|
|
22
|
-
- Integrate
|
|
23
|
-
- Bump @react-native-windows/virtualized-list to v0.
|
|
22
|
+
- Integrate 7/14 (34109996+chiaramooney@users.noreply.github.com)
|
|
23
|
+
- Bump @react-native-windows/virtualized-list to v0.0.0-canary.49
|
|
24
24
|
|
|
25
|
-
## 0.
|
|
25
|
+
## 0.0.0-canary.157
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Wed, 03 Aug 2022 05:09:40 GMT
|
|
28
28
|
|
|
29
29
|
### Changes
|
|
30
30
|
|
|
31
|
-
-
|
|
31
|
+
- Integrate 7/4 (34109996+chiaramooney@users.noreply.github.com)
|
|
32
|
+
- Bump @react-native-windows/virtualized-list to v0.0.0-canary.48
|
|
32
33
|
|
|
33
|
-
## 0.
|
|
34
|
+
## 0.0.0-canary.156
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
Tue, 12 Jul 2022 05:10:12 GMT
|
|
37
|
+
|
|
38
|
+
### Changes
|
|
39
|
+
|
|
40
|
+
- CG: Remove dependency on deprecated `hermes-engine` package (jthysell@microsoft.com)
|
|
41
|
+
|
|
42
|
+
## 0.0.0-canary.155
|
|
43
|
+
|
|
44
|
+
Fri, 17 Jun 2022 05:10:04 GMT
|
|
45
|
+
|
|
46
|
+
### Changes
|
|
47
|
+
|
|
48
|
+
- Integrate 6/14 (34109996+chiaramooney@users.noreply.github.com)
|
|
49
|
+
- Bump @react-native-windows/virtualized-list to v0.0.0-canary.47
|
|
50
|
+
|
|
51
|
+
## 0.0.0-canary.154
|
|
52
|
+
|
|
53
|
+
Fri, 10 Jun 2022 05:09:59 GMT
|
|
54
|
+
|
|
55
|
+
### Changes
|
|
56
|
+
|
|
57
|
+
- Integrate 6/8 (34109996+chiaramooney@users.noreply.github.com)
|
|
58
|
+
- Bump @react-native-windows/virtualized-list to v0.0.0-canary.46
|
|
59
|
+
|
|
60
|
+
## 0.0.0-canary.153
|
|
61
|
+
|
|
62
|
+
Thu, 09 Jun 2022 05:09:48 GMT
|
|
63
|
+
|
|
64
|
+
### Changes
|
|
65
|
+
|
|
66
|
+
- integrate-6-3-22 (tatianakapos@microsoft.com)
|
|
67
|
+
- Bump @react-native-windows/virtualized-list to v0.0.0-canary.45
|
|
68
|
+
|
|
69
|
+
## 0.0.0-canary.152
|
|
70
|
+
|
|
71
|
+
Sat, 04 Jun 2022 05:10:04 GMT
|
|
72
|
+
|
|
73
|
+
### Changes
|
|
74
|
+
|
|
75
|
+
- integrate 5-16-22 (tatianakapos@microsoft.com)
|
|
76
|
+
- Bump @react-native-windows/virtualized-list to v0.0.0-canary.44
|
|
77
|
+
- Bump @rnw-scripts/just-task to v2.2.5
|
|
78
|
+
- Bump react-native-platform-override to v1.6.13
|
|
79
|
+
|
|
80
|
+
## 0.0.0-canary.151
|
|
81
|
+
|
|
82
|
+
Thu, 12 May 2022 05:09:43 GMT
|
|
83
|
+
|
|
84
|
+
### Changes
|
|
85
|
+
|
|
86
|
+
- Build/dependency fixes (ngerlem@microsoft.com)
|
|
87
|
+
- Bump @react-native-windows/virtualized-list to v0.0.0-canary.43
|
|
88
|
+
- Bump @rnw-scripts/eslint-config to v1.1.13
|
|
89
|
+
- Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.0.7
|
|
90
|
+
- Bump @rnw-scripts/just-task to v2.2.4
|
|
91
|
+
- Bump react-native-platform-override to v1.6.12
|
|
92
|
+
|
|
93
|
+
## 0.0.0-canary.150
|
|
94
|
+
|
|
95
|
+
Wed, 11 May 2022 05:08:51 GMT
|
|
36
96
|
|
|
37
97
|
### Changes
|
|
38
98
|
|
|
39
99
|
- Upgrade to @react-native-community/cli@8.0.0-alpha.6 (jthysell@microsoft.com)
|
|
40
100
|
|
|
41
|
-
## 0.
|
|
101
|
+
## 0.0.0-canary.149
|
|
42
102
|
|
|
43
|
-
|
|
103
|
+
Tue, 10 May 2022 05:08:46 GMT
|
|
44
104
|
|
|
45
105
|
### Changes
|
|
46
106
|
|
|
47
|
-
-
|
|
48
|
-
- Bump @react-native-windows/virtualized-list to v0.
|
|
107
|
+
- integrate 5-1-22 (tatianakapos@microsoft.com)
|
|
108
|
+
- Bump @react-native-windows/virtualized-list to v0.0.0-canary.42
|
|
49
109
|
|
|
50
110
|
## 0.0.0-canary.148
|
|
51
111
|
|
|
@@ -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(
|
|
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(
|
|
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
|
};
|
package/IntegrationTests/BUCK
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
load("@fbsource//tools/build_defs:
|
|
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 =
|
|
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.
|
|
18
|
-
read
|
|
12
|
+
echo "Process terminated."
|
package/Libraries/Alert/Alert.js
CHANGED
|
@@ -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(
|
|
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];
|
|
@@ -28,6 +28,7 @@ export type Buttons = Array<{
|
|
|
28
28
|
|
|
29
29
|
type Options = {
|
|
30
30
|
cancelable?: ?boolean,
|
|
31
|
+
userInterfaceStyle?: 'unspecified' | 'light' | 'dark',
|
|
31
32
|
onDismiss?: ?() => void,
|
|
32
33
|
...
|
|
33
34
|
};
|
|
@@ -80,6 +81,7 @@ class Alert {
|
|
|
80
81
|
type?: ?AlertType = 'plain-text',
|
|
81
82
|
defaultValue?: string,
|
|
82
83
|
keyboardType?: string,
|
|
84
|
+
options?: Options,
|
|
83
85
|
): void {
|
|
84
86
|
// [Windows
|
|
85
87
|
throw new Error(
|