@office-iss/react-native-win32 0.74.2 → 0.74.4

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,37 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 06 May 2024 15:16:39 GMT",
5
+ "date": "Wed, 10 Jul 2024 21:00:05 GMT",
6
+ "version": "0.74.4",
7
+ "tag": "@office-iss/react-native-win32_v0.74.4",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "1422161+marlenecota@users.noreply.github.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "d3c8e762a7b2be2c699d7a2c14e4da06501c352f",
14
+ "comment": "Integrate 0.74.3"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 20 May 2024 15:16:05 GMT",
21
+ "version": "0.74.3",
22
+ "tag": "@office-iss/react-native-win32_v0.74.3",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "nate@bracy.dev",
27
+ "package": "@office-iss/react-native-win32",
28
+ "commit": "481f89da064d5a33f4b5b79088dc760bd49f6dd2",
29
+ "comment": "fix(TextInput/isFocused): correctly handle null focused input"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Mon, 06 May 2024 15:17:11 GMT",
6
36
  "version": "0.74.2",
7
37
  "tag": "@office-iss/react-native-win32_v0.74.2",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,33 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 06 May 2024 15:16:39 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 10 Jul 2024 21:00:05 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.74.2
7
+ ## 0.74.4
8
8
 
9
- Mon, 06 May 2024 15:16:39 GMT
9
+ Wed, 10 Jul 2024 21:00:05 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Integrate 0.74.1 (30809111+acoates-ms@users.noreply.github.com)
13
+ - Integrate 0.74.3 (1422161+marlenecota@users.noreply.github.com)
14
14
 
15
+ ## 0.74.3
16
+
17
+ Mon, 20 May 2024 15:16:05 GMT
18
+
19
+ ### Patches
20
+
21
+ - fix(TextInput/isFocused): correctly handle null focused input (nate@bracy.dev)
22
+
23
+ ## 0.74.2
24
+
25
+ Mon, 06 May 2024 15:17:11 GMT
26
+
27
+ ### Patches
28
+
29
+ - Integrate 0.74.1 (30809111+acoates-ms@users.noreply.github.com)
30
+
15
31
  ## 0.74.1
16
32
 
17
33
  Wed, 01 May 2024 20:37:36 GMT
@@ -1135,12 +1135,14 @@ function InternalTextInput(props: Props): React.Node {
1135
1135
  };
1136
1136
 
1137
1137
  const [mostRecentEventCount, setMostRecentEventCount] = useState<number>(0);
1138
-
1139
1138
  const [lastNativeText, setLastNativeText] = useState<?Stringish>(props.value);
1140
1139
  const [lastNativeSelectionState, setLastNativeSelection] = useState<{|
1141
- selection: ?Selection,
1140
+ selection: Selection,
1142
1141
  mostRecentEventCount: number,
1143
- |}>({selection, mostRecentEventCount});
1142
+ |}>({
1143
+ selection: {start: -1, end: -1},
1144
+ mostRecentEventCount: mostRecentEventCount,
1145
+ });
1144
1146
 
1145
1147
  const lastNativeSelection = lastNativeSelectionState.selection;
1146
1148
 
@@ -1498,6 +1500,7 @@ function InternalTextInput(props: Props): React.Node {
1498
1500
  onSelectionChange={_onSelectionChange}
1499
1501
  onSelectionChangeShouldSetResponder={emptyFunctionThatReturnsTrue}
1500
1502
  selection={selection}
1503
+ selectionColor={selectionColor}
1501
1504
  style={StyleSheet.compose(
1502
1505
  useMultilineDefaultStyle ? styles.multilineDefault : null,
1503
1506
  style,
@@ -1180,12 +1180,14 @@ function InternalTextInput(props: Props): React.Node {
1180
1180
  };
1181
1181
 
1182
1182
  const [mostRecentEventCount, setMostRecentEventCount] = useState<number>(0);
1183
-
1184
1183
  const [lastNativeText, setLastNativeText] = useState<?Stringish>(props.value);
1185
1184
  const [lastNativeSelectionState, setLastNativeSelection] = useState<{|
1186
- selection: ?Selection,
1185
+ selection: Selection,
1187
1186
  mostRecentEventCount: number,
1188
- |}>({selection, mostRecentEventCount});
1187
+ |}>({
1188
+ selection: {start: -1, end: -1},
1189
+ mostRecentEventCount: mostRecentEventCount,
1190
+ });
1189
1191
 
1190
1192
  const lastNativeSelection = lastNativeSelectionState.selection;
1191
1193
 
@@ -1314,9 +1316,13 @@ function InternalTextInput(props: Props): React.Node {
1314
1316
  );
1315
1317
  }
1316
1318
  },
