react-native-windows 0.75.4 → 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/.flowconfig +6 -4
- package/Directory.Build.props +4 -0
- package/Directory.Build.targets +5 -0
- package/Libraries/Alert/Alert.js +3 -0
- package/Libraries/Alert/Alert.windows.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/Button.windows.js +0 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -1
- package/Libraries/Components/Keyboard/KeyboardExt.js.map +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.windows.js +230 -105
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +22 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +2 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.windows.js +2 -0
- package/Libraries/Components/View/View.windows.js +32 -30
- 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.windows.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/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/AssetSourceResolver.windows.js +28 -1
- package/Libraries/Image/Image.android.js +9 -14
- package/Libraries/Image/Image.ios.js +11 -22
- package/Libraries/Image/Image.windows.js +11 -22
- 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/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.windows.js +9 -8
- 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.windows.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 +1 -2
- package/Libraries/ReactNative/AppRegistry.d.ts +0 -4
- package/Libraries/ReactNative/AppRegistry.js +1 -7
- 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 +1 -3
- package/Libraries/Renderer/shims/ReactNativeTypes.js +11 -4
- package/Libraries/StyleSheet/StyleSheet.js +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +57 -0
- 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.windows.js +476 -300
- package/Libraries/Text/TextNativeComponent.js +2 -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/Microsoft.ReactNative/ComponentView.idl +11 -0
- package/Microsoft.ReactNative/Composition.Input.idl +1 -0
- package/Microsoft.ReactNative/CompositionSwitcher.idl +3 -0
- package/Microsoft.ReactNative/Fabric/AbiComponentDescriptor.cpp +9 -9
- package/Microsoft.ReactNative/Fabric/AbiViewComponentDescriptor.cpp +9 -9
- package/Microsoft.ReactNative/Fabric/ComponentView.cpp +7 -9
- package/Microsoft.ReactNative/Fabric/ComponentView.h +5 -6
- package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.cpp +4 -0
- package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.h +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +44 -13
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +42 -5
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +81 -63
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +2 -3
- package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.cpp +8 -6
- package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/FocusManager.cpp +20 -6
- package/Microsoft.ReactNative/Fabric/Composition/FocusManager.h +13 -6
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +2 -3
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +72 -54
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +14 -4
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +26 -8
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +5 -2
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +18 -7
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.cpp +6 -6
- package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +97 -140
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +8 -4
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +18 -11
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.h +5 -4
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.cpp +0 -13
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.h +0 -3
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +29 -4
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +2 -0
- package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.cpp +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.h +1 -2
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +28 -12
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/HostPlatformColor.h +33 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +26 -9
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.h +10 -4
- package/Microsoft.ReactNative/IReactModuleBuilder.cpp +5 -0
- package/Microsoft.ReactNative/IReactModuleBuilder.h +1 -0
- package/Microsoft.ReactNative/IReactModuleBuilder.idl +9 -0
- package/Microsoft.ReactNative/IReactViewComponentBuilder.idl +8 -1
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +2 -0
- package/Microsoft.ReactNative/Modules/AlertModule.cpp +3 -1
- package/Microsoft.ReactNative/Modules/AppearanceModule.cpp +1 -1
- package/Microsoft.ReactNative/Modules/AppearanceModule.h +7 -1
- package/Microsoft.ReactNative/Modules/DevSettingsModule.cpp +3 -3
- package/Microsoft.ReactNative/Modules/DevSettingsModule.h +1 -1
- package/Microsoft.ReactNative/Modules/LinkingManagerModule.cpp +2 -2
- package/Microsoft.ReactNative/Modules/LinkingManagerModule.h +1 -1
- package/Microsoft.ReactNative/Modules/LogBoxModule.cpp +9 -0
- package/Microsoft.ReactNative/Modules/LogBoxModule.h +2 -0
- package/Microsoft.ReactNative/Modules/SampleTurboModule.cpp +121 -0
- package/Microsoft.ReactNative/Modules/SampleTurboModule.h +90 -0
- package/Microsoft.ReactNative/ReactHost/MsoReactContext.cpp +0 -7
- package/Microsoft.ReactNative/ReactHost/MsoReactContext.h +0 -5
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +5 -1
- package/Microsoft.ReactNative/ReactInstanceSettingsBuilder.cpp +59 -0
- package/Microsoft.ReactNative/ReactInstanceSettingsBuilder.h +23 -0
- package/Microsoft.ReactNative/ReactNativeAppBuilder.cpp +179 -0
- package/Microsoft.ReactNative/ReactNativeAppBuilder.h +35 -0
- package/Microsoft.ReactNative/ReactNativeAppBuilder.idl +69 -0
- package/Microsoft.ReactNative/ReactNativeIsland.idl +2 -0
- package/Microsoft.ReactNative/ReactNativeWin32App.cpp +82 -0
- package/Microsoft.ReactNative/ReactNativeWin32App.h +38 -0
- package/Microsoft.ReactNative/TurboModulesProvider.cpp +45 -0
- package/Microsoft.ReactNative/Views/DynamicAutomationPeer.cpp +2 -1
- package/Microsoft.ReactNative/Views/FlyoutViewManager.cpp +25 -16
- package/Microsoft.ReactNative/packages.fabric.lock.json +159 -0
- package/Microsoft.ReactNative/packages.lock.json +11 -12
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +3 -4
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +3 -0
- package/Microsoft.ReactNative.Cxx/ModuleRegistration.cpp +2 -2
- package/Microsoft.ReactNative.Cxx/ModuleRegistration.h +62 -4
- package/Microsoft.ReactNative.Cxx/NativeModules.h +131 -14
- package/Microsoft.ReactNative.Managed/packages.lock.json +9 -9
- package/Microsoft.ReactNative.Managed.CodeGen/ReactNativeNames.cs +10 -2
- package/PropertySheets/Autolink.props +1 -1
- package/PropertySheets/Bundle.props +1 -1
- package/PropertySheets/Codegen.props +1 -1
- package/PropertySheets/Generated/PackageVersion.g.props +4 -4
- package/PropertySheets/NuGet.LockFile.props +18 -0
- package/README.md +29 -29
- package/ReactCommon/ReactCommon.vcxproj +5 -1
- package/ReactCommon/ReactCommon.vcxproj.filters +11 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.cpp +2 -7
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.cpp +441 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.h +266 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/Utf8.h +56 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Base.h +3 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Bridging.h +2 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/CallbackWrapper.h +1 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Convert.h +172 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/EventEmitter.h +4 -5
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Function.h +2 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.h +1 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +3 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/scrollview/ScrollViewProps.cpp +9 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/LayoutableShadowNode.cpp +363 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/JSRuntimeFactory.h +22 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +118 -51
- package/ReactCommon/packages.lock.json +2 -2
- package/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 +8 -1
- package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +2 -2
- package/Shared/Modules/WebSocketModule.cpp +1 -2
- package/Shared/Networking/WinRTWebSocketResource.cpp +4 -1
- package/Shared/Shared.vcxitems +38 -2
- package/Shared/Shared.vcxitems.filters +6 -1
- package/Shared/TurboModuleManager.cpp +0 -3
- package/codegen/NativeLinkingManagerSpec.g.h +3 -3
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +198 -54
- package/codegen/NativeSampleTurboModuleSpec.g.h +35 -0
- package/codegen/rnwcoreJSI-generated.cpp +245 -101
- package/codegen/rnwcoreJSI.h +847 -548
- package/index.js +3 -1
- package/index.windows.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/package.json +29 -29
- package/src/private/animated/NativeAnimatedHelper.js +438 -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/NativePlatformConstantsWindows.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/template/cpp-app/src/AutolinkedNativeModules.g.cpp +1 -1
- package/template/cpp-app/src/AutolinkedNativeModules.g.h +1 -1
- package/template/cs-app/src/AutolinkedNativeModules.g.cs +1 -1
- package/template/index.windows.bundle +1 -1
- package/template/metro.config.js +2 -2
- package/template/shared-app/src/AutolinkedNativeModules.g.props +1 -1
- package/template/shared-app/src/AutolinkedNativeModules.g.targets +1 -1
- package/templates/cpp-app/metro.config.js +2 -2
- package/templates/cpp-app/template.config.js +5 -5
- package/templates/cpp-app/windows/MyApp/AutolinkedNativeModules.g.cpp +1 -1
- package/templates/cpp-app/windows/MyApp/AutolinkedNativeModules.g.h +1 -1
- package/templates/cpp-app/windows/MyApp/MyApp.cpp +2 -0
- package/templates/cpp-app/windows/MyApp/MyApp.vcxproj +1 -1
- package/templates/cpp-lib/example/metro.config.js +2 -2
- package/templates/cpp-lib/template.config.js +3 -3
- package/templates/cpp-lib/windows/MyLib/MyLib.h +3 -3
- package/templates/cpp-lib/windows/MyLib/MyLib.vcxproj +1 -1
- package/types/experimental.d.ts +20 -1
- package/Libraries/Animated/NativeAnimatedHelper.js +0 -615
- 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/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/algorithm/CalculateLayout.cpp +0 -2396
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/config/Config.cpp +0 -136
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/config/Config.h +0 -92
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/node/LayoutResults.cpp +0 -48
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/node/LayoutResults.h +0 -122
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/node/Node.cpp +0 -388
- 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/index.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
|
+
'use client';
|
|
12
13
|
|
|
13
14
|
// APIs
|
|
14
15
|
import typeof ActionSheetIOS from './Libraries/ActionSheetIOS/ActionSheetIOS';
|
|
@@ -59,6 +60,7 @@ import typeof VirtualizedList from './Libraries/Lists/VirtualizedList';
|
|
|
59
60
|
import typeof VirtualizedSectionList from './Libraries/Lists/VirtualizedSectionList';
|
|
60
61
|
import typeof LogBox from './Libraries/LogBox/LogBox';
|
|
61
62
|
import typeof Modal from './Libraries/Modal/Modal';
|
|
63
|
+
// $FlowFixMe[invalid-exported-annotation]
|
|
62
64
|
import typeof NativeDialogManagerAndroid from './Libraries/NativeModules/specs/NativeDialogManagerAndroid';
|
|
63
65
|
import typeof Networking from './Libraries/Network/RCTNetworking';
|
|
64
66
|
import typeof * as Systrace from './Libraries/Performance/Systrace';
|
|
@@ -80,7 +82,7 @@ import typeof StyleSheet from './Libraries/StyleSheet/StyleSheet';
|
|
|
80
82
|
import typeof Text from './Libraries/Text/Text';
|
|
81
83
|
import typeof * as TurboModuleRegistry from './Libraries/TurboModule/TurboModuleRegistry';
|
|
82
84
|
import typeof UTFSequence from './Libraries/UTFSequence';
|
|
83
|
-
import typeof Appearance from './Libraries/Utilities/Appearance';
|
|
85
|
+
import typeof * as Appearance from './Libraries/Utilities/Appearance';
|
|
84
86
|
import typeof BackHandler from './Libraries/Utilities/BackHandler';
|
|
85
87
|
import typeof DeviceInfo from './Libraries/Utilities/DeviceInfo';
|
|
86
88
|
import typeof DevSettings from './Libraries/Utilities/DevSettings';
|
package/index.windows.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
|
+
'use client';
|
|
12
13
|
|
|
13
14
|
// APIs
|
|
14
15
|
import typeof ActionSheetIOS from './Libraries/ActionSheetIOS/ActionSheetIOS';
|
|
@@ -61,6 +62,7 @@ import typeof VirtualizedList from './Libraries/Lists/VirtualizedList';
|
|
|
61
62
|
import typeof VirtualizedSectionList from './Libraries/Lists/VirtualizedSectionList';
|
|
62
63
|
import typeof LogBox from './Libraries/LogBox/LogBox';
|
|
63
64
|
import typeof Modal from './Libraries/Modal/Modal';
|
|
65
|
+
// $FlowFixMe[invalid-exported-annotation]
|
|
64
66
|
import typeof NativeDialogManagerAndroid from './Libraries/NativeModules/specs/NativeDialogManagerAndroid';
|
|
65
67
|
import typeof Networking from './Libraries/Network/RCTNetworking';
|
|
66
68
|
import typeof * as Systrace from './Libraries/Performance/Systrace';
|
|
@@ -82,7 +84,7 @@ import typeof StyleSheet from './Libraries/StyleSheet/StyleSheet';
|
|
|
82
84
|
import typeof Text from './Libraries/Text/Text';
|
|
83
85
|
import typeof * as TurboModuleRegistry from './Libraries/TurboModule/TurboModuleRegistry';
|
|
84
86
|
import typeof UTFSequence from './Libraries/UTFSequence';
|
|
85
|
-
import typeof Appearance from './Libraries/Utilities/Appearance';
|
|
87
|
+
import typeof * as Appearance from './Libraries/Utilities/Appearance';
|
|
86
88
|
import typeof BackHandler from './Libraries/Utilities/BackHandler';
|
|
87
89
|
import typeof DeviceInfo from './Libraries/Utilities/DeviceInfo';
|
|
88
90
|
import typeof DevSettings from './Libraries/Utilities/DevSettings';
|
package/jest/mockComponent.js
CHANGED
|
@@ -16,7 +16,10 @@ module.exports = (moduleName, instanceMethods, isESModule) => {
|
|
|
16
16
|
const React = require('react');
|
|
17
17
|
|
|
18
18
|
const SuperClass =
|
|
19
|
-
typeof RealComponent === 'function'
|
|
19
|
+
typeof RealComponent === 'function' &&
|
|
20
|
+
RealComponent.prototype.constructor instanceof React.Component
|
|
21
|
+
? RealComponent
|
|
22
|
+
: React.Component;
|
|
20
23
|
|
|
21
24
|
const name =
|
|
22
25
|
RealComponent.displayName ||
|
package/jest/mockModal.js
CHANGED
|
@@ -12,13 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
'use strict';
|
|
14
14
|
|
|
15
|
-
import typeof Modal from '../Libraries/Modal/Modal';
|
|
16
|
-
|
|
17
15
|
const React = require('react');
|
|
18
16
|
|
|
19
17
|
function mockModal(BaseComponent: $FlowFixMe) {
|
|
20
18
|
class ModalMock extends BaseComponent {
|
|
21
|
-
render(): React.
|
|
19
|
+
render(): React.MixedElement | null {
|
|
22
20
|
if (this.props.visible === false) {
|
|
23
21
|
return null;
|
|
24
22
|
}
|
package/jest/mockScrollView.js
CHANGED
|
@@ -20,7 +20,7 @@ const RCTScrollView: $FlowFixMe = requireNativeComponent('RCTScrollView');
|
|
|
20
20
|
|
|
21
21
|
function mockScrollView(BaseComponent: $FlowFixMe) {
|
|
22
22
|
class ScrollViewMock extends BaseComponent {
|
|
23
|
-
render(): React.
|
|
23
|
+
render(): React.MixedElement {
|
|
24
24
|
return (
|
|
25
25
|
<RCTScrollView {...this.props}>
|
|
26
26
|
{this.props.refreshControl}
|
package/jest/renderer.js
CHANGED
|
@@ -16,7 +16,7 @@ import * as React from 'react';
|
|
|
16
16
|
import TestRenderer from 'react-test-renderer';
|
|
17
17
|
|
|
18
18
|
export async function create(
|
|
19
|
-
Component: React.
|
|
19
|
+
Component: React.MixedElement,
|
|
20
20
|
): Promise<ReactTestRenderer> {
|
|
21
21
|
let component;
|
|
22
22
|
await TestRenderer.act(async () => {
|
|
@@ -33,7 +33,7 @@ export async function unmount(testRenderer: ReactTestRenderer) {
|
|
|
33
33
|
|
|
34
34
|
export async function update(
|
|
35
35
|
testRenderer: ReactTestRenderer,
|
|
36
|
-
element: React.
|
|
36
|
+
element: React.MixedElement,
|
|
37
37
|
) {
|
|
38
38
|
await TestRenderer.act(async () => {
|
|
39
39
|
testRenderer.update(element);
|
package/jest/setup.js
CHANGED
|
@@ -146,17 +146,17 @@ jest
|
|
|
146
146
|
remove: jest.fn(),
|
|
147
147
|
})),
|
|
148
148
|
announceForAccessibility: jest.fn(),
|
|
149
|
-
isAccessibilityServiceEnabled: jest.fn(),
|
|
150
|
-
isBoldTextEnabled: jest.fn(),
|
|
151
|
-
isGrayscaleEnabled: jest.fn(),
|
|
152
|
-
isInvertColorsEnabled: jest.fn(),
|
|
153
|
-
isReduceMotionEnabled: jest.fn(),
|
|
154
|
-
prefersCrossFadeTransitions: jest.fn(),
|
|
155
|
-
isReduceTransparencyEnabled: jest.fn(),
|
|
149
|
+
isAccessibilityServiceEnabled: jest.fn(() => Promise.resolve(false)),
|
|
150
|
+
isBoldTextEnabled: jest.fn(() => Promise.resolve(false)),
|
|
151
|
+
isGrayscaleEnabled: jest.fn(() => Promise.resolve(false)),
|
|
152
|
+
isInvertColorsEnabled: jest.fn(() => Promise.resolve(false)),
|
|
153
|
+
isReduceMotionEnabled: jest.fn(() => Promise.resolve(false)),
|
|
154
|
+
prefersCrossFadeTransitions: jest.fn(() => Promise.resolve(false)),
|
|
155
|
+
isReduceTransparencyEnabled: jest.fn(() => Promise.resolve(false)),
|
|
156
156
|
isScreenReaderEnabled: jest.fn(() => Promise.resolve(false)),
|
|
157
157
|
setAccessibilityFocus: jest.fn(),
|
|
158
158
|
sendAccessibilityEvent: jest.fn(),
|
|
159
|
-
getRecommendedTimeoutMillis: jest.fn(),
|
|
159
|
+
getRecommendedTimeoutMillis: jest.fn(() => Promise.resolve(false)),
|
|
160
160
|
},
|
|
161
161
|
}))
|
|
162
162
|
.mock('../Libraries/Components/Clipboard/Clipboard', () => ({
|
|
@@ -287,7 +287,14 @@ jest
|
|
|
287
287
|
},
|
|
288
288
|
PlatformConstants: {
|
|
289
289
|
getConstants() {
|
|
290
|
-
return {
|
|
290
|
+
return {
|
|
291
|
+
reactNativeVersion: {
|
|
292
|
+
major: 1000,
|
|
293
|
+
minor: 0,
|
|
294
|
+
patch: 0,
|
|
295
|
+
prerelease: undefined,
|
|
296
|
+
},
|
|
297
|
+
};
|
|
291
298
|
},
|
|
292
299
|
},
|
|
293
300
|
PushNotificationManager: {
|
|
@@ -385,10 +392,6 @@ jest
|
|
|
385
392
|
.mock('../Libraries/ReactNative/requireNativeComponent', () => {
|
|
386
393
|
return jest.requireActual('./mockNativeComponent');
|
|
387
394
|
})
|
|
388
|
-
.mock(
|
|
389
|
-
'../Libraries/Utilities/verifyComponentAttributeEquivalence',
|
|
390
|
-
() => function () {},
|
|
391
|
-
)
|
|
392
395
|
.mock('../Libraries/Vibration/Vibration', () => ({
|
|
393
396
|
vibrate: jest.fn(),
|
|
394
397
|
cancel: jest.fn(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.76.0-preview.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
"flow-check": "rnw-scripts flow-check",
|
|
17
17
|
"lint:fix": "rnw-scripts lint:fix",
|
|
18
18
|
"lint": "rnw-scripts lint",
|
|
19
|
-
"start": "react-native start",
|
|
19
|
+
"start": "npx @react-native-community/cli start",
|
|
20
20
|
"validate-overrides": "react-native-platform-override validate",
|
|
21
21
|
"test": "jest"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/runtime": "^7.0.0",
|
|
25
25
|
"@jest/create-cache-key-function": "^29.6.3",
|
|
26
|
-
"@react-native-community/cli": "14.
|
|
27
|
-
"@react-native-community/cli-platform-android": "14.
|
|
28
|
-
"@react-native-community/cli-platform-ios": "14.
|
|
29
|
-
"@react-native-windows/cli": "0.
|
|
26
|
+
"@react-native-community/cli": "14.0.0",
|
|
27
|
+
"@react-native-community/cli-platform-android": "14.0.0",
|
|
28
|
+
"@react-native-community/cli-platform-ios": "14.0.0",
|
|
29
|
+
"@react-native-windows/cli": "0.76.0-preview.1",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
|
-
"@react-native/assets-registry": "0.
|
|
32
|
-
"@react-native/codegen": "0.
|
|
33
|
-
"@react-native/community-cli-plugin": "0.
|
|
34
|
-
"@react-native/gradle-plugin": "0.
|
|
35
|
-
"@react-native/js-polyfills": "0.
|
|
36
|
-
"@react-native/normalize-colors": "0.
|
|
37
|
-
"@react-native/virtualized-lists": "0.
|
|
31
|
+
"@react-native/assets-registry": "0.76.0-rc.0",
|
|
32
|
+
"@react-native/codegen": "0.76.0-rc.0",
|
|
33
|
+
"@react-native/community-cli-plugin": "0.76.0-rc.0",
|
|
34
|
+
"@react-native/gradle-plugin": "0.76.0-rc.0",
|
|
35
|
+
"@react-native/js-polyfills": "0.76.0-rc.0",
|
|
36
|
+
"@react-native/normalize-colors": "0.76.0-rc.0",
|
|
37
|
+
"@react-native/virtualized-lists": "0.76.0-rc.0",
|
|
38
38
|
"abort-controller": "^3.0.0",
|
|
39
39
|
"anser": "^1.4.9",
|
|
40
40
|
"ansi-regex": "^5.0.0",
|
|
41
41
|
"base64-js": "^1.5.1",
|
|
42
42
|
"chalk": "^4.0.0",
|
|
43
|
-
"commander": "^
|
|
43
|
+
"commander": "^12.0.0",
|
|
44
44
|
"event-target-shim": "^5.0.1",
|
|
45
45
|
"flow-enums-runtime": "^0.0.6",
|
|
46
46
|
"glob": "^7.1.1",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"jest-environment-node": "^29.6.3",
|
|
49
49
|
"jsc-android": "^250231.0.0",
|
|
50
50
|
"memoize-one": "^5.0.0",
|
|
51
|
-
"metro-runtime": "^0.80.
|
|
52
|
-
"metro-source-map": "^0.80.
|
|
51
|
+
"metro-runtime": "^0.80.10",
|
|
52
|
+
"metro-source-map": "^0.80.10",
|
|
53
53
|
"mkdirp": "^0.5.1",
|
|
54
54
|
"nullthrows": "^1.1.1",
|
|
55
|
-
"pretty-format": "^
|
|
55
|
+
"pretty-format": "^29.7.0",
|
|
56
56
|
"promise": "^8.3.0",
|
|
57
57
|
"react-devtools-core": "^5.3.1",
|
|
58
58
|
"react-refresh": "^0.14.0",
|
|
@@ -63,43 +63,43 @@
|
|
|
63
63
|
"source-map-support": "^0.5.19",
|
|
64
64
|
"stacktrace-parser": "^0.1.10",
|
|
65
65
|
"whatwg-fetch": "^3.0.0",
|
|
66
|
-
"ws": "^6.2.
|
|
66
|
+
"ws": "^6.2.3",
|
|
67
67
|
"yargs": "^17.6.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@react-native-windows/codegen": "0.
|
|
71
|
-
"@react-native/metro-config": "0.
|
|
70
|
+
"@react-native-windows/codegen": "0.76.0-preview.1",
|
|
71
|
+
"@react-native/metro-config": "0.76.0-nightly-20240701-9f6cb21ed",
|
|
72
72
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
73
|
-
"@rnw-scripts/eslint-config": "1.2.
|
|
74
|
-
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.
|
|
75
|
-
"@rnw-scripts/just-task": "2.3.
|
|
73
|
+
"@rnw-scripts/eslint-config": "1.2.27",
|
|
74
|
+
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.31",
|
|
75
|
+
"@rnw-scripts/just-task": "2.3.44",
|
|
76
76
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
77
77
|
"@rnx-kit/jest-preset": "^0.1.17",
|
|
78
78
|
"@types/node": "^18.0.0",
|
|
79
79
|
"@types/react": "^18.2.6",
|
|
80
80
|
"eslint": "^8.19.0",
|
|
81
81
|
"eslint-plugin-prettier": "^4.2.1",
|
|
82
|
-
"flow-bin": "^0.
|
|
82
|
+
"flow-bin": "^0.245.2",
|
|
83
83
|
"jscodeshift": "^0.14.0",
|
|
84
84
|
"just-scripts": "^1.3.3",
|
|
85
85
|
"prettier": "2.8.8",
|
|
86
86
|
"react": "18.3.1",
|
|
87
|
-
"react-native": "0.
|
|
88
|
-
"react-native-platform-override": "^1.9.
|
|
87
|
+
"react-native": "0.76.0-rc.0",
|
|
88
|
+
"react-native-platform-override": "^1.9.46",
|
|
89
89
|
"react-refresh": "^0.14.0",
|
|
90
90
|
"typescript": "5.0.4"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@types/react": "^18.2.6",
|
|
94
94
|
"react": "^18.2.0",
|
|
95
|
-
"react-native": "
|
|
95
|
+
"react-native": "0.76.0-rc.0"
|
|
96
96
|
},
|
|
97
97
|
"beachball": {
|
|
98
|
-
"defaultNpmTag": "
|
|
98
|
+
"defaultNpmTag": "preview",
|
|
99
99
|
"disallowedChangeTypes": [
|
|
100
100
|
"major",
|
|
101
101
|
"minor",
|
|
102
|
-
"
|
|
102
|
+
"patch",
|
|
103
103
|
"premajor",
|
|
104
104
|
"preminor",
|
|
105
105
|
"prepatch"
|