react-native-windows 0.0.0-canary.435 → 0.0.0-canary.436

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 (39) hide show
  1. package/.flowconfig +1 -1
  2. package/Libraries/Animated/nodes/AnimatedValue.js +8 -2
  3. package/Libraries/Components/ScrollView/ScrollView.js +8 -1
  4. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +1 -0
  5. package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +1 -0
  6. package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -0
  7. package/Libraries/Components/TextInput/TextInput.js +30 -0
  8. package/Libraries/Components/TextInput/TextInput.windows.js +30 -0
  9. package/Libraries/Core/ReactNativeVersion.js +1 -1
  10. package/Libraries/Image/Image.android.js +1 -1
  11. package/Libraries/Image/Image.ios.js +1 -1
  12. package/Libraries/Image/Image.windows.js +1 -1
  13. package/Libraries/Image/TextInlineImageNativeComponent.js +1 -1
  14. package/Libraries/Pressability/HoverState.js +4 -0
  15. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +28 -28
  16. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +22 -33
  17. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +23 -34
  18. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +35 -28
  19. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +22 -33
  20. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +23 -34
  21. package/Microsoft.ReactNative/ABIViewManager.cpp +4 -0
  22. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +2 -2
  23. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +2 -2
  24. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +2 -0
  25. package/Microsoft.ReactNative/Modules/Animated/DiffClampAnimatedNode.cpp +1 -1
  26. package/Microsoft.ReactNative/Views/RawTextViewManager.cpp +1 -0
  27. package/Microsoft.ReactNative/Views/TextInputViewManager.cpp +13 -0
  28. package/Microsoft.ReactNative/Views/TextViewManager.cpp +11 -0
  29. package/Microsoft.ReactNative/Views/TextViewManager.h +1 -0
  30. package/Microsoft.ReactNative/Views/ViewManagerBase.cpp +5 -9
  31. package/Microsoft.ReactNative/Views/ViewManagerBase.h +1 -0
  32. package/Microsoft.ReactNative/Views/VirtualTextViewManager.cpp +11 -0
  33. package/Microsoft.ReactNative/Views/VirtualTextViewManager.h +2 -0
  34. package/PropertySheets/Generated/PackageVersion.g.props +1 -1
  35. package/Scripts/OfficeReact.Win32.nuspec +0 -1
  36. package/Shared/Shared.vcxitems +0 -1
  37. package/Shared/Shared.vcxitems.filters +0 -3
  38. package/package.json +7 -7
  39. package/Shared/IUIManager.h +0 -90
@@ -7,7 +7,7 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<d9e820a361c20b62bc9a8c1f8ab34868>>
10
+ * @generated SignedSource<<7638d79ef666eac85302b8ce3706cab0>>
11
11
  */
12
12
 
13
13
 
@@ -4263,9 +4263,11 @@ var ContextOnlyDispatcher = {
4263
4263
  },
4264
4264
  useSyncExternalStore: mountSyncExternalStore,
4265
4265
  useId: function() {
4266
- var hook = mountWorkInProgressHook();
4267
- var id = "r:" + (globalClientIdCounter++).toString(32);
4268
- return (hook.memoizedState = id);
4266
+ var hook = mountWorkInProgressHook(),
4267
+ identifierPrefix = workInProgressRoot.identifierPrefix,
4268
+ globalClientId = globalClientIdCounter++;
4269
+ identifierPrefix = identifierPrefix + "r:" + globalClientId.toString(32);
4270
+ return (hook.memoizedState = identifierPrefix);
4269
4271
  },
4270
4272
  unstable_isNewReconciler: !1
4271
4273
  },
