@office-iss/react-native-win32 0.64.9 → 0.64.10

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.
@@ -0,0 +1,193 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict-local
8
+ * @format
9
+ */
10
+
11
+ 'use strict';
12
+
13
+ import * as React from 'react';
14
+ import type {HostComponent} from '../Renderer/shims/ReactNativeTypes';
15
+
16
+ export type SyntheticEvent<T> = $ReadOnly<{|
17
+ bubbles: ?boolean,
18
+ cancelable: ?boolean,
19
+ currentTarget: number | React.ElementRef<HostComponent<mixed>>,
20
+ defaultPrevented: ?boolean,
21
+ dispatchConfig: $ReadOnly<{|
22
+ registrationName: string,
23
+ |}>,
24
+ eventPhase: ?number,
25
+ preventDefault: () => void,
26
+ isDefaultPrevented: () => boolean,
27
+ stopPropagation: () => void,
28
+ isPropagationStopped: () => boolean,
29
+ isTrusted: ?boolean,
30
+ nativeEvent: T,
31
+ persist: () => void,
32
+ target: ?number | React.ElementRef<HostComponent<mixed>>,
33
+ timeStamp: number,
34
+ type: ?string,
35
+ |}>;
36
+
37
+ export type ResponderSyntheticEvent<T> = $ReadOnly<{|
38
+ ...SyntheticEvent<T>,
39
+ touchHistory: $ReadOnly<{|
40
+ indexOfSingleActiveTouch: number,
41
+ mostRecentTimeStamp: number,
42
+ numberActiveTouches: number,
43
+ touchBank: $ReadOnlyArray<
44
+ $ReadOnly<{|
45
+ touchActive: boolean,
46
+ startPageX: number,
47
+ startPageY: number,
48
+ startTimeStamp: number,
49
+ currentPageX: number,
50
+ currentPageY: number,
51
+ currentTimeStamp: number,
52
+ previousPageX: number,
53
+ previousPageY: number,
54
+ previousTimeStamp: number,
55
+ |}>,
56
+ >,
57
+ |}>,
58
+ |}>;
59
+
60
+ export type Layout = $ReadOnly<{|
61
+ x: number,
62
+ y: number,
63
+ width: number,
64
+ height: number,
65
+ |}>;
66
+
67
+ export type TextLayout = $ReadOnly<{|
68
+ ...Layout,
69
+ ascender: number,
70
+ capHeight: number,
71
+ descender: number,
72
+ text: string,
73
+ xHeight: number,
74
+ |}>;
75
+
76
+ export type LayoutEvent = SyntheticEvent<
77
+ $ReadOnly<{|
78
+ layout: Layout,
79
+ |}>,
80
+ >;
81
+
82
+ export type TextLayoutEvent = SyntheticEvent<
83
+ $ReadOnly<{|
84
+ lines: Array<TextLayout>,
85
+ |}>,
86
+ >;
87
+
88
+ export type PressEvent = ResponderSyntheticEvent<
89
+ $ReadOnly<{|
90
+ altKey: ?boolean, // TODO(macOS)
91
+ button: ?number, // TODO(macOS)
92
+ changedTouches: $ReadOnlyArray<$PropertyType<PressEvent, 'nativeEvent'>>,
93
+ ctrlKey: ?boolean, // TODO(macOS)
94
+ force?: number,
95
+ identifier: number,
96
+ locationX: number,
97
+ locationY: number,
98
+ metaKey: ?boolean, // TODO(macOS)
99
+ pageX: number,
100
+ pageY: number,
101
+ shiftKey: ?boolean, // TODO(macOS)
102
+ target: ?number,
103
+ timestamp: number,
104
+ touches: $ReadOnlyArray<$PropertyType<PressEvent, 'nativeEvent'>>,
105
+ |}>,
106
+ >;
107
+
108
+ export type ScrollEvent = SyntheticEvent<
109
+ $ReadOnly<{|
110
+ contentInset: $ReadOnly<{|
111
+ bottom: number,
112
+ left: number,
113
+ right: number,
114
+ top: number,
115
+ |}>,
116
+ contentOffset: $ReadOnly<{|
117
+ y: number,
118
+ x: number,
119
+ |}>,
120
+ contentSize: $ReadOnly<{|
121
+ height: number,
122
+ width: number,
123
+ |}>,
124
+ layoutMeasurement: $ReadOnly<{|
125
+ height: number,
126
+ width: number,
127
+ |}>,
128
+ targetContentOffset?: $ReadOnly<{|
129
+ y: number,
130
+ x: number,
131
+ |}>,
132
+ velocity?: $ReadOnly<{|
133
+ y: number,
134
+ x: number,
135
+ |}>,
136
+ zoomScale?: number,
137
+ responderIgnoreScroll?: boolean,
138
+ key?: string, // TODO(macOS)
139
+ |}>,
140
+ >;
141
+
142
+ export type BlurEvent = SyntheticEvent<
143
+ $ReadOnly<{|
144
+ target: number,
145
+ |}>,
146
+ >;
147
+
148
+ export type FocusEvent = SyntheticEvent<
149
+ $ReadOnly<{|
150
+ target: number,
151
+ |}>,
152
+ >;
153
+
154
+ // [Windows Mouse events on Windows don't match up with the version in core
155
+ // introduced for react-native-web. Replace typings with our values to catch
156
+ // anything dependent on react-native-web specific values
157
+ export type MouseEvent = SyntheticEvent<
158
+ $ReadOnly<{|
159
+ target: number,
160
+ identifier: number,
161
+ pageX: number,
162
+ pageY: number,
163
+ locationX: number,
164
+ locationY: number,
165
+ timestamp: number,
166
+ pointerType: string,
167
+ force: number,
168
+ isLeftButton: boolean,
169
+ isRightButton: boolean,
170
+ isMiddleButton: boolean,
171
+ isBarrelButtonPressed: boolean,
172
+ isHorizontalScrollWheel: boolean,
173
+ isEraser: boolean,
174
+ shiftKey: boolean,
175
+ ctrlKey: boolean,
176
+ altKey: boolean,
177
+ |}>,
178
+ >;
179
+ // Windows]
180
+
181
+ // [Windows
182
+ export type KeyEvent = SyntheticEvent<
183
+ $ReadOnly<{|
184
+ altKey: boolean,
185
+ ctrlKey: boolean,
186
+ metaKey: boolean,
187
+ shiftKey: boolean,
188
+ key: string,
189
+ code: string,
190
+ eventPhase: number,
191
+ |}>,
192
+ >;
193
+ // Windows]
package/overrides.json CHANGED
@@ -3,10 +3,10 @@
3
3
  ".flowconfig",
