react-native-windows 0.0.0-canary.680 → 0.0.0-canary.682
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/Libraries/Components/TextInput/TextInput.windows.js +1 -1
- package/Libraries/Components/View/View.windows.js +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.cpp +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +4 -0
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/Shared/HermesRuntimeHolder.cpp +5 -5
- package/Shared/Networking/DefaultBlobResource.cpp +2 -2
- package/package.json +2 -2
|
@@ -1548,7 +1548,7 @@ function InternalTextInput(props: Props): React.Node {
|
|
|
1548
1548
|
|
|
1549
1549
|
if (focusable && !accessible) {
|
|
1550
1550
|
console.warn(
|
|
1551
|
-
'All focusable views should report proper
|
|
1551
|
+
'All focusable views should report proper accessibility information. TextInputs marked as focusable should always be accessible.',
|
|
1552
1552
|
);
|
|
1553
1553
|
}
|
|
1554
1554
|
|
|
@@ -195,7 +195,7 @@ const View: React.AbstractComponent<
|
|
|
195
195
|
|
|
196
196
|
if (_focusable === true && _accessible === false) {
|
|
197
197
|
console.warn(
|
|
198
|
-
'All focusable views should report proper
|
|
198
|
+
'All focusable views should report proper accessibility information. Views marked as focusable should always be accessible.',
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
201
|
|
|
@@ -462,7 +462,8 @@ void ParagraphComponentView::DrawText() noexcept {
|
|
|
462
462
|
static_cast<FLOAT>((offset.x + m_layoutMetrics.contentInsets.left) / m_layoutMetrics.pointScaleFactor),
|
|
463
463
|
static_cast<FLOAT>((offset.y + m_layoutMetrics.contentInsets.top) / m_layoutMetrics.pointScaleFactor)),
|
|
464
464
|
m_textLayout.get(),
|
|
465
|
-
brush.get()
|
|
465
|
+
brush.get(),
|
|
466
|
+
D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT);
|
|
466
467
|
|
|
467
468
|
// restore dpi to old state
|
|
468
469
|
d2dDeviceContext->SetDpi(oldDpiX, oldDpiY);
|
package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp
CHANGED
|
@@ -766,6 +766,10 @@ void WindowsTextInputComponentView::UpdateText(const std::string &str) noexcept
|
|
|
766
766
|
EM_SETTEXTEX, reinterpret_cast<WPARAM>(&stt), reinterpret_cast<LPARAM>(str.c_str()), &res));
|
|
767
767
|
|
|
768
768
|
winrt::check_hresult(m_textServices->TxSendMessage(EM_EXGETSEL, 0, reinterpret_cast<LPARAM>(&cr), &res));
|
|
769
|
+
|
|
770
|
+
// enable colored emojis
|
|
771
|
+
winrt::check_hresult(
|
|
772
|
+
m_textServices->TxSendMessage(EM_SETTYPOGRAPHYOPTIONS, 0x1000 | 0x2000, 0x1000 | 0x2000, nullptr));
|
|
769
773
|
}
|
|
770
774
|
|
|
771
775
|
void WindowsTextInputComponentView::updateLayoutMetrics(
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.0.0-canary.
|
|
13
|
+
<ReactNativeWindowsVersion>0.0.0-canary.682</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>0</ReactNativeWindowsMinor>
|
|
16
16
|
<ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>true</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>4cda75c750eb3d48d0652ab7fe84e82a6d2a7473</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
|
@@ -233,11 +233,11 @@ class HermesScriptCache {
|
|
|
233
233
|
class HermesLocalConnection : public facebook::react::ILocalConnection {
|
|
234
234
|
public:
|
|
235
235
|
HermesLocalConnection(
|
|
236
|
-
std::unique_ptr<facebook::react::IRemoteConnection>
|
|
236
|
+
std::unique_ptr<facebook::react::IRemoteConnection> remoteConnection,
|
|
237
237
|
void *connectFunc) noexcept {
|
|
238
238
|
CRASH_ON_ERROR(getHermesApi().hermes_create_local_connection(
|
|
239
239
|
connectFunc,
|
|
240
|
-
reinterpret_cast<hermes_remote_connection>(
|
|
240
|
+
reinterpret_cast<hermes_remote_connection>(remoteConnection.release()),
|
|
241
241
|
&OnRemoteConnectionSendMessage,
|
|
242
242
|
&OnRemoteConnectionDisconnect,
|
|
243
243
|
&OnRemoteConnectionDelete,
|
|
@@ -279,9 +279,9 @@ int32_t NAPI_CDECL addInspectorPage(const char *title, const char *vm, void *con
|
|
|
279
279
|
title,
|
|
280
280
|
vm,
|
|
281
281
|
[connectFunc,
|
|
282
|
-
hermesApi = HermesApi::current()](std::unique_ptr<facebook::react::IRemoteConnection>
|
|
282
|
+
hermesApi = HermesApi::current()](std::unique_ptr<facebook::react::IRemoteConnection> remoteConnection) {
|
|
283
283
|
HermesApi::Scope apiScope(hermesApi);
|
|
284
|
-
return std::make_unique<HermesLocalConnection>(std::move(
|
|
284
|
+
return std::make_unique<HermesLocalConnection>(std::move(remoteConnection), connectFunc);
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
|
|
@@ -359,7 +359,7 @@ void HermesRuntimeHolder::crashHandler(int fileDescriptor) noexcept {
|
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
void HermesRuntimeHolder::teardown() noexcept {
|
|
362
|
-
// TODO: (vmoroz) Implement
|
|
362
|
+
// TODO: (@vmoroz) Implement
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
std::shared_ptr<HermesRuntimeHolder> HermesRuntimeHolder::loadFrom(
|
|
@@ -59,7 +59,7 @@ DefaultBlobResource::DefaultBlobResource(
|
|
|
59
59
|
|
|
60
60
|
auto blobPersistor = std::make_shared<MemoryBlobPersistor>();
|
|
61
61
|
auto contentHandler = std::make_shared<BlobWebSocketModuleContentHandler>(blobPersistor);
|
|
62
|
-
auto
|
|
62
|
+
auto requestBodyHandler = std::make_shared<BlobModuleRequestBodyHandler>(blobPersistor);
|
|
63
63
|
auto responseHandler = std::make_shared<BlobModuleResponseHandler>(blobPersistor);
|
|
64
64
|
|
|
65
65
|
auto contentHandlerPropId =
|
|
@@ -71,7 +71,7 @@ DefaultBlobResource::DefaultBlobResource(
|
|
|
71
71
|
propBag.Set(blobPersistorPropId, weak_ptr<IBlobPersistor>{blobPersistor});
|
|
72
72
|
|
|
73
73
|
auto result = std::make_shared<DefaultBlobResource>(
|
|
74
|
-
blobPersistor, contentHandler,
|
|
74
|
+
blobPersistor, contentHandler, requestBodyHandler, responseHandler, propBag);
|
|
75
75
|
|
|
76
76
|
return result;
|
|
77
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.682",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "12.0.0-alpha.3",
|
|
27
27
|
"@react-native-community/cli-platform-android": "12.0.0-alpha.3",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "12.0.0-alpha.3",
|
|
29
|
-
"@react-native-windows/cli": "0.0.0-canary.
|
|
29
|
+
"@react-native-windows/cli": "0.0.0-canary.179",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "0.73.0-nightly-20230622-0201e51bb",
|
|
32
32
|
"@react-native/codegen": "0.73.0-nightly-20230622-0201e51bb",
|