@@ -4907,11 +4909,7 @@ function completeWork(current, workInProgress, renderLanes) {
4907
4909
  !renderLanes &&
4908
4910
  ((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
4909
4911
  )
4910
- if (
4911
- (null === current &&
4912
- !0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
4913
- 0 !== (suspenseStackCursor.current & 1)
4914
- )
4912
+ if (null === current || 0 !== (suspenseStackCursor.current & 1))
4915
4913
  0 === workInProgressRootExitStatus &&
4916
4914
  (workInProgressRootExitStatus = 3);
4917
4915
  else {
@@ -5626,11 +5624,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
5626
5624
  null !== current && null === current.memoizedState
5627
5625
  ? !1
5628
5626
  : 0 !== (suspenseContext & 2));
5629
- JSCompiler_temp
5630
- ? ((showFallback = !0), (workInProgress.flags &= -129))
5631
- : (null !== current && null === current.memoizedState) ||
5632
- !0 === nextProps.unstable_avoidThisFallback ||
5633
- (suspenseContext |= 1);
5627
+ if (JSCompiler_temp) (showFallback = !0), (workInProgress.flags &= -129);
5628
+ else if (null === current || null !== current.memoizedState)
5629
+ suspenseContext |= 1;
5634
5630
  push(suspenseStackCursor, suspenseContext & 1);
5635
5631
  if (null === current) {
5636
5632
  current = nextProps.children;
@@ -7337,8 +7333,6 @@ function handleError(root, thrownValue$jscomp$0) {
7337
7333
  }
7338
7334
  b: {
7339
7335
  sourceFiber$jscomp$0 = returnFiber;
7340
- var hasInvisibleParentBoundary =
7341
- 0 !== (suspenseStackCursor.current & 1);
7342
7336
  do {
7343
7337
  var JSCompiler_temp;
7344
7338
  if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
@@ -7348,12 +7342,6 @@ function handleError(root, thrownValue$jscomp$0) {
7348
7342
  ? null !== nextState.dehydrated
7349
7343
  ? !0
7350
7344
  : !1
7351
- : !0 !==
7352
- sourceFiber$jscomp$0.memoizedProps
7353
- .unstable_avoidThisFallback
7354
- ? !0
7355
- : hasInvisibleParentBoundary
7356
- ? !1
7357
7345
  : !0;
7358
7346
  }
7359
7347
  if (JSCompiler_temp) {
@@ -7622,7 +7610,7 @@ function commitRootImpl(root, renderPriorityLevel) {
7622
7610
  lanes = root.finishedLanes;
7623
7611
  supportsUserTimingV3 &&
7624
7612
  (markAndClear("--commit-start-" + lanes),
7625
- markAndClear("--react-version-18.0.0-c1220ebdd-20211123"),
7613
+ markAndClear("--react-version-18.0.0-rc.0-a049aa015-20211213"),
7626
7614
  markAndClear("--profiler-version-1"),
7627
7615
  getLaneLabels(),
7628
7616
  markAndClear("--react-lane-labels-" + laneLabels.join(",")),
@@ -8654,7 +8642,7 @@ function createFiberFromPortal(portal, mode, lanes) {
8654
8642
  };
8655
8643
  return mode;
8656
8644
  }
8657
- function FiberRootNode(containerInfo, tag, hydrate) {
8645
+ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
8658
8646
  this.tag = tag;
8659
8647
  this.containerInfo = containerInfo;
8660
8648
  this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
@@ -8667,6 +8655,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
8667
8655
  this.expirationTimes = createLaneMap(-1);
8668
8656
  this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
8669
8657
  this.entanglements = createLaneMap(0);
8658
+ this.identifierPrefix = identifierPrefix;
8670
8659
  this.passiveEffectDuration = this.effectDuration = 0;
8671
8660
  this.memoizedUpdaters = new Set();
8672
8661
  containerInfo = this.pendingUpdatersLaneMap = [];
@@ -8878,7 +8867,7 @@ var roots = new Map(),
8878
8867
  devToolsConfig$jscomp$inline_1020 = {
8879
8868
  findFiberByHostInstance: getInstanceFromInstance,
8880
8869
  bundleType: 0,
8881
- version: "18.0.0-c1220ebdd-20211123",
8870
+ version: "18.0.0-rc.0-a049aa015-20211213",
8882
8871
  rendererPackageName: "react-native-renderer",
8883
8872
  rendererConfig: {
8884
8873
  getInspectorDataForViewTag: function() {
@@ -8893,7 +8882,7 @@ var roots = new Map(),
8893
8882
  }.bind(null, findNodeHandle)
8894
8883
  }
8895
8884
  };
8896
- var internals$jscomp$inline_1308 = {
8885
+ var internals$jscomp$inline_1307 = {
8897
8886
  bundleType: devToolsConfig$jscomp$inline_1020.bundleType,
8898
8887
  version: devToolsConfig$jscomp$inline_1020.version,
8899
8888
  rendererPackageName: devToolsConfig$jscomp$inline_1020.rendererPackageName,
@@ -8920,19 +8909,19 @@ var internals$jscomp$inline_1308 = {
8920
8909
  scheduleRoot: null,
8921
8910
  setRefreshHandler: null,
8922
8911
  getCurrentFiber: null,
8923
- reconcilerVersion: "18.0.0-c1220ebdd-20211123"
8912
+ reconcilerVersion: "18.0.0-rc.0-a049aa015-20211213"
8924
8913
  };
8925
8914
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
8926
- var hook$jscomp$inline_1309 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
8915
+ var hook$jscomp$inline_1308 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
8927
8916
  if (
8928
- !hook$jscomp$inline_1309.isDisabled &&
8929
- hook$jscomp$inline_1309.supportsFiber
8917
+ !hook$jscomp$inline_1308.isDisabled &&
8918
+ hook$jscomp$inline_1308.supportsFiber
8930
8919
  )
8931
8920
  try {
8932
- (rendererID = hook$jscomp$inline_1309.inject(
8933
- internals$jscomp$inline_1308
8921
+ (rendererID = hook$jscomp$inline_1308.inject(
8922
+ internals$jscomp$inline_1307
8934
8923
  )),
8935
- (injectedHook = hook$jscomp$inline_1309);
8924
+ (injectedHook = hook$jscomp$inline_1308);
8936
8925
  } catch (err) {}
8937
8926
  }
8938
8927
  exports.createPortal = function(children, containerTag) {
@@ -8972,7 +8961,7 @@ exports.render = function(element, containerTag, callback, concurrentRoot) {
8972
8961
  var root = roots.get(containerTag);
8973
8962
  root ||
8974
8963
  ((root = concurrentRoot ? 1 : 0),
8975
- (concurrentRoot = new FiberRootNode(containerTag, root, !1)),
8964
+ (concurrentRoot = new FiberRootNode(containerTag, root, !1, "")),
8976
8965
  (root = 1 === root ? 1 : 0),
8977
8966
  isDevToolsPresent && (root |= 2),
8978
8967
  (root = createFiber(3, null, null, root)),
@@ -7,7 +7,7 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<8b128574fdea8d0a11f1cf1c1aefe59b>>
10
+ * @generated SignedSource<<b669579a231fa2a949698a91b71718b9>>
11
11
  */
12
12
 
13
13
  'use strict';
@@ -156,7 +156,7 @@ var invokeGuardedCallbackImpl = invokeGuardedCallbackProd;
156
156
  // when we call document.createEvent(). However this can cause confusing
157
157
  // errors: https://github.com/facebook/create-react-app/issues/3482
158
158
  // So we preemptively throw with a better message instead.
159
- if (typeof document === "undefined") {
159
+ if (typeof document === "undefined" || document === null) {
160
160
  throw new Error(
161
161
  "The `document` global was defined when React was initialized, but is not " +
162
162
  "defined anymore. This can happen in a test environment if a component " +
@@ -3156,6 +3156,7 @@ var enableProfilerCommitHooks = true;
3156
3156
  var enableLazyElements = false;
3157
3157
  var warnAboutStringRefs = false;
3158
3158
  var warnOnSubscriptionInsideStartTransition = false;
3159
+ var enableSuspenseAvoidThisFallback = false;
3159
3160
  var enableNewReconciler = false;
3160
3161
  var enableLazyContextPropagation = false;
3161
3162
 
@@ -6241,7 +6242,7 @@ function flushSyncCallbacks() {
6241
6242
  return null;
6242
6243
  }
6243
6244
 
6244
- var ReactVersion = "18.0.0-c1220ebdd-20211123";
6245
+ var ReactVersion = "18.0.0-rc.0-a049aa015-20211213";
6245
6246
 
6246
6247
  var SCHEDULING_PROFILER_VERSION = 1;
6247
6248
 
@@ -10681,16 +10682,9 @@ function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
10681
10682
 
10682
10683
  var props = workInProgress.memoizedProps; // Regular boundaries always capture.
10683
10684
 
10684
- if (props.unstable_avoidThisFallback !== true) {
10685
+ {
10685
10686
  return true;
10686
10687
  } // If it's a boundary we should avoid, then we prefer to bubble up to the
10687
- // parent boundary if it is currently invisible.
10688
-
10689
- if (hasInvisibleParent) {
10690
- return false;
10691
- } // If the parent is not able to handle it, we must handle it.
10692
-
10693
- return true;
10694
10688
  }
10695
10689
  function findFirstSuspended(row) {
10696
10690
  var node = row;
@@ -12439,12 +12433,19 @@ function getIsUpdatingOpaqueValueInRenderPhaseInDEV() {
12439
12433
 
12440
12434
  function mountId() {
12441
12435
  var hook = mountWorkInProgressHook();
12436
+ var root = getWorkInProgressRoot(); // TODO: In Fizz, id generation is specific to each server config. Maybe we
12437
+ // should do this in Fiber, too? Deferring this decision for now because
12438
+ // there's no other place to store the prefix except for an internal field on
12439
+ // the public createRoot object, which the fiber tree does not currently have
12440
+ // a reference to.
12441
+
12442
+ var identifierPrefix = root.identifierPrefix;
12442
12443
  var id;
12443
12444
 
12444
12445
  {
12445
12446
  // Use a lowercase r prefix for client-generated ids.
12446
12447
  var globalClientId = globalClientIdCounter++;
12447
- id = "r:" + globalClientId.toString(32);
12448
+ id = identifierPrefix + "r:" + globalClientId.toString(32);
12448
12449
  }
12449
12450
 
12450
12451
  hook.memoizedState = id;
@@ -13975,16 +13976,9 @@ function resetSuspendedComponent(sourceFiber, rootRenderLanes) {
13975
13976
 
13976
13977
  function getNearestSuspenseBoundaryToCapture(returnFiber) {
13977
13978
  var node = returnFiber;
13978
- var hasInvisibleParentBoundary = hasSuspenseContext(
13979
- suspenseStackCursor.current,
13980
- InvisibleParentSuspenseContext
13981
- );
13982
13979
 
13983
13980
  do {
13984
- if (
13985
- node.tag === SuspenseComponent &&
13986
- shouldCaptureSuspense(node, hasInvisibleParentBoundary)
13987
- ) {
13981
+ if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) {
13988
13982
  return node;
13989
13983
  } // This boundary already captured during this render. Continue to the next
13990
13984
  // boundary.
@@ -14779,7 +14773,8 @@ function completeWork(current, workInProgress, renderLanes) {
14779
14773
  // should be able to immediately restart from within throwException.
14780
14774
  var hasInvisibleChildContext =
14781
14775
  current === null &&
14782
- workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
14776
+ (workInProgress.memoizedProps.unstable_avoidThisFallback !== true ||
14777
+ !enableSuspenseAvoidThisFallback);
14783
14778
 
14784
14779
  if (
14785
14780
  hasInvisibleChildContext ||
@@ -16605,7 +16600,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
16605
16600
  // Mark this subtree context as having at least one invisible parent that could
16606
16601
  // handle the fallback state.
16607
16602
  // Avoided boundaries are not considered since they cannot handle preferred fallback states.
16608
- if (nextProps.unstable_avoidThisFallback !== true) {
16603
+ {
16609
16604
  suspenseContext = addSubtreeSuspenseContext(
16610
16605
  suspenseContext,
16611
16606
  InvisibleParentSuspenseContext
@@ -23942,7 +23937,7 @@ function assignFiberPropertiesInDEV(target, source) {
23942
23937
  return target;
23943
23938
  }
23944
23939
 
23945
- function FiberRootNode(containerInfo, tag, hydrate) {
23940
+ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
23946
23941
  this.tag = tag;
23947
23942
  this.containerInfo = containerInfo;
23948
23943
  this.pendingChildren = null;
@@ -23965,6 +23960,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
23965
23960
  this.finishedLanes = NoLanes;
23966
23961
  this.entangledLanes = NoLanes;
23967
23962
  this.entanglements = createLaneMap(NoLanes);
23963
+ this.identifierPrefix = identifierPrefix;
23968
23964
 
23969
23965
  {
23970
23966
  this.effectDuration = 0;
@@ -23999,9 +23995,10 @@ function createFiberRoot(
23999
23995
  hydrate,
24000
23996
  hydrationCallbacks,
24001
23997
  isStrictMode,
24002
- concurrentUpdatesByDefaultOverride
23998
+ concurrentUpdatesByDefaultOverride,
23999
+ identifierPrefix
24003
24000
  ) {
24004
- var root = new FiberRootNode(containerInfo, tag, hydrate);
24001
+ var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix);
24005
24002
  // stateNode is any.
24006
24003
 
24007
24004
  var uninitializedFiber = createHostRootFiber(
@@ -24148,7 +24145,8 @@ function createContainer(
24148
24145
  hydrate,
24149
24146
  hydrationCallbacks,
24150
24147
  isStrictMode,
24151
- concurrentUpdatesByDefaultOverride
24148
+ concurrentUpdatesByDefaultOverride,
24149
+ identifierPrefix
24152
24150
  ) {
24153
24151
  return createFiberRoot(
24154
24152
  containerInfo,
@@ -24156,7 +24154,8 @@ function createContainer(
24156
24154
  hydrate,
24157
24155
  hydrationCallbacks,
24158
24156
  isStrictMode,
24159
- concurrentUpdatesByDefaultOverride
24157
+ concurrentUpdatesByDefaultOverride,
24158
+ identifierPrefix
24160
24159
  );
24161
24160
  }
24162
24161
  function updateContainer(element, container, parentComponent, callback) {
@@ -24935,7 +24934,15 @@ function render(element, containerTag, callback) {
24935
24934
  if (!root) {
24936
24935
  // TODO (bvaughn): If we decide to keep the wrapper component,
24937
24936
  // We could create a wrapper for containerTag as well to reduce special casing.
24938
- root = createContainer(containerTag, LegacyRoot, false, null, false, null);
24937
+ root = createContainer(
24938
+ containerTag,
24939
+ LegacyRoot,
24940
+ false,
24941
+ null,
24942
+ false,
24943
+ null,
24944
+ ""
24945
+ );
24939
24946
  roots.set(containerTag, root);
24940
24947
  }
24941
24948
 
@@ -7,7 +7,7 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<c587a7b3e41dfa079412f1481033cff7>>
10
+ * @generated SignedSource<<e78790b1fea52e4a08e0efaf4b202318>>
11
11
  */
12
12
 
13
13
  "use strict";
@@ -4047,9 +4047,11 @@ var ContextOnlyDispatcher = {
4047
4047
  },
4048
4048
  useSyncExternalStore: mountSyncExternalStore,
4049
4049
  useId: function() {
4050
- var hook = mountWorkInProgressHook();
4051
- var id = "r:" + (globalClientIdCounter++).toString(32);
4052
- return (hook.memoizedState = id);
4050
+ var hook = mountWorkInProgressHook(),
4051
+ identifierPrefix = workInProgressRoot.identifierPrefix,
4052
+ globalClientId = globalClientIdCounter++;
4053
+ identifierPrefix = identifierPrefix + "r:" + globalClientId.toString(32);
4054
+ return (hook.memoizedState = identifierPrefix);
4053
4055
  },
4054
4056
  unstable_isNewReconciler: !1
4055
4057
  },
@@ -4455,11 +4457,7 @@ function completeWork(current, workInProgress, renderLanes) {
4455
4457
  !renderLanes &&
4456
4458
  ((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
4457
4459
  )
4458
- if (
4459
- (null === current &&
4460
- !0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
4461
- 0 !== (suspenseStackCursor.current & 1)
4462
- )
4460
+ if (null === current || 0 !== (suspenseStackCursor.current & 1))
4463
4461
  0 === workInProgressRootExitStatus &&
4464
4462
  (workInProgressRootExitStatus = 3);
4465
4463
  else {
@@ -5121,11 +5119,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
5121
5119
  null !== current && null === current.memoizedState
5122
5120
  ? !1
5123
5121
  : 0 !== (suspenseContext & 2));
5124
- JSCompiler_temp
5125
- ? ((showFallback = !0), (workInProgress.flags &= -129))
5126
- : (null !== current && null === current.memoizedState) ||
5127
- !0 === nextProps.unstable_avoidThisFallback ||
5128
- (suspenseContext |= 1);
5122
+ if (JSCompiler_temp) (showFallback = !0), (workInProgress.flags &= -129);
5123
+ else if (null === current || null !== current.memoizedState)
5124
+ suspenseContext |= 1;
5129
5125
  push(suspenseStackCursor, suspenseContext & 1);
5130
5126
  if (null === current) {
5131
5127
  current = nextProps.children;
@@ -6883,8 +6879,6 @@ function handleError(root$jscomp$0, thrownValue) {
6883
6879
  }
6884
6880
  b: {
6885
6881
  sourceFiber$jscomp$0 = returnFiber;
6886
- var hasInvisibleParentBoundary =
6887
- 0 !== (suspenseStackCursor.current & 1);
6888
6882
  do {
6889
6883
  var JSCompiler_temp;
6890
6884
  if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
@@ -6894,12 +6888,6 @@ function handleError(root$jscomp$0, thrownValue) {
6894
6888
  ? null !== nextState.dehydrated
6895
6889
  ? !0
6896
6890
  : !1
6897
- : !0 !==
6898
- sourceFiber$jscomp$0.memoizedProps
6899
- .unstable_avoidThisFallback
6900
- ? !0
6901
- : hasInvisibleParentBoundary
6902
- ? !1
6903
6891
  : !0;
6904
6892
  }
6905
6893
  if (JSCompiler_temp) {
@@ -8037,7 +8025,7 @@ function createFiberFromPortal(portal, mode, lanes) {
8037
8025
  };
8038
8026
  return mode;
8039
8027
  }
8040
- function FiberRootNode(containerInfo, tag, hydrate) {
8028
+ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
8041
8029
  this.tag = tag;
8042
8030
  this.containerInfo = containerInfo;
8043
8031
  this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
@@ -8050,6 +8038,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
8050
8038
  this.expirationTimes = createLaneMap(-1);
8051
8039
  this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
8052
8040
  this.entanglements = createLaneMap(0);
8041
+ this.identifierPrefix = identifierPrefix;
8053
8042
  }
8054
8043
  function createPortal(children, containerInfo, implementation) {
8055
8044
  var key =
@@ -8263,7 +8252,7 @@ var roots = new Map(),
8263
8252
  devToolsConfig$jscomp$inline_966 = {
8264
8253
  findFiberByHostInstance: getInstanceFromTag,
8265
8254
  bundleType: 0,
8266
- version: "18.0.0-c1220ebdd-20211123",
8255
+ version: "18.0.0-rc.0-a049aa015-20211213",
8267
8256
  rendererPackageName: "react-native-renderer",
8268
8257
  rendererConfig: {
8269
8258
  getInspectorDataForViewTag: function() {
@@ -8278,7 +8267,7 @@ var roots = new Map(),
8278
8267
  }.bind(null, findNodeHandle)
8279
8268
  }
8280
8269
  };
8281
- var internals$jscomp$inline_1230 = {
8270
+ var internals$jscomp$inline_1229 = {
8282
8271
  bundleType: devToolsConfig$jscomp$inline_966.bundleType,
8283
8272
  version: devToolsConfig$jscomp$inline_966.version,
8284
8273
  rendererPackageName: devToolsConfig$jscomp$inline_966.rendererPackageName,
@@ -8305,19 +8294,19 @@ var internals$jscomp$inline_1230 = {
8305
8294
  scheduleRoot: null,
8306
8295
  setRefreshHandler: null,
8307
8296
  getCurrentFiber: null,
8308
- reconcilerVersion: "18.0.0-c1220ebdd-20211123"
8297
+ reconcilerVersion: "18.0.0-rc.0-a049aa015-20211213"
8309
8298
  };
8310
8299
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
8311
- var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
8300
+ var hook$jscomp$inline_1230 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
8312
8301
  if (
8313
- !hook$jscomp$inline_1231.isDisabled &&
8314
- hook$jscomp$inline_1231.supportsFiber
8302
+ !hook$jscomp$inline_1230.isDisabled &&
8303
+ hook$jscomp$inline_1230.supportsFiber
8315
8304
  )
8316
8305
  try {
8317
- (rendererID = hook$jscomp$inline_1231.inject(
8318
- internals$jscomp$inline_1230
8306
+ (rendererID = hook$jscomp$inline_1230.inject(
8307
+ internals$jscomp$inline_1229
8319
8308
  )),
8320
- (injectedHook = hook$jscomp$inline_1231);
8309
+ (injectedHook = hook$jscomp$inline_1230);
8321
8310
  } catch (err) {}
8322
8311
  }
8323
8312
  exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
@@ -8363,7 +8352,7 @@ exports.findNodeHandle = findNodeHandle;
8363
8352
  exports.render = function(element, containerTag, callback) {
8364
8353
  var root = roots.get(containerTag);
8365
8354
  if (!root) {
8366
- root = new FiberRootNode(containerTag, 0, !1);
8355
+ root = new FiberRootNode(containerTag, 0, !1, "");
8367
8356
  var JSCompiler_inline_result = createFiber(3, null, null, 0);
8368
8357
  root.current = JSCompiler_inline_result;
8369
8358
  JSCompiler_inline_result.stateNode = root;
@@ -7,7 +7,7 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<d52f24e9901f9340c97ef19e63d99705>>
10
+ * @generated SignedSource<<62369d90367239846ffa76aa77ae7e87>>
11
11
  */
12
12
 
13
13
 
@@ -4234,9 +4234,11 @@ var ContextOnlyDispatcher = {
4234
4234
  },
4235
4235
  useSyncExternalStore: mountSyncExternalStore,
4236
4236
  useId: function() {
4237
- var hook = mountWorkInProgressHook();
4238
- var id = "r:" + (globalClientIdCounter++).toString(32);
4239
- return (hook.memoizedState = id);
4237
+ var hook = mountWorkInProgressHook(),
4238
+ identifierPrefix = workInProgressRoot.identifierPrefix,
4239
+ globalClientId = globalClientIdCounter++;
4240
+ identifierPrefix = identifierPrefix + "r:" + globalClientId.toString(32);
4241
+ return (hook.memoizedState = identifierPrefix);
4240
4242
  },
4241
4243
  unstable_isNewReconciler: !1
4242
4244
  },
@@ -4742,11 +4744,7 @@ function completeWork(current, workInProgress, renderLanes) {
4742
4744
  !renderLanes &&
4743
4745
  ((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
4744
4746
  )
4745
- if (
4746
- (null === current &&
4747
- !0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
4748
- 0 !== (suspenseStackCursor.current & 1)
4749
- )
4747
+ if (null === current || 0 !== (suspenseStackCursor.current & 1))
4750
4748
  0 === workInProgressRootExitStatus &&
4751
4749
  (workInProgressRootExitStatus = 3);
4752
4750
  else {
@@ -5426,11 +5424,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
5426
5424
  null !== current && null === current.memoizedState
5427
5425
  ? !1
5428
5426
  : 0 !== (suspenseContext & 2));
5429
- JSCompiler_temp
5430
- ? ((showFallback = !0), (workInProgress.flags &= -129))
5431
- : (null !== current && null === current.memoizedState) ||
5432
- !0 === nextProps.unstable_avoidThisFallback ||
5433
- (suspenseContext |= 1);
5427
+ if (JSCompiler_temp) (showFallback = !0), (workInProgress.flags &= -129);
5428
+ else if (null === current || null !== current.memoizedState)
5429
+ suspenseContext |= 1;
5434
5430
  push(suspenseStackCursor, suspenseContext & 1);
5435
5431
  if (null === current) {
5436
5432
  current = nextProps.children;
@@ -7430,8 +7426,6 @@ function handleError(root, thrownValue$jscomp$0) {
7430
7426
  }
7431
7427
  b: {
7432
7428
  sourceFiber$jscomp$0 = returnFiber;
7433
- var hasInvisibleParentBoundary =
7434
- 0 !== (suspenseStackCursor.current & 1);
7435
7429
  do {
7436
7430
  var JSCompiler_temp;
7437
7431
  if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
@@ -7441,12 +7435,6 @@ function handleError(root, thrownValue$jscomp$0) {
7441
7435
  ? null !== nextState.dehydrated
7442
7436
  ? !0
7443
7437
  : !1
7444
- : !0 !==
7445
- sourceFiber$jscomp$0.memoizedProps
7446
- .unstable_avoidThisFallback
7447
- ? !0
7448
- : hasInvisibleParentBoundary
7449
- ? !1
7450
7438
  : !0;
7451
7439
  }
7452
7440
  if (JSCompiler_temp) {
@@ -7701,7 +7689,7 @@ function commitRootImpl(root, renderPriorityLevel) {
7701
7689
  lanes = root.finishedLanes;
7702
7690
  supportsUserTimingV3 &&
7703
7691
  (markAndClear("--commit-start-" + lanes),
7704
- markAndClear("--react-version-18.0.0-c1220ebdd-20211123"),
7692
+ markAndClear("--react-version-18.0.0-rc.0-a049aa015-20211213"),
7705
7693
  markAndClear("--profiler-version-1"),
7706
7694
  getLaneLabels(),
7707
7695
  markAndClear("--react-lane-labels-" + laneLabels.join(",")),
@@ -8726,7 +8714,7 @@ function createFiberFromPortal(portal, mode, lanes) {
8726
8714
  };
8727
8715
  return mode;
8728
8716
  }
8729
- function FiberRootNode(containerInfo, tag, hydrate) {
8717
+ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
8730
8718
  this.tag = tag;
8731
8719
  this.containerInfo = containerInfo;
8732
8720
  this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
@@ -8739,6 +8727,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
8739
8727
  this.expirationTimes = createLaneMap(-1);
8740
8728
  this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
8741
8729
  this.entanglements = createLaneMap(0);
8730
+ this.identifierPrefix = identifierPrefix;
8742
8731
  this.passiveEffectDuration = this.effectDuration = 0;
8743
8732
  this.memoizedUpdaters = new Set();
8744
8733
  containerInfo = this.pendingUpdatersLaneMap = [];
@@ -8957,7 +8946,7 @@ var roots = new Map(),
8957
8946
  devToolsConfig$jscomp$inline_1061 = {
8958
8947
  findFiberByHostInstance: getInstanceFromTag,
8959
8948
  bundleType: 0,
8960
- version: "18.0.0-c1220ebdd-20211123",
8949
+ version: "18.0.0-rc.0-a049aa015-20211213",
8961
8950
  rendererPackageName: "react-native-renderer",
8962
8951
  rendererConfig: {
8963
8952
  getInspectorDataForViewTag: function() {
@@ -8972,7 +8961,7 @@ var roots = new Map(),
8972
8961
  }.bind(null, findNodeHandle)
8973
8962
  }
8974
8963
  };
8975
- var internals$jscomp$inline_1359 = {
8964
+ var internals$jscomp$inline_1358 = {
8976
8965
  bundleType: devToolsConfig$jscomp$inline_1061.bundleType,
8977
8966
  version: devToolsConfig$jscomp$inline_1061.version,
8978
8967
  rendererPackageName: devToolsConfig$jscomp$inline_1061.rendererPackageName,
@@ -8999,19 +8988,19 @@ var internals$jscomp$inline_1359 = {
8999
8988
  scheduleRoot: null,
9000
8989
  setRefreshHandler: null,
9001
8990
  getCurrentFiber: null,
9002
- reconcilerVersion: "18.0.0-c1220ebdd-20211123"
8991
+ reconcilerVersion: "18.0.0-rc.0-a049aa015-20211213"
9003
8992
  };
9004
8993
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
9005
- var hook$jscomp$inline_1360 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
8994
+ var hook$jscomp$inline_1359 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
9006
8995
  if (
9007
- !hook$jscomp$inline_1360.isDisabled &&
9008
- hook$jscomp$inline_1360.supportsFiber
8996
+ !hook$jscomp$inline_1359.isDisabled &&
8997
+ hook$jscomp$inline_1359.supportsFiber
9009
8998
  )
9010
8999
  try {
9011
- (rendererID = hook$jscomp$inline_1360.inject(
9012
- internals$jscomp$inline_1359
9000
+ (rendererID = hook$jscomp$inline_1359.inject(
9001
+ internals$jscomp$inline_1358
9013
9002
  )),
9014
- (injectedHook = hook$jscomp$inline_1360);
9003
+ (injectedHook = hook$jscomp$inline_1359);
9015
9004
  } catch (err) {}
9016
9005
  }
9017
9006
  exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
@@ -9057,7 +9046,7 @@ exports.findNodeHandle = findNodeHandle;
9057
9046
  exports.render = function(element, containerTag, callback) {
9058
9047
  var root = roots.get(containerTag);
9059
9048
  if (!root) {
9060
- root = new FiberRootNode(containerTag, 0, !1);
9049
+ root = new FiberRootNode(containerTag, 0, !1, "");
9061
9050
  var JSCompiler_inline_result = 0;
9062
9051
  isDevToolsPresent && (JSCompiler_inline_result |= 2);
9063
9052
  JSCompiler_inline_result = createFiber(
@@ -112,6 +112,10 @@ void ABIViewManager::GetNativeProps(const winrt::Microsoft::ReactNative::IJSValu
112
112
  void ABIViewManager::UpdateProperties(
113
113
  ::Microsoft::ReactNative::ShadowNodeBase *nodeToUpdate,
114
114
  winrt::Microsoft::ReactNative::JSValueObject &props) {
115
+ if (m_viewManagerRequiresNativeLayout && m_viewManagerRequiresNativeLayout.RequiresNativeLayout()) {
116
+ MarkDirty(nodeToUpdate->m_tag);
117
+ }
118
+
115
119
  if (m_viewManagerWithNativeProperties) {
116
120
  auto view = nodeToUpdate->GetView().as<xaml::FrameworkElement>();
117
121
 
@@ -473,9 +473,9 @@ void FabricUIManager::schedulerDidCloneShadowNode(
473
473
  }
474
474
 
475
475
  void FabricUIManager::schedulerDidDispatchCommand(
476
- const facebook::react::ShadowView &shadowView,
476
+ facebook::react::ShadowView const &shadowView,
477
477
  std::string const &commandName,
478
- folly::dynamic const args) {
478
+ folly::dynamic const &arg) {
479
479
  assert(false);
480
480
  }
481
481
 
@@ -78,9 +78,9 @@ struct FabricUIManager final : public std::enable_shared_from_this<FabricUIManag
78
78
  const facebook::react::ShadowNode &oldShadowNode,
79
79
  const facebook::react::ShadowNode &newShadowNode) override;
80
80
  virtual void schedulerDidDispatchCommand(
81
- const facebook::react::ShadowView &shadowView,
81
+ facebook::react::ShadowView const &shadowView,
82
82
  std::string const &commandName,
83
- folly::dynamic const args) override;
83
+ folly::dynamic const &arg) override;
84
84
  virtual void schedulerDidSetIsJSResponder(
85
85
  facebook::react::ShadowView const &shadowView,
86
86
  bool isJSResponder,
@@ -483,6 +483,8 @@
483
483
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\telemetry\TransactionTelemetry.cpp" />
484
484
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\templateprocessor\UITemplateProcessor.cpp" DisableSpecificWarnings="4244;%(DisableSpecificWarnings)" />
485
485
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\textlayoutmanager\TextMeasureCache.cpp" />
486
+ <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\bindingUtils.cpp" />
487
+ <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\SurfaceRegistryBinding.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
486
488
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\UIManager.cpp" />
487
489
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\UIManagerBinding.cpp" DisableSpecificWarnings="4389;4715;%(DisableSpecificWarnings)" />
488
490
  <ClCompile Include="$(ReactNativeWindowsDir)codegen\react\components\rnwcore\Props.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)">