@office-iss/react-native-win32 0.72.0-preview.4 → 0.72.0-preview.6

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 (47) hide show
  1. package/CHANGELOG.json +49 -1
  2. package/CHANGELOG.md +23 -4
  3. package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
  4. package/Libraries/Components/Text/TextWin32.Props.d.ts +1 -1
  5. package/Libraries/Components/Text/TextWin32.Props.js.map +1 -1
  6. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +0 -1
  7. package/Libraries/Components/TextInput/TextInput.d.ts +121 -86
  8. package/Libraries/Components/TextInput/TextInput.flow.js +121 -135
  9. package/Libraries/Components/TextInput/TextInput.js +126 -155
  10. package/Libraries/Components/TextInput/TextInput.win32.js +121 -135
  11. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
  12. package/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +5 -0
  13. package/Libraries/Components/Touchable/TouchableWin32.Props.d.ts +1 -1
  14. package/Libraries/Components/Touchable/TouchableWin32.Props.js.map +1 -1
  15. package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
  16. package/Libraries/Components/View/ViewAccessibility.d.ts +158 -4
  17. package/Libraries/Components/View/ViewPropTypes.d.ts +146 -6
  18. package/Libraries/Components/View/ViewWin32.d.ts +1 -1
  19. package/Libraries/Core/ReactNativeVersion.js +1 -1
  20. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +0 -2
  21. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -13
  22. package/Libraries/Text/TextNativeComponent.win32.js +31 -5
  23. package/Libraries/platform-types.d.ts +5 -5
  24. package/overrides.json +5 -13
  25. package/package.json +16 -16
  26. package/src/Libraries/Components/Button/ButtonWin32.tsx +1 -1
  27. package/src/Libraries/Components/Text/TextWin32.Props.ts +1 -1
  28. package/src/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +1 -1
  29. package/src/Libraries/Components/Touchable/TouchableWin32.Props.tsx +1 -1
  30. package/src/Libraries/Components/Touchable/TouchableWin32.tsx +1 -1
  31. package/{Libraries/Components/View/ViewPropTypes.win32.d.ts → src/Libraries/Components/View/ViewPropTypes.d.ts} +14 -1
  32. package/src/Libraries/Components/View/ViewWin32.d.ts +1 -1
  33. package/src/Libraries/platform-types.d.ts +5 -5
  34. package/types/experimental.d.ts +101 -0
  35. package/Libraries/Components/Text/Tests/TextWin32Test.d.ts +0 -8
  36. package/Libraries/Components/Text/Tests/TextWin32Test.js +0 -120
  37. package/Libraries/Components/Text/Tests/TextWin32Test.js.map +0 -1
  38. package/Libraries/Components/View/Tests/ViewWin32Test.d.ts +0 -8
  39. package/Libraries/Components/View/Tests/ViewWin32Test.js +0 -233
  40. package/Libraries/Components/View/Tests/ViewWin32Test.js.map +0 -1
  41. package/src/Libraries/Components/Text/Tests/TextWin32Test.tsx +0 -164
  42. package/src/Libraries/Components/Touchable/TouchableNativeFeedback.win32.d.ts +0 -119
  43. package/src/Libraries/Components/View/Tests/ViewWin32Test.tsx +0 -333
  44. package/src/Libraries/Components/View/ViewAccessibility.win32.d.ts +0 -527
  45. package/src/Libraries/Components/View/ViewPropTypes.win32.d.ts +0 -372
  46. /package/{Libraries/Components/Touchable/TouchableNativeFeedback.win32.d.ts → src/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts} +0 -0
  47. /package/{Libraries/Components/View/ViewAccessibility.win32.d.ts → src/Libraries/Components/View/ViewAccessibility.d.ts} +0 -0
@@ -8,12 +8,17 @@
8
8
  */
9
9
 
10
10
  import type * as React from 'react';
