@office-iss/react-native-win32 0.69.0-preview.1 → 0.69.0-preview.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/.eslintrc.js CHANGED
@@ -13,6 +13,7 @@ module.exports = {
13
13
  rules: {
14
14
  '@typescript-eslint/no-unnecessary-condition': 'off',
15
15
  'no-restricted-syntax': 'off',
16
+ '@typescript-eslint/no-unused-vars': 'off',
16
17
  },
17
18
  },
18
19
  ],
package/CHANGELOG.json CHANGED
@@ -2,7 +2,58 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 04 May 2022 23:29:33 GMT",
5
+ "date": "Mon, 13 Jun 2022 15:10:29 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.69.0-preview.4",
7
+ "version": "0.69.0-preview.4",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "34109996+chiaramooney@users.noreply.github.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "014e0289748121cb0fc11393a98404f145b53b1c",
14
+ "comment": "Integrate RC6"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@office-iss/react-native-win32",
19
+ "comment": "Bump @react-native-windows/virtualized-list to v0.69.0-preview.3",
20
+ "commit": "a04f5f19cb869db2b5ceea5e73c4096842e57ed4"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Mon, 06 Jun 2022 15:09:03 GMT",
27
+ "tag": "@office-iss/react-native-win32_v0.69.0-preview.3",
28
+ "version": "0.69.0-preview.3",
29
+ "comments": {
30
+ "prerelease": [
31
+ {
32
+ "author": "beachball",
33
+ "package": "@office-iss/react-native-win32",
34
+ "comment": "Bump @react-native-windows/virtualized-list to v0.69.0-preview.2",
35
+ "commit": "55fc1addf2b30c941a64ca361f78549caac88230"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Mon, 16 May 2022 15:09:01 GMT",
42
+ "tag": "@office-iss/react-native-win32_v0.69.0-preview.2",
43
+ "version": "0.69.0-preview.2",
44
+ "comments": {
45
+ "prerelease": [
46
+ {
47
+ "author": "jthysell@microsoft.com",
48
+ "package": "@office-iss/react-native-win32",
49
+ "commit": "70ed2cf44501f1ac1951638154915bc14f073406",
50
+ "comment": "Upgrade to @react-native-community/cli@8.0.0-alpha.6"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Wed, 04 May 2022 23:30:22 GMT",
6
57
  "tag": "@office-iss/react-native-win32_v0.69.0-preview.1",
7
58
  "version": "0.69.0-preview.1",
8
59
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,18 +1,43 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Wed, 04 May 2022 23:29:33 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 13 Jun 2022 15:10:29 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.69.0-preview.1
7
+ ## 0.69.0-preview.4
8
8
 
9
- Wed, 04 May 2022 23:29:33 GMT
9
+ Mon, 13 Jun 2022 15:10:29 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Promote 0.69 to preview (jthysell@microsoft.com)
14
- - Bump @react-native-windows/virtualized-list to v0.69.0-preview.1
13
+ - Integrate RC6 (34109996+chiaramooney@users.noreply.github.com)
14
+ - Bump @react-native-windows/virtualized-list to v0.69.0-preview.3
15
15
 
16
+ ## 0.69.0-preview.3
17
+
18
+ Mon, 06 Jun 2022 15:09:03 GMT
19
+
20
+ ### Changes
21
+
22
+ - Bump @react-native-windows/virtualized-list to v0.69.0-preview.2
23
+
24
+ ## 0.69.0-preview.2
25
+
26
+ Mon, 16 May 2022 15:09:01 GMT
27
+
28
+ ### Changes
29
+
30
+ - Upgrade to @react-native-community/cli@8.0.0-alpha.6 (jthysell@microsoft.com)
31
+
32
+ ## 0.69.0-preview.1
33
+
34
+ Wed, 04 May 2022 23:30:22 GMT
35
+
36
+ ### Changes
37
+
38
+ - Promote 0.69 to preview (jthysell@microsoft.com)
39
+ - Bump @react-native-windows/virtualized-list to v0.69.0-preview.1
40
+
16
41
  ## 0.0.0-canary.148
17
42
 
18
43
  Mon, 02 May 2022 21:26:42 GMT
@@ -13,5 +13,5 @@ exports.version = {
13
13
  major: 0,
14
14
  minor: 69,
15
15
  patch: 0,
16
- prerelease: 'rc.0',
16
+ prerelease: 'rc.6',
17
17
  };
@@ -34,15 +34,14 @@ function codegenNativeComponent<Props>(
34
34
  componentName: string,
35
35
  options?: Options,
36
36
  ): NativeComponentType<Props> {
37
- const errorMessage =
38
- "Native Component '" +
39
- componentName +
40
- "' that calls codegenNativeComponent was not code generated at build time. Please check its definition.";
41
37
  if (global.RN$Bridgeless === true) {
38
+ const errorMessage =
39
+ "Native Component '" +
40
+ componentName +
41
+ "' that calls codegenNativeComponent was not code generated at build time. Please check its definition.";
42
42
  console.error(errorMessage);
43
- } else {
44
- console.warn(errorMessage);
45
43
  }
44
+
46
45
  let componentNameInUse =
47
46
  options && options.paperComponentName != null
48
47
  ? options.paperComponentName
@@ -8,24 +8,18 @@
8
8
  * @flow strict-local
9
9
  */
10
10
 
11
- import {useMemo} from 'react';
12
- import {useSubscription} from 'use-subscription';
11
+ 'use strict';
12
+
13
+ import {useSyncExternalStore} from 'use-sync-external-store/shim';
13
14
  import Appearance from './Appearance';
14
15
  import type {ColorSchemeName} from './NativeAppearance';
15
16
 
16
17
  export default function useColorScheme(): ?ColorSchemeName {
17
- const subscription = useMemo(
18
- () => ({
19
- getCurrentValue: () => Appearance.getColorScheme(),
20
- subscribe: callback => {
21
- const appearanceSubscription = Appearance.addChangeListener(callback);
22
- return () => {
23
- appearanceSubscription.remove();
24
- };
25
- },
26
- }),
27
- [],
18
+ return useSyncExternalStore(
19
+ callback => {
20
+ const appearanceSubscription = Appearance.addChangeListener(callback);
21
+ return () => appearanceSubscription.remove();
22
+ },
23
+ () => Appearance.getColorScheme(),
28
24
  );
29
-
30
- return useSubscription(subscription);
31
25
  }
@@ -11,9 +11,9 @@
11
11
 
12
12
  'use strict';
13
13
 
14
- declare module 'use-subscription' {
15
- declare export function useSubscription<Value>(subscription: {|
16
- getCurrentValue: () => Value,
14
+ declare module 'use-sync-external-store/shim' {
15
+ declare export function useSyncExternalStore<Value>(
17
16
  subscribe: (callback: Function) => () => void,
18
- |}): Value;
17
+ getCurrentValue: () => Value,
18
+ ): Value;
19
19
  }
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.69.0-rc.0",
10
+ "baseVersion": "0.69.0-rc.6",
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.69.0-preview.1",
3
+ "version": "0.69.0-preview.4",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "license": "MIT",
6
6
  "main": "./index.win32.js",
@@ -22,10 +22,10 @@
22
22
  "dependencies": {
23
23
  "@babel/runtime": "^7.0.0",
24
24
  "@jest/create-cache-key-function": "^27.0.1",
25
- "@react-native-community/cli": "^8.0.0-alpha.4",
26
- "@react-native-community/cli-platform-android": "^8.0.0-alpha.3",
27
- "@react-native-community/cli-platform-ios": "^8.0.0-alpha.3",
28
- "@react-native-windows/virtualized-list": "0.69.0-preview.1",
25
+ "@react-native-community/cli": "^8.0.0",
26
+ "@react-native-community/cli-platform-android": "^8.0.0",
27
+ "@react-native-community/cli-platform-ios": "^8.0.0",
28
+ "@react-native-windows/virtualized-list": "0.69.0-preview.3",
29
29
  "@react-native/assets": "1.0.0",
30
30
  "@react-native/normalize-color": "2.0.0",
31
31
  "@react-native/polyfills": "2.0.0",
@@ -38,22 +38,24 @@
38
38
  "invariant": "^2.2.4",
39
39
  "jsc-android": "^250230.2.1",
40
40
  "memoize-one": "^5.0.0",
41
- "metro-react-native-babel-transformer": "0.70.1",
42
- "metro-runtime": "0.70.1",
43
- "metro-source-map": "0.70.1",
41
+ "metro-react-native-babel-transformer": "0.70.3",
42
+ "metro-runtime": "0.70.3",
43
+ "metro-source-map": "0.70.3",
44
+ "mkdirp": "^0.5.1",
44
45
  "nullthrows": "^1.1.1",
45
46
  "pretty-format": "^26.5.2",
46
47
  "promise": "^8.0.3",
47
48
  "react-clone-referenced-element": "^1.0.1",
48
49
  "react-devtools-core": "4.24.0",
49
- "react-native-codegen": "^0.0.15",
50
+ "react-native-codegen": "^0.69.1",
50
51
  "react-native-gradle-plugin": "^0.0.7",
51
52
  "react-refresh": "^0.4.0",
52
53
  "react-shallow-renderer": "16.14.1",
53
54
  "regenerator-runtime": "^0.13.2",
54
55
  "scheduler": "^0.21.0",
56
+ "shelljs": "^0.8.5",
55
57
  "stacktrace-parser": "^0.1.3",
56
- "use-subscription": ">=1.0.0 <1.6.0",
58
+ "use-sync-external-store": "^1.0.0",
57
59
  "whatwg-fetch": "^3.0.0",
58
60
  "ws": "^6.1.4"
59
61
  },
@@ -73,14 +75,14 @@
73
75
  "just-scripts": "^1.3.3",
74
76
  "prettier": "^2.4.1",
75
77
  "react": "18.0.0",
76
- "react-native": "0.69.0-rc.0",
78
+ "react-native": "0.69.0-rc.6",
77
79
  "react-native-platform-override": "^1.6.11",
78
80
  "react-shallow-renderer": "16.14.1",
79
81
  "typescript": "^4.4.4"
80
82
  },
81
83
  "peerDependencies": {
82
84
  "react": "18.0.0",
83
- "react-native": "0.69.0-rc.0"
85
+ "react-native": "0.69.0-rc.6"
84
86
  },
85
87
  "beachball": {
86
88
  "defaultNpmTag": "preview",