@office-iss/react-native-win32 0.71.8 → 0.71.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.
- package/CHANGELOG.json +31 -1
- package/CHANGELOG.md +20 -4
- package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
- package/Libraries/Components/Text/TextWin32.Props.d.ts +1 -1
- package/Libraries/Components/Text/TextWin32.Props.js.map +1 -1
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +5 -0
- package/Libraries/Components/Touchable/TouchableWin32.Props.d.ts +1 -1
- package/Libraries/Components/Touchable/TouchableWin32.Props.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
- package/Libraries/Components/View/ViewAccessibility.d.ts +157 -3
- package/Libraries/Components/View/ViewPropTypes.d.ts +146 -6
- package/Libraries/Components/View/ViewWin32.d.ts +1 -1
- package/Libraries/Text/TextNativeComponent.win32.js +31 -5
- package/Libraries/platform-types.d.ts +4 -4
- package/overrides.json +3 -11
- package/package.json +3 -3
- package/src/Libraries/Components/Button/ButtonWin32.tsx +1 -1
- package/src/Libraries/Components/Text/TextWin32.Props.ts +1 -1
- package/src/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +1 -1
- package/src/Libraries/Components/Touchable/TouchableWin32.Props.tsx +1 -1
- package/src/Libraries/Components/Touchable/TouchableWin32.tsx +1 -1
- package/src/Libraries/Components/View/ViewWin32.d.ts +1 -1
- package/src/Libraries/platform-types.d.ts +4 -4
- package/Libraries/Components/Text/Tests/TextWin32Test.d.ts +0 -8
- package/Libraries/Components/Text/Tests/TextWin32Test.js +0 -120
- package/Libraries/Components/Text/Tests/TextWin32Test.js.map +0 -1
- package/Libraries/Components/View/Tests/ViewWin32Test.d.ts +0 -8
- package/Libraries/Components/View/Tests/ViewWin32Test.js +0 -233
- package/Libraries/Components/View/Tests/ViewWin32Test.js.map +0 -1
- package/src/Libraries/Components/Text/Tests/TextWin32Test.tsx +0 -164
- package/src/Libraries/Components/Touchable/TouchableNativeFeedback.win32.d.ts +0 -119
- package/src/Libraries/Components/View/Tests/ViewWin32Test.tsx +0 -333
- package/src/Libraries/Components/View/ViewAccessibility.win32.d.ts +0 -527
- package/src/Libraries/Components/View/ViewPropTypes.win32.d.ts +0 -385
- /package/{Libraries/Components/Touchable/TouchableNativeFeedback.win32.d.ts → src/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts} +0 -0
- /package/{Libraries/Components/View/ViewAccessibility.win32.d.ts → src/Libraries/Components/View/ViewAccessibility.d.ts} +0 -0
- /package/{Libraries/Components/View/ViewPropTypes.win32.d.ts → src/Libraries/Components/View/ViewPropTypes.d.ts} +0 -0
|
@@ -7,14 +7,15 @@
|
|
|
7
7
|
* @format
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import {NativeSyntheticEvent} from '
|
|
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'
|
|
@@ -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 '
|
|
12
|
-
import {GestureResponderHandlers} from '
|
|
13
|
-
import {StyleProp} from '
|
|
14
|
-
import {ViewStyle} from '
|
|
15
|
-
import {
|
|
16
|
-
|
|
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
|
|
12
|
+
import {ViewProps} from './ViewPropTypes';
|
|
13
13
|
import {NativeMethods} from 'react-native/types/public/ReactNativeTypes';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -48,12 +48,38 @@ const textViewConfig = {
|
|
|
48
48
|
android_hyphenationFrequency: true,
|
|
49
49
|
lineBreakStrategyIOS: true,
|
|
50
50
|
// [Windows
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
|
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
|
|
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, EventPhase} from './Components/View/ViewPropTypes
|
|
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';
|
package/overrides.json
CHANGED
|
@@ -97,10 +97,6 @@
|
|
|
97
97
|
"baseFile": "Libraries/Components/SafeAreaView/SafeAreaView.js",
|
|
98
98
|
"baseHash": "bde271c753be96e28b5f1b539d0d9a0cbeee77ab"
|
|
99
99
|
},
|
|
100
|
-
{
|
|
101
|
-
"type": "platform",
|
|
102
|
-
"file": "src/Libraries/Components/Text/Tests/TextWin32Test.tsx"
|
|
103
|
-
},
|
|
104
100
|
{
|
|
105
101
|
"type": "platform",
|
|
106
102
|
"file": "src/Libraries/Components/Text/TextWin32.Props.ts"
|
|
@@ -149,7 +145,7 @@
|
|
|
149
145
|
},
|
|
150
146
|
{
|
|
151
147
|
"type": "derived",
|
|
152
|
-
"file": "src/Libraries/Components/Touchable/TouchableNativeFeedback.
|
|
148
|
+
"file": "src/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts",
|
|
153
149
|
"baseFile": "Libraries/Components/Touchable/TouchableNativeFeedback.d.ts",
|
|
154
150
|
"baseHash": "b38a2d4fb0c6a08c3ada7748fffded9949c97c2a"
|
|
155
151
|
},
|
|
@@ -177,10 +173,6 @@
|
|
|
177
173
|
"baseFile": "Libraries/Components/View/ReactNativeViewAttributes.js",
|
|
178
174
|
"baseHash": "1e2900121c17ba9f58a7f6d0b3604456a13642bf"
|
|
179
175
|
},
|
|
180
|
-
{
|
|
181
|
-
"type": "platform",
|
|
182
|
-
"file": "src/Libraries/Components/View/Tests/ViewWin32Test.tsx"
|
|
183
|
-
},
|
|
184
176
|
{
|
|
185
177
|
"type": "patch",
|
|
186
178
|
"file": "src/Libraries/Components/View/View.win32.js",
|
|
@@ -189,7 +181,7 @@
|
|
|
189
181
|
},
|
|
190
182
|
{
|
|
191
183
|
"type": "derived",
|
|
192
|
-
"file": "src/Libraries/Components/View/ViewAccessibility.
|
|
184
|
+
"file": "src/Libraries/Components/View/ViewAccessibility.d.ts",
|
|
193
185
|
"baseFile": "Libraries/Components/View/ViewAccessibility.d.ts",
|
|
194
186
|
"baseHash": "a9a7bfcff4be91484ad8bb17680c4ec225a28f0e"
|
|
195
187
|
},
|
|
@@ -201,7 +193,7 @@
|
|
|
201
193
|
},
|
|
202
194
|
{
|
|
203
195
|
"type": "derived",
|
|
204
|
-
"file": "src/Libraries/Components/View/ViewPropTypes.
|
|
196
|
+
"file": "src/Libraries/Components/View/ViewPropTypes.d.ts",
|
|
205
197
|
"baseFile": "Libraries/Components/View/ViewPropTypes.d.ts",
|
|
206
198
|
"baseHash": "567b5fd7cc602357daa075d728220ffca0f6c2ac"
|
|
207
199
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.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",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"flow-check": "flow check",
|
|
13
13
|
"lint:fix": "rnw-scripts lint:fix",
|
|
14
14
|
"lint": "rnw-scripts lint",
|
|
15
|
-
"run-win32-devmain": "npx @office-iss/rex-win32@0.
|
|
16
|
-
"run-win32": "npx @office-iss/rex-win32@0.
|
|
15
|
+
"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",
|
|
16
|
+
"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",
|
|
17
17
|
"start": "react-native start --projectRoot ../react-native-win32-tester",
|
|
18
18
|
"test": "jest",
|
|
19
19
|
"validate-overrides": "react-native-platform-override validate"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import RN = require('react-native');
|
|
3
|
-
import type { IViewWin32Props } from '../View/ViewPropTypes
|
|
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
|
|
|
@@ -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
|
|
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
|
|
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
|
|
28
|
+
import { IKeyboardEvent } from '../View/ViewPropTypes';
|
|
29
29
|
|
|
30
30
|
const BoundingDimensions = require('./BoundingDimensions');
|
|
31
31
|
const Position = require('./Position');
|
|
@@ -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
|
|
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
|
|
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
|
|
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, EventPhase} from './Components/View/ViewPropTypes
|
|
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';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const title = "TextWin32";
|
|
2
|
-
export declare const displayName = "TextWin32";
|
|
3
|
-
export declare const description = "TextWin32 Examples and Tests";
|
|
4
|
-
export declare const examples: {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
render(): JSX.Element;
|
|
8
|
-
}[];
|