react-native-windows 0.82.0-preview.1 → 0.82.0-preview.10

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.
Files changed (56) hide show
  1. package/Libraries/Animated/nodes/AnimatedValue.js +0 -8
  2. package/Libraries/BatchedBridge/BatchedBridge.js +1 -0
  3. package/Libraries/BatchedBridge/MessageQueue.js +1 -0
  4. package/Libraries/Components/Switch/Switch.js +1 -1
  5. package/Libraries/Components/Switch/Switch.windows.js +1 -1
  6. package/Libraries/Core/ReactNativeVersion.js +2 -2
  7. package/Libraries/Core/Timers/JSTimers.js +1 -0
  8. package/Libraries/Core/Timers/NativeTiming.js +1 -0
  9. package/Libraries/Core/Timers/immediateShim.js +1 -0
  10. package/Libraries/Core/setUpPerformance.js +3 -5
  11. package/Libraries/Interaction/PanResponder.js +6 -51
  12. package/Microsoft.ReactNative/ComponentView.idl +2 -0
  13. package/Microsoft.ReactNative/Composition.Input.idl +7 -0
  14. package/Microsoft.ReactNative/Fabric/ComponentView.cpp +18 -0
  15. package/Microsoft.ReactNative/Fabric/ComponentView.h +9 -0
  16. package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.cpp +12 -0
  17. package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.h +15 -0
  18. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +75 -0
  19. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +1 -0
  20. package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.cpp +6 -67
  21. package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +0 -4
  22. package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp +82 -14
  23. package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.h +11 -4
  24. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +59 -31
  25. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +3 -0
  26. package/Microsoft.ReactNative/Modules/ImageViewManagerModule.cpp +42 -15
  27. package/Microsoft.ReactNative.Cxx/ReactCommon/react/timing/primitives.h +12 -0
  28. package/PropertySheets/Generated/PackageVersion.g.props +2 -2
  29. package/PropertySheets/Warnings.props +1 -2
  30. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/text/BaseParagraphProps.cpp +174 -0
  31. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/text/BaseParagraphProps.h +69 -0
  32. package/Scripts/rnw-dependencies.ps1 +15 -1
  33. package/Shared/Shared.vcxitems +1 -0
  34. package/Shared/Shared.vcxitems.filters +1 -3
  35. package/codegen/NativePerformanceSpec.g.h +41 -35
  36. package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +55 -49
  37. package/codegen/rnwcoreJSI-generated.cpp +434 -422
  38. package/codegen/rnwcoreJSI.h +18 -0
  39. package/index.js +6 -0
  40. package/index.windows.js +6 -0
  41. package/package.json +15 -14
  42. package/src/private/featureflags/ReactNativeFeatureFlags.js +6 -1
  43. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -1
  44. package/src/private/setup/{setUpPerformanceObserver.js → setUpPerformanceModern.js} +43 -18
  45. package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +1 -0
  46. package/src/private/specs_DEPRECATED/modules/NativeTiming.js +1 -0
  47. package/src/private/webapis/performance/EventTiming.js +34 -15
  48. package/src/private/webapis/performance/LongTasks.js +35 -2
  49. package/src/private/webapis/performance/Performance.js +49 -13
  50. package/src/private/webapis/performance/PerformanceEntry.js +21 -8
  51. package/src/private/webapis/performance/PerformanceObserver.js +30 -1
  52. package/src/private/webapis/performance/ReactNativeStartupTiming.js +3 -24
  53. package/src/private/webapis/performance/ResourceTiming.js +29 -18
  54. package/src/private/webapis/performance/UserTiming.js +33 -28
  55. package/src/private/webapis/performance/internals/RawPerformanceEntry.js +3 -4
  56. package/src/private/webapis/performance/specs/NativePerformance.js +2 -0
@@ -62,31 +62,32 @@ struct ReactNativeFeatureFlagsSpec : winrt::Microsoft::ReactNative::TurboModuleS
62
62
  SyncMethod<bool() noexcept>{42, L"enableVirtualViewDebugFeatures"},
