react-native-windows 0.66.5 → 0.67.0-preview.4
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/.flowconfig +2 -1
- package/CHANGELOG.json +934 -102
- package/CHANGELOG.md +358 -43
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
- package/Libraries/Alert/Alert.windows.js +48 -21
- package/Libraries/Alert/NativeDialogManagerWindows.js +49 -0
- package/Libraries/Animated/AnimatedEvent.js +23 -4
- package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
- package/Libraries/Animated/components/AnimatedImage.js +3 -3
- package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
- package/Libraries/Animated/components/AnimatedText.js +3 -3
- package/Libraries/Animated/components/AnimatedView.js +1 -3
- package/Libraries/Animated/createAnimatedComponent.js +3 -34
- package/Libraries/Components/Button.js +3 -0
- package/Libraries/Components/Button.windows.js +70 -38
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
- package/Libraries/Components/Flyout/Flyout.js +3 -3
- package/Libraries/Components/Flyout/Flyout.js.map +1 -1
- package/Libraries/Components/Flyout/FlyoutProps.d.ts +4 -0
- package/Libraries/Components/Flyout/FlyoutProps.js.map +1 -1
- package/Libraries/Components/Glyph/Glyph.js +2 -2
- package/Libraries/Components/Glyph/Glyph.js.map +1 -1
- package/Libraries/Components/Keyboard/KeyboardExt.js +4 -3
- package/Libraries/Components/Keyboard/KeyboardExt.js.map +1 -1
- package/Libraries/Components/Popup/Popup.js +3 -3
- package/Libraries/Components/Popup/Popup.js.map +1 -1
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
- package/Libraries/Components/ScrollView/ScrollView.js +17 -16
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
- package/Libraries/Components/View/View.js +1 -1
- package/Libraries/Components/View/View.windows.js +1 -1
- package/Libraries/Components/View/ViewAccessibility.js +1 -1
- package/Libraries/Components/View/ViewAccessibility.windows.js +1 -1
- package/Libraries/Components/View/ViewWindows.js +1 -1
- package/Libraries/Components/View/ViewWindows.js.map +1 -1
- package/Libraries/Components/View/ViewWindowsProps.d.ts +42 -2
- package/Libraries/Components/View/ViewWindowsProps.js.map +1 -1
- package/Libraries/Core/ExceptionsManager.js +45 -80
- package/Libraries/Core/ExtendedError.js +0 -1
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/setUpBatchedBridge.js +1 -1
- package/Libraries/Core/setUpGlobals.js +2 -4
- package/Libraries/Core/setUpTimers.js +2 -2
- package/Libraries/Image/Image.ios.js +6 -0
- package/Libraries/Image/Image.windows.js +6 -0
- package/Libraries/Image/ImageBackground.js +10 -8
- package/Libraries/Image/ImageProps.js +28 -0
- package/Libraries/LogBox/Data/LogBoxData.js +18 -19
- package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
- package/Libraries/Pressability/Pressability.js +13 -13
- package/Libraries/Pressability/Pressability.windows.js +13 -13
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
- package/Libraries/ReactNative/AppRegistry.js +4 -2
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1569 -875
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +529 -319
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +570 -362
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1592 -891
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +521 -311
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +562 -354
- package/Libraries/Share/Share.js +1 -1
- package/Libraries/StyleSheet/normalizeColor.js +2 -2
- package/Libraries/Text/Text.windows.js +1 -0
- package/Libraries/Text/TextNativeComponent.windows.js +72 -0
- package/Libraries/Text/TextProps.js +1 -7
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/Utilities/HMRClient.js +1 -1
- package/Microsoft.ReactNative/ABIViewManager.cpp +10 -1
- package/Microsoft.ReactNative/ABIViewManager.h +3 -0
- package/Microsoft.ReactNative/Base/CoreNativeModules.cpp +0 -6
- package/Microsoft.ReactNative/IReactDispatcher.cpp +16 -1
- package/Microsoft.ReactNative/IViewManager.idl +25 -0
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +35 -6
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +60 -0
- package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.cpp +3 -4
- package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.h +3 -3
- package/Microsoft.ReactNative/Modules/AlertModule.cpp +57 -14
- package/Microsoft.ReactNative/Modules/AlertModule.h +17 -24
- package/Microsoft.ReactNative/Modules/Animated/InterpolationAnimatedNode.cpp +4 -2
- package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.cpp +3 -1
- package/Microsoft.ReactNative/Modules/AppStateModule.cpp +8 -6
- package/Microsoft.ReactNative/Modules/AppStateModule.h +6 -9
- package/Microsoft.ReactNative/Modules/DeviceInfoModule.cpp +34 -22
- package/Microsoft.ReactNative/Modules/DeviceInfoModule.h +8 -4
- package/Microsoft.ReactNative/Modules/I18nManagerModule.cpp +6 -4
- package/Microsoft.ReactNative/Modules/I18nManagerModule.h +3 -2
- package/Microsoft.ReactNative/Modules/ImageViewManagerModule.cpp +47 -95
- package/Microsoft.ReactNative/Modules/ImageViewManagerModule.h +28 -17
- package/Microsoft.ReactNative/Modules/LinkingManagerModule.cpp +14 -4
- package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +1 -1
- package/Microsoft.ReactNative/Modules/PaperUIManagerModule.cpp +82 -66
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +14 -1
- package/Microsoft.ReactNative/ReactInstanceSettings.idl +3 -1
- package/Microsoft.ReactNative/ReactPointerEventArgs.cpp +37 -0
- package/Microsoft.ReactNative/ReactPointerEventArgs.h +28 -0
- package/Microsoft.ReactNative/ReactPointerEventArgs.idl +67 -0
- package/Microsoft.ReactNative/Utils/TextTransform.h +1 -1
- package/Microsoft.ReactNative/Utils/XamlIslandUtils.cpp +24 -10
- package/Microsoft.ReactNative/Utils/XamlIslandUtils.h +4 -2
- package/Microsoft.ReactNative/Version.rc +2 -19
- package/Microsoft.ReactNative/Views/FlyoutViewManager.cpp +57 -2
- package/Microsoft.ReactNative/Views/FrameworkElementTransferProperties.cpp +3 -0
- package/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp +7 -2
- package/Microsoft.ReactNative/Views/Image/ImageViewManager.cpp +16 -6
- package/Microsoft.ReactNative/Views/Image/ReactImage.cpp +18 -11
- package/Microsoft.ReactNative/Views/Image/ReactImage.h +3 -1
- package/Microsoft.ReactNative/Views/RawTextViewManager.cpp +4 -53
- package/Microsoft.ReactNative/Views/RawTextViewManager.h +0 -3
- package/Microsoft.ReactNative/Views/ShadowNodeBase.h +5 -0
- package/Microsoft.ReactNative/Views/Text/TextHighlighterVisitor.cpp +52 -0
- package/Microsoft.ReactNative/Views/Text/TextHighlighterVisitor.h +37 -0
- package/Microsoft.ReactNative/Views/Text/TextHitTestUtils.cpp +343 -0
- package/Microsoft.ReactNative/Views/Text/TextHitTestUtils.h +13 -0
- package/Microsoft.ReactNative/Views/Text/TextHitTestVisitor.cpp +76 -0
- package/Microsoft.ReactNative/Views/Text/TextHitTestVisitor.h +32 -0
- package/Microsoft.ReactNative/Views/Text/TextParentVisitor.cpp +12 -0
- package/Microsoft.ReactNative/Views/Text/TextParentVisitor.h +19 -0
- package/Microsoft.ReactNative/Views/Text/TextPropertyChangedParentVisitor.cpp +80 -0
- package/Microsoft.ReactNative/Views/Text/TextPropertyChangedParentVisitor.h +43 -0
- package/Microsoft.ReactNative/Views/Text/TextTransformParentVisitor.cpp +21 -0
- package/Microsoft.ReactNative/Views/Text/TextTransformParentVisitor.h +23 -0
- package/Microsoft.ReactNative/Views/Text/TextTransformVisitor.cpp +70 -0
- package/Microsoft.ReactNative/Views/Text/TextTransformVisitor.h +34 -0
- package/Microsoft.ReactNative/Views/Text/TextVisitor.cpp +56 -0
- package/Microsoft.ReactNative/Views/Text/TextVisitor.h +34 -0
- package/Microsoft.ReactNative/Views/Text/TextVisitorScope.h +35 -0
- package/Microsoft.ReactNative/Views/Text/TextVisitors.h +47 -0
- package/Microsoft.ReactNative/Views/TextViewManager.cpp +112 -103
- package/Microsoft.ReactNative/Views/TextViewManager.h +6 -12
- package/Microsoft.ReactNative/Views/TouchEventHandler.cpp +171 -129
- package/Microsoft.ReactNative/Views/TouchEventHandler.h +19 -15
- package/Microsoft.ReactNative/Views/ViewManagerBase.cpp +31 -0
- package/Microsoft.ReactNative/Views/ViewManagerBase.h +2 -0
- package/Microsoft.ReactNative/Views/ViewViewManager.cpp +0 -5
- package/Microsoft.ReactNative/Views/VirtualTextViewManager.cpp +21 -91
- package/Microsoft.ReactNative/Views/VirtualTextViewManager.h +5 -8
- package/Microsoft.ReactNative/XamlView.h +3 -3
- package/Microsoft.ReactNative/packages.config +1 -1
- package/Microsoft.ReactNative.Cxx/NativeModules.h +114 -0
- package/Microsoft.ReactNative.Cxx/VersionMacros.h +19 -0
- package/PropertySheets/External/Microsoft.ReactNative.Common.props +2 -0
- package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppApp.props +1 -0
- package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppLib.props +1 -0
- package/PropertySheets/Generated/PackageVersion.g.props +19 -0
- package/PropertySheets/PackageVersionDefinitions.props +28 -0
- package/PropertySheets/WinUI.props +1 -1
- package/Scripts/Microsoft.ReactNative.Managed.nuspec +1 -1
- package/Scripts/copyRNLibraries.js +12 -0
- package/Scripts/rnw-dependencies.ps1 +25 -24
- package/Shared/HermesSamplingProfiler.cpp +3 -21
- package/Shared/Modules/PlatformConstantsModule.cpp +1 -15
- package/Shared/Utils.cpp +58 -0
- package/Shared/Utils.h +3 -0
- package/codegen/NativeAccessibilityInfoSpec.g.h +9 -9
- package/codegen/NativeAccessibilityManagerSpec.g.h +49 -21
- package/codegen/NativeActionSheetManagerSpec.g.h +62 -6
- package/codegen/NativeAlertManagerSpec.g.h +4 -4
- package/codegen/NativeAnimatedModuleSpec.g.h +10 -10
- package/codegen/NativeAnimatedTurboModuleSpec.g.h +10 -10
- package/codegen/NativeAppStateSpec.g.h +25 -3
- package/codegen/NativeAppearanceSpec.g.h +3 -3
- package/codegen/NativeAsyncLocalStorageSpec.g.h +66 -18
- package/codegen/NativeAsyncSQLiteDBStorageSpec.g.h +66 -18
- package/codegen/NativeBlobModuleSpec.g.h +24 -6
- package/codegen/NativeBugReportingSpec.g.h +3 -3
- package/codegen/NativeDatePickerAndroidSpec.g.h +3 -3
- package/codegen/NativeDevLoadingViewSpec.g.h +3 -3
- package/codegen/NativeDeviceInfoSpec.g.h +18 -0
- package/codegen/NativeDialogManagerAndroidSpec.g.h +28 -4
- package/codegen/NativeDialogManagerWindowsSpec.g.h +77 -0
- package/codegen/NativeExceptionsManagerSpec.g.h +11 -11
- package/codegen/NativeFileReaderModuleSpec.g.h +6 -6
- package/codegen/NativeFrameRateLoggerSpec.g.h +11 -3
- package/codegen/NativeI18nManagerSpec.g.h +20 -0
- package/codegen/NativeImageEditorSpec.g.h +30 -6
- package/codegen/NativeImageLoaderAndroidSpec.g.h +6 -6
- package/codegen/NativeImageLoaderIOSSpec.g.h +6 -6
- package/codegen/NativeImagePickerIOSSpec.g.h +28 -12
- package/codegen/NativeImageStoreAndroidSpec.g.h +3 -3
- package/codegen/NativeImageStoreIOSSpec.g.h +21 -9
- package/codegen/NativeIntentAndroidSpec.g.h +3 -3
- package/codegen/NativeJSCHeapCaptureSpec.g.h +3 -3
- package/codegen/NativeJSCSamplingProfilerSpec.g.h +3 -3
- package/codegen/NativeJSDevSupportSpec.g.h +18 -0
- package/codegen/NativeNetworkingAndroidSpec.g.h +6 -6
- package/codegen/NativeNetworkingIOSSpec.g.h +26 -6
- package/codegen/NativePermissionsAndroidSpec.g.h +3 -3
- package/codegen/NativePlatformConstantsAndroidSpec.g.h +48 -0
- package/codegen/NativePlatformConstantsIOSSpec.g.h +38 -0
- package/codegen/NativePlatformConstantsWinSpec.g.h +32 -0
- package/codegen/NativePushNotificationManagerIOSSpec.g.h +35 -25
- package/codegen/NativeRedBoxSpec.g.h +3 -3
- package/codegen/NativeSampleTurboModuleSpec.g.h +32 -12
- package/codegen/NativeSegmentFetcherSpec.g.h +6 -6
- package/codegen/NativeSettingsManagerSpec.g.h +22 -6
- package/codegen/NativeShareModuleSpec.g.h +11 -3
- package/codegen/NativeSourceCodeSpec.g.h +16 -0
- package/codegen/NativeStatusBarManagerAndroidSpec.g.h +21 -3
- package/codegen/NativeStatusBarManagerIOSSpec.g.h +30 -6
- package/codegen/NativeToastAndroidSpec.g.h +24 -0
- package/codegen/NativeUIManagerSpec.g.h +63 -63
- package/codegen/NativeVibrationSpec.g.h +3 -3
- package/codegen/NativeWebSocketModuleSpec.g.h +9 -3
- package/index.js +15 -10
- package/index.windows.js +15 -10
- package/jest/mockModal.js +31 -0
- package/jest/setup.js +5 -3
- package/just-task.js +2 -1
- package/package.json +23 -20
- package/rntypes/BatchedBridge.d.ts +23 -0
- package/rntypes/Devtools.d.ts +20 -0
- package/rntypes/LaunchScreen.d.ts +9 -0
- package/rntypes/globals.d.ts +496 -0
- package/rntypes/index.d.ts +9966 -0
- package/rntypes/legacy-properties.d.ts +266 -0
- package/template/cpp-app/proj/MyApp.vcxproj +0 -5
- package/template/cpp-app/src/pch.h +1 -0
- package/template/cpp-lib/src/pch.h +3 -0
- package/template/cs-app/proj/MyApp.csproj +0 -6
- package/typings-index.d.ts +2 -1
- package/typings-index.js +7 -5
- package/typings-index.js.map +1 -1
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.windows.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
- package/Libraries/Components/StaticContainer.react.js +0 -51
- package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
- package/Libraries/Interaction/InteractionMixin.js +0 -54
- package/Libraries/ReactNative/queryLayoutByID.js +0 -58
- package/template/cpp-app/keys/MyApp_TemporaryKey.pfx +0 -0
- package/template/cs-app/keys/MyApp_TemporaryKey.pfx +0 -0
|
@@ -26,25 +26,49 @@ struct DialogManagerAndroidSpec_DialogOptions {
|
|
|
26
26
|
REACT_FIELD(buttonNeutral)
|
|
27
27
|
std::optional<std::string> buttonNeutral;
|
|
28
28
|
REACT_FIELD(items)
|
|
29
|
-
std::optional<
|
|
29
|
+
std::optional<std::vector<std::string>> items;
|
|
30
30
|
REACT_FIELD(cancelable)
|
|
31
31
|
std::optional<bool> cancelable;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
REACT_STRUCT(DialogManagerAndroidSpec_Constants)
|
|
35
|
+
struct DialogManagerAndroidSpec_Constants {
|
|
36
|
+
REACT_FIELD(buttonClicked)
|
|
37
|
+
std::string buttonClicked;
|
|
38
|
+
REACT_FIELD(dismissed)
|
|
39
|
+
std::string dismissed;
|
|
40
|
+
REACT_FIELD(buttonPositive)
|
|
41
|
+
double buttonPositive;
|
|
42
|
+
REACT_FIELD(buttonNegative)
|
|
43
|
+
double buttonNegative;
|
|
44
|
+
REACT_FIELD(buttonNeutral)
|
|
45
|
+
double buttonNeutral;
|
|
46
|
+
};
|
|
47
|
+
|
|
34
48
|
struct DialogManagerAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
49
|
+
static constexpr auto constants = std::tuple{
|
|
50
|
+
TypedConstant<DialogManagerAndroidSpec_Constants>{0},
|
|
51
|
+
};
|
|
35
52
|
static constexpr auto methods = std::tuple{
|
|
36
|
-
Method<void(DialogManagerAndroidSpec_DialogOptions, Callback<
|
|
53
|
+
Method<void(DialogManagerAndroidSpec_DialogOptions, Callback<std::string>, Callback<std::string, double>) noexcept>{0, L"showAlert"},
|
|
37
54
|
};
|
|
38
55
|
|
|
39
56
|
template <class TModule>
|
|
40
57
|
static constexpr void ValidateModule() noexcept {
|
|
58
|
+
constexpr auto constantCheckResults = CheckConstants<TModule, DialogManagerAndroidSpec>();
|
|
41
59
|
constexpr auto methodCheckResults = CheckMethods<TModule, DialogManagerAndroidSpec>();
|
|
42
60
|
|
|
61
|
+
REACT_SHOW_CONSTANT_SPEC_ERRORS(
|
|
62
|
+
0,
|
|
63
|
+
"DialogManagerAndroidSpec_Constants",
|
|
64
|
+
" REACT_GET_CONSTANTS(GetConstants) DialogManagerAndroidSpec_Constants GetConstants() noexcept {/*implementation*/}\n"
|
|
65
|
+
" REACT_GET_CONSTANTS(GetConstants) static DialogManagerAndroidSpec_Constants GetConstants() noexcept {/*implementation*/}\n");
|
|
66
|
+
|
|
43
67
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
44
68
|
0,
|
|
45
69
|
"showAlert",
|
|
46
|
-
" REACT_METHOD(showAlert) void showAlert(DialogManagerAndroidSpec_DialogOptions && config, std::function<void(
|
|
47
|
-
" REACT_METHOD(showAlert) static void showAlert(DialogManagerAndroidSpec_DialogOptions && config, std::function<void(
|
|
70
|
+
" REACT_METHOD(showAlert) void showAlert(DialogManagerAndroidSpec_DialogOptions && config, std::function<void(std::string)> const & onError, std::function<void(std::string, double)> const & onAction) noexcept { /* implementation */ }}\n"
|
|
71
|
+
" REACT_METHOD(showAlert) static void showAlert(DialogManagerAndroidSpec_DialogOptions && config, std::function<void(std::string)> const & onError, std::function<void(std::string, double)> const & onAction) noexcept { /* implementation */ }}\n");
|
|
48
72
|
}
|
|
49
73
|
};
|
|
50
74
|
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* This file is auto-generated from a NativeModule spec file in js.
|
|
4
|
+
*
|
|
5
|
+
* This is a C++ Spec class that should be used with MakeTurboModuleProvider to register native modules
|
|
6
|
+
* in a way that also verifies at compile time that the native module matches the interface required
|
|
7
|
+
* by the TurboModule JS spec.
|
|
8
|
+
*/
|
|
9
|
+
#pragma once
|
|
10
|
+
|
|
11
|
+
#include "NativeModules.h"
|
|
12
|
+
#include <tuple>
|
|
13
|
+
|
|
14
|
+
namespace Microsoft::ReactNativeSpecs {
|
|
15
|
+
|
|
16
|
+
REACT_STRUCT(DialogManagerWindowsSpec_DialogOptions)
|
|
17
|
+
struct DialogManagerWindowsSpec_DialogOptions {
|
|
18
|
+
REACT_FIELD(title)
|
|
19
|
+
std::optional<std::string> title;
|
|
20
|
+
REACT_FIELD(message)
|
|
21
|
+
std::optional<std::string> message;
|
|
22
|
+
REACT_FIELD(buttonPositive)
|
|
23
|
+
std::optional<std::string> buttonPositive;
|
|
24
|
+
REACT_FIELD(buttonNegative)
|
|
25
|
+
std::optional<std::string> buttonNegative;
|
|
26
|
+
REACT_FIELD(buttonNeutral)
|
|
27
|
+
std::optional<std::string> buttonNeutral;
|
|
28
|
+
REACT_FIELD(items)
|
|
29
|
+
std::optional<std::vector<std::string>> items;
|
|
30
|
+
REACT_FIELD(cancelable)
|
|
31
|
+
std::optional<bool> cancelable;
|
|
32
|
+
REACT_FIELD(defaultButton)
|
|
33
|
+
std::optional<int> defaultButton;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
REACT_STRUCT(DialogManagerWindowsSpec_Constants)
|
|
37
|
+
struct DialogManagerWindowsSpec_Constants {
|
|
38
|
+
REACT_FIELD(buttonClicked)
|
|
39
|
+
std::string buttonClicked;
|
|
40
|
+
REACT_FIELD(dismissed)
|
|
41
|
+
std::string dismissed;
|
|
42
|
+
REACT_FIELD(buttonPositive)
|
|
43
|
+
int buttonPositive;
|
|
44
|
+
REACT_FIELD(buttonNegative)
|
|
45
|
+
int buttonNegative;
|
|
46
|
+
REACT_FIELD(buttonNeutral)
|
|
47
|
+
int buttonNeutral;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
struct DialogManagerWindowsSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
51
|
+
static constexpr auto constants = std::tuple{
|
|
52
|
+
TypedConstant<DialogManagerWindowsSpec_Constants>{0},
|
|
53
|
+
};
|
|
54
|
+
static constexpr auto methods = std::tuple{
|
|
55
|
+
Method<void(DialogManagerWindowsSpec_DialogOptions, Callback<std::string>, Callback<std::string, int>) noexcept>{0, L"showAlert"},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
template <class TModule>
|
|
59
|
+
static constexpr void ValidateModule() noexcept {
|
|
60
|
+
constexpr auto constantCheckResults = CheckConstants<TModule, DialogManagerWindowsSpec>();
|
|
61
|
+
constexpr auto methodCheckResults = CheckMethods<TModule, DialogManagerWindowsSpec>();
|
|
62
|
+
|
|
63
|
+
REACT_SHOW_CONSTANT_SPEC_ERRORS(
|
|
64
|
+
0,
|
|
65
|
+
"DialogManagerWindowsSpec_Constants",
|
|
66
|
+
" REACT_GET_CONSTANTS(GetConstants) DialogManagerWindowsSpec_Constants GetConstants() noexcept {/*implementation*/}\n"
|
|
67
|
+
" REACT_GET_CONSTANTS(GetConstants) static DialogManagerWindowsSpec_Constants GetConstants() noexcept {/*implementation*/}\n");
|
|
68
|
+
|
|
69
|
+
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
70
|
+
0,
|
|
71
|
+
"showAlert",
|
|
72
|
+
" REACT_METHOD(showAlert) void showAlert(DialogManagerWindowsSpec_DialogOptions && config, std::function<void(std::string)> const & onError, std::function<void(std::string, int)> const & onAction) noexcept { /* implementation */ }}\n"
|
|
73
|
+
" REACT_METHOD(showAlert) static void showAlert(DialogManagerWindowsSpec_DialogOptions && config, std::function<void(std::string)> const & onError, std::function<void(std::string, int)> const & onAction) noexcept { /* implementation */ }}\n");
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
} // namespace Microsoft::ReactNativeSpecs
|
|
@@ -38,21 +38,21 @@ struct ExceptionsManagerSpec_ExceptionData {
|
|
|
38
38
|
REACT_FIELD(componentStack)
|
|
39
39
|
std::optional<std::string> componentStack;
|
|
40
40
|
REACT_FIELD(stack)
|
|
41
|
-
|
|
41
|
+
std::vector<ExceptionsManagerSpec_StackFrame> stack;
|
|
42
42
|
REACT_FIELD(id)
|
|
43
43
|
double id;
|
|
44
44
|
REACT_FIELD(isFatal)
|
|
45
45
|
bool isFatal;
|
|
46
46
|
REACT_FIELD(extraData)
|
|
47
|
-
std::optional<React::
|
|
47
|
+
std::optional<React::JSValue> extraData;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
struct ExceptionsManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
51
51
|
static constexpr auto methods = std::tuple{
|
|
52
|
-
Method<void(std::string,
|
|
53
|
-
Method<void(std::string,
|
|
52
|
+
Method<void(std::string, std::vector<ExceptionsManagerSpec_StackFrame>, double) noexcept>{0, L"reportFatalException"},
|
|
53
|
+
Method<void(std::string, std::vector<ExceptionsManagerSpec_StackFrame>, double) noexcept>{1, L"reportSoftException"},
|
|
54
54
|
Method<void(ExceptionsManagerSpec_ExceptionData) noexcept>{2, L"reportException"},
|
|
55
|
-
Method<void(std::string,
|
|
55
|
+
Method<void(std::string, std::vector<ExceptionsManagerSpec_StackFrame>, double) noexcept>{3, L"updateExceptionMessage"},
|
|
56
56
|
Method<void() noexcept>{4, L"dismissRedbox"},
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -63,13 +63,13 @@ struct ExceptionsManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
63
63
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
64
64
|
0,
|
|
65
65
|
"reportFatalException",
|
|
66
|
-
" REACT_METHOD(reportFatalException) void reportFatalException(std::string message,
|
|
67
|
-
" REACT_METHOD(reportFatalException) static void reportFatalException(std::string message,
|
|
66
|
+
" REACT_METHOD(reportFatalException) void reportFatalException(std::string message, std::vector<ExceptionsManagerSpec_StackFrame> const & stack, double exceptionId) noexcept { /* implementation */ }}\n"
|
|
67
|
+
" REACT_METHOD(reportFatalException) static void reportFatalException(std::string message, std::vector<ExceptionsManagerSpec_StackFrame> const & stack, double exceptionId) noexcept { /* implementation */ }}\n");
|
|
68
68
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
69
69
|
1,
|
|
70
70
|
"reportSoftException",
|
|
71
|
-
" REACT_METHOD(reportSoftException) void reportSoftException(std::string message,
|
|
72
|
-
" REACT_METHOD(reportSoftException) static void reportSoftException(std::string message,
|
|
71
|
+
" REACT_METHOD(reportSoftException) void reportSoftException(std::string message, std::vector<ExceptionsManagerSpec_StackFrame> const & stack, double exceptionId) noexcept { /* implementation */ }}\n"
|
|
72
|
+
" REACT_METHOD(reportSoftException) static void reportSoftException(std::string message, std::vector<ExceptionsManagerSpec_StackFrame> const & stack, double exceptionId) noexcept { /* implementation */ }}\n");
|
|
73
73
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
74
74
|
2,
|
|
75
75
|
"reportException",
|
|
@@ -78,8 +78,8 @@ struct ExceptionsManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
78
78
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
79
79
|
3,
|
|
80
80
|
"updateExceptionMessage",
|
|
81
|
-
" REACT_METHOD(updateExceptionMessage) void updateExceptionMessage(std::string message,
|
|
82
|
-
" REACT_METHOD(updateExceptionMessage) static void updateExceptionMessage(std::string message,
|
|
81
|
+
" REACT_METHOD(updateExceptionMessage) void updateExceptionMessage(std::string message, std::vector<ExceptionsManagerSpec_StackFrame> const & stack, double exceptionId) noexcept { /* implementation */ }}\n"
|
|
82
|
+
" REACT_METHOD(updateExceptionMessage) static void updateExceptionMessage(std::string message, std::vector<ExceptionsManagerSpec_StackFrame> const & stack, double exceptionId) noexcept { /* implementation */ }}\n");
|
|
83
83
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
84
84
|
4,
|
|
85
85
|
"dismissRedbox",
|
|
@@ -15,8 +15,8 @@ namespace Microsoft::ReactNativeSpecs {
|
|
|
15
15
|
|
|
16
16
|
struct FileReaderModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
17
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(React::
|
|
19
|
-
Method<void(React::
|
|
18
|
+
Method<void(React::JSValue, Promise<React::JSValue>) noexcept>{0, L"readAsDataURL"},
|
|
19
|
+
Method<void(React::JSValue, std::string, Promise<React::JSValue>) noexcept>{1, L"readAsText"},
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
template <class TModule>
|
|
@@ -26,13 +26,13 @@ struct FileReaderModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
26
26
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
27
27
|
0,
|
|
28
28
|
"readAsDataURL",
|
|
29
|
-
" REACT_METHOD(readAsDataURL) void readAsDataURL(React::
|
|
30
|
-
" REACT_METHOD(readAsDataURL) static void readAsDataURL(React::
|
|
29
|
+
" REACT_METHOD(readAsDataURL) void readAsDataURL(React::JSValue && data, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n"
|
|
30
|
+
" REACT_METHOD(readAsDataURL) static void readAsDataURL(React::JSValue && data, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n");
|
|
31
31
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
32
32
|
1,
|
|
33
33
|
"readAsText",
|
|
34
|
-
" REACT_METHOD(readAsText) void readAsText(React::
|
|
35
|
-
" REACT_METHOD(readAsText) static void readAsText(React::
|
|
34
|
+
" REACT_METHOD(readAsText) void readAsText(React::JSValue && data, std::string encoding, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n"
|
|
35
|
+
" REACT_METHOD(readAsText) static void readAsText(React::JSValue && data, std::string encoding, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n");
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -13,9 +13,17 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
REACT_STRUCT(FrameRateLoggerSpec_setGlobalOptions_options)
|
|
17
|
+
struct FrameRateLoggerSpec_setGlobalOptions_options {
|
|
18
|
+
REACT_FIELD(debug)
|
|
19
|
+
std::optional<bool> debug;
|
|
20
|
+
REACT_FIELD(reportStackTraces)
|
|
21
|
+
std::optional<bool> reportStackTraces;
|
|
22
|
+
};
|
|
23
|
+
|
|
16
24
|
struct FrameRateLoggerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
25
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(
|
|
26
|
+
Method<void(FrameRateLoggerSpec_setGlobalOptions_options) noexcept>{0, L"setGlobalOptions"},
|
|
19
27
|
Method<void(std::string) noexcept>{1, L"setContext"},
|
|
20
28
|
Method<void() noexcept>{2, L"beginScroll"},
|
|
21
29
|
Method<void() noexcept>{3, L"endScroll"},
|
|
@@ -28,8 +36,8 @@ struct FrameRateLoggerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
28
36
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
29
37
|
0,
|
|
30
38
|
"setGlobalOptions",
|
|
31
|
-
" REACT_METHOD(setGlobalOptions) void setGlobalOptions(
|
|
32
|
-
" REACT_METHOD(setGlobalOptions) static void setGlobalOptions(
|
|
39
|
+
" REACT_METHOD(setGlobalOptions) void setGlobalOptions(FrameRateLoggerSpec_setGlobalOptions_options && options) noexcept { /* implementation */ }}\n"
|
|
40
|
+
" REACT_METHOD(setGlobalOptions) static void setGlobalOptions(FrameRateLoggerSpec_setGlobalOptions_options && options) noexcept { /* implementation */ }}\n");
|
|
33
41
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
34
42
|
1,
|
|
35
43
|
"setContext",
|
|
@@ -13,7 +13,20 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
REACT_STRUCT(I18nManagerSpec_Constants)
|
|
17
|
+
struct I18nManagerSpec_Constants {
|
|
18
|
+
REACT_FIELD(isRTL)
|
|
19
|
+
bool isRTL;
|
|
20
|
+
REACT_FIELD(doLeftAndRightSwapInRTL)
|
|
21
|
+
bool doLeftAndRightSwapInRTL;
|
|
22
|
+
REACT_FIELD(localeIdentifier)
|
|
23
|
+
std::optional<std::string> localeIdentifier;
|
|
24
|
+
};
|
|
25
|
+
|
|
16
26
|
struct I18nManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
27
|
+
static constexpr auto constants = std::tuple{
|
|
28
|
+
TypedConstant<I18nManagerSpec_Constants>{0},
|
|
29
|
+
};
|
|
17
30
|
static constexpr auto methods = std::tuple{
|
|
18
31
|
Method<void(bool) noexcept>{0, L"allowRTL"},
|
|
19
32
|
Method<void(bool) noexcept>{1, L"forceRTL"},
|
|
@@ -22,8 +35,15 @@ struct I18nManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
22
35
|
|
|
23
36
|
template <class TModule>
|
|
24
37
|
static constexpr void ValidateModule() noexcept {
|
|
38
|
+
constexpr auto constantCheckResults = CheckConstants<TModule, I18nManagerSpec>();
|
|
25
39
|
constexpr auto methodCheckResults = CheckMethods<TModule, I18nManagerSpec>();
|
|
26
40
|
|
|
41
|
+
REACT_SHOW_CONSTANT_SPEC_ERRORS(
|
|
42
|
+
0,
|
|
43
|
+
"I18nManagerSpec_Constants",
|
|
44
|
+
" REACT_GET_CONSTANTS(GetConstants) I18nManagerSpec_Constants GetConstants() noexcept {/*implementation*/}\n"
|
|
45
|
+
" REACT_GET_CONSTANTS(GetConstants) static I18nManagerSpec_Constants GetConstants() noexcept {/*implementation*/}\n");
|
|
46
|
+
|
|
27
47
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
28
48
|
0,
|
|
29
49
|
"allowRTL",
|
|
@@ -13,14 +13,38 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
REACT_STRUCT(ImageEditorSpec_Options_offset)
|
|
17
|
+
struct ImageEditorSpec_Options_offset {
|
|
18
|
+
REACT_FIELD(x)
|
|
19
|
+
double x;
|
|
20
|
+
REACT_FIELD(y)
|
|
21
|
+
double y;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
REACT_STRUCT(ImageEditorSpec_Options_size)
|
|
25
|
+
struct ImageEditorSpec_Options_size {
|
|
26
|
+
REACT_FIELD(width)
|
|
27
|
+
double width;
|
|
28
|
+
REACT_FIELD(height)
|
|
29
|
+
double height;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
REACT_STRUCT(ImageEditorSpec_Options_displaySize)
|
|
33
|
+
struct ImageEditorSpec_Options_displaySize {
|
|
34
|
+
REACT_FIELD(width)
|
|
35
|
+
double width;
|
|
36
|
+
REACT_FIELD(height)
|
|
37
|
+
double height;
|
|
38
|
+
};
|
|
39
|
+
|
|
16
40
|
REACT_STRUCT(ImageEditorSpec_Options)
|
|
17
41
|
struct ImageEditorSpec_Options {
|
|
18
42
|
REACT_FIELD(offset)
|
|
19
|
-
|
|
43
|
+
ImageEditorSpec_Options_offset offset;
|
|
20
44
|
REACT_FIELD(size)
|
|
21
|
-
|
|
45
|
+
ImageEditorSpec_Options_size size;
|
|
22
46
|
REACT_FIELD(displaySize)
|
|
23
|
-
std::optional<
|
|
47
|
+
std::optional<ImageEditorSpec_Options_displaySize> displaySize;
|
|
24
48
|
REACT_FIELD(resizeMode)
|
|
25
49
|
std::optional<std::string> resizeMode;
|
|
26
50
|
REACT_FIELD(allowExternalStorage)
|
|
@@ -29,7 +53,7 @@ struct ImageEditorSpec_Options {
|
|
|
29
53
|
|
|
30
54
|
struct ImageEditorSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
31
55
|
static constexpr auto methods = std::tuple{
|
|
32
|
-
Method<void(std::string, ImageEditorSpec_Options, Callback<
|
|
56
|
+
Method<void(std::string, ImageEditorSpec_Options, Callback<std::string>, Callback<std::string>) noexcept>{0, L"cropImage"},
|
|
33
57
|
};
|
|
34
58
|
|
|
35
59
|
template <class TModule>
|
|
@@ -39,8 +63,8 @@ struct ImageEditorSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
39
63
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
40
64
|
0,
|
|
41
65
|
"cropImage",
|
|
42
|
-
" REACT_METHOD(cropImage) void cropImage(std::string uri, ImageEditorSpec_Options && cropData, std::function<void(
|
|
43
|
-
" REACT_METHOD(cropImage) static void cropImage(std::string uri, ImageEditorSpec_Options && cropData, std::function<void(
|
|
66
|
+
" REACT_METHOD(cropImage) void cropImage(std::string uri, ImageEditorSpec_Options && cropData, std::function<void(std::string)> const & successCallback, std::function<void(std::string)> const & errorCallback) noexcept { /* implementation */ }}\n"
|
|
67
|
+
" REACT_METHOD(cropImage) static void cropImage(std::string uri, ImageEditorSpec_Options && cropData, std::function<void(std::string)> const & successCallback, std::function<void(std::string)> const & errorCallback) noexcept { /* implementation */ }}\n");
|
|
44
68
|
}
|
|
45
69
|
};
|
|
46
70
|
|
|
@@ -17,9 +17,9 @@ struct ImageLoaderAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
17
17
|
static constexpr auto methods = std::tuple{
|
|
18
18
|
Method<void(double) noexcept>{0, L"abortRequest"},
|
|
19
19
|
Method<void(std::string, Promise<React::JSValue>) noexcept>{1, L"getSize"},
|
|
20
|
-
Method<void(std::string, React::
|
|
20
|
+
Method<void(std::string, React::JSValue, Promise<React::JSValue>) noexcept>{2, L"getSizeWithHeaders"},
|
|
21
21
|
Method<void(std::string, double, Promise<React::JSValue>) noexcept>{3, L"prefetchImage"},
|
|
22
|
-
Method<void(
|
|
22
|
+
Method<void(std::vector<std::string>, Promise<React::JSValue>) noexcept>{4, L"queryCache"},
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
template <class TModule>
|
|
@@ -39,8 +39,8 @@ struct ImageLoaderAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
39
39
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
40
40
|
2,
|
|
41
41
|
"getSizeWithHeaders",
|
|
42
|
-
" REACT_METHOD(getSizeWithHeaders) void getSizeWithHeaders(std::string uri, React::
|
|
43
|
-
" REACT_METHOD(getSizeWithHeaders) static void getSizeWithHeaders(std::string uri, React::
|
|
42
|
+
" REACT_METHOD(getSizeWithHeaders) void getSizeWithHeaders(std::string uri, React::JSValue && headers, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n"
|
|
43
|
+
" REACT_METHOD(getSizeWithHeaders) static void getSizeWithHeaders(std::string uri, React::JSValue && headers, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n");
|
|
44
44
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
45
45
|
3,
|
|
46
46
|
"prefetchImage",
|
|
@@ -49,8 +49,8 @@ struct ImageLoaderAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
49
49
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
50
50
|
4,
|
|
51
51
|
"queryCache",
|
|
52
|
-
" REACT_METHOD(queryCache) void queryCache(
|
|
53
|
-
" REACT_METHOD(queryCache) static void queryCache(
|
|
52
|
+
" REACT_METHOD(queryCache) void queryCache(std::vector<std::string> const & uris, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n"
|
|
53
|
+
" REACT_METHOD(queryCache) static void queryCache(std::vector<std::string> const & uris, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n");
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -16,10 +16,10 @@ namespace Microsoft::ReactNativeSpecs {
|
|
|
16
16
|
struct ImageLoaderIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
17
|
static constexpr auto methods = std::tuple{
|
|
18
18
|
Method<void(std::string, Promise<React::JSValue>) noexcept>{0, L"getSize"},
|
|
19
|
-
Method<void(std::string, React::
|
|
19
|
+
Method<void(std::string, React::JSValue, Promise<React::JSValue>) noexcept>{1, L"getSizeWithHeaders"},
|
|
20
20
|
Method<void(std::string, Promise<React::JSValue>) noexcept>{2, L"prefetchImage"},
|
|
21
21
|
Method<void(std::string, std::string, double, Promise<React::JSValue>) noexcept>{3, L"prefetchImageWithMetadata"},
|
|
22
|
-
Method<void(
|
|
22
|
+
Method<void(std::vector<std::string>, Promise<React::JSValue>) noexcept>{4, L"queryCache"},
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
template <class TModule>
|
|
@@ -34,8 +34,8 @@ struct ImageLoaderIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
34
34
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
35
35
|
1,
|
|
36
36
|
"getSizeWithHeaders",
|
|
37
|
-
" REACT_METHOD(getSizeWithHeaders) void getSizeWithHeaders(std::string uri, React::
|
|
38
|
-
" REACT_METHOD(getSizeWithHeaders) static void getSizeWithHeaders(std::string uri, React::
|
|
37
|
+
" REACT_METHOD(getSizeWithHeaders) void getSizeWithHeaders(std::string uri, React::JSValue && headers, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n"
|
|
38
|
+
" REACT_METHOD(getSizeWithHeaders) static void getSizeWithHeaders(std::string uri, React::JSValue && headers, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n");
|
|
39
39
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
40
40
|
2,
|
|
41
41
|
"prefetchImage",
|
|
@@ -49,8 +49,8 @@ struct ImageLoaderIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
49
49
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
50
50
|
4,
|
|
51
51
|
"queryCache",
|
|
52
|
-
" REACT_METHOD(queryCache) void queryCache(
|
|
53
|
-
" REACT_METHOD(queryCache) static void queryCache(
|
|
52
|
+
" REACT_METHOD(queryCache) void queryCache(std::vector<std::string> const & uris, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n"
|
|
53
|
+
" REACT_METHOD(queryCache) static void queryCache(std::vector<std::string> const & uris, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n");
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -13,12 +13,28 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
REACT_STRUCT(ImagePickerIOSSpec_openCameraDialog_config)
|
|
17
|
+
struct ImagePickerIOSSpec_openCameraDialog_config {
|
|
18
|
+
REACT_FIELD(unmirrorFrontFacingCamera)
|
|
19
|
+
bool unmirrorFrontFacingCamera;
|
|
20
|
+
REACT_FIELD(videoMode)
|
|
21
|
+
bool videoMode;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
REACT_STRUCT(ImagePickerIOSSpec_openSelectDialog_config)
|
|
25
|
+
struct ImagePickerIOSSpec_openSelectDialog_config {
|
|
26
|
+
REACT_FIELD(showImages)
|
|
27
|
+
bool showImages;
|
|
28
|
+
REACT_FIELD(showVideos)
|
|
29
|
+
bool showVideos;
|
|
30
|
+
};
|
|
31
|
+
|
|
16
32
|
struct ImagePickerIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
33
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(Callback<
|
|
19
|
-
Method<void(Callback<
|
|
20
|
-
Method<void(
|
|
21
|
-
Method<void(
|
|
34
|
+
Method<void(Callback<bool>) noexcept>{0, L"canRecordVideos"},
|
|
35
|
+
Method<void(Callback<bool>) noexcept>{1, L"canUseCamera"},
|
|
36
|
+
Method<void(ImagePickerIOSSpec_openCameraDialog_config, Callback<std::string, double, double>, Callback<>) noexcept>{2, L"openCameraDialog"},
|
|
37
|
+
Method<void(ImagePickerIOSSpec_openSelectDialog_config, Callback<std::string, double, double>, Callback<>) noexcept>{3, L"openSelectDialog"},
|
|
22
38
|
Method<void() noexcept>{4, L"clearAllPendingVideos"},
|
|
23
39
|
Method<void(std::string) noexcept>{5, L"removePendingVideo"},
|
|
24
40
|
};
|
|
@@ -30,23 +46,23 @@ struct ImagePickerIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
30
46
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
31
47
|
0,
|
|
32
48
|
"canRecordVideos",
|
|
33
|
-
" REACT_METHOD(canRecordVideos) void canRecordVideos(std::function<void(
|
|
34
|
-
" REACT_METHOD(canRecordVideos) static void canRecordVideos(std::function<void(
|
|
49
|
+
" REACT_METHOD(canRecordVideos) void canRecordVideos(std::function<void(bool)> const & callback) noexcept { /* implementation */ }}\n"
|
|
50
|
+
" REACT_METHOD(canRecordVideos) static void canRecordVideos(std::function<void(bool)> const & callback) noexcept { /* implementation */ }}\n");
|
|
35
51
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
36
52
|
1,
|
|
37
53
|
"canUseCamera",
|
|
38
|
-
" REACT_METHOD(canUseCamera) void canUseCamera(std::function<void(
|
|
39
|
-
" REACT_METHOD(canUseCamera) static void canUseCamera(std::function<void(
|
|
54
|
+
" REACT_METHOD(canUseCamera) void canUseCamera(std::function<void(bool)> const & callback) noexcept { /* implementation */ }}\n"
|
|
55
|
+
" REACT_METHOD(canUseCamera) static void canUseCamera(std::function<void(bool)> const & callback) noexcept { /* implementation */ }}\n");
|
|
40
56
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
41
57
|
2,
|
|
42
58
|
"openCameraDialog",
|
|
43
|
-
" REACT_METHOD(openCameraDialog) void openCameraDialog(
|
|
44
|
-
" REACT_METHOD(openCameraDialog) static void openCameraDialog(
|
|
59
|
+
" REACT_METHOD(openCameraDialog) void openCameraDialog(ImagePickerIOSSpec_openCameraDialog_config && config, std::function<void(std::string, double, double)> const & successCallback, std::function<void()> const & cancelCallback) noexcept { /* implementation */ }}\n"
|
|
60
|
+
" REACT_METHOD(openCameraDialog) static void openCameraDialog(ImagePickerIOSSpec_openCameraDialog_config && config, std::function<void(std::string, double, double)> const & successCallback, std::function<void()> const & cancelCallback) noexcept { /* implementation */ }}\n");
|
|
45
61
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
46
62
|
3,
|
|
47
63
|
"openSelectDialog",
|
|
48
|
-
" REACT_METHOD(openSelectDialog) void openSelectDialog(
|
|
49
|
-
" REACT_METHOD(openSelectDialog) static void openSelectDialog(
|
|
64
|
+
" REACT_METHOD(openSelectDialog) void openSelectDialog(ImagePickerIOSSpec_openSelectDialog_config && config, std::function<void(std::string, double, double)> const & successCallback, std::function<void()> const & cancelCallback) noexcept { /* implementation */ }}\n"
|
|
65
|
+
" REACT_METHOD(openSelectDialog) static void openSelectDialog(ImagePickerIOSSpec_openSelectDialog_config && config, std::function<void(std::string, double, double)> const & successCallback, std::function<void()> const & cancelCallback) noexcept { /* implementation */ }}\n");
|
|
50
66
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
51
67
|
4,
|
|
52
68
|
"clearAllPendingVideos",
|
|
@@ -15,7 +15,7 @@ namespace Microsoft::ReactNativeSpecs {
|
|
|
15
15
|
|
|
16
16
|
struct ImageStoreAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
17
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(std::string, Callback<
|
|
18
|
+
Method<void(std::string, Callback<std::string>, Callback<std::string>) noexcept>{0, L"getBase64ForTag"},
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
template <class TModule>
|
|
@@ -25,8 +25,8 @@ struct ImageStoreAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
25
25
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
26
26
|
0,
|
|
27
27
|
"getBase64ForTag",
|
|
28
|
-
" REACT_METHOD(getBase64ForTag) void getBase64ForTag(std::string uri, std::function<void(
|
|
29
|
-
" REACT_METHOD(getBase64ForTag) static void getBase64ForTag(std::string uri, std::function<void(
|
|
28
|
+
" REACT_METHOD(getBase64ForTag) void getBase64ForTag(std::string uri, std::function<void(std::string)> const & successCallback, std::function<void(std::string)> const & errorCallback) noexcept { /* implementation */ }}\n"
|
|
29
|
+
" REACT_METHOD(getBase64ForTag) static void getBase64ForTag(std::string uri, std::function<void(std::string)> const & successCallback, std::function<void(std::string)> const & errorCallback) noexcept { /* implementation */ }}\n");
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -13,12 +13,24 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
REACT_STRUCT(ImageStoreIOSSpec_getBase64ForTag_errorCallback_error)
|
|
17
|
+
struct ImageStoreIOSSpec_getBase64ForTag_errorCallback_error {
|
|
18
|
+
REACT_FIELD(message)
|
|
19
|
+
std::string message;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
REACT_STRUCT(ImageStoreIOSSpec_addImageFromBase64_errorCallback_error)
|
|
23
|
+
struct ImageStoreIOSSpec_addImageFromBase64_errorCallback_error {
|
|
24
|
+
REACT_FIELD(message)
|
|
25
|
+
std::string message;
|
|
26
|
+
};
|
|
27
|
+
|
|
16
28
|
struct ImageStoreIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
29
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(std::string, Callback<
|
|
19
|
-
Method<void(std::string, Callback<
|
|
30
|
+
Method<void(std::string, Callback<std::string>, Callback<ImageStoreIOSSpec_getBase64ForTag_errorCallback_error>) noexcept>{0, L"getBase64ForTag"},
|
|
31
|
+
Method<void(std::string, Callback<bool>) noexcept>{1, L"hasImageForTag"},
|
|
20
32
|
Method<void(std::string) noexcept>{2, L"removeImageForTag"},
|
|
21
|
-
Method<void(std::string, Callback<
|
|
33
|
+
Method<void(std::string, Callback<std::string>, Callback<ImageStoreIOSSpec_addImageFromBase64_errorCallback_error>) noexcept>{3, L"addImageFromBase64"},
|
|
22
34
|
};
|
|
23
35
|
|
|
24
36
|
template <class TModule>
|
|
@@ -28,13 +40,13 @@ struct ImageStoreIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
28
40
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
29
41
|
0,
|
|
30
42
|
"getBase64ForTag",
|
|
31
|
-
" REACT_METHOD(getBase64ForTag) void getBase64ForTag(std::string uri, std::function<void(
|
|
32
|
-
" REACT_METHOD(getBase64ForTag) static void getBase64ForTag(std::string uri, std::function<void(
|
|
43
|
+
" REACT_METHOD(getBase64ForTag) void getBase64ForTag(std::string uri, std::function<void(std::string)> const & successCallback, std::function<void(ImageStoreIOSSpec_getBase64ForTag_errorCallback_error const &)> const & errorCallback) noexcept { /* implementation */ }}\n"
|
|
44
|
+
" REACT_METHOD(getBase64ForTag) static void getBase64ForTag(std::string uri, std::function<void(std::string)> const & successCallback, std::function<void(ImageStoreIOSSpec_getBase64ForTag_errorCallback_error const &)> const & errorCallback) noexcept { /* implementation */ }}\n");
|
|
33
45
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
34
46
|
1,
|
|
35
47
|
"hasImageForTag",
|
|
36
|
-
" REACT_METHOD(hasImageForTag) void hasImageForTag(std::string uri, std::function<void(
|
|
37
|
-
" REACT_METHOD(hasImageForTag) static void hasImageForTag(std::string uri, std::function<void(
|
|
48
|
+
" REACT_METHOD(hasImageForTag) void hasImageForTag(std::string uri, std::function<void(bool)> const & callback) noexcept { /* implementation */ }}\n"
|
|
49
|
+
" REACT_METHOD(hasImageForTag) static void hasImageForTag(std::string uri, std::function<void(bool)> const & callback) noexcept { /* implementation */ }}\n");
|
|
38
50
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
39
51
|
2,
|
|
40
52
|
"removeImageForTag",
|
|
@@ -43,8 +55,8 @@ struct ImageStoreIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
43
55
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
44
56
|
3,
|
|
45
57
|
"addImageFromBase64",
|
|
46
|
-
" REACT_METHOD(addImageFromBase64) void addImageFromBase64(std::string base64ImageData, std::function<void(
|
|
47
|
-
" REACT_METHOD(addImageFromBase64) static void addImageFromBase64(std::string base64ImageData, std::function<void(
|
|
58
|
+
" REACT_METHOD(addImageFromBase64) void addImageFromBase64(std::string base64ImageData, std::function<void(std::string)> const & successCallback, std::function<void(ImageStoreIOSSpec_addImageFromBase64_errorCallback_error const &)> const & errorCallback) noexcept { /* implementation */ }}\n"
|
|
59
|
+
" REACT_METHOD(addImageFromBase64) static void addImageFromBase64(std::string base64ImageData, std::function<void(std::string)> const & successCallback, std::function<void(ImageStoreIOSSpec_addImageFromBase64_errorCallback_error const &)> const & errorCallback) noexcept { /* implementation */ }}\n");
|
|
48
60
|
}
|
|
49
61
|
};
|
|
50
62
|
|
|
@@ -19,7 +19,7 @@ struct IntentAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
19
19
|
Method<void(std::string, Promise<React::JSValue>) noexcept>{1, L"canOpenURL"},
|
|
20
20
|
Method<void(std::string, Promise<React::JSValue>) noexcept>{2, L"openURL"},
|
|
21
21
|
Method<void(Promise<React::JSValue>) noexcept>{3, L"openSettings"},
|
|
22
|
-
Method<void(std::string, React::JSValueArray
|
|
22
|
+
Method<void(std::string, std::optional<React::JSValueArray>, Promise<React::JSValue>) noexcept>{4, L"sendIntent"},
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
template <class TModule>
|
|
@@ -49,8 +49,8 @@ struct IntentAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
49
49
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
50
50
|
4,
|
|
51
51
|
"sendIntent",
|
|
52
|
-
" REACT_METHOD(sendIntent) void sendIntent(std::string action, React::JSValueArray
|
|
53
|
-
" REACT_METHOD(sendIntent) static void sendIntent(std::string action, React::JSValueArray
|
|
52
|
+
" REACT_METHOD(sendIntent) void sendIntent(std::string action, std::optional<React::JSValueArray> extras, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n"
|
|
53
|
+
" REACT_METHOD(sendIntent) static void sendIntent(std::string action, std::optional<React::JSValueArray> extras, React::ReactPromise<React::JSValue> &&result) noexcept { /* implementation */ }}\n");
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -15,7 +15,7 @@ namespace Microsoft::ReactNativeSpecs {
|
|
|
15
15
|
|
|
16
16
|
struct JSCHeapCaptureSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
17
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(std::string, std::string) noexcept>{0, L"captureComplete"},
|
|
18
|
+
Method<void(std::string, std::optional<std::string>) noexcept>{0, L"captureComplete"},
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
template <class TModule>
|
|
@@ -25,8 +25,8 @@ struct JSCHeapCaptureSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
25
25
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
26
26
|
0,
|
|
27
27
|
"captureComplete",
|
|
28
|
-
" REACT_METHOD(captureComplete) void captureComplete(std::string path, std::string error) noexcept { /* implementation */ }}\n"
|
|
29
|
-
" REACT_METHOD(captureComplete) static void captureComplete(std::string path, std::string error) noexcept { /* implementation */ }}\n");
|
|
28
|
+
" REACT_METHOD(captureComplete) void captureComplete(std::string path, std::optional<std::string> error) noexcept { /* implementation */ }}\n"
|
|
29
|
+
" REACT_METHOD(captureComplete) static void captureComplete(std::string path, std::optional<std::string> error) noexcept { /* implementation */ }}\n");
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
|