@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 +1 -0
- package/CHANGELOG.json +52 -1
- package/CHANGELOG.md +30 -5
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Utilities/codegenNativeComponent.js +5 -6
- package/Libraries/Utilities/useColorScheme.js +9 -15
- package/flow/{use-subscription.js → use-sync-external-store.js} +4 -4
- package/overrides.json +1 -1
- package/package.json +14 -12
package/.eslintrc.js
CHANGED
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,58 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
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
|
|
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.
|
|
7
|
+
## 0.69.0-preview.4
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Mon, 13 Jun 2022 15:10:29 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
- Bump @react-native-windows/virtualized-list to v0.69.0-preview.
|
|
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
|
|
@@ -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
|
-
|
|
12
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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-
|
|
15
|
-
declare export function
|
|
16
|
-
getCurrentValue: () => Value,
|
|
14
|
+
declare module 'use-sync-external-store/shim' {
|
|
15
|
+
declare export function useSyncExternalStore<Value>(
|
|
17
16
|
subscribe: (callback: Function) => () => void,
|
|
18
|
-
|
|
17
|
+
getCurrentValue: () => Value,
|
|
18
|
+
): Value;
|
|
19
19
|
}
|
package/overrides.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.69.0-preview.
|
|
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
|
|
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.
|
|
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.
|
|
42
|
-
"metro-runtime": "0.70.
|
|
43
|
-
"metro-source-map": "0.70.
|
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
85
|
+
"react-native": "0.69.0-rc.6"
|
|
84
86
|
},
|
|
85
87
|
"beachball": {
|
|
86
88
|
"defaultNpmTag": "preview",
|