63
63
  SyncMethod<bool() noexcept>{43, L"enableVirtualViewRenderState"},
64
64
  SyncMethod<bool() noexcept>{44, L"enableVirtualViewWindowFocusDetection"},
65
- SyncMethod<bool() noexcept>{45, L"fixMappingOfEventPrioritiesBetweenFabricAndReact"},
66
- SyncMethod<bool() noexcept>{46, L"fuseboxEnabledRelease"},
67
- SyncMethod<bool() noexcept>{47, L"fuseboxNetworkInspectionEnabled"},
68
- SyncMethod<bool() noexcept>{48, L"hideOffscreenVirtualViewsOnIOS"},
69
- SyncMethod<bool() noexcept>{49, L"perfMonitorV2Enabled"},
70
- SyncMethod<double() noexcept>{50, L"preparedTextCacheSize"},
71
- SyncMethod<bool() noexcept>{51, L"preventShadowTreeCommitExhaustion"},
72
- SyncMethod<bool() noexcept>{52, L"releaseImageDataWhenConsumed"},
73
- SyncMethod<bool() noexcept>{53, L"shouldPressibilityUseW3CPointerEventsForHover"},
74
- SyncMethod<bool() noexcept>{54, L"skipActivityIdentityAssertionOnHostPause"},
75
- SyncMethod<bool() noexcept>{55, L"sweepActiveTouchOnChildNativeGesturesAndroid"},
76
- SyncMethod<bool() noexcept>{56, L"traceTurboModulePromiseRejectionsOnAndroid"},
77
- SyncMethod<bool() noexcept>{57, L"updateRuntimeShadowNodeReferencesOnCommit"},
78
- SyncMethod<bool() noexcept>{58, L"useAlwaysAvailableJSErrorHandling"},
79
- SyncMethod<bool() noexcept>{59, L"useFabricInterop"},
80
- SyncMethod<bool() noexcept>{60, L"useNativeEqualsInNativeReadableArrayAndroid"},
81
- SyncMethod<bool() noexcept>{61, L"useNativeTransformHelperAndroid"},
82
- SyncMethod<bool() noexcept>{62, L"useNativeViewConfigsInBridgelessMode"},
83
- SyncMethod<bool() noexcept>{63, L"useOptimizedEventBatchingOnAndroid"},
84
- SyncMethod<bool() noexcept>{64, L"useRawPropsJsiValue"},
85
- SyncMethod<bool() noexcept>{65, L"useShadowNodeStateOnClone"},
86
- SyncMethod<bool() noexcept>{66, L"useTurboModuleInterop"},
87
- SyncMethod<bool() noexcept>{67, L"useTurboModules"},
88
- SyncMethod<double() noexcept>{68, L"virtualViewHysteresisRatio"},
89
- SyncMethod<double() noexcept>{69, L"virtualViewPrerenderRatio"},
65
+ SyncMethod<bool() noexcept>{45, L"enableWebPerformanceAPIsByDefault"},
66
+ SyncMethod<bool() noexcept>{46, L"fixMappingOfEventPrioritiesBetweenFabricAndReact"},
67
+ SyncMethod<bool() noexcept>{47, L"fuseboxEnabledRelease"},
68
+ SyncMethod<bool() noexcept>{48, L"fuseboxNetworkInspectionEnabled"},
69
+ SyncMethod<bool() noexcept>{49, L"hideOffscreenVirtualViewsOnIOS"},
70
+ SyncMethod<bool() noexcept>{50, L"perfMonitorV2Enabled"},
71
+ SyncMethod<double() noexcept>{51, L"preparedTextCacheSize"},
72
+ SyncMethod<bool() noexcept>{52, L"preventShadowTreeCommitExhaustion"},
73
+ SyncMethod<bool() noexcept>{53, L"releaseImageDataWhenConsumed"},
74
+ SyncMethod<bool() noexcept>{54, L"shouldPressibilityUseW3CPointerEventsForHover"},
75
+ SyncMethod<bool() noexcept>{55, L"skipActivityIdentityAssertionOnHostPause"},
76
+ SyncMethod<bool() noexcept>{56, L"sweepActiveTouchOnChildNativeGesturesAndroid"},
77
+ SyncMethod<bool() noexcept>{57, L"traceTurboModulePromiseRejectionsOnAndroid"},
78
+ SyncMethod<bool() noexcept>{58, L"updateRuntimeShadowNodeReferencesOnCommit"},
79
+ SyncMethod<bool() noexcept>{59, L"useAlwaysAvailableJSErrorHandling"},
80
+ SyncMethod<bool() noexcept>{60, L"useFabricInterop"},
81
+ SyncMethod<bool() noexcept>{61, L"useNativeEqualsInNativeReadableArrayAndroid"},
82
+ SyncMethod<bool() noexcept>{62, L"useNativeTransformHelperAndroid"},
83
+ SyncMethod<bool() noexcept>{63, L"useNativeViewConfigsInBridgelessMode"},
84
+ SyncMethod<bool() noexcept>{64, L"useOptimizedEventBatchingOnAndroid"},
85
+ SyncMethod<bool() noexcept>{65, L"useRawPropsJsiValue"},
86
+ SyncMethod<bool() noexcept>{66, L"useShadowNodeStateOnClone"},
87
+ SyncMethod<bool() noexcept>{67, L"useTurboModuleInterop"},
88
+ SyncMethod<bool() noexcept>{68, L"useTurboModules"},
89
+ SyncMethod<double() noexcept>{69, L"virtualViewHysteresisRatio"},
90
+ SyncMethod<double() noexcept>{70, L"virtualViewPrerenderRatio"},
90
91
  };
