@office-iss/react-native-win32 0.66.4 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/.eslintignore +2 -0
  2. package/.flowconfig +1 -1
  3. package/CHANGELOG.json +228 -46
  4. package/CHANGELOG.md +102 -25
  5. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
  6. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
  7. package/Libraries/Animated/AnimatedEvent.js +23 -4
  8. package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
  9. package/Libraries/Animated/components/AnimatedImage.js +3 -3
  10. package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
  11. package/Libraries/Animated/components/AnimatedText.js +3 -3
  12. package/Libraries/Animated/components/AnimatedView.js +1 -3
  13. package/Libraries/Animated/createAnimatedComponent.js +3 -34
  14. package/Libraries/Components/Button/ButtonWin32.js +2 -2
  15. package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
  16. package/Libraries/Components/Button.js +3 -0
  17. package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
  18. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
  19. package/Libraries/Components/EnterString.win32.js +3 -3
  20. package/Libraries/Components/EnterString.win32.js.map +1 -1
  21. package/Libraries/Components/Keyboard/Keyboard.js +2 -2
  22. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
  23. package/Libraries/Components/ScrollView/ScrollView.js +17 -16
  24. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
  25. package/Libraries/Components/Text/Tests/TextWin32Test.d.ts +0 -1
  26. package/Libraries/Components/Text/TextWin32.Props.d.ts +2 -2
  27. package/Libraries/Components/Text/TextWin32.Props.js.map +1 -1
  28. package/Libraries/Components/Text/TextWin32.js +1 -1
  29. package/Libraries/Components/Text/TextWin32.js.map +1 -1
  30. package/Libraries/Components/TextInput/Tests/TextInputTest.d.ts +0 -1
  31. package/Libraries/Components/TextInput/TextInput.win32.js +6 -6
  32. package/Libraries/Components/TextInput/TextInput.win32.js.map +1 -1
  33. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.d.ts +0 -1
  34. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js +1 -1
  35. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
  36. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +2 -2
  37. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js.map +1 -1
  38. package/Libraries/Components/Touchable/TouchableWin32.js +2 -2
  39. package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
  40. package/Libraries/Components/View/Tests/ViewWin32Test.d.ts +0 -1
  41. package/Libraries/Components/View/View.js +1 -1
  42. package/Libraries/Components/View/View.win32.js +1 -1
  43. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  44. package/Libraries/Components/View/ViewWin32.Props.d.ts +3 -6
  45. package/Libraries/Components/View/ViewWin32.Props.js.map +1 -1
  46. package/Libraries/Components/View/ViewWin32.js +5 -5
  47. package/Libraries/Components/View/ViewWin32.js.map +1 -1
  48. package/Libraries/Core/ExceptionsManager.js +45 -80
  49. package/Libraries/Core/ExtendedError.js +0 -1
  50. package/Libraries/Core/ReactNativeVersion.js +3 -3
  51. package/Libraries/Core/setUpBatchedBridge.js +1 -1
  52. package/Libraries/Core/setUpGlobals.js +2 -4
  53. package/Libraries/Core/setUpTimers.js +2 -2
  54. package/Libraries/Image/Image.ios.js +6 -0
  55. package/Libraries/Image/Image.win32.js +6 -0
  56. package/Libraries/Image/ImageBackground.js +10 -8
  57. package/Libraries/Image/ImageProps.js +28 -0
  58. package/Libraries/Image/Tests/ImageWin32Test.d.ts +0 -1
  59. package/Libraries/LogBox/Data/LogBoxData.js +18 -19
  60. package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
  61. package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
  62. package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
  63. package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
  64. package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
  65. package/Libraries/NewAppScreen/components/logo.png +0 -0
  66. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
  67. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
  68. package/Libraries/PersonaCoin/PersonaCoin.js +3 -2
  69. package/Libraries/PersonaCoin/PersonaCoin.js.map +1 -1
  70. package/Libraries/Pressability/Pressability.js +13 -13
  71. package/Libraries/Pressability/Pressability.win32.js +13 -13
  72. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
  73. package/Libraries/ReactNative/AppRegistry.js +4 -2
  74. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1569 -875
  75. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +529 -319
  76. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +570 -362
  77. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1592 -891
  78. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +521 -311
  79. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +562 -354
  80. package/Libraries/Share/Share.js +1 -1
  81. package/Libraries/StyleSheet/normalizeColor.js +2 -2
  82. package/Libraries/Text/TextProps.js +1 -7
  83. package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
  84. package/Libraries/Utilities/HMRClient.js +1 -1
  85. package/flow/global.js +45 -0
  86. package/index.js +15 -10
  87. package/index.win32.js +15 -10
  88. package/jest/mockModal.js +31 -0
  89. package/jest/preprocessor.js +7 -75
  90. package/jest/setup.js +5 -3
  91. package/overrides.json +8 -14
  92. package/package.json +19 -17
  93. package/rntypes/BatchedBridge.d.ts +23 -0
  94. package/rntypes/Devtools.d.ts +20 -0
  95. package/rntypes/LaunchScreen.d.ts +9 -0
  96. package/rntypes/globals.d.ts +496 -0
  97. package/rntypes/index.d.ts +9966 -0
  98. package/rntypes/legacy-properties.d.ts +266 -0
  99. package/src/Libraries/Components/Text/TextWin32.Props.ts +2 -2
  100. package/src/Libraries/Components/View/ViewWin32.Props.ts +6 -12
  101. package/src/rntypes/BatchedBridge.d.ts +23 -0
  102. package/src/rntypes/Devtools.d.ts +20 -0
  103. package/src/rntypes/LaunchScreen.d.ts +9 -0
  104. package/src/rntypes/globals.d.ts +496 -0
  105. package/src/rntypes/index.d.ts +9966 -0
  106. package/src/rntypes/legacy-properties.d.ts +266 -0
  107. package/src/typings-index.ts +11 -4
  108. package/typings-index.d.ts +3 -1
  109. package/typings-index.js +7 -5
  110. package/typings-index.js.map +1 -1
  111. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
  112. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
  113. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.win32.js +0 -30
  114. package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
  115. package/Libraries/Components/StaticContainer.react.js +0 -51
  116. package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
  117. package/Libraries/Interaction/InteractionMixin.js +0 -54
  118. package/Libraries/ReactNative/queryLayoutByID.js +0 -58
