react-native-windows 0.74.46 → 0.74.48

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 (51) hide show
  1. package/Directory.Build.props +1 -1
  2. package/Libraries/Components/View/View.windows.js +13 -5
  3. package/Libraries/Components/View/ViewAccessibility.d.ts +67 -0
  4. package/Libraries/Components/View/ViewPropTypes.windows.js +2 -0
  5. package/Libraries/NativeComponent/BaseViewConfig.windows.js +4 -0
  6. package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +1 -1
  7. package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +47 -0
  8. package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.h +1 -0
  9. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +81 -94
  10. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +1 -1
  11. package/Microsoft.ReactNative/Fabric/Composition/CompositionTextProvider.cpp +115 -0
  12. package/Microsoft.ReactNative/Fabric/Composition/CompositionTextProvider.h +41 -0
  13. package/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.cpp +319 -0
  14. package/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.h +59 -0
  15. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +48 -1
  16. package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp +43 -34
  17. package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +2 -2
  18. package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.cpp +11 -0
  19. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +152 -17
  20. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +5 -0
  21. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputProps.cpp +2 -1
  22. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputProps.h +2 -1
  23. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +43 -1
  24. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +27 -2
  25. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewEventEmitter.cpp +22 -4
  26. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewEventEmitter.h +16 -3
  27. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.cpp +24 -0
  28. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h +4 -0
  29. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/MouseEvent.h +20 -0
  30. package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +133 -32
  31. package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.h +12 -0
  32. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +1 -3
  33. package/Microsoft.ReactNative/packages.lock.json +30 -106
  34. package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +1 -1
  35. package/Microsoft.ReactNative.Managed/packages.lock.json +3 -3
  36. package/Microsoft.ReactNative.Managed.CodeGen/Microsoft.ReactNative.Managed.CodeGen.csproj +1 -1
  37. package/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Debug.pubxml +1 -1
  38. package/Microsoft.ReactNative.Managed.CodeGen/Properties/PublishProfiles/DeployAsTool-Release.pubxml +1 -1
  39. package/Microsoft.ReactNative.Managed.CodeGen/packages.lock.json +3 -3
  40. package/PropertySheets/External/Microsoft.ReactNative.WindowsSdk.Default.props +4 -4
  41. package/PropertySheets/Generated/PackageVersion.g.props +3 -3
  42. package/PropertySheets/JSEngine.props +1 -1
  43. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/test/testlib.cpp +4 -4
  44. package/ReactCommon/cgmanifest.json +1 -1
  45. package/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 +26 -4
  46. package/Scripts/Tfs/Start-TestServers.ps1 +2 -1
  47. package/Scripts/rnw-dependencies.ps1 +38 -25
  48. package/Shared/Shared.vcxitems +6 -0
  49. package/Shared/Shared.vcxitems.filters +8 -0
  50. package/package.json +3 -3
  51. package/fmt/packages.lock.json +0 -13
@@ -39,6 +39,26 @@ HostPlatformViewProps::HostPlatformViewProps(
39
39
  CoreFeatures::enablePropIteratorSetter
40
40
  ? sourceProps.accessibilitySetSize
41
41
  : convertRawProp(context, rawProps, "accessibilitySetSize", sourceProps.accessibilitySetSize, 0)),
42
+ accessibilityLevel(
43
+ CoreFeatures::enablePropIteratorSetter
44
+ ? sourceProps.accessibilityLevel
45
+ : convertRawProp(context, rawProps, "accessibilityLevel", sourceProps.accessibilityLevel, 0)),
46
+ accessibilityItemType(
47
+ CoreFeatures::enablePropIteratorSetter
48
+ ? sourceProps.accessibilityItemType
49
+ : convertRawProp(context, rawProps, "accessibilityItemType", sourceProps.accessibilityItemType, {})),
50
+ accessibilityAccessKey(
51
+ CoreFeatures::enablePropIteratorSetter
52
+ ? sourceProps.accessibilityAccessKey
53
+ : convertRawProp(context, rawProps, "accessibilityAccessKey", sourceProps.accessibilityAccessKey, {})),
54
+ accessibilityDescription(
55
+ CoreFeatures::enablePropIteratorSetter ? sourceProps.accessibilityDescription
56
+ : convertRawProp(
57
+ context,
58
+ rawProps,
59
+ "accessibilityDescription",
60
+ sourceProps.accessibilityDescription,
61
+ {})),
42
62
  accessibilityLiveRegion(
43
63
  CoreFeatures::enablePropIteratorSetter ? sourceProps.accessibilityLiveRegion
44
64
  : convertRawProp(
@@ -83,6 +103,10 @@ void HostPlatformViewProps::setProp(
83
103
  RAW_SET_PROP_SWITCH_CASE_BASIC(focusable);
84
104
  RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityPosInSet);
85
105
  RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilitySetSize);
106
+ RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityLevel);
107
+ RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityItemType);
108
+ RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityAccessKey);
109
+ RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityDescription);
86
110
  RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityLiveRegion);
87
111
  RAW_SET_PROP_SWITCH_CASE_BASIC(keyDownEvents);