91
92
 
92
93
  template <class TModule>
@@ -320,126 +321,131 @@ struct ReactNativeFeatureFlagsSpec : winrt::Microsoft::ReactNative::TurboModuleS
320
321
  " REACT_SYNC_METHOD(enableVirtualViewWindowFocusDetection) static bool enableVirtualViewWindowFocusDetection() noexcept { /* implementation */ }\n");
321
322
  REACT_SHOW_METHOD_SPEC_ERRORS(
322
323
  45,
324
+ "enableWebPerformanceAPIsByDefault",
325
+ " REACT_SYNC_METHOD(enableWebPerformanceAPIsByDefault) bool enableWebPerformanceAPIsByDefault() noexcept { /* implementation */ }\n"
326
+ " REACT_SYNC_METHOD(enableWebPerformanceAPIsByDefault) static bool enableWebPerformanceAPIsByDefault() noexcept { /* implementation */ }\n");
327
+ REACT_SHOW_METHOD_SPEC_ERRORS(
328
+ 46,
323
329
  "fixMappingOfEventPrioritiesBetweenFabricAndReact",
324
330
  " REACT_SYNC_METHOD(fixMappingOfEventPrioritiesBetweenFabricAndReact) bool fixMappingOfEventPrioritiesBetweenFabricAndReact() noexcept { /* implementation */ }\n"
325
331
  " REACT_SYNC_METHOD(fixMappingOfEventPrioritiesBetweenFabricAndReact) static bool fixMappingOfEventPrioritiesBetweenFabricAndReact() noexcept { /* implementation */ }\n");
326
332
  REACT_SHOW_METHOD_SPEC_ERRORS(
327
- 46,
333
+ 47,
328
334
  "fuseboxEnabledRelease",
329
335
  " REACT_SYNC_METHOD(fuseboxEnabledRelease) bool fuseboxEnabledRelease() noexcept { /* implementation */ }\n"
330
336
  " REACT_SYNC_METHOD(fuseboxEnabledRelease) static bool fuseboxEnabledRelease() noexcept { /* implementation */ }\n");
331
337
  REACT_SHOW_METHOD_SPEC_ERRORS(
332
- 47,
338
+ 48,
333
339
  "fuseboxNetworkInspectionEnabled",
334
340
  " REACT_SYNC_METHOD(fuseboxNetworkInspectionEnabled) bool fuseboxNetworkInspectionEnabled() noexcept { /* implementation */ }\n"
335
341
  " REACT_SYNC_METHOD(fuseboxNetworkInspectionEnabled) static bool fuseboxNetworkInspectionEnabled() noexcept { /* implementation */ }\n");
