react-native-windows 0.66.3 → 0.67.0-preview.3
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 +917 -85
- package/CHANGELOG.md +352 -37
- package/Chakra/Chakra.vcxitems +0 -1
- package/Chakra/Chakra.vcxitems.filters +0 -3
- package/Chakra/ChakraHelpers.cpp +0 -267
- package/Chakra/ChakraInstanceArgs.h +0 -5
- package/Chakra/ChakraPlatform.h +0 -4
- package/Chakra/ChakraTracing.cpp +0 -33
- package/Chakra/ChakraValue.h +0 -4
- package/Chakra/Utf8DebugExtensions.cpp +0 -5
- package/Chakra/Utf8DebugExtensions.h +0 -6
- 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 -8
- 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/React.Cpp.props +2 -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/JSI/ChakraApi.cpp +1 -37
- package/Shared/JSI/ChakraApi.h +0 -4
- package/Shared/JSI/ChakraJsiRuntime_edgemode.cpp +1 -5
- package/Shared/JSI/ChakraRuntime.cpp +0 -12
- package/Shared/JSI/ChakraRuntimeFactory.h +0 -2
- package/Shared/Modules/PlatformConstantsModule.cpp +1 -15
- package/Shared/OInstance.cpp +6 -19
- package/Shared/Shared.vcxitems +0 -1
- package/Shared/Shared.vcxitems.filters +0 -3
- 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/Chakra/ChakraCoreDebugger.h +0 -147
- 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/Scripts/Microsoft.ChakraCore.ARM64.nuspec +0 -50
- package/Scripts/Microsoft.ChakraCore.ARM64.targets +0 -15
- package/Shared/JSI/ChakraCoreRuntime.h +0 -59
- package/template/cpp-app/keys/MyApp_TemporaryKey.pfx +0 -0
- package/template/cs-app/keys/MyApp_TemporaryKey.pfx +0 -0
|
@@ -13,15 +13,43 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
REACT_STRUCT(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers)
|
|
17
|
+
struct AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers {
|
|
18
|
+
REACT_FIELD(extraSmall)
|
|
19
|
+
std::optional<double> extraSmall;
|
|
20
|
+
REACT_FIELD(small)
|
|
21
|
+
std::optional<double> small;
|
|
22
|
+
REACT_FIELD(medium)
|
|
23
|
+
std::optional<double> medium;
|
|
24
|
+
REACT_FIELD(large)
|
|
25
|
+
std::optional<double> large;
|
|
26
|
+
REACT_FIELD(extraLarge)
|
|
27
|
+
std::optional<double> extraLarge;
|
|
28
|
+
REACT_FIELD(extraExtraLarge)
|
|
29
|
+
std::optional<double> extraExtraLarge;
|
|
30
|
+
REACT_FIELD(extraExtraExtraLarge)
|
|
31
|
+
std::optional<double> extraExtraExtraLarge;
|
|
32
|
+
REACT_FIELD(accessibilityMedium)
|
|
33
|
+
std::optional<double> accessibilityMedium;
|
|
34
|
+
REACT_FIELD(accessibilityLarge)
|
|
35
|
+
std::optional<double> accessibilityLarge;
|
|
36
|
+
REACT_FIELD(accessibilityExtraLarge)
|
|
37
|
+
std::optional<double> accessibilityExtraLarge;
|
|
38
|
+
REACT_FIELD(accessibilityExtraExtraLarge)
|
|
39
|
+
std::optional<double> accessibilityExtraExtraLarge;
|
|
40
|
+
REACT_FIELD(accessibilityExtraExtraExtraLarge)
|
|
41
|
+
std::optional<double> accessibilityExtraExtraExtraLarge;
|
|
42
|
+
};
|
|
43
|
+
|
|
16
44
|
struct AccessibilityManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
45
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(Callback<
|
|
19
|
-
Method<void(Callback<
|
|
20
|
-
Method<void(Callback<
|
|
21
|
-
Method<void(Callback<
|
|
22
|
-
Method<void(Callback<
|
|
23
|
-
Method<void(Callback<
|
|
24
|
-
Method<void(
|
|
46
|
+
Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{0, L"getCurrentBoldTextState"},
|
|
47
|
+
Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{1, L"getCurrentGrayscaleState"},
|
|
48
|
+
Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{2, L"getCurrentInvertColorsState"},
|
|
49
|
+
Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{3, L"getCurrentReduceMotionState"},
|
|
50
|
+
Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{4, L"getCurrentReduceTransparencyState"},
|
|
51
|
+
Method<void(Callback<bool>, Callback<React::JSValue>) noexcept>{5, L"getCurrentVoiceOverState"},
|
|
52
|
+
Method<void(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers) noexcept>{6, L"setAccessibilityContentSizeMultipliers"},
|
|
25
53
|
Method<void(double) noexcept>{7, L"setAccessibilityFocus"},
|
|
26
54
|
Method<void(std::string) noexcept>{8, L"announceForAccessibility"},
|
|
27
55
|
};
|
|
@@ -33,38 +61,38 @@ struct AccessibilityManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec
|
|
|
33
61
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
34
62
|
0,
|
|
35
63
|
"getCurrentBoldTextState",
|
|
36
|
-
" REACT_METHOD(getCurrentBoldTextState) void getCurrentBoldTextState(std::function<void(
|
|
37
|
-
" REACT_METHOD(getCurrentBoldTextState) static void getCurrentBoldTextState(std::function<void(
|
|
64
|
+
" REACT_METHOD(getCurrentBoldTextState) void getCurrentBoldTextState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
|
|
65
|
+
" REACT_METHOD(getCurrentBoldTextState) static void getCurrentBoldTextState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
|
|
38
66
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
39
67
|
1,
|
|
40
68
|
"getCurrentGrayscaleState",
|
|
41
|
-
" REACT_METHOD(getCurrentGrayscaleState) void getCurrentGrayscaleState(std::function<void(
|
|
42
|
-
" REACT_METHOD(getCurrentGrayscaleState) static void getCurrentGrayscaleState(std::function<void(
|
|
69
|
+
" REACT_METHOD(getCurrentGrayscaleState) void getCurrentGrayscaleState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
|
|
70
|
+
" REACT_METHOD(getCurrentGrayscaleState) static void getCurrentGrayscaleState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
|
|
43
71
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
44
72
|
2,
|
|
45
73
|
"getCurrentInvertColorsState",
|
|
46
|
-
" REACT_METHOD(getCurrentInvertColorsState) void getCurrentInvertColorsState(std::function<void(
|
|
47
|
-
" REACT_METHOD(getCurrentInvertColorsState) static void getCurrentInvertColorsState(std::function<void(
|
|
74
|
+
" REACT_METHOD(getCurrentInvertColorsState) void getCurrentInvertColorsState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
|
|
75
|
+
" REACT_METHOD(getCurrentInvertColorsState) static void getCurrentInvertColorsState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
|
|
48
76
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
49
77
|
3,
|
|
50
78
|
"getCurrentReduceMotionState",
|
|
51
|
-
" REACT_METHOD(getCurrentReduceMotionState) void getCurrentReduceMotionState(std::function<void(
|
|
52
|
-
" REACT_METHOD(getCurrentReduceMotionState) static void getCurrentReduceMotionState(std::function<void(
|
|
79
|
+
" REACT_METHOD(getCurrentReduceMotionState) void getCurrentReduceMotionState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
|
|
80
|
+
" REACT_METHOD(getCurrentReduceMotionState) static void getCurrentReduceMotionState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
|
|
53
81
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
54
82
|
4,
|
|
55
83
|
"getCurrentReduceTransparencyState",
|
|
56
|
-
" REACT_METHOD(getCurrentReduceTransparencyState) void getCurrentReduceTransparencyState(std::function<void(
|
|
57
|
-
" REACT_METHOD(getCurrentReduceTransparencyState) static void getCurrentReduceTransparencyState(std::function<void(
|
|
84
|
+
" REACT_METHOD(getCurrentReduceTransparencyState) void getCurrentReduceTransparencyState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
|
|
85
|
+
" REACT_METHOD(getCurrentReduceTransparencyState) static void getCurrentReduceTransparencyState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
|
|
58
86
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
59
87
|
5,
|
|
60
88
|
"getCurrentVoiceOverState",
|
|
61
|
-
" REACT_METHOD(getCurrentVoiceOverState) void getCurrentVoiceOverState(std::function<void(
|
|
62
|
-
" REACT_METHOD(getCurrentVoiceOverState) static void getCurrentVoiceOverState(std::function<void(
|
|
89
|
+
" REACT_METHOD(getCurrentVoiceOverState) void getCurrentVoiceOverState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n"
|
|
90
|
+
" REACT_METHOD(getCurrentVoiceOverState) static void getCurrentVoiceOverState(std::function<void(bool)> const & onSuccess, std::function<void(React::JSValue const &)> const & onError) noexcept { /* implementation */ }}\n");
|
|
63
91
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
64
92
|
6,
|
|
65
93
|
"setAccessibilityContentSizeMultipliers",
|
|
66
|
-
" REACT_METHOD(setAccessibilityContentSizeMultipliers) void setAccessibilityContentSizeMultipliers(
|
|
67
|
-
" REACT_METHOD(setAccessibilityContentSizeMultipliers) static void setAccessibilityContentSizeMultipliers(
|
|
94
|
+
" REACT_METHOD(setAccessibilityContentSizeMultipliers) void setAccessibilityContentSizeMultipliers(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers && JSMultipliers) noexcept { /* implementation */ }}\n"
|
|
95
|
+
" REACT_METHOD(setAccessibilityContentSizeMultipliers) static void setAccessibilityContentSizeMultipliers(AccessibilityManagerSpec_setAccessibilityContentSizeMultipliers_JSMultipliers && JSMultipliers) noexcept { /* implementation */ }}\n");
|
|
68
96
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
69
97
|
7,
|
|
70
98
|
"setAccessibilityFocus",
|
|
@@ -13,10 +13,66 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
REACT_STRUCT(ActionSheetManagerSpec_showActionSheetWithOptions_options)
|
|
17
|
+
struct ActionSheetManagerSpec_showActionSheetWithOptions_options {
|
|
18
|
+
REACT_FIELD(title)
|
|
19
|
+
std::optional<std::string> title;
|
|
20
|
+
REACT_FIELD(message)
|
|
21
|
+
std::optional<std::string> message;
|
|
22
|
+
REACT_FIELD(options)
|
|
23
|
+
std::optional<std::vector<std::string>> options;
|
|
24
|
+
REACT_FIELD(destructiveButtonIndices)
|
|
25
|
+
std::optional<std::vector<double>> destructiveButtonIndices;
|
|
26
|
+
REACT_FIELD(cancelButtonIndex)
|
|
27
|
+
std::optional<double> cancelButtonIndex;
|
|
28
|
+
REACT_FIELD(anchor)
|
|
29
|
+
std::optional<double> anchor;
|
|
30
|
+
REACT_FIELD(tintColor)
|
|
31
|
+
std::optional<double> tintColor;
|
|
32
|
+
REACT_FIELD(cancelButtonTintColor)
|
|
33
|
+
std::optional<double> cancelButtonTintColor;
|
|
34
|
+
REACT_FIELD(userInterfaceStyle)
|
|
35
|
+
std::optional<std::string> userInterfaceStyle;
|
|
36
|
+
REACT_FIELD(disabledButtonIndices)
|
|
37
|
+
std::optional<std::vector<double>> disabledButtonIndices;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
REACT_STRUCT(ActionSheetManagerSpec_showShareActionSheetWithOptions_options)
|
|
41
|
+
struct ActionSheetManagerSpec_showShareActionSheetWithOptions_options {
|
|
42
|
+
REACT_FIELD(message)
|
|
43
|
+
std::optional<std::string> message;
|
|
44
|
+
REACT_FIELD(url)
|
|
45
|
+
std::optional<std::string> url;
|
|
46
|
+
REACT_FIELD(subject)
|
|
47
|
+
std::optional<std::string> subject;
|
|
48
|
+
REACT_FIELD(anchor)
|
|
49
|
+
std::optional<double> anchor;
|
|
50
|
+
REACT_FIELD(tintColor)
|
|
51
|
+
std::optional<double> tintColor;
|
|
52
|
+
REACT_FIELD(cancelButtonTintColor)
|
|
53
|
+
std::optional<double> cancelButtonTintColor;
|
|
54
|
+
REACT_FIELD(excludedActivityTypes)
|
|
55
|
+
std::optional<std::vector<std::string>> excludedActivityTypes;
|
|
56
|
+
REACT_FIELD(userInterfaceStyle)
|
|
57
|
+
std::optional<std::string> userInterfaceStyle;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
REACT_STRUCT(ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error)
|
|
61
|
+
struct ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error {
|
|
62
|
+
REACT_FIELD(domain)
|
|
63
|
+
std::string domain;
|
|
64
|
+
REACT_FIELD(code)
|
|
65
|
+
std::string code;
|
|
66
|
+
REACT_FIELD(userInfo)
|
|
67
|
+
std::optional<React::JSValue> userInfo;
|
|
68
|
+
REACT_FIELD(message)
|
|
69
|
+
std::string message;
|
|
70
|
+
};
|
|
71
|
+
|
|
16
72
|
struct ActionSheetManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
73
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(
|
|
19
|
-
Method<void(
|
|
74
|
+
Method<void(ActionSheetManagerSpec_showActionSheetWithOptions_options, Callback<double>) noexcept>{0, L"showActionSheetWithOptions"},
|
|
75
|
+
Method<void(ActionSheetManagerSpec_showShareActionSheetWithOptions_options, Callback<ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error>, Callback<bool, std::optional<std::string>>) noexcept>{1, L"showShareActionSheetWithOptions"},
|
|
20
76
|
};
|
|
21
77
|
|
|
22
78
|
template <class TModule>
|
|
@@ -26,13 +82,13 @@ struct ActionSheetManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
26
82
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
27
83
|
0,
|
|
28
84
|
"showActionSheetWithOptions",
|
|
29
|
-
" REACT_METHOD(showActionSheetWithOptions) void showActionSheetWithOptions(
|
|
30
|
-
" REACT_METHOD(showActionSheetWithOptions) static void showActionSheetWithOptions(
|
|
85
|
+
" REACT_METHOD(showActionSheetWithOptions) void showActionSheetWithOptions(ActionSheetManagerSpec_showActionSheetWithOptions_options && options, std::function<void(double)> const & callback) noexcept { /* implementation */ }}\n"
|
|
86
|
+
" REACT_METHOD(showActionSheetWithOptions) static void showActionSheetWithOptions(ActionSheetManagerSpec_showActionSheetWithOptions_options && options, std::function<void(double)> const & callback) noexcept { /* implementation */ }}\n");
|
|
31
87
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
32
88
|
1,
|
|
33
89
|
"showShareActionSheetWithOptions",
|
|
34
|
-
" REACT_METHOD(showShareActionSheetWithOptions) void showShareActionSheetWithOptions(
|
|
35
|
-
" REACT_METHOD(showShareActionSheetWithOptions) static void showShareActionSheetWithOptions(
|
|
90
|
+
" REACT_METHOD(showShareActionSheetWithOptions) void showShareActionSheetWithOptions(ActionSheetManagerSpec_showShareActionSheetWithOptions_options && options, std::function<void(ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error const &)> const & failureCallback, std::function<void(bool, std::optional<std::string>)> const & successCallback) noexcept { /* implementation */ }}\n"
|
|
91
|
+
" REACT_METHOD(showShareActionSheetWithOptions) static void showShareActionSheetWithOptions(ActionSheetManagerSpec_showShareActionSheetWithOptions_options && options, std::function<void(ActionSheetManagerSpec_showShareActionSheetWithOptions_failureCallback_error const &)> const & failureCallback, std::function<void(bool, std::optional<std::string>)> const & successCallback) noexcept { /* implementation */ }}\n");
|
|
36
92
|
}
|
|
37
93
|
};
|
|
38
94
|
|
|
@@ -20,7 +20,7 @@ struct AlertManagerSpec_Args {
|
|
|
20
20
|
REACT_FIELD(message)
|
|
21
21
|
std::optional<std::string> message;
|
|
22
22
|
REACT_FIELD(buttons)
|
|
23
|
-
std::optional<React::
|
|
23
|
+
std::optional<std::vector<React::JSValue>> buttons;
|
|
24
24
|
REACT_FIELD(type)
|
|
25
25
|
std::optional<std::string> type;
|
|
26
26
|
REACT_FIELD(defaultValue)
|
|
@@ -35,7 +35,7 @@ struct AlertManagerSpec_Args {
|
|
|
35
35
|
|
|
36
36
|
struct AlertManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
37
37
|
static constexpr auto methods = std::tuple{
|
|
38
|
-
Method<void(AlertManagerSpec_Args, Callback<
|
|
38
|
+
Method<void(AlertManagerSpec_Args, Callback<double, std::string>) noexcept>{0, L"alertWithArgs"},
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
template <class TModule>
|
|
@@ -45,8 +45,8 @@ struct AlertManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
45
45
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
46
46
|
0,
|
|
47
47
|
"alertWithArgs",
|
|
48
|
-
" REACT_METHOD(alertWithArgs) void alertWithArgs(AlertManagerSpec_Args && args, std::function<void(
|
|
49
|
-
" REACT_METHOD(alertWithArgs) static void alertWithArgs(AlertManagerSpec_Args && args, std::function<void(
|
|
48
|
+
" REACT_METHOD(alertWithArgs) void alertWithArgs(AlertManagerSpec_Args && args, std::function<void(double, std::string)> const & callback) noexcept { /* implementation */ }}\n"
|
|
49
|
+
" REACT_METHOD(alertWithArgs) static void alertWithArgs(AlertManagerSpec_Args && args, std::function<void(double, std::string)> const & callback) noexcept { /* implementation */ }}\n");
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -22,7 +22,7 @@ struct AnimatedModuleSpec_EndResult {
|
|
|
22
22
|
REACT_STRUCT(AnimatedModuleSpec_EventMapping)
|
|
23
23
|
struct AnimatedModuleSpec_EventMapping {
|
|
24
24
|
REACT_FIELD(nativeEventPath)
|
|
25
|
-
|
|
25
|
+
std::vector<std::string> nativeEventPath;
|
|
26
26
|
REACT_FIELD(animatedValueTag)
|
|
27
27
|
std::optional<double> animatedValueTag;
|
|
28
28
|
};
|
|
@@ -31,13 +31,13 @@ struct AnimatedModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
31
31
|
static constexpr auto methods = std::tuple{
|
|
32
32
|
Method<void() noexcept>{0, L"startOperationBatch"},
|
|
33
33
|
Method<void() noexcept>{1, L"finishOperationBatch"},
|
|
34
|
-
Method<void(double, React::
|
|
35
|
-
Method<void(double, Callback<
|
|
34
|
+
Method<void(double, React::JSValue) noexcept>{2, L"createAnimatedNode"},
|
|
35
|
+
Method<void(double, Callback<double>) noexcept>{3, L"getValue"},
|
|
36
36
|
Method<void(double) noexcept>{4, L"startListeningToAnimatedNodeValue"},
|
|
37
37
|
Method<void(double) noexcept>{5, L"stopListeningToAnimatedNodeValue"},
|
|
38
38
|
Method<void(double, double) noexcept>{6, L"connectAnimatedNodes"},
|
|
39
39
|
Method<void(double, double) noexcept>{7, L"disconnectAnimatedNodes"},
|
|
40
|
-
Method<void(double, double, React::
|
|
40
|
+
Method<void(double, double, React::JSValue, Callback<AnimatedModuleSpec_EndResult>) noexcept>{8, L"startAnimatingNode"},
|
|
41
41
|
Method<void(double) noexcept>{9, L"stopAnimation"},
|
|
42
42
|
Method<void(double, double) noexcept>{10, L"setAnimatedNodeValue"},
|
|
43
43
|
Method<void(double, double) noexcept>{11, L"setAnimatedNodeOffset"},
|
|
@@ -70,13 +70,13 @@ struct AnimatedModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
70
70
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
71
71
|
2,
|
|
72
72
|
"createAnimatedNode",
|
|
73
|
-
" REACT_METHOD(createAnimatedNode) void createAnimatedNode(double tag, React::
|
|
74
|
-
" REACT_METHOD(createAnimatedNode) static void createAnimatedNode(double tag, React::
|
|
73
|
+
" REACT_METHOD(createAnimatedNode) void createAnimatedNode(double tag, React::JSValue && config) noexcept { /* implementation */ }}\n"
|
|
74
|
+
" REACT_METHOD(createAnimatedNode) static void createAnimatedNode(double tag, React::JSValue && config) noexcept { /* implementation */ }}\n");
|
|
75
75
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
76
76
|
3,
|
|
77
77
|
"getValue",
|
|
78
|
-
" REACT_METHOD(getValue) void getValue(double tag, std::function<void(
|
|
79
|
-
" REACT_METHOD(getValue) static void getValue(double tag, std::function<void(
|
|
78
|
+
" REACT_METHOD(getValue) void getValue(double tag, std::function<void(double)> const & saveValueCallback) noexcept { /* implementation */ }}\n"
|
|
79
|
+
" REACT_METHOD(getValue) static void getValue(double tag, std::function<void(double)> const & saveValueCallback) noexcept { /* implementation */ }}\n");
|
|
80
80
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
81
81
|
4,
|
|
82
82
|
"startListeningToAnimatedNodeValue",
|
|
@@ -100,8 +100,8 @@ struct AnimatedModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
100
100
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
101
101
|
8,
|
|
102
102
|
"startAnimatingNode",
|
|
103
|
-
" REACT_METHOD(startAnimatingNode) void startAnimatingNode(double animationId, double nodeTag, React::
|
|
104
|
-
" REACT_METHOD(startAnimatingNode) static void startAnimatingNode(double animationId, double nodeTag, React::
|
|
103
|
+
" REACT_METHOD(startAnimatingNode) void startAnimatingNode(double animationId, double nodeTag, React::JSValue && config, std::function<void(AnimatedModuleSpec_EndResult const &)> const & endCallback) noexcept { /* implementation */ }}\n"
|
|
104
|
+
" REACT_METHOD(startAnimatingNode) static void startAnimatingNode(double animationId, double nodeTag, React::JSValue && config, std::function<void(AnimatedModuleSpec_EndResult const &)> const & endCallback) noexcept { /* implementation */ }}\n");
|
|
105
105
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
106
106
|
9,
|
|
107
107
|
"stopAnimation",
|
|
@@ -22,7 +22,7 @@ struct AnimatedTurboModuleSpec_EndResult {
|
|
|
22
22
|
REACT_STRUCT(AnimatedTurboModuleSpec_EventMapping)
|
|
23
23
|
struct AnimatedTurboModuleSpec_EventMapping {
|
|
24
24
|
REACT_FIELD(nativeEventPath)
|
|
25
|
-
|
|
25
|
+
std::vector<std::string> nativeEventPath;
|
|
26
26
|
REACT_FIELD(animatedValueTag)
|
|
27
27
|
std::optional<double> animatedValueTag;
|
|
28
28
|
};
|
|
@@ -31,13 +31,13 @@ struct AnimatedTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec
|
|
|
31
31
|
static constexpr auto methods = std::tuple{
|
|
32
32
|
Method<void() noexcept>{0, L"startOperationBatch"},
|
|
33
33
|
Method<void() noexcept>{1, L"finishOperationBatch"},
|
|
34
|
-
Method<void(double, React::
|
|
35
|
-
Method<void(double, Callback<
|
|
34
|
+
Method<void(double, React::JSValue) noexcept>{2, L"createAnimatedNode"},
|
|
35
|
+
Method<void(double, Callback<double>) noexcept>{3, L"getValue"},
|
|
36
36
|
Method<void(double) noexcept>{4, L"startListeningToAnimatedNodeValue"},
|
|
37
37
|
Method<void(double) noexcept>{5, L"stopListeningToAnimatedNodeValue"},
|
|
38
38
|
Method<void(double, double) noexcept>{6, L"connectAnimatedNodes"},
|
|
39
39
|
Method<void(double, double) noexcept>{7, L"disconnectAnimatedNodes"},
|
|
40
|
-
Method<void(double, double, React::
|
|
40
|
+
Method<void(double, double, React::JSValue, Callback<AnimatedTurboModuleSpec_EndResult>) noexcept>{8, L"startAnimatingNode"},
|
|
41
41
|
Method<void(double) noexcept>{9, L"stopAnimation"},
|
|
42
42
|
Method<void(double, double) noexcept>{10, L"setAnimatedNodeValue"},
|
|
43
43
|
Method<void(double, double) noexcept>{11, L"setAnimatedNodeOffset"},
|
|
@@ -70,13 +70,13 @@ struct AnimatedTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec
|
|
|
70
70
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
71
71
|
2,
|
|
72
72
|
"createAnimatedNode",
|
|
73
|
-
" REACT_METHOD(createAnimatedNode) void createAnimatedNode(double tag, React::
|
|
74
|
-
" REACT_METHOD(createAnimatedNode) static void createAnimatedNode(double tag, React::
|
|
73
|
+
" REACT_METHOD(createAnimatedNode) void createAnimatedNode(double tag, React::JSValue && config) noexcept { /* implementation */ }}\n"
|
|
74
|
+
" REACT_METHOD(createAnimatedNode) static void createAnimatedNode(double tag, React::JSValue && config) noexcept { /* implementation */ }}\n");
|
|
75
75
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
76
76
|
3,
|
|
77
77
|
"getValue",
|
|
78
|
-
" REACT_METHOD(getValue) void getValue(double tag, std::function<void(
|
|
79
|
-
" REACT_METHOD(getValue) static void getValue(double tag, std::function<void(
|
|
78
|
+
" REACT_METHOD(getValue) void getValue(double tag, std::function<void(double)> const & saveValueCallback) noexcept { /* implementation */ }}\n"
|
|
79
|
+
" REACT_METHOD(getValue) static void getValue(double tag, std::function<void(double)> const & saveValueCallback) noexcept { /* implementation */ }}\n");
|
|
80
80
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
81
81
|
4,
|
|
82
82
|
"startListeningToAnimatedNodeValue",
|
|
@@ -100,8 +100,8 @@ struct AnimatedTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec
|
|
|
100
100
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
101
101
|
8,
|
|
102
102
|
"startAnimatingNode",
|
|
103
|
-
" REACT_METHOD(startAnimatingNode) void startAnimatingNode(double animationId, double nodeTag, React::
|
|
104
|
-
" REACT_METHOD(startAnimatingNode) static void startAnimatingNode(double animationId, double nodeTag, React::
|
|
103
|
+
" REACT_METHOD(startAnimatingNode) void startAnimatingNode(double animationId, double nodeTag, React::JSValue && config, std::function<void(AnimatedTurboModuleSpec_EndResult const &)> const & endCallback) noexcept { /* implementation */ }}\n"
|
|
104
|
+
" REACT_METHOD(startAnimatingNode) static void startAnimatingNode(double animationId, double nodeTag, React::JSValue && config, std::function<void(AnimatedTurboModuleSpec_EndResult const &)> const & endCallback) noexcept { /* implementation */ }}\n");
|
|
105
105
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
106
106
|
9,
|
|
107
107
|
"stopAnimation",
|
|
@@ -13,22 +13,44 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
REACT_STRUCT(AppStateSpec_getCurrentAppState_success_appState)
|
|
17
|
+
struct AppStateSpec_getCurrentAppState_success_appState {
|
|
18
|
+
REACT_FIELD(app_state)
|
|
19
|
+
std::string app_state;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
REACT_STRUCT(AppStateSpec_Constants)
|
|
23
|
+
struct AppStateSpec_Constants {
|
|
24
|
+
REACT_FIELD(initialAppState)
|
|
25
|
+
std::string initialAppState;
|
|
26
|
+
};
|
|
27
|
+
|
|
16
28
|
struct AppStateSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
29
|
+
static constexpr auto constants = std::tuple{
|
|
30
|
+
TypedConstant<AppStateSpec_Constants>{0},
|
|
31
|
+
};
|
|
17
32
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(Callback<
|
|
33
|
+
Method<void(Callback<AppStateSpec_getCurrentAppState_success_appState>, Callback<React::JSValue>) noexcept>{0, L"getCurrentAppState"},
|
|
19
34
|
Method<void(std::string) noexcept>{1, L"addListener"},
|
|
20
35
|
Method<void(double) noexcept>{2, L"removeListeners"},
|
|
21
36
|
};
|
|
22
37
|
|
|
23
38
|
template <class TModule>
|
|
24
39
|
static constexpr void ValidateModule() noexcept {
|
|
40
|
+
constexpr auto constantCheckResults = CheckConstants<TModule, AppStateSpec>();
|
|
25
41
|
constexpr auto methodCheckResults = CheckMethods<TModule, AppStateSpec>();
|
|
26
42
|
|
|
43
|
+
REACT_SHOW_CONSTANT_SPEC_ERRORS(
|
|
44
|
+
0,
|
|
45
|
+
"AppStateSpec_Constants",
|
|
46
|
+
" REACT_GET_CONSTANTS(GetConstants) AppStateSpec_Constants GetConstants() noexcept {/*implementation*/}\n"
|
|
47
|
+
" REACT_GET_CONSTANTS(GetConstants) static AppStateSpec_Constants GetConstants() noexcept {/*implementation*/}\n");
|
|
48
|
+
|
|
27
49
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
28
50
|
0,
|
|
29
51
|
"getCurrentAppState",
|
|
30
|
-
" REACT_METHOD(getCurrentAppState) void getCurrentAppState(std::function<void(
|
|
31
|
-
" REACT_METHOD(getCurrentAppState) static void getCurrentAppState(std::function<void(
|
|
52
|
+
" REACT_METHOD(getCurrentAppState) void getCurrentAppState(std::function<void(AppStateSpec_getCurrentAppState_success_appState const &)> const & success, std::function<void(React::JSValue const &)> const & error) noexcept { /* implementation */ }}\n"
|
|
53
|
+
" REACT_METHOD(getCurrentAppState) static void getCurrentAppState(std::function<void(AppStateSpec_getCurrentAppState_success_appState const &)> const & success, std::function<void(React::JSValue const &)> const & error) noexcept { /* implementation */ }}\n");
|
|
32
54
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
33
55
|
1,
|
|
34
56
|
"addListener",
|
|
@@ -15,7 +15,7 @@ namespace Microsoft::ReactNativeSpecs {
|
|
|
15
15
|
|
|
16
16
|
struct AppearanceSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
17
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
SyncMethod<std::string() noexcept>{0, L"getColorScheme"},
|
|
18
|
+
SyncMethod<std::optional<std::string>() noexcept>{0, L"getColorScheme"},
|
|
19
19
|
Method<void(std::string) noexcept>{1, L"addListener"},
|
|
20
20
|
Method<void(double) noexcept>{2, L"removeListeners"},
|
|
21
21
|
};
|
|
@@ -27,8 +27,8 @@ struct AppearanceSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
27
27
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
28
28
|
0,
|
|
29
29
|
"getColorScheme",
|
|
30
|
-
" REACT_SYNC_METHOD(getColorScheme) std::string getColorScheme() noexcept { /* implementation */ }}\n"
|
|
31
|
-
" REACT_SYNC_METHOD(getColorScheme) static std::string getColorScheme() noexcept { /* implementation */ }}\n");
|
|
30
|
+
" REACT_SYNC_METHOD(getColorScheme) std::optional<std::string> getColorScheme() noexcept { /* implementation */ }}\n"
|
|
31
|
+
" REACT_SYNC_METHOD(getColorScheme) static std::optional<std::string> getColorScheme() noexcept { /* implementation */ }}\n");
|
|
32
32
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
33
33
|
1,
|
|
34
34
|
"addListener",
|
|
@@ -13,14 +13,62 @@
|
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
REACT_STRUCT(AsyncLocalStorageSpec_multiGet_callback_errors_element)
|
|
17
|
+
struct AsyncLocalStorageSpec_multiGet_callback_errors_element {
|
|
18
|
+
REACT_FIELD(message)
|
|
19
|
+
std::string message;
|
|
20
|
+
REACT_FIELD(key)
|
|
21
|
+
std::optional<std::string> key;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
REACT_STRUCT(AsyncLocalStorageSpec_multiSet_callback_errors_element)
|
|
25
|
+
struct AsyncLocalStorageSpec_multiSet_callback_errors_element {
|
|
26
|
+
REACT_FIELD(message)
|
|
27
|
+
std::string message;
|
|
28
|
+
REACT_FIELD(key)
|
|
29
|
+
std::optional<std::string> key;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
REACT_STRUCT(AsyncLocalStorageSpec_multiMerge_callback_errors_element)
|
|
33
|
+
struct AsyncLocalStorageSpec_multiMerge_callback_errors_element {
|
|
34
|
+
REACT_FIELD(message)
|
|
35
|
+
std::string message;
|
|
36
|
+
REACT_FIELD(key)
|
|
37
|
+
std::optional<std::string> key;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
REACT_STRUCT(AsyncLocalStorageSpec_multiRemove_callback_errors_element)
|
|
41
|
+
struct AsyncLocalStorageSpec_multiRemove_callback_errors_element {
|
|
42
|
+
REACT_FIELD(message)
|
|
43
|
+
std::string message;
|
|
44
|
+
REACT_FIELD(key)
|
|
45
|
+
std::optional<std::string> key;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
REACT_STRUCT(AsyncLocalStorageSpec_clear_callback_error)
|
|
49
|
+
struct AsyncLocalStorageSpec_clear_callback_error {
|
|
50
|
+
REACT_FIELD(message)
|
|
51
|
+
std::string message;
|
|
52
|
+
REACT_FIELD(key)
|
|
53
|
+
std::optional<std::string> key;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
REACT_STRUCT(AsyncLocalStorageSpec_getAllKeys_callback_error)
|
|
57
|
+
struct AsyncLocalStorageSpec_getAllKeys_callback_error {
|
|
58
|
+
REACT_FIELD(message)
|
|
59
|
+
std::string message;
|
|
60
|
+
REACT_FIELD(key)
|
|
61
|
+
std::optional<std::string> key;
|
|
62
|
+
};
|
|
63
|
+
|
|
16
64
|
struct AsyncLocalStorageSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
65
|
static constexpr auto methods = std::tuple{
|
|
18
|
-
Method<void(
|
|
19
|
-
Method<void(
|
|
20
|
-
Method<void(
|
|
21
|
-
Method<void(
|
|
22
|
-
Method<void(Callback<
|
|
23
|
-
Method<void(Callback<
|
|
66
|
+
Method<void(std::vector<std::string>, Callback<std::optional<std::vector<AsyncLocalStorageSpec_multiGet_callback_errors_element>>, std::optional<std::vector<std::vector<std::string>>>>) noexcept>{0, L"multiGet"},
|
|
67
|
+
Method<void(std::vector<std::vector<std::string>>, Callback<std::optional<std::vector<AsyncLocalStorageSpec_multiSet_callback_errors_element>>>) noexcept>{1, L"multiSet"},
|
|
68
|
+
Method<void(std::vector<std::vector<std::string>>, Callback<std::optional<std::vector<AsyncLocalStorageSpec_multiMerge_callback_errors_element>>>) noexcept>{2, L"multiMerge"},
|
|
69
|
+
Method<void(std::vector<std::string>, Callback<std::optional<std::vector<AsyncLocalStorageSpec_multiRemove_callback_errors_element>>>) noexcept>{3, L"multiRemove"},
|
|
70
|
+
Method<void(Callback<AsyncLocalStorageSpec_clear_callback_error>) noexcept>{4, L"clear"},
|
|
71
|
+
Method<void(Callback<std::optional<AsyncLocalStorageSpec_getAllKeys_callback_error>, std::optional<std::vector<std::string>>>) noexcept>{5, L"getAllKeys"},
|
|
24
72
|
};
|
|
25
73
|
|
|
26
74
|
template <class TModule>
|
|
@@ -30,33 +78,33 @@ struct AsyncLocalStorageSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
|
30
78
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
31
79
|
0,
|
|
32
80
|
"multiGet",
|
|
33
|
-
" REACT_METHOD(multiGet) void multiGet(
|
|
34
|
-
" REACT_METHOD(multiGet) static void multiGet(
|
|
81
|
+
" REACT_METHOD(multiGet) void multiGet(std::vector<std::string> const & keys, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiGet_callback_errors_element>>, std::optional<std::vector<std::vector<std::string>>>)> const & callback) noexcept { /* implementation */ }}\n"
|
|
82
|
+
" REACT_METHOD(multiGet) static void multiGet(std::vector<std::string> const & keys, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiGet_callback_errors_element>>, std::optional<std::vector<std::vector<std::string>>>)> const & callback) noexcept { /* implementation */ }}\n");
|
|
35
83
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
36
84
|
1,
|
|
37
85
|
"multiSet",
|
|
38
|
-
" REACT_METHOD(multiSet) void multiSet(
|
|
39
|
-
" REACT_METHOD(multiSet) static void multiSet(
|
|
86
|
+
" REACT_METHOD(multiSet) void multiSet(std::vector<std::vector<std::string>> const & kvPairs, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiSet_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n"
|
|
87
|
+
" REACT_METHOD(multiSet) static void multiSet(std::vector<std::vector<std::string>> const & kvPairs, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiSet_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n");
|
|
40
88
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
41
89
|
2,
|
|
42
90
|
"multiMerge",
|
|
43
|
-
" REACT_METHOD(multiMerge) void multiMerge(
|
|
44
|
-
" REACT_METHOD(multiMerge) static void multiMerge(
|
|
91
|
+
" REACT_METHOD(multiMerge) void multiMerge(std::vector<std::vector<std::string>> const & kvPairs, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiMerge_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n"
|
|
92
|
+
" REACT_METHOD(multiMerge) static void multiMerge(std::vector<std::vector<std::string>> const & kvPairs, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiMerge_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n");
|
|
45
93
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
46
94
|
3,
|
|
47
95
|
"multiRemove",
|
|
48
|
-
" REACT_METHOD(multiRemove) void multiRemove(
|
|
49
|
-
" REACT_METHOD(multiRemove) static void multiRemove(
|
|
96
|
+
" REACT_METHOD(multiRemove) void multiRemove(std::vector<std::string> const & keys, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiRemove_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n"
|
|
97
|
+
" REACT_METHOD(multiRemove) static void multiRemove(std::vector<std::string> const & keys, std::function<void(std::optional<std::vector<AsyncLocalStorageSpec_multiRemove_callback_errors_element>>)> const & callback) noexcept { /* implementation */ }}\n");
|
|
50
98
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
51
99
|
4,
|
|
52
100
|
"clear",
|
|
53
|
-
" REACT_METHOD(clear) void clear(std::function<void(
|
|
54
|
-
" REACT_METHOD(clear) static void clear(std::function<void(
|
|
101
|
+
" REACT_METHOD(clear) void clear(std::function<void(AsyncLocalStorageSpec_clear_callback_error const &)> const & callback) noexcept { /* implementation */ }}\n"
|
|
102
|
+
" REACT_METHOD(clear) static void clear(std::function<void(AsyncLocalStorageSpec_clear_callback_error const &)> const & callback) noexcept { /* implementation */ }}\n");
|
|
55
103
|
REACT_SHOW_METHOD_SPEC_ERRORS(
|
|
56
104
|
5,
|
|
57
105
|
"getAllKeys",
|
|
58
|
-
" REACT_METHOD(getAllKeys) void getAllKeys(std::function<void(
|
|
59
|
-
" REACT_METHOD(getAllKeys) static void getAllKeys(std::function<void(
|
|
106
|
+
" REACT_METHOD(getAllKeys) void getAllKeys(std::function<void(std::optional<AsyncLocalStorageSpec_getAllKeys_callback_error>, std::optional<std::vector<std::string>>)> const & callback) noexcept { /* implementation */ }}\n"
|
|
107
|
+
" REACT_METHOD(getAllKeys) static void getAllKeys(std::function<void(std::optional<AsyncLocalStorageSpec_getAllKeys_callback_error>, std::optional<std::vector<std::string>>)> const & callback) noexcept { /* implementation */ }}\n");
|
|
60
108
|
}
|
|
61
109
|
};
|
|
62
110
|
|