88
112
  RAW_SET_PROP_SWITCH_CASE_BASIC(keyUpEvents);
@@ -27,6 +27,10 @@ class HostPlatformViewProps : public BaseViewProps {
27
27
  int accessibilityPosInSet{0};
28
28
  int accessibilitySetSize{0};
29
29
  std::string accessibilityLiveRegion{"none"};
30
+ int accessibilityLevel{0};
31
+ std::optional<std::string> accessibilityItemType{};
32
+ std::optional<std::string> accessibilityAccessKey{};
33
+ std::optional<std::string> accessibilityDescription{};
30
34
 
31
35
  // std::optional<std::string> overflowAnchor{};
32
36
  std::optional<std::string> tooltip{};
@@ -0,0 +1,20 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ #pragma once
5
+
6
+ #include <react/renderer/components/view/PointerEvent.h>
7
+
8
+ namespace facebook::react {
9
+
10
+ struct MouseEvent : public PointerEvent {
11
+ MouseEvent(PointerEvent &event) : PointerEvent(event){};
12
+
13
+ // We override the type so that it is not recorded as a PointerType,
14
+ // otherwise PointerEventsProcessor gets confused by the Windows specific MouseEvents
15
+ EventPayloadType getType() const override {
16
+ return static_cast<EventPayloadType>(-1);
17
+ };
18
+ };
19
+
20
+ } // namespace facebook::react
@@ -19,7 +19,7 @@ namespace facebook::react {
19
19
  void TextLayoutManager::GetTextLayout(
20
20
  AttributedStringBox attributedStringBox,
21
21
  ParagraphAttributes paragraphAttributes,
22
- LayoutConstraints layoutConstraints,
22
+ Size size,
23
23
  winrt::com_ptr<IDWriteTextLayout> &spTextLayout) noexcept {
24
24
  if (attributedStringBox.getValue().isEmpty())
25
25
  return;
@@ -43,10 +43,7 @@ void TextLayoutManager::GetTextLayout(
43
43
  static_cast<facebook::react::FontWeight>(DWRITE_FONT_WEIGHT_REGULAR))),
44
44
  style,
45
45
  DWRITE_FONT_STRETCH_NORMAL,
46
- (outerFragment.textAttributes.allowFontScaling.value_or(true) &&
47
- !std::isnan(outerFragment.textAttributes.fontSizeMultiplier))
48
- ? (outerFragment.textAttributes.fontSizeMultiplier * outerFragment.textAttributes.fontSize)
49
- : outerFragment.textAttributes.fontSize,
46
+ outerFragment.textAttributes.fontSize,
50
47
  L"",
51
48
  spTextFormat.put()));
52
49
 
@@ -95,11 +92,44 @@ void TextLayoutManager::GetTextLayout(
95
92
  str.c_str(), // The string to be laid out and formatted.
96
93
  static_cast<UINT32>(str.size()), // The length of the string.
97
94
  spTextFormat.get(), // The text format to apply to the string (contains font information, etc).
98
- layoutConstraints.maximumSize.width, // The width of the layout box.
99
- layoutConstraints.maximumSize.height, // The height of the layout box.
95
+ size.width, // The width of the layout box.
96
+ size.height, // The height of the layout box.
100
97
  spTextLayout.put() // The IDWriteTextLayout interface pointer.
101
98
  ));
102
99
 
100
+ // Apply max width constraint and ellipsis trimming to ensure consistency with rendering
101
+ DWRITE_TEXT_METRICS metrics;
102
+ winrt::check_hresult(spTextLayout->GetMetrics(&metrics));
103
+
104
+ if (metrics.width > size.width) {
105
+ spTextLayout->SetMaxWidth(size.width);
106
+ }
107
+
108
+ // Apply DWRITE_TRIMMING for ellipsizeMode
109
+ DWRITE_TRIMMING trimming = {};
110
+ winrt::com_ptr<IDWriteInlineObject> ellipsisSign;
111
+
112
+ switch (paragraphAttributes.ellipsizeMode) {
113
+ case facebook::react::EllipsizeMode::Tail:
114
+ trimming.granularity = DWRITE_TRIMMING_GRANULARITY_CHARACTER;
115
+ break;
116
+ case facebook::react::EllipsizeMode::Clip:
117
+ trimming.granularity = DWRITE_TRIMMING_GRANULARITY_NONE;
118
+ break;
119
+ default:
120
+ trimming.granularity = DWRITE_TRIMMING_GRANULARITY_CHARACTER; // Default to tail behavior
121
+ break;
122
+ }
123
+
124
+ // Use DWriteFactory to create the ellipsis trimming sign
125
+ if (trimming.granularity != DWRITE_TRIMMING_GRANULARITY_NONE) {
126
+ auto dwriteFactory = Microsoft::ReactNative::DWriteFactory();
127
+ HRESULT hr = dwriteFactory->CreateEllipsisTrimmingSign(spTextLayout.get(), ellipsisSign.put());
128
+ if (SUCCEEDED(hr)) {
129
+ spTextLayout->SetTrimming(&trimming, ellipsisSign.get());
130
+ }
131
+ }
132
+
103
133
  unsigned int position = 0;