336
342
  REACT_SHOW_METHOD_SPEC_ERRORS(
337
- 48,
343
+ 49,
338
344
  "hideOffscreenVirtualViewsOnIOS",
339
345
  " REACT_SYNC_METHOD(hideOffscreenVirtualViewsOnIOS) bool hideOffscreenVirtualViewsOnIOS() noexcept { /* implementation */ }\n"
340
346
  " REACT_SYNC_METHOD(hideOffscreenVirtualViewsOnIOS) static bool hideOffscreenVirtualViewsOnIOS() noexcept { /* implementation */ }\n");
341
347
  REACT_SHOW_METHOD_SPEC_ERRORS(
342
- 49,
348
+ 50,
343
349
  "perfMonitorV2Enabled",
344
350
  " REACT_SYNC_METHOD(perfMonitorV2Enabled) bool perfMonitorV2Enabled() noexcept { /* implementation */ }\n"
345
351
  " REACT_SYNC_METHOD(perfMonitorV2Enabled) static bool perfMonitorV2Enabled() noexcept { /* implementation */ }\n");
346
352
  REACT_SHOW_METHOD_SPEC_ERRORS(
347
- 50,
353
+ 51,
348
354
  "preparedTextCacheSize",
349
355
  " REACT_SYNC_METHOD(preparedTextCacheSize) double preparedTextCacheSize() noexcept { /* implementation */ }\n"
350
356
  " REACT_SYNC_METHOD(preparedTextCacheSize) static double preparedTextCacheSize() noexcept { /* implementation */ }\n");
351
357
  REACT_SHOW_METHOD_SPEC_ERRORS(
352
- 51,
358
+ 52,
353
359
  "preventShadowTreeCommitExhaustion",
354
360
  " REACT_SYNC_METHOD(preventShadowTreeCommitExhaustion) bool preventShadowTreeCommitExhaustion() noexcept { /* implementation */ }\n"
355
361
  " REACT_SYNC_METHOD(preventShadowTreeCommitExhaustion) static bool preventShadowTreeCommitExhaustion() noexcept { /* implementation */ }\n");
356
362
  REACT_SHOW_METHOD_SPEC_ERRORS(
357
- 52,
363
+ 53,
358
364
  "releaseImageDataWhenConsumed",
359
365
  " REACT_SYNC_METHOD(releaseImageDataWhenConsumed) bool releaseImageDataWhenConsumed() noexcept { /* implementation */ }\n"
360
366
  " REACT_SYNC_METHOD(releaseImageDataWhenConsumed) static bool releaseImageDataWhenConsumed() noexcept { /* implementation */ }\n");
361
367
  REACT_SHOW_METHOD_SPEC_ERRORS(
362
- 53,
368
+ 54,
363
369
  "shouldPressibilityUseW3CPointerEventsForHover",
364
370
  " REACT_SYNC_METHOD(shouldPressibilityUseW3CPointerEventsForHover) bool shouldPressibilityUseW3CPointerEventsForHover() noexcept { /* implementation */ }\n"
365
371
  " REACT_SYNC_METHOD(shouldPressibilityUseW3CPointerEventsForHover) static bool shouldPressibilityUseW3CPointerEventsForHover() noexcept { /* implementation */ }\n");
366
372
  REACT_SHOW_METHOD_SPEC_ERRORS(
367
- 54,
373
+ 55,
368
374
  "skipActivityIdentityAssertionOnHostPause",
369
375
  " REACT_SYNC_METHOD(skipActivityIdentityAssertionOnHostPause) bool skipActivityIdentityAssertionOnHostPause() noexcept { /* implementation */ }\n"
370
376
  " REACT_SYNC_METHOD(skipActivityIdentityAssertionOnHostPause) static bool skipActivityIdentityAssertionOnHostPause() noexcept { /* implementation */ }\n");
