react-native-windows 0.75.1 → 0.75.2
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/Microsoft.ReactNative/ComponentView.idl +33 -32
- package/Microsoft.ReactNative/Composition.Input.idl +2 -0
- package/Microsoft.ReactNative/CompositionComponentView.idl +43 -24
- package/Microsoft.ReactNative/Fabric/AbiEventEmitter.cpp +21 -0
- package/Microsoft.ReactNative/Fabric/AbiEventEmitter.h +23 -0
- package/Microsoft.ReactNative/Fabric/AbiShadowNode.cpp +7 -0
- package/Microsoft.ReactNative/Fabric/AbiShadowNode.h +3 -0
- package/Microsoft.ReactNative/Fabric/ComponentView.cpp +318 -59
- package/Microsoft.ReactNative/Fabric/ComponentView.h +155 -33
- package/Microsoft.ReactNative/Fabric/Composition/ActivityIndicatorComponentView.cpp +2 -2
- package/Microsoft.ReactNative/Fabric/Composition/ComponentViewRegistry.cpp +3 -0
- package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.cpp +25 -7
- package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.h +22 -4
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +43 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.h +6 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +147 -119
- package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +4 -8
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +97 -101
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +28 -52
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.cpp +133 -0
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +61 -0
- package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.cpp +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/ImageComponentView.cpp +1 -4
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +1 -2
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp +1 -6
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.h +0 -1
- package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.cpp +108 -18
- package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.h +33 -5
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +57 -1
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +6 -0
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +8 -2
- package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +2 -0
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +195 -182
- package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +1 -3
- package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.cpp +16 -4
- package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.h +3 -3
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +12 -17
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +4 -11
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +19 -0
- package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +4 -0
- package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.cpp +1 -2
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +10 -7
- package/Microsoft.ReactNative/Fabric/WindowsComponentDescriptorRegistry.cpp +1 -3
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.cpp +20 -1
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h +3 -0
- package/Microsoft.ReactNative/IReactCompositionViewComponentBuilder.idl +13 -3
- package/Microsoft.ReactNative/IReactViewComponentBuilder.idl +57 -4
- package/Microsoft.ReactNative/ReactNativeIsland.idl +3 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/PropertySheets/WinUI.props +1 -1
- package/Shared/Shared.vcxitems +7 -0
- package/just-task.js +1 -1
- package/package.json +3 -3
|
@@ -62,16 +62,10 @@ struct WindowsTextInputComponentView
|
|
|
62
62
|
void OnPointerMoved(
|
|
63
63
|
const winrt::Microsoft::ReactNative::Composition::Input::PointerRoutedEventArgs &args) noexcept override;
|
|
64
64
|
|
|
65
|
-
void OnKeyDown(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const winrt::Microsoft::ReactNative::Composition::Input::KeyboardSource &source,
|
|
70
|
-
const winrt::Microsoft::ReactNative::Composition::Input::KeyRoutedEventArgs &args) noexcept override;
|
|
71
|
-
void OnCharacterReceived(
|
|
72
|
-
const winrt::Microsoft::ReactNative::Composition::Input::KeyboardSource &source,
|
|
73
|
-
const winrt::Microsoft::ReactNative::Composition::Input::CharacterReceivedRoutedEventArgs &args) noexcept
|
|
74
|
-
override;
|
|
65
|
+
void OnKeyDown(const winrt::Microsoft::ReactNative::Composition::Input::KeyRoutedEventArgs &args) noexcept override;
|
|
66
|
+
void OnKeyUp(const winrt::Microsoft::ReactNative::Composition::Input::KeyRoutedEventArgs &args) noexcept override;
|
|
67
|
+
void OnCharacterReceived(const winrt::Microsoft::ReactNative::Composition::Input::CharacterReceivedRoutedEventArgs
|
|
68
|
+
&args) noexcept override;
|
|
75
69
|
|
|
76
70
|
std::optional<std::string> getAcccessiblityValue() noexcept override;
|
|
77
71
|
void setAcccessiblityValue(std::string &&value) noexcept override;
|
|
@@ -106,7 +100,6 @@ struct WindowsTextInputComponentView
|
|
|
106
100
|
const facebook::react::SharedColor &cursorColor,
|
|
107
101
|
const facebook::react::SharedColor &foregroundColor) noexcept;
|
|
108
102
|
bool ShouldSubmit(
|
|
109
|
-
const winrt::Microsoft::ReactNative::Composition::Input::KeyboardSource &source,
|
|
110
103
|
const winrt::Microsoft::ReactNative::Composition::Input::CharacterReceivedRoutedEventArgs &args) noexcept;
|
|
111
104
|
|
|
112
105
|
winrt::Windows::UI::Composition::CompositionSurfaceBrush m_brush{nullptr};
|
|
@@ -162,4 +162,23 @@ void UpdateUiaProperty(
|
|
|
162
162
|
spProviderSimple.get(), propId, CComVariant(oldValue.c_str()), CComVariant(newValue.c_str()));
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
long GetLiveSetting(const std::string &liveRegion) noexcept {
|
|
166
|
+
if (liveRegion == "polite") {
|
|
167
|
+
return LiveSetting::Polite;
|
|
168
|
+
} else if (liveRegion == "assertive") {
|
|
169
|
+
return LiveSetting::Assertive;
|
|
170
|
+
}
|
|
171
|
+
return LiveSetting::Off;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
std::string extractAccessibilityValue(const facebook::react::AccessibilityValue &value) noexcept {
|
|
175
|
+
if (value.now.has_value()) {
|
|
176
|
+
return std::to_string(value.now.value());
|
|
177
|
+
} else if (value.text.has_value()) {
|
|
178
|
+
return value.text.value();
|
|
179
|
+
} else {
|
|
180
|
+
return "";
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
165
184
|
} // namespace winrt::Microsoft::ReactNative::implementation
|
|
@@ -29,4 +29,8 @@ void UpdateUiaProperty(
|
|
|
29
29
|
const std::string &oldValue,
|
|
30
30
|
const std::string &newValue) noexcept;
|
|
31
31
|
|
|
32
|
+
long GetLiveSetting(const std::string &liveRegion) noexcept;
|
|
33
|
+
|
|
34
|
+
std::string extractAccessibilityValue(const facebook::react::AccessibilityValue &value) noexcept;
|
|
35
|
+
|
|
32
36
|
} // namespace winrt::Microsoft::ReactNative::implementation
|
|
@@ -24,8 +24,7 @@ UnimplementedNativeViewComponentView::UnimplementedNativeViewComponentView(
|
|
|
24
24
|
reactContext,
|
|
25
25
|
ComponentViewFeatures::Default &
|
|
26
26
|
~(ComponentViewFeatures::Background | ComponentViewFeatures::ShadowProps |
|
|
27
|
-
ComponentViewFeatures::NativeBorder)
|
|
28
|
-
false) {
|
|
27
|
+
ComponentViewFeatures::NativeBorder)) {
|
|
29
28
|
m_labelVisual = compContext.CreateSpriteVisual();
|
|
30
29
|
OuterVisual().InsertAt(m_labelVisual, 1);
|
|
31
30
|
}
|
|
@@ -245,9 +245,10 @@ void FabricUIManager::RCTPerformMountInstructions(
|
|
|
245
245
|
newChildComponentView->updateEventEmitter(newChildShadowView.eventEmitter);
|
|
246
246
|
newChildComponentView->updateState(newChildShadowView.state, oldChildShadowView.state);
|
|
247
247
|
newChildComponentView->updateLayoutMetrics(newChildShadowView.layoutMetrics, oldChildShadowView.layoutMetrics);
|
|
248
|
-
|
|
248
|
+
newChildComponentView->FinalizeUpdates(winrt::Microsoft::ReactNative::ComponentViewUpdateMask::All);
|
|
249
249
|
|
|
250
|
-
parentViewDescriptor.view
|
|
250
|
+
winrt::get_self<winrt::Microsoft::ReactNative::implementation::ComponentView>(parentViewDescriptor.view)
|
|
251
|
+
->MountChildComponentView(*newChildComponentView, mutation.index);
|
|
251
252
|
break;
|
|
252
253
|
}
|
|
253
254
|
|
|
@@ -256,7 +257,8 @@ void FabricUIManager::RCTPerformMountInstructions(
|
|
|
256
257
|
auto &parentShadowView = mutation.parentShadowView;
|
|
257
258
|
auto &oldChildViewDescriptor = m_registry.componentViewDescriptorWithTag(oldChildShadowView.tag);
|
|
258
259
|
auto &parentViewDescriptor = m_registry.componentViewDescriptorWithTag(parentShadowView.tag);
|
|
259
|
-
parentViewDescriptor.view
|
|
260
|
+
winrt::get_self<winrt::Microsoft::ReactNative::implementation::ComponentView>(parentViewDescriptor.view)
|
|
261
|
+
->UnmountChildComponentView(oldChildViewDescriptor.view, mutation.index);
|
|
260
262
|
break;
|
|
261
263
|
}
|
|
262
264
|
|
|
@@ -290,7 +292,8 @@ void FabricUIManager::RCTPerformMountInstructions(
|
|
|
290
292
|
}
|
|
291
293
|
|
|
292
294
|
if (mask != winrt::Microsoft::ReactNative::ComponentViewUpdateMask::None) {
|
|
293
|
-
newChildViewDescriptor.view
|
|
295
|
+
winrt::get_self<winrt::Microsoft::ReactNative::implementation::ComponentView>(newChildViewDescriptor.view)
|
|
296
|
+
->FinalizeUpdates(mask);
|
|
294
297
|
}
|
|
295
298
|
|
|
296
299
|
break;
|
|
@@ -380,15 +383,15 @@ void FabricUIManager::schedulerDidDispatchCommand(
|
|
|
380
383
|
folly::dynamic const &arg) {
|
|
381
384
|
if (m_context.UIDispatcher().HasThreadAccess()) {
|
|
382
385
|
auto descriptor = m_registry.componentViewDescriptorWithTag(shadowView.tag);
|
|
383
|
-
descriptor.view
|
|
384
|
-
winrt::to_hstring(commandName), winrt::make<winrt::Microsoft::ReactNative::DynamicReader>(arg));
|
|
386
|
+
winrt::get_self<winrt::Microsoft::ReactNative::implementation::ComponentView>(descriptor.view)
|
|
387
|
+
->HandleCommand(winrt::to_hstring(commandName), winrt::make<winrt::Microsoft::ReactNative::DynamicReader>(arg));
|
|
385
388
|
} else {
|
|
386
389
|
m_context.UIDispatcher().Post(
|
|
387
390
|
[wkThis = weak_from_this(), commandName, tag = shadowView.tag, args = folly::dynamic(arg)]() {
|
|
388
391
|
if (auto pThis = wkThis.lock()) {
|
|
389
392
|
auto view = pThis->m_registry.findComponentViewWithTag(tag);
|
|
390
393
|
if (view) {
|
|
391
|
-
view
|
|
394
|
+
winrt::get_self<winrt::Microsoft::ReactNative::implementation::ComponentView>(view)->HandleCommand(
|
|
392
395
|
winrt::to_hstring(commandName), winrt::make<winrt::Microsoft::ReactNative::DynamicReader>(args));
|
|
393
396
|
}
|
|
394
397
|
}
|
|
@@ -74,9 +74,7 @@ void WindowsComponentDescriptorRegistry::Add(
|
|
|
74
74
|
m_descriptorFlavors.back()->c_str(),
|
|
75
75
|
std::static_pointer_cast<void const>(m_descriptorFlavors.back()),
|
|
76
76
|
winrt::get_self<winrt::Microsoft::ReactNative::Composition::ReactCompositionViewComponentBuilder>(builder)
|
|
77
|
-
|
|
78
|
-
? &facebook::react::concreteComponentDescriptorConstructor<AbiViewComponentDescriptor>
|
|
79
|
-
: &facebook::react::concreteComponentDescriptorConstructor<AbiComponentDescriptor>});
|
|
77
|
+
->GetComponentDescriptorProvider()});
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
winrt::Microsoft::ReactNative::IReactViewComponentBuilder WindowsComponentDescriptorRegistry::GetDescriptor(
|
|
@@ -26,7 +26,23 @@ HostPlatformViewProps::HostPlatformViewProps(
|
|
|
26
26
|
focusable(
|
|
27
27
|
CoreFeatures::enablePropIteratorSetter
|
|
28
28
|
? sourceProps.focusable
|
|
29
|
-
: convertRawProp(context, rawProps, "focusable", sourceProps.focusable, {}))
|
|
29
|
+
: convertRawProp(context, rawProps, "focusable", sourceProps.focusable, {})),
|
|
30
|
+
accessibilityPosInSet(
|
|
31
|
+
CoreFeatures::enablePropIteratorSetter
|
|
32
|
+
? sourceProps.accessibilityPosInSet
|
|
33
|
+
: convertRawProp(context, rawProps, "accessibilityPosInSet", sourceProps.accessibilityPosInSet, 0)),
|
|
34
|
+
accessibilitySetSize(
|
|
35
|
+
CoreFeatures::enablePropIteratorSetter
|
|
36
|
+
? sourceProps.accessibilitySetSize
|
|
37
|
+
: convertRawProp(context, rawProps, "accessibilitySetSize", sourceProps.accessibilitySetSize, 0)),
|
|
38
|
+
accessibilityLiveRegion(
|
|
39
|
+
CoreFeatures::enablePropIteratorSetter ? sourceProps.accessibilityLiveRegion
|
|
40
|
+
: convertRawProp(
|
|
41
|
+
context,
|
|
42
|
+
rawProps,
|
|
43
|
+
"accessibilityLiveRegion",
|
|
44
|
+
sourceProps.accessibilityLiveRegion,
|
|
45
|
+
"none")) {}
|
|
30
46
|
|
|
31
47
|
#define WINDOWS_VIEW_EVENT_CASE(eventType) \
|
|
32
48
|
case CONSTEXPR_RAW_PROPS_KEY_HASH("on" #eventType): { \
|
|
@@ -61,6 +77,9 @@ void HostPlatformViewProps::setProp(
|
|
|
61
77
|
WINDOWS_VIEW_EVENT_CASE(MouseLeave);
|
|
62
78
|
RAW_SET_PROP_SWITCH_CASE_BASIC(enableFocusRing);
|
|
63
79
|
RAW_SET_PROP_SWITCH_CASE_BASIC(focusable);
|
|
80
|
+
RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityPosInSet);
|
|
81
|
+
RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilitySetSize);
|
|
82
|
+
RAW_SET_PROP_SWITCH_CASE_BASIC(accessibilityLiveRegion);
|
|
64
83
|
RAW_SET_PROP_SWITCH_CASE_BASIC(keyDownEvents);
|
|
65
84
|
RAW_SET_PROP_SWITCH_CASE_BASIC(keyUpEvents);
|
|
66
85
|
}
|
package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/view/HostPlatformViewProps.h
CHANGED
|
@@ -24,6 +24,9 @@ class HostPlatformViewProps : public BaseViewProps {
|
|
|
24
24
|
WindowsViewEvents windowsEvents{};
|
|
25
25
|
bool enableFocusRing{true};
|
|
26
26
|
bool focusable{false};
|
|
27
|
+
int accessibilityPosInSet{0};
|
|
28
|
+
int accessibilitySetSize{0};
|
|
29
|
+
std::string accessibilityLiveRegion{"none"};
|
|
27
30
|
|
|
28
31
|
// std::optional<std::string> overflowAnchor{};
|
|
29
32
|
// std::optional<std::string> tooltip{};
|
|
@@ -13,16 +13,26 @@ import "CompositionComponentView.idl";
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft.ReactNative.Composition
|
|
15
15
|
{
|
|
16
|
+
[webhosthidden]
|
|
17
|
+
[experimental]
|
|
18
|
+
delegate void ViewComponentViewInitializer(ViewComponentView view);
|
|
19
|
+
|
|
20
|
+
[webhosthidden]
|
|
16
21
|
[experimental]
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
delegate void ComponentIslandComponentViewInitializer(ContentIslandComponentView view);
|
|
23
|
+
|
|
24
|
+
[experimental]
|
|
25
|
+
[webhosthidden]
|
|
26
|
+
delegate Microsoft.UI.Composition.Visual CreateVisualDelegate(Microsoft.ReactNative.ComponentView view);
|
|
19
27
|
|
|
20
28
|
[webhosthidden]
|
|
21
29
|
[experimental]
|
|
22
30
|
DOC_STRING(".")
|
|
23
31
|
interface IReactCompositionViewComponentBuilder
|
|
24
32
|
{
|
|
25
|
-
void
|
|
33
|
+
void SetViewComponentViewInitializer(ViewComponentViewInitializer initializer);
|
|
34
|
+
void SetContentIslandComponentViewInitializer(ComponentIslandComponentViewInitializer initializer);
|
|
35
|
+
void SetCreateVisualHandler(CreateVisualDelegate impl);
|
|
26
36
|
};
|
|
27
37
|
|
|
28
38
|
} // namespace Microsoft.ReactNative
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import "ViewProps.idl";
|
|
5
5
|
import "ComponentView.idl";
|
|
6
|
+
import "IJSValueWriter.idl";
|
|
6
7
|
|
|
7
8
|
#include "DocString.h"
|
|
8
9
|
|
|
@@ -34,6 +35,18 @@ namespace Microsoft.ReactNative
|
|
|
34
35
|
LayoutDirection LayoutDirection;
|
|
35
36
|
};
|
|
36
37
|
|
|
38
|
+
[experimental]
|
|
39
|
+
runtimeclass MountChildComponentViewArgs {
|
|
40
|
+
ComponentView Child { get; };
|
|
41
|
+
UInt32 Index { get; };
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
[experimental]
|
|
45
|
+
runtimeclass UnmountChildComponentViewArgs {
|
|
46
|
+
ComponentView Child { get; };
|
|
47
|
+
UInt32 Index { get; };
|
|
48
|
+
};
|
|
49
|
+
|
|
37
50
|
[experimental]
|
|
38
51
|
DOC_STRING("A delegate that creates a @IComponentProps object for an instance of @ViewProps. See @IReactViewComponentBuilder.SetCreateProps")
|
|
39
52
|
delegate IComponentProps ViewPropsFactory(ViewProps props);
|
|
@@ -54,15 +67,39 @@ namespace Microsoft.ReactNative
|
|
|
54
67
|
delegate Object InitialStateDataFactory(IComponentProps props);
|
|
55
68
|
|
|
56
69
|
[experimental]
|
|
57
|
-
DOC_STRING("Provides a
|
|
58
|
-
delegate
|
|
70
|
+
DOC_STRING("Provides a method to initialize an instance of a ComponentView. See @IReactViewComponentBuilder.SetComponentViewInitializer")
|
|
71
|
+
delegate void ComponentViewInitializer(ComponentView view);
|
|
72
|
+
|
|
73
|
+
[experimental]
|
|
74
|
+
delegate void HandleCommandDelegate(ComponentView source, String commandName, IJSValueReader args);
|
|
75
|
+
|
|
76
|
+
[experimental]
|
|
77
|
+
delegate void UpdateFinalizerDelegate(ComponentView source, ComponentViewUpdateMask updateMask);
|
|
78
|
+
|
|
79
|
+
[experimental]
|
|
80
|
+
delegate void UpdatePropsDelegate(ComponentView source, IComponentProps newProps, IComponentProps oldProps);
|
|
81
|
+
|
|
82
|
+
[experimental]
|
|
83
|
+
delegate void UpdateStateDelegate(ComponentView source, IComponentState newState);
|
|
84
|
+
|
|
85
|
+
[experimental]
|
|
86
|
+
delegate void MountChildComponentViewDelegate(ComponentView source, MountChildComponentViewArgs args);
|
|
87
|
+
|
|
88
|
+
[experimental]
|
|
89
|
+
delegate void UnmountChildComponentViewDelegate(ComponentView source, UnmountChildComponentViewArgs args);
|
|
90
|
+
|
|
91
|
+
[experimental]
|
|
92
|
+
runtimeclass EventEmitter {
|
|
93
|
+
void DispatchEvent(String eventName, JSValueArgWriter args);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
[experimental]
|
|
97
|
+
delegate void UpdateEventEmitterDelegate(ComponentView source, EventEmitter eventEmitter);
|
|
59
98
|
|
|
60
99
|
[webhosthidden]
|
|
61
100
|
[experimental]
|
|
62
101
|
interface IReactViewComponentBuilder
|
|
63
102
|
{
|
|
64
|
-
void SetCreateComponentView(ComponentViewFactory impl);
|
|
65
|
-
|
|
66
103
|
DOC_STRING("Create an implementation of your custom Props type that will be passed to your components @Composition.ICompositionViewComponent.UpdateProps method.")
|
|
67
104
|
void SetCreateProps(ViewPropsFactory impl);
|
|
68
105
|
|
|
@@ -71,9 +108,24 @@ namespace Microsoft.ReactNative
|
|
|
71
108
|
void SetInitialStateDataFactory(InitialStateDataFactory impl);
|
|
72
109
|
void SetMeasureContentHandler(MeasureContentHandler impl);
|
|
73
110
|
void SetLayoutHandler(LayoutHandler impl);
|
|
111
|
+
|
|
112
|
+
void SetComponentViewInitializer(ComponentViewInitializer initializer);
|
|
113
|
+
void SetCustomCommandHandler(HandleCommandDelegate impl);
|
|
114
|
+
void SetFinalizeUpdateHandler(UpdateFinalizerDelegate impl);
|
|
115
|
+
void SetUpdatePropsHandler(UpdatePropsDelegate impl);
|
|
116
|
+
void SetUpdateStateHandler(UpdateStateDelegate impl);
|
|
117
|
+
void SetUpdateEventEmitterHandler(UpdateEventEmitterDelegate impl);
|
|
118
|
+
void SetMountChildComponentViewHandler(MountChildComponentViewDelegate impl);
|
|
119
|
+
void SetUnmountChildComponentViewHandler(UnmountChildComponentViewDelegate impl);
|
|
74
120
|
};
|
|
75
121
|
|
|
122
|
+
// [exclusiveto(ShadowNode)]
|
|
123
|
+
// [uuid(BF2A2A64-AB8B-47FC-BE69-E31DE6FC29A4)]
|
|
124
|
+
// interface IShadowNodeFactory
|
|
125
|
+
// {
|
|
126
|
+
// }
|
|
76
127
|
|
|
128
|
+
// [composable(IShadowNodeFactory, protected)]
|
|
77
129
|
[webhosthidden]
|
|
78
130
|
[experimental]
|
|
79
131
|
unsealed runtimeclass ShadowNode
|
|
@@ -81,6 +133,7 @@ namespace Microsoft.ReactNative
|
|
|
81
133
|
void EnsureUnsealed();
|
|
82
134
|
Object Tag { get; set; };
|
|
83
135
|
Object StateData{ get; set; };
|
|
136
|
+
EventEmitter EventEmitter { get; };
|
|
84
137
|
};
|
|
85
138
|
|
|
86
139
|
[webhosthidden]
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.75.
|
|
13
|
+
<ReactNativeWindowsVersion>0.75.2</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>75</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>2</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>37b826a56a76f188c8e9d717f386f787b9b8515a</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
For local testing of internal versions, modify the WinUI3Version, and comment out the addition nuget source in NuGet.Config
|
|
8
8
|
-->
|
|
9
9
|
<!-- This value is also used by the CLI, see /packages/@react-native-windows/generate-windows -->
|
|
10
|
-
<WinUI3Version Condition="'$(WinUI3Version)'=='' AND '$(UseExperimentalWinUI3)'=='true'">1.
|
|
10
|
+
<WinUI3Version Condition="'$(WinUI3Version)'=='' AND '$(UseExperimentalWinUI3)'=='true'">1.6.240701003-experimental2</WinUI3Version>
|
|
11
11
|
<WinUI3Version Condition="'$(WinUI3Version)'==''">1.5.240227000</WinUI3Version>
|
|
12
12
|
</PropertyGroup>
|
|
13
13
|
|
package/Shared/Shared.vcxitems
CHANGED
|
@@ -89,6 +89,10 @@
|
|
|
89
89
|
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\UriImageManager.idl</DependentUpon>
|
|
90
90
|
<SubType>Code</SubType>
|
|
91
91
|
</ClCompile>
|
|
92
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\ContentIslandComponentView.cpp">
|
|
93
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
94
|
+
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\CompositionComponentView.idl</DependentUpon>
|
|
95
|
+
</ClCompile>
|
|
92
96
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionViewComponentView.cpp">
|
|
93
97
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
94
98
|
</ClCompile>
|
|
@@ -155,6 +159,9 @@
|
|
|
155
159
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\AbiViewComponentDescriptor.cpp">
|
|
156
160
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
157
161
|
</ClCompile>
|
|
162
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\AbiEventEmitter.cpp">
|
|
163
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
164
|
+
</ClCompile>
|
|
158
165
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\AbiViewProps.cpp">
|
|
159
166
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
160
167
|
</ClCompile>
|
package/just-task.js
CHANGED
|
@@ -28,7 +28,7 @@ option('clean');
|
|
|
28
28
|
|
|
29
29
|
function codegen(test) {
|
|
30
30
|
execSync(
|
|
31
|
-
`react-native-windows-codegen --files src/**/*Native*.js --namespace Microsoft::ReactNativeSpecs --libraryName rnwcore --modulesWindows --modulesCxx${
|
|
31
|
+
`react-native-windows-codegen --files src/**/*Native*.js --namespace Microsoft::ReactNativeSpecs --libraryName rnwcore --modulesWindows --internalComponents --modulesCxx${
|
|
32
32
|
test ? ' --test' : ''
|
|
33
33
|
}`,
|
|
34
34
|
{env: process.env},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.75.
|
|
3
|
+
"version": "0.75.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "14.0.0",
|
|
27
27
|
"@react-native-community/cli-platform-android": "14.0.0",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "14.0.0",
|
|
29
|
-
"@react-native-windows/cli": "0.75.
|
|
29
|
+
"@react-native-windows/cli": "0.75.2",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "0.75.2",
|
|
32
32
|
"@react-native/codegen": "0.75.2",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"yargs": "^17.6.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@react-native-windows/codegen": "0.75.
|
|
69
|
+
"@react-native-windows/codegen": "0.75.1",
|
|
70
70
|
"@react-native/metro-config": "0.75.2",
|
|
71
71
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
72
72
|
"@rnw-scripts/eslint-config": "1.2.23",
|