104
134
  unsigned int length = 0;
105
135
  for (const auto &fragment : fragments) {
@@ -121,11 +151,7 @@ void TextLayoutManager::GetTextLayout(
121
151
  attributes.fontWeight.value_or(static_cast<facebook::react::FontWeight>(DWRITE_FONT_WEIGHT_REGULAR))),
122
152
  range));
123
153
  winrt::check_hresult(spTextLayout->SetFontStyle(fragmentStyle, range));
124
- winrt::check_hresult(spTextLayout->SetFontSize(
125
- (attributes.allowFontScaling.value_or(true) && !std::isnan(attributes.fontSizeMultiplier))
126
- ? (attributes.fontSizeMultiplier * attributes.fontSize)
127
- : attributes.fontSize,
128
- range));
154
+ winrt::check_hresult(spTextLayout->SetFontSize(attributes.fontSize, range));
129
155
 
130
156
  if (!isnan(attributes.letterSpacing)) {
131
157
  winrt::check_hresult(
@@ -136,6 +162,18 @@ void TextLayoutManager::GetTextLayout(
136
162
  }
137
163
  }
138
164
 
165
+ void TextLayoutManager::GetTextLayout(
166
+ AttributedStringBox attributedStringBox,
167
+ ParagraphAttributes paragraphAttributes,
168
+ LayoutConstraints layoutConstraints,
169
+ winrt::com_ptr<IDWriteTextLayout> &spTextLayout) noexcept {
170
+ if (attributedStringBox.getValue().isEmpty())
171
+ return;
172
+
173
+ GetTextLayout(attributedStringBox, paragraphAttributes, layoutConstraints.maximumSize, spTextLayout);
174
+ }
175
+
176
+ // measure entire text (inluding attachments)
139
177
  TextMeasurement TextLayoutManager::measure(
140
178
  AttributedStringBox attributedStringBox,
141
179
  ParagraphAttributes paragraphAttributes,
@@ -198,25 +236,6 @@ TextMeasurement TextLayoutManager::measureCachedSpannableById(
198
236
  return {};
199
237
  }
200
238
 
201
- LinesMeasurements TextLayoutManager::measureLines(
202
- AttributedString attributedString,
203
- ParagraphAttributes paragraphAttributes,
204
- Size size) const {
205
- assert(false);
206
- return {};
207
- }
208
-
209
- std::shared_ptr<void> TextLayoutManager::getHostTextStorage(
210
- AttributedString attributedString,
211
- ParagraphAttributes paragraphAttributes,
212
- LayoutConstraints layoutConstraints) const {
213
- return nullptr;
214
- }
215
-
216
- void *TextLayoutManager::getNativeTextLayoutManager() const {
217
- return (void *)this;
218
- }
219
-
220
239
  Microsoft::ReactNative::TextTransform ConvertTextTransform(std::optional<TextTransform> const &transform) {
221
240
  if (transform) {
222
241
  switch (transform.value()) {
@@ -232,10 +251,92 @@ Microsoft::ReactNative::TextTransform ConvertTextTransform(std::optional<TextTra
232
251
  break;
233
252
  }
234
253
  }
235
-
236
254
  return Microsoft::ReactNative::TextTransform::Undefined;
237
255
  }
238
256
 
257
+ LinesMeasurements TextLayoutManager::measureLines(
258
+ AttributedString attributedString,
259
+ ParagraphAttributes paragraphAttributes,
260
+ Size size) const {
261
+ LinesMeasurements lineMeasurements{};
262
+
263
+ winrt::com_ptr<IDWriteTextLayout> spTextLayout;
264
+
265
+ GetTextLayout(AttributedStringBox(attributedString), paragraphAttributes, size, spTextLayout);
266
+
267
+ if (spTextLayout) {
268
+ std::vector<DWRITE_LINE_METRICS> lineMetrics;
269
+ uint32_t actualLineCount;
270
+ spTextLayout->GetLineMetrics(nullptr, 0, &actualLineCount);
271
+ lineMetrics.resize(static_cast<size_t>(actualLineCount));
272
+ winrt::check_hresult(spTextLayout->GetLineMetrics(lineMetrics.data(), actualLineCount, &actualLineCount));
273
+ uint32_t startRange = 0;
274
+ const auto count = (paragraphAttributes.maximumNumberOfLines > 0)
275
+ ? std::min(static_cast<uint32_t>(paragraphAttributes.maximumNumberOfLines), actualLineCount)
276
+ : actualLineCount;
277
+ for (uint32_t i = 0; i < count; ++i) {
278
+ UINT32 actualHitTestCount = 0;
279
+ spTextLayout->HitTestTextRange(
280
+ startRange,
281
+ lineMetrics[i].length,
282
+ 0, // x
283
+ 0, // y
284
+ NULL,
285
+ 0, // metrics count
286
+ &actualHitTestCount);
287
+
288
+ // Allocate enough room to return all hit-test metrics.
289
+ std::vector<DWRITE_HIT_TEST_METRICS> hitTestMetrics(actualHitTestCount);
290
+ spTextLayout->HitTestTextRange(
291
+ startRange,
292
+ lineMetrics[i].length,
293
+ 0, // x
294
+ 0, // y
295
+ &hitTestMetrics[0],
296
+ static_cast<UINT32>(hitTestMetrics.size()),
297
+ &actualHitTestCount);
298
+
299
+ float width = 0;
300
+ for (auto tm : hitTestMetrics) {
301
+ width += tm.width;
302
+ }
303
+
304
+ std::string str;
305
+ for (const auto &fragment : attributedString.getFragments()) {
306
+ str = str +
307
+ winrt::to_string(Microsoft::ReactNative::TransformableText::TransformText(
308
+ winrt::hstring{Microsoft::Common::Unicode::Utf8ToUtf16(fragment.string)},
309
+ ConvertTextTransform(fragment.textAttributes.textTransform)));
310
+ }
311
+
312
+ lineMeasurements.emplace_back(LineMeasurement(
313
+ str.substr(startRange, lineMetrics[i].length),
314
+ {{hitTestMetrics[0].left, hitTestMetrics[0].top}, // origin
315
+ {width, lineMetrics[i].height}},
316
+ 0.0f, // TODO descender
317
+ 0.0f, // TODO: capHeight
318
+ 0.0f, // TODO ascender
319
+ 0.0f // TODO: xHeight
320
+ ));
321
+
322
+ startRange += lineMetrics[i].length;
323
+ }
324
+ }
325
+
326
+ return lineMeasurements;
327
+ }
328
+
329
+ std::shared_ptr<void> TextLayoutManager::getHostTextStorage(
330
+ AttributedString attributedString,
331
+ ParagraphAttributes paragraphAttributes,
332
+ LayoutConstraints layoutConstraints) const {
333
+ return nullptr;
334
+ }
335
+
336
+ void *TextLayoutManager::getNativeTextLayoutManager() const {
337
+ return (void *)this;
338
+ }
339
+
239
340
  winrt::hstring TextLayoutManager::GetTransformedText(AttributedStringBox const &attributedStringBox) {
240
341
  winrt::hstring result{};
241
342
  for (const auto &fragment : attributedStringBox.getValue().getFragments()) {
@@ -74,10 +74,22 @@ class TextLayoutManager {
74
74
  LayoutConstraints layoutConstraints,
75
75
  winrt::com_ptr<IDWriteTextLayout> &spTextLayout) noexcept;
76
76
 
77
+ static void GetTextLayoutByAdjustingFontSizeToFit(
78
+ AttributedStringBox attributedStringBox,
79
+ const ParagraphAttributes &paragraphAttributes,
80
+ LayoutConstraints layoutConstraints,
81
+ winrt::com_ptr<IDWriteTextLayout> &spTextLayout,
82
+ TextMeasurement::Attachments &attachments) noexcept;
83
+
77
84
  #pragma endregion
78
85
 
79
86
  private:
80
87
  static winrt::hstring GetTransformedText(AttributedStringBox const &attributedStringBox);
88
+ static void GetTextLayout(
89
+ AttributedStringBox attributedString,
90
+ ParagraphAttributes paragraphAttributes,
91
+ Size size,
92
+ winrt::com_ptr<IDWriteTextLayout> &spTextLayout) noexcept;
81
93
 
82
94
  ContextContainer::Shared m_contextContainer;
83
95
  #pragma warning(push)
@@ -123,9 +123,6 @@
123
123
  <ClCompile Include="Modules\NativeUIManager.cpp">
124
124
  <Filter>Modules</Filter>
125
125
  </ClCompile>
126
- <ClCompile Include="Modules\TimingModule.cpp">
127
- <Filter>Modules</Filter>
128
- </ClCompile>
129
126
  <ClCompile Include="Views\Image\ImageViewManager.cpp">
130
127
  <Filter>Views\Image</Filter>
131
128
  </ClCompile>
@@ -292,6 +289,7 @@
292
289
  <ClCompile Include="Views\FrameworkElementTransferProperties.cpp" />
293
290
  <ClCompile Include="Views\ReactViewInstance.cpp" />
294
291
  <ClCompile Include="Utils\KeyboardUtils.cpp" />
292
+ <ClCompile Include="Views\DebuggingOverlayViewManager.cpp" />
295
293
  </ItemGroup>
296
294
  <ItemGroup>
297
295
  <ClInclude Include="ABICxxModule.h" />
@@ -10,9 +10,9 @@
10
10
  },
11
11
  "Microsoft.JavaScript.Hermes": {
12
12
  "type": "Direct",
13
- "requested": "[0.1.23, )",
14
- "resolved": "0.1.23",
15
- "contentHash": "cA9t1GjY4Yo0JD1AfA//e1lOwk48hLANfuX6GXrikmEBNZVr2TIX5ONJt5tqCnpZyLz6xGiPDgTfFNKbSfb21g=="
13
+ "requested": "[0.0.0-2511.7001-d7ca19b3, )",
14
+ "resolved": "0.0.0-2511.7001-d7ca19b3",
15
+ "contentHash": "/EGy/gbTWpFZPZ4Z81QxbGQxpZhqiOE3qrnSokZRgXAyHivl15s7zZkRLOy9daDmVyEfanq7YBCOMi0ha58uQA=="
16
16
  },
17
17
  "Microsoft.SourceLink.GitHub": {
18
18
  "type": "Direct",
@@ -24,22 +24,21 @@
24
24
  "Microsoft.SourceLink.Common": "1.1.1"
25
25
  }
26
26
  },
27
+ "Microsoft.UI.Xaml": {
28
+ "type": "Direct",
29
+ "requested": "[2.8.0, )",
30
+ "resolved": "2.8.0",
31
+ "contentHash": "vxdHxTr63s5KVtNddMFpgvjBjUH50z7seq/5jLWmmSuf8poxg+sXrywkofUdE8ZstbpO9y3FL/IXXUcPYbeesA==",
32
+ "dependencies": {
33
+ "Microsoft.Web.WebView2": "1.0.1264.42"
34
+ }
35
+ },
27
36
  "Microsoft.Windows.CppWinRT": {
28
37
  "type": "Direct",
29
38
  "requested": "[2.0.230706.1, )",
30
39
  "resolved": "2.0.230706.1",
31
40
  "contentHash": "l0D7oCw/5X+xIKHqZTi62TtV+1qeSz7KVluNFdrJ9hXsst4ghvqQ/Yhura7JqRdZWBXAuDS0G0KwALptdoxweQ=="
32
41
  },
33
- "Microsoft.WindowsAppSDK": {
34
- "type": "Direct",
35
- "requested": "[1.7.250401001, )",
36
- "resolved": "1.7.250401001",
37
- "contentHash": "kPsJ2LZoo3Xs/6FtIWMZRGnQ2ZMx9zDa0ZpqRGz1qwZr0gwwlXZJTmngaA1Ym2AHmIa05NtX2jEE2He8CzfhTg==",
38
- "dependencies": {
39
- "Microsoft.Web.WebView2": "1.0.2903.40",
40
- "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
41
- }
42
- },
43
42
  "Microsoft.Build.Tasks.Git": {
44
43
  "type": "Transitive",
45
44
  "resolved": "1.1.1",
@@ -52,13 +51,8 @@
52
51
  },
53
52
  "Microsoft.Web.WebView2": {
54
53
  "type": "Transitive",
55
- "resolved": "1.0.2903.40",
56
- "contentHash": "THrzYAnJgE3+cNH+9Epr44XjoZoRELdVpXlWGPs6K9C9G6TqyDfVCeVAR/Er8ljLitIUX5gaSkPsy9wRhD1sgQ=="
57
- },
58
- "Microsoft.Windows.SDK.BuildTools": {
59
- "type": "Transitive",
60
- "resolved": "10.0.22621.756",
61
- "contentHash": "7ZL2sFSioYm1Ry067Kw1hg0SCcW5kuVezC2SwjGbcPE61Nn+gTbH86T73G3LcEOVj0S3IZzNuE/29gZvOLS7VA=="
54
+ "resolved": "1.0.1264.42",
55
+ "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
62
56
  },
63
57
  "common": {
64
58
  "type": "Project",
@@ -72,8 +66,8 @@
72
66
  "folly": {
73
67
  "type": "Project",
74
68
  "dependencies": {
75
- "Fmt": "[1.0.0, )",
76
- "boost": "[1.83.0, )"
69
+ "boost": "[1.83.0, )",
70
+ "fmt": "[1.0.0, )"
77
71
  }
78
72
  },
79
73
  "reactcommon": {
@@ -85,122 +79,52 @@
85
79
  }
86
80
  },
87
81
  "native,Version=v0.0/win10-arm": {
88
- "Microsoft.WindowsAppSDK": {
89
- "type": "Direct",
90
- "requested": "[1.7.250401001, )",
91
- "resolved": "1.7.250401001",
92
- "contentHash": "kPsJ2LZoo3Xs/6FtIWMZRGnQ2ZMx9zDa0ZpqRGz1qwZr0gwwlXZJTmngaA1Ym2AHmIa05NtX2jEE2He8CzfhTg==",
93
- "dependencies": {
94
- "Microsoft.Web.WebView2": "1.0.2903.40",
95
- "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
96
- }
97
- },
98
82
  "Microsoft.Web.WebView2": {
99
83
  "type": "Transitive",
100
- "resolved": "1.0.2903.40",
101
- "contentHash": "THrzYAnJgE3+cNH+9Epr44XjoZoRELdVpXlWGPs6K9C9G6TqyDfVCeVAR/Er8ljLitIUX5gaSkPsy9wRhD1sgQ=="
84
+ "resolved": "1.0.1264.42",
85
+ "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
102
86
  }
103
87
  },
104
88
  "native,Version=v0.0/win10-arm-aot": {
105
- "Microsoft.WindowsAppSDK": {
106
- "type": "Direct",
107
- "requested": "[1.7.250401001, )",
108
- "resolved": "1.7.250401001",
109
- "contentHash": "kPsJ2LZoo3Xs/6FtIWMZRGnQ2ZMx9zDa0ZpqRGz1qwZr0gwwlXZJTmngaA1Ym2AHmIa05NtX2jEE2He8CzfhTg==",
110
- "dependencies": {
111
- "Microsoft.Web.WebView2": "1.0.2903.40",
112
- "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
113
- }
114
- },
115
89
  "Microsoft.Web.WebView2": {
116
90
  "type": "Transitive",
117
- "resolved": "1.0.2903.40",
118
- "contentHash": "THrzYAnJgE3+cNH+9Epr44XjoZoRELdVpXlWGPs6K9C9G6TqyDfVCeVAR/Er8ljLitIUX5gaSkPsy9wRhD1sgQ=="
91
+ "resolved": "1.0.1264.42",
92
+ "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
119
93
  }
120
94
  },
121
95
  "native,Version=v0.0/win10-arm64-aot": {
122
- "Microsoft.WindowsAppSDK": {
123
- "type": "Direct",
124
- "requested": "[1.7.250401001, )",
125
- "resolved": "1.7.250401001",
126
- "contentHash": "kPsJ2LZoo3Xs/6FtIWMZRGnQ2ZMx9zDa0ZpqRGz1qwZr0gwwlXZJTmngaA1Ym2AHmIa05NtX2jEE2He8CzfhTg==",
127
- "dependencies": {
128
- "Microsoft.Web.WebView2": "1.0.2903.40",
129
- "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
130
- }
131
- },
132
96
  "Microsoft.Web.WebView2": {
133
97
  "type": "Transitive",
134
- "resolved": "1.0.2903.40",
135
- "contentHash": "THrzYAnJgE3+cNH+9Epr44XjoZoRELdVpXlWGPs6K9C9G6TqyDfVCeVAR/Er8ljLitIUX5gaSkPsy9wRhD1sgQ=="
98
+ "resolved": "1.0.1264.42",
99
+ "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
136
100
  }
137
101
  },
138
102
  "native,Version=v0.0/win10-x64": {
139
- "Microsoft.WindowsAppSDK": {
140
- "type": "Direct",
141
- "requested": "[1.7.250401001, )",
142
- "resolved": "1.7.250401001",
143
- "contentHash": "kPsJ2LZoo3Xs/6FtIWMZRGnQ2ZMx9zDa0ZpqRGz1qwZr0gwwlXZJTmngaA1Ym2AHmIa05NtX2jEE2He8CzfhTg==",
144
- "dependencies": {
145
- "Microsoft.Web.WebView2": "1.0.2903.40",
146
- "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
147
- }
148
- },
149
103
  "Microsoft.Web.WebView2": {
150
104
  "type": "Transitive",
151
- "resolved": "1.0.2903.40",
152
- "contentHash": "THrzYAnJgE3+cNH+9Epr44XjoZoRELdVpXlWGPs6K9C9G6TqyDfVCeVAR/Er8ljLitIUX5gaSkPsy9wRhD1sgQ=="
105
+ "resolved": "1.0.1264.42",
106
+ "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
153
107
  }
154
108
  },
155
109
  "native,Version=v0.0/win10-x64-aot": {
156
- "Microsoft.WindowsAppSDK": {
157
- "type": "Direct",
158
- "requested": "[1.7.250401001, )",
159
- "resolved": "1.7.250401001",
160
- "contentHash": "kPsJ2LZoo3Xs/6FtIWMZRGnQ2ZMx9zDa0ZpqRGz1qwZr0gwwlXZJTmngaA1Ym2AHmIa05NtX2jEE2He8CzfhTg==",
161
- "dependencies": {
162
- "Microsoft.Web.WebView2": "1.0.2903.40",
163
- "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
164
- }
165
- },
166
110
  "Microsoft.Web.WebView2": {
167
111
  "type": "Transitive",
168
- "resolved": "1.0.2903.40",
169
- "contentHash": "THrzYAnJgE3+cNH+9Epr44XjoZoRELdVpXlWGPs6K9C9G6TqyDfVCeVAR/Er8ljLitIUX5gaSkPsy9wRhD1sgQ=="
112
+ "resolved": "1.0.1264.42",
113
+ "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
170
114
  }
171
115
  },
172
116
  "native,Version=v0.0/win10-x86": {
173
- "Microsoft.WindowsAppSDK": {
174
- "type": "Direct",
175
- "requested": "[1.7.250401001, )",
176
- "resolved": "1.7.250401001",
177
- "contentHash": "kPsJ2LZoo3Xs/6FtIWMZRGnQ2ZMx9zDa0ZpqRGz1qwZr0gwwlXZJTmngaA1Ym2AHmIa05NtX2jEE2He8CzfhTg==",
178
- "dependencies": {
179
- "Microsoft.Web.WebView2": "1.0.2903.40",
180
- "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
181
- }
182
- },
183
117
  "Microsoft.Web.WebView2": {
184
118
  "type": "Transitive",
185
- "resolved": "1.0.2903.40",
186
- "contentHash": "THrzYAnJgE3+cNH+9Epr44XjoZoRELdVpXlWGPs6K9C9G6TqyDfVCeVAR/Er8ljLitIUX5gaSkPsy9wRhD1sgQ=="
119
+ "resolved": "1.0.1264.42",
120
+ "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
187
121
  }
188
122
  },
189
123
  "native,Version=v0.0/win10-x86-aot": {
190
- "Microsoft.WindowsAppSDK": {
191
- "type": "Direct",
192
- "requested": "[1.7.250401001, )",
193
- "resolved": "1.7.250401001",
194
- "contentHash": "kPsJ2LZoo3Xs/6FtIWMZRGnQ2ZMx9zDa0ZpqRGz1qwZr0gwwlXZJTmngaA1Ym2AHmIa05NtX2jEE2He8CzfhTg==",
195
- "dependencies": {
196
- "Microsoft.Web.WebView2": "1.0.2903.40",
197
- "Microsoft.Windows.SDK.BuildTools": "10.0.22621.756"
198
- }
199
- },
200
124
  "Microsoft.Web.WebView2": {
201
125
  "type": "Transitive",
202
- "resolved": "1.0.2903.40",
203
- "contentHash": "THrzYAnJgE3+cNH+9Epr44XjoZoRELdVpXlWGPs6K9C9G6TqyDfVCeVAR/Er8ljLitIUX5gaSkPsy9wRhD1sgQ=="
126
+ "resolved": "1.0.1264.42",
127
+ "contentHash": "7OBUTkzQ5VI/3gb0ufi5U4zjuCowAJwQg2li0zXXzqkM+S1kmOlivTy1R4jAW+gY5Vyg510M+qMAESCQUjrfgA=="
204
128
  }
205
129
  }
206
130
  }
@@ -18,7 +18,7 @@
18
18
  <Bridging_SourcePath Condition="'$(Bridging_SourcePath)' == '' AND '$(ReactNativeDir)' != ''">$(ReactNativeDir)\ReactCommon\react\bridging</Bridging_SourcePath>
19
19
  <Bridging_SourcePath Condition="'$(Bridging_SourcePath)' == '' AND Exists('$(MSBuildThisFileDirectory)react\bridging\CallbackWrapper.h')">$(MSBuildThisFileDirectory)react\bridging</Bridging_SourcePath>
20
20
 
21
- <NodeApiJsiCommitHash>83cfef428a97627c9185c73da097e42742de56eb</NodeApiJsiCommitHash>
21
+ <NodeApiJsiCommitHash>21b47f08b762b21b1d4d970940ab23f59f43249c</NodeApiJsiCommitHash>
22
22
  <NodeApiJsiLocal Condition="Exists('$(MSBuildThisFileDirectory)NodeApiJsiRuntime.cpp')">true</NodeApiJsiLocal>
23
23
  <NodeApiJsiDir Condition="'$(NodeApiJsiDir)' == '' AND '$(NodeApiJsiLocal)' == 'true'">$(MSBuildThisFileDirectory)</NodeApiJsiDir>
24
24
  <NodeApiJsiDir Condition="'$(NodeApiJsiDir)' == '' AND '$(ReactNativeDir)' != ''">$(ReactNativeDir)\..\..\node_modules\.node-api-jsi\node-api-jsi-$(NodeApiJsiCommitHash)\</NodeApiJsiDir>
@@ -36,8 +36,8 @@
36
36
  },
37
37
  "Microsoft.JavaScript.Hermes": {
38
38
  "type": "Transitive",
39
- "resolved": "0.1.23",
40
- "contentHash": "cA9t1GjY4Yo0JD1AfA//e1lOwk48hLANfuX6GXrikmEBNZVr2TIX5ONJt5tqCnpZyLz6xGiPDgTfFNKbSfb21g=="
39
+ "resolved": "0.0.0-2511.7001-d7ca19b3",
40
+ "contentHash": "/EGy/gbTWpFZPZ4Z81QxbGQxpZhqiOE3qrnSokZRgXAyHivl15s7zZkRLOy9daDmVyEfanq7YBCOMi0ha58uQA=="
41
41
  },
42
42
  "Microsoft.Net.Native.Compiler": {
43
43
  "type": "Transitive",
@@ -179,7 +179,7 @@
179
179
  "dependencies": {
180
180
  "Common": "[1.0.0, )",
181
181
  "Folly": "[1.0.0, )",
182
- "Microsoft.JavaScript.Hermes": "[0.1.23, )",
182
+ "Microsoft.JavaScript.Hermes": "[0.0.0-2511.7001-d7ca19b3, )",
183
183
  "Microsoft.SourceLink.GitHub": "[1.1.1, )",
184
184
  "Microsoft.UI.Xaml": "[2.8.0, )",
185
185
  "ReactCommon": "[1.0.0, )",
@@ -3,7 +3,7 @@
3
3
  <PropertyGroup>
4
4
  <OutputType>Exe</OutputType>
5
5
 
6
- <TargetFramework>net6.0</TargetFramework>
6
+ <TargetFramework>net8.0</TargetFramework>
7
7
  <Platforms>x64;x86;ARM64</Platforms>
8
8
  <RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
9
9
 
@@ -6,7 +6,7 @@
6
6
  <PublishProtocol>FileSystem</PublishProtocol>
7
7
  <Configuration>Debug</Configuration>
8
8
  <Platform>x64</Platform>
9
- <TargetFramework>net6.0</TargetFramework>
9
+ <TargetFramework>net8.0</TargetFramework>
10
10
  <PublishDir>$(OutDir)publish</PublishDir>
11
11
  <RuntimeIdentifier>win-x64</RuntimeIdentifier>
12
12
  <SelfContained>true</SelfContained>
@@ -6,7 +6,7 @@
6
6
  <PublishProtocol>FileSystem</PublishProtocol>
7
7
  <Configuration>Release</Configuration>
8
8
  <Platform>x64</Platform>
9
- <TargetFramework>net6.0</TargetFramework>
9
+ <TargetFramework>net8.0</TargetFramework>
10
10
  <PublishDir>$(OutDir)publish</PublishDir>
11
11
  <RuntimeIdentifier>win-x64</RuntimeIdentifier>
12
12
  <SelfContained>true</SelfContained>
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 1,
3
3
  "dependencies": {
4
- "net6.0": {
4
+ "net8.0": {
5
5
  "Humanizer": {
6
6
  "type": "Direct",
7
7
  "requested": "[2.14.1, )",
@@ -1507,7 +1507,7 @@
1507
1507
  }
1508
1508
  }
1509
1509
  },
1510
- "net6.0/win-x64": {
1510
+ "net8.0/win-x64": {
1511
1511
  "Microsoft.Win32.Primitives": {
1512
1512
  "type": "Transitive",
1513
1513
  "resolved": "4.3.0",
@@ -2350,7 +2350,7 @@
2350
2350
  }
2351
2351
  }
2352
2352
  },
2353
- "net6.0/win-x86": {
2353
+ "net8.0/win-x86": {
2354
2354
  "Microsoft.Win32.Primitives": {
2355
2355
  "type": "Transitive",
2356
2356
  "resolved": "4.3.0",
@@ -12,20 +12,20 @@
12
12
  See https://microsoft.github.io/react-native-windows/docs/win10-compat
13
13
  -->
14
14
  <PropertyGroup Label="Globals" Condition="'$(MSBuildProjectExtension)' == '.vcxproj'">
15
- <WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)'=='' Or '$(WindowsTargetPlatformVersion)'=='10.0.0.0'">10.0.19041.0</WindowsTargetPlatformVersion>
15
+ <WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)'=='' Or '$(WindowsTargetPlatformVersion)'=='10.0.0.0'">10.0.22621.0</WindowsTargetPlatformVersion>
16
16
  <WindowsTargetPlatformMinVersion Condition="'$(WindowsTargetPlatformMinVersion)'=='' Or '$(WindowsTargetPlatformMinVersion)'=='10.0.0.0'">10.0.17763.0</WindowsTargetPlatformMinVersion>
17
17
 
18
18
  <!-- WinAppSDK/Composition projects have higher version requirements. -->
19
- <WindowsTargetPlatformVersion Condition="'$(UseWinUI3)'=='true' And $([MSBuild]::VersionLessThan('$(WindowsTargetPlatformVersion)', '10.0.22000.0'))">10.0.22000.0</WindowsTargetPlatformVersion>
19
+ <WindowsTargetPlatformVersion Condition="'$(UseWinUI3)'=='true' And $([MSBuild]::VersionLessThan('$(WindowsTargetPlatformVersion)', '10.0.22621.0'))">10.0.22621.0</WindowsTargetPlatformVersion>
20
20
  <WindowsTargetPlatformMinVersion Condition="'$(UseWinUI3)'=='true' And $([MSBuild]::VersionLessThan('$(WindowsTargetPlatformMinVersion)', '10.0.18362.0'))">10.0.18362.0</WindowsTargetPlatformMinVersion>
21
21
  </PropertyGroup>
22
22
 
23
23
  <PropertyGroup Label="Globals" Condition="'$(MSBuildProjectExtension)' == '.csproj' Or '$(MSBuildProjectExtension)' == '.wapproj'">
24
- <TargetPlatformVersion Condition="'$(TargetPlatformVersion)'==''">10.0.19041.0</TargetPlatformVersion>
24
+ <TargetPlatformVersion Condition="'$(TargetPlatformVersion)'==''">10.0.22621.0</TargetPlatformVersion>
25
25
  <TargetPlatformMinVersion Condition="'$(TargetPlatformMinVersion)'==''">10.0.17763.0</TargetPlatformMinVersion>
26
26
 
27
27
  <!-- WinAppSDK/Composition projects have higher version requirements. -->
28
- <TargetPlatformVersion Condition="'$(UseWinUI3)'=='true' And $([MSBuild]::VersionLessThan('$(TargetPlatformVersion)', '10.0.22000.0'))">10.0.22000.0</TargetPlatformVersion>
28
+ <TargetPlatformVersion Condition="'$(UseWinUI3)'=='true' And $([MSBuild]::VersionLessThan('$(TargetPlatformVersion)', '110.0.22621.0'))">10.0.22621.0</TargetPlatformVersion>
29
29
  <TargetPlatformMinVersion Condition="'$(UseWinUI3)'=='true' And $([MSBuild]::VersionLessThan('$(TargetPlatformMinVersion)', '10.0.17763.0'))">10.0.17763.0</TargetPlatformMinVersion>
30
30
  </PropertyGroup>
31
31