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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintignore CHANGED
@@ -8,6 +8,7 @@
8
8
  /packages
9
9
  /ReactCopies
10
10
  /rntypes
11
+ /src
11
12
  /src-win/rntypes
12
13
  /types
13
14
  /flow-typed
package/CHANGELOG.json CHANGED
@@ -2,7 +2,37 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 21 Oct 2024 15:36:12 GMT",
5
+ "date": "Mon, 04 Nov 2024 16:28:21 GMT",
6
+ "version": "0.76.0-preview.5",
7
+ "tag": "@office-iss/react-native-win32_v0.76.0-preview.5",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "tatianakapos@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "80dbd3740b4183dc8c898a89923f784f13996c35",
14
+ "comment": "integrate RN 0.76.0 and fix babel.config"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 28 Oct 2024 15:29:51 GMT",
21
+ "version": "0.76.0-preview.4",
22
+ "tag": "@office-iss/react-native-win32_v0.76.0-preview.4",
23
+ "comments": {
24
+ "prerelease": [
25
+ {
26
+ "author": "jthysell@microsoft.com",
27
+ "package": "@office-iss/react-native-win32",
28
+ "commit": "3aa853272cbdc109f14e38511c0cae9f8243872f",
29
+ "comment": "Fix repo linting with prettier"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Mon, 21 Oct 2024 15:36:46 GMT",
6
36
  "version": "0.76.0-preview.3",
7
37
  "tag": "@office-iss/react-native-win32_v0.76.0-preview.3",
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, 21 Oct 2024 15:36:12 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Mon, 04 Nov 2024 16:28:21 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.76.0-preview.3
7
+ ## 0.76.0-preview.5
8
8
 
9
- Mon, 21 Oct 2024 15:36:12 GMT
9
+ Mon, 04 Nov 2024 16:28:21 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - integrate 0.76.0-rc.6 (tatianakapos@microsoft.com)
13
+ - integrate RN 0.76.0 and fix babel.config (tatianakapos@microsoft.com)
14
14
 
15
+ ## 0.76.0-preview.4
16
+
17
+ Mon, 28 Oct 2024 15:29:51 GMT
18
+
19
+ ### Changes
20
+
21
+ - Fix repo linting with prettier (jthysell@microsoft.com)
22
+
23
+ ## 0.76.0-preview.3
24
+
25
+ Mon, 21 Oct 2024 15:36:46 GMT
26
+
27
+ ### Changes
28
+
29
+ - integrate 0.76.0-rc.6 (tatianakapos@microsoft.com)
30
+
15
31
  ## 0.76.0-preview.2
16
32
 
17
33
  Fri, 11 Oct 2024 20:17:22 GMT
@@ -56,21 +56,21 @@ const EventNames: Map<
56
56
  ['accessibilityServiceChanged', 'accessibilityServiceDidChange'],
57
57
  ])
58
58
  : Platform.OS === 'win32'
59
- ? new Map([
60
- ['change', 'TOUCH_EXPLORATION_EVENT'],
61
- ['reduceMotionChanged', 'REDUCE_MOTION_EVENT'],
62
- ['screenReaderChanged', 'TOUCH_EXPLORATION_EVENT'],
63
- ])
64
- : new Map([
65
- ['announcementFinished', 'announcementFinished'],
66
- ['boldTextChanged', 'boldTextChanged'],
67
- ['change', 'screenReaderChanged'],
68
- ['grayscaleChanged', 'grayscaleChanged'],
69
- ['invertColorsChanged', 'invertColorsChanged'],
70
- ['reduceMotionChanged', 'reduceMotionChanged'],
71
- ['reduceTransparencyChanged', 'reduceTransparencyChanged'],
72
- ['screenReaderChanged', 'screenReaderChanged'],
73
- ]);
59
+ ? new Map([
60
+ ['change', 'TOUCH_EXPLORATION_EVENT'],
61
+ ['reduceMotionChanged', 'REDUCE_MOTION_EVENT'],
62
+ ['screenReaderChanged', 'TOUCH_EXPLORATION_EVENT'],
63
+ ])
64
+ : new Map([
65
+ ['announcementFinished', 'announcementFinished'],
66
+ ['boldTextChanged', 'boldTextChanged'],
67
+ ['change', 'screenReaderChanged'],
68
+ ['grayscaleChanged', 'grayscaleChanged'],
69
+ ['invertColorsChanged', 'invertColorsChanged'],
70
+ ['reduceMotionChanged', 'reduceMotionChanged'],
71
+ ['reduceTransparencyChanged', 'reduceTransparencyChanged'],
72
+ ['screenReaderChanged', 'screenReaderChanged'],
73
+ ]);
74
74
 
75
75
  /**
76
76
  * Sometimes it's useful to know whether or not the device has a screen reader
@@ -1328,14 +1328,15 @@ function InternalTextInput(props: Props): React.Node {
1328
1328
  typeof props.value === 'string'
1329
1329
  ? props.value
1330
1330
  : typeof props.defaultValue === 'string'
1331
- ? props.defaultValue
1332
- : '';
1331
+ ? props.defaultValue
1332
+ : '';
1333
1333
 
1334
1334
  const viewCommands =
1335
- WindowsTextInputCommands || AndroidTextInputCommands || // [Windows]
1335
+ WindowsTextInputCommands ||
1336
+ AndroidTextInputCommands || // [Windows]
1336
1337
  (props.multiline === true
1337
1338
  ? RCTMultilineTextInputNativeCommands
1338
- : RCTSinglelineTextInputNativeCommands)
1339
+ : RCTSinglelineTextInputNativeCommands);
1339
1340
 
1340
1341
  const [mostRecentEventCount, setMostRecentEventCount] = useState<number>(0);
1341
1342
  const useTextInputStateSynchronization =
@@ -1409,8 +1410,12 @@ function InternalTextInput(props: Props): React.Node {
1409
1410
  }
1410
1411
  },
1411
1412
  isFocused(): boolean {
1412
- const currentlyFocusedInput = TextInputState.currentlyFocusedInput();
1413
- return currentlyFocusedInput !== null && currentlyFocusedInput === inputRef.current;
1413
+ const currentlyFocusedInput =
1414
+ TextInputState.currentlyFocusedInput();
1415
+ return (
1416
+ currentlyFocusedInput !== null &&
1417
+ currentlyFocusedInput === inputRef.current
1418
+ );
1414
1419
  },
1415
1420
  getNativeRef(): ?React.ElementRef<HostComponent<mixed>> {
1416
1421
  return inputRef.current;
@@ -1954,12 +1959,12 @@ const ExportedForwardRef: React.AbstractComponent<
1954
1959
  textContentType != null
1955
1960
  ? textContentType
1956
1961
  : Platform.OS === 'ios' &&
1957
- autoComplete &&
1958
- autoComplete in autoCompleteWebToTextContentTypeMap
1959
- ? // $FlowFixMe[invalid-computed-prop]
1960
- // $FlowFixMe[prop-missing]
1961
- autoCompleteWebToTextContentTypeMap[autoComplete]
1962
- : textContentType
1962
+ autoComplete &&
1963
+ autoComplete in autoCompleteWebToTextContentTypeMap
1964
+ ? // $FlowFixMe[invalid-computed-prop]
1965
+ // $FlowFixMe[prop-missing]
1966
+ autoCompleteWebToTextContentTypeMap[autoComplete]
1967
+ : textContentType
1963
1968
  }
1964
1969
  {...restProps}
1965
1970
  forwardedRef={forwardedRef}
@@ -45,8 +45,8 @@ const extractSingleTouch = (nativeEvent: {
45
45
  return !hasTouches && hasChangedTouches
46
46
  ? changedTouches[0]
47
47
  : hasTouches
48
- ? touches[0]
49
- : nativeEvent;
48
+ ? touches[0]
49
+ : nativeEvent;
50
50
  };
51
51
 
52
52
  /**
@@ -113,9 +113,9 @@ const ViewWin32: React.AbstractComponent<
113
113
  ? // $FlowFixMe[exponential-spread]
114
114
  {accessibilityDescribedBy: describedByTarget}
115
115
  : // $FlowFixMe[exponential-spread]
116
- typeof accessibilityDescribedBy === 'string'
117
- ? {accessibilityDescribedBy}
118
- : {})}
116
+ typeof accessibilityDescribedBy === 'string'
117
+ ? {accessibilityDescribedBy}
118
+ : {})}
119
119
  {...(typeof accessibilityControls === 'string'
120
120
  ? {accessibilityControls}
121
121
  : {})}
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 76,
19
19
  patch: 0,
20
- prerelease: 'rc.6',
20
+ prerelease: null,
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -88,10 +88,13 @@ const Text: React.AbstractComponent<TextProps, TextForwardRef> =
88
88
  ) => {
89
89
  const _accessibilityLabel = ariaLabel ?? accessibilityLabel;
90
90
  const _accessibilityControls = ariaControls ?? accessibilityControls; // Win32
91
- const _accessibilityDescribedBy = ariaDescribedBy ?? accessibilityDescribedBy; // Win32
92
- const _accessibilityDescription = ariaDescription ?? accessibilityDescription; // Win32
91
+ const _accessibilityDescribedBy =
92
+ ariaDescribedBy ?? accessibilityDescribedBy; // Win32
93
+ const _accessibilityDescription =
94
+ ariaDescription ?? accessibilityDescription; // Win32
93
95
  const _accessibilityLevel = ariaLevel ?? accessibilityLevel; // Win32
94
- const _accessibilityPositionInSet = ariaPosinset ?? accessibilityPositionInSet; // Win32
96
+ const _accessibilityPositionInSet =
97
+ ariaPosinset ?? accessibilityPositionInSet; // Win32
95
98
  const _accessibilitySetSize = ariaSetsize ?? accessibilitySetSize; // Win32
96
99
 
97
100
  let _accessibilityState: ?TextProps['accessibilityState'] =
@@ -109,7 +112,8 @@ const Text: React.AbstractComponent<TextProps, TextForwardRef> =
109
112
  checked: ariaChecked ?? _accessibilityState.checked,
110
113
  disabled: ariaDisabled ?? _accessibilityState.disabled,
111
114
  expanded: ariaExpanded ?? _accessibilityState.expanded,
112
- multiselectable: ariaMultiselectable ?? accessibilityState?.multiselectable, // Win32
115
+ multiselectable:
116
+ ariaMultiselectable ?? accessibilityState?.multiselectable, // Win32
113
117
  required: ariaRequired ?? accessibilityState?.required, // Win32
114
118
  selected: ariaSelected ?? _accessibilityState.selected,
115
119
  };
@@ -119,8 +123,8 @@ const Text: React.AbstractComponent<TextProps, TextForwardRef> =
119
123
  checked: ariaChecked,
120
124
  disabled: ariaDisabled,
121
125
  expanded: ariaExpanded,
122
- multiselectable: ariaMultiselectable, // Win32,
123
- required: ariaRequired, // Win32
126
+ multiselectable: ariaMultiselectable, // Win32,
127
+ required: ariaRequired, // Win32
124
128
  selected: ariaSelected,
125
129
  };
126
130
  }
@@ -374,7 +378,7 @@ const Text: React.AbstractComponent<TextProps, TextForwardRef> =
374
378
  return (
375
379
  <TextAncestor.Provider value={true}>{nativeText}</TextAncestor.Provider>
376
380
  );
377
- }
381
+ },
378
382
  );
379
383
 
380
384
  Text.displayName = 'Text';
@@ -72,10 +72,10 @@ const Platform: PlatformType = {
72
72
  ? // $FlowFixMe[incompatible-return]
73
73
  spec.win32
74
74
  : 'native' in spec
75
- ? // $FlowFixMe[incompatible-return]
76
- spec.native
77
- : // $FlowFixMe[incompatible-return]
78
- spec.default,
75
+ ? // $FlowFixMe[incompatible-return]
76
+ spec.native
77
+ : // $FlowFixMe[incompatible-return]
78
+ spec.default,
79
79
  };
80
80
 
81
81
  module.exports = Platform;
package/just-task.js CHANGED
@@ -44,4 +44,4 @@ task(
44
44
 
45
45
  task('clean', series('cleanRNLibraries'));
46
46
 
47
- task('lint', series('eslint', 'flow-check'));
47
+ task('lint', series('prettier', 'eslint', 'flow-check'));
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.76.0-rc.6",
10
+ "baseVersion": "0.76.0",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.76.0-preview.3",
3
+ "version": "0.76.0-preview.5",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,13 +30,13 @@
30
30
  "@react-native-community/cli-platform-android": "15.0.0-alpha.2",
31
31
  "@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
32
32
  "@react-native/assets": "1.0.0",
33
- "@react-native/assets-registry": "0.76.0-rc.6",
34
- "@react-native/codegen": "0.76.0-rc.6",
35
- "@react-native/community-cli-plugin": "0.76.0-rc.6",
36
- "@react-native/gradle-plugin": "0.76.0-rc.6",
37
- "@react-native/js-polyfills": "0.76.0-rc.6",
38
- "@react-native/normalize-colors": "0.76.0-rc.6",
39
- "@react-native/virtualized-lists": "0.76.0-rc.6",
33
+ "@react-native/assets-registry": "0.76.0",
34
+ "@react-native/codegen": "0.76.0",
35
+ "@react-native/community-cli-plugin": "0.76.0",
36
+ "@react-native/gradle-plugin": "0.76.0",
37
+ "@react-native/js-polyfills": "0.76.0",
38
+ "@react-native/normalize-colors": "0.76.0",
39
+ "@react-native/virtualized-lists": "0.76.0",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
@@ -74,7 +74,7 @@
74
74
  "devDependencies": {
75
75
  "@babel/core": "^7.25.2",
76
76
  "@babel/eslint-parser": "^7.25.1",
77
- "@react-native/metro-config": "0.76.0-nightly-20240701-9f6cb21ed",
77
+ "@react-native/metro-config": "0.76.0",
78
78
  "@rnw-scripts/babel-react-native-config": "0.0.0",
79
79
  "@rnw-scripts/eslint-config": "1.2.27",
80
80
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.31",
@@ -90,14 +90,14 @@
90
90
  "just-scripts": "^1.3.3",
91
91
  "prettier": "2.8.8",
92
92
  "react": "18.3.1",
93
- "react-native": "0.76.0-rc.6",
93
+ "react-native": "0.76.0",
94
94
  "react-native-platform-override": "^1.9.46",
95
95
  "typescript": "5.0.4"
96
96
  },
97
97
  "peerDependencies": {
98
98
  "@types/react": "^18.2.6",
99
99
  "react": "^18.2.0",
100
- "react-native": "0.76.0-rc.6"
100
+ "react-native": "^0.76.0"
101
101
  },
102
102
  "beachball": {
103
103
  "defaultNpmTag": "preview",