1317
- // TODO: Fix this returning true on null === null, when no input is focused
1318
1319
  isFocused(): boolean {
1319
- return TextInputState.currentlyFocusedInput() === inputRef.current;
1320
+ const currentlyFocusedInput =
1321
+ TextInputState.currentlyFocusedInput();
1322
+ return (
1323
+ currentlyFocusedInput !== null &&
1324
+ currentlyFocusedInput === inputRef.current
1325
+ );
1320
1326
  },
1321
1327
  getNativeRef(): ?React.ElementRef<HostComponent<mixed>> {
1322
1328
  return inputRef.current;
@@ -1612,6 +1618,7 @@ function InternalTextInput(props: Props): React.Node {
1612
1618
  onSelectionChange={_onSelectionChange}
1613
1619
  onSelectionChangeShouldSetResponder={emptyFunctionThatReturnsTrue}
1614
1620
  selection={selection}
1621
+ selectionColor={selectionColor}
1615
1622
  style={StyleSheet.compose(
1616
1623
  useMultilineDefaultStyle ? styles.multilineDefault : null,
1617
1624
  style,
@@ -16,7 +16,7 @@ const version: $ReadOnly<{
16
16
  }> = {
17
17
  major: 0,
18
18
  minor: 74,
19
- patch: 1,
19
+ patch: 3,
20
20
  prerelease: null,
21
21
  };
22
22
 
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.74.1",
10
+ "baseVersion": "0.74.3",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
@@ -122,7 +122,7 @@
122
122
  "type": "derived",
123
123
  "file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
124
124
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
125
- "baseHash": "0119ddc412dcbacf1074b1d6b13628667578a270"
125
+ "baseHash": "3676702ffe4830f11e49c67067d7fe18d9c731cb"
126
126
  },
127
127
  {
128
128
  "type": "patch",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.74.2",
3
+ "version": "0.74.4",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,17 +26,17 @@
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.0.0",
28
28
  "@jest/create-cache-key-function": "^29.6.3",
29
- "@react-native-community/cli": "13.6.6",
30
- "@react-native-community/cli-platform-android": "13.6.6",
31
- "@react-native-community/cli-platform-ios": "13.6.6",
29
+ "@react-native-community/cli": "13.6.9",
30
+ "@react-native-community/cli-platform-android": "13.6.9",
31
+ "@react-native-community/cli-platform-ios": "13.6.9",
32
32
  "@react-native/assets": "1.0.0",
33
- "@react-native/assets-registry": "0.74.83",
34
- "@react-native/codegen": "0.74.83",
35
- "@react-native/community-cli-plugin": "0.74.83",
36
- "@react-native/gradle-plugin": "0.74.83",
37
- "@react-native/js-polyfills": "0.74.83",
38
- "@react-native/normalize-colors": "0.74.83",
39
- "@react-native/virtualized-lists": "0.74.83",
33
+ "@react-native/assets-registry": "0.74.85",
34
+ "@react-native/codegen": "0.74.85",
35
+ "@react-native/community-cli-plugin": "0.74.85",
36
+ "@react-native/gradle-plugin": "0.74.85",
37
+ "@react-native/js-polyfills": "0.74.85",
38
+ "@react-native/normalize-colors": "0.74.85",
39
+ "@react-native/virtualized-lists": "0.74.85",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
@@ -69,7 +69,7 @@
69
69
  "devDependencies": {
70
70
  "@babel/core": "^7.20.0",
71
71
  "@babel/eslint-parser": "^7.20.0",
72
- "@react-native/metro-config": "0.74.83",
72
+ "@react-native/metro-config": "0.74.85",
73
73
  "@rnw-scripts/babel-react-native-config": "0.0.0",
74
74
  "@rnw-scripts/eslint-config": "1.2.9",
75
75
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.13",
@@ -85,7 +85,7 @@
85
85
  "just-scripts": "^1.3.3",
86
86
  "prettier": "2.8.8",
87
87
  "react": "18.2.0",
88
- "react-native": "0.74.1",
88
+ "react-native": "0.74.3",
89
89
  "react-native-platform-override": "^1.9.25",
90
90
  "typescript": "5.0.4"
91
91
  },