package/.eslintignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /Libraries
8
8
  /packages
9
9
  /ReactCopies
10
+ /rntypes
11
+ /src/rntypes
package/.flowconfig CHANGED
@@ -118,4 +118,4 @@ untyped-import
118
118
  untyped-type-import
119
119
 
120
120
  [version]
121
- ^0.158.0
121
+ ^0.162.0
package/CHANGELOG.json CHANGED
@@ -2,120 +2,302 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 24 Jan 2022 16:10:41 GMT",
6
- "tag": "@office-iss/react-native-win32_v0.66.4",
7
- "version": "0.66.4",
5
+ "date": "Mon, 24 Jan 2022 16:12:31 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.67.0",
7
+ "version": "0.67.0",
8
8
  "comments": {
9
9
  "patch": [
10
10
  {
11
- "comment": "Promote 0.66 to legacy",
12
11
  "author": "ngerlem@microsoft.com",
13
- "commit": "919d91a3e9845f9a60417fb8e47a36d7caedbc28",
14
- "package": "@office-iss/react-native-win32"
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "56818ebc599aa084aa9ffc949691f1be71da169a",
14
+ "comment": "Promote 0.67 to latest"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@office-iss/react-native-win32",
19
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.0",
20
+ "commit": "56818ebc599aa084aa9ffc949691f1be71da169a"
15
21
  }
16
22
  ]
17
23
  }
18
24
  },
