@office-iss/react-native-win32 0.72.0-preview.3 → 0.72.0-preview.5

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 (46) 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/Touchable/Tests/TouchableWin32Test.js.map +1 -1
  7. package/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +5 -0
  8. package/Libraries/Components/Touchable/TouchableWin32.Props.d.ts +1 -1
  9. package/Libraries/Components/Touchable/TouchableWin32.Props.js.map +1 -1
  10. package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
  11. package/Libraries/Components/View/ReactNativeStyleAttributes.js +0 -7
  12. package/Libraries/Components/View/ViewAccessibility.d.ts +158 -4
  13. package/Libraries/Components/View/ViewPropTypes.d.ts +146 -6
  14. package/Libraries/Components/View/ViewWin32.d.ts +1 -1
  15. package/Libraries/Core/ReactNativeVersion.js +1 -1
  16. package/Libraries/NativeComponent/BaseViewConfig.android.js +0 -8
  17. package/Libraries/NativeComponent/BaseViewConfig.ios.js +0 -8
  18. package/Libraries/NativeComponent/BaseViewConfig.win32.js +0 -8
  19. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -7
  20. package/Libraries/StyleSheet/StyleSheetTypes.js +0 -74
  21. package/Libraries/Text/TextNativeComponent.win32.js +31 -5
  22. package/Libraries/platform-types.d.ts +5 -5
  23. package/overrides.json +5 -13
  24. package/package.json +10 -11
  25. package/src/Libraries/Components/Button/ButtonWin32.tsx +1 -1
  26. package/src/Libraries/Components/Text/TextWin32.Props.ts +1 -1
  27. package/src/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +1 -1
  28. package/src/Libraries/Components/Touchable/TouchableWin32.Props.tsx +1 -1
  29. package/src/Libraries/Components/Touchable/TouchableWin32.tsx +1 -1
  30. package/{Libraries/Components/View/ViewPropTypes.win32.d.ts → src/Libraries/Components/View/ViewPropTypes.d.ts} +14 -1
  31. package/src/Libraries/Components/View/ViewWin32.d.ts +1 -1
  32. package/src/Libraries/platform-types.d.ts +5 -5
  33. package/types/index.d.ts +4 -0
  34. package/Libraries/Components/Text/Tests/TextWin32Test.d.ts +0 -8
  35. package/Libraries/Components/Text/Tests/TextWin32Test.js +0 -120
  36. package/Libraries/Components/Text/Tests/TextWin32Test.js.map +0 -1
  37. package/Libraries/Components/View/Tests/ViewWin32Test.d.ts +0 -8
  38. package/Libraries/Components/View/Tests/ViewWin32Test.js +0 -233
  39. package/Libraries/Components/View/Tests/ViewWin32Test.js.map +0 -1
  40. package/src/Libraries/Components/Text/Tests/TextWin32Test.tsx +0 -164
  41. package/src/Libraries/Components/Touchable/TouchableNativeFeedback.win32.d.ts +0 -119
  42. package/src/Libraries/Components/View/Tests/ViewWin32Test.tsx +0 -333
  43. package/src/Libraries/Components/View/ViewAccessibility.win32.d.ts +0 -527
  44. package/src/Libraries/Components/View/ViewPropTypes.win32.d.ts +0 -372
  45. /package/{Libraries/Components/Touchable/TouchableNativeFeedback.win32.d.ts → src/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts} +0 -0
  46. /package/{Libraries/Components/View/ViewAccessibility.win32.d.ts → src/Libraries/Components/View/ViewAccessibility.d.ts} +0 -0
@@ -7,14 +7,15 @@
7
7
  * @format
8
8
  */
9
9
 
10
- import {NativeSyntheticEvent} from '../../Types/CoreEventTypes';
10
+ import {NativeSyntheticEvent} from 'react-native/Libraries/Types/CoreEventTypes';
11
11
 
12
12
  /**
13
13
  * @see https://reactnative.dev/docs/accessibility#accessibility-properties
14
14
  */
15
15
  export interface AccessibilityProps
16
16
  extends AccessibilityPropsAndroid,