11
- import {Insets} from '../../../types/public/Insets';
12
- import {GestureResponderHandlers} from '../../../types/public/ReactNativeRenderer';
13
- import {StyleProp} from '../../StyleSheet/StyleSheet';
14
- import {ViewStyle} from '../../StyleSheet/StyleSheetTypes';
15
- import {LayoutChangeEvent, PointerEvents} from '../../Types/CoreEventTypes';
16
- import {Touchable} from '../Touchable/Touchable';
11
+ import {Insets} from 'react-native/types/public/Insets';
12
+ import {GestureResponderHandlers} from 'react-native/types/public/ReactNativeRenderer';
13
+ import {StyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';
14
+ import {ViewStyle} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
15
+ import {
16
+ LayoutChangeEvent,
17
+ MouseEvent, // Win32
18
+ NativeSyntheticEvent, // Win32
19
+ PointerEvents,
20
+ } from 'react-native/Libraries/Types/CoreEventTypes';
21
+ import {Touchable} from 'react-native/Libraries/Components/Touchable/Touchable';
17
22
  import {AccessibilityProps} from './ViewAccessibility';
18
23
 
19
24
  export type TVParallaxProperties = {
@@ -163,12 +168,139 @@ export interface ViewPropsAndroid {
163
168
  focusable?: boolean | undefined;
164
169
  }
165
170
 
171
+ // [Win32
172
+
173
+ export type Cursor =
174
+ | 'auto'
175
+ | 'default'
176
+ | 'pointer'
177
+ | 'help'
178
+ | 'not-allowed'
179
+ | 'wait'
180
+ | 'move'
181
+ | 'nesw-resize'
182
+ | 'ns-resize'
183
+ | 'nwse-resize'
184
+ | 'we-resize'
185
+ | 'text';
186
+
187
+ export namespace EventPhase {
188
+ export const None = 0;
189
+ export const Capturing = 1;
190
+ export const AtTarget = 2;
191
+ export const Bubbling = 3;
192
+ }
193
+
194
+ export interface INativeKeyboardEvent {
195
+ altKey: boolean;
196
+ ctrlKey: boolean;
197
+ metaKey: boolean;
198
+ shiftKey: boolean;
199
+ key: string;
200
+ }
201
+ export type IKeyboardEvent = NativeSyntheticEvent<INativeKeyboardEvent>;
202
+
203
+ // All of T becomes optional except for Keys
204
+ type PartiallyRequired<T, Keys extends keyof T = keyof T> = Pick<
205
+ Partial<T>,
206
+ Exclude<keyof T, Keys>
207
+ > &
208
+ Pick<T, Keys>;
209
+
210
+ export type IHandledKeyboardEvent = PartiallyRequired<
211
+ INativeKeyboardEvent,
212
+ 'key'
213
+ > & {
214
+ eventPhase?:
215
+ | EventPhase.None
216
+ | EventPhase.Capturing
217
+ | EventPhase.AtTarget
218
+ | EventPhase.Bubbling;
219
+ };
220
+ // Win32]
221
+
222
+ export interface ViewPropsWin32 {
223
+ onKeyDown?: (args: IKeyboardEvent) => void;
224
+ onKeyDownCapture?: (args: IKeyboardEvent) => void;
225
+ onKeyUp?: (args: IKeyboardEvent) => void;
226
+ onKeyUpCapture?: (args: IKeyboardEvent) => void;
227
+
228
+ keyDownEvents?: IHandledKeyboardEvent[];
229
+ keyUpEvents?: IHandledKeyboardEvent[];
230
+
231
+ onMouseLeave?: ?((event: MouseEvent) => void);
232
+ onMouseEnter?: ?((event: MouseEvent) => void);
233
+
234
+ /**
235
+ * Specifies the Tooltip for the view
236
+ * @platform windows
237
+ */
238
+ tooltip?: ?string;
239
+
240
+ /**
241
+ * Tab Index
242
+ * @platform windows
243
+ */
244
+ tabIndex?: ?number;
245
+
246
+ /**
247
+ * Specifies if the control should show System focus visuals
248
+ */
249
+ enableFocusRing?: ?boolean;
250
+
251
+ /**
252
+ * The onBlur event occurs when an element loses focus. The opposite of onBlur is onFocus. Note that in React
253
+ * Native, unlike in the web, the onBlur event bubbles (similar to onFocusOut in the web).
254
+ *
255
+ * `ev.target === ev.currentTarget` when the focus is being lost from this component.
256
+ * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.
257
+ */
258
+ onBlur?: (ev: NativeSyntheticEvent<{}>) => void;
259
+ /**
260
+ * The onBlur event occurs when an element loses focus. The opposite of onBlur is onFocus. Note that in React
261
+ * Native, unlike in the web, the onBlur event bubbles (similar to onFocusOut in the web).
262
+ *
263
+ * `ev.target === ev.currentTarget` when the focus is being lost from this component.
264
+ * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.
265
+ */
266
+ onBlurCapture?: (ev: NativeSyntheticEvent<{}>) => void;
267
+ /**
268
+ * The onFocus event occurs when an element gets focus. The opposite of onFocus is onBlur. Note that in React
269
+ * Native, unlike in the web, the onFocus event bubbles (similar to onFocusIn in the web).
270
+ *
271
+ * `ev.target === ev.currentTarget` when the focus is being lost from this component.
272
+ * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.
273
+ */
274
+ onFocus?: (ev: NativeSyntheticEvent<{}>) => void;
275
+ /**
276
+ * The onFocus event occurs when an element gets focus. The opposite of onFocus is onBlur. Note that in React
277
+ * Native, unlike in the web, the onFocus event bubbles (similar to onFocusIn in the web).
278
+ *
279
+ * `ev.target === ev.currentTarget` when the focus is being lost from this component.
280
+ * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.
281
+ */
282
+ onFocusCapture?: (ev: NativeSyntheticEvent<{}>) => void;
283
+
284
+ cursor?: Cursor;
285
+
286
+ /**
287
+ * Whether this `View` should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard.
288
+ */
289
+ focusable?: boolean | undefined;
290
+
291
+ /**
292
+ * Specified an AirSpace animation class to apply to this view
293
+ */
294
+ animationClass?: string;
295
+ }
296
+
166
297
  /**
167
298
  * @see https://reactnative.dev/docs/view#props
168
299
  */
169
300
  export interface ViewProps
170
301
  extends ViewPropsAndroid,
171
302
  ViewPropsIOS,
303
+ ViewPropsWin32,
172
304
  GestureResponderHandlers,
173
305
  Touchable,
174
306
  PointerEvents,
@@ -243,3 +375,11 @@ export interface ViewProps
243
375
  */
244
376
  nativeID?: string | undefined;
245
377
  }
378
+
379
+ // For backwards compat.... // Win32
380
+ export interface IViewWin32 {
381
+ focus: () => void;
382
+ }
383
+
384
+ // For backwards compat.... // Win32
385
+ export type IViewWin32Props = ViewProps;
@@ -9,7 +9,7 @@
9
9
 
10
10
  import type * as React from 'react';
11
11
  import {Constructor} from 'react-native/types/private/Utilities';
12
- import {ViewProps} from './ViewPropTypes.win32';
12
+ import {ViewProps} from './ViewPropTypes';
13
13
  import {NativeMethods} from 'react-native/types/public/ReactNativeTypes';
14
14
 
15
15
  /**
@@ -13,5 +13,5 @@ exports.version = {
13
13
  major: 0,
14
14
  minor: 72,
15
15
  patch: 0,
16
- prerelease: 'rc.3',
16
+ prerelease: null,
17
17
  };
@@ -75,7 +75,6 @@ const PERMISSIONS = Object.freeze({
75
75
  ANSWER_PHONE_CALLS: 'android.permission.ANSWER_PHONE_CALLS',
76
76
  READ_PHONE_NUMBERS: 'android.permission.READ_PHONE_NUMBERS',
77
77
  UWB_RANGING: 'android.permission.UWB_RANGING',
78
- POST_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS', // Remove in 0.72
79
78
  POST_NOTIFICATIONS: 'android.permission.POST_NOTIFICATIONS',
80
79
  NEARBY_WIFI_DEVICES: 'android.permission.NEARBY_WIFI_DEVICES',
81
80
  });
@@ -107,7 +106,6 @@ class PermissionsAndroid {
107
106
  CAMERA: string,
108
107
  GET_ACCOUNTS: string,
109
108
  NEARBY_WIFI_DEVICES: string,
110
- POST_NOTIFICATION: string, // Remove in 0.72
111
109
  POST_NOTIFICATIONS: string,
112
110
  PROCESS_OUTGOING_CALLS: string,
113
111
  READ_CALENDAR: string,
@@ -18,7 +18,7 @@ type FlexAlignType =
18
18
  | 'stretch'
19
19
  | 'baseline';
20
20
 
21
- type DimensionValue =
21
+ export type DimensionValue =
22
22
  | number
23
23
  | 'auto'
24
24
  | `${number}%`
@@ -79,15 +79,9 @@ export interface FlexStyle {
79
79
  | undefined;
80
80
  left?: DimensionValue | undefined;
81
81
  margin?: DimensionValue | undefined;
82
- marginBlock?: DimensionValue | undefined;
83
- marginBlockEnd?: DimensionValue | undefined;
84
- marginBlockStart?: DimensionValue | undefined;
85
82
  marginBottom?: DimensionValue | undefined;
86
83
  marginEnd?: DimensionValue | undefined;
87
84
  marginHorizontal?: DimensionValue | undefined;
88
- marginInline?: DimensionValue | undefined;
89
- marginInlineEnd?: DimensionValue | undefined;
90
- marginInlineStart?: DimensionValue | undefined;
91
85
  marginLeft?: DimensionValue | undefined;
92
86
  marginRight?: DimensionValue | undefined;
93
87
  marginStart?: DimensionValue | undefined;
@@ -100,14 +94,8 @@ export interface FlexStyle {
100
94
  overflow?: 'visible' | 'hidden' | 'scroll' | undefined;
101
95
  padding?: DimensionValue | undefined;
102
96
  paddingBottom?: DimensionValue | undefined;
103
- paddingBlock?: DimensionValue | undefined;
104
- paddingBlockEnd?: DimensionValue | undefined;
105
- paddingBlockStart?: DimensionValue | undefined;
106
97
  paddingEnd?: DimensionValue | undefined;
107
98
  paddingHorizontal?: DimensionValue | undefined;
108
- paddingInline?: DimensionValue | undefined;
109
- paddingInlineEnd?: DimensionValue | undefined;
110
- paddingInlineStart?: DimensionValue | undefined;
111
99
  paddingLeft?: DimensionValue | undefined;
112
100
  paddingRight?: DimensionValue | undefined;
113
101
  paddingStart?: DimensionValue | undefined;
@@ -48,12 +48,38 @@ const textViewConfig = {
48
48
  android_hyphenationFrequency: true,
49
49
  lineBreakStrategyIOS: true,
50
50
  // [Windows
51
- // Listed for the property to be honored even though
52
- // the property tooltip and the events from ViewWin32
53
- //work without being listed. Any Text-specific events
54
- // would need to be listed here.
55
- focusable: true,
51
+ accessibilityAccessKey: true,
52
+ accessibilityAnnotation: true,
53
+ accessibilityControls: true,
54
+ accessibilityDescribedBy: true,
55
+ accessibilityDescription: true,
56
+ accessibilityItemType: true,
56
57
  accessibilityLevel: true,
58
+ accessibilityPositionInSet: true,
59
+ accessibilitySetSize: true,
60
+ animationClass: true,
61
+ cursor: true,
62
+ draggedTypes: true,
63
+ enableFocusRing: true,
64
+ focusable: true,
65
+ keyDownEvents: true,
66
+ keyUpEvents: true,
67
+ onBlur: true,
68
+ onBlurCapture: true,
69
+ onDragEnter: true,
70
+ onDragLeave: true,
71
+ onDrop: true,
72
+ onFocus: true,
73
+ onFocusCapture: true,
74
+ onKeyDown: true,
75
+ onKeyDownCapture: true,
76
+ onKeyUp: true,
77
+ onKeyUpCapture: true,
78
+ onMouseEnter: true,
79
+ onMouseLeave: true,
80
+ tabIndex: true,
81
+ textStyle: true,
82
+ tooltip: true,
57
83
  // Windows]
58
84
  },
59
85
  directEventTypes: {
@@ -5,12 +5,12 @@
5
5
  * need to also be added to index.win32.js
6
6
  */
7
7
 
8
- import {IViewWin32Props as IViewWin32PropsOnly} from './Components/View/ViewPropTypes.win32';
9
- import { AccessibilityPropsWin32 } from '@office-iss/react-native-win32/Libraries/Components/View/ViewAccessibility.win32';
10
- export { AccessibilityPropsWin32 } from '@office-iss/react-native-win32/Libraries/Components/View/ViewAccessibility.win32';
8
+ import {IViewWin32Props as IViewWin32PropsOnly} from './Components/View/ViewPropTypes';
9
+ import { AccessibilityPropsWin32 } from '@office-iss/react-native-win32/Libraries/Components/View/ViewAccessibility';
10
+ export { AccessibilityPropsWin32 } from '@office-iss/react-native-win32/Libraries/Components/View/ViewAccessibility';
11
11
  export type IViewWin32Props = IViewWin32PropsOnly & AccessibilityPropsWin32;
12
12
  export {ViewWin32} from './Components/View/ViewWin32';
13
- export {IKeyboardEvent, IHandledKeyboardEvent} from './Components/View/ViewPropTypes.win32';
13
+ export {IKeyboardEvent, IHandledKeyboardEvent, EventPhase} from './Components/View/ViewPropTypes';
14
14
  import {ITextWin32Props as ITextWin32PropsOnly} from './Components/Text/TextWin32.Props';
15
15
  export type ITextWin32Props = ITextWin32PropsOnly & AccessibilityPropsWin32;
16
16
  export {TextWin32TextStyle } from './Components/Text/TextWin32.Props';
@@ -18,7 +18,7 @@ export {TextWin32} from './Components/Text/TextWin32';
18
18
  export {IButtonWin32Props, IButtonWin32Style} from './Components/Button/ButtonWin32.Props';
19
19
  export {ButtonWin32} from './Components/Button/ButtonWin32';
20
20
  export {GradientColorStop, GradientColorValueWin32, ColorGradientWin32} from './StyleSheet/PlatformColorValueTypesWin32';
21
- export {ITouchableWin32Props} from './Components/Touchable/TouchableWin32.Props';
21
+ export {ITouchableWin32Props, ITouchableWin32State} from './Components/Touchable/TouchableWin32.Props';
22
22
  export * from './Components/Touchable/TouchableWin32.Types';
23
23
  export * from './Components/Touchable/TouchableWin32';
24
24
  export * from './PersonaCoin/PersonaCoin';
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.72.0-rc.3",
10
+ "baseVersion": "0.72.0",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
@@ -103,10 +103,6 @@
103
103
  "baseFile": "packages/react-native/Libraries/Components/ScrollView/ScrollView.js",
104
104
  "baseHash": "7d162bb43bce3f9da78b7c304530b3f804d21658"
105
105
  },
