@office-iss/react-native-win32 0.72.4 → 0.72.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.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 11 Sep 2023 15:13:59 GMT",
5
+ "date": "Wed, 27 Sep 2023 21:02:07 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.72.5",
7
+ "version": "0.72.5",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "30809111+acoates-ms@users.noreply.github.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "117602962a0c8314c21805380f8cd097827deed1",
14
+ "comment": "Bump react-native dependency to 0.72.5"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 11 Sep 2023 15:14:55 GMT",
6
21
  "tag": "@office-iss/react-native-win32_v0.72.4",
7
22
  "version": "0.72.4",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,25 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 11 Sep 2023 15:13:59 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 27 Sep 2023 21:02:07 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.72.4
7
+ ## 0.72.5
8
8
 
9
- Mon, 11 Sep 2023 15:13:59 GMT
9
+ Wed, 27 Sep 2023 21:02:07 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Webpack assets do not prefix paths with /, which causes a lost char in asset path (30809111+acoates-ms@users.noreply.github.com)
13
+ - Bump react-native dependency to 0.72.5 (30809111+acoates-ms@users.noreply.github.com)
14
14
 
15
+ ## 0.72.4
16
+
17
+ Mon, 11 Sep 2023 15:14:55 GMT
18
+
19
+ ### Patches
20
+
21
+ - Webpack assets do not prefix paths with /, which causes a lost char in asset path (30809111+acoates-ms@users.noreply.github.com)
22
+
15
23
  ## 0.72.3
16
24
 
17
25
  Mon, 28 Aug 2023 15:14:10 GMT
@@ -86,6 +86,7 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig =
86
86
  process: require('../../StyleSheet/processColor').default,
87
87
  },
88
88
  pointerEvents: true,
89
+ isInvertedVirtualizedList: true,
89
90
  },
90
91
  }