17
- AccessibilityPropsIOS {
17
+ AccessibilityPropsIOS,
18
+ AccessibilityPropsWin32 {
18
19
  /**
19
20
  * When true, indicates that the view is an accessibility element.
20
21
  * By default, all the touchable elements are accessible.
@@ -140,7 +141,31 @@ export type AccessibilityActionName =
140
141
  * Generated when a VoiceOver user places focus on or inside the component and performs a two finger scrub gesture (left, right, left).
141
142
  * @platform ios
142
143
  * */
143
- | 'escape';
144
+ | 'escape'
145
+ /**
146
+ * @platform win32
147
+ * */
148
+ | 'AddToSelection' // Win32
149
+ /**
150
+ * @platform win32
151
+ * */
152
+ | 'RemoveFromSelection' // Win32
153
+ /**
154
+ * @platform win32
155
+ * */
156
+ | 'Select' // Win32
157
+ /**
158
+ * @platform win32
159
+ * */
160
+ | 'Expand' // Win32
161
+ /**
162
+ * @platform win32
163
+ * */
164
+ | 'Collapse' // Win32
165
+ /**
166
+ * @platform win32
167
+ * */
168
+ | 'Toggle'; // Win32
144
169
 
145
170
  export type AccessibilityActionEvent = NativeSyntheticEvent<
146
171
  Readonly<{
@@ -169,6 +194,16 @@ export interface AccessibilityState {
169
194
  * When present, informs accessible tools the element is expanded or collapsed
170
195
  */
171
196
  expanded?: boolean | undefined;
197
+
198
+ /**
199
+ * @platform win32
200
+ */
201
+ multiselectable?: boolean | undefined; // Win32
202
+
203
+ /**
204
+ * @platform win32
205
+ */
206
+ required?: boolean | undefined; // Win32
172
207
  }
173
208
 
174
209
  export interface AccessibilityValue {
@@ -195,6 +230,16 @@ export interface AccessibilityValue {
195
230
 
196
231
  export type AccessibilityRole =
197
232
  | 'none'
233
+ | 'alertdialog' // Win32
234
+ | 'application' // Win32
235
+ | 'dialog' // Win32
236
+ | 'group' // Win32
237
+ | 'listitem' // Win32
238
+ | 'presentation' // Win32
239
+ | 'tabpanel' // Win32
240
+ | 'textbox' // Win32
241
+ | 'tree' // Win32
242
+ | 'treeitem' // Win32
198
243
  | 'button'
199
244
  | 'togglebutton'
200
245
  | 'link'
@@ -274,7 +319,7 @@ export interface AccessibilityPropsIOS {
274
319
  accessibilityViewIsModal?: boolean | undefined;
275
320
 
276
321
  /**
277
- * When accessible is true, the system will invoke this function when the user performs the escape gesture (scrub with two fingers).
322
+ * When accessibile is true, the system will invoke this function when the user performs the escape gesture (scrub with two fingers).
278
323
  * @platform ios
279
324
  */
280
325
  onAccessibilityEscape?: (() => void) | undefined;
@@ -305,6 +350,114 @@ export interface AccessibilityPropsIOS {
305
350
  accessibilityLanguage?: string | undefined;
306
351
  }
307
352
 
353
+ // [Win32]
354
+ export type AnnotationType =
355
+ | 'AdvanceProofingIssue'
356
+ | 'Author'
357
+ | 'CircularReferenceError'
358
+ | 'Comment'
359
+ | 'ConflictingChange'
360
+ | 'DataValidationError'
361
+ | 'DeletionChange'
362
+ | 'EditingLockedChange'
363
+ | 'Endnote'
364
+ | 'ExternalChange'
365
+ | 'Footer'
366
+ | 'Footnote'
367
+ | 'FormatChange'
368
+ | 'FormulaError'
369
+ | 'GrammarError'
370
+ | 'Header'
371
+ | 'Highlighted'
372
+ | 'InsertionChange'
373
+ | 'Mathematics'
374
+ | 'MoveChange'
375
+ | 'SpellingError'
376
+ | 'TrackChanges'
377
+ | 'Unknown'
378
+ | 'UnsyncedChange';
379
+
380
+ // [Win32]
381
+ export type AccessibilityAnnotationInfo = Readonly<{
382
+ typeID: AnnotationType;
383
+ typeName?: string;
384
+ author?: string;
385
+ dateTime?: string;
386
+ target?: string;
387
+ }>;
388
+
389
+ // [Win32]
390
+ export interface AccessibilityPropsWin32 {
391
+ /**
392
+ * accessibilityPositionInSet
393
+ * @platform win32
394
+ */
395
+ accessibilityPositionInSet?: number;
396
+ /**
397
+ * accessibilitySetSize
398
+ * @platform win32
399
+ */
400
+ accessibilitySetSize?: ?number;
401
+
402
+ /**
403
+ * accessibilityDescription provides more detailed information specific to the element (i.e. last edit date, full location for a file)
404
+ * while accessibilityHint provides infomation on what will happen when they perform an action.
405
+ * @platform win32
406
+ *
407
+ */
408
+ accessibilityDescription?: string;
409
+
410
+ /**
411
+ * Tells a person using a screen reader what kind of annotation they
412
+ * have selected. If available, it will also tell a person the author of the annotation and
413
+ * the date and time the annotation was posted.
414
+ *
415
+ * Note: If typeID is 'Unknown', a typeName must be provided.
416
+ * @platform win32
417
+ */
418
+ accessibilityAnnotation?: AccessibilityAnnotationInfo;
419
+
420
+ /**
421
+ * An access key to hook up to the UIA_AccessKey_Property.
422
+ * Access keys are used in keyboard navigation to allow quick navigation to UI in an application.
423
+ * @platform win32
424
+ */
425
+ accessibilityAccessKey?: string;
426
+
427
+ /**
428
+ * Defines the level of an element in a hierarchical structure or the heading level of a text element.
429
+ * Note: accessibilityRole="header" must be used if using this property to define a heading level.
430
+ * @platform win32
431
+ */
432
+ accessibilityLevel?: number;
433
+
434
+ /**
435
+ * Identifies the ItemType property, which is a text string describing the type of the automation element.
436
+ * ItemType is used to obtain information about items in a list, tree view, or data grid. For example, an item in a file directory view might be a "Document File" or a "Folder".
437
+ * @platform win32
438
+ */
439
+ accessibilityItemType?: string;
440
+
441
+ /**
442
+ * Identifies the element whose contents or presence are controlled by another element.
443
+ *
444
+ * This is mainly used for a Textbox with a Dropdown PeoplePicker-type list. This allows an
445
+ * accessibility tool to query those other providers for properties and listen to their events.
446
+ *
447
+ * The value should match the nativeID of the target element.
448
+ * @platform win32
449
+ */
450
+ accessibilityControls?: string | undefined;
451
+
452
+ /**
453
+ * Windows Accessibility extensions for allowing other DOM elements to label or describe a given element.
454
+ *
455
+ * The value should match the nativeID of the target element.
456
+ * @platform win32
457
+ */
458
+ accessibilityDescribedBy?: string | undefined;
459
+ }
460
+
308
461
  export type Role =
309
462
  | 'alert'
310
463
  | 'alertdialog'
@@ -365,6 +518,7 @@ export type Role =
365
518
  | 'tablist'
366
519
  | 'tabpanel'
367
520
  | 'term'
521
+ | 'textbox' // Win32
368
522
  | 'timer'
369
523
  | 'toolbar'
370
524
  | 'tooltip'
@@ -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.1',
16
+ prerelease: 'rc.3',
17
17
  };
@@ -258,14 +258,6 @@ const validAttributesForNonEventProps = {
258
258
  top: true,
259
259
  bottom: true,
260
260
 
261
- inset: true,
262
- insetBlock: true,
263
- insetBlockEnd: true,
264
- insetBlockStart: true,
265
- insetInline: true,
266
- insetInlineEnd: true,
267
- insetInlineStart: true,
268
-
269
261
  position: true,
270
262
 
271
263
  style: ReactNativeStyleAttributes,
@@ -236,14 +236,6 @@ const validAttributesForNonEventProps = {
236
236
  bottom: true,
237
237
  left: true,
238
238
 
239
- inset: true,
240
- insetBlock: true,
241
- insetBlockEnd: true,
242
- insetBlockStart: true,
243
- insetInline: true,
244
- insetInlineEnd: true,
245
- insetInlineStart: true,
246
-
247
239
  width: true,
248
240
  height: true,
249
241
 
@@ -236,14 +236,6 @@ const validAttributesForNonEventProps = {
236
236
  bottom: true,
237
237
  left: true,
238
238
 
239
- inset: true,
240
- insetBlock: true,
241
- insetBlockEnd: true,
242
- insetBlockStart: true,
243
- insetInline: true,
244
- insetInlineEnd: true,
245
- insetInlineStart: true,
246
-
247
239
  width: true,
248
240
  height: true,
249
241
 
@@ -69,13 +69,6 @@ export interface FlexStyle {
69
69
  flexShrink?: number | undefined;
70
70
  flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | undefined;
71
71
  height?: DimensionValue | undefined;
72
- inset?: DimensionValue | undefined;
73
- insetBlock?: DimensionValue | undefined;
74
- insetBlockEnd?: DimensionValue | undefined;
75
- insetBlockStart?: DimensionValue | undefined;
76
- insetInline?: DimensionValue | undefined;
77
- insetInlineEnd?: DimensionValue | undefined;
78
- insetInlineStart?: DimensionValue | undefined;
79
72
  justifyContent?:
80
73
  | 'flex-start'
81
74
  | 'flex-end'
@@ -134,80 +134,6 @@ type ____LayoutStyle_Internal = $ReadOnly<{
134
134
  */
135
135
  top?: DimensionValue,
136
136
 
137
- /** `inset` is a shorthand that corresponds to the top, right, bottom, and/or left properties.
138
- *
139
- * It works similarly to `inset` in CSS, but in React Native you
140
- * must use points or percentages. Ems and other units are not supported.
141
- *
142
- * See https://developer.mozilla.org/en-US/docs/Web/CSS/inset
143
- * for more details of how `inset` affects layout.
144
- */
145
- inset?: DimensionValue,
146
-
147
- /** `insetBlock` is a shorthand that corresponds to the `insetBlockStart` and `insetBlockEnd` properties.
148
- *
149
- * It works similarly to `inset-block` in CSS, but in React Native you
150
- * must use points or percentages. Ems and other units are not supported.
151
- *
152
- * See https://developer.mozilla.org/en-US/docs/Web/CSS/inset-block
153
- * for more details of how `inset-block` affects layout.
154
- */
155
- insetBlock?: DimensionValue,
156
-
157
- /** `insetBlockEnd` is a logical property that sets the length that an
158
- * element is offset in the block direction from its ending edge.
159
- *
160
- * It works similarly to `inset-block-end` in CSS, but in React Native you
161
- * must use points or percentages. Ems and other units are not supported.
162
- *
163
- * See https://developer.mozilla.org/en-US/docs/Web/CSS/inset-block-end
164
- * for more details of how `inset-block-end` affects layout.
165
- */
166
- insetBlockEnd?: DimensionValue,
167
-
168
- /** `insetBlockStart` is a logical property that sets the length that an
169
- * element is offset in the block direction from its starting edge.
170
- *
171
- * It works similarly to `inset-block-start` in CSS, but in React Native you
172
- * must use points or percentages. Ems and other units are not supported.
173
- *
174
- * See https://developer.mozilla.org/en-US/docs/Web/CSS/inset-block-start
175
- * for more details of how `inset-block-start` affects layout.
176
- */
177
- insetBlockStart?: DimensionValue,
178
-
179
- /** `insetInline` is a shorthand that corresponds to the `insetInlineStart` and `insetInlineEnd` properties.
180
- *
181
- * It works similarly to `inset-inline` in CSS, but in React Native you
182
- * must use points or percentages. Ems and other units are not supported.
183
- *
184
- * See https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline
185
- * for more details of how `inset-inline` affects layout.
186
- */
187
- insetInline?: DimensionValue,
188
-
189
- /** `insetInlineEnd` is a logical property that sets the length that an
190
- * element is offset in the starting inline direction.
191
- *
192
- * It works similarly to `inset-inline-end` in CSS, but in React Native you
193
- * must use points or percentages. Ems and other units are not supported.
194
- *
195
- * See https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline-end
196
- * for more details of how `inset-inline-end` affects layout.
197
- */
198
- insetInlineEnd?: DimensionValue,
199
-
200
- /** `insetInlineStart` is a logical property that sets the length that an
201
- * element is offset in the starting inline direction.
202
- *
203
- * It works similarly to `inset-inline-start` in CSS, but in React Native you
204
- * must use points or percentages. Ems and other units are not supported.
205
- *
206
- * See https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline-start
207
- * for more details of how `inset-inline-start` affects layout.
208
- */
209
- insetInlineStart?: DimensionValue,
210
-
211
137
  /** `minWidth` is the minimum width for this component, in logical pixels.
212
138
  *
213
139
  * It works similarly to `min-width` in CSS, but in React Native you
@@ -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.1",
10
+ "baseVersion": "0.72.0-rc.3",
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"
@@ -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
  },
@@ -344,7 +336,7 @@
344
336
  "type": "derived",
345
337
  "file": "src/Libraries/NativeComponent/BaseViewConfig.win32.js",
346
338
  "baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
347
- "baseHash": "3c1918ff2ab3e43b4900e9b1e8549537d273d575"
339
+ "baseHash": "daeb879969c322e67efcb9595d6bb171b9dad6d8"
348
340
  },
349
341
  {
350
342
  "type": "derived",