106
- {
107
- "type": "platform",
108
- "file": "src/Libraries/Components/Text/Tests/TextWin32Test.tsx"
109
- },
110
106
  {
111
107
  "type": "platform",
112
108
  "file": "src/Libraries/Components/Text/TextWin32.Props.ts"
@@ -127,7 +123,7 @@
127
123
  "type": "derived",
128
124
  "file": "src/Libraries/Components/TextInput/TextInput.win32.js",
129
125
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
130
- "baseHash": "058fa050230bbb1710b64156f2e3680fc16aa252"
126
+ "baseHash": "a817f8d62ee3ba4c56b772bd0cfb852739cb4aa7"
131
127
  },
132
128
  {
133
129
  "type": "patch",
@@ -155,7 +151,7 @@
155
151
  },
156
152
  {
157
153
  "type": "derived",
158
- "file": "src/Libraries/Components/Touchable/TouchableNativeFeedback.win32.d.ts",
154
+ "file": "src/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts",
159
155
  "baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts",
160
156
  "baseHash": "b38a2d4fb0c6a08c3ada7748fffded9949c97c2a"
161
157
  },
@@ -183,10 +179,6 @@
183
179
  "baseFile": "packages/react-native/Libraries/Components/View/ReactNativeViewAttributes.js",
