@office-iss/react-native-win32 0.75.1 → 0.76.0-preview.1
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 +11 -0
- package/.flowconfig +5 -4
- package/CHANGELOG.json +172 -40
- package/CHANGELOG.md +57 -24
- package/Libraries/Alert/Alert.js +3 -0
- package/Libraries/Animated/AnimatedEvent.js +1 -1
- package/Libraries/Animated/AnimatedImplementation.js +7 -7
- package/Libraries/Animated/NativeAnimatedAllowlist.js +111 -0
- package/Libraries/Animated/animations/Animation.js +11 -1
- package/Libraries/Animated/animations/DecayAnimation.js +1 -1
- package/Libraries/Animated/animations/SpringAnimation.js +1 -1
- package/Libraries/Animated/animations/TimingAnimation.js +2 -1
- package/Libraries/Animated/components/AnimatedScrollView.js +3 -2
- package/Libraries/Animated/createAnimatedComponent.js +10 -9
- package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +3 -2
- package/Libraries/Animated/nodes/AnimatedNode.js +42 -33
- package/Libraries/Animated/nodes/AnimatedObject.js +56 -50
- package/Libraries/Animated/nodes/AnimatedProps.js +77 -40
- package/Libraries/Animated/nodes/AnimatedStyle.js +103 -59
- package/Libraries/Animated/nodes/AnimatedTracking.js +1 -1
- package/Libraries/Animated/nodes/AnimatedTransform.js +102 -67
- package/Libraries/Animated/nodes/AnimatedValue.js +2 -1
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +21 -22
- package/Libraries/Animated/useAnimatedProps.js +142 -7
- package/Libraries/BatchedBridge/NativeModules.js +2 -0
- package/Libraries/Blob/FileReader.js +1 -1
- package/Libraries/Blob/URL.js +2 -62
- package/Libraries/Blob/URLSearchParams.js +71 -0
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -1
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +1 -1
- package/Libraries/Components/ScrollView/ScrollView.js +131 -169
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +3 -1
- package/Libraries/Components/TextInput/TextInput.d.ts +32 -2
- package/Libraries/Components/TextInput/TextInput.js +230 -94
- package/Libraries/Components/TextInput/TextInput.win32.js +230 -100
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +22 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +2 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +2 -0
- package/Libraries/Components/View/ViewAccessibility.d.ts +15 -0
- package/Libraries/Components/View/ViewNativeComponent.js +0 -1
- package/Libraries/Components/View/ViewPropTypes.js +14 -0
- package/Libraries/Components/View/ViewPropTypes.win32.js +14 -0
- package/Libraries/Core/ExceptionsManager.js +2 -0
- package/Libraries/Core/InitializeCore.js +3 -1
- package/Libraries/Core/ReactFiberErrorDialog.js +3 -0
- package/Libraries/Core/ReactNativeVersion.js +4 -4
- package/Libraries/Core/ReactNativeVersionCheck.win32.js +1 -1
- package/Libraries/Core/setUpErrorHandling.js +7 -1
- package/Libraries/Core/setUpGlobals.js +1 -0
- package/Libraries/Core/setUpReactRefresh.js +0 -4
- package/Libraries/Image/AssetSourceResolver.js +28 -1
- package/Libraries/Image/Image.android.js +9 -14
- package/Libraries/Image/Image.ios.js +11 -22
- package/Libraries/Image/Image.win32.js +11 -24
- package/Libraries/Image/ImageBackground.js +1 -8
- package/Libraries/Image/ImageUtils.js +9 -9
- package/Libraries/Image/ImageViewNativeComponent.js +1 -0
- package/Libraries/Inspector/Inspector.js +3 -2
- package/Libraries/Inspector/Inspector.win32.js +3 -2
- package/Libraries/Inspector/InspectorPanel.js +16 -10
- package/Libraries/Inspector/NetworkOverlay.js +1 -1
- package/Libraries/Interaction/TaskQueue.js +1 -0
- package/Libraries/Lists/FlatList.js +1 -1
- package/Libraries/Lists/SectionList.js +2 -2
- package/Libraries/Lists/SectionListModern.js +3 -3
- package/Libraries/LogBox/Data/LogBoxData.js +24 -3
- package/Libraries/LogBox/LogBoxNotificationContainer.js +3 -2
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +9 -8
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +9 -29
- package/Libraries/Modal/Modal.js +0 -1
- package/Libraries/NativeComponent/BaseViewConfig.android.js +8 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +7 -0
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +7 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +22 -22
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +0 -21
- package/Libraries/Network/XMLHttpRequest.js +4 -2
- package/Libraries/ReactNative/AppContainer-dev.js +1 -5
- package/Libraries/ReactNative/AppContainer-prod.js +1 -5
- package/Libraries/ReactNative/AppContainer.js +0 -1
- package/Libraries/ReactNative/AppRegistry.js +0 -6
- package/Libraries/ReactNative/BridgelessUIManager.js +1 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +1 -1
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +5 -5
- package/Libraries/ReactNative/RendererImplementation.js +26 -4
- package/Libraries/ReactNative/getNativeComponentAttributes.js +8 -0
- package/Libraries/ReactNative/renderApplication.js +0 -2
- package/Libraries/Renderer/shims/ReactNativeTypes.js +11 -4
- package/Libraries/StyleSheet/StyleSheet.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.win32.js +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +74 -15
- package/Libraries/StyleSheet/StyleSheetTypes.js +60 -5
- package/Libraries/StyleSheet/processBackgroundImage.js +384 -0
- package/Libraries/StyleSheet/processBoxShadow.js +211 -0
- package/Libraries/StyleSheet/processFilter.js +231 -42
- package/Libraries/Text/Text.js +394 -196
- package/Libraries/Text/Text.win32.js +442 -229
- package/Libraries/Text/TextNativeComponent.js +2 -1
- package/Libraries/Text/TextNativeComponent.win32.js +1 -1
- package/Libraries/TurboModule/TurboModuleRegistry.js +13 -50
- package/Libraries/Types/CodegenTypes.js +3 -1
- package/Libraries/Utilities/Appearance.js +108 -84
- package/Libraries/Utilities/DevLoadingView.js +2 -4
- package/Libraries/Utilities/HMRClient.js +2 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
- package/Libraries/Utilities/createPerformanceLogger.js +0 -9
- package/Libraries/Utilities/stringifyViewConfig.js +22 -0
- package/Libraries/Utilities/useColorScheme.js +3 -3
- package/Libraries/WebSocket/WebSocket.js +1 -1
- package/Libraries/promiseRejectionTrackingOptions.js +1 -1
- package/Libraries/vendor/emitter/EventEmitter.js +6 -5
- package/flow/jest.js +2 -2
- package/index.js +3 -1
- package/index.win32.js +3 -1
- package/jest/mockComponent.js +4 -1
- package/jest/mockModal.js +1 -3
- package/jest/mockScrollView.js +1 -1
- package/jest/renderer.js +2 -2
- package/jest/setup.js +16 -13
- package/jest.config.js +1 -2
- package/overrides.json +22 -22
- package/package.json +27 -26
- package/src/private/animated/NativeAnimatedHelper.js +438 -0
- package/src/private/animated/NativeAnimatedHelper.win32.js +440 -0
- package/src/private/animated/NativeAnimatedValidation.js +64 -0
- package/src/private/components/HScrollViewNativeComponents.js +56 -0
- package/src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE.js +27 -0
- package/src/private/components/VScrollViewNativeComponents.js +48 -0
- package/src/private/components/useSyncOnScroll.js +48 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +166 -16
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +29 -5
- package/src/private/fusebox/FuseboxSessionObserver.js +42 -0
- package/{Libraries/Core → src/private/renderer/errorhandling}/ErrorHandlers.js +14 -4
- package/src/private/setup/setUpDOM.js +28 -0
- package/src/private/setup/setUpIntersectionObserver.js +27 -0
- package/src/private/setup/setUpMutationObserver.js +26 -0
- package/src/private/setup/setUpPerformanceObserver.js +64 -0
- package/src/private/specs/modules/NativeAppearance.js +3 -3
- package/src/private/specs/modules/NativeLinkingManager.js +1 -1
- package/src/private/specs/modules/NativePlatformConstantsWin.js +7 -0
- package/src/private/specs/modules/NativeSampleTurboModule.js +14 -1
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +6 -4
- package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver}/IntersectionObserver.js +5 -3
- package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver}/IntersectionObserverEntry.js +3 -3
- package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver}/IntersectionObserverManager.js +14 -17
- package/src/private/{specs/modules → webapis/intersectionobserver/specs}/NativeIntersectionObserver.js +2 -2
- package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver/specs}/__mocks__/NativeIntersectionObserver.js +4 -4
- package/{Libraries/MutationObserver → src/private/webapis/mutationobserver}/MutationObserver.js +5 -3
- package/{Libraries/MutationObserver → src/private/webapis/mutationobserver}/MutationObserverManager.js +24 -15
- package/{Libraries/MutationObserver → src/private/webapis/mutationobserver}/MutationRecord.js +4 -6
- package/src/private/{specs/modules → webapis/mutationobserver/specs}/NativeMutationObserver.js +2 -2
- package/{Libraries/MutationObserver → src/private/webapis/mutationobserver/specs}/__mocks__/NativeMutationObserver.js +5 -5
- package/src/private/webapis/performance/{EventCounts.js → EventTiming.js} +65 -3
- package/src/private/webapis/performance/LongTasks.js +39 -0
- package/src/private/webapis/performance/Performance.js +22 -9
- package/src/private/webapis/performance/PerformanceEntry.js +36 -18
- package/src/private/webapis/performance/PerformanceObserver.js +29 -43
- package/src/private/webapis/performance/RawPerformanceEntry.js +24 -1
- package/src/private/webapis/performance/UserTiming.js +17 -12
- package/src/private/webapis/performance/specs/NativePerformanceObserver.js +1 -1
- package/src-win/Libraries/Components/View/ViewAccessibility.d.ts +15 -0
- package/types/experimental.d.ts +20 -1
- package/Libraries/Animated/NativeAnimatedHelper.js +0 -615
- package/Libraries/Animated/NativeAnimatedHelper.win32.js +0 -617
- package/Libraries/Core/setUpIntersectionObserver.js +0 -16
- package/Libraries/Core/setUpMutationObserver.js +0 -16
- package/Libraries/Core/setUpPerformanceObserver.js +0 -18
- package/Libraries/IntersectionObserver/NativeIntersectionObserver.js +0 -13
- package/Libraries/MutationObserver/NativeMutationObserver.js +0 -13
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +0 -135
- package/src/private/core/setUpDOM.js +0 -18
- package/src/private/webapis/performance/PerformanceEventTiming.js +0 -55
- /package/src/private/{core → styles}/composeStyles.js +0 -0
package/.eslintrc.js
CHANGED
|
@@ -6,6 +6,17 @@ module.exports = {
|
|
|
6
6
|
"react-hooks/rules-of-hooks": "warn",
|
|
7
7
|
},
|
|
8
8
|
overrides: [
|
|
9
|
+
{
|
|
10
|
+
files: ['*.js', '*.js.flow', '*.jsx'],
|
|
11
|
+
parser: 'hermes-eslint',
|
|
12
|
+
rules: {
|
|
13
|
+
// These rules are not required with hermes-eslint
|
|
14
|
+
'ft-flow/define-flow-type': 0,
|
|
15
|
+
'ft-flow/use-flow-type': 0,
|
|
16
|
+
// flow handles this check for us, so it's not required
|
|
17
|
+
'no-undef': 0,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
9
20
|
{
|
|
10
21
|
files: ['*.ts', '*.tsx'],
|
|
11
22
|
excludedFiles: ['*.d.ts'],
|
package/.flowconfig
CHANGED
|
@@ -54,8 +54,6 @@
|
|
|
54
54
|
.*/node_modules/sample-apps/.*
|
|
55
55
|
.*/node_modules/playground/.*
|
|
56
56
|
|
|
57
|
-
; Ignore templates for 'react-native init'
|
|
58
|
-
<PROJECT_ROOT>/packages/react-native/template/.*
|
|
59
57
|
<PROJECT_ROOT>/packages/react-native/sdks/.*
|
|
60
58
|
|
|
61
59
|
; Ignore the codegen e2e tests
|
|
@@ -67,6 +65,9 @@
|
|
|
67
65
|
; Ignore "BUCK" generated dirs
|
|
68
66
|
<PROJECT_ROOT>/\.buckd/
|
|
69
67
|
|
|
68
|
+
; Ignore cache files
|
|
69
|
+
.*/node_modules/.cache*
|
|
70
|
+
|
|
70
71
|
; Ignore the src-win folder - flow files are combined with ones from react-native into the root Libraries folder
|
|
71
72
|
.*/react-native-win32/src-win/.*
|
|
72
73
|
|
|
@@ -127,7 +128,7 @@ module.name_mapper='^@office-iss/react-native-win32$' -> '<PROJECT_ROOT>/index.w
|
|
|
127
128
|
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1'
|
|
128
129
|
module.name_mapper='^@office-iss/react-native-win32/\(.*\)$' -> '<PROJECT_ROOT>\/1'
|
|
129
130
|
module.name_mapper='^@react-native/dev-middleware$' -> '<PROJECT_ROOT>/\1'
|
|
130
|
-
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/Libraries/Image/RelativeImageStub'
|
|
131
|
+
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\|xml\)$' -> '<PROJECT_ROOT>/Libraries/Image/RelativeImageStub'
|
|
131
132
|
|
|
132
133
|
suppress_type=$FlowIssue
|
|
133
134
|
suppress_type=$FlowFixMe
|
|
@@ -159,4 +160,4 @@ untyped-import
|
|
|
159
160
|
untyped-type-import
|
|
160
161
|
|
|
161
162
|
[version]
|
|
162
|
-
^0.
|
|
163
|
+
^0.245.2
|
package/CHANGELOG.json
CHANGED
|
@@ -2,106 +2,238 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
6
|
-
"version": "0.
|
|
7
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
5
|
+
"date": "Mon, 30 Sep 2024 21:36:50 GMT",
|
|
6
|
+
"version": "0.76.0-preview.1",
|
|
7
|
+
"tag": "@office-iss/react-native-win32_v0.76.0-preview.1",
|
|
8
8
|
"comments": {
|
|
9
|
-
"
|
|
9
|
+
"prerelease": [
|
|
10
10
|
{
|
|
11
11
|
"author": "tatianakapos@microsoft.com",
|
|
12
12
|
"package": "@office-iss/react-native-win32",
|
|
13
|
-
"commit": "
|
|
14
|
-
"comment": "
|
|
13
|
+
"commit": "739dfc5f58c5921fcab5eacb1aa0009396252995",
|
|
14
|
+
"comment": "Promote 0.76 to preview"
|
|
15
15
|
}
|
|
16
16
|
]
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"date": "
|
|
21
|
-
"version": "0.
|
|
22
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
20
|
+
"date": "Thu, 26 Sep 2024 17:38:26 GMT",
|
|
21
|
+
"version": "0.0.0-canary.263",
|
|
22
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.263",
|
|
23
23
|
"comments": {
|
|
24
|
-
"
|
|
24
|
+
"prerelease": [
|
|
25
|
+
{
|
|
26
|
+
"author": "1422161+marlenecota@users.noreply.github.com",
|
|
27
|
+
"package": "@office-iss/react-native-win32",
|
|
28
|
+
"commit": "ca03cc6d24f6863ef5f94aab8755e8fb61e34c8f",
|
|
29
|
+
"comment": "RN Integration 9/9"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@office-iss/react-native-win32",
|
|
34
|
+
"comment": "Bump @rnw-scripts/eslint-config to v1.2.27",
|
|
35
|
+
"commit": "not available"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@office-iss/react-native-win32",
|
|
40
|
+
"comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.31",
|
|
41
|
+
"commit": "not available"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@office-iss/react-native-win32",
|
|
46
|
+
"comment": "Bump @rnw-scripts/just-task to v2.3.44",
|
|
47
|
+
"commit": "not available"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@office-iss/react-native-win32",
|
|
52
|
+
"comment": "Bump react-native-platform-override to v1.9.46",
|
|
53
|
+
"commit": "not available"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"date": "Sat, 07 Sep 2024 05:14:10 GMT",
|
|
60
|
+
"version": "0.0.0-canary.262",
|
|
61
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.262",
|
|
62
|
+
"comments": {
|
|
63
|
+
"prerelease": [
|
|
25
64
|
{
|
|
26
65
|
"author": "tatianakapos@microsoft.com",
|
|
27
66
|
"package": "@office-iss/react-native-win32",
|
|
28
|
-
"commit": "
|
|
29
|
-
"comment": "
|
|
67
|
+
"commit": "55e32071ac30a673c7830f717fcbd1a3a228dcff",
|
|
68
|
+
"comment": "switch to optimized text"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "34109996+chiaramooney@users.noreply.github.com",
|
|
72
|
+
"package": "@office-iss/react-native-win32",
|
|
73
|
+
"commit": "409bf6e085cc1aa6421cff078037f7b3774bd8ec",
|
|
74
|
+
"comment": "Integrate 8/31"
|
|
30
75
|
}
|
|
31
76
|
]
|
|
32
77
|
}
|
|
33
78
|
},
|
|
34
79
|
{
|
|
35
|
-
"date": "
|
|
36
|
-
"version": "0.
|
|
37
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
80
|
+
"date": "Thu, 05 Sep 2024 05:13:45 GMT",
|
|
81
|
+
"version": "0.0.0-canary.261",
|
|
82
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.261",
|
|
38
83
|
"comments": {
|
|
39
84
|
"prerelease": [
|
|
40
85
|
{
|
|
41
|
-
"author": "
|
|
86
|
+
"author": "34109996+chiaramooney@users.noreply.github.com",
|
|
42
87
|
"package": "@office-iss/react-native-win32",
|
|
43
|
-
"commit": "
|
|
44
|
-
"comment": "
|
|
88
|
+
"commit": "277d6f06a3e1bf1650cd9d1e7b4f22e0619968e9",
|
|
89
|
+
"comment": "Integrate 8/20"
|
|
45
90
|
}
|
|
46
91
|
]
|
|
47
92
|
}
|
|
48
93
|
},
|
|
49
94
|
{
|
|
50
|
-
"date": "
|
|
51
|
-
"version": "0.
|
|
52
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
95
|
+
"date": "Wed, 28 Aug 2024 05:14:44 GMT",
|
|
96
|
+
"version": "0.0.0-canary.260",
|
|
97
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.260",
|
|
53
98
|
"comments": {
|
|
54
99
|
"prerelease": [
|
|
55
100
|
{
|
|
56
101
|
"author": "tatianakapos@microsoft.com",
|
|
57
102
|
"package": "@office-iss/react-native-win32",
|
|
58
|
-
"commit": "
|
|
59
|
-
"comment": "
|
|
103
|
+
"commit": "98197a259f5e7c97c877e361dd70b048343e65a8",
|
|
104
|
+
"comment": "integrate 0.76.0-nightly-20240816-17017d2b8"
|
|
60
105
|
}
|
|
61
106
|
]
|
|
62
107
|
}
|
|
63
108
|
},
|
|
64
109
|
{
|
|
65
|
-
"date": "
|
|
66
|
-
"version": "0.
|
|
67
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
110
|
+
"date": "Thu, 22 Aug 2024 05:24:27 GMT",
|
|
111
|
+
"version": "0.0.0-canary.259",
|
|
112
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.259",
|
|
68
113
|
"comments": {
|
|
69
114
|
"prerelease": [
|
|
70
115
|
{
|
|
71
116
|
"author": "tatianakapos@microsoft.com",
|
|
72
117
|
"package": "@office-iss/react-native-win32",
|
|
73
|
-
"commit": "
|
|
74
|
-
"comment": "integrate
|
|
118
|
+
"commit": "bccbec07eeeda80b870765f2b207a6616b69732b",
|
|
119
|
+
"comment": "integrate react native nightly 7-19"
|
|
75
120
|
}
|
|
76
121
|
]
|
|
77
122
|
}
|
|
78
123
|
},
|
|
79
124
|
{
|
|
80
|
-
"date": "
|
|
81
|
-
"version": "0.
|
|
82
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
125
|
+
"date": "Thu, 08 Aug 2024 05:16:47 GMT",
|
|
126
|
+
"version": "0.0.0-canary.258",
|
|
127
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.258",
|
|
83
128
|
"comments": {
|
|
84
129
|
"prerelease": [
|
|
85
130
|
{
|
|
86
|
-
"author": "
|
|
131
|
+
"author": "jthysell@microsoft.com",
|
|
132
|
+
"package": "@office-iss/react-native-win32",
|
|
133
|
+
"commit": "c5dff02edd12aa4a9529b325c7630eb558d375f7",
|
|
134
|
+
"comment": "Integrate 7/1"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"author": "beachball",
|
|
138
|
+
"package": "@office-iss/react-native-win32",
|
|
139
|
+
"comment": "Bump @rnw-scripts/eslint-config to v1.2.26",
|
|
140
|
+
"commit": "not available"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"author": "beachball",
|
|
144
|
+
"package": "@office-iss/react-native-win32",
|
|
145
|
+
"comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.30",
|
|
146
|
+
"commit": "not available"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"author": "beachball",
|
|
150
|
+
"package": "@office-iss/react-native-win32",
|
|
151
|
+
"comment": "Bump @rnw-scripts/just-task to v2.3.43",
|
|
152
|
+
"commit": "not available"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"author": "beachball",
|
|
87
156
|
"package": "@office-iss/react-native-win32",
|
|
88
|
-
"
|
|
89
|
-
"
|
|
157
|
+
"comment": "Bump react-native-platform-override to v1.9.45",
|
|
158
|
+
"commit": "not available"
|
|
90
159
|
}
|
|
91
160
|
]
|
|
92
161
|
}
|
|
93
162
|
},
|
|
94
163
|
{
|
|
95
|
-
"date": "
|
|
96
|
-
"version": "0.
|
|
97
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
164
|
+
"date": "Wed, 24 Jul 2024 05:24:34 GMT",
|
|
165
|
+
"version": "0.0.0-canary.257",
|
|
166
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.257",
|
|
98
167
|
"comments": {
|
|
99
168
|
"prerelease": [
|
|
100
169
|
{
|
|
101
|
-
"author": "
|
|
170
|
+
"author": "yajurgrover24@gmail.com",
|
|
102
171
|
"package": "@office-iss/react-native-win32",
|
|
103
|
-
"commit": "
|
|
104
|
-
"comment": "
|
|
172
|
+
"commit": "7b187af8b17b433ac02a8aff0051684924da4217",
|
|
173
|
+
"comment": "integrate 6/14"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"author": "beachball",
|
|
177
|
+
"package": "@office-iss/react-native-win32",
|
|
178
|
+
"comment": "Bump @rnw-scripts/eslint-config to v1.2.25",
|
|
179
|
+
"commit": "not available"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"author": "beachball",
|
|
183
|
+
"package": "@office-iss/react-native-win32",
|
|
184
|
+
"comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.29",
|
|
185
|
+
"commit": "not available"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"author": "beachball",
|
|
189
|
+
"package": "@office-iss/react-native-win32",
|
|
190
|
+
"comment": "Bump @rnw-scripts/just-task to v2.3.42",
|
|
191
|
+
"commit": "not available"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"author": "beachball",
|
|
195
|
+
"package": "@office-iss/react-native-win32",
|
|
196
|
+
"comment": "Bump react-native-platform-override to v1.9.44",
|
|
197
|
+
"commit": "not available"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"date": "Wed, 10 Jul 2024 05:15:28 GMT",
|
|
204
|
+
"version": "0.0.0-canary.256",
|
|
205
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.256",
|
|
206
|
+
"comments": {
|
|
207
|
+
"prerelease": [
|
|
208
|
+
{
|
|
209
|
+
"author": "yajurgrover24@gmail.com",
|
|
210
|
+
"package": "@office-iss/react-native-win32",
|
|
211
|
+
"commit": "8a91af57691e38ed9ee537ec5a7aaa74f8bae1eb",
|
|
212
|
+
"comment": "Integrate 6/13"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"author": "beachball",
|
|
216
|
+
"package": "@office-iss/react-native-win32",
|
|
217
|
+
"comment": "Bump @rnw-scripts/eslint-config to v1.2.24",
|
|
218
|
+
"commit": "not available"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"author": "beachball",
|
|
222
|
+
"package": "@office-iss/react-native-win32",
|
|
223
|
+
"comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.28",
|
|
224
|
+
"commit": "not available"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"author": "beachball",
|
|
228
|
+
"package": "@office-iss/react-native-win32",
|
|
229
|
+
"comment": "Bump @rnw-scripts/just-task to v2.3.41",
|
|
230
|
+
"commit": "not available"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"author": "beachball",
|
|
234
|
+
"package": "@office-iss/react-native-win32",
|
|
235
|
+
"comment": "Bump react-native-platform-override to v1.9.43",
|
|
236
|
+
"commit": "not available"
|
|
105
237
|
}
|
|
106
238
|
]
|
|
107
239
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,64 +1,97 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on Mon,
|
|
3
|
+
<!-- This log was last generated on Mon, 30 Sep 2024 21:36:50 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.
|
|
7
|
+
## 0.76.0-preview.1
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 30 Sep 2024 21:36:50 GMT
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Changes
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Promote 0.76 to preview (tatianakapos@microsoft.com)
|
|
14
14
|
|
|
15
|
-
## 0.
|
|
15
|
+
## 0.0.0-canary.263
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Thu, 26 Sep 2024 17:38:26 GMT
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### Changes
|
|
20
|
+
|
|
21
|
+
- RN Integration 9/9 (1422161+marlenecota@users.noreply.github.com)
|
|
22
|
+
- Bump @rnw-scripts/eslint-config to v1.2.27
|
|
23
|
+
- Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.31
|
|
24
|
+
- Bump @rnw-scripts/just-task to v2.3.44
|
|
25
|
+
- Bump react-native-platform-override to v1.9.46
|
|
26
|
+
|
|
27
|
+
## 0.0.0-canary.262
|
|
28
|
+
|
|
29
|
+
Sat, 07 Sep 2024 05:14:10 GMT
|
|
30
|
+
|
|
31
|
+
### Changes
|
|
32
|
+
|
|
33
|
+
- switch to optimized text (tatianakapos@microsoft.com)
|
|
34
|
+
- Integrate 8/31 (34109996+chiaramooney@users.noreply.github.com)
|
|
35
|
+
|
|
36
|
+
## 0.0.0-canary.261
|
|
37
|
+
|
|
38
|
+
Thu, 05 Sep 2024 05:13:45 GMT
|
|
39
|
+
|
|
40
|
+
### Changes
|
|
20
41
|
|
|
21
|
-
-
|
|
42
|
+
- Integrate 8/20 (34109996+chiaramooney@users.noreply.github.com)
|
|
22
43
|
|
|
23
|
-
## 0.
|
|
44
|
+
## 0.0.0-canary.260
|
|
24
45
|
|
|
25
|
-
|
|
46
|
+
Wed, 28 Aug 2024 05:14:44 GMT
|
|
26
47
|
|
|
27
48
|
### Changes
|
|
28
49
|
|
|
29
|
-
- integrate 0.
|
|
50
|
+
- integrate 0.76.0-nightly-20240816-17017d2b8 (tatianakapos@microsoft.com)
|
|
30
51
|
|
|
31
|
-
## 0.
|
|
52
|
+
## 0.0.0-canary.259
|
|
32
53
|
|
|
33
|
-
|
|
54
|
+
Thu, 22 Aug 2024 05:24:27 GMT
|
|
34
55
|
|
|
35
56
|
### Changes
|
|
36
57
|
|
|
37
|
-
-
|
|
58
|
+
- integrate react native nightly 7-19 (tatianakapos@microsoft.com)
|
|
38
59
|
|
|
39
|
-
## 0.
|
|
60
|
+
## 0.0.0-canary.258
|
|
40
61
|
|
|
41
|
-
|
|
62
|
+
Thu, 08 Aug 2024 05:16:47 GMT
|
|
42
63
|
|
|
43
64
|
### Changes
|
|
44
65
|
|
|
45
|
-
-
|
|
66
|
+
- Integrate 7/1 (jthysell@microsoft.com)
|
|
67
|
+
- Bump @rnw-scripts/eslint-config to v1.2.26
|
|
68
|
+
- Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.30
|
|
69
|
+
- Bump @rnw-scripts/just-task to v2.3.43
|
|
70
|
+
- Bump react-native-platform-override to v1.9.45
|
|
46
71
|
|
|
47
|
-
## 0.
|
|
72
|
+
## 0.0.0-canary.257
|
|
48
73
|
|
|
49
|
-
|
|
74
|
+
Wed, 24 Jul 2024 05:24:34 GMT
|
|
50
75
|
|
|
51
76
|
### Changes
|
|
52
77
|
|
|
53
|
-
- integrate
|
|
78
|
+
- integrate 6/14 (yajurgrover24@gmail.com)
|
|
79
|
+
- Bump @rnw-scripts/eslint-config to v1.2.25
|
|
80
|
+
- Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.29
|
|
81
|
+
- Bump @rnw-scripts/just-task to v2.3.42
|
|
82
|
+
- Bump react-native-platform-override to v1.9.44
|
|
54
83
|
|
|
55
|
-
## 0.
|
|
84
|
+
## 0.0.0-canary.256
|
|
56
85
|
|
|
57
|
-
|
|
86
|
+
Wed, 10 Jul 2024 05:15:28 GMT
|
|
58
87
|
|
|
59
88
|
### Changes
|
|
60
89
|
|
|
61
|
-
-
|
|
90
|
+
- Integrate 6/13 (yajurgrover24@gmail.com)
|
|
91
|
+
- Bump @rnw-scripts/eslint-config to v1.2.24
|
|
92
|
+
- Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.28
|
|
93
|
+
- Bump @rnw-scripts/just-task to v2.3.41
|
|
94
|
+
- Bump react-native-platform-override to v1.9.43
|
|
62
95
|
|
|
63
96
|
## 0.0.0-canary.255
|
|
64
97
|
|
package/Libraries/Alert/Alert.js
CHANGED
|
@@ -98,10 +98,13 @@ class Alert {
|
|
|
98
98
|
const onAction = (action, buttonKey) => {
|
|
99
99
|
if (action === constants.buttonClicked) {
|
|
100
100
|
if (buttonKey === constants.buttonNeutral) {
|
|
101
|
+
// $FlowFixMe[incompatible-type]
|
|
101
102
|
buttonNeutral.onPress && buttonNeutral.onPress();
|
|
102
103
|
} else if (buttonKey === constants.buttonNegative) {
|
|
104
|
+
// $FlowFixMe[incompatible-type]
|
|
103
105
|
buttonNegative.onPress && buttonNegative.onPress();
|
|
104
106
|
} else if (buttonKey === constants.buttonPositive) {
|
|
107
|
+
// $FlowFixMe[incompatible-type]
|
|
105
108
|
buttonPositive.onPress && buttonPositive.onPress();
|
|
106
109
|
}
|
|
107
110
|
} else if (action === constants.dismissed) {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import type {PlatformConfig} from './AnimatedPlatformConfig';
|
|
14
14
|
|
|
15
15
|
import {findNodeHandle} from '../ReactNative/RendererProxy';
|
|
16
|
-
import NativeAnimatedHelper from '
|
|
16
|
+
import NativeAnimatedHelper from '../../src/private/animated/NativeAnimatedHelper';
|
|
17
17
|
import AnimatedValue from './nodes/AnimatedValue';
|
|
18
18
|
import AnimatedValueXY from './nodes/AnimatedValueXY';
|
|
19
19
|
import invariant from 'invariant';
|
|
@@ -39,7 +39,7 @@ import AnimatedValue from './nodes/AnimatedValue';
|
|
|
39
39
|
import AnimatedValueXY from './nodes/AnimatedValueXY';
|
|
40
40
|
|
|
41
41
|
export type CompositeAnimation = {
|
|
42
|
-
start: (callback?: ?EndCallback) => void,
|
|
42
|
+
start: (callback?: ?EndCallback, isLooping?: boolean) => void,
|
|
43
43
|
stop: () => void,
|
|
44
44
|
reset: () => void,
|
|
45
45
|
_startNativeLoop: (iterations?: number) => void,
|
|
@@ -234,8 +234,8 @@ const timing = function (
|
|
|
234
234
|
|
|
235
235
|
return (
|
|
236
236
|
maybeVectorAnim(value, config, timing) || {
|
|
237
|
-
start: function (callback?: ?EndCallback): void {
|
|
238
|
-
start(value, config, callback);
|
|
237
|
+
start: function (callback?: ?EndCallback, isLooping?: boolean): void {
|
|
238
|
+
start(value, {...config, isLooping}, callback);
|
|
239
239
|
},
|
|
240
240
|
|
|
241
241
|
stop: function (): void {
|
|
@@ -305,7 +305,7 @@ const sequence = function (
|
|
|
305
305
|
): CompositeAnimation {
|
|
306
306
|
let current = 0;
|
|
307
307
|
return {
|
|
308
|
-
start: function (callback?: ?EndCallback) {
|
|
308
|
+
start: function (callback?: ?EndCallback, isLooping?: boolean) {
|
|
309
309
|
const onComplete = function (result: EndResult) {
|
|
310
310
|
if (!result.finished) {
|
|
311
311
|
callback && callback(result);
|
|
@@ -321,13 +321,13 @@ const sequence = function (
|
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
animations[current].start(onComplete);
|
|
324
|
+
animations[current].start(onComplete, isLooping);
|
|
325
325
|
};
|
|
326
326
|
|
|
327
327
|
if (animations.length === 0) {
|
|
328
328
|
callback && callback({finished: true});
|
|
329
329
|
} else {
|
|
330
|
-
animations[current].start(onComplete);
|
|
330
|
+
animations[current].start(onComplete, isLooping);
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
|
|
@@ -477,7 +477,7 @@ const loop = function (
|
|
|
477
477
|
} else {
|
|
478
478
|
iterationsSoFar++;
|
|
479
479
|
resetBeforeIteration && animation.reset();
|
|
480
|
-
animation.start(restart);
|
|
480
|
+
animation.start(restart, iterations === -1);
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
if (!animation || iterations === 0) {
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNativeFeatureFlags';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Styles allowed by the native animated implementation.
|
|
15
|
+
*
|
|
16
|
+
* In general native animated implementation should support any numeric or color property that
|
|
17
|
+
* doesn't need to be updated through the shadow view hierarchy (all non-layout properties).
|
|
18
|
+
*/
|
|
19
|
+
const SUPPORTED_COLOR_STYLES: {[string]: boolean} = {
|
|
20
|
+
backgroundColor: true,
|
|
21
|
+
borderBottomColor: true,
|
|
22
|
+
borderColor: true,
|
|
23
|
+
borderEndColor: true,
|
|
24
|
+
borderLeftColor: true,
|
|
25
|
+
borderRightColor: true,
|
|
26
|
+
borderStartColor: true,
|
|
27
|
+
borderTopColor: true,
|
|
28
|
+
color: true,
|
|
29
|
+
tintColor: true,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const SUPPORTED_STYLES: {[string]: boolean} = {
|
|
33
|
+
...SUPPORTED_COLOR_STYLES,
|
|
34
|
+
borderBottomEndRadius: true,
|
|
35
|
+
borderBottomLeftRadius: true,
|
|
36
|
+
borderBottomRightRadius: true,
|
|
37
|
+
borderBottomStartRadius: true,
|
|
38
|
+
borderEndEndRadius: true,
|
|
39
|
+
borderEndStartRadius: true,
|
|
40
|
+
borderRadius: true,
|
|
41
|
+
borderTopEndRadius: true,
|
|
42
|
+
borderTopLeftRadius: true,
|
|
43
|
+
borderTopRightRadius: true,
|
|
44
|
+
borderTopStartRadius: true,
|
|
45
|
+
borderStartEndRadius: true,
|
|
46
|
+
borderStartStartRadius: true,
|
|
47
|
+
elevation: true,
|
|
48
|
+
opacity: true,
|
|
49
|
+
transform: true,
|
|
50
|
+
zIndex: true,
|
|
51
|
+
/* ios styles */
|
|
52
|
+
shadowOpacity: true,
|
|
53
|
+
shadowRadius: true,
|
|
54
|
+
/* legacy android transform properties */
|
|
55
|
+
scaleX: true,
|
|
56
|
+
scaleY: true,
|
|
57
|
+
translateX: true,
|
|
58
|
+
translateY: true,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const SUPPORTED_TRANSFORMS: {[string]: boolean} = {
|
|
62
|
+
translateX: true,
|
|
63
|
+
translateY: true,
|
|
64
|
+
scale: true,
|
|
65
|
+
scaleX: true,
|
|
66
|
+
scaleY: true,
|
|
67
|
+
rotate: true,
|
|
68
|
+
rotateX: true,
|
|
69
|
+
rotateY: true,
|
|
70
|
+
rotateZ: true,
|
|
71
|
+
perspective: true,
|
|
72
|
+
skewX: true,
|
|
73
|
+
skewY: true,
|
|
74
|
+
matrix: ReactNativeFeatureFlags.shouldUseAnimatedObjectForTransform(),
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const SUPPORTED_INTERPOLATION_PARAMS: {[string]: boolean} = {
|
|
78
|
+
inputRange: true,
|
|
79
|
+
outputRange: true,
|
|
80
|
+
extrapolate: true,
|
|
81
|
+
extrapolateRight: true,
|
|
82
|
+
extrapolateLeft: true,
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export function allowInterpolationParam(param: string): void {
|
|
86
|
+
SUPPORTED_INTERPOLATION_PARAMS[param] = true;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function allowStyleProp(prop: string): void {
|
|
90
|
+
SUPPORTED_STYLES[prop] = true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function allowTransformProp(prop: string): void {
|
|
94
|
+
SUPPORTED_TRANSFORMS[prop] = true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function isSupportedColorStyleProp(prop: string): boolean {
|
|
98
|
+
return SUPPORTED_COLOR_STYLES[prop] === true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function isSupportedInterpolationParam(param: string): boolean {
|
|
102
|
+
return SUPPORTED_INTERPOLATION_PARAMS[param] === true;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function isSupportedStyleProp(prop: string): boolean {
|
|
106
|
+
return SUPPORTED_STYLES[prop] === true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function isSupportedTransformProp(prop: string): boolean {
|
|
110
|
+
return SUPPORTED_TRANSFORMS[prop] === true;
|
|
111
|
+
}
|