@office-iss/react-native-win32 0.68.6 → 0.68.8
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 +37 -1
- package/CHANGELOG.md +21 -4
- package/Libraries/Components/View/ViewWin32.Props.d.ts +5 -1
- package/Libraries/Components/View/ViewWin32.Props.js.map +1 -1
- package/Libraries/Text/TextNativeComponent.win32.js +1 -0
- package/package.json +3 -3
- package/rntypes/index.d.ts +90 -38
- package/src/Libraries/Components/View/ViewWin32.Props.ts +6 -1
- package/src/rntypes/index.d.ts +90 -38
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,43 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
5
|
+
"date": "Mon, 07 Nov 2022 16:09:41 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.68.8",
|
|
7
|
+
"version": "0.68.8",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "krsiler@microsoft.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "eb28a75a26d828cd694ec8b46e9988aa98fb1077",
|
|
14
|
+
"comment": "Add accessibilityLevel to BasePropsWin32"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "krsiler@microsoft.com",
|
|
18
|
+
"package": "@office-iss/react-native-win32",
|
|
19
|
+
"commit": "eb28a75a26d828cd694ec8b46e9988aa98fb1077",
|
|
20
|
+
"comment": "Remove duplicate accessibilityLevel prop"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Mon, 24 Oct 2022 15:08:15 GMT",
|
|
27
|
+
"tag": "@office-iss/react-native-win32_v0.68.7",
|
|
28
|
+
"version": "0.68.7",
|
|
29
|
+
"comments": {
|
|
30
|
+
"patch": [
|
|
31
|
+
{
|
|
32
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
33
|
+
"package": "@office-iss/react-native-win32",
|
|
34
|
+
"commit": "aa91e7bf33f272ec2a181796027fdc842b1c584f",
|
|
35
|
+
"comment": "Bump RN types to 0.68"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Mon, 26 Sep 2022 15:08:21 GMT",
|
|
6
42
|
"tag": "@office-iss/react-native-win32_v0.68.6",
|
|
7
43
|
"version": "0.68.6",
|
|
8
44
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,34 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on Mon,
|
|
3
|
+
This log was last generated on Mon, 07 Nov 2022 16:09:41 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.68.
|
|
7
|
+
## 0.68.8
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 07 Nov 2022 16:09:41 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Add accessibilityLevel to BasePropsWin32 (krsiler@microsoft.com)
|
|
14
|
+
- Remove duplicate accessibilityLevel prop (krsiler@microsoft.com)
|
|
14
15
|
|
|
16
|
+
## 0.68.7
|
|
17
|
+
|
|
18
|
+
Mon, 24 Oct 2022 15:08:15 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- Bump RN types to 0.68 (30809111+acoates-ms@users.noreply.github.com)
|
|
23
|
+
|
|
24
|
+
## 0.68.6
|
|
25
|
+
|
|
26
|
+
Mon, 26 Sep 2022 15:08:21 GMT
|
|
27
|
+
|
|
28
|
+
### Patches
|
|
29
|
+
|
|
30
|
+
- Consolidate JavaScript HTTP module specifications (#10628) (julio.rocha@microsoft.com)
|
|
31
|
+
|
|
15
32
|
## 0.68.5
|
|
16
33
|
|
|
17
34
|
Sat, 17 Sep 2022 02:23:36 GMT
|
|
@@ -86,6 +86,11 @@ export declare type BasePropsWin32 = {
|
|
|
86
86
|
* 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".
|
|
87
87
|
*/
|
|
88
88
|
accessibilityItemType?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Defines the level of an element in a hierarchical structure or the heading level of a text element.
|
|
91
|
+
* Note: accessibilityRole="header" must be used if using this property to define a heading level.
|
|
92
|
+
*/
|
|
93
|
+
accessibilityLevel?: number;
|
|
89
94
|
};
|
|
90
95
|
export declare type ViewWin32OmitTypes = RN.ViewPropsAndroid & RN.ViewPropsIOS & RN.AccessibilityPropsAndroid & Omit<RN.AccessibilityPropsIOS, SharedAccessibilityPropsIOSandWin32> & OmittedAccessibilityPropsWin32;
|
|
91
96
|
/**
|
|
@@ -114,7 +119,6 @@ export interface IViewWin32Props extends Omit<RN.ViewProps, ViewWin32OmitTypes>,
|
|
|
114
119
|
*
|
|
115
120
|
*/
|
|
116
121
|
accessibilityDescription?: string;
|
|
117
|
-
accessibilityLevel?: number;
|
|
118
122
|
accessibilityPositionInSet?: number;
|
|
119
123
|
accessibilitySetSize?: number;
|
|
120
124
|
animationClass?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewWin32.Props.js","sourceRoot":"","sources":["../../../src/Libraries/Components/View/ViewWin32.Props.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAeb,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,2CAAI,CAAA;IACJ,qDAAS,CAAA;IACT,mDAAQ,CAAA;IACR,mDAAQ,CAAA;AACV,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB","sourcesContent":["'use strict';\nimport React from 'react'\nimport RN = require('react-native');\n\n// removes from interface T the members of interface K\ntype Omit<T, K> = Pick<T, Exclude<keyof T, keyof K>>;\n\n// All of T becomes optional except for Keys\ntype PartiallyRequired<T, Keys extends keyof T = keyof T> = Pick<Partial<T>, Exclude<keyof T, Keys>> & Pick<T, Keys>;\n\n/**\n * All of TOrigin except Key from TUse\n */\nexport type UseFrom<TOrigin, TUse, Key extends keyof TUse> = Pick<TOrigin, Exclude<keyof TOrigin, Key>> & Pick<TUse, Key>;\n\nexport enum EventPhase {\n None,\n Capturing,\n AtTarget,\n Bubbling\n}\n\nexport interface INativeKeyboardEvent {\n altKey: boolean;\n ctrlKey: boolean;\n metaKey: boolean;\n shiftKey: boolean;\n key: string;\n eventPhase: EventPhase;\n}\nexport type IKeyboardEvent = RN.NativeSyntheticEvent<INativeKeyboardEvent>;\nexport type IHandledKeyboardEvent = PartiallyRequired<INativeKeyboardEvent, 'key'>;\n\nexport interface IViewWin32 {\n focus: () => void;\n}\n\nexport type ARIARole =\n | 'alert'\n | 'alertdialog'\n | 'application'\n | 'button'\n | 'checkbox'\n | 'combobox'\n | 'dialog'\n | 'group'\n | 'link'\n | 'listitem'\n | 'menu'\n | 'menubar'\n | 'menuitem'\n | 'none'\n | 'presentation'\n | 'progressbar'\n | 'radio'\n | 'radiogroup'\n | 'scrollbar'\n | 'search'\n | 'spinbutton'\n | 'switch'\n | 'tab'\n | 'tablist'\n | 'tabpanel'\n | 'textbox'\n | 'timer'\n | 'toolbar'\n | 'tree'\n | 'treeitem';\n\nexport type AnnotationType =\n | 'AdvanceProofingIssue'\n | 'Author'\n | 'CircularReferenceError'\n | 'Comment'\n | 'ConflictingChange'\n | 'DataValidationError'\n | 'DeletionChange'\n | 'EditingLockedChange'\n | 'Endnote'\n | 'ExternalChange'\n | 'Footer'\n | 'Footnote'\n | 'FormatChange'\n | 'FormulaError'\n | 'GrammarError'\n | 'Header'\n | 'Highlighted'\n | 'InsertionChange'\n | 'Mathematics'\n | 'MoveChange'\n | 'SpellingError'\n | 'TrackChanges'\n | 'Unknown'\n | 'UnsyncedChange';\n\nexport type AccessibilityAnnotationInfo = Readonly<{\n typeID: AnnotationType;\n typeName?: string;\n author?: string;\n dateTime?: string;\n target?: string;\n}>;\n\nexport type AccessibilityActionName =\n | RN.AccessibilityActionName\n | 'AddToSelection'\n | 'RemoveFromSelection'\n | 'Select'\n | 'Expand'\n | 'Collapse'\n | 'Toggle';\n\nexport type Cursor =\n | 'auto'\n | 'default'\n | 'pointer'\n | 'help'\n | 'not-allowed'\n | 'wait'\n | 'move'\n | 'nesw-resize'\n | 'ns-resize'\n | 'nwse-resize'\n | 'we-resize'\n | 'text'\n\nexport type AccessibilityActionInfo = Readonly<{\n name: AccessibilityActionName;\n label?: string;\n}>;\n\nexport type AccessibilityState = RN.AccessibilityState & { multiselectable?: boolean, required?: boolean };\n\nexport type SharedAccessibilityPropsIOSandWin32 = {\n onAccessibilityTap?: () => void;\n};\n\nexport type OmittedAccessibilityPropsWin32 = {\n accessibilityActions?: ReadonlyArray<RN.AccessibilityActionInfo>;\n accessibilityRole?: RN.AccessibilityRole;\n accessibilityState?: RN.AccessibilityState;\n};\n\nexport type BasePropsWin32 = {\n /**\n * Tells a person using a screen reader the type of element they are focused on.\n *\n * Overrides the `accessibilityRole` prop on React Native to accept a subset of ARIA roles.\n *\n * Possible values for ARIARole are: alert, alertdialog, application, button, checkbox,\n * comobox, dialog, group, link, menu, menubar, menuitem, none, presentation, progressbar,\n * radio, radiogroup, scrollbar, search, spinbutton, switch, tab, tablist, tabpanel, textbox,\n * timer, toolbar, tree, and treeitem.\n */\n accessibilityRole?: RN.AccessibilityRole | ARIARole;\n accessibilityState?: AccessibilityState;\n accessibilityActions?: ReadonlyArray<AccessibilityActionInfo>;\n\n /**\n * Windows Accessibility extensions for allowing other DOM elements to label or describe a given element.\n *\n * Defined as a reference to another DOM element inheriting from the primary base classes of React-Native elements.\n * The reference will be converted to a native reference (tag) before passing to the native platform.\n */\n accessibilityDescribedBy?: React.RefObject<any>;\n accessibilityLabeledBy?: React.RefObject<any>;\n\n /**\n * Identifies the element whose contents or presence are controlled by another element. \n * \n * This is mainly used for a Textbox with a Dropdown PeoplePicker-type list. This allows an \n * accessibility tool to query those other providers for properties and listen to their events.\n */\n accessibilityControls?: React.RefObject<any>; \n\n /**\n * Identifies the ItemType property, which is a text string describing the type of the automation element.\n * 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\".\n */\n accessibilityItemType?: string;\n};\n\nexport type ViewWin32OmitTypes = RN.ViewPropsAndroid &\n RN.ViewPropsIOS &\n RN.AccessibilityPropsAndroid &\n Omit<RN.AccessibilityPropsIOS, SharedAccessibilityPropsIOSandWin32> &\n OmittedAccessibilityPropsWin32;\n\n/**\n * Properties for ViewWin32 component\n */\nexport interface IViewWin32Props extends Omit<RN.ViewProps, ViewWin32OmitTypes>, BasePropsWin32 {\n type?: React.ElementType;\n children?: React.ReactNode;\n /**\n * An access key to hook up to the UIA_AccessKey_Property.\n * Access keys are used in keyboard navigation to allow quick navigation to UI in an application.\n */\n accessibilityAccessKey?: string;\n accessibilityActions?: ReadonlyArray<AccessibilityActionInfo>;\n /**\n * Tells a person using a screen reader what kind of annotation they\n * have selected. If available, it will also tell a person the author of the annotation and\n * the date and time the annotation was posted.\n *\n * Note: If typeID is 'Unknown', a typeName must be provided.\n */\n accessibilityAnnotation?: AccessibilityAnnotationInfo;\n /**\n * accessibilityDescription provides more detailed information specific to the element (i.e. last edit date, full location for a file)\n * while accessibilityHint provides infomation on what will happen when they perform an action.\n *\n */\n accessibilityDescription?: string;\n
|
|
1
|
+
{"version":3,"file":"ViewWin32.Props.js","sourceRoot":"","sources":["../../../src/Libraries/Components/View/ViewWin32.Props.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAeb,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,2CAAI,CAAA;IACJ,qDAAS,CAAA;IACT,mDAAQ,CAAA;IACR,mDAAQ,CAAA;AACV,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB","sourcesContent":["'use strict';\nimport React from 'react'\nimport RN = require('react-native');\n\n// removes from interface T the members of interface K\ntype Omit<T, K> = Pick<T, Exclude<keyof T, keyof K>>;\n\n// All of T becomes optional except for Keys\ntype PartiallyRequired<T, Keys extends keyof T = keyof T> = Pick<Partial<T>, Exclude<keyof T, Keys>> & Pick<T, Keys>;\n\n/**\n * All of TOrigin except Key from TUse\n */\nexport type UseFrom<TOrigin, TUse, Key extends keyof TUse> = Pick<TOrigin, Exclude<keyof TOrigin, Key>> & Pick<TUse, Key>;\n\nexport enum EventPhase {\n None,\n Capturing,\n AtTarget,\n Bubbling\n}\n\nexport interface INativeKeyboardEvent {\n altKey: boolean;\n ctrlKey: boolean;\n metaKey: boolean;\n shiftKey: boolean;\n key: string;\n eventPhase: EventPhase;\n}\nexport type IKeyboardEvent = RN.NativeSyntheticEvent<INativeKeyboardEvent>;\nexport type IHandledKeyboardEvent = PartiallyRequired<INativeKeyboardEvent, 'key'>;\n\nexport interface IViewWin32 {\n focus: () => void;\n}\n\nexport type ARIARole =\n | 'alert'\n | 'alertdialog'\n | 'application'\n | 'button'\n | 'checkbox'\n | 'combobox'\n | 'dialog'\n | 'group'\n | 'link'\n | 'listitem'\n | 'menu'\n | 'menubar'\n | 'menuitem'\n | 'none'\n | 'presentation'\n | 'progressbar'\n | 'radio'\n | 'radiogroup'\n | 'scrollbar'\n | 'search'\n | 'spinbutton'\n | 'switch'\n | 'tab'\n | 'tablist'\n | 'tabpanel'\n | 'textbox'\n | 'timer'\n | 'toolbar'\n | 'tree'\n | 'treeitem';\n\nexport type AnnotationType =\n | 'AdvanceProofingIssue'\n | 'Author'\n | 'CircularReferenceError'\n | 'Comment'\n | 'ConflictingChange'\n | 'DataValidationError'\n | 'DeletionChange'\n | 'EditingLockedChange'\n | 'Endnote'\n | 'ExternalChange'\n | 'Footer'\n | 'Footnote'\n | 'FormatChange'\n | 'FormulaError'\n | 'GrammarError'\n | 'Header'\n | 'Highlighted'\n | 'InsertionChange'\n | 'Mathematics'\n | 'MoveChange'\n | 'SpellingError'\n | 'TrackChanges'\n | 'Unknown'\n | 'UnsyncedChange';\n\nexport type AccessibilityAnnotationInfo = Readonly<{\n typeID: AnnotationType;\n typeName?: string;\n author?: string;\n dateTime?: string;\n target?: string;\n}>;\n\nexport type AccessibilityActionName =\n | RN.AccessibilityActionName\n | 'AddToSelection'\n | 'RemoveFromSelection'\n | 'Select'\n | 'Expand'\n | 'Collapse'\n | 'Toggle';\n\nexport type Cursor =\n | 'auto'\n | 'default'\n | 'pointer'\n | 'help'\n | 'not-allowed'\n | 'wait'\n | 'move'\n | 'nesw-resize'\n | 'ns-resize'\n | 'nwse-resize'\n | 'we-resize'\n | 'text'\n\nexport type AccessibilityActionInfo = Readonly<{\n name: AccessibilityActionName;\n label?: string;\n}>;\n\nexport type AccessibilityState = RN.AccessibilityState & { multiselectable?: boolean, required?: boolean };\n\nexport type SharedAccessibilityPropsIOSandWin32 = {\n onAccessibilityTap?: () => void;\n};\n\nexport type OmittedAccessibilityPropsWin32 = {\n accessibilityActions?: ReadonlyArray<RN.AccessibilityActionInfo>;\n accessibilityRole?: RN.AccessibilityRole;\n accessibilityState?: RN.AccessibilityState;\n};\n\nexport type BasePropsWin32 = {\n /**\n * Tells a person using a screen reader the type of element they are focused on.\n *\n * Overrides the `accessibilityRole` prop on React Native to accept a subset of ARIA roles.\n *\n * Possible values for ARIARole are: alert, alertdialog, application, button, checkbox,\n * comobox, dialog, group, link, menu, menubar, menuitem, none, presentation, progressbar,\n * radio, radiogroup, scrollbar, search, spinbutton, switch, tab, tablist, tabpanel, textbox,\n * timer, toolbar, tree, and treeitem.\n */\n accessibilityRole?: RN.AccessibilityRole | ARIARole;\n accessibilityState?: AccessibilityState;\n accessibilityActions?: ReadonlyArray<AccessibilityActionInfo>;\n\n /**\n * Windows Accessibility extensions for allowing other DOM elements to label or describe a given element.\n *\n * Defined as a reference to another DOM element inheriting from the primary base classes of React-Native elements.\n * The reference will be converted to a native reference (tag) before passing to the native platform.\n */\n accessibilityDescribedBy?: React.RefObject<any>;\n accessibilityLabeledBy?: React.RefObject<any>;\n\n /**\n * Identifies the element whose contents or presence are controlled by another element. \n * \n * This is mainly used for a Textbox with a Dropdown PeoplePicker-type list. This allows an \n * accessibility tool to query those other providers for properties and listen to their events.\n */\n accessibilityControls?: React.RefObject<any>; \n\n /**\n * Identifies the ItemType property, which is a text string describing the type of the automation element.\n * 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\".\n */\n accessibilityItemType?: string;\n\n /**\n * Defines the level of an element in a hierarchical structure or the heading level of a text element.\n * Note: accessibilityRole=\"header\" must be used if using this property to define a heading level.\n */\n accessibilityLevel?: number;\n};\n\nexport type ViewWin32OmitTypes = RN.ViewPropsAndroid &\n RN.ViewPropsIOS &\n RN.AccessibilityPropsAndroid &\n Omit<RN.AccessibilityPropsIOS, SharedAccessibilityPropsIOSandWin32> &\n OmittedAccessibilityPropsWin32;\n\n/**\n * Properties for ViewWin32 component\n */\nexport interface IViewWin32Props extends Omit<RN.ViewProps, ViewWin32OmitTypes>, BasePropsWin32 {\n type?: React.ElementType;\n children?: React.ReactNode;\n /**\n * An access key to hook up to the UIA_AccessKey_Property.\n * Access keys are used in keyboard navigation to allow quick navigation to UI in an application.\n */\n accessibilityAccessKey?: string;\n accessibilityActions?: ReadonlyArray<AccessibilityActionInfo>;\n /**\n * Tells a person using a screen reader what kind of annotation they\n * have selected. If available, it will also tell a person the author of the annotation and\n * the date and time the annotation was posted.\n *\n * Note: If typeID is 'Unknown', a typeName must be provided.\n */\n accessibilityAnnotation?: AccessibilityAnnotationInfo;\n /**\n * accessibilityDescription provides more detailed information specific to the element (i.e. last edit date, full location for a file)\n * while accessibilityHint provides infomation on what will happen when they perform an action.\n *\n */\n accessibilityDescription?: string;\n accessibilityPositionInSet?: number;\n\n accessibilitySetSize?: number;\n animationClass?: string;\n focusable?: boolean;\n enableFocusRing?: boolean;\n\n /**\n * The onBlur event occurs when an element loses focus. The opposite of onBlur is onFocus. Note that in React\n * Native, unlike in the web, the onBlur event bubbles (similar to onFocusOut in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onBlur?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n /**\n * The onBlur event occurs when an element loses focus. The opposite of onBlur is onFocus. Note that in React\n * Native, unlike in the web, the onBlur event bubbles (similar to onFocusOut in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onBlurCapture?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n /**\n * The onFocus event occurs when an element gets focus. The opposite of onFocus is onBlur. Note that in React\n * Native, unlike in the web, the onFocus event bubbles (similar to onFocusIn in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onFocus?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n /**\n * The onFocus event occurs when an element gets focus. The opposite of onFocus is onBlur. Note that in React\n * Native, unlike in the web, the onFocus event bubbles (similar to onFocusIn in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onFocusCapture?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n\n onKeyDown?: (args: IKeyboardEvent) => void;\n onKeyDownCapture?: (args: IKeyboardEvent) => void;\n onKeyUp?: (args: IKeyboardEvent) => void;\n onKeyUpCapture?: (args: IKeyboardEvent) => void;\n\n onMouseEnter?: () => void;\n onMouseLeave?: () => void;\n\n keyDownEvents?: IHandledKeyboardEvent[];\n keyUpEvents?: IHandledKeyboardEvent[];\n\n /**\n * Provides a screentip to be used on hover of the view\n */\n tooltip?: string;\n cursor?: Cursor;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.8",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./index.win32.js",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"@rnx-kit/jest-preset": "^0.1.0",
|
|
64
64
|
"@types/node": "^14.14.22",
|
|
65
65
|
"@types/prop-types": "15.7.1",
|
|
66
|
-
"@types/react": "^17.0.
|
|
67
|
-
"@types/react-native": "^0.
|
|
66
|
+
"@types/react": "^17.0.39",
|
|
67
|
+
"@types/react-native": "^0.68.0",
|
|
68
68
|
"babel-eslint": "^10.1.0",
|
|
69
69
|
"eslint": "^7.32.0",
|
|
70
70
|
"flow-bin": "^0.170.0",
|
package/rntypes/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for react-native 0.
|
|
1
|
+
// Type definitions for react-native 0.68
|
|
2
2
|
// Project: https://github.com/facebook/react-native
|
|
3
3
|
// Definitions by: Eloy Durán <https://github.com/alloy>
|
|
4
4
|
// HuHuanming <https://github.com/huhuanming>
|
|
@@ -25,22 +25,21 @@
|
|
|
25
25
|
// Xianming Zhong <https://github.com/chinesedfan>
|
|
26
26
|
// Valentyn Tolochko <https://github.com/vtolochk>
|
|
27
27
|
// Sergey Sychev <https://github.com/SychevSP>
|
|
28
|
-
// Kelvin Chu <https://github.com/RageBill>
|
|
29
28
|
// Daiki Ihara <https://github.com/sasurau4>
|
|
30
29
|
// Abe Dolinger <https://github.com/256hz>
|
|
31
30
|
// Dominique Richard <https://github.com/doumart>
|
|
32
31
|
// Mohamed Shaban <https://github.com/drmas>
|
|
33
32
|
// Jérémy Barbet <https://github.com/jeremybarbet>
|
|
34
|
-
// Christian Ost <https://github.com/ca057>
|
|
35
33
|
// David Sheldrick <https://github.com/ds300>
|
|
36
34
|
// Natsathorn Yuthakovit <https://github.com/natsathorn>
|
|
37
35
|
// ConnectDotz <https://github.com/connectdotz>
|
|
38
|
-
// Marcel Lasaj <https://github.com/TheWirv>
|
|
39
36
|
// Alexey Molchan <https://github.com/alexeymolchan>
|
|
40
37
|
// Alex Brazier <https://github.com/alexbrazier>
|
|
41
38
|
// Arafat Zahan <https://github.com/kuasha420>
|
|
42
39
|
// Pedro Hernández <https://github.com/phvillegas>
|
|
43
40
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
41
|
+
// Zihan Chen <https://github.com/ZihanChen-MSFT>
|
|
42
|
+
// Saad Najmi <https://github.com/saadnajmi>
|
|
44
43
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
45
44
|
// TypeScript Version: 3.0
|
|
46
45
|
|
|
@@ -371,7 +370,7 @@ type TaskProvider = () => Task;
|
|
|
371
370
|
type NodeHandle = number;
|
|
372
371
|
|
|
373
372
|
// Similar to React.SyntheticEvent except for nativeEvent
|
|
374
|
-
export interface NativeSyntheticEvent<T> extends React.BaseSyntheticEvent<T,
|
|
373
|
+
export interface NativeSyntheticEvent<T> extends React.BaseSyntheticEvent<T, React.ElementRef<HostComponent<unknown>>, React.ElementRef<HostComponent<unknown>>> {}
|
|
375
374
|
|
|
376
375
|
export interface NativeTouchEvent {
|
|
377
376
|
/**
|
|
@@ -407,7 +406,7 @@ export interface NativeTouchEvent {
|
|
|
407
406
|
/**
|
|
408
407
|
* The node id of the element receiving the touch event
|
|
409
408
|
*/
|
|
410
|
-
target:
|
|
409
|
+
target: NodeHandle;
|
|
411
410
|
|
|
412
411
|
/**
|
|
413
412
|
* A time identifier for the touch, useful for velocity calculation
|
|
@@ -426,8 +425,18 @@ export interface NativeTouchEvent {
|
|
|
426
425
|
force?: number | undefined;
|
|
427
426
|
}
|
|
428
427
|
|
|
428
|
+
export interface NativeMouseEvent {
|
|
429
|
+
clientX: number,
|
|
430
|
+
clientY: number,
|
|
431
|
+
pageX: number,
|
|
432
|
+
pageY: number,
|
|
433
|
+
timestamp: number,
|
|
434
|
+
}
|
|
435
|
+
|
|
429
436
|
export interface GestureResponderEvent extends NativeSyntheticEvent<NativeTouchEvent> {}
|
|
430
437
|
|
|
438
|
+
export interface MouseEvent extends NativeSyntheticEvent<NativeMouseEvent> {}
|
|
439
|
+
|
|
431
440
|
// See https://reactnative.dev/docs/scrollview#contentoffset
|
|
432
441
|
export interface PointPropType {
|
|
433
442
|
x: number;
|
|
@@ -453,6 +462,16 @@ export interface PressableAndroidRippleConfig {
|
|
|
453
462
|
}
|
|
454
463
|
|
|
455
464
|
export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'children' | 'style' | 'hitSlop'> {
|
|
465
|
+
/**
|
|
466
|
+
* Called when the hover is activated to provide visual feedback.
|
|
467
|
+
*/
|
|
468
|
+
onHoverIn?: null | ((event: MouseEvent) => void) | undefined,
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Called when the hover is deactivated to undo visual feedback.
|
|
472
|
+
*/
|
|
473
|
+
onHoverOut?: null | ((event: MouseEvent) => void) | undefined,
|
|
474
|
+
|
|
456
475
|
/**
|
|
457
476
|
* Called when a single tap gesture is detected.
|
|
458
477
|
*/
|
|
@@ -475,13 +494,13 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
475
494
|
|
|
476
495
|
/**
|
|
477
496
|
* Called after the element loses focus.
|
|
478
|
-
* @platform windows
|
|
497
|
+
* @platform macos windows
|
|
479
498
|
*/
|
|
480
499
|
onBlur?: null | ((event: NativeSyntheticEvent<TargetedEvent>) => void) | undefined;
|
|
481
500
|
|
|
482
501
|
/**
|
|
483
502
|
* Called after the element is focused.
|
|
484
|
-
* @platform windows
|
|
503
|
+
* @platform macos windows
|
|
485
504
|
*/
|
|
486
505
|
onFocus?: null | ((event: NativeSyntheticEvent<TargetedEvent>) => void) | undefined;
|
|
487
506
|
|
|
@@ -497,6 +516,16 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
497
516
|
*/
|
|
498
517
|
cancelable?: null | boolean | undefined;
|
|
499
518
|
|
|
519
|
+
/**
|
|
520
|
+
* Duration to wait after hover in before calling `onHoverIn`.
|
|
521
|
+
*/
|
|
522
|
+
delayHoverIn?: number | null | undefined;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Duration to wait after hover out before calling `onHoverOut`.
|
|
526
|
+
*/
|
|
527
|
+
delayHoverOut?: number | null | undefined;
|
|
528
|
+
|
|
500
529
|
/**
|
|
501
530
|
* Duration (in milliseconds) from `onPressIn` before `onLongPress` is called.
|
|
502
531
|
*/
|
|
@@ -538,6 +567,11 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
538
567
|
* the component is currently pressed and returns view styles.
|
|
539
568
|
*/
|
|
540
569
|
style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>) | undefined;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Duration (in milliseconds) to wait after press down before calling onPressIn.
|
|
573
|
+
*/
|
|
574
|
+
unstable_pressDelay?: number
|
|
541
575
|
}
|
|
542
576
|
|
|
543
577
|
// TODO use React.AbstractComponent when available
|
|
@@ -880,7 +914,7 @@ export interface LayoutRectangle {
|
|
|
880
914
|
}
|
|
881
915
|
|
|
882
916
|
// @see TextProps.onLayout
|
|
883
|
-
export type LayoutChangeEvent = NativeSyntheticEvent<{ layout: LayoutRectangle }>;
|
|
917
|
+
export type LayoutChangeEvent = NativeSyntheticEvent<{ layout: LayoutRectangle, target?: NodeHandle | null }>;
|
|
884
918
|
|
|
885
919
|
interface TextLayoutLine {
|
|
886
920
|
ascender: number;
|
|
@@ -959,6 +993,11 @@ export interface TextPropsIOS {
|
|
|
959
993
|
}
|
|
960
994
|
|
|
961
995
|
export interface TextPropsAndroid {
|
|
996
|
+
/**
|
|
997
|
+
* Specifies the disabled state of the text view for testing purposes.
|
|
998
|
+
*/
|
|
999
|
+
disabled?: boolean | undefined;
|
|
1000
|
+
|
|
962
1001
|
/**
|
|
963
1002
|
* Lets the user select text, to use the native copy and paste functionality.
|
|
964
1003
|
*/
|
|
@@ -988,8 +1027,7 @@ export interface TextPropsAndroid {
|
|
|
988
1027
|
| 'normal'
|
|
989
1028
|
| 'none'
|
|
990
1029
|
| 'full'
|
|
991
|
-
|
|
|
992
|
-
| 'balanced' | undefined;
|
|
1030
|
+
| undefined;
|
|
993
1031
|
}
|
|
994
1032
|
|
|
995
1033
|
// https://reactnative.dev/docs/text#props
|
|
@@ -3220,12 +3258,6 @@ export interface RefreshControlPropsAndroid extends ViewProps {
|
|
|
3220
3258
|
* Size of the refresh indicator, see RefreshControl.SIZE.
|
|
3221
3259
|
*/
|
|
3222
3260
|
size?: number | undefined;
|
|
3223
|
-
|
|
3224
|
-
/**
|
|
3225
|
-
* Progress view top offset
|
|
3226
|
-
* @platform android
|
|
3227
|
-
*/
|
|
3228
|
-
progressViewOffset?: number | undefined;
|
|
3229
3261
|
}
|
|
3230
3262
|
|
|
3231
3263
|
export interface RefreshControlProps extends RefreshControlPropsIOS, RefreshControlPropsAndroid {
|
|
@@ -3238,6 +3270,11 @@ export interface RefreshControlProps extends RefreshControlPropsIOS, RefreshCont
|
|
|
3238
3270
|
* Whether the view should be indicating an active refresh.
|
|
3239
3271
|
*/
|
|
3240
3272
|
refreshing: boolean;
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* Progress view top offset
|
|
3276
|
+
*/
|
|
3277
|
+
progressViewOffset?: number | undefined;
|
|
3241
3278
|
}
|
|
3242
3279
|
|
|
3243
3280
|
/**
|
|
@@ -3648,18 +3685,6 @@ interface ImagePropsAndroid {
|
|
|
3648
3685
|
* @platform android
|
|
3649
3686
|
*/
|
|
3650
3687
|
fadeDuration?: number | undefined;
|
|
3651
|
-
|
|
3652
|
-
/**
|
|
3653
|
-
* Required if loading images via 'uri' from drawable folder on Android.
|
|
3654
|
-
* Explanation: https://medium.com/@adamjacobb/react-native-performance-images-adf5843e120
|
|
3655
|
-
*/
|
|
3656
|
-
width?: number | undefined;
|
|
3657
|
-
|
|
3658
|
-
/**
|
|
3659
|
-
* Required if loading images via 'uri' from drawable folder on Android
|
|
3660
|
-
* Explanation: https://medium.com/@adamjacobb/react-native-performance-images-adf5843e120
|
|
3661
|
-
*/
|
|
3662
|
-
height?: number | undefined;
|
|
3663
3688
|
}
|
|
3664
3689
|
|
|
3665
3690
|
/**
|
|
@@ -3844,6 +3869,7 @@ export class Image extends ImageBase {
|
|
|
3844
3869
|
}
|
|
3845
3870
|
|
|
3846
3871
|
export interface ImageBackgroundProps extends ImagePropsBase {
|
|
3872
|
+
children?: React.ReactNode;
|
|
3847
3873
|
imageStyle?: StyleProp<ImageStyle> | undefined;
|
|
3848
3874
|
style?: StyleProp<ViewStyle> | undefined;
|
|
3849
3875
|
imageRef?(image: Image): void;
|
|
@@ -4834,10 +4860,11 @@ export interface ModalBaseProps {
|
|
|
4834
4860
|
*/
|
|
4835
4861
|
visible?: boolean | undefined;
|
|
4836
4862
|
/**
|
|
4837
|
-
* The `onRequestClose`
|
|
4838
|
-
*
|
|
4863
|
+
* The `onRequestClose` callback is called when the user taps the hardware back button on Android or the menu button on Apple TV.
|
|
4864
|
+
*
|
|
4865
|
+
* This is required on Apple TV and Android.
|
|
4839
4866
|
*/
|
|
4840
|
-
onRequestClose?: (() => void) | undefined;
|
|
4867
|
+
onRequestClose?: ((event: NativeSyntheticEvent<any>) => void) | undefined;
|
|
4841
4868
|
/**
|
|
4842
4869
|
* The `onShow` prop allows passing a function that will be called once the modal has been shown.
|
|
4843
4870
|
*/
|
|
@@ -4952,7 +4979,7 @@ export interface TouchableWithoutFeedbackPropsAndroid {
|
|
|
4952
4979
|
*
|
|
4953
4980
|
* @platform android
|
|
4954
4981
|
*/
|
|
4955
|
-
touchSoundDisabled?: boolean |
|
|
4982
|
+
touchSoundDisabled?: boolean | undefined;
|
|
4956
4983
|
}
|
|
4957
4984
|
|
|
4958
4985
|
/**
|
|
@@ -4982,7 +5009,7 @@ export interface TouchableWithoutFeedbackProps
|
|
|
4982
5009
|
/**
|
|
4983
5010
|
* If true, disable all interactions for this component.
|
|
4984
5011
|
*/
|
|
4985
|
-
disabled?: boolean |
|
|
5012
|
+
disabled?: boolean | undefined;
|
|
4986
5013
|
|
|
4987
5014
|
/**
|
|
4988
5015
|
* This defines how far your touch can start away from the button.
|
|
@@ -6343,6 +6370,12 @@ export interface ScrollViewPropsIOS {
|
|
|
6343
6370
|
*/
|
|
6344
6371
|
automaticallyAdjustContentInsets?: boolean | undefined; // true
|
|
6345
6372
|
|
|
6373
|
+
/**
|
|
6374
|
+
* Controls whether the ScrollView should automatically adjust its contentInset and
|
|
6375
|
+
* scrollViewInsets when the Keyboard changes its size. The default value is false.
|
|
6376
|
+
*/
|
|
6377
|
+
automaticallyAdjustKeyboardInsets?: boolean | undefined;
|
|
6378
|
+
|
|
6346
6379
|
/**
|
|
6347
6380
|
* Controls whether iOS should automatically adjust the scroll indicator
|
|
6348
6381
|
* insets. The default value is true. Available on iOS 13 and later.
|
|
@@ -6941,10 +6974,11 @@ export interface ActionSheetIOSOptions {
|
|
|
6941
6974
|
title?: string | undefined;
|
|
6942
6975
|
options: string[];
|
|
6943
6976
|
cancelButtonIndex?: number | undefined;
|
|
6944
|
-
destructiveButtonIndex?: number | undefined;
|
|
6977
|
+
destructiveButtonIndex?: number | number[] | undefined | null;
|
|
6945
6978
|
message?: string | undefined;
|
|
6946
6979
|
anchor?: number | undefined;
|
|
6947
6980
|
tintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
6981
|
+
cancelButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
6948
6982
|
userInterfaceStyle?: 'light' | 'dark' | undefined;
|
|
6949
6983
|
disabledButtonIndices?: number[] | undefined;
|
|
6950
6984
|
}
|
|
@@ -7800,7 +7834,10 @@ export type Permission =
|
|
|
7800
7834
|
| 'android.permission.RECEIVE_WAP_PUSH'
|
|
7801
7835
|
| 'android.permission.RECEIVE_MMS'
|
|
7802
7836
|
| 'android.permission.READ_EXTERNAL_STORAGE'
|
|
7803
|
-
| 'android.permission.WRITE_EXTERNAL_STORAGE'
|
|
7837
|
+
| 'android.permission.WRITE_EXTERNAL_STORAGE'
|
|
7838
|
+
| 'android.permission.BLUETOOTH_CONNECT'
|
|
7839
|
+
| 'android.permission.BLUETOOTH_SCAN'
|
|
7840
|
+
| 'android.permission.BLUETOOTH_ADVERTISE';
|
|
7804
7841
|
|
|
7805
7842
|
export type PermissionStatus = 'granted' | 'denied' | 'never_ask_again';
|
|
7806
7843
|
|
|
@@ -8472,10 +8509,12 @@ export interface SwitchPropsIOS extends ViewProps {
|
|
|
8472
8509
|
tintColor?: ColorValue | undefined;
|
|
8473
8510
|
}
|
|
8474
8511
|
|
|
8475
|
-
export interface
|
|
8476
|
-
|
|
8512
|
+
export interface SwitchChangeEventData extends TargetedEvent {
|
|
8513
|
+
value: boolean;
|
|
8477
8514
|
}
|
|
8478
8515
|
|
|
8516
|
+
export interface SwitchChangeEvent extends NativeSyntheticEvent<SwitchChangeEventData> {}
|
|
8517
|
+
|
|
8479
8518
|
export interface SwitchProps extends SwitchPropsIOS {
|
|
8480
8519
|
/**
|
|
8481
8520
|
* Color of the foreground switch grip.
|
|
@@ -9159,6 +9198,19 @@ export interface ImageStoreStatic {
|
|
|
9159
9198
|
getBase64ForTag(uri: string, success: (base64ImageData: string) => void, failure: (error: any) => void): void;
|
|
9160
9199
|
}
|
|
9161
9200
|
|
|
9201
|
+
//
|
|
9202
|
+
// Turbo Module
|
|
9203
|
+
//
|
|
9204
|
+
|
|
9205
|
+
export interface TurboModule {
|
|
9206
|
+
getConstants?(): {}
|
|
9207
|
+
}
|
|
9208
|
+
|
|
9209
|
+
export const TurboModuleRegistry: {
|
|
9210
|
+
get<T extends TurboModule>(name: string): T | null;
|
|
9211
|
+
getEnforcing<T extends TurboModule>(name: string): T;
|
|
9212
|
+
}
|
|
9213
|
+
|
|
9162
9214
|
//
|
|
9163
9215
|
// Interfacing with Native Modules
|
|
9164
9216
|
// https://reactnative.dev/docs/native-modules-ios
|
|
@@ -178,6 +178,12 @@ export type BasePropsWin32 = {
|
|
|
178
178
|
* 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".
|
|
179
179
|
*/
|
|
180
180
|
accessibilityItemType?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Defines the level of an element in a hierarchical structure or the heading level of a text element.
|
|
184
|
+
* Note: accessibilityRole="header" must be used if using this property to define a heading level.
|
|
185
|
+
*/
|
|
186
|
+
accessibilityLevel?: number;
|
|
181
187
|
};
|
|
182
188
|
|
|
183
189
|
export type ViewWin32OmitTypes = RN.ViewPropsAndroid &
|
|
@@ -212,7 +218,6 @@ export interface IViewWin32Props extends Omit<RN.ViewProps, ViewWin32OmitTypes>,
|
|
|
212
218
|
*
|
|
213
219
|
*/
|
|
214
220
|
accessibilityDescription?: string;
|
|
215
|
-
accessibilityLevel?: number;
|
|
216
221
|
accessibilityPositionInSet?: number;
|
|
217
222
|
|
|
218
223
|
accessibilitySetSize?: number;
|
package/src/rntypes/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for react-native 0.
|
|
1
|
+
// Type definitions for react-native 0.68
|
|
2
2
|
// Project: https://github.com/facebook/react-native
|
|
3
3
|
// Definitions by: Eloy Durán <https://github.com/alloy>
|
|
4
4
|
// HuHuanming <https://github.com/huhuanming>
|
|
@@ -25,22 +25,21 @@
|
|
|
25
25
|
// Xianming Zhong <https://github.com/chinesedfan>
|
|
26
26
|
// Valentyn Tolochko <https://github.com/vtolochk>
|
|
27
27
|
// Sergey Sychev <https://github.com/SychevSP>
|
|
28
|
-
// Kelvin Chu <https://github.com/RageBill>
|
|
29
28
|
// Daiki Ihara <https://github.com/sasurau4>
|
|
30
29
|
// Abe Dolinger <https://github.com/256hz>
|
|
31
30
|
// Dominique Richard <https://github.com/doumart>
|
|
32
31
|
// Mohamed Shaban <https://github.com/drmas>
|
|
33
32
|
// Jérémy Barbet <https://github.com/jeremybarbet>
|
|
34
|
-
// Christian Ost <https://github.com/ca057>
|
|
35
33
|
// David Sheldrick <https://github.com/ds300>
|
|
36
34
|
// Natsathorn Yuthakovit <https://github.com/natsathorn>
|
|
37
35
|
// ConnectDotz <https://github.com/connectdotz>
|
|
38
|
-
// Marcel Lasaj <https://github.com/TheWirv>
|
|
39
36
|
// Alexey Molchan <https://github.com/alexeymolchan>
|
|
40
37
|
// Alex Brazier <https://github.com/alexbrazier>
|
|
41
38
|
// Arafat Zahan <https://github.com/kuasha420>
|
|
42
39
|
// Pedro Hernández <https://github.com/phvillegas>
|
|
43
40
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
41
|
+
// Zihan Chen <https://github.com/ZihanChen-MSFT>
|
|
42
|
+
// Saad Najmi <https://github.com/saadnajmi>
|
|
44
43
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
45
44
|
// TypeScript Version: 3.0
|
|
46
45
|
|
|
@@ -371,7 +370,7 @@ type TaskProvider = () => Task;
|
|
|
371
370
|
type NodeHandle = number;
|
|
372
371
|
|
|
373
372
|
// Similar to React.SyntheticEvent except for nativeEvent
|
|
374
|
-
export interface NativeSyntheticEvent<T> extends React.BaseSyntheticEvent<T,
|
|
373
|
+
export interface NativeSyntheticEvent<T> extends React.BaseSyntheticEvent<T, React.ElementRef<HostComponent<unknown>>, React.ElementRef<HostComponent<unknown>>> {}
|
|
375
374
|
|
|
376
375
|
export interface NativeTouchEvent {
|
|
377
376
|
/**
|
|
@@ -407,7 +406,7 @@ export interface NativeTouchEvent {
|
|
|
407
406
|
/**
|
|
408
407
|
* The node id of the element receiving the touch event
|
|
409
408
|
*/
|
|
410
|
-
target:
|
|
409
|
+
target: NodeHandle;
|
|
411
410
|
|
|
412
411
|
/**
|
|
413
412
|
* A time identifier for the touch, useful for velocity calculation
|
|
@@ -426,8 +425,18 @@ export interface NativeTouchEvent {
|
|
|
426
425
|
force?: number | undefined;
|
|
427
426
|
}
|
|
428
427
|
|
|
428
|
+
export interface NativeMouseEvent {
|
|
429
|
+
clientX: number,
|
|
430
|
+
clientY: number,
|
|
431
|
+
pageX: number,
|
|
432
|
+
pageY: number,
|
|
433
|
+
timestamp: number,
|
|
434
|
+
}
|
|
435
|
+
|
|
429
436
|
export interface GestureResponderEvent extends NativeSyntheticEvent<NativeTouchEvent> {}
|
|
430
437
|
|
|
438
|
+
export interface MouseEvent extends NativeSyntheticEvent<NativeMouseEvent> {}
|
|
439
|
+
|
|
431
440
|
// See https://reactnative.dev/docs/scrollview#contentoffset
|
|
432
441
|
export interface PointPropType {
|
|
433
442
|
x: number;
|
|
@@ -453,6 +462,16 @@ export interface PressableAndroidRippleConfig {
|
|
|
453
462
|
}
|
|
454
463
|
|
|
455
464
|
export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'children' | 'style' | 'hitSlop'> {
|
|
465
|
+
/**
|
|
466
|
+
* Called when the hover is activated to provide visual feedback.
|
|
467
|
+
*/
|
|
468
|
+
onHoverIn?: null | ((event: MouseEvent) => void) | undefined,
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Called when the hover is deactivated to undo visual feedback.
|
|
472
|
+
*/
|
|
473
|
+
onHoverOut?: null | ((event: MouseEvent) => void) | undefined,
|
|
474
|
+
|
|
456
475
|
/**
|
|
457
476
|
* Called when a single tap gesture is detected.
|
|
458
477
|
*/
|
|
@@ -475,13 +494,13 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
475
494
|
|
|
476
495
|
/**
|
|
477
496
|
* Called after the element loses focus.
|
|
478
|
-
* @platform windows
|
|
497
|
+
* @platform macos windows
|
|
479
498
|
*/
|
|
480
499
|
onBlur?: null | ((event: NativeSyntheticEvent<TargetedEvent>) => void) | undefined;
|
|
481
500
|
|
|
482
501
|
/**
|
|
483
502
|
* Called after the element is focused.
|
|
484
|
-
* @platform windows
|
|
503
|
+
* @platform macos windows
|
|
485
504
|
*/
|
|
486
505
|
onFocus?: null | ((event: NativeSyntheticEvent<TargetedEvent>) => void) | undefined;
|
|
487
506
|
|
|
@@ -497,6 +516,16 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
497
516
|
*/
|
|
498
517
|
cancelable?: null | boolean | undefined;
|
|
499
518
|
|
|
519
|
+
/**
|
|
520
|
+
* Duration to wait after hover in before calling `onHoverIn`.
|
|
521
|
+
*/
|
|
522
|
+
delayHoverIn?: number | null | undefined;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Duration to wait after hover out before calling `onHoverOut`.
|
|
526
|
+
*/
|
|
527
|
+
delayHoverOut?: number | null | undefined;
|
|
528
|
+
|
|
500
529
|
/**
|
|
501
530
|
* Duration (in milliseconds) from `onPressIn` before `onLongPress` is called.
|
|
502
531
|
*/
|
|
@@ -538,6 +567,11 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
538
567
|
* the component is currently pressed and returns view styles.
|
|
539
568
|
*/
|
|
540
569
|
style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>) | undefined;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Duration (in milliseconds) to wait after press down before calling onPressIn.
|
|
573
|
+
*/
|
|
574
|
+
unstable_pressDelay?: number
|
|
541
575
|
}
|
|
542
576
|
|
|
543
577
|
// TODO use React.AbstractComponent when available
|
|
@@ -880,7 +914,7 @@ export interface LayoutRectangle {
|
|
|
880
914
|
}
|
|
881
915
|
|
|
882
916
|
// @see TextProps.onLayout
|
|
883
|
-
export type LayoutChangeEvent = NativeSyntheticEvent<{ layout: LayoutRectangle }>;
|
|
917
|
+
export type LayoutChangeEvent = NativeSyntheticEvent<{ layout: LayoutRectangle, target?: NodeHandle | null }>;
|
|
884
918
|
|
|
885
919
|
interface TextLayoutLine {
|
|
886
920
|
ascender: number;
|
|
@@ -959,6 +993,11 @@ export interface TextPropsIOS {
|
|
|
959
993
|
}
|
|
960
994
|
|
|
961
995
|
export interface TextPropsAndroid {
|
|
996
|
+
/**
|
|
997
|
+
* Specifies the disabled state of the text view for testing purposes.
|
|
998
|
+
*/
|
|
999
|
+
disabled?: boolean | undefined;
|
|
1000
|
+
|
|
962
1001
|
/**
|
|
963
1002
|
* Lets the user select text, to use the native copy and paste functionality.
|
|
964
1003
|
*/
|
|
@@ -988,8 +1027,7 @@ export interface TextPropsAndroid {
|
|
|
988
1027
|
| 'normal'
|
|
989
1028
|
| 'none'
|
|
990
1029
|
| 'full'
|
|
991
|
-
|
|
|
992
|
-
| 'balanced' | undefined;
|
|
1030
|
+
| undefined;
|
|
993
1031
|
}
|
|
994
1032
|
|
|
995
1033
|
// https://reactnative.dev/docs/text#props
|
|
@@ -3220,12 +3258,6 @@ export interface RefreshControlPropsAndroid extends ViewProps {
|
|
|
3220
3258
|
* Size of the refresh indicator, see RefreshControl.SIZE.
|
|
3221
3259
|
*/
|
|
3222
3260
|
size?: number | undefined;
|
|
3223
|
-
|
|
3224
|
-
/**
|
|
3225
|
-
* Progress view top offset
|
|
3226
|
-
* @platform android
|
|
3227
|
-
*/
|
|
3228
|
-
progressViewOffset?: number | undefined;
|
|
3229
3261
|
}
|
|
3230
3262
|
|
|
3231
3263
|
export interface RefreshControlProps extends RefreshControlPropsIOS, RefreshControlPropsAndroid {
|
|
@@ -3238,6 +3270,11 @@ export interface RefreshControlProps extends RefreshControlPropsIOS, RefreshCont
|
|
|
3238
3270
|
* Whether the view should be indicating an active refresh.
|
|
3239
3271
|
*/
|
|
3240
3272
|
refreshing: boolean;
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* Progress view top offset
|
|
3276
|
+
*/
|
|
3277
|
+
progressViewOffset?: number | undefined;
|
|
3241
3278
|
}
|
|
3242
3279
|
|
|
3243
3280
|
/**
|
|
@@ -3648,18 +3685,6 @@ interface ImagePropsAndroid {
|
|
|
3648
3685
|
* @platform android
|
|
3649
3686
|
*/
|
|
3650
3687
|
fadeDuration?: number | undefined;
|
|
3651
|
-
|
|
3652
|
-
/**
|
|
3653
|
-
* Required if loading images via 'uri' from drawable folder on Android.
|
|
3654
|
-
* Explanation: https://medium.com/@adamjacobb/react-native-performance-images-adf5843e120
|
|
3655
|
-
*/
|
|
3656
|
-
width?: number | undefined;
|
|
3657
|
-
|
|
3658
|
-
/**
|
|
3659
|
-
* Required if loading images via 'uri' from drawable folder on Android
|
|
3660
|
-
* Explanation: https://medium.com/@adamjacobb/react-native-performance-images-adf5843e120
|
|
3661
|
-
*/
|
|
3662
|
-
height?: number | undefined;
|
|
3663
3688
|
}
|
|
3664
3689
|
|
|
3665
3690
|
/**
|
|
@@ -3844,6 +3869,7 @@ export class Image extends ImageBase {
|
|
|
3844
3869
|
}
|
|
3845
3870
|
|
|
3846
3871
|
export interface ImageBackgroundProps extends ImagePropsBase {
|
|
3872
|
+
children?: React.ReactNode;
|
|
3847
3873
|
imageStyle?: StyleProp<ImageStyle> | undefined;
|
|
3848
3874
|
style?: StyleProp<ViewStyle> | undefined;
|
|
3849
3875
|
imageRef?(image: Image): void;
|
|
@@ -4834,10 +4860,11 @@ export interface ModalBaseProps {
|
|
|
4834
4860
|
*/
|
|
4835
4861
|
visible?: boolean | undefined;
|
|
4836
4862
|
/**
|
|
4837
|
-
* The `onRequestClose`
|
|
4838
|
-
*
|
|
4863
|
+
* The `onRequestClose` callback is called when the user taps the hardware back button on Android or the menu button on Apple TV.
|
|
4864
|
+
*
|
|
4865
|
+
* This is required on Apple TV and Android.
|
|
4839
4866
|
*/
|
|
4840
|
-
onRequestClose?: (() => void) | undefined;
|
|
4867
|
+
onRequestClose?: ((event: NativeSyntheticEvent<any>) => void) | undefined;
|
|
4841
4868
|
/**
|
|
4842
4869
|
* The `onShow` prop allows passing a function that will be called once the modal has been shown.
|
|
4843
4870
|
*/
|
|
@@ -4952,7 +4979,7 @@ export interface TouchableWithoutFeedbackPropsAndroid {
|
|
|
4952
4979
|
*
|
|
4953
4980
|
* @platform android
|
|
4954
4981
|
*/
|
|
4955
|
-
touchSoundDisabled?: boolean |
|
|
4982
|
+
touchSoundDisabled?: boolean | undefined;
|
|
4956
4983
|
}
|
|
4957
4984
|
|
|
4958
4985
|
/**
|
|
@@ -4982,7 +5009,7 @@ export interface TouchableWithoutFeedbackProps
|
|
|
4982
5009
|
/**
|
|
4983
5010
|
* If true, disable all interactions for this component.
|
|
4984
5011
|
*/
|
|
4985
|
-
disabled?: boolean |
|
|
5012
|
+
disabled?: boolean | undefined;
|
|
4986
5013
|
|
|
4987
5014
|
/**
|
|
4988
5015
|
* This defines how far your touch can start away from the button.
|
|
@@ -6343,6 +6370,12 @@ export interface ScrollViewPropsIOS {
|
|
|
6343
6370
|
*/
|
|
6344
6371
|
automaticallyAdjustContentInsets?: boolean | undefined; // true
|
|
6345
6372
|
|
|
6373
|
+
/**
|
|
6374
|
+
* Controls whether the ScrollView should automatically adjust its contentInset and
|
|
6375
|
+
* scrollViewInsets when the Keyboard changes its size. The default value is false.
|
|
6376
|
+
*/
|
|
6377
|
+
automaticallyAdjustKeyboardInsets?: boolean | undefined;
|
|
6378
|
+
|
|
6346
6379
|
/**
|
|
6347
6380
|
* Controls whether iOS should automatically adjust the scroll indicator
|
|
6348
6381
|
* insets. The default value is true. Available on iOS 13 and later.
|
|
@@ -6941,10 +6974,11 @@ export interface ActionSheetIOSOptions {
|
|
|
6941
6974
|
title?: string | undefined;
|
|
6942
6975
|
options: string[];
|
|
6943
6976
|
cancelButtonIndex?: number | undefined;
|
|
6944
|
-
destructiveButtonIndex?: number | undefined;
|
|
6977
|
+
destructiveButtonIndex?: number | number[] | undefined | null;
|
|
6945
6978
|
message?: string | undefined;
|
|
6946
6979
|
anchor?: number | undefined;
|
|
6947
6980
|
tintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
6981
|
+
cancelButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
6948
6982
|
userInterfaceStyle?: 'light' | 'dark' | undefined;
|
|
6949
6983
|
disabledButtonIndices?: number[] | undefined;
|
|
6950
6984
|
}
|
|
@@ -7800,7 +7834,10 @@ export type Permission =
|
|
|
7800
7834
|
| 'android.permission.RECEIVE_WAP_PUSH'
|
|
7801
7835
|
| 'android.permission.RECEIVE_MMS'
|
|
7802
7836
|
| 'android.permission.READ_EXTERNAL_STORAGE'
|
|
7803
|
-
| 'android.permission.WRITE_EXTERNAL_STORAGE'
|
|
7837
|
+
| 'android.permission.WRITE_EXTERNAL_STORAGE'
|
|
7838
|
+
| 'android.permission.BLUETOOTH_CONNECT'
|
|
7839
|
+
| 'android.permission.BLUETOOTH_SCAN'
|
|
7840
|
+
| 'android.permission.BLUETOOTH_ADVERTISE';
|
|
7804
7841
|
|
|
7805
7842
|
export type PermissionStatus = 'granted' | 'denied' | 'never_ask_again';
|
|
7806
7843
|
|
|
@@ -8472,10 +8509,12 @@ export interface SwitchPropsIOS extends ViewProps {
|
|
|
8472
8509
|
tintColor?: ColorValue | undefined;
|
|
8473
8510
|
}
|
|
8474
8511
|
|
|
8475
|
-
export interface
|
|
8476
|
-
|
|
8512
|
+
export interface SwitchChangeEventData extends TargetedEvent {
|
|
8513
|
+
value: boolean;
|
|
8477
8514
|
}
|
|
8478
8515
|
|
|
8516
|
+
export interface SwitchChangeEvent extends NativeSyntheticEvent<SwitchChangeEventData> {}
|
|
8517
|
+
|
|
8479
8518
|
export interface SwitchProps extends SwitchPropsIOS {
|
|
8480
8519
|
/**
|
|
8481
8520
|
* Color of the foreground switch grip.
|
|
@@ -9159,6 +9198,19 @@ export interface ImageStoreStatic {
|
|
|
9159
9198
|
getBase64ForTag(uri: string, success: (base64ImageData: string) => void, failure: (error: any) => void): void;
|
|
9160
9199
|
}
|
|
9161
9200
|
|
|
9201
|
+
//
|
|
9202
|
+
// Turbo Module
|
|
9203
|
+
//
|
|
9204
|
+
|
|
9205
|
+
export interface TurboModule {
|
|
9206
|
+
getConstants?(): {}
|
|
9207
|
+
}
|
|
9208
|
+
|
|
9209
|
+
export const TurboModuleRegistry: {
|
|
9210
|
+
get<T extends TurboModule>(name: string): T | null;
|
|
9211
|
+
getEnforcing<T extends TurboModule>(name: string): T;
|
|
9212
|
+
}
|
|
9213
|
+
|
|
9162
9214
|
//
|
|
9163
9215
|
// Interfacing with Native Modules
|
|
9164
9216
|
// https://reactnative.dev/docs/native-modules-ios
|