4
4
  "src/**"
5
5
  ],
6
- "baseVersion": "0.64.0",
7
6
  "excludePatterns": [
8
7
  "src/Libraries/Lists/__tests__/**"
9
8
  ],
9
+ "baseVersion": "0.64.0",
10
10
  "overrides": [
11
11
  {
12
12
  "type": "derived",
@@ -33,12 +33,6 @@
33
33
  "baseHash": "85eea8e9510b516c12e19fcfedc4553b990feb11",
34
34
  "issue": 5807
35
35
  },
36
- {
37
- "type": "patch",
38
- "file": "src/Libraries/ReactNative/PaperUIManager.win32.js",
39
- "baseFile": "Libraries/ReactNative/PaperUIManager.js",
40
- "baseHash": "a72811cd104bb575d0ab2659343dc2ea11c6b674"
41
- },
42
36
  {
43
37
  "type": "derived",
44
38
  "file": "src/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js",
@@ -109,6 +103,13 @@
109
103
  "baseHash": "0c6bf0751e053672123cbad30d67851ba0007af6",
110
104
  "issue": 4378
111
105
  },
106
+ {
107
+ "type": "patch",
108
+ "file": "src/Libraries/Components/Pressable/Pressable.win32.js",
109
+ "baseFile": "Libraries/Components/Pressable/Pressable.js",
110
+ "baseHash": "53bc7996e0fa83128b846a04d0bcec972a406133",
111
+ "issue": 6240
112
+ },
112
113
  {
113
114
  "type": "copy",
114
115
  "file": "src/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
@@ -221,6 +222,13 @@
221
222
  "baseHash": "147459dc889f04f2405db051445833f791726895",
222
223
  "issue": 5843
223
224
  },
225
+ {
226
+ "type": "patch",
227
+ "file": "src/Libraries/Components/View/ViewPropTypes.win32.js",
228
+ "baseFile": "Libraries/Components/View/ViewPropTypes.js",
229
+ "baseHash": "2b12228aa1ab0e12844996a99ff5d38fbff689a1",
230
+ "issue": 6240
231
+ },
224
232
  {
225
233
  "type": "platform",
226
234
  "file": "src/Libraries/Components/View/ViewWin32.Props.ts"
@@ -342,6 +350,20 @@
342
350
  "type": "platform",
343
351
  "file": "src/Libraries/PersonaCoin/PersonaCoinTypes.ts"
344
352
  },
353
+ {
354
+ "type": "patch",
355
+ "file": "src/Libraries/Pressability/HoverState.win32.js",
356
+ "baseFile": "Libraries/Pressability/HoverState.js",
357
+ "baseHash": "c78372cfc9f0b66109848beb20895e199c5431b8",
358
+ "issue": 6240
359
+ },
360
+ {
361
+ "type": "patch",
362
+ "file": "src/Libraries/Pressability/Pressability.win32.js",
363
+ "baseFile": "Libraries/Pressability/Pressability.js",
364
+ "baseHash": "e1418d31343ca11ce165a87f82224ccc8d801052",
365
+ "issue": 6240
366
+ },
345
367
  {
346
368
  "type": "platform",
347
369
  "file": "src/Libraries/QuirkSettings/CachingNativeQuirkSettings.js"
@@ -358,6 +380,12 @@
358
380
  "type": "platform",
359
381
  "file": "src/Libraries/QuirkSettings/QuirkSettings.js"
360
382
  },
383
+ {
384
+ "type": "patch",
385
+ "file": "src/Libraries/ReactNative/PaperUIManager.win32.js",
386
+ "baseFile": "Libraries/ReactNative/PaperUIManager.js",
387
+ "baseHash": "a72811cd104bb575d0ab2659343dc2ea11c6b674"
388
+ },
361
389
  {
362
390
  "type": "derived",
363
391
  "file": "src/Libraries/Settings/Settings.win32.js",
@@ -389,6 +417,13 @@
389
417
  "baseHash": "d316f87ebc8899c3b99802f684b6a333970d737c",
390
418
  "issue": 7080
391
419
  },
420
+ {
421
+ "type": "patch",
422
+ "file": "src/Libraries/Types/CoreEventTypes.win32.js",
423
+ "baseFile": "Libraries/Types/CoreEventTypes.js",
424
+ "baseHash": "e8f8ce02645228b423fdda317e5d1d9e69b54e6d",
425
+ "issue": 6240
426
+ },
392
427
  {
393
428
  "type": "copy",
394
429
  "file": "src/Libraries/Utilities/BackHandler.win32.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.64.9",
3
+ "version": "0.64.10",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "license": "MIT",
6
6
  "main": "./index.win32.js",