91
92
  : {
@@ -41,6 +41,7 @@ export type ScrollViewNativeProps = $ReadOnly<{
41
41
  endFillColor?: ?ColorValue,
42
42
  fadingEdgeLength?: ?number,
43
43
  indicatorStyle?: ?('default' | 'black' | 'white'),
44
+ isInvertedVirtualizedList?: ?boolean,
44
45
  keyboardDismissMode?: ?('none' | 'on-drag' | 'interactive'),
45
46
  maintainVisibleContentPosition?: ?$ReadOnly<{
46
47
  minIndexForVisible: number,
@@ -46,6 +46,7 @@ const ScrollViewViewConfig = {
46
46
  fadingEdgeLength: true,
47
47
  indicatorStyle: true,
48
48
  inverted: true,
49
+ isInvertedVirtualizedList: true,
49
50
  keyboardDismissMode: true,
50
51
  maintainVisibleContentPosition: true,
51
52
  maximumZoomScale: true,
@@ -70,6 +70,15 @@ export type ReturnKeyTypeOptions =
70
70
  | ReturnKeyTypeAndroid
71
71
  | ReturnKeyTypeIOS;
72
72
 
73
+ export type EnterKeyHintTypeAndroid = 'previous';
74
+ export type EnterKeyHintTypeIOS = 'enter';
75
+ export type EnterKeyHintType = 'done' | 'go' | 'next' | 'search' | 'send';
76
+
77
+ export type EnterKeyHintTypeOptions =
78
+ | EnterKeyHintType
79
+ | EnterKeyHintTypeAndroid
80
+ | EnterKeyHintTypeIOS;
81
+
73
82
  type DataDetectorTypes =
74
83
  | 'phoneNumber'
75
84
  | 'link'
@@ -779,6 +788,12 @@ export interface TextInputProps
779
788
  */
780
789
  returnKeyType?: ReturnKeyTypeOptions | undefined;
781
790
 
791
+ /**
792
+ * Determines what text should be shown to the return key on virtual keyboards.
793
+ * Has precedence over the returnKeyType prop.
794
+ */
795
+ enterKeyHint?: EnterKeyHintTypeOptions | undefined;
796
+
782
797
  /**
783
798
  * If true, the text input obscures the text entered so that sensitive text like passwords stay secure.
784
799
  * The default value is false.
@@ -223,13 +223,16 @@ export type TextContentType =
223
223
  | 'oneTimeCode';
224
224
 
225
225
  export type enterKeyHintType =
226
- | 'enter'
226
+ // Cross Platform
227
227
  | 'done'
228
228
  | 'go'
229
229
  | 'next'
230
- | 'previous'
231
230
  | 'search'
232
- | 'send';
231
+ | 'send'
232
+ // Android-only
233
+ | 'previous'
234
+ // iOS-only
235
+ | 'enter';
233
236
 
234
237
  type PasswordRules = string;
235
238
 
@@ -1344,6 +1347,7 @@ function InternalTextInput(props: Props): React.Node {
1344
1347
 
1345
1348
  const config = React.useMemo(
1346
1349
  () => ({
1350
+ hitSlop: props.hitSlop,
1347
1351
  onPress: (event: PressEvent) => {
1348
1352
  if (props.editable !== false) {
1349
1353
  if (inputRef.current != null) {
@@ -1358,6 +1362,7 @@ function InternalTextInput(props: Props): React.Node {
1358
1362
  }),
1359
1363
  [
1360
1364
  props.editable,
1365
+ props.hitSlop,
1361
1366
  props.onPressIn,
1362
1367
  props.onPressOut,
1363
1368
  props.rejectResponderTermination,
@@ -207,13 +207,16 @@ export type TextContentType =
207
207
  | 'oneTimeCode';
208
208
 
209
209
  export type enterKeyHintType =
210
- | 'enter'
210
+ // Cross Platform
211
211
  | 'done'
212
212
  | 'go'
213
213
  | 'next'
214
- | 'previous'
215
214
  | 'search'
216
- | 'send';
215
+ | 'send'
216
+ // Android-only
217
+ | 'previous'
218
+ // iOS-only
219
+ | 'enter';
217
220
 
218
221
  type PasswordRules = string;
219
222
 
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 72,
15
- patch: 3,
15
+ patch: 5,
16
16
  prerelease: null,
17
17
  };
@@ -17,6 +17,8 @@ import {type EventSubscription} from '../vendor/emitter/EventEmitter';
17
17
  import {RootTagContext, createRootTag} from './RootTag';
18
18
  import * as React from 'react';
19
19
 
20
+ const reactDevToolsHook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__;
21
+
20
22
  type Props = $ReadOnly<{|
21
23
  children?: React.Node,
22
24
  fabric?: boolean,
@@ -47,9 +49,21 @@ class AppContainer extends React.Component<Props, State> {
47
49
  };
48
50
  _mainRef: ?React.ElementRef<typeof View>;
49
51
  _subscription: ?EventSubscription = null;
52
+ _reactDevToolsAgentListener: ?() => void = null;
50
53
 
51
54
  static getDerivedStateFromError: any = undefined;
52
55
 
56
+ mountReactDevToolsOverlays(): void {
57
+ const DevtoolsOverlay = require('../Inspector/DevtoolsOverlay').default;
58
+ const devtoolsOverlay = <DevtoolsOverlay inspectedView={this._mainRef} />;
59
+
60
+ const TraceUpdateOverlay =
61
+ require('../Components/TraceUpdateOverlay/TraceUpdateOverlay').default;
62
+ const traceUpdateOverlay = <TraceUpdateOverlay />;
63
+
64
+ this.setState({devtoolsOverlay, traceUpdateOverlay});
65
+ }
66
+
53
67
  componentDidMount(): void {
54
68
  if (__DEV__) {
55
69
  if (!this.props.internal_excludeInspector) {
@@ -71,16 +85,21 @@ class AppContainer extends React.Component<Props, State> {
71
85
  this.setState({inspector});
72
86
  },
73
87
  );
74
- if (window.__REACT_DEVTOOLS_GLOBAL_HOOK__ != null) {
75
- const DevtoolsOverlay =
76
- require('../Inspector/DevtoolsOverlay').default;
77
- const devtoolsOverlay = (
78
- <DevtoolsOverlay inspectedView={this._mainRef} />
88
+
89
+ if (reactDevToolsHook != null) {
90
+ if (reactDevToolsHook.reactDevtoolsAgent) {
91
+ // In case if this is not the first AppContainer rendered and React DevTools are already attached
92
+ this.mountReactDevToolsOverlays();
93
+ return;
94
+ }
95
+
96
+ this._reactDevToolsAgentListener = () =>
97
+ this.mountReactDevToolsOverlays();
98
+
99
+ reactDevToolsHook.on(
100
+ 'react-devtools',
101
+ this._reactDevToolsAgentListener,
79
102
  );
80
- const TraceUpdateOverlay =
81
- require('../Components/TraceUpdateOverlay/TraceUpdateOverlay').default;
82
- const traceUpdateOverlay = <TraceUpdateOverlay />;
83
- this.setState({devtoolsOverlay, traceUpdateOverlay});
84
103
  }
85
104
  }
86
105
  }
@@ -90,6 +109,10 @@ class AppContainer extends React.Component<Props, State> {
90
109
  if (this._subscription != null) {
91
110
  this._subscription.remove();
92
111
  }
112
+
113
+ if (reactDevToolsHook != null && this._reactDevToolsAgentListener != null) {
114
+ reactDevToolsHook.off('react-devtools', this._reactDevToolsAgentListener);
115
+ }
93
116
  }
94
117
 
95
118
  render(): React.Node {
@@ -190,6 +190,7 @@ export interface TransformsStyle {
190
190
  | SkewYTransform
191
191
  | MatrixTransform
192
192
  )[]
193
+ | string
193
194
  | undefined;
194
195
  /**
195
196
  * @deprecated Use matrix in transform prop instead.
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.72.3",
10
+ "baseVersion": "0.72.5",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
@@ -123,7 +123,7 @@
123
123
  "type": "derived",
124
124
  "file": "src/Libraries/Components/TextInput/TextInput.win32.js",
125
125
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
126
- "baseHash": "a817f8d62ee3ba4c56b772bd0cfb852739cb4aa7"
126
+ "baseHash": "90f4b32a3efe6ed28d47946ab9d0f9737dbe0174"
127
127
  },
128
128
  {
129
129
  "type": "patch",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.72.4",
3
+ "version": "0.72.5",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,16 +26,16 @@
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.0.0",
28
28
  "@jest/create-cache-key-function": "^29.2.1",
29
- "@react-native-community/cli": "11.3.5",
30
- "@react-native-community/cli-platform-android": "11.3.5",
31
- "@react-native-community/cli-platform-ios": "11.3.5",
29
+ "@react-native-community/cli": "11.3.7",
30
+ "@react-native-community/cli-platform-android": "11.3.7",
31
+ "@react-native-community/cli-platform-ios": "11.3.7",
32
32
  "@react-native/assets": "1.0.0",
33
33
  "@react-native/assets-registry": "^0.72.0",
34
- "@react-native/codegen": "^0.72.6",
34
+ "@react-native/codegen": "^0.72.7",
35
35
  "@react-native/gradle-plugin": "^0.72.11",
36
36
  "@react-native/js-polyfills": "^0.72.1",
37
37
  "@react-native/normalize-colors": "^0.72.0",
38
- "@react-native/virtualized-lists": "^0.72.6",
38
+ "@react-native/virtualized-lists": "^0.72.8",
39
39
  "abort-controller": "^3.0.0",
40
40
  "anser": "^1.4.9",
41
41
  "art": "^0.10.0",
@@ -47,8 +47,8 @@
47
47
  "jest-environment-node": "^29.2.1",
48
48
  "jsc-android": "^250231.0.0",
49
49
  "memoize-one": "^5.0.0",
50
- "metro-runtime": "0.76.7",
51
- "metro-source-map": "0.76.7",
50
+ "metro-runtime": "0.76.8",
51
+ "metro-source-map": "0.76.8",
52
52
  "mkdirp": "^0.5.1",
53
53
  "nullthrows": "^1.1.1",
54
54
  "pretty-format": "^26.5.2",
@@ -83,7 +83,7 @@
83
83
  "just-scripts": "^1.3.3",
84
84
  "prettier": "^2.4.1",
85
85
  "react": "18.2.0",
86
- "react-native": "0.72.3",
86
+ "react-native": "0.72.5",
87
87
  "react-native-platform-override": "^1.9.4",
88
88
  "typescript": "^4.9.5"
89
89
  },