371
377
  REACT_SHOW_METHOD_SPEC_ERRORS(
372
- 55,
378
+ 56,
373
379
  "sweepActiveTouchOnChildNativeGesturesAndroid",
374
380
  " REACT_SYNC_METHOD(sweepActiveTouchOnChildNativeGesturesAndroid) bool sweepActiveTouchOnChildNativeGesturesAndroid() noexcept { /* implementation */ }\n"
375
381
  " REACT_SYNC_METHOD(sweepActiveTouchOnChildNativeGesturesAndroid) static bool sweepActiveTouchOnChildNativeGesturesAndroid() noexcept { /* implementation */ }\n");
376
382
  REACT_SHOW_METHOD_SPEC_ERRORS(
377
- 56,
383
+ 57,
378
384
  "traceTurboModulePromiseRejectionsOnAndroid",
379
385
  " REACT_SYNC_METHOD(traceTurboModulePromiseRejectionsOnAndroid) bool traceTurboModulePromiseRejectionsOnAndroid() noexcept { /* implementation */ }\n"
380
386
  " REACT_SYNC_METHOD(traceTurboModulePromiseRejectionsOnAndroid) static bool traceTurboModulePromiseRejectionsOnAndroid() noexcept { /* implementation */ }\n");
381
387
  REACT_SHOW_METHOD_SPEC_ERRORS(
382
- 57,
388
+ 58,
383
389
  "updateRuntimeShadowNodeReferencesOnCommit",
384
390
  " REACT_SYNC_METHOD(updateRuntimeShadowNodeReferencesOnCommit) bool updateRuntimeShadowNodeReferencesOnCommit() noexcept { /* implementation */ }\n"
385
391
  " REACT_SYNC_METHOD(updateRuntimeShadowNodeReferencesOnCommit) static bool updateRuntimeShadowNodeReferencesOnCommit() noexcept { /* implementation */ }\n");
386
392
  REACT_SHOW_METHOD_SPEC_ERRORS(
387
- 58,
393
+ 59,
388
394
  "useAlwaysAvailableJSErrorHandling",
389
395
  " REACT_SYNC_METHOD(useAlwaysAvailableJSErrorHandling) bool useAlwaysAvailableJSErrorHandling() noexcept { /* implementation */ }\n"
390
396
  " REACT_SYNC_METHOD(useAlwaysAvailableJSErrorHandling) static bool useAlwaysAvailableJSErrorHandling() noexcept { /* implementation */ }\n");
391
397
  REACT_SHOW_METHOD_SPEC_ERRORS(
392
- 59,
398
+ 60,
393
399
  "useFabricInterop",
394
400
  " REACT_SYNC_METHOD(useFabricInterop) bool useFabricInterop() noexcept { /* implementation */ }\n"
395
401
  " REACT_SYNC_METHOD(useFabricInterop) static bool useFabricInterop() noexcept { /* implementation */ }\n");
396
402
  REACT_SHOW_METHOD_SPEC_ERRORS(
397
- 60,
403
+ 61,
398
404
  "useNativeEqualsInNativeReadableArrayAndroid",
399
405
  " REACT_SYNC_METHOD(useNativeEqualsInNativeReadableArrayAndroid) bool useNativeEqualsInNativeReadableArrayAndroid() noexcept { /* implementation */ }\n"
400
406
  " REACT_SYNC_METHOD(useNativeEqualsInNativeReadableArrayAndroid) static bool useNativeEqualsInNativeReadableArrayAndroid() noexcept { /* implementation */ }\n");
401
407
  REACT_SHOW_METHOD_SPEC_ERRORS(
402
- 61,
408
+ 62,
403
409
  "useNativeTransformHelperAndroid",
404
410
  " REACT_SYNC_METHOD(useNativeTransformHelperAndroid) bool useNativeTransformHelperAndroid() noexcept { /* implementation */ }\n"
405
411
  " REACT_SYNC_METHOD(useNativeTransformHelperAndroid) static bool useNativeTransformHelperAndroid() noexcept { /* implementation */ }\n");