19
25
  {
20
- "date": "Mon, 17 Jan 2022 16:12:35 GMT",
21
- "tag": "@office-iss/react-native-win32_v0.66.3",
22
- "version": "0.66.3",
26
+ "date": "Mon, 17 Jan 2022 16:12:54 GMT",
27
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.3",
28
+ "version": "0.67.0-preview.3",
23
29
  "comments": {
24
- "patch": [
30
+ "prerelease": [
25
31
  {
26
- "comment": "Port windows pressable with extra desktop support to win32",
27
32
  "author": "saadnajmi2@gmail.com",
28
- "commit": "1a70a3b499a0e695597e8669439b856d41096170",
29
- "package": "@office-iss/react-native-win32"
33
+ "package": "@office-iss/react-native-win32",
34
+ "commit": "not available",
35
+ "comment": "Port windows pressable with extra desktop support to win32"
30
36
  }
31
37
  ]
32
38
  }
33
39
  },
34
40
  {
35
- "date": "Mon, 15 Nov 2021 16:09:53 GMT",
36
- "tag": "@office-iss/react-native-win32_v0.66.2",
37
- "version": "0.66.2",
41
+ "date": "Mon, 17 Jan 2022 16:12:12 GMT",
42
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.3",
43
+ "version": "0.67.0-preview.3",
38
44
  "comments": {
39
- "patch": [
45
+ "prerelease": [
46
+ {
47
+ "author": "saadnajmi2@gmail.com",
48
+ "package": "@office-iss/react-native-win32",
49
+ "commit": "b58a8738eecd8a3d6a2b918fc35d9a7b93b4437a",
50
+ "comment": "Port windows pressable with extra desktop support to win32"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Mon, 15 Nov 2021 16:10:10 GMT",
57
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.2",
58
+ "version": "0.67.0-preview.2",
59
+ "comments": {
60
+ "prerelease": [
40
61
  {
41
- "comment": "Add enableFocusRing prop for View and test",
42
62
  "author": "ruaraki@microsoft.com",
43
- "commit": "b2931bd528e840076ef7a4e717c437fc7da93821",
44
- "package": "@office-iss/react-native-win32"
63
+ "package": "@office-iss/react-native-win32",
64
+ "commit": "not available",
65
+ "comment": "Add enableFocusRing prop for View and test"
45
66
  }
46
67
  ]
47
68
  }
48
69
  },
49
70
  {
50
- "date": "Mon, 18 Oct 2021 15:08:36 GMT",
51
- "tag": "@office-iss/react-native-win32_v0.66.1",
52
- "version": "0.66.1",
71
+ "date": "Mon, 15 Nov 2021 16:09:34 GMT",
72
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.2",
73
+ "version": "0.67.0-preview.2",
53
74
  "comments": {
54
- "patch": [
75
+ "prerelease": [
76
+ {
77
+ "author": "ruaraki@microsoft.com",
78
+ "package": "@office-iss/react-native-win32",
79
+ "commit": "6a7a95e90c7f7a3a86efac63b24092232380ba1b",
80
+ "comment": "Add enableFocusRing prop for View and test"
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ {
86
+ "date": "Mon, 25 Oct 2021 15:07:48 GMT",
87
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.1",
88
+ "version": "0.67.0-preview.1",
89
+ "comments": {
90
+ "prerelease": [
55
91
  {
56
- "comment": "Loosen RN peer dependency",
57
92
  "author": "ngerlem@microsoft.com",
58
- "commit": "6c37292c2a955bdffedc5dbd89eb4225c24582df",
59
- "package": "@office-iss/react-native-win32"
93
+ "package": "@office-iss/react-native-win32",
94
+ "commit": "not available",
95
+ "comment": "Promote 0.67 to preview"
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@office-iss/react-native-win32",
100
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.0-preview.1",
101
+ "commit": "666510e980ced292bffd23a44982e8a800f91444"
102
+ }
103
+ ]
104
+ }
105
+ },
106
+ {
107
+ "date": "Mon, 25 Oct 2021 15:07:19 GMT",
108
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.1",
109
+ "version": "0.67.0-preview.1",
110
+ "comments": {
111
+ "prerelease": [
112
+ {
113
+ "author": "ngerlem@microsoft.com",
114
+ "package": "@office-iss/react-native-win32",
115
+ "commit": "5ca0feb9bccbf395aa8297f97a1a8832971d4f2e",
116
+ "comment": "Promote 0.67 to preview"
117
+ },
118
+ {
119
+ "author": "beachball",
120
+ "package": "@office-iss/react-native-win32",
121
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.0-preview.1",
122
+ "commit": "be5b1c696dc4bb50281f444713575830d3bf72e3"
123
+ }
124
+ ]
125
+ }
126
+ },
127
+ {
128
+ "date": "Thu, 21 Oct 2021 05:08:01 GMT",
129
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.117",
130
+ "version": "0.0.0-canary.117",
131
+ "comments": {
132
+ "prerelease": [
133
+ {
134
+ "author": "30809111+acoates-ms@users.noreply.github.com",
135
+ "package": "@office-iss/react-native-win32",
136
+ "comment": "Update to typescript 4",
137
+ "commit": "8a0ffecdcf5e68d950f20380fdf62295edb352b6"
138
+ },
139
+ {
140
+ "author": "beachball",
141
+ "package": "@office-iss/react-native-win32",
142
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.14",
143
+ "commit": "8a0ffecdcf5e68d950f20380fdf62295edb352b6"
144
+ },
145
+ {
146
+ "author": "beachball",
147
+ "package": "@office-iss/react-native-win32",
148
+ "comment": "Bump react-native-platform-override to v1.5.1",
149
+ "commit": "8a0ffecdcf5e68d950f20380fdf62295edb352b6"
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ {
155
+ "date": "Sat, 09 Oct 2021 05:06:48 GMT",
156
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.116",
157
+ "version": "0.0.0-canary.116",
158
+ "comments": {
159
+ "prerelease": [
160
+ {
161
+ "author": "30809111+acoates-ms@users.noreply.github.com",
162
+ "package": "@office-iss/react-native-win32",
163
+ "comment": "Export complete type information",
164
+ "commit": "db9fd0f1192d6340c5e766ac2630fc182c99de4f"
165
+ },
166
+ {
167
+ "author": "ngerlem@microsoft.com",
168
+ "package": "@office-iss/react-native-win32",
169
+ "comment": "Integrate 10-8-21 Nightly Build",
170
+ "commit": "db9fd0f1192d6340c5e766ac2630fc182c99de4f"
171
+ },
172
+ {
173
+ "author": "beachball",
174
+ "package": "@office-iss/react-native-win32",
175
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.13",
176
+ "commit": "db9fd0f1192d6340c5e766ac2630fc182c99de4f"
60
177
  }
61
178
  ]
62
179
  }
63
180
  },
64
181
  {
65
- "date": "Mon, 11 Oct 2021 15:07:19 GMT",
66
- "tag": "@office-iss/react-native-win32_v0.66.0",
67
- "version": "0.66.0",
182
+ "date": "Wed, 06 Oct 2021 05:07:05 GMT",
183
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.115",
184
+ "version": "0.0.0-canary.115",
68
185
  "comments": {
69
186
  "patch": [
70
187
  {
71
- "comment": "Promote 0.66 to latest",
188
+ "comment": "Bump react-native-platform-override to v1.5.0",
72
189
  "author": "ngerlem@microsoft.com",
73
- "commit": "5d1e5ae98139204e02f0ac5d8c06ae7ee1157395",
190
+ "commit": "7a0c68516b825131c798978f1dfc0088f7115614",
74
191
  "package": "@office-iss/react-native-win32"
75
192
  }
76
193
  ]
77
194
  }
78
195
  },
79
196
  {
80
- "date": "Mon, 04 Oct 2021 15:07:37 GMT",
81
- "tag": "@office-iss/react-native-win32_v0.66.0-preview.3",
82
- "version": "0.66.0-preview.3",
197
+ "date": "Tue, 28 Sep 2021 05:07:03 GMT",
198
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.114",
199
+ "version": "0.0.0-canary.114",
200
+ "comments": {
201
+ "prerelease": [
202
+ {
203
+ "comment": "Integrate 9/23",
204
+ "author": "34109996+chiaramooney@users.noreply.github.com",
205
+ "commit": "d4970fdd583866c3ac7af6a0cf38040cf3b22d93",
206
+ "package": "@office-iss/react-native-win32"
207
+ }
208
+ ]
209
+ }
210
+ },
211
+ {
212
+ "date": "Fri, 24 Sep 2021 05:06:42 GMT",
213
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.113",
214
+ "version": "0.0.0-canary.113",
215
+ "comments": {
216
+ "prerelease": [
217
+ {
218
+ "comment": "Integrate RN nightly 9/16.",
219
+ "author": "igklemen@microsoft.com",
220
+ "commit": "8b63ada9ba1d55bfd161388fc18c2b5c6445b508",
221
+ "package": "@office-iss/react-native-win32"
222
+ }
223
+ ]
224
+ }
225
+ },
226
+ {
227
+ "date": "Tue, 21 Sep 2021 05:08:39 GMT",
228
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.112",
229
+ "version": "0.0.0-canary.112",
230
+ "comments": {
231
+ "prerelease": [
232
+ {
233
+ "comment": "Integrate RN nightly build 9/9.",
234
+ "author": "igklemen@microsoft.com",
235
+ "commit": "08eb19f42f4f74bd82f33db2e27ba2d33b2ddd1b",
236
+ "package": "@office-iss/react-native-win32"
237
+ }
238
+ ]
239
+ }
240
+ },
241
+ {
242
+ "date": "Fri, 17 Sep 2021 05:06:53 GMT",
243
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.111",
244
+ "version": "0.0.0-canary.111",
83
245
  "comments": {
84
246
  "prerelease": [
85
247
  {
86
248
  "comment": "Fix exception in View when props are undefined",
87
249
  "author": "30809111+acoates-ms@users.noreply.github.com",
88
- "commit": "a20892ade44390cdb10f25c31a2f35ce61328b97",
250
+ "commit": "77ebdd47cd2feead7885933ac351a045041bee2e",
89
251
  "package": "@office-iss/react-native-win32"
90
252
  }
91
253
  ]
92
254
  }
93
255
  },
94
256
  {
95
- "date": "Mon, 20 Sep 2021 15:07:01 GMT",
96
- "tag": "@office-iss/react-native-win32_v0.66.0-preview.2",
97
- "version": "0.66.0-preview.2",
257
+ "date": "Thu, 09 Sep 2021 05:07:46 GMT",
258
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.110",
259
+ "version": "0.0.0-canary.110",
98
260
  "comments": {
99
261
  "prerelease": [
100
262
  {
101
- "comment": "Adding ItemType prop on ViewWIn32",
263
+ "comment": "Adding accessibilityItemType property to ViewWin32",
102
264
  "author": "safreibe@microsoft.com",
103
- "commit": "e5689bf41dd6322456a917391aee3c3940e19070",
265
+ "commit": "465dae11d372626fcb90d966e9e97f2d3d531f43",
104
266
  "package": "@office-iss/react-native-win32"
105
267
  }
106
268
  ]
107
269
  }
108
270
  },
109
271
  {
110
- "date": "Fri, 03 Sep 2021 18:48:19 GMT",
111
- "tag": "@office-iss/react-native-win32_v0.66.0-preview.1",
112
- "version": "0.66.0-preview.1",
272
+ "date": "Wed, 08 Sep 2021 05:08:53 GMT",
273
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.109",
274
+ "version": "0.0.0-canary.109",
113
275
  "comments": {
114
276
  "prerelease": [
115
277
  {
116
- "comment": "Promote 0.66 to preview",
278
+ "comment": "Set consistent node requirements on our packages",
279
+ "author": "ngerlem@microsoft.com",
280
+ "commit": "2974ea0ab58b546264b8d9a4a7c12ceeb0a02851",
281
+ "package": "@office-iss/react-native-win32"
282
+ },
283
+ {
284
+ "comment": "Integrate 9/2",
285
+ "author": "34109996+chiaramooney@users.noreply.github.com",
286
+ "commit": "8b91737bde65fc50b454be74f64bc50b5d2cfda2",
287
+ "package": "@office-iss/react-native-win32"
288
+ }
289
+ ],
290
+ "patch": [
291
+ {
292
+ "comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.0.2",
293
+ "author": "ngerlem@microsoft.com",
294
+ "commit": "2974ea0ab58b546264b8d9a4a7c12ceeb0a02851",
295
+ "package": "@office-iss/react-native-win32"
296
+ },
297
+ {
298
+ "comment": "Bump @rnw-scripts/eslint-config to v1.1.8",
117
299
  "author": "ngerlem@microsoft.com",
118
- "commit": "cf1dcfbe108028869e326bb2bdab370949f7dac8",
300
+ "commit": "2974ea0ab58b546264b8d9a4a7c12ceeb0a02851",
119
301
  "package": "@office-iss/react-native-win32"
120
302
  }
121
303
  ]
package/CHANGELOG.md CHANGED
@@ -1,72 +1,149 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 24 Jan 2022 16:10:41 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 24 Jan 2022 16:12:31 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.66.4
7
+ ## 0.67.0
8
8
 
9
- Mon, 24 Jan 2022 16:10:41 GMT
9
+ Mon, 24 Jan 2022 16:12:31 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Promote 0.66 to legacy (ngerlem@microsoft.com)
13
+ - Promote 0.67 to latest (ngerlem@microsoft.com)
14
+ - Bump @react-native-windows/virtualized-list to v0.67.0
14
15
 
15
- ## 0.66.3
16
+ ## 0.67.0-preview.3
16
17
 
17
- Mon, 17 Jan 2022 16:12:35 GMT
18
+ Mon, 17 Jan 2022 16:12:54 GMT
18
19
 
19
- ### Patches
20
+ ### Changes
20
21
 
21
22
  - Port windows pressable with extra desktop support to win32 (saadnajmi2@gmail.com)
22
23
 
23
- ## 0.66.2
24
+ ## 0.67.0-preview.3
24
25
 
25
- Mon, 15 Nov 2021 16:09:53 GMT
26
+ Mon, 17 Jan 2022 16:12:12 GMT
26
27
 
27
- ### Patches
28
+ ### Changes
29
+
30
+ - Port windows pressable with extra desktop support to win32 (saadnajmi2@gmail.com)
31
+
32
+ ## 0.67.0-preview.2
33
+
34
+ Mon, 15 Nov 2021 16:10:10 GMT
35
+
36
+ ### Changes
28
37
 
29
38
  - Add enableFocusRing prop for View and test (ruaraki@microsoft.com)
30
39
 
31
- ## 0.66.1
40
+ ## 0.67.0-preview.2
32
41
 
33
- Mon, 18 Oct 2021 15:08:36 GMT
42
+ Mon, 15 Nov 2021 16:09:34 GMT
34
43
 
35
- ### Patches
44
+ ### Changes
45
+
46
+ - Add enableFocusRing prop for View and test (ruaraki@microsoft.com)
47
+
48
+ ## 0.67.0-preview.1
49
+
50
+ Mon, 25 Oct 2021 15:07:48 GMT
51
+
52
+ ### Changes
53
+
54
+ - Promote 0.67 to preview (ngerlem@microsoft.com)
55
+ - Bump @react-native-windows/virtualized-list to v0.67.0-preview.1
56
+
57
+ ## 0.67.0-preview.1
36
58
 
37
- - Loosen RN peer dependency (ngerlem@microsoft.com)
59
+ Mon, 25 Oct 2021 15:07:19 GMT
38
60
 
39
- ## 0.66.0
61
+ ### Changes
62
+
63
+ - Promote 0.67 to preview (ngerlem@microsoft.com)
64
+ - Bump @react-native-windows/virtualized-list to v0.67.0-preview.1
65
+
66
+ ## 0.0.0-canary.117
67
+
68
+ Thu, 21 Oct 2021 05:08:01 GMT
69
+
70
+ ### Changes
40
71
 
41
- Mon, 11 Oct 2021 15:07:19 GMT
72
+ - Update to typescript 4 (30809111+acoates-ms@users.noreply.github.com)
73
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.14
74
+ - Bump react-native-platform-override to v1.5.1
75
+
76
+ ## 0.0.0-canary.116
77
+
78
+ Sat, 09 Oct 2021 05:06:48 GMT
79
+
80
+ ### Changes
81
+
82
+ - Export complete type information (30809111+acoates-ms@users.noreply.github.com)
83
+ - Integrate 10-8-21 Nightly Build (ngerlem@microsoft.com)
84
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.13
85
+
86
+ ## 0.0.0-canary.115
87
+
88
+ Wed, 06 Oct 2021 05:07:05 GMT
42
89
 
43
90
  ### Patches
44
91
 
45
- - Promote 0.66 to latest (ngerlem@microsoft.com)
92
+ - Bump react-native-platform-override to v1.5.0 (ngerlem@microsoft.com)
46
93
 
47
- ## 0.66.0-preview.3
94
+ ## 0.0.0-canary.114
48
95
 
49
- Mon, 04 Oct 2021 15:07:37 GMT
96
+ Tue, 28 Sep 2021 05:07:03 GMT
97
+
98
+ ### Changes
99
+
100
+ - Integrate 9/23 (34109996+chiaramooney@users.noreply.github.com)
101
+
102
+ ## 0.0.0-canary.113
103
+
104
+ Fri, 24 Sep 2021 05:06:42 GMT
105
+
106
+ ### Changes
107
+
108
+ - Integrate RN nightly 9/16. (igklemen@microsoft.com)
109
+
110
+ ## 0.0.0-canary.112
111
+
112
+ Tue, 21 Sep 2021 05:08:39 GMT
113
+
114
+ ### Changes
115
+
116
+ - Integrate RN nightly build 9/9. (igklemen@microsoft.com)
117
+
118
+ ## 0.0.0-canary.111
119
+
120
+ Fri, 17 Sep 2021 05:06:53 GMT
50
121
 
51
122
  ### Changes
52
123
 
53
124
  - Fix exception in View when props are undefined (30809111+acoates-ms@users.noreply.github.com)
54
125
 
55
- ## 0.66.0-preview.2
126
+ ## 0.0.0-canary.110
56
127
 
57
- Mon, 20 Sep 2021 15:07:01 GMT
128
+ Thu, 09 Sep 2021 05:07:46 GMT
58
129
 
59
130
  ### Changes
60
131
 
61
- - Adding ItemType prop on ViewWIn32 (safreibe@microsoft.com)
132
+ - Adding accessibilityItemType property to ViewWin32 (safreibe@microsoft.com)
62
133
 
63
- ## 0.66.0-preview.1
134
+ ## 0.0.0-canary.109
135
+
136
+ Wed, 08 Sep 2021 05:08:53 GMT
137
+
138
+ ### Patches
64
139
 
65
- Fri, 03 Sep 2021 18:48:19 GMT
140
+ - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.0.2 (ngerlem@microsoft.com)
141
+ - Bump @rnw-scripts/eslint-config to v1.1.8 (ngerlem@microsoft.com)
66
142
 
67
143
  ### Changes
68
144
 
69
- - Promote 0.66 to preview (ngerlem@microsoft.com)
145
+ - Set consistent node requirements on our packages (ngerlem@microsoft.com)
146
+ - Integrate 9/2 (34109996+chiaramooney@users.noreply.github.com)
70
147
 
71
148
  ## 0.0.0-canary.108
72
149
 
@@ -47,6 +47,7 @@ const ActionSheetIOS = {
47
47
  +cancelButtonIndex?: ?number,
48
48
  +anchor?: ?number,
49
49
  +tintColor?: ColorValue | ProcessedColorValue,
50
+ +cancelButtonTintColor?: ColorValue | ProcessedColorValue,
50
51
  +userInterfaceStyle?: string,
51
52
  +disabledButtonIndices?: Array<number>,
52
53
  |},
@@ -59,7 +60,12 @@ const ActionSheetIOS = {
59
60
  invariant(typeof callback === 'function', 'Must provide a valid callback');
60
61
  invariant(RCTActionSheetManager, "ActionSheetManager doesn't exist");
61
62
 
62
- const {tintColor, destructiveButtonIndex, ...remainingOptions} = options;
63
+ const {
64
+ tintColor,
65
+ cancelButtonTintColor,
66
+ destructiveButtonIndex,
67
+ ...remainingOptions
68
+ } = options;
63
69
  let destructiveButtonIndices = null;
64
70
 
65
71
  if (Array.isArray(destructiveButtonIndex)) {
@@ -69,14 +75,21 @@ const ActionSheetIOS = {
69
75
  }
70
76
 
71
77
  const processedTintColor = processColor(tintColor);
78
+ const processedCancelButtonTintColor = processColor(cancelButtonTintColor);
72
79
  invariant(
73
80
  processedTintColor == null || typeof processedTintColor === 'number',
74
81
  'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor',
75
82
  );
83
+ invariant(
84
+ processedCancelButtonTintColor == null ||
85
+ typeof processedCancelButtonTintColor === 'number',
86
+ 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor',
87
+ );
76
88
  RCTActionSheetManager.showActionSheetWithOptions(
77
89
  {
78
90
  ...remainingOptions,
79
91
  tintColor: processedTintColor,
92
+ cancelButtonTintColor: processedCancelButtonTintColor,
80
93
  destructiveButtonIndices,
81
94
  },
82
95
  callback,
@@ -22,6 +22,7 @@ export interface Spec extends TurboModule {
22
22
  +cancelButtonIndex?: ?number,
23
23
  +anchor?: ?number,
24
24
  +tintColor?: ?number,
25
+ +cancelButtonTintColor?: ?number,
25
26
  +userInterfaceStyle?: ?string,
26
27
  +disabledButtonIndices?: Array<number>,
27
28
  |},
@@ -34,6 +35,7 @@ export interface Spec extends TurboModule {
34
35
  +subject?: ?string,
35
36
  +anchor?: ?number,
36
37
  +tintColor?: ?number,
38
+ +cancelButtonTintColor?: ?number,
37
39
  +excludedActivityTypes?: ?Array<string>,
38
40
  +userInterfaceStyle?: ?string,
39
41
  |},
@@ -11,6 +11,7 @@
11
11
  'use strict';
12
12
 
13
13
  const AnimatedValue = require('./nodes/AnimatedValue');
14
+ const AnimatedValueXY = require('./nodes/AnimatedValueXY');
14
15
  const NativeAnimatedHelper = require('./NativeAnimatedHelper');
15
16
  const ReactNative = require('../Renderer/shims/ReactNative');
16
17
 
@@ -18,7 +19,10 @@ const invariant = require('invariant');
18
19
 
19
20
  const {shouldUseNativeDriver} = require('./NativeAnimatedHelper');
20
21
 
21
- export type Mapping = {[key: string]: Mapping, ...} | AnimatedValue;
22
+ export type Mapping =
23
+ | {[key: string]: Mapping, ...}
24
+ | AnimatedValue
25
+ | AnimatedValueXY;
22
26
  export type EventConfig = {
23
27
  listener?: ?Function,
24
28
  useNativeDriver: boolean,
@@ -41,6 +45,9 @@ function attachNativeEvent(
41
45
  nativeEventPath: path,
42
46
  animatedValueTag: value.__getNativeTag(),
43
47
  });
48
+ } else if (value instanceof AnimatedValueXY) {
49
+ traverse(value.x, path.concat('x'));
50
+ traverse(value.y, path.concat('y'));
44
51
  } else if (typeof value === 'object') {
45
52
  for (const key in value) {
46
53
  traverse(value[key], path.concat(key));
@@ -95,6 +102,13 @@ function validateMapping(argMapping, args) {
95
102
  );
96
103
  return;
97
104
  }
105
+ if (recMapping instanceof AnimatedValueXY) {
106
+ invariant(
107
+ typeof recEvt.x === 'number' && typeof recEvt.y === 'number',
108
+ 'Bad mapping of event key ' + key + ', should be XY but got ' + recEvt,
109
+ );
110
+ return;
111
+ }
98
112
  if (typeof recEvt === 'number') {
99
113
  invariant(
100
114
  recMapping instanceof AnimatedValue,
@@ -204,22 +218,27 @@ class AnimatedEvent {
204
218
  validatedMapping = true;
205
219
  }
206
220
 
207
- const traverse = (recMapping, recEvt, key) => {
221
+ const traverse = (recMapping, recEvt) => {
208
222
  if (recMapping instanceof AnimatedValue) {
209
223
  if (typeof recEvt === 'number') {
210
224
  recMapping.setValue(recEvt);
211
225
  }
226
+ } else if (recMapping instanceof AnimatedValueXY) {
227
+ if (typeof recEvt === 'object') {
228
+ traverse(recMapping.x, recEvt.x);
229
+ traverse(recMapping.y, recEvt.y);
230
+ }
212
231
  } else if (typeof recMapping === 'object') {
213
232
  for (const mappingKey in recMapping) {
214
233
  /* $FlowFixMe[prop-missing] (>=0.120.0) This comment suppresses an
215
234
  * error found when Flow v0.120 was deployed. To see the error,
216
235
  * delete this comment and run Flow. */
217
- traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);
236
+ traverse(recMapping[mappingKey], recEvt[mappingKey]);
218
237
  }
219
238
  }
220
239
  };
221
240
  this._argMapping.forEach((mapping, idx) => {
222
- traverse(mapping, args[idx], 'arg' + idx);
241
+ traverse(mapping, args[idx]);
223
242
  });
224
243
 
225
244
  this._callListeners(...args);