184
180
  "baseHash": "1e2900121c17ba9f58a7f6d0b3604456a13642bf"
185
181
  },
186
- {
187
- "type": "platform",
188
- "file": "src/Libraries/Components/View/Tests/ViewWin32Test.tsx"
189
- },
190
182
  {
191
183
  "type": "patch",
192
184
  "file": "src/Libraries/Components/View/View.win32.js",
@@ -195,7 +187,7 @@
195
187
  },
196
188
  {
197
189
  "type": "derived",
198
- "file": "src/Libraries/Components/View/ViewAccessibility.win32.d.ts",
190
+ "file": "src/Libraries/Components/View/ViewAccessibility.d.ts",
199
191
  "baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.d.ts",
200
192
  "baseHash": "085982a44202765d099caf13785e8b4a42628d86"
201
193
  },
@@ -207,7 +199,7 @@
207
199
  },
208
200
  {
209
201
  "type": "derived",
210
- "file": "src/Libraries/Components/View/ViewPropTypes.win32.d.ts",
202
+ "file": "src/Libraries/Components/View/ViewPropTypes.d.ts",
211
203
  "baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts",
212
204
  "baseHash": "91d96e475fc55da6c6456a240edbd650c1ca4a26"
213
205
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.72.0-preview.4",
3
+ "version": "0.72.0-preview.6",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,9 +17,8 @@
17
17
  "flow-check": "flow check",
18
18
  "lint:fix": "rnw-scripts lint:fix",
19
19
  "lint": "rnw-scripts lint",
20
- "run-win32-dev-web": "npx @office-iss/rex-win32@0.68.33-devmain.16427.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDevMain --useWebDebugger",
21
- "run-win32-devmain": "npx @office-iss/rex-win32@0.68.33-devmain.16427.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDevMain",
22
- "run-win32": "npx @office-iss/rex-win32@0.68.33-devmain.16427.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useWebDebugger",
20
+ "run-win32-devmain": "npx @office-iss/rex-win32@0.71.15-devmain.16607.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDevMain --useDirectDebugger --useFastRefresh",
21
+ "run-win32": "npx @office-iss/rex-win32@0.71.15-devmain.16607.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDirectDebugger --useFastRefresh",
23
22
  "start": "react-native start --projectRoot ../react-native-win32-tester",
24
23
  "test": "jest",
25
24
  "validate-overrides": "react-native-platform-override validate"
@@ -27,29 +26,29 @@
27
26
  "dependencies": {
28
27
  "@babel/runtime": "^7.0.0",
29
28
  "@jest/create-cache-key-function": "^29.2.1",
30
- "@react-native-community/cli": "11.2.3",
31
- "@react-native-community/cli-platform-android": "11.2.3",
32
- "@react-native-community/cli-platform-ios": "11.2.3",
29
+ "@react-native-community/cli": "11.3.2",
30
+ "@react-native-community/cli-platform-android": "11.3.2",
31
+ "@react-native-community/cli-platform-ios": "11.3.2",
33
32
  "@react-native/assets": "1.0.0",
34
33
  "@react-native/assets-registry": "^0.72.0",
35
- "@react-native/codegen": "^0.72.3",
36
- "@react-native/gradle-plugin": "^0.72.5",
34
+ "@react-native/codegen": "^0.72.6",
35
+ "@react-native/gradle-plugin": "^0.72.10",
37
36
  "@react-native/js-polyfills": "^0.72.1",
38
37
  "@react-native/normalize-colors": "^0.72.0",
39
- "@react-native/virtualized-lists": "^0.72.2",
38
+ "@react-native/virtualized-lists": "^0.72.5",
40
39
  "abort-controller": "^3.0.0",
41
40
  "anser": "^1.4.9",
42
41
  "art": "^0.10.0",
43
42
  "base64-js": "^1.1.2",
44
- "deprecated-react-native-prop-types": "^4.1.0",
43
+ "deprecated-react-native-prop-types": "4.1.0",
45
44
  "event-target-shim": "^5.0.1",
46
45
  "flow-enums-runtime": "^0.0.5",
47
46
  "invariant": "^2.2.4",
48
47
  "jest-environment-node": "^29.2.1",
49
48
  "jsc-android": "^250231.0.0",
50
49
  "memoize-one": "^5.0.0",
51
- "metro-runtime": "0.76.4",
52
- "metro-source-map": "0.76.4",
50
+ "metro-runtime": "0.76.5",
51
+ "metro-source-map": "0.76.5",
53
52
  "mkdirp": "^0.5.1",
54
53
  "nullthrows": "^1.1.1",
55
54
  "pretty-format": "^26.5.2",
@@ -59,8 +58,9 @@
59
58
  "react-refresh": "^0.4.0",
60
59
  "react-shallow-renderer": "^16.15.0",
61
60
  "regenerator-runtime": "^0.13.2",
62
- "scheduler": "^0.23.0",
61
+ "scheduler": "0.24.0-canary-efb381bbf-20230505",
63
62
  "stacktrace-parser": "^0.1.10",
63
+ "use-sync-external-store": "^1.0.0",
64
64
  "whatwg-fetch": "^3.0.0",
65
65
  "ws": "^6.2.2",
66
66
  "yargs": "^17.6.2"
@@ -83,13 +83,13 @@
83
83
  "just-scripts": "^1.3.3",
84
84
  "prettier": "^2.4.1",
85
85
  "react": "18.2.0",
86
- "react-native": "0.72.0-rc.3",
86
+ "react-native": "0.72.0",
87
87
  "react-native-platform-override": "^1.9.4",
88
88
  "typescript": "^4.9.5"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "react": "18.2.0",
92
- "react-native": "0.0.0-20230321-2153-7b86e3aae"
92
+ "react-native": "^0.72.0"
93
93
  },
94
94
  "beachball": {
95
95
  "defaultNpmTag": "preview",
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import RN = require('react-native');
3
- import type { IViewWin32Props } from '../View/ViewPropTypes.win32';
3
+ import type { IViewWin32Props } from '../View/ViewPropTypes';
4
4
  import type { ITextWin32Props } from '../Text/TextWin32.Props';
5
5
  import type { IButtonWin32Props } from './ButtonWin32.Props';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import RN = require('react-native');
2
- import type { IKeyboardEvent, IHandledKeyboardEvent } from '../View/ViewPropTypes.win32';
2
+ import type { IKeyboardEvent, IHandledKeyboardEvent } from '../View/ViewPropTypes';
3
3
 
4
4
  /**
5
5
  * Role-based text style names.
@@ -5,7 +5,7 @@ import {NativeSyntheticEvent, StyleSheet, Text, ViewStyle } from 'react-native';
5
5
  import {Insets} from 'react-native/types/public/Insets';
6
6
  import { TextWin32 } from '../../Text/TextWin32';
7
7
  import { ViewWin32 } from '../../View/ViewWin32';
8
- import { IViewWin32Props, IKeyboardEvent } from '../../View/ViewPropTypes.win32';
8
+ import { IViewWin32Props, IKeyboardEvent } from '../../View/ViewPropTypes';
9
9
  import { TouchableWin32 } from '../TouchableWin32';
10
10
  import { IPressEvent, IRenderChild } from '../TouchableWin32.Types';
11
11
  import { ITouchableWin32State } from '../TouchableWin32.Props';
@@ -2,7 +2,7 @@ import {ViewStyle} from 'react-native';
2
2
  import {Insets} from 'react-native/types/public/Insets';
3
3
 
4
4
  import { IPressEvent, IRenderChild, IRenderStyle } from './TouchableWin32.Types';
5
- import { IViewWin32Props, IKeyboardEvent } from '../View/ViewPropTypes.win32';
5
+ import { IViewWin32Props, IKeyboardEvent } from '../View/ViewPropTypes';
6
6
 
7
7
  export interface ITouchableWin32State {
8
8
  isPressed: boolean;
@@ -25,7 +25,7 @@ import {
25
25
  IStateConditions,
26
26
  ITransitions,
27
27
  } from './TouchableWin32.Types';
28
- import { IKeyboardEvent } from '../View/ViewPropTypes.win32';
28
+ import { IKeyboardEvent } from '../View/ViewPropTypes';
29
29
 
30
30
  const BoundingDimensions = require('./BoundingDimensions');
31
31
  const Position = require('./Position');
@@ -184,6 +184,13 @@ export type Cursor =
184
184
  | 'we-resize'
185
185
  | 'text';
186
186
 
187
+ export namespace EventPhase {
188
+ export const None = 0;
189
+ export const Capturing = 1;
190
+ export const AtTarget = 2;
191
+ export const Bubbling = 3;
192
+ }
193
+
187
194
  export interface INativeKeyboardEvent {
188
195
  altKey: boolean;
189
196
  ctrlKey: boolean;
@@ -203,7 +210,13 @@ type PartiallyRequired<T, Keys extends keyof T = keyof T> = Pick<
203
210
  export type IHandledKeyboardEvent = PartiallyRequired<
204
211
  INativeKeyboardEvent,
205
212
  'key'
206
- >;
213
+ > & {
214
+ eventPhase?:
215
+ | EventPhase.None
216
+ | EventPhase.Capturing
217
+ | EventPhase.AtTarget
218
+ | EventPhase.Bubbling;
219
+ };
207
220
  // Win32]
208
221
 
209
222
  export interface ViewPropsWin32 {
@@ -9,7 +9,7 @@
9
9
 
10
10
  import type * as React from 'react';
11
11
  import {Constructor} from 'react-native/types/private/Utilities';
12
- import {ViewProps} from './ViewPropTypes.win32';
12
+ import {ViewProps} from './ViewPropTypes';
13
13
  import {NativeMethods} from 'react-native/types/public/ReactNativeTypes';
14
14
 
15
15
  /**
@@ -5,12 +5,12 @@
5
5
  * need to also be added to index.win32.js
6
6
  */
7
7
 
8
- import {IViewWin32Props as IViewWin32PropsOnly} from './Components/View/ViewPropTypes.win32';
9
- import { AccessibilityPropsWin32 } from '@office-iss/react-native-win32/Libraries/Components/View/ViewAccessibility.win32';
10
- export { AccessibilityPropsWin32 } from '@office-iss/react-native-win32/Libraries/Components/View/ViewAccessibility.win32';
8
+ import {IViewWin32Props as IViewWin32PropsOnly} from './Components/View/ViewPropTypes';
9
+ import { AccessibilityPropsWin32 } from '@office-iss/react-native-win32/Libraries/Components/View/ViewAccessibility';
10
+ export { AccessibilityPropsWin32 } from '@office-iss/react-native-win32/Libraries/Components/View/ViewAccessibility';
11
11
  export type IViewWin32Props = IViewWin32PropsOnly & AccessibilityPropsWin32;
12
12
  export {ViewWin32} from './Components/View/ViewWin32';
13
- export {IKeyboardEvent, IHandledKeyboardEvent} from './Components/View/ViewPropTypes.win32';
13
+ export {IKeyboardEvent, IHandledKeyboardEvent, EventPhase} from './Components/View/ViewPropTypes';
14
14
  import {ITextWin32Props as ITextWin32PropsOnly} from './Components/Text/TextWin32.Props';
15
15
  export type ITextWin32Props = ITextWin32PropsOnly & AccessibilityPropsWin32;
16
16
  export {TextWin32TextStyle } from './Components/Text/TextWin32.Props';
@@ -18,7 +18,7 @@ export {TextWin32} from './Components/Text/TextWin32';
18
18
  export {IButtonWin32Props, IButtonWin32Style} from './Components/Button/ButtonWin32.Props';
19
19
  export {ButtonWin32} from './Components/Button/ButtonWin32';
20
20
  export {GradientColorStop, GradientColorValueWin32, ColorGradientWin32} from './StyleSheet/PlatformColorValueTypesWin32';
21
- export {ITouchableWin32Props} from './Components/Touchable/TouchableWin32.Props';
21
+ export {ITouchableWin32Props, ITouchableWin32State} from './Components/Touchable/TouchableWin32.Props';
22
22
  export * from './Components/Touchable/TouchableWin32.Types';
23
23
  export * from './Components/Touchable/TouchableWin32';
24
24
  export * from './PersonaCoin/PersonaCoin';