406
412
  REACT_SHOW_METHOD_SPEC_ERRORS(
407
- 62,
413
+ 63,
408
414
  "useNativeViewConfigsInBridgelessMode",
409
415
  " REACT_SYNC_METHOD(useNativeViewConfigsInBridgelessMode) bool useNativeViewConfigsInBridgelessMode() noexcept { /* implementation */ }\n"
410
416
  " REACT_SYNC_METHOD(useNativeViewConfigsInBridgelessMode) static bool useNativeViewConfigsInBridgelessMode() noexcept { /* implementation */ }\n");
411
417
  REACT_SHOW_METHOD_SPEC_ERRORS(
412
- 63,
418
+ 64,
413
419
  "useOptimizedEventBatchingOnAndroid",
414
420
  " REACT_SYNC_METHOD(useOptimizedEventBatchingOnAndroid) bool useOptimizedEventBatchingOnAndroid() noexcept { /* implementation */ }\n"
415
421
  " REACT_SYNC_METHOD(useOptimizedEventBatchingOnAndroid) static bool useOptimizedEventBatchingOnAndroid() noexcept { /* implementation */ }\n");
416
422
  REACT_SHOW_METHOD_SPEC_ERRORS(
417
- 64,
423
+ 65,
418
424
  "useRawPropsJsiValue",
419
425
  " REACT_SYNC_METHOD(useRawPropsJsiValue) bool useRawPropsJsiValue() noexcept { /* implementation */ }\n"
420
426
  " REACT_SYNC_METHOD(useRawPropsJsiValue) static bool useRawPropsJsiValue() noexcept { /* implementation */ }\n");
421
427
  REACT_SHOW_METHOD_SPEC_ERRORS(
422
- 65,
428
+ 66,
423
429
  "useShadowNodeStateOnClone",
424
430
  " REACT_SYNC_METHOD(useShadowNodeStateOnClone) bool useShadowNodeStateOnClone() noexcept { /* implementation */ }\n"
425
431
  " REACT_SYNC_METHOD(useShadowNodeStateOnClone) static bool useShadowNodeStateOnClone() noexcept { /* implementation */ }\n");
426
432
  REACT_SHOW_METHOD_SPEC_ERRORS(
427
- 66,
433
+ 67,
428
434
  "useTurboModuleInterop",
429
435
  " REACT_SYNC_METHOD(useTurboModuleInterop) bool useTurboModuleInterop() noexcept { /* implementation */ }\n"
430
436
  " REACT_SYNC_METHOD(useTurboModuleInterop) static bool useTurboModuleInterop() noexcept { /* implementation */ }\n");
431
437
  REACT_SHOW_METHOD_SPEC_ERRORS(
432
- 67,
438
+ 68,
433
439
  "useTurboModules",
434
440
  " REACT_SYNC_METHOD(useTurboModules) bool useTurboModules() noexcept { /* implementation */ }\n"
435
441
  " REACT_SYNC_METHOD(useTurboModules) static bool useTurboModules() noexcept { /* implementation */ }\n");
436
442
  REACT_SHOW_METHOD_SPEC_ERRORS(
437
- 68,
443
+ 69,
438
444
  "virtualViewHysteresisRatio",
439
445
  " REACT_SYNC_METHOD(virtualViewHysteresisRatio) double virtualViewHysteresisRatio() noexcept { /* implementation */ }\n"
440
446
  " REACT_SYNC_METHOD(virtualViewHysteresisRatio) static double virtualViewHysteresisRatio() noexcept { /* implementation */ }\n");
441
447
  REACT_SHOW_METHOD_SPEC_ERRORS(
442
- 69,
448
+ 70,
443
449
  "virtualViewPrerenderRatio",
444
450
  " REACT_SYNC_METHOD(virtualViewPrerenderRatio) double virtualViewPrerenderRatio() noexcept { /* implementation */ }\n"
445
451
  " REACT_SYNC_METHOD(virtualViewPrerenderRatio) static double virtualViewPrerenderRatio() noexcept { /* implementation */ }\n");