@office-iss/react-native-win32 0.0.0-canary.267 → 0.0.0-canary.268

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,46 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 16 Oct 2024 05:19:58 GMT",
5
+ "date": "Sat, 19 Oct 2024 05:27:56 GMT",
6
+ "version": "0.0.0-canary.268",
7
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.268",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "jthysell@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "d0c7fa8199238da974905788351a45694fa39e57",
14
+ "comment": "Fix repo linting with prettier"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@office-iss/react-native-win32",
19
+ "comment": "Bump @rnw-scripts/eslint-config to v1.2.30",
20
+ "commit": "not available"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@office-iss/react-native-win32",
25
+ "comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.34",
26
+ "commit": "not available"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@office-iss/react-native-win32",
31
+ "comment": "Bump @rnw-scripts/just-task to v2.3.47",
32
+ "commit": "not available"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@office-iss/react-native-win32",
37
+ "comment": "Bump react-native-platform-override to v1.9.49",
38
+ "commit": "not available"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Wed, 16 Oct 2024 05:20:54 GMT",
6
45
  "version": "0.0.0-canary.267",
7
46
  "tag": "@office-iss/react-native-win32_v0.0.0-canary.267",
8
47
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,29 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- <!-- This log was last generated on Wed, 16 Oct 2024 05:19:58 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Sat, 19 Oct 2024 05:27:56 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.0.0-canary.267
7
+ ## 0.0.0-canary.268
8
8
 
9
- Wed, 16 Oct 2024 05:19:58 GMT
9
+ Sat, 19 Oct 2024 05:27:56 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - integrate rn nightly 0.77.0-nightly-20241001-223e98cc4 (tatianakapos@microsoft.com)
13
+ - Fix repo linting with prettier (jthysell@microsoft.com)
14
+ - Bump @rnw-scripts/eslint-config to v1.2.30
15
+ - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.34
16
+ - Bump @rnw-scripts/just-task to v2.3.47
17
+ - Bump react-native-platform-override to v1.9.49
14
18
 
19
+ ## 0.0.0-canary.267
20
+
21
+ Wed, 16 Oct 2024 05:20:54 GMT
22
+
23
+ ### Changes
24
+
25
+ - integrate rn nightly 0.77.0-nightly-20241001-223e98cc4 (tatianakapos@microsoft.com)
26
+
15
27
  ## 0.0.0-canary.266
16
28
 
17
29
  Thu, 10 Oct 2024 18:14:30 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
@@ -1344,14 +1344,15 @@ function InternalTextInput(props: Props): React.Node {
1344
1344
  typeof props.value === 'string'
1345
1345
  ? props.value
1346
1346
  : typeof props.defaultValue === 'string'
1347
- ? props.defaultValue
1348
- : '';
1347
+ ? props.defaultValue
1348
+ : '';
1349
1349
 
1350
1350
  const viewCommands =
1351
- WindowsTextInputCommands || AndroidTextInputCommands || // [Windows]
1351
+ WindowsTextInputCommands || // [Windows]
1352
+ AndroidTextInputCommands ||
1352
1353
  (props.multiline === true
1353
1354
  ? RCTMultilineTextInputNativeCommands
1354
- : RCTSinglelineTextInputNativeCommands)
1355
+ : RCTSinglelineTextInputNativeCommands);
1355
1356
 
1356
1357
  const [mostRecentEventCount, setMostRecentEventCount] = useState<number>(0);
1357
1358
  const useTextInputStateSynchronization =
@@ -1425,8 +1426,12 @@ function InternalTextInput(props: Props): React.Node {
1425
1426
  }
1426
1427
  },
1427
1428
  isFocused(): boolean {
1428
- const currentlyFocusedInput = TextInputState.currentlyFocusedInput();
1429
- return currentlyFocusedInput !== null && currentlyFocusedInput === inputRef.current;
1429
+ const currentlyFocusedInput =
1430
+ TextInputState.currentlyFocusedInput();
1431
+ return (
1432
+ currentlyFocusedInput !== null &&
1433
+ currentlyFocusedInput === inputRef.current
1434
+ );
1430
1435
  },
1431
1436
  getNativeRef(): ?React.ElementRef<HostComponent<mixed>> {
1432
1437
  return inputRef.current;
@@ -1970,12 +1975,12 @@ const ExportedForwardRef: React.AbstractComponent<
1970
1975
  textContentType != null
1971
1976
  ? textContentType
1972
1977
  : Platform.OS === 'ios' &&
1973
- autoComplete &&
1974
- autoComplete in autoCompleteWebToTextContentTypeMap
1975
- ? // $FlowFixMe[invalid-computed-prop]
1976
- // $FlowFixMe[prop-missing]
1977
- autoCompleteWebToTextContentTypeMap[autoComplete]
1978
- : textContentType
1978
+ autoComplete &&
1979
+ autoComplete in autoCompleteWebToTextContentTypeMap
1980
+ ? // $FlowFixMe[invalid-computed-prop]
1981
+ // $FlowFixMe[prop-missing]
1982
+ autoCompleteWebToTextContentTypeMap[autoComplete]
1983
+ : textContentType
1979
1984
  }
1980
1985
  {...restProps}
1981
1986
  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
  : {})}
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.0.0-canary.267",
3
+ "version": "0.0.0-canary.268",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -74,11 +74,11 @@
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.77.0-nightly-20241001-223e98cc4",
78
78
  "@rnw-scripts/babel-react-native-config": "0.0.0",
79
- "@rnw-scripts/eslint-config": "1.2.29",
80
- "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.33",
81
- "@rnw-scripts/just-task": "2.3.46",
79
+ "@rnw-scripts/eslint-config": "1.2.30",
80
+ "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.34",
81
+ "@rnw-scripts/just-task": "2.3.47",
82
82
  "@rnw-scripts/metro-dev-config": "0.0.0",
83
83
  "@rnx-kit/jest-preset": "^0.1.17",
84
84
  "@types/node": "^18.0.0",
@@ -91,7 +91,7 @@
91
91
  "prettier": "2.8.8",
92
92
  "react": "19.0.0-rc-fb9a90fa48-20240614",
93
93
  "react-native": "0.77.0-nightly-20241001-223e98cc4",
94
- "react-native-platform-override": "^1.9.48",
94
+ "react-native-platform-override": "^1.9.49",
95
95
  "typescript": "5.0.4"
96
96
  },
97
97
  "peerDependencies": {