@office-iss/react-native-win32 0.75.2 → 0.75.3

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,22 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 30 Sep 2024 15:15:30 GMT",
5
+ "date": "Mon, 28 Oct 2024 15:27:49 GMT",
6
+ "version": "0.75.3",
7
+ "tag": "@office-iss/react-native-win32_v0.75.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "jthysell@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "714778b20b204a62c3a1aa00bb63028a2f67ea46",
14
+ "comment": "Fix repo linting with up-to-date eslint and prettier configuration"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 30 Sep 2024 16:40:50 GMT",
6
21
  "version": "0.75.2",
7
22
  "tag": "@office-iss/react-native-win32_v0.75.2",
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, 30 Sep 2024 15:15:30 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 28 Oct 2024 15:27:49 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.75.2
7
+ ## 0.75.3
8
8
 
9
- Mon, 30 Sep 2024 15:15:30 GMT
9
+ Mon, 28 Oct 2024 15:27:49 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - integrate 0.75.3 (tatianakapos@microsoft.com)
13
+ - Fix repo linting with up-to-date eslint and prettier configuration (jthysell@microsoft.com)
14
14
 
15
+ ## 0.75.2
16
+
17
+ Mon, 30 Sep 2024 16:40:50 GMT
18
+
19
+ ### Patches
20
+
21
+ - integrate 0.75.3 (tatianakapos@microsoft.com)
22
+
15
23
  ## 0.75.1
16
24
 
17
25
  Mon, 02 Sep 2024 15:14:59 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
@@ -1175,8 +1175,8 @@ function InternalTextInput(props: Props): React.Node {
1175
1175
  typeof props.value === 'string'
1176
1176
  ? props.value
1177
1177
  : typeof props.defaultValue === 'string'
1178
- ? props.defaultValue
1179
- : '';
1178
+ ? props.defaultValue
1179
+ : '';
1180
1180
 
1181
1181
  // This is necessary in case native updates the text and JS decides
1182
1182
  // that the update should be ignored and we should stick with the value
@@ -1281,8 +1281,12 @@ function InternalTextInput(props: Props): React.Node {
1281
1281
  }
1282
1282
  },
1283
1283
  isFocused(): boolean {
1284
- const currentlyFocusedInput = TextInputState.currentlyFocusedInput();
1285
- return currentlyFocusedInput !== null && currentlyFocusedInput === inputRef.current;
1284
+ const currentlyFocusedInput =
1285
+ TextInputState.currentlyFocusedInput();
1286
+ return (
1287
+ currentlyFocusedInput !== null &&
1288
+ currentlyFocusedInput === inputRef.current
1289
+ );
1286
1290
  },
1287
1291
  getNativeRef(): ?React.ElementRef<HostComponent<mixed>> {
1288
1292
  return inputRef.current;
@@ -1823,12 +1827,12 @@ const ExportedForwardRef: React.AbstractComponent<
1823
1827
  textContentType != null
1824
1828
  ? textContentType
1825
1829
  : Platform.OS === 'ios' &&
1826
- autoComplete &&
1827
- autoComplete in autoCompleteWebToTextContentTypeMap
1828
- ? // $FlowFixMe[invalid-computed-prop]
1829
- // $FlowFixMe[prop-missing]
1830
- autoCompleteWebToTextContentTypeMap[autoComplete]
1831
- : textContentType
1830
+ autoComplete &&
1831
+ autoComplete in autoCompleteWebToTextContentTypeMap
1832
+ ? // $FlowFixMe[invalid-computed-prop]
1833
+ // $FlowFixMe[prop-missing]
1834
+ autoCompleteWebToTextContentTypeMap[autoComplete]
1835
+ : textContentType
1832
1836
  }
1833
1837
  {...restProps}
1834
1838
  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
  : {})}
@@ -91,7 +91,6 @@ const backgroundForLevel = (level: LogLevel) =>
91
91
  },
92
92
  })[level];
93
93
 
94
-
95
94
  const styles = StyleSheet.create({
96
95
  syntax: {
97
96
  backgroundColor: LogBoxStyle.getFatalColor(),
@@ -110,8 +110,8 @@ const Text: React.AbstractComponent<
110
110
  checked: ariaChecked,
111
111
  disabled: ariaDisabled,
112
112
  expanded: ariaExpanded,
113
- multiselectable: ariaMultiselectable, // Win32,
114
- required: ariaRequired, // Win32
113
+ multiselectable: ariaMultiselectable, // Win32,
114
+ required: ariaRequired, // Win32
115
115
  selected: ariaSelected,
116
116
  };
117
117
  }
@@ -370,4 +370,4 @@ const verticalAlignToTextAlignVerticalMap = {
370
370
  middle: 'center',
371
371
  };
372
372
 
373
- module.exports = Text;
373
+ module.exports = 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.75.2",
3
+ "version": "0.75.3",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",